@tft/crispr-forms 14.0.1-rc.0 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/{lib → src/lib}/pipes/crispr-pipes.module.mjs +1 -1
- 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 +130 -0
- package/esm2020/ui/autocomplete-chiplist-field/public-api.mjs +2 -0
- package/esm2020/ui/autocomplete-chiplist-field/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs +5 -0
- package/esm2020/ui/autocomplete-field/autocomplete-field.component.mjs +93 -0
- package/esm2020/ui/autocomplete-field/public-api.mjs +2 -0
- package/esm2020/ui/autocomplete-field/tft-crispr-forms-ui-autocomplete-field.mjs +5 -0
- package/esm2020/ui/button/button.component.mjs +49 -0
- package/esm2020/ui/button/public-api.mjs +2 -0
- package/esm2020/ui/button/tft-crispr-forms-ui-button.mjs +5 -0
- package/esm2020/ui/checkbox-field/checkbox-field.component.mjs +42 -0
- package/esm2020/ui/checkbox-field/public-api.mjs +2 -0
- package/esm2020/ui/checkbox-field/tft-crispr-forms-ui-checkbox-field.mjs +5 -0
- package/esm2020/ui/datepicker-field/datepicker-field.component.mjs +63 -0
- package/esm2020/ui/datepicker-field/public-api.mjs +2 -0
- package/esm2020/ui/datepicker-field/tft-crispr-forms-ui-datepicker-field.mjs +5 -0
- package/esm2020/ui/divider/divider.component.mjs +28 -0
- package/esm2020/ui/divider/public-api.mjs +2 -0
- package/esm2020/ui/divider/tft-crispr-forms-ui-divider.mjs +5 -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-field/file-upload-field.component.mjs +108 -0
- package/esm2020/ui/file-upload-field/public-api.mjs +2 -0
- package/esm2020/ui/file-upload-field/tft-crispr-forms-ui-file-upload-field.mjs +5 -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/input-field.component.mjs +41 -0
- package/esm2020/ui/input-field/public-api.mjs +2 -0
- package/esm2020/ui/input-field/tft-crispr-forms-ui-input-field.mjs +5 -0
- package/esm2020/ui/option/option.component.mjs +19 -0
- package/esm2020/ui/option/public-api.mjs +2 -0
- package/esm2020/ui/option/tft-crispr-forms-ui-option.mjs +5 -0
- package/esm2020/ui/public-api.mjs +7 -0
- package/esm2020/ui/radio-field/public-api.mjs +2 -0
- package/esm2020/ui/radio-field/radio-field.component.mjs +39 -0
- package/esm2020/ui/radio-field/tft-crispr-forms-ui-radio-field.mjs +5 -0
- package/esm2020/ui/select-field/public-api.mjs +2 -0
- package/esm2020/ui/select-field/select-field.component.mjs +73 -0
- package/esm2020/ui/select-field/tft-crispr-forms-ui-select-field.mjs +5 -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/public-api.mjs +2 -0
- package/esm2020/ui/slider-field/slider-field.component.mjs +44 -0
- package/esm2020/ui/slider-field/tft-crispr-forms-ui-slider-field.mjs +5 -0
- package/esm2020/ui/textarea-field/public-api.mjs +2 -0
- package/esm2020/ui/textarea-field/textarea-field.component.mjs +42 -0
- package/esm2020/ui/textarea-field/tft-crispr-forms-ui-textarea-field.mjs +5 -0
- package/esm2020/ui/tft-crispr-forms-ui.mjs +5 -0
- package/esm2020/ui/unit-conversion-field/public-api.mjs +2 -0
- package/esm2020/ui/unit-conversion-field/tft-crispr-forms-ui-unit-conversion-field.mjs +5 -0
- package/esm2020/ui/unit-conversion-field/unit-conversion-field.component.mjs +84 -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-autocomplete-chiplist-field.mjs +138 -0
- package/fesm2015/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-autocomplete-field.mjs +101 -0
- package/fesm2015/tft-crispr-forms-ui-autocomplete-field.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-button.mjs +55 -0
- package/fesm2015/tft-crispr-forms-ui-button.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-checkbox-field.mjs +49 -0
- package/fesm2015/tft-crispr-forms-ui-checkbox-field.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-datepicker-field.mjs +71 -0
- package/fesm2015/tft-crispr-forms-ui-datepicker-field.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-divider.mjs +34 -0
- package/fesm2015/tft-crispr-forms-ui-divider.mjs.map +1 -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-file-upload-field.mjs +117 -0
- package/fesm2015/tft-crispr-forms-ui-file-upload-field.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-input-field.mjs +48 -0
- package/fesm2015/tft-crispr-forms-ui-input-field.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-option.mjs +26 -0
- package/fesm2015/tft-crispr-forms-ui-option.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-radio-field.mjs +46 -0
- package/fesm2015/tft-crispr-forms-ui-radio-field.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-select-field.mjs +81 -0
- package/fesm2015/tft-crispr-forms-ui-select-field.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-slider-field.mjs +51 -0
- package/fesm2015/tft-crispr-forms-ui-slider-field.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-textarea-field.mjs +49 -0
- package/fesm2015/tft-crispr-forms-ui-textarea-field.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui-unit-conversion-field.mjs +93 -0
- package/fesm2015/tft-crispr-forms-ui-unit-conversion-field.mjs.map +1 -0
- package/fesm2015/tft-crispr-forms-ui.mjs +12 -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 +131 -2128
- package/fesm2015/tft-crispr-forms.mjs.map +1 -1
- package/fesm2020/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs +137 -0
- package/fesm2020/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-autocomplete-field.mjs +100 -0
- package/fesm2020/tft-crispr-forms-ui-autocomplete-field.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-button.mjs +55 -0
- package/fesm2020/tft-crispr-forms-ui-button.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-checkbox-field.mjs +49 -0
- package/fesm2020/tft-crispr-forms-ui-checkbox-field.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-datepicker-field.mjs +70 -0
- package/fesm2020/tft-crispr-forms-ui-datepicker-field.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-divider.mjs +34 -0
- package/fesm2020/tft-crispr-forms-ui-divider.mjs.map +1 -0
- 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-file-upload-field.mjs +115 -0
- package/fesm2020/tft-crispr-forms-ui-file-upload-field.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-input-field.mjs +48 -0
- package/fesm2020/tft-crispr-forms-ui-input-field.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-option.mjs +26 -0
- package/fesm2020/tft-crispr-forms-ui-option.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-radio-field.mjs +46 -0
- package/fesm2020/tft-crispr-forms-ui-radio-field.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-select-field.mjs +80 -0
- package/fesm2020/tft-crispr-forms-ui-select-field.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-slider-field.mjs +51 -0
- package/fesm2020/tft-crispr-forms-ui-slider-field.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-textarea-field.mjs +49 -0
- package/fesm2020/tft-crispr-forms-ui-textarea-field.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui-unit-conversion-field.mjs +91 -0
- package/fesm2020/tft-crispr-forms-ui-unit-conversion-field.mjs.map +1 -0
- package/fesm2020/tft-crispr-forms-ui.mjs +12 -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 +129 -2119
- package/fesm2020/tft-crispr-forms.mjs.map +1 -1
- package/index.d.ts +5 -1
- package/package.json +179 -4
- 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/src/lib/field-component-map.const.d.ts +42 -0
- package/{lib → src/lib}/field.directive.d.ts +4 -10
- package/{lib → src/lib}/form/form.component.d.ts +2 -12
- 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 +1 -1
- package/src/lib/public_api.d.ts +2 -0
- package/{lib → src/lib}/sub-group/index.d.ts +0 -0
- package/{lib → src/lib}/sub-group/sub-group.component.d.ts +11 -13
- package/{lib → src/lib}/sub-group/sub-group.module.d.ts +2 -2
- package/tft-crispr-forms-14.0.1.tgz +0 -0
- package/ui/README.md +3 -0
- package/{lib/material → ui}/autocomplete-chiplist-field/autocomplete-chiplist-field.component.d.ts +2 -18
- package/ui/autocomplete-chiplist-field/index.d.ts +5 -0
- package/ui/autocomplete-chiplist-field/public-api.d.ts +1 -0
- package/{lib/material → ui}/autocomplete-field/autocomplete-field.component.d.ts +2 -16
- package/ui/autocomplete-field/index.d.ts +5 -0
- package/ui/autocomplete-field/public-api.d.ts +1 -0
- package/ui/button/button.component.d.ts +15 -0
- package/ui/button/index.d.ts +5 -0
- package/ui/button/public-api.d.ts +1 -0
- package/ui/checkbox-field/checkbox-field.component.d.ts +21 -0
- package/ui/checkbox-field/index.d.ts +5 -0
- package/ui/checkbox-field/public-api.d.ts +1 -0
- package/ui/datepicker-field/datepicker-field.component.d.ts +30 -0
- package/ui/datepicker-field/index.d.ts +5 -0
- package/ui/datepicker-field/public-api.d.ts +1 -0
- package/ui/divider/divider.component.d.ts +9 -0
- package/ui/divider/index.d.ts +5 -0
- package/ui/divider/public-api.d.ts +1 -0
- package/{lib → ui}/field-container/field-container.component.d.ts +2 -9
- 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-field/file-upload-field.component.d.ts +37 -0
- package/ui/file-upload-field/index.d.ts +5 -0
- package/ui/file-upload-field/public-api.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 +5 -0
- package/ui/input-field/input-field.component.d.ts +22 -0
- package/ui/input-field/public-api.d.ts +1 -0
- package/ui/option/index.d.ts +5 -0
- package/ui/option/option.component.d.ts +7 -0
- package/{lib/material/option/index.d.ts → ui/option/public-api.d.ts} +0 -0
- package/ui/public-api.d.ts +5 -0
- package/ui/radio-field/index.d.ts +5 -0
- package/ui/radio-field/public-api.d.ts +1 -0
- package/ui/radio-field/radio-field.component.d.ts +23 -0
- package/ui/select-field/index.d.ts +5 -0
- package/ui/select-field/public-api.d.ts +1 -0
- package/ui/select-field/select-field.component.d.ts +32 -0
- 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 +5 -0
- package/ui/slider-field/public-api.d.ts +1 -0
- package/ui/slider-field/slider-field.component.d.ts +25 -0
- package/ui/textarea-field/index.d.ts +5 -0
- package/ui/textarea-field/public-api.d.ts +1 -0
- package/ui/textarea-field/textarea-field.component.d.ts +21 -0
- package/ui/unit-conversion-field/index.d.ts +5 -0
- package/ui/unit-conversion-field/public-api.d.ts +1 -0
- package/ui/unit-conversion-field/unit-conversion-field.component.d.ts +36 -0
- package/utils/README.md +3 -0
- package/{lib → utils}/abstracts/autocomplete-field.abstract.d.ts +0 -0
- 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 +1 -10
- package/{lib → utils}/models/datepicker-field.config.d.ts +1 -2
- package/{lib → utils}/models/divider.config.d.ts +1 -1
- package/{lib → utils}/models/file-upload-field.config.d.ts +9 -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 -65
- package/esm2020/lib/field-component-map.const.mjs +0 -28
- package/esm2020/lib/field-container/field-container.component.mjs +0 -83
- package/esm2020/lib/field-container/index.mjs +0 -2
- package/esm2020/lib/field.directive.mjs +0 -88
- package/esm2020/lib/form/form.component.mjs +0 -88
- 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 -52
- 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 -165
- package/esm2020/lib/material/autocomplete-field/autocomplete-field.component.mjs +0 -124
- package/esm2020/lib/material/button/button.component.mjs +0 -70
- package/esm2020/lib/material/checkbox-field/checkbox-field.component.mjs +0 -69
- package/esm2020/lib/material/datepicker-field/datepicker-field.component.mjs +0 -91
- package/esm2020/lib/material/divider/divider.component.mjs +0 -46
- package/esm2020/lib/material/file-upload/file-dropzone.directive.mjs +0 -39
- package/esm2020/lib/material/file-upload/file-upload.component.mjs +0 -143
- package/esm2020/lib/material/file-upload/index.mjs +0 -3
- package/esm2020/lib/material/heading/heading.component.mjs +0 -52
- 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 -263
- 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 -44
- package/esm2020/lib/material/input-field/input-field.component.mjs +0 -66
- package/esm2020/lib/material/material.module.mjs +0 -96
- package/esm2020/lib/material/option/index.mjs +0 -2
- package/esm2020/lib/material/option/option.component.mjs +0 -39
- package/esm2020/lib/material/radio-field/radio-field.component.mjs +0 -60
- package/esm2020/lib/material/select-field/select-field.component.mjs +0 -108
- package/esm2020/lib/material/selected-file/selected-file.component.mjs +0 -45
- package/esm2020/lib/material/slider-field/slider-field.component.mjs +0 -69
- package/esm2020/lib/material/textarea-field/textarea-field.component.mjs +0 -67
- package/esm2020/lib/material/unit-conversion-field/unit-conversion-field.component.mjs +0 -115
- 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/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 -43
- package/lib/crispr-forms.module.d.ts +0 -16
- package/lib/field-component-map.const.d.ts +0 -28
- package/lib/form-group-list/form-group-list.module.d.ts +0 -15
- package/lib/form.helpers.d.ts +0 -88
- package/lib/material/button/button.component.d.ts +0 -26
- package/lib/material/checkbox-field/checkbox-field.component.d.ts +0 -34
- package/lib/material/datepicker-field/datepicker-field.component.d.ts +0 -45
- package/lib/material/divider/divider.component.d.ts +0 -17
- 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 -35
- package/lib/material/material.module.d.ts +0 -26
- package/lib/material/option/option.component.d.ts +0 -14
- package/lib/material/radio-field/radio-field.component.d.ts +0 -35
- package/lib/material/select-field/select-field.component.d.ts +0 -48
- package/lib/material/selected-file/selected-file.component.d.ts +0 -17
- package/lib/material/slider-field/slider-field.component.d.ts +0 -38
- package/lib/material/textarea-field/textarea-field.component.d.ts +0 -35
- package/lib/material/unit-conversion-field/unit-conversion-field.component.d.ts +0 -52
- package/lib/public_api.d.ts +0 -9
- package/tft-crispr-forms-14.0.1-rc.0.tgz +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OnInit, AfterContentInit } from '@angular/core';
|
|
2
|
+
import { MatCalendarCellClassFunction } from '@angular/material/datepicker';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { Portal } from '@angular/cdk/portal';
|
|
5
|
+
import { DatepickerFieldConfig } from '@tft/crispr-forms/utils';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
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;
|
|
17
|
+
};
|
|
18
|
+
export declare class DatepickerFieldComponent extends DatepickerFieldMixin implements OnInit, AfterContentInit {
|
|
19
|
+
defaultConfig: Partial<DatepickerFieldConfig>;
|
|
20
|
+
dateClass: MatCalendarCellClassFunction<Date>;
|
|
21
|
+
dateClass$: Observable<MatCalendarCellClassFunction<Date>>;
|
|
22
|
+
startAt$: Observable<Date>;
|
|
23
|
+
/** A portal containing the footer component type for this calendar. */
|
|
24
|
+
calendarFooterPortal: Portal<any>;
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
ngAfterContentInit(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerFieldComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerFieldComponent, "crispr-datepicker-field", never, {}, {}, never, never, true>;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './datepicker-field.component';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { CrisprFieldComponent, DividerConfig } from '@tft/crispr-forms/utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DividerComponent extends CrisprFieldComponent<DividerConfig> implements OnInit {
|
|
5
|
+
defaultConfig: {};
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "crispr-divider", never, {}, {}, never, never, true>;
|
|
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;
|
|
@@ -22,10 +20,5 @@ export declare class FieldContainerComponent implements OnInit, OnDestroy {
|
|
|
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, 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-field.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,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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './input-field.component';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SelectOption } from '@tft/crispr-forms/utils';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OptionComponent {
|
|
4
|
+
option: SelectOption;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "crispr-option", never, { "option": "option"; }, {}, never, never, true>;
|
|
7
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './radio-field.component';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { RadioFieldConfig, SelectOption } from '@tft/crispr-forms/utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
declare const RadioFieldMixin: new () => {
|
|
6
|
+
config: RadioFieldConfig;
|
|
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<RadioFieldConfig>;
|
|
14
|
+
applyDefaultConfig(): void;
|
|
15
|
+
};
|
|
16
|
+
export declare class RadioFieldComponent extends RadioFieldMixin implements OnInit {
|
|
17
|
+
defaultConfig: {};
|
|
18
|
+
options$: Observable<SelectOption[]>;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioFieldComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioFieldComponent, "crispr-radio-field", never, {}, {}, never, never, true>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './select-field.component';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnInit, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { MatSelect } from '@angular/material/select';
|
|
4
|
+
import { ThemePalette } from '@angular/material/core';
|
|
5
|
+
import { SelectFieldConfig, SelectOption } from '@tft/crispr-forms/utils';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
declare const SelectFieldMixin: new () => {
|
|
8
|
+
config: SelectFieldConfig;
|
|
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<SelectFieldConfig>;
|
|
16
|
+
applyDefaultConfig(): void;
|
|
17
|
+
};
|
|
18
|
+
export declare class SelectFieldComponent extends SelectFieldMixin implements OnInit, AfterViewInit {
|
|
19
|
+
defaultConfig: {
|
|
20
|
+
enableToggleAll: boolean;
|
|
21
|
+
color: ThemePalette;
|
|
22
|
+
};
|
|
23
|
+
options$: Observable<SelectOption[]>;
|
|
24
|
+
allSelected: boolean;
|
|
25
|
+
selectField: MatSelect;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngAfterViewInit(): void;
|
|
28
|
+
toggleAll(isSelected: boolean): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectFieldComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectFieldComponent, "crispr-select-field", never, {}, {}, never, never, true>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './selected-file.component';
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './slider-field.component';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { SliderFieldConfig } from '@tft/crispr-forms/utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare const SliderFieldMixin: new () => {
|
|
5
|
+
config: SliderFieldConfig;
|
|
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<SliderFieldConfig>;
|
|
13
|
+
applyDefaultConfig(): void;
|
|
14
|
+
};
|
|
15
|
+
export declare class SliderFieldComponent extends SliderFieldMixin implements OnInit {
|
|
16
|
+
defaultConfig: {
|
|
17
|
+
displayLimits: boolean;
|
|
18
|
+
};
|
|
19
|
+
constructor();
|
|
20
|
+
get flexDirection(): "column" | "row";
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderFieldComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliderFieldComponent, "crispr-slider-field", never, {}, {}, never, never, true>;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './textarea-field.component';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TextareaFieldConfig } from '@tft/crispr-forms/utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare const TextareaFieldMixin: new () => {
|
|
5
|
+
config: TextareaFieldConfig;
|
|
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<TextareaFieldConfig>;
|
|
13
|
+
applyDefaultConfig(): void;
|
|
14
|
+
};
|
|
15
|
+
export declare class TextareaFieldComponent extends TextareaFieldMixin implements OnInit {
|
|
16
|
+
defaultConfig: Partial<TextareaFieldConfig>;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaFieldComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaFieldComponent, "crispr-textarea-field", never, {}, {}, never, never, true>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './unit-conversion-field.component';
|
|
@@ -0,0 +1,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 '@tft/crispr-forms/utils';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
declare const UnitConversionFieldMixin: new () => {
|
|
7
|
+
config: UnitConversionFieldConfig<unknown, unknown>;
|
|
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<UnitConversionFieldConfig<unknown, unknown>>;
|
|
15
|
+
applyDefaultConfig(): void;
|
|
16
|
+
};
|
|
17
|
+
export declare class UnitConversionFieldComponent extends UnitConversionFieldMixin implements OnInit, OnDestroy {
|
|
18
|
+
defaultConfig: Partial<UnitConversionFieldConfig<unknown, unknown>>;
|
|
19
|
+
displayValueControl: FormControl<any>;
|
|
20
|
+
unitSelectControl: FormControl<any>;
|
|
21
|
+
unitOptions$: Observable<SelectOption[]>;
|
|
22
|
+
transformationSubscription: Subscription;
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
setInitialDisplayValue(storedValue: any, unit: unknown): void;
|
|
26
|
+
/**
|
|
27
|
+
* We override the 'setControlValue' we inherited from crisprControlMixin and add our custom logic,
|
|
28
|
+
* This function gets called onInit because were object oriented. it's so great, so great that I'm
|
|
29
|
+
* typing a paragraph to explain what the hell is going on...
|
|
30
|
+
* @param value the initial value for the control passed down from the form components input
|
|
31
|
+
*/
|
|
32
|
+
setControlValue(value: any): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UnitConversionFieldComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UnitConversionFieldComponent, "crispr-unit-conversion-field", never, {}, {}, never, never, true>;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
package/utils/README.md
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -7,5 +7,5 @@ export declare abstract class CrisprFieldComponent<C extends CrisprFieldConfig>
|
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
applyDefaultConfig(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFieldComponent<any>, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldComponent<any>, never, never, {}, {}, never, never,
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldComponent<any>, never, never, {}, {}, never, never, true>;
|
|
11
11
|
}
|
|
File without changes
|
|
@@ -0,0 +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>;
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +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>;
|
|
@@ -0,0 +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[];
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +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';
|