ngx-t-forms 3.1.7 → 3.1.8
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/fesm2022/{ngx-t-forms-api-endpoint-config.component-CCwUtGOH.mjs → ngx-t-forms-api-endpoint-config.component-B4a-L4Eq.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-api-endpoint-config.component-CCwUtGOH.mjs.map → ngx-t-forms-api-endpoint-config.component-B4a-L4Eq.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-BUCFidjW.mjs → ngx-t-forms-auto-complete-input-element.component-DqRunUz4.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-BUCFidjW.mjs.map → ngx-t-forms-auto-complete-input-element.component-DqRunUz4.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-C92Y7CW_.mjs → ngx-t-forms-basic-input-input-element.component-t8bTUgZ1.mjs} +14 -6
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-t8bTUgZ1.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-PcjMdAKu.mjs +603 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-PcjMdAKu.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CWJMjBoK.mjs → ngx-t-forms-chip-options-creator-editor.component-Ca4rim_J.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CWJMjBoK.mjs.map → ngx-t-forms-chip-options-creator-editor.component-Ca4rim_J.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-conditional-display-config.component-zauBVptA.mjs → ngx-t-forms-conditional-display-config.component-Di7p76_n.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-conditional-display-config.component-zauBVptA.mjs.map → ngx-t-forms-conditional-display-config.component-Di7p76_n.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-C096Ib2V.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CXMmDwKS.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-C096Ib2V.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CXMmDwKS.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-data-source-picker.component-WkSQqjd-.mjs → ngx-t-forms-data-source-picker.component-DioXvLi3.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-data-source-picker.component-WkSQqjd-.mjs.map → ngx-t-forms-data-source-picker.component-DioXvLi3.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-Dtzq25sw.mjs → ngx-t-forms-date-picker-input-element.component-h0S6qZDT.mjs} +6 -6
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-h0S6qZDT.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-W8KV-zoC.mjs → ngx-t-forms-date-range-picker-input-element.component-8c1ErbgP.mjs} +6 -6
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-8c1ErbgP.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-date-time-picker-input-element.component-CQXZDwAo.mjs → ngx-t-forms-date-time-picker-input-element.component-BgjGlXeq.mjs} +7 -6
- package/fesm2022/ngx-t-forms-date-time-picker-input-element.component-BgjGlXeq.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-3LcpNBQI.mjs → ngx-t-forms-document-list-label-config-editor.component-BhVM8PFR.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-3LcpNBQI.mjs.map → ngx-t-forms-document-list-label-config-editor.component-BhVM8PFR.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-document-picker.component-CvATcveO.mjs → ngx-t-forms-document-picker.component-DYpsBHxT.mjs} +6 -254
- package/fesm2022/ngx-t-forms-document-picker.component-DYpsBHxT.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-editor-input-element.component-BqofP5-4.mjs → ngx-t-forms-editor-input-element.component-CzNSb79n.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-editor-input-element.component-BqofP5-4.mjs.map → ngx-t-forms-editor-input-element.component-CzNSb79n.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BAQx2BLX.mjs → ngx-t-forms-file-upload-input-element.component-FPxHxAwF.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BAQx2BLX.mjs.map → ngx-t-forms-file-upload-input-element.component-FPxHxAwF.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-input-selector.component-M6O7-j2Q.mjs → ngx-t-forms-form-input-selector.component-B3ES53R-.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-M6O7-j2Q.mjs.map → ngx-t-forms-form-input-selector.component-B3ES53R-.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-Dd-EMosV.mjs → ngx-t-forms-form-json-view.component-Cu_ZEw1V.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-Dd-EMosV.mjs.map → ngx-t-forms-form-json-view.component-Cu_ZEw1V.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-B1dYMlCC.mjs → ngx-t-forms-form-section-stepper.component-DmTGnRgi.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-B1dYMlCC.mjs.map → ngx-t-forms-form-section-stepper.component-DmTGnRgi.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-S2qfSAT-.mjs → ngx-t-forms-forms-builder-menu.component-6m2BM9e9.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-S2qfSAT-.mjs.map → ngx-t-forms-forms-builder-menu.component-6m2BM9e9.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-forms-native-date-adapter-CCJT5ep1.mjs +187 -0
- package/fesm2022/ngx-t-forms-forms-native-date-adapter-CCJT5ep1.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-geo-location.component-whY7YIMk.mjs → ngx-t-forms-geo-location.component-DgXSaH0t.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-geo-location.component-whY7YIMk.mjs.map → ngx-t-forms-geo-location.component-DgXSaH0t.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-header-template-editor.component-BLn_-jPM.mjs → ngx-t-forms-header-template-editor.component-NJLm6jkA.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-header-template-editor.component-BLn_-jPM.mjs.map → ngx-t-forms-header-template-editor.component-NJLm6jkA.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-D05NKiWm.mjs → ngx-t-forms-image-capture-input-element.component-iqPS9cPK.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-D05NKiWm.mjs.map → ngx-t-forms-image-capture-input-element.component-iqPS9cPK.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-index-BnK4nGDh.mjs → ngx-t-forms-index-zLon09cE.mjs} +2 -2
- package/fesm2022/ngx-t-forms-index-zLon09cE.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-custom.component-CGz6j56m.mjs → ngx-t-forms-input-custom.component-BOy_3JqU.mjs} +78 -23
- package/fesm2022/ngx-t-forms-input-custom.component-BOy_3JqU.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-editor.component-DxrkUbed.mjs → ngx-t-forms-input-editor.component-IUrZNmA5.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-input-editor.component-DxrkUbed.mjs.map → ngx-t-forms-input-editor.component-IUrZNmA5.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-Cu_L5CRA.mjs → ngx-t-forms-map-mat-options-keys-CtTAw9jk.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-Cu_L5CRA.mjs.map → ngx-t-forms-map-mat-options-keys-CtTAw9jk.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-B98Hv4M1.mjs → ngx-t-forms-mat-chip-list-editor.component-C9bxVpQ1.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-B98Hv4M1.mjs.map → ngx-t-forms-mat-chip-list-editor.component-C9bxVpQ1.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSnHK6ZR.mjs → ngx-t-forms-missing-form-configs.component-BpiCchqY.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSnHK6ZR.mjs.map → ngx-t-forms-missing-form-configs.component-BpiCchqY.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BUj7wGyx.mjs → ngx-t-forms-mscoa-chart-toolbar.component-CjUf0zTA.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BUj7wGyx.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-CjUf0zTA.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-config.component-CBqzX9H7.mjs → ngx-t-forms-mscoa-config.component-soUwIbVA.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-mscoa-config.component-CBqzX9H7.mjs.map → ngx-t-forms-mscoa-config.component-soUwIbVA.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-Cr1HXTjG.mjs → ngx-t-forms-mscoa-segment-config.component--3DvQm1K.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-Cr1HXTjG.mjs.map → ngx-t-forms-mscoa-segment-config.component--3DvQm1K.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BZxpJRxJ.mjs +2472 -0
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BZxpJRxJ.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-ngx-t-forms-Dt4iPwb-.mjs → ngx-t-forms-ngx-t-forms-CaVyRedJ.mjs} +3890 -434
- package/fesm2022/ngx-t-forms-ngx-t-forms-CaVyRedJ.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-paginated-selection-table-lMTD1N6B.mjs → ngx-t-forms-paginated-selection-table-DzZE-Zde.mjs} +8 -6
- package/fesm2022/ngx-t-forms-paginated-selection-table-DzZE-Zde.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-Dx0pI0A1.mjs → ngx-t-forms-payload-template-editor.component-CVj-G4MC.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-Dx0pI0A1.mjs.map → ngx-t-forms-payload-template-editor.component-CVj-G4MC.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-VySkMHQI.mjs → ngx-t-forms-pipeline-generator.component-BMyZKOXv.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-VySkMHQI.mjs.map → ngx-t-forms-pipeline-generator.component-BMyZKOXv.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-quill-input.component-BLaPFcJE.mjs → ngx-t-forms-quill-input.component-oUnmMDGi.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-quill-input.component-BLaPFcJE.mjs.map → ngx-t-forms-quill-input.component-oUnmMDGi.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-record-list-manager.component-qlizX9F4.mjs → ngx-t-forms-record-list-manager.component-CdQU6loA.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-record-list-manager.component-qlizX9F4.mjs.map → ngx-t-forms-record-list-manager.component-CdQU6loA.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-required-inputs.component-DY37Qrnj.mjs → ngx-t-forms-required-inputs.component-BtfEsmva.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-required-inputs.component-DY37Qrnj.mjs.map → ngx-t-forms-required-inputs.component-BtfEsmva.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CLYe2Lf_.mjs → ngx-t-forms-rest-api-call-setup.component-B5w1Lvfo.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CLYe2Lf_.mjs.map → ngx-t-forms-rest-api-call-setup.component-B5w1Lvfo.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-section-report.component-foLHlD-I.mjs → ngx-t-forms-section-report.component-CocLNrN5.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-section-report.component-foLHlD-I.mjs.map → ngx-t-forms-section-report.component-CocLNrN5.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-select-input-element.component-CvrNfvXa.mjs → ngx-t-forms-select-input-element.component-B03O4cAK.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-select-input-element.component-CvrNfvXa.mjs.map → ngx-t-forms-select-input-element.component-B03O4cAK.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-D4luMX5c.mjs → ngx-t-forms-selection-options-editor.component-CBdC0WCz.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-D4luMX5c.mjs.map → ngx-t-forms-selection-options-editor.component-CBdC0WCz.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-BWyxWDvp.mjs → ngx-t-forms-textarea-input-element.component-GXiLEsTp.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-BWyxWDvp.mjs.map → ngx-t-forms-textarea-input-element.component-GXiLEsTp.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-CpYC2ivQ.mjs → ngx-t-forms-toggle-input-element.component-WErP0SsA.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-CpYC2ivQ.mjs.map → ngx-t-forms-toggle-input-element.component-WErP0SsA.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-token-text-input.component-BAjGepTM.mjs → ngx-t-forms-token-text-input.component-BMzPBtY_.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-token-text-input.component-BAjGepTM.mjs.map → ngx-t-forms-token-text-input.component-BMzPBtY_.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-validators-config.component-DVB88bgW.mjs → ngx-t-forms-validators-config.component-DWDBsV6a.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-validators-config.component-DVB88bgW.mjs.map → ngx-t-forms-validators-config.component-DWDBsV6a.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-LoF_fpHu.mjs → ngx-t-forms-workflow-adjudication.component-DxObFakZ.mjs} +76 -17
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-DxObFakZ.mjs.map +1 -0
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +2 -2
- package/types/ngx-t-forms.d.ts +463 -99
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-C92Y7CW_.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-33ZARq4R.mjs +0 -603
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-33ZARq4R.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-Dtzq25sw.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-W8KV-zoC.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-time-picker-input-element.component-CQXZDwAo.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-picker.component-CvATcveO.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-BnK4nGDh.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-custom.component-CGz6j56m.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CfZLcuuu.mjs +0 -2336
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CfZLcuuu.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-Dt4iPwb-.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-paginated-selection-table-lMTD1N6B.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-LoF_fpHu.mjs.map +0 -1
package/types/ngx-t-forms.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Provider, EnvironmentProviders, InjectionToken, Signal, OnInit, OnDestroy, PipeTransform, Type, ElementRef } from '@angular/core';
|
|
3
3
|
import * as ngx_t_forms_types from 'ngx-t-forms-types';
|
|
4
|
-
import { NgxTFormsConfig, ElementTypes, FormInterface, APIDataFetchingConfigurationInterface, IFormActions, FormSlideInterface, InClassFormUtilsInterface, IWorkflowDocumentPicker, IBasicFormInput, IFileUploadInput, IDateRangePickerInput, ITextareaProperties, IToggleInput, IMatrixInput, IMultiple, IGetTreeResponse, IRunPipelineResponse, IPipelineGenerationResponse, InputDataTypes, FormInputBasicOptionInterface, LocalFormStateSelectorInterface, FormsStoreSelectorsInterface, FormListSection, ITowerFormSteps, WorkflowFunctionTypes, FileData, FormSubmissionStatus, IFormValidationOverride, FormColumnInputs, IFormChangeHistory, IStepOption, FormBuilderFunctions, ElementEditorTypes, ElementEditorInnerSectionElementInterface, ITowerStepColumn, ScoaInnerInput, IWorkflowOption, BlurHandleTypes, TreeNode, FlatNode, IArrayFunction, DocumentLitsLabelConfigInterfaceValueType, InputPipeTypes,
|
|
4
|
+
import { NgxTFormsConfig, ElementTypes, FormInterface, APIDataFetchingConfigurationInterface, IFormActions, FormSlideInterface, InClassFormUtilsInterface, IWorkflowDocumentPicker, IBasicFormInput, IFileUploadInput, IDateRangePickerInput, ITextareaProperties, IToggleInput, IMatrixInput, IMultiple, IGetTreeResponse, IRunPipelineResponse, IPipelineGenerationResponse, InputDataTypes, FormInputBasicOptionInterface, LocalFormStateSelectorInterface, FormsStoreSelectorsInterface, FormListSection, ITowerFormSteps, WorkflowFunctionTypes, FileData, FormSubmissionStatus, IFormValidationOverride, FormColumnInputs, IFormChangeHistory, IStepOption, FormBuilderFunctions, ElementEditorTypes, ElementEditorInnerSectionElementInterface, ITowerStepColumn, ScoaInnerInput, IWorkflowOption, BlurHandleTypes, TreeNode, FlatNode, IArrayFunction, DocumentLitsLabelConfigInterfaceValueType, InputPipeTypes, NgxTFormsLocalization, ImportProgress, ImportIdentity, ImportRowState, EncryptedData, ValidationError, DialogConfig, PropertyPath, DeepPropertyValue, FileUploadInputValueInterface, FormInterfaceMigration, ConfigurationValidTestInterface } from 'ngx-t-forms-types';
|
|
5
5
|
export { BlurHandleTypes, ConfigurationValidTestInterface, DeepPropertyValue, DialogConfig, DocumentLitsLabelConfigInterfaceValueType, ElementEditorInnerSectionElementInterface, ElementEditorTypes, EncryptedData, FileUploadInputValueInterface, FormBuilderFunctions, FormColumnInputs, FormInputBasicOptionInterface, FormInterface, FormInterfaceMigration, FormListSection, FormSubmissionStatus, IArrayFunction, IFormActions, IFormChangeHistory, IFormTour, IFormValidationOverride, IGetTreeResponse, IScoaAccount, ITowerStepColumn, IWorkflowOption, ImportIdentity, ImportProgress, ImportRowState, ImportRowStatus, InClassFormUtilsInterface, InputDataTypes, InputPipeTypes, LocalFormStateSelectorInterface, NgxTFormsConfig, OLD_FormInterface, PropertyPath, TreeNode, ValidationError, WorkflowFunctionTypes } from 'ngx-t-forms-types';
|
|
6
6
|
import * as rxjs from 'rxjs';
|
|
7
7
|
import { Observable, Subject } from 'rxjs';
|
|
@@ -40,7 +40,7 @@ interface NgxTFormsFeature {
|
|
|
40
40
|
/**
|
|
41
41
|
* Registers ngx-t-forms with the application injector.
|
|
42
42
|
*
|
|
43
|
-
* @param config Runtime configuration (form actions, builder, etc.).
|
|
43
|
+
* @param config Runtime configuration (form actions, builder, localization, etc.).
|
|
44
44
|
* @param features Optional with*() extension features.
|
|
45
45
|
* @returns EnvironmentProviders ready to drop into `bootstrapApplication`.
|
|
46
46
|
*
|
|
@@ -1264,13 +1264,14 @@ interface SpreadsheetTemplateSheet {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
/**
|
|
1266
1266
|
* A workbook the library wants written: the import template for one
|
|
1267
|
-
* multiple-input field.
|
|
1267
|
+
* multiple-input field, or for a whole form (`buildFormImportTemplate`).
|
|
1268
1268
|
*
|
|
1269
|
-
* The
|
|
1270
|
-
* `formControlName
|
|
1271
|
-
*
|
|
1272
|
-
*
|
|
1273
|
-
*
|
|
1269
|
+
* The data sheets lead — for a field, one sheet named after its
|
|
1270
|
+
* `formControlName`; for a form, a `main` sheet and one detail sheet per
|
|
1271
|
+
* MultipleInput — each holding the headers the user may fill and no rows. A
|
|
1272
|
+
* `Guide` sheet follows with one row per column: its key, label, how it is
|
|
1273
|
+
* filled and what to enter. Importing a field's template back (rows filled
|
|
1274
|
+
* in) picks its data sheet automatically.
|
|
1274
1275
|
*/
|
|
1275
1276
|
interface SpreadsheetTemplate {
|
|
1276
1277
|
/** Suggested file name without its extension, e.g. `Template-lines`. */
|
|
@@ -1312,9 +1313,14 @@ type SpreadsheetWriter = (template: SpreadsheetTemplate) => Promise<SpreadsheetS
|
|
|
1312
1313
|
*
|
|
1313
1314
|
* Pass a `writer` as well and the menu also offers "Download import template":
|
|
1314
1315
|
* a workbook the library builds for the field — a data sheet carrying exactly
|
|
1315
|
-
* the headers the import matches,
|
|
1316
|
-
*
|
|
1317
|
-
*
|
|
1316
|
+
* the headers the import matches, a `Guide` sheet that says what goes in each
|
|
1317
|
+
* column, and an `Options` sheet listing the allowed options of its choice
|
|
1318
|
+
* columns — fetched lists, a table's rows and a picker's transactions
|
|
1319
|
+
* included — which the writer serialises
|
|
1320
|
+
* ({@link SPREADSHEET_WRITER}). The import dialog then offers the same download
|
|
1321
|
+
* in place of its column list. A host that runs a bulk import of its own hands
|
|
1322
|
+
* the same writer the template `TFormImportController.buildFormImportTemplate(form)`
|
|
1323
|
+
* builds for a whole form.
|
|
1318
1324
|
*
|
|
1319
1325
|
* The library does not read or write workbooks itself: both functions are the
|
|
1320
1326
|
* host's, so the app decides which spreadsheet library it carries and how cells
|
|
@@ -2631,10 +2637,10 @@ type OverrideReasons = Record<string, OverrideReason>;
|
|
|
2631
2637
|
declare abstract class FormTowerControllerService implements OnDestroy {
|
|
2632
2638
|
#private;
|
|
2633
2639
|
private _http;
|
|
2634
|
-
/** Resolved tower config (HTTP functions, file upload,
|
|
2640
|
+
/** Resolved tower config (HTTP functions, file upload, getGlobalVariables, …). */
|
|
2635
2641
|
readonly NGX_T_FORMS_CONFIG: ngx_t_forms_types.NgxTFormsConfig;
|
|
2636
|
-
/** Convenience pass-through to the
|
|
2637
|
-
readonly
|
|
2642
|
+
/** Convenience pass-through to the global-variables fetcher from config. */
|
|
2643
|
+
readonly getGlobalVariables: () => Observable<ngx_t_forms_types.GlobalVariables>;
|
|
2638
2644
|
constructor(_http: HttpClient);
|
|
2639
2645
|
/** Emits exactly once on tower destruction. `takeUntil` anchor for long-lived subscriptions. */
|
|
2640
2646
|
protected _destroyed$: Subject<void>;
|
|
@@ -2828,7 +2834,7 @@ declare abstract class FormTowerControllerService implements OnDestroy {
|
|
|
2828
2834
|
* 1. {@link FormTowerControllerService.clearFormState} — wipe prior state +
|
|
2829
2835
|
* destroy any prior resources/effects.
|
|
2830
2836
|
* 2. {@link prepPopulateForm} — merge `_initialFormValue` into the columns.
|
|
2831
|
-
* 3. {@link loadSystemInputs} —
|
|
2837
|
+
* 3. {@link loadSystemInputs} — inject the application's global variables as system inputs.
|
|
2832
2838
|
* 4. {@link formGenerator} — build the nested `FormGroup` carrier.
|
|
2833
2839
|
* 5. Re-open any `MultipleInput` that was open before re-init.
|
|
2834
2840
|
* 6. Build the `#derived` signal graph + wire the projection/persist effects
|
|
@@ -2886,9 +2892,11 @@ declare abstract class FormTowerControllerService implements OnDestroy {
|
|
|
2886
2892
|
* so those go to `#model`, where the fold expects to find them.
|
|
2887
2893
|
* - **All other inputs** → writes `#model[inputId]`.
|
|
2888
2894
|
*
|
|
2889
|
-
*
|
|
2890
|
-
* {@link FormTowerControllerService.#
|
|
2891
|
-
*
|
|
2895
|
+
* Every value is passed through
|
|
2896
|
+
* {@link FormTowerControllerService.#normaliseIngress} first: it is rounded to
|
|
2897
|
+
* the column's number precision — per sub-column for a MultipleInput row array
|
|
2898
|
+
* (see {@link applyRoundingRule}) — and no row can enter the tower without an
|
|
2899
|
+
* id (see {@link ensureMultipleInputRowIds}). This is the
|
|
2892
2900
|
* choke point for every non-derived ingress: prefill/import
|
|
2893
2901
|
* ({@link FormTowerControllerService.initializeFormValues}), accepted
|
|
2894
2902
|
* suggestions, row deletes from the table view, and direct consumer writes.
|
|
@@ -3968,6 +3976,7 @@ declare class TFormDraftPanelComponent {
|
|
|
3968
3976
|
}
|
|
3969
3977
|
|
|
3970
3978
|
declare class FormatDataPipe implements PipeTransform {
|
|
3979
|
+
#private;
|
|
3971
3980
|
/**
|
|
3972
3981
|
* Formats an arbitrary input value for display according to `dataType`.
|
|
3973
3982
|
*
|
|
@@ -3978,12 +3987,26 @@ declare class FormatDataPipe implements PipeTransform {
|
|
|
3978
3987
|
* return the original value (asserted to the display-primitive union — its
|
|
3979
3988
|
* runtime value is unchanged and Angular string-coerces it for display).
|
|
3980
3989
|
*
|
|
3981
|
-
*
|
|
3982
|
-
*
|
|
3983
|
-
*
|
|
3990
|
+
* The numeric branches round with the rule the tower stores the value under
|
|
3991
|
+
* (`numberRounding.ts`) before Angular formats it, with both fraction bounds
|
|
3992
|
+
* pinned to that precision, so a table cell, its total and the stored value
|
|
3993
|
+
* agree. A `decimal` / `integer` column is only formatted when its pipe
|
|
3994
|
+
* configuration is passed; without it the value shows as stored.
|
|
3995
|
+
*
|
|
3996
|
+
* `localization` is the consumer's `NgxTFormsConfig.localization` (or the
|
|
3997
|
+
* library's resolved copy): the locale amounts and dates are written in, the
|
|
3998
|
+
* currency a column without a code falls back to and how it is displayed, the
|
|
3999
|
+
* zone times of day are shown in, and the plain-date format. Pass it from the
|
|
4000
|
+
* template (`| formatData: type : pipe : l10n()`) so the cell re-renders when
|
|
4001
|
+
* the organisation changes; omit it for the library defaults.
|
|
4002
|
+
*
|
|
4003
|
+
* @param value - The raw value to format.
|
|
4004
|
+
* @param dataType - Which formatting branch to apply.
|
|
4005
|
+
* @param pipeConfig - Optional pipe configuration (currency code, places, rounding).
|
|
4006
|
+
* @param localization - Optional consumer localization.
|
|
3984
4007
|
* @returns The formatted representation, or the original value when no formatting applies.
|
|
3985
4008
|
*/
|
|
3986
|
-
transform(value: unknown, dataType: DocumentLitsLabelConfigInterfaceValueType | InputDataTypes | undefined | InputPipeTypes, pipeConfig?: FormColumnInputs['pipe'] | undefined): string | number | null | undefined;
|
|
4009
|
+
transform(value: unknown, dataType: DocumentLitsLabelConfigInterfaceValueType | InputDataTypes | undefined | InputPipeTypes, pipeConfig?: FormColumnInputs['pipe'] | undefined, localization?: NgxTFormsLocalization): string | number | null | undefined;
|
|
3987
4010
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormatDataPipe, never>;
|
|
3988
4011
|
static ɵpipe: _angular_core.ɵɵPipeDeclaration<FormatDataPipe, "formatData", true>;
|
|
3989
4012
|
}
|
|
@@ -3996,42 +4019,139 @@ declare class FormatDataPipe implements PipeTransform {
|
|
|
3996
4019
|
*/
|
|
3997
4020
|
declare function applyOptionChoice(row: Record<string, unknown>, formControlName: string, text: string, value: unknown, multi: boolean): Record<string, unknown>;
|
|
3998
4021
|
|
|
3999
|
-
declare function decrypt(encrypted: EncryptedData, secret: string): Promise<string>;
|
|
4000
|
-
|
|
4001
4022
|
/**
|
|
4002
|
-
*
|
|
4003
|
-
*
|
|
4004
|
-
*
|
|
4005
|
-
*
|
|
4023
|
+
* One allowed option of a choice column, as the template lists it: what the
|
|
4024
|
+
* form shows for it — a label, a user's name and email, a table row's shown
|
|
4025
|
+
* columns, a transaction's reference — and the value the form stores. The
|
|
4026
|
+
* import accepts either.
|
|
4027
|
+
*/
|
|
4028
|
+
interface ImportTemplateOption {
|
|
4029
|
+
/** The option as the form shows it. */
|
|
4030
|
+
readonly text: string;
|
|
4031
|
+
/** The stored value, as text; a transaction by its identifier, any other object identity as its JSON. */
|
|
4032
|
+
readonly value: string;
|
|
4033
|
+
/**
|
|
4034
|
+
* The values other inputs must hold for the form to offer this option — a
|
|
4035
|
+
* branch is offered under its region. Absent when the option is always
|
|
4036
|
+
* offered.
|
|
4037
|
+
*/
|
|
4038
|
+
readonly when?: readonly ImportOptionCondition[];
|
|
4039
|
+
}
|
|
4040
|
+
/** One value another input must hold for an option to be offered. */
|
|
4041
|
+
interface ImportOptionCondition {
|
|
4042
|
+
/** Id of the input the list depends on, as the live form mints it. */
|
|
4043
|
+
readonly inputId: string;
|
|
4044
|
+
/** The value that input must hold, as the form shows it. */
|
|
4045
|
+
readonly option: string;
|
|
4046
|
+
}
|
|
4047
|
+
/** The allowed options of one choice column. */
|
|
4048
|
+
interface ImportOptionList {
|
|
4049
|
+
/** The options, in the order the form offers them. */
|
|
4050
|
+
readonly options: readonly ImportTemplateOption[];
|
|
4051
|
+
/**
|
|
4052
|
+
* `true` when the form offers more than is listed — the list was cut at
|
|
4053
|
+
* the host's cap (`NgxTFormsConfig.importTemplate.maxOptionsPerInput`, 500
|
|
4054
|
+
* by default): a select's later options, a table's later rows, a workflow's
|
|
4055
|
+
* older transactions. Anything the form offers is still accepted on import.
|
|
4056
|
+
*/
|
|
4057
|
+
readonly partial?: boolean;
|
|
4058
|
+
}
|
|
4059
|
+
/**
|
|
4060
|
+
* The option lists a caller loaded for a form, keyed by input id — a
|
|
4061
|
+
* top-level input's own id, or the composite `<parent id>.<child id>` the live
|
|
4062
|
+
* form mints for a MultipleInput's child (a child's own id is looked up too).
|
|
4063
|
+
* `TFormImportController.loadFormOptions` builds one from settled headless
|
|
4064
|
+
* forms; a host may build its own.
|
|
4065
|
+
*/
|
|
4066
|
+
type ImportOptionLists = ReadonlyMap<string, ImportOptionList>;
|
|
4067
|
+
/** Options of {@link buildFormImportTemplate}. */
|
|
4068
|
+
interface FormImportTemplateOptions {
|
|
4069
|
+
/**
|
|
4070
|
+
* Suggested file name without its extension. Defaults to
|
|
4071
|
+
* `Template-<form title>`.
|
|
4072
|
+
*/
|
|
4073
|
+
readonly baseName?: string;
|
|
4074
|
+
/**
|
|
4075
|
+
* Option lists loaded for the form's choice inputs — see
|
|
4076
|
+
* {@link ImportOptionLists}. Without them only the options a definition
|
|
4077
|
+
* carries are listed, and a fetched list is described as loaded by the form.
|
|
4078
|
+
*/
|
|
4079
|
+
readonly options?: ImportOptionLists;
|
|
4080
|
+
}
|
|
4081
|
+
/** Name of the template sheet that explains the data sheets' columns. */
|
|
4082
|
+
declare const TEMPLATE_GUIDE_SHEET = "Guide";
|
|
4083
|
+
/**
|
|
4084
|
+
* Name of the template sheet that lists the allowed options of every choice
|
|
4085
|
+
* column — one row per option: the text to type and the stored value. Present
|
|
4086
|
+
* only when at least one column has a known option list.
|
|
4087
|
+
*/
|
|
4088
|
+
declare const TEMPLATE_OPTIONS_SHEET = "Options";
|
|
4089
|
+
/**
|
|
4090
|
+
* Builds the import template for a whole form: a {@link MAIN_SHEET} sheet with
|
|
4091
|
+
* one column per top-level input the user may fill, one detail sheet per
|
|
4092
|
+
* MultipleInput column (named after it, led by {@link DETAIL_INDEX_COLUMN}),
|
|
4093
|
+
* a {@link TEMPLATE_GUIDE_SHEET} sheet describing every column of every
|
|
4094
|
+
* sheet — including the ones left out of the data sheets because the system
|
|
4095
|
+
* fills them or a cell cannot carry them — and, when any column has a known
|
|
4096
|
+
* option list, a {@link TEMPLATE_OPTIONS_SHEET} sheet listing the allowed
|
|
4097
|
+
* options of every choice column.
|
|
4098
|
+
*
|
|
4099
|
+
* Pure: only the options a definition carries are listed unless the caller
|
|
4100
|
+
* passes the lists it loaded (`options.options`). `TFormImportController`'s
|
|
4101
|
+
* `buildFormImportTemplate` loads them from settled headless forms first —
|
|
4102
|
+
* fetched lists, a table's rows, a picker's transactions, and a list that
|
|
4103
|
+
* depends on other inputs once per known value of those.
|
|
4104
|
+
*
|
|
4105
|
+
* Hand the result to the host's `SpreadsheetWriter`; rows filled into the
|
|
4106
|
+
* data sheets come back through `TFormImportController.runImport` once the
|
|
4107
|
+
* detail sheets are folded onto their records by `$index`.
|
|
4108
|
+
*
|
|
4109
|
+
* @param form The form definition the template is built for.
|
|
4110
|
+
* @param options `baseName` overrides the suggested file name; `options` are
|
|
4111
|
+
* the loaded option lists.
|
|
4006
4112
|
*
|
|
4007
|
-
* @
|
|
4008
|
-
*
|
|
4113
|
+
* @example
|
|
4114
|
+
* const template = buildFormImportTemplate(form, { baseName: `Template-${workflow.name}`, options: await importCtrl.loadFormOptions(form) });
|
|
4115
|
+
* const file = await writer(template); // the SpreadsheetWriter bound through withSpreadsheetImport()
|
|
4009
4116
|
*/
|
|
4010
|
-
declare
|
|
4117
|
+
declare function buildFormImportTemplate(form: Pick<FormInterface, 'slides' | 'formTitle'>, options?: FormImportTemplateOptions): SpreadsheetTemplate;
|
|
4011
4118
|
|
|
4012
4119
|
/**
|
|
4120
|
+
* How the rows of one run of `TFormImportController.runImport` /
|
|
4121
|
+
* `runMultipleInputImport` are checked — as opposed to what identifies them
|
|
4122
|
+
* (`ImportIdentity`). Every option is off unless set.
|
|
4123
|
+
*
|
|
4124
|
+
* @example
|
|
4125
|
+
* await importCtrl.runImport(form, rows, { distinctKeys: ['invoiceNo'] }, { apiCache: true });
|
|
4126
|
+
*
|
|
4013
4127
|
* @public
|
|
4014
|
-
* @deprecated Reachable for one minor cycle only as part of the Phase 1 public-surface
|
|
4015
|
-
* lockdown. Target removal: v3.0.0. No replacement — this is the empty
|
|
4016
|
-
* `ng generate library` stub and will be deleted in Phase 2.
|
|
4017
4128
|
*/
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4129
|
+
interface ImportRunOptions {
|
|
4130
|
+
/**
|
|
4131
|
+
* Share identical API calls between the rows of the run.
|
|
4132
|
+
*
|
|
4133
|
+
* Off (the default), every row makes the calls a user filling the form would
|
|
4134
|
+
* make. On, the first row to make a call — same method, same URL, same body
|
|
4135
|
+
* and same options, compared value by value — makes it, and every later row
|
|
4136
|
+
* that would make the same call is handed a copy of that response instead,
|
|
4137
|
+
* for the rest of the run. A call whose body or options cannot be compared
|
|
4138
|
+
* value by value (a function, a file, a class instance, a circular
|
|
4139
|
+
* structure) is never shared; a call that failed is made again by the next
|
|
4140
|
+
* row that needs it. Nothing is shared beyond the run.
|
|
4141
|
+
*/
|
|
4142
|
+
readonly apiCache?: boolean;
|
|
4022
4143
|
}
|
|
4023
4144
|
|
|
4024
4145
|
/**
|
|
4146
|
+
* Where a run of {@link TFormImportController.runImport} or
|
|
4147
|
+
* {@link TFormImportController.runMultipleInputImport} stands: `running`
|
|
4148
|
+
* while rows are being checked; `paused` after {@link TFormImportController.pause}
|
|
4149
|
+
* until {@link TFormImportController.resume}; `stopping` after
|
|
4150
|
+
* {@link TFormImportController.stop} until the row being checked settles;
|
|
4151
|
+
* `idle` otherwise — before a run, and again once it has ended, stopped or not.
|
|
4025
4152
|
* @public
|
|
4026
|
-
* @deprecated Reachable for one minor cycle only as part of the Phase 1 public-surface
|
|
4027
|
-
* lockdown. Target removal: v3.0.0. No replacement — this is the empty
|
|
4028
|
-
* `ng generate library` stub and will be deleted in Phase 2.
|
|
4029
4153
|
*/
|
|
4030
|
-
|
|
4031
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxTFormsComponent, never>;
|
|
4032
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxTFormsComponent, "lib-ngx-t-forms", never, {}, {}, never, never, true, never>;
|
|
4033
|
-
}
|
|
4034
|
-
|
|
4154
|
+
type ImportRunState = 'idle' | 'running' | 'paused' | 'stopping';
|
|
4035
4155
|
/**
|
|
4036
4156
|
* Public entry-point for bulk imports.
|
|
4037
4157
|
*
|
|
@@ -4057,15 +4177,35 @@ declare class NgxTFormsComponent {
|
|
|
4057
4177
|
declare class TFormImportController {
|
|
4058
4178
|
private readonly _injector;
|
|
4059
4179
|
private readonly _rows$;
|
|
4180
|
+
private readonly _runState$;
|
|
4181
|
+
/** Wakes a paused queue; set only while the queue waits. */
|
|
4182
|
+
private _resumeRun;
|
|
4183
|
+
/** Identifies the current run, so an older run's end never resets a newer run's state. */
|
|
4184
|
+
private _runId;
|
|
4060
4185
|
/**
|
|
4061
|
-
*
|
|
4062
|
-
*
|
|
4063
|
-
*
|
|
4064
|
-
* so every import session starts cold but identical in-flight requests
|
|
4065
|
-
* across concurrent rows reuse a single HTTP call.
|
|
4186
|
+
* Looks transactions up for document-picker cells; `null` when the host
|
|
4187
|
+
* bound no {@link DOCUMENT_REPOSITORY}, in which case such cells are refused
|
|
4188
|
+
* rather than written unverified. Its caches live for one run.
|
|
4066
4189
|
*/
|
|
4067
|
-
private
|
|
4068
|
-
|
|
4190
|
+
private readonly _documentLookup;
|
|
4191
|
+
/**
|
|
4192
|
+
* The API calls the current run shares between its rows —
|
|
4193
|
+
* `ImportRunOptions.apiCache` — each under the key `apiCallKey` gives it,
|
|
4194
|
+
* replaying a copy of its response. Cleared when a run or a re-run starts and
|
|
4195
|
+
* when it ends, and by {@link reset}: whatever is still in flight is ended and
|
|
4196
|
+
* nothing fetched is held, so no response outlives the run in this root
|
|
4197
|
+
* singleton. Filled only while {@link _apiCache} is on, so a run without the
|
|
4198
|
+
* option shares nothing between its rows. A template's option load shares
|
|
4199
|
+
* calls through a store of its own, always, since it settles one form over
|
|
4200
|
+
* and over; it never reads or clears this one.
|
|
4201
|
+
*/
|
|
4202
|
+
private readonly _calls;
|
|
4203
|
+
/**
|
|
4204
|
+
* Whether the current run shares identical API calls between its rows —
|
|
4205
|
+
* `ImportRunOptions.apiCache`, set by both run methods and cleared by
|
|
4206
|
+
* {@link reset}. A re-run keeps the run's choice.
|
|
4207
|
+
*/
|
|
4208
|
+
private _apiCache;
|
|
4069
4209
|
/**
|
|
4070
4210
|
* Registry of pre-processors keyed by ElementType.
|
|
4071
4211
|
* Add an entry here to handle a new input type in _preProcessRow — no other
|
|
@@ -4075,14 +4215,6 @@ declare class TFormImportController {
|
|
|
4075
4215
|
* `errors` accumulates in colErrors[formControlName].
|
|
4076
4216
|
*/
|
|
4077
4217
|
private readonly _inputPreProcessors;
|
|
4078
|
-
/**
|
|
4079
|
-
* Shared financial-cycles observable for the current import session.
|
|
4080
|
-
* loadSystemInputs calls getFinacialCycles() directly via NGX_T_FORMS_CONFIG
|
|
4081
|
-
* (not through utils), so HTTP-function patching alone cannot deduplicate it.
|
|
4082
|
-
* We intercept it at the config level by providing a wrapped token in each
|
|
4083
|
-
* tower's child injector that returns this shared observable instead.
|
|
4084
|
-
*/
|
|
4085
|
-
private _financialCycles$;
|
|
4086
4218
|
/**
|
|
4087
4219
|
* The field of the multiple-input session most recently started by
|
|
4088
4220
|
* {@link runMultipleInputImport}, so {@link rerunMultipleInputRow} can
|
|
@@ -4110,6 +4242,15 @@ declare class TFormImportController {
|
|
|
4110
4242
|
/**
|
|
4111
4243
|
* Reactive progress stream — subscribe to track each row in real time.
|
|
4112
4244
|
*/
|
|
4245
|
+
/**
|
|
4246
|
+
* Where the current run stands — see {@link ImportRunState}. `idle` until a
|
|
4247
|
+
* run starts and again once it ends, stopped or not; a pick's re-check is
|
|
4248
|
+
* not a run and leaves it `idle`.
|
|
4249
|
+
*
|
|
4250
|
+
* @example
|
|
4251
|
+
* const paused = toSignal(importCtrl.runState$, { initialValue: 'idle' });
|
|
4252
|
+
*/
|
|
4253
|
+
readonly runState$: Observable<ImportRunState>;
|
|
4113
4254
|
readonly progress$: Observable<ImportProgress>;
|
|
4114
4255
|
/**
|
|
4115
4256
|
* Snapshot of the current progress (non-reactive).
|
|
@@ -4141,12 +4282,18 @@ declare class TFormImportController {
|
|
|
4141
4282
|
* @param rows Raw data objects — one per import row.
|
|
4142
4283
|
* @param identity Which fields identify a record, and what to do with a
|
|
4143
4284
|
* duplicate. Absent, or with no keys: every row stands on its own.
|
|
4285
|
+
* @param options How the rows are checked — `apiCache` shares identical API
|
|
4286
|
+
* calls between them, off by default. See {@link ImportRunOptions}.
|
|
4144
4287
|
*
|
|
4145
4288
|
* @example
|
|
4146
4289
|
* const results = await importController.runImport(form, rows, { distinctKeys: ['supplierRef', 'invoiceNo'] });
|
|
4147
4290
|
* const repeats = results.filter(r => r.status === 'duplicate'); // r.duplicateOf names the row each repeats
|
|
4291
|
+
*
|
|
4292
|
+
* @example
|
|
4293
|
+
* // Rows that fetch the same option list share one call for it.
|
|
4294
|
+
* await importController.runImport(form, rows, undefined, { apiCache: true });
|
|
4148
4295
|
*/
|
|
4149
|
-
runImport(form: FormInterface, rows: Record<string, unknown>[], identity?: ImportIdentity): Promise<ImportRowState[]>;
|
|
4296
|
+
runImport(form: FormInterface, rows: Record<string, unknown>[], identity?: ImportIdentity, options?: ImportRunOptions): Promise<ImportRowState[]>;
|
|
4150
4297
|
/**
|
|
4151
4298
|
* Validates rows for ONE multiple-input field, each as its own
|
|
4152
4299
|
* {@link ImportRowState}.
|
|
@@ -4180,12 +4327,14 @@ declare class TFormImportController {
|
|
|
4180
4327
|
* @param rows - Raw rows keyed by child `formControlName` — one object per row.
|
|
4181
4328
|
* @param identity - Which children identify a row, and what to do with a
|
|
4182
4329
|
* duplicate. Absent, or with no keys: every row stands on its own.
|
|
4330
|
+
* @param options - How the rows are checked — `apiCache` shares identical API
|
|
4331
|
+
* calls between them, off by default. See {@link ImportRunOptions}.
|
|
4183
4332
|
*
|
|
4184
4333
|
* @example
|
|
4185
4334
|
* const states = await importCtrl.runMultipleInputImport(linesColumn, rows, { distinctKeys: ['item'] });
|
|
4186
4335
|
* const ready = states.filter(s => s.status === 'valid').map(s => s.settledValue);
|
|
4187
4336
|
*/
|
|
4188
|
-
runMultipleInputImport(input: FormColumnInputs, rows: Record<string, unknown>[], identity?: ImportIdentity): Promise<ImportRowState[]>;
|
|
4337
|
+
runMultipleInputImport(input: FormColumnInputs, rows: Record<string, unknown>[], identity?: ImportIdentity, options?: ImportRunOptions): Promise<ImportRowState[]>;
|
|
4189
4338
|
/**
|
|
4190
4339
|
* Re-checks ONE row of the bulk session the last {@link runImport} started —
|
|
4191
4340
|
* after the user settled an ambiguous option reported in
|
|
@@ -4243,6 +4392,145 @@ declare class TFormImportController {
|
|
|
4243
4392
|
rerunMultipleInputRow(rowIndex: number, row: Record<string, unknown>): Promise<ImportRowState>;
|
|
4244
4393
|
/** Clears all row state. */
|
|
4245
4394
|
reset(): void;
|
|
4395
|
+
/**
|
|
4396
|
+
* Pauses the current run: the row being checked settles, then no further
|
|
4397
|
+
* row is started until {@link resume}. Nothing happens unless a run is in
|
|
4398
|
+
* progress. A pick's re-check is not a run and is never paused.
|
|
4399
|
+
*
|
|
4400
|
+
* @example
|
|
4401
|
+
* importCtrl.pause(); // progress stands still after the current row
|
|
4402
|
+
* importCtrl.resume(); // the queue carries on
|
|
4403
|
+
*/
|
|
4404
|
+
pause(): void;
|
|
4405
|
+
/** Carries a paused run on. Nothing happens unless the run is paused. */
|
|
4406
|
+
resume(): void;
|
|
4407
|
+
/**
|
|
4408
|
+
* Ends the current run — paused or not — once the row being checked
|
|
4409
|
+
* settles. Rows not yet checked stay `pending` in {@link progress$}, so the
|
|
4410
|
+
* caller can tell what was never looked at, and the run's promise resolves
|
|
4411
|
+
* with every row as it stands. Nothing happens unless a run is in progress.
|
|
4412
|
+
*
|
|
4413
|
+
* @example
|
|
4414
|
+
* importCtrl.stop();
|
|
4415
|
+
* const rows = await run; // the rows checked so far; the rest still 'pending'
|
|
4416
|
+
*/
|
|
4417
|
+
stop(): void;
|
|
4418
|
+
/** Marks a run as started and returns its id for {@link _endRun}. */
|
|
4419
|
+
private _beginRun;
|
|
4420
|
+
/** Marks a run as ended — unless a newer run has begun since, whose state stands. */
|
|
4421
|
+
private _endRun;
|
|
4422
|
+
/**
|
|
4423
|
+
* Loads the option lists of a form's choice inputs — selects, icon selects,
|
|
4424
|
+
* autocompletes, paginated selection tables, document pickers — as settled
|
|
4425
|
+
* headless forms hold them. One pass with no values reads the lists a
|
|
4426
|
+
* definition carries, every fetched list whose request depends on no form
|
|
4427
|
+
* value, a table's rows, and the transactions a picker offers (through the
|
|
4428
|
+
* `DOCUMENT_REPOSITORY`, most recent first). Each list is cut at the host's
|
|
4429
|
+
* `NgxTFormsConfig.importTemplate.maxOptionsPerInput` (500 unless set) and
|
|
4430
|
+
* marked partial beyond it. A list that waits
|
|
4431
|
+
* for other inputs — a branch list keyed on the region — is then read once
|
|
4432
|
+
* per known value of those inputs, and listed under each; a list a
|
|
4433
|
+
* condition hides, once per value that reveals it. A list that waits for an
|
|
4434
|
+
* input with no known values (free text), or for more combinations than are
|
|
4435
|
+
* tried (100 per list, 400 per form), stays unlisted and the template names
|
|
4436
|
+
* the input instead.
|
|
4437
|
+
*
|
|
4438
|
+
* Keyed by input id the way the live form mints it — a MultipleInput's
|
|
4439
|
+
* children by `<parent id>.<child id>`. Built for
|
|
4440
|
+
* {@link buildFormImportTemplate}; a host may also hand the map to the pure
|
|
4441
|
+
* `buildFormImportTemplate` of `ngx-t-forms`. Its requests go through
|
|
4442
|
+
* caches of its own, so it may run while an import session is in progress.
|
|
4443
|
+
*
|
|
4444
|
+
* @param form The form definition.
|
|
4445
|
+
* @returns The lists, one entry per option — its text as the form shows it,
|
|
4446
|
+
* its stored value, and the values other inputs must hold for it when the
|
|
4447
|
+
* list depends on any.
|
|
4448
|
+
*
|
|
4449
|
+
* @example
|
|
4450
|
+
* const options = await importCtrl.loadFormOptions(form);
|
|
4451
|
+
* const template = buildFormImportTemplate(form, { options });
|
|
4452
|
+
*/
|
|
4453
|
+
loadFormOptions(form: FormInterface): Promise<ImportOptionLists>;
|
|
4454
|
+
/**
|
|
4455
|
+
* Loads the option lists of one MultipleInput's children, keyed by child id,
|
|
4456
|
+
* exactly as {@link loadFormOptions} does for a form — through the same
|
|
4457
|
+
* one-slide form the import runs the field's rows against.
|
|
4458
|
+
*
|
|
4459
|
+
* @param input The MultipleInput column whose `formInputs` define a row.
|
|
4460
|
+
*/
|
|
4461
|
+
loadMultipleInputOptions(input: FormColumnInputs): Promise<ImportOptionLists>;
|
|
4462
|
+
/**
|
|
4463
|
+
* Builds the form's import template with its option lists loaded — the pure
|
|
4464
|
+
* `buildFormImportTemplate` of `ngx-t-forms`, fed the lists of
|
|
4465
|
+
* {@link loadFormOptions} unless the caller passes its own.
|
|
4466
|
+
*
|
|
4467
|
+
* @param form The form definition.
|
|
4468
|
+
* @param options As for the pure builder; `options.options` skips the load.
|
|
4469
|
+
* @returns The workbook to hand to the host's `SpreadsheetWriter`.
|
|
4470
|
+
*
|
|
4471
|
+
* @example
|
|
4472
|
+
* const template = await importCtrl.buildFormImportTemplate(form, { baseName: `Template-${workflowName}` });
|
|
4473
|
+
* const file = await writer(template);
|
|
4474
|
+
*/
|
|
4475
|
+
buildFormImportTemplate(form: FormInterface, options?: FormImportTemplateOptions): Promise<SpreadsheetTemplate>;
|
|
4476
|
+
/**
|
|
4477
|
+
* Loads the lists a template lists, from settled headless towers over
|
|
4478
|
+
* `form`: one pass with no values reads every static and freely fetched
|
|
4479
|
+
* list, a table's rows and a picker's transactions; then each list that
|
|
4480
|
+
* waits for other inputs, or that a condition hid, is read once per
|
|
4481
|
+
* combination of the known values of those inputs. Every tower of the load
|
|
4482
|
+
* shares HTTP caches held for this load alone — the import session's caches
|
|
4483
|
+
* are neither read nor cleared, so no earlier response bleeds in, none
|
|
4484
|
+
* lingers, and a running import keeps its own.
|
|
4485
|
+
*/
|
|
4486
|
+
private _loadOptionLists;
|
|
4487
|
+
/** {@link _loadOptionLists}, with every tower's requests shared through `caches`. */
|
|
4488
|
+
private _loadOptionListsThrough;
|
|
4489
|
+
/**
|
|
4490
|
+
* Settles one headless tower over `form` holding `values` (keyed by input
|
|
4491
|
+
* id) and reads the option candidates of every choice input — of `only`
|
|
4492
|
+
* those, when given — as the tower then holds them: a select's options, a
|
|
4493
|
+
* table's rows, and for a document picker the transactions the repository
|
|
4494
|
+
* offers in the picker's scope. An input a condition hides is reported
|
|
4495
|
+
* hidden instead: the engine loads nothing for it.
|
|
4496
|
+
*
|
|
4497
|
+
* Values are applied the way a row's are — `initializeFormValues`, which
|
|
4498
|
+
* ends by starting the lazy resources the new values unblock, so the settle
|
|
4499
|
+
* that follows waits for them. A MultipleInput child, which
|
|
4500
|
+
* `initializeFormValues` skips, is written by its composite id first. The
|
|
4501
|
+
* tower's requests go through `caches`, the load's own.
|
|
4502
|
+
*/
|
|
4503
|
+
private _optionPass;
|
|
4504
|
+
/**
|
|
4505
|
+
* The transactions a picker offers with the form as it stands, most recent
|
|
4506
|
+
* first, up to `limit`; `undefined` without a repository or a workflow, or
|
|
4507
|
+
* when the query fails — the list is then left out, as a failed fetch leaves
|
|
4508
|
+
* a select's out.
|
|
4509
|
+
*/
|
|
4510
|
+
private _documentOptions;
|
|
4511
|
+
/**
|
|
4512
|
+
* The host's cap on the options listed per input:
|
|
4513
|
+
* `NgxTFormsConfig.importTemplate.maxOptionsPerInput` when it is a positive
|
|
4514
|
+
* number, else {@link DEFAULT_MAX_OPTIONS_PER_INPUT}.
|
|
4515
|
+
*/
|
|
4516
|
+
private _maxOptionsPerInput;
|
|
4517
|
+
/**
|
|
4518
|
+
* Loads the lists the first pass could not: those that wait for other
|
|
4519
|
+
* inputs' values, and those a condition hid. Each is read once per
|
|
4520
|
+
* combination of the known values of the inputs it waits for — and, when
|
|
4521
|
+
* hidden, of the inputs its condition reads — one tower at a time, in
|
|
4522
|
+
* rounds, so a list keyed on another dependent list follows it. Inputs
|
|
4523
|
+
* waiting for the same values share the passes. A list read the same under every combination is listed
|
|
4524
|
+
* once, unconditionally; otherwise each option carries the values it was
|
|
4525
|
+
* read under. A list whose combinations exceed the caps, or that waits for
|
|
4526
|
+
* an input with no known values, stays unlisted.
|
|
4527
|
+
*/
|
|
4528
|
+
private _loadDependentOptionLists;
|
|
4529
|
+
/**
|
|
4530
|
+
* The inputs whose values `input`'s list is read under: the ones it waits
|
|
4531
|
+
* for and — when a condition hid it — the ones the condition reads.
|
|
4532
|
+
*/
|
|
4533
|
+
private _optionRequirements;
|
|
4246
4534
|
/** The patch that queues a row again with `row` as its data and every earlier outcome cleared. */
|
|
4247
4535
|
private _freshRowPatch;
|
|
4248
4536
|
/**
|
|
@@ -4252,25 +4540,25 @@ declare class TFormImportController {
|
|
|
4252
4540
|
* HttpClient, NGX_T_FORMS_CONFIG_TOKEN, and any other deps the tower needs
|
|
4253
4541
|
* are found automatically — no manual wiring required here.
|
|
4254
4542
|
*
|
|
4255
|
-
* After creation the tower's HTTP functions are replaced with
|
|
4256
|
-
*
|
|
4257
|
-
* in
|
|
4543
|
+
* After creation the tower's HTTP functions are replaced with wrappers that
|
|
4544
|
+
* route every request through {@link _shareCall}: with a template's own
|
|
4545
|
+
* caches, or in a run that asked for an API cache, identical requests from
|
|
4546
|
+
* different rows share one call and each get a copy of its response; in any
|
|
4547
|
+
* other run every request is made for its row alone.
|
|
4258
4548
|
*/
|
|
4259
4549
|
private _createTower;
|
|
4260
4550
|
/**
|
|
4261
|
-
*
|
|
4262
|
-
*
|
|
4263
|
-
*
|
|
4264
|
-
*
|
|
4265
|
-
*
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
/**
|
|
4269
|
-
* Returns a shared Observable for a POST request.
|
|
4270
|
-
* Keyed by URL + serialised body + serialised options so only truly
|
|
4271
|
-
* identical requests are deduplicated.
|
|
4551
|
+
* Shares one API call between rows: under `calls`, `run` is made once for the
|
|
4552
|
+
* key `keyOf` gives it and its response replayed — as a copy, so no row can
|
|
4553
|
+
* change what another reads — to every later caller with the same key. With
|
|
4554
|
+
* no store (the run asked for none) or no key (the call cannot be compared
|
|
4555
|
+
* value by value) `run` is made for this caller alone. A call that failed is
|
|
4556
|
+
* not kept — the next caller makes it afresh — and nothing outlives the
|
|
4557
|
+
* store's `clear()`: see {@link SharedCalls}.
|
|
4272
4558
|
*/
|
|
4273
|
-
private
|
|
4559
|
+
private _shareCall;
|
|
4560
|
+
/** The run's shared calls, or `null` when the run shares none (`ImportRunOptions.apiCache` off). */
|
|
4561
|
+
private _sessionCache;
|
|
4274
4562
|
/**
|
|
4275
4563
|
* End-to-end pipeline for a single import row. Runs concurrently with every
|
|
4276
4564
|
* other row in the session.
|
|
@@ -4409,9 +4697,9 @@ declare class TFormImportController {
|
|
|
4409
4697
|
private _tryParseJsonArray;
|
|
4410
4698
|
/**
|
|
4411
4699
|
* Resolves a single account code to an IScoaAccount.
|
|
4412
|
-
* Routed through `
|
|
4413
|
-
*
|
|
4414
|
-
*
|
|
4700
|
+
* Routed through `_shareCall` so, in a run with an API cache, identical codes
|
|
4701
|
+
* across rows share one lookup — the same mechanism used for all other API
|
|
4702
|
+
* calls in this class.
|
|
4415
4703
|
*/
|
|
4416
4704
|
private _lookupScoaAccount;
|
|
4417
4705
|
/**
|
|
@@ -4427,17 +4715,37 @@ declare class TFormImportController {
|
|
|
4427
4715
|
* - `'a, b, c'` — comma-separated string.
|
|
4428
4716
|
* - `'[a, b]'` (malformed JSON) — fallback: strip brackets, split, strip quotes.
|
|
4429
4717
|
*
|
|
4430
|
-
*
|
|
4431
|
-
*
|
|
4432
|
-
*
|
|
4433
|
-
* label becomes that option's value, and a tie is left in place for the
|
|
4434
|
-
* settled pass to report as a choice. Texts that name nothing are returned as
|
|
4435
|
-
* errors of the form `'invalidOption:<value>'` and `value` is omitted (so the
|
|
4436
|
-
* parent form control keeps its original/empty state and the row is flagged
|
|
4437
|
-
* invalid). API-fetched options are not known here; the settled pass matches
|
|
4438
|
-
* those.
|
|
4718
|
+
* Nothing is judged here: every value, in-config or API-fetched, is matched
|
|
4719
|
+
* against the field's options once by the settled pass, so a label, a stored
|
|
4720
|
+
* value, a tie and an unknown text all get one verdict from one place.
|
|
4439
4721
|
*/
|
|
4440
4722
|
private _processSelectInput;
|
|
4723
|
+
/**
|
|
4724
|
+
* Pre-processor for Toggle inputs.
|
|
4725
|
+
*
|
|
4726
|
+
* A toggle is a choice between two options, so its cell is judged like any
|
|
4727
|
+
* other choice cell — here rather than after settle, since a toggle has
|
|
4728
|
+
* nothing to load. A boolean stands; a number is its truthiness. Text is
|
|
4729
|
+
* read against the toggle's own `trueLabel` / `falseLabel` first — what the
|
|
4730
|
+
* form shows, and what the template tells the user to type — and only then
|
|
4731
|
+
* against the generic `TRUE` / `FALSE`, `yes` / `no`, `y` / `n`, `1` / `0`,
|
|
4732
|
+
* so a toggle labelled "No" for its on state still imports "No" as on. Any
|
|
4733
|
+
* other text is `invalidOption:<text>`, never a truthy string written to a
|
|
4734
|
+
* boolean control. Blank stays blank.
|
|
4735
|
+
*/
|
|
4736
|
+
private _processToggleInput;
|
|
4737
|
+
/**
|
|
4738
|
+
* Pre-processor for rich-text (Editor) inputs.
|
|
4739
|
+
*
|
|
4740
|
+
* The control stores a Quill document — a Delta, `{ ops: [...] }` — never a
|
|
4741
|
+
* bare string, which the editor opens empty and drops on its next save. Plain
|
|
4742
|
+
* text becomes a Delta of that text (a line break is a paragraph break); a
|
|
4743
|
+
* Quill document — an object, or its JSON — stands; any other structured
|
|
4744
|
+
* value is `invalidRichText`, since the editor would lose it silently. A
|
|
4745
|
+
* blank cell, or an empty document, clears the control so a required column
|
|
4746
|
+
* is reported by the form (see `functions/richTextCell.ts`).
|
|
4747
|
+
*/
|
|
4748
|
+
private _processRichTextInput;
|
|
4441
4749
|
/**
|
|
4442
4750
|
* Swaps what the user typed into a row's choice cells for what the form
|
|
4443
4751
|
* stores.
|
|
@@ -4454,20 +4762,28 @@ declare class TFormImportController {
|
|
|
4454
4762
|
* tower settles again and the pass repeats, until a pass changes nothing or
|
|
4455
4763
|
* {@link MAX_OPTION_PASSES} is reached.
|
|
4456
4764
|
*
|
|
4765
|
+
* A document picker's options are not loaded into the form, so its cell —
|
|
4766
|
+
* a transaction reference, an identifier, or a shown column's value — is
|
|
4767
|
+
* looked up through the {@link DOCUMENT_REPOSITORY} instead, inside the
|
|
4768
|
+
* picker's own scope and against the row's settled values (see
|
|
4769
|
+
* `documentCandidates.ts`); the verdict rules are the same. A cell that
|
|
4770
|
+
* cannot be asked about is refused with `documentLookupFailed`.
|
|
4771
|
+
*
|
|
4457
4772
|
* @param tower - The row's settled tower.
|
|
4458
4773
|
* @param row - The pre-processed row the tower was initialised from.
|
|
4459
4774
|
* @param rejected - `formControlName`s a pre-processor already reported an
|
|
4460
4775
|
* error for; their cells are not judged again (the pre-processor's verdict
|
|
4461
4776
|
* stands, and the cell it refused still reaches the tower as raw text).
|
|
4462
4777
|
* @returns Blocking column errors (`ambiguousOption:<text>`,
|
|
4463
|
-
* `invalidOption:<text
|
|
4464
|
-
* for the user, both keyed by `formControlName`.
|
|
4778
|
+
* `invalidOption:<text>`, `documentLookupFailed`; several joined with `.`)
|
|
4779
|
+
* and the choices left for the user, both keyed by `formControlName`.
|
|
4465
4780
|
*/
|
|
4466
4781
|
private _resolveOptionValues;
|
|
4467
4782
|
/**
|
|
4468
4783
|
* Whether the tower holds `cell` for an input — i.e. the imported cell was
|
|
4469
4784
|
* applied rather than displaced by a tower-owned value. Compared as text so
|
|
4470
|
-
* a numeric id written from a text cell still counts
|
|
4785
|
+
* a numeric id written from a text cell still counts; a stored object (a
|
|
4786
|
+
* document reference) by its JSON.
|
|
4471
4787
|
*/
|
|
4472
4788
|
private _holdsCell;
|
|
4473
4789
|
/** Merges two `formControlName → 'a.b'` error maps, joining keys that occur in both. */
|
|
@@ -4546,9 +4862,9 @@ declare class TFormImportController {
|
|
|
4546
4862
|
* spurious `settled === true` (value resources still `idle`, not yet
|
|
4547
4863
|
* `loading`) before a row's derived values have drained and projected —
|
|
4548
4864
|
* leaving most rows with empty API-derived fields (objectives/nKPA/etc.).
|
|
4549
|
-
*
|
|
4550
|
-
*
|
|
4551
|
-
*
|
|
4865
|
+
* A run with an API cache (`ImportRunOptions.apiCache`) still shares identical
|
|
4866
|
+
* requests across rows, so sequential processing reuses the same network
|
|
4867
|
+
* calls without the race.
|
|
4552
4868
|
*
|
|
4553
4869
|
* @param process - Settles the row at an index from its raw data; must leave
|
|
4554
4870
|
* it in a terminal status.
|
|
@@ -4611,6 +4927,42 @@ declare class TFormImportController {
|
|
|
4611
4927
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TFormImportController>;
|
|
4612
4928
|
}
|
|
4613
4929
|
|
|
4930
|
+
declare function decrypt(encrypted: EncryptedData, secret: string): Promise<string>;
|
|
4931
|
+
|
|
4932
|
+
/**
|
|
4933
|
+
* Derives a deterministic 32-char HMAC key for a given form input, salted by
|
|
4934
|
+
* the consumer-supplied secret. The secret must be configured via
|
|
4935
|
+
* `withInputSecret()` and read from `INPUT_SECRET_TOKEN` at the callsite —
|
|
4936
|
+
* this function does not (and cannot, as a free helper) inject it itself.
|
|
4937
|
+
*
|
|
4938
|
+
* @param input Input descriptor; its identity fields seed the primary digest.
|
|
4939
|
+
* @param secret Consumer-supplied HMAC secret. Throws if missing.
|
|
4940
|
+
*/
|
|
4941
|
+
declare const generateSecretKey: (input: FormColumnInputs, secret: string) => Promise<string>;
|
|
4942
|
+
|
|
4943
|
+
/**
|
|
4944
|
+
* @public
|
|
4945
|
+
* @deprecated Reachable for one minor cycle only as part of the Phase 1 public-surface
|
|
4946
|
+
* lockdown. Target removal: v3.0.0. No replacement — this is the empty
|
|
4947
|
+
* `ng generate library` stub and will be deleted in Phase 2.
|
|
4948
|
+
*/
|
|
4949
|
+
declare class NgxTFormsService {
|
|
4950
|
+
constructor();
|
|
4951
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxTFormsService, never>;
|
|
4952
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NgxTFormsService>;
|
|
4953
|
+
}
|
|
4954
|
+
|
|
4955
|
+
/**
|
|
4956
|
+
* @public
|
|
4957
|
+
* @deprecated Reachable for one minor cycle only as part of the Phase 1 public-surface
|
|
4958
|
+
* lockdown. Target removal: v3.0.0. No replacement — this is the empty
|
|
4959
|
+
* `ng generate library` stub and will be deleted in Phase 2.
|
|
4960
|
+
*/
|
|
4961
|
+
declare class NgxTFormsComponent {
|
|
4962
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxTFormsComponent, never>;
|
|
4963
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxTFormsComponent, "lib-ngx-t-forms", never, {}, {}, never, never, true, never>;
|
|
4964
|
+
}
|
|
4965
|
+
|
|
4614
4966
|
/**
|
|
4615
4967
|
* Provides a unique identifier for each tower instance created during an
|
|
4616
4968
|
* import run — one id per imported row. The form import controller uses this
|
|
@@ -5242,8 +5594,20 @@ declare function getSampleValueForInput(input: FormColumnInputs): any;
|
|
|
5242
5594
|
* @deprecated Internal helper re-exported via the `_deprecated/` compatibility
|
|
5243
5595
|
* barrel; remains functional. A renamed/improved replacement may be introduced
|
|
5244
5596
|
* in a future minor; the original symbol stays callable. See DECISIONS.md D-014.
|
|
5597
|
+
*
|
|
5598
|
+
* The numeric pipes (`currency`, `decimal`, `integer`) round with the same rule
|
|
5599
|
+
* the tower stores the value under (see `numberRounding.ts`) before Angular
|
|
5600
|
+
* formats it, with both fraction bounds pinned to that precision, so a value
|
|
5601
|
+
* saved before the rule existed still prints the way a freshly typed one does.
|
|
5602
|
+
*
|
|
5603
|
+
* `localization` is the consumer's `NgxTFormsConfig.localization` (or the
|
|
5604
|
+
* library's resolved copy of it): the locale amounts and dates are written in,
|
|
5605
|
+
* the currency a `currency` pipe without a code falls back to and how it is
|
|
5606
|
+
* displayed, the zone times of day are shown in, and the date and time formats
|
|
5607
|
+
* a pipe without a `param` uses. Omit it for the library defaults — `en-ZA`,
|
|
5608
|
+
* `ZAR`, the browser's zone — which are what this helper always used.
|
|
5245
5609
|
*/
|
|
5246
|
-
declare function getPipedValueFromDataType(dataType: InputDataTypes | undefined | DocumentLitsLabelConfigInterfaceValueType, value: any, pipe: FormColumnInputs['pipe'] | undefined): any;
|
|
5610
|
+
declare function getPipedValueFromDataType(dataType: InputDataTypes | undefined | DocumentLitsLabelConfigInterfaceValueType, value: any, pipe: FormColumnInputs['pipe'] | undefined, localization?: NgxTFormsLocalization): any;
|
|
5247
5611
|
|
|
5248
5612
|
/**
|
|
5249
5613
|
* @public
|
|
@@ -5324,5 +5688,5 @@ declare function testAgainstItem(test: ConfigurationValidTestInterface, item: un
|
|
|
5324
5688
|
*/
|
|
5325
5689
|
declare const getSignatureImage: (inputConfig: FormColumnInputs, value: EncryptedData | undefined, secret: string) => Promise<string | undefined>;
|
|
5326
5690
|
|
|
5327
|
-
export { AI_ENDPOINT_CATALOG, AI_FORM_BUILDER_CONFIG, AI_MSCOA_GROUNDING, DialogTemplateComponent, FORM_ACTIONS_TOKEN, FORM_CONFIG_TOKEN, FORM_DRAFT_ORCHESTRATOR, FORM_INPUTS_TOKEN, FORM_ROUTE_SOURCE, FORM_SLIDES_TOKEN, FORM_SUGGESTION_REGISTRY, FormBuilderComponent, FormDraftOrchestrator, FormSuggestionRegistry, FormSuggestionRegistryService, FormTowerControllerService, FormatDataPipe, FormsComponent, HashbrownFormDraftOrchestratorService, HttpPipelineRepository, IMPORT_TOWER_INSTANCE_ID, INPUT_SECRET_TOKEN, MSCOA_TREE_PROVIDER, MULTIPLE_FORM_INPUT_TOKEN, MscoaFormInputComponent, NGX_T_FORMS_CONFIG_TOKEN, NgxTFormsComponent, NgxTFormsService, PIPELINE_REPOSITORY, PipelineRepository, PropertyAccessError, SPREADSHEET_PARSER, SPREADSHEET_WRITER, SignatureInputElementComponent, TDynamicDataEditComponent, TDynamicDataViewComponent, TFormDraftPanelComponent, TFormImportController, TFormInputComponent, TSuggestionReviewComponent, UTILS_OBJECT_TOKEN, UserFormStepperComponent, ValidationExpressioCreatorComponent, applyOptionChoice, assignDeepPropertyToObject, buildBlueprintSchema, buildBriefSchema, buildSuggestionSchema, createFileFromBase64, decrypt as decryptSecuredInputValue, formGenerator, generateSecretKey as generateInputSecretKey, getPipedValueFromDataType, getSampleValueForInput, getSectionElements, getSignatureImage, getUrl, getValueFromValueAccessor, initFormConfigToV2, provideNgxTForms, returnDeepProperty, returnMappedPathValue, safeReturnDeepProperty, sheetConsolodation, testAgainstItem, textIconsForUserHints, toSuggestionBatch, validateExpressionSyntax, validateObjectAgainstString, withAiEndpointCatalog, withAiFormBuilder, withAiMscoaGrounding, withFormSuggestions, withHttpPipeline, withInputSecret, withRouterFormId, withSpreadsheetImport };
|
|
5328
|
-
export type { AiEndpointCatalogEntry, AiEndpointCatalogProvider, AiEndpointCatalogSource, AiEndpointSlot, AiFormBuilderBudgets, AiFormBuilderConfig, AiFormBuilderModels, AiFormBuilderRole, AiMscoaAccountingBasis, AiMscoaGrounding, AiMscoaSegmentDescriptor, BlueprintField, BlueprintSlide, DescribeOptions, DraftFailure, DraftFinding, DraftFindingKind, DraftFindingSeverity, DraftMessage, DraftMessageAuthor, DraftPartial, DraftRepairRoute, DraftRepairTurn, DraftRepairTurnKind, DraftRequestMiddleware, DraftSession, DraftStage, DraftTelemetry, EditableFieldError, EditableFieldKind, EditableFieldSchema, EditableFieldValidation, FieldSuggestion, FormBlueprint, FormBrief, FormBriefField, FormBriefRule, FormSuggestionChannel, FormSuggestionSnapshot, MscoaAccountSelection, MscoaCurrentSelection, MscoaFieldCapability, MscoaInnerInputDescriptor, MscoaSegmentDescriptor, MscoaSuggestionValue, MultipleRowSuggestionValue, SpreadsheetParser, SpreadsheetSheet, SpreadsheetSource, SpreadsheetTemplate, SpreadsheetTemplateSheet, SpreadsheetWriter, StagedSuggestion, SuggestionBatch };
|
|
5691
|
+
export { AI_ENDPOINT_CATALOG, AI_FORM_BUILDER_CONFIG, AI_MSCOA_GROUNDING, DialogTemplateComponent, FORM_ACTIONS_TOKEN, FORM_CONFIG_TOKEN, FORM_DRAFT_ORCHESTRATOR, FORM_INPUTS_TOKEN, FORM_ROUTE_SOURCE, FORM_SLIDES_TOKEN, FORM_SUGGESTION_REGISTRY, FormBuilderComponent, FormDraftOrchestrator, FormSuggestionRegistry, FormSuggestionRegistryService, FormTowerControllerService, FormatDataPipe, FormsComponent, HashbrownFormDraftOrchestratorService, HttpPipelineRepository, IMPORT_TOWER_INSTANCE_ID, INPUT_SECRET_TOKEN, MSCOA_TREE_PROVIDER, MULTIPLE_FORM_INPUT_TOKEN, MscoaFormInputComponent, NGX_T_FORMS_CONFIG_TOKEN, NgxTFormsComponent, NgxTFormsService, PIPELINE_REPOSITORY, PipelineRepository, PropertyAccessError, SPREADSHEET_PARSER, SPREADSHEET_WRITER, SignatureInputElementComponent, TDynamicDataEditComponent, TDynamicDataViewComponent, TEMPLATE_GUIDE_SHEET, TEMPLATE_OPTIONS_SHEET, TFormDraftPanelComponent, TFormImportController, TFormInputComponent, TSuggestionReviewComponent, UTILS_OBJECT_TOKEN, UserFormStepperComponent, ValidationExpressioCreatorComponent, applyOptionChoice, assignDeepPropertyToObject, buildBlueprintSchema, buildBriefSchema, buildFormImportTemplate, buildSuggestionSchema, createFileFromBase64, decrypt as decryptSecuredInputValue, formGenerator, generateSecretKey as generateInputSecretKey, getPipedValueFromDataType, getSampleValueForInput, getSectionElements, getSignatureImage, getUrl, getValueFromValueAccessor, initFormConfigToV2, provideNgxTForms, returnDeepProperty, returnMappedPathValue, safeReturnDeepProperty, sheetConsolodation, testAgainstItem, textIconsForUserHints, toSuggestionBatch, validateExpressionSyntax, validateObjectAgainstString, withAiEndpointCatalog, withAiFormBuilder, withAiMscoaGrounding, withFormSuggestions, withHttpPipeline, withInputSecret, withRouterFormId, withSpreadsheetImport };
|
|
5692
|
+
export type { AiEndpointCatalogEntry, AiEndpointCatalogProvider, AiEndpointCatalogSource, AiEndpointSlot, AiFormBuilderBudgets, AiFormBuilderConfig, AiFormBuilderModels, AiFormBuilderRole, AiMscoaAccountingBasis, AiMscoaGrounding, AiMscoaSegmentDescriptor, BlueprintField, BlueprintSlide, DescribeOptions, DraftFailure, DraftFinding, DraftFindingKind, DraftFindingSeverity, DraftMessage, DraftMessageAuthor, DraftPartial, DraftRepairRoute, DraftRepairTurn, DraftRepairTurnKind, DraftRequestMiddleware, DraftSession, DraftStage, DraftTelemetry, EditableFieldError, EditableFieldKind, EditableFieldSchema, EditableFieldValidation, FieldSuggestion, FormBlueprint, FormBrief, FormBriefField, FormBriefRule, FormImportTemplateOptions, FormSuggestionChannel, FormSuggestionSnapshot, ImportOptionCondition, ImportOptionList, ImportOptionLists, ImportRunOptions, ImportRunState, ImportTemplateOption, MscoaAccountSelection, MscoaCurrentSelection, MscoaFieldCapability, MscoaInnerInputDescriptor, MscoaSegmentDescriptor, MscoaSuggestionValue, MultipleRowSuggestionValue, SpreadsheetParser, SpreadsheetSheet, SpreadsheetSource, SpreadsheetTemplate, SpreadsheetTemplateSheet, SpreadsheetWriter, StagedSuggestion, SuggestionBatch };
|