@opengis/fastify-table 1.1.50 → 1.1.51

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 (211) hide show
  1. package/.eslintrc.cjs +42 -42
  2. package/.gitlab-ci.yml +18 -18
  3. package/Changelog.md +352 -351
  4. package/README.md +26 -26
  5. package/config.js +10 -10
  6. package/cron/controllers/cronApi.js +22 -22
  7. package/cron/controllers/utils/cronList.js +1 -1
  8. package/cron/funcs/addCron.js +132 -132
  9. package/cron/index.js +10 -10
  10. package/crud/controllers/deleteCrud.js +36 -36
  11. package/crud/controllers/insert.js +71 -71
  12. package/crud/controllers/update.js +76 -76
  13. package/crud/controllers/utils/xssInjection.js +72 -72
  14. package/crud/funcs/dataDelete.js +19 -19
  15. package/crud/funcs/dataInsert.js +30 -30
  16. package/crud/funcs/dataUpdate.js +48 -48
  17. package/crud/funcs/getAccess.js +46 -44
  18. package/crud/funcs/getOpt.js +10 -10
  19. package/crud/funcs/getToken.js +27 -27
  20. package/crud/funcs/isFileExists.js +13 -13
  21. package/crud/funcs/setOpt.js +16 -16
  22. package/crud/funcs/setToken.js +53 -53
  23. package/crud/funcs/utils/getFolder.js +9 -9
  24. package/crud/funcs/utils/logChanges.js +62 -62
  25. package/crud/index.js +36 -36
  26. package/docs/.vitepress/abbr.mjs +26 -26
  27. package/docs/.vitepress/config.mjs +127 -127
  28. package/docs/.vitepress/navigation.mjs +82 -82
  29. package/docs/.vitepress/theme/Layout.vue +17 -17
  30. package/docs/.vitepress/theme/components/NavigationLinks.vue +102 -102
  31. package/docs/.vitepress/theme/components/Panzoom.vue +169 -169
  32. package/docs/.vitepress/theme/index.mjs +15 -15
  33. package/docs/.vitepress/theme/style.scss +163 -163
  34. package/docs/abbr.json +4 -4
  35. package/docs/api/cron/cronApi.md +56 -56
  36. package/docs/api/crud/deleteCrud.md +58 -58
  37. package/docs/api/crud/insert.md +82 -82
  38. package/docs/api/crud/update.md +85 -85
  39. package/docs/api/index.md +47 -47
  40. package/docs/api/notification/testEmail.md +91 -91
  41. package/docs/api/table/card.md +73 -73
  42. package/docs/api/table/data.md +134 -134
  43. package/docs/api/table/export.md +60 -60
  44. package/docs/api/table/filter.md +104 -104
  45. package/docs/api/table/form.md +126 -126
  46. package/docs/api/table/search.md +123 -123
  47. package/docs/api/table/suggest.md +156 -156
  48. package/docs/api/table/table.md +107 -107
  49. package/docs/api/user/user.cls.id.md +77 -77
  50. package/docs/api/user/user.cls.md +49 -49
  51. package/docs/api/user/user.cls.post.md +62 -62
  52. package/docs/api/user/user.info.md +37 -37
  53. package/docs/api/utils/logger.file.md +60 -60
  54. package/docs/api/utils/next.id.md +34 -34
  55. package/docs/api/utils/properties.add.md +127 -127
  56. package/docs/api/utils/properties.get.md +73 -73
  57. package/docs/api/utils/status.monitor.md +36 -36
  58. package/docs/api/widget/widget.del.md +76 -76
  59. package/docs/api/widget/widget.get.md +233 -233
  60. package/docs/api/widget/widget.set.md +88 -88
  61. package/docs/db/admin.md +947 -947
  62. package/docs/db/crm.md +564 -564
  63. package/docs/db/index.md +9 -9
  64. package/docs/db/log.md +204 -204
  65. package/docs/hook/card/afterCard.md +20 -20
  66. package/docs/hook/card/preCard.md +25 -25
  67. package/docs/hook/data/afterData.md +26 -26
  68. package/docs/hook/data/preData.md +26 -26
  69. package/docs/hook/deleteCrud/afterDelete.md +21 -21
  70. package/docs/hook/deleteCrud/preDelete.md +26 -26
  71. package/docs/hook/form/afterForm.md +19 -19
  72. package/docs/hook/form/preForm.md +26 -26
  73. package/docs/hook/getTemplate/afterTemplate.md +24 -24
  74. package/docs/hook/getTemplate/preTemplate.md +29 -29
  75. package/docs/hook/index.md +45 -45
  76. package/docs/hook/insert/afterInsert.md +41 -41
  77. package/docs/hook/insert/preInsert.md +25 -25
  78. package/docs/hook/table/afterTable.md +20 -20
  79. package/docs/hook/table/preTable.md +25 -25
  80. package/docs/hook/update/afterUpdate.md +41 -41
  81. package/docs/hook/update/preUpdate.md +25 -25
  82. package/docs/index.md +42 -42
  83. package/docs/public/fastify-dark.svg +3 -3
  84. package/docs/public/logo-short-dark.svg +11 -11
  85. package/docs/public/logo-short.svg +10 -10
  86. package/docs/public/logo.svg +19 -19
  87. package/docs/readme/index.md +121 -121
  88. package/docs/templates/card.md +83 -83
  89. package/docs/templates/cls.md +29 -29
  90. package/docs/templates/filters.md +91 -91
  91. package/docs/templates/forms.md +139 -139
  92. package/docs/templates/index.md +28 -28
  93. package/docs/templates/select.md +90 -90
  94. package/docs/templates/table.md +162 -162
  95. package/docs/utils/cron/addCron.md +29 -29
  96. package/docs/utils/crud/dataInsert.md +51 -51
  97. package/docs/utils/crud/dataUpdate.md +52 -52
  98. package/docs/utils/crud/getOpt.md +33 -33
  99. package/docs/utils/crud/isFileExists.md +37 -37
  100. package/docs/utils/crud/setOpt.md +37 -37
  101. package/docs/utils/hook/addHook.md +74 -74
  102. package/docs/utils/hook/applyHook.md +64 -64
  103. package/docs/utils/index.md +47 -47
  104. package/docs/utils/notification/addNotification.md +28 -28
  105. package/docs/utils/notification/notification.md +41 -41
  106. package/docs/utils/pg/autoIndex.md +22 -22
  107. package/docs/utils/pg/getMeta.md +58 -58
  108. package/docs/utils/pg/getPG.md +34 -34
  109. package/docs/utils/pg/init.md +29 -29
  110. package/docs/utils/pg/pg.md +70 -70
  111. package/docs/utils/redis/getRedis.md +36 -36
  112. package/docs/utils/redis/rclient.md +74 -74
  113. package/docs/utils/table/getForm.md +68 -68
  114. package/docs/utils/table/getMeta.md +55 -55
  115. package/docs/utils/table/getSelect.md +38 -38
  116. package/docs/utils/table/getSelectMeta.md +46 -46
  117. package/docs/utils/table/getTable.md +77 -77
  118. package/helper.js +30 -30
  119. package/index.js +105 -105
  120. package/migration/exec.migrations.js +79 -79
  121. package/module/core/select/core.user_mentioned.sql +1 -1
  122. package/module/test/cls/itree.composition.json +25 -25
  123. package/module/test/table/test.rest_zone.table.json +265 -265
  124. package/notification/controllers/readNotifications.js +30 -30
  125. package/notification/controllers/testEmail.js +50 -50
  126. package/notification/controllers/userNotifications.js +64 -64
  127. package/notification/funcs/addNotification.js +21 -21
  128. package/notification/funcs/sendNotification.js +112 -112
  129. package/package.json +41 -41
  130. package/pg/funcs/getMeta.js +29 -29
  131. package/pg/funcs/getPG.js +30 -30
  132. package/pg/pgClients.js +20 -20
  133. package/policy/funcs/checkPolicy.js +92 -92
  134. package/policy/funcs/sqlInjection.js +33 -33
  135. package/policy/index.js +14 -14
  136. package/redis/client.js +8 -8
  137. package/redis/funcs/getRedis.js +23 -23
  138. package/redis/funcs/redisClients.js +2 -2
  139. package/redis/index.js +19 -19
  140. package/server/migrations/0.sql +78 -78
  141. package/server/migrations/cls.sql +39 -39
  142. package/server/migrations/log.sql +80 -80
  143. package/server/migrations/properties.sql +144 -144
  144. package/server/migrations/roles.sql +172 -166
  145. package/server/migrations/users.sql +168 -168
  146. package/server.js +26 -26
  147. package/table/controllers/data.js +150 -150
  148. package/table/controllers/filter.js +50 -50
  149. package/table/controllers/form.js +42 -42
  150. package/table/controllers/search.js +80 -80
  151. package/table/controllers/suggest.js +79 -79
  152. package/table/controllers/table.js +83 -83
  153. package/table/controllers/utils/addTemplateDir.js +8 -8
  154. package/table/controllers/utils/getSelect.js +19 -19
  155. package/table/controllers/utils/getSelectMeta.js +66 -66
  156. package/table/controllers/utils/getTemplate_old.js +28 -28
  157. package/table/controllers/utils/getTemplates.js +18 -18
  158. package/table/controllers/utils/gisIRColumn.js +67 -67
  159. package/table/controllers/utils/loadTemplate.js +1 -1
  160. package/table/controllers/utils/loadTemplatePath.js +1 -1
  161. package/table/controllers/utils/userTemplateDir.js +1 -1
  162. package/table/funcs/getFilterSQL/index.js +94 -94
  163. package/table/funcs/getFilterSQL/util/formatValue.js +170 -170
  164. package/table/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  165. package/table/funcs/getFilterSQL/util/getFilterQuery.js +66 -66
  166. package/table/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  167. package/table/funcs/getFilterSQL/util/getTableSql.js +34 -34
  168. package/table/funcs/metaFormat/getSelectVal.js +21 -21
  169. package/table/funcs/metaFormat/index.js +28 -28
  170. package/table/index.js +37 -37
  171. package/table/schema.js +54 -54
  172. package/test/api/applyHook.test.js +95 -95
  173. package/test/api/crud.test.js +89 -89
  174. package/test/api/crud.xss.test.js +80 -80
  175. package/test/api/suggest.test.js +66 -66
  176. package/test/api/table.test.js +134 -134
  177. package/test/api/user.test.js +85 -85
  178. package/test/api/widget.test.js +117 -117
  179. package/test/config.example +18 -18
  180. package/test/funcs/pg.test.js +34 -34
  181. package/test/funcs/redis.test.js +19 -19
  182. package/test/helper/formatDate.test.js +62 -62
  183. package/test/templates/cls/test.json +9 -9
  184. package/test/templates/form/cp_building.form.json +32 -32
  185. package/test/templates/select/account_id.json +3 -3
  186. package/test/templates/select/storage.data.json +2 -2
  187. package/test/templates/select/test.storage.data.json +3 -3
  188. package/test/templates/select/test.suggest.ato_new.json +3 -3
  189. package/test/templates/select/test.suggest.ato_new.sql +25 -25
  190. package/test/templates/select/test.suggest.data.json +4 -4
  191. package/test/templates/select/test.suggest.parent.sql +1 -1
  192. package/test/templates/table/gis.dataset.table.json +20 -20
  193. package/user/controllers/user.cls.id.js +14 -14
  194. package/user/controllers/user.cls.js +75 -75
  195. package/user/controllers/user.cls.post.js +55 -55
  196. package/user/controllers/user.info.js +21 -21
  197. package/util/controllers/logger.file.js +91 -91
  198. package/util/controllers/next.id.js +4 -4
  199. package/util/controllers/properties.add.js +60 -60
  200. package/util/controllers/properties.get.js +19 -19
  201. package/util/controllers/status.monitor.js +8 -8
  202. package/util/controllers/utils/checkUserAccess.js +17 -17
  203. package/util/controllers/utils/getRootDir.js +25 -25
  204. package/util/index.js +23 -23
  205. package/utils.js +104 -104
  206. package/widget/controllers/utils/historyFormat.js +76 -76
  207. package/widget/controllers/utils/obj2db.js +13 -13
  208. package/widget/controllers/widget.del.js +44 -44
  209. package/widget/controllers/widget.get.js +102 -102
  210. package/widget/controllers/widget.set.js +79 -79
  211. package/widget/index.js +40 -40
