@acorex-platform/extension-ai-formbuilder-client 0.0.54 → 0.0.57
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/fesm2022/acorex-platform-extension-ai-formbuilder-client.mjs +37 -37
- package/fesm2022/acorex-platform-extension-ai-formbuilder-client.mjs.map +1 -1
- package/i18n/en-AU/extensions-ai-formbuilder.json +92 -0
- package/i18n/en-US/extensions-ai-formbuilder.json +92 -0
- package/i18n/fa-IR/extensions-ai-formbuilder.json +92 -0
- package/package.json +2 -2
|
@@ -684,7 +684,7 @@ function unwrapJson(raw) {
|
|
|
684
684
|
const AXE_AI_FORMBUILDER_PAGE_CONTEXT_ACTIONS = [
|
|
685
685
|
{
|
|
686
686
|
id: AXE_AI_FORMBUILDER_PAGE_ACTION_ADD_WIDGET,
|
|
687
|
-
title: '
|
|
687
|
+
title: '@extensions-ai-formbuilder:page-context.actions.add-widget.title',
|
|
688
688
|
params: [
|
|
689
689
|
{
|
|
690
690
|
name: 'parentName',
|
|
@@ -710,7 +710,7 @@ const AXE_AI_FORMBUILDER_PAGE_CONTEXT_ACTIONS = [
|
|
|
710
710
|
},
|
|
711
711
|
{
|
|
712
712
|
id: AXE_AI_FORMBUILDER_PAGE_ACTION_UPDATE_WIDGET,
|
|
713
|
-
title: '
|
|
713
|
+
title: '@extensions-ai-formbuilder:page-context.actions.update-widget.title',
|
|
714
714
|
params: [
|
|
715
715
|
{ name: 'name', required: false, description: 'Widget name from snapshot.outline.' },
|
|
716
716
|
{ name: 'path', required: false, description: 'Widget path from snapshot.outline when it has no name.' },
|
|
@@ -730,7 +730,7 @@ const AXE_AI_FORMBUILDER_PAGE_CONTEXT_ACTIONS = [
|
|
|
730
730
|
},
|
|
731
731
|
{
|
|
732
732
|
id: AXE_AI_FORMBUILDER_PAGE_ACTION_REMOVE_WIDGET,
|
|
733
|
-
title: '
|
|
733
|
+
title: '@extensions-ai-formbuilder:page-context.actions.remove-widget.title',
|
|
734
734
|
params: [
|
|
735
735
|
{ name: 'name', required: false, description: 'Widget name from snapshot.outline.' },
|
|
736
736
|
{ name: 'path', required: false, description: 'Widget path from snapshot.outline when it has no name.' },
|
|
@@ -738,7 +738,7 @@ const AXE_AI_FORMBUILDER_PAGE_CONTEXT_ACTIONS = [
|
|
|
738
738
|
},
|
|
739
739
|
{
|
|
740
740
|
id: AXE_AI_FORMBUILDER_PAGE_ACTION_MOVE_WIDGET,
|
|
741
|
-
title: '
|
|
741
|
+
title: '@extensions-ai-formbuilder:page-context.actions.move-widget.title',
|
|
742
742
|
params: [
|
|
743
743
|
{ name: 'name', required: false, description: 'Widget name from snapshot.outline.' },
|
|
744
744
|
{ name: 'path', required: false, description: 'Widget path from snapshot.outline when it has no name.' },
|
|
@@ -749,7 +749,7 @@ const AXE_AI_FORMBUILDER_PAGE_CONTEXT_ACTIONS = [
|
|
|
749
749
|
},
|
|
750
750
|
{
|
|
751
751
|
id: AXE_AI_FORMBUILDER_PAGE_ACTION_APPLY_LAYOUT,
|
|
752
|
-
title: '
|
|
752
|
+
title: '@extensions-ai-formbuilder:page-context.actions.apply-layout.title',
|
|
753
753
|
params: [
|
|
754
754
|
{
|
|
755
755
|
name: 'json',
|
|
@@ -767,7 +767,7 @@ const AXE_AI_FORMBUILDER_PAGE_CONTEXT_ACTIONS = [
|
|
|
767
767
|
//#endregion
|
|
768
768
|
//#region ----- Snapshot -----
|
|
769
769
|
function axeBuildFormbuilderDesignerPageContextSnapshot(args) {
|
|
770
|
-
const title = args.title.trim() || '
|
|
770
|
+
const title = args.title.trim() || '@extensions-ai-formbuilder:page-context.default-title';
|
|
771
771
|
return {
|
|
772
772
|
kind: 'layout-designer',
|
|
773
773
|
title,
|
|
@@ -1757,13 +1757,13 @@ var validateLayoutJsonForAi_command = /*#__PURE__*/Object.freeze({
|
|
|
1757
1757
|
*/
|
|
1758
1758
|
const axeAiFormbuilderValidateLayoutJsonForAiCommandDefinition = defineCommand({
|
|
1759
1759
|
key: 'AiFormbuilder:ValidateLayoutJsonForAi',
|
|
1760
|
-
title: '
|
|
1760
|
+
title: '@extensions-ai-formbuilder:commands.validate-layout-json-for-ai.title',
|
|
1761
1761
|
description: 'Parses a JSON string and checks it is a single root AXPWidgetNode (object with string type, optional children/options). Rejects raw CSS/DOM-style keys.',
|
|
1762
1762
|
executionMode: 'frontend',
|
|
1763
1763
|
inputs: [
|
|
1764
1764
|
{
|
|
1765
1765
|
name: 'json',
|
|
1766
|
-
title: '
|
|
1766
|
+
title: '@extensions-ai-formbuilder:commands.validate-layout-json-for-ai.inputs.json.title',
|
|
1767
1767
|
description: 'Stringified widget tree: one root object with "type" (registry name). Optional markdown/json fences are stripped.',
|
|
1768
1768
|
interface: { name: 'large-text-editor' },
|
|
1769
1769
|
validations: [{ rule: 'required' }],
|
|
@@ -1819,13 +1819,13 @@ var applyLayoutJsonForAi_command = /*#__PURE__*/Object.freeze({
|
|
|
1819
1819
|
*/
|
|
1820
1820
|
const axeAiFormbuilderApplyLayoutJsonForAiCommandDefinition = defineCommand({
|
|
1821
1821
|
key: 'AiFormbuilder:ApplyLayoutJsonForAi',
|
|
1822
|
-
title: '
|
|
1822
|
+
title: '@extensions-ai-formbuilder:commands.apply-layout-json-for-ai.title',
|
|
1823
1823
|
description: 'Validates a root AXPWidgetNode and loads it onto the open Form Template designer canvas (document-layout or page-layout). Prefer Page:RunAction apply-layout on form-designer-assistant for live canvas writes. Does not save — the user uses File → Save.',
|
|
1824
1824
|
executionMode: 'frontend',
|
|
1825
1825
|
inputs: [
|
|
1826
1826
|
{
|
|
1827
1827
|
name: 'json',
|
|
1828
|
-
title: '
|
|
1828
|
+
title: '@extensions-ai-formbuilder:commands.apply-layout-json-for-ai.inputs.json.title',
|
|
1829
1829
|
description: 'Stringified designer widget tree. Root must be document-layout (form template) or page-layout (widget template).',
|
|
1830
1830
|
interface: { name: 'large-text-editor' },
|
|
1831
1831
|
validations: [{ rule: 'required' }],
|
|
@@ -1874,13 +1874,13 @@ var outlineLayoutForAi_command = /*#__PURE__*/Object.freeze({
|
|
|
1874
1874
|
*/
|
|
1875
1875
|
const axeAiFormbuilderOutlineLayoutForAiCommandDefinition = defineCommand({
|
|
1876
1876
|
key: 'AiFormbuilder:OutlineLayoutForAi',
|
|
1877
|
-
title: '
|
|
1877
|
+
title: '@extensions-ai-formbuilder:commands.outline-layout-for-ai.title',
|
|
1878
1878
|
description: 'Returns a compact list of widgets (name, type, label, parent, path) from an AXPWidgetNode JSON tree. Does not touch the live designer. Pass the same json to Add/Update/Remove/Move.',
|
|
1879
1879
|
executionMode: 'frontend',
|
|
1880
1880
|
inputs: [
|
|
1881
1881
|
{
|
|
1882
1882
|
name: 'json',
|
|
1883
|
-
title: '
|
|
1883
|
+
title: '@extensions-ai-formbuilder:commands.outline-layout-for-ai.inputs.json.title',
|
|
1884
1884
|
description: 'AXPWidgetNode tree (string or object). Chat block-layout or designer document-layout.',
|
|
1885
1885
|
interface: { name: 'large-text-editor' },
|
|
1886
1886
|
validations: [{ rule: 'required' }],
|
|
@@ -1929,39 +1929,39 @@ var addWidgetForAi_command = /*#__PURE__*/Object.freeze({
|
|
|
1929
1929
|
*/
|
|
1930
1930
|
const axeAiFormbuilderAddWidgetForAiCommandDefinition = defineCommand({
|
|
1931
1931
|
key: 'AiFormbuilder:AddWidgetForAi',
|
|
1932
|
-
title: '
|
|
1932
|
+
title: '@extensions-ai-formbuilder:commands.add-widget-for-ai.title',
|
|
1933
1933
|
description: 'Inserts one AXPWidgetNode under a parent inside a layout JSON tree and returns the updated json. Does not touch the live designer. Address the parent by name or path from OutlineLayoutForAi.',
|
|
1934
1934
|
executionMode: 'frontend',
|
|
1935
1935
|
inputs: [
|
|
1936
1936
|
{
|
|
1937
1937
|
name: 'json',
|
|
1938
|
-
title: '
|
|
1938
|
+
title: '@extensions-ai-formbuilder:commands.add-widget-for-ai.inputs.json.title',
|
|
1939
1939
|
description: 'Current AXPWidgetNode tree (string or object).',
|
|
1940
1940
|
interface: { name: 'large-text-editor' },
|
|
1941
1941
|
validations: [{ rule: 'required' }],
|
|
1942
1942
|
},
|
|
1943
1943
|
{
|
|
1944
1944
|
name: 'parentName',
|
|
1945
|
-
title: '
|
|
1945
|
+
title: '@extensions-ai-formbuilder:commands.add-widget-for-ai.inputs.parent-name.title',
|
|
1946
1946
|
description: 'name from OutlineLayoutForAi. Prefer this over parentPath.',
|
|
1947
1947
|
interface: { name: 'text-editor' },
|
|
1948
1948
|
},
|
|
1949
1949
|
{
|
|
1950
1950
|
name: 'parentPath',
|
|
1951
|
-
title: '
|
|
1951
|
+
title: '@extensions-ai-formbuilder:commands.add-widget-for-ai.inputs.parent-path.title',
|
|
1952
1952
|
description: 'path from OutlineLayoutForAi when the parent has no name.',
|
|
1953
1953
|
interface: { name: 'text-editor' },
|
|
1954
1954
|
},
|
|
1955
1955
|
{
|
|
1956
1956
|
name: 'widget',
|
|
1957
|
-
title: '
|
|
1957
|
+
title: '@extensions-ai-formbuilder:commands.add-widget-for-ai.inputs.widget.title',
|
|
1958
1958
|
description: 'One AXPWidgetNode object (type plus options/children). Not the full tree.',
|
|
1959
1959
|
interface: { name: 'json' },
|
|
1960
1960
|
validations: [{ rule: 'required' }],
|
|
1961
1961
|
},
|
|
1962
1962
|
{
|
|
1963
1963
|
name: 'index',
|
|
1964
|
-
title: '
|
|
1964
|
+
title: '@extensions-ai-formbuilder:commands.add-widget-for-ai.inputs.index.title',
|
|
1965
1965
|
description: 'Optional child index under the parent. Omit to append.',
|
|
1966
1966
|
interface: { name: 'number-editor' },
|
|
1967
1967
|
},
|
|
@@ -2009,50 +2009,50 @@ var updateWidgetForAi_command = /*#__PURE__*/Object.freeze({
|
|
|
2009
2009
|
*/
|
|
2010
2010
|
const axeAiFormbuilderUpdateWidgetForAiCommandDefinition = defineCommand({
|
|
2011
2011
|
key: 'AiFormbuilder:UpdateWidgetForAi',
|
|
2012
|
-
title: '
|
|
2012
|
+
title: '@extensions-ai-formbuilder:commands.update-widget-for-ai.title',
|
|
2013
2013
|
description: 'Patches options, validations, triggers, and/or visible on one widget inside a layout JSON tree and returns the updated json. triggers and visible sit on the node root, not inside options. Does not touch the live designer.',
|
|
2014
2014
|
executionMode: 'frontend',
|
|
2015
2015
|
inputs: [
|
|
2016
2016
|
{
|
|
2017
2017
|
name: 'json',
|
|
2018
|
-
title: '
|
|
2018
|
+
title: '@extensions-ai-formbuilder:commands.update-widget-for-ai.inputs.json.title',
|
|
2019
2019
|
description: 'Current AXPWidgetNode tree (string or object).',
|
|
2020
2020
|
interface: { name: 'large-text-editor' },
|
|
2021
2021
|
validations: [{ rule: 'required' }],
|
|
2022
2022
|
},
|
|
2023
2023
|
{
|
|
2024
2024
|
name: 'name',
|
|
2025
|
-
title: '
|
|
2025
|
+
title: '@extensions-ai-formbuilder:commands.update-widget-for-ai.inputs.name.title',
|
|
2026
2026
|
description: 'name from OutlineLayoutForAi. Prefer this over path.',
|
|
2027
2027
|
interface: { name: 'text-editor' },
|
|
2028
2028
|
},
|
|
2029
2029
|
{
|
|
2030
2030
|
name: 'path',
|
|
2031
|
-
title: '
|
|
2031
|
+
title: '@extensions-ai-formbuilder:commands.update-widget-for-ai.inputs.path.title',
|
|
2032
2032
|
description: 'path from OutlineLayoutForAi when the widget has no name.',
|
|
2033
2033
|
interface: { name: 'text-editor' },
|
|
2034
2034
|
},
|
|
2035
2035
|
{
|
|
2036
2036
|
name: 'options',
|
|
2037
|
-
title: '
|
|
2037
|
+
title: '@extensions-ai-formbuilder:commands.update-widget-for-ai.inputs.options.title',
|
|
2038
2038
|
description: 'Partial options object merged onto the widget (label, hint, cols, …).',
|
|
2039
2039
|
interface: { name: 'json' },
|
|
2040
2040
|
},
|
|
2041
2041
|
{
|
|
2042
2042
|
name: 'validations',
|
|
2043
|
-
title: '
|
|
2043
|
+
title: '@extensions-ai-formbuilder:commands.update-widget-for-ai.inputs.validations.title',
|
|
2044
2044
|
description: 'Replaces options.validations on the widget (e.g. [{ "rule": "required" }]).',
|
|
2045
2045
|
interface: { name: 'json' },
|
|
2046
2046
|
},
|
|
2047
2047
|
{
|
|
2048
2048
|
name: 'triggers',
|
|
2049
|
-
title: '
|
|
2049
|
+
title: '@extensions-ai-formbuilder:commands.update-widget-for-ai.inputs.triggers.title',
|
|
2050
2050
|
description: 'Replaces node.triggers: [{ event, action }] expression strings. Empty array clears.',
|
|
2051
2051
|
interface: { name: 'json' },
|
|
2052
2052
|
},
|
|
2053
2053
|
{
|
|
2054
2054
|
name: 'visible',
|
|
2055
|
-
title: '
|
|
2055
|
+
title: '@extensions-ai-formbuilder:commands.update-widget-for-ai.inputs.visible.title',
|
|
2056
2056
|
description: 'Replaces node.visible (boolean or "{{ context.eval(...) }}").',
|
|
2057
2057
|
interface: { name: 'text-editor' },
|
|
2058
2058
|
},
|
|
@@ -2100,26 +2100,26 @@ var removeWidgetForAi_command = /*#__PURE__*/Object.freeze({
|
|
|
2100
2100
|
*/
|
|
2101
2101
|
const axeAiFormbuilderRemoveWidgetForAiCommandDefinition = defineCommand({
|
|
2102
2102
|
key: 'AiFormbuilder:RemoveWidgetForAi',
|
|
2103
|
-
title: '
|
|
2103
|
+
title: '@extensions-ai-formbuilder:commands.remove-widget-for-ai.title',
|
|
2104
2104
|
description: 'Removes one widget from a layout JSON tree and returns the updated json. Does not touch the live designer. Cannot remove the root. Address the widget by name or path from OutlineLayoutForAi.',
|
|
2105
2105
|
executionMode: 'frontend',
|
|
2106
2106
|
inputs: [
|
|
2107
2107
|
{
|
|
2108
2108
|
name: 'json',
|
|
2109
|
-
title: '
|
|
2109
|
+
title: '@extensions-ai-formbuilder:commands.remove-widget-for-ai.inputs.json.title',
|
|
2110
2110
|
description: 'Current AXPWidgetNode tree (string or object).',
|
|
2111
2111
|
interface: { name: 'large-text-editor' },
|
|
2112
2112
|
validations: [{ rule: 'required' }],
|
|
2113
2113
|
},
|
|
2114
2114
|
{
|
|
2115
2115
|
name: 'name',
|
|
2116
|
-
title: '
|
|
2116
|
+
title: '@extensions-ai-formbuilder:commands.remove-widget-for-ai.inputs.name.title',
|
|
2117
2117
|
description: 'name from OutlineLayoutForAi. Prefer this over path.',
|
|
2118
2118
|
interface: { name: 'text-editor' },
|
|
2119
2119
|
},
|
|
2120
2120
|
{
|
|
2121
2121
|
name: 'path',
|
|
2122
|
-
title: '
|
|
2122
|
+
title: '@extensions-ai-formbuilder:commands.remove-widget-for-ai.inputs.path.title',
|
|
2123
2123
|
description: 'path from OutlineLayoutForAi when the widget has no name.',
|
|
2124
2124
|
interface: { name: 'text-editor' },
|
|
2125
2125
|
},
|
|
@@ -2167,44 +2167,44 @@ var moveWidgetForAi_command = /*#__PURE__*/Object.freeze({
|
|
|
2167
2167
|
*/
|
|
2168
2168
|
const axeAiFormbuilderMoveWidgetForAiCommandDefinition = defineCommand({
|
|
2169
2169
|
key: 'AiFormbuilder:MoveWidgetForAi',
|
|
2170
|
-
title: '
|
|
2170
|
+
title: '@extensions-ai-formbuilder:commands.move-widget-for-ai.title',
|
|
2171
2171
|
description: 'Moves one widget to another parent and/or index inside a layout JSON tree and returns the updated json. Does not touch the live designer. Address widgets by name or path from OutlineLayoutForAi.',
|
|
2172
2172
|
executionMode: 'frontend',
|
|
2173
2173
|
inputs: [
|
|
2174
2174
|
{
|
|
2175
2175
|
name: 'json',
|
|
2176
|
-
title: '
|
|
2176
|
+
title: '@extensions-ai-formbuilder:commands.move-widget-for-ai.inputs.json.title',
|
|
2177
2177
|
description: 'Current AXPWidgetNode tree (string or object).',
|
|
2178
2178
|
interface: { name: 'large-text-editor' },
|
|
2179
2179
|
validations: [{ rule: 'required' }],
|
|
2180
2180
|
},
|
|
2181
2181
|
{
|
|
2182
2182
|
name: 'name',
|
|
2183
|
-
title: '
|
|
2183
|
+
title: '@extensions-ai-formbuilder:commands.move-widget-for-ai.inputs.name.title',
|
|
2184
2184
|
description: 'name from OutlineLayoutForAi. Prefer this over path.',
|
|
2185
2185
|
interface: { name: 'text-editor' },
|
|
2186
2186
|
},
|
|
2187
2187
|
{
|
|
2188
2188
|
name: 'path',
|
|
2189
|
-
title: '
|
|
2189
|
+
title: '@extensions-ai-formbuilder:commands.move-widget-for-ai.inputs.path.title',
|
|
2190
2190
|
description: 'path from OutlineLayoutForAi when the widget has no name.',
|
|
2191
2191
|
interface: { name: 'text-editor' },
|
|
2192
2192
|
},
|
|
2193
2193
|
{
|
|
2194
2194
|
name: 'parentName',
|
|
2195
|
-
title: '
|
|
2195
|
+
title: '@extensions-ai-formbuilder:commands.move-widget-for-ai.inputs.parent-name.title',
|
|
2196
2196
|
description: 'Destination parent name from OutlineLayoutForAi. Omit to reorder under the current parent.',
|
|
2197
2197
|
interface: { name: 'text-editor' },
|
|
2198
2198
|
},
|
|
2199
2199
|
{
|
|
2200
2200
|
name: 'parentPath',
|
|
2201
|
-
title: '
|
|
2201
|
+
title: '@extensions-ai-formbuilder:commands.move-widget-for-ai.inputs.parent-path.title',
|
|
2202
2202
|
description: 'Destination parent path when the parent has no name.',
|
|
2203
2203
|
interface: { name: 'text-editor' },
|
|
2204
2204
|
},
|
|
2205
2205
|
{
|
|
2206
2206
|
name: 'index',
|
|
2207
|
-
title: '
|
|
2207
|
+
title: '@extensions-ai-formbuilder:commands.move-widget-for-ai.inputs.index.title',
|
|
2208
2208
|
description: 'Child index under the destination parent.',
|
|
2209
2209
|
interface: { name: 'number-editor' },
|
|
2210
2210
|
},
|