@dereekb/dbx-form 0.0.1 → 1.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 (239) hide show
  1. package/{src/_index.scss → _index.scss} +8 -0
  2. package/esm2020/lib/form/action/form.action.directive.mjs +42 -40
  3. package/esm2020/lib/form/action/form.action.module.mjs +6 -6
  4. package/esm2020/lib/form/action/index.mjs +2 -1
  5. package/esm2020/lib/form/action/transition/form.action.transition.module.mjs +26 -0
  6. package/esm2020/lib/form/action/transition/form.action.transition.safety.directive.mjs +40 -0
  7. package/esm2020/lib/form/action/transition/index.mjs +3 -0
  8. package/esm2020/lib/form/form.mjs +11 -4
  9. package/esm2020/lib/form/form.module.mjs +13 -24
  10. package/esm2020/lib/form/index.mjs +2 -4
  11. package/esm2020/lib/form/io/form.changes.directive.mjs +34 -0
  12. package/esm2020/lib/form/io/form.input.directive.mjs +49 -0
  13. package/esm2020/lib/form/io/form.io.module.mjs +36 -0
  14. package/esm2020/lib/form/io/form.loading.directive.mjs +52 -0
  15. package/esm2020/lib/form/io/index.mjs +5 -0
  16. package/esm2020/lib/form.module.mjs +25 -0
  17. package/esm2020/lib/formly/config/index.mjs +2 -0
  18. package/esm2020/lib/formly/config/validation.mjs +22 -0
  19. package/esm2020/lib/formly/field/checklist/checklist.field.mjs +105 -0
  20. package/esm2020/lib/formly/field/checklist/checklist.item.field.component.mjs +28 -30
  21. package/esm2020/lib/formly/field/checklist/checklist.item.field.content.default.component.mjs +1 -1
  22. package/esm2020/lib/formly/field/checklist/checklist.item.field.mjs +8 -112
  23. package/esm2020/lib/formly/field/checklist/index.mjs +2 -1
  24. package/esm2020/lib/formly/field/component/component.field.component.mjs +7 -7
  25. package/esm2020/lib/formly/field/component/component.field.mjs +4 -2
  26. package/esm2020/lib/formly/field/field.mjs +35 -2
  27. package/esm2020/lib/formly/field/form.field.module.mjs +44 -0
  28. package/esm2020/lib/formly/field/index.mjs +3 -1
  29. package/esm2020/lib/formly/field/selection/index.mjs +2 -1
  30. package/esm2020/lib/formly/field/selection/pickable/index.mjs +2 -1
  31. package/esm2020/lib/formly/field/selection/pickable/pickable.chip.field.component.mjs +14 -12
  32. package/esm2020/lib/formly/field/selection/pickable/pickable.field.directive.mjs +40 -31
  33. package/esm2020/lib/formly/field/selection/pickable/pickable.field.mjs +39 -0
  34. package/esm2020/lib/formly/field/selection/pickable/pickable.field.module.mjs +22 -13
  35. package/esm2020/lib/formly/field/selection/pickable/pickable.list.field.component.mjs +75 -16
  36. package/esm2020/lib/formly/field/selection/searchable/searchable.chip.field.component.mjs +32 -15
  37. package/esm2020/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.mjs +64 -50
  38. package/esm2020/lib/formly/field/selection/searchable/searchable.field.directive.mjs +69 -53
  39. package/esm2020/lib/formly/field/selection/searchable/searchable.field.mjs +30 -7
  40. package/esm2020/lib/formly/field/selection/searchable/searchable.field.module.mjs +8 -10
  41. package/esm2020/lib/formly/field/selection/searchable/searchable.mjs +1 -1
  42. package/esm2020/lib/formly/field/selection/searchable/searchable.text.field.component.mjs +35 -11
  43. package/esm2020/lib/formly/field/selection/searchable/text.chip.field.mjs +1 -1
  44. package/esm2020/lib/formly/field/selection/selection.mjs +1 -1
  45. package/esm2020/lib/formly/field/selection/selection.module.mjs +28 -0
  46. package/esm2020/lib/formly/field/texteditor/index.mjs +4 -0
  47. package/esm2020/lib/formly/field/texteditor/texteditor.field.component.mjs +90 -0
  48. package/esm2020/lib/formly/field/texteditor/texteditor.field.mjs +20 -0
  49. package/esm2020/lib/formly/field/texteditor/texteditor.field.module.mjs +59 -0
  50. package/esm2020/lib/formly/field/value/array/array.field.component.mjs +87 -51
  51. package/esm2020/lib/formly/field/value/array/array.field.mjs +20 -0
  52. package/esm2020/lib/formly/field/value/array/array.field.module.mjs +25 -7
  53. package/esm2020/lib/formly/field/value/array/index.mjs +2 -1
  54. package/esm2020/lib/formly/field/value/boolean/boolean.field.mjs +11 -20
  55. package/esm2020/lib/formly/field/value/date/date.field.module.mjs +9 -6
  56. package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +74 -44
  57. package/esm2020/lib/formly/field/value/date/datetime.field.mjs +36 -0
  58. package/esm2020/lib/formly/field/value/date/index.mjs +2 -2
  59. package/esm2020/lib/formly/field/value/enum/enum.field.mjs +1 -1
  60. package/esm2020/lib/formly/field/value/enum/enum.field.module.mjs +16 -0
  61. package/esm2020/lib/formly/field/value/enum/index.mjs +2 -1
  62. package/esm2020/lib/formly/field/value/hidden.field.mjs +1 -1
  63. package/esm2020/lib/formly/field/value/index.mjs +2 -1
  64. package/esm2020/lib/formly/field/value/phone/phone.field.component.mjs +13 -33
  65. package/esm2020/lib/formly/field/value/phone/phone.field.mjs +50 -52
  66. package/esm2020/lib/formly/field/value/phone/phone.field.module.mjs +15 -7
  67. package/esm2020/lib/formly/field/value/text/index.mjs +2 -1
  68. package/esm2020/lib/formly/field/value/text/text.additional.field.mjs +81 -0
  69. package/esm2020/lib/formly/field/value/text/text.address.field.mjs +16 -23
  70. package/esm2020/lib/formly/field/value/text/text.field.mjs +11 -110
  71. package/esm2020/lib/formly/field/value/text/text.field.module.mjs +9 -4
  72. package/esm2020/lib/formly/field/value/value.module.mjs +44 -0
  73. package/esm2020/lib/formly/field/wrapper/autotouch.wrapper.component.mjs +1 -1
  74. package/esm2020/lib/formly/field/wrapper/expandable.wrapper.component.mjs +12 -56
  75. package/esm2020/lib/formly/field/wrapper/expandable.wrapper.delegate.mjs +58 -0
  76. package/esm2020/lib/formly/field/wrapper/flex.wrapper.component.mjs +18 -8
  77. package/esm2020/lib/formly/field/wrapper/form.wrapper.module.mjs +43 -30
  78. package/esm2020/lib/formly/field/wrapper/index.mjs +3 -3
  79. package/esm2020/lib/formly/field/wrapper/info.wrapper.component.mjs +16 -16
  80. package/esm2020/lib/formly/field/wrapper/section.wrapper.component.mjs +17 -23
  81. package/esm2020/lib/formly/field/wrapper/style.wrapper.component.mjs +43 -0
  82. package/esm2020/lib/formly/field/wrapper/subsection.wrapper.component.mjs +17 -23
  83. package/esm2020/lib/formly/field/wrapper/toggle.wrapper.component.mjs +16 -20
  84. package/esm2020/lib/formly/field/wrapper/wrapper.mjs +81 -0
  85. package/esm2020/lib/formly/formly.context.directive.mjs +38 -0
  86. package/esm2020/lib/formly/formly.context.mjs +45 -70
  87. package/esm2020/lib/formly/formly.directive.mjs +9 -6
  88. package/esm2020/lib/formly/formly.form.component.mjs +127 -0
  89. package/esm2020/lib/formly/formly.module.mjs +11 -12
  90. package/esm2020/lib/formly/index.mjs +4 -2
  91. package/esm2020/lib/index.mjs +2 -1
  92. package/fesm2015/dereekb-dbx-form.mjs +1603 -898
  93. package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
  94. package/fesm2020/dereekb-dbx-form.mjs +1650 -880
  95. package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
  96. package/{src/lib → lib}/form/_form.scss +0 -0
  97. package/lib/form/action/form.action.directive.d.ts +3 -3
  98. package/lib/form/action/form.action.module.d.ts +4 -4
  99. package/lib/form/action/index.d.ts +1 -0
  100. package/lib/form/action/transition/form.action.transition.module.d.ts +8 -0
  101. package/lib/form/action/transition/form.action.transition.safety.directive.d.ts +20 -0
  102. package/lib/form/action/transition/index.d.ts +2 -0
  103. package/lib/form/form.d.ts +30 -19
  104. package/lib/form/form.module.d.ts +4 -5
  105. package/lib/form/index.d.ts +1 -3
  106. package/lib/form/{form.changes.directive.d.ts → io/form.changes.directive.d.ts} +1 -1
  107. package/lib/form/{form.input.directive.d.ts → io/form.input.directive.d.ts} +3 -3
  108. package/lib/form/io/form.io.module.d.ts +10 -0
  109. package/lib/form/io/form.loading.directive.d.ts +19 -0
  110. package/lib/form/io/index.d.ts +4 -0
  111. package/lib/form.module.d.ts +9 -0
  112. package/{src/lib → lib}/formly/_formly.scss +0 -0
  113. package/lib/formly/config/index.d.ts +1 -0
  114. package/lib/formly/config/validation.d.ts +19 -0
  115. package/{src/lib → lib}/formly/field/_field.scss +0 -0
  116. package/lib/formly/field/checklist/_checklist.scss +76 -0
  117. package/lib/formly/field/checklist/checklist.field.d.ts +45 -0
  118. package/lib/formly/field/checklist/checklist.item.field.component.d.ts +13 -12
  119. package/lib/formly/field/checklist/checklist.item.field.content.default.component.d.ts +1 -1
  120. package/lib/formly/field/checklist/checklist.item.field.d.ts +3 -47
  121. package/lib/formly/field/checklist/index.d.ts +1 -0
  122. package/{src/lib → lib}/formly/field/component/_component.scss +0 -0
  123. package/lib/formly/field/component/component.field.component.d.ts +6 -2
  124. package/lib/formly/field/field.d.ts +17 -3
  125. package/{src/lib → lib}/formly/field/fields_TODO.scss +0 -0
  126. package/lib/formly/field/form.field.module.d.ts +13 -0
  127. package/lib/formly/field/index.d.ts +2 -0
  128. package/{src/lib → lib}/formly/field/selection/_selection.scss +0 -0
  129. package/lib/formly/field/selection/index.d.ts +1 -0
  130. package/{src/lib → lib}/formly/field/selection/pickable/_pickable.scss +10 -1
  131. package/lib/formly/field/selection/pickable/index.d.ts +1 -0
  132. package/lib/formly/field/selection/pickable/pickable.chip.field.component.d.ts +3 -3
  133. package/lib/formly/field/selection/pickable/pickable.field.d.ts +13 -0
  134. package/lib/formly/field/selection/pickable/pickable.field.directive.d.ts +17 -13
  135. package/lib/formly/field/selection/pickable/pickable.field.module.d.ts +1 -1
  136. package/lib/formly/field/selection/pickable/pickable.list.field.component.d.ts +27 -3
  137. package/lib/formly/field/selection/searchable/_searchable.scss +59 -0
  138. package/lib/formly/field/selection/searchable/searchable.chip.field.component.d.ts +7 -1
  139. package/lib/formly/field/selection/searchable/searchable.d.ts +6 -8
  140. package/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.d.ts +20 -14
  141. package/lib/formly/field/selection/searchable/searchable.field.d.ts +20 -11
  142. package/lib/formly/field/selection/searchable/searchable.field.directive.d.ts +33 -24
  143. package/lib/formly/field/selection/searchable/searchable.field.module.d.ts +1 -1
  144. package/lib/formly/field/selection/searchable/searchable.text.field.component.d.ts +11 -1
  145. package/lib/formly/field/selection/searchable/text.chip.field.d.ts +2 -2
  146. package/lib/formly/field/selection/selection.d.ts +1 -0
  147. package/lib/formly/field/selection/selection.module.d.ts +9 -0
  148. package/lib/formly/field/texteditor/_texteditor.scss +98 -0
  149. package/lib/formly/field/texteditor/index.d.ts +3 -0
  150. package/lib/formly/field/texteditor/texteditor.field.component.d.ts +26 -0
  151. package/lib/formly/field/texteditor/texteditor.field.d.ts +7 -0
  152. package/lib/formly/field/texteditor/texteditor.field.module.d.ts +14 -0
  153. package/{src/lib → lib}/formly/field/value/_value.scss +0 -0
  154. package/lib/formly/field/value/array/_array.scss +73 -0
  155. package/lib/formly/field/value/array/array.field.component.d.ts +22 -11
  156. package/lib/formly/field/value/array/array.field.d.ts +9 -0
  157. package/lib/formly/field/value/array/array.field.module.d.ts +6 -3
  158. package/lib/formly/field/value/array/index.d.ts +1 -0
  159. package/{src/lib → lib}/formly/field/value/boolean/_boolean.scss +0 -0
  160. package/lib/formly/field/value/boolean/boolean.field.d.ts +5 -5
  161. package/lib/formly/field/value/date/_date.scss +79 -0
  162. package/lib/formly/field/value/date/date.field.module.d.ts +2 -1
  163. package/lib/formly/field/value/date/datetime.field.component.d.ts +16 -13
  164. package/lib/formly/field/value/date/datetime.field.d.ts +14 -0
  165. package/lib/formly/field/value/date/index.d.ts +1 -1
  166. package/{src/lib → lib}/formly/field/value/enum/_enum.scss +0 -0
  167. package/lib/formly/field/value/enum/enum.field.d.ts +2 -2
  168. package/lib/formly/field/value/enum/enum.field.module.d.ts +6 -0
  169. package/lib/formly/field/value/enum/index.d.ts +1 -0
  170. package/lib/formly/field/value/hidden.field.d.ts +2 -2
  171. package/lib/formly/field/value/index.d.ts +1 -0
  172. package/lib/formly/field/value/phone/_phone.scss +55 -0
  173. package/lib/formly/field/value/phone/phone.field.component.d.ts +8 -14
  174. package/lib/formly/field/value/phone/phone.field.d.ts +20 -18
  175. package/lib/formly/field/value/phone/phone.field.module.d.ts +10 -8
  176. package/{src/lib → lib}/formly/field/value/text/_text.scss +0 -0
  177. package/lib/formly/field/value/text/index.d.ts +1 -0
  178. package/lib/formly/field/value/text/text.additional.field.d.ts +19 -0
  179. package/lib/formly/field/value/text/text.address.field.d.ts +8 -9
  180. package/lib/formly/field/value/text/text.field.d.ts +5 -33
  181. package/lib/formly/field/value/text/text.field.module.d.ts +3 -2
  182. package/lib/formly/field/value/value.module.d.ts +13 -0
  183. package/{src/lib → lib}/formly/field/wrapper/_wrapper.scss +15 -2
  184. package/lib/formly/field/wrapper/autotouch.wrapper.component.d.ts +2 -2
  185. package/lib/formly/field/wrapper/expandable.wrapper.component.d.ts +8 -37
  186. package/lib/formly/field/wrapper/expandable.wrapper.delegate.d.ts +36 -0
  187. package/lib/formly/field/wrapper/flex.wrapper.component.d.ts +19 -4
  188. package/lib/formly/field/wrapper/form.wrapper.module.d.ts +10 -8
  189. package/lib/formly/field/wrapper/index.d.ts +2 -2
  190. package/lib/formly/field/wrapper/info.wrapper.component.d.ts +9 -9
  191. package/lib/formly/field/wrapper/section.wrapper.component.d.ts +16 -5
  192. package/lib/formly/field/wrapper/style.wrapper.component.d.ts +22 -0
  193. package/lib/formly/field/wrapper/subsection.wrapper.component.d.ts +16 -5
  194. package/lib/formly/field/wrapper/toggle.wrapper.component.d.ts +6 -14
  195. package/lib/formly/field/wrapper/wrapper.d.ts +34 -0
  196. package/{src/lib → lib}/formly/form_TODO.scss +0 -0
  197. package/lib/formly/formly.context.d.ts +14 -22
  198. package/lib/formly/formly.context.directive.d.ts +17 -0
  199. package/lib/formly/formly.directive.d.ts +7 -3
  200. package/lib/formly/formly.form.component.d.ts +35 -0
  201. package/lib/formly/formly.module.d.ts +7 -6
  202. package/lib/formly/index.d.ts +3 -1
  203. package/lib/index.d.ts +1 -0
  204. package/{src/lib → lib}/layout/_layout.scss +0 -0
  205. package/{src/lib → lib}/style/_all-core.scss +0 -0
  206. package/{src/lib → lib}/style/_all-theme.scss +0 -0
  207. package/{src/lib → lib}/style/_all-typography.scss +0 -0
  208. package/{src/lib → lib}/style/_config.scss +0 -0
  209. package/{src/lib → lib}/style/_core.scss +0 -0
  210. package/{src/lib → lib}/style/_mixin.scss +0 -0
  211. package/{src/lib → lib}/style/_theming.scss +0 -0
  212. package/{src/lib → lib}/style/_variables.scss +0 -0
  213. package/package.json +14 -14
  214. package/esm2020/lib/form/form.changes.directive.mjs +0 -33
  215. package/esm2020/lib/form/form.input.directive.mjs +0 -49
  216. package/esm2020/lib/form/loading/form.loading.directive.mjs +0 -52
  217. package/esm2020/lib/form/loading/index.mjs +0 -2
  218. package/esm2020/lib/formly/field/value/date/date.field.mjs +0 -36
  219. package/esm2020/lib/formly/field/wrapper/flex.wrapper.layout.mjs +0 -20
  220. package/esm2020/lib/formly/field/wrapper/toggle.wrapper.mjs +0 -10
  221. package/esm2020/lib/formly/formly.component.mjs +0 -134
  222. package/lib/form/loading/form.loading.directive.d.ts +0 -19
  223. package/lib/form/loading/index.d.ts +0 -1
  224. package/lib/formly/field/value/date/date.field.d.ts +0 -13
  225. package/lib/formly/field/wrapper/flex.wrapper.layout.d.ts +0 -10
  226. package/lib/formly/field/wrapper/toggle.wrapper.d.ts +0 -7
  227. package/lib/formly/formly.component.d.ts +0 -36
  228. package/src/lib/formly/field/checklist/_checklist.scss +0 -26
  229. package/src/lib/formly/field/checklist/checklist.item_TODO.scss +0 -57
  230. package/src/lib/formly/field/selection/generic_TODO.scss +0 -36
  231. package/src/lib/formly/field/selection/searchable/_searchable.scss +0 -26
  232. package/src/lib/formly/field/texteditor/_texteditor.scss +0 -26
  233. package/src/lib/formly/field/texteditor/texteditor_TODO.scss +0 -32
  234. package/src/lib/formly/field/value/array/_array.scss +0 -26
  235. package/src/lib/formly/field/value/date/_date.scss +0 -26
  236. package/src/lib/formly/field/value/date/date_TODO.scss +0 -27
  237. package/src/lib/formly/field/value/phone/_phone.scss +0 -26
  238. package/src/lib/formly/field/value/phone/phone_TODO.scss +0 -10
  239. package/src/lib/formly/field/wrapper/wrapper_TODO.scss +0 -34
