@opengis/admin 0.2.82 → 0.2.83

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.
@@ -0,0 +1,20 @@
1
+ {
2
+ "title": {
3
+ "type": "text",
4
+ "ua": "Назва українською",
5
+ "col": 12,
6
+ "validators": []
7
+ },
8
+ "table_name": {
9
+ "type": "text",
10
+ "ua": "Таблиця в БД",
11
+ "col": 12,
12
+ "validators": []
13
+ },
14
+ "entity": {
15
+ "type": "text",
16
+ "ua": "Інтерфейс",
17
+ "col": 12,
18
+ "validators": []
19
+ }
20
+ }
@@ -12,12 +12,6 @@
12
12
  "ua": "Користувачі",
13
13
  "en": "Users"
14
14
  },
15
- {
16
- "path": "admin.accounts",
17
- "table": "admin.accounts.table",
18
- "ua": "Організації",
19
- "en": "Accounts"
20
- },
21
15
  {
22
16
  "path": "admin.roles",
23
17
  "table": "admin.roles.table",
@@ -31,10 +25,9 @@
31
25
  "en": "Routes"
32
26
  },
33
27
  {
34
- "path": "admin.rules",
35
- "table": "admin.rules.table",
36
- "ua": "Повноваження",
37
- "en": "Rules"
28
+ "path": "auth.logs",
29
+ "table": "auth.logs.table",
30
+ "ua": "Логи інтерфейсів"
38
31
  }
39
32
  ]
40
33
  },
@@ -57,28 +50,10 @@
57
50
  "en": "Settings"
58
51
  },
59
52
  {
60
- "path": "admin.user_properties",
61
- "table": "admin.user_properties.table",
62
- "ua": "Налаштування користувача",
63
- "en": "User settings"
64
- },
65
- {
66
- "path": "admin.custom_column",
67
- "table": "admin.custom_column.table",
68
- "ua": "Налаштування користувацьких колонок",
69
- "en": "User custom column settings"
70
- },
71
- {
72
- "path": "context.account_grants",
73
- "table": "context.account_grants.table",
74
- "ua": "Налаштування організацій",
75
- "en": "Account settings"
76
- },
77
- {
78
- "path": "context.account_users",
79
- "table": "context.account_users.table",
80
- "ua": "Користувачі/Організації",
81
- "en": "Contact/Account"
53
+ "path": "admin.table_properties",
54
+ "table": "admin.table_properties.table",
55
+ "ua": "Налаштування таблиць (test)",
56
+ "en": "Table settings"
82
57
  }
83
58
  ]
84
59
  }
