@nocobase/plugin-workflow-custom-action-trigger 2.0.3

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.
Files changed (48) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +99 -0
  3. package/client.d.ts +2 -0
  4. package/client.js +1 -0
  5. package/dist/client/CustomActionTrigger.d.ts +186 -0
  6. package/dist/client/components.d.ts +11 -0
  7. package/dist/client/flows.d.ts +25 -0
  8. package/dist/client/hooks.d.ts +20 -0
  9. package/dist/client/index.d.ts +22 -0
  10. package/dist/client/index.js +10 -0
  11. package/dist/client/initializers.d.ts +52 -0
  12. package/dist/client/locale.d.ts +11 -0
  13. package/dist/client/settings.d.ts +12 -0
  14. package/dist/common/constants.d.ts +20 -0
  15. package/dist/common/constants.js +65 -0
  16. package/dist/externalVersion.js +28 -0
  17. package/dist/index.d.ts +9 -0
  18. package/dist/index.js +42 -0
  19. package/dist/locale/de-DE.json +25 -0
  20. package/dist/locale/en-US.json +25 -0
  21. package/dist/locale/es-ES.json +25 -0
  22. package/dist/locale/fr-FR.json +25 -0
  23. package/dist/locale/hu-HU.json +25 -0
  24. package/dist/locale/id-ID.json +25 -0
  25. package/dist/locale/it-IT.json +25 -0
  26. package/dist/locale/ja-JP.json +25 -0
  27. package/dist/locale/ko-KR.json +25 -0
  28. package/dist/locale/nl-NL.json +25 -0
  29. package/dist/locale/pt-BR.json +25 -0
  30. package/dist/locale/ru-RU.json +25 -0
  31. package/dist/locale/tr-TR.json +25 -0
  32. package/dist/locale/uk-UA.json +25 -0
  33. package/dist/locale/vi-VN.json +25 -0
  34. package/dist/locale/zh-CN.json +25 -0
  35. package/dist/locale/zh-TW.json +25 -0
  36. package/dist/server/CustomActionTrigger.d.ts +25 -0
  37. package/dist/server/CustomActionTrigger.js +308 -0
  38. package/dist/server/Plugin.d.ts +13 -0
  39. package/dist/server/Plugin.js +56 -0
  40. package/dist/server/index.d.ts +9 -0
  41. package/dist/server/index.js +42 -0
  42. package/dist/server/migrations/20250212223011-add-config-type.d.ts +13 -0
  43. package/dist/server/migrations/20250212223011-add-config-type.js +62 -0
  44. package/dist/server/migrations/20250228142643-trigger-workflow-action-schema.d.ts +13 -0
  45. package/dist/server/migrations/20250228142643-trigger-workflow-action-schema.js +67 -0
  46. package/package.json +32 -0
  47. package/server.d.ts +2 -0
  48. package/server.js +1 -0
