@opengis/gis 0.0.16 → 0.0.17
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/package.json +2 -9
- package/module/gis/card/gis.maps.table/index.yml +0 -11
- package/module/gis/card/gis.maps.table/main_info.hbs +0 -25
- package/module/gis/card/gis.maps.table/maps_layers.hbs +0 -19
- package/module/gis/card/gis.metadata.table/index.yml +0 -19
- package/module/gis/card/gis.metadata.table/main_info.hbs +0 -21
- package/module/gis/card/gis.metadata.table/metadata_info.hbs +0 -28
- package/module/gis/card/gis.metadata.table/other.hbs +0 -26
- package/module/gis/card/gis.rasters.table/index.yml +0 -8
- package/module/gis/card/gis.rasters.table/main_info.hbs +0 -27
- package/module/gis/card/gis.registers.table/cls.hbs +0 -36
- package/module/gis/card/gis.registers.table/columns.hbs +0 -83
- package/module/gis/card/gis.registers.table/filters.hbs +0 -80
- package/module/gis/card/gis.registers.table/index.yml +0 -21
- package/module/gis/card/gis.registers.table/main_info.hbs +0 -35
- package/module/gis/card/gis.registers.table/source.hbs +0 -45
- package/module/gis/card/gis.services.table/attributes.hbs +0 -85
- package/module/gis/card/gis.services.table/filters.hbs +0 -83
- package/module/gis/card/gis.services.table/index.yml +0 -20
- package/module/gis/card/gis.services.table/main_info.hbs +0 -27
- package/module/gis/card/gis.services.table/source.hbs +0 -25
- package/module/gis/cls/bool.yes_no.json +0 -12
- package/module/gis/cls/encoding.json +0 -14
- package/module/gis/cls/geom_type.json +0 -14
- package/module/gis/cls/gis.column_type.json +0 -34
- package/module/gis/cls/gis.column_view_type.json +0 -18
- package/module/gis/cls/gis.filter_type.json +0 -22
- package/module/gis/cls/language.json +0 -10
- package/module/gis/cls/meta.service_type.json +0 -43
- package/module/gis/cls/ogc.service.json +0 -22
- package/module/gis/cls/service_type.json +0 -42
- package/module/gis/cls/source_type.json +0 -10
- package/module/gis/cls/standarts.json +0 -6
- package/module/gis/cls/topic_category.json +0 -107
- package/module/gis/cls/update_frequency.json +0 -30
- package/module/gis/form/gis.group_list.form.json +0 -17
- package/module/gis/form/gis.maps.form.json +0 -67
- package/module/gis/form/gis.metadata.form.json +0 -240
- package/module/gis/form/gis.ogc_service.form.json +0 -36
- package/module/gis/form/gis.rasters.form.json +0 -100
- package/module/gis/form/gis.registers.form.json +0 -264
- package/module/gis/form/gis.registers_column.form.json +0 -77
- package/module/gis/form/gis.registers_filter.form.json +0 -65
- package/module/gis/form/gis.services.form.json +0 -300
- package/module/gis/form/gis.services_attributes.form.json +0 -68
- package/module/gis/form/gis.services_filter.form.json +0 -65
- package/module/gis/menu.json +0 -43
- package/module/gis/select/gis.group_list.sql +0 -1
- package/module/gis/select/pg.columns.parent.sql +0 -6
- package/module/gis/select/pg.table_name.sql +0 -17
- package/module/gis/select/service_id.sql +0 -1
- package/module/gis/table/gis.maps.table.json +0 -78
- package/module/gis/table/gis.metadata.table.json +0 -71
- package/module/gis/table/gis.ogc_service.table.json +0 -81
- package/module/gis/table/gis.rasters.table.json +0 -98
- package/module/gis/table/gis.registers.table.json +0 -79
- package/module/gis/table/gis.services.table.json +0 -105
- package/module/gis/table/site.gis.registers.table.json +0 -75
- package/module/gis/table/site.gis.services.table.json +0 -104
- package/module/gis/templates/ISO19136_2017_gml_template.xml +0 -331
- package/module/gis/tokens.yml +0 -5
- package/plugin.js +0 -12
- package/server/plugins/mapnik/funcs/createXML.js +0 -72
- package/server/plugins/mapnik/funcs/gdalWrapper.js +0 -72
- package/server/plugins/mapnik/funcs/mapnik.js +0 -101
- package/server/plugins/mapnik/funcs/rasterConfig.js +0 -11
- package/server/plugins/mapnik/funcs/rasterExists.js +0 -21
- package/server/plugins/mapnik/funcs/rasterInfo.js +0 -109
- package/server/plugins/mapnik/funcs/rasterVrt.js +0 -56
- package/server/plugins/mapnik/funcs/rasterXML.js +0 -65
- package/server/plugins/mapnik/funcs/rootFolder.mjs +0 -8
- package/server/plugins/mapnik/index.mjs +0 -12
- package/server/plugins/mapnik/utils/map.proto +0 -241
- package/server/routes/gis/index.mjs +0 -19
- package/server/routes/gis/metadata/metadataXML.js +0 -13
- package/server/routes/gis/registers/funcs/classifiers.js +0 -26
- package/server/routes/gis/registers/funcs/columns.js +0 -5
- package/server/routes/gis/registers/funcs/handleRegistryRequest.js +0 -100
- package/server/routes/gis/registers/gis.registry.js +0 -32
- package/server/routes/gis/registers/gis.registry.list.js +0 -59
- package/server/routes/gis/registers/insert.columns.js +0 -107
- package/server/routes/gis/registers/insert.filters.js +0 -110
- package/server/routes/gis/registers/map.registry.js +0 -79
- package/server/routes/gis/services/get.layer.geom.js +0 -27
- package/server/routes/map/controllers/map.js +0 -123
- package/server/routes/map/controllers/mapCatalog.js +0 -55
- package/server/routes/map/controllers/mapCatalogAttribute.js +0 -56
- package/server/routes/map/controllers/mapFeatures.js +0 -120
- package/server/routes/map/controllers/mapFormat.js +0 -111
- package/server/routes/map/controllers/mapTiles.js +0 -148
- package/server/routes/map/controllers/maps.js +0 -16
- package/server/routes/map/controllers/marker_icon.js +0 -42
- package/server/routes/map/controllers/rtile.js +0 -133
- package/server/routes/map/controllers/vtile.js +0 -146
- package/server/routes/map/index.mjs +0 -51
- package/server/routes/root.mjs +0 -3
- package/utils.js +0 -9
package/package.json
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengis/gis",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Softpro",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist/*"
|
|
9
|
-
"module/*",
|
|
10
|
-
"server/*",
|
|
11
|
-
"plugin.js",
|
|
12
|
-
"utils.js",
|
|
13
|
-
"config.js",
|
|
14
|
-
"README.md",
|
|
15
|
-
"LICENSE"
|
|
8
|
+
"dist/*"
|
|
16
9
|
],
|
|
17
10
|
"scripts": {
|
|
18
11
|
"dev": "vite",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<div class="flex justify-between items-center pb-[5px]">
|
|
3
|
-
<div class="font-semibold text-[16px] dark:text-white">Загальна інформація</div>
|
|
4
|
-
<div class="flex gap-[5px] items-center">
|
|
5
|
-
{{{button this token=(token table="gis.maps" form="gis.maps.form" id=map_id) edit=1 }}}
|
|
6
|
-
{{{button this token=(token table="gis.maps" id=map_id) del=1 }}}
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
{{{descriptionList
|
|
10
|
-
this
|
|
11
|
-
comma=";"
|
|
12
|
-
columns="
|
|
13
|
-
Назва,name,
|
|
14
|
-
Унікальний ключ,map_key,
|
|
15
|
-
Опис,description,
|
|
16
|
-
Утримувач,holder,
|
|
17
|
-
Ключові слова,{{#each keywords}}<span class=\"bg-gray-200 px-1 py-0.5 rounded-lg\">{{this}}</span>{{/each}},
|
|
18
|
-
Зум,zoom,
|
|
19
|
-
Чи публічна карта?,{{{badge is_public data='yes_no'}}},
|
|
20
|
-
Фото,{{{buttonFilePreview image}}}
|
|
21
|
-
"
|
|
22
|
-
}}}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</div>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<div class="flex justify-between items-center pb-[5px]">
|
|
3
|
-
<div class="font-semibold text-[16px] dark:text-white">Шари</div>
|
|
4
|
-
|
|
5
|
-
</div>
|
|
6
|
-
{{#contentList table="gis.maps_layers" query="map_id='{{map_id}}'"}}
|
|
7
|
-
{{{tableList
|
|
8
|
-
rows
|
|
9
|
-
nodata=1
|
|
10
|
-
comma=";"
|
|
11
|
-
columns="
|
|
12
|
-
№,{{inc @index}},
|
|
13
|
-
Назва,<a href='/card/gis.services.table/{{service_id}}' class='text-blue-500 cursor-pointer'>{{select service_id data='service_id'}}</a>
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
}}}
|
|
17
|
-
{{/contentList}}
|
|
18
|
-
|
|
19
|
-
</div>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
component: default
|
|
2
|
-
|
|
3
|
-
panels:
|
|
4
|
-
- type: container
|
|
5
|
-
col: 5
|
|
6
|
-
items:
|
|
7
|
-
- name: main_info
|
|
8
|
-
- component: vs-widget-map
|
|
9
|
-
title: Просторове охоплення
|
|
10
|
-
- component: vs-widget-file
|
|
11
|
-
- type: tabs
|
|
12
|
-
col: 7
|
|
13
|
-
items:
|
|
14
|
-
- name: metadata_info
|
|
15
|
-
title: Просторове охоплення
|
|
16
|
-
- name: other
|
|
17
|
-
title: Інше
|
|
18
|
-
- component: vs-widget-history
|
|
19
|
-
title: Історія
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<div class="flex justify-between items-center pb-[5px]">
|
|
3
|
-
<div class="font-semibold text-[16px] dark:text-white">Загальна інформація</div>
|
|
4
|
-
<div class="flex gap-[5px] items-center">
|
|
5
|
-
{{{button this token=(token table="gis.metadata" form="gis.metadata.form" id=metadata_id) edit=1 }}}
|
|
6
|
-
{{{button this token=(token table="gis.metadata" id=metadata_id) del=1 }}}
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
{{{descriptionList
|
|
10
|
-
this
|
|
11
|
-
comma=";"
|
|
12
|
-
columns="
|
|
13
|
-
Ресурс, {{select layer_id data='service_id'}},
|
|
14
|
-
Суб'єкт; що є власником ресурсу, {{select contact_id data='account_id'}},
|
|
15
|
-
Тематична категорія ресурсу, {{select topic_category data='topic_category'}},
|
|
16
|
-
Код суб'єкта; що є власником ресурсу, {{data_owner_code}},
|
|
17
|
-
Код виробника даних, {{data_producer_code}},
|
|
18
|
-
Ключові слова, {{keywords}}
|
|
19
|
-
"
|
|
20
|
-
}}}
|
|
21
|
-
</div>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
{{{descriptionList
|
|
3
|
-
this
|
|
4
|
-
comma=";"
|
|
5
|
-
columns="
|
|
6
|
-
Назва метаданих,{{name}},
|
|
7
|
-
Масштаб, {{scale}},
|
|
8
|
-
Код набору символів, {{encoding}},
|
|
9
|
-
Мова метаданих, {{select language data='language'}},
|
|
10
|
-
Просторова система координат, {{srid}},
|
|
11
|
-
Код КАТОТТГ, {{katottg}},
|
|
12
|
-
Опис територіального охоплення, {{region}},
|
|
13
|
-
Унікальний ключ, {{metadata_key}},
|
|
14
|
-
Мета метаданих, {{purpose}},
|
|
15
|
-
Джерело даних, {{source}},
|
|
16
|
-
Точність метаданих, {{accuracy_statement}},
|
|
17
|
-
Частота оновлення, {{select update_frequency data='update_frequency'}},
|
|
18
|
-
Розмір; гб, {{size}},
|
|
19
|
-
Опис набору даних або шару, {{abstract}},
|
|
20
|
-
Дата створення метаданих, {{formatDate date_created}},
|
|
21
|
-
Дата оновлення метаданих, {{formatDate date_updated}},
|
|
22
|
-
Рік актуальності метаданих, {{year}},
|
|
23
|
-
Обмеження доступу, {{access_constraints}},
|
|
24
|
-
Обмеження використання, {{use_constraints}},
|
|
25
|
-
Ліцензія, {{license}}
|
|
26
|
-
"
|
|
27
|
-
}}}
|
|
28
|
-
</div>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
{{{descriptionList
|
|
3
|
-
this
|
|
4
|
-
comma=";"
|
|
5
|
-
columns="
|
|
6
|
-
Інформація про відповідність метаданих стандартам, {{select standards data='standarts'}},
|
|
7
|
-
Експорт, <div class='flex'>
|
|
8
|
-
<a
|
|
9
|
-
href='/api/xml/{{metadata_id}}'
|
|
10
|
-
download='{{select layer_id data='service_id'}}_{{metadata_id}}'
|
|
11
|
-
class='flex items-center gap-x-2 border py-2 px-3 shadow rounded-xl cursor-pointer w-10 h-10'
|
|
12
|
-
:href='el'
|
|
13
|
-
target='_blank'
|
|
14
|
-
><img src='/public/assets/images/file-up.svg'
|
|
15
|
-
/></a>
|
|
16
|
-
|
|
17
|
-
<a
|
|
18
|
-
href='/'api/xml/{{metadata_id}}'
|
|
19
|
-
class='flex items-center gap-x-2 border py-2 px-3 shadow rounded-xl cursor-pointer w-10 h-10'
|
|
20
|
-
target='_blank'
|
|
21
|
-
><img src='/public/assets/images/eye.svg'
|
|
22
|
-
/></a>
|
|
23
|
-
</div>
|
|
24
|
-
"
|
|
25
|
-
}}}
|
|
26
|
-
</div>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<div class="flex justify-between items-center pb-[5px]">
|
|
3
|
-
<div class="font-semibold text-[16px] dark:text-white">Загальна інформація</div>
|
|
4
|
-
<div class="flex gap-[5px] items-center">
|
|
5
|
-
{{{button this token=(token table="gis.rasters" form="gis.rasters.form" id=raster_id) edit=1 }}}
|
|
6
|
-
{{{button this token=(token table="gis.rasters" id=raster_id) del=1 }}}
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
{{{descriptionList
|
|
10
|
-
this
|
|
11
|
-
comma=";"
|
|
12
|
-
columns="
|
|
13
|
-
Назва, {{name}},
|
|
14
|
-
Шлях до растру, {{source_path}},
|
|
15
|
-
Опис, {{description}},
|
|
16
|
-
Група; в якій буде відображатися растр,{{select group_id data='gis.group_list'}},
|
|
17
|
-
Просторова система координат, {{srid}},
|
|
18
|
-
Унікальний ключ, {{raster_key}},
|
|
19
|
-
Координати x центру,{{resolution_x}},
|
|
20
|
-
Координати y центру, {{resolution_y}},
|
|
21
|
-
Форммат (розширення) растру, {{format}},
|
|
22
|
-
Дата створення растру, {{raster_date}},
|
|
23
|
-
proj4, {{proj4}},
|
|
24
|
-
Зум для відображення оригіналу, {{raster_zoom}}
|
|
25
|
-
"
|
|
26
|
-
}}}
|
|
27
|
-
</div>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
{{#contentList table="(
|
|
3
|
-
select
|
|
4
|
-
parent,
|
|
5
|
-
json_agg(json_build_object('id',code,'text',name,'color',color) order by code) as data
|
|
6
|
-
from
|
|
7
|
-
admin.cls
|
|
8
|
-
where
|
|
9
|
-
parent in
|
|
10
|
-
(select cls from (
|
|
11
|
-
select jsonb_array_elements(columns||filters)->>'data' as cls
|
|
12
|
-
from gis.registers
|
|
13
|
-
where register_id='{{register_id}}'
|
|
14
|
-
)q
|
|
15
|
-
where length(cls)>0)
|
|
16
|
-
group by parent
|
|
17
|
-
)"}}
|
|
18
|
-
{{#if rows}}
|
|
19
|
-
{{#each rows}}
|
|
20
|
-
<div class="font-semibold text-[16px] dark:text-white my-2">{{parent}}</div>
|
|
21
|
-
{{{tableList
|
|
22
|
-
data
|
|
23
|
-
columns="
|
|
24
|
-
Код,id,
|
|
25
|
-
Значення,text,
|
|
26
|
-
Колір,color
|
|
27
|
-
"
|
|
28
|
-
}}}
|
|
29
|
-
{{/each}}
|
|
30
|
-
{{^}}
|
|
31
|
-
<div class='bg-gray-200 text-center p-6 rounded-xl'>
|
|
32
|
-
<h3 class='text-lg font-semibold'>Класифікатори не використовуються</h3>
|
|
33
|
-
</div>
|
|
34
|
-
{{/if}}
|
|
35
|
-
{{/contentList}}
|
|
36
|
-
</div>
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<div class="flex justify-end items-center pb-[5px]">
|
|
3
|
-
|
|
4
|
-
<div class="flex gap-[5px] items-center">
|
|
5
|
-
{{#if this.columns.length}}
|
|
6
|
-
{{{button this token=(token table="gis.registers" form="gis.registers_column.form" id=register_id) edit=1 }}}
|
|
7
|
-
{{^}}
|
|
8
|
-
<button
|
|
9
|
-
onclick="window.v3plugin.$api(
|
|
10
|
-
{
|
|
11
|
-
api: '/api/insert-columns/{{token id=register_id type="registers"}}',
|
|
12
|
-
method:'put',
|
|
13
|
-
confirm: {
|
|
14
|
-
title:'Підтвердити операцію',
|
|
15
|
-
text: 'Ви впевнені що хочете автоматично заповнити структуру?',
|
|
16
|
-
cancel: 'Скасувати',
|
|
17
|
-
confirm : 'Виконати'
|
|
18
|
-
}
|
|
19
|
-
})"
|
|
20
|
-
class="px-2 py-1 inline-flex border-solid justify-center items-center gap-2 rounded-md font-semibold focus:outline-none text-sm transition-all border border-transparent hover:text-white ring-offset-white bg-orange-100 text-orange-500 hover:bg-orange-500 focus:ring-orange-500">
|
|
21
|
-
Автозаповнити колонки
|
|
22
|
-
</button>
|
|
23
|
-
{{{button this token=(token table="gis.registers" form="gis.registers_column.form" id=register_id) edit=1 title="Додати"}}}
|
|
24
|
-
{{/if}}
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
{{#if this.columns.length}}
|
|
28
|
-
<div class="overflow-x-auto">
|
|
29
|
-
<table class="min-w-full relative divide-y-2 divide-gray-200 bg-white min-w-full overflow-auto divide-y-2 divide-gray-200 bg-white text-[12px] text-gray-600">
|
|
30
|
-
<thead class="text-left font-medium text-gray-700">
|
|
31
|
-
<tr>
|
|
32
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
33
|
-
Назва колонки
|
|
34
|
-
</th>
|
|
35
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
36
|
-
Назва колонки українською
|
|
37
|
-
</th>
|
|
38
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
39
|
-
Тип колонки
|
|
40
|
-
</th>
|
|
41
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
42
|
-
Класифікатор
|
|
43
|
-
</th>
|
|
44
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
45
|
-
Приховати поле в прев'ю
|
|
46
|
-
</th>
|
|
47
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
48
|
-
Приховати поле в карточці
|
|
49
|
-
</th>
|
|
50
|
-
</tr>
|
|
51
|
-
</thead>
|
|
52
|
-
<tbody class="divide-y divide-gray-200">
|
|
53
|
-
{{#each this.columns}}
|
|
54
|
-
<tr class="bg-white odd:bg-gray-50 ">
|
|
55
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
56
|
-
{{name}}
|
|
57
|
-
</td>
|
|
58
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
59
|
-
{{ua}}
|
|
60
|
-
</td>
|
|
61
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
62
|
-
{{sellect format data='gis.column_type'}}
|
|
63
|
-
</td>
|
|
64
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
65
|
-
{{data}}
|
|
66
|
-
</td>
|
|
67
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
68
|
-
{{{badge hidden_register data='yes_no'}}}
|
|
69
|
-
</td>
|
|
70
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
71
|
-
{{{badge hidden_card data='yes_no'}}}
|
|
72
|
-
</td>
|
|
73
|
-
</tr>
|
|
74
|
-
{{/each}}
|
|
75
|
-
</tbody>
|
|
76
|
-
</table>
|
|
77
|
-
</div>
|
|
78
|
-
{{^}}
|
|
79
|
-
<div class='bg-gray-200 text-center p-6 rounded-xl'>
|
|
80
|
-
<h3 class='text-lg font-semibold'>Інформація відсутня</h3>
|
|
81
|
-
</div>
|
|
82
|
-
{{/if}}
|
|
83
|
-
</div>
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<div class="flex justify-end items-center pb-[5px]">
|
|
3
|
-
|
|
4
|
-
<div class="flex gap-[5px] items-center">
|
|
5
|
-
{{#if this.filters.length}}
|
|
6
|
-
{{{button this token=(token table="gis.registers" form="gis.registers_filter.form" id=register_id) edit=1 }}}
|
|
7
|
-
{{^}}
|
|
8
|
-
<button
|
|
9
|
-
onclick="window.v3plugin.$api(
|
|
10
|
-
{
|
|
11
|
-
api: '/api/insert-filters/{{token id=register_id type="registers"}}',
|
|
12
|
-
method:'put',
|
|
13
|
-
confirm: {
|
|
14
|
-
title:'Підтвердити операцію',
|
|
15
|
-
text: 'Ви впевнені що хочете автоматично заповнити структуру?',
|
|
16
|
-
cancel: 'Скасувати',
|
|
17
|
-
confirm : 'Виконати'
|
|
18
|
-
}
|
|
19
|
-
})"
|
|
20
|
-
class="px-2 py-1 inline-flex border-solid justify-center items-center gap-2 rounded-md font-semibold focus:outline-none text-sm transition-all border border-transparent hover:text-white ring-offset-white bg-orange-100 text-orange-500 hover:bg-orange-500 focus:ring-orange-500">
|
|
21
|
-
Автозаповнити фільтри
|
|
22
|
-
</button>
|
|
23
|
-
{{{button this token=(token table="gis.registers" form="gis.registers_filter.form" id=register_id) edit=1 title="Додати"}}}
|
|
24
|
-
{{/if}}
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
{{#if this.filters.length}}
|
|
28
|
-
<div class="overflow-x-auto">
|
|
29
|
-
<table class="min-w-full relative divide-y-2 divide-gray-200 bg-white min-w-full overflow-auto divide-y-2 divide-gray-200 bg-white text-[12px] text-gray-600">
|
|
30
|
-
<thead class="text-left font-medium text-gray-700">
|
|
31
|
-
<tr>
|
|
32
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
33
|
-
Назва колонки
|
|
34
|
-
</th>
|
|
35
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
36
|
-
Назва колонки українською
|
|
37
|
-
</th>
|
|
38
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
39
|
-
Тип колонки
|
|
40
|
-
</th>
|
|
41
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
42
|
-
Класифікатор
|
|
43
|
-
</th>
|
|
44
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
45
|
-
Відключити
|
|
46
|
-
</th>
|
|
47
|
-
|
|
48
|
-
</tr>
|
|
49
|
-
</thead>
|
|
50
|
-
<tbody class="divide-y divide-gray-200">
|
|
51
|
-
{{#each this.filters}}
|
|
52
|
-
<tr class="bg-white odd:bg-gray-50 ">
|
|
53
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
54
|
-
{{id}}
|
|
55
|
-
</td>
|
|
56
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
57
|
-
{{label}}
|
|
58
|
-
</td>
|
|
59
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
60
|
-
{{sellect type data='gis.filter_type'}}
|
|
61
|
-
</td>
|
|
62
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
63
|
-
{{data}}
|
|
64
|
-
</td>
|
|
65
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
66
|
-
{{{badge disabled data='yes_no'}}}
|
|
67
|
-
</td>
|
|
68
|
-
|
|
69
|
-
</tr>
|
|
70
|
-
{{/each}}
|
|
71
|
-
</tbody>
|
|
72
|
-
</table>
|
|
73
|
-
|
|
74
|
-
</div>
|
|
75
|
-
{{^}}
|
|
76
|
-
<div class='bg-gray-200 text-center p-6 rounded-xl'>
|
|
77
|
-
<h3 class='text-lg font-semibold'>Інформація відсутня</h3>
|
|
78
|
-
</div>
|
|
79
|
-
{{/if}}
|
|
80
|
-
</div>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
component: default
|
|
2
|
-
|
|
3
|
-
panels:
|
|
4
|
-
- type: container # закріплений зліва container col, width як простіше
|
|
5
|
-
col: 5
|
|
6
|
-
items:
|
|
7
|
-
- name: main_info
|
|
8
|
-
|
|
9
|
-
- type: tabs
|
|
10
|
-
col: 7
|
|
11
|
-
items:
|
|
12
|
-
- name: source
|
|
13
|
-
title: Джерело даних
|
|
14
|
-
- name: columns
|
|
15
|
-
title: Колонки
|
|
16
|
-
- name: filters
|
|
17
|
-
title: Фільтри
|
|
18
|
-
- name: cls
|
|
19
|
-
title: Класифікатори
|
|
20
|
-
- component: vs-widget-history
|
|
21
|
-
title: Історія редагування
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<div class="flex justify-between items-center pb-[5px]">
|
|
3
|
-
<div class="font-semibold text-[16px] dark:text-white">Загальна інформація</div>
|
|
4
|
-
<div class="flex gap-[5px] items-center">
|
|
5
|
-
{{{button this token=(token table="gis.registers" form="gis.registers.form" id=register_id) edit=1 }}}
|
|
6
|
-
{{{button this token=(token table="gis.registers" id=register_id) del=1 }}}
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
{{{descriptionList
|
|
10
|
-
this
|
|
11
|
-
comma=";"
|
|
12
|
-
columns="
|
|
13
|
-
Назва,name,
|
|
14
|
-
Аліас реєстру,register_key,
|
|
15
|
-
Шар на мапі,<a href='/card/gis.services.table/{{service_id}}' class='text-blue-500 cursor-pointer'>{{select service_id data='service_id'}}</a>,
|
|
16
|
-
Опис,description,
|
|
17
|
-
Утримувач,holder,
|
|
18
|
-
Ключові слова,{{#each keywords}}<span class=\"bg-gray-200 px-1 py-0.5 rounded-lg\">{{this}}</span>{{/each}},
|
|
19
|
-
Чи публічний реєстр?,{{{badge is_public data='yes_no'}}},
|
|
20
|
-
Чи активний?,{{{badge is_active data='yes_no'}}},
|
|
21
|
-
Фото,{{{buttonFilePreview image}}},
|
|
22
|
-
Чи відображати віджет файлів?,{{{badge is_files data='yes_no'}}},
|
|
23
|
-
Користувач; який створив запис, {{select created_by data='user_id'}},
|
|
24
|
-
Дата створення, {{formatDate created_at}}
|
|
25
|
-
"
|
|
26
|
-
}}}
|
|
27
|
-
{{#contentList table="(select count(*) as total from {{table_name}})"}}
|
|
28
|
-
{{#with rows.[0]}}
|
|
29
|
-
{{{descriptionList
|
|
30
|
-
this
|
|
31
|
-
columns="Кількість об'єктів в наборі,{{total}}"
|
|
32
|
-
}}}
|
|
33
|
-
{{/with}}
|
|
34
|
-
{{/contentList}}
|
|
35
|
-
</div>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
{{{descriptionList
|
|
3
|
-
this
|
|
4
|
-
comma=";"
|
|
5
|
-
columns="
|
|
6
|
-
Таблиця в базі даних,{{select table_name data='pg.table_name'}},
|
|
7
|
-
Первиний ключ, pk,
|
|
8
|
-
Умова для відображення, query,
|
|
9
|
-
Сортування, order
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
}}}
|
|
13
|
-
<div class="font-semibold text-[16px] dark:text-white my-2">Автоматично сформований запит</div>
|
|
14
|
-
<div class="relative">
|
|
15
|
-
{{!-- <button
|
|
16
|
-
onclick="copySQL(this)"
|
|
17
|
-
class="absolute top-2 right-2 bg-blue-600 hover:bg-blue-700 text-white text-xs px-2 py-1 rounded z-10">
|
|
18
|
-
Копіювати
|
|
19
|
-
</button>--}}
|
|
20
|
-
<pre class="bg-gray-900 text-green-400 p-4 rounded-lg font-mono text-sm overflow-auto">
|
|
21
|
-
<code id="sql-code">
|
|
22
|
-
select "{{pk}}" as id, *
|
|
23
|
-
from ( select * from {{table_name}} t ) t
|
|
24
|
-
{{#if sql_list}}
|
|
25
|
-
{{#each sql_list}}
|
|
26
|
-
<span>left join lateral (
|
|
27
|
-
{{sql}}
|
|
28
|
-
) {{alias}} on 1=1</span>
|
|
29
|
-
{{/each}}
|
|
30
|
-
{{/if}}
|
|
31
|
-
where 1=1 {{#if query}}and {{query}}{{/if}}
|
|
32
|
-
{{#if order}}order by {{order}} nulls last{{/if}}
|
|
33
|
-
</code>
|
|
34
|
-
</pre>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
{{!--<script>
|
|
38
|
-
function copySQL(button) {
|
|
39
|
-
const code = button.parentElement.querySelector('code').innerText;
|
|
40
|
-
navigator.clipboard.writeText(code).then(() => {
|
|
41
|
-
button.textContent = 'Скопійовано!';
|
|
42
|
-
setTimeout(() => button.textContent = 'Копіювати', 2000);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
</script>--}}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<div class="flex justify-end items-center pb-[5px]">
|
|
3
|
-
|
|
4
|
-
<div class="flex gap-[5px] items-center">
|
|
5
|
-
{{#ifCond source_type "==" 'database'}}
|
|
6
|
-
{{#if attributes.length }}
|
|
7
|
-
{{{button this token=(token table="gis.services" form="gis.services_attributes.form" id=service_id) edit=1 }}}
|
|
8
|
-
{{^}}
|
|
9
|
-
<button
|
|
10
|
-
onclick="window.v3plugin.$api(
|
|
11
|
-
{
|
|
12
|
-
api: '/api/insert-columns/{{token id=service_id type="services"}}',
|
|
13
|
-
method:'put',
|
|
14
|
-
confirm: {
|
|
15
|
-
title:'Підтвердити операцію',
|
|
16
|
-
text: 'Ви впевнені що хочете автоматично заповнити структуру?',
|
|
17
|
-
cancel: 'Скасувати',
|
|
18
|
-
confirm : 'Виконати'
|
|
19
|
-
}
|
|
20
|
-
})"
|
|
21
|
-
class="px-2 py-1 inline-flex border-solid justify-center items-center gap-2 rounded-md font-semibold focus:outline-none text-sm transition-all border border-transparent hover:text-white ring-offset-white bg-orange-100 text-orange-500 hover:bg-orange-500 focus:ring-orange-500">
|
|
22
|
-
Автозаповнити колонки
|
|
23
|
-
</button>
|
|
24
|
-
{{{button this token=(token table="gis.services" form="gis.services_attributes.form" id=service_id) edit=1 title="Додати"}}}
|
|
25
|
-
{{/if}}
|
|
26
|
-
{{/ifCond}}
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
{{#if attributes.length}}
|
|
30
|
-
<div class="overflow-x-auto">
|
|
31
|
-
<table class="min-w-full relative divide-y-2 divide-gray-200 bg-white min-w-full overflow-auto divide-y-2 divide-gray-200 bg-white text-[12px] text-gray-600">
|
|
32
|
-
<thead class="text-left font-medium text-gray-700">
|
|
33
|
-
<tr>
|
|
34
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
35
|
-
Назва колонки
|
|
36
|
-
</th>
|
|
37
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
38
|
-
Назва колонки українською
|
|
39
|
-
</th>
|
|
40
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
41
|
-
Тип колонки
|
|
42
|
-
</th>
|
|
43
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
44
|
-
Класифікатор
|
|
45
|
-
</th>
|
|
46
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
47
|
-
Приховати поле в прев'ю
|
|
48
|
-
</th>
|
|
49
|
-
<th class="py-2 last:min-w-[60px] last:max-w-[60px] last:bg-white last:sticky last:right-0">
|
|
50
|
-
Приховати поле в карточці
|
|
51
|
-
</th>
|
|
52
|
-
</tr>
|
|
53
|
-
</thead>
|
|
54
|
-
<tbody class="divide-y divide-gray-200">
|
|
55
|
-
{{#each attributes}}
|
|
56
|
-
<tr class="bg-white odd:bg-gray-50 ">
|
|
57
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
58
|
-
{{name}}
|
|
59
|
-
</td>
|
|
60
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
61
|
-
{{ua}}
|
|
62
|
-
</td>
|
|
63
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
64
|
-
{{sellect format data='gis.column_type'}}
|
|
65
|
-
</td>
|
|
66
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
67
|
-
{{data}}
|
|
68
|
-
</td>
|
|
69
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
70
|
-
{{{badge hidden_register data='yes_no'}}}
|
|
71
|
-
</td>
|
|
72
|
-
<td class="py-2 pr-5 last:sticky last:right-0 ">
|
|
73
|
-
{{{badge hidden_card data='yes_no'}}}
|
|
74
|
-
</td>
|
|
75
|
-
</tr>
|
|
76
|
-
{{/each}}
|
|
77
|
-
</tbody>
|
|
78
|
-
</table>
|
|
79
|
-
</div>
|
|
80
|
-
{{^}}
|
|
81
|
-
<div class='bg-gray-200 text-center p-6 rounded-xl'>
|
|
82
|
-
<h3 class='text-lg font-semibold'>Інформація відсутня</h3>
|
|
83
|
-
</div>
|
|
84
|
-
{{/if}}
|
|
85
|
-
</div>
|