@opengis/admin 0.2.41 → 0.2.42

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.
Files changed (164) hide show
  1. package/README.md +97 -97
  2. package/config.js +4 -4
  3. package/dist/{add-page-C2NrTBRz.js → add-page-Cgdu17bo.js} +1 -1
  4. package/dist/{admin-interface-s_7MsBh6.js → admin-interface-DswfnyQU.js} +3 -3
  5. package/dist/{admin-view-BRfX4upz.js → admin-view-D8H4wAeU.js} +30 -25
  6. package/dist/admin.js +1 -1
  7. package/dist/admin.umd.cjs +48 -48
  8. package/dist/assets/logo.svg +41 -41
  9. package/dist/{card-view-DXZqit3F.js → card-view-DjIwtHDb.js} +1 -1
  10. package/dist/{edit-page-D7bmb8t2.js → edit-page-CGjjDYx2.js} +1 -1
  11. package/dist/{import-file-DUW_oizq.js → import-file-Byr4O-Fj.js} +3139 -3137
  12. package/dist/style.css +1 -1
  13. package/module/settings/card/admin.accounts.table/index.yml +7 -7
  14. package/module/settings/card/admin.accounts.table/rules.hbs +18 -18
  15. package/module/settings/card/admin.accounts.table/users.hbs +13 -13
  16. package/module/settings/card/admin.roles.table/access.hbs +3 -3
  17. package/module/settings/card/admin.roles.table/general_info.hbs +1 -1
  18. package/module/settings/card/admin.roles.table/index.yml +21 -21
  19. package/module/settings/card/admin.roles.table/users.hbs +6 -6
  20. package/module/settings/card/admin.routes.table/general_info.hbs +13 -13
  21. package/module/settings/card/admin.routes.table/groups.hbs +11 -11
  22. package/module/settings/card/admin.routes.table/index.yml +11 -11
  23. package/module/settings/card/admin.routes.table/users.hbs +16 -16
  24. package/module/settings/card/admin.users.table/context.hbs +14 -14
  25. package/module/settings/card/admin.users.table/general_info.hbs +12 -12
  26. package/module/settings/card/admin.users.table/index.yml +22 -22
  27. package/module/settings/card/admin.users.table/last_login.hbs +9 -9
  28. package/module/settings/card/admin.users.table/logs.hbs +10 -10
  29. package/module/settings/card/admin.users.table/routes.hbs +7 -7
  30. package/module/settings/card/admin.users.table/user_roles.hbs +12 -12
  31. package/module/settings/cls/core.actions.json +17 -17
  32. package/module/settings/cls/core.scope.json +13 -13
  33. package/module/settings/cls/properties.site_status.json +13 -13
  34. package/module/settings/cls/properties.widget_status.json +13 -13
  35. package/module/settings/cls/users.user_type.json +13 -13
  36. package/module/settings/cls/yes_no.json +11 -11
  37. package/module/settings/form/admin.accounts.form.json +13 -13
  38. package/module/settings/form/admin.custom_column.form.json +71 -71
  39. package/module/settings/form/admin.properties.form.json +15 -15
  40. package/module/settings/form/admin.roles.form.json +21 -21
  41. package/module/settings/form/admin.routes.form.json +25 -25
  42. package/module/settings/form/admin.rules.form.json +30 -30
  43. package/module/settings/form/admin.user_properties.form.json +15 -15
  44. package/module/settings/form/admin.user_roles.form.json +13 -13
  45. package/module/settings/form/admin.user_roles_card.form.json +13 -13
  46. package/module/settings/form/admin.users.form.json +153 -153
  47. package/module/settings/form/context.account_grants.form.json +23 -23
  48. package/module/settings/form/context.account_users.form.json +12 -12
  49. package/module/settings/form/user.user_roles.form.json +13 -13
  50. package/module/settings/interface/admin.properties.json +4 -4
  51. package/module/settings/interface/admin.roles.json +4 -4
  52. package/module/settings/interface/admin.routes.json +4 -4
  53. package/module/settings/interface/admin.users.json +4 -4
  54. package/module/settings/menu.json +84 -84
  55. package/module/settings/select/core.routes.sql +1 -1
  56. package/module/settings/select/core.user_mentioned.sql +1 -1
  57. package/module/settings/select/core.user_uid.sql +1 -1
  58. package/module/settings/table/admin.accounts.table.json +42 -42
  59. package/module/settings/table/admin.custom_column.table.json +99 -99
  60. package/module/settings/table/admin.properties.table.json +39 -39
  61. package/module/settings/table/admin.roles.table.json +64 -64
  62. package/module/settings/table/admin.routes.table.json +73 -73
  63. package/module/settings/table/admin.rules.table.json +76 -76
  64. package/module/settings/table/admin.user_properties.table.json +34 -34
  65. package/module/settings/table/admin.user_roles.table.json +72 -72
  66. package/module/settings/table/admin.users.table.json +132 -132
  67. package/module/settings/table/context.account_grants.table.json +67 -67
  68. package/module/settings/table/context.account_users.table.json +37 -37
  69. package/package.json +91 -91
  70. package/plugin.js +29 -29
  71. package/server/helpers/core/badge.js +16 -16
  72. package/server/helpers/core/buttonHelper.js +21 -21
  73. package/server/helpers/core/select.js +48 -48
  74. package/server/helpers/core/token.js +18 -18
  75. package/server/helpers/index.js +29 -29
  76. package/server/helpers/list/buttonHelper.js +21 -21
  77. package/server/helpers/list/descriptionList.js +43 -43
  78. package/server/helpers/list/tableList.js +81 -81
  79. package/server/helpers/list/utils/button.js +5 -5
  80. package/server/helpers/temp/contentList.js +58 -58
  81. package/server/helpers/temp/ifCond.js +101 -101
  82. package/server/helpers/utils/button.js +5 -5
  83. package/server/helpers/utils/buttonAdd.js +5 -5
  84. package/server/helpers/utils/buttonDel.js +5 -5
  85. package/server/helpers/utils/buttonEdit.js +5 -5
  86. package/server/plugins/access/funcs/getAdminAccess.js +12 -12
  87. package/server/plugins/access/index.mjs +6 -6
  88. package/server/plugins/adminHook.js +81 -81
  89. package/server/plugins/cron.js +10 -10
  90. package/server/plugins/docs.js +28 -28
  91. package/server/plugins/hook.js +236 -236
  92. package/server/plugins/vite.js +71 -71
  93. package/server/routes/access/controllers/access.group.js +29 -29
  94. package/server/routes/access/controllers/access.group.post.js +49 -49
  95. package/server/routes/access/index.mjs +8 -8
  96. package/server/routes/access/schema.mjs +57 -57
  97. package/server/routes/calendar/controllers/calendar.data.js +87 -87
  98. package/server/routes/calendar/index.mjs +7 -7
  99. package/server/routes/calendar/schema.js +21 -21
  100. package/server/routes/data/controllers/cardData.js +106 -106
  101. package/server/routes/data/controllers/cardTabData.js +49 -49
  102. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
  103. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
  104. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  105. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
  106. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  107. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  108. package/server/routes/data/controllers/tableData.js +29 -29
  109. package/server/routes/data/controllers/tableDataId.js +27 -27
  110. package/server/routes/data/controllers/tableFilter.js +68 -68
  111. package/server/routes/data/controllers/tokenInfo.js +9 -9
  112. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  113. package/server/routes/data/controllers/utils/conditions.js +20 -20
  114. package/server/routes/data/controllers/utils/getColumns.js +8 -8
  115. package/server/routes/data/index.mjs +19 -19
  116. package/server/routes/data/schema.js +54 -54
  117. package/server/routes/menu/controllers/getMenu.js +58 -58
  118. package/server/routes/menu/index.mjs +5 -5
  119. package/server/routes/notifications/controllers/readNotifications.js +27 -27
  120. package/server/routes/notifications/controllers/testEmail.js +35 -35
  121. package/server/routes/notifications/controllers/userNotifications.js +53 -53
  122. package/server/routes/notifications/funcs/addNotification.js +21 -21
  123. package/server/routes/notifications/funcs/sendNotification.js +92 -92
  124. package/server/routes/notifications/hook/onWidgetSet.js +57 -57
  125. package/server/routes/notifications/index.mjs +27 -27
  126. package/server/routes/notifications/schema.js +16 -16
  127. package/server/routes/properties/controllers/admin.properties.get.js +29 -29
  128. package/server/routes/properties/controllers/user.properties.get.js +30 -30
  129. package/server/routes/properties/controllers/user.properties.post.js +30 -30
  130. package/server/routes/properties/funcs/getSettings.js +56 -56
  131. package/server/routes/properties/funcs/setSettings.js +44 -44
  132. package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
  133. package/server/routes/properties/index.mjs +14 -14
  134. package/server/routes/properties/schema.js +10 -10
  135. package/server/routes/root.mjs +3 -3
  136. package/server/routes/templates/controllers/getTemplate.js +49 -49
  137. package/server/routes/templates/index.mjs +16 -16
  138. package/server/routes/templates/schema.js +8 -8
  139. package/server/routes/user/controllers/user.cls.id.js +14 -14
  140. package/server/routes/user/controllers/user.cls.js +71 -71
  141. package/server/routes/user/controllers/user.cls.post.js +52 -52
  142. package/server/routes/user/controllers/user.info.js +17 -17
  143. package/server/routes/user/schema.js +14 -14
  144. package/server/routes/widget/controllers/utils/historyFormat.js +75 -75
  145. package/server/routes/widget/controllers/utils/obj2db.js +13 -13
  146. package/server/routes/widget/controllers/widget.del.js +41 -41
  147. package/server/routes/widget/controllers/widget.get.js +96 -96
  148. package/server/routes/widget/controllers/widget.set.js +76 -76
  149. package/server/routes/widget/index.mjs +11 -11
  150. package/server/routes/widget/schema.js +12 -12
  151. package/server/templates/cls/itree.recrzone_category.json +73 -73
  152. package/server/templates/cls/test.json +9 -9
  153. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  154. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  155. package/server/templates/form/cp_building.form.json +32 -32
  156. package/server/templates/form/form-user-pass.json +10 -10
  157. package/server/templates/form/form-user_group.json +39 -39
  158. package/server/templates/form/form-users.json +156 -156
  159. package/server/templates/form/user_group_access.form.json +22 -22
  160. package/server/templates/select/account_id.json +2 -2
  161. package/server/templates/table/gis.dataset.table.json +43 -43
  162. package/server/templates/table/management.user_group.table.json +112 -112
  163. package/server/templates/table/management.users.table.json +126 -126
  164. package/utils.js +29 -29
