@ajf/material 13.0.0-next.0

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 (350) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +6 -0
  3. package/barcode/_barcode.scss +0 -0
  4. package/barcode/barcode-module.d.ts +23 -0
  5. package/barcode/barcode.d.ts +30 -0
  6. package/barcode/index.d.ts +4 -0
  7. package/barcode/index.metadata.json +1 -0
  8. package/barcode/package.json +9 -0
  9. package/barcode/public-api.d.ts +23 -0
  10. package/bundles/material-barcode.umd.js +433 -0
  11. package/bundles/material-barcode.umd.js.map +1 -0
  12. package/bundles/material-calendar.umd.js +435 -0
  13. package/bundles/material-calendar.umd.js.map +1 -0
  14. package/bundles/material-checkbox-group.umd.js +432 -0
  15. package/bundles/material-checkbox-group.umd.js.map +1 -0
  16. package/bundles/material-form-builder.umd.js +3558 -0
  17. package/bundles/material-form-builder.umd.js.map +1 -0
  18. package/bundles/material-forms.umd.js +968 -0
  19. package/bundles/material-forms.umd.js.map +1 -0
  20. package/bundles/material-image.umd.js +420 -0
  21. package/bundles/material-image.umd.js.map +1 -0
  22. package/bundles/material-monaco-editor.umd.js +755 -0
  23. package/bundles/material-monaco-editor.umd.js.map +1 -0
  24. package/bundles/material-node-icon.umd.js +415 -0
  25. package/bundles/material-node-icon.umd.js.map +1 -0
  26. package/bundles/material-page-slider.umd.js +424 -0
  27. package/bundles/material-page-slider.umd.js.map +1 -0
  28. package/bundles/material-report-builder.umd.js +5814 -0
  29. package/bundles/material-report-builder.umd.js.map +1 -0
  30. package/bundles/material-reports.umd.js +731 -0
  31. package/bundles/material-reports.umd.js.map +1 -0
  32. package/bundles/material-time.umd.js +424 -0
  33. package/bundles/material-time.umd.js.map +1 -0
  34. package/bundles/material.umd.js +40 -0
  35. package/bundles/material.umd.js.map +1 -0
  36. package/calendar/_calendar.scss +0 -0
  37. package/calendar/calendar-module.d.ts +23 -0
  38. package/calendar/calendar.d.ts +30 -0
  39. package/calendar/index.d.ts +4 -0
  40. package/calendar/index.metadata.json +1 -0
  41. package/calendar/package.json +9 -0
  42. package/calendar/public-api.d.ts +23 -0
  43. package/checkbox-group/_checkbox-group.scss +0 -0
  44. package/checkbox-group/checkbox-group-item.d.ts +25 -0
  45. package/checkbox-group/checkbox-group-module.d.ts +23 -0
  46. package/checkbox-group/index.d.ts +4 -0
  47. package/checkbox-group/index.metadata.json +1 -0
  48. package/checkbox-group/package.json +9 -0
  49. package/checkbox-group/public-api.d.ts +23 -0
  50. package/esm2015/barcode/barcode-module.js +50 -0
  51. package/esm2015/barcode/barcode.externs.js +6 -0
  52. package/esm2015/barcode/barcode.js +52 -0
  53. package/esm2015/barcode/index.js +5 -0
  54. package/esm2015/barcode/public-api.js +24 -0
  55. package/esm2015/calendar/calendar-module.js +48 -0
  56. package/esm2015/calendar/calendar.externs.js +6 -0
  57. package/esm2015/calendar/calendar.js +55 -0
  58. package/esm2015/calendar/index.js +5 -0
  59. package/esm2015/calendar/public-api.js +24 -0
  60. package/esm2015/checkbox-group/checkbox-group-item.js +51 -0
  61. package/esm2015/checkbox-group/checkbox-group-module.js +47 -0
  62. package/esm2015/checkbox-group/checkbox-group.externs.js +6 -0
  63. package/esm2015/checkbox-group/index.js +5 -0
  64. package/esm2015/checkbox-group/public-api.js +24 -0
  65. package/esm2015/form-builder/branch-line.js +73 -0
  66. package/esm2015/form-builder/choices-origin-data-source.js +38 -0
  67. package/esm2015/form-builder/choices-origin-editor-dialog.js +57 -0
  68. package/esm2015/form-builder/choices-origin-editor.js +78 -0
  69. package/esm2015/form-builder/condition-editor-dialog.js +59 -0
  70. package/esm2015/form-builder/condition-editor.js +143 -0
  71. package/esm2015/form-builder/form-builder-module.js +96 -0
  72. package/esm2015/form-builder/form-builder-service.js +764 -0
  73. package/esm2015/form-builder/form-builder-utils.js +63 -0
  74. package/esm2015/form-builder/form-builder.externs.js +6 -0
  75. package/esm2015/form-builder/form-builder.js +187 -0
  76. package/esm2015/form-builder/index.js +16 -0
  77. package/esm2015/form-builder/node-entry.js +245 -0
  78. package/esm2015/form-builder/node-properties.js +968 -0
  79. package/esm2015/form-builder/node-type-entry.js +50 -0
  80. package/esm2015/form-builder/operations.js +23 -0
  81. package/esm2015/form-builder/public-api.js +26 -0
  82. package/esm2015/form-builder/string-identifier-dialog.js +94 -0
  83. package/esm2015/form-builder/validation-condition-editor-dialog.js +59 -0
  84. package/esm2015/form-builder/warning-condition-editor-dialog.js +59 -0
  85. package/esm2015/forms/barcode-field.js +43 -0
  86. package/esm2015/forms/boolean-field.js +43 -0
  87. package/esm2015/forms/date-field.js +43 -0
  88. package/esm2015/forms/date-input-field.js +65 -0
  89. package/esm2015/forms/empty-field.js +43 -0
  90. package/esm2015/forms/field-service.js +115 -0
  91. package/esm2015/forms/field-warning-dialog.js +32 -0
  92. package/esm2015/forms/field.js +45 -0
  93. package/esm2015/forms/form.js +46 -0
  94. package/esm2015/forms/forms-module.js +107 -0
  95. package/esm2015/forms/forms.externs.js +6 -0
  96. package/esm2015/forms/index.js +9 -0
  97. package/esm2015/forms/input-field.js +43 -0
  98. package/esm2015/forms/multiple-choice-field.js +44 -0
  99. package/esm2015/forms/public-api.js +37 -0
  100. package/esm2015/forms/range-field.js +45 -0
  101. package/esm2015/forms/single-choice-field.js +44 -0
  102. package/esm2015/forms/table-field.js +43 -0
  103. package/esm2015/forms/text-field.js +43 -0
  104. package/esm2015/forms/time-field.js +43 -0
  105. package/esm2015/forms/video-url-field.js +47 -0
  106. package/esm2015/forms/warning-alert-service.js +42 -0
  107. package/esm2015/image/image-module.js +42 -0
  108. package/esm2015/image/image.externs.js +6 -0
  109. package/esm2015/image/image.js +44 -0
  110. package/esm2015/image/index.js +5 -0
  111. package/esm2015/image/public-api.js +24 -0
  112. package/esm2015/index.js +28 -0
  113. package/esm2015/material.externs.js +0 -0
  114. package/esm2015/monaco-editor/auto-complete-item-model.js +44 -0
  115. package/esm2015/monaco-editor/autocomplete-singleton-model.js +134 -0
  116. package/esm2015/monaco-editor/editor-language-model.js +60 -0
  117. package/esm2015/monaco-editor/editor-options-model.js +27 -0
  118. package/esm2015/monaco-editor/editor-scrollbar-options.js +23 -0
  119. package/esm2015/monaco-editor/editor-theme.js +30 -0
  120. package/esm2015/monaco-editor/index.js +5 -0
  121. package/esm2015/monaco-editor/monaco-editor-module.js +36 -0
  122. package/esm2015/monaco-editor/monaco-editor.externs.js +6 -0
  123. package/esm2015/monaco-editor/monaco-editor.js +389 -0
  124. package/esm2015/monaco-editor/public-api.js +24 -0
  125. package/esm2015/node-icon/index.js +5 -0
  126. package/esm2015/node-icon/node-icon-module.js +42 -0
  127. package/esm2015/node-icon/node-icon.externs.js +6 -0
  128. package/esm2015/node-icon/node-icon.js +35 -0
  129. package/esm2015/node-icon/public-api.js +24 -0
  130. package/esm2015/page-slider/index.js +5 -0
  131. package/esm2015/page-slider/page-slider-module.js +49 -0
  132. package/esm2015/page-slider/page-slider.externs.js +6 -0
  133. package/esm2015/page-slider/page-slider.js +44 -0
  134. package/esm2015/page-slider/public-api.js +24 -0
  135. package/esm2015/report-builder/column.js +97 -0
  136. package/esm2015/report-builder/condition-editor.js +159 -0
  137. package/esm2015/report-builder/content.js +255 -0
  138. package/esm2015/report-builder/custom-widget-dialog.js +51 -0
  139. package/esm2015/report-builder/custom-widget-toolbar-button.js +70 -0
  140. package/esm2015/report-builder/custom-widgets-toolbar.js +124 -0
  141. package/esm2015/report-builder/forms-analyzer-dialog.js +315 -0
  142. package/esm2015/report-builder/forms-analyzer.js +264 -0
  143. package/esm2015/report-builder/image-filter.js +32 -0
  144. package/esm2015/report-builder/image-group.js +106 -0
  145. package/esm2015/report-builder/index.js +25 -0
  146. package/esm2015/report-builder/models.js +23 -0
  147. package/esm2015/report-builder/operations.js +23 -0
  148. package/esm2015/report-builder/properties.js +765 -0
  149. package/esm2015/report-builder/public-api.js +26 -0
  150. package/esm2015/report-builder/quill-editor.js +299 -0
  151. package/esm2015/report-builder/renderer-widget.js +238 -0
  152. package/esm2015/report-builder/report-builder-drag-data.js +23 -0
  153. package/esm2015/report-builder/report-builder-module.js +114 -0
  154. package/esm2015/report-builder/report-builder-service.js +1685 -0
  155. package/esm2015/report-builder/report-builder.externs.js +6 -0
  156. package/esm2015/report-builder/report-builder.js +69 -0
  157. package/esm2015/report-builder/theme-color-dialog.js +90 -0
  158. package/esm2015/report-builder/theme-color.js +215 -0
  159. package/esm2015/report-builder/tokens.js +24 -0
  160. package/esm2015/report-builder/toolbar-dialog.js +56 -0
  161. package/esm2015/report-builder/toolbar.js +90 -0
  162. package/esm2015/report-builder/utils.js +48 -0
  163. package/esm2015/report-builder/widget-toolbar-button.js +47 -0
  164. package/esm2015/report-builder/widgets-row-buttons.js +133 -0
  165. package/esm2015/report-builder/widgets-toolbar.js +79 -0
  166. package/esm2015/reports/chart-widget.js +41 -0
  167. package/esm2015/reports/formula-widget.js +41 -0
  168. package/esm2015/reports/image-container-widget.js +43 -0
  169. package/esm2015/reports/image-widget.js +41 -0
  170. package/esm2015/reports/index.js +5 -0
  171. package/esm2015/reports/layout-widget.js +22 -0
  172. package/esm2015/reports/map-widget.js +41 -0
  173. package/esm2015/reports/page-break-widget.js +41 -0
  174. package/esm2015/reports/public-api.js +33 -0
  175. package/esm2015/reports/report.js +41 -0
  176. package/esm2015/reports/reports-module.js +79 -0
  177. package/esm2015/reports/reports.externs.js +6 -0
  178. package/esm2015/reports/table-widget.js +41 -0
  179. package/esm2015/reports/text-widget.js +41 -0
  180. package/esm2015/reports/widget.js +120 -0
  181. package/esm2015/time/index.js +5 -0
  182. package/esm2015/time/public-api.js +24 -0
  183. package/esm2015/time/time-module.js +44 -0
  184. package/esm2015/time/time.externs.js +6 -0
  185. package/esm2015/time/time.js +46 -0
  186. package/fesm2015/barcode.js +129 -0
  187. package/fesm2015/barcode.js.map +1 -0
  188. package/fesm2015/calendar.js +128 -0
  189. package/fesm2015/calendar.js.map +1 -0
  190. package/fesm2015/checkbox-group.js +124 -0
  191. package/fesm2015/checkbox-group.js.map +1 -0
  192. package/fesm2015/form-builder.js +2987 -0
  193. package/fesm2015/form-builder.js.map +1 -0
  194. package/fesm2015/forms.js +923 -0
  195. package/fesm2015/forms.js.map +1 -0
  196. package/fesm2015/image.js +113 -0
  197. package/fesm2015/image.js.map +1 -0
  198. package/fesm2015/material.js +30 -0
  199. package/fesm2015/material.js.map +1 -0
  200. package/fesm2015/monaco-editor.js +741 -0
  201. package/fesm2015/monaco-editor.js.map +1 -0
  202. package/fesm2015/node-icon.js +104 -0
  203. package/fesm2015/node-icon.js.map +1 -0
  204. package/fesm2015/page-slider.js +119 -0
  205. package/fesm2015/page-slider.js.map +1 -0
  206. package/fesm2015/report-builder.js +5332 -0
  207. package/fesm2015/report-builder.js.map +1 -0
  208. package/fesm2015/reports.js +560 -0
  209. package/fesm2015/reports.js.map +1 -0
  210. package/fesm2015/time.js +116 -0
  211. package/fesm2015/time.js.map +1 -0
  212. package/form-builder/_form-builder.scss +0 -0
  213. package/form-builder/branch-line.d.ts +36 -0
  214. package/form-builder/choices-origin-data-source.d.ts +35 -0
  215. package/form-builder/choices-origin-editor-dialog.d.ts +34 -0
  216. package/form-builder/choices-origin-editor.d.ts +43 -0
  217. package/form-builder/condition-editor-dialog.d.ts +35 -0
  218. package/form-builder/condition-editor.d.ts +37 -0
  219. package/form-builder/form-builder-module.d.ts +23 -0
  220. package/form-builder/form-builder-service.d.ts +191 -0
  221. package/form-builder/form-builder-utils.d.ts +41 -0
  222. package/form-builder/form-builder.d.ts +78 -0
  223. package/form-builder/index.d.ts +15 -0
  224. package/form-builder/index.metadata.json +1 -0
  225. package/form-builder/node-entry.d.ts +93 -0
  226. package/form-builder/node-properties.d.ts +184 -0
  227. package/form-builder/node-type-entry.d.ts +30 -0
  228. package/form-builder/operations.d.ts +31 -0
  229. package/form-builder/package.json +9 -0
  230. package/form-builder/public-api.d.ts +25 -0
  231. package/form-builder/string-identifier-dialog.d.ts +45 -0
  232. package/form-builder/validation-condition-editor-dialog.d.ts +36 -0
  233. package/form-builder/warning-condition-editor-dialog.d.ts +36 -0
  234. package/forms/_forms.scss +0 -0
  235. package/forms/barcode-field.d.ts +27 -0
  236. package/forms/boolean-field.d.ts +27 -0
  237. package/forms/date-field.d.ts +27 -0
  238. package/forms/date-input-field.d.ts +34 -0
  239. package/forms/empty-field.d.ts +27 -0
  240. package/forms/field-service.d.ts +25 -0
  241. package/forms/field-warning-dialog.d.ts +24 -0
  242. package/forms/field.d.ts +30 -0
  243. package/forms/form.d.ts +36 -0
  244. package/forms/forms-module.d.ts +25 -0
  245. package/forms/index.d.ts +8 -0
  246. package/forms/index.metadata.json +1 -0
  247. package/forms/input-field.d.ts +27 -0
  248. package/forms/multiple-choice-field.d.ts +27 -0
  249. package/forms/package.json +9 -0
  250. package/forms/public-api.d.ts +36 -0
  251. package/forms/range-field.d.ts +28 -0
  252. package/forms/single-choice-field.d.ts +27 -0
  253. package/forms/table-field.d.ts +27 -0
  254. package/forms/text-field.d.ts +27 -0
  255. package/forms/time-field.d.ts +27 -0
  256. package/forms/video-url-field.d.ts +29 -0
  257. package/forms/warning-alert-service.d.ts +29 -0
  258. package/image/_image.scss +0 -0
  259. package/image/image-module.d.ts +23 -0
  260. package/image/image.d.ts +27 -0
  261. package/image/index.d.ts +4 -0
  262. package/image/index.metadata.json +1 -0
  263. package/image/package.json +9 -0
  264. package/image/public-api.d.ts +23 -0
  265. package/index.d.ts +22 -0
  266. package/monaco-editor/_monaco-editor.scss +0 -0
  267. package/monaco-editor/auto-complete-item-model.d.ts +35 -0
  268. package/monaco-editor/autocomplete-singleton-model.d.ts +55 -0
  269. package/monaco-editor/editor-language-model.d.ts +59 -0
  270. package/monaco-editor/editor-options-model.d.ts +334 -0
  271. package/monaco-editor/editor-scrollbar-options.d.ts +83 -0
  272. package/monaco-editor/editor-theme.d.ts +29 -0
  273. package/monaco-editor/index.d.ts +4 -0
  274. package/monaco-editor/index.metadata.json +1 -0
  275. package/monaco-editor/monaco-editor-module.d.ts +23 -0
  276. package/monaco-editor/monaco-editor.d.ts +152 -0
  277. package/monaco-editor/package.json +9 -0
  278. package/monaco-editor/public-api.d.ts +23 -0
  279. package/node-icon/_node-icon.scss +0 -0
  280. package/node-icon/index.d.ts +4 -0
  281. package/node-icon/index.metadata.json +1 -0
  282. package/node-icon/node-icon-module.d.ts +23 -0
  283. package/node-icon/node-icon.d.ts +24 -0
  284. package/node-icon/package.json +9 -0
  285. package/node-icon/public-api.d.ts +23 -0
  286. package/package.json +38 -0
  287. package/page-slider/_page-slider.scss +0 -0
  288. package/page-slider/index.d.ts +4 -0
  289. package/page-slider/index.metadata.json +1 -0
  290. package/page-slider/package.json +9 -0
  291. package/page-slider/page-slider-module.d.ts +23 -0
  292. package/page-slider/page-slider.d.ts +30 -0
  293. package/page-slider/public-api.d.ts +23 -0
  294. package/report-builder/_report-builder.scss +0 -0
  295. package/report-builder/column.d.ts +63 -0
  296. package/report-builder/condition-editor.d.ts +67 -0
  297. package/report-builder/content.d.ts +142 -0
  298. package/report-builder/custom-widget-dialog.d.ts +31 -0
  299. package/report-builder/custom-widget-toolbar-button.d.ts +45 -0
  300. package/report-builder/custom-widgets-toolbar.d.ts +71 -0
  301. package/report-builder/forms-analyzer-dialog.d.ts +91 -0
  302. package/report-builder/forms-analyzer.d.ts +102 -0
  303. package/report-builder/image-filter.d.ts +25 -0
  304. package/report-builder/image-group.d.ts +69 -0
  305. package/report-builder/index.d.ts +24 -0
  306. package/report-builder/index.metadata.json +1 -0
  307. package/report-builder/models.d.ts +43 -0
  308. package/report-builder/operations.d.ts +45 -0
  309. package/report-builder/package.json +9 -0
  310. package/report-builder/properties.d.ts +365 -0
  311. package/report-builder/public-api.d.ts +26 -0
  312. package/report-builder/quill-editor.d.ts +113 -0
  313. package/report-builder/renderer-widget.d.ts +80 -0
  314. package/report-builder/report-builder-drag-data.d.ts +32 -0
  315. package/report-builder/report-builder-module.d.ts +23 -0
  316. package/report-builder/report-builder-service.d.ts +722 -0
  317. package/report-builder/report-builder.d.ts +36 -0
  318. package/report-builder/theme-color-dialog.d.ts +42 -0
  319. package/report-builder/theme-color.d.ts +108 -0
  320. package/report-builder/tokens.d.ts +24 -0
  321. package/report-builder/toolbar-dialog.d.ts +30 -0
  322. package/report-builder/toolbar.d.ts +48 -0
  323. package/report-builder/utils.d.ts +29 -0
  324. package/report-builder/widget-toolbar-button.d.ts +28 -0
  325. package/report-builder/widgets-row-buttons.d.ts +57 -0
  326. package/report-builder/widgets-toolbar.d.ts +44 -0
  327. package/reports/_reports.scss +0 -0
  328. package/reports/chart-widget.d.ts +26 -0
  329. package/reports/formula-widget.d.ts +26 -0
  330. package/reports/image-container-widget.d.ts +28 -0
  331. package/reports/image-widget.d.ts +26 -0
  332. package/reports/index.d.ts +4 -0
  333. package/reports/index.metadata.json +1 -0
  334. package/reports/layout-widget.d.ts +21 -0
  335. package/reports/map-widget.d.ts +26 -0
  336. package/reports/package.json +9 -0
  337. package/reports/page-break-widget.d.ts +26 -0
  338. package/reports/public-api.d.ts +32 -0
  339. package/reports/report.d.ts +26 -0
  340. package/reports/reports-module.d.ts +23 -0
  341. package/reports/table-widget.d.ts +26 -0
  342. package/reports/text-widget.d.ts +26 -0
  343. package/reports/widget.d.ts +40 -0
  344. package/time/_time.scss +0 -0
  345. package/time/index.d.ts +4 -0
  346. package/time/index.metadata.json +1 -0
  347. package/time/package.json +9 -0
  348. package/time/public-api.d.ts +23 -0
  349. package/time/time-module.d.ts +23 -0
  350. package/time/time.d.ts +28 -0
