@rytass/bpm-core-react 0.17.0 → 0.17.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/CHANGELOG.md +13 -0
- package/dist/chunks/admin-pickers-BRHk3qKq.cjs +2 -0
- package/dist/chunks/admin-pickers-BRHk3qKq.cjs.map +1 -0
- package/dist/chunks/{admin-pickers-DxhzECkD.js → admin-pickers-Djq3h-UR.js} +41 -39
- package/dist/chunks/admin-pickers-Djq3h-UR.js.map +1 -0
- package/dist/chunks/{categories-DjENouRm.cjs → categories-AxxhqjLZ.cjs} +2 -2
- package/dist/chunks/{categories-DjENouRm.cjs.map → categories-AxxhqjLZ.cjs.map} +1 -1
- package/dist/chunks/{categories-1gKxeEqw.js → categories-riC33J_j.js} +2 -2
- package/dist/chunks/{categories-1gKxeEqw.js.map → categories-riC33J_j.js.map} +1 -1
- package/dist/chunks/{compose-DZ7RKvUp.cjs → compose-B7TtrpQJ.cjs} +2 -2
- package/dist/chunks/{compose-DZ7RKvUp.cjs.map → compose-B7TtrpQJ.cjs.map} +1 -1
- package/dist/chunks/{compose-Crklayzy.js → compose-_pREPtfN.js} +2 -2
- package/dist/chunks/{compose-Crklayzy.js.map → compose-_pREPtfN.js.map} +1 -1
- package/dist/chunks/{designer-D9eFma1W.js → designer-BiywgNXs.js} +2 -2
- package/dist/chunks/{designer-D9eFma1W.js.map → designer-BiywgNXs.js.map} +1 -1
- package/dist/chunks/{designer-sJGTGYOf.cjs → designer-ttAqv859.cjs} +2 -2
- package/dist/chunks/{designer-sJGTGYOf.cjs.map → designer-ttAqv859.cjs.map} +1 -1
- package/dist/chunks/{orgs-Dr0FFoZo.cjs → orgs-C8usknWb.cjs} +2 -2
- package/dist/chunks/{orgs-Dr0FFoZo.cjs.map → orgs-C8usknWb.cjs.map} +1 -1
- package/dist/chunks/{orgs-CY0i1fie.js → orgs-Lg7tXv2u.js} +2 -2
- package/dist/chunks/{orgs-CY0i1fie.js.map → orgs-Lg7tXv2u.js.map} +1 -1
- package/dist/chunks/{users-BCyePbwB.js → users-DRbuDYF1.js} +2 -2
- package/dist/chunks/{users-BCyePbwB.js.map → users-DRbuDYF1.js.map} +1 -1
- package/dist/chunks/{users-DVBJluFR.cjs → users-DVQicZIo.cjs} +2 -2
- package/dist/chunks/{users-DVBJluFR.cjs.map → users-DVQicZIo.cjs.map} +1 -1
- package/dist/components/admin-pickers.d.cts +65 -0
- package/dist/components/approval-instance-list-page.d.cts +17 -0
- package/dist/components/bpm-form-field.d.cts +10 -0
- package/dist/components/bpm-notification-bell-button.d.cts +22 -0
- package/dist/components/dashboard-page.d.cts +7 -0
- package/dist/components/notification-drawer.d.cts +11 -0
- package/dist/components/org-unit-tree-draft-editor.d.cts +24 -0
- package/dist/components/org-unit-tree-draft-editor.d.ts +1 -1
- package/dist/components/pdf-preview.d.cts +12 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +15 -0
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -1
- package/dist/lib/auth-provider.d.cts +37 -0
- package/dist/lib/format-date-time.d.cts +5 -0
- package/dist/lib/format-member-label.d.cts +12 -0
- package/dist/lib/member-profile-resolution.d.cts +48 -0
- package/dist/lib/notification-drawer-provider.d.cts +27 -0
- package/dist/lib/notification-unread-provider.d.cts +25 -0
- package/dist/lib/org-tree-draft.d.cts +27 -0
- package/dist/lib/providers.d.cts +31 -0
- package/dist/lib/router-adapter.d.cts +47 -0
- package/dist/lib/routes-config.d.cts +117 -0
- package/dist/lib/task-node-label.d.cts +10 -0
- package/dist/lib/use-bpm-logout.d.cts +12 -0
- package/dist/lib/use-bpm-member.d.cts +17 -0
- package/dist/next/BPMNextProviders.d.cts +51 -0
- package/dist/next/index.d.cts +2 -0
- package/dist/next/index.d.ts +2 -2
- package/dist/next/workflow-chat-route.d.cts +17 -0
- package/dist/pages/admin/delegations/index.d.cts +4 -0
- package/dist/pages/admin/orgs/index.cjs +1 -1
- package/dist/pages/admin/orgs/index.d.cts +4 -0
- package/dist/pages/admin/orgs/index.js +1 -1
- package/dist/pages/admin/users/index.cjs +1 -1
- package/dist/pages/admin/users/index.d.cts +4 -0
- package/dist/pages/admin/users/index.js +1 -1
- package/dist/pages/admin/webhook-endpoints/index.d.cts +4 -0
- package/dist/pages/cc/index.d.cts +16 -0
- package/dist/pages/dashboard/index.d.cts +16 -0
- package/dist/pages/delegations/index.d.cts +4 -0
- package/dist/pages/inbox/index.d.cts +16 -0
- package/dist/pages/instances/detail/index.d.cts +23 -0
- package/dist/pages/instances/new/index.d.cts +20 -0
- package/dist/pages/login/index.d.cts +21 -0
- package/dist/pages/root/index.d.cts +18 -0
- package/dist/pages/search/index.d.cts +16 -0
- package/dist/pages/sent/index.d.cts +16 -0
- package/dist/pages/settings/notifications/index.d.cts +4 -0
- package/dist/pages/templates/categories/index.cjs +1 -1
- package/dist/pages/templates/categories/index.d.cts +4 -0
- package/dist/pages/templates/categories/index.js +1 -1
- package/dist/pages/templates/compose/index.cjs +1 -1
- package/dist/pages/templates/compose/index.d.cts +25 -0
- package/dist/pages/templates/compose/index.js +1 -1
- package/dist/pages/templates/designer/index.cjs +1 -1
- package/dist/pages/templates/designer/index.d.cts +8 -0
- package/dist/pages/templates/designer/index.js +1 -1
- package/dist/pages/templates/index.d.cts +4 -0
- package/dist/pages/templates/versions/index.d.cts +8 -0
- package/dist/views/admin/delegations/AdminDelegationsView.d.cts +2 -0
- package/dist/views/admin/delegations/index.d.cts +1 -0
- package/dist/views/admin/delegations/index.d.ts +1 -1
- package/dist/views/admin/index.cjs +1 -1
- package/dist/views/admin/index.d.cts +4 -0
- package/dist/views/admin/index.d.ts +4 -4
- package/dist/views/admin/index.js +2 -2
- package/dist/views/admin/orgs/AdminOrgsView.d.cts +2 -0
- package/dist/views/admin/orgs/index.cjs +1 -1
- package/dist/views/admin/orgs/index.d.cts +1 -0
- package/dist/views/admin/orgs/index.d.ts +1 -1
- package/dist/views/admin/orgs/index.js +1 -1
- package/dist/views/admin/users/AdminUsersView.d.cts +2 -0
- package/dist/views/admin/users/MemberTaskReassignModal.d.cts +13 -0
- package/dist/views/admin/users/index.cjs +1 -1
- package/dist/views/admin/users/index.d.cts +1 -0
- package/dist/views/admin/users/index.d.ts +1 -1
- package/dist/views/admin/users/index.js +1 -1
- package/dist/views/admin/webhook-endpoints/AdminWebhookEndpointsView.d.cts +8 -0
- package/dist/views/admin/webhook-endpoints/index.d.cts +1 -0
- package/dist/views/admin/webhook-endpoints/index.d.ts +1 -1
- package/dist/views/cc/CcView.d.cts +7 -0
- package/dist/views/cc/index.d.cts +1 -0
- package/dist/views/cc/index.d.ts +1 -1
- package/dist/views/dashboard/DashboardView.d.cts +7 -0
- package/dist/views/dashboard/index.d.cts +1 -0
- package/dist/views/dashboard/index.d.ts +1 -1
- package/dist/views/delegations/DelegationsView.d.cts +2 -0
- package/dist/views/delegations/index.d.cts +1 -0
- package/dist/views/delegations/index.d.ts +1 -1
- package/dist/views/forms/builder/FormBuilderView.d.cts +18 -0
- package/dist/views/forms/builder/index.d.cts +1 -0
- package/dist/views/forms/builder/index.d.ts +1 -1
- package/dist/views/forms/builder/json-code-editor.d.cts +11 -0
- package/dist/views/forms/renderer/FormRendererView.d.cts +24 -0
- package/dist/views/forms/renderer/FormRendererView.d.ts +1 -1
- package/dist/views/forms/renderer/form-data-source-field.d.cts +65 -0
- package/dist/views/forms/renderer/form-field-link.d.cts +16 -0
- package/dist/views/forms/renderer/index.d.cts +2 -0
- package/dist/views/forms/renderer/index.d.ts +2 -2
- package/dist/views/forms/renderer/member-field-options.d.cts +39 -0
- package/dist/views/forms/renderer/member-field.d.cts +21 -0
- package/dist/views/inbox/InboxView.d.cts +7 -0
- package/dist/views/inbox/index.d.cts +1 -0
- package/dist/views/inbox/index.d.ts +1 -1
- package/dist/views/instances/detail/InstanceDetailView.d.cts +27 -0
- package/dist/views/instances/detail/index.d.cts +7 -0
- package/dist/views/instances/detail/index.d.ts +7 -7
- package/dist/views/instances/detail/sections/InstanceAttachmentsSection.d.cts +15 -0
- package/dist/views/instances/detail/sections/InstanceFormSection.d.cts +36 -0
- package/dist/views/instances/detail/sections/InstanceFormSection.d.ts +1 -1
- package/dist/views/instances/detail/sections/InstanceHistorySection.d.cts +29 -0
- package/dist/views/instances/detail/sections/InstanceSignaturesSection.d.cts +14 -0
- package/dist/views/instances/detail/sections/InstanceTasksSection.d.cts +55 -0
- package/dist/views/instances/detail/sections/InstanceWebhookDeliveriesSection.d.cts +20 -0
- package/dist/views/instances/detail/sections/container-helpers.d.cts +10 -0
- package/dist/views/instances/detail/sections/container-helpers.d.ts +1 -1
- package/dist/views/instances/detail/sections/shared.d.cts +141 -0
- package/dist/views/instances/detail/submitted-by.d.cts +23 -0
- package/dist/views/instances/index.d.cts +1 -0
- package/dist/views/instances/index.d.ts +1 -1
- package/dist/views/instances/new/InstanceNewView.d.cts +15 -0
- package/dist/views/instances/new/index.d.cts +1 -0
- package/dist/views/instances/new/index.d.ts +1 -1
- package/dist/views/login/LoginView.d.cts +47 -0
- package/dist/views/login/index.d.cts +1 -0
- package/dist/views/login/index.d.ts +1 -1
- package/dist/views/root/RootView.d.cts +10 -0
- package/dist/views/root/index.d.cts +1 -0
- package/dist/views/root/index.d.ts +1 -1
- package/dist/views/search/SearchView.d.cts +7 -0
- package/dist/views/search/index.d.cts +1 -0
- package/dist/views/search/index.d.ts +1 -1
- package/dist/views/sent/SentView.d.cts +7 -0
- package/dist/views/sent/index.d.cts +1 -0
- package/dist/views/sent/index.d.ts +1 -1
- package/dist/views/settings/index.d.cts +1 -0
- package/dist/views/settings/index.d.ts +1 -1
- package/dist/views/settings/notifications/SettingsNotificationsView.d.cts +2 -0
- package/dist/views/settings/notifications/index.d.cts +1 -0
- package/dist/views/settings/notifications/index.d.ts +1 -1
- package/dist/views/templates/TemplatesView.d.cts +7 -0
- package/dist/views/templates/categories/TemplateCategoriesView.d.cts +2 -0
- package/dist/views/templates/categories/index.cjs +1 -1
- package/dist/views/templates/categories/index.d.cts +1 -0
- package/dist/views/templates/categories/index.d.ts +1 -1
- package/dist/views/templates/categories/index.js +1 -1
- package/dist/views/templates/compose/TemplateComposeWizardView.d.cts +21 -0
- package/dist/views/templates/compose/index.cjs +1 -1
- package/dist/views/templates/compose/index.d.cts +2 -0
- package/dist/views/templates/compose/index.d.ts +2 -2
- package/dist/views/templates/compose/index.js +1 -1
- package/dist/views/templates/compose/steps/ComposeFormStep.d.cts +15 -0
- package/dist/views/templates/compose/steps/ComposeReviewStep.d.cts +12 -0
- package/dist/views/templates/compose/steps/ComposeWorkflowStep.d.cts +22 -0
- package/dist/views/templates/compose/use-template-compose-wizard.d.cts +46 -0
- package/dist/views/templates/designer/NotifyWebhookTargetsEditor.d.cts +20 -0
- package/dist/views/templates/designer/NotifyWebhookTargetsEditor.d.ts +1 -1
- package/dist/views/templates/designer/TemplateDesignerView.d.cts +65 -0
- package/dist/views/templates/designer/chrome-workflow-chat.d.cts +12 -0
- package/dist/views/templates/designer/chrome-workflow-chat.d.ts +1 -1
- package/dist/views/templates/designer/decision-policy-options.d.cts +8 -0
- package/dist/views/templates/designer/designer-version-labels.d.cts +12 -0
- package/dist/views/templates/designer/dry-run-assignee-label.d.cts +28 -0
- package/dist/views/templates/designer/dry-run-sample-data.d.cts +9 -0
- package/dist/views/templates/designer/dynamic-form-resolver-options.d.cts +35 -0
- package/dist/views/templates/designer/index.cjs +1 -1
- package/dist/views/templates/designer/index.d.cts +1 -0
- package/dist/views/templates/designer/index.d.ts +1 -1
- package/dist/views/templates/designer/index.js +1 -1
- package/dist/views/templates/designer/notify-webhook-designer.d.cts +74 -0
- package/dist/views/templates/designer/position-level-options.d.cts +17 -0
- package/dist/views/templates/designer/use-workflow-chat.d.cts +21 -0
- package/dist/views/templates/designer/use-workflow-chat.d.ts +1 -1
- package/dist/views/templates/designer/use-workflow-designer-controller.d.cts +41 -0
- package/dist/views/templates/designer/workflow-chat-drawer.d.cts +16 -0
- package/dist/views/templates/designer/workflow-chat-drawer.d.ts +1 -1
- package/dist/views/templates/index.cjs +1 -1
- package/dist/views/templates/index.d.cts +3 -0
- package/dist/views/templates/index.d.ts +3 -3
- package/dist/views/templates/index.js +1 -1
- package/dist/views/templates/versions/TemplateVersionsView.d.cts +5 -0
- package/dist/views/templates/versions/index.d.cts +1 -0
- package/dist/views/templates/versions/index.d.ts +1 -1
- package/dist/views/workflow/index.d.cts +4 -0
- package/dist/views/workflow/index.d.ts +4 -4
- package/package.json +387 -147
- package/dist/chunks/admin-pickers-DxhzECkD.js.map +0 -1
- package/dist/chunks/admin-pickers-qe3j--gX.cjs +0 -2
- package/dist/chunks/admin-pickers-qe3j--gX.cjs.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Next.js metadata for the BPM "cc" page. Consumers re-export this
|
|
5
|
+
* alongside the default page component.
|
|
6
|
+
*/
|
|
7
|
+
export declare const metadata: Metadata;
|
|
8
|
+
/**
|
|
9
|
+
* Drop-in Next.js App Router page for the BPM cc inbox. Usage in
|
|
10
|
+
* `app/cc/page.tsx`:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* export { default, metadata } from '@rytass/bpm-core-react/pages/cc';
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export default function CcPage(): ReactElement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Next.js metadata for the BPM dashboard page. Consumers re-export this
|
|
5
|
+
* alongside the default page component.
|
|
6
|
+
*/
|
|
7
|
+
export declare const metadata: Metadata;
|
|
8
|
+
/**
|
|
9
|
+
* Drop-in Next.js App Router page for the BPM dashboard. Usage in
|
|
10
|
+
* `app/dashboard/page.tsx`:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* export { default, metadata } from '@rytass/bpm-core-react/pages/dashboard';
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export default function DashboardPage(): ReactElement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Next.js metadata for the BPM inbox page. Consumers re-export this
|
|
5
|
+
* alongside the default page component.
|
|
6
|
+
*/
|
|
7
|
+
export declare const metadata: Metadata;
|
|
8
|
+
/**
|
|
9
|
+
* Drop-in Next.js App Router page for the BPM inbox. Usage in
|
|
10
|
+
* `app/inbox/page.tsx`:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* export { default, metadata } from '@rytass/bpm-core-react/pages/inbox';
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export default function InboxPage(): ReactElement;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Next.js metadata for the BPM instance detail page. Consumers re-export
|
|
5
|
+
* this alongside the default page component.
|
|
6
|
+
*/
|
|
7
|
+
export declare const metadata: Metadata;
|
|
8
|
+
/**
|
|
9
|
+
* Drop-in Next.js App Router page for the BPM instance detail screen.
|
|
10
|
+
* Accepts the standard App Router `params: Promise<{ id: string }>` shape
|
|
11
|
+
* and forwards the resolved `id` into the view as `instanceId`.
|
|
12
|
+
*
|
|
13
|
+
* Usage in `app/instances/[id]/page.tsx`:
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* export { default, metadata } from '@rytass/bpm-core-react/pages/instances/detail';
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export default function InstanceDetailPage({ params, }: {
|
|
20
|
+
readonly params: Promise<{
|
|
21
|
+
readonly id: string;
|
|
22
|
+
}>;
|
|
23
|
+
}): Promise<ReactElement>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Next.js metadata for the BPM "launch approval" page. Consumers re-export
|
|
5
|
+
* this alongside the default page component.
|
|
6
|
+
*/
|
|
7
|
+
export declare const metadata: Metadata;
|
|
8
|
+
/**
|
|
9
|
+
* Drop-in Next.js App Router page for the BPM launch screen. Usage in
|
|
10
|
+
* `app/instances/new/page.tsx`:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* export { default, metadata } from '@rytass/bpm-core-react/pages/instances/new';
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export default function InstanceNewPage({ searchParams, }: {
|
|
17
|
+
readonly searchParams: Promise<{
|
|
18
|
+
readonly templateId?: string;
|
|
19
|
+
}>;
|
|
20
|
+
}): Promise<ReactElement>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Next.js metadata for the BPM login page. Consumers re-export this
|
|
5
|
+
* alongside the default page component.
|
|
6
|
+
*/
|
|
7
|
+
export declare const metadata: Metadata;
|
|
8
|
+
/**
|
|
9
|
+
* Drop-in Next.js App Router page for the BPM login screen.
|
|
10
|
+
*
|
|
11
|
+
* Consumer usage in `app/login/page.tsx`:
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* export { default, metadata } from '@rytass/bpm-core-react/pages/login';
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export default function LoginPage({ searchParams, }: {
|
|
18
|
+
readonly searchParams: Promise<{
|
|
19
|
+
readonly next?: string;
|
|
20
|
+
}>;
|
|
21
|
+
}): Promise<ReactElement>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Next.js metadata for the BPM root path.
|
|
5
|
+
*/
|
|
6
|
+
export declare const metadata: Metadata;
|
|
7
|
+
/**
|
|
8
|
+
* Drop-in Next.js App Router page for the BPM root path. Server-side
|
|
9
|
+
* redirects to `/dashboard` — never renders any client tree, so it cannot
|
|
10
|
+
* pollute the chunk boundary with `'use client'`.
|
|
11
|
+
*
|
|
12
|
+
* Consumer usage in `app/page.tsx`:
|
|
13
|
+
*
|
|
14
|
+
* ```ts
|
|
15
|
+
* export { default, metadata } from '@rytass/bpm-core-react/pages/root';
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export default function RootPage(): ReactElement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Next.js metadata for the BPM case search page. Consumers re-export this
|
|
5
|
+
* alongside the default page component.
|
|
6
|
+
*/
|
|
7
|
+
export declare const metadata: Metadata;
|
|
8
|
+
/**
|
|
9
|
+
* Drop-in Next.js App Router page for the BPM case search. Usage in
|
|
10
|
+
* `app/search/page.tsx`:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* export { default, metadata } from '@rytass/bpm-core-react/pages/search';
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export default function SearchPage(): ReactElement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Next.js metadata for the BPM "sent" page. Consumers re-export this
|
|
5
|
+
* alongside the default page component.
|
|
6
|
+
*/
|
|
7
|
+
export declare const metadata: Metadata;
|
|
8
|
+
/**
|
|
9
|
+
* Drop-in Next.js App Router page for the BPM sent inbox. Usage in
|
|
10
|
+
* `app/sent/page.tsx`:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* export { default, metadata } from '@rytass/bpm-core-react/pages/sent';
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export default function SentPage(): ReactElement;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/categories-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/categories-AxxhqjLZ.cjs");let t=require("react/jsx-runtime");var n={title:`範本分類管理 | BPM Admin`,description:`維護 BPM 流程範本的分類設定。`};function r(){return(0,t.jsx)(e.t,{})}exports.default=r,exports.metadata=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/compose-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/compose-B7TtrpQJ.cjs");let t=require("react/jsx-runtime"),n=require("next/server");var r={title:`建立模板(表單 + 流程) | BPM Admin`,description:`以精靈式流程一次完成 BPM 表單與簽核流程設計並發佈。`};async function i(){return await(0,n.connection)(),(0,t.jsx)(e.t,{aiAssistantAvailable:!!process.env.OPENAI_API_KEY,showAiAssistant:process.env.BPM_AI_ASSISTANT_ENABLED===`true`})}exports.default=i,exports.metadata=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
export declare const metadata: Metadata;
|
|
4
|
+
/**
|
|
5
|
+
* Drop-in Next.js App Router page for the unified template wizard.
|
|
6
|
+
*
|
|
7
|
+
* Consumer usage in `app/templates/compose/page.tsx`:
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* export { default, metadata } from '@rytass/bpm-core-react/pages/templates/compose';
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* The Step 1 (流程設計) embedded designer offers the same opt-in AI assistant
|
|
14
|
+
* as the standalone designer page. `BPM_AI_ASSISTANT_ENABLED` shows the button;
|
|
15
|
+
* `OPENAI_API_KEY` decides whether it's usable (else a disabled placeholder).
|
|
16
|
+
* Both are server-only env on the Next.js host.
|
|
17
|
+
*
|
|
18
|
+
* `await connection()` opts this route out of static prerendering so those env
|
|
19
|
+
* vars are read at request time. They are NOT set during `next build` (only
|
|
20
|
+
* injected into the runtime container), so without this the flags would bake to
|
|
21
|
+
* `false` on a production build — unlike the `[id]` designer page, which is
|
|
22
|
+
* already dynamic by virtue of its route params. Survives the host's one-line
|
|
23
|
+
* re-export, so npm consumers don't need their own route-segment config.
|
|
24
|
+
*/
|
|
25
|
+
export default function TemplateComposePage(): Promise<ReactElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/compose-
|
|
1
|
+
import { t as e } from "../../../chunks/compose-_pREPtfN.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { connection as n } from "next/server";
|
|
4
4
|
//#region src/pages/templates/compose/index.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/designer-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../../../chunks/designer-ttAqv859.cjs");let t=require("react/jsx-runtime");var n={title:`流程設計器 | BPM Admin`,description:`以視覺化設計器編輯 BPM 簽核流程節點、條件與發佈版本。`};async function r({params:n}){let{id:r}=await n;return(0,t.jsx)(e.t,{aiAssistantAvailable:!!process.env.OPENAI_API_KEY,showAiAssistant:process.env.BPM_AI_ASSISTANT_ENABLED===`true`,showDryRun:process.env.BPM_TEMPLATE_DRY_RUN_ENABLED!==`false`,templateId:r})}exports.default=r,exports.metadata=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AdminDelegationsView.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './AdminDelegationsView';
|
|
1
|
+
export * from './AdminDelegationsView.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/users-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/users-DVQicZIo.cjs"),t=require("../../chunks/orgs-C8usknWb.cjs"),n=require("../../chunks/delegations-V9HIe3_P.cjs"),r=require("./webhook-endpoints/index.cjs");exports.AdminDelegationsView=n.t,exports.AdminOrgsView=t.t,exports.AdminUsersView=e.t,exports.AdminWebhookEndpointsView=r.AdminWebhookEndpointsView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './users';
|
|
2
|
-
export * from './orgs';
|
|
3
|
-
export * from './delegations';
|
|
4
|
-
export * from './webhook-endpoints';
|
|
1
|
+
export * from './users/index.js';
|
|
2
|
+
export * from './orgs/index.js';
|
|
3
|
+
export * from './delegations/index.js';
|
|
4
|
+
export * from './webhook-endpoints/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../../chunks/users-
|
|
2
|
-
import { t } from "../../chunks/orgs-
|
|
1
|
+
import { t as e } from "../../chunks/users-DRbuDYF1.js";
|
|
2
|
+
import { t } from "../../chunks/orgs-Lg7tXv2u.js";
|
|
3
3
|
import { t as n } from "../../chunks/delegations-xUt1tj8d.js";
|
|
4
4
|
import { AdminWebhookEndpointsView as r } from "./webhook-endpoints/index.js";
|
|
5
5
|
export { n as AdminDelegationsView, t as AdminOrgsView, e as AdminUsersView, r as AdminWebhookEndpointsView };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../chunks/orgs-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../chunks/orgs-C8usknWb.cjs");exports.AdminOrgsView=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AdminOrgsView.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './AdminOrgsView';
|
|
1
|
+
export * from './AdminOrgsView.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as AdminOrgsView } from "../../../chunks/orgs-
|
|
1
|
+
export { t as AdminOrgsView } from "../../../chunks/orgs-Lg7tXv2u.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { MemberProfileRecord } from '@rytass/bpm-core-client';
|
|
3
|
+
/**
|
|
4
|
+
* Administrator reassignment of a member's open tasks. Lists what the member
|
|
5
|
+
* holds, takes a target and a reason, previews every task's outcome (dry run),
|
|
6
|
+
* and only then commits. Confirm stays disabled until the preview matches the
|
|
7
|
+
* current target and reason. Replacing a seat is not a decision: no signature
|
|
8
|
+
* is written, and the task keeps its id.
|
|
9
|
+
*/
|
|
10
|
+
export declare function MemberTaskReassignModal({ member, onClose, }: {
|
|
11
|
+
readonly member: MemberProfileRecord | null;
|
|
12
|
+
readonly onClose: () => void;
|
|
13
|
+
}): ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../chunks/users-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../chunks/users-DVQicZIo.cjs");exports.AdminUsersView=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AdminUsersView.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './AdminUsersView';
|
|
1
|
+
export * from './AdminUsersView.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as AdminUsersView } from "../../../chunks/users-
|
|
1
|
+
export { t as AdminUsersView } from "../../../chunks/users-DRbuDYF1.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Back-office management of database webhook endpoints (ADR 18 §3.13):
|
|
4
|
+
* create, edit, disable, rotate the signing secret, test-send and read the
|
|
5
|
+
* change history. Header values and secrets are entered here and never shown
|
|
6
|
+
* again. Administrator-only on the server.
|
|
7
|
+
*/
|
|
8
|
+
export declare function AdminWebhookEndpointsView(): ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AdminWebhookEndpointsView.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './AdminWebhookEndpointsView';
|
|
1
|
+
export * from './AdminWebhookEndpointsView.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CcView.cjs';
|
package/dist/views/cc/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './CcView';
|
|
1
|
+
export * from './CcView.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Framework-agnostic view for the BPM dashboard. Delegates to the shared
|
|
4
|
+
* `<DashboardPage>` component. Mechanical port of
|
|
5
|
+
* `apps/client/src/app/dashboard/page.tsx`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function DashboardView(): ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DashboardView.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './DashboardView';
|
|
1
|
+
export * from './DashboardView.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DelegationsView.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './DelegationsView';
|
|
1
|
+
export * from './DelegationsView.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { FormDefinitionSchema, FormUiSchema } from '@rytass/bpm-core-shared/form';
|
|
3
|
+
export interface FormBuilderViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* Initial (or controlled) schema value.
|
|
6
|
+
* If omitted, the builder starts with empty schema / uiSchema.
|
|
7
|
+
*/
|
|
8
|
+
readonly value?: {
|
|
9
|
+
readonly schema: FormDefinitionSchema;
|
|
10
|
+
readonly uiSchema: FormUiSchema;
|
|
11
|
+
};
|
|
12
|
+
/** Called whenever the schema or uiSchema changes. */
|
|
13
|
+
readonly onChange?: (next: {
|
|
14
|
+
readonly schema: FormDefinitionSchema;
|
|
15
|
+
readonly uiSchema: FormUiSchema;
|
|
16
|
+
}) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function FormBuilderView({ onChange, value, }: FormBuilderViewProps): ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormBuilderView.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './FormBuilderView';
|
|
1
|
+
export * from './FormBuilderView.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
interface JsonCodeEditorProps {
|
|
3
|
+
readonly disabled?: boolean;
|
|
4
|
+
readonly height: string;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly onChange: (value: string) => void;
|
|
7
|
+
readonly placeholder: string;
|
|
8
|
+
readonly value: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function JsonCodeEditor({ disabled, height, name, onChange, placeholder, value, }: JsonCodeEditorProps): ReactElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CSSProperties, ReactElement } from 'react';
|
|
2
|
+
import { FormDataSourceValueSnapshots, FormDefinitionSchema, FormFieldDefinition, FormUiSchema } from '@rytass/bpm-core-shared/form';
|
|
3
|
+
import { FormRendererValues } from '@rytass/bpm-core-client/form';
|
|
4
|
+
import { FormDataSourceFieldState, FormRendererDataSourceContext } from './form-data-source-field.cjs';
|
|
5
|
+
export interface FormRendererProps {
|
|
6
|
+
readonly dataSourceContext?: FormRendererDataSourceContext;
|
|
7
|
+
readonly dataSourceInitialValues?: FormRendererValues;
|
|
8
|
+
readonly emptyText?: string;
|
|
9
|
+
readonly errors?: Readonly<Record<string, string>>;
|
|
10
|
+
readonly maxWidth?: CSSProperties['maxWidth'];
|
|
11
|
+
readonly onChange?: (values: FormRendererValues) => void;
|
|
12
|
+
readonly onDataSourceStateChange?: (fieldKey: string, state: Pick<FormDataSourceFieldState, 'hasValue' | 'invalidValues' | 'status'>) => void;
|
|
13
|
+
readonly onUploadAttachment?: (field: FormFieldDefinition, file: File) => Promise<{
|
|
14
|
+
readonly id: string;
|
|
15
|
+
}>;
|
|
16
|
+
readonly optionSnapshots?: FormDataSourceValueSnapshots;
|
|
17
|
+
readonly readonly?: boolean;
|
|
18
|
+
readonly schema: FormDefinitionSchema;
|
|
19
|
+
readonly singleColumn?: boolean;
|
|
20
|
+
readonly uiSchema: FormUiSchema;
|
|
21
|
+
readonly value?: FormRendererValues;
|
|
22
|
+
}
|
|
23
|
+
export declare function FormRenderer({ dataSourceContext, dataSourceInitialValues, emptyText, errors, maxWidth, onChange, onDataSourceStateChange, onUploadAttachment, optionSnapshots, readonly, schema, singleColumn, uiSchema, value, }: FormRendererProps): ReactElement;
|
|
24
|
+
export { FormRenderer as FormRendererView };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactElement } from 'react';
|
|
2
2
|
import { FormDataSourceValueSnapshots, FormDefinitionSchema, FormFieldDefinition, FormUiSchema } from '@rytass/bpm-core-shared/form';
|
|
3
3
|
import { FormRendererValues } from '@rytass/bpm-core-client/form';
|
|
4
|
-
import { FormDataSourceFieldState, FormRendererDataSourceContext } from './form-data-source-field';
|
|
4
|
+
import { FormDataSourceFieldState, FormRendererDataSourceContext } from './form-data-source-field.js';
|
|
5
5
|
export interface FormRendererProps {
|
|
6
6
|
readonly dataSourceContext?: FormRendererDataSourceContext;
|
|
7
7
|
readonly dataSourceInitialValues?: FormRendererValues;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { FormDataSourceValueSnapshots, FormDefinitionSchema, FormFieldDefinition, FormFieldOption, FormFieldValue, FormUiSchema } from '@rytass/bpm-core-shared/form';
|
|
2
|
+
import { FormDataSourceFieldStatus, FormRendererValues } from '@rytass/bpm-core-client/form';
|
|
3
|
+
export type FormRendererDataSourceContext = {
|
|
4
|
+
readonly kind: 'preview';
|
|
5
|
+
} | {
|
|
6
|
+
readonly instanceId?: string | null;
|
|
7
|
+
readonly kind: 'runtime';
|
|
8
|
+
readonly templateId?: string | null;
|
|
9
|
+
};
|
|
10
|
+
export interface FormDataSourceFieldState {
|
|
11
|
+
/**
|
|
12
|
+
* False when nothing can be re-requested — a read-only or context-less field
|
|
13
|
+
* has no query to retry, so the view must not offer a dead retry action.
|
|
14
|
+
*/
|
|
15
|
+
readonly canRetry: boolean;
|
|
16
|
+
readonly error: string | null;
|
|
17
|
+
readonly hasValue: boolean;
|
|
18
|
+
readonly hasNextPage: boolean;
|
|
19
|
+
readonly invalidValues: readonly string[];
|
|
20
|
+
readonly onReachBottom: () => void;
|
|
21
|
+
readonly onSearch: (searchText: string) => void;
|
|
22
|
+
readonly options: readonly FormFieldOption[];
|
|
23
|
+
readonly retry: () => void;
|
|
24
|
+
readonly status: FormDataSourceFieldStatus;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* What makes a table cell different from a top-level field: it is addressed by
|
|
28
|
+
* a schema path, snapshotted under an instance path, and its `ROW_FIELD`
|
|
29
|
+
* bindings read from its own row rather than the form (ADR 16 §3.3, §3.5).
|
|
30
|
+
*/
|
|
31
|
+
export interface UseFormDataSourceFieldRow {
|
|
32
|
+
/** The row as it was loaded, so a returned case can tell what changed. */
|
|
33
|
+
readonly initialValues?: FormRendererValues;
|
|
34
|
+
readonly values: FormRendererValues;
|
|
35
|
+
}
|
|
36
|
+
export interface UseFormDataSourceFieldInput {
|
|
37
|
+
readonly context?: FormRendererDataSourceContext;
|
|
38
|
+
readonly field: FormFieldDefinition;
|
|
39
|
+
/** Schema path used to address the field; defaults to its own key. */
|
|
40
|
+
readonly fieldPath?: string;
|
|
41
|
+
readonly formData: FormRendererValues;
|
|
42
|
+
readonly initialFormData?: FormRendererValues;
|
|
43
|
+
readonly initialValue?: FormFieldValue | undefined;
|
|
44
|
+
readonly optionSnapshots?: FormDataSourceValueSnapshots;
|
|
45
|
+
readonly readonly: boolean;
|
|
46
|
+
/** Set only for a table cell. */
|
|
47
|
+
readonly row?: UseFormDataSourceFieldRow;
|
|
48
|
+
readonly schema: FormDefinitionSchema;
|
|
49
|
+
/** Snapshot map key; defaults to the field key. */
|
|
50
|
+
readonly snapshotKey?: string;
|
|
51
|
+
readonly uiSchema: FormUiSchema;
|
|
52
|
+
}
|
|
53
|
+
export declare function useFormDataSourceField(input: UseFormDataSourceFieldInput): FormDataSourceFieldState;
|
|
54
|
+
export declare function readFormDataSourceFieldStatusMessage(state: FormDataSourceFieldState): string | null;
|
|
55
|
+
export declare function isFormDataSourceFieldSubmissionBlocked(state: Pick<FormDataSourceFieldState, 'hasValue' | 'status'>): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The copy to show when a submission is refused because of dynamic options.
|
|
58
|
+
* `LOADING` and `STALE` clear on their own once the pending query answers, so
|
|
59
|
+
* saying "finish validating" reads as a dead end for what is really a "wait a
|
|
60
|
+
* moment"; the caller would otherwise show the same permanent-sounding line for
|
|
61
|
+
* both cases.
|
|
62
|
+
*
|
|
63
|
+
* Returns `null` when nothing blocks the submission.
|
|
64
|
+
*/
|
|
65
|
+
export declare function readFormDataSourceSubmissionBlockMessage(states: readonly Pick<FormDataSourceFieldState, 'hasValue' | 'status'>[]): string | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface FormFieldLink {
|
|
2
|
+
/** Absolute links open in a new tab; site-relative ones stay in this tab. */
|
|
3
|
+
readonly external: boolean;
|
|
4
|
+
readonly href: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Decides whether a `displayAs: 'link'` text value may become an anchor.
|
|
8
|
+
* Returns `null` for everything that must stay plain text.
|
|
9
|
+
*
|
|
10
|
+
* Allowed: a site-relative path (`/` first, never `//`) or an absolute
|
|
11
|
+
* `http(s)://` URL with a host and no embedded credentials. Everything else —
|
|
12
|
+
* `javascript:`, `data:`, protocol-relative `//host`, backslash tricks
|
|
13
|
+
* (`/\host` is `//host` to a browser), padded or multi-line values, non-strings
|
|
14
|
+
* — is refused rather than repaired.
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveFormFieldLink(value: unknown): FormFieldLink | null;
|