@tft/crispr-forms 14.0.2 → 17.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/esm2022/public-api.mjs +4 -0
- package/{esm2020 → esm2022}/src/index.mjs +1 -1
- package/esm2022/src/lib/crispr-forms.module.mjs +55 -0
- package/esm2022/src/lib/display-field.directive.mjs +52 -0
- package/esm2022/src/lib/field-component-map.const.mjs +28 -0
- package/esm2022/src/lib/field.directive.mjs +69 -0
- package/esm2022/src/lib/form/form.component.mjs +62 -0
- package/esm2022/src/lib/form-group-list/form-group-list.component.mjs +97 -0
- package/{esm2020 → esm2022}/src/lib/form-group-list/index.mjs +1 -1
- package/{esm2020 → esm2022}/src/lib/pipes/crispr-pipes.module.mjs +24 -24
- package/esm2022/src/lib/pipes/initial-control-value.pipe.mjs +20 -0
- package/{esm2020 → esm2022}/src/lib/public_api.mjs +2 -2
- package/{esm2020 → esm2022}/src/lib/sub-group/index.mjs +2 -2
- package/esm2022/src/lib/sub-group/sub-group.component.mjs +20 -0
- package/esm2022/src/lib/sub-group/sub-group.module.mjs +42 -0
- package/esm2022/src/lib/ui/autocomplete-chiplist-field/autocomplete-chiplist-field.component.mjs +138 -0
- package/esm2022/src/lib/ui/autocomplete-chiplist-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/autocomplete-chiplist-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/autocomplete-field/autocomplete-field.component.mjs +95 -0
- package/esm2022/src/lib/ui/autocomplete-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/autocomplete-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/button/button.component.mjs +52 -0
- package/esm2022/src/lib/ui/button/index.mjs +2 -0
- package/esm2022/src/lib/ui/button/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/checkbox-field/checkbox-field.component.mjs +42 -0
- package/esm2022/src/lib/ui/checkbox-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/checkbox-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/datepicker-field/datepicker-field.component.mjs +66 -0
- package/esm2022/src/lib/ui/datepicker-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/datepicker-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/divider/divider.component.mjs +25 -0
- package/esm2022/src/lib/ui/divider/index.mjs +2 -0
- package/esm2022/src/lib/ui/divider/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/field-container/field-container.component.mjs +59 -0
- package/esm2022/src/lib/ui/field-container/index.mjs +2 -0
- package/esm2022/src/lib/ui/field-container/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/file-dropzone/file-dropzone.directive.mjs +40 -0
- package/esm2022/src/lib/ui/file-dropzone/index.mjs +2 -0
- package/esm2022/src/lib/ui/file-dropzone/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/file-upload-field/file-upload-field.component.mjs +107 -0
- package/esm2022/src/lib/ui/file-upload-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/file-upload-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/heading/heading.component.mjs +27 -0
- package/esm2022/src/lib/ui/heading/index.mjs +2 -0
- package/esm2022/src/lib/ui/heading/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/image-upload-field/image-upload-field.component.mjs +184 -0
- package/esm2022/src/lib/ui/image-upload-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/image-upload-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/index.mjs +2 -0
- package/esm2022/src/lib/ui/info/index.mjs +2 -0
- package/esm2022/src/lib/ui/info/info.component.mjs +23 -0
- package/esm2022/src/lib/ui/info/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/input-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/input-field/input-field.component.mjs +43 -0
- package/esm2022/src/lib/ui/input-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/option/index.mjs +2 -0
- package/esm2022/src/lib/ui/option/option.component.mjs +16 -0
- package/esm2022/src/lib/ui/option/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/public-api.mjs +7 -0
- package/esm2022/src/lib/ui/radio-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/radio-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/radio-field/radio-field.component.mjs +39 -0
- package/esm2022/src/lib/ui/select-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/select-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/select-field/select-field.component.mjs +73 -0
- package/esm2022/src/lib/ui/selected-file/index.mjs +2 -0
- package/esm2022/src/lib/ui/selected-file/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/selected-file/selected-file.component.mjs +26 -0
- package/esm2022/src/lib/ui/slider-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/slider-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/slider-field/slider-field.component.mjs +46 -0
- package/esm2022/src/lib/ui/textarea-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/textarea-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/textarea-field/textarea-field.component.mjs +42 -0
- package/esm2022/src/lib/ui/unit-conversion-field/index.mjs +2 -0
- package/esm2022/src/lib/ui/unit-conversion-field/public-api.mjs +2 -0
- package/esm2022/src/lib/ui/unit-conversion-field/unit-conversion-field.component.mjs +86 -0
- package/esm2022/src/lib/utils/abstracts/autocomplete-field.abstract.mjs +30 -0
- package/esm2022/src/lib/utils/abstracts/crispr-control.mixin.mjs +27 -0
- package/esm2022/src/lib/utils/abstracts/crispr-display-field.abstract.mjs +14 -0
- package/esm2022/src/lib/utils/abstracts/crispr-field.abstract.mjs +19 -0
- package/esm2022/src/lib/utils/abstracts/index.mjs +5 -0
- package/esm2022/src/lib/utils/functions/buildFormGroupFromConfig.mjs +28 -0
- package/esm2022/src/lib/utils/functions/callOptionsIfFunction.mjs +4 -0
- package/esm2022/src/lib/utils/functions/createControlForType.mjs +19 -0
- package/esm2022/src/lib/utils/functions/filterOptionsByLabel.mjs +11 -0
- package/esm2022/src/lib/utils/functions/image-compression.helpers.mjs +50 -0
- package/esm2022/src/lib/utils/functions/index.mjs +8 -0
- package/esm2022/src/lib/utils/functions/isControlConfig.mjs +7 -0
- package/esm2022/src/lib/utils/functions/observablifyOptions.mjs +29 -0
- package/esm2022/src/lib/utils/index.mjs +2 -0
- package/esm2022/src/lib/utils/models/autocomplete-chiplist-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/autocomplete-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/button.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/checkbox-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/crispr-field.config.mjs +23 -0
- package/esm2022/src/lib/utils/models/datepicker-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/divider.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/file-upload-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/form-group-list.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/heading.config.mjs +3 -0
- package/esm2022/src/lib/utils/models/image-upload-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/index.mjs +18 -0
- package/esm2022/src/lib/utils/models/input-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/radio-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/select-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/slider-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/textarea-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/models/unit-conversion-field.config.mjs +2 -0
- package/esm2022/src/lib/utils/operators/form.operators.mjs +24 -0
- package/esm2022/src/lib/utils/operators/index.mjs +2 -0
- package/esm2022/src/lib/utils/public-api.mjs +5 -0
- package/esm2022/src/lib/utils/tft-crispr-forms-src-lib-utils.mjs +5 -0
- package/{esm2020 → esm2022}/tft-crispr-forms.mjs +4 -4
- package/fesm2022/tft-crispr-forms-index-2dAn0905.mjs +19 -0
- package/fesm2022/tft-crispr-forms-index-2dAn0905.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-76UuF0AI.mjs +36 -0
- package/fesm2022/tft-crispr-forms-index-76UuF0AI.mjs.map +1 -0
- package/{fesm2020/tft-crispr-forms-ui-image-upload-field.mjs → fesm2022/tft-crispr-forms-index-BXwiulEX.mjs} +169 -169
- package/fesm2022/tft-crispr-forms-index-BXwiulEX.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-BfR4XbYi.mjs +110 -0
- package/fesm2022/tft-crispr-forms-index-BfR4XbYi.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-C5X0mk3N.mjs +49 -0
- package/fesm2022/tft-crispr-forms-index-C5X0mk3N.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-CFUop3Cq.mjs +80 -0
- package/fesm2022/tft-crispr-forms-index-CFUop3Cq.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-CFdMVgM0.mjs +91 -0
- package/fesm2022/tft-crispr-forms-index-CFdMVgM0.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-CZdi06Jj.mjs +49 -0
- package/fesm2022/tft-crispr-forms-index-CZdi06Jj.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-C_I9vjqf.mjs +57 -0
- package/fesm2022/tft-crispr-forms-index-C_I9vjqf.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-DE8VOdBd.mjs +102 -0
- package/fesm2022/tft-crispr-forms-index-DE8VOdBd.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-OLo2t0tl.mjs +48 -0
- package/fesm2022/tft-crispr-forms-index-OLo2t0tl.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-OT7kkOgd.mjs +50 -0
- package/fesm2022/tft-crispr-forms-index-OT7kkOgd.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-Ukk3WgS2.mjs +54 -0
- package/fesm2022/tft-crispr-forms-index-Ukk3WgS2.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-rRi6OMY6.mjs +142 -0
- package/fesm2022/tft-crispr-forms-index-rRi6OMY6.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms-index-xAaInTLg.mjs +73 -0
- package/fesm2022/tft-crispr-forms-index-xAaInTLg.mjs.map +1 -0
- package/{fesm2020/tft-crispr-forms-utils.mjs → fesm2022/tft-crispr-forms-src-lib-utils.mjs} +242 -243
- package/fesm2022/tft-crispr-forms-src-lib-utils.mjs.map +1 -0
- package/fesm2022/tft-crispr-forms.mjs +848 -0
- package/fesm2022/tft-crispr-forms.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/package.json +13 -191
- package/public-api.d.ts +3 -3
- package/src/index.d.ts +1 -1
- package/src/lib/crispr-forms.module.d.ts +16 -16
- package/src/lib/display-field.directive.d.ts +23 -23
- package/src/lib/field-component-map.const.d.ts +42 -42
- package/src/lib/field.directive.d.ts +24 -24
- package/src/lib/form/form.component.d.ts +19 -19
- package/src/lib/form-group-list/form-group-list.component.d.ts +40 -38
- package/src/lib/form-group-list/index.d.ts +1 -1
- package/src/lib/pipes/crispr-pipes.module.d.ts +8 -8
- package/src/lib/pipes/initial-control-value.pipe.d.ts +10 -10
- package/src/lib/public_api.d.ts +2 -2
- package/src/lib/sub-group/index.d.ts +2 -2
- package/src/lib/sub-group/sub-group.component.d.ts +24 -22
- package/src/lib/sub-group/sub-group.module.d.ts +12 -12
- package/{ui → src/lib/ui}/autocomplete-chiplist-field/autocomplete-chiplist-field.component.d.ts +36 -33
- package/src/lib/ui/autocomplete-chiplist-field/index.d.ts +1 -0
- package/{ui → src/lib/ui}/autocomplete-chiplist-field/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/autocomplete-field/autocomplete-field.component.d.ts +25 -25
- package/src/lib/ui/autocomplete-field/index.d.ts +1 -0
- package/{ui → src/lib/ui}/autocomplete-field/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/button/button.component.d.ts +15 -15
- package/src/lib/ui/button/index.d.ts +1 -0
- package/{ui → src/lib/ui}/button/public-api.d.ts +1 -1
- package/src/lib/ui/checkbox-field/checkbox-field.component.d.ts +23 -0
- package/src/lib/ui/checkbox-field/index.d.ts +1 -0
- package/{ui → src/lib/ui}/checkbox-field/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/datepicker-field/datepicker-field.component.d.ts +32 -30
- package/src/lib/ui/datepicker-field/index.d.ts +1 -0
- package/{ui → src/lib/ui}/datepicker-field/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/divider/divider.component.d.ts +9 -9
- package/src/lib/ui/divider/index.d.ts +1 -0
- package/{ui → src/lib/ui}/divider/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/field-container/field-container.component.d.ts +24 -24
- package/src/lib/ui/field-container/index.d.ts +1 -0
- package/{ui → src/lib/ui}/field-container/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/file-dropzone/file-dropzone.directive.d.ts +10 -10
- package/src/lib/ui/file-dropzone/index.d.ts +1 -0
- package/{ui → src/lib/ui}/file-dropzone/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/file-upload-field/file-upload-field.component.d.ts +39 -37
- package/src/lib/ui/file-upload-field/index.d.ts +1 -0
- package/{ui → src/lib/ui}/file-upload-field/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/heading/heading.component.d.ts +8 -8
- package/src/lib/ui/heading/index.d.ts +1 -0
- package/{ui → src/lib/ui}/heading/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/image-upload-field/image-upload-field.component.d.ts +50 -48
- package/src/lib/ui/image-upload-field/index.d.ts +1 -0
- package/{ui → src/lib/ui}/image-upload-field/public-api.d.ts +1 -1
- package/src/lib/ui/index.d.ts +1 -0
- package/src/lib/ui/info/index.d.ts +1 -0
- package/{ui → src/lib/ui}/info/info.component.d.ts +7 -7
- package/{ui → src/lib/ui}/info/public-api.d.ts +1 -1
- package/src/lib/ui/input-field/index.d.ts +1 -0
- package/src/lib/ui/input-field/input-field.component.d.ts +24 -0
- package/{ui → src/lib/ui}/input-field/public-api.d.ts +1 -1
- package/src/lib/ui/option/index.d.ts +1 -0
- package/{ui → src/lib/ui}/option/option.component.d.ts +7 -7
- package/{ui → src/lib/ui}/option/public-api.d.ts +1 -1
- package/src/lib/ui/public-api.d.ts +6 -0
- package/src/lib/ui/radio-field/index.d.ts +1 -0
- package/{ui → src/lib/ui}/radio-field/public-api.d.ts +1 -1
- package/src/lib/ui/radio-field/radio-field.component.d.ts +25 -0
- package/src/lib/ui/select-field/index.d.ts +1 -0
- package/{ui → src/lib/ui}/select-field/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/select-field/select-field.component.d.ts +34 -32
- package/src/lib/ui/selected-file/index.d.ts +1 -0
- package/{ui → src/lib/ui}/selected-file/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/selected-file/selected-file.component.d.ts +10 -10
- package/src/lib/ui/slider-field/index.d.ts +1 -0
- package/{ui → src/lib/ui}/slider-field/public-api.d.ts +1 -1
- package/src/lib/ui/slider-field/slider-field.component.d.ts +24 -0
- package/src/lib/ui/textarea-field/index.d.ts +1 -0
- package/{ui → src/lib/ui}/textarea-field/public-api.d.ts +1 -1
- package/src/lib/ui/textarea-field/textarea-field.component.d.ts +23 -0
- package/src/lib/ui/unit-conversion-field/index.d.ts +1 -0
- package/{ui → src/lib/ui}/unit-conversion-field/public-api.d.ts +1 -1
- package/{ui → src/lib/ui}/unit-conversion-field/unit-conversion-field.component.d.ts +38 -36
- package/{utils → src/lib/utils}/abstracts/autocomplete-field.abstract.d.ts +28 -28
- package/{utils → src/lib/utils}/abstracts/crispr-control.mixin.d.ts +16 -16
- package/{utils → src/lib/utils}/abstracts/crispr-display-field.abstract.d.ts +22 -22
- package/{utils → src/lib/utils}/abstracts/crispr-field.abstract.d.ts +11 -11
- package/{utils → src/lib/utils}/abstracts/index.d.ts +4 -4
- package/{utils → src/lib/utils}/functions/buildFormGroupFromConfig.d.ts +9 -9
- package/{utils → src/lib/utils}/functions/callOptionsIfFunction.d.ts +3 -3
- package/{utils → src/lib/utils}/functions/createControlForType.d.ts +9 -9
- package/{utils → src/lib/utils}/functions/filterOptionsByLabel.d.ts +7 -7
- package/{utils → src/lib/utils}/functions/image-compression.helpers.d.ts +5 -5
- package/{utils → src/lib/utils}/functions/index.d.ts +7 -7
- package/{utils → src/lib/utils}/functions/isControlConfig.d.ts +5 -5
- package/{utils → src/lib/utils}/functions/observablifyOptions.d.ts +12 -12
- package/{ui → src/lib/utils}/index.d.ts +5 -5
- package/{utils → src/lib/utils}/models/autocomplete-chiplist-field.config.d.ts +20 -20
- package/{utils → src/lib/utils}/models/autocomplete-field.config.d.ts +14 -14
- package/{utils → src/lib/utils}/models/button.config.d.ts +17 -17
- package/{utils → src/lib/utils}/models/checkbox-field.config.d.ts +6 -6
- package/{utils → src/lib/utils}/models/crispr-field.config.d.ts +97 -94
- package/{utils → src/lib/utils}/models/datepicker-field.config.d.ts +20 -20
- package/{utils → src/lib/utils}/models/divider.config.d.ts +5 -5
- package/{utils → src/lib/utils}/models/file-upload-field.config.d.ts +33 -33
- package/{utils → src/lib/utils}/models/form-group-list.config.d.ts +18 -18
- package/{utils → src/lib/utils}/models/heading.config.d.ts +6 -6
- package/{utils → src/lib/utils}/models/image-upload-field.config.d.ts +54 -54
- package/{utils → src/lib/utils}/models/index.d.ts +17 -17
- package/{utils → src/lib/utils}/models/input-field.config.d.ts +16 -16
- package/{utils → src/lib/utils}/models/radio-field.config.d.ts +6 -6
- package/{utils → src/lib/utils}/models/select-field.config.d.ts +21 -21
- package/{utils → src/lib/utils}/models/slider-field.config.d.ts +11 -13
- package/{utils → src/lib/utils}/models/textarea-field.config.d.ts +5 -5
- package/{utils → src/lib/utils}/models/unit-conversion-field.config.d.ts +30 -30
- package/{utils → src/lib/utils}/operators/form.operators.d.ts +1 -1
- package/{utils → src/lib/utils}/operators/index.d.ts +1 -1
- package/{utils → src/lib/utils}/public-api.d.ts +4 -4
- package/tft-crispr-forms-17.0.0.tgz +0 -0
- package/esm2020/public-api.mjs +0 -5
- package/esm2020/src/lib/crispr-forms.module.mjs +0 -60
- package/esm2020/src/lib/display-field.directive.mjs +0 -53
- package/esm2020/src/lib/field-component-map.const.mjs +0 -27
- package/esm2020/src/lib/field.directive.mjs +0 -69
- package/esm2020/src/lib/form/form.component.mjs +0 -63
- package/esm2020/src/lib/form-group-list/form-group-list.component.mjs +0 -99
- package/esm2020/src/lib/pipes/initial-control-value.pipe.mjs +0 -21
- package/esm2020/src/lib/sub-group/sub-group.component.mjs +0 -21
- package/esm2020/src/lib/sub-group/sub-group.module.mjs +0 -42
- package/esm2020/ui/autocomplete-chiplist-field/autocomplete-chiplist-field.component.mjs +0 -130
- package/esm2020/ui/autocomplete-chiplist-field/public-api.mjs +0 -2
- package/esm2020/ui/autocomplete-chiplist-field/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs +0 -5
- package/esm2020/ui/autocomplete-field/autocomplete-field.component.mjs +0 -93
- package/esm2020/ui/autocomplete-field/public-api.mjs +0 -2
- package/esm2020/ui/autocomplete-field/tft-crispr-forms-ui-autocomplete-field.mjs +0 -5
- package/esm2020/ui/button/button.component.mjs +0 -49
- package/esm2020/ui/button/public-api.mjs +0 -2
- package/esm2020/ui/button/tft-crispr-forms-ui-button.mjs +0 -5
- package/esm2020/ui/checkbox-field/checkbox-field.component.mjs +0 -42
- package/esm2020/ui/checkbox-field/public-api.mjs +0 -2
- package/esm2020/ui/checkbox-field/tft-crispr-forms-ui-checkbox-field.mjs +0 -5
- package/esm2020/ui/datepicker-field/datepicker-field.component.mjs +0 -63
- package/esm2020/ui/datepicker-field/public-api.mjs +0 -2
- package/esm2020/ui/datepicker-field/tft-crispr-forms-ui-datepicker-field.mjs +0 -5
- package/esm2020/ui/divider/divider.component.mjs +0 -28
- package/esm2020/ui/divider/public-api.mjs +0 -2
- package/esm2020/ui/divider/tft-crispr-forms-ui-divider.mjs +0 -5
- package/esm2020/ui/field-container/field-container.component.mjs +0 -58
- package/esm2020/ui/field-container/public-api.mjs +0 -2
- package/esm2020/ui/field-container/tft-crispr-forms-ui-field-container.mjs +0 -5
- package/esm2020/ui/file-dropzone/file-dropzone.directive.mjs +0 -40
- package/esm2020/ui/file-dropzone/public-api.mjs +0 -2
- package/esm2020/ui/file-dropzone/tft-crispr-forms-ui-file-dropzone.mjs +0 -5
- package/esm2020/ui/file-upload-field/file-upload-field.component.mjs +0 -108
- package/esm2020/ui/file-upload-field/public-api.mjs +0 -2
- package/esm2020/ui/file-upload-field/tft-crispr-forms-ui-file-upload-field.mjs +0 -5
- package/esm2020/ui/heading/heading.component.mjs +0 -31
- package/esm2020/ui/heading/public-api.mjs +0 -2
- package/esm2020/ui/heading/tft-crispr-forms-ui-heading.mjs +0 -5
- package/esm2020/ui/image-upload-field/image-upload-field.component.mjs +0 -179
- package/esm2020/ui/image-upload-field/public-api.mjs +0 -2
- package/esm2020/ui/image-upload-field/tft-crispr-forms-ui-image-upload-field.mjs +0 -5
- package/esm2020/ui/info/info.component.mjs +0 -23
- package/esm2020/ui/info/public-api.mjs +0 -2
- package/esm2020/ui/info/tft-crispr-forms-ui-info.mjs +0 -5
- package/esm2020/ui/input-field/input-field.component.mjs +0 -41
- package/esm2020/ui/input-field/public-api.mjs +0 -2
- package/esm2020/ui/input-field/tft-crispr-forms-ui-input-field.mjs +0 -5
- package/esm2020/ui/option/option.component.mjs +0 -19
- package/esm2020/ui/option/public-api.mjs +0 -2
- package/esm2020/ui/option/tft-crispr-forms-ui-option.mjs +0 -5
- package/esm2020/ui/public-api.mjs +0 -7
- package/esm2020/ui/radio-field/public-api.mjs +0 -2
- package/esm2020/ui/radio-field/radio-field.component.mjs +0 -39
- package/esm2020/ui/radio-field/tft-crispr-forms-ui-radio-field.mjs +0 -5
- package/esm2020/ui/select-field/public-api.mjs +0 -2
- package/esm2020/ui/select-field/select-field.component.mjs +0 -73
- package/esm2020/ui/select-field/tft-crispr-forms-ui-select-field.mjs +0 -5
- package/esm2020/ui/selected-file/public-api.mjs +0 -2
- package/esm2020/ui/selected-file/selected-file.component.mjs +0 -26
- package/esm2020/ui/selected-file/tft-crispr-forms-ui-selected-file.mjs +0 -5
- package/esm2020/ui/slider-field/public-api.mjs +0 -2
- package/esm2020/ui/slider-field/slider-field.component.mjs +0 -44
- package/esm2020/ui/slider-field/tft-crispr-forms-ui-slider-field.mjs +0 -5
- package/esm2020/ui/textarea-field/public-api.mjs +0 -2
- package/esm2020/ui/textarea-field/textarea-field.component.mjs +0 -42
- package/esm2020/ui/textarea-field/tft-crispr-forms-ui-textarea-field.mjs +0 -5
- package/esm2020/ui/tft-crispr-forms-ui.mjs +0 -5
- package/esm2020/ui/unit-conversion-field/public-api.mjs +0 -2
- package/esm2020/ui/unit-conversion-field/tft-crispr-forms-ui-unit-conversion-field.mjs +0 -5
- package/esm2020/ui/unit-conversion-field/unit-conversion-field.component.mjs +0 -84
- package/esm2020/utils/abstracts/autocomplete-field.abstract.mjs +0 -30
- package/esm2020/utils/abstracts/crispr-control.mixin.mjs +0 -27
- package/esm2020/utils/abstracts/crispr-display-field.abstract.mjs +0 -14
- package/esm2020/utils/abstracts/crispr-field.abstract.mjs +0 -20
- package/esm2020/utils/abstracts/index.mjs +0 -5
- package/esm2020/utils/functions/buildFormGroupFromConfig.mjs +0 -28
- package/esm2020/utils/functions/callOptionsIfFunction.mjs +0 -4
- package/esm2020/utils/functions/createControlForType.mjs +0 -19
- package/esm2020/utils/functions/filterOptionsByLabel.mjs +0 -11
- package/esm2020/utils/functions/image-compression.helpers.mjs +0 -50
- package/esm2020/utils/functions/index.mjs +0 -8
- package/esm2020/utils/functions/isControlConfig.mjs +0 -7
- package/esm2020/utils/functions/observablifyOptions.mjs +0 -29
- package/esm2020/utils/models/autocomplete-chiplist-field.config.mjs +0 -2
- package/esm2020/utils/models/autocomplete-field.config.mjs +0 -2
- package/esm2020/utils/models/button.config.mjs +0 -2
- package/esm2020/utils/models/checkbox-field.config.mjs +0 -2
- package/esm2020/utils/models/crispr-field.config.mjs +0 -23
- package/esm2020/utils/models/datepicker-field.config.mjs +0 -2
- package/esm2020/utils/models/divider.config.mjs +0 -2
- package/esm2020/utils/models/file-upload-field.config.mjs +0 -2
- package/esm2020/utils/models/form-group-list.config.mjs +0 -2
- package/esm2020/utils/models/heading.config.mjs +0 -3
- package/esm2020/utils/models/image-upload-field.config.mjs +0 -2
- package/esm2020/utils/models/index.mjs +0 -18
- package/esm2020/utils/models/input-field.config.mjs +0 -2
- package/esm2020/utils/models/radio-field.config.mjs +0 -2
- package/esm2020/utils/models/select-field.config.mjs +0 -2
- package/esm2020/utils/models/slider-field.config.mjs +0 -2
- package/esm2020/utils/models/textarea-field.config.mjs +0 -2
- package/esm2020/utils/models/unit-conversion-field.config.mjs +0 -2
- package/esm2020/utils/operators/form.operators.mjs +0 -24
- package/esm2020/utils/operators/index.mjs +0 -2
- package/esm2020/utils/public-api.mjs +0 -5
- package/esm2020/utils/tft-crispr-forms-utils.mjs +0 -5
- package/fesm2015/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs +0 -138
- package/fesm2015/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-autocomplete-field.mjs +0 -101
- package/fesm2015/tft-crispr-forms-ui-autocomplete-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-button.mjs +0 -55
- package/fesm2015/tft-crispr-forms-ui-button.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-checkbox-field.mjs +0 -49
- package/fesm2015/tft-crispr-forms-ui-checkbox-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-datepicker-field.mjs +0 -71
- package/fesm2015/tft-crispr-forms-ui-datepicker-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-divider.mjs +0 -34
- package/fesm2015/tft-crispr-forms-ui-divider.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-field-container.mjs +0 -64
- package/fesm2015/tft-crispr-forms-ui-field-container.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-file-dropzone.mjs +0 -47
- package/fesm2015/tft-crispr-forms-ui-file-dropzone.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-file-upload-field.mjs +0 -117
- package/fesm2015/tft-crispr-forms-ui-file-upload-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-heading.mjs +0 -37
- package/fesm2015/tft-crispr-forms-ui-heading.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-image-upload-field.mjs +0 -182
- package/fesm2015/tft-crispr-forms-ui-image-upload-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-info.mjs +0 -30
- package/fesm2015/tft-crispr-forms-ui-info.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-input-field.mjs +0 -48
- package/fesm2015/tft-crispr-forms-ui-input-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-option.mjs +0 -26
- package/fesm2015/tft-crispr-forms-ui-option.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-radio-field.mjs +0 -46
- package/fesm2015/tft-crispr-forms-ui-radio-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-select-field.mjs +0 -81
- package/fesm2015/tft-crispr-forms-ui-select-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-selected-file.mjs +0 -33
- package/fesm2015/tft-crispr-forms-ui-selected-file.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-slider-field.mjs +0 -51
- package/fesm2015/tft-crispr-forms-ui-slider-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-textarea-field.mjs +0 -49
- package/fesm2015/tft-crispr-forms-ui-textarea-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui-unit-conversion-field.mjs +0 -93
- package/fesm2015/tft-crispr-forms-ui-unit-conversion-field.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-ui.mjs +0 -12
- package/fesm2015/tft-crispr-forms-ui.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms-utils.mjs +0 -280
- package/fesm2015/tft-crispr-forms-utils.mjs.map +0 -1
- package/fesm2015/tft-crispr-forms.mjs +0 -438
- package/fesm2015/tft-crispr-forms.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs +0 -137
- package/fesm2020/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-autocomplete-field.mjs +0 -100
- package/fesm2020/tft-crispr-forms-ui-autocomplete-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-button.mjs +0 -55
- package/fesm2020/tft-crispr-forms-ui-button.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-checkbox-field.mjs +0 -49
- package/fesm2020/tft-crispr-forms-ui-checkbox-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-datepicker-field.mjs +0 -70
- package/fesm2020/tft-crispr-forms-ui-datepicker-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-divider.mjs +0 -34
- package/fesm2020/tft-crispr-forms-ui-divider.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-field-container.mjs +0 -65
- package/fesm2020/tft-crispr-forms-ui-field-container.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-file-dropzone.mjs +0 -47
- package/fesm2020/tft-crispr-forms-ui-file-dropzone.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-file-upload-field.mjs +0 -115
- package/fesm2020/tft-crispr-forms-ui-file-upload-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-heading.mjs +0 -37
- package/fesm2020/tft-crispr-forms-ui-heading.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-image-upload-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-info.mjs +0 -30
- package/fesm2020/tft-crispr-forms-ui-info.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-input-field.mjs +0 -48
- package/fesm2020/tft-crispr-forms-ui-input-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-option.mjs +0 -26
- package/fesm2020/tft-crispr-forms-ui-option.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-radio-field.mjs +0 -46
- package/fesm2020/tft-crispr-forms-ui-radio-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-select-field.mjs +0 -80
- package/fesm2020/tft-crispr-forms-ui-select-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-selected-file.mjs +0 -33
- package/fesm2020/tft-crispr-forms-ui-selected-file.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-slider-field.mjs +0 -51
- package/fesm2020/tft-crispr-forms-ui-slider-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-textarea-field.mjs +0 -49
- package/fesm2020/tft-crispr-forms-ui-textarea-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui-unit-conversion-field.mjs +0 -91
- package/fesm2020/tft-crispr-forms-ui-unit-conversion-field.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-ui.mjs +0 -12
- package/fesm2020/tft-crispr-forms-ui.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms-utils.mjs.map +0 -1
- package/fesm2020/tft-crispr-forms.mjs +0 -434
- package/fesm2020/tft-crispr-forms.mjs.map +0 -1
- package/tft-crispr-forms-14.0.2.tgz +0 -0
- package/ui/README.md +0 -3
- package/ui/autocomplete-chiplist-field/index.d.ts +0 -5
- package/ui/autocomplete-field/index.d.ts +0 -5
- package/ui/button/index.d.ts +0 -5
- package/ui/checkbox-field/checkbox-field.component.d.ts +0 -21
- package/ui/checkbox-field/index.d.ts +0 -5
- package/ui/datepicker-field/index.d.ts +0 -5
- package/ui/divider/index.d.ts +0 -5
- package/ui/field-container/index.d.ts +0 -5
- package/ui/file-dropzone/index.d.ts +0 -5
- package/ui/file-upload-field/index.d.ts +0 -5
- package/ui/heading/index.d.ts +0 -5
- package/ui/image-upload-field/index.d.ts +0 -5
- package/ui/info/index.d.ts +0 -5
- package/ui/input-field/index.d.ts +0 -5
- package/ui/input-field/input-field.component.d.ts +0 -22
- package/ui/option/index.d.ts +0 -5
- package/ui/public-api.d.ts +0 -5
- package/ui/radio-field/index.d.ts +0 -5
- package/ui/radio-field/radio-field.component.d.ts +0 -23
- package/ui/select-field/index.d.ts +0 -5
- package/ui/selected-file/index.d.ts +0 -5
- package/ui/slider-field/index.d.ts +0 -5
- package/ui/slider-field/slider-field.component.d.ts +0 -25
- package/ui/textarea-field/index.d.ts +0 -5
- package/ui/textarea-field/textarea-field.component.d.ts +0 -21
- package/ui/unit-conversion-field/index.d.ts +0 -5
- package/utils/index.d.ts +0 -5
- /package/{utils → src/lib/utils}/README.md +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ThemePalette } from '@angular/material/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SelectedFileComponent {
|
|
4
|
-
fileName: string;
|
|
5
|
-
progress: number;
|
|
6
|
-
showProgress: boolean;
|
|
7
|
-
color: ThemePalette;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectedFileComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectedFileComponent, "crispr-selected-file", never, { "fileName": "fileName"; "progress": "progress"; "showProgress": "showProgress"; "color": "color"; }, {}, never, never, true>;
|
|
10
|
-
}
|
|
1
|
+
import { ThemePalette } from '@angular/material/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SelectedFileComponent {
|
|
4
|
+
fileName: string;
|
|
5
|
+
progress: number;
|
|
6
|
+
showProgress: boolean;
|
|
7
|
+
color: ThemePalette;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectedFileComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectedFileComponent, "crispr-selected-file", never, { "fileName": { "alias": "fileName"; "required": false; }; "progress": { "alias": "progress"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './slider-field.component';
|
|
1
|
+
export * from './slider-field.component';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { SliderFieldConfig } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare const SliderFieldMixin: {
|
|
5
|
+
new (): {
|
|
6
|
+
config: SliderFieldConfig;
|
|
7
|
+
group: import("@angular/forms").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<SliderFieldConfig>;
|
|
14
|
+
applyDefaultConfig(): void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare class SliderFieldComponent extends SliderFieldMixin implements OnInit {
|
|
18
|
+
defaultConfig: Partial<SliderFieldConfig>;
|
|
19
|
+
constructor();
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderFieldComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliderFieldComponent, "crispr-slider-field", never, {}, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './textarea-field.component';
|
|
1
|
+
export * from './textarea-field.component';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TextareaFieldConfig } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare const TextareaFieldMixin: {
|
|
5
|
+
new (): {
|
|
6
|
+
config: TextareaFieldConfig;
|
|
7
|
+
group: import("@angular/forms").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<TextareaFieldConfig>;
|
|
14
|
+
applyDefaultConfig(): void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare class TextareaFieldComponent extends TextareaFieldMixin implements OnInit {
|
|
18
|
+
defaultConfig: Partial<TextareaFieldConfig>;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaFieldComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaFieldComponent, "crispr-textarea-field", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './unit-conversion-field.component';
|
|
1
|
+
export * from './unit-conversion-field.component';
|
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { Observable, Subscription } from 'rxjs';
|
|
4
|
-
import { SelectOption, UnitConversionFieldConfig } from '
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
declare const UnitConversionFieldMixin:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { Observable, Subscription } from 'rxjs';
|
|
4
|
+
import { SelectOption, UnitConversionFieldConfig } from '../../utils';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
declare const UnitConversionFieldMixin: {
|
|
7
|
+
new (): {
|
|
8
|
+
config: UnitConversionFieldConfig;
|
|
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<UnitConversionFieldConfig>;
|
|
16
|
+
applyDefaultConfig(): void;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare class UnitConversionFieldComponent extends UnitConversionFieldMixin implements OnInit, OnDestroy {
|
|
20
|
+
defaultConfig: Partial<UnitConversionFieldConfig>;
|
|
21
|
+
displayValueControl: FormControl<any>;
|
|
22
|
+
unitSelectControl: FormControl<any>;
|
|
23
|
+
unitOptions$: Observable<SelectOption[]>;
|
|
24
|
+
transformationSubscription: Subscription;
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
setInitialDisplayValue(storedValue: any, unit: unknown): void;
|
|
28
|
+
/**
|
|
29
|
+
* We override the 'setControlValue' we inherited from crisprControlMixin and add our custom logic,
|
|
30
|
+
* This function gets called onInit because were object oriented. it's so great, so great that I'm
|
|
31
|
+
* typing a paragraph to explain what the hell is going on...
|
|
32
|
+
* @param value the initial value for the control passed down from the form components input
|
|
33
|
+
*/
|
|
34
|
+
setControlValue(value: any): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UnitConversionFieldComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UnitConversionFieldComponent, "crispr-unit-conversion-field", never, {}, {}, never, never, true, never>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import type { AutocompleteFieldConfig, AutocompleteChiplistFieldConfig, SelectOption } from '../models';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
7
|
-
declare const AbstractAutocompleteFieldMixin: {
|
|
8
|
-
new (): {
|
|
9
|
-
config: AutocompleteConfigTypes;
|
|
10
|
-
group: import("@angular/forms").FormGroup<any>;
|
|
11
|
-
control: import("@angular/forms").AbstractControl<any, any>;
|
|
12
|
-
_value: any;
|
|
13
|
-
value: any;
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
setControlValue(value: any): void;
|
|
16
|
-
defaultConfig?: Partial<AutocompleteConfigTypes>;
|
|
17
|
-
applyDefaultConfig(): void;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export declare class AbstractAutocompleteComponent<C> extends AbstractAutocompleteFieldMixin implements OnInit {
|
|
21
|
-
autocompleteInputControl: FormControl<string>;
|
|
22
|
-
options$: Observable<SelectOption[]>;
|
|
23
|
-
config: AutocompleteConfigTypes & C;
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractAutocompleteComponent<any>, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAutocompleteComponent<any>, never, never, {}, {}, never, never, false>;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import type { AutocompleteFieldConfig, AutocompleteChiplistFieldConfig, SelectOption } from '../models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
type AutocompleteConfigTypes = AutocompleteFieldConfig | AutocompleteChiplistFieldConfig;
|
|
7
|
+
declare const AbstractAutocompleteFieldMixin: {
|
|
8
|
+
new (): {
|
|
9
|
+
config: AutocompleteConfigTypes;
|
|
10
|
+
group: import("@angular/forms").FormGroup<any>;
|
|
11
|
+
control: import("@angular/forms").AbstractControl<any, any>;
|
|
12
|
+
_value: any;
|
|
13
|
+
value: any;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
setControlValue(value: any): void;
|
|
16
|
+
defaultConfig?: Partial<AutocompleteConfigTypes>;
|
|
17
|
+
applyDefaultConfig(): void;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare class AbstractAutocompleteComponent<C> extends AbstractAutocompleteFieldMixin implements OnInit {
|
|
21
|
+
autocompleteInputControl: FormControl<string>;
|
|
22
|
+
options$: Observable<SelectOption[]>;
|
|
23
|
+
config: AutocompleteConfigTypes & C;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractAutocompleteComponent<any>, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAutocompleteComponent<any>, never, never, {}, {}, never, never, false, never>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { FormGroup, AbstractControl } from '@angular/forms';
|
|
2
|
-
import { CrisprControlConfig, ControlValue } from '../models/crispr-field.config';
|
|
3
|
-
import { CrisprFieldComponent } from './crispr-field.abstract';
|
|
4
|
-
export declare function crisprControlMixin<C extends CrisprControlConfig>(BaseClass: typeof CrisprFieldComponent): {
|
|
5
|
-
new (): {
|
|
6
|
-
config: C;
|
|
7
|
-
group: FormGroup;
|
|
8
|
-
control: AbstractControl;
|
|
9
|
-
_value: ControlValue;
|
|
10
|
-
value: any;
|
|
11
|
-
ngOnInit(): void;
|
|
12
|
-
setControlValue(value: ControlValue): void;
|
|
13
|
-
defaultConfig?: Partial<C>;
|
|
14
|
-
applyDefaultConfig(): void;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
1
|
+
import { FormGroup, AbstractControl } from '@angular/forms';
|
|
2
|
+
import { CrisprControlConfig, ControlValue } from '../models/crispr-field.config';
|
|
3
|
+
import { CrisprFieldComponent } from './crispr-field.abstract';
|
|
4
|
+
export declare function crisprControlMixin<C extends CrisprControlConfig>(BaseClass: typeof CrisprFieldComponent): {
|
|
5
|
+
new (): {
|
|
6
|
+
config: C;
|
|
7
|
+
group: FormGroup;
|
|
8
|
+
control: AbstractControl;
|
|
9
|
+
_value: ControlValue;
|
|
10
|
+
value: any;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
setControlValue(value: ControlValue): void;
|
|
13
|
+
defaultConfig?: Partial<C>;
|
|
14
|
+
applyDefaultConfig(): void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import type { CrisprControlConfig } from '../models';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
declare const CrisprDisplayFieldMixin: {
|
|
5
|
-
new (): {
|
|
6
|
-
config: CrisprControlConfig<null>;
|
|
7
|
-
group: import("@angular/forms").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<CrisprControlConfig<null>>;
|
|
14
|
-
applyDefaultConfig(): void;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare abstract class CrisprDisplayFieldComponent extends CrisprDisplayFieldMixin implements OnInit {
|
|
18
|
-
index?: number;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrisprDisplayFieldComponent, never>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprDisplayFieldComponent, never, never, {}, {}, never, never, false>;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
1
|
+
import type { CrisprControlConfig } from '../models';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare const CrisprDisplayFieldMixin: {
|
|
5
|
+
new (): {
|
|
6
|
+
config: CrisprControlConfig<null>;
|
|
7
|
+
group: import("@angular/forms").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<CrisprControlConfig<null>>;
|
|
14
|
+
applyDefaultConfig(): void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare abstract class CrisprDisplayFieldComponent extends CrisprDisplayFieldMixin implements OnInit {
|
|
18
|
+
index?: number;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrisprDisplayFieldComponent, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprDisplayFieldComponent, never, never, {}, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { CrisprFieldConfig } from '../models';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare abstract class CrisprFieldComponent<C extends CrisprFieldConfig> implements OnInit {
|
|
5
|
-
config: C;
|
|
6
|
-
defaultConfig?: Partial<C>;
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
applyDefaultConfig(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFieldComponent<any>, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldComponent<any>, never, never, {}, {}, never, never, true>;
|
|
11
|
-
}
|
|
1
|
+
import type { CrisprFieldConfig } from '../models';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class CrisprFieldComponent<C extends CrisprFieldConfig> implements OnInit {
|
|
5
|
+
config: C;
|
|
6
|
+
defaultConfig?: Partial<C>;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
applyDefaultConfig(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFieldComponent<any>, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldComponent<any>, never, never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './autocomplete-field.abstract';
|
|
2
|
-
export * from './crispr-control.mixin';
|
|
3
|
-
export * from './crispr-field.abstract';
|
|
4
|
-
export * from './crispr-display-field.abstract';
|
|
1
|
+
export * from './autocomplete-field.abstract';
|
|
2
|
+
export * from './crispr-control.mixin';
|
|
3
|
+
export * from './crispr-field.abstract';
|
|
4
|
+
export * from './crispr-display-field.abstract';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FormGroup } from "@angular/forms";
|
|
2
|
-
import { FormConfig } from "../models";
|
|
3
|
-
/**
|
|
4
|
-
* builds out form group based on config
|
|
5
|
-
* @param config a configuration for a form group
|
|
6
|
-
* @param value an object of initial values to pass in
|
|
7
|
-
* @param group the form group to modify and build out
|
|
8
|
-
*/
|
|
9
|
-
export declare function buildFormGroupFromConfig(config: FormConfig, value?: any, group?: FormGroup): FormGroup<any>;
|
|
1
|
+
import { FormGroup } from "@angular/forms";
|
|
2
|
+
import { FormConfig } from "../models";
|
|
3
|
+
/**
|
|
4
|
+
* builds out form group based on config
|
|
5
|
+
* @param config a configuration for a form group
|
|
6
|
+
* @param value an object of initial values to pass in
|
|
7
|
+
* @param group the form group to modify and build out
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildFormGroupFromConfig(config: FormConfig, value?: any, group?: FormGroup): FormGroup<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormGroup } from "@angular/forms";
|
|
2
|
-
import { AutocompleteOptionsCallback, OptionsType } from "../models";
|
|
3
|
-
export declare function callOptionsIfFunction(options: OptionsType | AutocompleteOptionsCallback, parentGroup?: FormGroup, searchString?: string): OptionsType;
|
|
1
|
+
import { FormGroup } from "@angular/forms";
|
|
2
|
+
import { AutocompleteOptionsCallback, OptionsType } from "../models";
|
|
3
|
+
export declare function callOptionsIfFunction(options: OptionsType | AutocompleteOptionsCallback, parentGroup?: FormGroup, searchString?: string): OptionsType;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FormArray, FormControl } from "@angular/forms";
|
|
2
|
-
import { AnyFieldConfig, ControlValue } from "../models";
|
|
3
|
-
/**
|
|
4
|
-
* Analyze the config and build a form control to spec. Notice we don't use FormBuilder here
|
|
5
|
-
* as we want to keep this function pure.
|
|
6
|
-
* @param controlConfig the configuration object for the control to build
|
|
7
|
-
* @param value an initial value to use if passed in
|
|
8
|
-
*/
|
|
9
|
-
export declare function createControlForType(controlConfig: AnyFieldConfig, value?: ControlValue): import("@angular/forms").FormGroup<any> | FormArray<any> | FormControl<any>;
|
|
1
|
+
import { FormArray, FormControl } from "@angular/forms";
|
|
2
|
+
import { AnyFieldConfig, ControlValue } from "../models";
|
|
3
|
+
/**
|
|
4
|
+
* Analyze the config and build a form control to spec. Notice we don't use FormBuilder here
|
|
5
|
+
* as we want to keep this function pure.
|
|
6
|
+
* @param controlConfig the configuration object for the control to build
|
|
7
|
+
* @param value an initial value to use if passed in
|
|
8
|
+
*/
|
|
9
|
+
export declare function createControlForType(controlConfig: AnyFieldConfig, value?: ControlValue): import("@angular/forms").FormGroup<any> | FormArray<any> | FormControl<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SelectOption } from "../models";
|
|
2
|
-
/**
|
|
3
|
-
* A basic filter function that filters the search string against the label of the options object
|
|
4
|
-
* @param options the array of options to filter
|
|
5
|
-
* @param searchString the string from the input
|
|
6
|
-
*/
|
|
7
|
-
export declare function filterOptionsByLabel(options: SelectOption[], searchString: string): SelectOption[];
|
|
1
|
+
import { SelectOption } from "../models";
|
|
2
|
+
/**
|
|
3
|
+
* A basic filter function that filters the search string against the label of the options object
|
|
4
|
+
* @param options the array of options to filter
|
|
5
|
+
* @param searchString the string from the input
|
|
6
|
+
*/
|
|
7
|
+
export declare function filterOptionsByLabel(options: SelectOption[], searchString: string): SelectOption[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ValidatorFn } from "@angular/forms";
|
|
2
|
-
export declare function convertBytesToMb(bytes: number): number;
|
|
3
|
-
export declare function maxFileSizeValidator(maxFileSize: number): ValidatorFn;
|
|
4
|
-
export declare function allowedFileExtValidator(allowedFileExtensions: string[], onlyAllowFiles?: boolean): ValidatorFn;
|
|
5
|
-
export declare function allowedFileType(matchExp: string | RegExp): ValidatorFn;
|
|
1
|
+
import { ValidatorFn } from "@angular/forms";
|
|
2
|
+
export declare function convertBytesToMb(bytes: number): number;
|
|
3
|
+
export declare function maxFileSizeValidator(maxFileSize: number): ValidatorFn;
|
|
4
|
+
export declare function allowedFileExtValidator(allowedFileExtensions: string[], onlyAllowFiles?: boolean): ValidatorFn;
|
|
5
|
+
export declare function allowedFileType(matchExp: string | RegExp): ValidatorFn;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './buildFormGroupFromConfig';
|
|
2
|
-
export * from './callOptionsIfFunction';
|
|
3
|
-
export * from './createControlForType';
|
|
4
|
-
export * from './filterOptionsByLabel';
|
|
5
|
-
export * from './isControlConfig';
|
|
6
|
-
export * from './observablifyOptions';
|
|
7
|
-
export * from './image-compression.helpers';
|
|
1
|
+
export * from './buildFormGroupFromConfig';
|
|
2
|
+
export * from './callOptionsIfFunction';
|
|
3
|
+
export * from './createControlForType';
|
|
4
|
+
export * from './filterOptionsByLabel';
|
|
5
|
+
export * from './isControlConfig';
|
|
6
|
+
export * from './observablifyOptions';
|
|
7
|
+
export * from './image-compression.helpers';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CrisprControlConfig, CrisprFieldConfig } from "../models";
|
|
2
|
-
/**
|
|
3
|
-
* Determines if the field config is for a form control (not a divider, heading or other non-control field)
|
|
4
|
-
|
|
5
|
-
export declare function isControlConfig(fieldConfig: CrisprFieldConfig): fieldConfig is CrisprControlConfig;
|
|
1
|
+
import { CrisprControlConfig, CrisprFieldConfig } from "../models";
|
|
2
|
+
/**
|
|
3
|
+
* Determines if the field config is for a form control (not a divider, heading or other non-control field)
|
|
4
|
+
*/
|
|
5
|
+
export declare function isControlConfig(fieldConfig: CrisprFieldConfig): fieldConfig is CrisprControlConfig;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FormGroup } from "@angular/forms";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { OptionsType, SelectOption } from "../models";
|
|
4
|
-
/**
|
|
5
|
-
* The user can give us select options as an array, a function that resolves to a promise,
|
|
6
|
-
* or an observable. This functions consumes any of those and returns an observable that
|
|
7
|
-
* resolves an array of options
|
|
8
|
-
*
|
|
9
|
-
* @param options the options passed in from the config
|
|
10
|
-
* @param emptyMessageOption the message to display when the array is empty
|
|
11
|
-
*/
|
|
12
|
-
export declare function observablifyOptions(options: OptionsType, parentGroup: FormGroup, searchString?: string): Observable<SelectOption[]>;
|
|
1
|
+
import { FormGroup } from "@angular/forms";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { OptionsType, SelectOption } from "../models";
|
|
4
|
+
/**
|
|
5
|
+
* The user can give us select options as an array, a function that resolves to a promise,
|
|
6
|
+
* or an observable. This functions consumes any of those and returns an observable that
|
|
7
|
+
* resolves an array of options
|
|
8
|
+
*
|
|
9
|
+
* @param options the options passed in from the config
|
|
10
|
+
* @param emptyMessageOption the message to display when the array is empty
|
|
11
|
+
*/
|
|
12
|
+
export declare function observablifyOptions(options: OptionsType, parentGroup: FormGroup, searchString?: string): Observable<SelectOption[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="@tft/crispr-forms/
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@tft/crispr-forms/src/lib/utils" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { AbstractAutocompleteFieldConfig } from './autocomplete-field.config';
|
|
2
|
-
import { SelectOption } from './select-field.config';
|
|
3
|
-
import { ControlType, FieldDescriptors, MatFieldProperties } from './crispr-field.config';
|
|
4
|
-
export interface AutocompleteChiplistFieldConfig extends AbstractAutocompleteFieldConfig, FieldDescriptors, MatFieldProperties {
|
|
5
|
-
controlType: ControlType.AUTOCOMPLETE_CHIPLIST;
|
|
6
|
-
autoActiveFirstOption?: boolean;
|
|
7
|
-
chipsSelectable?: boolean;
|
|
8
|
-
areChipsRemovable?: boolean;
|
|
9
|
-
allowDuplicates?: boolean;
|
|
10
|
-
duplicateCompareFunction?: (chip: SelectOption, availableOption: SelectOption) => boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Pass in any key codes to use for selection
|
|
13
|
-
*/
|
|
14
|
-
separatorKeyCodes?: number[];
|
|
15
|
-
tabToSelect?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated replaced with tabToSelect as it is more accurate
|
|
18
|
-
*/
|
|
19
|
-
addChipOnBlur?: boolean;
|
|
20
|
-
}
|
|
1
|
+
import { AbstractAutocompleteFieldConfig } from './autocomplete-field.config';
|
|
2
|
+
import { SelectOption } from './select-field.config';
|
|
3
|
+
import { ControlType, FieldDescriptors, MatFieldProperties } from './crispr-field.config';
|
|
4
|
+
export interface AutocompleteChiplistFieldConfig extends AbstractAutocompleteFieldConfig, FieldDescriptors, MatFieldProperties {
|
|
5
|
+
controlType: ControlType.AUTOCOMPLETE_CHIPLIST;
|
|
6
|
+
autoActiveFirstOption?: boolean;
|
|
7
|
+
chipsSelectable?: boolean;
|
|
8
|
+
areChipsRemovable?: boolean;
|
|
9
|
+
allowDuplicates?: boolean;
|
|
10
|
+
duplicateCompareFunction?: (chip: SelectOption, availableOption: SelectOption) => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Pass in any key codes to use for selection
|
|
13
|
+
*/
|
|
14
|
+
separatorKeyCodes?: number[];
|
|
15
|
+
tabToSelect?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated replaced with tabToSelect as it is more accurate
|
|
18
|
+
*/
|
|
19
|
+
addChipOnBlur?: boolean;
|
|
20
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { AutocompleteOptionsCallback, SelectOption } from './select-field.config';
|
|
2
|
-
import { FieldDescriptors, MatFieldProperties, CrisprControlConfig, ControlType } from './crispr-field.config';
|
|
3
|
-
export interface AbstractAutocompleteFieldConfig extends CrisprControlConfig, FieldDescriptors, MatFieldProperties {
|
|
4
|
-
typeToEmit?: boolean;
|
|
5
|
-
typeDebounceTime?: number;
|
|
6
|
-
emptyOptionsMessage?: string;
|
|
7
|
-
options: AutocompleteOptionsCallback;
|
|
8
|
-
autoActiveFirstOption?: boolean;
|
|
9
|
-
imageUrlParam?: string;
|
|
10
|
-
displayWith?: (options: SelectOption[]) => (value: unknown) => string;
|
|
11
|
-
}
|
|
12
|
-
export interface AutocompleteFieldConfig extends AbstractAutocompleteFieldConfig {
|
|
13
|
-
controlType: ControlType.AUTOCOMPLETE;
|
|
14
|
-
}
|
|
1
|
+
import { AutocompleteOptionsCallback, SelectOption } from './select-field.config';
|
|
2
|
+
import { FieldDescriptors, MatFieldProperties, CrisprControlConfig, ControlType } from './crispr-field.config';
|
|
3
|
+
export interface AbstractAutocompleteFieldConfig extends CrisprControlConfig, FieldDescriptors, MatFieldProperties {
|
|
4
|
+
typeToEmit?: boolean;
|
|
5
|
+
typeDebounceTime?: number;
|
|
6
|
+
emptyOptionsMessage?: string;
|
|
7
|
+
options: AutocompleteOptionsCallback;
|
|
8
|
+
autoActiveFirstOption?: boolean;
|
|
9
|
+
imageUrlParam?: string;
|
|
10
|
+
displayWith?: (options: SelectOption[]) => (value: unknown) => string;
|
|
11
|
+
}
|
|
12
|
+
export interface AutocompleteFieldConfig extends AbstractAutocompleteFieldConfig {
|
|
13
|
+
controlType: ControlType.AUTOCOMPLETE;
|
|
14
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { CrisprFieldConfig, ControlType, MatFieldProperties, Info } from './crispr-field.config';
|
|
2
|
-
import { ThemePalette } from '@angular/material/core';
|
|
3
|
-
import { FormGroup } from '@angular/forms';
|
|
4
|
-
export interface ButtonConfig extends CrisprFieldConfig, MatFieldProperties {
|
|
5
|
-
label?: string;
|
|
6
|
-
controlType: ControlType.BUTTON;
|
|
7
|
-
type?: 'submit' | 'reset' | 'button';
|
|
8
|
-
callback?: (group?: FormGroup, event?: MouseEvent) => unknown;
|
|
9
|
-
buttonType?: MatButtonType;
|
|
10
|
-
color?: ThemePalette;
|
|
11
|
-
icon?: string;
|
|
12
|
-
info?: Omit<Info, 'iconName'>;
|
|
13
|
-
disabledOnInvalidForm?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
export {};
|
|
1
|
+
import { CrisprFieldConfig, ControlType, MatFieldProperties, Info } from './crispr-field.config';
|
|
2
|
+
import { ThemePalette } from '@angular/material/core';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
export interface ButtonConfig extends CrisprFieldConfig, MatFieldProperties {
|
|
5
|
+
label?: string;
|
|
6
|
+
controlType: ControlType.BUTTON;
|
|
7
|
+
type?: 'submit' | 'reset' | 'button';
|
|
8
|
+
callback?: (group?: FormGroup, event?: MouseEvent) => unknown;
|
|
9
|
+
buttonType?: MatButtonType;
|
|
10
|
+
color?: ThemePalette;
|
|
11
|
+
icon?: string;
|
|
12
|
+
info?: Omit<Info, 'iconName'>;
|
|
13
|
+
disabledOnInvalidForm?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type ButtonType = 'submit' | 'reset' | 'button';
|
|
16
|
+
type MatButtonType = 'raised' | 'flat' | 'stroked' | 'icon';
|
|
17
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FieldDescriptors, MatFieldProperties, CrisprControlConfig, ControlType } from './crispr-field.config';
|
|
2
|
-
export interface CheckboxFieldConfig extends CrisprControlConfig, Pick<FieldDescriptors, 'label' | 'info'>, Pick<MatFieldProperties, 'color'> {
|
|
3
|
-
controlType: ControlType.CHECKBOX;
|
|
4
|
-
labelPosition?: 'before' | 'after';
|
|
5
|
-
inline?: boolean;
|
|
6
|
-
}
|
|
1
|
+
import { FieldDescriptors, MatFieldProperties, CrisprControlConfig, ControlType } from './crispr-field.config';
|
|
2
|
+
export interface CheckboxFieldConfig extends CrisprControlConfig, Pick<FieldDescriptors, 'label' | 'info'>, Pick<MatFieldProperties, 'color'> {
|
|
3
|
+
controlType: ControlType.CHECKBOX;
|
|
4
|
+
labelPosition?: 'before' | 'after';
|
|
5
|
+
inline?: boolean;
|
|
6
|
+
}
|