@@ -0,0 +1,116 @@
1
+ import { forwardRef, Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';
2
+ import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
3
+ import { MatFormFieldModule } from '@angular/material/form-field';
4
+ import { MatInputModule } from '@angular/material/input';
5
+ import { AjfTime as AjfTime$1 } from '@ajf/core/time';
6
+
7
+ /**
8
+ * @license
9
+ * Copyright (C) Gnucoop soc. coop.
10
+ *
11
+ * This file is part of the Advanced JSON forms (ajf).
12
+ *
13
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
14
+ * modify it under the terms of the GNU Affero General Public License as
15
+ * published by the Free Software Foundation, either version 3 of the License,
16
+ * or (at your option) any later version.
17
+ *
18
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
19
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
21
+ * General Public License for more details.
22
+ *
23
+ * You should have received a copy of the GNU Affero General Public License
24
+ * along with Advanced JSON forms (ajf).
25
+ * If not, see http://www.gnu.org/licenses/.
26
+ *
27
+ */
28
+ const AJF_TIME_CONTROL_VALUE_ACCESSOR = {
29
+ provide: NG_VALUE_ACCESSOR,
30
+ useExisting: forwardRef(() => AjfTime),
31
+ multi: true
32
+ };
33
+ class AjfTime extends AjfTime$1 {
34
+ constructor() {
35
+ super();
36
+ }
37
+ }
38
+ AjfTime.decorators = [
39
+ { type: Component, args: [{
40
+ selector: 'ajf-time',
41
+ template: "<div>\n <mat-form-field>\n <input\n matInput\n min=\"0\"\n max=\"23\"\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"hours\"\n type=\"number\">\n </mat-form-field>\n :\n <mat-form-field>\n <input\n matInput\n min=\"0\"\n max=\"59\"\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"minutes\"\n type=\"number\">\n </mat-form-field>\n</div>\n",
42
+ providers: [AJF_TIME_CONTROL_VALUE_ACCESSOR],
43
+ encapsulation: ViewEncapsulation.None,
44
+ changeDetection: ChangeDetectionStrategy.OnPush,
45
+ styles: ["ajf-time .mat-form-field{width:1.5em;text-align:center}\n"]
46
+ },] }
47
+ ];
48
+ AjfTime.ctorParameters = () => [];
49
+
50
+ /**
51
+ * @license
52
+ * Copyright (C) Gnucoop soc. coop.
53
+ *
54
+ * This file is part of the Advanced JSON forms (ajf).
55
+ *
56
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
57
+ * modify it under the terms of the GNU Affero General Public License as
58
+ * published by the Free Software Foundation, either version 3 of the License,
59
+ * or (at your option) any later version.
60
+ *
61
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
62
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
63
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
64
+ * General Public License for more details.
65
+ *
66
+ * You should have received a copy of the GNU Affero General Public License
67
+ * along with Advanced JSON forms (ajf).
68
+ * If not, see http://www.gnu.org/licenses/.
69
+ *
70
+ */
71
+ class AjfTimeModule {
72
+ }
73
+ AjfTimeModule.decorators = [
74
+ { type: NgModule, args: [{
75
+ imports: [
76
+ FormsModule,
77
+ MatFormFieldModule,
78
+ MatInputModule,
79
+ ],
80
+ declarations: [
81
+ AjfTime,
82
+ ],
83
+ exports: [
84
+ AjfTime,
85
+ ],
86
+ },] }
87
+ ];
88
+
89
+ /**
90
+ * @license
91
+ * Copyright (C) Gnucoop soc. coop.
92
+ *
93
+ * This file is part of the Advanced JSON forms (ajf).
94
+ *
95
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
96
+ * modify it under the terms of the GNU Affero General Public License as
97
+ * published by the Free Software Foundation, either version 3 of the License,
98
+ * or (at your option) any later version.
99
+ *
100
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
101
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
102
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
103
+ * General Public License for more details.
104
+ *
105
+ * You should have received a copy of the GNU Affero General Public License
106
+ * along with Advanced JSON forms (ajf).
107
+ * If not, see http://www.gnu.org/licenses/.
108
+ *
109
+ */
110
+
111
+ /**
112
+ * Generated bundle index. Do not edit.
113
+ */
114
+
115
+ export { AJF_TIME_CONTROL_VALUE_ACCESSOR, AjfTime, AjfTimeModule };
116
+ //# sourceMappingURL=time.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time.js","sources":["../../../../../../src/material/time/time.ts","../../../../../../src/material/time/time-module.ts","../../../../../../src/material/time/public-api.ts","../../../../../../src/material/time/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfTime as Base} from '@ajf/core/time';\nimport {\n ChangeDetectionStrategy,\n Component,\n forwardRef,\n OnDestroy,\n ViewEncapsulation\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nexport const AJF_TIME_CONTROL_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AjfTime),\n multi: true\n};\n\n@Component({\n selector: 'ajf-time',\n templateUrl: 'time.html',\n styleUrls: ['time.css'],\n providers: [AJF_TIME_CONTROL_VALUE_ACCESSOR],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AjfTime extends Base implements ControlValueAccessor, OnDestroy {\n constructor() {\n super();\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {MatFormFieldModule} from '@angular/material/form-field';\nimport {MatInputModule} from '@angular/material/input';\n\nimport {AjfTime} from './time';\n\n@NgModule({\n imports: [\n FormsModule,\n MatFormFieldModule,\n MatInputModule,\n ],\n declarations: [\n AjfTime,\n ],\n exports: [\n AjfTime,\n ],\n})\nexport class AjfTimeModule {\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './time-module';\nexport * from './time';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["Base"],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;MAgCa,+BAA+B,GAAQ;IAClD,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,UAAU,CAAC,MAAM,OAAO,CAAC;IACtC,KAAK,EAAE,IAAI;EACX;MAUW,OAAQ,SAAQA,SAAI;IAC/B;QACE,KAAK,EAAE,CAAC;KACT;;;YAXF,SAAS,SAAC;gBACT,QAAQ,EAAE,UAAU;gBACpB,wbAAwB;gBAExB,SAAS,EAAE,CAAC,+BAA+B,CAAC;gBAC5C,aAAa,EAAE,iBAAiB,CAAC,IAAI;gBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;;AC7CD;;;;;;;;;;;;;;;;;;;;;MA0Ca,aAAa;;;YAbzB,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,WAAW;oBACX,kBAAkB;oBAClB,cAAc;iBACf;gBACD,YAAY,EAAE;oBACZ,OAAO;iBACR;gBACD,OAAO,EAAE;oBACP,OAAO;iBACR;aACF;;;ACzCD;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;"}
File without changes
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ import { ElementRef, Renderer2 } from '@angular/core';
23
+ export declare class AjfFbBranchLine {
24
+ private _el;
25
+ private _renderer;
26
+ private _offset;
27
+ set offset(offset: number);
28
+ private _color;
29
+ set color(color: string);
30
+ private _height;
31
+ set height(height: number);
32
+ constructor(_el: ElementRef, _renderer: Renderer2);
33
+ private _updateHeight;
34
+ private _updateOffset;
35
+ private _updateColor;
36
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ import { DataSource } from '@angular/cdk/collections';
23
+ import { Observable } from 'rxjs';
24
+ export declare type ChoicesOriginChoiceEntry = {
25
+ label: string;
26
+ value: string;
27
+ };
28
+ export declare class ChoicesOriginDataSource extends DataSource<ChoicesOriginChoiceEntry> {
29
+ private _choices;
30
+ private _choicesObs;
31
+ constructor();
32
+ connect(): Observable<ChoicesOriginChoiceEntry[]>;
33
+ disconnect(): void;
34
+ updateChoices(choices: ChoicesOriginChoiceEntry[]): void;
35
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ import { AjfChoicesOrigin } from '@ajf/core/forms';
23
+ import { Observable } from 'rxjs';
24
+ import { AjfFbChoicesOriginEditor } from './choices-origin-editor';
25
+ import { AjfFormBuilderService } from './form-builder-service';
26
+ export declare class AjfFbChoicesOriginEditorDialog {
27
+ private _service;
28
+ editor: AjfFbChoicesOriginEditor;
29
+ private _choicesOrigin;
30
+ get choicesOrigin(): Observable<AjfChoicesOrigin<any>>;
31
+ constructor(_service: AjfFormBuilderService);
32
+ saveChoicesOrigin(): void;
33
+ cancelChoicesOriginEdit(): void;
34
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ import { AjfChoicesOrigin } from '@ajf/core/forms';
23
+ import { ChoicesOriginChoiceEntry, ChoicesOriginDataSource } from './choices-origin-data-source';
24
+ export declare class AjfFbChoicesOriginEditor {
25
+ private _displayedColumns;
26
+ get displayedColumns(): string[];
27
+ private _choicesOrigin;
28
+ get choicesOrigin(): AjfChoicesOrigin<any>;
29
+ set choicesOrigin(choicesOrigin: AjfChoicesOrigin<any>);
30
+ editing: {
31
+ [key: string]: boolean;
32
+ };
33
+ name: string;
34
+ label: string;
35
+ canEditChoices: boolean;
36
+ private _choices;
37
+ get choices(): ChoicesOriginDataSource;
38
+ private _choicesArr;
39
+ get choicesArr(): ChoicesOriginChoiceEntry[];
40
+ updateValue(evt: any, cell: string, _value: any, rowIdx: number): void;
41
+ deleteRow(rowIdx: number): void;
42
+ addRow(): void;
43
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ import { AjfField } from '@ajf/core/forms';
23
+ import { MatDialogRef } from '@angular/material/dialog';
24
+ import { Observable } from 'rxjs';
25
+ import { AjfFbConditionEditor } from './condition-editor';
26
+ import { AjfFormBuilderService } from './form-builder-service';
27
+ export declare class AjfFbConditionEditorDialog {
28
+ dialogRef: MatDialogRef<AjfFbConditionEditorDialog>;
29
+ editor: AjfFbConditionEditor;
30
+ private _fields;
31
+ get fields(): Observable<AjfField[]>;
32
+ condition: string;
33
+ constructor(service: AjfFormBuilderService, dialogRef: MatDialogRef<AjfFbConditionEditorDialog>);
34
+ saveCondition(): void;
35
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ import { AjfField, AjfValidationService } from '@ajf/core/forms';
23
+ import { AjfMonacoEditor } from '@ajf/material/monaco-editor';
24
+ export declare class AjfFbConditionEditor {
25
+ monacoEditor: AjfMonacoEditor;
26
+ private _fields;
27
+ get fields(): AjfField[];
28
+ set fields(fields: AjfField[]);
29
+ condition: string;
30
+ editedValue: string;
31
+ constructor(_: AjfValidationService);
32
+ insertVariable(variable: string): void;
33
+ onEditorInit(): void;
34
+ private _updateVariables;
35
+ private _updateFunctions;
36
+ private _fieldVarType;
37
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ export declare class AjfFormBuilderModule {
23
+ }
@@ -0,0 +1,191 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ import { AjfAttachmentsOrigin, AjfChoicesOrigin, AjfField, AjfFieldType, AjfForm, AjfFormStringIdentifier, AjfNode, AjfNodeGroup, AjfNodeType, AjfRepeatingSlide, AjfSlide } from '@ajf/core/forms';
23
+ import { AjfCondition } from '@ajf/core/models';
24
+ import { BehaviorSubject, Observable } from 'rxjs';
25
+ export interface AjfFormBuilderNodeTypeEntry {
26
+ label: string;
27
+ icon: {
28
+ fontSet: string;
29
+ fontIcon: string;
30
+ };
31
+ nodeType: {
32
+ node: AjfNodeType;
33
+ field?: AjfFieldType;
34
+ };
35
+ isSlide?: boolean;
36
+ }
37
+ export interface AjfFormBuilderNodeEntry {
38
+ node: AjfNode;
39
+ container: AjfContainerNode | null;
40
+ children: AjfFormBuilderNodeEntry[];
41
+ content: AjfFormBuilderNodeEntry[];
42
+ }
43
+ export interface AjfFormBuilderEmptySlot {
44
+ parent: AjfNode;
45
+ parentNode: number;
46
+ }
47
+ /**
48
+ * Represents a node's position change in the formbuilder.
49
+ */
50
+ export interface AjfFormBuilderMoveEvent {
51
+ /**
52
+ * The node being moved.
53
+ */
54
+ nodeEntry: AjfFormBuilderNode;
55
+ /**
56
+ * The index of the node previous position.
57
+ */
58
+ fromIndex: number;
59
+ /**
60
+ * The index of the node new position.
61
+ */
62
+ toIndex: number;
63
+ }
64
+ export declare type AjfFormBuilderNode = AjfFormBuilderNodeEntry | AjfFormBuilderEmptySlot;
65
+ export declare type AjfContainerNode = AjfSlide | AjfRepeatingSlide | AjfNodeGroup;
66
+ export declare function flattenNodes(nodes: AjfNode[]): AjfNode[];
67
+ export declare class AjfFormBuilderService {
68
+ private _availableNodeTypes;
69
+ /**
70
+ * Available node types
71
+ *
72
+ * @readonly
73
+ * @memberOf AjfFormBuilderService
74
+ */
75
+ get availableNodeTypes(): AjfFormBuilderNodeTypeEntry[];
76
+ private _form;
77
+ private _formObs;
78
+ /**
79
+ * Current edited form stream
80
+ *
81
+ * @readonly
82
+ * @memberOf AjfFormBuilderService
83
+ */
84
+ get form(): Observable<AjfForm | null>;
85
+ private _attachmentsOrigins;
86
+ get attachmentsOrigins(): Observable<AjfAttachmentsOrigin<any>[]>;
87
+ private _choicesOrigins;
88
+ get choicesOrigins(): Observable<AjfChoicesOrigin<any>[]>;
89
+ private _stringIdentifier;
90
+ get stringIdentifier(): Observable<AjfFormStringIdentifier[]>;
91
+ private _nodesWithoutChoiceOrigins;
92
+ private _nodes;
93
+ get nodes(): Observable<AjfNode[]>;
94
+ private _flatNodes;
95
+ get flatNodes(): Observable<AjfNode[]>;
96
+ private _flatFields;
97
+ get flatFields(): Observable<AjfField[]>;
98
+ private _nodeEntriesTree;
99
+ get nodeEntriesTree(): Observable<AjfFormBuilderNodeEntry[]>;
100
+ /**
101
+ * A list of the ids of the dropLists connected to the source list.
102
+ */
103
+ private _connectedDropLists;
104
+ get connectedDropLists(): BehaviorSubject<string[]>;
105
+ private _editedNodeEntry;
106
+ private _editedNodeEntryObs;
107
+ get editedNodeEntry(): Observable<AjfFormBuilderNodeEntry | null>;
108
+ private _editedCondition;
109
+ private _editedConditionObs;
110
+ get editedCondition(): Observable<AjfCondition | null>;
111
+ private _editedChoicesOrigin;
112
+ private _editedChoicesOriginObs;
113
+ get editedChoicesOrigin(): Observable<AjfChoicesOrigin<any> | null>;
114
+ private _beforeNodesUpdate;
115
+ private _beforeNodesUpdateObs;
116
+ get beforeNodesUpdate(): Observable<void>;
117
+ private _afterNodeUpdate;
118
+ private _afterNodeUpdateObs;
119
+ get afterNodeUpdate(): Observable<void>;
120
+ private _nodesUpdates;
121
+ private _attachmentsOriginsUpdates;
122
+ private _choicesOriginsUpdates;
123
+ private _stringIdentifierUpdates;
124
+ private _saveNodeEntryEvent;
125
+ private _deleteNodeEntryEvent;
126
+ /**
127
+ * Event fired when the position of a node in a tree changes.
128
+ */
129
+ private _moveNodeEntryEvent;
130
+ /**
131
+ * Subscribes to the moveNodeEntryEvent event emitter;
132
+ */
133
+ private _moveNodeSub;
134
+ constructor();
135
+ /**
136
+ * Sets the current edited form
137
+ *
138
+ * @param form
139
+ *
140
+ * @memberOf AjfFormBuilderService
141
+ */
142
+ setForm(form: AjfForm | null): void;
143
+ editNodeEntry(nodeEntry: AjfFormBuilderNodeEntry): void;
144
+ editCondition(condition: AjfCondition): void;
145
+ saveCurrentCondition(condition: string): void;
146
+ cancelConditionEdit(): void;
147
+ assignListId(node: AjfNode, empty?: boolean): string;
148
+ insertNode(nodeType: AjfFormBuilderNodeTypeEntry, parent: AjfNode, parentNode: number, inContent?: boolean, insertInIndex?: number): void;
149
+ saveNodeEntry(properties: any): void;
150
+ cancelNodeEntryEdit(): void;
151
+ deleteNodeEntry(nodeEntry: AjfFormBuilderNodeEntry): void;
152
+ /**
153
+ * Triggers the moveNode event when a node is moved in the formbuilder.
154
+ * @param nodeEntry The node to be moved.
155
+ */
156
+ moveNodeEntry(nodeEntry: AjfFormBuilderNodeEntry, from: number, to: number): void;
157
+ getCurrentForm(): Observable<AjfForm>;
158
+ editChoicesOrigin(choicesOrigin: AjfChoicesOrigin<any>): void;
159
+ createChoicesOrigin(): void;
160
+ cancelChoicesOriginEdit(): void;
161
+ saveChoicesOrigin(params: {
162
+ label: string;
163
+ name: string;
164
+ choices: any[];
165
+ }): void;
166
+ saveStringIdentifier(identifier: AjfFormStringIdentifier[]): void;
167
+ private _buildFormBuilderNodesTree;
168
+ /**
169
+ * Adds the id of a dropList to be connected with the FormBuilder source list.
170
+ * @param listId The id of the list to connect.
171
+ */
172
+ private _connectDropList;
173
+ private _findMaxNodeId;
174
+ private _initFormStreams;
175
+ private _initChoicesOriginsStreams;
176
+ private _initAttachmentsOriginsStreams;
177
+ private _initStringIdentifierStreams;
178
+ private _initNodesStreams;
179
+ private _initSaveNode;
180
+ private _initDeleteNode;
181
+ /**
182
+ * Initializes the subscription to the moveNodeEntryEvent.
183
+ */
184
+ private _initMoveNode;
185
+ /**
186
+ * Updates the "id" and "parent" fields of a modified or rearranged list of nodes.
187
+ * @param containerId The id of the parent container of the list.
188
+ * @param nodesList The list of nodes to be updated.
189
+ */
190
+ private _updateNodesList;
191
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
23
+ import { AjfFormBuilderNode, AjfFormBuilderNodeEntry, AjfFormBuilderNodeTypeEntry, AjfFormBuilderService } from './form-builder-service';
24
+ /**
25
+ * Triggers when a field or slide node is moved or inserted by drag&dropping in the formbuilder.
26
+ * @param event The drop event.
27
+ * @param fbService The AjfFormBuilderService.
28
+ * @param nodeEntry The current nodeEntry, if present.
29
+ * @param content True if the current nodeEntry contains other nodeEntries.
30
+ */
31
+ export declare function onDropProcess(event: CdkDragDrop<AjfFormBuilderNodeEntry> | CdkDragDrop<AjfFormBuilderNodeTypeEntry>, fbService: AjfFormBuilderService, nodeEntry: AjfFormBuilderNode | null, content?: boolean): void;
32
+ /**
33
+ * Disables the drag&drop of Slide items.
34
+ * @param item The dragged item.
35
+ */
36
+ export declare function disableSlideDropPredicate(item: CdkDrag<AjfFormBuilderNodeTypeEntry>): boolean;
37
+ /**
38
+ * Disables the drag&drop of Field items.
39
+ * @param item The dragged item.
40
+ */
41
+ export declare function disableFieldDropPredicate(item: CdkDrag<AjfFormBuilderNodeTypeEntry>): boolean;