@dereekb/dbx-form 12.6.21 → 13.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.
- package/LICENSE +1 -1
- package/fesm2022/dereekb-dbx-form-calendar.mjs +86 -86
- package/fesm2022/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-form-mapbox.mjs +28 -28
- package/fesm2022/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-form.mjs +429 -600
- package/fesm2022/dereekb-dbx-form.mjs.map +1 -1
- package/lib/formly/field/value/phone/_phone.scss +1 -0
- package/lib/style/_theming.scss +196 -1
- package/package.json +26 -32
- package/types/dereekb-dbx-form-calendar.d.ts +679 -0
- package/types/dereekb-dbx-form-mapbox.d.ts +216 -0
- package/types/dereekb-dbx-form.d.ts +3050 -0
- package/calendar/index.d.ts +0 -1
- package/calendar/lib/calendar.module.d.ts +0 -19
- package/calendar/lib/calendar.schedule.selection.cell.component.d.ts +0 -16
- package/calendar/lib/calendar.schedule.selection.component.d.ts +0 -74
- package/calendar/lib/calendar.schedule.selection.d.ts +0 -29
- package/calendar/lib/calendar.schedule.selection.days.component.d.ts +0 -15
- package/calendar/lib/calendar.schedule.selection.days.form.component.d.ts +0 -10
- package/calendar/lib/calendar.schedule.selection.dialog.button.component.d.ts +0 -15
- package/calendar/lib/calendar.schedule.selection.dialog.component.d.ts +0 -24
- package/calendar/lib/calendar.schedule.selection.form.d.ts +0 -4
- package/calendar/lib/calendar.schedule.selection.popover.button.component.d.ts +0 -17
- package/calendar/lib/calendar.schedule.selection.popover.component.d.ts +0 -14
- package/calendar/lib/calendar.schedule.selection.popover.content.component.d.ts +0 -5
- package/calendar/lib/calendar.schedule.selection.range.component.d.ts +0 -52
- package/calendar/lib/calendar.schedule.selection.store.d.ts +0 -282
- package/calendar/lib/calendar.schedule.selection.store.provide.d.ts +0 -23
- package/calendar/lib/calendar.schedule.selection.toggle.button.component.d.ts +0 -18
- package/calendar/lib/field/index.d.ts +0 -1
- package/calendar/lib/field/schedule/calendar.schedule.field.component.d.ts +0 -102
- package/calendar/lib/field/schedule/calendar.schedule.field.d.ts +0 -6
- package/calendar/lib/field/schedule/calendar.schedule.module.d.ts +0 -8
- package/calendar/lib/field/schedule/index.d.ts +0 -3
- package/calendar/lib/index.d.ts +0 -17
- package/esm2022/calendar/dereekb-dbx-form-calendar.mjs +0 -5
- package/esm2022/calendar/index.mjs +0 -2
- package/esm2022/calendar/lib/calendar.module.mjs +0 -84
- package/esm2022/calendar/lib/calendar.schedule.selection.cell.component.mjs +0 -42
- package/esm2022/calendar/lib/calendar.schedule.selection.component.mjs +0 -156
- package/esm2022/calendar/lib/calendar.schedule.selection.days.component.mjs +0 -47
- package/esm2022/calendar/lib/calendar.schedule.selection.days.form.component.mjs +0 -22
- package/esm2022/calendar/lib/calendar.schedule.selection.dialog.button.component.mjs +0 -32
- package/esm2022/calendar/lib/calendar.schedule.selection.dialog.component.mjs +0 -59
- package/esm2022/calendar/lib/calendar.schedule.selection.form.mjs +0 -15
- package/esm2022/calendar/lib/calendar.schedule.selection.mjs +0 -31
- package/esm2022/calendar/lib/calendar.schedule.selection.popover.button.component.mjs +0 -50
- package/esm2022/calendar/lib/calendar.schedule.selection.popover.component.mjs +0 -41
- package/esm2022/calendar/lib/calendar.schedule.selection.popover.content.component.mjs +0 -34
- package/esm2022/calendar/lib/calendar.schedule.selection.range.component.mjs +0 -165
- package/esm2022/calendar/lib/calendar.schedule.selection.store.mjs +0 -785
- package/esm2022/calendar/lib/calendar.schedule.selection.store.provide.mjs +0 -48
- package/esm2022/calendar/lib/calendar.schedule.selection.toggle.button.component.mjs +0 -67
- package/esm2022/calendar/lib/field/index.mjs +0 -3
- package/esm2022/calendar/lib/field/schedule/calendar.schedule.field.component.mjs +0 -154
- package/esm2022/calendar/lib/field/schedule/calendar.schedule.field.mjs +0 -28
- package/esm2022/calendar/lib/field/schedule/calendar.schedule.module.mjs +0 -26
- package/esm2022/calendar/lib/field/schedule/index.mjs +0 -4
- package/esm2022/calendar/lib/index.mjs +0 -18
- package/esm2022/dereekb-dbx-form.mjs +0 -5
- package/esm2022/index.mjs +0 -2
- package/esm2022/lib/form/action/form.action.dialog.component.mjs +0 -79
- package/esm2022/lib/form/action/form.action.directive.mjs +0 -167
- package/esm2022/lib/form/action/form.action.module.mjs +0 -19
- package/esm2022/lib/form/action/index.mjs +0 -5
- package/esm2022/lib/form/action/transition/form.action.transition.module.mjs +0 -19
- package/esm2022/lib/form/action/transition/form.action.transition.safety.directive.mjs +0 -28
- package/esm2022/lib/form/action/transition/index.mjs +0 -3
- package/esm2022/lib/form/form.angular.util.mjs +0 -13
- package/esm2022/lib/form/form.mjs +0 -42
- package/esm2022/lib/form/form.module.mjs +0 -17
- package/esm2022/lib/form/index.mjs +0 -6
- package/esm2022/lib/form/io/form.change.directive.mjs +0 -36
- package/esm2022/lib/form/io/form.input.directive.mjs +0 -95
- package/esm2022/lib/form/io/form.io.module.mjs +0 -26
- package/esm2022/lib/form/io/form.loading.directive.mjs +0 -36
- package/esm2022/lib/form/io/index.mjs +0 -5
- package/esm2022/lib/form.module.mjs +0 -18
- package/esm2022/lib/form.providers.mjs +0 -32
- package/esm2022/lib/formly/config/index.mjs +0 -2
- package/esm2022/lib/formly/config/validation.mjs +0 -23
- package/esm2022/lib/formly/field/checklist/checklist.field.mjs +0 -102
- package/esm2022/lib/formly/field/checklist/checklist.item.field.component.mjs +0 -86
- package/esm2022/lib/formly/field/checklist/checklist.item.field.content.default.component.mjs +0 -50
- package/esm2022/lib/formly/field/checklist/checklist.item.field.mjs +0 -14
- package/esm2022/lib/formly/field/checklist/checklist.item.field.module.mjs +0 -30
- package/esm2022/lib/formly/field/checklist/checklist.item.mjs +0 -2
- package/esm2022/lib/formly/field/checklist/index.mjs +0 -7
- package/esm2022/lib/formly/field/component/component.field.component.mjs +0 -25
- package/esm2022/lib/formly/field/component/component.field.mjs +0 -7
- package/esm2022/lib/formly/field/component/component.field.module.mjs +0 -26
- package/esm2022/lib/formly/field/component/index.mjs +0 -4
- package/esm2022/lib/formly/field/field.mjs +0 -97
- package/esm2022/lib/formly/field/form.field.module.mjs +0 -22
- package/esm2022/lib/formly/field/index.mjs +0 -9
- package/esm2022/lib/formly/field/selection/index.mjs +0 -8
- package/esm2022/lib/formly/field/selection/list/index.mjs +0 -4
- package/esm2022/lib/formly/field/selection/list/list.field.component.mjs +0 -90
- package/esm2022/lib/formly/field/selection/list/list.field.mjs +0 -15
- package/esm2022/lib/formly/field/selection/list/list.field.module.mjs +0 -26
- package/esm2022/lib/formly/field/selection/pickable/index.mjs +0 -8
- package/esm2022/lib/formly/field/selection/pickable/pickable.chip.field.component.mjs +0 -37
- package/esm2022/lib/formly/field/selection/pickable/pickable.field.directive.mjs +0 -272
- package/esm2022/lib/formly/field/selection/pickable/pickable.field.mjs +0 -26
- package/esm2022/lib/formly/field/selection/pickable/pickable.field.module.mjs +0 -33
- package/esm2022/lib/formly/field/selection/pickable/pickable.list.field.component.mjs +0 -130
- package/esm2022/lib/formly/field/selection/pickable/pickable.mjs +0 -2
- package/esm2022/lib/formly/field/selection/pickable/pickable.util.mjs +0 -35
- package/esm2022/lib/formly/field/selection/searchable/index.mjs +0 -9
- package/esm2022/lib/formly/field/selection/searchable/searchable.chip.field.component.mjs +0 -70
- package/esm2022/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.mjs +0 -90
- package/esm2022/lib/formly/field/selection/searchable/searchable.field.directive.mjs +0 -288
- package/esm2022/lib/formly/field/selection/searchable/searchable.field.mjs +0 -69
- package/esm2022/lib/formly/field/selection/searchable/searchable.field.module.mjs +0 -34
- package/esm2022/lib/formly/field/selection/searchable/searchable.mjs +0 -2
- package/esm2022/lib/formly/field/selection/searchable/searchable.text.field.component.mjs +0 -72
- package/esm2022/lib/formly/field/selection/searchable/text.chip.field.mjs +0 -15
- package/esm2022/lib/formly/field/selection/selection.field.mjs +0 -39
- package/esm2022/lib/formly/field/selection/selection.mjs +0 -2
- package/esm2022/lib/formly/field/selection/selection.module.mjs +0 -28
- package/esm2022/lib/formly/field/selection/sourceselect/index.mjs +0 -5
- package/esm2022/lib/formly/field/selection/sourceselect/sourceselect.field.component.mjs +0 -325
- package/esm2022/lib/formly/field/selection/sourceselect/sourceselect.field.mjs +0 -14
- package/esm2022/lib/formly/field/selection/sourceselect/sourceselect.field.module.mjs +0 -26
- package/esm2022/lib/formly/field/selection/sourceselect/sourceselect.mjs +0 -2
- package/esm2022/lib/formly/field/texteditor/index.mjs +0 -4
- package/esm2022/lib/formly/field/texteditor/texteditor.field.component.mjs +0 -97
- package/esm2022/lib/formly/field/texteditor/texteditor.field.mjs +0 -21
- package/esm2022/lib/formly/field/texteditor/texteditor.field.module.mjs +0 -26
- package/esm2022/lib/formly/field/value/array/array.field.component.mjs +0 -231
- package/esm2022/lib/formly/field/value/array/array.field.mjs +0 -28
- package/esm2022/lib/formly/field/value/array/array.field.module.mjs +0 -26
- package/esm2022/lib/formly/field/value/array/index.mjs +0 -4
- package/esm2022/lib/formly/field/value/boolean/boolean.field.mjs +0 -51
- package/esm2022/lib/formly/field/value/boolean/boolean.field.module.mjs +0 -19
- package/esm2022/lib/formly/field/value/boolean/index.mjs +0 -3
- package/esm2022/lib/formly/field/value/date/date.field.module.mjs +0 -36
- package/esm2022/lib/formly/field/value/date/date.value.mjs +0 -133
- package/esm2022/lib/formly/field/value/date/datetime.field.component.mjs +0 -737
- package/esm2022/lib/formly/field/value/date/datetime.field.mjs +0 -151
- package/esm2022/lib/formly/field/value/date/datetime.field.service.mjs +0 -23
- package/esm2022/lib/formly/field/value/date/datetime.mjs +0 -26
- package/esm2022/lib/formly/field/value/date/datetime.preset.mjs +0 -31
- package/esm2022/lib/formly/field/value/date/fixeddaterange.field.component.mjs +0 -521
- package/esm2022/lib/formly/field/value/date/index.mjs +0 -10
- package/esm2022/lib/formly/field/value/hidden.field.mjs +0 -8
- package/esm2022/lib/formly/field/value/index.mjs +0 -9
- package/esm2022/lib/formly/field/value/number/index.mjs +0 -3
- package/esm2022/lib/formly/field/value/number/number.field.mjs +0 -75
- package/esm2022/lib/formly/field/value/number/number.field.module.mjs +0 -18
- package/esm2022/lib/formly/field/value/phone/index.mjs +0 -4
- package/esm2022/lib/formly/field/value/phone/phone.field.component.mjs +0 -104
- package/esm2022/lib/formly/field/value/phone/phone.field.mjs +0 -66
- package/esm2022/lib/formly/field/value/phone/phone.field.module.mjs +0 -26
- package/esm2022/lib/formly/field/value/text/index.mjs +0 -5
- package/esm2022/lib/formly/field/value/text/text.additional.field.mjs +0 -114
- package/esm2022/lib/formly/field/value/text/text.address.field.mjs +0 -73
- package/esm2022/lib/formly/field/value/text/text.field.mjs +0 -47
- package/esm2022/lib/formly/field/value/text/text.field.module.mjs +0 -20
- package/esm2022/lib/formly/field/value/value.module.mjs +0 -31
- package/esm2022/lib/formly/field/wrapper/autotouch.wrapper.component.mjs +0 -32
- package/esm2022/lib/formly/field/wrapper/expand.wrapper.component.mjs +0 -34
- package/esm2022/lib/formly/field/wrapper/expand.wrapper.delegate.mjs +0 -58
- package/esm2022/lib/formly/field/wrapper/flex.wrapper.component.mjs +0 -38
- package/esm2022/lib/formly/field/wrapper/index.mjs +0 -13
- package/esm2022/lib/formly/field/wrapper/info.wrapper.component.mjs +0 -48
- package/esm2022/lib/formly/field/wrapper/section.wrapper.component.mjs +0 -31
- package/esm2022/lib/formly/field/wrapper/style.wrapper.component.mjs +0 -53
- package/esm2022/lib/formly/field/wrapper/subsection.wrapper.component.mjs +0 -30
- package/esm2022/lib/formly/field/wrapper/toggle.wrapper.component.mjs +0 -55
- package/esm2022/lib/formly/field/wrapper/working.wrapper.component.mjs +0 -45
- package/esm2022/lib/formly/field/wrapper/wrapper.key.mjs +0 -10
- package/esm2022/lib/formly/field/wrapper/wrapper.mjs +0 -77
- package/esm2022/lib/formly/field/wrapper/wrapper.module.mjs +0 -101
- package/esm2022/lib/formly/form/form.form.mjs +0 -17
- package/esm2022/lib/formly/form/form.form.module.mjs +0 -20
- package/esm2022/lib/formly/form/index.mjs +0 -4
- package/esm2022/lib/formly/form/search.form.component.mjs +0 -35
- package/esm2022/lib/formly/formly.component.template.mjs +0 -29
- package/esm2022/lib/formly/formly.context.directive.mjs +0 -23
- package/esm2022/lib/formly/formly.context.mjs +0 -102
- package/esm2022/lib/formly/formly.directive.mjs +0 -84
- package/esm2022/lib/formly/formly.form.component.mjs +0 -194
- package/esm2022/lib/formly/formly.module.mjs +0 -40
- package/esm2022/lib/formly/formly.providers.mjs +0 -8
- package/esm2022/lib/formly/index.mjs +0 -12
- package/esm2022/lib/formly/template/available.mjs +0 -18
- package/esm2022/lib/formly/template/available.module.mjs +0 -18
- package/esm2022/lib/formly/template/index.mjs +0 -8
- package/esm2022/lib/formly/template/login.mjs +0 -92
- package/esm2022/lib/formly/template/login.module.mjs +0 -17
- package/esm2022/lib/formly/template/timezone.mjs +0 -46
- package/esm2022/lib/formly/template/timezone.module.mjs +0 -17
- package/esm2022/lib/formly/template/website.mjs +0 -25
- package/esm2022/lib/index.mjs +0 -7
- package/esm2022/lib/layout/form.layout.module.mjs +0 -20
- package/esm2022/lib/layout/form.spacer.directive.mjs +0 -20
- package/esm2022/lib/layout/index.mjs +0 -3
- package/esm2022/lib/validator/available.mjs +0 -31
- package/esm2022/lib/validator/boolean.mjs +0 -12
- package/esm2022/lib/validator/email.mjs +0 -6
- package/esm2022/lib/validator/field.mjs +0 -31
- package/esm2022/lib/validator/index.mjs +0 -8
- package/esm2022/lib/validator/number.mjs +0 -53
- package/esm2022/lib/validator/phone.mjs +0 -61
- package/esm2022/lib/validator/website.mjs +0 -68
- package/esm2022/mapbox/dereekb-dbx-form-mapbox.mjs +0 -5
- package/esm2022/mapbox/index.mjs +0 -3
- package/esm2022/mapbox/lib/field/index.mjs +0 -3
- package/esm2022/mapbox/lib/field/latlng/index.mjs +0 -5
- package/esm2022/mapbox/lib/field/latlng/latlng.field.component.mjs +0 -262
- package/esm2022/mapbox/lib/field/latlng/latlng.field.marker.component.mjs +0 -34
- package/esm2022/mapbox/lib/field/latlng/latlng.field.mjs +0 -35
- package/esm2022/mapbox/lib/field/latlng/latlng.module.mjs +0 -26
- package/esm2022/mapbox/lib/field/zoom/index.mjs +0 -4
- package/esm2022/mapbox/lib/field/zoom/zoom.field.component.mjs +0 -146
- package/esm2022/mapbox/lib/field/zoom/zoom.field.mjs +0 -23
- package/esm2022/mapbox/lib/field/zoom/zoom.module.mjs +0 -26
- package/esm2022/mapbox/lib/mapbox.module.mjs +0 -16
- package/index.d.ts +0 -1
- package/lib/form/action/form.action.dialog.component.d.ts +0 -63
- package/lib/form/action/form.action.directive.d.ts +0 -66
- package/lib/form/action/form.action.module.d.ts +0 -10
- package/lib/form/action/index.d.ts +0 -4
- package/lib/form/action/transition/form.action.transition.module.d.ts +0 -10
- package/lib/form/action/transition/form.action.transition.safety.directive.d.ts +0 -17
- package/lib/form/action/transition/index.d.ts +0 -2
- package/lib/form/form.angular.util.d.ts +0 -15
- package/lib/form/form.d.ts +0 -92
- package/lib/form/form.module.d.ts +0 -9
- package/lib/form/index.d.ts +0 -5
- package/lib/form/io/form.change.directive.d.ts +0 -17
- package/lib/form/io/form.input.directive.d.ts +0 -28
- package/lib/form/io/form.io.module.d.ts +0 -16
- package/lib/form/io/form.loading.directive.d.ts +0 -23
- package/lib/form/io/index.d.ts +0 -4
- package/lib/form.module.d.ts +0 -10
- package/lib/form.providers.d.ts +0 -8
- package/lib/formly/config/index.d.ts +0 -1
- package/lib/formly/config/validation.d.ts +0 -23
- package/lib/formly/field/checklist/checklist.field.d.ts +0 -44
- package/lib/formly/field/checklist/checklist.item.d.ts +0 -36
- package/lib/formly/field/checklist/checklist.item.field.component.d.ts +0 -43
- package/lib/formly/field/checklist/checklist.item.field.content.default.component.d.ts +0 -10
- package/lib/formly/field/checklist/checklist.item.field.d.ts +0 -7
- package/lib/formly/field/checklist/checklist.item.field.module.d.ts +0 -10
- package/lib/formly/field/checklist/index.d.ts +0 -6
- package/lib/formly/field/component/component.field.component.d.ts +0 -12
- package/lib/formly/field/component/component.field.d.ts +0 -3
- package/lib/formly/field/component/component.field.module.d.ts +0 -8
- package/lib/formly/field/component/index.d.ts +0 -3
- package/lib/formly/field/field.d.ts +0 -99
- package/lib/formly/field/form.field.module.d.ts +0 -12
- package/lib/formly/field/index.d.ts +0 -8
- package/lib/formly/field/selection/index.d.ts +0 -7
- package/lib/formly/field/selection/list/index.d.ts +0 -3
- package/lib/formly/field/selection/list/list.field.component.d.ts +0 -55
- package/lib/formly/field/selection/list/list.field.d.ts +0 -8
- package/lib/formly/field/selection/list/list.field.module.d.ts +0 -8
- package/lib/formly/field/selection/pickable/index.d.ts +0 -7
- package/lib/formly/field/selection/pickable/pickable.chip.field.component.d.ts +0 -10
- package/lib/formly/field/selection/pickable/pickable.d.ts +0 -26
- package/lib/formly/field/selection/pickable/pickable.field.d.ts +0 -8
- package/lib/formly/field/selection/pickable/pickable.field.directive.d.ts +0 -169
- package/lib/formly/field/selection/pickable/pickable.field.module.d.ts +0 -9
- package/lib/formly/field/selection/pickable/pickable.list.field.component.d.ts +0 -39
- package/lib/formly/field/selection/pickable/pickable.util.d.ts +0 -14
- package/lib/formly/field/selection/searchable/index.d.ts +0 -8
- package/lib/formly/field/selection/searchable/searchable.chip.field.component.d.ts +0 -28
- package/lib/formly/field/selection/searchable/searchable.d.ts +0 -39
- package/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.d.ts +0 -22
- package/lib/formly/field/selection/searchable/searchable.field.d.ts +0 -25
- package/lib/formly/field/selection/searchable/searchable.field.directive.d.ts +0 -163
- package/lib/formly/field/selection/searchable/searchable.field.module.d.ts +0 -10
- package/lib/formly/field/selection/searchable/searchable.text.field.component.d.ts +0 -24
- package/lib/formly/field/selection/searchable/text.chip.field.d.ts +0 -8
- package/lib/formly/field/selection/selection.d.ts +0 -26
- package/lib/formly/field/selection/selection.field.d.ts +0 -38
- package/lib/formly/field/selection/selection.module.d.ts +0 -18
- package/lib/formly/field/selection/sourceselect/index.d.ts +0 -4
- package/lib/formly/field/selection/sourceselect/sourceselect.d.ts +0 -116
- package/lib/formly/field/selection/sourceselect/sourceselect.field.component.d.ts +0 -95
- package/lib/formly/field/selection/sourceselect/sourceselect.field.d.ts +0 -7
- package/lib/formly/field/selection/sourceselect/sourceselect.field.module.d.ts +0 -8
- package/lib/formly/field/texteditor/index.d.ts +0 -3
- package/lib/formly/field/texteditor/texteditor.field.component.d.ts +0 -24
- package/lib/formly/field/texteditor/texteditor.field.d.ts +0 -6
- package/lib/formly/field/texteditor/texteditor.field.module.d.ts +0 -8
- package/lib/formly/field/value/array/array.field.component.d.ts +0 -89
- package/lib/formly/field/value/array/array.field.d.ts +0 -40
- package/lib/formly/field/value/array/array.field.module.d.ts +0 -8
- package/lib/formly/field/value/array/index.d.ts +0 -3
- package/lib/formly/field/value/boolean/boolean.field.d.ts +0 -8
- package/lib/formly/field/value/boolean/boolean.field.module.d.ts +0 -9
- package/lib/formly/field/value/boolean/index.d.ts +0 -2
- package/lib/formly/field/value/date/date.field.module.d.ts +0 -10
- package/lib/formly/field/value/date/date.value.d.ts +0 -32
- package/lib/formly/field/value/date/datetime.d.ts +0 -56
- package/lib/formly/field/value/date/datetime.field.component.d.ts +0 -307
- package/lib/formly/field/value/date/datetime.field.d.ts +0 -31
- package/lib/formly/field/value/date/datetime.field.service.d.ts +0 -12
- package/lib/formly/field/value/date/datetime.preset.d.ts +0 -2
- package/lib/formly/field/value/date/fixeddaterange.field.component.d.ts +0 -163
- package/lib/formly/field/value/date/index.d.ts +0 -9
- package/lib/formly/field/value/hidden.field.d.ts +0 -4
- package/lib/formly/field/value/index.d.ts +0 -8
- package/lib/formly/field/value/number/index.d.ts +0 -2
- package/lib/formly/field/value/number/number.field.d.ts +0 -46
- package/lib/formly/field/value/number/number.field.module.d.ts +0 -8
- package/lib/formly/field/value/phone/index.d.ts +0 -3
- package/lib/formly/field/value/phone/phone.field.component.d.ts +0 -35
- package/lib/formly/field/value/phone/phone.field.d.ts +0 -28
- package/lib/formly/field/value/phone/phone.field.module.d.ts +0 -8
- package/lib/formly/field/value/text/index.d.ts +0 -4
- package/lib/formly/field/value/text/text.additional.field.d.ts +0 -24
- package/lib/formly/field/value/text/text.address.field.d.ts +0 -43
- package/lib/formly/field/value/text/text.field.d.ts +0 -21
- package/lib/formly/field/value/text/text.field.module.d.ts +0 -10
- package/lib/formly/field/value/value.module.d.ts +0 -21
- package/lib/formly/field/wrapper/autotouch.wrapper.component.d.ts +0 -11
- package/lib/formly/field/wrapper/expand.wrapper.component.d.ts +0 -14
- package/lib/formly/field/wrapper/expand.wrapper.delegate.d.ts +0 -31
- package/lib/formly/field/wrapper/flex.wrapper.component.d.ts +0 -25
- package/lib/formly/field/wrapper/index.d.ts +0 -12
- package/lib/formly/field/wrapper/info.wrapper.component.d.ts +0 -11
- package/lib/formly/field/wrapper/section.wrapper.component.d.ts +0 -10
- package/lib/formly/field/wrapper/style.wrapper.component.d.ts +0 -27
- package/lib/formly/field/wrapper/subsection.wrapper.component.d.ts +0 -10
- package/lib/formly/field/wrapper/toggle.wrapper.component.d.ts +0 -17
- package/lib/formly/field/wrapper/working.wrapper.component.d.ts +0 -21
- package/lib/formly/field/wrapper/wrapper.d.ts +0 -35
- package/lib/formly/field/wrapper/wrapper.key.d.ts +0 -9
- package/lib/formly/field/wrapper/wrapper.module.d.ts +0 -17
- package/lib/formly/form/form.form.d.ts +0 -11
- package/lib/formly/form/form.form.module.d.ts +0 -10
- package/lib/formly/form/index.d.ts +0 -3
- package/lib/formly/form/search.form.component.d.ts +0 -13
- package/lib/formly/formly.component.template.d.ts +0 -19
- package/lib/formly/formly.context.d.ts +0 -57
- package/lib/formly/formly.context.directive.d.ts +0 -18
- package/lib/formly/formly.directive.d.ts +0 -56
- package/lib/formly/formly.form.component.d.ts +0 -52
- package/lib/formly/formly.module.d.ts +0 -15
- package/lib/formly/formly.providers.d.ts +0 -1
- package/lib/formly/index.d.ts +0 -11
- package/lib/formly/template/available.d.ts +0 -7
- package/lib/formly/template/available.module.d.ts +0 -8
- package/lib/formly/template/index.d.ts +0 -7
- package/lib/formly/template/login.d.ts +0 -66
- package/lib/formly/template/login.module.d.ts +0 -7
- package/lib/formly/template/timezone.d.ts +0 -20
- package/lib/formly/template/timezone.module.d.ts +0 -7
- package/lib/formly/template/website.d.ts +0 -15
- package/lib/index.d.ts +0 -6
- package/lib/layout/form.layout.module.d.ts +0 -10
- package/lib/layout/form.spacer.directive.d.ts +0 -8
- package/lib/layout/index.d.ts +0 -2
- package/lib/validator/available.d.ts +0 -30
- package/lib/validator/boolean.d.ts +0 -2
- package/lib/validator/email.d.ts +0 -2
- package/lib/validator/field.d.ts +0 -32
- package/lib/validator/index.d.ts +0 -7
- package/lib/validator/number.d.ts +0 -23
- package/lib/validator/phone.d.ts +0 -16
- package/lib/validator/website.d.ts +0 -31
- package/mapbox/index.d.ts +0 -2
- package/mapbox/lib/field/index.d.ts +0 -2
- package/mapbox/lib/field/latlng/index.d.ts +0 -4
- package/mapbox/lib/field/latlng/latlng.field.component.d.ts +0 -116
- package/mapbox/lib/field/latlng/latlng.field.d.ts +0 -6
- package/mapbox/lib/field/latlng/latlng.field.marker.component.d.ts +0 -12
- package/mapbox/lib/field/latlng/latlng.module.d.ts +0 -8
- package/mapbox/lib/field/zoom/index.d.ts +0 -3
- package/mapbox/lib/field/zoom/zoom.field.component.d.ts +0 -68
- package/mapbox/lib/field/zoom/zoom.field.d.ts +0 -6
- package/mapbox/lib/field/zoom/zoom.module.d.ts +0 -8
- package/mapbox/lib/mapbox.module.d.ts +0 -8
|
@@ -0,0 +1,3050 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Type, Provider, OnInit, OnDestroy, ElementRef, InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { Transition, HookResult } from '@uirouter/core';
|
|
4
|
+
import * as _dereekb_dbx_web from '@dereekb/dbx-web';
|
|
5
|
+
import { DbxActionTransitionSafetyDirective, DbxActionTransitionSafetyType, AbstractDialogDirective, DbxButtonStyle, DbxSectionHeaderConfig, ScreenMediaWidthType, AbstractDbxSelectionListWrapperDirective, DbxValueListItemDecisionFunction, ListSelectionState, DbxValueListItem, AbstractDbxSelectionListViewDirective, DbxListSelectionMode, AbstractDbxValueListViewItemComponent, DbxFlexSize } from '@dereekb/dbx-web';
|
|
6
|
+
import * as _dereekb_rxjs from '@dereekb/rxjs';
|
|
7
|
+
import { LockSet, IsValidFunction, IsEqualFunction, IsModifiedFunction, ObservableOrValue, ObservableOrValueGetter, MaybeObservableOrValueGetter, WorkUsingContext, MaybeObservableOrValue, LoadingState, SubscriptionObject, SimpleLoadingContext, ListLoadingState, LoadingStateWithDefinedValue } from '@dereekb/rxjs';
|
|
8
|
+
import * as rxjs from 'rxjs';
|
|
9
|
+
import { Observable, BehaviorSubject } from 'rxjs';
|
|
10
|
+
import * as _dereekb_dbx_core from '@dereekb/dbx-core';
|
|
11
|
+
import { DbxActionContextStoreSourceInstance, DbxActionValueGetterResult, DbxButtonDisplay, ClickableAnchor, DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
12
|
+
import * as _dereekb_util from '@dereekb/util';
|
|
13
|
+
import { BooleanStringKeyArray, Maybe, MapFunction, IsValid, IsModified, Destroyable, MaybeSo, ArrayOrValue, GeneralFilterFromPOJOFunction, FilterKeyValueTuplesInput, KeyValueTransformMap, PrimativeKey, ReadKeyFunction, LabelRef, LabeledValue, SearchStringFilterFunction, FactoryWithRequiredInput, Factory, TransformStringFunctionConfigRef, TransformStringFunctionConfig, IndexRef, DecisionFunction, GetterOrValue, LogicalDate, ReadableTimeString, Getter, ISO8601DayString, TimezoneString, DateOrDayString, Milliseconds, ISO8601DateString, TransformNumberFunctionConfigRef, WebsiteDomain, KeyValueTupleFilter, EqualityComparatorFunction } from '@dereekb/util';
|
|
14
|
+
import { FormControlStatus, AbstractControl, FormGroup, ValidationErrors, ValidatorFn, AsyncValidatorFn, FormControl } from '@angular/forms';
|
|
15
|
+
import * as _angular_material_core from '@angular/material/core';
|
|
16
|
+
import { ErrorStateMatcher } from '@angular/material/core';
|
|
17
|
+
import * as _angular_material_progress_spinner from '@angular/material/progress-spinner';
|
|
18
|
+
import * as _ngx_formly_core from '@ngx-formly/core';
|
|
19
|
+
import { FormlyFieldConfig, ConfigOption, FieldTypeConfig, FormlyFieldProps, FieldType, FieldWrapper, FieldArrayType, FieldArrayTypeConfig, FormlyForm, FormlyFormOptions } from '@ngx-formly/core';
|
|
20
|
+
import { MatDialogConfig, MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
21
|
+
import * as i1 from '@ngx-formly/material';
|
|
22
|
+
import { FieldType as FieldType$1 } from '@ngx-formly/material';
|
|
23
|
+
import { FormlyFieldProps as FormlyFieldProps$1, FieldType as FieldType$2 } from '@ngx-formly/material/form-field';
|
|
24
|
+
import { MatInput } from '@angular/material/input';
|
|
25
|
+
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
26
|
+
import { MatChipInputEvent } from '@angular/material/chips';
|
|
27
|
+
import * as _dereekb_dbx_form from '@dereekb/dbx-form';
|
|
28
|
+
import { Editor } from '@bobbyquantum/ngx-editor';
|
|
29
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
30
|
+
import * as i2 from '@ngx-formly/material/checkbox';
|
|
31
|
+
import * as i3 from '@ngx-formly/material/toggle';
|
|
32
|
+
import * as _dereekb_date from '@dereekb/date';
|
|
33
|
+
import { DateRangeWithDateOrStringValue, DateTimezoneUtcNormalInstance, DateTimeMinuteConfig, DateTimeMinuteInstance, DateRangeInput, DateRange, TimezoneInfo } from '@dereekb/date';
|
|
34
|
+
import { MatDatepickerInputEvent, MatCalendar, DateRange as DateRange$1, MatDateRangeSelectionStrategy } from '@angular/material/datepicker';
|
|
35
|
+
import * as i2$1 from '@ngx-formly/material/slider';
|
|
36
|
+
import * as i3$1 from '@ngx-formly/material/input';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Current state of a DbxForm
|
|
40
|
+
*/
|
|
41
|
+
declare enum DbxFormState {
|
|
42
|
+
/**
|
|
43
|
+
* Form is not finished initializing.
|
|
44
|
+
*/
|
|
45
|
+
INITIALIZING = -1,
|
|
46
|
+
/**
|
|
47
|
+
* Form is initialized but has not yet used.
|
|
48
|
+
*/
|
|
49
|
+
RESET = 0,
|
|
50
|
+
/**
|
|
51
|
+
* Form has been used.
|
|
52
|
+
*/
|
|
53
|
+
USED = 1
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Unique key for disabling/enabling.
|
|
57
|
+
*/
|
|
58
|
+
type DbxFormDisabledKey = string;
|
|
59
|
+
declare const DEFAULT_FORM_DISABLED_KEY = "dbx_form_disabled";
|
|
60
|
+
interface DbxFormStateRef {
|
|
61
|
+
readonly state: DbxFormState;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* DbxForm stream event
|
|
65
|
+
*/
|
|
66
|
+
interface DbxFormEvent extends DbxFormStateRef {
|
|
67
|
+
readonly isComplete: boolean;
|
|
68
|
+
readonly status: FormControlStatus;
|
|
69
|
+
readonly pristine?: boolean;
|
|
70
|
+
readonly untouched?: boolean;
|
|
71
|
+
readonly lastResetAt?: Date;
|
|
72
|
+
readonly changesCount?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Whether or not the form is disabled.
|
|
75
|
+
*/
|
|
76
|
+
readonly isDisabled?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Current disabled state keys.
|
|
79
|
+
*/
|
|
80
|
+
readonly disabled?: BooleanStringKeyArray;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Form that has an event stream, value, and state items.
|
|
84
|
+
*/
|
|
85
|
+
declare abstract class DbxForm<T = unknown> {
|
|
86
|
+
abstract readonly stream$: Observable<DbxFormEvent>;
|
|
87
|
+
/**
|
|
88
|
+
* Returns an observable that returns the current state of the form.
|
|
89
|
+
*/
|
|
90
|
+
abstract getValue(): Observable<T>;
|
|
91
|
+
/**
|
|
92
|
+
* Returns an observable that returns the current disabled keys.
|
|
93
|
+
*/
|
|
94
|
+
abstract getDisabled(): Observable<BooleanStringKeyArray>;
|
|
95
|
+
}
|
|
96
|
+
declare abstract class DbxMutableForm<T = unknown> extends DbxForm<T> {
|
|
97
|
+
/**
|
|
98
|
+
* LockSet for the form.
|
|
99
|
+
*/
|
|
100
|
+
abstract readonly lockSet?: LockSet;
|
|
101
|
+
/**
|
|
102
|
+
* Sets the initial value of the form, and resets the form.
|
|
103
|
+
*
|
|
104
|
+
* @param value
|
|
105
|
+
*/
|
|
106
|
+
abstract setValue(value: Maybe<Partial<T>>): void;
|
|
107
|
+
/**
|
|
108
|
+
* Resets the form to the initial value.
|
|
109
|
+
*/
|
|
110
|
+
abstract resetForm(): void;
|
|
111
|
+
/**
|
|
112
|
+
* Disables the form
|
|
113
|
+
*
|
|
114
|
+
* @param disabled
|
|
115
|
+
*/
|
|
116
|
+
abstract setDisabled(key?: DbxFormDisabledKey, disabled?: boolean): void;
|
|
117
|
+
/**
|
|
118
|
+
* Force the form to update itself as if it was changed.
|
|
119
|
+
*/
|
|
120
|
+
abstract forceFormUpdate(): void;
|
|
121
|
+
}
|
|
122
|
+
declare function provideDbxForm<S extends DbxForm>(sourceType: Type<S>): Provider[];
|
|
123
|
+
declare function provideDbxMutableForm<S extends DbxMutableForm>(sourceType: Type<S>): Provider[];
|
|
124
|
+
declare function toggleDisableFormControl(form: AbstractControl<any>, isDisabled: boolean, config?: Parameters<AbstractControl['disable']>[0]): void;
|
|
125
|
+
|
|
126
|
+
declare const APP_ACTION_FORM_DISABLED_KEY = "dbx_action_form";
|
|
127
|
+
type DbxActionFormMapValueFunction<T, O> = MapFunction<T, ObservableOrValue<DbxActionValueGetterResult<O>>>;
|
|
128
|
+
/**
|
|
129
|
+
* Used with an action to bind a form to an action as it's value source.
|
|
130
|
+
*
|
|
131
|
+
* If the form has errors when the action is trigger, it will reject the action.
|
|
132
|
+
*
|
|
133
|
+
* If the source is not considered modified, the trigger will be ignored.
|
|
134
|
+
*/
|
|
135
|
+
declare class DbxActionFormDirective<T = object, O = T> implements OnInit {
|
|
136
|
+
readonly form: DbxMutableForm<any>;
|
|
137
|
+
readonly source: DbxActionContextStoreSourceInstance<O, unknown>;
|
|
138
|
+
readonly lockSet: _dereekb_rxjs.LockSet;
|
|
139
|
+
/**
|
|
140
|
+
* Whether or not to disable the form while the action is working.
|
|
141
|
+
*
|
|
142
|
+
* Defaults to true.
|
|
143
|
+
*/
|
|
144
|
+
readonly dbxActionFormDisabledOnWorking: i0.InputSignal<Maybe<boolean>>;
|
|
145
|
+
/**
|
|
146
|
+
* Optional validator that checks whether or not the value is
|
|
147
|
+
* ready to send before the context store is marked enabled.
|
|
148
|
+
*/
|
|
149
|
+
readonly dbxActionFormIsValid: i0.InputSignal<Maybe<IsValidFunction<T>>>;
|
|
150
|
+
/**
|
|
151
|
+
* Optional function that checks whether or not the value is still the same/equal.
|
|
152
|
+
*/
|
|
153
|
+
readonly dbxActionFormIsEqual: i0.InputSignal<Maybe<IsEqualFunction<T>>>;
|
|
154
|
+
/**
|
|
155
|
+
* Optional function that checks whether or not the value has been modified.
|
|
156
|
+
*
|
|
157
|
+
* If dbxActionFormIsEqual is provided, this will be ignored.
|
|
158
|
+
*/
|
|
159
|
+
readonly dbxActionFormIsModified: i0.InputSignal<Maybe<IsModifiedFunction<T>>>;
|
|
160
|
+
/**
|
|
161
|
+
* Optional function that maps the form's value to the source's value.
|
|
162
|
+
*/
|
|
163
|
+
readonly dbxActionFormMapValue: i0.InputSignal<Maybe<DbxActionFormMapValueFunction<T, O>>>;
|
|
164
|
+
readonly dbxActionFormDisabledOnWorking$: Observable<Maybe<boolean>>;
|
|
165
|
+
readonly isValidFunction$: Observable<IsValidFunction<T>>;
|
|
166
|
+
readonly isModifiedFunction$: Observable<IsModifiedFunction<T>>;
|
|
167
|
+
readonly mapValueFunction$: Observable<Maybe<DbxActionFormMapValueFunction<T, O>>>;
|
|
168
|
+
private readonly _triggeredSub;
|
|
169
|
+
private readonly _isCompleteSub;
|
|
170
|
+
private readonly _isWorkingSub;
|
|
171
|
+
constructor();
|
|
172
|
+
ngOnInit(): void;
|
|
173
|
+
checkIsValidAndIsModified(value: T, overrides?: CheckValidAndModifiedOverrides<T>): Observable<[IsValid, IsModified]>;
|
|
174
|
+
protected preCheckReadyValue(value: T): Observable<[IsValid, IsModified]>;
|
|
175
|
+
protected readyValue(value: T): Observable<DbxActionValueGetterResult<O>>;
|
|
176
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionFormDirective<any, any>, never>;
|
|
177
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionFormDirective<any, any>, "[dbxActionForm]", never, { "dbxActionFormDisabledOnWorking": { "alias": "dbxActionFormDisabledOnWorking"; "required": false; "isSignal": true; }; "dbxActionFormIsValid": { "alias": "dbxActionFormIsValid"; "required": false; "isSignal": true; }; "dbxActionFormIsEqual": { "alias": "dbxActionFormIsEqual"; "required": false; "isSignal": true; }; "dbxActionFormIsModified": { "alias": "dbxActionFormIsModified"; "required": false; "isSignal": true; }; "dbxActionFormMapValue": { "alias": "dbxActionFormMapValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
178
|
+
}
|
|
179
|
+
interface CheckValidAndModifiedOverrides<T> {
|
|
180
|
+
isModifiedFunction?: Maybe<IsModifiedFunction<T>>;
|
|
181
|
+
isValidFunction?: Maybe<IsValidFunction<T>>;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Extension of DbxActionTransitionSafetyDirective that forces the form to update first.
|
|
186
|
+
*
|
|
187
|
+
* NOTE: Only works with UIRouter
|
|
188
|
+
*/
|
|
189
|
+
declare class DbxActionFormSafetyDirective<T, O> extends DbxActionTransitionSafetyDirective<T, O> {
|
|
190
|
+
readonly dbxActionForm: DbxActionFormDirective<T, T>;
|
|
191
|
+
readonly dbxActionFormSafety: i0.InputSignal<DbxActionTransitionSafetyType>;
|
|
192
|
+
protected readonly _dbxActionFormSafetyUpdateEffect: i0.EffectRef;
|
|
193
|
+
protected _handleOnBeforeTransition(transition: Transition): HookResult;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionFormSafetyDirective<any, any>, never>;
|
|
195
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionFormSafetyDirective<any, any>, "[dbxActionFormSafety]", never, { "dbxActionFormSafety": { "alias": "dbxActionFormSafety"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
interface DbxFormlyInitialize<T> {
|
|
199
|
+
fields: Observable<FormlyFieldConfig[]>;
|
|
200
|
+
initialDisabled: BooleanStringKeyArray;
|
|
201
|
+
initialValue: Maybe<Partial<T>>;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* DbxFormlyContext delegate.
|
|
205
|
+
*
|
|
206
|
+
* This is usually the component or element that contains the form itself.
|
|
207
|
+
*/
|
|
208
|
+
interface DbxFormlyContextDelegate<T = unknown> extends Omit<DbxMutableForm<T>, 'lockSet'> {
|
|
209
|
+
readonly stream$: Observable<DbxFormEvent>;
|
|
210
|
+
init(initialize: DbxFormlyInitialize<T>): void;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Allows a directive to provide a formly context and form.
|
|
214
|
+
*/
|
|
215
|
+
declare function provideFormlyContext(): Provider[];
|
|
216
|
+
/**
|
|
217
|
+
* DbxForm Instance that registers a delegate and manages the state of that form/delegate.
|
|
218
|
+
*/
|
|
219
|
+
declare class DbxFormlyContext<T = unknown> implements DbxForm<T>, Destroyable, OnDestroy {
|
|
220
|
+
private static INITIAL_STATE;
|
|
221
|
+
readonly lockSet: LockSet;
|
|
222
|
+
private readonly _fields;
|
|
223
|
+
private readonly _initialValue;
|
|
224
|
+
private readonly _disabled;
|
|
225
|
+
private readonly _delegate;
|
|
226
|
+
readonly fields$: Observable<FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
227
|
+
[additionalProperties: string]: any;
|
|
228
|
+
}>[]>;
|
|
229
|
+
readonly disabled$: Observable<string[]>;
|
|
230
|
+
readonly stream$: Observable<DbxFormEvent>;
|
|
231
|
+
ngOnDestroy(): void;
|
|
232
|
+
destroy(): void;
|
|
233
|
+
setDelegate(delegate?: DbxFormlyContextDelegate<T>): void;
|
|
234
|
+
clearDelegate(delegate: DbxFormlyContextDelegate<T>): void;
|
|
235
|
+
get fields(): Maybe<FormlyFieldConfig[]>;
|
|
236
|
+
set fields(fields: Maybe<FormlyFieldConfig[]>);
|
|
237
|
+
getValue(): Observable<T>;
|
|
238
|
+
setValue(value: Partial<T>): void;
|
|
239
|
+
isDisabled(): boolean;
|
|
240
|
+
get disabled(): BooleanStringKeyArray;
|
|
241
|
+
getDisabled(): Observable<BooleanStringKeyArray>;
|
|
242
|
+
setDisabled(key?: DbxFormDisabledKey, disabled?: boolean): void;
|
|
243
|
+
resetForm(): void;
|
|
244
|
+
forceFormUpdate(): void;
|
|
245
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormlyContext<any>, never>;
|
|
246
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbxFormlyContext<any>>;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
interface DbxFormActionDialogComponentButtonConfig extends DbxButtonDisplay, DbxButtonStyle {
|
|
250
|
+
}
|
|
251
|
+
interface DbxFormActionDialogComponentConfig<O> {
|
|
252
|
+
/**
|
|
253
|
+
* Header text for the dialog.
|
|
254
|
+
*/
|
|
255
|
+
readonly header: string;
|
|
256
|
+
/**
|
|
257
|
+
* Used for retrieving the fields to display in the dialog.
|
|
258
|
+
*/
|
|
259
|
+
readonly fields: ObservableOrValueGetter<FormlyFieldConfig[]>;
|
|
260
|
+
/**
|
|
261
|
+
* Initial value for the form.
|
|
262
|
+
*/
|
|
263
|
+
readonly initialValue?: MaybeObservableOrValueGetter<O>;
|
|
264
|
+
/**
|
|
265
|
+
* Text/Icon for the submit button.
|
|
266
|
+
*/
|
|
267
|
+
readonly submitButtonConfig?: DbxFormActionDialogComponentButtonConfig;
|
|
268
|
+
/**
|
|
269
|
+
* Dialog-specific configuration
|
|
270
|
+
*/
|
|
271
|
+
readonly dialog?: Omit<MatDialogConfig, 'data'>;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
*/
|
|
276
|
+
declare class DbxFormActionDialogComponent<O> extends AbstractDialogDirective<O, DbxFormActionDialogComponentConfig<O>> implements OnInit {
|
|
277
|
+
private readonly _fieldsSub;
|
|
278
|
+
readonly context: DbxFormlyContext<O>;
|
|
279
|
+
readonly fields$: rxjs.Observable<FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
280
|
+
[additionalProperties: string]: any;
|
|
281
|
+
}>[]>;
|
|
282
|
+
readonly initialValue$: rxjs.Observable<O | null | undefined>;
|
|
283
|
+
readonly header: string;
|
|
284
|
+
readonly submitButtonConfig: {
|
|
285
|
+
icon?: Maybe<string>;
|
|
286
|
+
text: string | null;
|
|
287
|
+
type?: _dereekb_dbx_web.DbxButtonType;
|
|
288
|
+
mode?: _angular_material_progress_spinner.ProgressSpinnerMode;
|
|
289
|
+
color?: _angular_material_core.ThemePalette | _dereekb_dbx_web.DbxThemeColor;
|
|
290
|
+
spinnerColor?: _angular_material_core.ThemePalette | _dereekb_dbx_web.DbxThemeColor;
|
|
291
|
+
customButtonColor?: string;
|
|
292
|
+
customTextColor?: string;
|
|
293
|
+
customSpinnerColor?: string;
|
|
294
|
+
fab?: boolean;
|
|
295
|
+
};
|
|
296
|
+
ngOnInit(): void;
|
|
297
|
+
readonly handleSubmitValue: WorkUsingContext<O>;
|
|
298
|
+
static openDialogWithForm<O>(matDialog: MatDialog, config: DbxFormActionDialogComponentConfig<O>): MatDialogRef<DbxFormActionDialogComponent<O>, Maybe<O>>;
|
|
299
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormActionDialogComponent<any>, never>;
|
|
300
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormActionDialogComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
declare function dbxFormSourceObservable<T>(form: DbxMutableForm, inputObs: ObservableOrValue<T>, modeObs: Observable<DbxFormSourceDirectiveMode>): Observable<T>;
|
|
304
|
+
declare function dbxFormSourceObservableFromStream<T>(streamObs: Observable<DbxFormStateRef>, inputObs: ObservableOrValue<T>, modeObs: ObservableOrValue<DbxFormSourceDirectiveMode>): Observable<T>;
|
|
305
|
+
/**
|
|
306
|
+
* DbxFormSourceDirective modes that define when to copy data from the source.
|
|
307
|
+
*
|
|
308
|
+
* - reset: only copy data when the form is reset.
|
|
309
|
+
* - always: always copy data when the data observable emits a value. Has a throttle of 20ms to prevent too many emissions. If emissions occur in a manner that appears to be a loop (more than 30 emissions in 1 second), then an error is thrown and warning printed to the console.
|
|
310
|
+
* - every: equal to always, but has no throttle or error message warning.
|
|
311
|
+
*/
|
|
312
|
+
type DbxFormSourceDirectiveMode = 'reset' | 'always' | 'every';
|
|
313
|
+
/**
|
|
314
|
+
* Used with a FormComponent to set the value based on the input value.
|
|
315
|
+
*/
|
|
316
|
+
declare class DbxFormSourceDirective<T = unknown> {
|
|
317
|
+
readonly form: DbxMutableForm<any>;
|
|
318
|
+
readonly dbxFormSourceMode: i0.InputSignal<Maybe<DbxFormSourceDirectiveMode>>;
|
|
319
|
+
readonly dbxFormSource: i0.InputSignal<Maybe<ObservableOrValue<Maybe<Partial<T>>>>>;
|
|
320
|
+
protected readonly _effectSub: _dereekb_rxjs.SubscriptionObject<rxjs.Unsubscribable>;
|
|
321
|
+
protected readonly _setFormSourceObservableEffect: i0.EffectRef;
|
|
322
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSourceDirective<any>, never>;
|
|
323
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormSourceDirective<any>, "[dbxFormSource]", never, { "dbxFormSourceMode": { "alias": "dbxFormSourceMode"; "required": false; "isSignal": true; }; "dbxFormSource": { "alias": "dbxFormSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Used with a FormComponent to set the value from a LoadingState when the value is available.
|
|
328
|
+
*
|
|
329
|
+
* Only passes non-null values from the source.
|
|
330
|
+
*/
|
|
331
|
+
declare class DbxFormLoadingSourceDirective<T extends object = object> {
|
|
332
|
+
readonly form: DbxMutableForm<any>;
|
|
333
|
+
readonly dbxFormLoadingSourceMode: i0.InputSignalWithTransform<DbxFormSourceDirectiveMode, Maybe<DbxFormSourceDirectiveMode>>;
|
|
334
|
+
readonly dbxFormLoadingSource: i0.InputSignal<MaybeObservableOrValue<LoadingState<T>>>;
|
|
335
|
+
readonly mode$: Observable<DbxFormSourceDirectiveMode>;
|
|
336
|
+
readonly source$: Observable<Maybe<T>>;
|
|
337
|
+
constructor();
|
|
338
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormLoadingSourceDirective<any>, never>;
|
|
339
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormLoadingSourceDirective<any>, "[dbxFormLoadingSource]", never, { "dbxFormLoadingSourceMode": { "alias": "dbxFormLoadingSourceMode"; "required": false; "isSignal": true; }; "dbxFormLoadingSource": { "alias": "dbxFormLoadingSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Used to see form value changes.
|
|
344
|
+
*
|
|
345
|
+
* Emits undefined when the form is incomplete, and the value when the form is complete.
|
|
346
|
+
*/
|
|
347
|
+
declare class DbxFormValueChangeDirective<T> implements OnInit {
|
|
348
|
+
readonly form: DbxForm<any>;
|
|
349
|
+
readonly dbxFormValueChange: i0.OutputEmitterRef<Maybe<T>>;
|
|
350
|
+
protected readonly _sub: _dereekb_rxjs.SubscriptionObject<rxjs.Unsubscribable>;
|
|
351
|
+
ngOnInit(): void;
|
|
352
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormValueChangeDirective<any>, never>;
|
|
353
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormValueChangeDirective<any>, "[dbxFormValueChange]", never, {}, { "dbxFormValueChange": "dbxFormValueChange"; }, never, never, true, never>;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* A FormGroup/AbstractControl path to a specific control.
|
|
358
|
+
*/
|
|
359
|
+
type FormControlPath = string;
|
|
360
|
+
/**
|
|
361
|
+
* Streams a value from the input control at the given path. If no path is specified, streams the value from the control.
|
|
362
|
+
*
|
|
363
|
+
* @param fromControl
|
|
364
|
+
* @param path
|
|
365
|
+
* @returns
|
|
366
|
+
*/
|
|
367
|
+
declare function streamValueFromControl<T>(fromControl: AbstractControl, path?: FormControlPath): Maybe<Observable<T>>;
|
|
368
|
+
|
|
369
|
+
declare class DbxFormModule {
|
|
370
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormModule, never>;
|
|
371
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormModule, never, never, never>;
|
|
372
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormModule>;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
type ValidationMessageOption = MaybeSo<ConfigOption['validationMessages']>[number];
|
|
376
|
+
|
|
377
|
+
declare function minLengthValidationMessage(err: unknown, field: FieldTypeConfig): string;
|
|
378
|
+
declare function maxLengthValidationMessage(err: unknown, field: FieldTypeConfig): string;
|
|
379
|
+
declare function minValidationMessage(err: unknown, field: FieldTypeConfig): string;
|
|
380
|
+
declare function maxValidationMessage(err: unknown, field: FieldTypeConfig): string;
|
|
381
|
+
declare const REQUIRED_VALIDATION_MESSAGE: {
|
|
382
|
+
name: string;
|
|
383
|
+
message: string;
|
|
384
|
+
};
|
|
385
|
+
declare const MIN_LENGTH_VALIDATION_MESSAGE: ValidationMessageOption;
|
|
386
|
+
declare const MAX_LENGTH_VALIDATION_MESSAGE: ValidationMessageOption;
|
|
387
|
+
declare const MIN_VALIDATION_MESSAGE: ValidationMessageOption;
|
|
388
|
+
declare const MAX_VALIDATION_MESSAGE: ValidationMessageOption;
|
|
389
|
+
declare const INVALID_PHONE_NUMBER_MESSAGE: {
|
|
390
|
+
name: string;
|
|
391
|
+
message: string;
|
|
392
|
+
};
|
|
393
|
+
declare const INVALID_PHONE_NUMBER_EXTENSION_MESSAGE: {
|
|
394
|
+
name: string;
|
|
395
|
+
message: string;
|
|
396
|
+
};
|
|
397
|
+
declare function defaultValidationMessages(): ValidationMessageOption[];
|
|
398
|
+
|
|
399
|
+
interface ChecklistItemDisplayContent<T = unknown> {
|
|
400
|
+
/**
|
|
401
|
+
* Label to display.
|
|
402
|
+
*/
|
|
403
|
+
readonly label?: Maybe<string>;
|
|
404
|
+
/**
|
|
405
|
+
* Secondary label/value to display. May be used as the string value.
|
|
406
|
+
*/
|
|
407
|
+
readonly sublabel?: Maybe<string>;
|
|
408
|
+
/**
|
|
409
|
+
* Hint/description to display.
|
|
410
|
+
*/
|
|
411
|
+
readonly description?: Maybe<string>;
|
|
412
|
+
/**
|
|
413
|
+
* Whether or not to display the ripple. Is true by default if the anchor is present.
|
|
414
|
+
*/
|
|
415
|
+
readonly ripple?: Maybe<boolean>;
|
|
416
|
+
/**
|
|
417
|
+
* Optional anchor to apply on the visible content.
|
|
418
|
+
*/
|
|
419
|
+
readonly anchor?: Maybe<ClickableAnchor>;
|
|
420
|
+
/**
|
|
421
|
+
* Value metadata. How it is used depends on the display component used.
|
|
422
|
+
*/
|
|
423
|
+
readonly meta?: Maybe<T>;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Component used for rendering checklist content.
|
|
427
|
+
*
|
|
428
|
+
* Content is injected.
|
|
429
|
+
*/
|
|
430
|
+
interface ChecklistItemFieldDisplayComponent<T = unknown> {
|
|
431
|
+
setDisplayContent(displayContent: ChecklistItemDisplayContent<T>): void;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
declare class DbxChecklistItemContentComponent<T = unknown> {
|
|
435
|
+
readonly checklistItemFieldComponent: DbxChecklistItemFieldComponent<any>;
|
|
436
|
+
readonly config: DbxInjectionComponentConfig<ChecklistItemFieldDisplayComponent<T>>;
|
|
437
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxChecklistItemContentComponent<any>, never>;
|
|
438
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxChecklistItemContentComponent<any>, "dbx-checklist-item-content-component", never, {}, {}, never, never, true, never>;
|
|
439
|
+
}
|
|
440
|
+
interface DbxChecklistItemFieldProps<T = unknown> extends FormlyFieldProps {
|
|
441
|
+
/**
|
|
442
|
+
* Observable used to retrieve content to display for the item.
|
|
443
|
+
*/
|
|
444
|
+
readonly displayContent: Observable<ChecklistItemDisplayContent<T>>;
|
|
445
|
+
/**
|
|
446
|
+
* Custom component class to use by default.
|
|
447
|
+
*/
|
|
448
|
+
readonly componentClass?: Type<ChecklistItemFieldDisplayComponent<T>>;
|
|
449
|
+
}
|
|
450
|
+
declare class DbxChecklistItemFieldComponent<T = unknown> extends FieldType<FieldTypeConfig<DbxChecklistItemFieldProps<T>>> implements OnInit {
|
|
451
|
+
private readonly _displayContentObs;
|
|
452
|
+
readonly displayContent$: Observable<ChecklistItemDisplayContent<T>>;
|
|
453
|
+
readonly anchor$: Observable<Maybe<_dereekb_dbx_core.ClickableAnchor>>;
|
|
454
|
+
readonly rippleDisabled$: Observable<boolean>;
|
|
455
|
+
readonly anchorSignal: i0.Signal<Maybe<_dereekb_dbx_core.ClickableAnchor>>;
|
|
456
|
+
readonly rippleDisabledSignal: i0.Signal<boolean>;
|
|
457
|
+
get formGroup(): FormGroup;
|
|
458
|
+
get formControlName(): string;
|
|
459
|
+
get label(): Maybe<string>;
|
|
460
|
+
get description(): Maybe<string>;
|
|
461
|
+
get required(): Maybe<boolean>;
|
|
462
|
+
get checklistField(): DbxChecklistItemFieldProps<T>;
|
|
463
|
+
get errors(): Maybe<ValidationErrors>;
|
|
464
|
+
get componentClass(): Type<ChecklistItemFieldDisplayComponent<T>>;
|
|
465
|
+
ngOnInit(): void;
|
|
466
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxChecklistItemFieldComponent<any>, never>;
|
|
467
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxChecklistItemFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
declare class DbxDefaultChecklistItemFieldDisplayComponent<T = unknown> implements ChecklistItemFieldDisplayComponent<T> {
|
|
471
|
+
readonly _displayContentSignal: i0.WritableSignal<Maybe<ChecklistItemDisplayContent<T>>>;
|
|
472
|
+
readonly displayContentSignal: i0.Signal<Maybe<ChecklistItemDisplayContent<T>>>;
|
|
473
|
+
setDisplayContent(displayContent: ChecklistItemDisplayContent<T>): void;
|
|
474
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxDefaultChecklistItemFieldDisplayComponent<any>, never>;
|
|
475
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxDefaultChecklistItemFieldDisplayComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Wrapper than sets the field to "touched" when the value changes and the field is not pristine.
|
|
480
|
+
*/
|
|
481
|
+
declare class AutoTouchFieldWrapperComponent extends FieldWrapper<FieldTypeConfig> implements OnInit {
|
|
482
|
+
ngOnInit(): void;
|
|
483
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoTouchFieldWrapperComponent, never>;
|
|
484
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutoTouchFieldWrapperComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
type DbxFormSectionConfig = DbxSectionHeaderConfig;
|
|
488
|
+
declare class DbxFormSectionWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormSectionConfig>> {
|
|
489
|
+
get headerConfig(): Maybe<DbxSectionHeaderConfig>;
|
|
490
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSectionWrapperComponent, never>;
|
|
491
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSectionWrapperComponent, "dbx-form-section-wrapper", never, {}, {}, never, never, true, never>;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
type DbxFormSubsectionConfig = DbxSectionHeaderConfig;
|
|
495
|
+
declare class DbxFormSubsectionWrapperComponent extends FieldWrapper<FieldTypeConfig<DbxFormSubsectionConfig>> {
|
|
496
|
+
get headerConfig(): Maybe<DbxSectionHeaderConfig>;
|
|
497
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSubsectionWrapperComponent, never>;
|
|
498
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSubsectionWrapperComponent, "dbx-form-subsection-wrapper", never, {}, {}, never, never, true, never>;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
interface DbxFormInfoConfig extends FormlyFieldProps {
|
|
502
|
+
readonly onInfoClick: () => void;
|
|
503
|
+
}
|
|
504
|
+
declare class DbxFormInfoWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormInfoConfig>> {
|
|
505
|
+
get infoWrapper(): DbxFormInfoConfig;
|
|
506
|
+
onInfoClick(): void;
|
|
507
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormInfoWrapperComponent, never>;
|
|
508
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormInfoWrapperComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
interface AbstractFormExpandSectionConfig<T extends object = object> extends Pick<FormlyFieldProps, 'label'> {
|
|
512
|
+
expandLabel?: string;
|
|
513
|
+
/**
|
|
514
|
+
* Optional function to use for checking value existence.
|
|
515
|
+
*/
|
|
516
|
+
hasValueFn?: (value: T) => boolean;
|
|
517
|
+
}
|
|
518
|
+
declare const DEFAULT_HAS_VALUE_FN: (x: object) => boolean;
|
|
519
|
+
declare class AbstractFormExpandSectionWrapperDirective<T extends object = object, S extends AbstractFormExpandSectionConfig<T> = AbstractFormExpandSectionConfig<T>> extends FieldWrapper<FormlyFieldConfig<S>> implements OnInit, OnDestroy {
|
|
520
|
+
protected readonly _formControlObs: BehaviorSubject<Maybe<AbstractControl<any, any, any>>>;
|
|
521
|
+
protected readonly _toggleOpen: BehaviorSubject<Maybe<boolean>>;
|
|
522
|
+
readonly formControl$: rxjs.Observable<AbstractControl<any, any, any>>;
|
|
523
|
+
readonly show$: rxjs.Observable<boolean>;
|
|
524
|
+
readonly hasValue$: rxjs.Observable<boolean>;
|
|
525
|
+
readonly showSignal: i0.Signal<boolean>;
|
|
526
|
+
readonly hasValueSignal: i0.Signal<boolean>;
|
|
527
|
+
get expandSection(): S;
|
|
528
|
+
get hasValueFn(): (value: T) => boolean;
|
|
529
|
+
get expandLabel(): Maybe<string>;
|
|
530
|
+
open(): void;
|
|
531
|
+
ngOnInit(): void;
|
|
532
|
+
ngOnDestroy(): void;
|
|
533
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormExpandSectionWrapperDirective<any, any>, never>;
|
|
534
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFormExpandSectionWrapperDirective<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
type DbxFormExpandWrapperButtonType = 'button' | 'text';
|
|
538
|
+
interface DbxFormExpandWrapperConfig<T extends object = object> extends AbstractFormExpandSectionConfig<T> {
|
|
539
|
+
readonly buttonType?: DbxFormExpandWrapperButtonType;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Section that is expandable by a button until a value is set, or the button is pressed.
|
|
543
|
+
*/
|
|
544
|
+
declare class DbxFormExpandWrapperComponent<T extends object = object> extends AbstractFormExpandSectionWrapperDirective<T, DbxFormExpandWrapperConfig<T>> {
|
|
545
|
+
get buttonType(): DbxFormExpandWrapperButtonType;
|
|
546
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormExpandWrapperComponent<any>, never>;
|
|
547
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormExpandWrapperComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
interface DbxFormToggleWrapperConfig<T extends object = object> extends AbstractFormExpandSectionConfig<T> {
|
|
551
|
+
toggleLabelObs?: (open: Maybe<boolean>) => Observable<string>;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Section that can be expanded by a button until a value is set, or the button is pressed.
|
|
555
|
+
*/
|
|
556
|
+
declare class DbxFormToggleWrapperComponent<T extends object = object> extends AbstractFormExpandSectionWrapperDirective<T, DbxFormToggleWrapperConfig> {
|
|
557
|
+
readonly slideLabel$: Observable<Maybe<string>>;
|
|
558
|
+
readonly slideLabelSignal: i0.Signal<Maybe<string>>;
|
|
559
|
+
onToggleChange(): void;
|
|
560
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormToggleWrapperComponent<any>, never>;
|
|
561
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormToggleWrapperComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
interface DbxFlexWrapperConfig {
|
|
565
|
+
/**
|
|
566
|
+
* Breakpoint based on the screen width.
|
|
567
|
+
*/
|
|
568
|
+
readonly breakpoint?: ScreenMediaWidthType;
|
|
569
|
+
/**
|
|
570
|
+
* Whether or not to use relative sizing.
|
|
571
|
+
*/
|
|
572
|
+
readonly relative?: boolean;
|
|
573
|
+
/**
|
|
574
|
+
* Whether or not to break to a new column when the breakpoint is reached.
|
|
575
|
+
*/
|
|
576
|
+
readonly breakToColumn?: boolean;
|
|
577
|
+
}
|
|
578
|
+
declare class DbxFormFlexWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFlexWrapperConfig>> {
|
|
579
|
+
get flexWrapper(): DbxFlexWrapperConfig;
|
|
580
|
+
get breakpoint(): ScreenMediaWidthType | undefined;
|
|
581
|
+
get relative(): boolean;
|
|
582
|
+
get breakToColumn(): boolean;
|
|
583
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFlexWrapperComponent, never>;
|
|
584
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormFlexWrapperComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
type DbxFormStyleObject = {
|
|
588
|
+
[styleClass: string]: any;
|
|
589
|
+
};
|
|
590
|
+
interface DbxFormStyleWrapperConfig {
|
|
591
|
+
styleGetter?: Maybe<ObservableOrValue<DbxFormStyleObject>>;
|
|
592
|
+
classGetter?: Maybe<ObservableOrValue<string>>;
|
|
593
|
+
}
|
|
594
|
+
declare class DbxFormStyleWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormStyleWrapperConfig>> implements OnInit, OnDestroy {
|
|
595
|
+
private readonly _style;
|
|
596
|
+
private readonly _class;
|
|
597
|
+
readonly style$: Observable<Maybe<{}>>;
|
|
598
|
+
readonly class$: Observable<Maybe<string>>;
|
|
599
|
+
readonly styleSignal: i0.Signal<Maybe<{}>>;
|
|
600
|
+
readonly classSignal: i0.Signal<Maybe<string>>;
|
|
601
|
+
get styleGetter(): Maybe<ObservableOrValue<DbxFormStyleObject>>;
|
|
602
|
+
get classGetter(): Maybe<ObservableOrValue<string>>;
|
|
603
|
+
ngOnInit(): void;
|
|
604
|
+
ngOnDestroy(): void;
|
|
605
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormStyleWrapperComponent, never>;
|
|
606
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormStyleWrapperComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* No configurable value for now.
|
|
611
|
+
*/
|
|
612
|
+
type DbxFormWorkingWrapperConfig = object;
|
|
613
|
+
/**
|
|
614
|
+
* Adds a loading bar to help signify asynchronous work is occuring.
|
|
615
|
+
*
|
|
616
|
+
* By default shows loading during asynchronous validation of a field (FormControl status is "PENDING")
|
|
617
|
+
*/
|
|
618
|
+
declare class DbxFormWorkingWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormWorkingWrapperConfig>> implements OnInit, OnDestroy {
|
|
619
|
+
readonly sub: SubscriptionObject<rxjs.Unsubscribable>;
|
|
620
|
+
readonly workingContext: SimpleLoadingContext;
|
|
621
|
+
ngOnInit(): void;
|
|
622
|
+
ngOnDestroy(): void;
|
|
623
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormWorkingWrapperComponent, never>;
|
|
624
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormWorkingWrapperComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
declare class DbxFormFormlyWrapperModule {
|
|
628
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyWrapperModule, never>;
|
|
629
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyWrapperModule, never, [typeof AutoTouchFieldWrapperComponent, typeof DbxFormSectionWrapperComponent, typeof DbxFormSubsectionWrapperComponent, typeof DbxFormInfoWrapperComponent, typeof DbxFormExpandWrapperComponent, typeof DbxFormToggleWrapperComponent, typeof DbxFormFlexWrapperComponent, typeof DbxFormStyleWrapperComponent, typeof DbxFormWorkingWrapperComponent, typeof _ngx_formly_core.FormlyModule, typeof i1.FormlyMaterialModule, typeof _ngx_formly_core.FormlyModule], [typeof AutoTouchFieldWrapperComponent, typeof DbxFormSectionWrapperComponent, typeof DbxFormSubsectionWrapperComponent, typeof DbxFormInfoWrapperComponent, typeof DbxFormExpandWrapperComponent, typeof DbxFormToggleWrapperComponent, typeof DbxFormFlexWrapperComponent, typeof DbxFormStyleWrapperComponent, typeof DbxFormWorkingWrapperComponent, typeof _ngx_formly_core.FormlyModule, typeof i1.FormlyMaterialModule]>;
|
|
630
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyWrapperModule>;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
declare class DbxFormFormlyChecklistItemFieldModule {
|
|
634
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyChecklistItemFieldModule, never>;
|
|
635
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyChecklistItemFieldModule, never, [typeof DbxChecklistItemFieldComponent, typeof DbxChecklistItemContentComponent, typeof DbxDefaultChecklistItemFieldDisplayComponent, typeof DbxFormFormlyWrapperModule, typeof _ngx_formly_core.FormlyModule], [typeof DbxChecklistItemFieldComponent, typeof DbxChecklistItemContentComponent, typeof DbxDefaultChecklistItemFieldDisplayComponent]>;
|
|
636
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyChecklistItemFieldModule>;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
type FormlyValueParser<I = any, O = any> = MapFunction<I, O>;
|
|
640
|
+
interface FieldConfigParsersRef {
|
|
641
|
+
parsers: FormlyValueParser[];
|
|
642
|
+
}
|
|
643
|
+
interface FieldConfig extends Pick<FormlyFieldConfig, 'expressions' | 'parsers'>, Partial<FieldConfigParsersRef> {
|
|
644
|
+
key: string;
|
|
645
|
+
required?: boolean;
|
|
646
|
+
readonly?: boolean;
|
|
647
|
+
}
|
|
648
|
+
interface FieldConfigWithParsers {
|
|
649
|
+
parsers?: FormlyValueParser[];
|
|
650
|
+
}
|
|
651
|
+
type DisableAutocompleteForField = false;
|
|
652
|
+
interface LabeledFieldConfig extends FieldConfig {
|
|
653
|
+
key: string;
|
|
654
|
+
label?: string;
|
|
655
|
+
placeholder?: string;
|
|
656
|
+
required?: boolean;
|
|
657
|
+
readonly?: boolean;
|
|
658
|
+
/**
|
|
659
|
+
* Sets the autocomplete values.
|
|
660
|
+
*/
|
|
661
|
+
autocomplete?: string | DisableAutocompleteForField;
|
|
662
|
+
}
|
|
663
|
+
interface DefaultValueFieldConfig<T = unknown> {
|
|
664
|
+
defaultValue?: T;
|
|
665
|
+
}
|
|
666
|
+
interface AttributesFieldConfig {
|
|
667
|
+
attributes?: {
|
|
668
|
+
[key: string]: string | number;
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
interface DescriptionFieldConfig {
|
|
672
|
+
description?: string;
|
|
673
|
+
}
|
|
674
|
+
type PartialPotentialFieldConfig = Partial<FieldConfig> & Partial<LabeledFieldConfig> & Partial<AttributesFieldConfig> & Partial<DescriptionFieldConfig>;
|
|
675
|
+
/**
|
|
676
|
+
* Validates the configuration on the input field.
|
|
677
|
+
*/
|
|
678
|
+
declare function formlyField<T extends FormlyFieldConfig = FormlyFieldConfig>(fieldConfig: T): T;
|
|
679
|
+
/**
|
|
680
|
+
* Creates an object with propers, expressions, and parsers properly configured from the input FieldConfig.
|
|
681
|
+
*
|
|
682
|
+
* @param fieldConfig
|
|
683
|
+
* @param override
|
|
684
|
+
* @returns
|
|
685
|
+
*/
|
|
686
|
+
declare function propsAndConfigForFieldConfig<O extends object = object>(fieldConfig: Partial<FieldConfig> & Partial<LabeledFieldConfig> & Partial<AttributesFieldConfig> & Partial<DescriptionFieldConfig>, override?: PartialPotentialFieldConfig & O): {
|
|
687
|
+
props: Partial<FormlyFieldProps> & Partial<FieldConfig> & Partial<LabeledFieldConfig> & Partial<AttributesFieldConfig> & Partial<DescriptionFieldConfig> & O;
|
|
688
|
+
expressions: ({
|
|
689
|
+
[property: string]: string | rxjs.Observable<any> | ((field: FormlyFieldConfig) => any);
|
|
690
|
+
} & {
|
|
691
|
+
className?: string | rxjs.Observable<string> | ((field: FormlyFieldConfig) => string);
|
|
692
|
+
hide?: string | rxjs.Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
|
|
693
|
+
'props.disabled'?: string | rxjs.Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
|
|
694
|
+
'props.required'?: string | rxjs.Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
|
|
695
|
+
}) | undefined;
|
|
696
|
+
parsers: ((value: any) => any)[] | undefined;
|
|
697
|
+
};
|
|
698
|
+
declare const partialPotentialFieldConfigKeys: (keyof PartialPotentialFieldConfig)[];
|
|
699
|
+
declare const partialPotentialFieldConfigKeysFilter: FilterKeyValueTuplesInput<PartialPotentialFieldConfig>;
|
|
700
|
+
declare const mergePropsValueObjects: _dereekb_util.MergeObjectsFunction<PartialPotentialFieldConfig>;
|
|
701
|
+
declare const filterPartialPotentialFieldConfigValuesFromObject: GeneralFilterFromPOJOFunction<PartialPotentialFieldConfig>;
|
|
702
|
+
declare function propsValueForFieldConfig<T extends FormlyFieldProps, O extends object = object>(fieldConfig: PartialPotentialFieldConfig, override?: PartialPotentialFieldConfig & O): Partial<T> & O;
|
|
703
|
+
/**
|
|
704
|
+
* Returns configuration for a formlyField that will disable autofill/autocomplete for a field.
|
|
705
|
+
*/
|
|
706
|
+
declare function disableFormlyFieldAutofillAttributes(): {
|
|
707
|
+
name: string;
|
|
708
|
+
autocomplete: string;
|
|
709
|
+
};
|
|
710
|
+
type FormlyMessageProperties = {
|
|
711
|
+
[messageProperties: string]: ValidationMessageOption['message'];
|
|
712
|
+
};
|
|
713
|
+
interface ValidatorsForFieldConfigInput {
|
|
714
|
+
validators?: ArrayOrValue<ValidatorFn>;
|
|
715
|
+
asyncValidators?: ArrayOrValue<AsyncValidatorFn>;
|
|
716
|
+
messages?: Maybe<FormlyMessageProperties>;
|
|
717
|
+
}
|
|
718
|
+
type ValidatorsForFieldConfig = {
|
|
719
|
+
validation?: {
|
|
720
|
+
messages?: FormlyMessageProperties;
|
|
721
|
+
};
|
|
722
|
+
validators?: {
|
|
723
|
+
validation: ValidatorFn[];
|
|
724
|
+
};
|
|
725
|
+
asyncValidators?: {
|
|
726
|
+
validation: AsyncValidatorFn[];
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
declare function validatorsForFieldConfig(input: ValidatorsForFieldConfigInput): Maybe<ValidatorsForFieldConfig>;
|
|
730
|
+
interface MaterialFormFieldConfig {
|
|
731
|
+
readonly materialFormField?: Partial<Pick<FormlyFieldProps$1, 'prefix' | 'suffix' | 'hideLabel' | 'hideRequiredMarker' | 'hideFieldUnderline' | 'floatLabel' | 'appearance' | 'color' | 'hintStart' | 'hintEnd'>>;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
interface ChecklistItemFieldConfig<T = unknown> extends LabeledFieldConfig, DbxChecklistItemFieldProps<T> {
|
|
735
|
+
}
|
|
736
|
+
type ChecklistItemFieldBuilderInput<T = unknown> = Partial<ChecklistItemFieldConfig<T>> & Pick<ChecklistItemFieldConfig<T>, 'key' | 'displayContent'>;
|
|
737
|
+
declare function checklistItemField<T = unknown>(config: ChecklistItemFieldBuilderInput<T>): FormlyFieldConfig<DbxChecklistItemFieldProps<T>>;
|
|
738
|
+
|
|
739
|
+
type ChecklistItemFieldDataSetFieldKey<D> = keyof D & string;
|
|
740
|
+
type ChecklistItemFieldDataSetFieldValueForKey<D, K extends keyof D = keyof D> = D[K];
|
|
741
|
+
type ChecklistType<D> = KeyValueTransformMap<D, boolean>;
|
|
742
|
+
type ChecklistItemFieldDataSetBuilderInput<D, T> = {
|
|
743
|
+
key: ChecklistItemFieldDataSetFieldKey<D>;
|
|
744
|
+
} & ChecklistItemFieldBuilderInput<T>;
|
|
745
|
+
interface ChecklistItemFieldDataSetItem<D, T extends ChecklistType<D>> {
|
|
746
|
+
/**
|
|
747
|
+
* Key for the field.
|
|
748
|
+
*/
|
|
749
|
+
readonly key: ChecklistItemFieldDataSetFieldKey<T>;
|
|
750
|
+
/**
|
|
751
|
+
* Base field configuration to use.
|
|
752
|
+
*/
|
|
753
|
+
readonly field: ChecklistItemFieldBuilderInput<T>;
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* Used for building a set of configurations for a data-type object that has as second object that is used as a checklist.
|
|
757
|
+
*/
|
|
758
|
+
declare class ChecklistItemFieldDataSetBuilder<D extends object, C extends ChecklistType<D> = ChecklistType<D>> {
|
|
759
|
+
private readonly _fields;
|
|
760
|
+
readonly dataObs$: Observable<D>;
|
|
761
|
+
constructor(dataObs: Observable<D>);
|
|
762
|
+
/**
|
|
763
|
+
* Merges the input config with existing configuration.
|
|
764
|
+
*
|
|
765
|
+
* The displayContentObs, if provided, will merge with the existing observable and the two objects merged.
|
|
766
|
+
*/
|
|
767
|
+
merge<T>(key: ChecklistItemFieldDataSetFieldKey<D>, config: Partial<ChecklistItemFieldBuilderInput<T>>): void;
|
|
768
|
+
override<T>(key: ChecklistItemFieldDataSetFieldKey<D>, config: Partial<ChecklistItemFieldBuilderInput<T>>): void;
|
|
769
|
+
_assertFieldExists(key: ChecklistItemFieldDataSetFieldKey<D>): ChecklistItemFieldDataSetItem<D, any>;
|
|
770
|
+
showValueFieldArrayCount<T extends ChecklistItemFieldDataSetFieldValueForKey<D> & Array<unknown>>(key: ChecklistItemFieldDataSetFieldKey<D>, config?: Partial<ChecklistItemFieldDataSetBuilderInput<D, T>>): void;
|
|
771
|
+
showValueField<T extends ChecklistItemFieldDataSetFieldValueForKey<D> = ChecklistItemFieldDataSetFieldValueForKey<D>>(key: ChecklistItemFieldDataSetFieldKey<D>, config?: Partial<ChecklistItemFieldDataSetBuilderInput<D, T>>, labelFn?: (value: T) => Maybe<string>): void;
|
|
772
|
+
field<T>(config: ChecklistItemFieldDataSetBuilderInput<D, T>): void;
|
|
773
|
+
build(): FormlyFieldConfig[];
|
|
774
|
+
customContentFromData<T extends ChecklistItemFieldDataSetFieldValueForKey<D> = ChecklistItemFieldDataSetFieldValueForKey<D>>(mapFn: (data: D) => ChecklistItemDisplayContent<T>): Observable<ChecklistItemDisplayContent<T>>;
|
|
775
|
+
contentWithValueFromData<K extends keyof D = keyof D, T extends ChecklistItemFieldDataSetFieldValueForKey<D> = ChecklistItemFieldDataSetFieldValueForKey<D>>(key: K, contentFn?: (value: T) => ChecklistItemDisplayContent<T>): Observable<ChecklistItemDisplayContent<T>>;
|
|
776
|
+
contentWithDisplayValueFromData<T extends ChecklistItemFieldDataSetFieldValueForKey<D> = ChecklistItemFieldDataSetFieldValueForKey<D>>(key: ChecklistItemFieldDataSetFieldKey<D>, labelFn?: (value: T) => Maybe<string>): Observable<ChecklistItemDisplayContent<T>>;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
type DbxFormComponentFieldConfig<T> = DbxInjectionComponentConfig<T>;
|
|
780
|
+
interface DbxFormComponentFormlyFieldConfig<T = unknown> extends FormlyFieldConfig {
|
|
781
|
+
componentField: DbxFormComponentFieldConfig<T>;
|
|
782
|
+
}
|
|
783
|
+
declare class DbxFormComponentFieldComponent<T = unknown> extends FieldType<DbxFormComponentFormlyFieldConfig<T>> {
|
|
784
|
+
get config(): DbxInjectionComponentConfig<T>;
|
|
785
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormComponentFieldComponent<any>, never>;
|
|
786
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormComponentFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
declare class DbxFormFormlyComponentFieldModule {
|
|
790
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyComponentFieldModule, never>;
|
|
791
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyComponentFieldModule, never, [typeof DbxFormComponentFieldComponent, typeof _ngx_formly_core.FormlyModule], [typeof DbxFormComponentFieldComponent]>;
|
|
792
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyComponentFieldModule>;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
type ComponentFieldConfig<T = unknown> = DbxFormComponentFieldConfig<T>;
|
|
796
|
+
declare function componentField<T = unknown>(config: ComponentFieldConfig<T>): DbxFormComponentFormlyFieldConfig<T>;
|
|
797
|
+
|
|
798
|
+
interface DbxItemListFieldProps<T = unknown, C extends AbstractDbxSelectionListWrapperDirective<T> = AbstractDbxSelectionListWrapperDirective<T>, K extends PrimativeKey = PrimativeKey> extends Pick<FormlyFieldProps, 'label' | 'description'> {
|
|
799
|
+
/**
|
|
800
|
+
* List to render components from
|
|
801
|
+
*/
|
|
802
|
+
readonly listComponentClass: Observable<Type<C>>;
|
|
803
|
+
/**
|
|
804
|
+
* Read key function to read the identifier from the input
|
|
805
|
+
*/
|
|
806
|
+
readonly readKey: ReadKeyFunction<T, K>;
|
|
807
|
+
/**
|
|
808
|
+
* Observable that provides the items to select.
|
|
809
|
+
*/
|
|
810
|
+
readonly state$: Observable<ListLoadingState<T>>;
|
|
811
|
+
/**
|
|
812
|
+
* Function that signals to load more items.
|
|
813
|
+
*/
|
|
814
|
+
readonly loadMore?: () => void;
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* Used for picking items by identifier from a DbxList component.
|
|
818
|
+
*/
|
|
819
|
+
declare class DbxItemListFieldComponent<T = unknown, C extends AbstractDbxSelectionListWrapperDirective<T> = AbstractDbxSelectionListWrapperDirective<T>, K extends PrimativeKey = PrimativeKey> extends FieldType<FieldTypeConfig<DbxItemListFieldProps<T, C, K>>> implements OnInit, OnDestroy {
|
|
820
|
+
private readonly _selectionEventSub;
|
|
821
|
+
private readonly _loadMoreSub;
|
|
822
|
+
private readonly _formControlObs;
|
|
823
|
+
readonly formControl$: Observable<AbstractControl<any, any, any>>;
|
|
824
|
+
readonly _formControlValue$: Observable<Maybe<K[]>>;
|
|
825
|
+
readonly values$: Observable<K[]>;
|
|
826
|
+
private readonly _listComponentClassObs;
|
|
827
|
+
readonly listComponentClass$: Observable<Type<C>>;
|
|
828
|
+
readonly config$: Observable<DbxInjectionComponentConfig<C>>;
|
|
829
|
+
readonly isSelectedModifierFunction$: Observable<DbxValueListItemDecisionFunction<T>>;
|
|
830
|
+
readonly configSignal: i0.Signal<DbxInjectionComponentConfig<C> | undefined>;
|
|
831
|
+
readonly isSelectedModifierFunctionSignal: i0.Signal<DbxValueListItemDecisionFunction<T> | undefined>;
|
|
832
|
+
get label(): string | undefined;
|
|
833
|
+
get description(): string | undefined;
|
|
834
|
+
get listComponentClass(): Observable<Type<C>>;
|
|
835
|
+
get readKey(): ReadKeyFunction<T, K>;
|
|
836
|
+
get loadMore(): (() => void) | undefined;
|
|
837
|
+
ngOnInit(): void;
|
|
838
|
+
ngOnDestroy(): void;
|
|
839
|
+
updateForSelection(list: ListSelectionState<T>): void;
|
|
840
|
+
setValues(values: Maybe<K[]>): void;
|
|
841
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxItemListFieldComponent<any, any, any>, never>;
|
|
842
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxItemListFieldComponent<any, any, any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
interface DbxListFieldConfig<T = unknown, C extends AbstractDbxSelectionListWrapperDirective<T> = AbstractDbxSelectionListWrapperDirective<T>, K extends PrimativeKey = PrimativeKey> extends LabeledFieldConfig, DbxItemListFieldProps<T, C, K> {
|
|
846
|
+
}
|
|
847
|
+
declare function dbxListField<T = unknown, C extends AbstractDbxSelectionListWrapperDirective<T> = AbstractDbxSelectionListWrapperDirective<T>, K extends PrimativeKey = PrimativeKey>(config: DbxListFieldConfig<T, C, K>): FormlyFieldConfig;
|
|
848
|
+
|
|
849
|
+
declare class DbxFormFormlyDbxListFieldModule {
|
|
850
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyDbxListFieldModule, never>;
|
|
851
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyDbxListFieldModule, never, [typeof DbxItemListFieldComponent, typeof _ngx_formly_core.FormlyModule], [typeof DbxItemListFieldComponent]>;
|
|
852
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyDbxListFieldModule>;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
interface SelectionValue<T, M = unknown> {
|
|
856
|
+
/**
|
|
857
|
+
* Value associated with this field.
|
|
858
|
+
*/
|
|
859
|
+
readonly value: T;
|
|
860
|
+
/**
|
|
861
|
+
* Optional metadata on the field.
|
|
862
|
+
*/
|
|
863
|
+
readonly meta?: Maybe<M>;
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Displayed value.
|
|
867
|
+
*/
|
|
868
|
+
interface SelectionDisplayValue<T, M = unknown> extends SelectionValue<T, M>, LabelRef {
|
|
869
|
+
readonly sublabel?: string;
|
|
870
|
+
readonly icon?: string;
|
|
871
|
+
/**
|
|
872
|
+
* Whether or not the value is known.
|
|
873
|
+
*/
|
|
874
|
+
readonly isUnknown?: Maybe<boolean>;
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Used to hash the value from the input pickable value.
|
|
878
|
+
*/
|
|
879
|
+
type SelectionValueHashFunction<T, H extends PrimativeKey = PrimativeKey> = MapFunction<T, H>;
|
|
880
|
+
|
|
881
|
+
type PickableValueFieldValue<T, M = unknown> = SelectionValue<T, M>;
|
|
882
|
+
type PickableValueFieldDisplayValue<T, M = unknown> = SelectionDisplayValue<T, M>;
|
|
883
|
+
/**
|
|
884
|
+
* PickableValueField function for retrieving all values.
|
|
885
|
+
*/
|
|
886
|
+
type PickableValueFieldLoadValuesFunction<T, M = unknown> = () => Observable<PickableValueFieldValue<T, M>[]>;
|
|
887
|
+
/**
|
|
888
|
+
* PickableValueField function that allows the values a chance to go through another observable for any changes.
|
|
889
|
+
*
|
|
890
|
+
* Values may not have metadata on them in some cases, where the value may infact be an unknown value.
|
|
891
|
+
* The returned value should be marked as unknown, or if it has no meta but is known, isUnknown should be marked false.
|
|
892
|
+
*
|
|
893
|
+
* The value itself should not change. All other fields on the value may change, however.
|
|
894
|
+
*/
|
|
895
|
+
type PickableValueFieldDisplayFunction<T, M = unknown> = (values: PickableValueFieldValue<T, M>[]) => Observable<PickableValueFieldDisplayValue<T, M>[]>;
|
|
896
|
+
/**
|
|
897
|
+
* Used for filtering the values that should be displayed.
|
|
898
|
+
*/
|
|
899
|
+
type PickableValueFieldFilterFunction<T, M = unknown> = (flterText: Maybe<string>, values: PickableValueFieldDisplayValue<T, M>[]) => Observable<T[]>;
|
|
900
|
+
/**
|
|
901
|
+
* Used to hash the value from the input pickable value.
|
|
902
|
+
*/
|
|
903
|
+
type PickableValueFieldHashFunction<T, H extends PrimativeKey = PrimativeKey> = SelectionValueHashFunction<T, H>;
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* Wraps the selected state with the items.
|
|
907
|
+
*/
|
|
908
|
+
type PickableItemFieldItem<T, M = unknown> = DbxValueListItem<PickableValueFieldDisplayValue<T, M>>;
|
|
909
|
+
type PickableItemFieldItemSortFn<T, M = unknown> = (items: PickableItemFieldItem<T, M>[]) => PickableItemFieldItem<T, M>[];
|
|
910
|
+
interface PickableValueFieldsFieldProps<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FormlyFieldProps {
|
|
911
|
+
/**
|
|
912
|
+
* Loads all pickable values.
|
|
913
|
+
*/
|
|
914
|
+
readonly loadValues: PickableValueFieldLoadValuesFunction<T, M>;
|
|
915
|
+
/**
|
|
916
|
+
* Used for building a display value given the input.
|
|
917
|
+
*/
|
|
918
|
+
readonly displayForValue: PickableValueFieldDisplayFunction<T, M>;
|
|
919
|
+
/**
|
|
920
|
+
* Used for hashing display values and omitting repeat values.
|
|
921
|
+
*
|
|
922
|
+
* If hashForValue is not provided, the value's value will be used as is.
|
|
923
|
+
*/
|
|
924
|
+
readonly hashForValue?: PickableValueFieldHashFunction<T, H>;
|
|
925
|
+
/**
|
|
926
|
+
* Used for filtering values via the search text.
|
|
927
|
+
*/
|
|
928
|
+
readonly filterValues?: PickableValueFieldFilterFunction<T, M>;
|
|
929
|
+
/**
|
|
930
|
+
* Used for sorting the items before they are displayed.
|
|
931
|
+
*
|
|
932
|
+
* Should only be used to sort values.
|
|
933
|
+
*/
|
|
934
|
+
readonly sortItems?: PickableItemFieldItemSortFn<T, M>;
|
|
935
|
+
/**
|
|
936
|
+
* Whether or not to allow multiple items to be selected.
|
|
937
|
+
*/
|
|
938
|
+
readonly multiSelect?: boolean;
|
|
939
|
+
/**
|
|
940
|
+
* Whether or not to set/get values as an array or a single value. If set false, multiSelect is ignored.
|
|
941
|
+
*/
|
|
942
|
+
readonly asArrayValue?: boolean;
|
|
943
|
+
/**
|
|
944
|
+
* Whether or not to show the text filter. True by default if filterValues is provided.
|
|
945
|
+
*/
|
|
946
|
+
readonly showTextFilter?: boolean;
|
|
947
|
+
/**
|
|
948
|
+
* Whether or not to skip the filter function when the input is empty.
|
|
949
|
+
*
|
|
950
|
+
* True by default.
|
|
951
|
+
*/
|
|
952
|
+
readonly skipFilterFnOnEmpty?: boolean;
|
|
953
|
+
/**
|
|
954
|
+
* Filter Label
|
|
955
|
+
*/
|
|
956
|
+
readonly filterLabel?: string;
|
|
957
|
+
/**
|
|
958
|
+
* The maximum number of values that can be picked
|
|
959
|
+
*/
|
|
960
|
+
readonly maxPicks?: number;
|
|
961
|
+
/**
|
|
962
|
+
* Optional description/hint to display.
|
|
963
|
+
*/
|
|
964
|
+
readonly description?: string;
|
|
965
|
+
/**
|
|
966
|
+
* Footer Display
|
|
967
|
+
*/
|
|
968
|
+
readonly footerConfig?: DbxInjectionComponentConfig;
|
|
969
|
+
/**
|
|
970
|
+
* Changes the selection mode of the list to "view" mode on disabled, hiding the selection boxes.
|
|
971
|
+
*/
|
|
972
|
+
readonly changeSelectionModeToViewOnDisabled?: boolean;
|
|
973
|
+
/**
|
|
974
|
+
* (Optional) observable that will trigger the clearing of all cached display values.
|
|
975
|
+
*/
|
|
976
|
+
readonly refreshDisplayValues$?: Observable<unknown>;
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Displayed value with the computed hash.
|
|
980
|
+
*/
|
|
981
|
+
interface PickableValueFieldDisplayValueWithHash<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends PickableValueFieldDisplayValue<T, M> {
|
|
982
|
+
_hash: H;
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Used for picking pre-set values using items as the presentation.
|
|
986
|
+
*/
|
|
987
|
+
declare class AbstractDbxPickableItemFieldDirective<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FieldType$1<FieldTypeConfig<PickableValueFieldsFieldProps<T, M, H>>> implements OnInit, OnDestroy {
|
|
988
|
+
readonly filterMatInput: i0.Signal<MatInput | undefined>;
|
|
989
|
+
readonly inputCtrl: FormControl<string | null>;
|
|
990
|
+
private readonly _formControlObs;
|
|
991
|
+
readonly formControl$: Observable<AbstractControl<any, any, any>>;
|
|
992
|
+
private readonly _clearDisplayHashMapSub;
|
|
993
|
+
private readonly _displayHashMap;
|
|
994
|
+
readonly filterInputValue$: Observable<Maybe<string>>;
|
|
995
|
+
readonly filterInputValueString$: Observable<Maybe<string>>;
|
|
996
|
+
readonly loadResultsDisplayValuesState$: Observable<LoadingState<PickableValueFieldDisplayValueWithHash<T, M, H>[]>>;
|
|
997
|
+
readonly _formControlValue$: Observable<T | T[]>;
|
|
998
|
+
readonly loadResultsDisplayValues$: Observable<PickableValueFieldDisplayValueWithHash<T, M, H>[]>;
|
|
999
|
+
/**
|
|
1000
|
+
* Current values in the form control.
|
|
1001
|
+
*/
|
|
1002
|
+
readonly values$: Observable<T[]>;
|
|
1003
|
+
/**
|
|
1004
|
+
* Current values with their display value.
|
|
1005
|
+
*/
|
|
1006
|
+
readonly displayValuesState$: Observable<LoadingState<PickableValueFieldDisplayValueWithHash<T, M, H>[]>>;
|
|
1007
|
+
/**
|
|
1008
|
+
* Results to be displayed if filtered.
|
|
1009
|
+
*/
|
|
1010
|
+
readonly filteredSearchResultsState$: Observable<LoadingState<PickableValueFieldDisplayValueWithHash<T, M, H>[]>>;
|
|
1011
|
+
readonly filteredSearchResults$: Observable<PickableValueFieldDisplayValueWithHash<T, M, H>[]>;
|
|
1012
|
+
readonly items$: Observable<PickableItemFieldItem<T, M>[]>;
|
|
1013
|
+
readonly itemsLoadingState$: Observable<LoadingState<PickableItemFieldItem<T>[]>>;
|
|
1014
|
+
/**
|
|
1015
|
+
* Context used for managing the loading of items, or when the current results change.
|
|
1016
|
+
*/
|
|
1017
|
+
readonly context: _dereekb_rxjs.MutableListLoadingStateContext<unknown, LoadingState<PickableItemFieldItem<T, unknown>[]>>;
|
|
1018
|
+
readonly filterItemsLoadingState$: Observable<LoadingState<PickableItemFieldItem<T>[]>>;
|
|
1019
|
+
readonly noItemsAvailable$: Observable<boolean>;
|
|
1020
|
+
/**
|
|
1021
|
+
* Context used for searching/filtering.
|
|
1022
|
+
*/
|
|
1023
|
+
readonly filterResultsContext: _dereekb_rxjs.MutableListLoadingStateContext<unknown, LoadingState<PickableValueFieldDisplayValueWithHash<T, M, H>[]>>;
|
|
1024
|
+
readonly itemsSignal: i0.Signal<PickableItemFieldItem<T, M>[] | undefined>;
|
|
1025
|
+
readonly noItemsAvailableSignal: i0.Signal<boolean | undefined>;
|
|
1026
|
+
get readonly(): Maybe<boolean>;
|
|
1027
|
+
get isReadonlyOrDisabled(): boolean;
|
|
1028
|
+
get pickableField(): PickableValueFieldsFieldProps<T, M, H>;
|
|
1029
|
+
get multiSelect(): boolean;
|
|
1030
|
+
get asArrayValue(): boolean;
|
|
1031
|
+
get pickOnlyOne(): boolean;
|
|
1032
|
+
get filterLabel(): Maybe<string>;
|
|
1033
|
+
get name(): string;
|
|
1034
|
+
get label(): Maybe<string>;
|
|
1035
|
+
get autocomplete(): string;
|
|
1036
|
+
get changeSelectionModeToViewOnDisabled(): boolean;
|
|
1037
|
+
get sortItems(): Maybe<PickableItemFieldItemSortFn<T, M>>;
|
|
1038
|
+
get hashForValue(): PickableValueFieldHashFunction<T, H>;
|
|
1039
|
+
get displayForValue(): PickableValueFieldDisplayFunction<T, M>;
|
|
1040
|
+
get showFilterInput(): boolean;
|
|
1041
|
+
get filterValuesFn(): PickableValueFieldFilterFunction<T, M>;
|
|
1042
|
+
get skipFilterFnOnEmpty(): boolean;
|
|
1043
|
+
get _filterValues(): PickableValueFieldFilterFunction<T, M>;
|
|
1044
|
+
get showTextFilter(): boolean;
|
|
1045
|
+
get loadValuesFn(): PickableValueFieldLoadValuesFunction<T, M>;
|
|
1046
|
+
get values(): T[];
|
|
1047
|
+
get footerConfig(): Maybe<DbxInjectionComponentConfig>;
|
|
1048
|
+
get refreshDisplayValues$(): Observable<unknown> | undefined;
|
|
1049
|
+
loadDisplayValuesForValues(values: T[]): Observable<LoadingState<PickableValueFieldDisplayValueWithHash<T, M, H>[]>>;
|
|
1050
|
+
loadDisplayValuesForFieldValues(values: PickableValueFieldValue<T, M>[]): Observable<LoadingState<PickableValueFieldDisplayValueWithHash<T, M, H>[]>>;
|
|
1051
|
+
getDisplayValuesForFieldValues(values: PickableValueFieldValue<T, M>[]): Observable<PickableValueFieldDisplayValueWithHash<T, M, H>[]>;
|
|
1052
|
+
ngOnInit(): void;
|
|
1053
|
+
ngOnDestroy(): void;
|
|
1054
|
+
protected _getValueOnFormControl(valueOnFormControl: ArrayOrValue<T>): T[];
|
|
1055
|
+
addValue(value: T): void;
|
|
1056
|
+
removeValue(value: T): void;
|
|
1057
|
+
setValues(values: T[]): void;
|
|
1058
|
+
protected _setValueOnFormControl(values: T[]): void;
|
|
1059
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxPickableItemFieldDirective<any, any, any>, never>;
|
|
1060
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxPickableItemFieldDirective<any, any, any>, never, never, {}, {}, never, never, true, never>;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Used for picking pre-set values using chips as the presentation.
|
|
1065
|
+
*/
|
|
1066
|
+
declare class DbxPickableChipListFieldComponent<T> extends AbstractDbxPickableItemFieldDirective<T> {
|
|
1067
|
+
itemClicked(item: PickableItemFieldItem<T>): void;
|
|
1068
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPickableChipListFieldComponent<any>, never>;
|
|
1069
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableChipListFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
declare class DbxPickableListFieldItemListComponent<T> extends AbstractDbxSelectionListWrapperDirective<PickableItemFieldItem<T>> {
|
|
1073
|
+
constructor();
|
|
1074
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPickableListFieldItemListComponent<any>, never>;
|
|
1075
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldItemListComponent<any>, "dbx-form-pickable-item-field-item-list", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]", "[end]"], true, never>;
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* NOTE: Values input are PickableItemFieldItem<T>, but output values are PickableValueFieldDisplayValue<T>.
|
|
1079
|
+
*/
|
|
1080
|
+
declare class DbxPickableListFieldItemListViewComponent<T> extends AbstractDbxSelectionListViewDirective<any> {
|
|
1081
|
+
readonly dbxPickableListFieldComponent: DbxPickableListFieldComponent<T>;
|
|
1082
|
+
readonly config: DbxInjectionComponentConfig;
|
|
1083
|
+
get multiple(): boolean;
|
|
1084
|
+
get selectionMode(): Maybe<DbxListSelectionMode>;
|
|
1085
|
+
readonly items$: rxjs.Observable<any[]>;
|
|
1086
|
+
readonly itemsSignal: i0.Signal<any[] | undefined>;
|
|
1087
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPickableListFieldItemListViewComponent<any>, never>;
|
|
1088
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldItemListViewComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1089
|
+
}
|
|
1090
|
+
declare class DbxPickableListFieldItemListViewItemComponent<T> extends AbstractDbxValueListViewItemComponent<PickableValueFieldDisplayValue<T>> {
|
|
1091
|
+
readonly label: string;
|
|
1092
|
+
readonly sublabel: string | undefined;
|
|
1093
|
+
readonly icon: string | undefined;
|
|
1094
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPickableListFieldItemListViewItemComponent<any>, never>;
|
|
1095
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldItemListViewItemComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Used for picking pre-set values using a selection list as the presentation.
|
|
1099
|
+
*/
|
|
1100
|
+
declare class DbxPickableListFieldComponent<T> extends AbstractDbxPickableItemFieldDirective<T> {
|
|
1101
|
+
onSelectionChange(event: unknown): void;
|
|
1102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPickableListFieldComponent<any>, never>;
|
|
1103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
declare class DbxFormFormlyPickableFieldModule {
|
|
1107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyPickableFieldModule, never>;
|
|
1108
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyPickableFieldModule, never, [typeof DbxPickableChipListFieldComponent, typeof DbxPickableListFieldComponent, typeof DbxPickableListFieldItemListComponent, typeof DbxPickableListFieldItemListViewComponent, typeof DbxPickableListFieldItemListViewItemComponent, typeof _ngx_formly_core.FormlyModule], [typeof DbxPickableChipListFieldComponent, typeof DbxPickableListFieldComponent, typeof DbxPickableListFieldItemListComponent, typeof DbxPickableListFieldItemListViewComponent, typeof DbxPickableListFieldItemListViewItemComponent]>;
|
|
1109
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyPickableFieldModule>;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
interface PickableItemFieldConfig<T = unknown, M = unknown> extends LabeledFieldConfig, PickableValueFieldsFieldProps<T, M>, MaterialFormFieldConfig {
|
|
1113
|
+
}
|
|
1114
|
+
declare function pickableItemChipField<T = unknown, M = unknown>(config: PickableItemFieldConfig<T, M>): FormlyFieldConfig;
|
|
1115
|
+
declare function pickableItemListField<T = unknown, M = unknown>(config: PickableItemFieldConfig<T, M>): FormlyFieldConfig;
|
|
1116
|
+
|
|
1117
|
+
declare const filterPickableItemFieldValuesByLabelFilterFunction: SearchStringFilterFunction<PickableValueFieldDisplayValue<any>>;
|
|
1118
|
+
declare function filterPickableItemFieldValuesByLabel<T>(filterText: Maybe<string>, values: PickableValueFieldDisplayValue<T>[]): Observable<T[]>;
|
|
1119
|
+
declare const sortPickableItemsByLabelStringFunction: _dereekb_util.SortByStringFunction<PickableItemFieldItem<any>>;
|
|
1120
|
+
declare function sortPickableItemsByLabel<T>(chips: PickableItemFieldItem<T>[]): PickableItemFieldItem<T>[];
|
|
1121
|
+
type PickableValueFieldValuesConfigForStaticLabeledValues<T, M extends LabeledValue<T>> = Pick<PickableValueFieldsFieldProps<T, M>, 'loadValues' | 'displayForValue' | 'filterValues'>;
|
|
1122
|
+
interface PickableValueFieldValuesConfigForStaticLabeledValuesConfig<T, M extends LabeledValue<T>> {
|
|
1123
|
+
readonly allOptions: M[];
|
|
1124
|
+
readonly unknownOptionLabel?: string;
|
|
1125
|
+
}
|
|
1126
|
+
declare function pickableValueFieldValuesConfigForStaticLabeledValues<T, M extends LabeledValue<T>>(input: M[] | PickableValueFieldValuesConfigForStaticLabeledValuesConfig<T, M>): PickableValueFieldValuesConfigForStaticLabeledValues<T, M>;
|
|
1127
|
+
|
|
1128
|
+
interface SearchableValueFieldValue<T, M = unknown> extends SelectionValue<T, M> {
|
|
1129
|
+
/**
|
|
1130
|
+
* Optional anchor metadata on the field.
|
|
1131
|
+
*/
|
|
1132
|
+
readonly anchor?: ClickableAnchor;
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* Displayed value.
|
|
1136
|
+
*/
|
|
1137
|
+
interface SearchableValueFieldDisplayValue<T, M = unknown> extends SelectionDisplayValue<T, M>, SearchableValueFieldValue<T, M> {
|
|
1138
|
+
/**
|
|
1139
|
+
* Display override configuration
|
|
1140
|
+
*/
|
|
1141
|
+
readonly display?: Partial<DbxInjectionComponentConfig>;
|
|
1142
|
+
}
|
|
1143
|
+
interface ConfiguredSearchableValueFieldDisplayValue<T, M = unknown> extends Omit<SearchableValueFieldDisplayValue<T, M>, 'display'> {
|
|
1144
|
+
readonly display: DbxInjectionComponentConfig;
|
|
1145
|
+
}
|
|
1146
|
+
/**
|
|
1147
|
+
* SearchableValueField function for searching values.
|
|
1148
|
+
*/
|
|
1149
|
+
type SearchableValueFieldStringSearchFn<T, M = unknown> = MapFunction<string, Observable<SearchableValueFieldValue<T, M>[]>>;
|
|
1150
|
+
/**
|
|
1151
|
+
* SearchableValueField function that allows the values a chance to go through another observable for unknown changes.
|
|
1152
|
+
*
|
|
1153
|
+
* An example usage is passing an email address, then getting back metadata that can be used to show the values.
|
|
1154
|
+
*
|
|
1155
|
+
* The value itself should not change. All other fields on the value may change, however.
|
|
1156
|
+
*/
|
|
1157
|
+
type SearchableValueFieldDisplayFn<T, M = unknown> = MapFunction<SearchableValueFieldValue<T, M>[], Observable<SearchableValueFieldDisplayValue<T, M>[]>>;
|
|
1158
|
+
/**
|
|
1159
|
+
* SearchableValueField function for setting anchor values on a field value.
|
|
1160
|
+
*/
|
|
1161
|
+
type SearchableValueFieldAnchorFn<T, M = unknown> = MapFunction<SearchableValueFieldValue<T, M>, ClickableAnchor>;
|
|
1162
|
+
type SearchableValueFieldHashFn<T, H extends PrimativeKey = PrimativeKey> = SelectionValueHashFunction<T, H>;
|
|
1163
|
+
|
|
1164
|
+
interface StringValueFieldsFieldProps extends FormlyFieldProps {
|
|
1165
|
+
/**
|
|
1166
|
+
* Custom input validators.
|
|
1167
|
+
*/
|
|
1168
|
+
readonly textInputValidator?: ValidatorFn | ValidatorFn[];
|
|
1169
|
+
}
|
|
1170
|
+
interface SearchableValueFieldsFieldProps<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FormlyFieldProps, StringValueFieldsFieldProps {
|
|
1171
|
+
/**
|
|
1172
|
+
* Whether or not to allow string values to be used directly, or if values can only be chosen from searching.
|
|
1173
|
+
*/
|
|
1174
|
+
readonly allowStringValues?: boolean;
|
|
1175
|
+
/**
|
|
1176
|
+
* Whether or not to set/get values as an array or a single value. If set false, multiSelect is ignored.
|
|
1177
|
+
*/
|
|
1178
|
+
readonly asArrayValue?: boolean;
|
|
1179
|
+
/**
|
|
1180
|
+
* Optional conversion function. If provided, allowStringValues is considered true.
|
|
1181
|
+
*/
|
|
1182
|
+
readonly convertStringValue?: (text: string) => T;
|
|
1183
|
+
/**
|
|
1184
|
+
* Used for hashing display values and omitting repeat values.
|
|
1185
|
+
*
|
|
1186
|
+
* If hashForValue is not provided, the value's value will be used as is.
|
|
1187
|
+
*/
|
|
1188
|
+
readonly hashForValue?: SearchableValueFieldHashFn<T, H>;
|
|
1189
|
+
/**
|
|
1190
|
+
* Performs a search.
|
|
1191
|
+
*/
|
|
1192
|
+
readonly search: SearchableValueFieldStringSearchFn<T, M>;
|
|
1193
|
+
/**
|
|
1194
|
+
* Whether or not to allow searches on empty text. Is false by default.
|
|
1195
|
+
*/
|
|
1196
|
+
readonly searchOnEmptyText?: boolean;
|
|
1197
|
+
/**
|
|
1198
|
+
* Default injected config to use for display values.
|
|
1199
|
+
*/
|
|
1200
|
+
readonly display?: Partial<DbxInjectionComponentConfig>;
|
|
1201
|
+
/**
|
|
1202
|
+
* Used for building a display value given the input.
|
|
1203
|
+
*/
|
|
1204
|
+
readonly displayForValue: SearchableValueFieldDisplayFn<T, M>;
|
|
1205
|
+
/**
|
|
1206
|
+
* Whether or not to use the anchor field on value elements.
|
|
1207
|
+
*
|
|
1208
|
+
* This has no default effect if a component class is provided.
|
|
1209
|
+
*/
|
|
1210
|
+
readonly useAnchor?: boolean;
|
|
1211
|
+
/**
|
|
1212
|
+
* Used for retrieving an anchor value for values that have no anchor value set.
|
|
1213
|
+
*
|
|
1214
|
+
* Only used when useAnchor is true.
|
|
1215
|
+
*/
|
|
1216
|
+
readonly anchorForValue?: SearchableValueFieldAnchorFn<T, M>;
|
|
1217
|
+
/**
|
|
1218
|
+
* Whether or not to show "Clear" in the autcomplete list.
|
|
1219
|
+
*/
|
|
1220
|
+
readonly showClearValue?: boolean;
|
|
1221
|
+
/**
|
|
1222
|
+
* Label for the search input.
|
|
1223
|
+
*
|
|
1224
|
+
* Defaults to "Search"
|
|
1225
|
+
*/
|
|
1226
|
+
readonly searchLabel?: string;
|
|
1227
|
+
/**
|
|
1228
|
+
* (Optional) observable that will trigger the clearing of all cached display values.
|
|
1229
|
+
*/
|
|
1230
|
+
readonly refreshDisplayValues$?: Observable<unknown>;
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* Abstract searchable field that provides a feature for searching for values, and for displaying values using Observables.
|
|
1234
|
+
*
|
|
1235
|
+
* Display values are cached for performance.
|
|
1236
|
+
*/
|
|
1237
|
+
declare abstract class AbstractDbxSearchableValueFieldDirective<T, M = unknown, H extends PrimativeKey = PrimativeKey, C extends SearchableValueFieldsFieldProps<T, M, H> = SearchableValueFieldsFieldProps<T, M, H>> extends FieldType$1<FieldTypeConfig<C>> implements OnInit, OnDestroy {
|
|
1238
|
+
/**
|
|
1239
|
+
* Whether or not to set/get values as an array.
|
|
1240
|
+
*/
|
|
1241
|
+
abstract get multiSelect(): boolean;
|
|
1242
|
+
/**
|
|
1243
|
+
* Optional override set by the parent class for whether or not to allow the current value to sync to the input.
|
|
1244
|
+
*/
|
|
1245
|
+
allowSyncValueToInput: boolean;
|
|
1246
|
+
/**
|
|
1247
|
+
* Default placeholder text to use when searchOnEmptyText is false.
|
|
1248
|
+
*/
|
|
1249
|
+
defaultSearchInputPlaceholder?: Maybe<string>;
|
|
1250
|
+
readonly textInput: i0.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
1251
|
+
readonly inputCtrl: FormControl<string | null>;
|
|
1252
|
+
private readonly _formControlObs;
|
|
1253
|
+
readonly formControl$: Observable<AbstractControl<any, any, any>>;
|
|
1254
|
+
private readonly _clearDisplayHashMapSub;
|
|
1255
|
+
private readonly _displayHashMap;
|
|
1256
|
+
readonly inputValue$: Observable<string>;
|
|
1257
|
+
readonly inputValueString$: Observable<string>;
|
|
1258
|
+
readonly searchResultsState$: Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
|
|
1259
|
+
private readonly _singleValueSyncSub;
|
|
1260
|
+
readonly searchContext: _dereekb_rxjs.MutableListLoadingStateContext<unknown, LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
|
|
1261
|
+
readonly searchResults$: Observable<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>;
|
|
1262
|
+
readonly isLoadingSearchResults$: Observable<boolean>;
|
|
1263
|
+
readonly _formControlValue$: Observable<T | T[]>;
|
|
1264
|
+
readonly values$: Observable<T[]>;
|
|
1265
|
+
readonly displayValuesState$: Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
|
|
1266
|
+
readonly displayValues$: Observable<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>;
|
|
1267
|
+
readonly inputValueSignal: i0.Signal<string | undefined>;
|
|
1268
|
+
readonly searchResultsSignal: i0.Signal<ConfiguredSearchableValueFieldDisplayValue<T, M>[] | undefined>;
|
|
1269
|
+
readonly displayValuesSignal: i0.Signal<ConfiguredSearchableValueFieldDisplayValue<T, M>[] | undefined>;
|
|
1270
|
+
readonly isLoadingSearchResultsSignal: i0.Signal<boolean | undefined>;
|
|
1271
|
+
get name(): string;
|
|
1272
|
+
get label(): Maybe<string>;
|
|
1273
|
+
get readonly(): Maybe<boolean>;
|
|
1274
|
+
get isReadonlyOrDisabled(): boolean;
|
|
1275
|
+
get searchableField(): SearchableValueFieldsFieldProps<T, M, H>;
|
|
1276
|
+
get asArrayValue(): boolean;
|
|
1277
|
+
get pickOnlyOne(): boolean;
|
|
1278
|
+
get searchOnEmptyText(): boolean;
|
|
1279
|
+
get searchInputPlaceholder(): string | '';
|
|
1280
|
+
get autocomplete(): string;
|
|
1281
|
+
get hashForValue(): SearchableValueFieldHashFn<T, H>;
|
|
1282
|
+
get displayForValue(): SearchableValueFieldDisplayFn<T, M>;
|
|
1283
|
+
get useAnchor(): Maybe<boolean>;
|
|
1284
|
+
get anchorForValue(): Maybe<SearchableValueFieldAnchorFn<T, M>>;
|
|
1285
|
+
get display(): Maybe<Partial<DbxInjectionComponentConfig>>;
|
|
1286
|
+
get search(): SearchableValueFieldStringSearchFn<T, M>;
|
|
1287
|
+
get values(): T[];
|
|
1288
|
+
get allowStringValues(): boolean;
|
|
1289
|
+
get convertStringValue(): Maybe<(text: string) => T>;
|
|
1290
|
+
get showClearValue(): boolean;
|
|
1291
|
+
get searchLabel(): string;
|
|
1292
|
+
get refreshDisplayValues$(): Observable<unknown> | undefined;
|
|
1293
|
+
loadDisplayValuesForValues(values: T[]): Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
|
|
1294
|
+
loadDisplayValuesForFieldValues(values: SearchableValueFieldValue<T, M>[]): Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
|
|
1295
|
+
getDisplayValuesForFieldValues(values: SearchableValueFieldValue<T, M>[]): Observable<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>;
|
|
1296
|
+
ngOnInit(): void;
|
|
1297
|
+
ngOnDestroy(): void;
|
|
1298
|
+
/**
|
|
1299
|
+
* Used to sync the input control with the selected value.
|
|
1300
|
+
*
|
|
1301
|
+
* Only used when multiSelect is false.
|
|
1302
|
+
*/
|
|
1303
|
+
protected _syncSingleValue(value: SearchableValueFieldDisplayValue<T>): void;
|
|
1304
|
+
protected _addWithTextValue(text: string): void;
|
|
1305
|
+
addWithDisplayValue(displayValue: SearchableValueFieldDisplayValue<T>): void;
|
|
1306
|
+
removeWithDisplayValue(displayValue: SearchableValueFieldDisplayValue<T>): void;
|
|
1307
|
+
_tryAddCurrentInputValue(): boolean;
|
|
1308
|
+
addValue(value: T): void;
|
|
1309
|
+
removeValue(value: T): void;
|
|
1310
|
+
clearValues(): void;
|
|
1311
|
+
setValues(values: T[]): void;
|
|
1312
|
+
protected _getValueOnFormControl(valueOnFormControl: ArrayOrValue<T>): T[];
|
|
1313
|
+
protected _setValueOnFormControl(values: T[]): void;
|
|
1314
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxSearchableValueFieldDirective<any, any, any, any>, never>;
|
|
1315
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxSearchableValueFieldDirective<any, any, any, any>, never, never, {}, {}, never, never, true, never>;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
interface SearchableChipValueFieldsFieldProps<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends SearchableValueFieldsFieldProps<T, M, H> {
|
|
1319
|
+
/**
|
|
1320
|
+
* Whether or not to allow multiple items to be selected.
|
|
1321
|
+
*/
|
|
1322
|
+
readonly multiSelect?: boolean;
|
|
1323
|
+
}
|
|
1324
|
+
declare class DbxSearchableChipFieldComponent<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends AbstractDbxSearchableValueFieldDirective<T, M, H, SearchableChipValueFieldsFieldProps<T, M, H>> implements OnInit, OnDestroy {
|
|
1325
|
+
get multiSelect(): boolean;
|
|
1326
|
+
private readonly _blur;
|
|
1327
|
+
private readonly _blurSub;
|
|
1328
|
+
readonly separatorKeysCodes: number[];
|
|
1329
|
+
selected(event: MatAutocompleteSelectedEvent): void;
|
|
1330
|
+
tabPressedOnInput(event: KeyboardEvent): boolean;
|
|
1331
|
+
addChip(event: MatChipInputEvent): void;
|
|
1332
|
+
protected _syncSingleValue(value: SearchableValueFieldDisplayValue<T>): void;
|
|
1333
|
+
ngOnInit(): void;
|
|
1334
|
+
ngOnDestroy(): void;
|
|
1335
|
+
onBlur(): void;
|
|
1336
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxSearchableChipFieldComponent<any, any, any>, never>;
|
|
1337
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxSearchableChipFieldComponent<any, any, any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
declare const DBX_SEARCHABLE_FIELD_COMPONENT_DATA_TOKEN: InjectionToken<unknown>;
|
|
1341
|
+
declare class DbxSearchableFieldAutocompleteItemComponent<T> {
|
|
1342
|
+
readonly displayValue: i0.InputSignal<ConfiguredSearchableValueFieldDisplayValue<T, unknown>>;
|
|
1343
|
+
readonly configSignal: i0.Signal<DbxInjectionComponentConfig<unknown>>;
|
|
1344
|
+
readonly anchorSignal: i0.Signal<_dereekb_dbx_core.ClickableAnchor | undefined>;
|
|
1345
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxSearchableFieldAutocompleteItemComponent<any>, never>;
|
|
1346
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxSearchableFieldAutocompleteItemComponent<any>, "dbx-searchable-field-autocomplete-item", never, { "displayValue": { "alias": "displayValue"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1347
|
+
}
|
|
1348
|
+
declare abstract class AbstractDbxSearchableFieldDisplayDirective<T> {
|
|
1349
|
+
readonly displayValue: ConfiguredSearchableValueFieldDisplayValue<T, unknown>;
|
|
1350
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxSearchableFieldDisplayDirective<any>, never>;
|
|
1351
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxSearchableFieldDisplayDirective<any>, never, never, {}, {}, never, never, true, never>;
|
|
1352
|
+
}
|
|
1353
|
+
declare class DbxDefaultSearchableFieldDisplayComponent<T> extends AbstractDbxSearchableFieldDisplayDirective<T> {
|
|
1354
|
+
readonly icon: string | undefined;
|
|
1355
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxDefaultSearchableFieldDisplayComponent<any>, never>;
|
|
1356
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxDefaultSearchableFieldDisplayComponent<any>, "dbx-default-searchable-field-display", never, {}, {}, never, never, true, never>;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
interface SearchableTextValueFieldsFieldProps<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends SearchableValueFieldsFieldProps<T, M, H> {
|
|
1360
|
+
readonly showSelectedValue?: boolean;
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Display component for selecting a single item/value.
|
|
1364
|
+
*/
|
|
1365
|
+
declare class DbxSearchableTextFieldComponent<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends AbstractDbxSearchableValueFieldDirective<T, M, H, SearchableTextValueFieldsFieldProps<T, M, H>> implements OnInit, OnDestroy {
|
|
1366
|
+
allowSyncValueToInput: boolean;
|
|
1367
|
+
readonly selectedDisplayValue$: rxjs.Observable<_dereekb_dbx_form.ConfiguredSearchableValueFieldDisplayValue<T, M>>;
|
|
1368
|
+
readonly selectedDisplayValueSignal: i0.Signal<_dereekb_dbx_form.ConfiguredSearchableValueFieldDisplayValue<T, M> | undefined>;
|
|
1369
|
+
readonly hasValueSignal: i0.Signal<boolean>;
|
|
1370
|
+
readonly showSelectedDisplayValueSignal: i0.Signal<boolean>;
|
|
1371
|
+
get searchableField(): SearchableTextValueFieldsFieldProps<T, M, H>;
|
|
1372
|
+
get showSelectedValue(): boolean;
|
|
1373
|
+
get multiSelect(): boolean;
|
|
1374
|
+
selected(event: MatAutocompleteSelectedEvent): void;
|
|
1375
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxSearchableTextFieldComponent<any, any, any>, never>;
|
|
1376
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxSearchableTextFieldComponent<any, any, any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
* Used to create a SearchableValueFieldDisplayFn function that will retrieve the metadata for items that are missing their metadata so they can be displayed properly.
|
|
1381
|
+
*
|
|
1382
|
+
* @param param0
|
|
1383
|
+
* @returns
|
|
1384
|
+
*/
|
|
1385
|
+
declare function makeMetaFilterSearchableFieldValueDisplayFn<T extends string | number = string | number, M = unknown>({ loadMetaForValues, makeDisplayForValues }: {
|
|
1386
|
+
loadMetaForValues: (values: SearchableValueFieldValue<T, M>[]) => Observable<SearchableValueFieldValue<T, M>[]>;
|
|
1387
|
+
makeDisplayForValues: (values: SearchableValueFieldValue<T, M>[]) => Observable<SearchableValueFieldDisplayValue<T, M>[]>;
|
|
1388
|
+
}): SearchableValueFieldDisplayFn<T, M>;
|
|
1389
|
+
type StringSearchableChipFieldConfig<M = unknown> = Omit<SearchableChipFieldConfig<string, M>, 'allowStringValues'>;
|
|
1390
|
+
declare function searchableStringChipField<M = unknown>(config: StringSearchableChipFieldConfig<M>): FormlyFieldConfig;
|
|
1391
|
+
interface SearchableChipFieldConfig<T = unknown, M = unknown, H extends PrimativeKey = PrimativeKey> extends LabeledFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig, SearchableChipValueFieldsFieldProps<T, M, H> {
|
|
1392
|
+
}
|
|
1393
|
+
declare function searchableChipField<T, M = unknown, H extends PrimativeKey = PrimativeKey>(config: SearchableChipFieldConfig<T, M, H>): FormlyFieldConfig;
|
|
1394
|
+
interface SearchableTextFieldConfig<T = unknown, M = unknown, H extends PrimativeKey = PrimativeKey> extends LabeledFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig, SearchableTextValueFieldsFieldProps<T, M, H> {
|
|
1395
|
+
}
|
|
1396
|
+
declare function searchableTextField<T, M = unknown, H extends PrimativeKey = PrimativeKey>(config: SearchableTextFieldConfig<T, M, H>): FormlyFieldConfig;
|
|
1397
|
+
|
|
1398
|
+
declare class DbxFormFormlySearchableFieldModule {
|
|
1399
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlySearchableFieldModule, never>;
|
|
1400
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlySearchableFieldModule, never, [typeof DbxSearchableChipFieldComponent, typeof DbxSearchableTextFieldComponent, typeof DbxSearchableFieldAutocompleteItemComponent, typeof DbxDefaultSearchableFieldDisplayComponent, typeof _ngx_formly_core.FormlyModule], [typeof DbxSearchableChipFieldComponent, typeof DbxSearchableTextFieldComponent, typeof DbxSearchableFieldAutocompleteItemComponent, typeof DbxDefaultSearchableFieldDisplayComponent]>;
|
|
1401
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlySearchableFieldModule>;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
interface ChipTextFieldConfig extends LabeledFieldConfig, StringValueFieldsFieldProps {
|
|
1405
|
+
caseSensitive?: boolean;
|
|
1406
|
+
}
|
|
1407
|
+
declare function chipTextField(config: ChipTextFieldConfig): _ngx_formly_core.FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
1408
|
+
[additionalProperties: string]: any;
|
|
1409
|
+
}>;
|
|
1410
|
+
|
|
1411
|
+
interface SourceSelectValue<T extends PrimativeKey = PrimativeKey, M = unknown> {
|
|
1412
|
+
value: T;
|
|
1413
|
+
meta: M;
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Group of SourceSelectValues with a label.
|
|
1417
|
+
*/
|
|
1418
|
+
interface SourceSelectValueGroup<T extends PrimativeKey = PrimativeKey, M = unknown> {
|
|
1419
|
+
/**
|
|
1420
|
+
* Label for this source.
|
|
1421
|
+
*/
|
|
1422
|
+
readonly label: string;
|
|
1423
|
+
/**
|
|
1424
|
+
* Values
|
|
1425
|
+
*/
|
|
1426
|
+
readonly values: SourceSelectValue<T, M>[];
|
|
1427
|
+
}
|
|
1428
|
+
/**
|
|
1429
|
+
* Display value configuration for a SourceSelectValue.
|
|
1430
|
+
*/
|
|
1431
|
+
type SourceSelectDisplayValue<T extends PrimativeKey = PrimativeKey, M = unknown> = Omit<SelectionDisplayValue<T, M>, 'meta'> & Pick<SourceSelectValue<T, M>, 'meta'>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Display value configuration for a SourceSelectValue.
|
|
1434
|
+
*/
|
|
1435
|
+
interface SourceSelectDisplayValueGroup<T extends PrimativeKey = PrimativeKey, M = unknown> {
|
|
1436
|
+
/**
|
|
1437
|
+
* Label for this source.
|
|
1438
|
+
*/
|
|
1439
|
+
readonly label: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* Values
|
|
1442
|
+
*/
|
|
1443
|
+
readonly values: SourceSelectDisplayValue<T, M>[];
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* Options for a SourceSelect input.
|
|
1447
|
+
*/
|
|
1448
|
+
interface SourceSelectOptions<T extends PrimativeKey = PrimativeKey, M = unknown> {
|
|
1449
|
+
readonly nonGroupedValues: SourceSelectDisplayValue<T, M>[];
|
|
1450
|
+
readonly groupedValues: SourceSelectDisplayValueGroup<T, M>[];
|
|
1451
|
+
}
|
|
1452
|
+
/**
|
|
1453
|
+
* Returns an observable that loads all the display info for the input values.
|
|
1454
|
+
*/
|
|
1455
|
+
type SourceSelectDisplayFunction<T extends PrimativeKey = PrimativeKey, M = unknown> = MapFunction<SourceSelectValue<T, M>[], Observable<SourceSelectDisplayValue<T, M>[]>>;
|
|
1456
|
+
/**
|
|
1457
|
+
* Reads the value from the input meta value. Should always return the same value.
|
|
1458
|
+
*/
|
|
1459
|
+
type SourceSelectMetaValueReader<T extends PrimativeKey = PrimativeKey, M = unknown> = MapFunction<M, T>;
|
|
1460
|
+
/**
|
|
1461
|
+
* Returns an observable that loads the metadata of the input values.
|
|
1462
|
+
*/
|
|
1463
|
+
type SourceSelectValueMetaLoader<T extends PrimativeKey = PrimativeKey, M = unknown> = FactoryWithRequiredInput<Observable<M[]>, T[]>;
|
|
1464
|
+
interface SourceSelectOpenFunctionParams {
|
|
1465
|
+
/**
|
|
1466
|
+
* Origin of the button for the SourceSelect
|
|
1467
|
+
*/
|
|
1468
|
+
readonly origin: ElementRef;
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
* Returns an observable that returns an array of meta values to be added to the selection.
|
|
1472
|
+
*/
|
|
1473
|
+
type SourceSelectOpenFunction<M = unknown> = FactoryWithRequiredInput<Observable<SourceSelectOpenSourceResult<M>>, SourceSelectOpenFunctionParams>;
|
|
1474
|
+
/**
|
|
1475
|
+
* Returns an observable that returns an array of meta values to be added to the selection.
|
|
1476
|
+
*/
|
|
1477
|
+
interface SourceSelectOpenSourceResult<M = unknown> {
|
|
1478
|
+
/**
|
|
1479
|
+
* The values to set entirely, clearing the current selection.
|
|
1480
|
+
*
|
|
1481
|
+
* If null/undefined, current values will not be replaced.
|
|
1482
|
+
*/
|
|
1483
|
+
readonly set?: Maybe<M[]>;
|
|
1484
|
+
/**
|
|
1485
|
+
* New values to add to the selection, if applicable.
|
|
1486
|
+
*
|
|
1487
|
+
* If null/undefined, no values will be added to selection.
|
|
1488
|
+
*
|
|
1489
|
+
* Is ignored if "set" value is provided.
|
|
1490
|
+
*/
|
|
1491
|
+
readonly select?: Maybe<M[]>;
|
|
1492
|
+
/**
|
|
1493
|
+
* New options to make available for selection, but are not automatically selected.
|
|
1494
|
+
*
|
|
1495
|
+
* If null/undefined, no options will be added.
|
|
1496
|
+
*/
|
|
1497
|
+
readonly options?: Maybe<M[]>;
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* Function used to return an observable for an array of SourceSelectLoadSource values.
|
|
1501
|
+
*/
|
|
1502
|
+
type SourceSelectLoadSourcesFunction<M = unknown> = Factory<Observable<SourceSelectLoadSource<M>[]>>;
|
|
1503
|
+
/**
|
|
1504
|
+
* Source that has a label and an observable of meta values.
|
|
1505
|
+
*/
|
|
1506
|
+
interface SourceSelectLoadSource<M = unknown> {
|
|
1507
|
+
/**
|
|
1508
|
+
* Label for this source.
|
|
1509
|
+
*/
|
|
1510
|
+
readonly label: string;
|
|
1511
|
+
/**
|
|
1512
|
+
* Metadata loaded from this source.
|
|
1513
|
+
*/
|
|
1514
|
+
readonly meta: Observable<LoadingState<M[]>>;
|
|
1515
|
+
}
|
|
1516
|
+
interface SourceSelectLoadSourceLoadingState<M = unknown> extends LoadingState<M[]> {
|
|
1517
|
+
/**
|
|
1518
|
+
* Label for this source.
|
|
1519
|
+
*/
|
|
1520
|
+
readonly label: string;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
interface SourceSelectFieldProps<T extends PrimativeKey = PrimativeKey, M = unknown> extends FormlyFieldProps$1 {
|
|
1524
|
+
/**
|
|
1525
|
+
* Function to open the source and request values.
|
|
1526
|
+
*/
|
|
1527
|
+
readonly openSource?: SourceSelectOpenFunction<M>;
|
|
1528
|
+
/**
|
|
1529
|
+
* Loads the sources to display entries from.
|
|
1530
|
+
*/
|
|
1531
|
+
readonly loadSources?: SourceSelectLoadSourcesFunction<M>;
|
|
1532
|
+
/**
|
|
1533
|
+
* Reads the value from a meta value.
|
|
1534
|
+
*/
|
|
1535
|
+
readonly valueReader: SourceSelectMetaValueReader<T, M>;
|
|
1536
|
+
/**
|
|
1537
|
+
* Loads metadata for the input values.
|
|
1538
|
+
*/
|
|
1539
|
+
readonly metaLoader: SourceSelectValueMetaLoader<T, M>;
|
|
1540
|
+
/**
|
|
1541
|
+
* Used for building a display value given the input.
|
|
1542
|
+
*/
|
|
1543
|
+
readonly displayForValue: SourceSelectDisplayFunction<T, M>;
|
|
1544
|
+
/**
|
|
1545
|
+
* Select button icon
|
|
1546
|
+
*/
|
|
1547
|
+
readonly selectButtonIcon?: string;
|
|
1548
|
+
/**
|
|
1549
|
+
* Whether or not the selection is as an array.
|
|
1550
|
+
*/
|
|
1551
|
+
readonly multiple?: boolean;
|
|
1552
|
+
/**
|
|
1553
|
+
* (Optional) observable that will trigger the clearing of all cached display values.
|
|
1554
|
+
*/
|
|
1555
|
+
readonly refreshDisplayValues$?: Observable<unknown>;
|
|
1556
|
+
}
|
|
1557
|
+
/**
|
|
1558
|
+
* Component that displays a select view (multi or not)
|
|
1559
|
+
*/
|
|
1560
|
+
declare class DbxFormSourceSelectFieldComponent<T extends PrimativeKey = PrimativeKey, M = unknown> extends FieldType$2<FieldTypeConfig<SourceSelectFieldProps<T, M>>> implements OnInit, OnDestroy {
|
|
1561
|
+
private readonly _cacheMetaSub;
|
|
1562
|
+
private readonly _clearDisplayHashMapSub;
|
|
1563
|
+
private readonly _valueMetaHashMap;
|
|
1564
|
+
private readonly _displayHashMap;
|
|
1565
|
+
private readonly _formControlObs;
|
|
1566
|
+
private readonly _fromOpenSource;
|
|
1567
|
+
private readonly _loadSources;
|
|
1568
|
+
readonly buttonElement: i0.Signal<ElementRef<HTMLElement> | undefined>;
|
|
1569
|
+
readonly formControl$: Observable<AbstractControl<T[], T[], any>>;
|
|
1570
|
+
readonly currentFormControlValue$: Observable<T[]>;
|
|
1571
|
+
readonly values$: Observable<T[]>;
|
|
1572
|
+
readonly allValuesEverSelected$: Observable<T[]>;
|
|
1573
|
+
readonly sourceSelectValuesFromValuesState$: Observable<LoadingState<SourceSelectValue<T, M>[]>>;
|
|
1574
|
+
readonly loadSources$: Observable<LoadingState<SourceSelectValueGroup<T, M>[]>>;
|
|
1575
|
+
readonly fromOpenSource$: Observable<SourceSelectValueGroup<T, M>>;
|
|
1576
|
+
readonly valueGroupsFromSourcesState$: Observable<LoadingStateWithDefinedValue<SourceSelectValueGroup<T, M>[]>>;
|
|
1577
|
+
readonly allValueGroupsState$: Observable<LoadingState<SourceSelectValueGroup<T, M>[]>>;
|
|
1578
|
+
readonly allOptionGroupsState$: Observable<LoadingState<SourceSelectDisplayValueGroup<T, M>[]>>;
|
|
1579
|
+
readonly allOptionGroups$: Observable<SourceSelectDisplayValueGroup<T, M>[]>;
|
|
1580
|
+
readonly options$: Observable<SourceSelectOptions<T, M>>;
|
|
1581
|
+
readonly nonGroupedValues$: Observable<SourceSelectDisplayValue<T, M>[]>;
|
|
1582
|
+
readonly groupedOptions$: Observable<SourceSelectDisplayValueGroup<T, M>[]>;
|
|
1583
|
+
readonly nonGroupedValuesSignal: i0.Signal<SourceSelectDisplayValue<T, M>[] | undefined>;
|
|
1584
|
+
readonly groupedOptionsSignal: i0.Signal<SourceSelectDisplayValueGroup<T, M>[] | undefined>;
|
|
1585
|
+
get sourceSelectField(): SourceSelectFieldProps<T, M>;
|
|
1586
|
+
get openSource(): SourceSelectOpenFunction<M> | undefined;
|
|
1587
|
+
get showOpenSourceButton(): boolean;
|
|
1588
|
+
get loadSources(): SourceSelectLoadSourcesFunction<M> | undefined;
|
|
1589
|
+
get valueReader(): SourceSelectMetaValueReader<T, M>;
|
|
1590
|
+
get metaLoader(): SourceSelectValueMetaLoader<T, M>;
|
|
1591
|
+
get displayForValue(): SourceSelectDisplayFunction<T, M>;
|
|
1592
|
+
get selectButtonIcon(): string;
|
|
1593
|
+
get multiple(): boolean;
|
|
1594
|
+
get refreshDisplayValues$(): Observable<unknown> | undefined;
|
|
1595
|
+
loadSourceSelectValueForValues(values: T[]): Observable<LoadingState<SourceSelectValue<T, M>[]>>;
|
|
1596
|
+
getSourceSelectValueForValues(values: T[]): Observable<SourceSelectValue<T, M>[]>;
|
|
1597
|
+
loadDisplayValuesForSelectValues(values: SourceSelectValue<T, M>[]): Observable<LoadingState<SourceSelectDisplayValue<T, M>[]>>;
|
|
1598
|
+
getDisplayValuesForSelectValues(values: SourceSelectValue<T, M>[]): Observable<SourceSelectDisplayValue<T, M>[]>;
|
|
1599
|
+
readonly context: _dereekb_rxjs.MutableLoadingStateContext<unknown, LoadingState<SourceSelectDisplayValueGroup<T, M>[]>, _dereekb_rxjs.LoadingContextEvent & LoadingState<SourceSelectDisplayValueGroup<T, M>[]>>;
|
|
1600
|
+
ngOnInit(): void;
|
|
1601
|
+
ngOnDestroy(): void;
|
|
1602
|
+
readonly handleSelectOptions: WorkUsingContext<unknown>;
|
|
1603
|
+
private addToOpenSourceMap;
|
|
1604
|
+
private addToCurrentValue;
|
|
1605
|
+
private setCurrentValue;
|
|
1606
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSourceSelectFieldComponent<any, any>, never>;
|
|
1607
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSourceSelectFieldComponent<any, any>, "dbx-form-sourceselectfield", never, {}, {}, never, never, true, never>;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
interface SourceSelectFieldConfig<T extends PrimativeKey = PrimativeKey, M = unknown> extends LabeledFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig, SourceSelectFieldProps<T, M> {
|
|
1611
|
+
}
|
|
1612
|
+
declare function sourceSelectField<T extends PrimativeKey = PrimativeKey, M = unknown>(config: SourceSelectFieldConfig<T, M>): FormlyFieldConfig;
|
|
1613
|
+
|
|
1614
|
+
declare class DbxFormFormlySourceSelectModule {
|
|
1615
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlySourceSelectModule, never>;
|
|
1616
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlySourceSelectModule, never, [typeof DbxFormSourceSelectFieldComponent, typeof _ngx_formly_core.FormlyModule], [typeof DbxFormSourceSelectFieldComponent]>;
|
|
1617
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlySourceSelectModule>;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
interface ValueSelectionOptionWithValue<T> extends LabeledValue<T> {
|
|
1621
|
+
disabled?: boolean;
|
|
1622
|
+
}
|
|
1623
|
+
interface ValueSelectionOptionClear {
|
|
1624
|
+
label?: string;
|
|
1625
|
+
clear: true;
|
|
1626
|
+
}
|
|
1627
|
+
type ValueSelectionOption<T> = ValueSelectionOptionWithValue<T> | ValueSelectionOptionClear;
|
|
1628
|
+
interface ValueSelectionFieldConfig<T> extends LabeledFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig {
|
|
1629
|
+
/**
|
|
1630
|
+
* Whether or not to use the native select.
|
|
1631
|
+
*
|
|
1632
|
+
* Be sure to import FormlyMatNativeSelectModule.
|
|
1633
|
+
*/
|
|
1634
|
+
readonly native?: boolean;
|
|
1635
|
+
/**
|
|
1636
|
+
* Whether or not to add a clear option to the input values.
|
|
1637
|
+
*/
|
|
1638
|
+
readonly addClearOption?: string | boolean;
|
|
1639
|
+
/**
|
|
1640
|
+
* Values to select from.
|
|
1641
|
+
*/
|
|
1642
|
+
readonly options: ObservableOrValue<ValueSelectionOption<T>[]>;
|
|
1643
|
+
/**
|
|
1644
|
+
* Allow selecting multiple values and return an array.
|
|
1645
|
+
*/
|
|
1646
|
+
readonly multiple?: boolean;
|
|
1647
|
+
/**
|
|
1648
|
+
* The select all option configuration.
|
|
1649
|
+
*/
|
|
1650
|
+
readonly selectAllOption?: true | string;
|
|
1651
|
+
}
|
|
1652
|
+
declare function valueSelectionField<T>(config: ValueSelectionFieldConfig<T>): FormlyFieldConfig;
|
|
1653
|
+
declare function addValueSelectionOptionFunction<T>(label?: string | undefined): (options: ValueSelectionOption<T>[]) => ValueSelectionOption<T>[];
|
|
1654
|
+
|
|
1655
|
+
type TextEditorComponentFieldProps = FormlyFieldProps;
|
|
1656
|
+
declare class DbxTextEditorFieldComponent<T extends TextEditorComponentFieldProps = TextEditorComponentFieldProps> extends FieldType$1<FieldTypeConfig<T>> implements OnInit, OnDestroy {
|
|
1657
|
+
private readonly _compactContextStore;
|
|
1658
|
+
private _editor;
|
|
1659
|
+
private readonly _sub;
|
|
1660
|
+
readonly compactClass$: rxjs.Observable<string>;
|
|
1661
|
+
readonly compactClassSignal: i0.Signal<string>;
|
|
1662
|
+
get formGroupName(): string;
|
|
1663
|
+
get formGroup(): FormGroup;
|
|
1664
|
+
get editor(): Editor;
|
|
1665
|
+
get label(): Maybe<string>;
|
|
1666
|
+
get description(): Maybe<string>;
|
|
1667
|
+
ngOnInit(): void;
|
|
1668
|
+
ngOnDestroy(): void;
|
|
1669
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTextEditorFieldComponent<any>, never>;
|
|
1670
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxTextEditorFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
declare class DbxFormFormlyTextEditorFieldModule {
|
|
1674
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyTextEditorFieldModule, never>;
|
|
1675
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyTextEditorFieldModule, never, [typeof DbxTextEditorFieldComponent, typeof _ngx_formly_core.FormlyModule], [typeof DbxTextEditorFieldComponent]>;
|
|
1676
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyTextEditorFieldModule>;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
interface TextFieldLengthConfig {
|
|
1680
|
+
minLength?: number;
|
|
1681
|
+
maxLength?: number;
|
|
1682
|
+
}
|
|
1683
|
+
interface TextFieldPatternConfig {
|
|
1684
|
+
pattern?: string | RegExp;
|
|
1685
|
+
}
|
|
1686
|
+
type TextFieldInputType = 'text' | 'password' | 'email';
|
|
1687
|
+
interface TextFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, TextFieldPatternConfig, TextFieldLengthConfig, AttributesFieldConfig, Partial<TransformStringFunctionConfigRef>, MaterialFormFieldConfig {
|
|
1688
|
+
inputType?: TextFieldInputType;
|
|
1689
|
+
transform?: TransformStringFunctionConfig;
|
|
1690
|
+
}
|
|
1691
|
+
declare function textFieldTransformParser(config: Partial<FieldConfigParsersRef> & Partial<TransformStringFunctionConfigRef>): FormlyValueParser[] | undefined;
|
|
1692
|
+
declare function textField(config: TextFieldConfig): FormlyFieldConfig;
|
|
1693
|
+
interface TextAreaFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, TextFieldPatternConfig, TextFieldLengthConfig, AttributesFieldConfig, Partial<TransformStringFunctionConfigRef>, MaterialFormFieldConfig {
|
|
1694
|
+
rows?: number;
|
|
1695
|
+
}
|
|
1696
|
+
declare function textAreaField(config: TextAreaFieldConfig): FormlyFieldConfig;
|
|
1697
|
+
|
|
1698
|
+
interface TextEditorFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, TextFieldLengthConfig, MaterialFormFieldConfig {
|
|
1699
|
+
}
|
|
1700
|
+
declare function textEditorField(config: TextEditorFieldConfig): FormlyFieldConfig;
|
|
1701
|
+
|
|
1702
|
+
interface DbxFormRepeatArrayPair<T = unknown> extends IndexRef {
|
|
1703
|
+
readonly value?: T | undefined;
|
|
1704
|
+
}
|
|
1705
|
+
interface DbxFormRepeatArrayFieldConfigPair<T = unknown> extends Partial<DbxFormRepeatArrayPair<T>> {
|
|
1706
|
+
readonly fieldConfig: FormlyFieldConfig;
|
|
1707
|
+
}
|
|
1708
|
+
type DbxFormRepeatArrayAddTemplateFunction<T> = FactoryWithRequiredInput<Partial<Maybe<T>>, number>;
|
|
1709
|
+
interface DbxFormRepeatArrayConfig<T = unknown> extends Pick<FormlyFieldProps, 'maxLength' | 'label' | 'description'> {
|
|
1710
|
+
readonly labelForField?: string | FactoryWithRequiredInput<string, DbxFormRepeatArrayFieldConfigPair<T>>;
|
|
1711
|
+
/**
|
|
1712
|
+
* Text for the add button.
|
|
1713
|
+
*/
|
|
1714
|
+
readonly addText?: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* Optional template function to create a new template when using the add button.
|
|
1717
|
+
*/
|
|
1718
|
+
readonly addTemplate?: DbxFormRepeatArrayAddTemplateFunction<T>;
|
|
1719
|
+
/**
|
|
1720
|
+
* Text for the duplicate button.
|
|
1721
|
+
*/
|
|
1722
|
+
readonly duplicateText?: string;
|
|
1723
|
+
/**
|
|
1724
|
+
* Text for the remove button.
|
|
1725
|
+
*/
|
|
1726
|
+
readonly removeText?: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* Whethe or not to disable rearranging items.
|
|
1729
|
+
*
|
|
1730
|
+
* False by default.
|
|
1731
|
+
*/
|
|
1732
|
+
readonly disableRearrange?: boolean;
|
|
1733
|
+
/**
|
|
1734
|
+
* Wether or not to show the add button.
|
|
1735
|
+
*
|
|
1736
|
+
* True by default.
|
|
1737
|
+
*/
|
|
1738
|
+
readonly allowAdd?: boolean;
|
|
1739
|
+
/**
|
|
1740
|
+
* Whether or not to allow duplicateing items. Can optionally pass a decision function that decides whether or not a specific item can be removed.
|
|
1741
|
+
*/
|
|
1742
|
+
readonly allowDuplicate?: boolean | DecisionFunction<DbxFormRepeatArrayPair<T>>;
|
|
1743
|
+
/**
|
|
1744
|
+
* Whether or not to allow removing items. Can optionally pass a decision function that decides whether or not a specific item can be removed.
|
|
1745
|
+
*/
|
|
1746
|
+
readonly allowRemove?: boolean | DecisionFunction<DbxFormRepeatArrayPair<T>>;
|
|
1747
|
+
/**
|
|
1748
|
+
* Adds the duplicate to the end of the values
|
|
1749
|
+
*/
|
|
1750
|
+
readonly addDuplicateToEnd?: boolean;
|
|
1751
|
+
}
|
|
1752
|
+
declare class DbxFormRepeatArrayTypeComponent<T = unknown> extends FieldArrayType<FieldArrayTypeConfig<DbxFormRepeatArrayConfig>> {
|
|
1753
|
+
private readonly _labelForField;
|
|
1754
|
+
private readonly _allowRemove;
|
|
1755
|
+
private readonly _allowDuplicate;
|
|
1756
|
+
get repeatArrayField(): DbxFormRepeatArrayConfig;
|
|
1757
|
+
get label(): string;
|
|
1758
|
+
get description(): Maybe<string>;
|
|
1759
|
+
get duplicateText(): string;
|
|
1760
|
+
get addText(): string;
|
|
1761
|
+
get addTemplate(): DbxFormRepeatArrayAddTemplateFunction<unknown> | undefined;
|
|
1762
|
+
get removeText(): string;
|
|
1763
|
+
get max(): Maybe<number>;
|
|
1764
|
+
get count(): number;
|
|
1765
|
+
get disableRearrange(): boolean;
|
|
1766
|
+
get allowAdd(): boolean;
|
|
1767
|
+
get addDuplicateToEnd(): boolean;
|
|
1768
|
+
allowRemove(i: number): boolean;
|
|
1769
|
+
allowDuplicate(i: number): boolean;
|
|
1770
|
+
get addItemDisabled(): boolean;
|
|
1771
|
+
get canAddItem(): boolean;
|
|
1772
|
+
/**
|
|
1773
|
+
* Moves the target index up one value.
|
|
1774
|
+
*
|
|
1775
|
+
* @param index
|
|
1776
|
+
*/
|
|
1777
|
+
moveUp(index: number): void;
|
|
1778
|
+
moveDown(index: number): void;
|
|
1779
|
+
addClicked(): void;
|
|
1780
|
+
duplicate(index: number): void;
|
|
1781
|
+
swapIndexes(currentIndex: number, targetIndex: number): void;
|
|
1782
|
+
drop(event: CdkDragDrop<unknown>): void;
|
|
1783
|
+
labelForItem(fieldConfig: FormlyFieldConfig, i: number): string;
|
|
1784
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormRepeatArrayTypeComponent<any>, never>;
|
|
1785
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormRepeatArrayTypeComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
declare class DbxFormFormlyArrayFieldModule {
|
|
1789
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyArrayFieldModule, never>;
|
|
1790
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyArrayFieldModule, never, [typeof DbxFormRepeatArrayTypeComponent, typeof _ngx_formly_core.FormlyModule], [typeof DbxFormRepeatArrayTypeComponent]>;
|
|
1791
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyArrayFieldModule>;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
interface RepeatArrayFieldConfig<T = unknown> extends DbxFormRepeatArrayConfig<T>, FieldConfig {
|
|
1795
|
+
repeatFieldGroup: ArrayOrValue<FormlyFieldConfig>;
|
|
1796
|
+
}
|
|
1797
|
+
declare function repeatArrayField<T = unknown>(config: RepeatArrayFieldConfig<T>): {
|
|
1798
|
+
fieldArray: {
|
|
1799
|
+
fieldGroup: FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
1800
|
+
[additionalProperties: string]: any;
|
|
1801
|
+
}>[];
|
|
1802
|
+
};
|
|
1803
|
+
props: Partial<_ngx_formly_core.FormlyFieldProps> & Partial<FieldConfig> & Partial<_dereekb_dbx_form.LabeledFieldConfig> & Partial<_dereekb_dbx_form.AttributesFieldConfig> & Partial<_dereekb_dbx_form.DescriptionFieldConfig> & {
|
|
1804
|
+
label: string | undefined;
|
|
1805
|
+
description: string | undefined;
|
|
1806
|
+
maxLength: number | undefined;
|
|
1807
|
+
labelForField: string | _dereekb_util.FactoryWithRequiredInput<string, _dereekb_dbx_form.DbxFormRepeatArrayFieldConfigPair<T>> | undefined;
|
|
1808
|
+
addText: string | undefined;
|
|
1809
|
+
addTemplate: _dereekb_dbx_form.DbxFormRepeatArrayAddTemplateFunction<T> | undefined;
|
|
1810
|
+
removeText: string | undefined;
|
|
1811
|
+
duplicateText: string | undefined;
|
|
1812
|
+
disableRearrange: boolean | undefined;
|
|
1813
|
+
allowAdd: boolean | undefined;
|
|
1814
|
+
allowRemove: boolean | _dereekb_util.DecisionFunction<_dereekb_dbx_form.DbxFormRepeatArrayPair<T>> | undefined;
|
|
1815
|
+
allowDuplicate: boolean | _dereekb_util.DecisionFunction<_dereekb_dbx_form.DbxFormRepeatArrayPair<T>> | undefined;
|
|
1816
|
+
addDuplicateToEnd: boolean | undefined;
|
|
1817
|
+
};
|
|
1818
|
+
expressions: ({
|
|
1819
|
+
[property: string]: string | rxjs.Observable<any> | ((field: FormlyFieldConfig) => any);
|
|
1820
|
+
} & {
|
|
1821
|
+
className?: string | rxjs.Observable<string> | ((field: FormlyFieldConfig) => string);
|
|
1822
|
+
hide?: string | rxjs.Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
|
|
1823
|
+
'props.disabled'?: string | rxjs.Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
|
|
1824
|
+
'props.required'?: string | rxjs.Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
|
|
1825
|
+
}) | undefined;
|
|
1826
|
+
parsers: ((value: any) => any)[] | undefined;
|
|
1827
|
+
key: string;
|
|
1828
|
+
type: string;
|
|
1829
|
+
};
|
|
1830
|
+
|
|
1831
|
+
declare class DbxFormFormlyBooleanFieldModule {
|
|
1832
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyBooleanFieldModule, never>;
|
|
1833
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyBooleanFieldModule, never, [typeof i1.FormlyMaterialModule, typeof i2.FormlyMatCheckboxModule, typeof i3.FormlyMatToggleModule], [typeof i1.FormlyMaterialModule, typeof i2.FormlyMatCheckboxModule, typeof i3.FormlyMatToggleModule]>;
|
|
1834
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyBooleanFieldModule>;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
interface ToggleFieldConfig extends Omit<LabeledFieldConfig, 'placeholder' | 'autocomplete'>, DefaultValueFieldConfig<boolean>, DescriptionFieldConfig, MaterialFormFieldConfig {
|
|
1838
|
+
}
|
|
1839
|
+
declare function toggleField(config: ToggleFieldConfig): FormlyFieldConfig;
|
|
1840
|
+
interface CheckboxFieldConfig extends LabeledFieldConfig, DefaultValueFieldConfig<boolean>, DescriptionFieldConfig, MaterialFormFieldConfig {
|
|
1841
|
+
}
|
|
1842
|
+
declare function checkboxField(config: CheckboxFieldConfig): FormlyFieldConfig;
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* A pair of either a logical date or a time string.
|
|
1846
|
+
*/
|
|
1847
|
+
interface DateTimePresetValue {
|
|
1848
|
+
/**
|
|
1849
|
+
* Logical date to provide.
|
|
1850
|
+
*/
|
|
1851
|
+
logicalDate?: Maybe<LogicalDate>;
|
|
1852
|
+
/**
|
|
1853
|
+
* Time string value. Ignored if logical date is provided.
|
|
1854
|
+
*/
|
|
1855
|
+
timeString?: Maybe<ReadableTimeString>;
|
|
1856
|
+
}
|
|
1857
|
+
/**
|
|
1858
|
+
* Configuration for a DateTimePreset
|
|
1859
|
+
*/
|
|
1860
|
+
interface DateTimePresetConfiguration {
|
|
1861
|
+
/**
|
|
1862
|
+
* Label
|
|
1863
|
+
*/
|
|
1864
|
+
label: GetterOrValue<string>;
|
|
1865
|
+
/**
|
|
1866
|
+
* Whether or not the value should be retrieved each time or can be cached.
|
|
1867
|
+
*
|
|
1868
|
+
* Only relevant if a getter is used.
|
|
1869
|
+
*/
|
|
1870
|
+
dynamic?: boolean;
|
|
1871
|
+
/**
|
|
1872
|
+
* Logical time to provide.
|
|
1873
|
+
*/
|
|
1874
|
+
logicalDate?: Maybe<GetterOrValue<LogicalDate>>;
|
|
1875
|
+
/**
|
|
1876
|
+
* Time string to return. Ignored if logicalDate is provided.
|
|
1877
|
+
*/
|
|
1878
|
+
timeString?: Maybe<GetterOrValue<ReadableTimeString>>;
|
|
1879
|
+
}
|
|
1880
|
+
/**
|
|
1881
|
+
* A label and value getter.
|
|
1882
|
+
*/
|
|
1883
|
+
interface DateTimePreset {
|
|
1884
|
+
/**
|
|
1885
|
+
* Getter for the label
|
|
1886
|
+
*/
|
|
1887
|
+
label: Getter<string>;
|
|
1888
|
+
/**
|
|
1889
|
+
* Getter for the value
|
|
1890
|
+
*/
|
|
1891
|
+
value: Getter<DateTimePresetValue>;
|
|
1892
|
+
}
|
|
1893
|
+
/**
|
|
1894
|
+
* Creates a DateTimePreset from a DateTimePresetConfiguration
|
|
1895
|
+
*
|
|
1896
|
+
* @param config
|
|
1897
|
+
*/
|
|
1898
|
+
declare function dateTimePreset(config: DateTimePresetConfiguration): DateTimePreset;
|
|
1899
|
+
|
|
1900
|
+
declare enum DbxDateTimeValueMode {
|
|
1901
|
+
/**
|
|
1902
|
+
* Value is returned/parsed as a Date.
|
|
1903
|
+
*/
|
|
1904
|
+
DATE = 0,
|
|
1905
|
+
/**
|
|
1906
|
+
* Value is returned/parsed as an ISO8601DateString
|
|
1907
|
+
*/
|
|
1908
|
+
DATE_STRING = 1,
|
|
1909
|
+
/**
|
|
1910
|
+
* Value is returned/parsed as an ISO8601DayString, relative to the current timezone.
|
|
1911
|
+
*/
|
|
1912
|
+
DAY_STRING = 2,
|
|
1913
|
+
/**
|
|
1914
|
+
* Value is returned/parsed as a Unix timestamp, relative to the current timezone.
|
|
1915
|
+
*/
|
|
1916
|
+
UNIX_TIMESTAMP = 3,
|
|
1917
|
+
/**
|
|
1918
|
+
* Value is returned/parsed as a minute of the day, relative to the current timezone.
|
|
1919
|
+
*/
|
|
1920
|
+
MINUTE_OF_DAY = 4,
|
|
1921
|
+
/**
|
|
1922
|
+
* Value is returned/parsed as a minute of the day, relative to the system timezone.
|
|
1923
|
+
*/
|
|
1924
|
+
SYSTEM_MINUTE_OF_DAY = 5
|
|
1925
|
+
}
|
|
1926
|
+
declare function dbxDateTimeInputValueParseFactory(mode: DbxDateTimeValueMode, timezoneInstance: Maybe<DateTimezoneUtcNormalInstance>): (date: Maybe<Date | string | number>) => Maybe<Date>;
|
|
1927
|
+
declare function dbxDateTimeOutputValueFactory(mode: DbxDateTimeValueMode, timezoneInstance: Maybe<DateTimezoneUtcNormalInstance>): (date: Maybe<Date>) => Maybe<Date | string | number>;
|
|
1928
|
+
declare function dbxDateTimeIsSameDateTimeFieldValue(a: Maybe<Date | ISO8601DayString | number>, b: Maybe<Date | ISO8601DayString | number>): boolean;
|
|
1929
|
+
declare function dbxDateRangeIsSameDateRangeFieldValue(a: Maybe<DateRangeWithDateOrStringValue>, b: Maybe<DateRangeWithDateOrStringValue>): boolean;
|
|
1930
|
+
|
|
1931
|
+
declare enum DbxDateTimeFieldTimeMode {
|
|
1932
|
+
/**
|
|
1933
|
+
* Time is required.
|
|
1934
|
+
*/
|
|
1935
|
+
REQUIRED = "required",
|
|
1936
|
+
/**
|
|
1937
|
+
* Time is optional.
|
|
1938
|
+
*/
|
|
1939
|
+
OPTIONAL = "optional",
|
|
1940
|
+
/**
|
|
1941
|
+
* Time is permenantly off.
|
|
1942
|
+
*/
|
|
1943
|
+
NONE = "none"
|
|
1944
|
+
}
|
|
1945
|
+
type DbxDateTimePickerConfiguration = Omit<DateTimeMinuteConfig, 'date'>;
|
|
1946
|
+
type DbxDateTimeFieldSyncType = 'before' | 'after';
|
|
1947
|
+
interface DbxDateTimeFieldSyncField {
|
|
1948
|
+
/**
|
|
1949
|
+
* Field key/path to sync with/against.
|
|
1950
|
+
*/
|
|
1951
|
+
readonly syncWith: string;
|
|
1952
|
+
/**
|
|
1953
|
+
* How to sync against the other field.
|
|
1954
|
+
*/
|
|
1955
|
+
readonly syncType: DbxDateTimeFieldSyncType;
|
|
1956
|
+
}
|
|
1957
|
+
/**
|
|
1958
|
+
* Configuration for the time date field that has a reference and optional map function to map the value.
|
|
1959
|
+
*/
|
|
1960
|
+
interface DbxDateTimeFieldTimeDateConfig<I = unknown> {
|
|
1961
|
+
readonly path: FormControlPath;
|
|
1962
|
+
readonly mapValue?: MapFunction<I, Maybe<DateOrDayString>>;
|
|
1963
|
+
}
|
|
1964
|
+
declare function isDbxDateTimeFieldTimeDateConfig(input: unknown): input is DbxDateTimeFieldTimeDateConfig;
|
|
1965
|
+
interface DbxDateTimeFieldProps extends FormlyFieldProps {
|
|
1966
|
+
/**
|
|
1967
|
+
* Custom date label.
|
|
1968
|
+
*
|
|
1969
|
+
* Defaults to Date
|
|
1970
|
+
*/
|
|
1971
|
+
readonly dateLabel?: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* Custom time label.
|
|
1974
|
+
*
|
|
1975
|
+
* Defaults to Time
|
|
1976
|
+
*/
|
|
1977
|
+
readonly timeLabel?: string;
|
|
1978
|
+
/**
|
|
1979
|
+
* Label to use for the date hint for "All Day". Defaults to "All Day".
|
|
1980
|
+
*/
|
|
1981
|
+
readonly allDayLabel?: string;
|
|
1982
|
+
/**
|
|
1983
|
+
* Label to use for the date hint for "At". Defaults to "At".
|
|
1984
|
+
*/
|
|
1985
|
+
readonly atTimeLabel?: string;
|
|
1986
|
+
/**
|
|
1987
|
+
* Value mode.
|
|
1988
|
+
*
|
|
1989
|
+
* Defaults to DATE
|
|
1990
|
+
*/
|
|
1991
|
+
readonly valueMode?: DbxDateTimeValueMode;
|
|
1992
|
+
/**
|
|
1993
|
+
* Whether or not the date is hidden, and automatically uses today/input date.
|
|
1994
|
+
*/
|
|
1995
|
+
readonly timeOnly?: boolean;
|
|
1996
|
+
/**
|
|
1997
|
+
* Only applicable when timeOnly is false.
|
|
1998
|
+
*
|
|
1999
|
+
* Whether or not to always show the date input even when there is only a single date that can be selected.
|
|
2000
|
+
*
|
|
2001
|
+
* Defaults to true.
|
|
2002
|
+
*/
|
|
2003
|
+
readonly alwaysShowDateInput?: boolean;
|
|
2004
|
+
/**
|
|
2005
|
+
* Whether or not to autofill the date when time is picked.
|
|
2006
|
+
*
|
|
2007
|
+
* Defaults to false.
|
|
2008
|
+
*/
|
|
2009
|
+
readonly autofillDateWhenTimeIsPicked?: boolean;
|
|
2010
|
+
/**
|
|
2011
|
+
* Whether or not the time can be added/removed optionally.
|
|
2012
|
+
*
|
|
2013
|
+
* This is ignored if timeOnly is specified.
|
|
2014
|
+
*/
|
|
2015
|
+
readonly timeMode?: DbxDateTimeFieldTimeMode;
|
|
2016
|
+
/**
|
|
2017
|
+
* Other form control for enabling/disabling whether or not it is a full day.
|
|
2018
|
+
*
|
|
2019
|
+
* This field is only used if time is optional.
|
|
2020
|
+
*
|
|
2021
|
+
* When time is off, the field is set to true.
|
|
2022
|
+
*/
|
|
2023
|
+
readonly fullDayFieldName?: string;
|
|
2024
|
+
/**
|
|
2025
|
+
* Whether or not to pass the date value as a UTC date, or a date in the current timezone.
|
|
2026
|
+
*/
|
|
2027
|
+
readonly fullDayInUTC?: boolean;
|
|
2028
|
+
/**
|
|
2029
|
+
* Whether or not ot hide the date hint info content.
|
|
2030
|
+
*
|
|
2031
|
+
* False by default
|
|
2032
|
+
*/
|
|
2033
|
+
readonly hideDateHint?: boolean;
|
|
2034
|
+
/**
|
|
2035
|
+
* Whether or not to hide the date/calendar picker.
|
|
2036
|
+
*/
|
|
2037
|
+
readonly hideDatePicker?: boolean;
|
|
2038
|
+
/**
|
|
2039
|
+
* Custom picker configuration
|
|
2040
|
+
*/
|
|
2041
|
+
readonly pickerConfig?: ObservableOrValueGetter<DbxDateTimePickerConfiguration>;
|
|
2042
|
+
/**
|
|
2043
|
+
* Used for syncing with one or more fields with a Date value.
|
|
2044
|
+
*/
|
|
2045
|
+
readonly getSyncFieldsObs?: () => Observable<ArrayOrValue<DbxDateTimeFieldSyncField>>;
|
|
2046
|
+
/**
|
|
2047
|
+
* (Optional) The input timezone to default to.
|
|
2048
|
+
*
|
|
2049
|
+
* Ignored if fullDayInUTC is true.
|
|
2050
|
+
*/
|
|
2051
|
+
readonly timezone?: Maybe<ObservableOrValueGetter<Maybe<TimezoneString>>>;
|
|
2052
|
+
/**
|
|
2053
|
+
* (Optional) The date to apply the time to.
|
|
2054
|
+
*
|
|
2055
|
+
* The timezone abbrviation will also use this date when using the time-only mode.
|
|
2056
|
+
*/
|
|
2057
|
+
readonly timeDate?: Maybe<ObservableOrValueGetter<Maybe<DbxDateTimeFieldTimeDateConfig | FormControlPath | DateOrDayString>>>;
|
|
2058
|
+
/**
|
|
2059
|
+
* Whether or not to display the timezone. True by default.
|
|
2060
|
+
*/
|
|
2061
|
+
readonly showTimezone?: Maybe<boolean>;
|
|
2062
|
+
/**
|
|
2063
|
+
* Custom presets to show in the dropdown.
|
|
2064
|
+
*/
|
|
2065
|
+
readonly presets?: ObservableOrValueGetter<DateTimePresetConfiguration[]>;
|
|
2066
|
+
/**
|
|
2067
|
+
* The time in ms to prevent output from going out when the input value changes.
|
|
2068
|
+
*/
|
|
2069
|
+
readonly inputOutputDebounceTime?: Milliseconds;
|
|
2070
|
+
/**
|
|
2071
|
+
* Whether or not to display the clear date button. True by default.
|
|
2072
|
+
*/
|
|
2073
|
+
readonly showClearButton?: Maybe<boolean>;
|
|
2074
|
+
/**
|
|
2075
|
+
* The number of minutes to add/subtract when using the arrow keys.
|
|
2076
|
+
*/
|
|
2077
|
+
readonly minuteStep?: Maybe<number>;
|
|
2078
|
+
}
|
|
2079
|
+
interface DbxDateTimeFieldSyncParsedField extends Pick<DbxDateTimeFieldSyncField, 'syncType'> {
|
|
2080
|
+
readonly control: AbstractControl<Maybe<Date | ISO8601DateString>>;
|
|
2081
|
+
}
|
|
2082
|
+
declare function syncConfigValueObs(parseConfigsObs: Observable<DbxDateTimeFieldSyncParsedField[]>, type: DbxDateTimeFieldSyncType): Observable<Date | null>;
|
|
2083
|
+
/**
|
|
2084
|
+
* Error code used when the selected date is not in the schedule.
|
|
2085
|
+
*/
|
|
2086
|
+
declare const DBX_DATE_TIME_FIELD_DATE_NOT_IN_SCHEDULE_ERROR = "dateTimeFieldDateNotInSchedule";
|
|
2087
|
+
/**
|
|
2088
|
+
* Error code used when the selected time/time input is not in the limited range.
|
|
2089
|
+
*/
|
|
2090
|
+
declare const DBX_DATE_TIME_FIELD_TIME_NOT_IN_RANGE_ERROR = "dateTimeFieldTimeNotInRange";
|
|
2091
|
+
declare class DbxDateTimeFieldComponent extends FieldType$1<FieldTypeConfig<DbxDateTimeFieldProps>> implements OnInit, OnDestroy {
|
|
2092
|
+
private readonly dbxDateTimeFieldConfigService;
|
|
2093
|
+
private readonly _sub;
|
|
2094
|
+
private readonly _valueSub;
|
|
2095
|
+
private readonly _autoFillDateSync;
|
|
2096
|
+
private readonly _config;
|
|
2097
|
+
readonly latestConfig$: Observable<Maybe<DbxDateTimePickerConfiguration>>;
|
|
2098
|
+
private readonly _syncConfigObs;
|
|
2099
|
+
private readonly _defaultTimezone;
|
|
2100
|
+
private readonly _timeDate;
|
|
2101
|
+
private readonly _presets;
|
|
2102
|
+
/**
|
|
2103
|
+
* Alternative/backup full day control if not defined in the Formly form.
|
|
2104
|
+
*/
|
|
2105
|
+
private readonly _fullDayInputCtrl;
|
|
2106
|
+
private readonly _fullDayControlObs;
|
|
2107
|
+
readonly fullDayControl$: Observable<AbstractControl<boolean, boolean, any>>;
|
|
2108
|
+
private readonly _offset;
|
|
2109
|
+
private readonly _formControlObs;
|
|
2110
|
+
readonly formControl$: Observable<AbstractControl<Maybe<Date>, Maybe<Date>, any>>;
|
|
2111
|
+
private readonly _cleared;
|
|
2112
|
+
private readonly _updateTime;
|
|
2113
|
+
private readonly _resyncTimeInputSub;
|
|
2114
|
+
private readonly _resyncTimeInput;
|
|
2115
|
+
readonly timeErrorStateMatcher: ErrorStateMatcher;
|
|
2116
|
+
readonly resyncTimeInput$: Observable<void>;
|
|
2117
|
+
private readonly _configUpdateTimeSync;
|
|
2118
|
+
readonly timezone$: Observable<Maybe<TimezoneString>>;
|
|
2119
|
+
readonly timezoneInstance$: Observable<Maybe<DateTimezoneUtcNormalInstance>>;
|
|
2120
|
+
readonly timeDate$: Observable<Maybe<Date>>;
|
|
2121
|
+
readonly valueInSystemTimezone$: Observable<Maybe<Date>>;
|
|
2122
|
+
readonly refreshInteral$: Observable<number>;
|
|
2123
|
+
/**
|
|
2124
|
+
* Used to trigger/display visual updates (specifically on timeDistance, etc.).
|
|
2125
|
+
*/
|
|
2126
|
+
readonly displayValue$: Observable<Maybe<Date>>;
|
|
2127
|
+
readonly timeString$: Observable<ReadableTimeString | ''>;
|
|
2128
|
+
readonly dateInputCtrl: FormControl<Maybe<Date>>;
|
|
2129
|
+
readonly timeInputCtrl: FormControl<Maybe<string>>;
|
|
2130
|
+
get dateLabel(): string;
|
|
2131
|
+
get timeLabel(): string;
|
|
2132
|
+
get allDayLabel(): string;
|
|
2133
|
+
get atTimeLabel(): string;
|
|
2134
|
+
get dateOnly(): boolean;
|
|
2135
|
+
get dateTimeField(): DbxDateTimeFieldProps;
|
|
2136
|
+
get timeOnly(): Maybe<boolean>;
|
|
2137
|
+
get alwaysShowDateInput(): boolean;
|
|
2138
|
+
get autofillDateWhenTimeIsPicked(): boolean;
|
|
2139
|
+
get showDateInput(): boolean;
|
|
2140
|
+
get valueMode(): DbxDateTimeValueMode;
|
|
2141
|
+
get timeMode(): DbxDateTimeFieldTimeMode;
|
|
2142
|
+
get isDateRequired(): boolean;
|
|
2143
|
+
get isTimeRequired(): boolean;
|
|
2144
|
+
get description(): Maybe<string>;
|
|
2145
|
+
get hideDateHint(): boolean;
|
|
2146
|
+
get hideDatePicker(): boolean;
|
|
2147
|
+
get timezone(): Maybe<ObservableOrValueGetter<Maybe<string>>>;
|
|
2148
|
+
get timeDate(): Maybe<ObservableOrValueGetter<Maybe<DateOrDayString | DbxDateTimeFieldTimeDateConfig<unknown>>>>;
|
|
2149
|
+
get showTimezone(): boolean;
|
|
2150
|
+
get presets(): ObservableOrValueGetter<DateTimePresetConfiguration[]> | undefined;
|
|
2151
|
+
get showClearButton(): Maybe<boolean>;
|
|
2152
|
+
get minuteStep(): number;
|
|
2153
|
+
readonly fullDay$: Observable<boolean>;
|
|
2154
|
+
readonly showTimeInput$: Observable<boolean>;
|
|
2155
|
+
readonly showAddTime$: Observable<boolean>;
|
|
2156
|
+
readonly currentDate$: Observable<Maybe<Date>>;
|
|
2157
|
+
readonly date$: Observable<Date>;
|
|
2158
|
+
readonly timezoneAbbreviation$: Observable<string>;
|
|
2159
|
+
readonly dateValue$: Observable<Maybe<Date>>;
|
|
2160
|
+
readonly timeInput$: Observable<ReadableTimeString>;
|
|
2161
|
+
readonly syncConfigObs$: Observable<Maybe<DbxDateTimeFieldSyncField | DbxDateTimeFieldSyncField[]>>;
|
|
2162
|
+
readonly parsedSyncConfigs$: Observable<DbxDateTimeFieldSyncParsedField[]>;
|
|
2163
|
+
readonly syncConfigBeforeValue$: Observable<Date | null>;
|
|
2164
|
+
readonly syncConfigAfterValue$: Observable<Date | null>;
|
|
2165
|
+
readonly isTimeCleared$: Observable<boolean>;
|
|
2166
|
+
protected readonly _rawDateTimeDateValue$: Observable<Maybe<Date>>;
|
|
2167
|
+
protected readonly _rawDateTimeTimeValue$: Observable<Maybe<ReadableTimeString>>;
|
|
2168
|
+
readonly rawDateTime$: Observable<Maybe<Date>>;
|
|
2169
|
+
readonly dateTimePickerConfig$: Observable<Maybe<DbxDateTimePickerConfiguration>>;
|
|
2170
|
+
readonly dateInputMin$: Observable<Date | null>;
|
|
2171
|
+
readonly dateInputMax$: Observable<Date | null>;
|
|
2172
|
+
/**
|
|
2173
|
+
* Whether or not there is a limited min/max date range applied/available.
|
|
2174
|
+
*/
|
|
2175
|
+
readonly hasRestrictedDateRange$: Observable<boolean>;
|
|
2176
|
+
readonly dateMinAndMaxIsSameDay$: Observable<boolean>;
|
|
2177
|
+
readonly pickerFilter$: Observable<DecisionFunction<Date | null>>;
|
|
2178
|
+
readonly defaultPickerFilter: DecisionFunction<Date | null>;
|
|
2179
|
+
readonly timeOutput$: Observable<Maybe<Date>>;
|
|
2180
|
+
readonly dateTimePickerInstance$: Observable<DateTimeMinuteInstance>;
|
|
2181
|
+
readonly hasEmptyDisplayValue$: Observable<boolean>;
|
|
2182
|
+
readonly allPresets$: Observable<DateTimePreset[]>;
|
|
2183
|
+
readonly _presetsPickerFilter$: Observable<(x: Date | null) => boolean>;
|
|
2184
|
+
readonly presets$: Observable<DateTimePreset[]>;
|
|
2185
|
+
readonly showClearButton$: Observable<boolean>;
|
|
2186
|
+
readonly canAutofillDateWithOnlyAvailableDate$: Observable<boolean>;
|
|
2187
|
+
readonly showDateInput$: Observable<boolean>;
|
|
2188
|
+
readonly currentErrorMessage$: Observable<string | undefined>;
|
|
2189
|
+
readonly hasError$: Observable<boolean>;
|
|
2190
|
+
readonly dateValueSignal: i0.Signal<Maybe<Date>>;
|
|
2191
|
+
readonly displayValueSignal: i0.Signal<Maybe<Date>>;
|
|
2192
|
+
readonly pickerFilterSignal: i0.Signal<DecisionFunction<Date | null>>;
|
|
2193
|
+
readonly dateInputMinSignal: i0.Signal<Date | null>;
|
|
2194
|
+
readonly dateInputMaxSignal: i0.Signal<Date | null>;
|
|
2195
|
+
readonly showDateInputSignal: i0.Signal<boolean | undefined>;
|
|
2196
|
+
readonly showTimeInputSignal: i0.Signal<boolean | undefined>;
|
|
2197
|
+
readonly showAddTimeSignal: i0.Signal<boolean | undefined>;
|
|
2198
|
+
readonly fullDaySignal: i0.Signal<boolean | undefined>;
|
|
2199
|
+
readonly timezoneAbbreviationSignal: i0.Signal<string | undefined>;
|
|
2200
|
+
readonly hasEmptyDisplayValueSignal: i0.Signal<boolean | undefined>;
|
|
2201
|
+
readonly currentErrorMessageSignal: i0.Signal<string | undefined>;
|
|
2202
|
+
readonly showClearButtonSignal: i0.Signal<boolean | undefined>;
|
|
2203
|
+
readonly presetsSignal: i0.Signal<DateTimePreset[] | undefined>;
|
|
2204
|
+
readonly hasErrorSignal: i0.Signal<boolean | undefined>;
|
|
2205
|
+
ngOnInit(): void;
|
|
2206
|
+
ngOnDestroy(): void;
|
|
2207
|
+
selectPreset(preset: DateTimePreset): void;
|
|
2208
|
+
datePicked(event: MatDatepickerInputEvent<Date>): void;
|
|
2209
|
+
setLogicalTime(time: LogicalDate): void;
|
|
2210
|
+
setDateInputValue(date: Date): void;
|
|
2211
|
+
setTimeFromDate(timeDate: Date): void;
|
|
2212
|
+
setTime(time: ReadableTimeString): void;
|
|
2213
|
+
keydownOnDateInput(event: KeyboardEvent): void;
|
|
2214
|
+
keydownOnTimeInput(event: KeyboardEvent): void;
|
|
2215
|
+
focusTime(): void;
|
|
2216
|
+
focusOutTime(): void;
|
|
2217
|
+
addTime(): void;
|
|
2218
|
+
removeTime(): void;
|
|
2219
|
+
setFullDay(fullDay: boolean): void;
|
|
2220
|
+
clearValue(): void;
|
|
2221
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxDateTimeFieldComponent, never>;
|
|
2222
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxDateTimeFieldComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
type DbxFixedDateRangeDateRangeInput = Omit<DateRangeInput, 'date'>;
|
|
2226
|
+
type DbxFixedDateRangePickerConfiguration = Omit<DateTimeMinuteConfig, 'date'>;
|
|
2227
|
+
type DbxFixedDateRangeSelectionMode = 'single' | 'normal' | 'arbitrary' | 'arbitrary_quick';
|
|
2228
|
+
type DbxFixedDateRangePicking = 'start' | 'end';
|
|
2229
|
+
interface DbxFixedDateRangeFieldProps extends FormlyFieldProps {
|
|
2230
|
+
/**
|
|
2231
|
+
* Date range input to build the date range.
|
|
2232
|
+
*/
|
|
2233
|
+
readonly dateRangeInput: ObservableOrValueGetter<DbxFixedDateRangeDateRangeInput>;
|
|
2234
|
+
/**
|
|
2235
|
+
* Selection mode to use when picking dates on the calendar.
|
|
2236
|
+
*/
|
|
2237
|
+
readonly selectionMode?: Maybe<ObservableOrValueGetter<DbxFixedDateRangeSelectionMode>>;
|
|
2238
|
+
/**
|
|
2239
|
+
* Value mode for the dates in the output DateRange.
|
|
2240
|
+
*
|
|
2241
|
+
* Defaults to DATE
|
|
2242
|
+
*/
|
|
2243
|
+
readonly valueMode?: DbxDateTimeValueMode;
|
|
2244
|
+
/**
|
|
2245
|
+
* Whether or not to pass the date value as a UTC date, or a date in the current timezone.
|
|
2246
|
+
*/
|
|
2247
|
+
readonly fullDayInUTC?: boolean;
|
|
2248
|
+
/**
|
|
2249
|
+
* Custom picker configuration
|
|
2250
|
+
*/
|
|
2251
|
+
readonly pickerConfig?: ObservableOrValueGetter<DbxFixedDateRangePickerConfiguration>;
|
|
2252
|
+
/**
|
|
2253
|
+
* (Optional) The input timezone to default to.
|
|
2254
|
+
*
|
|
2255
|
+
* Ignored if fullDayInUTC is true.
|
|
2256
|
+
*/
|
|
2257
|
+
readonly timezone?: Maybe<ObservableOrValueGetter<Maybe<TimezoneString>>>;
|
|
2258
|
+
/**
|
|
2259
|
+
* Whether or not to display the timezone. True by default.
|
|
2260
|
+
*/
|
|
2261
|
+
readonly showTimezone?: boolean;
|
|
2262
|
+
/**
|
|
2263
|
+
* Custom presets to show in the dropdown.
|
|
2264
|
+
*/
|
|
2265
|
+
readonly presets?: ObservableOrValueGetter<DateTimePresetConfiguration[]>;
|
|
2266
|
+
/**
|
|
2267
|
+
* Whether or not to show the range input. Defaults to true.
|
|
2268
|
+
*/
|
|
2269
|
+
readonly showRangeInput?: boolean;
|
|
2270
|
+
}
|
|
2271
|
+
type FixedDateRangeScanType = 'start' | 'end' | 'startRepeat';
|
|
2272
|
+
interface FixedDateRangeScan {
|
|
2273
|
+
/**
|
|
2274
|
+
* Picked the start or end of the range on the last pick.
|
|
2275
|
+
*/
|
|
2276
|
+
readonly lastPickType?: Maybe<FixedDateRangeScanType>;
|
|
2277
|
+
/**
|
|
2278
|
+
* The latest date passed, if applicable.
|
|
2279
|
+
*/
|
|
2280
|
+
readonly lastDateRange?: Maybe<Partial<DateRange>>;
|
|
2281
|
+
/**
|
|
2282
|
+
* The generated boundary range.
|
|
2283
|
+
*/
|
|
2284
|
+
readonly boundary?: DateRange;
|
|
2285
|
+
/**
|
|
2286
|
+
* New Date Range
|
|
2287
|
+
*/
|
|
2288
|
+
readonly range?: DateRange;
|
|
2289
|
+
}
|
|
2290
|
+
type SelectedDateEventType = 'calendar' | 'input';
|
|
2291
|
+
declare class DbxFixedDateRangeFieldComponent extends FieldType$1<FieldTypeConfig<DbxFixedDateRangeFieldProps>> implements OnInit, OnDestroy {
|
|
2292
|
+
private readonly dbxDateTimeFieldMenuPresetsService;
|
|
2293
|
+
readonly calendar: i0.Signal<MatCalendar<Date>>;
|
|
2294
|
+
readonly startDateInputElement: i0.Signal<ElementRef<any> | undefined>;
|
|
2295
|
+
readonly endDateInputElement: i0.Signal<ElementRef<any> | undefined>;
|
|
2296
|
+
readonly currentDateRangeInputSignal: i0.WritableSignal<Maybe<DbxFixedDateRangeDateRangeInput>>;
|
|
2297
|
+
readonly currentSelectionModeSignal: i0.WritableSignal<DbxFixedDateRangeSelectionMode>;
|
|
2298
|
+
private readonly _sub;
|
|
2299
|
+
private readonly _inputRangeFormSub;
|
|
2300
|
+
private readonly _inputRangeFormValueSub;
|
|
2301
|
+
private readonly _dateRangeInputSub;
|
|
2302
|
+
private readonly _currentSelectionModeSub;
|
|
2303
|
+
private readonly _latestBoundarySub;
|
|
2304
|
+
private readonly _disableEndSub;
|
|
2305
|
+
private readonly _activeDateSub;
|
|
2306
|
+
private readonly _config;
|
|
2307
|
+
private readonly _selectionMode;
|
|
2308
|
+
private readonly _dateRangeInput;
|
|
2309
|
+
private readonly _timezone;
|
|
2310
|
+
private readonly _presets;
|
|
2311
|
+
private readonly _selectionEvent;
|
|
2312
|
+
readonly selectedDateRange$: Observable<Maybe<Partial<DateRange>>>;
|
|
2313
|
+
private readonly _formControlObs;
|
|
2314
|
+
readonly formControl$: Observable<AbstractControl<Maybe<DateRange>, Maybe<DateRange>, any>>;
|
|
2315
|
+
readonly config$: Observable<DbxFixedDateRangePickerConfiguration>;
|
|
2316
|
+
readonly limitDateTimeInstance$: Observable<_dereekb_date.LimitDateTimeInstance>;
|
|
2317
|
+
readonly selectionMode$: Observable<DbxFixedDateRangeSelectionMode>;
|
|
2318
|
+
readonly dateRangeInput$: Observable<Maybe<DbxFixedDateRangeDateRangeInput>>;
|
|
2319
|
+
readonly timezone$: Observable<Maybe<TimezoneString>>;
|
|
2320
|
+
readonly timezoneInstance$: Observable<Maybe<DateTimezoneUtcNormalInstance>>;
|
|
2321
|
+
readonly valueInSystemTimezone$: Observable<Maybe<DateRange>>;
|
|
2322
|
+
dateRangeSelectionForMode(mode: DbxFixedDateRangeSelectionMode): Observable<Maybe<DateRange>>;
|
|
2323
|
+
readonly fullBoundary$: Observable<Maybe<DateRange>>;
|
|
2324
|
+
readonly latestBoundary$: Observable<Maybe<DateRange>>;
|
|
2325
|
+
/**
|
|
2326
|
+
* Focuses on the date any time the selection event from the picker occured, otherwise use the system value
|
|
2327
|
+
*/
|
|
2328
|
+
readonly calendarFocusDate$: Observable<Date>;
|
|
2329
|
+
readonly dateRangeSelection$: Observable<Maybe<DateRange>>;
|
|
2330
|
+
readonly calendarSelection$: Observable<DateRange$1<Date> | null>;
|
|
2331
|
+
readonly endDisabled$: Observable<boolean>;
|
|
2332
|
+
readonly inputRangeForm: FormGroup<{
|
|
2333
|
+
start: FormControl<Maybe<Date>>;
|
|
2334
|
+
end: FormControl<Maybe<Date>>;
|
|
2335
|
+
}>;
|
|
2336
|
+
get fixedDateRangeField(): DbxFixedDateRangeFieldProps;
|
|
2337
|
+
get selectionMode(): Maybe<ObservableOrValueGetter<DbxFixedDateRangeSelectionMode>>;
|
|
2338
|
+
get valueMode(): DbxDateTimeValueMode;
|
|
2339
|
+
get description(): Maybe<string>;
|
|
2340
|
+
get timezone(): Maybe<ObservableOrValueGetter<Maybe<string>>>;
|
|
2341
|
+
get showTimezone(): boolean;
|
|
2342
|
+
get presets(): ObservableOrValueGetter<DateTimePresetConfiguration[]> | undefined;
|
|
2343
|
+
get showRangeInput(): boolean;
|
|
2344
|
+
readonly minMaxRange$: Observable<Maybe<Partial<DateRange>>>;
|
|
2345
|
+
readonly min$: Observable<Date | null>;
|
|
2346
|
+
readonly max$: Observable<Date | null>;
|
|
2347
|
+
readonly pickerFilter$: Observable<DecisionFunction<Date | null>>;
|
|
2348
|
+
readonly defaultPickerFilter: DecisionFunction<Date | null>;
|
|
2349
|
+
readonly minDateSignal: i0.Signal<Date | null>;
|
|
2350
|
+
readonly maxDateSignal: i0.Signal<Date | null>;
|
|
2351
|
+
readonly endDisabledSignal: i0.Signal<boolean | undefined>;
|
|
2352
|
+
readonly latestBoundarySignal: i0.Signal<Maybe<DateRange>>;
|
|
2353
|
+
readonly calendarSelectionSignal: i0.Signal<DateRange$1<Date> | null>;
|
|
2354
|
+
readonly pickerFilterSignal: i0.Signal<DecisionFunction<Date | null>>;
|
|
2355
|
+
ngOnInit(): void;
|
|
2356
|
+
ngOnDestroy(): void;
|
|
2357
|
+
selectedChange(date: Maybe<Date>): void;
|
|
2358
|
+
setDateRange(range: Maybe<Partial<DateRange>>, type: SelectedDateEventType): void;
|
|
2359
|
+
_createDateRange(date: Maybe<Date>): Maybe<DateRange>;
|
|
2360
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFixedDateRangeFieldComponent, never>;
|
|
2361
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFixedDateRangeFieldComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
2362
|
+
}
|
|
2363
|
+
declare class DbxFixedDateRangeFieldSelectionStrategy<D> implements MatDateRangeSelectionStrategy<D> {
|
|
2364
|
+
private readonly _dateAdapter;
|
|
2365
|
+
readonly dbxFixedDateRangeFieldComponent: DbxFixedDateRangeFieldComponent;
|
|
2366
|
+
selectionFinished(date: D | null, currentRange: DateRange$1<D>, event: Event): DateRange$1<D>;
|
|
2367
|
+
createPreview(activeDate: D | null, currentRange: DateRange$1<D>, event: Event): DateRange$1<D>;
|
|
2368
|
+
private _createDateRangeWithDate;
|
|
2369
|
+
private _createDateRange;
|
|
2370
|
+
dateFromAdapterDate(input: D): Date;
|
|
2371
|
+
adapterDateFromDate(date: Date): D;
|
|
2372
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFixedDateRangeFieldSelectionStrategy<any>, never>;
|
|
2373
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbxFixedDateRangeFieldSelectionStrategy<any>>;
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
declare class DbxFormFormlyDateFieldModule {
|
|
2377
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyDateFieldModule, never>;
|
|
2378
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyDateFieldModule, never, [typeof DbxDateTimeFieldComponent, typeof DbxFixedDateRangeFieldComponent, typeof DbxFormFormlyWrapperModule, typeof _ngx_formly_core.FormlyModule], [typeof DbxDateTimeFieldComponent, typeof DbxFixedDateRangeFieldComponent, typeof DbxFormFormlyWrapperModule]>;
|
|
2379
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyDateFieldModule>;
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
interface DateTimeFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, DbxDateTimeFieldProps, MaterialFormFieldConfig {
|
|
2383
|
+
}
|
|
2384
|
+
type TimeFieldConfig = Omit<DateTimeFieldConfig, 'showDate' | 'timeOnly'>;
|
|
2385
|
+
declare const TAKE_NEXT_UPCOMING_TIME_CONFIG_OBS: () => Observable<DbxDateTimePickerConfiguration>;
|
|
2386
|
+
/**
|
|
2387
|
+
* Same as DateTime field but with the Date input hidden by default.
|
|
2388
|
+
*/
|
|
2389
|
+
declare function timeOnlyField(config?: Partial<TimeFieldConfig>): FormlyFieldConfig;
|
|
2390
|
+
declare function dateTimeField(config?: Partial<DateTimeFieldConfig>): FormlyFieldConfig<DbxDateTimeFieldProps>;
|
|
2391
|
+
type DateDateRangeFieldDateConfig = Omit<DateTimeFieldConfig, 'dateLabel' | 'timeOnly' | 'timeMode' | 'getSyncFieldsObs'>;
|
|
2392
|
+
interface DateDateRangeFieldConfig extends Pick<DateTimeFieldConfig, 'timeDate' | 'timezone' | 'showTimezone' | 'presets' | 'valueMode' | 'minuteStep'> {
|
|
2393
|
+
required?: boolean;
|
|
2394
|
+
start?: Partial<DateDateRangeFieldDateConfig>;
|
|
2395
|
+
end?: Partial<DateDateRangeFieldDateConfig>;
|
|
2396
|
+
}
|
|
2397
|
+
declare function dateRangeField(config?: DateDateRangeFieldConfig): FormlyFieldConfig;
|
|
2398
|
+
type DateTimeRangeFieldTimeConfig = Omit<DateDateRangeFieldDateConfig, 'allDayLabel' | 'fullDayFieldName' | 'fullDayInUTC'>;
|
|
2399
|
+
interface DateDateTimeRangeFieldConfig extends Pick<DateTimeFieldConfig, 'timeDate' | 'timezone' | 'showTimezone' | 'presets' | 'valueMode' | 'minuteStep'> {
|
|
2400
|
+
required?: boolean;
|
|
2401
|
+
start?: Partial<DateTimeRangeFieldTimeConfig>;
|
|
2402
|
+
end?: Partial<DateTimeRangeFieldTimeConfig>;
|
|
2403
|
+
}
|
|
2404
|
+
declare function dateTimeRangeField(inputConfig?: DateDateTimeRangeFieldConfig): FormlyFieldConfig;
|
|
2405
|
+
interface FixedDateRangeFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, DbxFixedDateRangeFieldProps, MaterialFormFieldConfig {
|
|
2406
|
+
}
|
|
2407
|
+
declare function fixedDateRangeField(config?: Partial<FixedDateRangeFieldConfig>): FormlyFieldConfig<DbxDateTimeFieldProps>;
|
|
2408
|
+
|
|
2409
|
+
declare const DBX_DATE_TIME_FIELD_MENU_PRESETS_TOKEN: InjectionToken<unknown>;
|
|
2410
|
+
declare class DbxDateTimeFieldMenuPresetsService {
|
|
2411
|
+
private readonly _configurations;
|
|
2412
|
+
readonly configurations$: rxjs.Observable<DateTimePresetConfiguration[]>;
|
|
2413
|
+
get configurations(): DateTimePresetConfiguration[];
|
|
2414
|
+
set configurations(configurations: DateTimePresetConfiguration[]);
|
|
2415
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxDateTimeFieldMenuPresetsService, never>;
|
|
2416
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbxDateTimeFieldMenuPresetsService>;
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
declare const DEFAULT_DATE_TIME_FIELD_MENU_PRESETS_PRESETS: DateTimePresetConfiguration[];
|
|
2420
|
+
|
|
2421
|
+
interface NumberFieldNumberConfig {
|
|
2422
|
+
readonly min?: number;
|
|
2423
|
+
readonly max?: number;
|
|
2424
|
+
readonly step?: number;
|
|
2425
|
+
readonly enforceStep?: boolean;
|
|
2426
|
+
}
|
|
2427
|
+
type NumberFieldInputType = 'number';
|
|
2428
|
+
interface NumberFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, NumberFieldNumberConfig, AttributesFieldConfig, Partial<TransformNumberFunctionConfigRef>, MaterialFormFieldConfig {
|
|
2429
|
+
readonly inputType?: NumberFieldInputType;
|
|
2430
|
+
}
|
|
2431
|
+
declare function numberFieldTransformParser(config: Partial<FieldConfigParsersRef> & Partial<TransformNumberFunctionConfigRef>): FormlyValueParser[] | undefined;
|
|
2432
|
+
declare function numberField(config: NumberFieldConfig): FormlyFieldConfig;
|
|
2433
|
+
interface NumberSliderFieldConfig extends NumberFieldConfig {
|
|
2434
|
+
/**
|
|
2435
|
+
* Max value. Required for the slider.
|
|
2436
|
+
*/
|
|
2437
|
+
readonly max: number;
|
|
2438
|
+
/**
|
|
2439
|
+
* Whether or not to show the thumb label while sliding.
|
|
2440
|
+
*
|
|
2441
|
+
* Defaults to true.
|
|
2442
|
+
*
|
|
2443
|
+
* Corresponds to "discrete" in Material.
|
|
2444
|
+
*/
|
|
2445
|
+
readonly thumbLabel?: boolean;
|
|
2446
|
+
/**
|
|
2447
|
+
* Whether or not to invert the selection line.
|
|
2448
|
+
*/
|
|
2449
|
+
readonly invertSelectionColoring?: boolean;
|
|
2450
|
+
/**
|
|
2451
|
+
* Tick interval. If not provided defaults to the step value, if provided. If false, the ticks are disabled.
|
|
2452
|
+
*
|
|
2453
|
+
* The tick interval is the number of "steps" to show between ticks.
|
|
2454
|
+
*
|
|
2455
|
+
* For example, a tick interval of 5 show a tick every 5 steps. If steps are 10, it will show a tick at every number divisible by 50 (5 * 10).
|
|
2456
|
+
*/
|
|
2457
|
+
readonly tickInterval?: false | number;
|
|
2458
|
+
/**
|
|
2459
|
+
* Custom display with function for the thumbLabel.
|
|
2460
|
+
*/
|
|
2461
|
+
readonly displayWith?: (value: number) => string;
|
|
2462
|
+
}
|
|
2463
|
+
declare function numberSliderField(config: NumberSliderFieldConfig): FormlyFieldConfig;
|
|
2464
|
+
type DollarAmountFieldConfig = Omit<NumberFieldConfig, 'roundToStep' | 'precision'>;
|
|
2465
|
+
declare function dollarAmountField(config: DollarAmountFieldConfig): FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
2466
|
+
[additionalProperties: string]: any;
|
|
2467
|
+
}>;
|
|
2468
|
+
|
|
2469
|
+
declare class DbxFormFormlyNumberFieldModule {
|
|
2470
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyNumberFieldModule, never>;
|
|
2471
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyNumberFieldModule, never, [typeof i1.FormlyMaterialModule, typeof i2$1.FormlyMatSliderModule], [typeof i1.FormlyMaterialModule, typeof i2$1.FormlyMatSliderModule]>;
|
|
2472
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyNumberFieldModule>;
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
interface InternationalPhoneFormlyFieldProps extends FormlyFieldProps {
|
|
2476
|
+
readonly preferredCountries?: Maybe<string[]>;
|
|
2477
|
+
readonly onlyCountries?: Maybe<string[]>;
|
|
2478
|
+
/**
|
|
2479
|
+
* Whether or not to enable the search feature. True by default.
|
|
2480
|
+
*/
|
|
2481
|
+
readonly enableSearch?: boolean;
|
|
2482
|
+
/**
|
|
2483
|
+
* Whether or not to allow adding an extension. False by default.
|
|
2484
|
+
*/
|
|
2485
|
+
readonly allowExtension?: boolean;
|
|
2486
|
+
}
|
|
2487
|
+
declare const DEFAULT_PREFERRED_COUNTRIES: string[];
|
|
2488
|
+
declare class DbxPhoneFieldComponent extends FieldType$1<FieldTypeConfig<InternationalPhoneFormlyFieldProps>> implements OnInit, OnDestroy {
|
|
2489
|
+
readonly inputSync: SubscriptionObject<rxjs.Unsubscribable>;
|
|
2490
|
+
readonly outputSync: SubscriptionObject<rxjs.Unsubscribable>;
|
|
2491
|
+
readonly extensionErrorSync: SubscriptionObject<rxjs.Unsubscribable>;
|
|
2492
|
+
readonly phoneErrorSync: SubscriptionObject<rxjs.Unsubscribable>;
|
|
2493
|
+
readonly phoneCtrl: FormControl<string | null>;
|
|
2494
|
+
readonly extensionCtrl: FormControl<string | null>;
|
|
2495
|
+
readonly inputFormGroup: FormGroup<{
|
|
2496
|
+
phone: FormControl<string | null>;
|
|
2497
|
+
extension: FormControl<string | null>;
|
|
2498
|
+
}>;
|
|
2499
|
+
get enableSearch(): boolean;
|
|
2500
|
+
get preferredCountries(): string[];
|
|
2501
|
+
get onlyCountries(): string[];
|
|
2502
|
+
get allowExtension(): boolean;
|
|
2503
|
+
ngOnInit(): void;
|
|
2504
|
+
ngOnDestroy(): void;
|
|
2505
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPhoneFieldComponent, never>;
|
|
2506
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPhoneFieldComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
declare class DbxFormFormlyPhoneFieldModule {
|
|
2510
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyPhoneFieldModule, never>;
|
|
2511
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyPhoneFieldModule, never, [typeof DbxPhoneFieldComponent, typeof _ngx_formly_core.FormlyModule], [typeof DbxPhoneFieldComponent]>;
|
|
2512
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyPhoneFieldModule>;
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
interface InternationalPhoneFieldConfig extends LabeledFieldConfig, InternationalPhoneFormlyFieldProps {
|
|
2516
|
+
}
|
|
2517
|
+
declare function phoneField(config?: Partial<InternationalPhoneFieldConfig>): FormlyFieldConfig<InternationalPhoneFormlyFieldProps>;
|
|
2518
|
+
interface WrappedPhoneAndLabelFieldConfig {
|
|
2519
|
+
readonly phoneField?: Partial<InternationalPhoneFieldConfig>;
|
|
2520
|
+
readonly labelField?: TextFieldConfig;
|
|
2521
|
+
}
|
|
2522
|
+
/**
|
|
2523
|
+
* Puts a phone and
|
|
2524
|
+
* @param param0
|
|
2525
|
+
* @returns
|
|
2526
|
+
*/
|
|
2527
|
+
declare function wrappedPhoneAndLabelField({ phoneField: phone, labelField: label }?: WrappedPhoneAndLabelFieldConfig): FormlyFieldConfig;
|
|
2528
|
+
interface PhoneAndLabelFieldSectionConfig extends DbxFormSectionConfig, WrappedPhoneAndLabelFieldConfig {
|
|
2529
|
+
readonly key?: string;
|
|
2530
|
+
}
|
|
2531
|
+
declare function phoneAndLabelSectionField({ key, header, hint, phoneField, labelField }?: PhoneAndLabelFieldSectionConfig): FormlyFieldConfig;
|
|
2532
|
+
interface PhoneListFieldConfig extends Omit<RepeatArrayFieldConfig, 'repeatFieldGroup'> {
|
|
2533
|
+
phoneAndLabel?: WrappedPhoneAndLabelFieldConfig;
|
|
2534
|
+
repeatFieldGroup?: FormlyFieldConfig[];
|
|
2535
|
+
}
|
|
2536
|
+
declare function phoneListField(repeatConfig?: Partial<PhoneListFieldConfig>): FormlyFieldConfig;
|
|
2537
|
+
|
|
2538
|
+
declare const PHONE_LABEL_MAX_LENGTH = 100;
|
|
2539
|
+
declare const LABEL_STRING_MAX_LENGTH = 100;
|
|
2540
|
+
declare const SEARCH_STRING_MAX_LENGTH = 100;
|
|
2541
|
+
declare function nameField(config?: Partial<TextFieldConfig>): FormlyFieldConfig;
|
|
2542
|
+
interface EmailFieldConfig extends Partial<LabeledFieldConfig>, DescriptionFieldConfig {
|
|
2543
|
+
readonly rows?: number;
|
|
2544
|
+
}
|
|
2545
|
+
declare function emailField(config?: EmailFieldConfig): FormlyFieldConfig;
|
|
2546
|
+
type CityFieldConfig = Partial<TextFieldConfig>;
|
|
2547
|
+
declare function cityField(config?: CityFieldConfig): FormlyFieldConfig;
|
|
2548
|
+
interface StateFieldConfig extends Partial<TextFieldConfig> {
|
|
2549
|
+
readonly asCode?: boolean;
|
|
2550
|
+
}
|
|
2551
|
+
declare function stateField(config?: StateFieldConfig): FormlyFieldConfig;
|
|
2552
|
+
type CountryFieldConfig = Partial<TextFieldConfig>;
|
|
2553
|
+
declare function countryField(config?: CountryFieldConfig): FormlyFieldConfig;
|
|
2554
|
+
type ZipCodeFieldConfig = Partial<TextFieldConfig>;
|
|
2555
|
+
declare function zipCodeField(config?: ZipCodeFieldConfig): FormlyFieldConfig;
|
|
2556
|
+
declare const DEFAULT_LAT_LNG_TEXT_FIELD_PLACEHOLDER = "12.345,-67.8910";
|
|
2557
|
+
declare const DEFAULT_LAT_LNG_TEXT_FIELD_PATTERN_MESSAGE = "Invalid/unknown coordinates";
|
|
2558
|
+
declare function latLngTextField({ key }?: Partial<TextFieldConfig>): FormlyFieldConfig;
|
|
2559
|
+
|
|
2560
|
+
interface AddressFormlyFieldsConfig {
|
|
2561
|
+
readonly line1Field?: CityFieldConfig;
|
|
2562
|
+
readonly line2Field?: CityFieldConfig;
|
|
2563
|
+
readonly cityField?: CityFieldConfig;
|
|
2564
|
+
readonly stateField?: StateFieldConfig;
|
|
2565
|
+
readonly zipCodeField?: ZipCodeFieldConfig;
|
|
2566
|
+
readonly countryField?: CountryFieldConfig;
|
|
2567
|
+
/**
|
|
2568
|
+
* Whether or not to make required fields required.
|
|
2569
|
+
*
|
|
2570
|
+
* True by default.
|
|
2571
|
+
*/
|
|
2572
|
+
readonly required?: boolean;
|
|
2573
|
+
/**
|
|
2574
|
+
* Whether or not to include the second address line.
|
|
2575
|
+
*
|
|
2576
|
+
* True by default.
|
|
2577
|
+
*/
|
|
2578
|
+
readonly includeLine2?: boolean;
|
|
2579
|
+
/**
|
|
2580
|
+
* Whether or not to include the country.
|
|
2581
|
+
*
|
|
2582
|
+
* True by default.
|
|
2583
|
+
*/
|
|
2584
|
+
readonly includeCountry?: boolean;
|
|
2585
|
+
}
|
|
2586
|
+
interface AddressLineFieldConfig extends Partial<TextFieldConfig> {
|
|
2587
|
+
readonly line?: 0 | 1 | 2;
|
|
2588
|
+
}
|
|
2589
|
+
declare function addressLineField(config?: AddressLineFieldConfig): FormlyFieldConfig;
|
|
2590
|
+
declare function addressFormlyFields(config?: AddressFormlyFieldsConfig): FormlyFieldConfig[];
|
|
2591
|
+
interface AddressFieldConfig extends Readonly<FieldConfig>, DbxFormSectionConfig, AddressFormlyFieldsConfig {
|
|
2592
|
+
}
|
|
2593
|
+
declare function addressField(config?: Partial<AddressFieldConfig>): FormlyFieldConfig;
|
|
2594
|
+
interface AddressListFieldConfig extends Readonly<FieldConfig>, AddressFormlyFieldsConfig {
|
|
2595
|
+
readonly maxAddresses?: number;
|
|
2596
|
+
}
|
|
2597
|
+
declare function addressListField(config?: Partial<AddressListFieldConfig>): FormlyFieldConfig;
|
|
2598
|
+
|
|
2599
|
+
declare class DbxFormFormlyTextFieldModule {
|
|
2600
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyTextFieldModule, never>;
|
|
2601
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyTextFieldModule, never, [typeof DbxFormFormlyArrayFieldModule, typeof i1.FormlyMaterialModule, typeof i3$1.FormlyMatInputModule, typeof DbxFormFormlyWrapperModule], [typeof DbxFormFormlyArrayFieldModule, typeof i1.FormlyMaterialModule, typeof i3$1.FormlyMatInputModule, typeof DbxFormFormlyWrapperModule]>;
|
|
2602
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyTextFieldModule>;
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
type HiddenFieldConfig = Pick<LabeledFieldConfig, 'key' | 'required'>;
|
|
2606
|
+
declare function hiddenField({ key, required }: HiddenFieldConfig): FormlyFieldConfig;
|
|
2607
|
+
|
|
2608
|
+
type WrapperFormlyFieldConfig<P, C extends FormlyFieldConfig> = FormlyFieldConfig<P> & {
|
|
2609
|
+
wrappers: string[];
|
|
2610
|
+
props: P;
|
|
2611
|
+
fieldGroup: [C];
|
|
2612
|
+
};
|
|
2613
|
+
declare function addWrapperToFormlyFieldConfig<C extends FormlyFieldConfig, P extends object>(fieldConfig: C, wrapperKey: string, wrapperProps: P): WrapperFormlyFieldConfig<P, C>;
|
|
2614
|
+
declare function autoTouchWrapper<T extends object, C extends FormlyFieldConfig>(fieldConfig: C, autoTouchWrapper?: DbxFormExpandWrapperConfig<T>): WrapperFormlyFieldConfig<DbxFormExpandWrapperConfig<T>, C>;
|
|
2615
|
+
declare function expandWrapper<T extends object, C extends FormlyFieldConfig>(fieldConfig: C, expandWrapper?: DbxFormExpandWrapperConfig<T>): WrapperFormlyFieldConfig<DbxFormExpandWrapperConfig<T>, C>;
|
|
2616
|
+
declare function toggleWrapper<C extends FormlyFieldConfig>(fieldConfig: C, toggleWrapper?: DbxFormToggleWrapperConfig): WrapperFormlyFieldConfig<DbxFormToggleWrapperConfig<object>, C>;
|
|
2617
|
+
declare function sectionWrapper<C extends FormlyFieldConfig>(fieldConfig: C, sectionWrapper?: DbxFormSectionConfig): WrapperFormlyFieldConfig<_dereekb_dbx_web.DbxSectionHeaderConfig, C>;
|
|
2618
|
+
declare function subsectionWrapper<C extends FormlyFieldConfig>(fieldConfig: C, subsectionWrapper?: DbxFormSubsectionConfig): WrapperFormlyFieldConfig<_dereekb_dbx_web.DbxSectionHeaderConfig, C>;
|
|
2619
|
+
declare function infoWrapper<C extends FormlyFieldConfig>(fieldConfig: C, infoWrapper: DbxFormInfoConfig): WrapperFormlyFieldConfig<DbxFormInfoConfig, C>;
|
|
2620
|
+
declare function styleWrapper<C extends FormlyFieldConfig>(fieldConfig: C, styleWrapper: DbxFormStyleWrapperConfig): WrapperFormlyFieldConfig<DbxFormStyleWrapperConfig, C>;
|
|
2621
|
+
declare function workingWrapper<C extends FormlyFieldConfig>(fieldConfig: C, workingWrapper?: DbxFormWorkingWrapperConfig): WrapperFormlyFieldConfig<object, C>;
|
|
2622
|
+
interface DbxFlexLayoutWrapperGroupFieldConfig {
|
|
2623
|
+
field: FormlyFieldConfig;
|
|
2624
|
+
/**
|
|
2625
|
+
* Flex space sizing for the field. If undefined it will default to the provided default size.
|
|
2626
|
+
*/
|
|
2627
|
+
size?: DbxFlexSize;
|
|
2628
|
+
}
|
|
2629
|
+
interface DbxFlexLayoutWrapperGroupFieldConfigDefaults extends DbxFlexWrapperConfig, Omit<DbxFlexLayoutWrapperGroupFieldConfig, 'field'> {
|
|
2630
|
+
}
|
|
2631
|
+
declare function checkIsFieldFlexLayoutGroupFieldConfig(input: FormlyFieldConfig | DbxFlexLayoutWrapperGroupFieldConfig): input is DbxFlexLayoutWrapperGroupFieldConfig;
|
|
2632
|
+
declare function flexLayoutWrapper(fieldConfigs: (FormlyFieldConfig | DbxFlexLayoutWrapperGroupFieldConfig)[], { relative, breakpoint, breakToColumn, size: defaultSize }?: DbxFlexLayoutWrapperGroupFieldConfigDefaults): FormlyFieldConfig<DbxFlexWrapperConfig>;
|
|
2633
|
+
|
|
2634
|
+
declare class DbxFormFormlyFieldModule {
|
|
2635
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyFieldModule, never>;
|
|
2636
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyFieldModule, never, [typeof DbxFormFormlyChecklistItemFieldModule, typeof DbxFormFormlyComponentFieldModule, typeof DbxFormFormlyTextEditorFieldModule, typeof DbxFormFormlyWrapperModule], [typeof DbxFormFormlyChecklistItemFieldModule, typeof DbxFormFormlyComponentFieldModule, typeof DbxFormFormlyTextEditorFieldModule, typeof DbxFormFormlyWrapperModule]>;
|
|
2637
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyFieldModule>;
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
interface DbxFormSearchFormFieldsValue {
|
|
2641
|
+
readonly search: string;
|
|
2642
|
+
}
|
|
2643
|
+
interface DbxFormSearchFormFieldsConfig extends MaterialFormFieldConfig {
|
|
2644
|
+
readonly label?: string;
|
|
2645
|
+
readonly placeholder?: string;
|
|
2646
|
+
}
|
|
2647
|
+
declare function dbxFormSearchFormFields(config: Maybe<DbxFormSearchFormFieldsConfig>): FormlyFieldConfig[];
|
|
2648
|
+
|
|
2649
|
+
/**
|
|
2650
|
+
* Abstract component for wrapping a DbxFormlyContext.
|
|
2651
|
+
*
|
|
2652
|
+
* The implementing component should use provideFormlyContext() to provide the DbxFormlyContext specific to this directive. The context is injected using only self.
|
|
2653
|
+
*/
|
|
2654
|
+
declare abstract class AbstractFormlyFormDirective<T> {
|
|
2655
|
+
readonly context: DbxFormlyContext<T>;
|
|
2656
|
+
readonly disabled: i0.InputSignal<boolean>;
|
|
2657
|
+
protected readonly _disabledEffect: i0.EffectRef;
|
|
2658
|
+
getValue(): Observable<T>;
|
|
2659
|
+
setValue(value: Partial<T>): void;
|
|
2660
|
+
resetForm(): void;
|
|
2661
|
+
clearValue(): void;
|
|
2662
|
+
setDisabled(key?: DbxFormDisabledKey, disabled?: boolean): void;
|
|
2663
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormlyFormDirective<any>, never>;
|
|
2664
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFormlyFormDirective<any>, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2665
|
+
}
|
|
2666
|
+
/**
|
|
2667
|
+
* Abstract component for wrapping a form.
|
|
2668
|
+
*/
|
|
2669
|
+
declare abstract class AbstractSyncFormlyFormDirective<T> extends AbstractFormlyFormDirective<T> implements OnInit {
|
|
2670
|
+
abstract fields: FormlyFieldConfig[];
|
|
2671
|
+
ngOnInit(): void;
|
|
2672
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSyncFormlyFormDirective<any>, never>;
|
|
2673
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSyncFormlyFormDirective<any>, never, never, {}, {}, never, never, true, never>;
|
|
2674
|
+
}
|
|
2675
|
+
/**
|
|
2676
|
+
* Abstract component for wrapping an asyncrhronously-configured form.
|
|
2677
|
+
*/
|
|
2678
|
+
declare abstract class AbstractAsyncFormlyFormDirective<T> extends AbstractFormlyFormDirective<T> implements OnInit {
|
|
2679
|
+
/**
|
|
2680
|
+
* Used to provide fields to the context.
|
|
2681
|
+
*/
|
|
2682
|
+
abstract readonly fields$: Observable<Maybe<FormlyFieldConfig[]>>;
|
|
2683
|
+
protected readonly _fieldSub: _dereekb_rxjs.SubscriptionObject<rxjs.Unsubscribable>;
|
|
2684
|
+
ngOnInit(): void;
|
|
2685
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractAsyncFormlyFormDirective<any>, never>;
|
|
2686
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAsyncFormlyFormDirective<any>, never, never, {}, {}, never, never, true, never>;
|
|
2687
|
+
}
|
|
2688
|
+
declare abstract class AbstractConfigAsyncFormlyFormDirective<T, C> extends AbstractAsyncFormlyFormDirective<T> {
|
|
2689
|
+
readonly config: i0.InputSignal<MaybeObservableOrValue<C>>;
|
|
2690
|
+
readonly currentConfig$: Observable<Maybe<C>>;
|
|
2691
|
+
readonly config$: Observable<C>;
|
|
2692
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractConfigAsyncFormlyFormDirective<any, any>, never>;
|
|
2693
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractConfigAsyncFormlyFormDirective<any, any>, never, never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
declare class DbxFormSearchFormComponent extends AbstractConfigAsyncFormlyFormDirective<DbxFormSearchFormFieldsValue, DbxFormSearchFormFieldsConfig> {
|
|
2697
|
+
readonly search: i0.OutputEmitterRef<string>;
|
|
2698
|
+
readonly fields$: Observable<FormlyFieldConfig[]>;
|
|
2699
|
+
searchChanged(value: DbxFormSearchFormFieldsValue): void;
|
|
2700
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSearchFormComponent, never>;
|
|
2701
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSearchFormComponent, "dbx-form-search-form", never, {}, { "search": "search"; }, never, never, true, never>;
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
declare const FIELD_VALUE_IS_AVAILABLE_VALIDATION_KEY = "fieldValueIsAvailable";
|
|
2705
|
+
declare const FIELD_VALUE_IS_AVAILABLE_ERROR_VALIDATION_KEY = "fieldValueIsAvailableError";
|
|
2706
|
+
type FieldValueIsAvailableValidatorFunction<T> = (value: T) => Observable<boolean>;
|
|
2707
|
+
interface FieldValueIsAvailableValidatorConfig<T> {
|
|
2708
|
+
/**
|
|
2709
|
+
* How long to wait in between value changes.
|
|
2710
|
+
*/
|
|
2711
|
+
throttle?: number;
|
|
2712
|
+
/**
|
|
2713
|
+
* Returns an observable that checks whether or not the value is currently available.
|
|
2714
|
+
*
|
|
2715
|
+
* @param value
|
|
2716
|
+
*/
|
|
2717
|
+
readonly checkValueIsAvailable: FieldValueIsAvailableValidatorFunction<T>;
|
|
2718
|
+
/**
|
|
2719
|
+
* Custom message for this validator.
|
|
2720
|
+
*/
|
|
2721
|
+
message?: string;
|
|
2722
|
+
}
|
|
2723
|
+
/**
|
|
2724
|
+
* Validator for validating all values within an object.
|
|
2725
|
+
*
|
|
2726
|
+
* This is useful for validating a control group where two or more values are expected to be the same, such as a password and a password verification field.
|
|
2727
|
+
*
|
|
2728
|
+
* @param config
|
|
2729
|
+
* @returns
|
|
2730
|
+
*/
|
|
2731
|
+
declare function fieldValueIsAvailableValidator<T>(config: FieldValueIsAvailableValidatorConfig<T>): AsyncValidatorFn;
|
|
2732
|
+
|
|
2733
|
+
interface TextAvailableFieldConfig extends TextFieldConfig, Omit<FieldValueIsAvailableValidatorConfig<string>, 'message'> {
|
|
2734
|
+
readonly isNotAvailableErrorMessage?: string;
|
|
2735
|
+
}
|
|
2736
|
+
declare function textIsAvailableField(config: TextAvailableFieldConfig): FormlyFieldConfig;
|
|
2737
|
+
|
|
2738
|
+
declare class DbxFormTextAvailableFieldModule {
|
|
2739
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormTextAvailableFieldModule, never>;
|
|
2740
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormTextAvailableFieldModule, never, [typeof DbxFormFormlyTextFieldModule, typeof DbxFormFormlyWrapperModule], [typeof DbxFormFormlyTextFieldModule, typeof DbxFormFormlyWrapperModule]>;
|
|
2741
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormTextAvailableFieldModule>;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
/**
|
|
2745
|
+
* Convenience interface for the password parameters configuration for a TextPasswordField.
|
|
2746
|
+
*/
|
|
2747
|
+
type TextPasswordFieldPasswordParameters = Partial<Pick<TextFieldConfig, 'maxLength' | 'minLength' | 'pattern'>>;
|
|
2748
|
+
/**
|
|
2749
|
+
* textPasswordField() configuration.
|
|
2750
|
+
*/
|
|
2751
|
+
interface TextPasswordFieldConfig extends Omit<TextFieldConfig, 'inputType' | 'key'>, Partial<Pick<TextFieldConfig, 'key' | 'materialFormField'>> {
|
|
2752
|
+
}
|
|
2753
|
+
/**
|
|
2754
|
+
* Configured simple text password field.
|
|
2755
|
+
*
|
|
2756
|
+
* @param config
|
|
2757
|
+
* @returns
|
|
2758
|
+
*/
|
|
2759
|
+
declare function textPasswordField(config?: TextPasswordFieldConfig): FormlyFieldConfig;
|
|
2760
|
+
/**
|
|
2761
|
+
* Configured verify field for a password.
|
|
2762
|
+
*
|
|
2763
|
+
* @param config
|
|
2764
|
+
* @returns
|
|
2765
|
+
*/
|
|
2766
|
+
declare function textVerifyPasswordField(config?: TextPasswordFieldConfig): FormlyFieldConfig;
|
|
2767
|
+
interface TextPasswordWithVerifyFieldConfig {
|
|
2768
|
+
readonly password?: TextPasswordFieldConfig;
|
|
2769
|
+
readonly verifyPassword?: TextPasswordFieldConfig;
|
|
2770
|
+
}
|
|
2771
|
+
declare function textPasswordWithVerifyFieldGroup(config: TextPasswordWithVerifyFieldConfig): FormlyFieldConfig;
|
|
2772
|
+
interface UsernameLoginFieldUsernameConfig {
|
|
2773
|
+
readonly email?: Omit<EmailFieldConfig, 'key'>;
|
|
2774
|
+
readonly username?: Omit<TextFieldConfig, 'key'>;
|
|
2775
|
+
}
|
|
2776
|
+
type UsernameLoginFieldUsernameConfigInput = 'email' | 'username' | UsernameLoginFieldUsernameConfig;
|
|
2777
|
+
/**
|
|
2778
|
+
* usernamePasswordLoginFields() configuration.
|
|
2779
|
+
*/
|
|
2780
|
+
interface UsernameLoginFieldsConfig {
|
|
2781
|
+
readonly username: UsernameLoginFieldUsernameConfigInput;
|
|
2782
|
+
readonly password?: TextPasswordFieldConfig;
|
|
2783
|
+
readonly verifyPassword?: Maybe<boolean | TextPasswordFieldConfig>;
|
|
2784
|
+
}
|
|
2785
|
+
/**
|
|
2786
|
+
* Value type exported by usernameLoginFields()
|
|
2787
|
+
*/
|
|
2788
|
+
interface DefaultUsernameLoginFieldsValue extends DefaultUsernameLoginFieldValue {
|
|
2789
|
+
readonly password: string;
|
|
2790
|
+
readonly verifyPassword?: string;
|
|
2791
|
+
}
|
|
2792
|
+
/**
|
|
2793
|
+
* Template for login field that takes in a username and password.
|
|
2794
|
+
*
|
|
2795
|
+
* @param param0
|
|
2796
|
+
* @returns
|
|
2797
|
+
*/
|
|
2798
|
+
declare function usernamePasswordLoginFields({ username, password, verifyPassword }: UsernameLoginFieldsConfig): FormlyFieldConfig[];
|
|
2799
|
+
/**
|
|
2800
|
+
* Value type exported by usernameLoginField()
|
|
2801
|
+
*/
|
|
2802
|
+
interface DefaultUsernameLoginFieldValue {
|
|
2803
|
+
readonly username: string;
|
|
2804
|
+
}
|
|
2805
|
+
declare function usernameLoginField(username: UsernameLoginFieldUsernameConfigInput): FormlyFieldConfig;
|
|
2806
|
+
|
|
2807
|
+
declare class DbxFormLoginFieldModule {
|
|
2808
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormLoginFieldModule, never>;
|
|
2809
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormLoginFieldModule, never, [typeof DbxFormFormlyTextFieldModule], [typeof DbxFormFormlyTextFieldModule]>;
|
|
2810
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormLoginFieldModule>;
|
|
2811
|
+
}
|
|
2812
|
+
|
|
2813
|
+
type TestStringSearchFunction = (text: string) => string[];
|
|
2814
|
+
declare function timezoneStringSearchFunction(): SearchableValueFieldStringSearchFn<string, TimezoneInfo>;
|
|
2815
|
+
declare const DISPLAY_FOR_TIMEZONE_STRING_VALUE: SearchableValueFieldDisplayFn<string, TimezoneInfo>;
|
|
2816
|
+
/**
|
|
2817
|
+
* textPasswordField() configuration.
|
|
2818
|
+
*/
|
|
2819
|
+
interface TimezoneStringFieldConfig extends Omit<SearchableTextFieldConfig<TimezoneString, TimezoneInfo>, 'inputType' | 'searchOnEmptyText' | 'search' | 'displayForValue' | 'key'>, Partial<Pick<SearchableTextFieldConfig<TimezoneString, TimezoneInfo>, 'key' | 'materialFormField'>> {
|
|
2820
|
+
}
|
|
2821
|
+
/**
|
|
2822
|
+
* Template for a searchable text field for a timezone.
|
|
2823
|
+
*
|
|
2824
|
+
* @param param0
|
|
2825
|
+
* @returns
|
|
2826
|
+
*/
|
|
2827
|
+
declare function timezoneStringField(config?: TimezoneStringFieldConfig): FormlyFieldConfig;
|
|
2828
|
+
|
|
2829
|
+
declare class DbxFormTimezoneStringFieldModule {
|
|
2830
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormTimezoneStringFieldModule, never>;
|
|
2831
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormTimezoneStringFieldModule, never, [typeof DbxFormFormlySearchableFieldModule], [typeof DbxFormFormlySearchableFieldModule]>;
|
|
2832
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormTimezoneStringFieldModule>;
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
declare const IS_NOT_WEBSITE_URL_VALIDATION_KEY = "isNotWebsiteUrl";
|
|
2836
|
+
declare const IS_NOT_WEBSITE_URL_WITH_PREFIX_VALIDATION_KEY = "isNotWebsiteUrlWithPrefix";
|
|
2837
|
+
declare const IS_NOT_WEBSITE_URL_WITH_EXPECTED_DOMAIN_VALIDATION_KEY = "isNotWebsiteUrlWithExpectedDomain";
|
|
2838
|
+
interface IsNotWebsiteUrlErrorData {
|
|
2839
|
+
readonly value: string;
|
|
2840
|
+
readonly isPrefixRequired: boolean;
|
|
2841
|
+
readonly message: string;
|
|
2842
|
+
}
|
|
2843
|
+
interface IsWebsiteUrlValidatorConfig {
|
|
2844
|
+
/**
|
|
2845
|
+
* Whether or not to require an http/https prefix.
|
|
2846
|
+
*
|
|
2847
|
+
* Defaults to true.
|
|
2848
|
+
*/
|
|
2849
|
+
readonly requirePrefix?: Maybe<boolean>;
|
|
2850
|
+
/**
|
|
2851
|
+
* Valid domains to accept.
|
|
2852
|
+
*
|
|
2853
|
+
* Defaults to undefined.
|
|
2854
|
+
*/
|
|
2855
|
+
readonly validDomains?: Maybe<ArrayOrValue<WebsiteDomain>>;
|
|
2856
|
+
}
|
|
2857
|
+
/**
|
|
2858
|
+
* Angular Form ValidationFn for checking isDivisibleBy the input divisor.
|
|
2859
|
+
*
|
|
2860
|
+
* @param divisor
|
|
2861
|
+
* @returns
|
|
2862
|
+
*/
|
|
2863
|
+
declare function isWebsiteUrlValidator(config?: IsWebsiteUrlValidatorConfig): ValidatorFn;
|
|
2864
|
+
|
|
2865
|
+
/**
|
|
2866
|
+
* websiteUrlField() configuration.
|
|
2867
|
+
*/
|
|
2868
|
+
interface WebsiteUrlFieldConfig extends Omit<TextFieldConfig, 'inputType' | 'key'>, Partial<Pick<TextFieldConfig, 'key' | 'materialFormField'>>, IsWebsiteUrlValidatorConfig {
|
|
2869
|
+
}
|
|
2870
|
+
/**
|
|
2871
|
+
* Configured simple text password field.
|
|
2872
|
+
*
|
|
2873
|
+
* @param config
|
|
2874
|
+
* @returns
|
|
2875
|
+
*/
|
|
2876
|
+
declare function websiteUrlField(config?: WebsiteUrlFieldConfig): FormlyFieldConfig;
|
|
2877
|
+
|
|
2878
|
+
/**
|
|
2879
|
+
* Provides an DbxFormlyContext and has an input for fields.
|
|
2880
|
+
*/
|
|
2881
|
+
declare class DbxFormlyFieldsContextDirective<T = unknown> extends AbstractAsyncFormlyFormDirective<T> {
|
|
2882
|
+
readonly fields: i0.InputSignal<Maybe<FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
2883
|
+
[additionalProperties: string]: any;
|
|
2884
|
+
}>[]>>;
|
|
2885
|
+
readonly fields$: rxjs.Observable<Maybe<FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
2886
|
+
[additionalProperties: string]: any;
|
|
2887
|
+
}>[]>>;
|
|
2888
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormlyFieldsContextDirective<any>, never>;
|
|
2889
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormlyFieldsContextDirective<any>, "[dbxFormlyFields]", never, { "fields": { "alias": "dbxFormlyFields"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
interface DbxFormlyFormState {
|
|
2893
|
+
changesSinceLastResetCount: number;
|
|
2894
|
+
isFormValid: boolean;
|
|
2895
|
+
isFormDisabled: boolean;
|
|
2896
|
+
}
|
|
2897
|
+
/**
|
|
2898
|
+
* Used for rending a form from a DbxFormlyContext.
|
|
2899
|
+
*/
|
|
2900
|
+
declare class DbxFormlyComponent<T> implements DbxForm, DbxFormlyContextDelegate<T>, OnInit {
|
|
2901
|
+
private readonly _dbxFormlyContext;
|
|
2902
|
+
readonly formlyForm: i0.Signal<FormlyForm | undefined>;
|
|
2903
|
+
private readonly _fields;
|
|
2904
|
+
private readonly _events;
|
|
2905
|
+
private readonly _disabled;
|
|
2906
|
+
private readonly _reset;
|
|
2907
|
+
private readonly _forceUpdate;
|
|
2908
|
+
private readonly _disabledSub;
|
|
2909
|
+
private readonly _enforceDisabledSub;
|
|
2910
|
+
readonly form: FormGroup<{}>;
|
|
2911
|
+
readonly modelSignal: i0.WritableSignal<T>;
|
|
2912
|
+
readonly options: FormlyFormOptions;
|
|
2913
|
+
readonly fields$: Observable<FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
2914
|
+
[additionalProperties: string]: any;
|
|
2915
|
+
}>[]>;
|
|
2916
|
+
readonly stream$: Observable<DbxFormEvent>;
|
|
2917
|
+
private readonly _fieldsSignal;
|
|
2918
|
+
readonly fieldsSignal: i0.Signal<FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
2919
|
+
[additionalProperties: string]: any;
|
|
2920
|
+
}>[]>;
|
|
2921
|
+
constructor();
|
|
2922
|
+
ngOnInit(): void;
|
|
2923
|
+
init(initialize: DbxFormlyInitialize<T>): void;
|
|
2924
|
+
getValue(): Observable<T>;
|
|
2925
|
+
setValue(value: T): void;
|
|
2926
|
+
resetForm(): void;
|
|
2927
|
+
get isDisabled(): boolean;
|
|
2928
|
+
get disabled(): BooleanStringKeyArray;
|
|
2929
|
+
getDisabled(): Observable<BooleanStringKeyArray>;
|
|
2930
|
+
setDisabled(key?: DbxFormDisabledKey, disabled?: boolean): void;
|
|
2931
|
+
forceFormUpdate(): void;
|
|
2932
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormlyComponent<any>, never>;
|
|
2933
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormlyComponent<any>, "dbx-formly", ["formly"], {}, {}, never, never, true, never>;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
/**
|
|
2937
|
+
* Default template for a view that extends AbstractFormlyFormDirective.
|
|
2938
|
+
*/
|
|
2939
|
+
declare const DBX_FORMLY_FORM_COMPONENT_TEMPLATE = "<dbx-formly></dbx-formly>";
|
|
2940
|
+
/**
|
|
2941
|
+
* Default providers for a view that extends AbstractFormlyFormDirective.
|
|
2942
|
+
*/
|
|
2943
|
+
declare const dbxFormlyFormComponentProviders: typeof provideFormlyContext;
|
|
2944
|
+
/**
|
|
2945
|
+
* Default imports module for a view that extends AbstractFormlyFormDirective.
|
|
2946
|
+
*/
|
|
2947
|
+
declare class DbxFormlyFormComponentImportsModule {
|
|
2948
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormlyFormComponentImportsModule, never>;
|
|
2949
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormlyFormComponentImportsModule, never, [typeof DbxFormlyComponent], [typeof DbxFormlyComponent]>;
|
|
2950
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormlyFormComponentImportsModule>;
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
declare function provideDbxFormFormlyFieldDeclarations(): i0.EnvironmentProviders;
|
|
2954
|
+
|
|
2955
|
+
/**
|
|
2956
|
+
* Provides vertical spacing after a form.
|
|
2957
|
+
*/
|
|
2958
|
+
declare class DbxFormSpacerDirective {
|
|
2959
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSpacerDirective, never>;
|
|
2960
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormSpacerDirective, "dbx-form-spacer,[dbxFormSpacer],.dbx-form-spacer", never, {}, {}, never, never, true, never>;
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2963
|
+
declare function isTruthy(): ValidatorFn;
|
|
2964
|
+
|
|
2965
|
+
declare function isDomain(): ValidatorFn;
|
|
2966
|
+
|
|
2967
|
+
declare const FIELD_VALUES_ARE_EQUAL_VALIDATION_KEY = "fieldValuesAreEqual";
|
|
2968
|
+
interface FieldValuesAreEqualValidatorConfig<T extends object = object> {
|
|
2969
|
+
/**
|
|
2970
|
+
* Keys of the value to match on.
|
|
2971
|
+
*
|
|
2972
|
+
* If none are defined, then all fields from the control are matched.
|
|
2973
|
+
*/
|
|
2974
|
+
keysFilter?: (keyof T)[];
|
|
2975
|
+
/**
|
|
2976
|
+
* Full filter to use, if defined.
|
|
2977
|
+
*/
|
|
2978
|
+
valuesFilter?: KeyValueTupleFilter<T>;
|
|
2979
|
+
/**
|
|
2980
|
+
* Optional equivalence comparator.
|
|
2981
|
+
*/
|
|
2982
|
+
isEqual?: EqualityComparatorFunction<T>;
|
|
2983
|
+
/**
|
|
2984
|
+
* Custom message for this validator.
|
|
2985
|
+
*/
|
|
2986
|
+
message?: string;
|
|
2987
|
+
}
|
|
2988
|
+
/**
|
|
2989
|
+
* Validator for validating all values within an object.
|
|
2990
|
+
*
|
|
2991
|
+
* This is useful for validating a control group where two or more values are expected to be the same, such as a password and a password verification field.
|
|
2992
|
+
*
|
|
2993
|
+
* @param config
|
|
2994
|
+
* @returns
|
|
2995
|
+
*/
|
|
2996
|
+
declare function fieldValuesAreEqualValidator<T extends object = object>(config?: FieldValuesAreEqualValidatorConfig<T>): ValidatorFn;
|
|
2997
|
+
|
|
2998
|
+
/**
|
|
2999
|
+
* Merges the use of the min and max validator.
|
|
3000
|
+
*
|
|
3001
|
+
* @param min
|
|
3002
|
+
* @param max
|
|
3003
|
+
* @returns
|
|
3004
|
+
*/
|
|
3005
|
+
declare function isInRange(min?: number, max?: number): ValidatorFn;
|
|
3006
|
+
declare const IS_DIVISIBLE_BY_VALIDATION_KEY = "isDivisibleBy";
|
|
3007
|
+
interface IsDivisibleByError {
|
|
3008
|
+
value: number;
|
|
3009
|
+
nearest: number;
|
|
3010
|
+
divisor: number;
|
|
3011
|
+
message: string;
|
|
3012
|
+
}
|
|
3013
|
+
/**
|
|
3014
|
+
* Angular Form ValidationFn for checking isDivisibleBy the input divisor.
|
|
3015
|
+
*
|
|
3016
|
+
* @param divisor
|
|
3017
|
+
* @returns
|
|
3018
|
+
*/
|
|
3019
|
+
declare function isDivisibleBy(divisor: number): ValidatorFn;
|
|
3020
|
+
|
|
3021
|
+
/**
|
|
3022
|
+
* Angular Form ValidationFn for checking isE164PhoneNumber the input divisor.
|
|
3023
|
+
*
|
|
3024
|
+
* @param divisor
|
|
3025
|
+
* @returns
|
|
3026
|
+
*/
|
|
3027
|
+
declare function isE164PhoneNumber(allowExtension: boolean): ValidatorFn;
|
|
3028
|
+
/**
|
|
3029
|
+
* Angular Form ValidationFn for checking the input is a valid phone extension. Empty values return true.
|
|
3030
|
+
*
|
|
3031
|
+
* @param divisor
|
|
3032
|
+
* @returns
|
|
3033
|
+
*/
|
|
3034
|
+
declare function isPhoneExtension(): ValidatorFn;
|
|
3035
|
+
declare function isE164PhoneNumberWithValidExtension(): ValidatorFn;
|
|
3036
|
+
|
|
3037
|
+
declare class DbxFormExtensionModule {
|
|
3038
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormExtensionModule, never>;
|
|
3039
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormExtensionModule, never, never, [typeof DbxFormModule, typeof DbxFormFormlyFieldModule]>;
|
|
3040
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormExtensionModule>;
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
interface ProvideDbxFormConfigurationConfig {
|
|
3044
|
+
readonly provideDateAdapter?: boolean;
|
|
3045
|
+
readonly defaultDateTimePresets?: Maybe<DateTimePresetConfiguration[]>;
|
|
3046
|
+
}
|
|
3047
|
+
declare function provideDbxFormConfiguration(config?: ProvideDbxFormConfigurationConfig): EnvironmentProviders;
|
|
3048
|
+
|
|
3049
|
+
export { APP_ACTION_FORM_DISABLED_KEY, AbstractAsyncFormlyFormDirective, AbstractConfigAsyncFormlyFormDirective, AbstractDbxPickableItemFieldDirective, AbstractDbxSearchableFieldDisplayDirective, AbstractDbxSearchableValueFieldDirective, AbstractFormExpandSectionWrapperDirective, AbstractFormlyFormDirective, AbstractSyncFormlyFormDirective, AutoTouchFieldWrapperComponent, ChecklistItemFieldDataSetBuilder, DBX_DATE_TIME_FIELD_DATE_NOT_IN_SCHEDULE_ERROR, DBX_DATE_TIME_FIELD_MENU_PRESETS_TOKEN, DBX_DATE_TIME_FIELD_TIME_NOT_IN_RANGE_ERROR, DBX_FORMLY_FORM_COMPONENT_TEMPLATE, DBX_SEARCHABLE_FIELD_COMPONENT_DATA_TOKEN, DEFAULT_DATE_TIME_FIELD_MENU_PRESETS_PRESETS, DEFAULT_FORM_DISABLED_KEY, DEFAULT_HAS_VALUE_FN, DEFAULT_LAT_LNG_TEXT_FIELD_PATTERN_MESSAGE, DEFAULT_LAT_LNG_TEXT_FIELD_PLACEHOLDER, DEFAULT_PREFERRED_COUNTRIES, DISPLAY_FOR_TIMEZONE_STRING_VALUE, DbxActionFormDirective, DbxActionFormSafetyDirective, DbxChecklistItemContentComponent, DbxChecklistItemFieldComponent, DbxDateTimeFieldComponent, DbxDateTimeFieldMenuPresetsService, DbxDateTimeFieldTimeMode, DbxDateTimeValueMode, DbxDefaultChecklistItemFieldDisplayComponent, DbxDefaultSearchableFieldDisplayComponent, DbxFixedDateRangeFieldComponent, DbxFixedDateRangeFieldSelectionStrategy, DbxForm, DbxFormActionDialogComponent, DbxFormComponentFieldComponent, DbxFormExpandWrapperComponent, DbxFormExtensionModule, DbxFormFlexWrapperComponent, DbxFormFormlyArrayFieldModule, DbxFormFormlyBooleanFieldModule, DbxFormFormlyChecklistItemFieldModule, DbxFormFormlyComponentFieldModule, DbxFormFormlyDateFieldModule, DbxFormFormlyDbxListFieldModule, DbxFormFormlyFieldModule, DbxFormFormlyNumberFieldModule, DbxFormFormlyPhoneFieldModule, DbxFormFormlyPickableFieldModule, DbxFormFormlySearchableFieldModule, DbxFormFormlySourceSelectModule, DbxFormFormlyTextEditorFieldModule, DbxFormFormlyTextFieldModule, DbxFormFormlyWrapperModule, DbxFormInfoWrapperComponent, DbxFormLoadingSourceDirective, DbxFormLoginFieldModule, DbxFormModule, DbxFormRepeatArrayTypeComponent, DbxFormSearchFormComponent, DbxFormSectionWrapperComponent, DbxFormSourceDirective, DbxFormSourceSelectFieldComponent, DbxFormSpacerDirective, DbxFormState, DbxFormStyleWrapperComponent, DbxFormSubsectionWrapperComponent, DbxFormTextAvailableFieldModule, DbxFormTimezoneStringFieldModule, DbxFormToggleWrapperComponent, DbxFormValueChangeDirective, DbxFormWorkingWrapperComponent, DbxFormlyComponent, DbxFormlyContext, DbxFormlyFieldsContextDirective, DbxFormlyFormComponentImportsModule, DbxItemListFieldComponent, DbxMutableForm, DbxPhoneFieldComponent, DbxPickableChipListFieldComponent, DbxPickableListFieldComponent, DbxPickableListFieldItemListComponent, DbxPickableListFieldItemListViewComponent, DbxPickableListFieldItemListViewItemComponent, DbxSearchableChipFieldComponent, DbxSearchableFieldAutocompleteItemComponent, DbxSearchableTextFieldComponent, DbxTextEditorFieldComponent, FIELD_VALUES_ARE_EQUAL_VALIDATION_KEY, FIELD_VALUE_IS_AVAILABLE_ERROR_VALIDATION_KEY, FIELD_VALUE_IS_AVAILABLE_VALIDATION_KEY, INVALID_PHONE_NUMBER_EXTENSION_MESSAGE, INVALID_PHONE_NUMBER_MESSAGE, IS_DIVISIBLE_BY_VALIDATION_KEY, IS_NOT_WEBSITE_URL_VALIDATION_KEY, IS_NOT_WEBSITE_URL_WITH_EXPECTED_DOMAIN_VALIDATION_KEY, IS_NOT_WEBSITE_URL_WITH_PREFIX_VALIDATION_KEY, LABEL_STRING_MAX_LENGTH, MAX_LENGTH_VALIDATION_MESSAGE, MAX_VALIDATION_MESSAGE, MIN_LENGTH_VALIDATION_MESSAGE, MIN_VALIDATION_MESSAGE, PHONE_LABEL_MAX_LENGTH, REQUIRED_VALIDATION_MESSAGE, SEARCH_STRING_MAX_LENGTH, TAKE_NEXT_UPCOMING_TIME_CONFIG_OBS, addValueSelectionOptionFunction, addWrapperToFormlyFieldConfig, addressField, addressFormlyFields, addressLineField, addressListField, autoTouchWrapper, checkIsFieldFlexLayoutGroupFieldConfig, checkboxField, checklistItemField, chipTextField, cityField, componentField, countryField, dateRangeField, dateTimeField, dateTimePreset, dateTimeRangeField, dbxDateRangeIsSameDateRangeFieldValue, dbxDateTimeInputValueParseFactory, dbxDateTimeIsSameDateTimeFieldValue, dbxDateTimeOutputValueFactory, dbxFormSearchFormFields, dbxFormSourceObservable, dbxFormSourceObservableFromStream, dbxFormlyFormComponentProviders, dbxListField, defaultValidationMessages, disableFormlyFieldAutofillAttributes, dollarAmountField, emailField, expandWrapper, fieldValueIsAvailableValidator, fieldValuesAreEqualValidator, filterPartialPotentialFieldConfigValuesFromObject, filterPickableItemFieldValuesByLabel, filterPickableItemFieldValuesByLabelFilterFunction, fixedDateRangeField, flexLayoutWrapper, formlyField, hiddenField, infoWrapper, isDbxDateTimeFieldTimeDateConfig, isDivisibleBy, isDomain, isE164PhoneNumber, isE164PhoneNumberWithValidExtension, isInRange, isPhoneExtension, isTruthy, isWebsiteUrlValidator, latLngTextField, makeMetaFilterSearchableFieldValueDisplayFn, maxLengthValidationMessage, maxValidationMessage, mergePropsValueObjects, minLengthValidationMessage, minValidationMessage, nameField, numberField, numberFieldTransformParser, numberSliderField, partialPotentialFieldConfigKeys, partialPotentialFieldConfigKeysFilter, phoneAndLabelSectionField, phoneField, phoneListField, pickableItemChipField, pickableItemListField, pickableValueFieldValuesConfigForStaticLabeledValues, propsAndConfigForFieldConfig, propsValueForFieldConfig, provideDbxForm, provideDbxFormConfiguration, provideDbxFormFormlyFieldDeclarations, provideDbxMutableForm, provideFormlyContext, repeatArrayField, searchableChipField, searchableStringChipField, searchableTextField, sectionWrapper, sortPickableItemsByLabel, sortPickableItemsByLabelStringFunction, sourceSelectField, stateField, streamValueFromControl, styleWrapper, subsectionWrapper, syncConfigValueObs, textAreaField, textEditorField, textField, textFieldTransformParser, textIsAvailableField, textPasswordField, textPasswordWithVerifyFieldGroup, textVerifyPasswordField, timeOnlyField, timezoneStringField, timezoneStringSearchFunction, toggleDisableFormControl, toggleField, toggleWrapper, usernameLoginField, usernamePasswordLoginFields, validatorsForFieldConfig, valueSelectionField, websiteUrlField, workingWrapper, wrappedPhoneAndLabelField, zipCodeField };
|
|
3050
|
+
export type { AbstractFormExpandSectionConfig, AddressFieldConfig, AddressFormlyFieldsConfig, AddressLineFieldConfig, AddressListFieldConfig, AttributesFieldConfig, CheckboxFieldConfig, ChecklistItemDisplayContent, ChecklistItemFieldBuilderInput, ChecklistItemFieldConfig, ChecklistItemFieldDataSetBuilderInput, ChecklistItemFieldDataSetFieldKey, ChecklistItemFieldDataSetFieldValueForKey, ChecklistItemFieldDataSetItem, ChecklistItemFieldDisplayComponent, ChecklistType, ChipTextFieldConfig, CityFieldConfig, ComponentFieldConfig, ConfiguredSearchableValueFieldDisplayValue, CountryFieldConfig, DateDateRangeFieldConfig, DateDateRangeFieldDateConfig, DateDateTimeRangeFieldConfig, DateTimeFieldConfig, DateTimePreset, DateTimePresetConfiguration, DateTimePresetValue, DateTimeRangeFieldTimeConfig, DbxActionFormMapValueFunction, DbxChecklistItemFieldProps, DbxDateTimeFieldProps, DbxDateTimeFieldSyncField, DbxDateTimeFieldSyncParsedField, DbxDateTimeFieldSyncType, DbxDateTimeFieldTimeDateConfig, DbxDateTimePickerConfiguration, DbxFixedDateRangeDateRangeInput, DbxFixedDateRangeFieldProps, DbxFixedDateRangePickerConfiguration, DbxFixedDateRangePicking, DbxFixedDateRangeSelectionMode, DbxFlexLayoutWrapperGroupFieldConfig, DbxFlexLayoutWrapperGroupFieldConfigDefaults, DbxFlexWrapperConfig, DbxFormActionDialogComponentButtonConfig, DbxFormActionDialogComponentConfig, DbxFormComponentFieldConfig, DbxFormComponentFormlyFieldConfig, DbxFormDisabledKey, DbxFormEvent, DbxFormExpandWrapperButtonType, DbxFormExpandWrapperConfig, DbxFormInfoConfig, DbxFormRepeatArrayAddTemplateFunction, DbxFormRepeatArrayConfig, DbxFormRepeatArrayFieldConfigPair, DbxFormRepeatArrayPair, DbxFormSearchFormFieldsConfig, DbxFormSearchFormFieldsValue, DbxFormSectionConfig, DbxFormSourceDirectiveMode, DbxFormStateRef, DbxFormStyleObject, DbxFormStyleWrapperConfig, DbxFormSubsectionConfig, DbxFormToggleWrapperConfig, DbxFormWorkingWrapperConfig, DbxFormlyContextDelegate, DbxFormlyFormState, DbxFormlyInitialize, DbxItemListFieldProps, DbxListFieldConfig, DefaultUsernameLoginFieldValue, DefaultUsernameLoginFieldsValue, DefaultValueFieldConfig, DescriptionFieldConfig, DisableAutocompleteForField, DollarAmountFieldConfig, EmailFieldConfig, FieldConfig, FieldConfigParsersRef, FieldConfigWithParsers, FieldValueIsAvailableValidatorConfig, FieldValueIsAvailableValidatorFunction, FieldValuesAreEqualValidatorConfig, FixedDateRangeFieldConfig, FixedDateRangeScan, FixedDateRangeScanType, FormControlPath, FormlyMessageProperties, FormlyValueParser, HiddenFieldConfig, InternationalPhoneFieldConfig, InternationalPhoneFormlyFieldProps, IsDivisibleByError, IsNotWebsiteUrlErrorData, IsWebsiteUrlValidatorConfig, LabeledFieldConfig, MaterialFormFieldConfig, NumberFieldConfig, NumberFieldInputType, NumberFieldNumberConfig, NumberSliderFieldConfig, PartialPotentialFieldConfig, PhoneAndLabelFieldSectionConfig, PhoneListFieldConfig, PickableItemFieldConfig, PickableItemFieldItem, PickableItemFieldItemSortFn, PickableValueFieldDisplayFunction, PickableValueFieldDisplayValue, PickableValueFieldDisplayValueWithHash, PickableValueFieldFilterFunction, PickableValueFieldHashFunction, PickableValueFieldLoadValuesFunction, PickableValueFieldValue, PickableValueFieldValuesConfigForStaticLabeledValues, PickableValueFieldValuesConfigForStaticLabeledValuesConfig, PickableValueFieldsFieldProps, ProvideDbxFormConfigurationConfig, RepeatArrayFieldConfig, SearchableChipFieldConfig, SearchableChipValueFieldsFieldProps, SearchableTextFieldConfig, SearchableTextValueFieldsFieldProps, SearchableValueFieldAnchorFn, SearchableValueFieldDisplayFn, SearchableValueFieldDisplayValue, SearchableValueFieldHashFn, SearchableValueFieldStringSearchFn, SearchableValueFieldValue, SearchableValueFieldsFieldProps, SelectionDisplayValue, SelectionValue, SelectionValueHashFunction, SourceSelectDisplayFunction, SourceSelectDisplayValue, SourceSelectDisplayValueGroup, SourceSelectFieldConfig, SourceSelectFieldProps, SourceSelectLoadSource, SourceSelectLoadSourceLoadingState, SourceSelectLoadSourcesFunction, SourceSelectMetaValueReader, SourceSelectOpenFunction, SourceSelectOpenFunctionParams, SourceSelectOpenSourceResult, SourceSelectOptions, SourceSelectValue, SourceSelectValueGroup, SourceSelectValueMetaLoader, StateFieldConfig, StringSearchableChipFieldConfig, StringValueFieldsFieldProps, TestStringSearchFunction, TextAreaFieldConfig, TextAvailableFieldConfig, TextEditorComponentFieldProps, TextEditorFieldConfig, TextFieldConfig, TextFieldInputType, TextFieldLengthConfig, TextFieldPatternConfig, TextPasswordFieldConfig, TextPasswordFieldPasswordParameters, TextPasswordWithVerifyFieldConfig, TimeFieldConfig, TimezoneStringFieldConfig, ToggleFieldConfig, UsernameLoginFieldUsernameConfig, UsernameLoginFieldUsernameConfigInput, UsernameLoginFieldsConfig, ValidatorsForFieldConfig, ValidatorsForFieldConfigInput, ValueSelectionFieldConfig, ValueSelectionOption, ValueSelectionOptionClear, ValueSelectionOptionWithValue, WebsiteUrlFieldConfig, WrappedPhoneAndLabelFieldConfig, WrapperFormlyFieldConfig, ZipCodeFieldConfig };
|