@oondemand/oon-core-front 0.7.14 → 0.7.16
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 +19 -0
- package/dist/{chunk-D37CYO7U.js → chunk-BPMQTIXF.js} +135 -99
- package/dist/chunk-BPMQTIXF.js.map +1 -0
- package/dist/{chunk-QW4OXKR7.js → chunk-FFGVRTVH.js} +2 -2
- package/dist/{chunk-EIFIGMY7.js → chunk-TWOOUSQ6.js} +309 -2
- package/dist/chunk-TWOOUSQ6.js.map +1 -0
- package/dist/{hooks-CUJuAfh1.d.ts → hooks-Cb6sn488.d.ts} +1 -1
- package/dist/hooks.d.ts +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +25 -3
- package/dist/index.js.map +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +2 -2
- package/dist/{types-BEVt-nU8.d.ts → types-B3Jx3E2D.d.ts} +6 -0
- package/dist/{ui-1Um8gXIZ.d.ts → ui-BINoL8b6.d.ts} +120 -2
- package/dist/ui.d.ts +2 -2
- package/dist/ui.js +26 -4
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-D37CYO7U.js.map +0 -1
- package/dist/chunk-EIFIGMY7.js.map +0 -1
- /package/dist/{chunk-QW4OXKR7.js.map → chunk-FFGVRTVH.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as OonUser, h as CoreMetadata, M as ModelSummary, L as ListParams, P as PaginatedResult, N as AuditContext } from './types-
|
|
1
|
+
import { H as OonUser, h as CoreMetadata, M as ModelSummary, L as ListParams, P as PaginatedResult, N as AuditContext } from './types-B3Jx3E2D.js';
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
3
|
import { AxiosInstance } from 'axios';
|
|
4
4
|
import './theme.js';
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { c as can, u as useCoreMetadata, a as useModelSchema, b as useOonApi, d as useOonAuth, e as useOonResource, f as useOonTenant } from './hooks-
|
|
1
|
+
export { c as can, u as useCoreMetadata, a as useModelSchema, b as useOonApi, d as useOonAuth, e as useOonResource, f as useOonTenant } from './hooks-Cb6sn488.js';
|
|
2
2
|
export { useOonTheme } from './theme.js';
|
|
3
|
-
import './types-
|
|
3
|
+
import './types-B3Jx3E2D.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './theme-Clhoswb3.js';
|
|
6
6
|
import '@chakra-ui/react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as OonAppDefinition, d as OonCoreFrontConfig, C as CollectionViewDef, D as DashboardViewDef, e as DocumentViewDef, f as OonModule } from './types-
|
|
2
|
-
export { g as CollectionMode, h as CoreMetadata, i as DashboardWidgetDef, F as FieldKind, j as FieldMeta, L as ListParams, M as ModelSummary, k as OonActionDef, l as OonApiConfig, m as OonAppConfig, n as OonAppKind, o as OonAuthConfig, p as OonAuthMode, q as OonBlockDef, r as OonColumnDef, s as OonComponentRegistry, t as OonError, u as OonFormFieldDef, v as OonLayoutConfig, O as OonMenuItem, b as OonNavigationConfig, w as OonNavigationMode, x as OonPageDef, a as OonRoute, y as OonRuntimeMode, z as OonSchemaVersion, A as OonSecurityConfig, B as OonSystemPages, E as OonTenancyModel, G as OonUiManifest, H as OonUser, I as OonViewDefinition, P as PaginatedResult, J as Pagination, K as PipelineViewDef } from './types-
|
|
1
|
+
import { c as OonAppDefinition, d as OonCoreFrontConfig, C as CollectionViewDef, D as DashboardViewDef, e as DocumentViewDef, f as OonModule } from './types-B3Jx3E2D.js';
|
|
2
|
+
export { g as CollectionMode, h as CoreMetadata, i as DashboardWidgetDef, F as FieldKind, j as FieldMeta, L as ListParams, M as ModelSummary, k as OonActionDef, l as OonApiConfig, m as OonAppConfig, n as OonAppKind, o as OonAuthConfig, p as OonAuthMode, q as OonBlockDef, r as OonColumnDef, s as OonComponentRegistry, t as OonError, u as OonFormFieldDef, v as OonLayoutConfig, O as OonMenuItem, b as OonNavigationConfig, w as OonNavigationMode, x as OonPageDef, a as OonRoute, y as OonRuntimeMode, z as OonSchemaVersion, A as OonSecurityConfig, B as OonSystemPages, E as OonTenancyModel, G as OonUiManifest, H as OonUser, I as OonViewDefinition, P as PaginatedResult, J as Pagination, K as PipelineViewDef } from './types-B3Jx3E2D.js';
|
|
3
3
|
export { OON_RESERVED_ROUTES, defineOonNavigation, defineOonRoutes } from './routing.js';
|
|
4
4
|
export { a as OonThemeContrast, O as OonThemeDefinition, b as OonThemeDensity, c as createOonTheme, o as oonDefaultTheme } from './theme-Clhoswb3.js';
|
|
5
5
|
export { useOonTheme } from './theme.js';
|
|
6
|
-
import { O as OonPipelineViewDef } from './ui-
|
|
7
|
-
export { C as CoreActions, a as CoreAssistant, b as CoreCards, c as CoreCollection, d as
|
|
8
|
-
export { O as OonTenantContextValue, c as can, u as useCoreMetadata, a as useModelSchema, b as useOonApi, d as useOonAuth, e as useOonResource, f as useOonTenant } from './hooks-
|
|
6
|
+
import { O as OonPipelineViewDef } from './ui-BINoL8b6.js';
|
|
7
|
+
export { C as CoreActions, a as CoreAssistant, b as CoreCards, c as CoreCollection, d as CoreConfirmDialog, e as CoreCurrency, f as CoreDashboard, g as CoreDataGrid, h as CoreDataTable, i as CoreDataTableProps, j as CoreDetailDrawer, k as CoreDocument, l as CoreEmpty, m as CoreEmptyState, n as CoreField, o as CoreForm, p as CoreFormSection, q as CoreKpi, r as CoreKpiGrid, s as CoreLoadingState, t as CoreOrganizationSwitcher, u as CorePage, v as CorePageHeader, w as CorePipeline, x as CoreRelationField, y as CoreStatusBadge, z as CoreStatusKind, A as CoreStatusTone, B as CoreStatusView, D as CoreTableColumn, E as CoreTechnicalDetails, F as CoreToolbar, G as CoreTransactionalEmail, H as CoreUsersAccess, I as OonPipelineActionDef, J as OonPipelineActionGroup, K as OonPipelineActionTone, L as OonPipelineDefaultActionsConfig, M as OonPipelineDefaultActionsDef, N as OonPipelineTicketModalConfig, P as coreInitials, Q as coreStatus } from './ui-BINoL8b6.js';
|
|
8
|
+
export { O as OonTenantContextValue, c as can, u as useCoreMetadata, a as useModelSchema, b as useOonApi, d as useOonAuth, e as useOonResource, f as useOonTenant } from './hooks-Cb6sn488.js';
|
|
9
9
|
import * as react from 'react';
|
|
10
10
|
import { ReactNode } from 'react';
|
|
11
11
|
import '@chakra-ui/react';
|
package/dist/index.js
CHANGED
|
@@ -1,29 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CoreAssistant,
|
|
3
3
|
CoreCurrency
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FFGVRTVH.js";
|
|
5
5
|
import {
|
|
6
6
|
appDefinitionToConfig,
|
|
7
7
|
createTenantStorage,
|
|
8
8
|
defineOonApp,
|
|
9
9
|
startOonApp
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BPMQTIXF.js";
|
|
11
11
|
import {
|
|
12
12
|
Can,
|
|
13
13
|
CoreActions,
|
|
14
14
|
CoreCards,
|
|
15
15
|
CoreCollection,
|
|
16
|
+
CoreConfirmDialog,
|
|
16
17
|
CoreDashboard,
|
|
17
18
|
CoreDataGrid,
|
|
19
|
+
CoreDataTable,
|
|
20
|
+
CoreDetailDrawer,
|
|
18
21
|
CoreDocument,
|
|
22
|
+
CoreEmpty,
|
|
19
23
|
CoreEmptyState,
|
|
20
24
|
CoreField,
|
|
21
25
|
CoreForm,
|
|
26
|
+
CoreFormSection,
|
|
27
|
+
CoreKpiGrid,
|
|
22
28
|
CoreLoadingState,
|
|
29
|
+
CoreOrganizationSwitcher,
|
|
23
30
|
CorePage,
|
|
24
31
|
CorePageHeader,
|
|
25
32
|
CorePipeline,
|
|
26
33
|
CoreRelationField,
|
|
34
|
+
CoreStatusBadge,
|
|
35
|
+
CoreTechnicalDetails,
|
|
27
36
|
CoreToolbar,
|
|
28
37
|
CoreTransactionalEmail,
|
|
29
38
|
CoreUsersAccess,
|
|
@@ -32,8 +41,10 @@ import {
|
|
|
32
41
|
applyReactiveFormulas,
|
|
33
42
|
buildDomainMutationPayload,
|
|
34
43
|
coerceDomainFormValue,
|
|
44
|
+
coreInitials,
|
|
45
|
+
coreStatus,
|
|
35
46
|
evaluateDomainExpression
|
|
36
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TWOOUSQ6.js";
|
|
37
48
|
import {
|
|
38
49
|
OON_RESERVED_ROUTES,
|
|
39
50
|
defineOonNavigation,
|
|
@@ -78,18 +89,27 @@ export {
|
|
|
78
89
|
CoreAssistant,
|
|
79
90
|
CoreCards,
|
|
80
91
|
CoreCollection,
|
|
92
|
+
CoreConfirmDialog,
|
|
81
93
|
CoreCurrency,
|
|
82
94
|
CoreDashboard,
|
|
83
95
|
CoreDataGrid,
|
|
96
|
+
CoreDataTable,
|
|
97
|
+
CoreDetailDrawer,
|
|
84
98
|
CoreDocument,
|
|
99
|
+
CoreEmpty,
|
|
85
100
|
CoreEmptyState,
|
|
86
101
|
CoreField,
|
|
87
102
|
CoreForm,
|
|
103
|
+
CoreFormSection,
|
|
104
|
+
CoreKpiGrid,
|
|
88
105
|
CoreLoadingState,
|
|
106
|
+
CoreOrganizationSwitcher,
|
|
89
107
|
CorePage,
|
|
90
108
|
CorePageHeader,
|
|
91
109
|
CorePipeline,
|
|
92
110
|
CoreRelationField,
|
|
111
|
+
CoreStatusBadge,
|
|
112
|
+
CoreTechnicalDetails,
|
|
93
113
|
CoreToolbar,
|
|
94
114
|
CoreTransactionalEmail,
|
|
95
115
|
CoreUsersAccess,
|
|
@@ -101,6 +121,8 @@ export {
|
|
|
101
121
|
buildDomainMutationPayload,
|
|
102
122
|
can,
|
|
103
123
|
coerceDomainFormValue,
|
|
124
|
+
coreInitials,
|
|
125
|
+
coreStatus,
|
|
104
126
|
createOonTheme,
|
|
105
127
|
createTenantStorage,
|
|
106
128
|
defineCollectionView,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/define/views.ts"],"sourcesContent":["import type {\n CollectionViewDef,\n DashboardViewDef,\n DocumentViewDef,\n OonModule,\n} from \"../types\";\nimport type { OonPipelineViewDef } from \"../pipelineTicket\";\n\n/**\n * Helpers declarativos (API pública da Seção 4.3). São identidades tipadas que\n * fixam o `type` da view — servem para o autocomplete e para registrar a view\n * num módulo ou no `ui.views` da config.\n */\n\nexport function defineCollectionView(def: Omit<CollectionViewDef, \"type\">): CollectionViewDef {\n return { type: \"collection\", ...def };\n}\n\nexport function defineDocumentView(def: Omit<DocumentViewDef, \"type\">): DocumentViewDef {\n return { type: \"document\", ...def };\n}\n\nexport function definePipelineView(def: Omit<OonPipelineViewDef, \"type\">): OonPipelineViewDef {\n return { type: \"pipeline\", ...def };\n}\n\nexport function defineDashboard(def: Omit<DashboardViewDef, \"type\">): DashboardViewDef {\n return { type: \"dashboard\", ...def };\n}\n\n/** Açúcar para declarar um módulo com tipagem. */\nexport function defineOonModule(mod: OonModule): OonModule {\n return mod;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/define/views.ts"],"sourcesContent":["import type {\n CollectionViewDef,\n DashboardViewDef,\n DocumentViewDef,\n OonModule,\n} from \"../types\";\nimport type { OonPipelineViewDef } from \"../pipelineTicket\";\n\n/**\n * Helpers declarativos (API pública da Seção 4.3). São identidades tipadas que\n * fixam o `type` da view — servem para o autocomplete e para registrar a view\n * num módulo ou no `ui.views` da config.\n */\n\nexport function defineCollectionView(def: Omit<CollectionViewDef, \"type\">): CollectionViewDef {\n return { type: \"collection\", ...def };\n}\n\nexport function defineDocumentView(def: Omit<DocumentViewDef, \"type\">): DocumentViewDef {\n return { type: \"document\", ...def };\n}\n\nexport function definePipelineView(def: Omit<OonPipelineViewDef, \"type\">): OonPipelineViewDef {\n return { type: \"pipeline\", ...def };\n}\n\nexport function defineDashboard(def: Omit<DashboardViewDef, \"type\">): DashboardViewDef {\n return { type: \"dashboard\", ...def };\n}\n\n/** Açúcar para declarar um módulo com tipagem. */\nexport function defineOonModule(mod: OonModule): OonModule {\n return mod;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,SAAS,qBAAqB,KAAyD;AAC5F,SAAO,EAAE,MAAM,cAAc,GAAG,IAAI;AACtC;AAEO,SAAS,mBAAmB,KAAqD;AACtF,SAAO,EAAE,MAAM,YAAY,GAAG,IAAI;AACpC;AAEO,SAAS,mBAAmB,KAA2D;AAC5F,SAAO,EAAE,MAAM,YAAY,GAAG,IAAI;AACpC;AAEO,SAAS,gBAAgB,KAAuD;AACrF,SAAO,EAAE,MAAM,aAAa,GAAG,IAAI;AACrC;AAGO,SAAS,gBAAgB,KAA2B;AACzD,SAAO;AACT;","names":[]}
|
package/dist/routing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { O as OonMenuItem, a as OonRoute, b as OonNavigationConfig } from './types-
|
|
2
|
+
import { O as OonMenuItem, a as OonRoute, b as OonNavigationConfig } from './types-B3Jx3E2D.js';
|
|
3
3
|
import './theme-Clhoswb3.js';
|
|
4
4
|
import '@chakra-ui/react';
|
|
5
5
|
|
package/dist/testing.d.ts
CHANGED
package/dist/testing.js
CHANGED
|
@@ -244,6 +244,9 @@ interface OonMenuItem {
|
|
|
244
244
|
hidden?: boolean;
|
|
245
245
|
action?: string;
|
|
246
246
|
renderer?: string;
|
|
247
|
+
/** Onda UX: nome de uma condição de `registry.menuConditions`; o item
|
|
248
|
+
* (ou a seção inteira, quando todos dependem dela) só aparece se ela for verdadeira. */
|
|
249
|
+
requires?: string;
|
|
247
250
|
}
|
|
248
251
|
type OonSchemaVersion = 2;
|
|
249
252
|
type OonSlotConfig = "core" | "none" | `custom:${string}`;
|
|
@@ -265,6 +268,9 @@ interface OonComponentRegistry {
|
|
|
265
268
|
actionRenderers?: Record<string, OonRendererComponent<any>>;
|
|
266
269
|
pageComponents?: Record<string, OonRendererComponent<any>>;
|
|
267
270
|
menuRenderers?: Record<string, OonRendererComponent<any>>;
|
|
271
|
+
/** Hooks React sem argumentos que decidem a visibilidade de itens com `requires`.
|
|
272
|
+
* São chamados sempre na mesma ordem a cada render do menu. */
|
|
273
|
+
menuConditions?: Record<string, () => boolean | undefined>;
|
|
268
274
|
}
|
|
269
275
|
type OonNavigationMode = "auto" | "manual" | "mixed";
|
|
270
276
|
interface OonNavigationConfig {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@chakra-ui/react';
|
|
2
2
|
import * as react from 'react';
|
|
3
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-
|
|
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-B3Jx3E2D.js';
|
|
5
5
|
|
|
6
6
|
type OonRelatedGridCreateDef = {
|
|
7
7
|
enabled?: boolean;
|
|
@@ -334,4 +334,122 @@ declare function CoreConfirmAction({ label, confirmLabel, cancelLabel, tone, onC
|
|
|
334
334
|
onConfirm: () => void;
|
|
335
335
|
}): react.JSX.Element;
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
type CoreStatusKind = "contract" | "charge" | "publication" | "environment" | "entity";
|
|
338
|
+
type CoreStatusTone = "success" | "warning" | "danger" | "info" | "neutral";
|
|
339
|
+
interface CoreStatusView {
|
|
340
|
+
label: string;
|
|
341
|
+
tone: CoreStatusTone;
|
|
342
|
+
}
|
|
343
|
+
/** Maps an internal state to the shared label and tone. Unknown states stay
|
|
344
|
+
* neutral with a generic label; the raw value is never the label. */
|
|
345
|
+
declare function coreStatus(kind: CoreStatusKind, status: string | null | undefined): CoreStatusView;
|
|
346
|
+
declare function CoreStatusBadge({ kind, status, label, tone }: {
|
|
347
|
+
kind?: CoreStatusKind;
|
|
348
|
+
status?: string | null;
|
|
349
|
+
label?: string;
|
|
350
|
+
tone?: CoreStatusTone;
|
|
351
|
+
}): react.JSX.Element;
|
|
352
|
+
interface CoreKpi {
|
|
353
|
+
id: string;
|
|
354
|
+
label: string;
|
|
355
|
+
value: ReactNode;
|
|
356
|
+
hint?: string;
|
|
357
|
+
tone?: CoreStatusTone;
|
|
358
|
+
href?: string;
|
|
359
|
+
}
|
|
360
|
+
declare function CoreKpiGrid({ items, loading }: {
|
|
361
|
+
items: CoreKpi[];
|
|
362
|
+
loading?: boolean;
|
|
363
|
+
}): react.JSX.Element;
|
|
364
|
+
declare function CoreEmpty({ title, description, action }: {
|
|
365
|
+
title: string;
|
|
366
|
+
description?: string;
|
|
367
|
+
action?: ReactNode;
|
|
368
|
+
}): react.JSX.Element;
|
|
369
|
+
interface CoreTableColumn<T> {
|
|
370
|
+
key: string;
|
|
371
|
+
header: string;
|
|
372
|
+
render?: (row: T) => ReactNode;
|
|
373
|
+
width?: string;
|
|
374
|
+
hideOnMobile?: boolean;
|
|
375
|
+
}
|
|
376
|
+
interface CoreDataTableProps<T> {
|
|
377
|
+
columns: CoreTableColumn<T>[];
|
|
378
|
+
rows: T[];
|
|
379
|
+
rowKey: (row: T) => string;
|
|
380
|
+
loading?: boolean;
|
|
381
|
+
error?: ReactNode;
|
|
382
|
+
empty?: ReactNode;
|
|
383
|
+
search?: {
|
|
384
|
+
value: string;
|
|
385
|
+
onChange: (value: string) => void;
|
|
386
|
+
placeholder?: string;
|
|
387
|
+
};
|
|
388
|
+
filters?: ReactNode;
|
|
389
|
+
onRowClick?: (row: T) => void;
|
|
390
|
+
selectedKey?: string | null;
|
|
391
|
+
paging?: {
|
|
392
|
+
page: number;
|
|
393
|
+
pageSize: number;
|
|
394
|
+
total?: number;
|
|
395
|
+
hasNext?: boolean;
|
|
396
|
+
onPage: (page: number) => void;
|
|
397
|
+
};
|
|
398
|
+
label: string;
|
|
399
|
+
}
|
|
400
|
+
declare function CoreDataTable<T>({ columns, rows, rowKey, loading, error, empty, search, filters, onRowClick, selectedKey, paging, label }: CoreDataTableProps<T>): react.JSX.Element;
|
|
401
|
+
declare function CoreDetailDrawer({ open, onClose, title, status, tabs, actions, children }: {
|
|
402
|
+
open: boolean;
|
|
403
|
+
onClose: () => void;
|
|
404
|
+
title: ReactNode;
|
|
405
|
+
status?: ReactNode;
|
|
406
|
+
tabs?: Array<{
|
|
407
|
+
id: string;
|
|
408
|
+
label: string;
|
|
409
|
+
content: ReactNode;
|
|
410
|
+
}>;
|
|
411
|
+
actions?: ReactNode;
|
|
412
|
+
children?: ReactNode;
|
|
413
|
+
}): react.JSX.Element;
|
|
414
|
+
declare function CoreConfirmDialog({ open, title, effect, confirmLabel, cancelLabel, tone, busy, onConfirm, onClose }: {
|
|
415
|
+
open: boolean;
|
|
416
|
+
title: string;
|
|
417
|
+
effect: ReactNode;
|
|
418
|
+
confirmLabel?: string;
|
|
419
|
+
cancelLabel?: string;
|
|
420
|
+
tone?: "danger" | "neutral";
|
|
421
|
+
busy?: boolean;
|
|
422
|
+
onConfirm: () => void;
|
|
423
|
+
onClose: () => void;
|
|
424
|
+
}): react.JSX.Element;
|
|
425
|
+
declare function CoreTechnicalDetails({ items, label }: {
|
|
426
|
+
items: Array<{
|
|
427
|
+
label: string;
|
|
428
|
+
value?: string | number | null;
|
|
429
|
+
}>;
|
|
430
|
+
label?: string;
|
|
431
|
+
}): react.JSX.Element | null;
|
|
432
|
+
declare function CoreFormSection({ title, description, children, onSave, saving, saveLabel, disabled }: {
|
|
433
|
+
title: string;
|
|
434
|
+
description?: string;
|
|
435
|
+
children: ReactNode;
|
|
436
|
+
onSave?: () => void;
|
|
437
|
+
saving?: boolean;
|
|
438
|
+
saveLabel?: string;
|
|
439
|
+
disabled?: boolean;
|
|
440
|
+
}): react.JSX.Element;
|
|
441
|
+
declare function CoreOrganizationSwitcher({ organizations, value, onChange, allLabel, label }: {
|
|
442
|
+
organizations: Array<{
|
|
443
|
+
id: string;
|
|
444
|
+
name: string;
|
|
445
|
+
}>;
|
|
446
|
+
value: string | null;
|
|
447
|
+
onChange: (id: string | null) => void;
|
|
448
|
+
/** When given, an "all organizations" option (value null) is offered. */
|
|
449
|
+
allLabel?: string;
|
|
450
|
+
label?: string;
|
|
451
|
+
}): react.JSX.Element | null;
|
|
452
|
+
/** Initials for the user avatar (no image needed). */
|
|
453
|
+
declare function coreInitials(name?: string | null): string;
|
|
454
|
+
|
|
455
|
+
export { type CoreStatusTone as A, type CoreStatusView as B, CoreActions as C, type CoreTableColumn as D, CoreTechnicalDetails as E, CoreToolbar as F, CoreTransactionalEmail as G, CoreUsersAccess as H, type OonPipelineActionDef as I, type OonPipelineActionGroup as J, type OonPipelineActionTone as K, type OonPipelineDefaultActionsConfig as L, type OonPipelineDefaultActionsDef as M, type OonPipelineTicketModalConfig as N, type OonPipelineViewDef as O, coreInitials as P, coreStatus as Q, CoreActivityLog as R, CoreConfirmAction as S, CoreErrorState as T, CoreStatusPanel as U, CoreStepper as V, CoreSummaryCards as W, CoreTabs as X, CoreTimeline as Y, CoreAssistant as a, CoreCards as b, CoreCollection as c, CoreConfirmDialog as d, CoreCurrency as e, CoreDashboard as f, CoreDataGrid as g, CoreDataTable as h, type CoreDataTableProps as i, CoreDetailDrawer as j, CoreDocument as k, CoreEmpty as l, CoreEmptyState as m, CoreField as n, CoreForm as o, CoreFormSection as p, type CoreKpi as q, CoreKpiGrid as r, CoreLoadingState as s, CoreOrganizationSwitcher as t, CorePage as u, CorePageHeader as v, CorePipeline as w, CoreRelationField as x, CoreStatusBadge as y, type CoreStatusKind as z };
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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,
|
|
2
|
+
export { C as CoreActions, R as CoreActivityLog, a as CoreAssistant, b as CoreCards, c as CoreCollection, S as CoreConfirmAction, d as CoreConfirmDialog, e as CoreCurrency, f as CoreDashboard, g as CoreDataGrid, h as CoreDataTable, i as CoreDataTableProps, j as CoreDetailDrawer, k as CoreDocument, l as CoreEmpty, m as CoreEmptyState, T as CoreErrorState, n as CoreField, o as CoreForm, p as CoreFormSection, q as CoreKpi, r as CoreKpiGrid, s as CoreLoadingState, t as CoreOrganizationSwitcher, u as CorePage, v as CorePageHeader, w as CorePipeline, x as CoreRelationField, y as CoreStatusBadge, z as CoreStatusKind, U as CoreStatusPanel, A as CoreStatusTone, B as CoreStatusView, V as CoreStepper, W as CoreSummaryCards, D as CoreTableColumn, X as CoreTabs, E as CoreTechnicalDetails, Y as CoreTimeline, F as CoreToolbar, G as CoreTransactionalEmail, H as CoreUsersAccess, P as coreInitials, Q as coreStatus } from './ui-BINoL8b6.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-B3Jx3E2D.js';
|
|
5
5
|
import './theme-Clhoswb3.js';
|
package/dist/ui.js
CHANGED
|
@@ -1,34 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CoreAssistant,
|
|
3
3
|
CoreCurrency
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FFGVRTVH.js";
|
|
5
5
|
import {
|
|
6
6
|
CoreActions,
|
|
7
7
|
CoreActivityLog,
|
|
8
8
|
CoreCards,
|
|
9
9
|
CoreCollection,
|
|
10
10
|
CoreConfirmAction,
|
|
11
|
+
CoreConfirmDialog,
|
|
11
12
|
CoreDashboard,
|
|
12
13
|
CoreDataGrid,
|
|
14
|
+
CoreDataTable,
|
|
15
|
+
CoreDetailDrawer,
|
|
13
16
|
CoreDocument,
|
|
17
|
+
CoreEmpty,
|
|
14
18
|
CoreEmptyState,
|
|
15
19
|
CoreErrorState,
|
|
16
20
|
CoreField,
|
|
17
21
|
CoreForm,
|
|
22
|
+
CoreFormSection,
|
|
23
|
+
CoreKpiGrid,
|
|
18
24
|
CoreLoadingState,
|
|
25
|
+
CoreOrganizationSwitcher,
|
|
19
26
|
CorePage,
|
|
20
27
|
CorePageHeader,
|
|
21
28
|
CorePipeline,
|
|
22
29
|
CoreRelationField,
|
|
30
|
+
CoreStatusBadge,
|
|
23
31
|
CoreStatusPanel,
|
|
24
32
|
CoreStepper,
|
|
25
33
|
CoreSummaryCards,
|
|
26
34
|
CoreTabs,
|
|
35
|
+
CoreTechnicalDetails,
|
|
27
36
|
CoreTimeline,
|
|
28
37
|
CoreToolbar,
|
|
29
38
|
CoreTransactionalEmail,
|
|
30
|
-
CoreUsersAccess
|
|
31
|
-
|
|
39
|
+
CoreUsersAccess,
|
|
40
|
+
coreInitials,
|
|
41
|
+
coreStatus
|
|
42
|
+
} from "./chunk-TWOOUSQ6.js";
|
|
32
43
|
import "./chunk-ALZCHGGI.js";
|
|
33
44
|
import "./chunk-Z4NC63HJ.js";
|
|
34
45
|
import "./chunk-V6TY7KAL.js";
|
|
@@ -52,23 +63,32 @@ export {
|
|
|
52
63
|
CoreCards,
|
|
53
64
|
CoreCollection,
|
|
54
65
|
CoreConfirmAction,
|
|
66
|
+
CoreConfirmDialog,
|
|
55
67
|
CoreCurrency,
|
|
56
68
|
CoreDashboard,
|
|
57
69
|
CoreDataGrid,
|
|
70
|
+
CoreDataTable,
|
|
71
|
+
CoreDetailDrawer,
|
|
58
72
|
CoreDocument,
|
|
73
|
+
CoreEmpty,
|
|
59
74
|
CoreEmptyState,
|
|
60
75
|
CoreErrorState,
|
|
61
76
|
CoreField,
|
|
62
77
|
CoreForm,
|
|
78
|
+
CoreFormSection,
|
|
79
|
+
CoreKpiGrid,
|
|
63
80
|
CoreLoadingState,
|
|
81
|
+
CoreOrganizationSwitcher,
|
|
64
82
|
CorePage,
|
|
65
83
|
CorePageHeader,
|
|
66
84
|
CorePipeline,
|
|
67
85
|
CoreRelationField,
|
|
86
|
+
CoreStatusBadge,
|
|
68
87
|
CoreStatusPanel,
|
|
69
88
|
CoreStepper,
|
|
70
89
|
CoreSummaryCards,
|
|
71
90
|
CoreTabs,
|
|
91
|
+
CoreTechnicalDetails,
|
|
72
92
|
CoreTimeline,
|
|
73
93
|
CoreToolbar,
|
|
74
94
|
CoreTransactionalEmail,
|
|
@@ -81,6 +101,8 @@ export {
|
|
|
81
101
|
Input as OonInput,
|
|
82
102
|
Dialog as OonModal,
|
|
83
103
|
NativeSelect as OonSelect,
|
|
84
|
-
Stack as OonStack
|
|
104
|
+
Stack as OonStack,
|
|
105
|
+
coreInitials,
|
|
106
|
+
coreStatus
|
|
85
107
|
};
|
|
86
108
|
//# sourceMappingURL=ui.js.map
|
package/dist/ui.js.map
CHANGED
|
@@ -1 +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":"
|
|
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\";\nexport * from \"./components/ui-v2/CoreKit\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,EACY;AAAA,EACD;AAAA,EACO;AAAA,EACR;AAAA,EACC;AAAA,EACD;AAAA,EACC;AAAA,EACC;AAAA,EACA;AAAA,OACL;","names":[]}
|