@@ -1,26 +1,28 @@
1
+ import { DbxFormSectionConfig } from '../../wrapper/section.wrapper.component';
1
2
  import { TextFieldConfig } from '../text/text.field';
2
3
  import { FormlyFieldConfig } from '@ngx-formly/core';
3
- import { FieldConfig } from '../../field';
4
- import { DbxInternationalPhoneFieldConfig, InternationalPhoneFormlyFieldConfig } from './phone.field.component';
5
- export interface InternationalPhoneFieldConfig extends FieldConfig, DbxInternationalPhoneFieldConfig {
4
+ import { LabeledFieldConfig } from '../../field';
5
+ import { DbxInternationalPhoneFieldConfig } from './phone.field.component';
6
+ import { RepeatArrayFieldConfig } from '../array/array.field';
7
+ export interface InternationalPhoneFieldConfig extends LabeledFieldConfig, DbxInternationalPhoneFieldConfig {
6
8
  }
7
- export declare function internationalPhoneField({ key, label, placeholder, required }: Partial<InternationalPhoneFieldConfig>): InternationalPhoneFormlyFieldConfig;
8
- export interface PhoneFormlyFieldsConfig {
9
- phoneField?: InternationalPhoneFieldConfig;
9
+ export declare function phoneField(config?: Partial<InternationalPhoneFieldConfig>): FormlyFieldConfig;
10
+ export interface WrappedPhoneAndLabelFieldConfig {
11
+ phoneField?: Partial<InternationalPhoneFieldConfig>;
10
12
  labelField?: TextFieldConfig;
11
13
  }
12
- export declare function phoneAndLabelFields({ phoneField: phone, labelField: label }: PhoneFormlyFieldsConfig): FormlyFieldConfig[];
13
- export interface PhoneAndLabelFieldGroupConfig extends PhoneFormlyFieldsConfig {
14
+ /**
15
+ * Puts a phone and
16
+ * @param param0
17
+ * @returns
18
+ */
19
+ export declare function wrappedPhoneAndLabelField({ phoneField: phone, labelField: label }?: WrappedPhoneAndLabelFieldConfig): FormlyFieldConfig;
20
+ export interface PhoneAndLabelFieldSectionConfig extends DbxFormSectionConfig, WrappedPhoneAndLabelFieldConfig {
14
21
  key?: string;
15
- label?: string;
16
- required?: boolean;
17
22
  }
18
- export declare function phoneAndLabelFieldGroup({ key, label, required, phoneField, labelField }: PhoneAndLabelFieldGroupConfig): FormlyFieldConfig;
19
- export interface PhoneListFieldConfig extends PhoneAndLabelFieldGroupConfig {
20
- maxPhones?: number;
21
- repeatSection?: {
22
- addText: string;
23
- removeText: string;
24
- };
23
+ export declare function phoneAndLabelSectionField({ key, header, hint, phoneField, labelField }?: PhoneAndLabelFieldSectionConfig): FormlyFieldConfig;
24
+ export interface PhoneListFieldConfig extends Omit<RepeatArrayFieldConfig, 'repeatFieldGroup'> {
25
+ phoneAndLabel?: WrappedPhoneAndLabelFieldConfig;
26
+ repeatFieldGroup?: FormlyFieldConfig[];
25
27
  }
26
- export declare function phoneListField({ key, label, repeatSection, required, maxPhones, phoneField, labelField }: PhoneListFieldConfig): FormlyFieldConfig;
28
+ export declare function phoneListField(repeatConfig?: Partial<PhoneListFieldConfig>): FormlyFieldConfig;
@@ -2,15 +2,17 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./phone.field.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/material/input";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "ngx-mat-intl-tel-input";
7
- import * as i6 from "@angular/material/autocomplete";
8
- import * as i7 from "@angular/material/chips";
9
- import * as i8 from "@angular/material/icon";
10
- import * as i9 from "@angular/flex-layout";
11
- import * as i10 from "@ngx-formly/core";
5
+ import * as i4 from "@angular/material/form-field";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "ngx-mat-intl-tel-input";
8
+ import * as i7 from "@angular/material/autocomplete";
9
+ import * as i8 from "@angular/material/chips";
10
+ import * as i9 from "@angular/material/icon";
11
+ import * as i10 from "@angular/flex-layout";
12
+ import * as i11 from "@ngx-formly/material/form-field";
13
+ import * as i12 from "@ngx-formly/core";
12
14
  export declare class DbxFormFormlyPhoneFieldModule {
13
15
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyPhoneFieldModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyPhoneFieldModule, [typeof i1.DbxInternationalPhoneFieldComponent], [typeof i2.CommonModule, typeof i3.MatInputModule, typeof i4.FormsModule, typeof i5.NgxMatIntlTelInputModule, typeof i4.ReactiveFormsModule, typeof i6.MatAutocompleteModule, typeof i7.MatChipsModule, typeof i8.MatIconModule, typeof i9.FlexLayoutModule, typeof i10.FormlyModule], never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyPhoneFieldModule, [typeof i1.DbxPhoneFieldComponent], [typeof i2.CommonModule, typeof i3.MatInputModule, typeof i4.MatFormFieldModule, typeof i5.FormsModule, typeof i6.NgxMatIntlTelInputModule, typeof i5.ReactiveFormsModule, typeof i7.MatAutocompleteModule, typeof i8.MatChipsModule, typeof i9.MatIconModule, typeof i10.FlexLayoutModule, typeof i11.FormlyMatFormFieldModule, typeof i12.FormlyModule], never>;
15
17
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyPhoneFieldModule>;
16
18
  }
@@ -1,3 +1,4 @@
1
1
  export * from './text.address.field';
2
2
  export * from './text.field.module';
3
3
  export * from './text.field';
4
+ export * from './text.additional.field';
@@ -0,0 +1,19 @@
1
+ import { FormlyFieldConfig } from "@ngx-formly/core";
2
+ import { TextFieldConfig } from "./text.field";
3
+ import { LabeledFieldConfig, DescriptionFieldConfig } from "../../field";
4
+ export declare const PHONE_LABEL_MAX_LENGTH = 100;
5
+ export declare const ADDRESS_COUNTRY_MAX_LENGTH = 80;
6
+ export declare const ADDRESS_CITY_MAX_LENGTH = 80;
7
+ export declare const ADDRESS_STATE_MAX_LENGTH = 80;
8
+ export declare const ADDRESS_ZIP_MAX_LENGTH = 20;
9
+ export declare const LABEL_STRING_MAX_LENGTH = 100;
10
+ export declare const SEARCH_STRING_MAX_LENGTH = 100;
11
+ export declare function nameField({ key, label, placeholder, required, minLength, maxLength, attributes }?: Partial<TextFieldConfig>): FormlyFieldConfig;
12
+ export interface EmailFieldConfig extends Partial<LabeledFieldConfig>, DescriptionFieldConfig {
13
+ rows?: number;
14
+ }
15
+ export declare function emailField({ key, label, placeholder, description, required, readonly }?: EmailFieldConfig): FormlyFieldConfig;
16
+ export declare function cityField({ key, required }?: Partial<TextFieldConfig>): FormlyFieldConfig;
17
+ export declare function stateField({ key, required }?: Partial<TextFieldConfig>): FormlyFieldConfig;
18
+ export declare function countryField({ key, required }?: Partial<TextFieldConfig>): FormlyFieldConfig;
19
+ export declare function zipCodeField({ key, required }?: Partial<TextFieldConfig>): FormlyFieldConfig;
@@ -1,12 +1,11 @@
1
1
  import { FormlyFieldConfig } from '@ngx-formly/core';
2
+ import { FieldConfig } from '../../field';
2
3
  export declare const ADDRESS_LINE_MAX_LENGTH = 100;
3
4
  export declare function addressFormlyFields(): FormlyFieldConfig[];
4
- export declare function addressField({ key, required }: {
5
- key?: string | undefined;
6
- required?: boolean | undefined;
7
- }): FormlyFieldConfig;
8
- export declare function addressListField({ key, required, maxAddresses }: {
9
- key?: string | undefined;
10
- required?: boolean | undefined;
11
- maxAddresses?: number | undefined;
12
- }): FormlyFieldConfig;
5
+ export interface AddressFieldConfig extends FieldConfig {
6
+ }
7
+ export declare function addressField({ key, required }?: Partial<AddressFieldConfig>): FormlyFieldConfig;
8
+ export interface AddressListFieldConfig extends FieldConfig {
9
+ maxAddresses?: number;
10
+ }
11
+ export declare function addressListField({ key, required, maxAddresses }?: Partial<AddressListFieldConfig>): FormlyFieldConfig;
@@ -1,42 +1,14 @@
1
1
  import { FormlyFieldConfig } from '@ngx-formly/core/lib/core';
2
- import { AttributesFieldConfig, FieldConfig, DescriptionFieldConfig } from '../../field';
3
- export declare const PHONE_LABEL_MAX_LENGTH = 100;
4
- export declare const ADDRESS_COUNTRY_MAX_LENGTH = 80;
5
- export declare const ADDRESS_CITY_MAX_LENGTH = 80;
6
- export declare const ADDRESS_STATE_MAX_LENGTH = 80;
7
- export declare const ADDRESS_ZIP_MAX_LENGTH = 20;
8
- export declare const LABEL_STRING_MAX_LENGTH = 100;
9
- export declare const SEARCH_STRING_MAX_LENGTH = 100;
2
+ import { AttributesFieldConfig, LabeledFieldConfig } from '../../field';
10
3
  export interface TextFieldLengthConfig {
11
4
  minLength?: number;
12
5
  maxLength?: number;
13
6
  }
14
- export interface TextFieldConfig extends FieldConfig, TextFieldLengthConfig, AttributesFieldConfig {
7
+ export interface TextFieldConfig extends LabeledFieldConfig, TextFieldLengthConfig, AttributesFieldConfig {
15
8
  pattern?: string | RegExp;
16
9
  }
17
- export declare function textField({ key, label, placeholder, required, attributes, readonly, autocomplete, minLength, maxLength, pattern }: TextFieldConfig): FormlyFieldConfig;
18
- export interface TextAreaFieldConfig extends FieldConfig, TextFieldLengthConfig, AttributesFieldConfig {
10
+ export declare function textField(config: TextFieldConfig): FormlyFieldConfig;
11
+ export interface TextAreaFieldConfig extends LabeledFieldConfig, TextFieldLengthConfig, AttributesFieldConfig {
19
12
  rows?: number;
20
13
  }
21
- export declare function textAreaField({ key, label, placeholder, rows, required, minLength, maxLength, attributes }: TextAreaFieldConfig): FormlyFieldConfig;
22
- export declare function nameField({ key, label, placeholder, required, minLength, maxLength, attributes }?: Partial<TextFieldConfig>): FormlyFieldConfig;
23
- export interface EmailFieldConfig extends FieldConfig, DescriptionFieldConfig {
24
- rows?: number;
25
- }
26
- export declare function emailField({ key, label, placeholder, description, required, readonly }: EmailFieldConfig): FormlyFieldConfig;
27
- export declare function cityField({ key, required }: {
28
- key?: string | undefined;
29
- required?: boolean | undefined;
30
- }): FormlyFieldConfig;
31
- export declare function stateField({ key, required }: {
32
- key?: string | undefined;
33
- required?: boolean | undefined;
34
- }): FormlyFieldConfig;
35
- export declare function countryField({ key, required }: {
36
- key?: string | undefined;
37
- required?: boolean | undefined;
38
- }): FormlyFieldConfig;
39
- export declare function zipCodeField({ key, required }: {
40
- key?: string | undefined;
41
- required?: boolean | undefined;
42
- }): FormlyFieldConfig;
14
+ export declare function textAreaField(config: TextAreaFieldConfig): FormlyFieldConfig;
@@ -1,7 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "../../wrapper/form.wrapper.module";
2
+ import * as i1 from "@ngx-formly/material";
3
+ import * as i2 from "../../wrapper/form.wrapper.module";
3
4
  export declare class DbxFormFormlyTextFieldModule {
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyTextFieldModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyTextFieldModule, never, never, [typeof i1.DbxFormFormlyWrapperModule]>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyTextFieldModule, never, [typeof i1.FormlyMaterialModule], [typeof i2.DbxFormFormlyWrapperModule]>;
6
7
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyTextFieldModule>;
7
8
  }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "./array/array.field.module";
4
+ import * as i3 from "./boolean/boolean.field.module";
5
+ import * as i4 from "./date/date.field.module";
6
+ import * as i5 from "./enum/enum.field.module";
7
+ import * as i6 from "./phone/phone.field.module";
8
+ import * as i7 from "./text/text.field.module";
9
+ export declare class DbxFormFormlyValueModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyValueModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyValueModule, never, [typeof i1.CommonModule], [typeof i2.DbxFormFormlyArrayFieldModule, typeof i3.DbxFormFormlyBooleanFieldModule, typeof i4.DbxFormFormlyDateFieldModule, typeof i5.DbxFormFormlyEnumFieldModule, typeof i6.DbxFormFormlyPhoneFieldModule, typeof i7.DbxFormFormlyTextFieldModule]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyValueModule>;
13
+ }
@@ -1,10 +1,23 @@
1
1
  @use '../../../style/theming';
2
2
 
3
3
  // MARK: Variables
4
-
4
+ $form-flex-section-group-padding: 4px;
5
+ $form-flex-section-group-item-padding: $form-flex-section-group-padding * 2;
5
6
 
6
7
  // MARK: Mixin
7
- @mixin core() {}
8
+ @mixin core() {
9
+
10
+ .dbx-form-expand-wrapper-button {
11
+ text-decoration: underline;
12
+ margin-right: 8px;
13
+ margin-bottom: 6px;
14
+ }
15
+
16
+ .dbx-form-toggle-wrapper-toggle {
17
+ margin-bottom: 6px;
18
+ }
19
+
20
+ }
8
21
 
9
22
  @mixin color($theme-config) {}
10
23
 
@@ -1,10 +1,10 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FieldWrapper } from '@ngx-formly/core';
2
+ import { FieldTypeConfig, FieldWrapper } from '@ngx-formly/core';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Wrapper than sets the field to "touched" when the value changes and the field is not pristine.
6
6
  */
7
- export declare class AutoTouchFieldWrapperComponent extends FieldWrapper implements OnInit {
7
+ export declare class AutoTouchFieldWrapperComponent extends FieldWrapper<FieldTypeConfig> implements OnInit {
8
8
  ngOnInit(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<AutoTouchFieldWrapperComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<AutoTouchFieldWrapperComponent, "ng-component", never, {}, {}, never, never>;
@@ -1,43 +1,14 @@
1
- import { hasValueOrNotEmpty, Maybe } from '@dereekb/util';
2
- import { FieldWrapper, FormlyTemplateOptions } from '@ngx-formly/core';
3
- import { BehaviorSubject } from 'rxjs';
4
- import { OnDestroy, OnInit } from '@angular/core';
5
- import { AbstractControl } from '@angular/forms';
6
- import { FormlyFieldConfig } from '@ngx-formly/material/form-field';
1
+ import { AbstractFormExpandableSectionWrapperDirective, AbstractFormExpandableSectionConfig } from './expandable.wrapper.delegate';
7
2
  import * as i0 from "@angular/core";
8
- export interface FormExpandableSectionConfig<T = any> {
9
- expandLabel?: string;
10
- /**
11
- * Optional function to use for checking value existence.
12
- */
13
- hasValueFn?: (value: T) => boolean;
14
- }
15
- export interface FormExpandableSectionWrapperTemplateOptions<T = any> extends FormlyTemplateOptions {
16
- expandableSection?: FormExpandableSectionConfig<T>;
17
- }
18
- export interface FormExpandableSectionFormlyConfig<T = any> extends FormlyFieldConfig {
19
- templateOptions?: FormExpandableSectionWrapperTemplateOptions<T>;
20
- }
21
- export declare const DEFAULT_HAS_VALUE_FN: typeof hasValueOrNotEmpty;
22
- export declare class AbstractFormExpandableSectionWrapperDirective<T, F extends FormExpandableSectionFormlyConfig<T> = FormExpandableSectionFormlyConfig<T>> extends FieldWrapper<F> implements OnInit, OnDestroy {
23
- protected _formControlObs: BehaviorSubject<Maybe<AbstractControl>>;
24
- readonly formControl$: import("rxjs").Observable<AbstractControl>;
25
- protected _toggleOpen: BehaviorSubject<Maybe<boolean>>;
26
- readonly show$: import("rxjs").Observable<any>;
27
- readonly hasValue$: import("rxjs").Observable<any>;
28
- get expandableSection(): Maybe<FormExpandableSectionConfig<T>>;
29
- get hasValueFn(): (value: T) => any;
30
- get expandLabel(): string;
31
- open(): void;
32
- ngOnInit(): void;
33
- ngOnDestroy(): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormExpandableSectionWrapperDirective<any, any>, never>;
35
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFormExpandableSectionWrapperDirective<any, any>, never, never, {}, {}, never>;
3
+ export declare type DbxFormExpandWrapperButtonType = 'button' | 'text';
4
+ export interface DbxFormExpandWrapperConfig<T = any> extends AbstractFormExpandableSectionConfig<T> {
5
+ buttonType?: DbxFormExpandWrapperButtonType;
36
6
  }
37
7
  /**
38
8
  * Section that is expandable by a button until a value is set, or the button is pressed.
39
9
  */
40
- export declare class FormExpandableSectionWrapperComponent<T = any, F extends FormExpandableSectionFormlyConfig<T> = FormExpandableSectionFormlyConfig<T>> extends AbstractFormExpandableSectionWrapperDirective<T, F> {
41
- static ɵfac: i0.ɵɵFactoryDeclaration<FormExpandableSectionWrapperComponent<any, any>, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<FormExpandableSectionWrapperComponent<any, any>, "ng-component", never, {}, {}, never, never>;
10
+ export declare class DbxFormExpandWrapperComponent extends AbstractFormExpandableSectionWrapperDirective<DbxFormExpandWrapperConfig> {
11
+ get buttonType(): DbxFormExpandWrapperButtonType;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormExpandWrapperComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormExpandWrapperComponent, "ng-component", never, {}, {}, never, never>;
43
14
  }
@@ -0,0 +1,36 @@
1
+ import { FormlyFieldConfig } from '@ngx-formly/material/form-field';
2
+ import { Maybe } from '@dereekb/util';
3
+ import { FieldWrapper, FormlyTemplateOptions, FieldTypeConfig } from '@ngx-formly/core';
4
+ import { BehaviorSubject } from 'rxjs';
5
+ import { OnDestroy, OnInit } from '@angular/core';
6
+ import { AbstractControl } from '@angular/forms';
7
+ import * as i0 from "@angular/core";
8
+ export interface AbstractFormExpandableSectionConfig<T = any> {
9
+ expandLabel?: string;
10
+ /**
11
+ * Optional function to use for checking value existence.
12
+ */
13
+ hasValueFn?: (value: T) => boolean;
14
+ }
15
+ export interface FormExpandableSectionWrapperTemplateOptions<S extends AbstractFormExpandableSectionConfig> extends FormlyTemplateOptions {
16
+ expandWrapper?: S;
17
+ }
18
+ export interface FormExpandableSectionFormlyConfig<S> extends FormlyFieldConfig {
19
+ templateOptions?: FormExpandableSectionWrapperTemplateOptions<S> & FormlyTemplateOptions;
20
+ }
21
+ export declare const DEFAULT_HAS_VALUE_FN: (x: Maybe<object>) => boolean;
22
+ export declare class AbstractFormExpandableSectionWrapperDirective<S extends AbstractFormExpandableSectionConfig = AbstractFormExpandableSectionConfig> extends FieldWrapper<FormExpandableSectionFormlyConfig<S> & FieldTypeConfig> implements OnInit, OnDestroy {
23
+ protected _formControlObs: BehaviorSubject<Maybe<AbstractControl>>;
24
+ readonly formControl$: import("rxjs").Observable<AbstractControl>;
25
+ protected _toggleOpen: BehaviorSubject<Maybe<boolean>>;
26
+ readonly show$: import("rxjs").Observable<any>;
27
+ readonly hasValue$: import("rxjs").Observable<any>;
28
+ get expandableSection(): Maybe<S>;
29
+ get hasValueFn(): (value: any) => any;
30
+ get expandLabel(): Maybe<string>;
31
+ open(): void;
32
+ ngOnInit(): void;
33
+ ngOnDestroy(): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormExpandableSectionWrapperDirective<any>, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFormExpandableSectionWrapperDirective<any>, never, never, {}, {}, never>;
36
+ }
@@ -1,6 +1,21 @@
1
- import { FieldWrapper } from '@ngx-formly/core';
1
+ import { ScreenMediaWidthType } from '@dereekb/dbx-web';
2
+ import { Maybe } from '@dereekb/util';
3
+ import { FieldWrapper, FormlyFieldConfig, FormlyTemplateOptions } from '@ngx-formly/core';
2
4
  import * as i0 from "@angular/core";
3
- export declare class FormFlexWrapperComponent extends FieldWrapper {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFlexWrapperComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFlexWrapperComponent, "ng-component", never, {}, {}, never, never>;
5
+ export interface DbxFlexWrapperConfig {
6
+ breakpoint?: ScreenMediaWidthType;
7
+ relative?: boolean;
8
+ }
9
+ export interface DbxFlexWrapperWrapperTemplateOptions extends FormlyTemplateOptions {
10
+ flexWrapper?: DbxFlexWrapperConfig;
11
+ }
12
+ export interface DbxFlexWrapperWrapperConfig extends FormlyFieldConfig {
13
+ templateOptions?: DbxFlexWrapperWrapperTemplateOptions;
14
+ }
15
+ export declare class DbxFormFlexWrapperComponent extends FieldWrapper<DbxFlexWrapperWrapperConfig> {
16
+ get flexWrapper(): Maybe<DbxFlexWrapperConfig>;
17
+ get breakpoint(): ScreenMediaWidthType | undefined;
18
+ get relative(): boolean;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFlexWrapperComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormFlexWrapperComponent, "ng-component", never, {}, {}, never, never>;
6
21
  }
@@ -5,15 +5,17 @@ import * as i3 from "./subsection.wrapper.component";
5
5
  import * as i4 from "./info.wrapper.component";
6
6
  import * as i5 from "./expandable.wrapper.component";
7
7
  import * as i6 from "./toggle.wrapper.component";
8
- import * as i7 from "@angular/common";
9
- import * as i8 from "@dereekb/dbx-web";
10
- import * as i9 from "@angular/material/button";
11
- import * as i10 from "@angular/material/slide-toggle";
12
- import * as i11 from "@angular/material/icon";
13
- import * as i12 from "@angular/flex-layout";
14
- import * as i13 from "@ngx-formly/core";
8
+ import * as i7 from "./flex.wrapper.component";
9
+ import * as i8 from "./style.wrapper.component";
10
+ import * as i9 from "@angular/common";
11
+ import * as i10 from "@dereekb/dbx-web";
12
+ import * as i11 from "@angular/material/button";
13
+ import * as i12 from "@angular/material/slide-toggle";
14
+ import * as i13 from "@angular/material/icon";
15
+ import * as i14 from "@angular/flex-layout";
16
+ import * as i15 from "@ngx-formly/core";
15
17
  export declare class DbxFormFormlyWrapperModule {
16
18
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyWrapperModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyWrapperModule, [typeof i1.AutoTouchFieldWrapperComponent, typeof i2.FormSectionWrapperComponent, typeof i3.FormSubsectionWrapperComponent, typeof i4.FormInfoSectionWrapperComponent, typeof i5.FormExpandableSectionWrapperComponent, typeof i6.FormToggleSectionWrapperComponent], [typeof i7.CommonModule, typeof i8.DbxTextModule, typeof i9.MatButtonModule, typeof i10.MatSlideToggleModule, typeof i11.MatIconModule, typeof i12.FlexLayoutModule, typeof i13.FormlyModule], never>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyWrapperModule, [typeof i1.AutoTouchFieldWrapperComponent, typeof i2.DbxFormSectionWrapperComponent, typeof i3.DbxFormSubsectionWrapperComponent, typeof i4.DbxFormInfoWrapperComponent, typeof i5.DbxFormExpandWrapperComponent, typeof i6.DbxFormToggleWrapperComponent, typeof i7.DbxFormFlexWrapperComponent, typeof i8.DbxFormStyleWrapperComponent], [typeof i9.CommonModule, typeof i10.DbxTextModule, typeof i10.DbxFlexLayoutModule, typeof i10.DbxSectionLayoutModule, typeof i11.MatButtonModule, typeof i12.MatSlideToggleModule, typeof i13.MatIconModule, typeof i14.FlexLayoutModule, typeof i15.FormlyModule], never>;
18
20
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyWrapperModule>;
19
21
  }
@@ -1,10 +1,10 @@
1
+ export * from './expandable.wrapper.delegate';
1
2
  export * from './autotouch.wrapper.component';
2
3
  export * from './expandable.wrapper.component';
3
4
  export * from './flex.wrapper.component';
4
- export * from './flex.wrapper.layout';
5
5
  export * from './form.wrapper.module';
6
6
  export * from './info.wrapper.component';
7
7
  export * from './section.wrapper.component';
8
8
  export * from './subsection.wrapper.component';
9
9
  export * from './toggle.wrapper.component';
10
- export * from './toggle.wrapper';
10
+ export * from './wrapper';
@@ -1,17 +1,17 @@
1
1
  import { FieldWrapper, FormlyFieldConfig, FormlyTemplateOptions } from '@ngx-formly/core';
2
2
  import * as i0 from "@angular/core";
3
- export interface FormInfoSectionConfig<T> {
3
+ export interface DbxFormInfoConfig {
4
4
  onInfoClick: () => void;
5
5
  }
6
- export interface FormInfoSectionWrapperTemplateOptions<T = any> extends FormlyTemplateOptions {
7
- infoSection: FormInfoSectionConfig<T>;
6
+ export interface DbxFormInfoWrapperTemplateOptions extends FormlyTemplateOptions {
7
+ infoWrapper: DbxFormInfoConfig;
8
8
  }
9
- export interface FormInfoSectionWFormlyConfig<T = any> extends FormlyFieldConfig {
10
- templateOptions?: FormInfoSectionWrapperTemplateOptions<T>;
9
+ export interface DbxFormInfoWrapperConfig extends FormlyFieldConfig {
10
+ templateOptions?: DbxFormInfoWrapperTemplateOptions;
11
11
  }
12
- export declare class FormInfoSectionWrapperComponent<T> extends FieldWrapper<FormInfoSectionWFormlyConfig<T>> {
13
- get infoSection(): FormInfoSectionConfig<T>;
12
+ export declare class DbxFormInfoWrapperComponent extends FieldWrapper<DbxFormInfoWrapperConfig> {
13
+ get infoWrapper(): DbxFormInfoConfig;
14
14
  onInfoClick(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<FormInfoSectionWrapperComponent<any>, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<FormInfoSectionWrapperComponent<any>, "ng-component", never, {}, {}, never, never>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormInfoWrapperComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormInfoWrapperComponent, "ng-component", never, {}, {}, never, never>;
17
17
  }
@@ -1,8 +1,19 @@
1
1
  import { Maybe } from '@dereekb/util';
2
- import { FieldWrapper } from '@ngx-formly/core';
2
+ import { FieldTypeConfig, FieldWrapper, FormlyFieldConfig, FormlyTemplateOptions } from '@ngx-formly/core';
3
3
  import * as i0 from "@angular/core";
4
- export declare class FormSectionWrapperComponent extends FieldWrapper {
5
- get description(): Maybe<string>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<FormSectionWrapperComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<FormSectionWrapperComponent, "ng-component", never, {}, {}, never, never>;
4
+ export interface DbxFormSectionConfig {
5
+ header?: string;
6
+ hint?: string;
7
+ }
8
+ export interface DbxFormSectionWrapperTemplateOptions extends FormlyTemplateOptions {
9
+ sectionWrapper?: DbxFormSectionConfig;
10
+ }
11
+ export interface FormSectionFormlyConfig extends FormlyFieldConfig {
12
+ templateOptions?: DbxFormSectionWrapperTemplateOptions;
13
+ }
14
+ export declare class DbxFormSectionWrapperComponent extends FieldWrapper<FormSectionFormlyConfig & FieldTypeConfig> {
15
+ get header(): Maybe<string>;
16
+ get hint(): Maybe<string>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSectionWrapperComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSectionWrapperComponent, "ng-component", never, {}, {}, never, never>;
8
19
  }
@@ -0,0 +1,22 @@
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
+ import { ObservableGetter } from '@dereekb/rxjs';
3
+ import { Maybe } from '@dereekb/util';
4
+ import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
5
+ import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export interface DbxFormStyleWrapperConfig {
8
+ style: ObservableGetter<string>;
9
+ }
10
+ export interface DbxFormStyleWrapperFormlyConfig extends FormlyFieldConfig {
11
+ styleWrapper: DbxFormStyleWrapperConfig;
12
+ }
13
+ export declare class DbxFormStyleWrapperComponent extends FieldWrapper<DbxFormStyleWrapperFormlyConfig> implements OnInit, OnDestroy {
14
+ private _style;
15
+ readonly style$: Observable<Maybe<string>>;
16
+ get styleWrapper(): DbxFormStyleWrapperConfig;
17
+ get styleGetter(): ObservableGetter<string>;
18
+ ngOnInit(): void;
19
+ ngOnDestroy(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormStyleWrapperComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormStyleWrapperComponent, "ng-component", never, {}, {}, never, never>;
22
+ }
@@ -1,8 +1,19 @@
1
1
  import { Maybe } from '@dereekb/util';
2
- import { FieldWrapper } from '@ngx-formly/core';
2
+ import { FieldTypeConfig, FieldWrapper, FormlyFieldConfig, FormlyTemplateOptions } from '@ngx-formly/core';
3
3
  import * as i0 from "@angular/core";
4
- export declare class FormSubsectionWrapperComponent extends FieldWrapper {
5
- get description(): Maybe<string>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<FormSubsectionWrapperComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<FormSubsectionWrapperComponent, "ng-component", never, {}, {}, never, never>;
4
+ export interface DbxFormSubsectionConfig {
5
+ header?: string;
6
+ hint?: string;
7
+ }
8
+ export interface DbxFormSubsectionWrapperTemplateOptions extends FormlyTemplateOptions {
9
+ subsectionWrapper?: DbxFormSubsectionConfig;
10
+ }
11
+ export interface DbxFormSubsectionFormlyConfig extends FormlyFieldConfig {
12
+ templateOptions?: DbxFormSubsectionWrapperTemplateOptions;
13
+ }
14
+ export declare class DbxFormSubsectionWrapperComponent extends FieldWrapper<DbxFormSubsectionFormlyConfig & FieldTypeConfig> {
15
+ get header(): Maybe<string>;
16
+ get hint(): Maybe<string>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSubsectionWrapperComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSubsectionWrapperComponent, "ng-component", never, {}, {}, never, never>;
8
19
  }
@@ -1,24 +1,16 @@
1
1
  import { Maybe } from '@dereekb/util';
2
- import { FormlyFieldConfig } from '@ngx-formly/core';
3
2
  import { Observable } from 'rxjs';
4
- import { AbstractFormExpandableSectionWrapperDirective, FormExpandableSectionWrapperTemplateOptions } from './expandable.wrapper.component';
3
+ import { AbstractFormExpandableSectionConfig, AbstractFormExpandableSectionWrapperDirective } from './expandable.wrapper.delegate';
5
4
  import * as i0 from "@angular/core";
6
- export interface FormToggleSectionConfig {
5
+ export interface DbxFormToggleWrapperConfig<T = any> extends AbstractFormExpandableSectionConfig<T> {
7
6
  toggleLabelObs?: (open: Maybe<boolean>) => Observable<string>;
8
7
  }
9
- export interface FormToggleSectionWrapperTemplateOptions<T = any> extends FormExpandableSectionWrapperTemplateOptions<T> {
10
- toggleSection?: FormToggleSectionConfig;
11
- }
12
- export interface FormToggleSectionFormlyConfig<T = any> extends FormlyFieldConfig {
13
- templateOptions?: FormToggleSectionWrapperTemplateOptions<T>;
14
- }
15
8
  /**
16
9
  * Section that is expandable by a button until a value is set, or the button is pressed.
17
10
  */
18
- export declare class FormToggleSectionWrapperComponent<T = any> extends AbstractFormExpandableSectionWrapperDirective<T, FormToggleSectionFormlyConfig<T>> {
19
- get toggleSection(): Maybe<FormToggleSectionConfig>;
20
- readonly $slideLabel: Observable<string>;
11
+ export declare class DbxFormToggleWrapperComponent extends AbstractFormExpandableSectionWrapperDirective<DbxFormToggleWrapperConfig> {
12
+ readonly slideLabel$: Observable<Maybe<string>>;
21
13
  onToggleChange(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<FormToggleSectionWrapperComponent<any>, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<FormToggleSectionWrapperComponent<any>, "ng-component", never, {}, {}, never, never>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormToggleWrapperComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormToggleWrapperComponent, "ng-component", never, {}, {}, never, never>;
24
16
  }
@@ -0,0 +1,34 @@
1
+ import { DbxFormStyleWrapperConfig } from './style.wrapper.component';
2
+ import { DbxFlexWrapperConfig } from './flex.wrapper.component';
3
+ import { FormlyFieldConfig } from '@ngx-formly/core';
4
+ import { DbxFormToggleWrapperConfig } from './toggle.wrapper.component';
5
+ import { DbxFormSectionConfig } from './section.wrapper.component';
6
+ import { DbxFormSubsectionConfig } from './subsection.wrapper.component';
7
+ import { DbxFormInfoConfig } from './info.wrapper.component';
8
+ import { DbxFormExpandWrapperConfig } from './expandable.wrapper.component';
9
+ import { DbxFlexSize } from '@dereekb/dbx-web';
10
+ export declare const EXPANDABLE_WRAPPER_KEY = "expandable";
11
+ export declare const TOGGLE_WRAPPER_KEY = "toggle";
12
+ export declare const SECTION_WRAPPER_KEY = "section";
13
+ export declare const SUBSECTION_WRAPPER_KEY = "subsection";
14
+ export declare const INFO_WRAPPER_KEY = "info";
15
+ export declare const FLEX_WRAPPER_KEY = "flex";
16
+ export declare const STYLE_WRAPPER_KEY = "style";
17
+ export declare function addWrapperToFormlyFieldConfig<T extends object>(fieldConfig: FormlyFieldConfig, wrapperKey: string, wrapperTemplateOptionsConfig: T): FormlyFieldConfig;
18
+ export declare function expandWrapper(fieldConfig: FormlyFieldConfig, expandWrapper?: DbxFormExpandWrapperConfig): FormlyFieldConfig;
19
+ export declare function toggleWrapper(fieldConfig: FormlyFieldConfig, expandWrapper?: DbxFormToggleWrapperConfig): FormlyFieldConfig;
20
+ export declare function sectionWrapper(fieldConfig: FormlyFieldConfig, sectionWrapper?: DbxFormSectionConfig): FormlyFieldConfig;
21
+ export declare function subsectionWrapper(fieldConfig: FormlyFieldConfig, subsectionWrapper?: DbxFormSubsectionConfig): FormlyFieldConfig;
22
+ export declare function infoWrapper(fieldConfig: FormlyFieldConfig, infoWrapper: DbxFormInfoConfig): FormlyFieldConfig;
23
+ export declare function styleWrapper(fieldConfig: FormlyFieldConfig, styleWrapper: DbxFormStyleWrapperConfig): FormlyFieldConfig;
24
+ export interface DbxFlexLayoutWrapperGroupFieldConfig {
25
+ field: FormlyFieldConfig;
26
+ /**
27
+ * Flex space sizing for the field. If undefined it will default to the provided default size.
28
+ */
29
+ size?: DbxFlexSize;
30
+ }
31
+ export interface DbxFlexLayoutWrapperGroupFieldConfigDefaults extends DbxFlexWrapperConfig, Omit<DbxFlexLayoutWrapperGroupFieldConfig, 'field'> {
32
+ }
33
+ export declare function checkIsFieldFlexLayoutGroupFieldConfig(input: FormlyFieldConfig | DbxFlexLayoutWrapperGroupFieldConfig): input is DbxFlexLayoutWrapperGroupFieldConfig;
34
+ export declare function flexLayoutWrapper(fieldConfigs: (FormlyFieldConfig | DbxFlexLayoutWrapperGroupFieldConfig)[], { relative, breakpoint, size: defaultSize }?: DbxFlexLayoutWrapperGroupFieldConfigDefaults): FormlyFieldConfig;
File without changes