@dereekb/dbx-form 11.1.8 → 12.0.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 (248) hide show
  1. package/calendar/lib/calendar.module.d.ts +1 -14
  2. package/calendar/lib/calendar.schedule.selection.cell.component.d.ts +8 -5
  3. package/calendar/lib/calendar.schedule.selection.component.d.ts +13 -10
  4. package/calendar/lib/calendar.schedule.selection.d.ts +6 -6
  5. package/calendar/lib/calendar.schedule.selection.days.component.d.ts +1 -1
  6. package/calendar/lib/calendar.schedule.selection.days.form.component.d.ts +1 -1
  7. package/calendar/lib/calendar.schedule.selection.dialog.button.component.d.ts +4 -4
  8. package/calendar/lib/calendar.schedule.selection.dialog.component.d.ts +5 -5
  9. package/calendar/lib/calendar.schedule.selection.popover.button.component.d.ts +4 -2
  10. package/calendar/lib/calendar.schedule.selection.popover.component.d.ts +1 -1
  11. package/calendar/lib/calendar.schedule.selection.popover.content.component.d.ts +1 -1
  12. package/calendar/lib/calendar.schedule.selection.range.component.d.ts +19 -17
  13. package/calendar/lib/calendar.schedule.selection.store.d.ts +2 -2
  14. package/calendar/lib/calendar.schedule.selection.store.provide.d.ts +1 -1
  15. package/calendar/lib/calendar.schedule.selection.toggle.button.component.d.ts +8 -12
  16. package/calendar/lib/field/schedule/calendar.schedule.field.component.d.ts +22 -22
  17. package/calendar/lib/field/schedule/calendar.schedule.module.d.ts +2 -10
  18. package/esm2022/calendar/lib/calendar.module.mjs +19 -101
  19. package/esm2022/calendar/lib/calendar.schedule.selection.cell.component.mjs +27 -28
  20. package/esm2022/calendar/lib/calendar.schedule.selection.component.mjs +38 -55
  21. package/esm2022/calendar/lib/calendar.schedule.selection.days.component.mjs +17 -13
  22. package/esm2022/calendar/lib/calendar.schedule.selection.days.form.component.mjs +11 -12
  23. package/esm2022/calendar/lib/calendar.schedule.selection.dialog.button.component.mjs +18 -21
  24. package/esm2022/calendar/lib/calendar.schedule.selection.dialog.component.mjs +12 -9
  25. package/esm2022/calendar/lib/calendar.schedule.selection.mjs +3 -2
  26. package/esm2022/calendar/lib/calendar.schedule.selection.popover.button.component.mjs +22 -18
  27. package/esm2022/calendar/lib/calendar.schedule.selection.popover.component.mjs +12 -9
  28. package/esm2022/calendar/lib/calendar.schedule.selection.popover.content.component.mjs +13 -10
  29. package/esm2022/calendar/lib/calendar.schedule.selection.range.component.mjs +52 -70
  30. package/esm2022/calendar/lib/calendar.schedule.selection.store.mjs +5 -5
  31. package/esm2022/calendar/lib/calendar.schedule.selection.store.provide.mjs +9 -8
  32. package/esm2022/calendar/lib/calendar.schedule.selection.toggle.button.component.mjs +48 -50
  33. package/esm2022/calendar/lib/field/schedule/calendar.schedule.field.component.mjs +17 -14
  34. package/esm2022/calendar/lib/field/schedule/calendar.schedule.module.mjs +8 -40
  35. package/esm2022/lib/form/action/form.action.directive.mjs +58 -55
  36. package/esm2022/lib/form/action/form.action.module.mjs +9 -9
  37. package/esm2022/lib/form/action/transition/form.action.transition.module.mjs +9 -8
  38. package/esm2022/lib/form/action/transition/form.action.transition.safety.directive.mjs +14 -11
  39. package/esm2022/lib/form/form.mjs +1 -1
  40. package/esm2022/lib/form/form.module.mjs +4 -4
  41. package/esm2022/lib/form/io/form.changes.directive.mjs +11 -16
  42. package/esm2022/lib/form/io/form.input.directive.mjs +24 -38
  43. package/esm2022/lib/form/io/form.io.module.mjs +15 -9
  44. package/esm2022/lib/form/io/form.loading.directive.mjs +22 -42
  45. package/esm2022/lib/form.module.mjs +4 -4
  46. package/esm2022/lib/form.providers.mjs +32 -0
  47. package/esm2022/lib/formly/field/checklist/checklist.field.mjs +5 -5
  48. package/esm2022/lib/formly/field/checklist/checklist.item.field.component.mjs +51 -47
  49. package/esm2022/lib/formly/field/checklist/checklist.item.field.content.default.component.mjs +41 -29
  50. package/esm2022/lib/formly/field/checklist/checklist.item.field.mjs +3 -3
  51. package/esm2022/lib/formly/field/checklist/checklist.item.field.module.mjs +8 -45
  52. package/esm2022/lib/formly/field/checklist/checklist.item.mjs +1 -1
  53. package/esm2022/lib/formly/field/component/component.field.component.mjs +11 -8
  54. package/esm2022/lib/formly/field/component/component.field.module.mjs +8 -14
  55. package/esm2022/lib/formly/field/field.mjs +1 -1
  56. package/esm2022/lib/formly/field/form.field.module.mjs +4 -4
  57. package/esm2022/lib/formly/field/selection/list/list.field.component.mjs +17 -14
  58. package/esm2022/lib/formly/field/selection/list/list.field.module.mjs +8 -58
  59. package/esm2022/lib/formly/field/selection/pickable/pickable.chip.field.component.mjs +17 -13
  60. package/esm2022/lib/formly/field/selection/pickable/pickable.field.directive.mjs +16 -16
  61. package/esm2022/lib/formly/field/selection/pickable/pickable.field.module.mjs +8 -68
  62. package/esm2022/lib/formly/field/selection/pickable/pickable.list.field.component.mjs +71 -54
  63. package/esm2022/lib/formly/field/selection/pickable/pickable.util.mjs +2 -2
  64. package/esm2022/lib/formly/field/selection/searchable/searchable.chip.field.component.mjs +21 -16
  65. package/esm2022/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.mjs +51 -49
  66. package/esm2022/lib/formly/field/selection/searchable/searchable.field.directive.mjs +35 -27
  67. package/esm2022/lib/formly/field/selection/searchable/searchable.field.mjs +1 -1
  68. package/esm2022/lib/formly/field/selection/searchable/searchable.field.module.mjs +8 -65
  69. package/esm2022/lib/formly/field/selection/searchable/searchable.mjs +1 -1
  70. package/esm2022/lib/formly/field/selection/searchable/searchable.text.field.component.mjs +48 -30
  71. package/esm2022/lib/formly/field/selection/searchable/text.chip.field.mjs +2 -2
  72. package/esm2022/lib/formly/field/selection/selection.field.mjs +1 -1
  73. package/esm2022/lib/formly/field/selection/selection.mjs +1 -1
  74. package/esm2022/lib/formly/field/selection/selection.module.mjs +4 -4
  75. package/esm2022/lib/formly/field/selection/sourceselect/sourceselect.field.component.mjs +20 -21
  76. package/esm2022/lib/formly/field/selection/sourceselect/sourceselect.field.module.mjs +6 -73
  77. package/esm2022/lib/formly/field/selection/sourceselect/sourceselect.mjs +1 -1
  78. package/esm2022/lib/formly/field/texteditor/texteditor.field.component.mjs +37 -22
  79. package/esm2022/lib/formly/field/texteditor/texteditor.field.mjs +2 -2
  80. package/esm2022/lib/formly/field/texteditor/texteditor.field.module.mjs +8 -33
  81. package/esm2022/lib/formly/field/value/array/array.field.component.mjs +72 -50
  82. package/esm2022/lib/formly/field/value/array/array.field.module.mjs +8 -44
  83. package/esm2022/lib/formly/field/value/boolean/boolean.field.mjs +2 -2
  84. package/esm2022/lib/formly/field/value/boolean/boolean.field.module.mjs +4 -4
  85. package/esm2022/lib/formly/field/value/date/date.field.module.mjs +5 -9
  86. package/esm2022/lib/formly/field/value/date/date.value.mjs +1 -1
  87. package/esm2022/lib/formly/field/value/date/datetime.field.component.mjs +8 -8
  88. package/esm2022/lib/formly/field/value/date/datetime.field.service.mjs +4 -4
  89. package/esm2022/lib/formly/field/value/date/datetime.mjs +1 -1
  90. package/esm2022/lib/formly/field/value/date/fixeddaterange.field.component.mjs +8 -8
  91. package/esm2022/lib/formly/field/value/number/number.field.mjs +1 -1
  92. package/esm2022/lib/formly/field/value/number/number.field.module.mjs +4 -4
  93. package/esm2022/lib/formly/field/value/phone/phone.field.component.mjs +4 -4
  94. package/esm2022/lib/formly/field/value/phone/phone.field.module.mjs +4 -4
  95. package/esm2022/lib/formly/field/value/text/text.address.field.mjs +1 -1
  96. package/esm2022/lib/formly/field/value/text/text.field.mjs +1 -1
  97. package/esm2022/lib/formly/field/value/text/text.field.module.mjs +4 -4
  98. package/esm2022/lib/formly/field/value/value.module.mjs +4 -4
  99. package/esm2022/lib/formly/field/wrapper/autotouch.wrapper.component.mjs +9 -7
  100. package/esm2022/lib/formly/field/wrapper/expand.wrapper.component.mjs +19 -24
  101. package/esm2022/lib/formly/field/wrapper/expand.wrapper.delegate.mjs +7 -4
  102. package/esm2022/lib/formly/field/wrapper/flex.wrapper.component.mjs +11 -8
  103. package/esm2022/lib/formly/field/wrapper/form.wrapper.module.mjs +8 -39
  104. package/esm2022/lib/formly/field/wrapper/index.mjs +2 -1
  105. package/esm2022/lib/formly/field/wrapper/info.wrapper.component.mjs +19 -16
  106. package/esm2022/lib/formly/field/wrapper/section.wrapper.component.mjs +11 -7
  107. package/esm2022/lib/formly/field/wrapper/style.wrapper.component.mjs +16 -11
  108. package/esm2022/lib/formly/field/wrapper/subsection.wrapper.component.mjs +11 -8
  109. package/esm2022/lib/formly/field/wrapper/toggle.wrapper.component.mjs +21 -17
  110. package/esm2022/lib/formly/field/wrapper/working.wrapper.component.mjs +11 -8
  111. package/esm2022/lib/formly/field/wrapper/wrapper.mjs +1 -1
  112. package/esm2022/lib/formly/form/form.form.module.mjs +4 -4
  113. package/esm2022/lib/formly/form/search.form.component.mjs +4 -4
  114. package/esm2022/lib/formly/formly.component.template.mjs +29 -0
  115. package/esm2022/lib/formly/formly.context.directive.mjs +6 -5
  116. package/esm2022/lib/formly/formly.context.mjs +12 -8
  117. package/esm2022/lib/formly/formly.directive.mjs +29 -44
  118. package/esm2022/lib/formly/formly.form.component.mjs +24 -18
  119. package/esm2022/lib/formly/formly.module.mjs +10 -14
  120. package/esm2022/lib/formly/index.mjs +2 -1
  121. package/esm2022/lib/formly/template/login.mjs +1 -1
  122. package/esm2022/lib/formly/template/timezone.mjs +1 -1
  123. package/esm2022/lib/index.mjs +2 -1
  124. package/esm2022/lib/layout/form.layout.module.mjs +4 -4
  125. package/esm2022/lib/layout/form.spacer.component.mjs +3 -3
  126. package/esm2022/lib/validator/available.mjs +1 -1
  127. package/esm2022/lib/validator/boolean.mjs +1 -1
  128. package/esm2022/lib/validator/field.mjs +2 -2
  129. package/esm2022/lib/validator/number.mjs +1 -1
  130. package/esm2022/lib/validator/phone.mjs +1 -1
  131. package/esm2022/mapbox/lib/field/latlng/latlng.field.component.mjs +65 -47
  132. package/esm2022/mapbox/lib/field/latlng/latlng.field.marker.component.mjs +13 -10
  133. package/esm2022/mapbox/lib/field/latlng/latlng.module.mjs +10 -43
  134. package/esm2022/mapbox/lib/field/zoom/zoom.field.component.mjs +32 -26
  135. package/esm2022/mapbox/lib/field/zoom/zoom.module.mjs +8 -36
  136. package/esm2022/mapbox/lib/mapbox.module.mjs +4 -4
  137. package/fesm2022/dereekb-dbx-form-calendar.mjs +340 -457
  138. package/fesm2022/dereekb-dbx-form-calendar.mjs.map +1 -1
  139. package/fesm2022/dereekb-dbx-form-mapbox.mjs +114 -141
  140. package/fesm2022/dereekb-dbx-form-mapbox.mjs.map +1 -1
  141. package/fesm2022/dereekb-dbx-form.mjs +935 -1106
  142. package/fesm2022/dereekb-dbx-form.mjs.map +1 -1
  143. package/lib/extension/calendar/_calendar.scss +3 -3
  144. package/lib/form/_form.scss +3 -3
  145. package/lib/form/action/form.action.directive.d.ts +35 -16
  146. package/lib/form/action/form.action.module.d.ts +4 -3
  147. package/lib/form/action/transition/form.action.transition.module.d.ts +4 -2
  148. package/lib/form/action/transition/form.action.transition.safety.directive.d.ts +4 -2
  149. package/lib/form/io/form.changes.directive.d.ts +3 -4
  150. package/lib/form/io/form.input.directive.d.ts +7 -10
  151. package/lib/form/io/form.io.module.d.ts +8 -2
  152. package/lib/form/io/form.loading.directive.d.ts +10 -11
  153. package/lib/form.providers.d.ts +8 -0
  154. package/lib/formly/_formly.scss +3 -3
  155. package/lib/formly/field/checklist/_checklist.scss +3 -3
  156. package/lib/formly/field/checklist/checklist.field.d.ts +7 -7
  157. package/lib/formly/field/checklist/checklist.item.d.ts +7 -9
  158. package/lib/formly/field/checklist/checklist.item.field.component.d.ts +19 -18
  159. package/lib/formly/field/checklist/checklist.item.field.content.default.component.d.ts +5 -5
  160. package/lib/formly/field/checklist/checklist.item.field.d.ts +1 -1
  161. package/lib/formly/field/checklist/checklist.item.field.module.d.ts +3 -11
  162. package/lib/formly/field/component/_component.scss +3 -3
  163. package/lib/formly/field/component/component.field.component.d.ts +1 -1
  164. package/lib/formly/field/component/component.field.module.d.ts +2 -4
  165. package/lib/formly/field/field.d.ts +8 -5
  166. package/lib/formly/field/selection/list/_list.scss +3 -3
  167. package/lib/formly/field/selection/list/list.field.component.d.ts +7 -5
  168. package/lib/formly/field/selection/list/list.field.module.d.ts +2 -12
  169. package/lib/formly/field/selection/pickable/_pickable.scss +3 -3
  170. package/lib/formly/field/selection/pickable/pickable.chip.field.component.d.ts +1 -1
  171. package/lib/formly/field/selection/pickable/pickable.field.directive.d.ts +25 -23
  172. package/lib/formly/field/selection/pickable/pickable.field.module.d.ts +2 -13
  173. package/lib/formly/field/selection/pickable/pickable.list.field.component.d.ts +15 -14
  174. package/lib/formly/field/selection/searchable/_searchable.scss +3 -3
  175. package/lib/formly/field/selection/searchable/searchable.chip.field.component.d.ts +4 -4
  176. package/lib/formly/field/selection/searchable/searchable.d.ts +3 -3
  177. package/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.d.ts +8 -12
  178. package/lib/formly/field/selection/searchable/searchable.field.directive.d.ts +30 -25
  179. package/lib/formly/field/selection/searchable/searchable.field.module.d.ts +2 -13
  180. package/lib/formly/field/selection/searchable/searchable.text.field.component.d.ts +6 -8
  181. package/lib/formly/field/selection/selection.d.ts +5 -5
  182. package/lib/formly/field/selection/sourceselect/_sourceselect.scss +3 -3
  183. package/lib/formly/field/selection/sourceselect/sourceselect.d.ts +1 -1
  184. package/lib/formly/field/selection/sourceselect/sourceselect.field.component.d.ts +5 -3
  185. package/lib/formly/field/selection/sourceselect/sourceselect.field.module.d.ts +2 -17
  186. package/lib/formly/field/texteditor/_texteditor.scss +9 -9
  187. package/lib/formly/field/texteditor/texteditor.field.component.d.ts +5 -4
  188. package/lib/formly/field/texteditor/texteditor.field.module.d.ts +2 -8
  189. package/lib/formly/field/value/array/_array.scss +5 -5
  190. package/lib/formly/field/value/array/array.field.component.d.ts +16 -18
  191. package/lib/formly/field/value/array/array.field.d.ts +8 -5
  192. package/lib/formly/field/value/array/array.field.module.d.ts +2 -10
  193. package/lib/formly/field/value/boolean/_boolean.scss +3 -3
  194. package/lib/formly/field/value/date/_date.scss +5 -5
  195. package/lib/formly/field/value/date/date.field.module.d.ts +8 -9
  196. package/lib/formly/field/value/date/datetime.field.service.d.ts +1 -1
  197. package/lib/formly/field/value/date/fixeddaterange.field.component.d.ts +13 -13
  198. package/lib/formly/field/value/number/_number.scss +2 -2
  199. package/lib/formly/field/value/phone/_phone.scss +6 -6
  200. package/lib/formly/field/value/phone/phone.field.component.d.ts +6 -5
  201. package/lib/formly/field/value/text/_text.scss +3 -3
  202. package/lib/formly/field/wrapper/_wrapper.scss +3 -3
  203. package/lib/formly/field/wrapper/autotouch.wrapper.component.d.ts +1 -1
  204. package/lib/formly/field/wrapper/expand.wrapper.component.d.ts +1 -1
  205. package/lib/formly/field/wrapper/expand.wrapper.delegate.d.ts +2 -0
  206. package/lib/formly/field/wrapper/flex.wrapper.component.d.ts +4 -4
  207. package/lib/formly/field/wrapper/form.wrapper.module.d.ts +2 -8
  208. package/lib/formly/field/wrapper/index.d.ts +1 -0
  209. package/lib/formly/field/wrapper/info.wrapper.component.d.ts +2 -2
  210. package/lib/formly/field/wrapper/section.wrapper.component.d.ts +1 -1
  211. package/lib/formly/field/wrapper/style.wrapper.component.d.ts +5 -3
  212. package/lib/formly/field/wrapper/subsection.wrapper.component.d.ts +1 -1
  213. package/lib/formly/field/wrapper/toggle.wrapper.component.d.ts +2 -1
  214. package/lib/formly/field/wrapper/working.wrapper.component.d.ts +2 -2
  215. package/lib/formly/form/_form.scss +3 -3
  216. package/lib/formly/formly.component.template.d.ts +19 -0
  217. package/lib/formly/formly.context.d.ts +11 -7
  218. package/lib/formly/formly.context.directive.d.ts +2 -2
  219. package/lib/formly/formly.directive.d.ts +10 -10
  220. package/lib/formly/formly.form.component.d.ts +18 -13
  221. package/lib/formly/formly.module.d.ts +1 -1
  222. package/lib/formly/index.d.ts +1 -0
  223. package/lib/index.d.ts +1 -0
  224. package/lib/layout/_layout.scss +3 -3
  225. package/lib/style/_all-typography.scss +1 -1
  226. package/lib/style/_theming.scss +1 -1
  227. package/mapbox/lib/field/latlng/latlng.field.component.d.ts +25 -23
  228. package/mapbox/lib/field/latlng/latlng.field.marker.component.d.ts +2 -1
  229. package/mapbox/lib/field/latlng/latlng.module.d.ts +2 -11
  230. package/mapbox/lib/field/zoom/zoom.field.component.d.ts +13 -13
  231. package/mapbox/lib/field/zoom/zoom.module.d.ts +3 -10
  232. package/package.json +10 -11
  233. package/mapbox/esm2022/dereekb-dbx-form-mapbox.mjs +0 -5
  234. package/mapbox/esm2022/index.mjs +0 -3
  235. package/mapbox/esm2022/lib/field/index.mjs +0 -3
  236. package/mapbox/esm2022/lib/field/latlng/index.mjs +0 -5
  237. package/mapbox/esm2022/lib/field/latlng/latlng.field.component.mjs +0 -244
  238. package/mapbox/esm2022/lib/field/latlng/latlng.field.marker.component.mjs +0 -31
  239. package/mapbox/esm2022/lib/field/latlng/latlng.field.mjs +0 -35
  240. package/mapbox/esm2022/lib/field/latlng/latlng.module.mjs +0 -59
  241. package/mapbox/esm2022/lib/field/zoom/index.mjs +0 -4
  242. package/mapbox/esm2022/lib/field/zoom/zoom.field.component.mjs +0 -140
  243. package/mapbox/esm2022/lib/field/zoom/zoom.field.mjs +0 -23
  244. package/mapbox/esm2022/lib/field/zoom/zoom.module.mjs +0 -57
  245. package/mapbox/esm2022/lib/mapbox.module.mjs +0 -16
  246. package/mapbox/fesm2022/dereekb-dbx-form-mapbox.mjs +0 -566
  247. package/mapbox/fesm2022/dereekb-dbx-form-mapbox.mjs.map +0 -1
  248. package/mapbox/package.json +0 -21
