@saltcorn/data 1.6.0-alpha.7 → 1.6.0-alpha.8

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 (236) hide show
  1. package/dist/base-plugin/actions.d.ts +1850 -1656
  2. package/dist/base-plugin/actions.d.ts.map +1 -1
  3. package/dist/base-plugin/actions.js +122 -104
  4. package/dist/base-plugin/actions.js.map +1 -1
  5. package/dist/base-plugin/fieldviews.d.ts +284 -114
  6. package/dist/base-plugin/fieldviews.d.ts.map +1 -1
  7. package/dist/base-plugin/fieldviews.js +23 -69
  8. package/dist/base-plugin/fieldviews.js.map +1 -1
  9. package/dist/base-plugin/fileviews.d.ts +15 -14
  10. package/dist/base-plugin/fileviews.d.ts.map +1 -1
  11. package/dist/base-plugin/fileviews.js +22 -18
  12. package/dist/base-plugin/fileviews.js.map +1 -1
  13. package/dist/base-plugin/index.d.ts +3369 -1293
  14. package/dist/base-plugin/index.d.ts.map +1 -1
  15. package/dist/base-plugin/index.js +39 -25
  16. package/dist/base-plugin/index.js.map +1 -1
  17. package/dist/base-plugin/types.d.ts +1438 -1029
  18. package/dist/base-plugin/types.d.ts.map +1 -1
  19. package/dist/base-plugin/types.js +3 -2
  20. package/dist/base-plugin/types.js.map +1 -1
  21. package/dist/base-plugin/viewtemplates/edit.d.ts +133 -257
  22. package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
  23. package/dist/base-plugin/viewtemplates/edit.js +292 -349
  24. package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
  25. package/dist/base-plugin/viewtemplates/feed.d.ts +30 -81
  26. package/dist/base-plugin/viewtemplates/feed.d.ts.map +1 -1
  27. package/dist/base-plugin/viewtemplates/feed.js +37 -30
  28. package/dist/base-plugin/viewtemplates/feed.js.map +1 -1
  29. package/dist/base-plugin/viewtemplates/filter.d.ts +42 -64
  30. package/dist/base-plugin/viewtemplates/filter.d.ts.map +1 -1
  31. package/dist/base-plugin/viewtemplates/filter.js +86 -82
  32. package/dist/base-plugin/viewtemplates/filter.js.map +1 -1
  33. package/dist/base-plugin/viewtemplates/list.d.ts +40 -115
  34. package/dist/base-plugin/viewtemplates/list.d.ts.map +1 -1
  35. package/dist/base-plugin/viewtemplates/list.js +143 -162
  36. package/dist/base-plugin/viewtemplates/list.js.map +1 -1
  37. package/dist/base-plugin/viewtemplates/listshowlist.d.ts +65 -49
  38. package/dist/base-plugin/viewtemplates/listshowlist.d.ts.map +1 -1
  39. package/dist/base-plugin/viewtemplates/listshowlist.js +33 -58
  40. package/dist/base-plugin/viewtemplates/listshowlist.js.map +1 -1
  41. package/dist/base-plugin/viewtemplates/room.d.ts +102 -109
  42. package/dist/base-plugin/viewtemplates/room.d.ts.map +1 -1
  43. package/dist/base-plugin/viewtemplates/room.js +53 -50
  44. package/dist/base-plugin/viewtemplates/room.js.map +1 -1
  45. package/dist/base-plugin/viewtemplates/show.d.ts +72 -133
  46. package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
  47. package/dist/base-plugin/viewtemplates/show.js +72 -182
  48. package/dist/base-plugin/viewtemplates/show.js.map +1 -1
  49. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts +2 -2
  50. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts.map +1 -1
  51. package/dist/base-plugin/viewtemplates/viewable_fields.js +2 -1
  52. package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
  53. package/dist/base-plugin/viewtemplates/workflow-room.d.ts +37 -61
  54. package/dist/base-plugin/viewtemplates/workflow-room.d.ts.map +1 -1
  55. package/dist/base-plugin/viewtemplates/workflow-room.js +42 -65
  56. package/dist/base-plugin/viewtemplates/workflow-room.js.map +1 -1
  57. package/dist/contracts.d.ts +4 -48
  58. package/dist/contracts.d.ts.map +1 -1
  59. package/dist/contracts.js +18 -2
  60. package/dist/contracts.js.map +1 -1
  61. package/dist/db/connect.d.ts.map +1 -1
  62. package/dist/db/connect.js +1 -0
  63. package/dist/db/connect.js.map +1 -1
  64. package/dist/db/state.d.ts +31 -28
  65. package/dist/db/state.d.ts.map +1 -1
  66. package/dist/db/state.js +5 -2
  67. package/dist/db/state.js.map +1 -1
  68. package/dist/model-helper.d.ts +4 -16
  69. package/dist/model-helper.d.ts.map +1 -1
  70. package/dist/model-helper.js +3 -3
  71. package/dist/model-helper.js.map +1 -1
  72. package/dist/models/config.d.ts +5 -0
  73. package/dist/models/config.d.ts.map +1 -1
  74. package/dist/models/config.js +5 -0
  75. package/dist/models/config.js.map +1 -1
  76. package/dist/models/field.d.ts +1 -1
  77. package/dist/models/field.d.ts.map +1 -1
  78. package/dist/models/field.js +3 -2
  79. package/dist/models/field.js.map +1 -1
  80. package/dist/models/file.d.ts +1 -1
  81. package/dist/models/file.d.ts.map +1 -1
  82. package/dist/models/file.js.map +1 -1
  83. package/dist/models/form.js +1 -1
  84. package/dist/models/form.js.map +1 -1
  85. package/dist/models/index.d.ts +5 -0
  86. package/dist/models/index.d.ts.map +1 -1
  87. package/dist/models/layout.d.ts +1 -1
  88. package/dist/models/layout.d.ts.map +1 -1
  89. package/dist/models/layout.js +12 -0
  90. package/dist/models/layout.js.map +1 -1
  91. package/dist/models/plugin.d.ts +3 -2
  92. package/dist/models/plugin.d.ts.map +1 -1
  93. package/dist/models/plugin.js +7 -0
  94. package/dist/models/plugin.js.map +1 -1
  95. package/dist/models/table.d.ts.map +1 -1
  96. package/dist/models/table.js +6 -1
  97. package/dist/models/table.js.map +1 -1
  98. package/dist/plugin-testing.d.ts +3 -63
  99. package/dist/plugin-testing.d.ts.map +1 -1
  100. package/dist/plugin-testing.js +34 -15
  101. package/dist/plugin-testing.js.map +1 -1
  102. package/dist/standard-menu.d.ts.map +1 -1
  103. package/dist/standard-menu.js +15 -0
  104. package/dist/standard-menu.js.map +1 -1
  105. package/dist/tests/actions.test.d.ts +2 -0
  106. package/dist/tests/actions.test.d.ts.map +1 -0
  107. package/dist/tests/actions.test.js +936 -0
  108. package/dist/tests/actions.test.js.map +1 -0
  109. package/dist/tests/auth.test.d.ts +2 -0
  110. package/dist/tests/auth.test.d.ts.map +1 -0
  111. package/dist/tests/auth.test.js +824 -0
  112. package/dist/tests/auth.test.js.map +1 -0
  113. package/dist/tests/auxtest.test.d.ts +2 -0
  114. package/dist/tests/auxtest.test.d.ts.map +1 -0
  115. package/dist/tests/auxtest.test.js +562 -0
  116. package/dist/tests/auxtest.test.js.map +1 -0
  117. package/dist/tests/base.test.d.ts +2 -0
  118. package/dist/tests/base.test.d.ts.map +1 -0
  119. package/dist/tests/base.test.js +30 -0
  120. package/dist/tests/base.test.js.map +1 -0
  121. package/dist/tests/calc.test.d.ts +2 -0
  122. package/dist/tests/calc.test.d.ts.map +1 -0
  123. package/dist/tests/calc.test.js +1081 -0
  124. package/dist/tests/calc.test.js.map +1 -0
  125. package/dist/tests/composite_pk.test.d.ts +2 -0
  126. package/dist/tests/composite_pk.test.d.ts.map +1 -0
  127. package/dist/tests/composite_pk.test.js +98 -0
  128. package/dist/tests/composite_pk.test.js.map +1 -0
  129. package/dist/tests/config.test.d.ts +2 -0
  130. package/dist/tests/config.test.d.ts.map +1 -0
  131. package/dist/tests/config.test.js +86 -0
  132. package/dist/tests/config.test.js.map +1 -0
  133. package/dist/tests/db.test.d.ts +2 -0
  134. package/dist/tests/db.test.d.ts.map +1 -0
  135. package/dist/tests/db.test.js +178 -0
  136. package/dist/tests/db.test.js.map +1 -0
  137. package/dist/tests/discover.test.d.ts +2 -0
  138. package/dist/tests/discover.test.d.ts.map +1 -0
  139. package/dist/tests/discover.test.js +245 -0
  140. package/dist/tests/discover.test.js.map +1 -0
  141. package/dist/tests/edit.test.d.ts +2 -0
  142. package/dist/tests/edit.test.d.ts.map +1 -0
  143. package/dist/tests/edit.test.js +1161 -0
  144. package/dist/tests/edit.test.js.map +1 -0
  145. package/dist/tests/email.test.d.ts +2 -0
  146. package/dist/tests/email.test.d.ts.map +1 -0
  147. package/dist/tests/email.test.js +255 -0
  148. package/dist/tests/email.test.js.map +1 -0
  149. package/dist/tests/exact_views.test.d.ts +2 -0
  150. package/dist/tests/exact_views.test.d.ts.map +1 -0
  151. package/dist/tests/exact_views.test.js +1363 -0
  152. package/dist/tests/exact_views.test.js.map +1 -0
  153. package/dist/tests/field.test.d.ts +2 -0
  154. package/dist/tests/field.test.d.ts.map +1 -0
  155. package/dist/tests/field.test.js +588 -0
  156. package/dist/tests/field.test.js.map +1 -0
  157. package/dist/tests/fieldviews.test.d.ts +2 -0
  158. package/dist/tests/fieldviews.test.d.ts.map +1 -0
  159. package/dist/tests/fieldviews.test.js +74 -0
  160. package/dist/tests/fieldviews.test.js.map +1 -0
  161. package/dist/tests/file.test.d.ts +2 -0
  162. package/dist/tests/file.test.d.ts.map +1 -0
  163. package/dist/tests/file.test.js +148 -0
  164. package/dist/tests/file.test.js.map +1 -0
  165. package/dist/tests/filter.test.d.ts +2 -0
  166. package/dist/tests/filter.test.d.ts.map +1 -0
  167. package/dist/tests/filter.test.js +496 -0
  168. package/dist/tests/filter.test.js.map +1 -0
  169. package/dist/tests/form.test.d.ts +2 -0
  170. package/dist/tests/form.test.d.ts.map +1 -0
  171. package/dist/tests/form.test.js +264 -0
  172. package/dist/tests/form.test.js.map +1 -0
  173. package/dist/tests/list.test.d.ts +2 -0
  174. package/dist/tests/list.test.d.ts.map +1 -0
  175. package/dist/tests/list.test.js +1037 -0
  176. package/dist/tests/list.test.js.map +1 -0
  177. package/dist/tests/models.test.d.ts +2 -0
  178. package/dist/tests/models.test.d.ts.map +1 -0
  179. package/dist/tests/models.test.js +417 -0
  180. package/dist/tests/models.test.js.map +1 -0
  181. package/dist/tests/page.test.d.ts +2 -0
  182. package/dist/tests/page.test.d.ts.map +1 -0
  183. package/dist/tests/page.test.js +26 -0
  184. package/dist/tests/page.test.js.map +1 -0
  185. package/dist/tests/page_group.test.d.ts +2 -0
  186. package/dist/tests/page_group.test.d.ts.map +1 -0
  187. package/dist/tests/page_group.test.js +51 -0
  188. package/dist/tests/page_group.test.js.map +1 -0
  189. package/dist/tests/plugin.test.d.ts +2 -0
  190. package/dist/tests/plugin.test.d.ts.map +1 -0
  191. package/dist/tests/plugin.test.js +60 -0
  192. package/dist/tests/plugin.test.js.map +1 -0
  193. package/dist/tests/show.test.d.ts +2 -0
  194. package/dist/tests/show.test.d.ts.map +1 -0
  195. package/dist/tests/show.test.js +561 -0
  196. package/dist/tests/show.test.js.map +1 -0
  197. package/dist/tests/state.test.d.ts +2 -0
  198. package/dist/tests/state.test.d.ts.map +1 -0
  199. package/dist/tests/state.test.js +82 -0
  200. package/dist/tests/state.test.js.map +1 -0
  201. package/dist/tests/table.test.d.ts +2 -0
  202. package/dist/tests/table.test.d.ts.map +1 -0
  203. package/dist/tests/table.test.js +2717 -0
  204. package/dist/tests/table.test.js.map +1 -0
  205. package/dist/tests/table_history.test.d.ts +2 -0
  206. package/dist/tests/table_history.test.d.ts.map +1 -0
  207. package/dist/tests/table_history.test.js +413 -0
  208. package/dist/tests/table_history.test.js.map +1 -0
  209. package/dist/tests/tag.test.d.ts +2 -0
  210. package/dist/tests/tag.test.d.ts.map +1 -0
  211. package/dist/tests/tag.test.js +97 -0
  212. package/dist/tests/tag.test.js.map +1 -0
  213. package/dist/tests/user.test.d.ts +2 -0
  214. package/dist/tests/user.test.d.ts.map +1 -0
  215. package/dist/tests/user.test.js +441 -0
  216. package/dist/tests/user.test.js.map +1 -0
  217. package/dist/tests/view.test.d.ts +2 -0
  218. package/dist/tests/view.test.d.ts.map +1 -0
  219. package/dist/tests/view.test.js +699 -0
  220. package/dist/tests/view.test.js.map +1 -0
  221. package/dist/tests/workflow.test.d.ts +2 -0
  222. package/dist/tests/workflow.test.d.ts.map +1 -0
  223. package/dist/tests/workflow.test.js +303 -0
  224. package/dist/tests/workflow.test.js.map +1 -0
  225. package/dist/tests/workflow_run.test.d.ts +2 -0
  226. package/dist/tests/workflow_run.test.d.ts.map +1 -0
  227. package/dist/tests/workflow_run.test.js +922 -0
  228. package/dist/tests/workflow_run.test.js.map +1 -0
  229. package/dist/viewable_fields.d.ts +5 -4
  230. package/dist/viewable_fields.d.ts.map +1 -1
  231. package/dist/viewable_fields.js +12 -6
  232. package/dist/viewable_fields.js.map +1 -1
  233. package/dist/web-mobile-commons.d.ts.map +1 -1
  234. package/dist/web-mobile-commons.js +1 -0
  235. package/dist/web-mobile-commons.js.map +1 -1
  236. package/package.json +8 -8