@@ -0,0 +1,38 @@
1
+ {
2
+ "table": "test.table_properties",
3
+ "key": "table_property_id",
4
+ "query": "1=1",
5
+ "form": "admin.table_properties.form",
6
+ "meta": {
7
+ "title": "table_name, table_id",
8
+ "search": "table_name, table_id"
9
+ },
10
+ "card": true,
11
+ "order": "cdate desc",
12
+ "actions": [
13
+ "add",
14
+ "edit",
15
+ "del"
16
+ ],
17
+ "sql": [
18
+
19
+ ],
20
+ "columns": [
21
+ {
22
+ "ua": "Назва",
23
+ "name": "title",
24
+ "format": "text"
25
+ },
26
+ {
27
+ "ua": "Таблиця в БД",
28
+ "name": "table_name",
29
+ "format": "text"
30
+ }
31
+ ],
32
+ "filterList": [
33
+
34
+ ],
35
+ "filterInline": [],
36
+ "filterState": [],
37
+ "filterCustom": []
38
+ }
@@ -0,0 +1,98 @@
1
+ {
2
+ "key": "change_id",
3
+ "ua": "Логи",
4
+ "table": "log.table_changes",
5
+ "order": "cdate desc",
6
+ "card": false,
7
+ "meta": {
8
+ "title": "change_id",
9
+ "search": "change_id,change_type,change_user_id,entity_type,entity_id,uid"
10
+ },
11
+ "sql": [
12
+ {
13
+ "sql": "select to_char(cdate ,'dd.mm.yyyy / hh:mi:ss') as cdate_format",
14
+ "name": "cdate_format_sql"
15
+ },
16
+ {
17
+ "sql": "select json_agg(json_build_object(entity_key,value_old)) as value_old, json_agg(json_build_object(entity_key,value_new)) as value_new from log.table_changes_data where change_id=t.change_id",
18
+ "name": "table_changes_data_sql"
19
+ }
20
+ ],
21
+ "columns": [
22
+ {
23
+ "ua": "Дата",
24
+ "name": "cdate_format",
25
+ "format": "text"
26
+ },
27
+ {
28
+ "ua": "Користувач",
29
+ "width": 300,
30
+ "name": "change_user_id",
31
+ "data": "admin.users",
32
+ "format": "select"
33
+ },
34
+ {
35
+ "ua": "Назва таблиці",
36
+ "name": "entity_type",
37
+ "format": "text"
38
+ },
39
+ {
40
+ "ua": "Дія",
41
+ "name": "change_type",
42
+ "format": "text"
43
+ },
44
+ {
45
+ "ua": "Колонки до",
46
+ "name": "value_old",
47
+ "width": 300,
48
+ "format": "slot",
49
+ "hidden": true,
50
+ "slot": {
51
+ "content": "{{JSON.stringify(data?.value_old)}}"
52
+ }
53
+ },
54
+ {
55
+ "ua": "Колонки після",
56
+ "name": "value_new",
57
+ "format": "slot",
58
+ "width": 300,
59
+ "hidden": true,
60
+ "slot": {
61
+ "content": "{{JSON.stringify(data?.value_new)}}"
62
+ }
63
+ },
64
+ {
65
+ "ua": "ID об'єкту",
66
+ "name": "entity_id",
67
+ "format": "text"
68
+ }
69
+ ],
70
+ "filter_list": [
71
+ {
72
+ "ua": "Користувач",
73
+ "data": "admin.users",
74
+ "name": "change_user_id",
75
+ "type": "Autocomplete"
76
+ },
77
+ {
78
+ "ua": "Дата",
79
+ "name": "cdate",
80
+ "type": "Datepicker"
81
+ },
82
+ {
83
+ "name": "entity_type",
84
+ "ua": "Назва таблиці",
85
+ "type": "Text"
86
+ },
87
+ {
88
+ "name": "e",
89
+ "ua": "ID об'єкту",
90
+ "type": "Text"
91
+ },
92
+ {
93
+ "ua": "Дія",
94
+ "name": "change_type",
95
+ "type": "Text "
96
+ }
97
+ ]
98
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/admin",
3
- "version": "0.2.82",
3
+ "version": "0.2.83",
4
4
  "description": "This project Softpro Admin",
5
5
  "main": "dist/admin.js",
6
6
  "type": "module",
@@ -46,12 +46,12 @@
46
46
  "@fullcalendar/list": "^6.1.15",
47
47
  "@fullcalendar/timegrid": "^6.1.15",
48
48
  "@fullcalendar/vue3": "^6.1.15",
49
- "@opengis/admin": "^0.1.69",
49
+ "@opengis/admin": "^0.2.82",
50
50
  "@opengis/fastify-auth": "^1.0.61",
51
- "@opengis/fastify-file": "^1.0.39",
52
- "@opengis/fastify-table": "^1.1.143",
53
- "@opengis/v3-core": "^0.3.29",
54
- "@opengis/v3-filter": "^0.0.41",
51
+ "@opengis/fastify-file": "^1.0.40",
52
+ "@opengis/fastify-table": "^1.1.146",
53
+ "@opengis/v3-core": "^0.3.33",
54
+ "@opengis/v3-filter": "^0.0.62",
55
55
  "@tabler/icons-vue": "^3.28.1",
56
56
  "@tiptap/core": "^2.8.0",
57
57
  "@tiptap/extension-color": "^2.8.0",
@@ -79,6 +79,7 @@
79
79
  "vue-router": "^4.3.0"
80
80
  },
81
81
  "devDependencies": {
82
+ "@opengis/table-builder": "^1.1.1",
82
83
  "@panzoom/panzoom": "^4.5.1",
83
84
  "@vue/eslint-config-typescript": "^12.0.0",
84
85
  "autoprefixer": "^10.4.20",
@@ -96,4 +97,4 @@
96
97
  "vitepress-plugin-tabs": "^0.5.0",
97
98
  "vitepress-sidebar": "^1.22.0"
98
99
  }
99
- }
100
+ }
@@ -22,7 +22,7 @@
22
22
  "type": "Autocomplete",
23
23
  "data": "customer_name",
24
24
  "add": {
25
- "model": "crm_acc.crm_account",
25
+ "model": "crm.accounts",
26
26
  "ua": "Додати",
27
27
  "form": "account_light.form"
28
28
  },
@@ -1 +1 @@
1
- select account_id, account_name from crm_acc.crm_account
1
+ select account_id, account_name from crm.accounts