package/README.md CHANGED
@@ -1,97 +1,97 @@
1
- ![alt text](https://cdn.softpro.ua/data/npm/admin/opengis-admin.png)
2
-
3
- [![NPM version](https://img.shields.io/npm/v/@opengis/admin?style=plain)](https://www.npmjs.com/package/@opengis/admin)
4
- [![NPM last update](https://img.shields.io/npm/last-update/@opengis/admin?style=plain)]()
5
- [![NPM downloads](https://img.shields.io/npm/dw/@opengis/admin?style=plain)]()
6
- [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=plain)](http://standardjs.com/)
7
-
8
- This package standardizes the entire website administration process. Built using the **Fastify** and **Vite** frameworks for reactive, component-driven development.
9
-
10
- ### Features
11
-
12
- - **Real-time Editing** - Simplifies and accelerates the development process.
13
- - **Customization** - Enabling developers to add custom components, templates, and modules.
14
- - **Database Management** - Provides tools to facilitate seamless management and interaction with PostgreSQL.
15
- - **Base Theme** - A clean and practical design inspired by Preline.
16
- - **Info Cards** - Easily created using pre-built layouts or custom Vue components.
17
- - **Geometry Visualization** - Enables visualization and editing of geometric data, using geometry inputs.
18
- - **User Settings** - Includes functionality for managing user settings, creating user groups, and defining roles with interface permissions.
19
-
20
- ---
21
-
22
- ### Install
23
-
24
- ```bash
25
- npm i @opengis/admin
26
- ```
27
-
28
- ### Usage
29
-
30
- ```js
31
- fastify.register(import('@opengis/admin'), config);
32
- ```
33
-
34
- ```js
35
- import v3admin from '@opengis/admin';
36
- import '@opengis/admin/dist/style.css';
37
- v3admin.install(app);
38
- ```
39
-
40
- ---
41
-
42
- ### Documentation
43
-
44
- For a detailed understanding of `admin`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/admin/).
45
-
46
- ---
47
-
48
- ### Technology stack
49
-
50
- <a href="https://fastify.dev/" target="_blank">
51
- <img src="https://img.shields.io/badge/Fastify-323330?style=for-the-badge&logo=fastify" /></a>
52
-
53
- <a href="https://vuejs.org/" target="_blank">
54
- <img src="https://img.shields.io/badge/Vue%20js-323330?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D" /></a>
55
-
56
- <a href="https://vite.dev/" target="_blank">
57
- <img src="https://img.shields.io/badge/Vite-323330?style=for-the-badge&logo=vite" /></a>
58
-
59
- <a href="https://tiptap.dev/" target="_blank">
60
- <img src="https://img.shields.io/badge/TipTap-323330?style=for-the-badge&logo=tiptap&logoColor=4FC08D" /></a>
61
-
62
- <a href="https://www.postgresql.org/" target="_blank">
63
- <img src="https://img.shields.io/badge/PostgreSQL-323330?style=for-the-badge&logo=postgresql&logoColor=white" /></a>
64
-
65
- <a href="https://maplibre.org/" target="_blank">
66
- <img src="https://img.shields.io/badge/Maplibre-323330?style=for-the-badge&logo=maplibre&logoColor=87b2f0" /></a>
67
-
68
- <a href="https://handlebarsjs.com/" target="_blank">
69
- <img src="https://img.shields.io/badge/Handlebars%20js-323330?style=for-the-badge&logo=handlebarsdotjs&logoColor=f0772b" /></a>
70
-
71
- <a href="https://redis.io/" target="_blank">
72
- <img src="https://img.shields.io/badge/redis-323330.svg?&style=for-the-badge&logo=redis&logoColor=%23DD0031" /></a>
73
-
74
- ---
75
-
76
- ### Contribute
77
-
78
- Feel free to contact us through our website [SOFTPRO.UA](https://softpro.ua) or email <info@softpro.ua>
79
-
80
- - Report bugs
81
- - Share your ideas
82
- - Ask questions
83
-
84
- ### Follow Us
85
-
86
- [Official site](https://softpro.ua)
87
-
88
- <p>
89
- <a href="https://www.instagram.com/gissoftpro/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/instagram.png" alt="Softpro Instagram" title="oftpro Instagram"></a>&nbsp;&nbsp;
90
- <a href="https://www.facebook.com/gissoftpro" target="_blank"><img src="https://cdn.softpro.ua/data/npm/facebook.png" alt="Softpro Facebook" title="Softpro Facebook"></a>&nbsp;&nbsp;
91
- <a href="https://t.me/softprogis" target="_blank"><img src="https://cdn.softpro.ua/data/npm/telegram.png" alt="Softpro Telegram" title="Softpro Telegram"></a>&nbsp;&nbsp;
92
- <a href="https://www.linkedin.com/in/softpro-ukraine-a8876b282/recent-activity/all/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/social/linkedin.png" alt="Softpro Linkedin" title="Softpro LinkedIn"></a>&nbsp;&nbsp;
93
- </p>
94
-
95
- ### License
96
-
97
- Copyright © SOFTPRO. All rights reserved.
1
+ ![alt text](https://cdn.softpro.ua/data/npm/admin/opengis-admin.png)
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@opengis/admin?style=plain)](https://www.npmjs.com/package/@opengis/admin)
4
+ [![NPM last update](https://img.shields.io/npm/last-update/@opengis/admin?style=plain)]()
5
+ [![NPM downloads](https://img.shields.io/npm/dw/@opengis/admin?style=plain)]()
6
+ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=plain)](http://standardjs.com/)
7
+
8
+ This package standardizes the entire website administration process. Built using the **Fastify** and **Vite** frameworks for reactive, component-driven development.
9
+
10
+ ### Features
11
+
12
+ - **Real-time Editing** - Simplifies and accelerates the development process.
13
+ - **Customization** - Enabling developers to add custom components, templates, and modules.
14
+ - **Database Management** - Provides tools to facilitate seamless management and interaction with PostgreSQL.
15
+ - **Base Theme** - A clean and practical design inspired by Preline.
16
+ - **Info Cards** - Easily created using pre-built layouts or custom Vue components.
17
+ - **Geometry Visualization** - Enables visualization and editing of geometric data, using geometry inputs.
18
+ - **User Settings** - Includes functionality for managing user settings, creating user groups, and defining roles with interface permissions.
19
+
20
+ ---
21
+
22
+ ### Install
23
+
24
+ ```bash
25
+ npm i @opengis/admin
26
+ ```
27
+
28
+ ### Usage
29
+
30
+ ```js
31
+ fastify.register(import('@opengis/admin'), config);
32
+ ```
33
+
34
+ ```js
35
+ import v3admin from '@opengis/admin';
36
+ import '@opengis/admin/dist/style.css';
37
+ v3admin.install(app);
38
+ ```
39
+
40
+ ---
41
+
42
+ ### Documentation
43
+
44
+ For a detailed understanding of `admin`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/admin/).
45
+
46
+ ---
47
+
48
+ ### Technology stack
49
+
50
+ <a href="https://fastify.dev/" target="_blank">
51
+ <img src="https://img.shields.io/badge/Fastify-323330?style=for-the-badge&logo=fastify" /></a>
52
+
53
+ <a href="https://vuejs.org/" target="_blank">
54
+ <img src="https://img.shields.io/badge/Vue%20js-323330?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D" /></a>
55
+
56
+ <a href="https://vite.dev/" target="_blank">
57
+ <img src="https://img.shields.io/badge/Vite-323330?style=for-the-badge&logo=vite" /></a>
58
+
59
+ <a href="https://tiptap.dev/" target="_blank">
60
+ <img src="https://img.shields.io/badge/TipTap-323330?style=for-the-badge&logo=tiptap&logoColor=4FC08D" /></a>
61
+
62
+ <a href="https://www.postgresql.org/" target="_blank">
63
+ <img src="https://img.shields.io/badge/PostgreSQL-323330?style=for-the-badge&logo=postgresql&logoColor=white" /></a>
64
+
65
+ <a href="https://maplibre.org/" target="_blank">
66
+ <img src="https://img.shields.io/badge/Maplibre-323330?style=for-the-badge&logo=maplibre&logoColor=87b2f0" /></a>
67
+
68
+ <a href="https://handlebarsjs.com/" target="_blank">
69
+ <img src="https://img.shields.io/badge/Handlebars%20js-323330?style=for-the-badge&logo=handlebarsdotjs&logoColor=f0772b" /></a>
70
+
71
+ <a href="https://redis.io/" target="_blank">
72
+ <img src="https://img.shields.io/badge/redis-323330.svg?&style=for-the-badge&logo=redis&logoColor=%23DD0031" /></a>
73
+
74
+ ---
75
+
76
+ ### Contribute
77
+
78
+ Feel free to contact us through our website [SOFTPRO.UA](https://softpro.ua) or email <info@softpro.ua>
79
+
80
+ - Report bugs
81
+ - Share your ideas
82
+ - Ask questions
83
+
84
+ ### Follow Us
85
+
86
+ [Official site](https://softpro.ua)
87
+
88
+ <p>
89
+ <a href="https://www.instagram.com/gissoftpro/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/instagram.png" alt="Softpro Instagram" title="oftpro Instagram"></a>&nbsp;&nbsp;
90
+ <a href="https://www.facebook.com/gissoftpro" target="_blank"><img src="https://cdn.softpro.ua/data/npm/facebook.png" alt="Softpro Facebook" title="Softpro Facebook"></a>&nbsp;&nbsp;
91
+ <a href="https://t.me/softprogis" target="_blank"><img src="https://cdn.softpro.ua/data/npm/telegram.png" alt="Softpro Telegram" title="Softpro Telegram"></a>&nbsp;&nbsp;
92
+ <a href="https://www.linkedin.com/in/softpro-ukraine-a8876b282/recent-activity/all/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/social/linkedin.png" alt="Softpro Linkedin" title="Softpro LinkedIn"></a>&nbsp;&nbsp;
93
+ </p>
94
+
95
+ ### License
96
+
97
+ Copyright © SOFTPRO. All rights reserved.
package/config.js CHANGED
@@ -1,5 +1,5 @@
1
- import { readFile } from 'fs/promises';
2
- import fs from 'fs';
3
- const config = fs.existsSync('config.json') ? JSON.parse(await readFile('config.json')) : {};
4
-
1
+ import { readFile } from 'fs/promises';
2
+ import fs from 'fs';
3
+ const config = fs.existsSync('config.json') ? JSON.parse(await readFile('config.json')) : {};
4
+
5
5
  export default config;
@@ -1,4 +1,4 @@
1
- import { _ as g, u as f, d as u } from "./import-file-DUW_oizq.js";
1
+ import { _ as g, u as f, d as u } from "./import-file-Byr4O-Fj.js";
2
2
  import { resolveComponent as x, openBlock as d, createElementBlock as w, createElementVNode as n, createBlock as k, createCommentVNode as y } from "vue";
3
3
  const v = {
4
4
  data() {
@@ -1,4 +1,4 @@
1
- import { _ as C, e as qe, f as Pe, g as Be, d as F, I as Le, V as ze, h as Oe, i as Ue, j as Ne, A as Ee, a as He, u as Ce, s as Re } from "./import-file-DUW_oizq.js";
1
+ import { _ as C, e as qe, f as Pe, g as Be, d as F, I as Le, V as ze, h as Oe, i as Ue, j as Ne, A as Ee, a as He, u as Ce, s as Re } from "./import-file-Byr4O-Fj.js";
2
2
  import { openBlock as o, createElementBlock as c, createTextVNode as j, toDisplayString as I, createCommentVNode as w, resolveComponent as p, Fragment as T, createElementVNode as l, createVNode as y, withCtx as $, createBlock as _, renderList as D, withModifiers as We, normalizeClass as V, createStaticVNode as Ae, withDirectives as z, vModelCheckbox as Je, resolveDynamicComponent as q, Transition as O, renderSlot as Ze, vShow as Te, getCurrentInstance as Ie, ref as L, normalizeStyle as $e } from "vue";
3
3
  const Ge = {
4
4
  data() {
@@ -729,7 +729,7 @@ function hn(t, e, n, a, s, r) {
729
729
  ])
730
730
  ]);
731
731
  }
732
- const fn = /* @__PURE__ */ C(cn, [["render", hn], ["__scopeId", "data-v-e1f274c9"]]), mn = {
732
+ const fn = /* @__PURE__ */ C(cn, [["render", hn], ["__scopeId", "data-v-c6318482"]]), mn = {
733
733
  components: {
734
734
  AdminComponentIs: Se,
735
735
  AdminTree: fn,
@@ -1527,7 +1527,7 @@ function Ss(t, e, n, a, s, r) {
1527
1527
  ])
1528
1528
  ]);
1529
1529
  }
1530
- const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-5b7d20f1"]]), Ds = {
1530
+ const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-6645339e"]]), Ds = {
1531
1531
  components: { AdminTable: Vs },
1532
1532
  data() {
1533
1533
  return {
@@ -1,4 +1,4 @@
1
- import { _, I as R, a as q, u as Z, s as T, b as G, c as J, d as S } from "./import-file-DUW_oizq.js";
1
+ import { _ as v, I as R, a as q, u as Z, s as T, b as G, c as J, d as S } from "./import-file-Byr4O-Fj.js";
2
2
  import { openBlock as l, createElementBlock as a, createElementVNode as n, createStaticVNode as B, resolveComponent as p, normalizeClass as L, createTextVNode as U, toDisplayString as A, createVNode as c, Transition as K, withCtx as Q, withDirectives as P, Fragment as E, renderList as F, vShow as W, createCommentVNode as D, withModifiers as X, createBlock as Y, resolveDynamicComponent as e1 } from "vue";
3
3
  const t1 = {}, o1 = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -22,7 +22,7 @@ function r1(e, t, r, i, o, s) {
22
22
  n("path", { d: "M18 15l3 -3" }, null, -1)
23
23
  ]));
24
24
  }
25
- const n1 = /* @__PURE__ */ _(t1, [["render", r1]]), s1 = {}, l1 = {
25
+ const n1 = /* @__PURE__ */ v(t1, [["render", r1]]), s1 = {}, l1 = {
26
26
  viewBox: "0 0 1823 249",
27
27
  fill: "none",
28
28
  xmlns: "http://www.w3.org/2000/svg"
@@ -32,7 +32,7 @@ function a1(e, t, r, i, o, s) {
32
32
  B('<path d="M218.88 96.05C223.55 99.19 228.69 101.56 234.09 103.07V145.42C212.05 151.54 195.83 171.79 195.83 195.75C195.83 200.22 196.41 204.65 197.53 208.94L160.92 230.08C156.82 226.06 152.08 222.73 146.91 220.24V171.62C164.83 163.13 176.59 145.06 176.59 124.48C176.59 123.17 176.54 121.86 176.44 120.56L218.88 96.05ZM220.32 79.09L160.97 113.36C162.04 116.88 162.61 120.61 162.61 124.48C162.61 142.66 149.93 157.87 132.93 161.76V230.05C143.4 232.46 152.23 239.16 157.46 248.21L215 214.99C211.7 209.34 209.81 202.77 209.81 195.75C209.81 174.62 226.94 157.49 248.07 157.49V91.02C237.14 91.02 227.29 86.43 220.32 79.09Z" fill="#CE3936"></path><path d="M161.39 19.13L197.44 39.94C196.39 44.11 195.84 48.42 195.84 52.75C195.84 54.21 195.9 55.65 196.02 57.1L153.9 81.42C145.27 75.5 134.95 72.24 124.36 72.24C113.83 72.24 103.57 75.47 94.96 81.32L52.71 56.93C52.82 55.55 52.88 54.16 52.88 52.76C52.88 48.43 52.34 44.12 51.28 39.95L87.3 19.16C96.98 28.89 110.26 34.58 124.34 34.58C138.42 34.57 151.7 28.87 161.39 19.13ZM157.77 0.919983C151.24 12.66 138.71 20.6 124.33 20.6C109.95 20.6 97.44 12.67 90.9 0.939983L33.9 33.85C37.08 39.43 38.91 45.88 38.91 52.76C38.91 56.71 38.31 60.52 37.2 64.11L96.46 98.32C103.44 90.87 113.36 86.22 124.37 86.22C135.44 86.22 145.41 90.93 152.39 98.44L211.59 64.27C210.45 60.64 209.83 56.78 209.83 52.77C209.83 45.89 211.65 39.44 214.84 33.86L157.77 0.919983Z" fill="#CE3936"></path><path d="M29.97 95.95L72.28 120.38C72.17 121.74 72.12 123.1 72.12 124.47C72.12 145.02 83.86 163.08 101.74 171.58V220.23C96.58 222.71 91.84 226.04 87.75 230.05L51.17 208.93C52.29 204.64 52.87 200.21 52.87 195.74C52.87 171.78 36.65 151.53 14.61 145.41V103.06C20.07 101.55 25.27 99.14 29.97 95.95ZM28.5 78.97C21.52 86.38 11.63 91.02 0.640015 91.02V157.49C21.77 157.49 38.9 174.62 38.9 195.75C38.9 202.77 37 209.33 33.71 214.99L91.2 248.18C96.43 239.14 105.25 232.45 115.71 230.04V161.73C98.74 157.81 86.09 142.62 86.09 124.46C86.09 120.54 86.68 116.75 87.78 113.18L28.5 78.97Z" fill="#CE3936"></path><path d="M498.39 177.5V144.88C498.39 128.55 485.11 115.27 468.78 115.27H343.22C342.69 115.27 342.18 115.32 341.67 115.4H337.19C332.35 115.4 328.42 111.46 328.42 106.63V74C328.42 69.16 332.36 65.23 337.19 65.23H486.33C492.08 65.23 496.75 60.57 496.75 54.81C496.75 49.06 492.08 44.39 486.33 44.39H337.19C320.86 44.39 307.58 57.67 307.58 74V106.62C307.58 122.95 320.86 136.23 337.19 136.23H462.75C463.28 136.23 463.79 136.18 464.3 136.1H468.78C473.62 136.1 477.55 140.04 477.55 144.87V177.49C477.55 182.33 473.61 186.26 468.78 186.26H319.64C313.89 186.26 309.22 190.92 309.22 196.68C309.22 202.43 313.89 207.1 319.64 207.1H468.78C485.11 207.11 498.39 193.83 498.39 177.5Z" fill="#CE3935"></path><path d="M710.7 177.32V75.24C710.7 58.91 697.42 45.63 681.09 45.63H550.05C533.72 45.63 520.44 58.91 520.44 75.24V177.32C520.44 193.65 533.72 206.93 550.05 206.93H681.1C697.42 206.93 710.7 193.65 710.7 177.32ZM541.27 75.24C541.27 70.4 545.21 66.47 550.04 66.47H681.09C685.93 66.47 689.86 70.41 689.86 75.24V177.32C689.86 182.16 685.92 186.09 681.09 186.09H550.05C545.21 186.09 541.28 182.15 541.28 177.32V75.24H541.27Z" fill="#CE3935"></path><path d="M1823 177.32V75.24C1823 58.91 1809.72 45.63 1793.39 45.63H1662.34C1646.01 45.63 1632.73 58.91 1632.73 75.24V177.32C1632.73 193.65 1646.01 206.93 1662.34 206.93H1793.39C1809.72 206.93 1823 193.65 1823 177.32ZM1653.57 75.24C1653.57 70.4 1657.51 66.47 1662.34 66.47H1793.39C1798.23 66.47 1802.16 70.41 1802.16 75.24V177.32C1802.16 182.16 1798.22 186.09 1793.39 186.09H1662.34C1657.5 186.09 1653.57 182.15 1653.57 177.32V75.24Z" fill="#CE3935"></path><path d="M756.76 196.51V152H849.42C855.17 152 859.84 147.34 859.84 141.58C859.84 135.83 855.17 131.16 849.42 131.16H756.76V75.23C756.76 70.39 760.7 66.46 765.53 66.46H893.29C899.04 66.46 903.71 61.8 903.71 56.04C903.71 50.29 899.04 45.62 893.29 45.62H765.53C749.2 45.62 735.92 58.9 735.92 75.23V196.5C735.92 202.25 740.59 206.92 746.34 206.92C752.09 206.93 756.76 202.27 756.76 196.51Z" fill="#CE3935"></path><path d="M933.86 66.47H1006.51V194.32C1006.51 200.07 1011.18 204.74 1016.93 204.74C1022.68 204.74 1027.35 200.07 1027.35 194.32V66.47H1100C1105.75 66.47 1110.42 61.81 1110.42 56.05C1110.42 50.3 1105.76 45.63 1100 45.63H933.86C928.11 45.63 923.44 50.29 923.44 56.05C923.45 61.81 928.11 66.47 933.86 66.47Z" fill="#CE3935"></path><path d="M1218.44 204.19C1224.19 204.19 1228.86 199.53 1228.86 193.77V152H1368.13C1384.46 152 1397.74 138.72 1397.74 122.39V75.24C1397.74 58.91 1384.46 45.63 1368.13 45.63H1237.63C1221.3 45.63 1208.02 58.91 1208.02 75.24V193.77C1208.02 199.53 1212.68 204.19 1218.44 204.19ZM1237.63 66.47H1368.13C1372.97 66.47 1376.9 70.41 1376.9 75.24V122.39C1376.9 127.23 1372.96 131.16 1368.13 131.16H1228.86V75.23C1228.86 70.41 1232.79 66.47 1237.63 66.47Z" fill="#CE3935"></path><path d="M1430.64 204.19C1436.39 204.19 1441.06 199.53 1441.06 193.77V152H1523.95C1524.57 153.18 1525.42 154.26 1526.51 155.17L1581.89 201.23C1583.83 202.85 1586.2 203.64 1588.55 203.64C1591.54 203.64 1594.5 202.36 1596.57 199.88C1600.25 195.46 1599.64 188.89 1595.22 185.21L1555.29 152H1580.33C1596.66 152 1609.94 138.72 1609.94 122.39V75.24C1609.94 58.91 1596.66 45.63 1580.33 45.63H1449.83C1433.5 45.63 1420.22 58.91 1420.22 75.24V193.77C1420.22 199.53 1424.88 204.19 1430.64 204.19ZM1449.83 66.47H1580.33C1585.17 66.47 1589.1 70.41 1589.1 75.24V122.39C1589.1 127.23 1585.17 131.16 1580.33 131.16H1441.06V75.23C1441.05 70.41 1444.99 66.47 1449.83 66.47Z" fill="#CE3935"></path>', 10)
33
33
  ]));
34
34
  }
35
- const i1 = /* @__PURE__ */ _(s1, [["render", a1]]), u1 = {
35
+ const i1 = /* @__PURE__ */ v(s1, [["render", a1]]), u1 = {
36
36
  components: { IconChevronDown: R },
37
37
  props: { route: Object, searchable: String },
38
38
  mounted() {
@@ -72,7 +72,7 @@ const i1 = /* @__PURE__ */ _(s1, [["render", a1]]), u1 = {
72
72
  class: ""
73
73
  }, d1 = { class: "ml-[30px] py-[6px] before:block before:absolute relative w-[196px] flex flex-col gap-[6px] inline-block before:w-[2px] before:h-[100%] before:bg-gray-100 before:left-[-14px] cursor-pointer" }, p1 = { key: 1 };
74
74
  function h1(e, t, r, i, o, s) {
75
- var C, b, h, x, w, k, m, y, V, M, H, $, v, O, z;
75
+ var C, b, h, x, w, m, k, y, V, M, H, $, _, O, z;
76
76
  const g = p("IconChevronDown"), f = p("router-link");
77
77
  return (C = r.route) != null && C.menu ? (l(), a("div", c1, [
78
78
  n("button", {
@@ -122,15 +122,15 @@ function h1(e, t, r, i, o, s) {
122
122
  })
123
123
  ])) : (w = r.route) != null && w.hidden ? D("", !0) : (l(), a("div", p1, [
124
124
  c(f, {
125
- innerHTML: s.highLight((k = r.route) == null ? void 0 : k.ua),
126
- to: ((y = (m = r.route) == null ? void 0 : m.path) == null ? void 0 : y[0]) === "/" ? (V = r.route) == null ? void 0 : V.path : "/" + ((M = r.route) == null ? void 0 : M.path),
125
+ innerHTML: s.highLight((m = r.route) == null ? void 0 : m.ua),
126
+ to: ((y = (k = r.route) == null ? void 0 : k.path) == null ? void 0 : y[0]) === "/" ? (V = r.route) == null ? void 0 : V.path : "/" + ((M = r.route) == null ? void 0 : M.path),
127
127
  class: L([[
128
- (((H = r.route) == null ? void 0 : H.path.replace("/", "")) === e.$route.path.replace("/", "") || ((v = ($ = e.$route) == null ? void 0 : $.params) == null ? void 0 : v.table) === ((O = r.route) == null ? void 0 : O.table) && ((z = r.route) == null ? void 0 : z.table)) && "bg-gray-100"
128
+ (((H = r.route) == null ? void 0 : H.path.replace("/", "")) === e.$route.path.replace("/", "") || ((_ = ($ = e.$route) == null ? void 0 : $.params) == null ? void 0 : _.table) === ((O = r.route) == null ? void 0 : O.table) && ((z = r.route) == null ? void 0 : z.table)) && "bg-gray-100"
129
129
  ], "inline-block py-2 w-full font-[400] px-3 text-sm text-gray-800 rounded-lg items-center hover:bg-gray-100 duration-300 hover:text-gray-800"])
130
130
  }, null, 8, ["innerHTML", "to", "class"])
131
131
  ]));
132
132
  }
133
- const f1 = /* @__PURE__ */ _(u1, [["render", h1]]), C1 = {
133
+ const f1 = /* @__PURE__ */ v(u1, [["render", h1]]), C1 = {
134
134
  components: { IconLogout: n1, NavbarItem: f1, IconLogo: i1, IconSearch: q },
135
135
  data() {
136
136
  return {
@@ -148,6 +148,11 @@ const f1 = /* @__PURE__ */ _(u1, [["render", h1]]), C1 = {
148
148
  return ((e = T.value) == null ? void 0 : e.logo) || "/assets/logo.svg";
149
149
  }
150
150
  },
151
+ watch: {
152
+ "$route.path"() {
153
+ this.$parent.showMenu = !1;
154
+ }
155
+ },
151
156
  methods: {
152
157
  filterMenu(e, t) {
153
158
  return e.map((r) => {
@@ -162,18 +167,18 @@ const f1 = /* @__PURE__ */ _(u1, [["render", h1]]), C1 = {
162
167
  }).filter(Boolean);
163
168
  }
164
169
  }
165
- }, g1 = { class: "h-[59px] w-full p-[4px] mb-[10px]" }, b1 = ["src"], x1 = { class: "relative mx-[16px] pl" }, _1 = { class: "p-[16px] overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, v1 = { class: "flex flex-col flex-wrap w-full pb-3" }, w1 = {
170
+ }, g1 = { class: "h-[59px] w-full p-[4px] mb-[10px]" }, b1 = ["src"], x1 = { class: "relative mx-[16px]" }, v1 = { class: "p-[16px] lg:h-full h-[calc(100vh-110px)] overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, _1 = { class: "flex flex-col flex-wrap w-full pb-3" }, w1 = {
166
171
  key: 0,
167
172
  class: "flex flex-col gap-[6px]"
168
- }, k1 = {
173
+ }, m1 = {
169
174
  key: 1,
170
175
  class: "text-gray-800 text-lg mt-[20px]"
171
176
  };
172
- function m1(e, t, r, i, o, s) {
177
+ function k1(e, t, r, i, o, s) {
173
178
  var b;
174
179
  const g = p("IconSearch"), f = p("VsText"), C = p("NavbarItem");
175
180
  return l(), a("div", {
176
- class: L(["lg:flex lg:relative lg:left-0 flex-col h-[100vh] border-r w-[260px] shrink-0 absolute transition left-[-100%] z-[11] bg-white", [{ "left-0": e.$parent.showMenu }]])
181
+ class: L(["lg:flex lg:relative lg:left-0 flex-col h-[100vh] border-r w-[260px] top-0 bottom-0 shrink-0 absolute transition left-[-100%] z-[11] bg-white", [{ "left-0": e.$parent.showMenu }]])
177
182
  }, [
178
183
  n("div", g1, [
179
184
  n("img", {
@@ -196,8 +201,8 @@ function m1(e, t, r, i, o, s) {
196
201
  class: "[&>input]:h-[40px] [&>input]:block [&>input]:pl-[40px] [&>input:focus]:outline-none [&>input:focus]:focus:ring-0 [&>input:focus]:border-y-gray-200 [&>input:focus]:border-y-1 [&>input:focus]:border-x-0"
197
202
  }, null, 8, ["modelValue"])
198
203
  ]),
199
- n("div", _1, [
200
- n("nav", v1, [
204
+ n("div", v1, [
205
+ n("nav", _1, [
201
206
  (b = s.data) != null && b.length ? (l(), a("ul", w1, [
202
207
  (l(!0), a(E, null, F(s.data, (h, x) => (l(), a("li", {
203
208
  key: x,
@@ -208,12 +213,12 @@ function m1(e, t, r, i, o, s) {
208
213
  searchable: o.searchValue
209
214
  }, null, 8, ["route", "searchable"])
210
215
  ]))), 128))
211
- ])) : (l(), a("div", k1, "Не знайдено"))
216
+ ])) : (l(), a("div", m1, "Не знайдено"))
212
217
  ])
213
218
  ])
214
219
  ], 2);
215
220
  }
216
- const y1 = /* @__PURE__ */ _(C1, [["render", m1]]), V1 = {}, M1 = {
221
+ const y1 = /* @__PURE__ */ v(C1, [["render", k1]]), V1 = {}, M1 = {
217
222
  class: "flex-shrink-0 size-4",
218
223
  xmlns: "http://www.w3.org/2000/svg",
219
224
  viewBox: "0 0 24 24",
@@ -234,7 +239,7 @@ function H1(e, t, r, i, o, s) {
234
239
  n("path", { d: "M12 17h.01" }, null, -1)
235
240
  ]));
236
241
  }
237
- const $1 = /* @__PURE__ */ _(V1, [["render", H1]]), L1 = {
242
+ const $1 = /* @__PURE__ */ v(V1, [["render", H1]]), L1 = {
238
243
  components: { IconQuestion: $1, IconUser: G, AdminNotification: J },
239
244
  mounted() {
240
245
  this.getUserData();
@@ -285,12 +290,12 @@ const $1 = /* @__PURE__ */ _(V1, [["render", H1]]), L1 = {
285
290
  class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
286
291
  }, T1 = { class: "text-[14px] mr-[10px] text-gray-500" }, B1 = { class: "flex flex-col p-[4px]" };
287
292
  function U1(e, t, r, i, o, s) {
288
- var h, x, w, k, m, y, V, M, H, $;
293
+ var h, x, w, m, k, y, V, M, H, $;
289
294
  const g = p("IconQuestion"), f = p("AdminNotification"), C = p("IconUser"), b = p("router-link");
290
295
  return l(), a("div", I1, [
291
296
  n("div", {
292
297
  class: "lg:hidden flex",
293
- onClick: t[0] || (t[0] = (v) => e.$parent.showMenu = !0)
298
+ onClick: t[0] || (t[0] = (_) => e.$parent.showMenu = !0)
294
299
  }, t[4] || (t[4] = [
295
300
  B('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-menu-2"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l16 0"></path><path d="M4 12l16 0"></path><path d="M4 18l16 0"></path></svg>', 1)
296
301
  ])),
@@ -305,13 +310,13 @@ function U1(e, t, r, i, o, s) {
305
310
  t[6] || (t[6] = n("div", { class: "h-[30px] w-[1px] bg-gray-200 ml-[10px] mr-[10px]" }, null, -1)),
306
311
  n("div", E1, [
307
312
  n("div", {
308
- onClick: t[1] || (t[1] = (v) => o.isVisible = !0),
313
+ onClick: t[1] || (t[1] = (_) => o.isVisible = !0),
309
314
  class: "cursor-pointer"
310
315
  }, [
311
316
  (x = (h = o.userData) == null ? void 0 : h.user) != null && x.avatar ? (l(), a("img", {
312
317
  key: 0,
313
318
  class: "flex-shrink-0 size-[30px] rounded-full",
314
- src: (k = (w = o.userData) == null ? void 0 : w.user) == null ? void 0 : k.avatar,
319
+ src: (m = (w = o.userData) == null ? void 0 : w.user) == null ? void 0 : m.avatar,
315
320
  alt: "Image Description"
316
321
  }, null, 8, O1)) : (l(), a("div", z1, [
317
322
  c(C)
@@ -324,7 +329,7 @@ function U1(e, t, r, i, o, s) {
324
329
  class: "fixed bg-white w-[180px] top-[55px] right-[20px] shadow-xl rounded-xl z-[1]"
325
330
  }, [
326
331
  n("div", j1, [
327
- (y = (m = o.userData) == null ? void 0 : m.user) != null && y.avatar ? (l(), a("img", {
332
+ (y = (k = o.userData) == null ? void 0 : k.user) != null && y.avatar ? (l(), a("img", {
328
333
  key: 0,
329
334
  class: "flex-shrink-0 size-[30px] rounded-full",
330
335
  src: (M = (V = o.userData) == null ? void 0 : V.user) == null ? void 0 : M.avatar,
@@ -348,7 +353,7 @@ function U1(e, t, r, i, o, s) {
348
353
  _: 1
349
354
  }),
350
355
  n("button", {
351
- onClick: t[2] || (t[2] = (...v) => s.logout && s.logout(...v)),
356
+ onClick: t[2] || (t[2] = (..._) => s.logout && s.logout(..._)),
352
357
  class: "p-[8px] block rounded-lg w-full text-start hover:bg-gray-100 !duration-300"
353
358
  }, " Вийти ")
354
359
  ])
@@ -357,7 +362,7 @@ function U1(e, t, r, i, o, s) {
357
362
  ])
358
363
  ]);
359
364
  }
360
- const A1 = /* @__PURE__ */ _(L1, [["render", U1]]), Q1 = {
365
+ const A1 = /* @__PURE__ */ v(L1, [["render", U1]]), Q1 = {
361
366
  components: { navbar: y1, AdminHeader: A1 },
362
367
  data() {
363
368
  return {
@@ -391,7 +396,7 @@ function q1(e, t, r, i, o, s) {
391
396
  ])
392
397
  ]);
393
398
  }
394
- const K1 = /* @__PURE__ */ _(Q1, [["render", q1], ["__scopeId", "data-v-79c10cab"]]);
399
+ const K1 = /* @__PURE__ */ v(Q1, [["render", q1], ["__scopeId", "data-v-34da2042"]]);
395
400
  export {
396
401
  K1 as default
397
402
  };
package/dist/admin.js CHANGED
@@ -1,4 +1,4 @@
1
- import { k as f } from "./import-file-DUW_oizq.js";
1
+ import { k as f } from "./import-file-Byr4O-Fj.js";
2
2
  export {
3
3
  f as default
4
4
  };