@dereekb/dbx-form 0.0.1

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 (217) hide show
  1. package/README.md +6 -0
  2. package/dereekb-dbx-form.d.ts +5 -0
  3. package/esm2020/dereekb-dbx-form.mjs +5 -0
  4. package/esm2020/index.mjs +2 -0
  5. package/esm2020/lib/form/action/form.action.directive.mjs +131 -0
  6. package/esm2020/lib/form/action/form.action.module.mjs +30 -0
  7. package/esm2020/lib/form/action/index.mjs +3 -0
  8. package/esm2020/lib/form/form.changes.directive.mjs +33 -0
  9. package/esm2020/lib/form/form.input.directive.mjs +49 -0
  10. package/esm2020/lib/form/form.mjs +20 -0
  11. package/esm2020/lib/form/form.module.mjs +36 -0
  12. package/esm2020/lib/form/index.mjs +7 -0
  13. package/esm2020/lib/form/loading/form.loading.directive.mjs +52 -0
  14. package/esm2020/lib/form/loading/index.mjs +2 -0
  15. package/esm2020/lib/formly/field/checklist/checklist.item.field.component.mjs +91 -0
  16. package/esm2020/lib/formly/field/checklist/checklist.item.field.content.default.component.mjs +38 -0
  17. package/esm2020/lib/formly/field/checklist/checklist.item.field.mjs +119 -0
  18. package/esm2020/lib/formly/field/checklist/checklist.item.field.module.mjs +81 -0
  19. package/esm2020/lib/formly/field/checklist/checklist.item.mjs +2 -0
  20. package/esm2020/lib/formly/field/checklist/index.mjs +6 -0
  21. package/esm2020/lib/formly/field/component/component.field.component.mjs +35 -0
  22. package/esm2020/lib/formly/field/component/component.field.mjs +7 -0
  23. package/esm2020/lib/formly/field/component/component.field.module.mjs +42 -0
  24. package/esm2020/lib/formly/field/component/index.mjs +4 -0
  25. package/esm2020/lib/formly/field/field.mjs +21 -0
  26. package/esm2020/lib/formly/field/index.mjs +7 -0
  27. package/esm2020/lib/formly/field/selection/index.mjs +4 -0
  28. package/esm2020/lib/formly/field/selection/pickable/index.mjs +6 -0
  29. package/esm2020/lib/formly/field/selection/pickable/pickable.chip.field.component.mjs +30 -0
  30. package/esm2020/lib/formly/field/selection/pickable/pickable.field.directive.mjs +244 -0
  31. package/esm2020/lib/formly/field/selection/pickable/pickable.field.module.mjs +96 -0
  32. package/esm2020/lib/formly/field/selection/pickable/pickable.list.field.component.mjs +30 -0
  33. package/esm2020/lib/formly/field/selection/pickable/pickable.mjs +2 -0
  34. package/esm2020/lib/formly/field/selection/searchable/index.mjs +9 -0
  35. package/esm2020/lib/formly/field/selection/searchable/searchable.chip.field.component.mjs +45 -0
  36. package/esm2020/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.mjs +73 -0
  37. package/esm2020/lib/formly/field/selection/searchable/searchable.field.directive.mjs +237 -0
  38. package/esm2020/lib/formly/field/selection/searchable/searchable.field.mjs +45 -0
  39. package/esm2020/lib/formly/field/selection/searchable/searchable.field.module.mjs +107 -0
  40. package/esm2020/lib/formly/field/selection/searchable/searchable.mjs +2 -0
  41. package/esm2020/lib/formly/field/selection/searchable/searchable.text.field.component.mjs +31 -0
  42. package/esm2020/lib/formly/field/selection/searchable/text.chip.field.mjs +15 -0
  43. package/esm2020/lib/formly/field/selection/selection.mjs +2 -0
  44. package/esm2020/lib/formly/field/value/array/array.field.component.mjs +87 -0
  45. package/esm2020/lib/formly/field/value/array/array.field.module.mjs +52 -0
  46. package/esm2020/lib/formly/field/value/array/index.mjs +3 -0
  47. package/esm2020/lib/formly/field/value/boolean/boolean.field.mjs +50 -0
  48. package/esm2020/lib/formly/field/value/boolean/boolean.field.module.mjs +16 -0
  49. package/esm2020/lib/formly/field/value/boolean/index.mjs +3 -0
  50. package/esm2020/lib/formly/field/value/date/date.field.mjs +36 -0
  51. package/esm2020/lib/formly/field/value/date/date.field.module.mjs +87 -0
  52. package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +226 -0
  53. package/esm2020/lib/formly/field/value/date/index.mjs +4 -0
  54. package/esm2020/lib/formly/field/value/enum/enum.field.mjs +18 -0
  55. package/esm2020/lib/formly/field/value/enum/enum.mjs +2 -0
  56. package/esm2020/lib/formly/field/value/enum/index.mjs +4 -0
  57. package/esm2020/lib/formly/field/value/hidden.field.mjs +8 -0
  58. package/esm2020/lib/formly/field/value/index.mjs +8 -0
  59. package/esm2020/lib/formly/field/value/phone/index.mjs +4 -0
  60. package/esm2020/lib/formly/field/value/phone/phone.field.component.mjs +44 -0
  61. package/esm2020/lib/formly/field/value/phone/phone.field.mjs +64 -0
  62. package/esm2020/lib/formly/field/value/phone/phone.field.module.mjs +67 -0
  63. package/esm2020/lib/formly/field/value/text/index.mjs +4 -0
  64. package/esm2020/lib/formly/field/value/text/text.address.field.mjs +65 -0
  65. package/esm2020/lib/formly/field/value/text/text.field.mjs +125 -0
  66. package/esm2020/lib/formly/field/value/text/text.field.module.mjs +19 -0
  67. package/esm2020/lib/formly/field/wrapper/autotouch.wrapper.component.mjs +26 -0
  68. package/esm2020/lib/formly/field/wrapper/expandable.wrapper.component.mjs +83 -0
  69. package/esm2020/lib/formly/field/wrapper/flex.wrapper.component.mjs +22 -0
  70. package/esm2020/lib/formly/field/wrapper/flex.wrapper.layout.mjs +20 -0
  71. package/esm2020/lib/formly/field/wrapper/form.wrapper.module.mjs +84 -0
  72. package/esm2020/lib/formly/field/wrapper/index.mjs +11 -0
  73. package/esm2020/lib/formly/field/wrapper/info.wrapper.component.mjs +47 -0
  74. package/esm2020/lib/formly/field/wrapper/section.wrapper.component.mjs +35 -0
  75. package/esm2020/lib/formly/field/wrapper/subsection.wrapper.component.mjs +35 -0
  76. package/esm2020/lib/formly/field/wrapper/toggle.wrapper.component.mjs +58 -0
  77. package/esm2020/lib/formly/field/wrapper/toggle.wrapper.mjs +10 -0
  78. package/esm2020/lib/formly/formly.component.mjs +134 -0
  79. package/esm2020/lib/formly/formly.context.mjs +111 -0
  80. package/esm2020/lib/formly/formly.directive.mjs +101 -0
  81. package/esm2020/lib/formly/formly.module.mjs +59 -0
  82. package/esm2020/lib/formly/index.mjs +6 -0
  83. package/esm2020/lib/index.mjs +5 -0
  84. package/esm2020/lib/layout/form.layout.module.mjs +26 -0
  85. package/esm2020/lib/layout/form.spacer.component.mjs +17 -0
  86. package/esm2020/lib/layout/index.mjs +3 -0
  87. package/esm2020/lib/validator/boolean.mjs +12 -0
  88. package/esm2020/lib/validator/email.mjs +6 -0
  89. package/esm2020/lib/validator/index.mjs +4 -0
  90. package/esm2020/lib/validator/number.mjs +21 -0
  91. package/fesm2015/dereekb-dbx-form.mjs +3295 -0
  92. package/fesm2015/dereekb-dbx-form.mjs.map +1 -0
  93. package/fesm2020/dereekb-dbx-form.mjs +3289 -0
  94. package/fesm2020/dereekb-dbx-form.mjs.map +1 -0
  95. package/index.d.ts +1 -0
  96. package/lib/form/action/form.action.directive.d.ts +44 -0
  97. package/lib/form/action/form.action.module.d.ts +9 -0
  98. package/lib/form/action/index.d.ts +2 -0
  99. package/lib/form/form.changes.directive.d.ts +15 -0
  100. package/lib/form/form.d.ts +51 -0
  101. package/lib/form/form.input.directive.d.ts +18 -0
  102. package/lib/form/form.module.d.ts +10 -0
  103. package/lib/form/index.d.ts +6 -0
  104. package/lib/form/loading/form.loading.directive.d.ts +19 -0
  105. package/lib/form/loading/index.d.ts +1 -0
  106. package/lib/formly/field/checklist/checklist.item.d.ts +38 -0
  107. package/lib/formly/field/checklist/checklist.item.field.component.d.ts +48 -0
  108. package/lib/formly/field/checklist/checklist.item.field.content.default.component.d.ts +10 -0
  109. package/lib/formly/field/checklist/checklist.item.field.d.ts +50 -0
  110. package/lib/formly/field/checklist/checklist.item.field.module.d.ts +18 -0
  111. package/lib/formly/field/checklist/index.d.ts +5 -0
  112. package/lib/formly/field/component/component.field.component.d.ts +22 -0
  113. package/lib/formly/field/component/component.field.d.ts +6 -0
  114. package/lib/formly/field/component/component.field.module.d.ts +10 -0
  115. package/lib/formly/field/component/index.d.ts +3 -0
  116. package/lib/formly/field/field.d.ts +31 -0
  117. package/lib/formly/field/index.d.ts +6 -0
  118. package/lib/formly/field/selection/index.d.ts +3 -0
  119. package/lib/formly/field/selection/pickable/index.d.ts +5 -0
  120. package/lib/formly/field/selection/pickable/pickable.chip.field.component.d.ts +10 -0
  121. package/lib/formly/field/selection/pickable/pickable.d.ts +28 -0
  122. package/lib/formly/field/selection/pickable/pickable.field.directive.d.ts +155 -0
  123. package/lib/formly/field/selection/pickable/pickable.field.module.d.ts +20 -0
  124. package/lib/formly/field/selection/pickable/pickable.list.field.component.d.ts +11 -0
  125. package/lib/formly/field/selection/searchable/index.d.ts +8 -0
  126. package/lib/formly/field/selection/searchable/searchable.chip.field.component.d.ts +16 -0
  127. package/lib/formly/field/selection/searchable/searchable.d.ts +40 -0
  128. package/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.d.ts +20 -0
  129. package/lib/formly/field/selection/searchable/searchable.field.d.ts +16 -0
  130. package/lib/formly/field/selection/searchable/searchable.field.directive.d.ts +131 -0
  131. package/lib/formly/field/selection/searchable/searchable.field.module.d.ts +21 -0
  132. package/lib/formly/field/selection/searchable/searchable.text.field.component.d.ts +15 -0
  133. package/lib/formly/field/selection/searchable/text.chip.field.d.ts +9 -0
  134. package/lib/formly/field/selection/selection.d.ts +25 -0
  135. package/lib/formly/field/value/array/array.field.component.d.ts +22 -0
  136. package/lib/formly/field/value/array/array.field.module.d.ts +13 -0
  137. package/lib/formly/field/value/array/index.d.ts +2 -0
  138. package/lib/formly/field/value/boolean/boolean.field.d.ts +8 -0
  139. package/lib/formly/field/value/boolean/boolean.field.module.d.ts +6 -0
  140. package/lib/formly/field/value/boolean/index.d.ts +2 -0
  141. package/lib/formly/field/value/date/date.field.d.ts +13 -0
  142. package/lib/formly/field/value/date/date.field.module.d.ts +21 -0
  143. package/lib/formly/field/value/date/datetime.field.component.d.ts +105 -0
  144. package/lib/formly/field/value/date/index.d.ts +3 -0
  145. package/lib/formly/field/value/enum/enum.d.ts +4 -0
  146. package/lib/formly/field/value/enum/enum.field.d.ts +14 -0
  147. package/lib/formly/field/value/enum/index.d.ts +2 -0
  148. package/lib/formly/field/value/hidden.field.d.ts +5 -0
  149. package/lib/formly/field/value/index.d.ts +7 -0
  150. package/lib/formly/field/value/phone/index.d.ts +3 -0
  151. package/lib/formly/field/value/phone/phone.field.component.d.ts +24 -0
  152. package/lib/formly/field/value/phone/phone.field.d.ts +26 -0
  153. package/lib/formly/field/value/phone/phone.field.module.d.ts +16 -0
  154. package/lib/formly/field/value/text/index.d.ts +3 -0
  155. package/lib/formly/field/value/text/text.address.field.d.ts +12 -0
  156. package/lib/formly/field/value/text/text.field.d.ts +42 -0
  157. package/lib/formly/field/value/text/text.field.module.d.ts +7 -0
  158. package/lib/formly/field/wrapper/autotouch.wrapper.component.d.ts +11 -0
  159. package/lib/formly/field/wrapper/expandable.wrapper.component.d.ts +43 -0
  160. package/lib/formly/field/wrapper/flex.wrapper.component.d.ts +6 -0
  161. package/lib/formly/field/wrapper/flex.wrapper.layout.d.ts +10 -0
  162. package/lib/formly/field/wrapper/form.wrapper.module.d.ts +19 -0
  163. package/lib/formly/field/wrapper/index.d.ts +10 -0
  164. package/lib/formly/field/wrapper/info.wrapper.component.d.ts +17 -0
  165. package/lib/formly/field/wrapper/section.wrapper.component.d.ts +8 -0
  166. package/lib/formly/field/wrapper/subsection.wrapper.component.d.ts +8 -0
  167. package/lib/formly/field/wrapper/toggle.wrapper.component.d.ts +24 -0
  168. package/lib/formly/field/wrapper/toggle.wrapper.d.ts +7 -0
  169. package/lib/formly/formly.component.d.ts +36 -0
  170. package/lib/formly/formly.context.d.ts +57 -0
  171. package/lib/formly/formly.directive.d.ts +50 -0
  172. package/lib/formly/formly.module.d.ts +11 -0
  173. package/lib/formly/index.d.ts +5 -0
  174. package/lib/index.d.ts +4 -0
  175. package/lib/layout/form.layout.module.d.ts +8 -0
  176. package/lib/layout/form.spacer.component.d.ts +8 -0
  177. package/lib/layout/index.d.ts +2 -0
  178. package/lib/validator/boolean.d.ts +2 -0
  179. package/lib/validator/email.d.ts +3 -0
  180. package/lib/validator/index.d.ts +3 -0
  181. package/lib/validator/number.d.ts +2 -0
  182. package/package.json +67 -0
  183. package/src/_index.scss +11 -0
  184. package/src/lib/form/_form.scss +26 -0
  185. package/src/lib/formly/_formly.scss +26 -0
  186. package/src/lib/formly/field/_field.scss +33 -0
  187. package/src/lib/formly/field/checklist/_checklist.scss +26 -0
  188. package/src/lib/formly/field/checklist/checklist.item_TODO.scss +57 -0
  189. package/src/lib/formly/field/component/_component.scss +26 -0
  190. package/src/lib/formly/field/fields_TODO.scss +4 -0
  191. package/src/lib/formly/field/selection/_selection.scss +17 -0
  192. package/src/lib/formly/field/selection/generic_TODO.scss +36 -0
  193. package/src/lib/formly/field/selection/pickable/_pickable.scss +26 -0
  194. package/src/lib/formly/field/selection/searchable/_searchable.scss +26 -0
  195. package/src/lib/formly/field/texteditor/_texteditor.scss +26 -0
  196. package/src/lib/formly/field/texteditor/texteditor_TODO.scss +32 -0
  197. package/src/lib/formly/field/value/_value.scss +33 -0
  198. package/src/lib/formly/field/value/array/_array.scss +26 -0
  199. package/src/lib/formly/field/value/boolean/_boolean.scss +26 -0
  200. package/src/lib/formly/field/value/date/_date.scss +26 -0
  201. package/src/lib/formly/field/value/date/date_TODO.scss +27 -0
  202. package/src/lib/formly/field/value/enum/_enum.scss +26 -0
  203. package/src/lib/formly/field/value/phone/_phone.scss +26 -0
  204. package/src/lib/formly/field/value/phone/phone_TODO.scss +10 -0
  205. package/src/lib/formly/field/value/text/_text.scss +26 -0
  206. package/src/lib/formly/field/wrapper/_wrapper.scss +26 -0
  207. package/src/lib/formly/field/wrapper/wrapper_TODO.scss +34 -0
  208. package/src/lib/formly/form_TODO.scss +153 -0
  209. package/src/lib/layout/_layout.scss +26 -0
  210. package/src/lib/style/_all-core.scss +12 -0
  211. package/src/lib/style/_all-theme.scss +12 -0
  212. package/src/lib/style/_all-typography.scss +12 -0
  213. package/src/lib/style/_config.scss +20 -0
  214. package/src/lib/style/_core.scss +9 -0
  215. package/src/lib/style/_mixin.scss +3 -0
  216. package/src/lib/style/_theming.scss +19 -0
  217. package/src/lib/style/_variables.scss +1 -0
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./phone.field.component";
3
+ import * as i2 from "@angular/common";
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";
12
+ export declare class DbxFormFormlyPhoneFieldModule {
13
+ 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>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyPhoneFieldModule>;
16
+ }
@@ -0,0 +1,3 @@
1
+ export * from './text.address.field';
2
+ export * from './text.field.module';
3
+ export * from './text.field';
@@ -0,0 +1,12 @@
1
+ import { FormlyFieldConfig } from '@ngx-formly/core';
2
+ export declare const ADDRESS_LINE_MAX_LENGTH = 100;
3
+ 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;
@@ -0,0 +1,42 @@
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;
10
+ export interface TextFieldLengthConfig {
11
+ minLength?: number;
12
+ maxLength?: number;
13
+ }
14
+ export interface TextFieldConfig extends FieldConfig, TextFieldLengthConfig, AttributesFieldConfig {
15
+ pattern?: string | RegExp;
16
+ }
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 {
19
+ rows?: number;
20
+ }
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;
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../wrapper/form.wrapper.module";
3
+ export declare class DbxFormFormlyTextFieldModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyTextFieldModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyTextFieldModule, never, never, [typeof i1.DbxFormFormlyWrapperModule]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyTextFieldModule>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FieldWrapper } from '@ngx-formly/core';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Wrapper than sets the field to "touched" when the value changes and the field is not pristine.
6
+ */
7
+ export declare class AutoTouchFieldWrapperComponent extends FieldWrapper implements OnInit {
8
+ ngOnInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutoTouchFieldWrapperComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutoTouchFieldWrapperComponent, "ng-component", never, {}, {}, never, never>;
11
+ }
@@ -0,0 +1,43 @@
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';
7
+ 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>;
36
+ }
37
+ /**
38
+ * Section that is expandable by a button until a value is set, or the button is pressed.
39
+ */
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>;
43
+ }
@@ -0,0 +1,6 @@
1
+ import { FieldWrapper } from '@ngx-formly/core';
2
+ 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>;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { FormlyFieldConfig } from '@ngx-formly/core';
2
+ export declare type FormFlexLayoutSize = 1 | 2 | 3 | 4 | 5 | 6;
3
+ export interface FieldFlexLayoutGroupFieldConfig {
4
+ field: FormlyFieldConfig;
5
+ size?: FormFlexLayoutSize;
6
+ retainSizeOnSmallScreen?: boolean;
7
+ }
8
+ export interface FieldFlexLayoutGroupFieldConfigDefaults extends Omit<FieldFlexLayoutGroupFieldConfig, 'field'> {
9
+ }
10
+ export declare function flexLayoutWrapper(fieldConfigs: FieldFlexLayoutGroupFieldConfig[], { size: defaultSize, retainSizeOnSmallScreen }?: FieldFlexLayoutGroupFieldConfigDefaults): FormlyFieldConfig;
@@ -0,0 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./autotouch.wrapper.component";
3
+ import * as i2 from "./section.wrapper.component";
4
+ import * as i3 from "./subsection.wrapper.component";
5
+ import * as i4 from "./info.wrapper.component";
6
+ import * as i5 from "./expandable.wrapper.component";
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";
15
+ export declare class DbxFormFormlyWrapperModule {
16
+ 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>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyWrapperModule>;
19
+ }
@@ -0,0 +1,10 @@
1
+ export * from './autotouch.wrapper.component';
2
+ export * from './expandable.wrapper.component';
3
+ export * from './flex.wrapper.component';
4
+ export * from './flex.wrapper.layout';
5
+ export * from './form.wrapper.module';
6
+ export * from './info.wrapper.component';
7
+ export * from './section.wrapper.component';
8
+ export * from './subsection.wrapper.component';
9
+ export * from './toggle.wrapper.component';
10
+ export * from './toggle.wrapper';
@@ -0,0 +1,17 @@
1
+ import { FieldWrapper, FormlyFieldConfig, FormlyTemplateOptions } from '@ngx-formly/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface FormInfoSectionConfig<T> {
4
+ onInfoClick: () => void;
5
+ }
6
+ export interface FormInfoSectionWrapperTemplateOptions<T = any> extends FormlyTemplateOptions {
7
+ infoSection: FormInfoSectionConfig<T>;
8
+ }
9
+ export interface FormInfoSectionWFormlyConfig<T = any> extends FormlyFieldConfig {
10
+ templateOptions?: FormInfoSectionWrapperTemplateOptions<T>;
11
+ }
12
+ export declare class FormInfoSectionWrapperComponent<T> extends FieldWrapper<FormInfoSectionWFormlyConfig<T>> {
13
+ get infoSection(): FormInfoSectionConfig<T>;
14
+ onInfoClick(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormInfoSectionWrapperComponent<any>, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormInfoSectionWrapperComponent<any>, "ng-component", never, {}, {}, never, never>;
17
+ }
@@ -0,0 +1,8 @@
1
+ import { Maybe } from '@dereekb/util';
2
+ import { FieldWrapper } from '@ngx-formly/core';
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>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Maybe } from '@dereekb/util';
2
+ import { FieldWrapper } from '@ngx-formly/core';
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>;
8
+ }
@@ -0,0 +1,24 @@
1
+ import { Maybe } from '@dereekb/util';
2
+ import { FormlyFieldConfig } from '@ngx-formly/core';
3
+ import { Observable } from 'rxjs';
4
+ import { AbstractFormExpandableSectionWrapperDirective, FormExpandableSectionWrapperTemplateOptions } from './expandable.wrapper.component';
5
+ import * as i0 from "@angular/core";
6
+ export interface FormToggleSectionConfig {
7
+ toggleLabelObs?: (open: Maybe<boolean>) => Observable<string>;
8
+ }
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
+ /**
16
+ * Section that is expandable by a button until a value is set, or the button is pressed.
17
+ */
18
+ export declare class FormToggleSectionWrapperComponent<T = any> extends AbstractFormExpandableSectionWrapperDirective<T, FormToggleSectionFormlyConfig<T>> {
19
+ get toggleSection(): Maybe<FormToggleSectionConfig>;
20
+ readonly $slideLabel: Observable<string>;
21
+ onToggleChange(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormToggleSectionWrapperComponent<any>, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormToggleSectionWrapperComponent<any>, "ng-component", never, {}, {}, never, never>;
24
+ }
@@ -0,0 +1,7 @@
1
+ import { FormlyFieldConfig } from '@ngx-formly/core';
2
+ import { FormToggleSectionConfig } from './toggle.wrapper.component';
3
+ export interface FormToggleWrapperConfig {
4
+ fieldConfig: FormlyFieldConfig;
5
+ toggleSection?: FormToggleSectionConfig;
6
+ }
7
+ export declare function addToggleWrapperToField({ fieldConfig, toggleSection }: FormToggleWrapperConfig): FormlyFieldConfig;
@@ -0,0 +1,36 @@
1
+ import { NgZone, OnDestroy, OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
4
+ import { Observable } from 'rxjs';
5
+ import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
6
+ import { DbxFormEvent, DbxFormState } from '../form/form';
7
+ import { DbxFormlyContext, DbxFormlyContextDelegate } from './formly.context';
8
+ import * as i0 from "@angular/core";
9
+ export declare class DbxFormlyComponent<T extends object> extends AbstractSubscriptionDirective implements DbxFormlyContextDelegate<T>, OnInit, OnDestroy {
10
+ private readonly context;
11
+ private readonly ngZone;
12
+ private _changesCount;
13
+ private _lastResetAt?;
14
+ private _fields;
15
+ private _events;
16
+ form: FormGroup;
17
+ model: any;
18
+ options: FormlyFormOptions;
19
+ constructor(context: DbxFormlyContext<T>, ngZone: NgZone);
20
+ ngOnInit(): void;
21
+ ngOnDestroy(): void;
22
+ get fields(): FormlyFieldConfig[];
23
+ get isComplete(): boolean;
24
+ get state(): DbxFormState;
25
+ get stream$(): Observable<DbxFormEvent>;
26
+ setFields(fields: FormlyFieldConfig[]): void;
27
+ getValue(): T;
28
+ setValue(value: T): void;
29
+ resetForm(): void;
30
+ isDisabled(): boolean;
31
+ setDisabled(disabled?: boolean): void;
32
+ forceFormUpdate(): void;
33
+ private _updateForChange;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormlyComponent<any>, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormlyComponent<any>, "dbx-formly", ["formly"], {}, {}, never, never>;
36
+ }
@@ -0,0 +1,57 @@
1
+ import { Provider } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { DbxFormEvent, DbxFormState, TypedDbxForm } from '../form/form';
4
+ import { FormlyFieldConfig } from '@ngx-formly/core';
5
+ import { LockSet } from '@dereekb/rxjs';
6
+ import { Maybe } from '@dereekb/util';
7
+ /**
8
+ * DbxFormlyContext delegate.
9
+ *
10
+ * This is usually the component or element that contains the form itself.
11
+ */
12
+ export interface DbxFormlyContextDelegate<T = any> {
13
+ readonly isComplete: boolean;
14
+ readonly state: DbxFormState;
15
+ readonly stream$: Observable<DbxFormEvent>;
16
+ setFields(fields: Maybe<FormlyFieldConfig[]>): void;
17
+ getValue(): T;
18
+ setValue(value: Maybe<Partial<T>>): void;
19
+ resetForm(): void;
20
+ forceFormUpdate(): void;
21
+ isDisabled(): boolean;
22
+ setDisabled(disabled?: boolean): void;
23
+ }
24
+ /**
25
+ * Allows a directive to provide a formly context and form.
26
+ */
27
+ export declare function ProvideFormlyContext(): Provider[];
28
+ /**
29
+ * DbxForm Instance that registers a delegate and manages the state of that form/delegate.
30
+ */
31
+ export declare class DbxFormlyContext<T> implements TypedDbxForm<T> {
32
+ readonly lockSet: LockSet;
33
+ private static INITIAL_STATE;
34
+ private static EMPTY_DELEGATE;
35
+ private _fields?;
36
+ private _initialValue?;
37
+ private _disabled;
38
+ private _delegate;
39
+ private _streamSubject;
40
+ private _stream$;
41
+ constructor();
42
+ destroy(): void;
43
+ get isDestroyed(): boolean;
44
+ setDelegate(delegate?: DbxFormlyContextDelegate<T>): void;
45
+ clearDelegate(delegate: DbxFormlyContextDelegate<T>): void;
46
+ get fields(): Maybe<FormlyFieldConfig[]>;
47
+ set fields(fields: Maybe<FormlyFieldConfig[]>);
48
+ get isComplete(): boolean;
49
+ get state(): DbxFormState;
50
+ get stream$(): Observable<DbxFormEvent>;
51
+ get value(): T;
52
+ setValue(value: Partial<T>): void;
53
+ isDisabled(): boolean;
54
+ setDisabled(disabled?: boolean): void;
55
+ resetForm(): void;
56
+ forceFormUpdate(): void;
57
+ }
@@ -0,0 +1,50 @@
1
+ import { Observable } from 'rxjs';
2
+ import { FormlyFieldConfig } from '@ngx-formly/core/lib/core';
3
+ import { OnInit, OnDestroy } from '@angular/core';
4
+ import { DbxFormlyContext } from './formly.context';
5
+ import { Maybe } from '@dereekb/util';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Abstract component for wrapping a form.
9
+ */
10
+ export declare abstract class AbstractFormlyFormDirective<T> implements OnDestroy {
11
+ readonly context: DbxFormlyContext<T>;
12
+ get disabled(): boolean;
13
+ set disabled(disabled: boolean);
14
+ constructor(context: DbxFormlyContext<T>);
15
+ ngOnDestroy(): void;
16
+ getValue(): T;
17
+ setValue(value: Partial<T>): void;
18
+ clearValue(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormlyFormDirective<any>, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFormlyFormDirective<any>, never, never, { "disabled": "disabled"; }, {}, never>;
21
+ }
22
+ /**
23
+ * Abstract component for wrapping a form.
24
+ */
25
+ export declare abstract class AbstractSyncFormlyFormDirective<T> extends AbstractFormlyFormDirective<T> implements OnInit, OnDestroy {
26
+ abstract fields: FormlyFieldConfig[];
27
+ ngOnInit(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSyncFormlyFormDirective<any>, never>;
29
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSyncFormlyFormDirective<any>, never, never, {}, {}, never>;
30
+ }
31
+ /**
32
+ * Abstract component for wrapping an asyncrhronously-configured form.
33
+ */
34
+ export declare abstract class AbstractAsyncFormlyFormDirective<T> extends AbstractFormlyFormDirective<T> implements OnInit, OnDestroy {
35
+ abstract readonly fields$: Observable<FormlyFieldConfig[]>;
36
+ private _fieldsSub;
37
+ ngOnInit(): void;
38
+ ngOnDestroy(): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractAsyncFormlyFormDirective<any>, never>;
40
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAsyncFormlyFormDirective<any>, never, never, {}, {}, never>;
41
+ }
42
+ export declare abstract class AbstractConfigAsyncFormlyFormDirective<T, C> extends AbstractAsyncFormlyFormDirective<T> {
43
+ private readonly _config;
44
+ readonly config$: Observable<Maybe<C>>;
45
+ get config(): Maybe<C>;
46
+ set config(config: Maybe<C>);
47
+ ngOnDestroy(): void;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractConfigAsyncFormlyFormDirective<any, any>, never>;
49
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractConfigAsyncFormlyFormDirective<any, any>, never, never, { "config": "config"; }, {}, never>;
50
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./formly.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@ngx-formly/core";
6
+ import * as i5 from "@ngx-formly/material/toggle";
7
+ export declare class DbxFormlyModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormlyModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormlyModule, [typeof i1.DbxFormlyComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyModule, typeof i5.FormlyMatToggleModule], [typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i1.DbxFormlyComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormlyModule>;
11
+ }
@@ -0,0 +1,5 @@
1
+ export * from './field';
2
+ export * from './formly.context';
3
+ export * from './formly.directive';
4
+ export * from './formly.component';
5
+ export * from './formly.module';
package/lib/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from './form';
2
+ export * from './formly';
3
+ export * from './layout';
4
+ export * from './validator';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./form.spacer.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class DbxFormLayoutModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormLayoutModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormLayoutModule, [typeof i1.DbxFormSpacerComponent], [typeof i2.CommonModule], [typeof i1.DbxFormSpacerComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormLayoutModule>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Provides vertical spacing after a form.
4
+ */
5
+ export declare class DbxFormSpacerComponent {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSpacerComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSpacerComponent, "dbx-form-spacer", never, {}, {}, never, never>;
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './form.layout.module';
2
+ export * from './form.spacer.component';
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare function IsTruthy(): ValidatorFn;
@@ -0,0 +1,3 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare const DOMAIN_NAME_REGEX: RegExp;
3
+ export declare function IsDomain(): ValidatorFn;
@@ -0,0 +1,3 @@
1
+ export * from './boolean';
2
+ export * from './email';
3
+ export * from './number';
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare function IsInRange(min?: number, max?: number): ValidatorFn;
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@dereekb/dbx-form",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^13.1.0",
6
+ "@angular/core": "^13.1.0",
7
+ "@dereekb/dbx-core": "0.0.1",
8
+ "@ngrx/component-store": "^13.0.2",
9
+ "@ngrx/data": "^13.0.2",
10
+ "@ngrx/effects": "^13.0.2",
11
+ "@ngrx/entity": "^13.0.2",
12
+ "@ngrx/store": "^13.0.2",
13
+ "rxjs": "^7.5.2",
14
+ "@dereekb/util": "0.0.1",
15
+ "extra-set": "^2.2.11",
16
+ "@dereekb/rxjs": "0.0.1",
17
+ "ms": "^3.0.0-canary.1",
18
+ "@angular/platform-browser": "13.2.0",
19
+ "date-fns": "2.28.0",
20
+ "@dereekb/date": "0.0.1",
21
+ "class-transformer": "0.5.1",
22
+ "class-validator": "0.13.2",
23
+ "date-fns-tz": "1.2.2",
24
+ "rrule": "dereekb/rrule#17adf5708d6567b4d01a3a8afd106261421ea492",
25
+ "@angular/router": "13.2.0",
26
+ "@uirouter/core": "^6.0.8",
27
+ "@uirouter/angular": "^9.1.0",
28
+ "@angular/material": "13.2.0",
29
+ "@dereekb/dbx-web": "0.0.1",
30
+ "mat-progress-buttons": "9.3.1",
31
+ "@angular/flex-layout": "^13.0.0-beta.36",
32
+ "ng-overlay-container": "11.0.4",
33
+ "@angular/cdk": "13.2.0",
34
+ "angular-resize-event": "^3.1.1",
35
+ "ngx-infinite-scroll": "10.0.1",
36
+ "linkify-string": "4.0.0-beta.3",
37
+ "@angular/forms": "13.2.0",
38
+ "@ngx-formly/core": "6.0.0-next.6",
39
+ "change-case": "^4.1.2",
40
+ "ngx-editor": "^12.1.1",
41
+ "ngx-mat-intl-tel-input": "4.1.0",
42
+ "@ngx-formly/material": "6.0.0-next.6"
43
+ },
44
+ "dependencies": {
45
+ "tslib": "^2.3.0"
46
+ },
47
+ "module": "fesm2015/dereekb-dbx-form.mjs",
48
+ "es2020": "fesm2020/dereekb-dbx-form.mjs",
49
+ "esm2020": "esm2020/dereekb-dbx-form.mjs",
50
+ "fesm2020": "fesm2020/dereekb-dbx-form.mjs",
51
+ "fesm2015": "fesm2015/dereekb-dbx-form.mjs",
52
+ "typings": "dereekb-dbx-form.d.ts",
53
+ "exports": {
54
+ "./package.json": {
55
+ "default": "./package.json"
56
+ },
57
+ ".": {
58
+ "types": "./dereekb-dbx-form.d.ts",
59
+ "esm2020": "./esm2020/dereekb-dbx-form.mjs",
60
+ "es2020": "./fesm2020/dereekb-dbx-form.mjs",
61
+ "es2015": "./fesm2015/dereekb-dbx-form.mjs",
62
+ "node": "./fesm2015/dereekb-dbx-form.mjs",
63
+ "default": "./fesm2020/dereekb-dbx-form.mjs"
64
+ }
65
+ },
66
+ "sideEffects": false
67
+ }
@@ -0,0 +1,11 @@
1
+ @use '@angular/material'as mat;
2
+
3
+ // Structural
4
+ @forward './lib/style/core'show core;
5
+
6
+ // Config
7
+ @forward './lib/style/config'show define-dbx-form-theme-config,
8
+ get-dbx-form-theme-config;
9
+
10
+ // Theme bundles
11
+ @forward './lib/style/all-theme'show all-component-themes;
@@ -0,0 +1,26 @@
1
+ @use '../style/theming';
2
+
3
+ // MARK: Variables
4
+
5
+
6
+ // MARK: Mixin
7
+ @mixin core() {}
8
+
9
+ @mixin color($theme-config) {}
10
+
11
+ @mixin typography($typography-config) {}
12
+
13
+ @mixin theme($theme-config) {
14
+ @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-form') {
15
+ $color: theming.get-color-config($theme-config);
16
+ $typography: theming.get-typography-config($theme-config);
17
+
18
+ @if $color !=null {
19
+ @include color($theme-config);
20
+ }
21
+
22
+ @if $typography !=null {
23
+ @include typography($typography);
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ @use '../style/theming';
2
+
3
+ // MARK: Variables
4
+
5
+
6
+ // MARK: Mixin
7
+ @mixin core() {}
8
+
9
+ @mixin color($theme-config) {}
10
+
11
+ @mixin typography($typography-config) {}
12
+
13
+ @mixin theme($theme-config) {
14
+ @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-formly') {
15
+ $color: theming.get-color-config($theme-config);
16
+ $typography: theming.get-typography-config($theme-config);
17
+
18
+ @if $color !=null {
19
+ @include color($theme-config);
20
+ }
21
+
22
+ @if $typography !=null {
23
+ @include typography($typography);
24
+ }
25
+ }
26
+ }