@seafteam/seaf-archtool-core-plugin-suite 2026.29.0-rc-test.6
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/LICENSE +201 -0
- package/NOTICE +27 -0
- package/documentation/arch/aspects.yaml +81 -0
- package/documentation/arch/components/browser.yaml +51 -0
- package/documentation/arch/components/examples/context.yaml +37 -0
- package/documentation/arch/components/examples/order.yaml +92 -0
- package/documentation/arch/components/examples/payment.yaml +92 -0
- package/documentation/arch/components/examples/root.yaml +42 -0
- package/documentation/arch/components/front.yaml +309 -0
- package/documentation/arch/components/gitlab.yaml +81 -0
- package/documentation/arch/components/plantuml.yaml +57 -0
- package/documentation/arch/components/root.yaml +36 -0
- package/documentation/arch/components/user.yaml +41 -0
- package/documentation/arch/components/web.yaml +39 -0
- package/documentation/arch/contexts.yaml +99 -0
- package/documentation/arch/forms.yaml +36 -0
- package/documentation/arch/namespaces.yaml +43 -0
- package/documentation/arch/root.yaml +43 -0
- package/documentation/arch/rules.yaml +91 -0
- package/documentation/arch/technologies.yaml +84 -0
- package/documentation/dochub.yaml +32 -0
- package/documentation/docs/conception/archdistrib.puml +38 -0
- package/documentation/docs/conception/archeco.puml +11 -0
- package/documentation/docs/conception/archeco_proc.puml +29 -0
- package/documentation/docs/conception/archver.puml +24 -0
- package/documentation/docs/conception/facade.puml +20 -0
- package/documentation/docs/conception/introduction.md +144 -0
- package/documentation/docs/conception/mindmap.puml +55 -0
- package/documentation/docs/conception/root.yaml +66 -0
- package/documentation/docs/manual/aspects.md +37 -0
- package/documentation/docs/manual/backend/api.yaml +664 -0
- package/documentation/docs/manual/backend/search-implementation.md +190 -0
- package/documentation/docs/manual/backend/search.yaml +495 -0
- package/documentation/docs/manual/clickstream-setup.md +50 -0
- package/documentation/docs/manual/components.md +45 -0
- package/documentation/docs/manual/config/deployment.md +337 -0
- package/documentation/docs/manual/context_source.puml +17 -0
- package/documentation/docs/manual/contexts.md +200 -0
- package/documentation/docs/manual/datasets.md +120 -0
- package/documentation/docs/manual/docs/AI_TABLE_INTEGRATION.md +81 -0
- package/documentation/docs/manual/docs/asyncapi.md +63 -0
- package/documentation/docs/manual/docs/bpmn.md +122 -0
- package/documentation/docs/manual/docs/charts.md +371 -0
- package/documentation/docs/manual/docs/docs.md +76 -0
- package/documentation/docs/manual/docs/drawio_intro.md +397 -0
- package/documentation/docs/manual/docs/editable_table/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/root.yaml +9 -0
- package/documentation/docs/manual/docs/editable_table/step_0_base/menu.yaml +6 -0
- package/documentation/docs/manual/docs/editable_table/step_0_base/root.yaml +3 -0
- package/documentation/docs/manual/docs/editable_table/step_0_base/table.yaml +396 -0
- package/documentation/docs/manual/docs/editable_table/step_0_base/template.md +404 -0
- package/documentation/docs/manual/docs/editable_table/step_1_acquaintance/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_1_acquaintance/root.yaml +3 -0
- package/documentation/docs/manual/docs/editable_table/step_1_acquaintance/table.yaml +136 -0
- package/documentation/docs/manual/docs/editable_table/step_1_acquaintance/template.md +247 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/data/pets.yaml +23 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/data/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/menu.yaml +34 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/table.yaml +36 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/template_root.md +110 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/template_table.md +3 -0
- package/documentation/docs/manual/docs/editable_table/step_3_headers/menu.yaml +6 -0
- package/documentation/docs/manual/docs/editable_table/step_3_headers/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_3_headers/template.md +300 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/data/data.yaml +10 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/data/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/data/data_column_1.yaml +3 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/data/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/menu.yaml +6 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/table.yaml +52 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/template.md +117 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/menu.yaml +6 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/root.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/table.yaml +116 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/template.md +231 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/base_example/data.yaml +30 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/base_example/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/base_example/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/base_example/table.yaml +122 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/base_example/template.md +276 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/hiding_columns/data.yaml +11 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/hiding_columns/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/hiding_columns/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/hiding_columns/table.yaml +40 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/hiding_columns/template.md +59 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/root.yaml +3 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/table.yaml +35 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/template.md +142 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/data_errors/data.yaml +40 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/data_errors/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/data_errors/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/data_errors/table.yaml +77 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/data_errors/template.md +146 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/root.yaml +3 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/template.md +3 -0
- package/documentation/docs/manual/docs/editable_table/template.md +24 -0
- package/documentation/docs/manual/docs/examples/asyncapi.yaml +77 -0
- package/documentation/docs/manual/docs/examples/asyncapi_template.json +11 -0
- package/documentation/docs/manual/docs/examples/autors.yaml +30 -0
- package/documentation/docs/manual/docs/examples/bpmn.xml +44 -0
- package/documentation/docs/manual/docs/examples/cat.jpg +0 -0
- package/documentation/docs/manual/docs/examples/charts-bar.yaml +61 -0
- package/documentation/docs/manual/docs/examples/charts-bubble.yaml +47 -0
- package/documentation/docs/manual/docs/examples/charts-doughnut.yaml +42 -0
- package/documentation/docs/manual/docs/examples/charts-line.yaml +55 -0
- package/documentation/docs/manual/docs/examples/charts-pie.yaml +37 -0
- package/documentation/docs/manual/docs/examples/charts-polararea.yaml +54 -0
- package/documentation/docs/manual/docs/examples/charts-radar.yaml +50 -0
- package/documentation/docs/manual/docs/examples/charts-scatter.yaml +48 -0
- package/documentation/docs/manual/docs/examples/charts.yaml +91 -0
- package/documentation/docs/manual/docs/examples/contexts.jsonata +8 -0
- package/documentation/docs/manual/docs/examples/date-picker-example.md +5 -0
- package/documentation/docs/manual/docs/examples/example.html +2 -0
- package/documentation/docs/manual/docs/examples/example.puml +17 -0
- package/documentation/docs/manual/docs/examples/example.yaml +53 -0
- package/documentation/docs/manual/docs/examples/ext-schema.yaml +3 -0
- package/documentation/docs/manual/docs/examples/inlinemeta.md +25 -0
- package/documentation/docs/manual/docs/examples/markaper.yaml +225 -0
- package/documentation/docs/manual/docs/examples/mermaid.mmd +32 -0
- package/documentation/docs/manual/docs/examples/openapi_template.json +16 -0
- package/documentation/docs/manual/docs/examples/pizza-collaboration.xml +383 -0
- package/documentation/docs/manual/docs/examples/sa-anim.yaml +209 -0
- package/documentation/docs/manual/docs/examples/sa-complex-hide-boundary.yaml +94 -0
- package/documentation/docs/manual/docs/examples/sa-complex-hide-leaves.yaml +94 -0
- package/documentation/docs/manual/docs/examples/sa-complex-hide-title.yaml +98 -0
- package/documentation/docs/manual/docs/examples/sa-complex.yaml +92 -0
- package/documentation/docs/manual/docs/examples/sa-gravity.yaml +104 -0
- package/documentation/docs/manual/docs/examples/sa-group.yaml +93 -0
- package/documentation/docs/manual/docs/examples/sa-physical-connection.yaml +79 -0
- package/documentation/docs/manual/docs/examples/sa-query.jsonata +74 -0
- package/documentation/docs/manual/docs/examples/sa-symbol.yaml +72 -0
- package/documentation/docs/manual/docs/examples/sa-through-objects.yaml +46 -0
- package/documentation/docs/manual/docs/examples/sa-without-tips.yaml +43 -0
- package/documentation/docs/manual/docs/examples/showcases.jsonata +5 -0
- package/documentation/docs/manual/docs/examples/smartants_.yaml +160 -0
- package/documentation/docs/manual/docs/examples/table.yaml +341 -0
- package/documentation/docs/manual/docs/examples/template.puml +6 -0
- package/documentation/docs/manual/docs/examples/test.jsonata +3 -0
- package/documentation/docs/manual/docs/examples/toc/2header.md +8 -0
- package/documentation/docs/manual/docs/examples/toc/custom-toc-place-dup.md +37 -0
- package/documentation/docs/manual/docs/examples/toc/custom-toc-place.md +35 -0
- package/documentation/docs/manual/docs/examples/toc/root.yaml +38 -0
- package/documentation/docs/manual/docs/examples/toc/test.md +160 -0
- package/documentation/docs/manual/docs/gigachat/agents/aigena/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/agents/aigena/root.yaml +2 -0
- package/documentation/docs/manual/docs/gigachat/agents/aigena/template.md +25 -0
- package/documentation/docs/manual/docs/gigachat/agents/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/agents/react/gigachat.yaml +59 -0
- package/documentation/docs/manual/docs/gigachat/agents/react/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/agents/react/root.yaml +3 -0
- package/documentation/docs/manual/docs/gigachat/agents/react/template.md +138 -0
- package/documentation/docs/manual/docs/gigachat/agents/root.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/agents/simple/gigachat.yaml +14 -0
- package/documentation/docs/manual/docs/gigachat/agents/simple/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/agents/simple/root.yaml +3 -0
- package/documentation/docs/manual/docs/gigachat/agents/simple/template.md +113 -0
- package/documentation/docs/manual/docs/gigachat/agents/template.md +62 -0
- package/documentation/docs/manual/docs/gigachat/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/root.yaml +4 -0
- package/documentation/docs/manual/docs/gigachat/settings/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/settings/root.yaml +2 -0
- package/documentation/docs/manual/docs/gigachat/settings/template.md +51 -0
- package/documentation/docs/manual/docs/gigachat/template.md +38 -0
- package/documentation/docs/manual/docs/images/cloud.png +0 -0
- package/documentation/docs/manual/docs/images/component.png +0 -0
- package/documentation/docs/manual/docs/images/system.png +0 -0
- package/documentation/docs/manual/docs/images/user.png +0 -0
- package/documentation/docs/manual/docs/markaper.md +278 -0
- package/documentation/docs/manual/docs/markdown.md +148 -0
- package/documentation/docs/manual/docs/mermaid.md +43 -0
- package/documentation/docs/manual/docs/network.md +117 -0
- package/documentation/docs/manual/docs/plantuml.md +28 -0
- package/documentation/docs/manual/docs/root.yaml +736 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/basic.yaml +13 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/diff.yaml +123 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/example_seaf_data.yaml +1689 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/root.yaml +5 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/templates.yaml +55 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/transformation.yaml +19 -0
- package/documentation/docs/manual/docs/seaf2drawio/object_description.md +35 -0
- package/documentation/docs/manual/docs/seaf2drawio/root.yaml +12 -0
- package/documentation/docs/manual/docs/seaf2drawio/seaf2drawio.md +118 -0
- package/documentation/docs/manual/docs/smartants.md +583 -0
- package/documentation/docs/manual/docs/svg_inline.md +66 -0
- package/documentation/docs/manual/docs/swagger.md +52 -0
- package/documentation/docs/manual/docs/tables.md +264 -0
- package/documentation/docs/manual/docs/templates/example.drawio +43 -0
- package/documentation/docs/manual/docs/templates/test.svg +79 -0
- package/documentation/docs/manual/docs/templates.md +361 -0
- package/documentation/docs/manual/docs/toc.md +137 -0
- package/documentation/docs/manual/entities/bstages.md +43 -0
- package/documentation/docs/manual/entities/bundle.md +105 -0
- package/documentation/docs/manual/entities/entities.md +727 -0
- package/documentation/docs/manual/entities/images/id_errors.png +0 -0
- package/documentation/docs/manual/entities/images/landspace.jpeg +0 -0
- package/documentation/docs/manual/entities/images/menu-single.jpeg +0 -0
- package/documentation/docs/manual/entities/images/menu-tree.jpeg +0 -0
- package/documentation/docs/manual/entities/images/object_select.png +0 -0
- package/documentation/docs/manual/entities/images/problems.png +0 -0
- package/documentation/docs/manual/entities/images/select_inter.png +0 -0
- package/documentation/docs/manual/entities/images/stages.jpg +0 -0
- package/documentation/docs/manual/entities/images/suggests.png +0 -0
- package/documentation/docs/manual/entities/intro.md +73 -0
- package/documentation/docs/manual/entities/rules.md +35 -0
- package/documentation/docs/manual/functions/example.yaml +50 -0
- package/documentation/docs/manual/functions/functions.md +51 -0
- package/documentation/docs/manual/functions/root.yaml +39 -0
- package/documentation/docs/manual/images/jbps1.1.png +0 -0
- package/documentation/docs/manual/images/jbps1.png +0 -0
- package/documentation/docs/manual/images/jbps2.png +0 -0
- package/documentation/docs/manual/images/vsc1.png +0 -0
- package/documentation/docs/manual/imports.md +59 -0
- package/documentation/docs/manual/introduction.md +38 -0
- package/documentation/docs/manual/jsonata.md +268 -0
- package/documentation/docs/manual/plugin-settings.md +134 -0
- package/documentation/docs/manual/plugins/interface.md +226 -0
- package/documentation/docs/manual/plugins/introduction.md +256 -0
- package/documentation/docs/manual/plugins/root.yaml +51 -0
- package/documentation/docs/manual/role-model.md +80 -0
- package/documentation/docs/manual/root-cluster-import.md +82 -0
- package/documentation/docs/manual/root.yaml +199 -0
- package/documentation/docs/manual/rules/exceptions.md +20 -0
- package/documentation/docs/manual/rules/exreason.md +3 -0
- package/documentation/docs/manual/rules/root.yaml +58 -0
- package/documentation/docs/manual/rules/rules.md +8 -0
- package/documentation/docs/manual/rules/standard.md +3 -0
- package/documentation/docs/manual/rules/validators.md +109 -0
- package/documentation/docs/manual/technologies.md +49 -0
- package/documentation/docs/root.yaml +32 -0
- package/documentation/docs/sequence.puml +48 -0
- package/documentation/docs/welcome.md +3 -0
- package/documentation/entities/extentions/entity.yaml +136 -0
- package/documentation/entities/extentions/templates/people.md +4 -0
- package/documentation/entities/interactions/entity.yaml +412 -0
- package/documentation/entities/interactions/templates/blank.puml +18 -0
- package/documentation/entities/interactions/templates/bpmn.xml +59 -0
- package/documentation/entities/interactions/templates/tree.puml +11 -0
- package/documentation/entities/root.yaml +33 -0
- package/documentation/root.yaml +37 -0
- package/metamodel/dochub/entities/aspects/base.yaml +73 -0
- package/metamodel/dochub/entities/aspects/blank.yaml +65 -0
- package/metamodel/dochub/entities/aspects/components.yaml +52 -0
- package/metamodel/dochub/entities/aspects/contexts.yaml +57 -0
- package/metamodel/dochub/entities/aspects/docs.yaml +51 -0
- package/metamodel/dochub/entities/aspects/hierarchy.yaml +80 -0
- package/metamodel/dochub/entities/aspects/root.yaml +9 -0
- package/metamodel/dochub/entities/aspects/summary.yaml +64 -0
- package/metamodel/dochub/entities/aspects/templates/components.md +5 -0
- package/metamodel/dochub/entities/aspects/templates/hierarchy.puml +5 -0
- package/metamodel/dochub/entities/aspects/templates/summary.md +9 -0
- package/metamodel/dochub/entities/aspects/templates/tree.puml +5 -0
- package/metamodel/dochub/entities/aspects/tree.yaml +37 -0
- package/metamodel/dochub/entities/components/base.yaml +97 -0
- package/metamodel/dochub/entities/components/blank.yaml +64 -0
- package/metamodel/dochub/entities/components/contexts.yaml +55 -0
- package/metamodel/dochub/entities/components/docs.yaml +50 -0
- package/metamodel/dochub/entities/components/hierarchy.yaml +84 -0
- package/metamodel/dochub/entities/components/index.yaml +17 -0
- package/metamodel/dochub/entities/components/root.yaml +8 -0
- package/metamodel/dochub/entities/components/summary.yaml +58 -0
- package/metamodel/dochub/entities/components/symbol.yaml +113 -0
- package/metamodel/dochub/entities/components/templates/hierarchy.puml +5 -0
- package/metamodel/dochub/entities/components/templates/summary.md +8 -0
- package/metamodel/dochub/entities/components/templates/tree.puml +5 -0
- package/metamodel/dochub/entities/components/tree.yaml +38 -0
- package/metamodel/dochub/entities/contexts/base.yaml +197 -0
- package/metamodel/dochub/entities/contexts/plantuml.yaml +241 -0
- package/metamodel/dochub/entities/contexts/root.yaml +5 -0
- package/metamodel/dochub/entities/contexts/smartants.yaml +177 -0
- package/metamodel/dochub/entities/contexts/templates/template.puml +183 -0
- package/metamodel/dochub/entities/contexts/templates/tree.puml +5 -0
- package/metamodel/dochub/entities/contexts/tree.yaml +39 -0
- package/metamodel/dochub/entities/documents/base.yaml +73 -0
- package/metamodel/dochub/entities/documents/blank.yaml +28 -0
- package/metamodel/dochub/entities/documents/root.yaml +3 -0
- package/metamodel/dochub/entities/root.yaml +5 -0
- package/metamodel/dochub/functions/root.yaml +2 -0
- package/metamodel/dochub/functions/tools.yaml +46 -0
- package/metamodel/dochub/root.yaml +24 -0
- package/metamodel/dochub/rules/root.yaml +2 -0
- package/metamodel/dochub/rules/validators.yaml +144 -0
- package/metamodel/dochub/samples/01_components.yaml +23 -0
- package/metamodel/dochub/samples/02_contexts.yaml +23 -0
- package/metamodel/dochub/samples/03_documents.yaml +10 -0
- package/metamodel/dochub/samples/root.yaml +4 -0
- package/metamodel/dochub/samples/test.puml +17 -0
- package/metamodel/dochub.yaml +5 -0
- package/metamodel/docs/welcome.md +39 -0
- package/metamodel/root.yaml +8 -0
- package/package.json +29 -0
- package/plugin.html +1961 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
Опишем и подключим в озеро нашу первую таблицу
|
|
2
|
+
|
|
3
|
+
```yaml
|
|
4
|
+
docs:
|
|
5
|
+
archtool.plugins.editable-table.acquaintance.table:
|
|
6
|
+
type: editable-table
|
|
7
|
+
headers:
|
|
8
|
+
- value: id
|
|
9
|
+
width: 100px
|
|
10
|
+
- value: name
|
|
11
|
+
width: 200px
|
|
12
|
+
- value: age
|
|
13
|
+
width: 100px
|
|
14
|
+
|
|
15
|
+
source: >
|
|
16
|
+
(
|
|
17
|
+
$data := {
|
|
18
|
+
"row_1": {
|
|
19
|
+
"id": "0001", "name": "Иванов Иван Иванович", "age": 36
|
|
20
|
+
},
|
|
21
|
+
"row_2": {
|
|
22
|
+
"id": "0002", "name": "Петров Петр Петрович", "age": 19
|
|
23
|
+
},
|
|
24
|
+
"row_3": {
|
|
25
|
+
"id": "0003", "name": "Семенов Семен Семенович", "age": 43
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
{ "body": $data }
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Получим результат
|
|
34
|
+
|
|
35
|
+

|
|
36
|
+
|
|
37
|
+
Разберем более подробно основные моменты
|
|
38
|
+
|
|
39
|
+
# Базовые параметры
|
|
40
|
+
|
|
41
|
+
Ключевым для базового описания таблицы является заполнение параметров документа `type`, `headers` и `source`;
|
|
42
|
+
|
|
43
|
+
## Свойство `type`
|
|
44
|
+
|
|
45
|
+
Указание типа создаваемого документа, где `editable-table` является идентификатором редактируемых таблиц.
|
|
46
|
+
|
|
47
|
+
## Свойство `headers`
|
|
48
|
+
|
|
49
|
+
Массив заголовков. В каждом заголовке должно быть описано уникальное значение параметра `value`.
|
|
50
|
+
Прочие параметры `headers` рассмотрим далее.
|
|
51
|
+
|
|
52
|
+
## Свойство `source`
|
|
53
|
+
|
|
54
|
+
JSONata выражение, результатом выполнения которого, ожидается объект содержащий следующие поля:
|
|
55
|
+
|
|
56
|
+
- `body` (обязательное) - содержит данные для наполнения таблицы
|
|
57
|
+
- `headers` (опциональное) - позволяет мутировать заголовки (рассмотрим подробнее ниже)
|
|
58
|
+
|
|
59
|
+
Со структурой `body` можно ознакомиться в примере выше (переменная `$data`).
|
|
60
|
+
|
|
61
|
+
# Использование `origin`
|
|
62
|
+
|
|
63
|
+
При расчете `source`, возможно использовать `origin`.
|
|
64
|
+
Вынесем данные для нашей таблицы в `origin`.
|
|
65
|
+
|
|
66
|
+
```yaml
|
|
67
|
+
archtool.plugins.editable-table.acquaintance.table_with_origin:
|
|
68
|
+
type: editable-table
|
|
69
|
+
origin:
|
|
70
|
+
body: >
|
|
71
|
+
({
|
|
72
|
+
"row_1": {
|
|
73
|
+
"id": "0001", "name": "Иванов Иван Иванович", "age": 36
|
|
74
|
+
},
|
|
75
|
+
"row_2": {
|
|
76
|
+
"id": "0002", "name": "Петров Петр Петрович", "age": 19
|
|
77
|
+
},
|
|
78
|
+
"row_3": {
|
|
79
|
+
"id": "0003", "name": "Семенов Семен Семенович", "age": 43
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
headers:
|
|
83
|
+
- value: id
|
|
84
|
+
width: 100px
|
|
85
|
+
- value: name
|
|
86
|
+
width: 200px
|
|
87
|
+
- value: age
|
|
88
|
+
width: 100px
|
|
89
|
+
|
|
90
|
+
source: >
|
|
91
|
+
({ "body": body })
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
И получим аналогичный результат:
|
|
95
|
+
|
|
96
|
+

|
|
97
|
+
|
|
98
|
+
# Мутация заголовков
|
|
99
|
+
|
|
100
|
+
Опишем еще один `origin` для измененных заголовков. Для существующих заголовков заменим идентификатор заголовка на понятное описание, а также добавим еще один заголовок.
|
|
101
|
+
|
|
102
|
+
```yaml
|
|
103
|
+
archtool.plugins.editable-table.acquaintance.table_header_mutation:
|
|
104
|
+
type: editable-table
|
|
105
|
+
origin:
|
|
106
|
+
updated_headers: >
|
|
107
|
+
(
|
|
108
|
+
$header_placeholder_map := {
|
|
109
|
+
"id": "Идентификатор",
|
|
110
|
+
"name": "Имя",
|
|
111
|
+
"age": "Возраст"
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/* Получаем значение текущих заголовков из документа */
|
|
115
|
+
$headers := $lookup($.docs, "archtool.plugins.editable-table.acquaintance.table_header_mutation").headers;
|
|
116
|
+
|
|
117
|
+
/* Обновленные заголовки */
|
|
118
|
+
$updated_headers := $map($headers, function ($v){(
|
|
119
|
+
/*
|
|
120
|
+
Для каждого заголовка:
|
|
121
|
+
- добавим отображаемое значение, указав "text"
|
|
122
|
+
- изменим ширину колонки на 200px
|
|
123
|
+
*/
|
|
124
|
+
$placeholder := $lookup($header_placeholder_map, $v.value);
|
|
125
|
+
$merge([$v, {"text": $placeholder, "width": "200px"}])
|
|
126
|
+
)});
|
|
127
|
+
|
|
128
|
+
/* Создадим и добавим еще один заголовок */
|
|
129
|
+
$new_header := {"value": "weight", "text": "Вес", "width": "100px" };
|
|
130
|
+
$append($updated_headers, $new_header)
|
|
131
|
+
)
|
|
132
|
+
body: >
|
|
133
|
+
({
|
|
134
|
+
"row_1": {
|
|
135
|
+
"id": "0001", "name": "Иванов Иван Иванович", "age": 36, "weight": 87
|
|
136
|
+
},
|
|
137
|
+
"row_2": {
|
|
138
|
+
"id": "0002", "name": "Петров Петр Петрович", "age": 19, "weight": 75
|
|
139
|
+
},
|
|
140
|
+
"row_3": {
|
|
141
|
+
"id": "0003", "name": "Семенов Семен Семенович", "age": 43, "weight": 80
|
|
142
|
+
}
|
|
143
|
+
})
|
|
144
|
+
headers:
|
|
145
|
+
- value: id
|
|
146
|
+
width: 100px
|
|
147
|
+
- value: name
|
|
148
|
+
width: 200px
|
|
149
|
+
- value: age
|
|
150
|
+
width: 100px
|
|
151
|
+
|
|
152
|
+
source: >
|
|
153
|
+
(
|
|
154
|
+
{ "body": body, "headers": updated_headers }
|
|
155
|
+
)
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Посмотрим на результат:
|
|
159
|
+
|
|
160
|
+

|
|
161
|
+
|
|
162
|
+
## Механика и особенности
|
|
163
|
+
|
|
164
|
+
При указании заголовков в `source` осуществляется поиск по идентификатору данной колонки.
|
|
165
|
+
Если колонка найдена происходит глубокое объединение (deep merge).
|
|
166
|
+
Если колонка не найдена - добавляется как новая.
|
|
167
|
+
|
|
168
|
+
Рассмотрим на примере
|
|
169
|
+
|
|
170
|
+
```yaml
|
|
171
|
+
archtool.plugins.editable-table.acquaintance.table_header_mutation_2:
|
|
172
|
+
type: editable-table
|
|
173
|
+
filtration: false
|
|
174
|
+
sorting: false
|
|
175
|
+
origin:
|
|
176
|
+
updated_headers: >
|
|
177
|
+
([
|
|
178
|
+
{ "value": "new_column_1", "text": "Новая колонка 1" },
|
|
179
|
+
{ "value": "column_3", "text": "Колонка 3 (обновлено)" },
|
|
180
|
+
{ "value": "new_column_2", "text": "Новая колонка 2" },
|
|
181
|
+
{ "value": "column_4" }
|
|
182
|
+
])
|
|
183
|
+
body: >
|
|
184
|
+
({"row_1": {}})
|
|
185
|
+
headers:
|
|
186
|
+
- value: column_1
|
|
187
|
+
text: Колонка 1
|
|
188
|
+
- value: column_2
|
|
189
|
+
text: Колонка 2
|
|
190
|
+
- value: column_3
|
|
191
|
+
text: Колонка 3
|
|
192
|
+
- value: column_4
|
|
193
|
+
text: Колонка 4
|
|
194
|
+
|
|
195
|
+
source: >
|
|
196
|
+
(
|
|
197
|
+
{ "body": body, "headers": updated_headers }
|
|
198
|
+
)
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
В таблице мы описали заголовки:
|
|
202
|
+
|
|
203
|
+
```yaml
|
|
204
|
+
headers:
|
|
205
|
+
- value: column_1
|
|
206
|
+
text: Колонка 1
|
|
207
|
+
- value: column_2
|
|
208
|
+
text: Колонка 2
|
|
209
|
+
- value: column_3
|
|
210
|
+
text: Колонка 3
|
|
211
|
+
- value: column_4
|
|
212
|
+
text: Колонка 4
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
Далее мутируем их данными:
|
|
216
|
+
|
|
217
|
+
```yaml
|
|
218
|
+
updated_headers: >
|
|
219
|
+
([
|
|
220
|
+
{ "value": "new_column_1", "text": "Новая колонка 1" },
|
|
221
|
+
{ "value": "column_3", "text": "Колонка 3 (обновлено)" },
|
|
222
|
+
{ "value": "new_column_2", "text": "Новая колонка 2" },
|
|
223
|
+
{ "value": "column_4" }
|
|
224
|
+
])
|
|
225
|
+
```
|
|
226
|
+
Рассмотрим мутацию поэтапно:
|
|
227
|
+
|
|
228
|
+
1. `{ "value": "new_column_1", "text": "Новая колонка 1" }`
|
|
229
|
+
|
|
230
|
+
Заголовка с идентификатором (`value`) `new_column_1` не существует - заголовок добавлен как новый.
|
|
231
|
+
|
|
232
|
+
2. `{ "value": "column_3", "text": "Колонка 3 (обновлено)" }`
|
|
233
|
+
|
|
234
|
+
Заголовок с идентификатором (`value`) `column_3` уже описан. Свойство `text` будет заменено.
|
|
235
|
+
|
|
236
|
+
3. `{ "value": "new_column_2", "text": "Новая колонка 2" }`
|
|
237
|
+
|
|
238
|
+
Заголовок с идентификатором (`value`) `new_column_2` не существует - заголовок добавлен как новый.
|
|
239
|
+
|
|
240
|
+
4. `{ "value": "column_4" }`
|
|
241
|
+
|
|
242
|
+
Заголовок с идентификатором (`value`) `column_4` уже описан, но другие свойства не переданы, поэтому ничего не поменяется.
|
|
243
|
+
|
|
244
|
+
Посмотрим на результат:
|
|
245
|
+
|
|
246
|
+

|
|
247
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
archtool.plugins.editable-table.parameterization.data:
|
|
2
|
+
pets:
|
|
3
|
+
cats:
|
|
4
|
+
- name: Барсик
|
|
5
|
+
color: серый
|
|
6
|
+
vaccinated: true
|
|
7
|
+
- name: Рыжик
|
|
8
|
+
color: рыжий
|
|
9
|
+
vaccinated: false
|
|
10
|
+
- name: Мурка
|
|
11
|
+
color: черно-белый
|
|
12
|
+
vaccinated: true
|
|
13
|
+
- name: Черныш
|
|
14
|
+
color: черный
|
|
15
|
+
vaccinated: true
|
|
16
|
+
dogs:
|
|
17
|
+
- name: Барон
|
|
18
|
+
color: черный
|
|
19
|
+
vaccinated: true
|
|
20
|
+
- name: Рекс
|
|
21
|
+
color: серый
|
|
22
|
+
vaccinated: true
|
|
23
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
docs:
|
|
2
|
+
archtool.plugins.editable-table.parameterization.menu:
|
|
3
|
+
toc: true
|
|
4
|
+
location: SEAF.ArchTool/Руководство/Документы/Редактируемая таблица/2. Параметризация
|
|
5
|
+
type: markdown
|
|
6
|
+
source: template_root.md
|
|
7
|
+
|
|
8
|
+
entities:
|
|
9
|
+
systems:
|
|
10
|
+
menu: >
|
|
11
|
+
(
|
|
12
|
+
$pets := $keys($."archtool.plugins.editable-table.parameterization.data".pets);
|
|
13
|
+
$start_location := "Документы/SEAF.ArchTool/Руководство/Документы/Редактируемая таблица/2. Параметризация/";
|
|
14
|
+
|
|
15
|
+
$map($pets, function($v, $i, $a) {(
|
|
16
|
+
$name := $v = "cats" ? "2. 1. Параметр 'pets' = 'cats'" : "2. 2. Параметр 'pets' = 'dogs'";
|
|
17
|
+
{
|
|
18
|
+
"location": $start_location & $name,
|
|
19
|
+
"link": "/entities/systems/archtool.plugins.editable-table.parameterization.table?id=" & $v
|
|
20
|
+
}
|
|
21
|
+
)})
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
presentations:
|
|
25
|
+
archtool.plugins.editable-table.parameterization.table:
|
|
26
|
+
title: Таблица
|
|
27
|
+
type: markdown
|
|
28
|
+
template: template_table.md
|
|
29
|
+
source: >
|
|
30
|
+
(
|
|
31
|
+
$id := $params.id;
|
|
32
|
+
{ "pet": $id }
|
|
33
|
+
)
|
|
34
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
docs:
|
|
2
|
+
archtool.plugins.editable-table.parameterization.table:
|
|
3
|
+
type: editable-table
|
|
4
|
+
origin:
|
|
5
|
+
body: >
|
|
6
|
+
(
|
|
7
|
+
$pet_type := $params.pet;
|
|
8
|
+
$pets := $lookup($."archtool.plugins.editable-table.parameterization.data".pets, $pet_type);
|
|
9
|
+
|
|
10
|
+
$table_data := $reduce($pets, function($acc, $v, $i){(
|
|
11
|
+
$row_id := "row_" & $i;
|
|
12
|
+
$row := {$row_id: $v};
|
|
13
|
+
$merge([$acc, $row])
|
|
14
|
+
)}, {})
|
|
15
|
+
)
|
|
16
|
+
headers: >
|
|
17
|
+
(
|
|
18
|
+
/* из переданных параметров получим значение "cats" или "dogs" */
|
|
19
|
+
$pet_type := $params.pet;
|
|
20
|
+
|
|
21
|
+
/* добавим заголовок для обоих кейсов */
|
|
22
|
+
$default_header := { "value": "name", "text": "кличка" };
|
|
23
|
+
|
|
24
|
+
/* добавим заголовок по условию */
|
|
25
|
+
$conditional_header := $pet_type = "cats"
|
|
26
|
+
? { "value": "color", "text": "цвет" }
|
|
27
|
+
: { "value": "vaccinated", "type": "checkbox", "text": "вакцинирован" };
|
|
28
|
+
|
|
29
|
+
$map([$default_header, $conditional_header], function($v){(
|
|
30
|
+
$merge([$v, {"width": "150px"}])
|
|
31
|
+
)})
|
|
32
|
+
)
|
|
33
|
+
source: >
|
|
34
|
+
(
|
|
35
|
+
{ "body": body, "headers": headers }
|
|
36
|
+
)
|
package/documentation/docs/manual/docs/editable_table/step_2_parameterization/template_root.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
Разберем пример использования параметризации.
|
|
2
|
+
|
|
3
|
+
В этом примере мы будем передавать в таблицу параметр `pets` с двумя возможными значениями `cats` и `dogs`. В зависимости от переданных значений будем отображать различные заголовки в таблице
|
|
4
|
+
|
|
5
|
+
В этот раз будем использовать данные из архитектурного озера.
|
|
6
|
+
|
|
7
|
+
# Подготовим и подключим данные в озеро для текущего примера
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
archtool.plugins.editable-table.parameterization.data:
|
|
11
|
+
pets:
|
|
12
|
+
cats:
|
|
13
|
+
- name: Барсик
|
|
14
|
+
color: серый
|
|
15
|
+
vaccinated: true
|
|
16
|
+
- name: Рыжик
|
|
17
|
+
color: рыжий
|
|
18
|
+
vaccinated: false
|
|
19
|
+
- name: Мурка
|
|
20
|
+
color: черно-белый
|
|
21
|
+
vaccinated: true
|
|
22
|
+
- name: Черныш
|
|
23
|
+
color: черный
|
|
24
|
+
vaccinated: true
|
|
25
|
+
dogs:
|
|
26
|
+
- name: Барон
|
|
27
|
+
color: черный
|
|
28
|
+
vaccinated: true
|
|
29
|
+
- name: Рекс
|
|
30
|
+
color: серый
|
|
31
|
+
vaccinated: true
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
# Сформируем меню и презентацию
|
|
35
|
+
|
|
36
|
+
```yaml
|
|
37
|
+
entities:
|
|
38
|
+
systems:
|
|
39
|
+
menu: >
|
|
40
|
+
(
|
|
41
|
+
$pets := $keys($."archtool.plugins.editable-table.parameterization.data".pets);
|
|
42
|
+
$start_location := "Документы/SEAF.ArchTool/Руководство/Документы/Редактируемая таблица/2. Параметризация/";
|
|
43
|
+
|
|
44
|
+
$map($pets, function($v, $i, $a) {(
|
|
45
|
+
$name := $v = "cats" ? "2. 1. Параметр - 1 (Кошки)" : "2. 2. Параметр - 2 (Собаки)";
|
|
46
|
+
{
|
|
47
|
+
"location": $start_location & $name,
|
|
48
|
+
"link": "/entities/systems/archtool.plugins.editable-table.parameterization.table?id=" & $v
|
|
49
|
+
}
|
|
50
|
+
)})
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
presentations:
|
|
54
|
+
archtool.plugins.editable-table.parameterization.table:
|
|
55
|
+
title: Таблица
|
|
56
|
+
type: markdown
|
|
57
|
+
template: template_table.md
|
|
58
|
+
source: >
|
|
59
|
+
(
|
|
60
|
+
$id := $params.id;
|
|
61
|
+
{ "pet": $id }
|
|
62
|
+
)
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
# Опишем таблицу
|
|
66
|
+
|
|
67
|
+
```yaml
|
|
68
|
+
docs:
|
|
69
|
+
archtool.plugins.editable-table.parameterization.table:
|
|
70
|
+
type: editable-table
|
|
71
|
+
origin:
|
|
72
|
+
body: >
|
|
73
|
+
(
|
|
74
|
+
$pet_type := $params.pet;
|
|
75
|
+
$pets := $lookup($."archtool.plugins.editable-table.parameterization.data".pets, $pet_type);
|
|
76
|
+
|
|
77
|
+
$table_data := $reduce($pets, function($acc, $v, $i){(
|
|
78
|
+
$row_id := "row_" & $i;
|
|
79
|
+
$row := {$row_id: $v};
|
|
80
|
+
$merge([$acc, $row])
|
|
81
|
+
)}, {})
|
|
82
|
+
)
|
|
83
|
+
headers: >
|
|
84
|
+
(
|
|
85
|
+
/* из переданных параметров получим значение "cats" или "dogs" */
|
|
86
|
+
$pet_type := $params.pet;
|
|
87
|
+
|
|
88
|
+
/* добавим заголовок для обоих кейсов */
|
|
89
|
+
$default_header := { "value": "name", "text": "кличка" };
|
|
90
|
+
|
|
91
|
+
/* добавим заголовок по условию */
|
|
92
|
+
$conditional_header := $pet_type = "cats"
|
|
93
|
+
? { "value": "color", "text": "цвет" }
|
|
94
|
+
: { "value": "vaccinated", "type": "checkbox", "text": "вакцинирован" };
|
|
95
|
+
|
|
96
|
+
$map([$default_header, $conditional_header], function($v){(
|
|
97
|
+
$merge([$v, {"width": "150px"}])
|
|
98
|
+
)})
|
|
99
|
+
)
|
|
100
|
+
source: >
|
|
101
|
+
(
|
|
102
|
+
{ "body": body, "headers": headers }
|
|
103
|
+
)
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
В текущем примере мы подготовили для таблицы различные заголовки в зависимости от переданных параметров.
|
|
107
|
+
В случае передачи параметра:
|
|
108
|
+
|
|
109
|
+
- [`cats`](/entities/systems/archtool.plugins.editable-table.parameterization.table?id=cats) - показываем цвет питомца
|
|
110
|
+
- [`dogs`](/entities/systems/archtool.plugins.editable-table.parameterization.table?id=dogs) - показываем привит ли питомец
|