@@ -151,9 +151,9 @@
151
151
 
152
152
  @mixin theme($theme-config) {
153
153
  @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-calendar') {
154
- $color: theming.get-color-config($theme-config);
155
- $density: theming.get-density-config($theme-config);
156
- $typography: theming.get-typography-config($theme-config);
154
+ $color: theming.m2-get-color-config($theme-config);
155
+ $density: theming.m2-get-density-config($theme-config);
156
+ $typography: theming.m2-get-typography-config($theme-config);
157
157
 
158
158
  @if $color !=null {
159
159
  @include color($theme-config);
@@ -14,9 +14,9 @@
14
14
 
15
15
  @mixin theme($theme-config) {
16
16
  @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-form') {
17
- $color: theming.get-color-config($theme-config);
18
- $density: theming.get-density-config($theme-config);
19
- $typography: theming.get-typography-config($theme-config);
17
+ $color: theming.m2-get-color-config($theme-config);
18
+ $density: theming.m2-get-density-config($theme-config);
19
+ $typography: theming.m2-get-typography-config($theme-config);
20
20
 
21
21
  @if $color !=null {
22
22
  @include color($theme-config);
@@ -1,12 +1,12 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { DbxActionContextStoreSourceInstance, DbxActionValueOnTriggerResult } from '@dereekb/dbx-core';
4
- import { LockSet, IsModifiedFunction, IsValidFunction, ObservableOrValue } from '@dereekb/rxjs';
3
+ import { DbxActionContextStoreSourceInstance, DbxActionValueGetterResult } from '@dereekb/dbx-core';
4
+ import { LockSet, IsModifiedFunction, IsValidFunction, ObservableOrValue, IsEqualFunction } from '@dereekb/rxjs';
5
5
  import { DbxMutableForm } from '../../form/form';
6
- import { MapFunction } from '@dereekb/util';
6
+ import { IsModified, IsValid, MapFunction, Maybe } from '@dereekb/util';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare const APP_ACTION_FORM_DISABLED_KEY = "dbx_action_form";
9
- export type DbxActionFormMapValueFunction<T, O> = MapFunction<T, ObservableOrValue<DbxActionValueOnTriggerResult<O>>>;
9
+ export type DbxActionFormMapValueFunction<T, O> = MapFunction<T, ObservableOrValue<DbxActionValueGetterResult<O>>>;
10
10
  /**
11
11
  * Used with an action to bind a form to an action as it's value source.
12
12
  *
@@ -18,30 +18,49 @@ export declare class DbxActionFormDirective<T = object, O = T> implements OnInit
18
18
  readonly form: DbxMutableForm<any>;
19
19
  readonly source: DbxActionContextStoreSourceInstance<O, unknown>;
20
20
  readonly lockSet: LockSet;
21
+ /**
22
+ * Whether or not to disable the form while the action is working.
23
+ *
24
+ * Defaults to true.
25
+ */
26
+ readonly dbxActionFormDisabledOnWorking: import("@angular/core").InputSignal<Maybe<boolean>>;
21
27
  /**
22
28
  * Optional validator that checks whether or not the value is
23
29
  * ready to send before the context store is marked enabled.
24
30
  */
25
- dbxActionFormValidator?: IsValidFunction<T>;
31
+ readonly dbxActionFormIsValid: import("@angular/core").InputSignal<Maybe<IsValidFunction<T>>>;
32
+ /**
33
+ * Optional function that checks whether or not the value is still the same/equal.
34
+ */
35
+ readonly dbxActionFormIsEqual: import("@angular/core").InputSignal<Maybe<IsEqualFunction<T>>>;
26
36
  /**
27
37
  * Optional function that checks whether or not the value has been modified.
38
+ *
39
+ * If dbxActionFormIsEqual is provided, this will be ignored.
28
40
  */
29
- dbxActionFormModified?: IsModifiedFunction<T>;
41
+ readonly dbxActionFormIsModified: import("@angular/core").InputSignal<Maybe<IsModifiedFunction<T>>>;
30
42
  /**
31
43
  * Optional function that maps the form's value to the source's value.
32
44
  */
33
- dbxActionFormMapValue?: DbxActionFormMapValueFunction<T, O>;
34
- private _formDisabledWhileWorking;
35
- private _triggeredSub;
36
- private _isCompleteSub;
37
- private _isWorkingSub;
45
+ readonly dbxActionFormMapValue: import("@angular/core").InputSignal<Maybe<DbxActionFormMapValueFunction<T, O>>>;
46
+ readonly dbxActionFormDisabledOnWorking$: Observable<Maybe<boolean>>;
47
+ readonly isValidFunction$: Observable<IsValidFunction<T>>;
48
+ readonly isModifiedFunction$: Observable<IsModifiedFunction<T>>;
49
+ readonly mapValueFunction$: Observable<Maybe<DbxActionFormMapValueFunction<T, O>>>;
50
+ private readonly _triggeredSub;
51
+ private readonly _isCompleteSub;
52
+ private readonly _isWorkingSub;
38
53
  constructor();
39
- get formDisabledOnWorking(): boolean;
40
- set formDisabledOnWorking(formDisabledOnWorking: boolean);
41
54
  ngOnInit(): void;
42
55
  ngOnDestroy(): void;
43
- protected preCheckReadyValue(value: T): Observable<boolean>;
44
- protected readyValue(value: T): Observable<DbxActionValueOnTriggerResult<O>>;
56
+ checkIsValidAndIsModified(value: T, overrides?: CheckValidAndModifiedOverrides<T>): Observable<[IsValid, IsModified]>;
57
+ protected preCheckReadyValue(value: T): Observable<[IsValid, IsModified]>;
58
+ protected readyValue(value: T): Observable<DbxActionValueGetterResult<O>>;
45
59
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionFormDirective<any, any>, never>;
46
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionFormDirective<any, any>, "[dbxActionForm]", never, { "dbxActionFormValidator": { "alias": "dbxActionFormValidator"; "required": false; }; "dbxActionFormModified": { "alias": "dbxActionFormModified"; "required": false; }; "dbxActionFormMapValue": { "alias": "dbxActionFormMapValue"; "required": false; }; "formDisabledOnWorking": { "alias": "formDisabledOnWorking"; "required": false; }; }, {}, never, never, false, never>;
60
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionFormDirective<any, any>, "[dbxActionForm]", never, { "dbxActionFormDisabledOnWorking": { "alias": "dbxActionFormDisabledOnWorking"; "required": false; "isSignal": true; }; "dbxActionFormIsValid": { "alias": "dbxActionFormIsValid"; "required": false; "isSignal": true; }; "dbxActionFormIsEqual": { "alias": "dbxActionFormIsEqual"; "required": false; "isSignal": true; }; "dbxActionFormIsModified": { "alias": "dbxActionFormIsModified"; "required": false; "isSignal": true; }; "dbxActionFormMapValue": { "alias": "dbxActionFormMapValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
61
+ }
62
+ interface CheckValidAndModifiedOverrides<T> {
63
+ isModifiedFunction?: Maybe<IsModifiedFunction<T>>;
64
+ isValidFunction?: Maybe<IsValidFunction<T>>;
47
65
  }
66
+ export {};
@@ -1,9 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./form.action.directive";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/material/dialog";
3
+ /**
4
+ * @deprecated Import DbxActionFormDirective directly instead.
5
+ */
5
6
  export declare class DbxFormActionModule {
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormActionModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormActionModule, [typeof i1.DbxActionFormDirective], [typeof i2.CommonModule, typeof i3.MatDialogModule], [typeof i1.DbxActionFormDirective]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormActionModule, never, [typeof i1.DbxActionFormDirective], [typeof i1.DbxActionFormDirective]>;
8
9
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormActionModule>;
9
10
  }
@@ -1,8 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./form.action.transition.safety.directive";
3
- import * as i2 from "@angular/common";
3
+ /**
4
+ * @deprecated import DbxActionFormSafetyDirective directly
5
+ */
4
6
  export declare class DbxFormActionTransitionModule {
5
7
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormActionTransitionModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormActionTransitionModule, [typeof i1.DbxActionFormSafetyDirective], [typeof i2.CommonModule], [typeof i1.DbxActionFormSafetyDirective]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormActionTransitionModule, never, [typeof i1.DbxActionFormSafetyDirective], [typeof i1.DbxActionFormSafetyDirective]>;
7
9
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormActionTransitionModule>;
8
10
  }
@@ -9,8 +9,10 @@ import * as i0 from "@angular/core";
9
9
  */
10
10
  export declare class DbxActionFormSafetyDirective<T, O> extends DbxActionTransitionSafetyDirective<T, O> {
11
11
  readonly dbxActionForm: DbxActionFormDirective<T, T>;
12
- inputSafetyType?: DbxActionTransitionSafetyType;
12
+ readonly dbxActionFormSafety: import("@angular/core").InputSignal<DbxActionTransitionSafetyType>;
13
+ protected readonly _dbxActionFormSafetyUpdateEffect: import("@angular/core").EffectRef;
13
14
  protected _handleOnBeforeTransition(transition: Transition): HookResult;
15
+ ngOnDestroy(): void;
14
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionFormSafetyDirective<any, any>, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionFormSafetyDirective<any, any>, "[dbxActionFormSafety]", never, { "inputSafetyType": { "alias": "dbxActionFormSafety"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionFormSafetyDirective<any, any>, "[dbxActionFormSafety]", never, { "dbxActionFormSafety": { "alias": "dbxActionFormSafety"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
16
18
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
3
3
  import { type Maybe } from '@dereekb/util';
4
4
  import { DbxForm } from '../form';
@@ -10,9 +10,8 @@ import * as i0 from "@angular/core";
10
10
  */
11
11
  export declare class DbxFormValueChangesDirective<T> extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
12
12
  readonly form: DbxForm<any>;
13
- readonly dbxFormValueChange: EventEmitter<Maybe<T>>;
13
+ readonly dbxFormValueChange: import("@angular/core").OutputEmitterRef<Maybe<T>>;
14
14
  ngOnInit(): void;
15
- ngOnDestroy(): void;
16
15
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormValueChangesDirective<any>, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormValueChangesDirective<any>, "[dbxFormValueChange]", never, {}, { "dbxFormValueChange": "dbxFormValueChange"; }, never, never, false, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormValueChangesDirective<any>, "[dbxFormValueChange]", never, {}, { "dbxFormValueChange": "dbxFormValueChange"; }, never, never, true, never>;
18
17
  }
@@ -5,8 +5,8 @@ import { DbxFormStateRef, DbxMutableForm } from '../form';
5
5
  import { type Maybe } from '@dereekb/util';
6
6
  import { ObservableOrValue } from '@dereekb/rxjs';
7
7
  import * as i0 from "@angular/core";
8
- export declare function dbxFormSourceObservable<T>(form: DbxMutableForm, inputObs: ObservableOrValue<T>, mode$: Observable<DbxFormSourceDirectiveMode>): Observable<T>;
9
- export declare function dbxFormSourceObservableFromStream<T>(stream$: Observable<DbxFormStateRef>, inputObs: ObservableOrValue<T>, mode$: Observable<DbxFormSourceDirectiveMode>): Observable<T>;
8
+ export declare function dbxFormSourceObservable<T>(form: DbxMutableForm, inputObs: ObservableOrValue<T>, modeObs: Observable<DbxFormSourceDirectiveMode>): Observable<T>;
9
+ export declare function dbxFormSourceObservableFromStream<T>(streamObs: Observable<DbxFormStateRef>, inputObs: ObservableOrValue<T>, modeObs: ObservableOrValue<DbxFormSourceDirectiveMode>): Observable<T>;
10
10
  /**
11
11
  * DbxFormSourceDirective modes that define when to copy data from the source.
12
12
  *
@@ -18,14 +18,11 @@ export type DbxFormSourceDirectiveMode = 'reset' | 'always' | 'every';
18
18
  /**
19
19
  * Used with a FormComponent to set the value based on the input value.
20
20
  */
21
- export declare class DbxFormSourceDirective<T> extends AbstractSubscriptionDirective implements OnDestroy {
21
+ export declare class DbxFormSourceDirective<T = unknown> extends AbstractSubscriptionDirective implements OnDestroy {
22
22
  readonly form: DbxMutableForm<any>;
23
- private readonly _mode;
24
- get mode(): DbxFormSourceDirectiveMode;
25
- set mode(mode: DbxFormSourceDirectiveMode);
26
- set obs(obs: Maybe<ObservableOrValue<Maybe<Partial<T>>>>);
27
- private setObs;
28
- ngOnDestroy(): void;
23
+ readonly dbxFormSourceMode: import("@angular/core").InputSignal<Maybe<DbxFormSourceDirectiveMode>>;
24
+ readonly dbxFormSource: import("@angular/core").InputSignal<Maybe<ObservableOrValue<Maybe<Partial<T>>>>>;
25
+ protected readonly _setFormSourceObservableEffect: import("@angular/core").EffectRef;
29
26
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSourceDirective<any>, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormSourceDirective<any>, "[dbxFormSource]", never, { "mode": { "alias": "dbxFormSourceMode"; "required": false; }; "obs": { "alias": "dbxFormSource"; "required": false; }; }, {}, never, never, false, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormSourceDirective<any>, "[dbxFormSource]", never, { "dbxFormSourceMode": { "alias": "dbxFormSourceMode"; "required": false; "isSignal": true; }; "dbxFormSource": { "alias": "dbxFormSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
31
28
  }
@@ -2,9 +2,15 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./form.input.directive";
3
3
  import * as i2 from "./form.changes.directive";
4
4
  import * as i3 from "./form.loading.directive";
5
- import * as i4 from "@angular/common";
5
+ /**
6
+ * @deprecated import the directives directly instead.
7
+ *
8
+ * @see DbxFormSourceDirective
9
+ * @see DbxFormValueChangesDirective
10
+ * @see DbxFormLoadingSourceDirective
11
+ */
6
12
  export declare class DbxFormIoModule {
7
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormIoModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormIoModule, [typeof i1.DbxFormSourceDirective, typeof i2.DbxFormValueChangesDirective, typeof i3.DbxFormLoadingSourceDirective], [typeof i4.CommonModule], [typeof i1.DbxFormSourceDirective, typeof i2.DbxFormValueChangesDirective, typeof i3.DbxFormLoadingSourceDirective]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormIoModule, never, [typeof i1.DbxFormSourceDirective, typeof i2.DbxFormValueChangesDirective, typeof i3.DbxFormLoadingSourceDirective], [typeof i1.DbxFormSourceDirective, typeof i2.DbxFormValueChangesDirective, typeof i3.DbxFormLoadingSourceDirective]>;
9
15
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormIoModule>;
10
16
  }
@@ -2,23 +2,22 @@ import { Observable } from 'rxjs';
2
2
  import { OnDestroy } from '@angular/core';
3
3
  import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
4
4
  import { DbxMutableForm } from '../../form/form';
5
- import { LoadingState } from '@dereekb/rxjs';
5
+ import { LoadingState, MaybeObservableOrValue } from '@dereekb/rxjs';
6
6
  import { DbxFormSourceDirectiveMode } from './form.input.directive';
7
+ import { Maybe } from '@dereekb/util';
7
8
  import * as i0 from "@angular/core";
8
9
  /**
9
10
  * Used with a FormComponent to set the value from a LoadingState when the value is available.
11
+ *
12
+ * Only passes non-null values from the source.
10
13
  */
11
14
  export declare class DbxFormLoadingSourceDirective<T extends object = object> extends AbstractSubscriptionDirective implements OnDestroy {
12
15
  readonly form: DbxMutableForm<any>;
13
- private readonly _mode;
14
- get mode(): DbxFormSourceDirectiveMode;
15
- set mode(mode: DbxFormSourceDirectiveMode);
16
- /**
17
- * Sets a LoadingContext that is watched for the loading state.
18
- */
19
- set obs(obs: Observable<LoadingState<T>>);
20
- private _setObs;
21
- ngOnDestroy(): void;
16
+ readonly dbxFormLoadingSourceMode: import("@angular/core").InputSignalWithTransform<DbxFormSourceDirectiveMode, Maybe<DbxFormSourceDirectiveMode>>;
17
+ readonly dbxFormLoadingSource: import("@angular/core").InputSignal<MaybeObservableOrValue<LoadingState<T>>>;
18
+ readonly mode$: Observable<DbxFormSourceDirectiveMode>;
19
+ readonly source$: Observable<Maybe<T>>;
20
+ constructor();
22
21
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormLoadingSourceDirective<any>, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormLoadingSourceDirective<any>, "[dbxFormLoadingSource]", never, { "mode": { "alias": "dbxFormLoadingSourceMode"; "required": false; }; "obs": { "alias": "dbxFormLoadingSource"; "required": false; }; }, {}, never, never, false, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormLoadingSourceDirective<any>, "[dbxFormLoadingSource]", never, { "dbxFormLoadingSourceMode": { "alias": "dbxFormLoadingSourceMode"; "required": false; "isSignal": true; }; "dbxFormLoadingSource": { "alias": "dbxFormLoadingSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
24
23
  }
@@ -0,0 +1,8 @@
1
+ import { EnvironmentProviders } from '@angular/core';
2
+ import { DateTimePresetConfiguration } from './formly';
3
+ import { Maybe } from '@dereekb/util';
4
+ export interface ProvideDbxFormConfigurationConfig {
5
+ readonly provideDateAdapter?: boolean;
6
+ readonly defaultDateTimePresets?: Maybe<DateTimePresetConfiguration[]>;
7
+ }
8
+ export declare function provideDbxFormConfiguration(config?: ProvideDbxFormConfigurationConfig): EnvironmentProviders;
@@ -20,9 +20,9 @@
20
20
 
21
21
  @mixin theme($theme-config) {
22
22
  @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-formly') {
23
- $color: theming.get-color-config($theme-config);
24
- $density: theming.get-density-config($theme-config);
25
- $typography: theming.get-typography-config($theme-config);
23
+ $color: theming.m2-get-color-config($theme-config);
24
+ $density: theming.m2-get-density-config($theme-config);
25
+ $typography: theming.m2-get-typography-config($theme-config);
26
26
 
27
27
  @if $color !=null {
28
28
  @include color($theme-config);
@@ -58,9 +58,9 @@ $dbx-checklist-item-spacing: 8px;
58
58
 
59
59
  @mixin theme($theme-config) {
60
60
  @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-checklist') {
61
- $color: theming.get-color-config($theme-config);
62
- $density: theming.get-density-config($theme-config);
63
- $typography: theming.get-typography-config($theme-config);
61
+ $color: theming.m2-get-color-config($theme-config);
62
+ $density: theming.m2-get-density-config($theme-config);
63
+ $typography: theming.m2-get-typography-config($theme-config);
64
64
 
65
65
  @if $color !=null {
66
66
  @include color($theme-config);
@@ -1,6 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { FormlyFieldConfig } from '@ngx-formly/core';
3
- import { ChecklistItemDisplayContent, ChecklistItemFieldDisplayContentObs } from './checklist.item';
3
+ import { ChecklistItemDisplayContent } from './checklist.item';
4
4
  import { KeyValueTransformMap, type Maybe } from '@dereekb/util';
5
5
  import { ChecklistItemFieldBuilderInput } from './checklist.item.field';
6
6
  export type ChecklistItemFieldDataSetFieldKey<D> = keyof D & string;
@@ -13,17 +13,17 @@ export interface ChecklistItemFieldDataSetItem<D, T extends ChecklistType<D>> {
13
13
  /**
14
14
  * Key for the field.
15
15
  */
16
- key: ChecklistItemFieldDataSetFieldKey<T>;
16
+ readonly key: ChecklistItemFieldDataSetFieldKey<T>;
17
17
  /**
18
18
  * Base field configuration to use.
19
19
  */
20
- field: ChecklistItemFieldBuilderInput<T>;
20
+ readonly field: ChecklistItemFieldBuilderInput<T>;
21
21
  }
22
22
  /**
23
23
  * Used for building a set of configurations for a data-type object that has as second object that is used as a checklist.
24
24
  */
25
25
  export declare class ChecklistItemFieldDataSetBuilder<D extends object, C extends ChecklistType<D> = ChecklistType<D>> {
26
- private _fields;
26
+ private readonly _fields;
27
27
  readonly dataObs$: Observable<D>;
28
28
  constructor(dataObs: Observable<D>);
29
29
  /**
@@ -38,7 +38,7 @@ export declare class ChecklistItemFieldDataSetBuilder<D extends object, C extend
38
38
  showValueField<T extends ChecklistItemFieldDataSetFieldValueForKey<D> = ChecklistItemFieldDataSetFieldValueForKey<D>>(key: ChecklistItemFieldDataSetFieldKey<D>, config?: Partial<ChecklistItemFieldDataSetBuilderInput<D, T>>, labelFn?: (value: T) => Maybe<string>): void;
39
39
  field<T>(config: ChecklistItemFieldDataSetBuilderInput<D, T>): void;
40
40
  build(): FormlyFieldConfig[];
41
- customContentFromData<T extends ChecklistItemFieldDataSetFieldValueForKey<D> = ChecklistItemFieldDataSetFieldValueForKey<D>>(mapFn: (data: D) => ChecklistItemDisplayContent<T>): ChecklistItemFieldDisplayContentObs<T>;
42
- contentWithValueFromData<K extends keyof D = keyof D, T extends ChecklistItemFieldDataSetFieldValueForKey<D> = ChecklistItemFieldDataSetFieldValueForKey<D>>(key: K, contentFn?: (value: T) => ChecklistItemDisplayContent<T>): ChecklistItemFieldDisplayContentObs<T>;
43
- contentWithDisplayValueFromData<T extends ChecklistItemFieldDataSetFieldValueForKey<D> = ChecklistItemFieldDataSetFieldValueForKey<D>>(key: ChecklistItemFieldDataSetFieldKey<D>, labelFn?: (value: T) => Maybe<string>): ChecklistItemFieldDisplayContentObs<T>;
41
+ customContentFromData<T extends ChecklistItemFieldDataSetFieldValueForKey<D> = ChecklistItemFieldDataSetFieldValueForKey<D>>(mapFn: (data: D) => ChecklistItemDisplayContent<T>): Observable<ChecklistItemDisplayContent<T>>;
42
+ contentWithValueFromData<K extends keyof D = keyof D, T extends ChecklistItemFieldDataSetFieldValueForKey<D> = ChecklistItemFieldDataSetFieldValueForKey<D>>(key: K, contentFn?: (value: T) => ChecklistItemDisplayContent<T>): Observable<ChecklistItemDisplayContent<T>>;
43
+ contentWithDisplayValueFromData<T extends ChecklistItemFieldDataSetFieldValueForKey<D> = ChecklistItemFieldDataSetFieldValueForKey<D>>(key: ChecklistItemFieldDataSetFieldKey<D>, labelFn?: (value: T) => Maybe<string>): Observable<ChecklistItemDisplayContent<T>>;
44
44
  }
@@ -1,31 +1,30 @@
1
1
  import { ClickableAnchor } from '@dereekb/dbx-core';
2
2
  import { type Maybe } from '@dereekb/util';
3
- import { Observable } from 'rxjs';
4
3
  export interface ChecklistItemDisplayContent<T = unknown> {
5
4
  /**
6
5
  * Label to display.
7
6
  */
8
- label?: Maybe<string>;
7
+ readonly label?: Maybe<string>;
9
8
  /**
10
9
  * Secondary label/value to display. May be used as the string value.
11
10
  */
12
- sublabel?: Maybe<string>;
11
+ readonly sublabel?: Maybe<string>;
13
12
  /**
14
13
  * Hint/description to display.
15
14
  */
16
- description?: Maybe<string>;
15
+ readonly description?: Maybe<string>;
17
16
  /**
18
17
  * Whether or not to display the ripple. Is true by default if the anchor is present.
19
18
  */
20
- ripple?: Maybe<boolean>;
19
+ readonly ripple?: Maybe<boolean>;
21
20
  /**
22
21
  * Optional anchor to apply on the visible content.
23
22
  */
24
- anchor?: Maybe<ClickableAnchor>;
23
+ readonly anchor?: Maybe<ClickableAnchor>;
25
24
  /**
26
25
  * Value metadata. How it is used depends on the display component used.
27
26
  */
28
- meta?: Maybe<T>;
27
+ readonly meta?: Maybe<T>;
29
28
  }
30
29
  /**
31
30
  * Component used for rendering checklist content.
@@ -33,6 +32,5 @@ export interface ChecklistItemDisplayContent<T = unknown> {
33
32
  * Content is injected.
34
33
  */
35
34
  export interface ChecklistItemFieldDisplayComponent<T = unknown> {
36
- displayContent?: ChecklistItemDisplayContent<T>;
35
+ setDisplayContent(displayContent: ChecklistItemDisplayContent<T>): void;
37
36
  }
38
- export type ChecklistItemFieldDisplayContentObs<T = unknown> = Observable<ChecklistItemDisplayContent<T>>;
@@ -1,25 +1,34 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit, Type } from '@angular/core';
1
+ import { OnInit, Type } from '@angular/core';
2
2
  import { DbxInjectionComponentConfig, AbstractSubscriptionDirective } from '@dereekb/dbx-core';
3
+ import { Observable } from 'rxjs';
3
4
  import { ValidationErrors, FormGroup } from '@angular/forms';
4
5
  import { FieldType, FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
5
- import { ChecklistItemFieldDisplayComponent, ChecklistItemFieldDisplayContentObs } from './checklist.item';
6
+ import { ChecklistItemFieldDisplayComponent, ChecklistItemDisplayContent } from './checklist.item';
6
7
  import { type Maybe } from '@dereekb/util';
7
8
  import * as i0 from "@angular/core";
9
+ export declare class DbxChecklistItemContentComponent<T = unknown> extends AbstractSubscriptionDirective {
10
+ readonly checklistItemFieldComponent: DbxChecklistItemFieldComponent<any>;
11
+ readonly config: DbxInjectionComponentConfig<ChecklistItemFieldDisplayComponent<T>>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxChecklistItemContentComponent<any>, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxChecklistItemContentComponent<any>, "dbx-checklist-item-content-component", never, {}, {}, never, never, true, never>;
14
+ }
8
15
  export interface DbxChecklistItemFieldProps<T = unknown> extends FormlyFieldProps {
9
16
  /**
10
17
  * Observable used to retrieve content to display for the item.
11
18
  */
12
- displayContentObs: ChecklistItemFieldDisplayContentObs<T>;
19
+ readonly displayContent: Observable<ChecklistItemDisplayContent<T>>;
13
20
  /**
14
21
  * Custom component class to use by default.
15
22
  */
16
- componentClass?: Type<ChecklistItemFieldDisplayComponent<T>>;
23
+ readonly componentClass?: Type<ChecklistItemFieldDisplayComponent<T>>;
17
24
  }
18
- export declare class DbxChecklistItemFieldComponent<T = unknown> extends FieldType<FieldTypeConfig<DbxChecklistItemFieldProps<T>>> implements OnInit, OnDestroy {
19
- private readonly _displayContent;
20
- readonly displayContent$: import("rxjs").Observable<import("./checklist.item").ChecklistItemDisplayContent<T>>;
21
- readonly anchor$: import("rxjs").Observable<Maybe<import("@dereekb/dbx-core").ClickableAnchor>>;
22
- readonly rippleDisabled$: import("rxjs").Observable<boolean>;
25
+ export declare class DbxChecklistItemFieldComponent<T = unknown> extends FieldType<FieldTypeConfig<DbxChecklistItemFieldProps<T>>> implements OnInit {
26
+ private readonly _displayContentObs;
27
+ readonly displayContent$: Observable<ChecklistItemDisplayContent<T>>;
28
+ readonly anchor$: Observable<Maybe<import("@dereekb/dbx-core").ClickableAnchor>>;
29
+ readonly rippleDisabled$: Observable<boolean>;
30
+ readonly anchorSignal: import("@angular/core").Signal<Maybe<import("@dereekb/dbx-core").ClickableAnchor>>;
31
+ readonly rippleDisabledSignal: import("@angular/core").Signal<boolean>;
23
32
  get formGroup(): FormGroup;
24
33
  get formControlName(): string;
25
34
  get label(): Maybe<string>;
@@ -29,14 +38,6 @@ export declare class DbxChecklistItemFieldComponent<T = unknown> extends FieldTy
29
38
  get errors(): Maybe<ValidationErrors>;
30
39
  get componentClass(): Type<ChecklistItemFieldDisplayComponent<T>>;
31
40
  ngOnInit(): void;
32
- ngOnDestroy(): void;
33
41
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxChecklistItemFieldComponent<any>, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxChecklistItemFieldComponent<any>, "ng-component", never, {}, {}, never, never, false, never>;
35
- }
36
- export declare class DbxChecklistItemContentComponent<T = unknown> extends AbstractSubscriptionDirective {
37
- readonly cdRef: ChangeDetectorRef;
38
- readonly checklistItemFieldComponent: DbxChecklistItemFieldComponent<T>;
39
- readonly config: DbxInjectionComponentConfig<ChecklistItemFieldDisplayComponent<T>>;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxChecklistItemContentComponent<any>, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxChecklistItemContentComponent<any>, "dbx-checklist-item-content-component", never, {}, {}, never, never, false, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxChecklistItemFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
42
43
  }
@@ -1,10 +1,10 @@
1
1
  import { ChecklistItemDisplayContent, ChecklistItemFieldDisplayComponent } from './checklist.item';
2
+ import { type Maybe } from '@dereekb/util';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class DbxDefaultChecklistItemFieldDisplayComponent<T = unknown> implements ChecklistItemFieldDisplayComponent<T> {
4
- displayContent: ChecklistItemDisplayContent<T>;
5
- get label(): import("dist/packages/util/src").Maybe<string>;
6
- get sublabel(): import("dist/packages/util/src").Maybe<string>;
7
- get description(): import("dist/packages/util/src").Maybe<string>;
5
+ readonly _displayContentSignal: import("@angular/core").WritableSignal<Maybe<ChecklistItemDisplayContent<T>>>;
6
+ readonly displayContentSignal: import("@angular/core").Signal<Maybe<ChecklistItemDisplayContent<T>>>;
7
+ setDisplayContent(displayContent: ChecklistItemDisplayContent<T>): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxDefaultChecklistItemFieldDisplayComponent<any>, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxDefaultChecklistItemFieldDisplayComponent<any>, "ng-component", never, { "displayContent": { "alias": "displayContent"; "required": false; }; }, {}, never, never, false, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxDefaultChecklistItemFieldDisplayComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
10
10
  }
@@ -3,5 +3,5 @@ import { LabeledFieldConfig } from '../field';
3
3
  import { DbxChecklistItemFieldProps } from './checklist.item.field.component';
4
4
  export interface ChecklistItemFieldConfig<T = unknown> extends LabeledFieldConfig, DbxChecklistItemFieldProps<T> {
5
5
  }
6
- export type ChecklistItemFieldBuilderInput<T = unknown> = Partial<ChecklistItemFieldConfig<T>> & Pick<ChecklistItemFieldConfig<T>, 'key' | 'displayContentObs'>;
6
+ export type ChecklistItemFieldBuilderInput<T = unknown> = Partial<ChecklistItemFieldConfig<T>> & Pick<ChecklistItemFieldConfig<T>, 'key' | 'displayContent'>;
7
7
  export declare function checklistItemField<T = unknown>(config: ChecklistItemFieldBuilderInput<T>): FormlyFieldConfig<DbxChecklistItemFieldProps<T>>;
@@ -1,18 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./checklist.item.field.component";
3
3
  import * as i2 from "./checklist.item.field.content.default.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@dereekb/dbx-web";
6
- import * as i5 from "@angular/forms";
7
- import * as i6 from "@angular/material/core";
8
- import * as i7 from "@angular/material/checkbox";
9
- import * as i8 from "@angular/material/button";
10
- import * as i9 from "@angular/material/icon";
11
- import * as i10 from "@dereekb/dbx-core";
12
- import * as i11 from "../wrapper/form.wrapper.module";
13
- import * as i12 from "@ngx-formly/core";
4
+ import * as i3 from "../wrapper/form.wrapper.module";
5
+ import * as i4 from "@ngx-formly/core";
14
6
  export declare class DbxFormFormlyChecklistItemFieldModule {
15
7
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyChecklistItemFieldModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyChecklistItemFieldModule, [typeof i1.DbxChecklistItemFieldComponent, typeof i1.DbxChecklistItemContentComponent, typeof i2.DbxDefaultChecklistItemFieldDisplayComponent], [typeof i3.CommonModule, typeof i4.DbxTextModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.MatRippleModule, typeof i7.MatCheckboxModule, typeof i8.MatButtonModule, typeof i9.MatIconModule, typeof i4.DbxRouterAnchorModule, typeof i10.DbxInjectionComponentModule, typeof i11.DbxFormFormlyWrapperModule, typeof i12.FormlyModule], [typeof i11.DbxFormFormlyWrapperModule]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyChecklistItemFieldModule, never, [typeof i1.DbxChecklistItemFieldComponent, typeof i1.DbxChecklistItemContentComponent, typeof i2.DbxDefaultChecklistItemFieldDisplayComponent, typeof i3.DbxFormFormlyWrapperModule, typeof i4.FormlyModule], [typeof i3.DbxFormFormlyWrapperModule]>;
17
9
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyChecklistItemFieldModule>;
18
10
  }
@@ -14,9 +14,9 @@
14
14
 
15
15
  @mixin theme($theme-config) {
16
16
  @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-component') {
17
- $color: theming.get-color-config($theme-config);
18
- $density: theming.get-density-config($theme-config);
19
- $typography: theming.get-typography-config($theme-config);
17
+ $color: theming.m2-get-color-config($theme-config);
18
+ $density: theming.m2-get-density-config($theme-config);
19
+ $typography: theming.m2-get-typography-config($theme-config);
20
20
 
21
21
  @if $color !=null {
22
22
  @include color($theme-config);
@@ -8,5 +8,5 @@ export interface DbxFormComponentFormlyFieldConfig<T = unknown> extends FormlyFi
8
8
  export declare class DbxFormComponentFieldComponent<T = unknown> extends FieldType<DbxFormComponentFormlyFieldConfig<T>> {
9
9
  get config(): DbxInjectionComponentConfig<T>;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormComponentFieldComponent<any>, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormComponentFieldComponent<any>, "ng-component", never, {}, {}, never, never, false, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormComponentFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
12
12
  }
@@ -1,10 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./component.field.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@dereekb/dbx-core";
5
- import * as i4 from "@ngx-formly/core";
3
+ import * as i2 from "@ngx-formly/core";
6
4
  export declare class DbxFormFormlyComponentFieldModule {
7
5
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyComponentFieldModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyComponentFieldModule, [typeof i1.DbxFormComponentFieldComponent], [typeof i2.CommonModule, typeof i3.DbxInjectionComponentModule, typeof i4.FormlyModule], [typeof i1.DbxFormComponentFieldComponent]>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyComponentFieldModule, never, [typeof i1.DbxFormComponentFieldComponent, typeof i2.FormlyModule], [typeof i1.DbxFormComponentFieldComponent]>;
9
7
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyComponentFieldModule>;
10
8
  }
@@ -52,11 +52,14 @@ export declare function formlyField<T extends FormlyFieldConfig = FormlyFieldCon
52
52
  */
53
53
  export declare function propsAndConfigForFieldConfig<O extends object = object>(fieldConfig: Partial<FieldConfig> & Partial<LabeledFieldConfig> & Partial<AttributesFieldConfig> & Partial<DescriptionFieldConfig>, override?: PartialPotentialFieldConfig & O): {
54
54
  props: Partial<FormlyFieldProps> & Partial<FieldConfig> & Partial<LabeledFieldConfig> & Partial<AttributesFieldConfig> & Partial<DescriptionFieldConfig> & O;
55
- expressions: {
56
- [property: string]: string | import("rxjs").Observable<any> | ((field: FormlyFieldConfig<FormlyFieldProps & {
57
- [additionalProperties: string]: any;
58
- }>) => any);
59
- } | undefined;
55
+ expressions: ({
56
+ [property: string]: string | import("rxjs").Observable<any> | ((field: FormlyFieldConfig) => any);
57
+ } & {
58
+ className?: string | import("rxjs").Observable<string> | ((field: FormlyFieldConfig) => string);
59
+ hide?: string | import("rxjs").Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
60
+ 'props.disabled'?: string | import("rxjs").Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
61
+ 'props.required'?: string | import("rxjs").Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
62
+ }) | undefined;
60
63
  parsers: ((value: any) => any)[] | undefined;
61
64
  };
62
65
  export declare const partialPotentialFieldConfigKeys: (keyof PartialPotentialFieldConfig)[];
@@ -19,9 +19,9 @@ $dbx-list-item-field-content-max-height: 300px;
19
19
 
20
20
  @mixin theme($theme-config) {
21
21
  @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-selection-list') {
22
- $color: theming.get-color-config($theme-config);
23
- $density: theming.get-density-config($theme-config);
24
- $typography: theming.get-typography-config($theme-config);
22
+ $color: theming.m2-get-color-config($theme-config);
23
+ $density: theming.m2-get-density-config($theme-config);
24
+ $typography: theming.m2-get-typography-config($theme-config);
25
25
 
26
26
  @if $color !=null {
27
27
  @include color($theme-config);
@@ -29,16 +29,18 @@ export interface DbxItemListFieldProps<T = unknown, C extends AbstractDbxSelecti
29
29
  * Used for picking items by identifier from a DbxList component.
30
30
  */
31
31
  export declare class DbxItemListFieldComponent<T = unknown, C extends AbstractDbxSelectionListWrapperDirective<T> = AbstractDbxSelectionListWrapperDirective<T>, K extends PrimativeKey = PrimativeKey> extends FieldType<FieldTypeConfig<DbxItemListFieldProps<T, C, K>>> implements OnInit, OnDestroy {
32
- private _selectionEventSub;
33
- private _loadMoreSub;
34
- private _formControlObs;
32
+ private readonly _selectionEventSub;
33
+ private readonly _loadMoreSub;
34
+ private readonly _formControlObs;
35
35
  readonly formControl$: Observable<AbstractControl<any, any>>;
36
36
  readonly _formControlValue$: Observable<Maybe<K[]>>;
37
37
  readonly values$: Observable<K[]>;
38
- private _listComponentClassObs;
38
+ private readonly _listComponentClassObs;
39
39
  readonly listComponentClass$: Observable<Type<C>>;
40
40
  readonly config$: Observable<DbxInjectionComponentConfig<C>>;
41
41
  readonly isSelectedModifierFunction$: Observable<DbxValueListItemDecisionFunction<T>>;
42
+ readonly configSignal: import("@angular/core").Signal<DbxInjectionComponentConfig<C> | undefined>;
43
+ readonly isSelectedModifierFunctionSignal: import("@angular/core").Signal<DbxValueListItemDecisionFunction<T> | undefined>;
42
44
  get label(): string | undefined;
43
45
  get description(): string | undefined;
44
46
  get listComponentClass(): Observable<Type<C>>;
@@ -49,5 +51,5 @@ export declare class DbxItemListFieldComponent<T = unknown, C extends AbstractDb
49
51
  updateForSelection(list: ListSelectionState<T>): void;
50
52
  setValues(values: Maybe<K[]>): void;
51
53
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxItemListFieldComponent<any, any, any>, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxItemListFieldComponent<any, any, any>, "ng-component", never, {}, {}, never, never, false, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxItemListFieldComponent<any, any, any>, "ng-component", never, {}, {}, never, never, true, never>;
53
55
  }