@@ -1,1052 +1,1461 @@
1
- export namespace string {
2
- let name: string;
3
- let description: string;
4
- let sql_name: string;
5
- let js_type: string;
6
- function attributes({ table }: object): object;
7
- function contract({ options }: {
8
- options: string | undefined;
9
- }): boolean;
10
- namespace fieldviews {
11
- export namespace as_text {
12
- export let isEdit: boolean;
13
- let description_1: string;
14
- export { description_1 as description };
15
- export function run(s: any): string;
16
- }
17
- export namespace preFormatted {
18
- let isEdit_1: boolean;
19
- export { isEdit_1 as isEdit };
20
- let description_2: string;
21
- export { description_2 as description };
22
- export function run_1(s: any): string;
23
- export { run_1 as run };
24
- }
25
- export namespace code {
26
- let isEdit_2: boolean;
27
- export { isEdit_2 as isEdit };
28
- let description_3: string;
29
- export { description_3 as description };
30
- export function run_2(s: any): string;
31
- export { run_2 as run };
32
- }
33
- export namespace monospace_block {
34
- let isEdit_3: boolean;
35
- export { isEdit_3 as isEdit };
36
- export let configFields: ({
37
- name: string;
38
- label: string;
39
- sublabel: string;
40
- type: string;
41
- } | {
42
- name: string;
43
- label: string;
44
- type: string;
45
- sublabel?: undefined;
46
- })[];
47
- let description_4: string;
48
- export { description_4 as description };
49
- export function run_3(s: any, req: any, attrs?: {}): string;
50
- export { run_3 as run };
51
- }
52
- export namespace ellipsize {
53
- let isEdit_4: boolean;
54
- export { isEdit_4 as isEdit };
55
- let configFields_1: {
56
- name: string;
57
- label: string;
58
- type: string;
59
- default: number;
60
- }[];
61
- export { configFields_1 as configFields };
62
- let description_5: string;
63
- export { description_5 as description };
64
- export function run_4(s: any, req: any, attrs?: {}): string;
65
- export { run_4 as run };
66
- }
67
- export namespace as_link {
68
- let configFields_2: ({
69
- name: string;
70
- label: string;
71
- type: string;
72
- sublabel: string;
73
- } | {
74
- name: string;
75
- label: string;
76
- type: string;
77
- sublabel?: undefined;
78
- })[];
79
- export { configFields_2 as configFields };
80
- let description_6: string;
81
- export { description_6 as description };
82
- let isEdit_5: boolean;
83
- export { isEdit_5 as isEdit };
84
- export function run_5(s: any, req: any, attrs?: {}): string;
85
- export { run_5 as run };
86
- }
87
- export namespace img_from_url {
88
- let isEdit_6: boolean;
89
- export { isEdit_6 as isEdit };
90
- let description_7: string;
91
- export { description_7 as description };
92
- export function run_6(s: any, req: any, attrs: any): string;
93
- export { run_6 as run };
94
- }
95
- export namespace as_header {
96
- let isEdit_7: boolean;
97
- export { isEdit_7 as isEdit };
98
- let description_8: string;
99
- export { description_8 as description };
100
- export function run_7(s: any): string;
101
- export { run_7 as run };
102
- }
103
- export { show_with_html };
104
- export namespace edit {
105
- let isEdit_8: boolean;
106
- export { isEdit_8 as isEdit };
107
- export let blockDisplay: boolean;
108
- let description_9: string;
109
- export { description_9 as description };
110
- export function configFields_3(field: any): ({
111
- name: string;
112
- label: string;
113
- type: string;
114
- sublabel?: undefined;
115
- input_type?: undefined;
116
- options?: undefined;
117
- } | {
118
- name: string;
119
- label: string;
120
- sublabel: string;
121
- type: string;
122
- input_type?: undefined;
123
- options?: undefined;
124
- } | {
125
- name: string;
126
- label: string;
127
- input_type: string;
128
- options: string[];
129
- type?: undefined;
130
- sublabel?: undefined;
131
- })[];
132
- export { configFields_3 as configFields };
133
- export function run_8(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
134
- export { run_8 as run };
135
- }
136
- export namespace fill_formula_btn {
137
- let isEdit_9: boolean;
138
- export { isEdit_9 as isEdit };
139
- let blockDisplay_1: boolean;
140
- export { blockDisplay_1 as blockDisplay };
141
- let description_10: string;
142
- export { description_10 as description };
143
- let configFields_4: ({
144
- name: string;
145
- label: string;
146
- type: string;
147
- showIf?: undefined;
148
- default?: undefined;
149
- input_type?: undefined;
150
- options?: undefined;
151
- } | {
152
- name: string;
153
- label: string;
154
- type: string;
155
- showIf: {
156
- make_unique: boolean;
157
- };
158
- default?: undefined;
159
- input_type?: undefined;
160
- options?: undefined;
161
- } | {
162
- name: string;
163
- label: string;
164
- type: string;
165
- default: number;
166
- showIf: {
167
- make_unique: boolean;
168
- };
169
- input_type?: undefined;
1
+ /**
2
+ * Embedded Types definition.
3
+ *
4
+ * More types can be added by plugin store mechanism https://store.saltcorn.com/
5
+ * @category saltcorn-data
6
+ * @module base-plugin/types
7
+ * @subcategory base-plugin
8
+ */
9
+ declare const _default: {
10
+ string: {
11
+ /** @type {string} */
12
+ name: string;
13
+ description: string;
14
+ /** @type {string} */
15
+ sql_name: string;
16
+ js_type: string;
17
+ /**
18
+ * @param {object} param
19
+ * @returns {object}
20
+ */
21
+ attributes: ({ table }: any) => ({
22
+ name: string;
23
+ label: string;
24
+ type: string;
25
+ required: boolean;
26
+ copilot_description: string;
27
+ sublabel: string;
28
+ attributes: {
29
+ autofocus: boolean;
30
+ asideNext?: undefined;
170
31
  options?: undefined;
171
- } | {
172
- name: string;
173
- label: string;
174
- input_type: string;
175
- options: string[];
176
- showIf: {
177
- make_unique: boolean;
178
- };
179
- type?: undefined;
180
- default?: undefined;
181
- })[];
182
- export { configFields_4 as configFields };
183
- export function run_9(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
184
- export { run_9 as run };
185
- }
186
- export namespace make_unique {
187
- let isEdit_10: boolean;
188
- export { isEdit_10 as isEdit };
189
- let blockDisplay_2: boolean;
190
- export { blockDisplay_2 as blockDisplay };
191
- let description_11: string;
192
- export { description_11 as description };
193
- let configFields_5: ({
194
- name: string;
195
- label: string;
196
- type: string;
197
- input_type?: undefined;
32
+ };
33
+ validator?: undefined;
34
+ input_type?: undefined;
35
+ options?: undefined;
36
+ showIf?: undefined;
37
+ } | {
38
+ name: string;
39
+ label: string;
40
+ type: string;
41
+ required: boolean;
42
+ sublabel: string;
43
+ attributes: {
44
+ asideNext: boolean;
45
+ autofocus?: undefined;
198
46
  options?: undefined;
199
- default?: undefined;
200
- } | {
201
- name: string;
202
- label: string;
203
- input_type: string;
204
- options: string[];
205
- type?: undefined;
206
- default?: undefined;
207
- } | {
208
- name: string;
209
- label: string;
210
- type: string;
211
- default: number;
212
- input_type?: undefined;
47
+ };
48
+ copilot_description?: undefined;
49
+ validator?: undefined;
50
+ input_type?: undefined;
51
+ options?: undefined;
52
+ showIf?: undefined;
53
+ } | {
54
+ name: string;
55
+ label: string;
56
+ type: string;
57
+ required: boolean;
58
+ sublabel: string;
59
+ copilot_description?: undefined;
60
+ attributes?: undefined;
61
+ validator?: undefined;
62
+ input_type?: undefined;
63
+ options?: undefined;
64
+ showIf?: undefined;
65
+ } | {
66
+ name: string;
67
+ type: string;
68
+ label: string;
69
+ required: boolean;
70
+ sublabel: string;
71
+ validator(s: any): "Not a valid Regular Expression" | undefined;
72
+ attributes: {
73
+ asideNext: boolean;
74
+ autofocus?: undefined;
213
75
  options?: undefined;
214
- })[];
215
- export { configFields_5 as configFields };
216
- export function run_10(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
217
- export { run_10 as run };
218
- }
219
- export namespace textarea {
220
- let isEdit_11: boolean;
221
- export { isEdit_11 as isEdit };
222
- let blockDisplay_3: boolean;
223
- export { blockDisplay_3 as blockDisplay };
224
- let description_12: string;
225
- export { description_12 as description };
226
- let configFields_6: ({
227
- type: string;
228
- name: string;
229
- label: string;
230
- sublabel?: undefined;
231
- } | {
232
- name: string;
233
- label: string;
234
- sublabel: string;
235
- type: string;
236
- })[];
237
- export { configFields_6 as configFields };
238
- export function run_11(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
239
- export { run_11 as run };
240
- }
241
- export namespace code_editor {
242
- let isEdit_12: boolean;
243
- export { isEdit_12 as isEdit };
244
- let blockDisplay_4: boolean;
245
- export { blockDisplay_4 as blockDisplay };
246
- let description_13: string;
247
- export { description_13 as description };
248
- let configFields_7: {
249
- type: string;
250
- name: string;
251
- label: string;
252
- required: boolean;
253
- attributes: {
254
- options: string[];
255
- };
256
- }[];
257
- export { configFields_7 as configFields };
258
- export function run_12(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
259
- export { run_12 as run };
260
- }
261
- export namespace radio_group {
262
- let isEdit_13: boolean;
263
- export { isEdit_13 as isEdit };
264
- let configFields_8: {
265
- type: string;
266
- name: string;
267
- label: string;
268
- }[];
269
- export { configFields_8 as configFields };
270
- let description_14: string;
271
- export { description_14 as description };
272
- export function run_13(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
273
- export { run_13 as run };
274
- }
275
- export namespace checkbox_group {
276
- let isEdit_14: boolean;
277
- export { isEdit_14 as isEdit };
278
- export let isFilter: boolean;
279
- let description_15: string;
280
- export { description_15 as description };
281
- let configFields_9: {
282
- type: string;
283
- name: string;
284
- label: string;
285
- }[];
286
- export { configFields_9 as configFields };
287
- export function run_14(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
288
- export { run_14 as run };
289
- }
290
- export namespace password {
291
- let isEdit_15: boolean;
292
- export { isEdit_15 as isEdit };
293
- let configFields_10: {
294
- name: string;
295
- label: string;
296
- type: string;
297
- }[];
298
- export { configFields_10 as configFields };
299
- let blockDisplay_5: boolean;
300
- export { blockDisplay_5 as blockDisplay };
301
- let description_16: string;
302
- export { description_16 as description };
303
- export function run_15(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
304
- export { run_15 as run };
305
- }
306
- export let select_by_code: {
307
- type: undefined;
308
- isEdit: boolean;
309
- blockDisplay: boolean;
310
- description: string;
311
- configFields: object[];
312
- fill_options(field: any, force_allow_none: any, where0: any, extraCtx: any, optionsQuery: any, formFieldNames: any, user: any): Promise<void>;
313
- run: (nm: any, v: any, attrs: any, cls: any, reqd: any, field: any) => object;
314
- };
315
- }
316
- function read(v: any): string | undefined;
317
- namespace presets {
318
- function IP({ req }: {
319
- req: object;
320
- }): object;
321
- function SessionID({ req }: {
322
- req: object;
323
- }): object;
324
- }
325
- function validate({ min_length, max_length, regexp, re_invalid_error }: object): object | true;
326
- function validate_attributes({ min_length, max_length, regexp }: object): object;
327
- }
328
- export namespace int {
329
- let name_1: string;
330
- export { name_1 as name };
331
- let description_17: string;
332
- export { description_17 as description };
333
- let sql_name_1: string;
334
- export { sql_name_1 as sql_name };
335
- let js_type_1: string;
336
- export { js_type_1 as js_type };
337
- export function contract_1({ min, max }: {
338
- min: number;
339
- max: number;
340
- }): boolean;
341
- export { contract_1 as contract };
342
- export namespace primaryKey {
343
- let sql_type: string;
344
- }
345
- export namespace distance_operators {
346
- let near: {
76
+ };
77
+ copilot_description?: undefined;
78
+ input_type?: undefined;
79
+ options?: undefined;
80
+ showIf?: undefined;
81
+ } | {
82
+ name: string;
83
+ label: string;
347
84
  type: string;
85
+ sublabel: string;
86
+ required?: undefined;
87
+ copilot_description?: undefined;
88
+ attributes?: undefined;
89
+ validator?: undefined;
90
+ input_type?: undefined;
91
+ options?: undefined;
92
+ showIf?: undefined;
93
+ } | {
348
94
  name: string;
349
- args: any[];
350
- };
351
- }
352
- export namespace fieldviews_1 {
353
- export namespace show {
354
- let isEdit_16: boolean;
355
- export { isEdit_16 as isEdit };
356
- let description_18: string;
357
- export { description_18 as description };
358
- export function run_16(s: any): string;
359
- export { run_16 as run };
360
- }
361
- export namespace edit_1 {
362
- let isEdit_17: boolean;
363
- export { isEdit_17 as isEdit };
364
- let blockDisplay_6: boolean;
365
- export { blockDisplay_6 as blockDisplay };
366
- let description_19: string;
367
- export { description_19 as description };
368
- let configFields_11: {
369
- name: string;
370
- label: string;
371
- type: string;
372
- }[];
373
- export { configFields_11 as configFields };
374
- export function run_17(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
375
- export { run_17 as run };
376
- }
377
- export { edit_1 as edit };
378
- export namespace number_slider {
379
- export function configFields_12(field: any): {
380
- name: string;
381
- type: any;
382
- required: boolean;
383
- }[];
384
- export { configFields_12 as configFields };
385
- let isEdit_18: boolean;
386
- export { isEdit_18 as isEdit };
387
- let description_20: string;
388
- export { description_20 as description };
389
- let blockDisplay_7: boolean;
390
- export { blockDisplay_7 as blockDisplay };
391
- export function run_18(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any): string;
392
- export { run_18 as run };
393
- }
394
- export namespace range_interval {
395
- export function configFields_13(field: any): {
396
- name: string;
397
- type: any;
398
- required: boolean;
399
- }[];
400
- export { configFields_13 as configFields };
401
- let isEdit_19: boolean;
402
- export { isEdit_19 as isEdit };
403
- let isFilter_1: boolean;
404
- export { isFilter_1 as isFilter };
405
- let blockDisplay_8: boolean;
406
- export { blockDisplay_8 as blockDisplay };
407
- let description_21: string;
408
- export { description_21 as description };
409
- export function run_19(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): string;
410
- export { run_19 as run };
411
- }
412
- export namespace progress_bar {
413
- export function configFields_14(field: any): ({
414
- name: string;
415
- type: string;
416
- label: string;
417
- required?: undefined;
418
- showIf?: undefined;
419
- class?: undefined;
420
- } | {
421
- name: string;
422
- label: string;
423
- type: any;
424
- required: boolean;
425
- showIf: {
426
- max_min_formula: boolean;
427
- radial?: undefined;
428
- };
429
- class?: undefined;
430
- } | {
431
- name: string;
432
- label: string;
433
- type: string;
434
- class: string;
435
- showIf: {
436
- max_min_formula: boolean;
437
- radial?: undefined;
438
- };
439
- required?: undefined;
440
- } | {
441
- name: string;
442
- type: string;
443
- label: string;
444
- showIf: {
445
- radial: boolean;
446
- max_min_formula?: undefined;
447
- };
448
- required?: undefined;
449
- class?: undefined;
450
- })[];
451
- export { configFields_14 as configFields };
452
- let isEdit_20: boolean;
453
- export { isEdit_20 as isEdit };
454
- let description_22: string;
455
- export { description_22 as description };
456
- export function run_20(v: any, req: any, attrs?: {}): string;
457
- export { run_20 as run };
458
- }
459
- export namespace heat_cell {
460
- export function configFields_15(field: any): ({
461
- name: string;
462
- type: string;
463
- label: string;
464
- required?: undefined;
465
- showIf?: undefined;
466
- class?: undefined;
467
- attributes?: undefined;
468
- default?: undefined;
469
- } | {
470
- name: string;
471
- label: string;
472
- type: any;
473
- required: boolean;
474
- showIf: {
475
- max_min_formula: boolean;
476
- };
477
- class?: undefined;
478
- attributes?: undefined;
479
- default?: undefined;
480
- } | {
481
- name: string;
482
- label: string;
483
- type: string;
484
- class: string;
485
- showIf: {
486
- max_min_formula: boolean;
487
- };
488
- required?: undefined;
489
- attributes?: undefined;
490
- default?: undefined;
491
- } | {
492
- name: string;
493
- type: string;
494
- label: string;
495
- required: boolean;
496
- attributes: {
95
+ label: string;
96
+ sublabel: string;
97
+ type: string;
98
+ attributes: {
99
+ options: any;
100
+ autofocus?: undefined;
101
+ asideNext?: undefined;
102
+ };
103
+ required?: undefined;
104
+ copilot_description?: undefined;
105
+ validator?: undefined;
106
+ input_type?: undefined;
107
+ options?: undefined;
108
+ showIf?: undefined;
109
+ } | {
110
+ name: string;
111
+ label: string;
112
+ sublabel: string;
113
+ input_type: string;
114
+ options: string[];
115
+ showIf: {
116
+ localizes_field: any;
117
+ };
118
+ type?: undefined;
119
+ required?: undefined;
120
+ copilot_description?: undefined;
121
+ attributes?: undefined;
122
+ validator?: undefined;
123
+ })[];
124
+ /**
125
+ * @param {object} opts
126
+ * @param {string|undefined} opts.options
127
+ * @returns {boolean}
128
+ */
129
+ contract: ({ options }: any) => any;
130
+ /**
131
+ * @namespace
132
+ * @category saltcorn-data
133
+ * @subcategory types / string
134
+ */
135
+ fieldviews: {
136
+ /**
137
+ * @namespace
138
+ * @category saltcorn-data
139
+ * @subcategory types / string
140
+ */
141
+ as_text: {
142
+ isEdit: boolean;
143
+ description: string;
144
+ run: (s: any) => any;
145
+ };
146
+ preFormatted: {
147
+ isEdit: boolean;
148
+ description: string;
149
+ run: (s: any) => any;
150
+ };
151
+ code: {
152
+ isEdit: boolean;
153
+ description: string;
154
+ run: (s: any) => any;
155
+ };
156
+ monospace_block: {
157
+ isEdit: boolean;
158
+ configFields: ({
159
+ name: string;
160
+ label: string;
161
+ sublabel: string;
162
+ type: string;
163
+ } | {
164
+ name: string;
165
+ label: string;
166
+ type: string;
167
+ sublabel?: undefined;
168
+ })[];
169
+ description: string;
170
+ run: (s: any, req: any, attrs?: any) => any;
171
+ };
172
+ ellipsize: {
173
+ isEdit: boolean;
174
+ configFields: {
175
+ name: string;
176
+ label: string;
177
+ type: string;
178
+ default: number;
179
+ }[];
180
+ description: string;
181
+ run: (s: any, req: any, attrs?: any) => any;
182
+ };
183
+ /**
184
+ * @namespace
185
+ * @category saltcorn-data
186
+ * @subcategory types / string
187
+ */
188
+ as_link: {
189
+ configFields: ({
190
+ name: string;
191
+ label: string;
192
+ type: string;
193
+ sublabel: string;
194
+ } | {
195
+ name: string;
196
+ label: string;
197
+ type: string;
198
+ sublabel?: undefined;
199
+ })[];
200
+ description: string;
201
+ isEdit: boolean;
202
+ run: (s: any, req: any, attrs?: any) => any;
203
+ };
204
+ /**
205
+ * @namespace
206
+ * @category saltcorn-data
207
+ * @subcategory types / string
208
+ */
209
+ img_from_url: {
210
+ isEdit: boolean;
211
+ description: string;
212
+ run: (s: any, req: any, attrs: any) => any;
213
+ };
214
+ /**
215
+ * @namespace
216
+ * @category saltcorn-data
217
+ * @subcategory types / string
218
+ */
219
+ as_header: {
220
+ isEdit: boolean;
221
+ description: string;
222
+ run: (s: any) => any;
223
+ };
224
+ show_with_html: {
225
+ configFields: {
226
+ input_type: string;
227
+ name: string;
228
+ label: string;
229
+ sublabel: string;
230
+ default: string;
231
+ attributes: {
232
+ mode: string;
233
+ };
234
+ }[];
235
+ isEdit: boolean;
236
+ description: string;
237
+ run: (v: any, req: any, attrs?: any) => any;
238
+ };
239
+ /**
240
+ * @namespace
241
+ * @category saltcorn-data
242
+ * @subcategory types / string
243
+ */
244
+ edit: {
245
+ isEdit: boolean;
246
+ blockDisplay: boolean;
247
+ description: string;
248
+ configFields: (field: any) => ({
249
+ name: string;
250
+ label: string;
251
+ type: string;
252
+ sublabel?: undefined;
253
+ input_type?: undefined;
254
+ options?: undefined;
255
+ } | {
256
+ name: string;
257
+ label: string;
258
+ sublabel: string;
259
+ type: string;
260
+ input_type?: undefined;
261
+ options?: undefined;
262
+ } | {
263
+ name: string;
264
+ label: string;
265
+ input_type: string;
497
266
  options: string[];
498
- };
499
- showIf?: undefined;
500
- class?: undefined;
501
- default?: undefined;
502
- } | {
503
- name: string;
504
- type: string;
505
- label: string;
506
- default: number;
507
- required?: undefined;
508
- showIf?: undefined;
509
- class?: undefined;
510
- attributes?: undefined;
511
- })[];
512
- export { configFields_15 as configFields };
513
- let isEdit_21: boolean;
514
- export { isEdit_21 as isEdit };
515
- let description_23: string;
516
- export { description_23 as description };
517
- export function run_21(v: any, req: any, attrs?: {}): string;
518
- export { run_21 as run };
519
- }
520
- export namespace above_input {
521
- let isEdit_22: boolean;
522
- export { isEdit_22 as isEdit };
523
- let isFilter_2: boolean;
524
- export { isFilter_2 as isFilter };
525
- let blockDisplay_9: boolean;
526
- export { blockDisplay_9 as blockDisplay };
527
- let configFields_16: {
528
- name: string;
529
- label: string;
530
- type: string;
531
- }[];
532
- export { configFields_16 as configFields };
533
- export function run_22(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): string;
534
- export { run_22 as run };
535
- }
536
- export namespace below_input { }
537
- export { show_with_html };
538
- export namespace show_star_rating {
539
- let description_24: string;
540
- export { description_24 as description };
541
- export function configFields_17(field: any): {
542
- name: string;
543
- type: string;
544
- required: boolean;
545
- default: number;
546
- }[];
547
- export { configFields_17 as configFields };
548
- let isEdit_23: boolean;
549
- export { isEdit_23 as isEdit };
550
- let blockDisplay_10: boolean;
551
- export { blockDisplay_10 as blockDisplay };
552
- export function run_23(v: any, req: any, attrs?: {}): string;
553
- export { run_23 as run };
554
- }
555
- export namespace edit_star_rating {
556
- let description_25: string;
557
- export { description_25 as description };
558
- export function configFields_18(field: any): ({
559
- name: string;
560
- type: string;
561
- required: boolean;
562
- default: number;
563
- label?: undefined;
564
- sublabel?: undefined;
565
- } | {
566
- name: string;
567
- label: string;
568
- sublabel: string;
569
- type: string;
570
- required?: undefined;
571
- default?: undefined;
572
- })[];
573
- export { configFields_18 as configFields };
574
- let isEdit_24: boolean;
575
- export { isEdit_24 as isEdit };
576
- let blockDisplay_11: boolean;
577
- export { blockDisplay_11 as blockDisplay };
578
- export function run_24(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): string;
579
- export { run_24 as run };
580
- }
581
- export { to_locale_string };
582
- export namespace role_select {
583
- let isEdit_25: boolean;
584
- export { isEdit_25 as isEdit };
585
- let blockDisplay_12: boolean;
586
- export { blockDisplay_12 as blockDisplay };
587
- let description_26: string;
588
- export { description_26 as description };
589
- export function fill_options(field: any): Promise<void>;
590
- export function run_25(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
591
- export { run_25 as run };
592
- }
593
- let select_by_code_1: {
594
- type: undefined;
595
- isEdit: boolean;
596
- blockDisplay: boolean;
597
- description: string;
598
- configFields: object[];
599
- fill_options(field: any, force_allow_none: any, where0: any, extraCtx: any, optionsQuery: any, formFieldNames: any, user: any): Promise<void>;
600
- run: (nm: any, v: any, attrs: any, cls: any, reqd: any, field: any) => object;
601
- };
602
- export { select_by_code_1 as select_by_code };
603
- }
604
- export { fieldviews_1 as fieldviews };
605
- let attributes_1: object[];
606
- export { attributes_1 as attributes };
607
- export function validate_attributes_1({ min, max }: object): boolean;
608
- export { validate_attributes_1 as validate_attributes };
609
- export function read_1(v: object): object;
610
- export { read_1 as read };
611
- export function validate_1({ min, max }: object): boolean;
612
- export { validate_1 as validate };
613
- }
614
- export namespace bool {
615
- let name_2: string;
616
- export { name_2 as name };
617
- let description_27: string;
618
- export { description_27 as description };
619
- let sql_name_2: string;
620
- export { sql_name_2 as sql_name };
621
- let js_type_2: string;
622
- export { js_type_2 as js_type };
623
- export function contract_2(): Function;
624
- export { contract_2 as contract };
625
- export namespace fieldviews_2 {
626
- export namespace show_1 {
627
- let isEdit_26: boolean;
628
- export { isEdit_26 as isEdit };
629
- let description_28: string;
630
- export { description_28 as description };
631
- export function run_26(v: any, req: any): string;
632
- export { run_26 as run };
633
- }
634
- export { show_1 as show };
635
- export namespace checkboxes {
636
- let isEdit_27: boolean;
637
- export { isEdit_27 as isEdit };
638
- let description_29: string;
639
- export { description_29 as description };
640
- export function run_27(v: any): string;
641
- export { run_27 as run };
642
- }
643
- export namespace TrueFalse {
644
- let isEdit_28: boolean;
645
- export { isEdit_28 as isEdit };
646
- let description_30: string;
647
- export { description_30 as description };
648
- export function run_28(v: any): "" | "True" | "False";
649
- export { run_28 as run };
650
- }
651
- export namespace edit_2 {
652
- let isEdit_29: boolean;
653
- export { isEdit_29 as isEdit };
654
- let description_31: string;
655
- export { description_31 as description };
656
- let configFields_19: ({
657
- name: string;
658
- label: string;
659
- type: string;
660
- attributes: {
267
+ type?: undefined;
268
+ sublabel?: undefined;
269
+ })[];
270
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
271
+ };
272
+ fill_formula_btn: {
273
+ isEdit: boolean;
274
+ blockDisplay: boolean;
275
+ description: string;
276
+ configFields: ({
277
+ name: string;
278
+ label: string;
279
+ type: string;
280
+ showIf?: undefined;
281
+ default?: undefined;
282
+ input_type?: undefined;
283
+ options?: undefined;
284
+ } | {
285
+ name: string;
286
+ label: string;
287
+ type: string;
288
+ showIf: {
289
+ make_unique: boolean;
290
+ };
291
+ default?: undefined;
292
+ input_type?: undefined;
293
+ options?: undefined;
294
+ } | {
295
+ name: string;
296
+ label: string;
297
+ type: string;
298
+ default: number;
299
+ showIf: {
300
+ make_unique: boolean;
301
+ };
302
+ input_type?: undefined;
303
+ options?: undefined;
304
+ } | {
305
+ name: string;
306
+ label: string;
307
+ input_type: string;
661
308
  options: string[];
662
- };
663
- } | {
664
- name: string;
665
- label: string;
666
- type: string;
667
- attributes?: undefined;
668
- })[];
669
- export { configFields_19 as configFields };
670
- export function run_29(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
671
- export { run_29 as run };
672
- }
673
- export { edit_2 as edit };
674
- export namespace _switch {
675
- let isEdit_30: boolean;
676
- export { isEdit_30 as isEdit };
677
- let description_32: string;
678
- export { description_32 as description };
679
- export function run_30(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
680
- export { run_30 as run };
681
- }
682
- export { _switch as switch };
683
- export { show_with_html };
684
- export namespace tristate {
685
- let isEdit_31: boolean;
686
- export { isEdit_31 as isEdit };
687
- let description_33: string;
688
- export { description_33 as description };
689
- let configFields_20: {
690
- name: string;
691
- label: string;
692
- type: string;
693
- }[];
694
- export { configFields_20 as configFields };
695
- export function run_31(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
696
- export { run_31 as run };
697
- }
698
- export namespace thumbs_up_down {
699
- let isEdit_32: boolean;
700
- export { isEdit_32 as isEdit };
701
- let description_34: string;
702
- export { description_34 as description };
703
- let configFields_21: {
704
- name: string;
705
- label: string;
706
- type: string;
707
- required: boolean;
708
- attributes: {
309
+ showIf: {
310
+ make_unique: boolean;
311
+ };
312
+ type?: undefined;
313
+ default?: undefined;
314
+ })[];
315
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
316
+ };
317
+ make_unique: {
318
+ isEdit: boolean;
319
+ blockDisplay: boolean;
320
+ description: string;
321
+ configFields: ({
322
+ name: string;
323
+ label: string;
324
+ type: string;
325
+ input_type?: undefined;
326
+ options?: undefined;
327
+ default?: undefined;
328
+ } | {
329
+ name: string;
330
+ label: string;
331
+ input_type: string;
709
332
  options: string[];
710
- };
711
- }[];
712
- export { configFields_21 as configFields };
713
- export function run_32(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
714
- export { run_32 as run };
715
- }
716
- }
717
- export { fieldviews_2 as fieldviews };
718
- let attributes_2: object[];
719
- export { attributes_2 as attributes };
720
- export function readFromFormRecord(rec: any, name: string): boolean | null;
721
- export function read_2(v: object): boolean | null;
722
- export { read_2 as read };
723
- export function readFromDB(v: object): object;
724
- export function listAs(v: object): object;
725
- export function validate_2(): boolean;
726
- export { validate_2 as validate };
727
- }
728
- export namespace date {
729
- let name_3: string;
730
- export { name_3 as name };
731
- let description_35: string;
732
- export { description_35 as description };
733
- let sql_name_3: string;
734
- export { sql_name_3 as sql_name };
735
- let js_type_3: string;
736
- export { js_type_3 as js_type };
737
- export function contract_3(): Function;
738
- export { contract_3 as contract };
739
- let attributes_3: object[];
740
- export { attributes_3 as attributes };
741
- export namespace fieldviews_3 {
742
- export namespace show_2 {
743
- let isEdit_33: boolean;
744
- export { isEdit_33 as isEdit };
745
- let description_36: string;
746
- export { description_36 as description };
747
- export function run_33(d: any, req: any, attrs?: {}): any;
748
- export { run_33 as run };
749
- }
750
- export { show_2 as show };
751
- export namespace showDay {
752
- let isEdit_34: boolean;
753
- export { isEdit_34 as isEdit };
754
- let description_37: string;
755
- export { description_37 as description };
756
- export function run_34(d: any, req: any): any;
757
- export { run_34 as run };
758
- }
759
- export namespace format {
760
- let isEdit_35: boolean;
761
- export { isEdit_35 as isEdit };
762
- let description_38: string;
763
- export { description_38 as description };
764
- let configFields_22: {
765
- name: string;
766
- label: string;
767
- type: string;
768
- help: {
769
- topic: string;
770
- };
771
- }[];
772
- export { configFields_22 as configFields };
773
- export function run_35(d: any, req: any, options: any): string;
774
- export { run_35 as run };
775
- }
776
- export namespace relative {
777
- let isEdit_36: boolean;
778
- export { isEdit_36 as isEdit };
779
- let description_39: string;
780
- export { description_39 as description };
781
- export function run_36(d: any, req: any): any;
782
- export { run_36 as run };
783
- }
784
- export namespace yearsAgo {
785
- let isEdit_37: boolean;
786
- export { isEdit_37 as isEdit };
787
- let description_40: string;
788
- export { description_40 as description };
789
- export function run_37(d: any, req: any): string;
790
- export { run_37 as run };
791
- }
792
- export { show_with_html };
793
- export namespace edit_3 {
794
- let isEdit_38: boolean;
795
- export { isEdit_38 as isEdit };
796
- let blockDisplay_13: boolean;
797
- export { blockDisplay_13 as blockDisplay };
798
- let description_41: string;
799
- export { description_41 as description };
800
- let configFields_23: {
801
- label: string;
802
- name: string;
803
- type: string;
804
- }[];
805
- export { configFields_23 as configFields };
806
- export function run_38(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
807
- export { run_38 as run };
808
- }
809
- export { edit_3 as edit };
810
- export namespace editDay {
811
- let isEdit_39: boolean;
812
- export { isEdit_39 as isEdit };
813
- let blockDisplay_14: boolean;
814
- export { blockDisplay_14 as blockDisplay };
815
- let description_42: string;
816
- export { description_42 as description };
817
- let configFields_24: {
818
- label: string;
819
- name: string;
820
- type: string;
821
- }[];
822
- export { configFields_24 as configFields };
823
- export function run_39(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
824
- export { run_39 as run };
825
- }
826
- }
827
- export { fieldviews_3 as fieldviews };
828
- export namespace presets_1 {
829
- function Now({ field }: {
830
- field: any;
831
- }): Date | PlainDate;
832
- }
833
- export { presets_1 as presets };
834
- export function read_3(v0: any, attrs: object): object;
835
- export { read_3 as read };
836
- export function validate_3(): boolean;
837
- export { validate_3 as validate };
838
- export function equals(a: any, b: any): boolean;
839
- }
840
- export namespace float {
841
- let name_4: string;
842
- export { name_4 as name };
843
- let description_43: string;
844
- export { description_43 as description };
845
- let sql_name_4: string;
846
- export { sql_name_4 as sql_name };
847
- let js_type_4: string;
848
- export { js_type_4 as js_type };
849
- export function contract_4({ min, max }: {
850
- min: number;
851
- max: number;
852
- }): Function;
853
- export { contract_4 as contract };
854
- export namespace distance_operators_1 {
855
- let near_1: {
856
- type: string;
857
- name: string;
858
- args: any[];
333
+ type?: undefined;
334
+ default?: undefined;
335
+ } | {
336
+ name: string;
337
+ label: string;
338
+ type: string;
339
+ default: number;
340
+ input_type?: undefined;
341
+ options?: undefined;
342
+ })[];
343
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
344
+ };
345
+ /**
346
+ * @namespace
347
+ * @category saltcorn-data
348
+ * @subcategory types / string
349
+ */
350
+ textarea: {
351
+ isEdit: boolean;
352
+ blockDisplay: boolean;
353
+ description: string;
354
+ configFields: ({
355
+ type: string;
356
+ name: string;
357
+ label: string;
358
+ sublabel?: undefined;
359
+ } | {
360
+ name: string;
361
+ label: string;
362
+ sublabel: string;
363
+ type: string;
364
+ })[];
365
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
366
+ };
367
+ code_editor: {
368
+ isEdit: boolean;
369
+ blockDisplay: boolean;
370
+ description: string;
371
+ configFields: {
372
+ type: string;
373
+ name: string;
374
+ label: string;
375
+ required: boolean;
376
+ attributes: {
377
+ options: string[];
378
+ };
379
+ }[];
380
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
381
+ };
382
+ /**
383
+ * @namespace
384
+ * @category saltcorn-data
385
+ * @subcategory types / string
386
+ */
387
+ radio_group: {
388
+ isEdit: boolean;
389
+ configFields: {
390
+ type: string;
391
+ name: string;
392
+ label: string;
393
+ }[];
394
+ description: string;
395
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
396
+ };
397
+ checkbox_group: {
398
+ isEdit: boolean;
399
+ isFilter: boolean;
400
+ description: string;
401
+ configFields: {
402
+ type: string;
403
+ name: string;
404
+ label: string;
405
+ }[];
406
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
407
+ };
408
+ /**
409
+ * @namespace
410
+ * @category saltcorn-data
411
+ * @subcategory types / string
412
+ */
413
+ password: {
414
+ isEdit: boolean;
415
+ configFields: {
416
+ name: string;
417
+ label: string;
418
+ type: string;
419
+ }[];
420
+ blockDisplay: boolean;
421
+ description: string;
422
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
423
+ };
424
+ select_by_code: any;
425
+ };
426
+ /**
427
+ * @param {*} v
428
+ * @returns {string|undefined}
429
+ */
430
+ read: (v: any) => string | undefined;
431
+ /**
432
+ * @namespace
433
+ * @category saltcorn-data
434
+ * @subcategory types / string
435
+ */
436
+ presets: {
437
+ /**
438
+ * @param {object} opts
439
+ * @param {object} opts.req
440
+ * @returns {object}
441
+ */
442
+ IP: ({ req }: any) => any;
443
+ /**
444
+ * @param {object} opts
445
+ * @param {object} opts.req
446
+ * @returns {object}
447
+ */
448
+ SessionID: ({ req }: any) => any;
449
+ };
450
+ /**
451
+ * @param {object} param
452
+ * @returns {object|true}
453
+ */
454
+ validate: ({ min_length, max_length, regexp, re_invalid_error }: any) => (x: any) => true | {
455
+ error: any;
859
456
  };
860
- export { near_1 as near };
861
- }
862
- export { distance_operators_1 as distance_operators };
863
- export namespace fieldviews_4 {
864
- export namespace show_3 {
865
- let isEdit_40: boolean;
866
- export { isEdit_40 as isEdit };
867
- let description_44: string;
868
- export { description_44 as description };
869
- export function run_40(s: any): string;
870
- export { run_40 as run };
871
- }
872
- export { show_3 as show };
873
- export namespace edit_4 {
874
- let isEdit_41: boolean;
875
- export { isEdit_41 as isEdit };
876
- let blockDisplay_15: boolean;
877
- export { blockDisplay_15 as blockDisplay };
878
- let description_45: string;
879
- export { description_45 as description };
880
- let configFields_25: {
881
- name: string;
882
- label: string;
883
- type: string;
884
- }[];
885
- export { configFields_25 as configFields };
886
- export function run_41(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
887
- export { run_41 as run };
888
- }
889
- export { edit_4 as edit };
890
- export namespace number_slider_1 { }
891
- export { number_slider_1 as number_slider };
892
- export namespace range_interval_1 { }
893
- export { range_interval_1 as range_interval };
894
- export namespace progress_bar_1 { }
895
- export { progress_bar_1 as progress_bar };
896
- export namespace heat_cell_1 { }
897
- export { heat_cell_1 as heat_cell };
898
- export namespace above_input_1 {
899
- let isEdit_42: boolean;
900
- export { isEdit_42 as isEdit };
901
- let isFilter_3: boolean;
902
- export { isFilter_3 as isFilter };
903
- let blockDisplay_16: boolean;
904
- export { blockDisplay_16 as blockDisplay };
905
- export function run_42(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): string;
906
- export { run_42 as run };
907
- }
908
- export { above_input_1 as above_input };
909
- export namespace below_input_1 { }
910
- export { below_input_1 as below_input };
911
- export { to_locale_string };
912
- export { show_with_html };
913
- }
914
- export { fieldviews_4 as fieldviews };
915
- let attributes_4: object[];
916
- export { attributes_4 as attributes };
917
- export function read_4(v: object): number | string | undefined;
918
- export { read_4 as read };
919
- export function validate_4({ min, max }: object): object | boolean;
920
- export { validate_4 as validate };
921
- export function equals_1(a: any, b: any, { decimal_places }: {
922
- decimal_places: any;
923
- }): boolean;
924
- export { equals_1 as equals };
925
- }
926
- export namespace color {
927
- let name_5: string;
928
- export { name_5 as name };
929
- let description_46: string;
930
- export { description_46 as description };
931
- let sql_name_5: string;
932
- export { sql_name_5 as sql_name };
933
- let js_type_5: string;
934
- export { js_type_5 as js_type };
935
- export function contract_5(): Function;
936
- export { contract_5 as contract };
937
- export namespace fieldviews_5 {
938
- export namespace show_4 {
939
- let isEdit_43: boolean;
940
- export { isEdit_43 as isEdit };
941
- let description_47: string;
942
- export { description_47 as description };
943
- export function run_43(s: any): string;
944
- export { run_43 as run };
945
- }
946
- export { show_4 as show };
947
- export { show_with_html };
948
- export namespace edit_5 {
949
- let isEdit_44: boolean;
950
- export { isEdit_44 as isEdit };
951
- let blockDisplay_17: boolean;
952
- export { blockDisplay_17 as blockDisplay };
953
- let description_48: string;
954
- export { description_48 as description };
955
- export function run_44(nm: any, v: any, attrs: any, cls: any, required: any, field: any): string;
956
- export { run_44 as run };
957
- }
958
- export { edit_5 as edit };
959
- }
960
- export { fieldviews_5 as fieldviews };
961
- let attributes_5: object[];
962
- export { attributes_5 as attributes };
963
- export function read_5(v: object): object;
964
- export { read_5 as read };
965
- export function validate_5(): boolean;
966
- export { validate_5 as validate };
967
- }
968
- declare namespace show_with_html {
969
- let configFields_26: {
970
- input_type: string;
457
+ /**
458
+ * @param {object} param
459
+ * @returns {object}
460
+ */
461
+ validate_attributes: ({ min_length, max_length, regexp }: any) => boolean;
462
+ };
463
+ int: {
464
+ /** @type {string} */
971
465
  name: string;
972
- label: string;
973
- sublabel: string;
974
- default: string;
466
+ description: string;
467
+ /** @type {string} */
468
+ sql_name: string;
469
+ js_type: string;
470
+ /**
471
+ * @param {object} opts
472
+ * @param {number} opts.min
473
+ * @param {number} opts.max
474
+ * @returns {boolean}
475
+ */
476
+ contract: ({ min, max }: any) => any;
477
+ primaryKey: {
478
+ sql_type: string;
479
+ };
480
+ /**
481
+ * @namespace
482
+ * @category saltcorn-data
483
+ * @subcategory types / int
484
+ */
485
+ distance_operators: {
486
+ near: any;
487
+ };
488
+ fieldviews: {
489
+ /**
490
+ * @namespace
491
+ * @category saltcorn-data
492
+ * @subcategory types / int
493
+ */
494
+ show: {
495
+ isEdit: boolean;
496
+ description: string;
497
+ run: (s: any) => any;
498
+ };
499
+ /**
500
+ * @namespace
501
+ * @category saltcorn-data
502
+ * @subcategory types / int
503
+ */
504
+ edit: {
505
+ isEdit: boolean;
506
+ blockDisplay: boolean;
507
+ description: string;
508
+ configFields: {
509
+ name: string;
510
+ label: string;
511
+ type: string;
512
+ }[];
513
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
514
+ };
515
+ number_slider: {
516
+ configFields: (field: any) => {
517
+ name: string;
518
+ type: any;
519
+ required: boolean;
520
+ }[];
521
+ isEdit: boolean;
522
+ description: string;
523
+ blockDisplay: boolean;
524
+ run: (nm: any, v: any, attrs: any | undefined, cls: any, required: any, field: any) => any;
525
+ };
526
+ range_interval: {
527
+ configFields: (field: any) => {
528
+ name: string;
529
+ type: any;
530
+ required: boolean;
531
+ }[];
532
+ isEdit: boolean;
533
+ isFilter: boolean;
534
+ blockDisplay: boolean;
535
+ description: string;
536
+ run: (nm: any, v: any, attrs: any | undefined, cls: any, required: any, field: any, state?: any) => any;
537
+ };
538
+ progress_bar: {
539
+ configFields: (field: any) => ({
540
+ name: string;
541
+ type: string;
542
+ label: string;
543
+ required?: undefined;
544
+ showIf?: undefined;
545
+ class?: undefined;
546
+ } | {
547
+ name: string;
548
+ label: string;
549
+ type: any;
550
+ required: boolean;
551
+ showIf: {
552
+ max_min_formula: boolean;
553
+ radial?: undefined;
554
+ };
555
+ class?: undefined;
556
+ } | {
557
+ name: string;
558
+ label: string;
559
+ type: string;
560
+ class: string;
561
+ showIf: {
562
+ max_min_formula: boolean;
563
+ radial?: undefined;
564
+ };
565
+ required?: undefined;
566
+ } | {
567
+ name: string;
568
+ type: string;
569
+ label: string;
570
+ showIf: {
571
+ radial: boolean;
572
+ max_min_formula?: undefined;
573
+ };
574
+ required?: undefined;
575
+ class?: undefined;
576
+ })[];
577
+ isEdit: boolean;
578
+ description: string;
579
+ run: (v: any, req: any, attrs?: any) => any;
580
+ };
581
+ heat_cell: {
582
+ configFields: (field: any) => ({
583
+ name: string;
584
+ type: string;
585
+ label: string;
586
+ required?: undefined;
587
+ showIf?: undefined;
588
+ class?: undefined;
589
+ attributes?: undefined;
590
+ default?: undefined;
591
+ } | {
592
+ name: string;
593
+ label: string;
594
+ type: any;
595
+ required: boolean;
596
+ showIf: {
597
+ max_min_formula: boolean;
598
+ };
599
+ class?: undefined;
600
+ attributes?: undefined;
601
+ default?: undefined;
602
+ } | {
603
+ name: string;
604
+ label: string;
605
+ type: string;
606
+ class: string;
607
+ showIf: {
608
+ max_min_formula: boolean;
609
+ };
610
+ required?: undefined;
611
+ attributes?: undefined;
612
+ default?: undefined;
613
+ } | {
614
+ name: string;
615
+ type: string;
616
+ label: string;
617
+ required: boolean;
618
+ attributes: {
619
+ options: string[];
620
+ };
621
+ showIf?: undefined;
622
+ class?: undefined;
623
+ default?: undefined;
624
+ } | {
625
+ name: string;
626
+ type: string;
627
+ label: string;
628
+ default: number;
629
+ required?: undefined;
630
+ showIf?: undefined;
631
+ class?: undefined;
632
+ attributes?: undefined;
633
+ })[];
634
+ isEdit: boolean;
635
+ description: string;
636
+ run: (v: any, req: any, attrs?: any) => any;
637
+ };
638
+ above_input: {
639
+ isEdit: boolean;
640
+ isFilter: boolean;
641
+ blockDisplay: boolean;
642
+ configFields: {
643
+ name: string;
644
+ label: string;
645
+ type: string;
646
+ }[];
647
+ run: (nm: any, v: any, attrs: any | undefined, cls: any, required: any, field: any, state?: any) => any;
648
+ };
649
+ below_input: {
650
+ isEdit: boolean;
651
+ isFilter: boolean;
652
+ blockDisplay: boolean;
653
+ configFields: {
654
+ name: string;
655
+ label: string;
656
+ type: string;
657
+ }[];
658
+ run: (nm: any, v: any, attrs: any | undefined, cls: any, required: any, field: any, state?: any) => any;
659
+ };
660
+ show_with_html: {
661
+ configFields: {
662
+ input_type: string;
663
+ name: string;
664
+ label: string;
665
+ sublabel: string;
666
+ default: string;
667
+ attributes: {
668
+ mode: string;
669
+ };
670
+ }[];
671
+ isEdit: boolean;
672
+ description: string;
673
+ run: (v: any, req: any, attrs?: any) => any;
674
+ };
675
+ show_star_rating: {
676
+ description: string;
677
+ configFields: (field: any) => {
678
+ name: string;
679
+ type: string;
680
+ required: boolean;
681
+ default: number;
682
+ }[];
683
+ isEdit: boolean;
684
+ blockDisplay: boolean;
685
+ run: (v: any, req: any, attrs?: any) => any;
686
+ };
687
+ edit_star_rating: {
688
+ description: string;
689
+ configFields: (field: any) => ({
690
+ name: string;
691
+ type: string;
692
+ required: boolean;
693
+ default: number;
694
+ label?: undefined;
695
+ sublabel?: undefined;
696
+ } | {
697
+ name: string;
698
+ label: string;
699
+ sublabel: string;
700
+ type: string;
701
+ required?: undefined;
702
+ default?: undefined;
703
+ })[];
704
+ isEdit: boolean;
705
+ blockDisplay: boolean;
706
+ run: (nm: any, v: any, attrs: any | undefined, cls: any, required: any, field: any, state?: any) => any;
707
+ };
708
+ to_locale_string: {
709
+ description: string;
710
+ configFields: (field: any) => ({
711
+ type: string;
712
+ name: string;
713
+ label: string;
714
+ sublabel: string;
715
+ required?: undefined;
716
+ attributes?: undefined;
717
+ showIf?: undefined;
718
+ } | {
719
+ type: string;
720
+ name: string;
721
+ label: string;
722
+ required: boolean;
723
+ attributes: {
724
+ options: string[];
725
+ min?: undefined;
726
+ };
727
+ sublabel?: undefined;
728
+ showIf?: undefined;
729
+ } | {
730
+ type: string;
731
+ name: string;
732
+ label: string;
733
+ attributes: {
734
+ min: number;
735
+ options?: undefined;
736
+ };
737
+ sublabel?: undefined;
738
+ required?: undefined;
739
+ showIf?: undefined;
740
+ } | {
741
+ type: string;
742
+ name: string;
743
+ label: string;
744
+ sublabel: string;
745
+ required: boolean;
746
+ showIf: {
747
+ style: string;
748
+ };
749
+ attributes?: undefined;
750
+ } | {
751
+ type: string;
752
+ name: string;
753
+ label: string;
754
+ required: boolean;
755
+ showIf: {
756
+ style: string;
757
+ };
758
+ attributes: {
759
+ options: string[];
760
+ min?: undefined;
761
+ };
762
+ sublabel?: undefined;
763
+ })[];
764
+ isEdit: boolean;
765
+ run: (v: any, req: any, attrs?: any) => string;
766
+ };
767
+ role_select: {
768
+ isEdit: boolean;
769
+ blockDisplay: boolean;
770
+ description: string;
771
+ fill_options: (field: any) => Promise<void>;
772
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
773
+ };
774
+ select_by_code: any;
775
+ };
776
+ /** @type {object[]} */
975
777
  attributes: {
976
- mode: string;
778
+ name: string;
779
+ label: string;
780
+ type: string;
781
+ required: boolean;
782
+ }[];
783
+ /**
784
+ * @param {object} param
785
+ * @returns {boolean}
786
+ */
787
+ validate_attributes: ({ min, max }: any) => boolean;
788
+ /**
789
+ * @param {object} v
790
+ * @returns {object}
791
+ */
792
+ read: (v: any) => number | undefined;
793
+ /**
794
+ * @param {object} param
795
+ * @returns {boolean}
796
+ */
797
+ validate: ({ min, max }: any) => (x: any) => true | {
798
+ error: string;
977
799
  };
978
- }[];
979
- export { configFields_26 as configFields };
980
- let isEdit_45: boolean;
981
- export { isEdit_45 as isEdit };
982
- let description_49: string;
983
- export { description_49 as description };
984
- export function run_45(v: any, req: any, attrs?: {}): string;
985
- export { run_45 as run };
986
- }
987
- declare namespace to_locale_string {
988
- let description_50: string;
989
- export { description_50 as description };
990
- export function configFields_27(field: any): ({
991
- type: string;
992
- name: string;
993
- label: string;
994
- sublabel: string;
995
- required?: undefined;
996
- attributes?: undefined;
997
- showIf?: undefined;
998
- } | {
999
- type: string;
800
+ };
801
+ bool: {
802
+ /** @type {string} */
1000
803
  name: string;
1001
- label: string;
1002
- required: boolean;
1003
- attributes: {
1004
- options: string[];
1005
- min?: undefined;
804
+ description: string;
805
+ /** @type {string} */
806
+ sql_name: string;
807
+ js_type: string;
808
+ /**
809
+ * @returns {function}
810
+ */
811
+ contract: () => any;
812
+ /**
813
+ * @namespace
814
+ * @category saltcorn-data
815
+ * @subcategory types / bool
816
+ */
817
+ fieldviews: {
818
+ /**
819
+ * @namespace
820
+ * @category saltcorn-data
821
+ * @subcategory types / bool
822
+ */
823
+ show: {
824
+ isEdit: boolean;
825
+ description: string;
826
+ run: (v: any, req: any) => any;
827
+ };
828
+ /**
829
+ * @namespace
830
+ * @category saltcorn-data
831
+ * @subcategory types / bool
832
+ */
833
+ checkboxes: {
834
+ isEdit: boolean;
835
+ description: string;
836
+ run: (v: any) => any;
837
+ };
838
+ /**
839
+ * @namespace
840
+ * @category saltcorn-data
841
+ * @subcategory types / bool
842
+ */
843
+ TrueFalse: {
844
+ isEdit: boolean;
845
+ description: string;
846
+ run: (v: any) => "" | "True" | "False";
847
+ };
848
+ /**
849
+ * @namespace
850
+ * @category saltcorn-data
851
+ * @subcategory types / bool
852
+ */
853
+ edit: {
854
+ isEdit: boolean;
855
+ description: string;
856
+ configFields: ({
857
+ name: string;
858
+ label: string;
859
+ type: string;
860
+ attributes: {
861
+ options: string[];
862
+ };
863
+ } | {
864
+ name: string;
865
+ label: string;
866
+ type: string;
867
+ attributes?: undefined;
868
+ })[];
869
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
870
+ };
871
+ switch: {
872
+ isEdit: boolean;
873
+ description: string;
874
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
875
+ };
876
+ show_with_html: {
877
+ configFields: {
878
+ input_type: string;
879
+ name: string;
880
+ label: string;
881
+ sublabel: string;
882
+ default: string;
883
+ attributes: {
884
+ mode: string;
885
+ };
886
+ }[];
887
+ isEdit: boolean;
888
+ description: string;
889
+ run: (v: any, req: any, attrs?: any) => any;
890
+ };
891
+ /**
892
+ * @namespace
893
+ * @category saltcorn-data
894
+ * @subcategory types / bool
895
+ */
896
+ tristate: {
897
+ isEdit: boolean;
898
+ description: string;
899
+ configFields: {
900
+ name: string;
901
+ label: string;
902
+ type: string;
903
+ }[];
904
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
905
+ };
906
+ thumbs_up_down: {
907
+ isEdit: boolean;
908
+ description: string;
909
+ configFields: {
910
+ name: string;
911
+ label: string;
912
+ type: string;
913
+ required: boolean;
914
+ attributes: {
915
+ options: string[];
916
+ };
917
+ }[];
918
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
919
+ };
1006
920
  };
1007
- sublabel?: undefined;
1008
- showIf?: undefined;
1009
- } | {
1010
- type: string;
921
+ /** @type {object[]} */
922
+ attributes: never[];
923
+ /**
924
+ * @param {*} rec
925
+ * @param {string} name
926
+ * @returns {boolean|null}
927
+ */
928
+ readFromFormRecord: (rec: any, name: any) => boolean | null;
929
+ /**
930
+ * @param {object} v
931
+ * @returns {boolean|null}
932
+ */
933
+ read: (v: any) => boolean | null;
934
+ /**
935
+ * @param {object} v
936
+ * @returns {object}
937
+ */
938
+ readFromDB: (v: any) => boolean | null;
939
+ /**
940
+ * @param {object} v
941
+ * @returns {object}
942
+ */
943
+ listAs: (v: any) => string;
944
+ /**
945
+ * @returns {boolean}
946
+ */
947
+ validate: () => (x: any) => boolean;
948
+ };
949
+ date: {
950
+ /** @type {string} */
1011
951
  name: string;
1012
- label: string;
952
+ description: string;
953
+ /** @type {string} */
954
+ sql_name: (opts: any) => "date" | "timestamptz";
955
+ js_type: string;
956
+ /**
957
+ * @returns {function}
958
+ */
959
+ contract: () => any;
960
+ /** @type {object[]} */
1013
961
  attributes: {
1014
- min: number;
1015
- options?: undefined;
962
+ name: string;
963
+ label: string;
964
+ type: string;
965
+ sublabel: string;
966
+ }[];
967
+ /**
968
+ * @namespace
969
+ * @category saltcorn-data
970
+ * @subcategory types / date
971
+ */
972
+ fieldviews: {
973
+ /**
974
+ * @namespace
975
+ * @category saltcorn-data
976
+ * @subcategory types / date
977
+ */
978
+ show: {
979
+ isEdit: boolean;
980
+ description: string;
981
+ run: (d: any, req: any, attrs?: any) => any;
982
+ };
983
+ /**
984
+ * @namespace
985
+ * @category saltcorn-data
986
+ * @subcategory types / date
987
+ */
988
+ showDay: {
989
+ isEdit: boolean;
990
+ description: string;
991
+ run: (d: any, req: any) => any;
992
+ };
993
+ /**
994
+ * @namespace
995
+ * @category saltcorn-data
996
+ * @subcategory types / date
997
+ */
998
+ format: {
999
+ isEdit: boolean;
1000
+ description: string;
1001
+ configFields: {
1002
+ name: string;
1003
+ label: string;
1004
+ type: string;
1005
+ help: {
1006
+ topic: string;
1007
+ };
1008
+ }[];
1009
+ run: (d: any, req: any, options: any) => any;
1010
+ };
1011
+ /**
1012
+ * @namespace
1013
+ * @category saltcorn-data
1014
+ * @subcategory types / date
1015
+ */
1016
+ relative: {
1017
+ isEdit: boolean;
1018
+ description: string;
1019
+ run: (d: any, req: any) => any;
1020
+ };
1021
+ /**
1022
+ * @namespace
1023
+ * @category saltcorn-data
1024
+ * @subcategory types / date
1025
+ */
1026
+ yearsAgo: {
1027
+ isEdit: boolean;
1028
+ description: string;
1029
+ run: (d: any, req: any) => any;
1030
+ };
1031
+ show_with_html: {
1032
+ configFields: {
1033
+ input_type: string;
1034
+ name: string;
1035
+ label: string;
1036
+ sublabel: string;
1037
+ default: string;
1038
+ attributes: {
1039
+ mode: string;
1040
+ };
1041
+ }[];
1042
+ isEdit: boolean;
1043
+ description: string;
1044
+ run: (v: any, req: any, attrs?: any) => any;
1045
+ };
1046
+ /**
1047
+ * @namespace
1048
+ * @category saltcorn-data
1049
+ * @subcategory types / date
1050
+ */
1051
+ edit: {
1052
+ isEdit: boolean;
1053
+ blockDisplay: boolean;
1054
+ description: string;
1055
+ configFields: {
1056
+ label: string;
1057
+ name: string;
1058
+ type: string;
1059
+ }[];
1060
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
1061
+ };
1062
+ /**
1063
+ * @namespace
1064
+ * @category saltcorn-data
1065
+ * @subcategory types / date
1066
+ */
1067
+ editDay: {
1068
+ isEdit: boolean;
1069
+ blockDisplay: boolean;
1070
+ description: string;
1071
+ configFields: {
1072
+ label: string;
1073
+ name: string;
1074
+ type: string;
1075
+ }[];
1076
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
1077
+ };
1016
1078
  };
1017
- sublabel?: undefined;
1018
- required?: undefined;
1019
- showIf?: undefined;
1020
- } | {
1021
- type: string;
1022
- name: string;
1023
- label: string;
1024
- sublabel: string;
1025
- required: boolean;
1026
- showIf: {
1027
- style: string;
1079
+ /**
1080
+ * @namespace
1081
+ * @category saltcorn-data
1082
+ * @subcategory types / date
1083
+ */
1084
+ presets: {
1085
+ Now: ({ field }: any) => any;
1028
1086
  };
1029
- attributes?: undefined;
1030
- } | {
1031
- type: string;
1087
+ /**
1088
+ * @param {object} v
1089
+ * @param {object} attrs
1090
+ * @returns {object}
1091
+ */
1092
+ read: (v0: any, attrs: any) => any;
1093
+ /**
1094
+ * @param {object} param
1095
+ * @returns {boolean}
1096
+ */
1097
+ validate: () => (v: any) => boolean;
1098
+ /**
1099
+ * check if two date values are equal
1100
+ * @param a
1101
+ * @param b
1102
+ * @returns true or false
1103
+ */
1104
+ equals: (a: any, b: any) => boolean;
1105
+ };
1106
+ float: {
1107
+ /** @type {string} */
1032
1108
  name: string;
1033
- label: string;
1034
- required: boolean;
1035
- showIf: {
1036
- style: string;
1109
+ description: string;
1110
+ /** @type {string} */
1111
+ sql_name: string;
1112
+ js_type: string;
1113
+ /**
1114
+ * @param {object} opts
1115
+ * @param {number} opts.min
1116
+ * @param {number} opts.max
1117
+ * @returns {function}
1118
+ */
1119
+ contract: ({ min, max }: any) => any;
1120
+ distance_operators: {
1121
+ near: any;
1037
1122
  };
1123
+ /**
1124
+ * @namespace
1125
+ * @category saltcorn-data
1126
+ * @subcategory types / float
1127
+ */
1128
+ fieldviews: {
1129
+ /**
1130
+ * @namespace
1131
+ * @category saltcorn-data
1132
+ * @subcategory types / float
1133
+ */
1134
+ show: {
1135
+ isEdit: boolean;
1136
+ description: string;
1137
+ run: (s: any) => any;
1138
+ };
1139
+ /**
1140
+ * @namespace
1141
+ * @category saltcorn-data
1142
+ * @subcategory types / float
1143
+ */
1144
+ edit: {
1145
+ isEdit: boolean;
1146
+ blockDisplay: boolean;
1147
+ description: string;
1148
+ configFields: {
1149
+ name: string;
1150
+ label: string;
1151
+ type: string;
1152
+ }[];
1153
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
1154
+ };
1155
+ number_slider: {
1156
+ configFields: (field: any) => {
1157
+ name: string;
1158
+ type: any;
1159
+ required: boolean;
1160
+ }[];
1161
+ isEdit: boolean;
1162
+ description: string;
1163
+ blockDisplay: boolean;
1164
+ run: (nm: any, v: any, attrs: any | undefined, cls: any, required: any, field: any) => any;
1165
+ };
1166
+ range_interval: {
1167
+ configFields: (field: any) => {
1168
+ name: string;
1169
+ type: any;
1170
+ required: boolean;
1171
+ }[];
1172
+ isEdit: boolean;
1173
+ isFilter: boolean;
1174
+ blockDisplay: boolean;
1175
+ description: string;
1176
+ run: (nm: any, v: any, attrs: any | undefined, cls: any, required: any, field: any, state?: any) => any;
1177
+ };
1178
+ progress_bar: {
1179
+ configFields: (field: any) => ({
1180
+ name: string;
1181
+ type: string;
1182
+ label: string;
1183
+ required?: undefined;
1184
+ showIf?: undefined;
1185
+ class?: undefined;
1186
+ } | {
1187
+ name: string;
1188
+ label: string;
1189
+ type: any;
1190
+ required: boolean;
1191
+ showIf: {
1192
+ max_min_formula: boolean;
1193
+ radial?: undefined;
1194
+ };
1195
+ class?: undefined;
1196
+ } | {
1197
+ name: string;
1198
+ label: string;
1199
+ type: string;
1200
+ class: string;
1201
+ showIf: {
1202
+ max_min_formula: boolean;
1203
+ radial?: undefined;
1204
+ };
1205
+ required?: undefined;
1206
+ } | {
1207
+ name: string;
1208
+ type: string;
1209
+ label: string;
1210
+ showIf: {
1211
+ radial: boolean;
1212
+ max_min_formula?: undefined;
1213
+ };
1214
+ required?: undefined;
1215
+ class?: undefined;
1216
+ })[];
1217
+ isEdit: boolean;
1218
+ description: string;
1219
+ run: (v: any, req: any, attrs?: any) => any;
1220
+ };
1221
+ heat_cell: {
1222
+ configFields: (field: any) => ({
1223
+ name: string;
1224
+ type: string;
1225
+ label: string;
1226
+ required?: undefined;
1227
+ showIf?: undefined;
1228
+ class?: undefined;
1229
+ attributes?: undefined;
1230
+ default?: undefined;
1231
+ } | {
1232
+ name: string;
1233
+ label: string;
1234
+ type: any;
1235
+ required: boolean;
1236
+ showIf: {
1237
+ max_min_formula: boolean;
1238
+ };
1239
+ class?: undefined;
1240
+ attributes?: undefined;
1241
+ default?: undefined;
1242
+ } | {
1243
+ name: string;
1244
+ label: string;
1245
+ type: string;
1246
+ class: string;
1247
+ showIf: {
1248
+ max_min_formula: boolean;
1249
+ };
1250
+ required?: undefined;
1251
+ attributes?: undefined;
1252
+ default?: undefined;
1253
+ } | {
1254
+ name: string;
1255
+ type: string;
1256
+ label: string;
1257
+ required: boolean;
1258
+ attributes: {
1259
+ options: string[];
1260
+ };
1261
+ showIf?: undefined;
1262
+ class?: undefined;
1263
+ default?: undefined;
1264
+ } | {
1265
+ name: string;
1266
+ type: string;
1267
+ label: string;
1268
+ default: number;
1269
+ required?: undefined;
1270
+ showIf?: undefined;
1271
+ class?: undefined;
1272
+ attributes?: undefined;
1273
+ })[];
1274
+ isEdit: boolean;
1275
+ description: string;
1276
+ run: (v: any, req: any, attrs?: any) => any;
1277
+ };
1278
+ above_input: {
1279
+ isEdit: boolean;
1280
+ isFilter: boolean;
1281
+ blockDisplay: boolean;
1282
+ run: (nm: any, v: any, attrs: any | undefined, cls: any, required: any, field: any, state?: any) => any;
1283
+ };
1284
+ below_input: {
1285
+ isEdit: boolean;
1286
+ isFilter: boolean;
1287
+ blockDisplay: boolean;
1288
+ run: (nm: any, v: any, attrs: any | undefined, cls: any, required: any, field: any, state?: any) => any;
1289
+ };
1290
+ to_locale_string: {
1291
+ description: string;
1292
+ configFields: (field: any) => ({
1293
+ type: string;
1294
+ name: string;
1295
+ label: string;
1296
+ sublabel: string;
1297
+ required?: undefined;
1298
+ attributes?: undefined;
1299
+ showIf?: undefined;
1300
+ } | {
1301
+ type: string;
1302
+ name: string;
1303
+ label: string;
1304
+ required: boolean;
1305
+ attributes: {
1306
+ options: string[];
1307
+ min?: undefined;
1308
+ };
1309
+ sublabel?: undefined;
1310
+ showIf?: undefined;
1311
+ } | {
1312
+ type: string;
1313
+ name: string;
1314
+ label: string;
1315
+ attributes: {
1316
+ min: number;
1317
+ options?: undefined;
1318
+ };
1319
+ sublabel?: undefined;
1320
+ required?: undefined;
1321
+ showIf?: undefined;
1322
+ } | {
1323
+ type: string;
1324
+ name: string;
1325
+ label: string;
1326
+ sublabel: string;
1327
+ required: boolean;
1328
+ showIf: {
1329
+ style: string;
1330
+ };
1331
+ attributes?: undefined;
1332
+ } | {
1333
+ type: string;
1334
+ name: string;
1335
+ label: string;
1336
+ required: boolean;
1337
+ showIf: {
1338
+ style: string;
1339
+ };
1340
+ attributes: {
1341
+ options: string[];
1342
+ min?: undefined;
1343
+ };
1344
+ sublabel?: undefined;
1345
+ })[];
1346
+ isEdit: boolean;
1347
+ run: (v: any, req: any, attrs?: any) => string;
1348
+ };
1349
+ show_with_html: {
1350
+ configFields: {
1351
+ input_type: string;
1352
+ name: string;
1353
+ label: string;
1354
+ sublabel: string;
1355
+ default: string;
1356
+ attributes: {
1357
+ mode: string;
1358
+ };
1359
+ }[];
1360
+ isEdit: boolean;
1361
+ description: string;
1362
+ run: (v: any, req: any, attrs?: any) => any;
1363
+ };
1364
+ };
1365
+ /** @type {object[]} */
1038
1366
  attributes: {
1039
- options: string[];
1040
- min?: undefined;
1367
+ name: string;
1368
+ label: string;
1369
+ type: string;
1370
+ required: boolean;
1371
+ }[];
1372
+ /**
1373
+ * @param {object} v
1374
+ * @returns {number|string|undefined}
1375
+ */
1376
+ read: (v: any) => number | undefined;
1377
+ /**
1378
+ * @param {object} param
1379
+ * @returns {object|boolean}
1380
+ */
1381
+ validate: ({ min, max }: any) => (x: any) => true | {
1382
+ error: string;
1383
+ };
1384
+ /**
1385
+ * check if two float values are equal within a given precision
1386
+ * @param a
1387
+ * @param b
1388
+ * @param opts
1389
+ * @returns true or false
1390
+ */
1391
+ equals: (a: any, b: any, { decimal_places }: any) => boolean;
1392
+ };
1393
+ color: {
1394
+ /** @type {string} */
1395
+ name: string;
1396
+ description: string;
1397
+ /** @type {string} */
1398
+ sql_name: string;
1399
+ js_type: string;
1400
+ /**
1401
+ * @returns {function}
1402
+ */
1403
+ contract: () => any;
1404
+ /**
1405
+ * @namespace
1406
+ * @category saltcorn-data
1407
+ * @subcategory types / color
1408
+ */
1409
+ fieldviews: {
1410
+ /**
1411
+ * @namespace
1412
+ * @category saltcorn-data
1413
+ * @subcategory types / color
1414
+ */
1415
+ show: {
1416
+ isEdit: boolean;
1417
+ description: string;
1418
+ run: (s: any) => any;
1419
+ };
1420
+ show_with_html: {
1421
+ configFields: {
1422
+ input_type: string;
1423
+ name: string;
1424
+ label: string;
1425
+ sublabel: string;
1426
+ default: string;
1427
+ attributes: {
1428
+ mode: string;
1429
+ };
1430
+ }[];
1431
+ isEdit: boolean;
1432
+ description: string;
1433
+ run: (v: any, req: any, attrs?: any) => any;
1434
+ };
1435
+ /**
1436
+ * @namespace
1437
+ * @category saltcorn-data
1438
+ * @subcategory types / color
1439
+ */
1440
+ edit: {
1441
+ isEdit: boolean;
1442
+ blockDisplay: boolean;
1443
+ description: string;
1444
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
1445
+ };
1041
1446
  };
1042
- sublabel?: undefined;
1043
- })[];
1044
- export { configFields_27 as configFields };
1045
- let isEdit_46: boolean;
1046
- export { isEdit_46 as isEdit };
1047
- export function run_46(v: any, req: any, attrs?: {}): string;
1048
- export { run_46 as run };
1049
- }
1050
- import PlainDate = require("@saltcorn/plain-date");
1051
- export {};
1447
+ /** @type {object[]} */
1448
+ attributes: never[];
1449
+ /**
1450
+ * @param {object} v
1451
+ * @returns {object}
1452
+ */
1453
+ read: (v: any) => string | undefined;
1454
+ /**
1455
+ * @returns {boolean}
1456
+ */
1457
+ validate: () => (x: any) => boolean;
1458
+ };
1459
+ };
1460
+ export = _default;
1052
1461
  //# sourceMappingURL=types.d.ts.map