@@ -1,74 +1,74 @@
1
- # rclient
2
-
3
- Дозволяє виконувати [redis command](https://redis.io/commands/)
4
-
5
- ```js
6
- const data = await rclient.get(`auth:${params.token}`); // отримує з cache
7
- ```
8
-
9
- ::: details Робота з `object`, `array` / об'єктами та масивами
10
-
11
- Redis підтримує роботу з даними у форматі `string`
12
-
13
- Для запису `object` або `array` можна
14
-
15
- - зробити `JSON.stringify` - для запису, `JSON.parse` - для читання.
16
- - використати функції `setJSON`, `getJSON`
17
- - використати `hgetall`, `hmset` - для `object`
18
- - використати `sadd` - для `array`
19
- :::
20
-
21
- ## Key / Ключі
22
-
23
- Робота з ключами key
24
-
25
- | Команда | Опис |
26
- | ---------------- | ---------------------------------- |
27
- | [get](https://redis.io/commands/get) | Get the value of key. If the key does not exist the special value nil is returned. |
28
- | [del](https://redis.io/commands/del) | Removes the specified keys. A key is ignored if it does not exist. |
29
- | [set](https://redis.io/commands/set) | Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type. |
30
- | [setnx](https://redis.io/commands/setnx) | Set key to hold string value if key does not exist. In that case, it is equal to SET. When key already holds a value, no operation is performed. |
31
- | [expire](https://redis.io/commands/expire) | Set a timeout on key. After the timeout has expired, the key will automatically be deleted. |
32
- | [incr](https://redis.io/commands/incr) | Increments the number stored at key by one. If the key does not exist, it is set to 0 before performing the operation. |
33
- | [exists](https://redis.io/commands/exists) | The user should be aware that if the same existing key is mentioned in the arguments multiple times, it will be counted multiple times. |
34
- | [scan](https://redis.io/commands/scan) | Iterates the set of keys in the currently selected Redis database. |
35
-
36
- ## Hash stored / Hash об'єкти
37
-
38
- Команди роботи з асоціативними масивами
39
-
40
- | Команда | Опис |
41
- | ---------------- | ---------------------------------- |
42
- | [hget](https://redis.io/commands/hget) | Returns the value associated with field in the hash stored at key. |
43
- | [hgetall](https://redis.io/commands/hget) | Returns the value associated with field in the hash stored at key. |
44
- | [hmget](https://redis.io/commands/hmget) | Returns the values associated with the specified fields in the hash stored at key. For every field that does not exist in the hash, a nil value is returned. |
45
- | [hmset](https://redis.io/commands/hmset) | Sets the specified fields to their respective values in the hash stored at key. This command overwrites any specified fields already existing in the hash. If key does not exist, a new key holding a hash is created. |
46
-
47
- ## Set / Списки
48
-
49
- Запис масивів унікальних значень
50
-
51
- | Команда | Опис |
52
- | ---------------- | ---------------------------------- |
53
- | [sadd](https://redis.io/commands/sadd) | Add the specified members to the set stored at key. Specified members that are already a member of this set are ignored. If key does not exist, a new set is created before adding the specified members. |
54
- | [rpush](https://redis.io/commands/rpush) | Insert all the specified values at the tail of the list stored at key. If key does not exist, it is created as empty list before performing the push operation. |
55
- | [smembers](https://redis.io/commands/smembers) | Returns all the members of the set value stored at key. |
56
- | [llen](https://redis.io/commands/llen) | Returns the length of the list stored at key. If key does not exist, it is interpreted as an empty list and 0 is returned. |
57
-
58
- ## Sorted set / Сортовані списки
59
-
60
- Використовується в `suggest` в пошуку по тексту
61
-
62
- | Команда | Опис |
63
- | ---------------- | ---------------------------------- |
64
- | [zadd](https://redis.io/commands/zadd) | Adds all the specified members with the specified scores to the sorted set stored at key. If key does not exist, a new sorted set with the specified members as sole members is created, like if the sorted set was empty. |
65
- | [zcard](https://redis.io/commands/zcard) | Returns the sorted set cardinality (number of elements) of the sorted set stored at key. |
66
- | [lrange](https://redis.io/commands/lrange) | Returns the specified elements of the list stored at key. |
67
- | [zrangebylex](https://redis.io/commands/zrange) | Returns the specified range of elements in the sorted set stored at key. |
68
-
69
- ## Службові команди
70
-
71
- | Команда | Опис |
72
- | ---------------- | ---------------------------------- |
73
- | [latency](https://redis.io/commands/latency) | This is a container command for latency diagnostics commands. |
74
- | [flushdb](https://redis.io/commands/flushdb) | Delete all the keys of the currently selected DB. This command never fails. |
1
+ # rclient
2
+
3
+ Дозволяє виконувати [redis command](https://redis.io/commands/)
4
+
5
+ ```js
6
+ const data = await rclient.get(`auth:${params.token}`); // отримує з cache
7
+ ```
8
+
9
+ ::: details Робота з `object`, `array` / об'єктами та масивами
10
+
11
+ Redis підтримує роботу з даними у форматі `string`
12
+
13
+ Для запису `object` або `array` можна
14
+
15
+ - зробити `JSON.stringify` - для запису, `JSON.parse` - для читання.
16
+ - використати функції `setJSON`, `getJSON`
17
+ - використати `hgetall`, `hmset` - для `object`
18
+ - використати `sadd` - для `array`
19
+ :::
20
+
21
+ ## Key / Ключі
22
+
23
+ Робота з ключами key
24
+
25
+ | Команда | Опис |
26
+ | ---------------- | ---------------------------------- |
27
+ | [get](https://redis.io/commands/get) | Get the value of key. If the key does not exist the special value nil is returned. |
28
+ | [del](https://redis.io/commands/del) | Removes the specified keys. A key is ignored if it does not exist. |
29
+ | [set](https://redis.io/commands/set) | Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type. |
30
+ | [setnx](https://redis.io/commands/setnx) | Set key to hold string value if key does not exist. In that case, it is equal to SET. When key already holds a value, no operation is performed. |
31
+ | [expire](https://redis.io/commands/expire) | Set a timeout on key. After the timeout has expired, the key will automatically be deleted. |
32
+ | [incr](https://redis.io/commands/incr) | Increments the number stored at key by one. If the key does not exist, it is set to 0 before performing the operation. |
33
+ | [exists](https://redis.io/commands/exists) | The user should be aware that if the same existing key is mentioned in the arguments multiple times, it will be counted multiple times. |
34
+ | [scan](https://redis.io/commands/scan) | Iterates the set of keys in the currently selected Redis database. |
35
+
36
+ ## Hash stored / Hash об'єкти
37
+
38
+ Команди роботи з асоціативними масивами
39
+
40
+ | Команда | Опис |
41
+ | ---------------- | ---------------------------------- |
42
+ | [hget](https://redis.io/commands/hget) | Returns the value associated with field in the hash stored at key. |
43
+ | [hgetall](https://redis.io/commands/hget) | Returns the value associated with field in the hash stored at key. |
44
+ | [hmget](https://redis.io/commands/hmget) | Returns the values associated with the specified fields in the hash stored at key. For every field that does not exist in the hash, a nil value is returned. |
45
+ | [hmset](https://redis.io/commands/hmset) | Sets the specified fields to their respective values in the hash stored at key. This command overwrites any specified fields already existing in the hash. If key does not exist, a new key holding a hash is created. |
46
+
47
+ ## Set / Списки
48
+
49
+ Запис масивів унікальних значень
50
+
51
+ | Команда | Опис |
52
+ | ---------------- | ---------------------------------- |
53
+ | [sadd](https://redis.io/commands/sadd) | Add the specified members to the set stored at key. Specified members that are already a member of this set are ignored. If key does not exist, a new set is created before adding the specified members. |
54
+ | [rpush](https://redis.io/commands/rpush) | Insert all the specified values at the tail of the list stored at key. If key does not exist, it is created as empty list before performing the push operation. |
55
+ | [smembers](https://redis.io/commands/smembers) | Returns all the members of the set value stored at key. |
56
+ | [llen](https://redis.io/commands/llen) | Returns the length of the list stored at key. If key does not exist, it is interpreted as an empty list and 0 is returned. |
57
+
58
+ ## Sorted set / Сортовані списки
59
+
60
+ Використовується в `suggest` в пошуку по тексту
61
+
62
+ | Команда | Опис |
63
+ | ---------------- | ---------------------------------- |
64
+ | [zadd](https://redis.io/commands/zadd) | Adds all the specified members with the specified scores to the sorted set stored at key. If key does not exist, a new sorted set with the specified members as sole members is created, like if the sorted set was empty. |
65
+ | [zcard](https://redis.io/commands/zcard) | Returns the sorted set cardinality (number of elements) of the sorted set stored at key. |
66
+ | [lrange](https://redis.io/commands/lrange) | Returns the specified elements of the list stored at key. |
67
+ | [zrangebylex](https://redis.io/commands/zrange) | Returns the specified range of elements in the sorted set stored at key. |
68
+
69
+ ## Службові команди
70
+
71
+ | Команда | Опис |
72
+ | ---------------- | ---------------------------------- |
73
+ | [latency](https://redis.io/commands/latency) | This is a container command for latency diagnostics commands. |
74
+ | [flushdb](https://redis.io/commands/flushdb) | Delete all the keys of the currently selected DB. This command never fails. |
@@ -1,69 +1,69 @@
1
- # getForm
2
-
3
- ## Опис
4
-
5
- Функція для отримання форм
6
-
7
- ```js
8
- getForm(name)
9
- ```
10
-
11
- ## Параметри
12
-
13
- :::tabs
14
- == params
15
-
16
- | Параметр | Тип | Опис |
17
- | -------- | ------ | ------------- |
18
- | name | String | Форма `.json` |
19
-
20
- :::
21
-
22
- ## Приклад
23
-
24
- ```js
25
- getForm('cp_building.form')
26
- ```
27
-
28
-
29
- ## Відповідь
30
-
31
- ::: details Приклад відповіді
32
-
33
- ```json
34
- {
35
- "schema": {
36
-
37
- "cp_umuni_id": {
38
- "type": "Text",
39
- "ua": "ID UMUNI"
40
- },
41
- "cp_year": {
42
- "type": "Text",
43
- "ua": "Рік будівництва"
44
- },
45
- "cp_date_en_audit": {
46
- "type": "DatePicker",
47
- "ua": "Дата проведення останнього енергоаудиту"
48
- },
49
- "cp_certificate": {
50
- "type": "Text",
51
- "ua": "Сертифікат енергоефективності будівлі",
52
- "help": "Вкажіть посилання"
53
- },
54
- "cp_pkd": {
55
- "type": "Autocomplete",
56
- "data": "customer_name",
57
- "add": {
58
- "model": "crm_acc.crm_account",
59
- "ua": "Додати",
60
- "form": "account_light.form"
61
- },
62
- "ua": "Замовник ПКД"
63
- }
64
- },
65
- "label_style": "vertical"
66
- }
67
- ```
68
-
1
+ # getForm
2
+
3
+ ## Опис
4
+
5
+ Функція для отримання форм
6
+
7
+ ```js
8
+ getForm(name)
9
+ ```
10
+
11
+ ## Параметри
12
+
13
+ :::tabs
14
+ == params
15
+
16
+ | Параметр | Тип | Опис |
17
+ | -------- | ------ | ------------- |
18
+ | name | String | Форма `.json` |
19
+
20
+ :::
21
+
22
+ ## Приклад
23
+
24
+ ```js
25
+ getForm('cp_building.form')
26
+ ```
27
+
28
+
29
+ ## Відповідь
30
+
31
+ ::: details Приклад відповіді
32
+
33
+ ```json
34
+ {
35
+ "schema": {
36
+
37
+ "cp_umuni_id": {
38
+ "type": "Text",
39
+ "ua": "ID UMUNI"
40
+ },
41
+ "cp_year": {
42
+ "type": "Text",
43
+ "ua": "Рік будівництва"
44
+ },
45
+ "cp_date_en_audit": {
46
+ "type": "DatePicker",
47
+ "ua": "Дата проведення останнього енергоаудиту"
48
+ },
49
+ "cp_certificate": {
50
+ "type": "Text",
51
+ "ua": "Сертифікат енергоефективності будівлі",
52
+ "help": "Вкажіть посилання"
53
+ },
54
+ "cp_pkd": {
55
+ "type": "Autocomplete",
56
+ "data": "customer_name",
57
+ "add": {
58
+ "model": "crm_acc.crm_account",
59
+ "ua": "Додати",
60
+ "form": "account_light.form"
61
+ },
62
+ "ua": "Замовник ПКД"
63
+ }
64
+ },
65
+ "label_style": "vertical"
66
+ }
67
+ ```
68
+
69
69
  :::
@@ -1,56 +1,56 @@
1
- # getMeta
2
-
3
- ## Опис
4
-
5
- Метадані таблиці
6
-
7
- ```js
8
- getMeta(table);
9
- ```
10
-
11
- ## Параметри
12
-
13
- :::tabs
14
- == params
15
-
16
- | Параметр | Тип | Опис |
17
- | -------- | ------ | ------- |
18
- | table | String | Таблиця |
19
-
20
- :::
21
-
22
- ## Приклад
23
-
24
- ```js
25
- getMeta('gis.dataset')
26
- ```
27
-
28
- ## Відповідь
29
-
30
- :::details Приклад відповіді
31
-
32
- ```json
33
- {
34
- "pk": "dataset_id",
35
- "columns": [
36
- {
37
- "name": "dataset_id",
38
- "tableID": 7649248,
39
- "columnID": 1,
40
- "dataTypeID": 25,
41
- "dataTypeSize": -1,
42
- "dataTypeModifier": -1,
43
- "format": "text"
44
- },
45
- {
46
- "name": "dataset_name",
47
- "tableID": 7649248,
48
- "columnID": 2,
49
- "dataTypeID": 25,
50
- "dataTypeSize": -1,
51
- "dataTypeModifier": -1,
52
- "format": "text"
53
- },
54
-
55
- ```
1
+ # getMeta
2
+
3
+ ## Опис
4
+
5
+ Метадані таблиці
6
+
7
+ ```js
8
+ getMeta(table);
9
+ ```
10
+
11
+ ## Параметри
12
+
13
+ :::tabs
14
+ == params
15
+
16
+ | Параметр | Тип | Опис |
17
+ | -------- | ------ | ------- |
18
+ | table | String | Таблиця |
19
+
20
+ :::
21
+
22
+ ## Приклад
23
+
24
+ ```js
25
+ getMeta('gis.dataset')
26
+ ```
27
+
28
+ ## Відповідь
29
+
30
+ :::details Приклад відповіді
31
+
32
+ ```json
33
+ {
34
+ "pk": "dataset_id",
35
+ "columns": [
36
+ {
37
+ "name": "dataset_id",
38
+ "tableID": 7649248,
39
+ "columnID": 1,
40
+ "dataTypeID": 25,
41
+ "dataTypeSize": -1,
42
+ "dataTypeModifier": -1,
43
+ "format": "text"
44
+ },
45
+ {
46
+ "name": "dataset_name",
47
+ "tableID": 7649248,
48
+ "columnID": 2,
49
+ "dataTypeID": 25,
50
+ "dataTypeSize": -1,
51
+ "dataTypeModifier": -1,
52
+ "format": "text"
53
+ },
54
+
55
+ ```
56
56
  :::
@@ -1,39 +1,39 @@
1
- # getSelect
2
-
3
- ## Опис
4
-
5
- Отримує дані селекту.
6
-
7
- ```js
8
- getSelect(name)
9
- ```
10
-
11
- ## Параметри
12
-
13
- :::tabs
14
- == params
15
-
16
- | Параметр | Тип | Опис |
17
- | -------- | ------ | ------------- |
18
- | name | String | Назва таблиці |
19
-
20
- :::
21
-
22
- ## Приклад
23
-
24
- ```js
25
- getSelect('storage.data')
26
- ```
27
-
28
- ## Відповідь
29
-
30
- ::: details Приклад відповіді
31
-
32
- ```json
33
- {
34
- "key": "data_id",
35
- "original": "select data_id from storage.data"
36
- }
37
- ```
38
-
1
+ # getSelect
2
+
3
+ ## Опис
4
+
5
+ Отримує дані селекту.
6
+
7
+ ```js
8
+ getSelect(name)
9
+ ```
10
+
11
+ ## Параметри
12
+
13
+ :::tabs
14
+ == params
15
+
16
+ | Параметр | Тип | Опис |
17
+ | -------- | ------ | ------------- |
18
+ | name | String | Назва таблиці |
19
+
20
+ :::
21
+
22
+ ## Приклад
23
+
24
+ ```js
25
+ getSelect('storage.data')
26
+ ```
27
+
28
+ ## Відповідь
29
+
30
+ ::: details Приклад відповіді
31
+
32
+ ```json
33
+ {
34
+ "key": "data_id",
35
+ "original": "select data_id from storage.data"
36
+ }
37
+ ```
38
+
39
39
  :::
@@ -1,47 +1,47 @@
1
- # getSelectMeta
2
-
3
- ## Опис
4
-
5
- Отримує дані з класифікатора або селекта.
6
-
7
- ```js
8
- getSelectMeta(name)
9
- ```
10
-
11
- ## Параметри
12
-
13
- :::tabs
14
- == params
15
-
16
- | Параметр | Тип | Опис |
17
- | -------- | ------ | ------------- |
18
- | name | String | Назва класифікатора/селекта |
19
-
20
- :::
21
- ## Приклад
22
-
23
- ```js
24
- getSelectMeta({name: 'test'})
25
- ```
26
-
27
- ## Відповідь
28
-
29
- ::: details Приклад відповіді
30
-
31
- ```json
32
- {
33
- "arr": [
34
- {
35
- "id": 1,
36
- "text": "test"
37
- },
38
- {
39
- "id": 2,
40
- "text": "test2"
41
- }
42
- ]
43
- }
44
-
45
- ```
46
-
1
+ # getSelectMeta
2
+
3
+ ## Опис
4
+
5
+ Отримує дані з класифікатора або селекта.
6
+
7
+ ```js
8
+ getSelectMeta(name)
9
+ ```
10
+
11
+ ## Параметри
12
+
13
+ :::tabs
14
+ == params
15
+
16
+ | Параметр | Тип | Опис |
17
+ | -------- | ------ | ------------- |
18
+ | name | String | Назва класифікатора/селекта |
19
+
20
+ :::
21
+ ## Приклад
22
+
23
+ ```js
24
+ getSelectMeta({name: 'test'})
25
+ ```
26
+
27
+ ## Відповідь
28
+
29
+ ::: details Приклад відповіді
30
+
31
+ ```json
32
+ {
33
+ "arr": [
34
+ {
35
+ "id": 1,
36
+ "text": "test"
37
+ },
38
+ {
39
+ "id": 2,
40
+ "text": "test2"
41
+ }
42
+ ]
43
+ }
44
+
45
+ ```
46
+
47
47
  :::