@tft/crispr-forms 13.0.23 → 14.0.1-rc.2
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/README.md +77 -76
- package/esm2020/public-api.mjs +5 -0
- package/esm2020/src/index.mjs +2 -0
- package/esm2020/src/lib/crispr-forms.module.mjs +57 -0
- package/esm2020/src/lib/field-component-map.const.mjs +27 -0
- package/esm2020/src/lib/field.directive.mjs +69 -0
- package/esm2020/src/lib/form/form.component.mjs +63 -0
- package/esm2020/src/lib/form-group-list/form-group-list.component.mjs +93 -0
- package/esm2020/src/lib/form-group-list/index.mjs +2 -0
- package/esm2020/src/lib/pipes/crispr-pipes.module.mjs +24 -0
- package/esm2020/src/lib/pipes/initial-control-value.pipe.mjs +21 -0
- package/esm2020/src/lib/public_api.mjs +3 -0
- package/esm2020/src/lib/sub-group/index.mjs +3 -0
- package/esm2020/src/lib/sub-group/sub-group.component.mjs +21 -0
- package/esm2020/src/lib/sub-group/sub-group.module.mjs +42 -0
- package/esm2020/tft-crispr-forms.mjs +2 -2
- package/esm2020/ui/autocomplete-chiplist-field/autocomplete-chiplist-field.component.mjs +127 -0
- package/esm2020/ui/autocomplete-chiplist-field/index.mjs +2 -0
- package/esm2020/ui/autocomplete-field/autocomplete-field.component.mjs +90 -0
- package/esm2020/ui/autocomplete-field/index.mjs +2 -0
- package/esm2020/ui/button/button.component.mjs +46 -0
- package/esm2020/ui/button/index.mjs +2 -0
- package/esm2020/ui/checkbox-field/checkbox-field.component.mjs +42 -0
- package/esm2020/ui/checkbox-field/index.mjs +2 -0
- package/esm2020/ui/datepicker-field/datepicker-field.component.mjs +60 -0
- package/esm2020/ui/datepicker-field/index.mjs +2 -0
- package/esm2020/ui/divider/divider.component.mjs +28 -0
- package/esm2020/ui/divider/index.mjs +2 -0
- package/esm2020/ui/field-container/field-container.component.mjs +58 -0
- package/esm2020/ui/field-container/public-api.mjs +2 -0
- package/esm2020/ui/field-container/tft-crispr-forms-ui-field-container.mjs +5 -0
- package/esm2020/ui/file-dropzone/file-dropzone.directive.mjs +40 -0
- package/esm2020/ui/file-dropzone/public-api.mjs +2 -0
- package/esm2020/ui/file-dropzone/tft-crispr-forms-ui-file-dropzone.mjs +5 -0
- package/esm2020/ui/file-upload/file-upload.component.mjs +108 -0
- package/esm2020/ui/file-upload/index.mjs +2 -0
- package/esm2020/ui/heading/heading.component.mjs +31 -0
- package/esm2020/ui/heading/public-api.mjs +2 -0
- package/esm2020/ui/heading/tft-crispr-forms-ui-heading.mjs +5 -0
- package/esm2020/ui/image-upload-field/image-upload-field.component.mjs +179 -0
- package/esm2020/ui/image-upload-field/public-api.mjs +2 -0
- package/esm2020/ui/image-upload-field/tft-crispr-forms-ui-image-upload-field.mjs +5 -0
- package/esm2020/ui/info/info.component.mjs +23 -0
- package/esm2020/ui/info/public-api.mjs +2 -0
- package/esm2020/ui/info/tft-crispr-forms-ui-info.mjs +5 -0
- package/esm2020/ui/input-field/index.mjs +2 -0
- package/esm2020/ui/input-field/input-field.component.mjs +38 -0
- package/esm2020/ui/option/index.mjs +2 -0
- package/esm2020/ui/option/option.component.mjs +19 -0
- package/esm2020/ui/public-api.mjs +21 -0
- package/esm2020/ui/radio-field/index.mjs +2 -0
- package/esm2020/ui/radio-field/radio-field.component.mjs +36 -0
- package/esm2020/ui/select-field/index.mjs +2 -0
- package/esm2020/ui/select-field/select-field.component.mjs +74 -0
- package/esm2020/ui/selected-file/public-api.mjs +2 -0
- package/esm2020/ui/selected-file/selected-file.component.mjs +26 -0
- package/esm2020/ui/selected-file/tft-crispr-forms-ui-selected-file.mjs +5 -0
- package/esm2020/ui/slider-field/index.mjs +2 -0
- package/esm2020/ui/slider-field/slider-field.component.mjs +41 -0
- package/esm2020/ui/textarea-field/index.mjs +2 -0
- package/esm2020/ui/textarea-field/textarea-field.component.mjs +39 -0
- package/esm2020/ui/tft-crispr-forms-ui.mjs +5 -0
- package/esm2020/ui/unit-conversion-field/index.mjs +2 -0
- package/esm2020/ui/unit-conversion-field/unit-conversion-field.component.mjs +81 -0
- package/esm2020/utils/abstracts/autocomplete-field.abstract.mjs +30 -0
- package/esm2020/utils/abstracts/crispr-control.mixin.mjs +27 -0
- package/esm2020/utils/abstracts/crispr-field.abstract.mjs +20 -0
- package/esm2020/utils/abstracts/index.mjs +4 -0
- package/esm2020/utils/functions/buildFormGroupFromConfig.mjs +28 -0
- package/esm2020/utils/functions/callOptionsIfFunction.mjs +4 -0
- package/esm2020/utils/functions/createControlForType.mjs +19 -0
- package/esm2020/utils/functions/filterOptionsByLabel.mjs +11 -0
- package/esm2020/utils/functions/image-compression.helpers.mjs +50 -0
- package/esm2020/utils/functions/index.mjs +8 -0
- package/esm2020/utils/functions/isControlConfig.mjs +7 -0
- package/esm2020/utils/functions/observablifyOptions.mjs +29 -0
- package/esm2020/utils/models/autocomplete-chiplist-field.config.mjs +2 -0
- package/esm2020/utils/models/autocomplete-field.config.mjs +2 -0
- package/esm2020/utils/models/button.config.mjs +2 -0
- package/esm2020/utils/models/checkbox-field.config.mjs +2 -0
- package/esm2020/utils/models/crispr-field.config.mjs +23 -0
- package/esm2020/utils/models/datepicker-field.config.mjs +2 -0
- package/esm2020/utils/models/divider.config.mjs +2 -0
- package/esm2020/utils/models/file-upload-field.config.mjs +2 -0
- package/esm2020/utils/models/form-group-list.config.mjs +2 -0
- package/esm2020/utils/models/heading.config.mjs +3 -0
- package/esm2020/utils/models/image-upload-field.config.mjs +2 -0
- package/esm2020/utils/models/index.mjs +18 -0
- package/esm2020/utils/models/input-field.config.mjs +2 -0
- package/esm2020/utils/models/radio-field.config.mjs +2 -0
- package/esm2020/utils/models/select-field.config.mjs +2 -0
- package/esm2020/utils/models/slider-field.config.mjs +2 -0
- package/esm2020/utils/models/textarea-field.config.mjs +2 -0
- package/esm2020/utils/models/unit-conversion-field.config.mjs +2 -0
- package/esm2020/utils/operators/form.operators.mjs +24 -0
- package/esm2020/utils/operators/index.mjs +2 -0
- package/esm2020/utils/public-api.mjs +5 -0
- package/esm2020/utils/tft-crispr-forms-utils.mjs +5 -0
- package/fesm2015/tft-crispr-forms-ui-field-container.mjs +64 -0
- package/fesm2015/tft-crispr-forms-ui-field-container.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-file-dropzone.mjs +47 -0
- package/fesm2015/tft-crispr-forms-ui-file-dropzone.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-heading.mjs +37 -0
- package/fesm2015/tft-crispr-forms-ui-heading.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-image-upload-field.mjs +182 -0
- package/fesm2015/tft-crispr-forms-ui-image-upload-field.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-info.mjs +30 -0
- package/fesm2015/tft-crispr-forms-ui-info.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-selected-file.mjs +33 -0
- package/fesm2015/tft-crispr-forms-ui-selected-file.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui.mjs +684 -0
- package/fesm2015/tft-crispr-forms-ui.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-utils.mjs +270 -0
- package/fesm2015/tft-crispr-forms-utils.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms.mjs +117 -1730
- package/fesm2015/tft-crispr-forms.mjs.map +1 -1
- package/fesm2020/tft-crispr-forms-ui-field-container.mjs +65 -0
- package/fesm2020/tft-crispr-forms-ui-field-container.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-file-dropzone.mjs +47 -0
- package/fesm2020/tft-crispr-forms-ui-file-dropzone.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-heading.mjs +37 -0
- package/fesm2020/tft-crispr-forms-ui-heading.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-image-upload-field.mjs +185 -0
- package/fesm2020/tft-crispr-forms-ui-image-upload-field.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-info.mjs +30 -0
- package/fesm2020/tft-crispr-forms-ui-info.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-selected-file.mjs +33 -0
- package/fesm2020/tft-crispr-forms-ui-selected-file.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui.mjs +676 -0
- package/fesm2020/tft-crispr-forms-ui.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-utils.mjs +269 -0
- package/fesm2020/tft-crispr-forms-utils.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms.mjs +117 -1723
- package/fesm2020/tft-crispr-forms.mjs.map +1 -1
- package/index.d.ts +5 -1
- package/package.json +77 -15
- package/public-api.d.ts +3 -0
- package/src/index.d.ts +1 -0
- package/src/lib/crispr-forms.module.d.ts +15 -0
- package/{lib → src/lib}/field-component-map.const.d.ts +7 -6
- package/{lib → src/lib}/field.directive.d.ts +4 -10
- package/{lib → src/lib}/form/form.component.d.ts +3 -3
- package/{lib → src/lib}/form-group-list/form-group-list.component.d.ts +12 -14
- package/{lib → src/lib}/form-group-list/index.d.ts +0 -1
- package/{lib → src/lib}/pipes/crispr-pipes.module.d.ts +0 -0
- package/{lib → src/lib}/pipes/initial-control-value.pipe.d.ts +2 -2
- package/src/lib/public_api.d.ts +2 -0
- package/{lib → src/lib}/sub-group/index.d.ts +0 -0
- package/src/lib/sub-group/sub-group.component.d.ts +22 -0
- package/{lib → src/lib}/sub-group/sub-group.module.d.ts +2 -2
- package/tft-crispr-forms-14.0.1-rc.2.tgz +0 -0
- package/ui/README.md +3 -0
- package/{lib/material → ui}/autocomplete-chiplist-field/autocomplete-chiplist-field.component.d.ts +2 -3
- package/ui/autocomplete-chiplist-field/index.d.ts +1 -0
- package/{lib/material → ui}/autocomplete-field/autocomplete-field.component.d.ts +2 -3
- package/ui/autocomplete-field/index.d.ts +1 -0
- package/{lib/material → ui}/button/button.component.d.ts +2 -3
- package/ui/button/index.d.ts +1 -0
- package/ui/checkbox-field/checkbox-field.component.d.ts +21 -0
- package/ui/checkbox-field/index.d.ts +1 -0
- package/{lib/material → ui}/datepicker-field/datepicker-field.component.d.ts +14 -17
- package/ui/datepicker-field/index.d.ts +1 -0
- package/{lib/material → ui}/divider/divider.component.d.ts +2 -3
- package/ui/divider/index.d.ts +1 -0
- package/{lib → ui}/field-container/field-container.component.d.ts +3 -10
- package/ui/field-container/index.d.ts +5 -0
- package/{lib/field-container/index.d.ts → ui/field-container/public-api.d.ts} +0 -0
- package/{lib/material/file-upload → ui/file-dropzone}/file-dropzone.directive.d.ts +1 -1
- package/ui/file-dropzone/index.d.ts +5 -0
- package/{lib/material/file-upload/index.d.ts → ui/file-dropzone/public-api.d.ts} +0 -1
- package/ui/file-upload/file-upload.component.d.ts +37 -0
- package/ui/file-upload/index.d.ts +1 -0
- package/ui/heading/heading.component.d.ts +8 -0
- package/ui/heading/index.d.ts +5 -0
- package/ui/heading/public-api.d.ts +1 -0
- package/ui/image-upload-field/image-upload-field.component.d.ts +48 -0
- package/ui/image-upload-field/index.d.ts +5 -0
- package/{lib/material/image-upload-field/index.d.ts → ui/image-upload-field/public-api.d.ts} +0 -0
- package/ui/index.d.ts +5 -0
- package/ui/info/index.d.ts +5 -0
- package/ui/info/info.component.d.ts +7 -0
- package/ui/info/public-api.d.ts +1 -0
- package/ui/input-field/index.d.ts +1 -0
- package/ui/input-field/input-field.component.d.ts +22 -0
- package/{lib/material → ui}/option/index.d.ts +0 -0
- package/{lib/material → ui}/option/option.component.d.ts +2 -2
- package/ui/public-api.d.ts +19 -0
- package/ui/radio-field/index.d.ts +1 -0
- package/ui/radio-field/radio-field.component.d.ts +23 -0
- package/ui/select-field/index.d.ts +1 -0
- package/{lib/material → ui}/select-field/select-field.component.d.ts +12 -14
- package/ui/selected-file/index.d.ts +5 -0
- package/ui/selected-file/public-api.d.ts +1 -0
- package/ui/selected-file/selected-file.component.d.ts +10 -0
- package/ui/slider-field/index.d.ts +1 -0
- package/ui/slider-field/slider-field.component.d.ts +25 -0
- package/ui/textarea-field/index.d.ts +1 -0
- package/ui/textarea-field/textarea-field.component.d.ts +21 -0
- package/ui/unit-conversion-field/index.d.ts +1 -0
- package/{lib/material → ui}/unit-conversion-field/unit-conversion-field.component.d.ts +14 -17
- package/utils/README.md +3 -0
- package/{lib → utils}/abstracts/autocomplete-field.abstract.d.ts +4 -4
- package/{lib → utils}/abstracts/crispr-control.mixin.d.ts +0 -0
- package/{lib → utils}/abstracts/crispr-field.abstract.d.ts +1 -1
- package/{lib → utils}/abstracts/index.d.ts +0 -0
- package/utils/functions/buildFormGroupFromConfig.d.ts +9 -0
- package/utils/functions/callOptionsIfFunction.d.ts +3 -0
- package/utils/functions/createControlForType.d.ts +9 -0
- package/utils/functions/filterOptionsByLabel.d.ts +7 -0
- package/utils/functions/image-compression.helpers.d.ts +5 -0
- package/utils/functions/index.d.ts +7 -0
- package/utils/functions/isControlConfig.d.ts +5 -0
- package/utils/functions/observablifyOptions.d.ts +12 -0
- package/utils/index.d.ts +5 -0
- package/{lib → utils}/models/autocomplete-chiplist-field.config.d.ts +2 -1
- package/{lib → utils}/models/autocomplete-field.config.d.ts +1 -2
- package/{lib → utils}/models/button.config.d.ts +0 -0
- package/{lib → utils}/models/checkbox-field.config.d.ts +1 -2
- package/{lib → utils}/models/crispr-field.config.d.ts +5 -7
- package/{lib → utils}/models/datepicker-field.config.d.ts +4 -6
- package/{lib → utils}/models/divider.config.d.ts +1 -1
- package/{lib → utils}/models/file-upload-field.config.d.ts +3 -4
- package/{lib → utils}/models/form-group-list.config.d.ts +1 -2
- package/{lib → utils}/models/heading.config.d.ts +1 -2
- package/{lib → utils}/models/image-upload-field.config.d.ts +2 -1
- package/{lib → utils}/models/index.d.ts +0 -0
- package/{lib → utils}/models/input-field.config.d.ts +1 -2
- package/{lib → utils}/models/radio-field.config.d.ts +0 -0
- package/{lib → utils}/models/select-field.config.d.ts +1 -2
- package/{lib → utils}/models/slider-field.config.d.ts +1 -2
- package/{lib → utils}/models/textarea-field.config.d.ts +1 -2
- package/{lib → utils}/models/unit-conversion-field.config.d.ts +1 -2
- package/{lib → utils/operators}/form.operators.d.ts +0 -0
- package/utils/operators/index.d.ts +1 -0
- package/utils/public-api.d.ts +4 -0
- package/esm2020/index.mjs +0 -2
- package/esm2020/lib/abstracts/autocomplete-field.abstract.mjs +0 -30
- package/esm2020/lib/abstracts/crispr-control.mixin.mjs +0 -27
- package/esm2020/lib/abstracts/crispr-field.abstract.mjs +0 -17
- package/esm2020/lib/abstracts/index.mjs +0 -4
- package/esm2020/lib/crispr-forms.module.mjs +0 -66
- package/esm2020/lib/field-component-map.const.mjs +0 -28
- package/esm2020/lib/field-container/field-container.component.mjs +0 -85
- package/esm2020/lib/field-container/index.mjs +0 -2
- package/esm2020/lib/field.directive.mjs +0 -90
- package/esm2020/lib/form/form.component.mjs +0 -53
- package/esm2020/lib/form-group-list/form-group-list.component.mjs +0 -77
- package/esm2020/lib/form-group-list/form-group-list.module.mjs +0 -54
- package/esm2020/lib/form-group-list/index.mjs +0 -3
- package/esm2020/lib/form.helpers.mjs +0 -190
- package/esm2020/lib/form.operators.mjs +0 -24
- package/esm2020/lib/material/autocomplete-chiplist-field/autocomplete-chiplist-field.component.mjs +0 -111
- package/esm2020/lib/material/autocomplete-field/autocomplete-field.component.mjs +0 -78
- package/esm2020/lib/material/button/button.component.mjs +0 -35
- package/esm2020/lib/material/checkbox-field/checkbox-field.component.mjs +0 -31
- package/esm2020/lib/material/datepicker-field/datepicker-field.component.mjs +0 -45
- package/esm2020/lib/material/divider/divider.component.mjs +0 -22
- package/esm2020/lib/material/file-upload/file-dropzone.directive.mjs +0 -39
- package/esm2020/lib/material/file-upload/file-upload.component.mjs +0 -145
- package/esm2020/lib/material/file-upload/index.mjs +0 -3
- package/esm2020/lib/material/heading/heading.component.mjs +0 -54
- package/esm2020/lib/material/image-upload-field/image-compression.helpers.mjs +0 -4
- package/esm2020/lib/material/image-upload-field/image-upload-field.component.mjs +0 -265
- package/esm2020/lib/material/image-upload-field/index.mjs +0 -2
- package/esm2020/lib/material/index.mjs +0 -18
- package/esm2020/lib/material/info/info.component.mjs +0 -46
- package/esm2020/lib/material/input-field/input-field.component.mjs +0 -27
- package/esm2020/lib/material/material.module.mjs +0 -200
- package/esm2020/lib/material/option/index.mjs +0 -2
- package/esm2020/lib/material/option/option.component.mjs +0 -15
- package/esm2020/lib/material/radio-field/radio-field.component.mjs +0 -29
- package/esm2020/lib/material/select-field/select-field.component.mjs +0 -58
- package/esm2020/lib/material/selected-file/selected-file.component.mjs +0 -47
- package/esm2020/lib/material/slider-field/slider-field.component.mjs +0 -30
- package/esm2020/lib/material/textarea-field/textarea-field.component.mjs +0 -28
- package/esm2020/lib/material/unit-conversion-field/unit-conversion-field.component.mjs +0 -69
- package/esm2020/lib/models/autocomplete-chiplist-field.config.mjs +0 -2
- package/esm2020/lib/models/autocomplete-field.config.mjs +0 -2
- package/esm2020/lib/models/button.config.mjs +0 -2
- package/esm2020/lib/models/checkbox-field.config.mjs +0 -2
- package/esm2020/lib/models/crispr-field.config.mjs +0 -23
- package/esm2020/lib/models/datepicker-field.config.mjs +0 -2
- package/esm2020/lib/models/divider.config.mjs +0 -2
- package/esm2020/lib/models/file-upload-field.config.mjs +0 -2
- package/esm2020/lib/models/form-group-list.config.mjs +0 -2
- package/esm2020/lib/models/heading.config.mjs +0 -3
- package/esm2020/lib/models/image-upload-field.config.mjs +0 -2
- package/esm2020/lib/models/index.mjs +0 -18
- package/esm2020/lib/models/input-field.config.mjs +0 -2
- package/esm2020/lib/models/radio-field.config.mjs +0 -2
- package/esm2020/lib/models/select-field.config.mjs +0 -2
- package/esm2020/lib/models/slider-field.config.mjs +0 -2
- package/esm2020/lib/models/textarea-field.config.mjs +0 -2
- package/esm2020/lib/models/unit-conversion-field.config.mjs +0 -2
- package/esm2020/lib/pipes/crispr-pipes.module.mjs +0 -26
- package/esm2020/lib/pipes/initial-control-value.pipe.mjs +0 -20
- package/esm2020/lib/public_api.mjs +0 -10
- package/esm2020/lib/sub-group/index.mjs +0 -3
- package/esm2020/lib/sub-group/sub-group.component.mjs +0 -20
- package/esm2020/lib/sub-group/sub-group.module.mjs +0 -45
- package/lib/crispr-forms.module.d.ts +0 -16
- package/lib/form-group-list/form-group-list.module.d.ts +0 -15
- package/lib/form.helpers.d.ts +0 -88
- package/lib/material/checkbox-field/checkbox-field.component.d.ts +0 -23
- package/lib/material/file-upload/file-upload.component.d.ts +0 -54
- package/lib/material/heading/heading.component.d.ts +0 -17
- package/lib/material/image-upload-field/image-compression.helpers.d.ts +0 -1
- package/lib/material/image-upload-field/image-upload-field.component.d.ts +0 -68
- package/lib/material/index.d.ts +0 -17
- package/lib/material/info/info.component.d.ts +0 -15
- package/lib/material/input-field/input-field.component.d.ts +0 -24
- package/lib/material/material.module.d.ts +0 -44
- package/lib/material/radio-field/radio-field.component.d.ts +0 -26
- package/lib/material/selected-file/selected-file.component.d.ts +0 -17
- package/lib/material/slider-field/slider-field.component.d.ts +0 -27
- package/lib/material/textarea-field/textarea-field.component.d.ts +0 -24
- package/lib/public_api.d.ts +0 -9
- package/lib/sub-group/sub-group.component.d.ts +0 -24
- package/tft-crispr-forms-13.0.23.tgz +0 -0
- package/tft-crispr-forms.d.ts +0 -5
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/forms";
|
|
4
|
+
import * as i3 from "@tft/form-validation-handler";
|
|
5
|
+
import * as i4 from "./form-group-list/form-group-list.component";
|
|
6
|
+
import * as i5 from "@tft/crispr-forms/ui";
|
|
7
|
+
import * as i6 from "./field.directive";
|
|
8
|
+
import * as i7 from "./sub-group/sub-group.module";
|
|
9
|
+
import * as i8 from "./pipes/crispr-pipes.module";
|
|
10
|
+
import * as i9 from "./form/form.component";
|
|
11
|
+
export declare class CrisprFormsModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFormsModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CrisprFormsModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.FormValidationHandlerModule, typeof i4.FormGroupListComponent, typeof i5.FieldContainerComponent, typeof i6.CrisprFieldDirective, typeof i7.SubGroupModule, typeof i8.CrisprPipesModule, typeof i9.CrisprFormComponent], [typeof i9.CrisprFormComponent, typeof i5.FieldContainerComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CrisprFormsModule>;
|
|
15
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { InputFieldComponent, SelectFieldComponent, AutocompleteFieldComponent, AutocompleteChiplistFieldComponent, TextareaFieldComponent, CheckboxFieldComponent, RadioFieldComponent, FileUploadFieldComponent, SliderFieldComponent, DatepickerFieldComponent, HeadingComponent, DividerComponent, ButtonComponent, UnitConversionFieldComponent, ImageUploadFieldComponent } from './material';
|
|
2
1
|
import type { FormGroupListComponent } from './form-group-list/form-group-list.component';
|
|
3
2
|
import type { SubGroupComponent } from './sub-group/sub-group.component';
|
|
3
|
+
import type { HeadingComponent, InputFieldComponent, SelectFieldComponent, AutocompleteFieldComponent, AutocompleteChiplistFieldComponent, TextareaFieldComponent, CheckboxFieldComponent, RadioFieldComponent, FileUploadFieldComponent, SliderFieldComponent, DatepickerFieldComponent, DividerComponent, ButtonComponent, UnitConversionFieldComponent } from '@tft/crispr-forms/ui';
|
|
4
|
+
import type { ImageUploadFieldComponent } from '@tft/crispr-forms/ui/image-upload-field';
|
|
4
5
|
export declare const FIELD_COMPONENTS: {
|
|
5
6
|
groupList: Promise<typeof FormGroupListComponent>;
|
|
6
7
|
subGroup: Promise<typeof SubGroupComponent>;
|
|
@@ -20,9 +21,9 @@ export declare const FIELD_COMPONENTS: {
|
|
|
20
21
|
divider: Promise<typeof DividerComponent>;
|
|
21
22
|
unitConversion: Promise<typeof UnitConversionFieldComponent>;
|
|
22
23
|
};
|
|
23
|
-
export declare function isControlComponent(component:
|
|
24
|
-
export declare function isControlOrButtonComponent(component:
|
|
25
|
-
export declare type CrisprControlOrButton =
|
|
26
|
-
export declare type
|
|
24
|
+
export declare function isControlComponent(component: CrisprFieldComponentType): component is CrisprControlComponentType;
|
|
25
|
+
export declare function isControlOrButtonComponent(component: CrisprFieldComponentType): component is CrisprControlOrButton;
|
|
26
|
+
export declare type CrisprControlOrButton = CrisprControlComponentType | ButtonComponent;
|
|
27
|
+
export declare type CrisprControlComponentType = InputFieldComponent | SelectFieldComponent | RadioFieldComponent | SubGroupComponent | FormGroupListComponent | AutocompleteFieldComponent | AutocompleteChiplistFieldComponent | TextareaFieldComponent | CheckboxFieldComponent | SliderFieldComponent | FileUploadFieldComponent | ImageUploadFieldComponent | DatepickerFieldComponent | UnitConversionFieldComponent;
|
|
27
28
|
export declare type ComponentKeys = keyof typeof FIELD_COMPONENTS;
|
|
28
|
-
export declare type
|
|
29
|
+
export declare type CrisprFieldComponentType = CrisprControlComponentType | HeadingComponent | DividerComponent | ButtonComponent;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ViewContainerRef, Renderer2, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { CrisprFieldComponentType } from './field-component-map.const';
|
|
4
|
+
import { AnyFieldConfig, ControlValue } from '@tft/crispr-forms/utils';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/common";
|
|
7
6
|
export declare class CrisprFieldDirective implements OnInit {
|
|
8
7
|
private container;
|
|
9
8
|
private renderer;
|
|
@@ -16,15 +15,10 @@ export declare class CrisprFieldDirective implements OnInit {
|
|
|
16
15
|
_value: ControlValue | any[];
|
|
17
16
|
set value(value: ControlValue | any[]);
|
|
18
17
|
get value(): ControlValue | any[];
|
|
19
|
-
component:
|
|
18
|
+
component: CrisprFieldComponentType;
|
|
20
19
|
constructor(container: ViewContainerRef, renderer: Renderer2, cdr: ChangeDetectorRef);
|
|
21
20
|
ngOnInit(): Promise<void>;
|
|
22
21
|
updateComponentValue(value: ControlValue | any[]): void;
|
|
23
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFieldDirective, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldDirective, "[crisprField]", never, { "config": "config"; "group": "group"; "value": "value"; }, {}, never>;
|
|
25
|
-
}
|
|
26
|
-
export declare class CrisprFieldModule {
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFieldModule, never>;
|
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CrisprFieldModule, [typeof CrisprFieldDirective], [typeof i1.CommonModule], [typeof CrisprFieldDirective]>;
|
|
29
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CrisprFieldModule>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldDirective, "[crisprField]", never, { "config": "config"; "group": "group"; "value": "value"; }, {}, never, never, true>;
|
|
30
24
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EventEmitter, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { ControlGroupValue, FormConfig } from '../models';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { ControlGroupValue, FormConfig } from '@tft/crispr-forms/utils';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CrisprFormComponent implements OnInit {
|
|
7
7
|
config: FormConfig;
|
|
8
8
|
form: FormGroup;
|
|
9
9
|
value: ControlGroupValue;
|
|
10
|
-
submitted: EventEmitter<FormGroup
|
|
10
|
+
submitted: EventEmitter<FormGroup<any>>;
|
|
11
11
|
valueChanges: Observable<any>;
|
|
12
12
|
statusChanges: Observable<string>;
|
|
13
13
|
submitTrigger: ElementRef<HTMLButtonElement>;
|
|
@@ -15,5 +15,5 @@ export declare class CrisprFormComponent implements OnInit {
|
|
|
15
15
|
handleSubmit(): void;
|
|
16
16
|
triggerSubmit(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFormComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CrisprFormComponent, "crispr-form", never, { "config": "config"; "form": "form"; "value": "value"; }, { "submitted": "submitted"; "valueChanges": "valueChanges"; "statusChanges": "statusChanges"; }, never, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CrisprFormComponent, "crispr-form", never, { "config": "config"; "form": "form"; "value": "value"; }, { "submitted": "submitted"; "valueChanges": "valueChanges"; "statusChanges": "statusChanges"; }, never, never, true>;
|
|
19
19
|
}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { FormGroup, FormArray } from '@angular/forms';
|
|
3
|
-
import
|
|
3
|
+
import { FormGroupListConfig } from '@tft/crispr-forms/utils';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
declare const FormGroupListMixin: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
applyDefaultConfig(): void;
|
|
16
|
-
};
|
|
5
|
+
declare const FormGroupListMixin: new () => {
|
|
6
|
+
config: FormGroupListConfig;
|
|
7
|
+
group: FormGroup<any>;
|
|
8
|
+
control: import("@angular/forms").AbstractControl<any, any>;
|
|
9
|
+
_value: any;
|
|
10
|
+
value: any;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
setControlValue(value: any): void;
|
|
13
|
+
defaultConfig?: Partial<FormGroupListConfig>;
|
|
14
|
+
applyDefaultConfig(): void;
|
|
17
15
|
};
|
|
18
16
|
export declare class FormGroupListComponent extends FormGroupListMixin implements OnInit {
|
|
19
17
|
private cdr;
|
|
@@ -33,6 +31,6 @@ export declare class FormGroupListComponent extends FormGroupListMixin implement
|
|
|
33
31
|
addGroup(value?: any): void;
|
|
34
32
|
deleteGroup(index: number): void;
|
|
35
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupListComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupListComponent, "crispr-form-group-list", never, {}, {}, never, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupListComponent, "crispr-form-group-list", never, {}, {}, never, never, true>;
|
|
37
35
|
}
|
|
38
36
|
export {};
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { ControlValue, AnyFieldConfig } from '
|
|
2
|
+
import { ControlValue, AnyFieldConfig } from '@tft/crispr-forms/utils';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class InitialControlValuePipe implements PipeTransform {
|
|
5
5
|
transform(initialFormValue: {
|
|
6
6
|
[key: string]: ControlValue | any;
|
|
7
7
|
}, fieldConfig: AnyFieldConfig): unknown;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<InitialControlValuePipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<InitialControlValuePipe, "initialControlValue">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InitialControlValuePipe, "initialControlValue", false>;
|
|
10
10
|
}
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { SubGroupConfig } from '@tft/crispr-forms/utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
declare const FormGroupMixin: new () => {
|
|
6
|
+
config: SubGroupConfig;
|
|
7
|
+
group: FormGroup<any>;
|
|
8
|
+
control: import("@angular/forms").AbstractControl<any, any>;
|
|
9
|
+
_value: any;
|
|
10
|
+
value: any;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
setControlValue(value: any): void;
|
|
13
|
+
defaultConfig?: Partial<SubGroupConfig>;
|
|
14
|
+
applyDefaultConfig(): void;
|
|
15
|
+
};
|
|
16
|
+
export declare class SubGroupComponent extends FormGroupMixin implements OnInit {
|
|
17
|
+
group: FormGroup;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubGroupComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubGroupComponent, "crispr-sub-group", never, {}, {}, never, never, false>;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -2,11 +2,11 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./sub-group.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "../field.directive";
|
|
5
|
-
import * as i4 from "
|
|
5
|
+
import * as i4 from "@tft/crispr-forms/ui";
|
|
6
6
|
import * as i5 from "../pipes/crispr-pipes.module";
|
|
7
7
|
import * as i6 from "@tft/form-validation-handler";
|
|
8
8
|
export declare class SubGroupModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubGroupModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SubGroupModule, [typeof i1.SubGroupComponent], [typeof i2.CommonModule, typeof i3.
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SubGroupModule, [typeof i1.SubGroupComponent], [typeof i2.CommonModule, typeof i3.CrisprFieldDirective, typeof i4.FieldContainerComponent, typeof i5.CrisprPipesModule, typeof i6.FormValidationHandlerModule], [typeof i1.SubGroupComponent]>;
|
|
11
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<SubGroupModule>;
|
|
12
12
|
}
|
|
Binary file
|
package/ui/README.md
ADDED
package/{lib/material → ui}/autocomplete-chiplist-field/autocomplete-chiplist-field.component.d.ts
RENAMED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { OnInit, ElementRef } from '@angular/core';
|
|
2
2
|
import { MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
3
3
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { AutocompleteChiplistFieldConfig, SelectOption } from '../../models';
|
|
5
|
-
import { AbstractAutocompleteComponent } from '../../abstracts';
|
|
6
4
|
import { MatChipInputEvent } from '@angular/material/chips';
|
|
5
|
+
import { AutocompleteChiplistFieldConfig, AbstractAutocompleteComponent, SelectOption } from '@tft/crispr-forms/utils';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class AutocompleteChiplistFieldComponent extends AbstractAutocompleteComponent<AutocompleteChiplistFieldConfig> implements OnInit {
|
|
9
8
|
defaultConfig: Partial<AutocompleteChiplistFieldConfig>;
|
|
@@ -30,5 +29,5 @@ export declare class AutocompleteChiplistFieldComponent extends AbstractAutocomp
|
|
|
30
29
|
mapToLabel(option: SelectOption): string;
|
|
31
30
|
removeChip(removedChip: SelectOption): void;
|
|
32
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteChiplistFieldComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteChiplistFieldComponent, "crispr-autocomplete-chiplist-field", never, {}, {}, never, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteChiplistFieldComponent, "crispr-autocomplete-chiplist-field", never, {}, {}, never, never, true>;
|
|
34
33
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './autocomplete-chiplist-field.component';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { OnInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatAutocompleteTrigger, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
3
|
-
import { SelectOption, AutocompleteFieldConfig } from '../../models';
|
|
4
|
-
import { AbstractAutocompleteComponent } from '../../abstracts';
|
|
5
3
|
import { Subscription } from 'rxjs';
|
|
4
|
+
import { SelectOption, AbstractAutocompleteComponent, AutocompleteFieldConfig } from '@tft/crispr-forms/utils';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class AutocompleteFieldComponent extends AbstractAutocompleteComponent<AutocompleteFieldConfig> implements OnInit, OnDestroy {
|
|
8
7
|
defaultConfig: Partial<AutocompleteFieldConfig>;
|
|
@@ -22,5 +21,5 @@ export declare class AutocompleteFieldComponent extends AbstractAutocompleteComp
|
|
|
22
21
|
displayLabel(options: SelectOption[]): (value: unknown) => string;
|
|
23
22
|
handleSelect(event: MatAutocompleteSelectedEvent): void;
|
|
24
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteFieldComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteFieldComponent, "crispr-autocomplete-field", never, {}, {}, never, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteFieldComponent, "crispr-autocomplete-field", never, {}, {}, never, never, true>;
|
|
26
25
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './autocomplete-field.component';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { ButtonConfig } from '../../models';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { CrisprFieldComponent } from '
|
|
4
|
+
import { CrisprFieldComponent, ButtonConfig } from '@tft/crispr-forms/utils';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class ButtonComponent extends CrisprFieldComponent<ButtonConfig> implements OnInit {
|
|
8
7
|
group: FormGroup;
|
|
@@ -12,5 +11,5 @@ export declare class ButtonComponent extends CrisprFieldComponent<ButtonConfig>
|
|
|
12
11
|
ngOnInit(): void;
|
|
13
12
|
handleClick(group: FormGroup, event: MouseEvent): void;
|
|
14
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "crispr-button", never, {}, {}, never, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "crispr-button", never, {}, {}, never, never, true>;
|
|
16
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './button.component';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { CheckboxFieldConfig } from '@tft/crispr-forms/utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare const CheckboxFieldMixin: new () => {
|
|
5
|
+
config: CheckboxFieldConfig;
|
|
6
|
+
group: import("@angular/forms").FormGroup<any>;
|
|
7
|
+
control: import("@angular/forms").AbstractControl<any, any>;
|
|
8
|
+
_value: any;
|
|
9
|
+
value: any;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
setControlValue(value: any): void;
|
|
12
|
+
defaultConfig?: Partial<CheckboxFieldConfig>;
|
|
13
|
+
applyDefaultConfig(): void;
|
|
14
|
+
};
|
|
15
|
+
export declare class CheckboxFieldComponent extends CheckboxFieldMixin implements OnInit {
|
|
16
|
+
defaultConfig: Partial<CheckboxFieldConfig>;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxFieldComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxFieldComponent, "crispr-checkbox-field", never, {}, {}, never, never, true>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './checkbox-field.component';
|
|
@@ -1,33 +1,30 @@
|
|
|
1
1
|
import { OnInit, AfterContentInit } from '@angular/core';
|
|
2
|
-
import { DatepickerFieldConfig } from '../../models';
|
|
3
2
|
import { MatCalendarCellClassFunction } from '@angular/material/datepicker';
|
|
4
|
-
import { Moment } from 'moment';
|
|
5
3
|
import { Observable } from 'rxjs';
|
|
6
4
|
import { Portal } from '@angular/cdk/portal';
|
|
5
|
+
import { DatepickerFieldConfig } from '@tft/crispr-forms/utils';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
|
-
declare const DatepickerFieldMixin: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
applyDefaultConfig(): void;
|
|
19
|
-
};
|
|
7
|
+
declare const DatepickerFieldMixin: new () => {
|
|
8
|
+
config: DatepickerFieldConfig;
|
|
9
|
+
group: import("@angular/forms").FormGroup<any>;
|
|
10
|
+
control: import("@angular/forms").AbstractControl<any, any>;
|
|
11
|
+
_value: any;
|
|
12
|
+
value: any;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
setControlValue(value: any): void;
|
|
15
|
+
defaultConfig?: Partial<DatepickerFieldConfig>;
|
|
16
|
+
applyDefaultConfig(): void;
|
|
20
17
|
};
|
|
21
18
|
export declare class DatepickerFieldComponent extends DatepickerFieldMixin implements OnInit, AfterContentInit {
|
|
22
19
|
defaultConfig: Partial<DatepickerFieldConfig>;
|
|
23
|
-
dateClass: MatCalendarCellClassFunction<
|
|
24
|
-
dateClass$: Observable<MatCalendarCellClassFunction<
|
|
20
|
+
dateClass: MatCalendarCellClassFunction<Date>;
|
|
21
|
+
dateClass$: Observable<MatCalendarCellClassFunction<Date>>;
|
|
25
22
|
startAt$: Observable<Date>;
|
|
26
23
|
/** A portal containing the footer component type for this calendar. */
|
|
27
24
|
calendarFooterPortal: Portal<any>;
|
|
28
25
|
ngOnInit(): void;
|
|
29
26
|
ngAfterContentInit(): void;
|
|
30
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerFieldComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerFieldComponent, "crispr-datepicker-field", never, {}, {}, never, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerFieldComponent, "crispr-datepicker-field", never, {}, {}, never, never, true>;
|
|
32
29
|
}
|
|
33
30
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './datepicker-field.component';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DividerConfig } from '
|
|
3
|
-
import { CrisprFieldComponent } from '../../abstracts';
|
|
2
|
+
import { CrisprFieldComponent, DividerConfig } from '@tft/crispr-forms/utils';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class DividerComponent extends CrisprFieldComponent<DividerConfig> implements OnInit {
|
|
6
5
|
defaultConfig: {};
|
|
7
6
|
ngOnInit(): void;
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "crispr-divider", never, {}, {}, never, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "crispr-divider", never, {}, {}, never, never, true>;
|
|
10
9
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './divider.component';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import type { CrisprControlConfig } from '../models';
|
|
3
2
|
import { Observable, Subscription } from 'rxjs';
|
|
4
3
|
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import type { CrisprControlConfig } from '@tft/crispr-forms/utils';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/common";
|
|
7
|
-
import * as i2 from "../material/heading/heading.component";
|
|
8
6
|
export declare class FieldContainerComponent implements OnInit, OnDestroy {
|
|
9
7
|
config: CrisprControlConfig;
|
|
10
8
|
group: FormGroup;
|
|
@@ -15,17 +13,12 @@ export declare class FieldContainerComponent implements OnInit, OnDestroy {
|
|
|
15
13
|
ngOnDestroy(): void;
|
|
16
14
|
/**
|
|
17
15
|
* Connects user defined disabledCallback function to the the view, so that the control is enabled/disabled
|
|
18
|
-
* appropriately. It also
|
|
16
|
+
* appropriately. It also will hide disabled fields in the UI unless `hideDisabled` is set to
|
|
19
17
|
* false in the controls config
|
|
20
18
|
* @param group used to get valueChanges from control
|
|
21
19
|
* @param config configuration object used to
|
|
22
20
|
*/
|
|
23
21
|
connectDisabledCallback(group: FormGroup, config?: CrisprControlConfig): Observable<boolean>;
|
|
24
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldContainerComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldContainerComponent, "crispr-field-container", never, { "config": "config"; "group": "group"; "inlineField": "inlineField"; }, {}, never, ["*"]>;
|
|
26
|
-
}
|
|
27
|
-
export declare class FieldContainerModule {
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldContainerModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FieldContainerModule, [typeof FieldContainerComponent], [typeof i1.CommonModule, typeof i2.HeadingModule], [typeof FieldContainerComponent]>;
|
|
30
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FieldContainerModule>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldContainerComponent, "crispr-field-container", never, { "config": "config"; "group": "group"; "inlineField": "inlineField"; }, {}, never, ["*"], true>;
|
|
31
24
|
}
|
|
File without changes
|
|
@@ -6,5 +6,5 @@ export declare class FileDropzoneDirective {
|
|
|
6
6
|
onDrop($event: DragEvent): void;
|
|
7
7
|
onDragOver($event: DragEvent): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileDropzoneDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FileDropzoneDirective, "[crisprFileDropzone]", never, { "crisprFileDropzone": "crisprFileDropzone"; }, { "fileDrop": "fileDrop"; }, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileDropzoneDirective, "[crisprFileDropzone]", never, { "crisprFileDropzone": "crisprFileDropzone"; }, { "fileDrop": "fileDrop"; }, never, never, true>;
|
|
10
10
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FileUploadFieldConfig } from '@tft/crispr-forms/utils';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
declare const FileUploadFieldMixin: new () => {
|
|
7
|
+
config: FileUploadFieldConfig;
|
|
8
|
+
group: import("@angular/forms").FormGroup<any>;
|
|
9
|
+
control: import("@angular/forms").AbstractControl<any, any>;
|
|
10
|
+
_value: any;
|
|
11
|
+
value: any;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
setControlValue(value: any): void;
|
|
14
|
+
defaultConfig?: Partial<FileUploadFieldConfig>;
|
|
15
|
+
applyDefaultConfig(): void;
|
|
16
|
+
};
|
|
17
|
+
export declare class FileUploadFieldComponent extends FileUploadFieldMixin implements OnInit, ControlValueAccessor {
|
|
18
|
+
ngControl: NgControl;
|
|
19
|
+
onChange: () => void;
|
|
20
|
+
defaultConfig: Partial<FileUploadFieldConfig>;
|
|
21
|
+
fileInputRef: ElementRef;
|
|
22
|
+
selectedFiles: FileList;
|
|
23
|
+
isUploaded: boolean;
|
|
24
|
+
fileProgress: Observable<number>[];
|
|
25
|
+
disabled$: Observable<boolean>;
|
|
26
|
+
constructor(ngControl: NgControl);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
filesChanged(files: FileList): void;
|
|
29
|
+
uploadFiles(): void;
|
|
30
|
+
resetFileInput(): void;
|
|
31
|
+
writeValue(value: null): void;
|
|
32
|
+
registerOnChange(fn: () => void): void;
|
|
33
|
+
registerOnTouched(fn: () => void): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadFieldComponent, [{ optional: true; self: true; }]>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadFieldComponent, "crispr-file-upload-field", never, {}, {}, never, never, true>;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './file-upload.component';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CrisprFieldComponent, HeadingConfig } from '@tft/crispr-forms/utils';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HeadingComponent extends CrisprFieldComponent<HeadingConfig> {
|
|
4
|
+
config: HeadingConfig;
|
|
5
|
+
defaultConfig: Partial<HeadingConfig>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeadingComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeadingComponent, "crispr-heading", never, { "config": "config"; }, {}, never, never, true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './heading.component';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ElementRef, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { ImageUploadFieldConfig } from '@tft/crispr-forms/utils';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
declare const ImageUploadFieldMixin: new () => {
|
|
8
|
+
config: ImageUploadFieldConfig;
|
|
9
|
+
group: import("@angular/forms").FormGroup<any>;
|
|
10
|
+
control: import("@angular/forms").AbstractControl<any, any>;
|
|
11
|
+
_value: any;
|
|
12
|
+
value: any;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
setControlValue(value: any): void;
|
|
15
|
+
defaultConfig?: Partial<ImageUploadFieldConfig>;
|
|
16
|
+
applyDefaultConfig(): void;
|
|
17
|
+
};
|
|
18
|
+
export declare class ImageUploadFieldComponent extends ImageUploadFieldMixin implements OnInit, ControlValueAccessor {
|
|
19
|
+
ngControl: NgControl;
|
|
20
|
+
private domSanitizer;
|
|
21
|
+
private cdr;
|
|
22
|
+
onChange: () => void;
|
|
23
|
+
defaultConfig: Partial<ImageUploadFieldConfig>;
|
|
24
|
+
private inputImageFileSubject;
|
|
25
|
+
inputImageFile$: Observable<File>;
|
|
26
|
+
/**
|
|
27
|
+
* the compression progress
|
|
28
|
+
*/
|
|
29
|
+
progress: number | undefined;
|
|
30
|
+
compressedFile$: Observable<File>;
|
|
31
|
+
compressedImageUrlString$: Observable<string | null>;
|
|
32
|
+
imageSrcUrl$: Observable<string | null>;
|
|
33
|
+
fileInputRef: ElementRef;
|
|
34
|
+
selectedFiles: FileList;
|
|
35
|
+
isUploaded: boolean;
|
|
36
|
+
disabled$: Observable<boolean>;
|
|
37
|
+
constructor(ngControl: NgControl, domSanitizer: DomSanitizer, cdr: ChangeDetectorRef);
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
filesChanged(files: FileList): void;
|
|
40
|
+
clearFileInput(): void;
|
|
41
|
+
resetToInitialValue(initialValue: string): void;
|
|
42
|
+
writeValue(value: null): void;
|
|
43
|
+
registerOnChange(fn: () => void): void;
|
|
44
|
+
registerOnTouched(fn: () => void): void;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageUploadFieldComponent, [{ optional: true; self: true; }, null, null]>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageUploadFieldComponent, "crispr-image-upload-field", never, {}, {}, never, never, true>;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
package/{lib/material/image-upload-field/index.d.ts → ui/image-upload-field/public-api.d.ts}
RENAMED
|
File without changes
|
package/ui/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Info } from '@tft/crispr-forms/utils';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InfoComponent {
|
|
4
|
+
info: Info;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfoComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InfoComponent, "crispr-info", never, { "info": "info"; }, {}, never, never, true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './info.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './input-field.component';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { InputFieldConfig } from '@tft/crispr-forms/utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare const InputFieldMixin: new () => {
|
|
5
|
+
config: InputFieldConfig;
|
|
6
|
+
group: import("@angular/forms").FormGroup<any>;
|
|
7
|
+
control: import("@angular/forms").AbstractControl<any, any>;
|
|
8
|
+
_value: any;
|
|
9
|
+
value: any;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
setControlValue(value: any): void;
|
|
12
|
+
defaultConfig?: Partial<InputFieldConfig>;
|
|
13
|
+
applyDefaultConfig(): void;
|
|
14
|
+
};
|
|
15
|
+
export declare class InputFieldComponent extends InputFieldMixin implements OnInit {
|
|
16
|
+
defaultConfig: Partial<InputFieldConfig>;
|
|
17
|
+
constructor();
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputFieldComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputFieldComponent, "crispr-input-field", never, {}, {}, never, never, true>;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
File without changes
|