@oondemand/oon-core-front 0.5.6 → 0.6.1
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/dist/chunk-32GGDIWB.js +71 -0
- package/dist/chunk-32GGDIWB.js.map +1 -0
- package/dist/chunk-ALZCHGGI.js +19 -0
- package/dist/chunk-ALZCHGGI.js.map +1 -0
- package/dist/chunk-KD7UQF5E.js +103 -0
- package/dist/chunk-KD7UQF5E.js.map +1 -0
- package/dist/chunk-QXKS2WEG.js +2111 -0
- package/dist/chunk-QXKS2WEG.js.map +1 -0
- package/dist/chunk-R7ZBLDC2.js +5429 -0
- package/dist/chunk-R7ZBLDC2.js.map +1 -0
- package/dist/chunk-V6TY7KAL.js +8 -0
- package/dist/chunk-V6TY7KAL.js.map +1 -0
- package/dist/chunk-VC6NTMZS.js +187 -0
- package/dist/chunk-VC6NTMZS.js.map +1 -0
- package/dist/chunk-VJ7YNFF7.js +694 -0
- package/dist/chunk-VJ7YNFF7.js.map +1 -0
- package/dist/hooks-lXMaiLqz.d.ts +89 -0
- package/dist/hooks.d.ts +8 -0
- package/dist/hooks.js +24 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.d.ts +26 -1187
- package/dist/index.js +63 -10202
- package/dist/index.js.map +1 -1
- package/dist/routing.d.ts +12 -0
- package/dist/routing.js +17 -0
- package/dist/routing.js.map +1 -0
- package/dist/testing.d.ts +8 -0
- package/dist/testing.js +22 -0
- package/dist/testing.js.map +1 -0
- package/dist/theme-Clhoswb3.d.ts +28 -0
- package/dist/theme.d.ts +12 -0
- package/dist/theme.js +14 -0
- package/dist/theme.js.map +1 -0
- package/dist/types-BEVt-nU8.d.ts +666 -0
- package/dist/ui-1Um8gXIZ.d.ts +337 -0
- package/dist/ui.d.ts +5 -0
- package/dist/ui.js +86 -0
- package/dist/ui.js.map +1 -0
- package/package.json +21 -1
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import '@chakra-ui/react';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { Q as OonRowActionDef, u as OonFormFieldDef, R as OonDetailModalConfig, S as OonDetailTabDef, K as PipelineViewDef, T as OonRelationDef, U as OonListFilterDef, V as OonCollectionListConfig, g as CollectionMode, r as OonColumnDef, s as OonComponentRegistry, i as DashboardWidgetDef, x as OonPageDef } from './types-BEVt-nU8.js';
|
|
5
|
+
|
|
6
|
+
type OonRelatedGridCreateDef = {
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
fields?: OonFormFieldDef[];
|
|
10
|
+
initialValues?: Record<string, unknown>;
|
|
11
|
+
};
|
|
12
|
+
type OonRelatedGridDeleteDef = {
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
confirm?: string;
|
|
15
|
+
};
|
|
16
|
+
type BaseRelatedGridTab = Extract<OonDetailTabDef, {
|
|
17
|
+
type: "relatedGrid";
|
|
18
|
+
}>;
|
|
19
|
+
/** Aba relacionada com inclusão e exclusão opcionais. */
|
|
20
|
+
type OonOperationalDetailTabDef = Exclude<OonDetailTabDef, BaseRelatedGridTab> | (BaseRelatedGridTab & {
|
|
21
|
+
create?: OonRelatedGridCreateDef;
|
|
22
|
+
delete?: OonRelatedGridDeleteDef;
|
|
23
|
+
});
|
|
24
|
+
/** Modal declarativo que amplia relatedGrid sem quebrar o contrato anterior. */
|
|
25
|
+
type OonOperationalDetailModalConfig = Omit<OonDetailModalConfig, "tabs"> & {
|
|
26
|
+
tabs: OonOperationalDetailTabDef[];
|
|
27
|
+
};
|
|
28
|
+
/** Configuração declarativa do editor de um ticket aberto pela esteira. */
|
|
29
|
+
type OonPipelineTicketModalConfig = OonOperationalDetailModalConfig;
|
|
30
|
+
type OonPipelineViewMode = "board" | "list";
|
|
31
|
+
type OonPipelineCreateDef = {
|
|
32
|
+
enabled?: boolean;
|
|
33
|
+
label?: string;
|
|
34
|
+
initialTab?: string;
|
|
35
|
+
defaultStage?: string;
|
|
36
|
+
defaultValues?: Record<string, unknown>;
|
|
37
|
+
};
|
|
38
|
+
type OonPipelineActionGroup = "approval" | "workStatus" | "custom";
|
|
39
|
+
type OonPipelineActionTone = "success" | "danger" | "warning" | "neutral" | "brand";
|
|
40
|
+
type OonPipelineOperationalKind = "approval" | "work-status" | "business";
|
|
41
|
+
/**
|
|
42
|
+
* Ações padrão da esteira. Quando omitido, aprovação/reprovação e status de
|
|
43
|
+
* trabalho ficam habilitados automaticamente quando os campos necessários
|
|
44
|
+
* existem na metadata do model.
|
|
45
|
+
*/
|
|
46
|
+
type OonPipelineDefaultActionsConfig = {
|
|
47
|
+
approval?: boolean;
|
|
48
|
+
workStatus?: boolean;
|
|
49
|
+
workStatusField?: string;
|
|
50
|
+
excludedStages?: string[];
|
|
51
|
+
};
|
|
52
|
+
type OonPipelineDefaultActionsDef = false | OonPipelineDefaultActionsConfig;
|
|
53
|
+
/**
|
|
54
|
+
* Ações operacionais exibidas no cabeçalho do ticket.
|
|
55
|
+
*
|
|
56
|
+
* - setField/transition atualizam um campo do próprio ticket;
|
|
57
|
+
* - formAction carrega dados opcionais e envia um formulário a um endpoint;
|
|
58
|
+
* - group/tone organizam a ação visualmente sem acoplar regra de negócio à UI;
|
|
59
|
+
* - operationalKind cria um contrato estável para telemetria, SLA e produtividade.
|
|
60
|
+
*/
|
|
61
|
+
type OonPipelineActionDef = Omit<OonRowActionDef, "type"> & {
|
|
62
|
+
type: OonRowActionDef["type"] | "setField" | "transition" | "formAction";
|
|
63
|
+
field?: string;
|
|
64
|
+
value?: unknown;
|
|
65
|
+
title?: string;
|
|
66
|
+
submitLabel?: string;
|
|
67
|
+
loadEndpoint?: string;
|
|
68
|
+
fields?: OonFormFieldDef[];
|
|
69
|
+
initialValues?: Record<string, unknown>;
|
|
70
|
+
group?: OonPipelineActionGroup;
|
|
71
|
+
tone?: OonPipelineActionTone;
|
|
72
|
+
operationalKind?: OonPipelineOperationalKind;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Extensão pública da view de esteira com filtros, inclusão, lista, ações e
|
|
76
|
+
* modal declarativo. Continua estruturalmente compatível com PipelineViewDef.
|
|
77
|
+
*/
|
|
78
|
+
type OonPipelineViewDef = PipelineViewDef & {
|
|
79
|
+
/** Campo exibido como título do card e do modal. */
|
|
80
|
+
titleField?: string;
|
|
81
|
+
/** Overrides de formulário mesclados à metadata do model. */
|
|
82
|
+
form?: OonFormFieldDef[];
|
|
83
|
+
/** Relações disponíveis para abas summary/relatedGrid/readonlyGrid. */
|
|
84
|
+
relations?: Record<string, OonRelationDef>;
|
|
85
|
+
/** Modal declarativo usado ao abrir um ticket da esteira. */
|
|
86
|
+
ticketModal?: OonPipelineTicketModalConfig;
|
|
87
|
+
/** Filtros aplicados tanto ao quadro quanto à visualização em lista. */
|
|
88
|
+
filters?: OonListFilterDef[];
|
|
89
|
+
/** Configuração do botão de inclusão pela própria esteira. */
|
|
90
|
+
create?: OonPipelineCreateDef;
|
|
91
|
+
/** Modos de visualização liberados para o usuário. */
|
|
92
|
+
viewModes?: OonPipelineViewMode[];
|
|
93
|
+
/** Visualização inicial. */
|
|
94
|
+
defaultView?: OonPipelineViewMode;
|
|
95
|
+
/** Colunas e ações da visualização em lista. */
|
|
96
|
+
list?: OonCollectionListConfig;
|
|
97
|
+
/** Ações padrão do Core; use false para desabilitá-las nesta esteira. */
|
|
98
|
+
defaultActions?: OonPipelineDefaultActionsDef;
|
|
99
|
+
/** Ações adicionais ou overrides exibidos no cabeçalho do ticket aberto. */
|
|
100
|
+
ticketActions?: OonPipelineActionDef[];
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
interface CoreCollectionProps {
|
|
104
|
+
model: string;
|
|
105
|
+
label?: string;
|
|
106
|
+
section?: string;
|
|
107
|
+
mode?: CollectionMode;
|
|
108
|
+
endpoint?: string;
|
|
109
|
+
columns?: OonColumnDef[];
|
|
110
|
+
form?: OonFormFieldDef[];
|
|
111
|
+
importExport?: boolean;
|
|
112
|
+
list?: OonCollectionListConfig;
|
|
113
|
+
relations?: Record<string, OonRelationDef>;
|
|
114
|
+
detailModal?: OonDetailModalConfig;
|
|
115
|
+
cellRenderers?: OonComponentRegistry["cellRenderers"];
|
|
116
|
+
registry?: OonComponentRegistry;
|
|
117
|
+
}
|
|
118
|
+
declare function CoreCollection({ model, label, section, mode, endpoint, columns, form, importExport, list, relations, detailModal, cellRenderers, registry }: CoreCollectionProps): react.JSX.Element;
|
|
119
|
+
|
|
120
|
+
interface CoreDocumentProps {
|
|
121
|
+
model: string;
|
|
122
|
+
label?: string;
|
|
123
|
+
endpoint?: string;
|
|
124
|
+
columns?: OonColumnDef[];
|
|
125
|
+
form?: OonFormFieldDef[];
|
|
126
|
+
/** liga ações de aprovar/reprovar (RESTful: /:id/actions/approve|reject). */
|
|
127
|
+
approval?: boolean;
|
|
128
|
+
/** liga gestão de anexos (futuro: /:id/files). */
|
|
129
|
+
attachments?: boolean;
|
|
130
|
+
/** CRUD preserva o comportamento legado; library prioriza descoberta e leitura. */
|
|
131
|
+
display?: "crud" | "library";
|
|
132
|
+
categoryField?: string;
|
|
133
|
+
titleField?: string;
|
|
134
|
+
descriptionField?: string;
|
|
135
|
+
contentField?: string;
|
|
136
|
+
statusField?: string;
|
|
137
|
+
updatedAtField?: string;
|
|
138
|
+
}
|
|
139
|
+
declare function CoreDocument({ model, label, endpoint, columns, form, display, categoryField, titleField, descriptionField, contentField, statusField, updatedAtField, }: CoreDocumentProps): react.JSX.Element;
|
|
140
|
+
|
|
141
|
+
interface CorePipelineProps {
|
|
142
|
+
model: string;
|
|
143
|
+
label?: string;
|
|
144
|
+
endpoint?: string;
|
|
145
|
+
stageField?: string;
|
|
146
|
+
stages?: Array<{
|
|
147
|
+
id: string;
|
|
148
|
+
label: string;
|
|
149
|
+
}>;
|
|
150
|
+
titleField?: string;
|
|
151
|
+
form?: OonFormFieldDef[];
|
|
152
|
+
relations?: Record<string, OonRelationDef>;
|
|
153
|
+
ticketModal?: OonDetailModalConfig;
|
|
154
|
+
filters?: OonListFilterDef[];
|
|
155
|
+
create?: OonPipelineCreateDef;
|
|
156
|
+
viewModes?: OonPipelineViewMode[];
|
|
157
|
+
defaultView?: OonPipelineViewMode;
|
|
158
|
+
list?: OonCollectionListConfig;
|
|
159
|
+
defaultActions?: OonPipelineDefaultActionsDef;
|
|
160
|
+
ticketActions?: OonPipelineActionDef[];
|
|
161
|
+
registry?: OonComponentRegistry;
|
|
162
|
+
}
|
|
163
|
+
/** Esteira com quadro/lista, filtros, inclusão e ações operacionais no ticket. */
|
|
164
|
+
declare function CorePipeline({ model, label, endpoint, stageField, stages, titleField, form, relations, ticketModal, filters, create, viewModes, defaultView, list, defaultActions, ticketActions, registry, }: CorePipelineProps): react.JSX.Element;
|
|
165
|
+
|
|
166
|
+
interface CoreCurrencyProps {
|
|
167
|
+
/** model das moedas. Default: "Moeda". */
|
|
168
|
+
model?: string;
|
|
169
|
+
label?: string;
|
|
170
|
+
endpoint?: string;
|
|
171
|
+
columns?: OonColumnDef[];
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Multi-moedas (módulo de domínio, Seção 4.6/2.11). Lista as moedas e expõe a
|
|
175
|
+
* ação RESTful de atualizar cotações (POST /<endpoint>/actions/update-rates).
|
|
176
|
+
*/
|
|
177
|
+
declare function CoreCurrency({ model, label, endpoint, columns }: CoreCurrencyProps): react.JSX.Element;
|
|
178
|
+
|
|
179
|
+
interface CoreAssistantProps {
|
|
180
|
+
/** code do assistente registrado no back (ex.: "servicos-tomados.revisao"). */
|
|
181
|
+
assistantCode: string;
|
|
182
|
+
label?: string;
|
|
183
|
+
/** entidade de contexto (apenas tipo + id; nada sensível). */
|
|
184
|
+
entity?: {
|
|
185
|
+
type: string;
|
|
186
|
+
id: string;
|
|
187
|
+
};
|
|
188
|
+
/** base de assistentes; default usa o mesmo client REST do Core. */
|
|
189
|
+
endpoint?: string;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Assistente IA do Core (Seção 2.12 / 6.2). Envia ao back apenas
|
|
193
|
+
* assistantCode + entity + message — NUNCA chave de IA, modelo ou prompt.
|
|
194
|
+
* O back resolve modelo, prompt, chave e políticas.
|
|
195
|
+
*/
|
|
196
|
+
declare function CoreAssistant({ assistantCode, label, entity, endpoint }: CoreAssistantProps): react.JSX.Element;
|
|
197
|
+
|
|
198
|
+
type DashboardFilterPrimitive = string | number | boolean | null;
|
|
199
|
+
type DashboardFilterValue = DashboardFilterPrimitive | {
|
|
200
|
+
eq?: DashboardFilterPrimitive;
|
|
201
|
+
ne?: DashboardFilterPrimitive;
|
|
202
|
+
in?: DashboardFilterPrimitive[];
|
|
203
|
+
nin?: DashboardFilterPrimitive[];
|
|
204
|
+
gt?: DashboardFilterPrimitive;
|
|
205
|
+
gte?: DashboardFilterPrimitive;
|
|
206
|
+
lt?: DashboardFilterPrimitive;
|
|
207
|
+
lte?: DashboardFilterPrimitive;
|
|
208
|
+
exists?: boolean;
|
|
209
|
+
};
|
|
210
|
+
type CoreDashboardWidget = Omit<DashboardWidgetDef, "kind"> & {
|
|
211
|
+
description?: string;
|
|
212
|
+
kind?: "count" | "sum" | "groupCount" | "groupSum" | "custom";
|
|
213
|
+
groupBy?: string;
|
|
214
|
+
filters?: Record<string, DashboardFilterValue>;
|
|
215
|
+
format?: "number" | "currency";
|
|
216
|
+
};
|
|
217
|
+
interface CoreDashboardProps {
|
|
218
|
+
label?: string;
|
|
219
|
+
widgets?: CoreDashboardWidget[];
|
|
220
|
+
}
|
|
221
|
+
/** Dashboard declarativo com agregações executadas integralmente no backend. */
|
|
222
|
+
declare function CoreDashboard({ label, widgets }: CoreDashboardProps): react.JSX.Element;
|
|
223
|
+
|
|
224
|
+
declare function CoreUsersAccess(): react.JSX.Element;
|
|
225
|
+
|
|
226
|
+
declare function CoreTransactionalEmail(): react.JSX.Element;
|
|
227
|
+
|
|
228
|
+
declare function CorePage({ page, registry }: {
|
|
229
|
+
page: OonPageDef;
|
|
230
|
+
registry?: OonComponentRegistry;
|
|
231
|
+
}): react.JSX.Element;
|
|
232
|
+
|
|
233
|
+
declare function CorePageHeader({ title, description, actions }: {
|
|
234
|
+
title?: string;
|
|
235
|
+
description?: string;
|
|
236
|
+
actions?: ReactNode;
|
|
237
|
+
}): react.JSX.Element;
|
|
238
|
+
declare function CoreToolbar({ children }: {
|
|
239
|
+
children?: ReactNode;
|
|
240
|
+
}): react.JSX.Element;
|
|
241
|
+
declare function CoreDataGrid(props: {
|
|
242
|
+
model: string;
|
|
243
|
+
mode?: CollectionMode;
|
|
244
|
+
columns?: OonColumnDef[];
|
|
245
|
+
form?: OonFormFieldDef[];
|
|
246
|
+
label?: string;
|
|
247
|
+
}): react.JSX.Element;
|
|
248
|
+
declare function CoreCards(props: {
|
|
249
|
+
model: string;
|
|
250
|
+
renderer?: string;
|
|
251
|
+
}): react.JSX.Element;
|
|
252
|
+
declare function CoreForm(props: {
|
|
253
|
+
children?: ReactNode;
|
|
254
|
+
}): react.JSX.Element;
|
|
255
|
+
declare function CoreField({ label, children }: {
|
|
256
|
+
label?: string;
|
|
257
|
+
children?: ReactNode;
|
|
258
|
+
}): react.JSX.Element;
|
|
259
|
+
declare function CoreRelationField(props: {
|
|
260
|
+
children?: ReactNode;
|
|
261
|
+
}): react.JSX.Element;
|
|
262
|
+
declare function CoreActions({ children }: {
|
|
263
|
+
children?: ReactNode;
|
|
264
|
+
}): react.JSX.Element;
|
|
265
|
+
declare function CoreEmptyState({ title, actionLabel, onAction }: {
|
|
266
|
+
title?: string;
|
|
267
|
+
actionLabel?: string;
|
|
268
|
+
onAction?: () => void;
|
|
269
|
+
}): react.JSX.Element;
|
|
270
|
+
declare function CoreLoadingState({ label }: {
|
|
271
|
+
label?: string;
|
|
272
|
+
}): react.JSX.Element;
|
|
273
|
+
declare function CoreErrorState({ title, description, retryLabel, onRetry }: {
|
|
274
|
+
title?: string;
|
|
275
|
+
description?: string;
|
|
276
|
+
retryLabel?: string;
|
|
277
|
+
onRetry?: () => void;
|
|
278
|
+
}): react.JSX.Element;
|
|
279
|
+
declare function CoreTabs({ items, value, onChange }: {
|
|
280
|
+
items: Array<{
|
|
281
|
+
id: string;
|
|
282
|
+
label: string;
|
|
283
|
+
content: ReactNode;
|
|
284
|
+
}>;
|
|
285
|
+
value?: string;
|
|
286
|
+
onChange?: (id: string) => void;
|
|
287
|
+
}): react.JSX.Element;
|
|
288
|
+
declare function CoreSummaryCards({ items }: {
|
|
289
|
+
items: Array<{
|
|
290
|
+
id: string;
|
|
291
|
+
label: string;
|
|
292
|
+
value: ReactNode;
|
|
293
|
+
description?: string;
|
|
294
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info";
|
|
295
|
+
}>;
|
|
296
|
+
}): react.JSX.Element;
|
|
297
|
+
declare function CoreTimeline({ items }: {
|
|
298
|
+
items: Array<{
|
|
299
|
+
id: string;
|
|
300
|
+
title: string;
|
|
301
|
+
description?: string;
|
|
302
|
+
at?: string;
|
|
303
|
+
status?: string;
|
|
304
|
+
}>;
|
|
305
|
+
}): react.JSX.Element;
|
|
306
|
+
declare function CoreStepper({ steps, current }: {
|
|
307
|
+
steps: Array<{
|
|
308
|
+
id: string;
|
|
309
|
+
label: string;
|
|
310
|
+
description?: string;
|
|
311
|
+
}>;
|
|
312
|
+
current: string;
|
|
313
|
+
}): react.JSX.Element;
|
|
314
|
+
declare function CoreStatusPanel({ title, status, description, actions }: {
|
|
315
|
+
title: string;
|
|
316
|
+
status: string;
|
|
317
|
+
description?: string;
|
|
318
|
+
actions?: ReactNode;
|
|
319
|
+
}): react.JSX.Element;
|
|
320
|
+
declare function CoreActivityLog(props: {
|
|
321
|
+
items: Array<{
|
|
322
|
+
id: string;
|
|
323
|
+
title: string;
|
|
324
|
+
description?: string;
|
|
325
|
+
at?: string;
|
|
326
|
+
status?: string;
|
|
327
|
+
}>;
|
|
328
|
+
}): react.JSX.Element;
|
|
329
|
+
declare function CoreConfirmAction({ label, confirmLabel, cancelLabel, tone, onConfirm }: {
|
|
330
|
+
label: string;
|
|
331
|
+
confirmLabel?: string;
|
|
332
|
+
cancelLabel?: string;
|
|
333
|
+
tone?: "danger" | "neutral";
|
|
334
|
+
onConfirm: () => void;
|
|
335
|
+
}): react.JSX.Element;
|
|
336
|
+
|
|
337
|
+
export { CoreErrorState as A, CoreStatusPanel as B, CoreActions as C, CoreStepper as D, CoreSummaryCards as E, CoreTabs as F, CoreTimeline as G, type OonPipelineViewDef as O, CoreAssistant as a, CoreCards as b, CoreCollection as c, CoreCurrency as d, CoreDashboard as e, CoreDataGrid as f, CoreDocument as g, CoreEmptyState as h, CoreField as i, CoreForm as j, CoreLoadingState as k, CorePage as l, CorePageHeader as m, CorePipeline as n, CoreRelationField as o, CoreToolbar as p, CoreTransactionalEmail as q, CoreUsersAccess as r, type OonPipelineActionDef as s, type OonPipelineActionGroup as t, type OonPipelineActionTone as u, type OonPipelineDefaultActionsConfig as v, type OonPipelineDefaultActionsDef as w, type OonPipelineTicketModalConfig as x, CoreActivityLog as y, CoreConfirmAction as z };
|
package/dist/ui.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Badge as OonBadge, Button as OonButton, Card as OonCard, Drawer as OonDrawer, Grid as OonGrid, Input as OonInput, Dialog as OonModal, NativeSelect as OonSelect, Stack as OonStack } from '@chakra-ui/react';
|
|
2
|
+
export { C as CoreActions, y as CoreActivityLog, a as CoreAssistant, b as CoreCards, c as CoreCollection, z as CoreConfirmAction, d as CoreCurrency, e as CoreDashboard, f as CoreDataGrid, g as CoreDocument, h as CoreEmptyState, A as CoreErrorState, i as CoreField, j as CoreForm, k as CoreLoadingState, l as CorePage, m as CorePageHeader, n as CorePipeline, o as CoreRelationField, B as CoreStatusPanel, D as CoreStepper, E as CoreSummaryCards, F as CoreTabs, G as CoreTimeline, p as CoreToolbar, q as CoreTransactionalEmail, r as CoreUsersAccess } from './ui-1Um8gXIZ.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import './types-BEVt-nU8.js';
|
|
5
|
+
import './theme-Clhoswb3.js';
|
package/dist/ui.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CoreAssistant,
|
|
3
|
+
CoreCurrency
|
|
4
|
+
} from "./chunk-KD7UQF5E.js";
|
|
5
|
+
import {
|
|
6
|
+
CoreActions,
|
|
7
|
+
CoreActivityLog,
|
|
8
|
+
CoreCards,
|
|
9
|
+
CoreCollection,
|
|
10
|
+
CoreConfirmAction,
|
|
11
|
+
CoreDashboard,
|
|
12
|
+
CoreDataGrid,
|
|
13
|
+
CoreDocument,
|
|
14
|
+
CoreEmptyState,
|
|
15
|
+
CoreErrorState,
|
|
16
|
+
CoreField,
|
|
17
|
+
CoreForm,
|
|
18
|
+
CoreLoadingState,
|
|
19
|
+
CorePage,
|
|
20
|
+
CorePageHeader,
|
|
21
|
+
CorePipeline,
|
|
22
|
+
CoreRelationField,
|
|
23
|
+
CoreStatusPanel,
|
|
24
|
+
CoreStepper,
|
|
25
|
+
CoreSummaryCards,
|
|
26
|
+
CoreTabs,
|
|
27
|
+
CoreTimeline,
|
|
28
|
+
CoreToolbar,
|
|
29
|
+
CoreTransactionalEmail,
|
|
30
|
+
CoreUsersAccess
|
|
31
|
+
} from "./chunk-R7ZBLDC2.js";
|
|
32
|
+
import "./chunk-ALZCHGGI.js";
|
|
33
|
+
import "./chunk-VJ7YNFF7.js";
|
|
34
|
+
import "./chunk-V6TY7KAL.js";
|
|
35
|
+
|
|
36
|
+
// src/ui.ts
|
|
37
|
+
import {
|
|
38
|
+
Button,
|
|
39
|
+
Input,
|
|
40
|
+
NativeSelect,
|
|
41
|
+
Card,
|
|
42
|
+
Badge,
|
|
43
|
+
Grid,
|
|
44
|
+
Stack,
|
|
45
|
+
Dialog,
|
|
46
|
+
Drawer
|
|
47
|
+
} from "@chakra-ui/react";
|
|
48
|
+
export {
|
|
49
|
+
CoreActions,
|
|
50
|
+
CoreActivityLog,
|
|
51
|
+
CoreAssistant,
|
|
52
|
+
CoreCards,
|
|
53
|
+
CoreCollection,
|
|
54
|
+
CoreConfirmAction,
|
|
55
|
+
CoreCurrency,
|
|
56
|
+
CoreDashboard,
|
|
57
|
+
CoreDataGrid,
|
|
58
|
+
CoreDocument,
|
|
59
|
+
CoreEmptyState,
|
|
60
|
+
CoreErrorState,
|
|
61
|
+
CoreField,
|
|
62
|
+
CoreForm,
|
|
63
|
+
CoreLoadingState,
|
|
64
|
+
CorePage,
|
|
65
|
+
CorePageHeader,
|
|
66
|
+
CorePipeline,
|
|
67
|
+
CoreRelationField,
|
|
68
|
+
CoreStatusPanel,
|
|
69
|
+
CoreStepper,
|
|
70
|
+
CoreSummaryCards,
|
|
71
|
+
CoreTabs,
|
|
72
|
+
CoreTimeline,
|
|
73
|
+
CoreToolbar,
|
|
74
|
+
CoreTransactionalEmail,
|
|
75
|
+
CoreUsersAccess,
|
|
76
|
+
Badge as OonBadge,
|
|
77
|
+
Button as OonButton,
|
|
78
|
+
Card as OonCard,
|
|
79
|
+
Drawer as OonDrawer,
|
|
80
|
+
Grid as OonGrid,
|
|
81
|
+
Input as OonInput,
|
|
82
|
+
Dialog as OonModal,
|
|
83
|
+
NativeSelect as OonSelect,
|
|
84
|
+
Stack as OonStack
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=ui.js.map
|
package/dist/ui.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui.ts"],"sourcesContent":["export {\n Button as OonButton,\n Input as OonInput,\n NativeSelect as OonSelect,\n Card as OonCard,\n Badge as OonBadge,\n Grid as OonGrid,\n Stack as OonStack,\n Dialog as OonModal,\n Drawer as OonDrawer,\n} from \"@chakra-ui/react\";\n\nexport { CoreCollection } from \"./components/CoreCollection\";\nexport { CoreDocument } from \"./components/CoreDocument\";\nexport { CorePipeline } from \"./components/CorePipeline\";\nexport { CoreCurrency } from \"./components/CoreCurrency\";\nexport { CoreAssistant } from \"./components/CoreAssistant\";\nexport { CoreDashboard } from \"./components/CoreDashboard\";\nexport { CoreUsersAccess } from \"./components/CoreUsersAccess\";\nexport { CoreTransactionalEmail } from \"./components/CoreTransactionalEmail\";\nexport { CorePage } from \"./components/ui-v2/CorePage\";\nexport * from \"./components/ui-v2/CorePrimitives\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,EACY;AAAA,EACD;AAAA,EACO;AAAA,EACR;AAAA,EACC;AAAA,EACD;AAAA,EACC;AAAA,EACC;AAAA,EACA;AAAA,OACL;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oondemand/oon-core-front",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/oondemand/oon-platform.git",
|
|
@@ -15,6 +15,26 @@
|
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
17
|
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./ui": {
|
|
20
|
+
"types": "./dist/ui.d.ts",
|
|
21
|
+
"import": "./dist/ui.js"
|
|
22
|
+
},
|
|
23
|
+
"./routing": {
|
|
24
|
+
"types": "./dist/routing.d.ts",
|
|
25
|
+
"import": "./dist/routing.js"
|
|
26
|
+
},
|
|
27
|
+
"./theme": {
|
|
28
|
+
"types": "./dist/theme.d.ts",
|
|
29
|
+
"import": "./dist/theme.js"
|
|
30
|
+
},
|
|
31
|
+
"./hooks": {
|
|
32
|
+
"types": "./dist/hooks.d.ts",
|
|
33
|
+
"import": "./dist/hooks.js"
|
|
34
|
+
},
|
|
35
|
+
"./testing": {
|
|
36
|
+
"types": "./dist/testing.d.ts",
|
|
37
|
+
"import": "./dist/testing.js"
|
|
18
38
|
}
|
|
19
39
|
},
|
|
20
40
|
"bin": {
|