@@ -0,0 +1,25 @@
1
+ {
2
+ "Associations to use": "使用する関連データ",
3
+ "Binding scope": "バインディングスコープ",
4
+ "Button is not configured properly, please contact the administrator.": "ボタンの設定が正しくありません。管理者にご連絡ください。",
5
+ "Context type": "コンテキストタイプ",
6
+ "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.": "レコード関連外のアクションボタン(例:ワークベンチパネルやテーブルブロック内のボタン)で使用可能です。",
7
+ "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.": "複数レコード関連のアクションボタン(例:テーブルブロックのバッチ処理)でのみ使用可能です。トリガー変数のデータは配列形式になります。",
8
+ "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.": "単一レコード関連のアクションボタン(例:フォーム、詳細ブロック、テーブル行)でのみ使用可能です。",
9
+ "Custom action event": "カスタムアクションイベント",
10
+ "Different positions of the created trigger button can use different context types.": "トリガーボタンの配置場所によって、使用可能なコンテキストタイプが異なります。",
11
+ "Multiple collection records": "複数レコードデータ",
12
+ "None": "コンテキストなし",
13
+ "Only support custom action workflow with context type set to \"Multiple records\".": "コンテキストタイプ「複数レコード」が設定されたカスタムアクションワークフローのみサポートされます。",
14
+ "Only support custom action workflow with context type set to \"None\".": "コンテキストタイプ「なし」が設定されたカスタムアクションワークフローのみサポートされます。",
15
+ "Please select at least one record.": "最低1件のレコードを選択してください。",
16
+ "Role of user acted": "操作者ロール",
17
+ "Single collection record": "単一レコードデータ",
18
+ "Trigger data": "トリガーデータ",
19
+ "Trigger global workflow": "グローバルワークフローのトリガー",
20
+ "Trigger workflow": "ワークフローのトリガー",
21
+ "User acted": "操作者",
22
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.": "「ワークフロートリガー」ボタンクリック時、ボタンの配置コンテキストに基づきイベントが発生します。NocoBaseの標準CRUD操作では処理困難な複雑なデータ処理を、ワークフローで定義し本ボタンで実行可能です。",
23
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.": "「ワークフロートリガー」ボタンクリック時、該当単一レコードをコンテキストとしてイベントが発生します。NocoBaseの標準CRUD操作では処理困難な複雑なデータ処理を、ワークフローで定義し本ボタンで実行可能です。",
24
+ "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "ボタンクリック後、データ保存なしで直接ワークフローがトリガーされます。「カスタムアクションイベント」とのみ連携可能です。"
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "Associations to use": "사용할 연관 데이터",
3
+ "Binding scope": "바인딩 범위",
4
+ "Button is not configured properly, please contact the administrator.": "버튼이 올바르게 구성되지 않았습니다. 관리자에게 문의하세요.",
5
+ "Context type": "컨텍스트 유형",
6
+ "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.": "레코드와 관련 없는 작업 버튼(예: 워크벤치 패널, 테이블 블록의 버튼)에서 사용할 수 있습니다.",
7
+ "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.": "여러 레코드와 관련된 작업 버튼(예: 테이블 블록의 일괄 작업)에서만 사용할 수 있습니다. 트리거 변수의 데이터는 배열이 됩니다.",
8
+ "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.": "단일 레코드와 관련된 작업 버튼(예: 폼, 상세 블록, 테이블 행)에서만 사용할 수 있습니다.",
9
+ "Custom action event": "사용자 정의 작업 이벤트",
10
+ "Different positions of the created trigger button can use different context types.": "생성된 트리거 버튼의 위치에 따라 다른 컨텍스트 유형을 사용할 수 있습니다.",
11
+ "Multiple collection records": "여러 컬렉션 레코드",
12
+ "None": "없음",
13
+ "Only support custom action workflow with context type set to \"Multiple records\".": "\"여러 레코드\" 컨텍스트 유형으로 설정된 사용자 정의 작업 워크플로우만 지원합니다.",
14
+ "Only support custom action workflow with context type set to \"None\".": "\"없음\" 컨텍스트 유형으로 설정된 사용자 정의 작업 워크플로우만 지원합니다.",
15
+ "Please select at least one record.": "최소 한 개의 레코드를 선택하세요.",
16
+ "Role of user acted": "작업한 사용자의 역할",
17
+ "Single collection record": "단일 컬렉션 레코드",
18
+ "Trigger data": "트리거 데이터",
19
+ "Trigger global workflow": "글로벌 워크플로우 트리거",
20
+ "Trigger workflow": "워크플로우 트리거",
21
+ "User acted": "작업한 사용자",
22
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.": "\"워크플로우 트리거\" 버튼을 클릭하면 버튼이 위치한 컨텍스트에 따라 이벤트가 트리거됩니다. NocoBase의 기본 동작(CRUD)만으로 처리할 수 없는 복잡한 데이터 처리가 필요한 경우, 워크플로우로 일련의 작업을 정의하고 해당 버튼으로 트리거할 수 있습니다.",
23
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.": "\"워크플로우 트리거\" 버튼을 클릭하면 버튼이 위치한 단일 레코드를 기준으로 이벤트가 트리거됩니다. NocoBase의 기본 동작(CRUD)만으로 처리할 수 없는 복잡한 데이터 처리가 필요한 경우, 워크플로우로 일련의 작업을 정의하고 해당 버튼으로 트리거할 수 있습니다.",
24
+ "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "버튼 클릭 시 데이터 저장 없이 워크플로우가 바로 트리거됩니다. \"사용자 정의 작업 이벤트\"에만 바인딩할 수 있습니다."
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "Associations to use": "Associations to use",
3
+ "Binding scope": "Binding scope",
4
+ "Button is not configured properly, please contact the administrator.": "Button is not configured properly, please contact the administrator.",
5
+ "Context type": "Context type",
6
+ "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.": "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.",
7
+ "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.": "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.",
8
+ "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.": "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.",
9
+ "Custom action event": "Custom action event",
10
+ "Different positions of the created trigger button can use different context types.": "Different positions of the created trigger button can use different context types.",
11
+ "Multiple collection records": "Multiple collection records",
12
+ "None": "None",
13
+ "Only support custom action workflow with context type set to \"Multiple records\".": "Only support custom action workflow with context type set to \"Multiple records\".",
14
+ "Only support custom action workflow with context type set to \"None\".": "Only support custom action workflow with context type set to \"None\".",
15
+ "Please select at least one record.": "Please select at least one record.",
16
+ "Role of user acted": "Role of user acted",
17
+ "Single collection record": "Single collection record",
18
+ "Trigger data": "Trigger data",
19
+ "Trigger global workflow": "Trigger global workflow",
20
+ "Trigger workflow": "Trigger workflow",
21
+ "User acted": "User acted",
22
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.",
23
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.",
24
+ "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\"."
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "Associations to use": "Associations to use",
3
+ "Binding scope": "Binding scope",
4
+ "Button is not configured properly, please contact the administrator.": "Button is not configured properly, please contact the administrator.",
5
+ "Context type": "Context type",
6
+ "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.": "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.",
7
+ "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.": "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.",
8
+ "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.": "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.",
9
+ "Custom action event": "Custom action event",
10
+ "Different positions of the created trigger button can use different context types.": "Different positions of the created trigger button can use different context types.",
11
+ "Multiple collection records": "Multiple collection records",
12
+ "None": "None",
13
+ "Only support custom action workflow with context type set to \"Multiple records\".": "Only support custom action workflow with context type set to \"Multiple records\".",
14
+ "Only support custom action workflow with context type set to \"None\".": "Only support custom action workflow with context type set to \"None\".",
15
+ "Please select at least one record.": "Please select at least one record.",
16
+ "Role of user acted": "Role of user acted",
17
+ "Single collection record": "Single collection record",
18
+ "Trigger data": "Trigger data",
19
+ "Trigger global workflow": "Trigger global workflow",
20
+ "Trigger workflow": "Trigger workflow",
21
+ "User acted": "User acted",
22
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.",
23
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.",
24
+ "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\"."
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "Associations to use": "Используемые связи",
3
+ "Binding scope": "Область привязки",
4
+ "Button is not configured properly, please contact the administrator.": "Кнопка настроена некорректно, пожалуйста, свяжитесь с администратором.",
5
+ "Context type": "Тип контекста",
6
+ "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.": "Может использоваться для кнопок действий, не связанных с записями. Например, кнопки в панели рабочего стола или в блоках таблиц.",
7
+ "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.": "Может использоваться только для кнопок действий, связанных с несколькими записями. Например, для пакетных действий в блоке таблицы. Данные в переменной триггера будут представлены массивом.",
8
+ "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.": "Может использоваться только для кнопок действий, связанных с одной записью. Например, в форме, блоке деталей или строке записи таблицы.",
9
+ "Custom action event": "Действие пользователя",
10
+ "Different positions of the created trigger button can use different context types.": "Разные расположения созданной кнопки триггера могут использовать разные типы контекста.",
11
+ "Multiple collection records": "Несколько записей коллекции",
12
+ "None": "Нет",
13
+ "Only support custom action workflow with context type set to \"Multiple records\".": "Поддерживается только пользовательский рабочий процесс с типом контекста, установленным как \"Несколько записей\".",
14
+ "Only support custom action workflow with context type set to \"None\".": "Поддерживается только пользовательский рабочий процесс с типом контекста, установленным как \"Нет\".",
15
+ "Please select at least one record.": "Пожалуйста, выберите хотя бы одну запись.",
16
+ "Role of user acted": "Роль пользователя, выполнившего действие",
17
+ "Single collection record": "Одна запись коллекции",
18
+ "Trigger data": "Данные триггера",
19
+ "Trigger global workflow": "Запустить глобальный рабочий процесс",
20
+ "Trigger workflow": "Событие пользователя",
21
+ "User acted": "Пользователь, выполнивший действие",
22
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.": "При нажатии кнопки \"Событие пользователя\" событие запускается на основе контекста, где находится кнопка. Для сложной обработки данных, которую невозможно выполнить стандартными операциями (CRUD) NocoBase, можно определить серию операций через рабочий процесс и запустить их с помощью кнопки \"Событие пользователя\".",
23
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.": "При нажатии кнопки \"Событие пользователя\" событие запускается на основе одной записи, где находится кнопка. Подходит для случаев, когда обработка данных сложна и не может быть выполнена стандартными операциями (CRUD) NocoBase. Серия операций может быть определена через рабочий процесс и запущена с помощью кнопки \"Событие пользователя\".",
24
+ "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Рабочий процесс будет запущен сразу после нажатия кнопки без сохранения данных. Поддерживается только привязка к событию \"Событие пользователя\"."
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "Associations to use": "Associations to use",
3
+ "Binding scope": "Binding scope",
4
+ "Button is not configured properly, please contact the administrator.": "Button is not configured properly, please contact the administrator.",
5
+ "Context type": "Context type",
6
+ "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.": "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.",
7
+ "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.": "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.",
8
+ "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.": "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.",
9
+ "Custom action event": "Custom action event",
10
+ "Different positions of the created trigger button can use different context types.": "Different positions of the created trigger button can use different context types.",
11
+ "Multiple collection records": "Multiple collection records",
12
+ "None": "None",
13
+ "Only support custom action workflow with context type set to \"Multiple records\".": "Only support custom action workflow with context type set to \"Multiple records\".",
14
+ "Only support custom action workflow with context type set to \"None\".": "Only support custom action workflow with context type set to \"None\".",
15
+ "Please select at least one record.": "Please select at least one record.",
16
+ "Role of user acted": "Role of user acted",
17
+ "Single collection record": "Single collection record",
18
+ "Trigger data": "Trigger data",
19
+ "Trigger global workflow": "Trigger global workflow",
20
+ "Trigger workflow": "Trigger workflow",
21
+ "User acted": "User acted",
22
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.",
23
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.",
24
+ "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\"."
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "Associations to use": "Associations to use",
3
+ "Binding scope": "Binding scope",
4
+ "Button is not configured properly, please contact the administrator.": "Button is not configured properly, please contact the administrator.",
5
+ "Context type": "Context type",
6
+ "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.": "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.",
7
+ "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.": "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.",
8
+ "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.": "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.",
9
+ "Custom action event": "Custom action event",
10
+ "Different positions of the created trigger button can use different context types.": "Different positions of the created trigger button can use different context types.",
11
+ "Multiple collection records": "Multiple collection records",
12
+ "None": "None",
13
+ "Only support custom action workflow with context type set to \"Multiple records\".": "Only support custom action workflow with context type set to \"Multiple records\".",
14
+ "Only support custom action workflow with context type set to \"None\".": "Only support custom action workflow with context type set to \"None\".",
15
+ "Please select at least one record.": "Please select at least one record.",
16
+ "Role of user acted": "Role of user acted",
17
+ "Single collection record": "Single collection record",
18
+ "Trigger data": "Trigger data",
19
+ "Trigger global workflow": "Trigger global workflow",
20
+ "Trigger workflow": "Trigger workflow",
21
+ "User acted": "User acted",
22
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.",
23
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.",
24
+ "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\"."
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "Associations to use": "Associations to use",
3
+ "Binding scope": "Binding scope",
4
+ "Button is not configured properly, please contact the administrator.": "Button is not configured properly, please contact the administrator.",
5
+ "Context type": "Context type",
6
+ "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.": "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.",
7
+ "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.": "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.",
8
+ "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.": "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.",
9
+ "Custom action event": "Custom action event",
10
+ "Different positions of the created trigger button can use different context types.": "Different positions of the created trigger button can use different context types.",
11
+ "Multiple collection records": "Multiple collection records",
12
+ "None": "Không có",
13
+ "Only support custom action workflow with context type set to \"Multiple records\".": "Only support custom action workflow with context type set to \"Multiple records\".",
14
+ "Only support custom action workflow with context type set to \"None\".": "Only support custom action workflow with context type set to \"None\".",
15
+ "Please select at least one record.": "Please select at least one record.",
16
+ "Role of user acted": "Role of user acted",
17
+ "Single collection record": "Single collection record",
18
+ "Trigger data": "Trigger data",
19
+ "Trigger global workflow": "Trigger global workflow",
20
+ "Trigger workflow": "Trigger workflow",
21
+ "User acted": "User acted",
22
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.",
23
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.",
24
+ "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\"."
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "Associations to use": "待使用的关系数据",
3
+ "Binding scope": "绑定范围",
4
+ "Button is not configured properly, please contact the administrator.": "按钮未正确配置,请联系管理员。",
5
+ "Context type": "上下文类型",
6
+ "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.": "可用于非数据行相关的操作按钮。例如工作台面板或表格区块中的按钮。",
7
+ "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.": "仅支持用于多行数据相关的操作按钮。例如在表格区块中的批量操作。触发器变量中的数据将是数组。",
8
+ "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.": "仅支持用于单行数据相关的操作按钮。例如在表单、详情区块和数据行中。",
9
+ "Custom action event": "自定义操作事件",
10
+ "Different positions of the created trigger button can use different context types.": "在不同位置创建的触发按钮可使用的上下文类型不同。",
11
+ "Multiple collection records": "多行数据",
12
+ "None": "无上下文",
13
+ "Only support custom action workflow with context type set to \"Multiple records\".": "仅支持上下文类型设置为“多行数据”的自定义操作工作流。",
14
+ "Only support custom action workflow with context type set to \"None\".": "仅支持上下文类型设置为“无上下文”的自定义操作工作流。",
15
+ "Please select at least one record.": "请至少选择一条记录。",
16
+ "Role of user acted": "操作者角色",
17
+ "Single collection record": "单行数据",
18
+ "Trigger data": "触发器数据",
19
+ "Trigger global workflow": "触发全局工作流",
20
+ "Trigger workflow": "触发工作流",
21
+ "User acted": "操作者",
22
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.": "点击“触发工作流”按钮时,基于按钮所在位置的不同上下文触发该事件。适用于对数据的处理过程较复杂,不能被 NocoBase 内置的操作(增删改查)简单处理时,可通过工作流来定义一系列操作,并通过“触发工作流”按钮触发。",
23
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.",
24
+ "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "点击按钮后将直接触发工作流,不会保存数据。仅支持绑定“自定义操作事件”。"
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "Associations to use": "Associations to use",
3
+ "Binding scope": "Binding scope",
4
+ "Button is not configured properly, please contact the administrator.": "Button is not configured properly, please contact the administrator.",
5
+ "Context type": "Context type",
6
+ "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.": "Could be used on non-record related action buttons. Such as buttons in workbench panel or in table blocks.",
7
+ "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.": "Could only be used on multiple record related action buttons. Such as for batch action in table block. The data in trigger variable will be an array.",
8
+ "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.": "Could only be used on single record related action buttons. Such as in form, detail block and table row of record.",
9
+ "Custom action event": "Custom action event",
10
+ "Different positions of the created trigger button can use different context types.": "Different positions of the created trigger button can use different context types.",
11
+ "Multiple collection records": "Multiple collection records",
12
+ "None": "None",
13
+ "Only support custom action workflow with context type set to \"Multiple records\".": "Only support custom action workflow with context type set to \"Multiple records\".",
14
+ "Only support custom action workflow with context type set to \"None\".": "Only support custom action workflow with context type set to \"None\".",
15
+ "Please select at least one record.": "Please select at least one record.",
16
+ "Role of user acted": "Role of user acted",
17
+ "Single collection record": "Single collection record",
18
+ "Trigger data": "Trigger data",
19
+ "Trigger global workflow": "Trigger global workflow",
20
+ "Trigger workflow": "Trigger workflow",
21
+ "User acted": "User acted",
22
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on different context where the button is located. For complex data processing that cannot be handled simply by built-in operations (CRUD) of NocoBase, you can define a series of operations through a workflow and trigger it with the \"Trigger Workflow\" button.",
23
+ "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.": "When the \"Trigger Workflow\" button is clicked, the event is triggered based on the single record where the button is located. Suitable for when the data processing is complex and cannot be simply processed by built-in operations (CRUD) of NocoBase, a series of operations can be defined through workflow and triggered through the \"Trigger Workflow\" button.",
24
+ "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\"."
25
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import WorkflowPluginServer, { EventOptions, Trigger, WorkflowModel } from '@nocobase/plugin-workflow';
10
+ import { Context, Next } from '@nocobase/actions';
11
+ export default class CustomActionTrigger extends Trigger {
12
+ static TYPE: string;
13
+ globalTriggerAction(context: Context, next: Next): Promise<void>;
14
+ triggerAction: (context: Context, next: Next) => Promise<void>;
15
+ constructor(workflow: WorkflowPluginServer);
16
+ private processEvents;
17
+ validateContext(values: any, workflow: WorkflowModel): {
18
+ data: string;
19
+ filterByTk?: undefined;
20
+ } | {
21
+ filterByTk: string;
22
+ data?: undefined;
23
+ };
24
+ execute(workflow: WorkflowModel, values: any, options: EventOptions): Promise<void | import("@nocobase/plugin-workflow").Processor>;
25
+ }