@opengis/admin 0.1.58 → 0.1.59

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/README.md +29 -29
  2. package/config.js +4 -4
  3. package/dist/{add-page-d6TCPawD.js → add-page-BOXd-uV_.js} +1 -1
  4. package/dist/{admin-interface-w6YuIWM3.js → admin-interface-DbfKIAnw.js} +211 -207
  5. package/dist/{admin-view-3Sz3UF_y.js → admin-view-DDDd_P1v.js} +2 -2
  6. package/dist/admin.js +1 -1
  7. package/dist/admin.umd.cjs +12 -12
  8. package/dist/{card-page-BsQts5XS.js → card-page-Bq7fUm5C.js} +2 -2
  9. package/dist/{card-view-UYkkl_Pu.js → card-view-NLu0N8TA.js} +1 -1
  10. package/dist/{edit-page-CtKHElG1.js → edit-page-z7ozrw2C.js} +1 -1
  11. package/dist/{import-file-CsCQ5xvs.js → import-file-BBA7riUK.js} +13 -20
  12. package/dist/style.css +1 -1
  13. package/module/settings/card/admin.roles.table/access.hbs +27 -27
  14. package/module/settings/card/admin.roles.table/general_info.hbs +16 -16
  15. package/module/settings/card/admin.roles.table/index.yml +14 -14
  16. package/module/settings/card/admin.roles.table/users.hbs +27 -27
  17. package/module/settings/card/admin.routes.table/general_info.hbs +40 -40
  18. package/module/settings/card/admin.routes.table/index.yml +8 -8
  19. package/module/settings/card/admin.routes.table/users.hbs +33 -33
  20. package/module/settings/card/admin.users.table/general_info.hbs +25 -25
  21. package/module/settings/card/admin.users.table/index.yml +12 -12
  22. package/module/settings/card/admin.users.table/logs.hbs +30 -30
  23. package/module/settings/card/admin.users.table/user_roles.hbs +24 -24
  24. package/module/settings/cls/core.actions.json +13 -13
  25. package/module/settings/cls/core.scope.json +13 -13
  26. package/module/settings/cls/properties.site_status.json +13 -13
  27. package/module/settings/cls/properties.widget_status.json +13 -13
  28. package/module/settings/cls/users.user_type.json +13 -13
  29. package/module/settings/form/admin.access.form.json +36 -36
  30. package/module/settings/form/admin.custom_column.form.json +71 -71
  31. package/module/settings/form/admin.properties.form.json +15 -15
  32. package/module/settings/form/admin.roles.form.json +19 -19
  33. package/module/settings/form/admin.routes.form.json +25 -25
  34. package/module/settings/form/admin.user_properties.form.json +15 -15
  35. package/module/settings/form/admin.user_roles.form.json +21 -21
  36. package/module/settings/form/admin.users.form.json +150 -150
  37. package/module/settings/form/user.user_roles.form.json +13 -13
  38. package/module/settings/interface/admin.properties.json +4 -4
  39. package/module/settings/interface/admin.roles.json +4 -4
  40. package/module/settings/interface/admin.routes.json +4 -4
  41. package/module/settings/interface/admin.users.json +4 -4
  42. package/module/settings/menu.json +50 -50
  43. package/module/settings/select/core.roles.json +2 -2
  44. package/module/settings/select/core.routes.sql +1 -1
  45. package/module/settings/select/core.user_uid.sql +1 -1
  46. package/module/settings/table/admin.access.table.json +77 -77
  47. package/module/settings/table/admin.custom_column.table.json +94 -94
  48. package/module/settings/table/admin.properties.table.json +33 -33
  49. package/module/settings/table/admin.roles.table.json +58 -58
  50. package/module/settings/table/admin.routes.table.json +67 -67
  51. package/module/settings/table/admin.user_properties.table.json +28 -28
  52. package/module/settings/table/admin.user_roles.table.json +66 -66
  53. package/module/settings/table/admin.users.table.json +119 -119
  54. package/package.json +79 -81
  55. package/plugin.js +164 -162
  56. package/server/helpers/controllers/badge.js +11 -11
  57. package/server/helpers/controllers/hb.js +2 -2
  58. package/server/helpers/controllers/map.js +2 -2
  59. package/server/helpers/controllers/mls.js +2 -2
  60. package/server/helpers/controllers/vue.js +2 -2
  61. package/server/helpers/index.mjs +13 -13
  62. package/server/plugins/docs.js +28 -28
  63. package/server/plugins/hook.js +228 -228
  64. package/server/plugins/vite.js +69 -69
  65. package/server/routes/calendar/controllers/calendar.data.js +88 -88
  66. package/server/routes/calendar/index.mjs +17 -17
  67. package/server/routes/data/controllers/cardData.js +56 -56
  68. package/server/routes/data/controllers/cardTabData.js +49 -49
  69. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
  70. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
  71. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  72. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
  73. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  74. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  75. package/server/routes/data/controllers/tableData.js +145 -145
  76. package/server/routes/data/controllers/tableDataId.js +27 -27
  77. package/server/routes/data/controllers/tableFilter.js +63 -63
  78. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  79. package/server/routes/data/controllers/utils/getColumns.js +21 -21
  80. package/server/routes/data/index.mjs +15 -15
  81. package/server/routes/data/schema.js +7 -7
  82. package/server/routes/menu/controllers/getMenu.js +34 -34
  83. package/server/routes/menu/index.mjs +5 -5
  84. package/server/routes/notifications/controllers/readNotifications.js +30 -30
  85. package/server/routes/notifications/controllers/userNotifications.js +64 -64
  86. package/server/routes/notifications/hook/onWidgetSet.js +63 -63
  87. package/server/routes/notifications/index.mjs +40 -40
  88. package/server/routes/properties/controllers/admin.properties.get.js +29 -29
  89. package/server/routes/properties/controllers/user.properties.get.js +34 -34
  90. package/server/routes/properties/controllers/user.properties.post.js +30 -30
  91. package/server/routes/properties/funcs/getSettings.js +56 -56
  92. package/server/routes/properties/funcs/setSettings.js +44 -44
  93. package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
  94. package/server/routes/properties/index.mjs +26 -26
  95. package/server/routes/root.mjs +3 -3
  96. package/server/routes/templates/controllers/getTemplate.js +16 -16
  97. package/server/routes/templates/index.mjs +14 -14
  98. package/server/templates/cls/itree.recrzone_category.json +73 -73
  99. package/server/templates/cls/test.json +9 -9
  100. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  101. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  102. package/server/templates/form/cp_building.form.json +32 -32
  103. package/server/templates/form/form-user-pass.json +10 -10
  104. package/server/templates/form/form-user_group.json +39 -39
  105. package/server/templates/form/form-users.json +156 -156
  106. package/server/templates/form/user_group_access.form.json +22 -22
  107. package/server/templates/select/account_id.json +2 -2
  108. package/server/templates/table/gis.dataset.table.json +43 -43
  109. package/server/templates/table/management.user_group.table.json +112 -112
  110. package/server/templates/table/management.users.table.json +126 -126
  111. package/utils.js +21 -21
@@ -1,78 +1,78 @@
1
- {
2
- "columns": [
3
- {
4
- "name": "route_id",
5
- "data": "core.routes",
6
- "title": "Interface"
7
- },
8
- {
9
- "name": "actions",
10
- "data": "core.actions",
11
- "title": "Actions"
12
- },
13
- {
14
- "name": "role_id",
15
- "data": "core.roles",
16
- "title": "Група"
17
- },
18
- {
19
- "name": "user_uid",
20
- "data": "core.user_uid",
21
- "title": "Користувач"
22
- },
23
- {
24
- "name": "scope",
25
- "data": "core.scope",
26
- "title": "Доступ до даних"
27
- },
28
- {
29
- "name": "access_granted",
30
- "data": "core.user_uid",
31
- "title": "Хто надав доступ"
32
- },
33
- {
34
- "name": "access_granted_time",
35
- "format": "date",
36
- "title": "Дата надання доступу"
37
- }
38
- ],
39
- "ua": "Доступи",
40
- "form": "admin.access.form",
41
- "table": "admin.access",
42
- "order": "cdate desc",
43
- "meta": {
44
- "title": "access_id",
45
- "search": "route_id"
46
- },
47
- "filters": [
48
- {
49
- "id": "route_id",
50
- "label": "Interface",
51
- "data": "core.routes",
52
- "type": "Select"
53
- },
54
- {
55
- "id": "role_id",
56
- "label": "Група",
57
- "data": "core.roles",
58
- "type": "Select"
59
- },
60
- {
61
- "id": "user_uid",
62
- "label": "Користувач",
63
- "data": "core.user_uid",
64
- "type": "Select"
65
- },
66
- {
67
- "id": "access_granted",
68
- "label": "Хто надав доступ",
69
- "data": "core.user_uid",
70
- "type": "Select"
71
- },
72
- {
73
- "id": "access_granted_time",
74
- "label": "Дата надання доступу",
75
- "type": "Date"
76
- }
77
- ]
1
+ {
2
+ "columns": [
3
+ {
4
+ "name": "route_id",
5
+ "data": "core.routes",
6
+ "title": "Interface"
7
+ },
8
+ {
9
+ "name": "actions",
10
+ "data": "core.actions",
11
+ "title": "Actions"
12
+ },
13
+ {
14
+ "name": "role_id",
15
+ "data": "core.roles",
16
+ "title": "Група"
17
+ },
18
+ {
19
+ "name": "user_uid",
20
+ "data": "core.user_uid",
21
+ "title": "Користувач"
22
+ },
23
+ {
24
+ "name": "scope",
25
+ "data": "core.scope",
26
+ "title": "Доступ до даних"
27
+ },
28
+ {
29
+ "name": "access_granted",
30
+ "data": "core.user_uid",
31
+ "title": "Хто надав доступ"
32
+ },
33
+ {
34
+ "name": "access_granted_time",
35
+ "format": "date",
36
+ "title": "Дата надання доступу"
37
+ }
38
+ ],
39
+ "ua": "Доступи",
40
+ "form": "admin.access.form",
41
+ "table": "admin.access",
42
+ "order": "cdate desc",
43
+ "meta": {
44
+ "title": "access_id",
45
+ "search": "route_id"
46
+ },
47
+ "filters": [
48
+ {
49
+ "id": "route_id",
50
+ "label": "Interface",
51
+ "data": "core.routes",
52
+ "type": "Select"
53
+ },
54
+ {
55
+ "id": "role_id",
56
+ "label": "Група",
57
+ "data": "core.roles",
58
+ "type": "Select"
59
+ },
60
+ {
61
+ "id": "user_uid",
62
+ "label": "Користувач",
63
+ "data": "core.user_uid",
64
+ "type": "Select"
65
+ },
66
+ {
67
+ "id": "access_granted",
68
+ "label": "Хто надав доступ",
69
+ "data": "core.user_uid",
70
+ "type": "Select"
71
+ },
72
+ {
73
+ "id": "access_granted_time",
74
+ "label": "Дата надання доступу",
75
+ "type": "Date"
76
+ }
77
+ ]
78
78
  }
@@ -1,95 +1,95 @@
1
- {
2
- "ua": "Налаштування користувацьких колонок",
3
- "key": "column_id",
4
- "form": "admin.custom_column.form",
5
- "table": "admin.custom_column",
6
- "order": "cdate desc",
7
- "meta": {
8
- "search": "name,entity,title"
9
- },
10
- "columns": [
11
- {
12
- "name": "entity",
13
- "title": "Таблиця",
14
- "format": "text"
15
- },
16
- {
17
- "name": "name",
18
- "title": "Назва",
19
- "format": "text"
20
- },
21
- {
22
- "name": "title",
23
- "title": "Підпис",
24
- "format": "text"
25
- },
26
- {
27
- "name": "format",
28
- "title": "Формат",
29
- "format": "text"
30
- },
31
- {
32
- "name": "data",
33
- "title": "Випадаючий список",
34
- "hidden": true,
35
- "format": "text"
36
- },
37
- {
38
- "name": "filter",
39
- "title": "Фільтр по колонці",
40
- "format": "yes_no"
41
- },
42
- {
43
- "name": "_table",
44
- "title": "Відображати в таблиці",
45
- "format": "yes_no"
46
- },
47
- {
48
- "name": "uid",
49
- "title": "Користувач",
50
- "option": "core.user_uid",
51
- "format": "select"
52
- }
53
-
54
- ],
55
- "filters": [
56
- {
57
- "ua": "Ключ",
58
- "name": "name",
59
- "type": "text"
60
- },
61
- {
62
- "ua": "Таблиця",
63
- "name": "entity",
64
- "type": "text"
65
- },
66
- {
67
- "ua": "Підпис",
68
- "name": "title",
69
- "type": "text"
70
- },
71
- {
72
- "name": "format",
73
- "ua": "Формат",
74
- "type": "Text"
75
- },
76
- {
77
- "name": "filter",
78
- "ua": "Фільтр по колонці",
79
- "type": "Check",
80
- "data": "yes_no"
81
- },
82
- {
83
- "name": "_table",
84
- "ua": "Відображати в таблиці",
85
- "type": "Check",
86
- "data": "yes_no"
87
- },
88
- {
89
- "name": "uid",
90
- "title": "Користувач",
91
- "data": "core.user_uid",
92
- "type": "Text"
93
- }
94
- ]
1
+ {
2
+ "ua": "Налаштування користувацьких колонок",
3
+ "key": "column_id",
4
+ "form": "admin.custom_column.form",
5
+ "table": "admin.custom_column",
6
+ "order": "cdate desc",
7
+ "meta": {
8
+ "search": "name,entity,title"
9
+ },
10
+ "columns": [
11
+ {
12
+ "name": "entity",
13
+ "title": "Таблиця",
14
+ "format": "text"
15
+ },
16
+ {
17
+ "name": "name",
18
+ "title": "Назва",
19
+ "format": "text"
20
+ },
21
+ {
22
+ "name": "title",
23
+ "title": "Підпис",
24
+ "format": "text"
25
+ },
26
+ {
27
+ "name": "format",
28
+ "title": "Формат",
29
+ "format": "text"
30
+ },
31
+ {
32
+ "name": "data",
33
+ "title": "Випадаючий список",
34
+ "hidden": true,
35
+ "format": "text"
36
+ },
37
+ {
38
+ "name": "filter",
39
+ "title": "Фільтр по колонці",
40
+ "format": "yes_no"
41
+ },
42
+ {
43
+ "name": "_table",
44
+ "title": "Відображати в таблиці",
45
+ "format": "yes_no"
46
+ },
47
+ {
48
+ "name": "uid",
49
+ "title": "Користувач",
50
+ "option": "core.user_uid",
51
+ "format": "select"
52
+ }
53
+
54
+ ],
55
+ "filters": [
56
+ {
57
+ "ua": "Ключ",
58
+ "name": "name",
59
+ "type": "text"
60
+ },
61
+ {
62
+ "ua": "Таблиця",
63
+ "name": "entity",
64
+ "type": "text"
65
+ },
66
+ {
67
+ "ua": "Підпис",
68
+ "name": "title",
69
+ "type": "text"
70
+ },
71
+ {
72
+ "name": "format",
73
+ "ua": "Формат",
74
+ "type": "Text"
75
+ },
76
+ {
77
+ "name": "filter",
78
+ "ua": "Фільтр по колонці",
79
+ "type": "Check",
80
+ "data": "yes_no"
81
+ },
82
+ {
83
+ "name": "_table",
84
+ "ua": "Відображати в таблиці",
85
+ "type": "Check",
86
+ "data": "yes_no"
87
+ },
88
+ {
89
+ "name": "uid",
90
+ "title": "Користувач",
91
+ "data": "core.user_uid",
92
+ "type": "Text"
93
+ }
94
+ ]
95
95
  }
@@ -1,34 +1,34 @@
1
- {
2
- "ua": "Налаштування",
3
- "key": "property_id",
4
- "form": "admin.properties.form",
5
- "table": "admin.properties",
6
- "order": "cdate desc",
7
- "meta": {
8
- "search": "property_key,property_text"
9
- },
10
- "columns": [
11
- {
12
- "name": "property_key",
13
- "title": "Ключ",
14
- "format": "text"
15
- },
16
- {
17
- "name": "property_text",
18
- "title": "Значення",
19
- "format": "text"
20
- }
21
- ],
22
- "filters": [
23
- {
24
- "ua": "Ключ",
25
- "name": "property_key",
26
- "type": "text"
27
- },
28
- {
29
- "ua": "Значення",
30
- "name": "property_text",
31
- "type": "text"
32
- }
33
- ]
1
+ {
2
+ "ua": "Налаштування",
3
+ "key": "property_id",
4
+ "form": "admin.properties.form",
5
+ "table": "admin.properties",
6
+ "order": "cdate desc",
7
+ "meta": {
8
+ "search": "property_key,property_text"
9
+ },
10
+ "columns": [
11
+ {
12
+ "name": "property_key",
13
+ "title": "Ключ",
14
+ "format": "text"
15
+ },
16
+ {
17
+ "name": "property_text",
18
+ "title": "Значення",
19
+ "format": "text"
20
+ }
21
+ ],
22
+ "filters": [
23
+ {
24
+ "ua": "Ключ",
25
+ "name": "property_key",
26
+ "type": "text"
27
+ },
28
+ {
29
+ "ua": "Значення",
30
+ "name": "property_text",
31
+ "type": "text"
32
+ }
33
+ ]
34
34
  }
@@ -1,59 +1,59 @@
1
- {
2
- "ua": "Групи",
3
- "form": "admin.roles.form",
4
- "table": "admin.roles",
5
- "order": "cdate desc",
6
- "sql": [
7
- {
8
- "sql": "select count(user_uid) as user_count from admin.user_roles where role_id=t.role_id",
9
- "name": "user_count"
10
- },
11
- {
12
- "sql": "select count(route_id) as routes_count from admin.access where role_id=t.role_id",
13
- "name": "routes_count"
14
- }
15
- ],
16
- "columns": [
17
- {
18
- "name": "name",
19
- "format": "text",
20
- "title": "Назва"
21
- },
22
- {
23
- "name": "user_count",
24
- "format": "text",
25
- "title": "Кількість користувачів"
26
- },
27
- {
28
- "name": "routes_count",
29
- "format": "text",
30
- "title": "Кількість інтерфейсів"
31
- },
32
- {
33
- "name": "cdate",
34
- "format": "date",
35
- "title": "Створено"
36
- },
37
- {
38
- "name": "info",
39
- "format": "text",
40
- "title": "Опис"
41
- },
42
- {
43
- "name": "enabled",
44
- "format": "switcher",
45
- "title": "On / Off"
46
- }
47
- ],
48
- "meta": {
49
- "title": "role_id",
50
- "search": "name"
51
- },
52
- "filters": [
53
- {
54
- "ua": "Назва",
55
- "name": "name",
56
- "type": "text"
57
- }
58
- ]
1
+ {
2
+ "ua": "Групи",
3
+ "form": "admin.roles.form",
4
+ "table": "admin.roles",
5
+ "order": "cdate desc",
6
+ "sql": [
7
+ {
8
+ "sql": "select count(user_uid) as user_count from admin.user_roles where role_id=t.role_id",
9
+ "name": "user_count"
10
+ },
11
+ {
12
+ "sql": "select count(route_id) as routes_count from admin.access where role_id=t.role_id",
13
+ "name": "routes_count"
14
+ }
15
+ ],
16
+ "columns": [
17
+ {
18
+ "name": "name",
19
+ "format": "text",
20
+ "title": "Назва"
21
+ },
22
+ {
23
+ "name": "user_count",
24
+ "format": "text",
25
+ "title": "Кількість користувачів"
26
+ },
27
+ {
28
+ "name": "routes_count",
29
+ "format": "text",
30
+ "title": "Кількість інтерфейсів"
31
+ },
32
+ {
33
+ "name": "cdate",
34
+ "format": "date",
35
+ "title": "Створено"
36
+ },
37
+ {
38
+ "name": "info",
39
+ "format": "text",
40
+ "title": "Опис"
41
+ },
42
+ {
43
+ "name": "enabled",
44
+ "format": "switcher",
45
+ "title": "On / Off"
46
+ }
47
+ ],
48
+ "meta": {
49
+ "title": "role_id",
50
+ "search": "name"
51
+ },
52
+ "filters": [
53
+ {
54
+ "ua": "Назва",
55
+ "name": "name",
56
+ "type": "text"
57
+ }
58
+ ]
59
59
  }
@@ -1,68 +1,68 @@
1
- {
2
- "ua": "Список інтерфейсів",
3
- "form": "admin.routes.form",
4
- "table": "admin.routes",
5
- "order": "cdate desc",
6
- "sql": [
7
- {
8
- "sql1": "select count(user_uid) as user_count from admin.access where route_id=t.route_id",
9
- "name": "user_count"
10
- },
11
- {
12
- "sql": "select count(role_id) as roles_count from admin.access where route_id=t.route_id",
13
- "name": "roles_count"
14
- }
15
- ],
16
- "columns": [
17
- {
18
- "name": "alias",
19
- "format": "text",
20
- "title": "Назва файлу інтерфейсу"
21
- },
22
- {
23
- "name": "title",
24
- "format": "text",
25
- "title": "Назва інтерфейсу українською"
26
- },
27
- {
28
- "name": "roles_count",
29
- "format": "text",
30
- "title": "Кількість груп"
31
- },
32
- {
33
- "name": "enabled",
34
- "format": "Check",
35
- "data": "yes_no",
36
- "title": "On / Off"
37
- }
38
- ],
39
- "columns1": [
40
- {
41
- "name1": "user_count",
42
- "format1": "text",
43
- "title1": "Кількість користувачів"
44
- }
45
- ],
46
- "meta": {
47
- "title": "cdate",
48
- "search": "alias,title"
49
- },
50
- "filters": [
51
- {
52
- "ua": "Alias",
53
- "name": "alias",
54
- "type": "text"
55
- },
56
- {
57
- "ua": "Title",
58
- "name": "title",
59
- "type": "text"
60
- },
61
- {
62
- "name": "enabled",
63
- "type": "Check",
64
- "data": "yes_no",
65
- "ua": "On / Off"
66
- }
67
- ]
1
+ {
2
+ "ua": "Список інтерфейсів",
3
+ "form": "admin.routes.form",
4
+ "table": "admin.routes",
5
+ "order": "cdate desc",
6
+ "sql": [
7
+ {
8
+ "sql1": "select count(user_uid) as user_count from admin.access where route_id=t.route_id",
9
+ "name": "user_count"
10
+ },
11
+ {
12
+ "sql": "select count(role_id) as roles_count from admin.access where route_id=t.route_id",
13
+ "name": "roles_count"
14
+ }
15
+ ],
16
+ "columns": [
17
+ {
18
+ "name": "alias",
19
+ "format": "text",
20
+ "title": "Назва файлу інтерфейсу"
21
+ },
22
+ {
23
+ "name": "title",
24
+ "format": "text",
25
+ "title": "Назва інтерфейсу українською"
26
+ },
27
+ {
28
+ "name": "roles_count",
29
+ "format": "text",
30
+ "title": "Кількість груп"
31
+ },
32
+ {
33
+ "name": "enabled",
34
+ "format": "Check",
35
+ "data": "yes_no",
36
+ "title": "On / Off"
37
+ }
38
+ ],
39
+ "columns1": [
40
+ {
41
+ "name1": "user_count",
42
+ "format1": "text",
43
+ "title1": "Кількість користувачів"
44
+ }
45
+ ],
46
+ "meta": {
47
+ "title": "cdate",
48
+ "search": "alias,title"
49
+ },
50
+ "filters": [
51
+ {
52
+ "ua": "Alias",
53
+ "name": "alias",
54
+ "type": "text"
55
+ },
56
+ {
57
+ "ua": "Title",
58
+ "name": "title",
59
+ "type": "text"
60
+ },
61
+ {
62
+ "name": "enabled",
63
+ "type": "Check",
64
+ "data": "yes_no",
65
+ "ua": "On / Off"
66
+ }
67
+ ]
68
68
  }