@eqproject/eqp-dynamic-module 2.8.7 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{esm2020 → esm2022}/eqproject-eqp-dynamic-module.mjs +4 -4
- package/esm2022/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +531 -0
- package/esm2022/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +1245 -0
- package/esm2022/lib/components/private/add-form-field/add-form-field.component.mjs +1263 -0
- package/esm2022/lib/components/private/add-formula-field/add-formula-field.component.mjs +200 -0
- package/esm2022/lib/components/private/dbgetter/dbgetter.component.mjs +233 -0
- package/esm2022/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +280 -0
- package/esm2022/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.mjs +143 -0
- package/esm2022/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.mjs +75 -0
- package/esm2022/lib/components/private/field-templates/date-field-template/date-field-template.component.mjs +106 -0
- package/esm2022/lib/components/private/field-templates/image-field-selector-template/image-field-selector-template.component.mjs +107 -0
- package/esm2022/lib/components/private/field-templates/image-field-template/image-field-template.component.mjs +265 -0
- package/esm2022/lib/components/private/field-templates/image-with-markers-field-template/image-with-markers-field-template.component.mjs +261 -0
- package/esm2022/lib/components/private/field-templates/label-field-template/label-field-template.component.mjs +82 -0
- package/esm2022/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +176 -0
- package/esm2022/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +129 -0
- package/esm2022/lib/components/private/field-templates/text-field-template/text-field-template.component.mjs +103 -0
- package/esm2022/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.mjs +78 -0
- package/esm2022/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +837 -0
- package/esm2022/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +408 -0
- package/esm2022/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +651 -0
- package/esm2022/lib/components/private/form-records/list-view-form-record/single-record/single-record.component.mjs +82 -0
- package/esm2022/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.mjs +59 -0
- package/esm2022/lib/components/private/form-records/view-form-record/view-form-record.component.mjs +131 -0
- package/esm2022/lib/components/private/form-statistics/dynamic-module-filter-fix/dynamic-module-filter-fix.component.mjs +89 -0
- package/esm2022/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.mjs +460 -0
- package/esm2022/lib/components/private/form-statistics/filter-templates/attachment-filter-template/attachment-filter-template.component.mjs +58 -0
- package/esm2022/lib/components/private/form-statistics/filter-templates/boolean-filter-template/boolean-filter-template.component.mjs +110 -0
- package/esm2022/lib/components/private/form-statistics/filter-templates/date-filter-template/date-filter-template.component.mjs +108 -0
- package/esm2022/lib/components/private/form-statistics/filter-templates/image-filter-template/image-filter-template.component.mjs +58 -0
- package/esm2022/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.mjs +135 -0
- package/esm2022/lib/components/private/form-statistics/filter-templates/list-form-record-filter-template/list-form-record-filter-template.component.mjs +58 -0
- package/esm2022/lib/components/private/form-statistics/filter-templates/list-value-filter-template/list-value-filter-template.component.mjs +141 -0
- package/esm2022/lib/components/private/form-statistics/filter-templates/numeric-filter-template/numeric-filter-template.component.mjs +126 -0
- package/esm2022/lib/components/private/form-statistics/filter-templates/text-filter-template/text-filter-template.component.mjs +111 -0
- package/esm2022/lib/components/private/form-statistics/filter-templates/textarea-filter-template/textarea-filter-template.component.mjs +111 -0
- package/esm2022/lib/components/private/graphs/graph/graph.component.mjs +186 -0
- package/esm2022/lib/components/private/graphs/graphs.component.mjs +175 -0
- package/esm2022/lib/components/private/spinner/spinner.component.mjs +21 -0
- package/{esm2020 → esm2022}/lib/components/private/tmw-image-drawer/i18n.mjs +62 -62
- package/esm2022/lib/components/private/tmw-image-drawer/tmw-image-drawer.component.mjs +413 -0
- package/esm2022/lib/components/private/tmw-image-marker/tmw-image-marker.component.mjs +348 -0
- package/esm2022/lib/components/private/trigger-creator/dynamic-module-trigger-fix/dynamic-module-trigger-fix.component.mjs +81 -0
- package/esm2022/lib/components/private/trigger-creator/trigger-creator.component.mjs +199 -0
- package/esm2022/lib/components/private/trigger-creator/trigger-templates/boolean-trigger-template/boolean-trigger-template.component.mjs +91 -0
- package/esm2022/lib/components/private/trigger-creator/trigger-templates/date-trigger-template/date-trigger-template.component.mjs +88 -0
- package/esm2022/lib/components/private/trigger-creator/trigger-templates/list-form-record-trigger-template/list-form-record-trigger-template.component.mjs +61 -0
- package/esm2022/lib/components/private/trigger-creator/trigger-templates/list-value-trigger-template/list-value-trigger-template.component.mjs +69 -0
- package/esm2022/lib/components/private/trigger-creator/trigger-templates/numeric-trigger-template/numeric-trigger-template.component.mjs +107 -0
- package/esm2022/lib/components/private/trigger-creator/trigger-templates/text-trigger-template/text-trigger-template.component.mjs +92 -0
- package/esm2022/lib/components/private/trigger-creator/trigger-templates/textarea-trigger-template/textarea-trigger-template.component.mjs +92 -0
- package/esm2022/lib/directives/dynamic-loader/dynamic-loader.directive.mjs +63 -0
- package/esm2022/lib/directives/speech-to-text/speech-to-text.directive.mjs +192 -0
- package/esm2022/lib/eqp-dynamic-module.module.mjs +253 -0
- package/{esm2020 → esm2022}/lib/interfaces/iBaseFieldComponent.interface.mjs +1 -1
- package/{esm2020 → esm2022}/lib/interfaces/iRootObject.interface.mjs +1 -1
- package/esm2022/lib/models/baseField.model.mjs +133 -0
- package/esm2022/lib/models/baseObj.model.mjs +10 -0
- package/{esm2020 → esm2022}/lib/models/context.model.mjs +10 -8
- package/esm2022/lib/models/dynAttachment.mjs +52 -0
- package/esm2022/lib/models/dynamicModuleCompileConfig.model.mjs +45 -0
- package/esm2022/lib/models/dynamicModuleConfig.model.mjs +13 -0
- package/esm2022/lib/models/dynamicModuleConfiguratorConfig.model.mjs +11 -0
- package/esm2022/lib/models/dynamicModuleConfiguratorSpecificConfig.model.mjs +16 -0
- package/{esm2020 → esm2022}/lib/models/dynamicModuleFilterResultViewModeEnum.model.mjs +6 -6
- package/esm2022/lib/models/dynamicModuleGeneralConfig.model.mjs +36 -0
- package/esm2022/lib/models/dynamicModuleListConfig.model.mjs +48 -0
- package/esm2022/lib/models/dynamicModuleListFormRecordActionsDefault.mjs +35 -0
- package/{esm2020 → esm2022}/lib/models/dynamicModuleRepairConfig.model.mjs +10 -10
- package/{esm2020 → esm2022}/lib/models/dynamicModuleViewModeEnum.mjs +11 -11
- package/esm2022/lib/models/endPointConfiguration.model.mjs +211 -0
- package/{esm2020 → esm2022}/lib/models/entity.model.mjs +10 -7
- package/esm2022/lib/models/fields/attachmentField.model.mjs +28 -0
- package/esm2022/lib/models/fields/booleanField.model.mjs +15 -0
- package/esm2022/lib/models/fields/dateField.model.mjs +15 -0
- package/esm2022/lib/models/fields/imageField.model.mjs +14 -0
- package/esm2022/lib/models/fields/imageSelectorField.model.mjs +10 -0
- package/esm2022/lib/models/fields/imageWithMarkersField.model.mjs +7 -0
- package/{esm2020 → esm2022}/lib/models/fields/labelField.model.mjs +5 -4
- package/esm2022/lib/models/fields/listValueField.model.mjs +24 -0
- package/esm2022/lib/models/fields/lookupField.model.mjs +11 -0
- package/esm2022/lib/models/fields/numericField.model.mjs +13 -0
- package/esm2022/lib/models/fields/textField.model.mjs +18 -0
- package/esm2022/lib/models/fields/textareaField.model.mjs +9 -0
- package/esm2022/lib/models/form.model.mjs +63 -0
- package/esm2022/lib/models/getter.model.mjs +6 -0
- package/esm2022/lib/models/graph.model.mjs +19 -0
- package/{esm2020 → esm2022}/lib/models/logicOperator.model.mjs +55 -55
- package/esm2022/lib/models/record.model.mjs +39 -0
- package/esm2022/lib/models/statistic.model.mjs +12 -0
- package/esm2022/lib/models/trigger.model.mjs +63 -0
- package/esm2022/lib/modules/formula.model.mjs +266 -0
- package/{esm2020 → esm2022}/lib/modules/material.module.mjs +231 -231
- package/{esm2020 → esm2022}/lib/services/custom-form-validators.service.mjs +18 -18
- package/esm2022/lib/services/db-date.service.mjs +178 -0
- package/esm2022/lib/services/eqp-dynamic-module-dialog.service.mjs +114 -0
- package/esm2022/lib/services/global.service.mjs +43 -0
- package/esm2022/lib/services/spinner.service.mjs +41 -0
- package/esm2022/lib/services/utilityHelper.services.mjs +601 -0
- package/{esm2020 → esm2022}/public-api.mjs +56 -56
- package/fesm2022/eqproject-eqp-dynamic-module.mjs +13506 -0
- package/fesm2022/eqproject-eqp-dynamic-module.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +162 -162
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +308 -308
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +263 -263
- package/lib/components/private/add-formula-field/add-formula-field.component.d.ts +45 -45
- package/lib/components/private/dbgetter/dbgetter.component.d.ts +51 -51
- package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +84 -84
- package/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.d.ts +57 -57
- package/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.d.ts +27 -27
- package/lib/components/private/field-templates/date-field-template/date-field-template.component.d.ts +36 -36
- package/lib/components/private/field-templates/image-field-selector-template/image-field-selector-template.component.d.ts +33 -33
- package/lib/components/private/field-templates/image-field-template/image-field-template.component.d.ts +80 -80
- package/lib/components/private/field-templates/image-with-markers-field-template/image-with-markers-field-template.component.d.ts +78 -78
- package/lib/components/private/field-templates/label-field-template/label-field-template.component.d.ts +33 -33
- package/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.d.ts +59 -59
- package/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.d.ts +40 -40
- package/lib/components/private/field-templates/text-field-template/text-field-template.component.d.ts +35 -35
- package/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.d.ts +31 -31
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +104 -104
- package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +83 -83
- package/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.d.ts +151 -151
- package/lib/components/private/form-records/list-view-form-record/single-record/single-record.component.d.ts +39 -39
- package/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.d.ts +20 -20
- package/lib/components/private/form-records/view-form-record/view-form-record.component.d.ts +36 -36
- package/lib/components/private/form-statistics/dynamic-module-filter-fix/dynamic-module-filter-fix.component.d.ts +42 -42
- package/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.d.ts +109 -109
- package/lib/components/private/form-statistics/filter-templates/attachment-filter-template/attachment-filter-template.component.d.ts +21 -21
- package/lib/components/private/form-statistics/filter-templates/boolean-filter-template/boolean-filter-template.component.d.ts +37 -37
- package/lib/components/private/form-statistics/filter-templates/date-filter-template/date-filter-template.component.d.ts +37 -37
- package/lib/components/private/form-statistics/filter-templates/image-filter-template/image-filter-template.component.d.ts +21 -21
- package/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.d.ts +47 -47
- package/lib/components/private/form-statistics/filter-templates/list-form-record-filter-template/list-form-record-filter-template.component.d.ts +21 -21
- package/lib/components/private/form-statistics/filter-templates/list-value-filter-template/list-value-filter-template.component.d.ts +47 -47
- package/lib/components/private/form-statistics/filter-templates/numeric-filter-template/numeric-filter-template.component.d.ts +40 -40
- package/lib/components/private/form-statistics/filter-templates/text-filter-template/text-filter-template.component.d.ts +38 -38
- package/lib/components/private/form-statistics/filter-templates/textarea-filter-template/textarea-filter-template.component.d.ts +38 -38
- package/lib/components/private/graphs/graph/graph.component.d.ts +25 -25
- package/lib/components/private/graphs/graphs.component.d.ts +47 -47
- package/lib/components/private/spinner/spinner.component.d.ts +12 -12
- package/lib/components/private/tmw-image-drawer/i18n.d.ts +27 -27
- package/lib/components/private/tmw-image-drawer/tmw-image-drawer.component.d.ts +70 -70
- package/lib/components/private/tmw-image-marker/tmw-image-marker.component.d.ts +62 -62
- package/lib/components/private/trigger-creator/dynamic-module-trigger-fix/dynamic-module-trigger-fix.component.d.ts +42 -42
- package/lib/components/private/trigger-creator/trigger-creator.component.d.ts +42 -42
- package/lib/components/private/trigger-creator/trigger-templates/boolean-trigger-template/boolean-trigger-template.component.d.ts +34 -34
- package/lib/components/private/trigger-creator/trigger-templates/date-trigger-template/date-trigger-template.component.d.ts +34 -34
- package/lib/components/private/trigger-creator/trigger-templates/list-form-record-trigger-template/list-form-record-trigger-template.component.d.ts +24 -24
- package/lib/components/private/trigger-creator/trigger-templates/list-value-trigger-template/list-value-trigger-template.component.d.ts +34 -34
- package/lib/components/private/trigger-creator/trigger-templates/numeric-trigger-template/numeric-trigger-template.component.d.ts +37 -37
- package/lib/components/private/trigger-creator/trigger-templates/text-trigger-template/text-trigger-template.component.d.ts +36 -36
- package/lib/components/private/trigger-creator/trigger-templates/textarea-trigger-template/textarea-trigger-template.component.d.ts +36 -36
- package/lib/directives/dynamic-loader/dynamic-loader.directive.d.ts +26 -26
- package/lib/directives/speech-to-text/speech-to-text.directive.d.ts +31 -31
- package/lib/eqp-dynamic-module.module.d.ts +85 -85
- package/lib/interfaces/iBaseFieldComponent.interface.d.ts +8 -8
- package/lib/interfaces/iRootObject.interface.d.ts +11 -11
- package/lib/models/baseField.model.d.ts +126 -126
- package/lib/models/baseObj.model.d.ts +9 -9
- package/lib/models/context.model.d.ts +9 -9
- package/lib/models/dynAttachment.d.ts +49 -49
- package/lib/models/dynamicModuleCompileConfig.model.d.ts +35 -35
- package/lib/models/dynamicModuleConfig.model.d.ts +11 -11
- package/lib/models/dynamicModuleConfiguratorConfig.model.d.ts +7 -7
- package/lib/models/dynamicModuleConfiguratorSpecificConfig.model.d.ts +11 -11
- package/lib/models/dynamicModuleFilterResultViewModeEnum.model.d.ts +5 -5
- package/lib/models/dynamicModuleGeneralConfig.model.d.ts +29 -29
- package/lib/models/dynamicModuleListConfig.model.d.ts +39 -39
- package/lib/models/dynamicModuleListFormRecordActionsDefault.d.ts +9 -9
- package/lib/models/dynamicModuleRepairConfig.model.d.ts +4 -4
- package/lib/models/dynamicModuleViewModeEnum.d.ts +10 -10
- package/lib/models/endPointConfiguration.model.d.ts +46 -46
- package/lib/models/entity.model.d.ts +11 -11
- package/lib/models/fields/attachmentField.model.d.ts +17 -17
- package/lib/models/fields/booleanField.model.d.ts +11 -11
- package/lib/models/fields/dateField.model.d.ts +13 -13
- package/lib/models/fields/imageField.model.d.ts +13 -13
- package/lib/models/fields/imageSelectorField.model.d.ts +12 -12
- package/lib/models/fields/imageWithMarkersField.model.d.ts +7 -7
- package/lib/models/fields/labelField.model.d.ts +4 -4
- package/lib/models/fields/listValueField.model.d.ts +24 -24
- package/lib/models/fields/lookupField.model.d.ts +10 -10
- package/lib/models/fields/numericField.model.d.ts +12 -12
- package/lib/models/fields/textField.model.d.ts +16 -16
- package/lib/models/fields/textareaField.model.d.ts +8 -8
- package/lib/models/form.model.d.ts +61 -61
- package/lib/models/getter.model.d.ts +5 -5
- package/lib/models/graph.model.d.ts +18 -18
- package/lib/models/logicOperator.model.d.ts +48 -48
- package/lib/models/record.model.d.ts +41 -41
- package/lib/models/statistic.model.d.ts +13 -13
- package/lib/models/trigger.model.d.ts +51 -51
- package/lib/modules/formula.model.d.ts +32 -32
- package/lib/modules/material.module.d.ts +37 -37
- package/lib/services/custom-form-validators.service.d.ts +5 -5
- package/lib/services/db-date.service.d.ts +24 -24
- package/lib/services/eqp-dynamic-module-dialog.service.d.ts +44 -44
- package/lib/services/global.service.d.ts +16 -16
- package/lib/services/spinner.service.d.ts +18 -18
- package/lib/services/utilityHelper.services.d.ts +101 -101
- package/package.json +20 -25
- package/public-api.d.ts +53 -53
- package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +0 -516
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +0 -1196
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +0 -1202
- package/esm2020/lib/components/private/add-formula-field/add-formula-field.component.mjs +0 -196
- package/esm2020/lib/components/private/dbgetter/dbgetter.component.mjs +0 -226
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +0 -263
- package/esm2020/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.mjs +0 -138
- package/esm2020/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.mjs +0 -71
- package/esm2020/lib/components/private/field-templates/date-field-template/date-field-template.component.mjs +0 -104
- package/esm2020/lib/components/private/field-templates/image-field-selector-template/image-field-selector-template.component.mjs +0 -100
- package/esm2020/lib/components/private/field-templates/image-field-template/image-field-template.component.mjs +0 -256
- package/esm2020/lib/components/private/field-templates/image-with-markers-field-template/image-with-markers-field-template.component.mjs +0 -252
- package/esm2020/lib/components/private/field-templates/label-field-template/label-field-template.component.mjs +0 -74
- package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +0 -172
- package/esm2020/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +0 -124
- package/esm2020/lib/components/private/field-templates/text-field-template/text-field-template.component.mjs +0 -95
- package/esm2020/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.mjs +0 -71
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +0 -828
- package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +0 -400
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +0 -628
- package/esm2020/lib/components/private/form-records/list-view-form-record/single-record/single-record.component.mjs +0 -75
- package/esm2020/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.mjs +0 -54
- package/esm2020/lib/components/private/form-records/view-form-record/view-form-record.component.mjs +0 -125
- package/esm2020/lib/components/private/form-statistics/dynamic-module-filter-fix/dynamic-module-filter-fix.component.mjs +0 -76
- package/esm2020/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.mjs +0 -453
- package/esm2020/lib/components/private/form-statistics/filter-templates/attachment-filter-template/attachment-filter-template.component.mjs +0 -57
- package/esm2020/lib/components/private/form-statistics/filter-templates/boolean-filter-template/boolean-filter-template.component.mjs +0 -104
- package/esm2020/lib/components/private/form-statistics/filter-templates/date-filter-template/date-filter-template.component.mjs +0 -105
- package/esm2020/lib/components/private/form-statistics/filter-templates/image-filter-template/image-filter-template.component.mjs +0 -57
- package/esm2020/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.mjs +0 -128
- package/esm2020/lib/components/private/form-statistics/filter-templates/list-form-record-filter-template/list-form-record-filter-template.component.mjs +0 -57
- package/esm2020/lib/components/private/form-statistics/filter-templates/list-value-filter-template/list-value-filter-template.component.mjs +0 -135
- package/esm2020/lib/components/private/form-statistics/filter-templates/numeric-filter-template/numeric-filter-template.component.mjs +0 -120
- package/esm2020/lib/components/private/form-statistics/filter-templates/text-filter-template/text-filter-template.component.mjs +0 -102
- package/esm2020/lib/components/private/form-statistics/filter-templates/textarea-filter-template/textarea-filter-template.component.mjs +0 -102
- package/esm2020/lib/components/private/graphs/graph/graph.component.mjs +0 -180
- package/esm2020/lib/components/private/graphs/graphs.component.mjs +0 -164
- package/esm2020/lib/components/private/spinner/spinner.component.mjs +0 -19
- package/esm2020/lib/components/private/tmw-image-drawer/tmw-image-drawer.component.mjs +0 -403
- package/esm2020/lib/components/private/tmw-image-marker/tmw-image-marker.component.mjs +0 -336
- package/esm2020/lib/components/private/trigger-creator/dynamic-module-trigger-fix/dynamic-module-trigger-fix.component.mjs +0 -69
- package/esm2020/lib/components/private/trigger-creator/trigger-creator.component.mjs +0 -179
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/boolean-trigger-template/boolean-trigger-template.component.mjs +0 -86
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/date-trigger-template/date-trigger-template.component.mjs +0 -86
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/list-form-record-trigger-template/list-form-record-trigger-template.component.mjs +0 -60
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/list-value-trigger-template/list-value-trigger-template.component.mjs +0 -66
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/numeric-trigger-template/numeric-trigger-template.component.mjs +0 -102
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/text-trigger-template/text-trigger-template.component.mjs +0 -84
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/textarea-trigger-template/textarea-trigger-template.component.mjs +0 -84
- package/esm2020/lib/directives/dynamic-loader/dynamic-loader.directive.mjs +0 -59
- package/esm2020/lib/directives/speech-to-text/speech-to-text.directive.mjs +0 -186
- package/esm2020/lib/eqp-dynamic-module.module.mjs +0 -253
- package/esm2020/lib/models/baseField.model.mjs +0 -101
- package/esm2020/lib/models/baseObj.model.mjs +0 -9
- package/esm2020/lib/models/dynAttachment.mjs +0 -21
- package/esm2020/lib/models/dynamicModuleCompileConfig.model.mjs +0 -13
- package/esm2020/lib/models/dynamicModuleConfig.model.mjs +0 -9
- package/esm2020/lib/models/dynamicModuleConfiguratorConfig.model.mjs +0 -9
- package/esm2020/lib/models/dynamicModuleConfiguratorSpecificConfig.model.mjs +0 -15
- package/esm2020/lib/models/dynamicModuleGeneralConfig.model.mjs +0 -36
- package/esm2020/lib/models/dynamicModuleListConfig.model.mjs +0 -30
- package/esm2020/lib/models/dynamicModuleListFormRecordActionsDefault.mjs +0 -11
- package/esm2020/lib/models/endPointConfiguration.model.mjs +0 -205
- package/esm2020/lib/models/fields/attachmentField.model.mjs +0 -22
- package/esm2020/lib/models/fields/booleanField.model.mjs +0 -12
- package/esm2020/lib/models/fields/dateField.model.mjs +0 -15
- package/esm2020/lib/models/fields/imageField.model.mjs +0 -15
- package/esm2020/lib/models/fields/imageSelectorField.model.mjs +0 -8
- package/esm2020/lib/models/fields/imageWithMarkersField.model.mjs +0 -8
- package/esm2020/lib/models/fields/listValueField.model.mjs +0 -11
- package/esm2020/lib/models/fields/lookupField.model.mjs +0 -5
- package/esm2020/lib/models/fields/numericField.model.mjs +0 -5
- package/esm2020/lib/models/fields/textField.model.mjs +0 -14
- package/esm2020/lib/models/fields/textareaField.model.mjs +0 -4
- package/esm2020/lib/models/form.model.mjs +0 -24
- package/esm2020/lib/models/getter.model.mjs +0 -3
- package/esm2020/lib/models/graph.model.mjs +0 -15
- package/esm2020/lib/models/record.model.mjs +0 -10
- package/esm2020/lib/models/statistic.model.mjs +0 -8
- package/esm2020/lib/models/trigger.model.mjs +0 -41
- package/esm2020/lib/modules/formula.model.mjs +0 -265
- package/esm2020/lib/services/db-date.service.mjs +0 -178
- package/esm2020/lib/services/eqp-dynamic-module-dialog.service.mjs +0 -114
- package/esm2020/lib/services/global.service.mjs +0 -41
- package/esm2020/lib/services/spinner.service.mjs +0 -43
- package/esm2020/lib/services/utilityHelper.services.mjs +0 -598
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +0 -12770
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +0 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +0 -12739
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class dbDateService {
|
|
3
|
-
/**
|
|
4
|
-
* Parse date to visualize as a string
|
|
5
|
-
*/
|
|
6
|
-
parseDate(date: Date): string;
|
|
7
|
-
parseTime(date: Date): string;
|
|
8
|
-
addZeroesOnData(numero: number): string;
|
|
9
|
-
parseDatefromDB(dirtyDateMeasurement: any): Date;
|
|
10
|
-
isDateFromServer(date: any): boolean;
|
|
11
|
-
isDateInstance(date: any): boolean;
|
|
12
|
-
parseDatefromDBMilliseconds(dirtyDateMeasurement: any): Date;
|
|
13
|
-
prepareHourforDB(dirtyHour: Date): Date;
|
|
14
|
-
parseForHour(allMinutes: number): number;
|
|
15
|
-
/**
|
|
16
|
-
* Rounds a number to the our preferred number of decimal places.
|
|
17
|
-
* @param number the number we want to round
|
|
18
|
-
* @param decimals how many decimal places we want the rounded number to have
|
|
19
|
-
* @returns the rounded number
|
|
20
|
-
*/
|
|
21
|
-
roundDecimals(number: number, decimals: number): number;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<dbDateService, never>;
|
|
23
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<dbDateService>;
|
|
24
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class dbDateService {
|
|
3
|
+
/**
|
|
4
|
+
* Parse date to visualize as a string
|
|
5
|
+
*/
|
|
6
|
+
parseDate(date: Date): string;
|
|
7
|
+
parseTime(date: Date): string;
|
|
8
|
+
addZeroesOnData(numero: number): string;
|
|
9
|
+
parseDatefromDB(dirtyDateMeasurement: any): Date;
|
|
10
|
+
isDateFromServer(date: any): boolean;
|
|
11
|
+
isDateInstance(date: any): boolean;
|
|
12
|
+
parseDatefromDBMilliseconds(dirtyDateMeasurement: any): Date;
|
|
13
|
+
prepareHourforDB(dirtyHour: Date): Date;
|
|
14
|
+
parseForHour(allMinutes: number): number;
|
|
15
|
+
/**
|
|
16
|
+
* Rounds a number to the our preferred number of decimal places.
|
|
17
|
+
* @param number the number we want to round
|
|
18
|
+
* @param decimals how many decimal places we want the rounded number to have
|
|
19
|
+
* @returns the rounded number
|
|
20
|
+
*/
|
|
21
|
+
roundDecimals(number: number, decimals: number): number;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<dbDateService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<dbDateService>;
|
|
24
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class EqpDynamicModuleDialogService {
|
|
3
|
-
constructor();
|
|
4
|
-
/**
|
|
5
|
-
* Mostra uno sweet alert di tipo SUCCESS con il messaggio passato come parametro.
|
|
6
|
-
* @param message Messaggio da mostrare nello sweetalert
|
|
7
|
-
* @param title Titolo dello sweetalert (di default mostra 'Operazione completata')
|
|
8
|
-
*/
|
|
9
|
-
static Success(message: string, title?: string): void;
|
|
10
|
-
/**
|
|
11
|
-
* Mostra uno sweet alert di tipo ERROR con il messaggio passato come parametro.
|
|
12
|
-
* @param message Messaggio d'errore da mostrare nello sweetalert
|
|
13
|
-
* @param title Titolo dello sweetalert (di default mostra 'Errore')
|
|
14
|
-
*/
|
|
15
|
-
static Error(message: string | string[], title?: string): void;
|
|
16
|
-
/**
|
|
17
|
-
* Mostra uno sweetalert di tipo CONFIRM con il messaggio passato come parametro.
|
|
18
|
-
* Alla pressione del tasto CONFERMA viene invocata la funzione confirmCallback.
|
|
19
|
-
* Se viene passata anche la funzione cancellCallback viene invocata quando viene premuto il tasto ANNULLA
|
|
20
|
-
* @param message Messaggio da mostrare nello sweetalert (può contenere una lista di messaggi)
|
|
21
|
-
* @param confirmCallback Funzione di callback da invocare quando viene premuto il tasto CONFERMA
|
|
22
|
-
* @param isWarning Se TRUE allora utilizza l'icona di WARNING all'interno dello sweetalert
|
|
23
|
-
* @param title Titolo dello sweetalert (di default mostra 'Sei sicuro di voler procedere?')
|
|
24
|
-
* @param customWidth Larghezza da impostare per lo sweetalert (default: 32rem)
|
|
25
|
-
* @param cancelCallback Funzione di callback da invocare alla pressione del tasto ANNULLA (opzionale)
|
|
26
|
-
* @param confirmButtonText Testo da mostrare nel pulsante di conferma (default: Conferma)
|
|
27
|
-
* @param cancelButtonText Testo da mostrare nel pulsante di annulla (default: Chiudi)
|
|
28
|
-
*/
|
|
29
|
-
static Confirm(message: string | string[], confirmCallback: any, isWarning?: boolean, title?: string, customWidth?: string, cancelCallback?: any, confirmButtonText?: string, cancelButtonText?: string, haveDenyButton?: boolean, denyButtonText?: string, denyCallback?: any, allowOutsideClick?: boolean): void;
|
|
30
|
-
/**
|
|
31
|
-
* Mostra uno sweetalert di tipo INFO con il messaggio passato come parametro
|
|
32
|
-
* @param message Messaggio da mostrare nello sweetalert
|
|
33
|
-
* @param title Titolo dello sweetalert (di default mostra 'Info')
|
|
34
|
-
*/
|
|
35
|
-
static Info(message: string, title?: string, isToast?: boolean): void;
|
|
36
|
-
/**
|
|
37
|
-
* Mostra uno sweetalert di tipo WARNING con il messaggio passato come parametro
|
|
38
|
-
* @param message Messaggio da mostrare nello sweetalert
|
|
39
|
-
* @param title Titolo dello sweetalert (di default mostra 'Attenzione!')
|
|
40
|
-
*/
|
|
41
|
-
static Warning(message: string | string[], title?: string, isToast?: boolean): void;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleDialogService, never>;
|
|
43
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EqpDynamicModuleDialogService>;
|
|
44
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class EqpDynamicModuleDialogService {
|
|
3
|
+
constructor();
|
|
4
|
+
/**
|
|
5
|
+
* Mostra uno sweet alert di tipo SUCCESS con il messaggio passato come parametro.
|
|
6
|
+
* @param message Messaggio da mostrare nello sweetalert
|
|
7
|
+
* @param title Titolo dello sweetalert (di default mostra 'Operazione completata')
|
|
8
|
+
*/
|
|
9
|
+
static Success(message: string, title?: string): void;
|
|
10
|
+
/**
|
|
11
|
+
* Mostra uno sweet alert di tipo ERROR con il messaggio passato come parametro.
|
|
12
|
+
* @param message Messaggio d'errore da mostrare nello sweetalert
|
|
13
|
+
* @param title Titolo dello sweetalert (di default mostra 'Errore')
|
|
14
|
+
*/
|
|
15
|
+
static Error(message: string | string[], title?: string): void;
|
|
16
|
+
/**
|
|
17
|
+
* Mostra uno sweetalert di tipo CONFIRM con il messaggio passato come parametro.
|
|
18
|
+
* Alla pressione del tasto CONFERMA viene invocata la funzione confirmCallback.
|
|
19
|
+
* Se viene passata anche la funzione cancellCallback viene invocata quando viene premuto il tasto ANNULLA
|
|
20
|
+
* @param message Messaggio da mostrare nello sweetalert (può contenere una lista di messaggi)
|
|
21
|
+
* @param confirmCallback Funzione di callback da invocare quando viene premuto il tasto CONFERMA
|
|
22
|
+
* @param isWarning Se TRUE allora utilizza l'icona di WARNING all'interno dello sweetalert
|
|
23
|
+
* @param title Titolo dello sweetalert (di default mostra 'Sei sicuro di voler procedere?')
|
|
24
|
+
* @param customWidth Larghezza da impostare per lo sweetalert (default: 32rem)
|
|
25
|
+
* @param cancelCallback Funzione di callback da invocare alla pressione del tasto ANNULLA (opzionale)
|
|
26
|
+
* @param confirmButtonText Testo da mostrare nel pulsante di conferma (default: Conferma)
|
|
27
|
+
* @param cancelButtonText Testo da mostrare nel pulsante di annulla (default: Chiudi)
|
|
28
|
+
*/
|
|
29
|
+
static Confirm(message: string | string[], confirmCallback: any, isWarning?: boolean, title?: string, customWidth?: string, cancelCallback?: any, confirmButtonText?: string, cancelButtonText?: string, haveDenyButton?: boolean, denyButtonText?: string, denyCallback?: any, allowOutsideClick?: boolean): void;
|
|
30
|
+
/**
|
|
31
|
+
* Mostra uno sweetalert di tipo INFO con il messaggio passato come parametro
|
|
32
|
+
* @param message Messaggio da mostrare nello sweetalert
|
|
33
|
+
* @param title Titolo dello sweetalert (di default mostra 'Info')
|
|
34
|
+
*/
|
|
35
|
+
static Info(message: string, title?: string, isToast?: boolean): void;
|
|
36
|
+
/**
|
|
37
|
+
* Mostra uno sweetalert di tipo WARNING con il messaggio passato come parametro
|
|
38
|
+
* @param message Messaggio da mostrare nello sweetalert
|
|
39
|
+
* @param title Titolo dello sweetalert (di default mostra 'Attenzione!')
|
|
40
|
+
*/
|
|
41
|
+
static Warning(message: string | string[], title?: string, isToast?: boolean): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleDialogService, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EqpDynamicModuleDialogService>;
|
|
44
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { SpeechToTextDirective } from "../../lib/directives/speech-to-text/speech-to-text.directive";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GlobalService {
|
|
5
|
-
private http;
|
|
6
|
-
static debugMode: boolean;
|
|
7
|
-
static isSpeechToTextStarted: boolean;
|
|
8
|
-
static speechDirective: SpeechToTextDirective;
|
|
9
|
-
constructor(http: HttpClient);
|
|
10
|
-
static debugLog(message: string, element?: any): void;
|
|
11
|
-
static stringToValuePairs(valueString: string): {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalService, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalService>;
|
|
16
|
-
}
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { SpeechToTextDirective } from "../../lib/directives/speech-to-text/speech-to-text.directive";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GlobalService {
|
|
5
|
+
private http;
|
|
6
|
+
static debugMode: boolean;
|
|
7
|
+
static isSpeechToTextStarted: boolean;
|
|
8
|
+
static speechDirective: SpeechToTextDirective;
|
|
9
|
+
constructor(http: HttpClient);
|
|
10
|
+
static debugLog(message: string, element?: any): void;
|
|
11
|
+
static stringToValuePairs(valueString: string): {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalService>;
|
|
16
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SpinnerService {
|
|
4
|
-
isLoading: Subject<boolean>;
|
|
5
|
-
private requestsCount;
|
|
6
|
-
/**
|
|
7
|
-
* Mostra lo spinner
|
|
8
|
-
*/
|
|
9
|
-
show(): void;
|
|
10
|
-
/**
|
|
11
|
-
* Nasconde lo spinner
|
|
12
|
-
*/
|
|
13
|
-
hide(): void;
|
|
14
|
-
addRequestCounter(): void;
|
|
15
|
-
removeRequestCounter(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SpinnerService>;
|
|
18
|
-
}
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SpinnerService {
|
|
4
|
+
isLoading: Subject<boolean>;
|
|
5
|
+
private requestsCount;
|
|
6
|
+
/**
|
|
7
|
+
* Mostra lo spinner
|
|
8
|
+
*/
|
|
9
|
+
show(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Nasconde lo spinner
|
|
12
|
+
*/
|
|
13
|
+
hide(): void;
|
|
14
|
+
addRequestCounter(): void;
|
|
15
|
+
removeRequestCounter(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpinnerService>;
|
|
18
|
+
}
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { UntypedFormBuilder, UntypedFormGroup } from "@angular/forms";
|
|
3
|
-
import { BaseField } from "../models/baseField.model";
|
|
4
|
-
import { Context } from "../models/context.model";
|
|
5
|
-
import { EndPointConfiguration, EndPointData, EndPointDataParams } from "../models/endPointConfiguration.model";
|
|
6
|
-
import { TextField } from "../models/fields/textField.model";
|
|
7
|
-
import { Form } from "../models/form.model";
|
|
8
|
-
import { Record } from "../models/record.model";
|
|
9
|
-
import { SpinnerService } from "./spinner.service";
|
|
10
|
-
import { DynAttachment } from "../models/dynAttachment";
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class UtilityHelperService {
|
|
13
|
-
private formBuilder;
|
|
14
|
-
private http;
|
|
15
|
-
private spinnerService;
|
|
16
|
-
static context: Context;
|
|
17
|
-
debugMode: boolean;
|
|
18
|
-
debugLog(message: string, item?: any): void;
|
|
19
|
-
constructor(formBuilder: UntypedFormBuilder, http: HttpClient, spinnerService: SpinnerService);
|
|
20
|
-
static EvaluateFieldFormula(formula: string, rec: Record, ctx: any): any;
|
|
21
|
-
static SetContext(ctx: Context): void;
|
|
22
|
-
static isNumeric(n: any): boolean;
|
|
23
|
-
static initStyles(stylecss: any): any;
|
|
24
|
-
static GetFieldType(field: BaseField): TextField;
|
|
25
|
-
/**
|
|
26
|
-
* Metodo per impostare i valori da suggerire nell'autocomplete per i campi in cui l'utente deve scrivere comandi javascript.
|
|
27
|
-
* In base all'ultimo carattere digitato viene impostato un elenco di oggetti o proprietà che l'utente ha a disposizione in quel momento.
|
|
28
|
-
* @param fields Array di BaseField aggiunti alla Form
|
|
29
|
-
* @param typedFormula Stringa digitata dall'utente
|
|
30
|
-
* @summary Il metodo imposta i suggerimenti basandosi su 3 casi:
|
|
31
|
-
* 1) l'utente non ha digitato nulla o la stringa digitata dall'utente finisce con uno spazio vuoto
|
|
32
|
-
* 2) la stringa digitata dall'utente finisce con un "."
|
|
33
|
-
* 3) la stringa digitata dall'utente non coincide con nessun altro caso sopra (finisce con un carattere qualunque)
|
|
34
|
-
*/
|
|
35
|
-
static GetAutocompleteOptions(fields: Array<BaseField>, typedFormula: string): Array<{
|
|
36
|
-
label: string;
|
|
37
|
-
value: string;
|
|
38
|
-
}>;
|
|
39
|
-
/**
|
|
40
|
-
* Metodo invocato dall'html per impostare le classi css per visualizzare il campo all'interno della form.
|
|
41
|
-
* Se per il field sono state specificate delle classi allora vengono applcate quelle, altrimenti vengono usate
|
|
42
|
-
* delle classi di default.
|
|
43
|
-
* @param field BaseField da visualizzare.
|
|
44
|
-
* @returns Restituisce una stringa contenente le classi css da applicare.
|
|
45
|
-
*/
|
|
46
|
-
getFieldSyleClass(field: BaseField, showAllFields?: boolean): string;
|
|
47
|
-
/**
|
|
48
|
-
* Metodo invocato dall'html per impostare le classi css per visualizzare il campo all'interno della form.
|
|
49
|
-
* Se per il field sono state specificate delle classi allora vengono applcate quelle, altrimenti vengono usate
|
|
50
|
-
* delle classi di default.
|
|
51
|
-
* @param field BaseField da visualizzare.
|
|
52
|
-
* @returns Restituisce una stringa contenente le classi css da applicare.
|
|
53
|
-
*/
|
|
54
|
-
getFieldAnswerStyleClass(field: BaseField): string;
|
|
55
|
-
private getDefaultStyleClass;
|
|
56
|
-
/**
|
|
57
|
-
* Metodo per creare il FormGroup che rappresenta una Form a partire dai suoi BaseField.
|
|
58
|
-
* @param formFields Lista dei BaseField che compongono la form.
|
|
59
|
-
* @param record Oggetto di tipo Record che contiene i valori dei campi.
|
|
60
|
-
* @param onlyView Se TRUE disabilita la form per renderla in sola lettura.
|
|
61
|
-
* @param includeCurrentFormInField Se TRUE popola la proprietà FormFormGroup all'interno di ogni BaseField con il FormGroup corrente.
|
|
62
|
-
* @returns Restituisce un FormGroup rappresentate la Form a cui appartengono i BaseField ricevuti in input.
|
|
63
|
-
*/
|
|
64
|
-
CreateFormFormGroup(formFields: Array<BaseField>, record: Record, onlyView?: boolean, includeCurrentFormInField?: boolean): UntypedFormGroup;
|
|
65
|
-
/**
|
|
66
|
-
* Funzione per creare e aggiungere al FormGroup rappresentante la form un nuovo FormControl a partire da un Field.
|
|
67
|
-
* In nuovo FormControl avrà il nome del campo passato e verranno impostati i Validators in base al tipo del campo stesso.
|
|
68
|
-
* @param field BaseField per cui creare il FormControl da inserire nel FormGroup dela form.
|
|
69
|
-
*/
|
|
70
|
-
private createFieldFormControl;
|
|
71
|
-
/**
|
|
72
|
-
* Metodo per configurare gli endpoint da usare di default a partire dall'url base del server
|
|
73
|
-
* a cui si deve connettere e al token da passare per autenticarsi.
|
|
74
|
-
* @param baseServerUrl Stringa dell'url base del server (es: "http://localhost:5000").
|
|
75
|
-
* @param userToken Token dell'utente loggato da usare per autenticarsi se necessario.
|
|
76
|
-
* @returns Resituisce la configurazione completa degli endPoint da usare di default.
|
|
77
|
-
*/
|
|
78
|
-
ConfigureDefaultEndPoints(baseServerUrl: string, userToken: string): EndPointConfiguration;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @param expression prende una stringa in input e verifica che ogni parentesi aperta venga anche chiusa
|
|
82
|
-
* @returns true se le parentesi sono pari e ogni parentesi chiude se stessa, false se mancano parentesi o non vengono chiuse
|
|
83
|
-
*/
|
|
84
|
-
static stringCheckParentesis(expression: any, required?: boolean): boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Metodo che data la configurazione di un endpoint costruisce l'url da chiamare, gli eventuali parametri
|
|
87
|
-
* da passare (nel body o nella rotta) ed effettua la chiamata. Al termine della chiamata esegue le eventuali
|
|
88
|
-
* funzioni di callback (sia in caso di successo che in caso di errore) passate in input.
|
|
89
|
-
* @param endPointData Cofigurazione dell'endpoint da chiamare.
|
|
90
|
-
* @param dynamicModuleParams Array dei parametri aggiunti dal modulo dinamico a quelli già configurati
|
|
91
|
-
* (ad esempio il record o la form da salvare oppure l'ID per recuperare una particolare entità).
|
|
92
|
-
* @param callback Metodo da eseguire in caso di successo dopo la chiamata http.
|
|
93
|
-
* NOTA: in input viene passata la risposta della chiamata stessa.
|
|
94
|
-
* @param errorCallBack Metodo da eseguire in caso di errore dopo la chiamata http.
|
|
95
|
-
* NOTA: in input viene passato l'errore generato della chiamata stessa.
|
|
96
|
-
*/
|
|
97
|
-
RunEndPointCall(endPointData: EndPointData, dynamicModuleParams?: Array<EndPointDataParams>, callback?: (e: Form | Array<Form> | Record | Array<Record> | DynAttachment | Array<DynAttachment> | string) => void, errorCallBack?: (err: unknown) => void): void;
|
|
98
|
-
static base64ToBlob(b64Data: any, contentType?: string, sliceSize?: number): Blob;
|
|
99
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UtilityHelperService, never>;
|
|
100
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UtilityHelperService>;
|
|
101
|
-
}
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from "@angular/forms";
|
|
3
|
+
import { BaseField } from "../models/baseField.model";
|
|
4
|
+
import { Context } from "../models/context.model";
|
|
5
|
+
import { EndPointConfiguration, EndPointData, EndPointDataParams } from "../models/endPointConfiguration.model";
|
|
6
|
+
import { TextField } from "../models/fields/textField.model";
|
|
7
|
+
import { Form } from "../models/form.model";
|
|
8
|
+
import { Record } from "../models/record.model";
|
|
9
|
+
import { SpinnerService } from "./spinner.service";
|
|
10
|
+
import { DynAttachment } from "../models/dynAttachment";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class UtilityHelperService {
|
|
13
|
+
private formBuilder;
|
|
14
|
+
private http;
|
|
15
|
+
private spinnerService;
|
|
16
|
+
static context: Context;
|
|
17
|
+
debugMode: boolean;
|
|
18
|
+
debugLog(message: string, item?: any): void;
|
|
19
|
+
constructor(formBuilder: UntypedFormBuilder, http: HttpClient, spinnerService: SpinnerService);
|
|
20
|
+
static EvaluateFieldFormula(formula: string, rec: Record, ctx: any): any;
|
|
21
|
+
static SetContext(ctx: Context): void;
|
|
22
|
+
static isNumeric(n: any): boolean;
|
|
23
|
+
static initStyles(stylecss: any): any;
|
|
24
|
+
static GetFieldType(field: BaseField): TextField;
|
|
25
|
+
/**
|
|
26
|
+
* Metodo per impostare i valori da suggerire nell'autocomplete per i campi in cui l'utente deve scrivere comandi javascript.
|
|
27
|
+
* In base all'ultimo carattere digitato viene impostato un elenco di oggetti o proprietà che l'utente ha a disposizione in quel momento.
|
|
28
|
+
* @param fields Array di BaseField aggiunti alla Form
|
|
29
|
+
* @param typedFormula Stringa digitata dall'utente
|
|
30
|
+
* @summary Il metodo imposta i suggerimenti basandosi su 3 casi:
|
|
31
|
+
* 1) l'utente non ha digitato nulla o la stringa digitata dall'utente finisce con uno spazio vuoto
|
|
32
|
+
* 2) la stringa digitata dall'utente finisce con un "."
|
|
33
|
+
* 3) la stringa digitata dall'utente non coincide con nessun altro caso sopra (finisce con un carattere qualunque)
|
|
34
|
+
*/
|
|
35
|
+
static GetAutocompleteOptions(fields: Array<BaseField>, typedFormula: string): Array<{
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Metodo invocato dall'html per impostare le classi css per visualizzare il campo all'interno della form.
|
|
41
|
+
* Se per il field sono state specificate delle classi allora vengono applcate quelle, altrimenti vengono usate
|
|
42
|
+
* delle classi di default.
|
|
43
|
+
* @param field BaseField da visualizzare.
|
|
44
|
+
* @returns Restituisce una stringa contenente le classi css da applicare.
|
|
45
|
+
*/
|
|
46
|
+
getFieldSyleClass(field: BaseField, showAllFields?: boolean): string;
|
|
47
|
+
/**
|
|
48
|
+
* Metodo invocato dall'html per impostare le classi css per visualizzare il campo all'interno della form.
|
|
49
|
+
* Se per il field sono state specificate delle classi allora vengono applcate quelle, altrimenti vengono usate
|
|
50
|
+
* delle classi di default.
|
|
51
|
+
* @param field BaseField da visualizzare.
|
|
52
|
+
* @returns Restituisce una stringa contenente le classi css da applicare.
|
|
53
|
+
*/
|
|
54
|
+
getFieldAnswerStyleClass(field: BaseField): string;
|
|
55
|
+
private getDefaultStyleClass;
|
|
56
|
+
/**
|
|
57
|
+
* Metodo per creare il FormGroup che rappresenta una Form a partire dai suoi BaseField.
|
|
58
|
+
* @param formFields Lista dei BaseField che compongono la form.
|
|
59
|
+
* @param record Oggetto di tipo Record che contiene i valori dei campi.
|
|
60
|
+
* @param onlyView Se TRUE disabilita la form per renderla in sola lettura.
|
|
61
|
+
* @param includeCurrentFormInField Se TRUE popola la proprietà FormFormGroup all'interno di ogni BaseField con il FormGroup corrente.
|
|
62
|
+
* @returns Restituisce un FormGroup rappresentate la Form a cui appartengono i BaseField ricevuti in input.
|
|
63
|
+
*/
|
|
64
|
+
CreateFormFormGroup(formFields: Array<BaseField>, record: Record, onlyView?: boolean, includeCurrentFormInField?: boolean): UntypedFormGroup;
|
|
65
|
+
/**
|
|
66
|
+
* Funzione per creare e aggiungere al FormGroup rappresentante la form un nuovo FormControl a partire da un Field.
|
|
67
|
+
* In nuovo FormControl avrà il nome del campo passato e verranno impostati i Validators in base al tipo del campo stesso.
|
|
68
|
+
* @param field BaseField per cui creare il FormControl da inserire nel FormGroup dela form.
|
|
69
|
+
*/
|
|
70
|
+
private createFieldFormControl;
|
|
71
|
+
/**
|
|
72
|
+
* Metodo per configurare gli endpoint da usare di default a partire dall'url base del server
|
|
73
|
+
* a cui si deve connettere e al token da passare per autenticarsi.
|
|
74
|
+
* @param baseServerUrl Stringa dell'url base del server (es: "http://localhost:5000").
|
|
75
|
+
* @param userToken Token dell'utente loggato da usare per autenticarsi se necessario.
|
|
76
|
+
* @returns Resituisce la configurazione completa degli endPoint da usare di default.
|
|
77
|
+
*/
|
|
78
|
+
ConfigureDefaultEndPoints(baseServerUrl: string, userToken: string): EndPointConfiguration;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @param expression prende una stringa in input e verifica che ogni parentesi aperta venga anche chiusa
|
|
82
|
+
* @returns true se le parentesi sono pari e ogni parentesi chiude se stessa, false se mancano parentesi o non vengono chiuse
|
|
83
|
+
*/
|
|
84
|
+
static stringCheckParentesis(expression: any, required?: boolean): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Metodo che data la configurazione di un endpoint costruisce l'url da chiamare, gli eventuali parametri
|
|
87
|
+
* da passare (nel body o nella rotta) ed effettua la chiamata. Al termine della chiamata esegue le eventuali
|
|
88
|
+
* funzioni di callback (sia in caso di successo che in caso di errore) passate in input.
|
|
89
|
+
* @param endPointData Cofigurazione dell'endpoint da chiamare.
|
|
90
|
+
* @param dynamicModuleParams Array dei parametri aggiunti dal modulo dinamico a quelli già configurati
|
|
91
|
+
* (ad esempio il record o la form da salvare oppure l'ID per recuperare una particolare entità).
|
|
92
|
+
* @param callback Metodo da eseguire in caso di successo dopo la chiamata http.
|
|
93
|
+
* NOTA: in input viene passata la risposta della chiamata stessa.
|
|
94
|
+
* @param errorCallBack Metodo da eseguire in caso di errore dopo la chiamata http.
|
|
95
|
+
* NOTA: in input viene passato l'errore generato della chiamata stessa.
|
|
96
|
+
*/
|
|
97
|
+
RunEndPointCall(endPointData: EndPointData, dynamicModuleParams?: Array<EndPointDataParams>, callback?: (e: Form | Array<Form> | Record | Array<Record> | DynAttachment | Array<DynAttachment> | string) => void, errorCallBack?: (err: unknown) => void): void;
|
|
98
|
+
static base64ToBlob(b64Data: any, contentType?: string, sliceSize?: number): Blob;
|
|
99
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UtilityHelperService, never>;
|
|
100
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UtilityHelperService>;
|
|
101
|
+
}
|
package/package.json
CHANGED
|
@@ -4,39 +4,36 @@
|
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "EqProject"
|
|
6
6
|
},
|
|
7
|
-
"version": "
|
|
7
|
+
"version": "3.0.0",
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@angular-material-components/datetime-picker": "^
|
|
10
|
-
"@angular-material-components/moment-adapter": "
|
|
11
|
-
"@angular/cdk": "^
|
|
12
|
-
"@angular/common": "^
|
|
13
|
-
"@angular/core": "^
|
|
14
|
-
"@angular/material": "^
|
|
9
|
+
"@angular-material-components/datetime-picker": "^16.0.1",
|
|
10
|
+
"@angular-material-components/moment-adapter": "16.0.1",
|
|
11
|
+
"@angular/cdk": "^17.3.10",
|
|
12
|
+
"@angular/common": "^17.3.12",
|
|
13
|
+
"@angular/core": "^17.3.12",
|
|
14
|
+
"@angular/material": "^17.3.10",
|
|
15
15
|
"moment": "^2.29.4",
|
|
16
16
|
"sweetalert2": "^11.4.24"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@canvasjs/angular-stockcharts": "^1.1.0",
|
|
20
20
|
"@canvasjs/stockcharts": "^1.7.39",
|
|
21
|
-
"@eqproject/eqp-attachments": "
|
|
22
|
-
"@eqproject/eqp-
|
|
23
|
-
"@eqproject/eqp-
|
|
24
|
-
"@eqproject/eqp-
|
|
25
|
-
"@eqproject/eqp-
|
|
21
|
+
"@eqproject/eqp-attachments": "3.0.0",
|
|
22
|
+
"@eqproject/eqp-common": "^0.0.9",
|
|
23
|
+
"@eqproject/eqp-filters": "3.0.0",
|
|
24
|
+
"@eqproject/eqp-numeric": "3.0.0",
|
|
25
|
+
"@eqproject/eqp-select": "^3.0.0",
|
|
26
|
+
"@eqproject/eqp-table": "3.0.11",
|
|
26
27
|
"browser-image-compression": "^1.0.15",
|
|
27
|
-
"fabric": "
|
|
28
|
-
"ngx-image-cropper": "^
|
|
28
|
+
"fabric": "3.6.2",
|
|
29
|
+
"ngx-image-cropper": "^9.0.0",
|
|
29
30
|
"ngx-mat-select-search": "^7.0.1",
|
|
30
31
|
"simple-statistics": "^7.8.3",
|
|
31
|
-
"tmw-picker": "
|
|
32
|
+
"tmw-picker": "2.0.0",
|
|
32
33
|
"tslib": "^2.4.0"
|
|
33
34
|
},
|
|
34
35
|
"sideEffects": true,
|
|
35
|
-
"module": "
|
|
36
|
-
"es2020": "fesm2020/eqproject-eqp-dynamic-module.mjs",
|
|
37
|
-
"esm2020": "esm2020/eqproject-eqp-dynamic-module.mjs",
|
|
38
|
-
"fesm2020": "fesm2020/eqproject-eqp-dynamic-module.mjs",
|
|
39
|
-
"fesm2015": "fesm2015/eqproject-eqp-dynamic-module.mjs",
|
|
36
|
+
"module": "fesm2022/eqproject-eqp-dynamic-module.mjs",
|
|
40
37
|
"typings": "index.d.ts",
|
|
41
38
|
"exports": {
|
|
42
39
|
"./package.json": {
|
|
@@ -44,11 +41,9 @@
|
|
|
44
41
|
},
|
|
45
42
|
".": {
|
|
46
43
|
"types": "./index.d.ts",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"node": "./fesm2015/eqproject-eqp-dynamic-module.mjs",
|
|
51
|
-
"default": "./fesm2020/eqproject-eqp-dynamic-module.mjs"
|
|
44
|
+
"esm2022": "./esm2022/eqproject-eqp-dynamic-module.mjs",
|
|
45
|
+
"esm": "./esm2022/eqproject-eqp-dynamic-module.mjs",
|
|
46
|
+
"default": "./fesm2022/eqproject-eqp-dynamic-module.mjs"
|
|
52
47
|
}
|
|
53
48
|
}
|
|
54
49
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
export * from './lib/eqp-dynamic-module.module';
|
|
2
|
-
export * from './lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component';
|
|
3
|
-
export * from './lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component';
|
|
4
|
-
export * from './lib/components/private/add-form-field/add-form-field.component';
|
|
5
|
-
export * from './lib/components/private/dynamic-module-field-fix/dynamic-module-field.component';
|
|
6
|
-
export * from './lib/components/private/field-templates/attachment-field-template/attachment-field-template.component';
|
|
7
|
-
export * from './lib/components/private/field-templates/boolean-field-template/boolean-field-template.component';
|
|
8
|
-
export * from './lib/components/private/field-templates/date-field-template/date-field-template.component';
|
|
9
|
-
export * from './lib/components/private/field-templates/image-field-template/image-field-template.component';
|
|
10
|
-
export * from './lib/components/private/field-templates/list-value-field-template/list-value-field-template.component';
|
|
11
|
-
export * from './lib/components/private/field-templates/numeric-field-template/numeric-field-template.component';
|
|
12
|
-
export * from './lib/components/private/field-templates/text-field-template/text-field-template.component';
|
|
13
|
-
export * from './lib/components/private/field-templates/textarea-field-template/textarea-field-template.component';
|
|
14
|
-
export * from './lib/components/private/form-records/add-form-record/add-form-record.component';
|
|
15
|
-
export * from './lib/components/private/form-records/repair-form-fields/repair-form-fields.component';
|
|
16
|
-
export * from './lib/components/private/form-records/list-form-record/list-form-record.component';
|
|
17
|
-
export * from './lib/interfaces/iBaseFieldComponent.interface';
|
|
18
|
-
export * from './lib/interfaces/iRootObject.interface';
|
|
19
|
-
export * from './lib/models/baseField.model';
|
|
20
|
-
export * from './lib/models/baseObj.model';
|
|
21
|
-
export * from './lib/models/context.model';
|
|
22
|
-
export * from './lib/models/dynamicModuleConfiguratorConfig.model';
|
|
23
|
-
export * from './lib/models/dynamicModuleConfiguratorSpecificConfig.model';
|
|
24
|
-
export * from './lib/models/dynamicModuleConfig.model';
|
|
25
|
-
export * from './lib/models/dynamicModuleGeneralConfig.model';
|
|
26
|
-
export * from './lib/models/dynamicModuleCompileConfig.model';
|
|
27
|
-
export * from './lib/models/dynamicModuleListConfig.model';
|
|
28
|
-
export * from './lib/models/dynamicModuleRepairConfig.model';
|
|
29
|
-
export * from './lib/models/dynamicModuleFilterResultViewModeEnum.model';
|
|
30
|
-
export * from './lib/models/dynamicModuleViewModeEnum';
|
|
31
|
-
export * from './lib/models/dynamicModuleListFormRecordActionsDefault';
|
|
32
|
-
export * from './lib/models/endPointConfiguration.model';
|
|
33
|
-
export * from './lib/models/entity.model';
|
|
34
|
-
export * from './lib/models/form.model';
|
|
35
|
-
export * from './lib/models/record.model';
|
|
36
|
-
export * from './lib/models/trigger.model';
|
|
37
|
-
export * from './lib/models/fields/attachmentField.model';
|
|
38
|
-
export * from './lib/models/fields/booleanField.model';
|
|
39
|
-
export * from './lib/models/fields/dateField.model';
|
|
40
|
-
export * from './lib/models/fields/imageField.model';
|
|
41
|
-
export * from './lib/models/fields/listValueField.model';
|
|
42
|
-
export * from './lib/models/fields/imageSelectorField.model';
|
|
43
|
-
export * from './lib/models/fields/lookupField.model';
|
|
44
|
-
export * from './lib/models/fields/numericField.model';
|
|
45
|
-
export * from './lib/models/fields/textareaField.model';
|
|
46
|
-
export * from './lib/models/fields/textField.model';
|
|
47
|
-
export * from './lib/services/custom-form-validators.service';
|
|
48
|
-
export * from './lib/services/eqp-dynamic-module-dialog.service';
|
|
49
|
-
export * from './lib/services/spinner.service';
|
|
50
|
-
export * from './lib/services/utilityHelper.services';
|
|
51
|
-
export * from './lib/models/graph.model';
|
|
52
|
-
export * from './lib/directives/dynamic-loader/dynamic-loader.directive';
|
|
53
|
-
export * from './lib/directives/speech-to-text/speech-to-text.directive';
|
|
1
|
+
export * from './lib/eqp-dynamic-module.module';
|
|
2
|
+
export * from './lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component';
|
|
3
|
+
export * from './lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component';
|
|
4
|
+
export * from './lib/components/private/add-form-field/add-form-field.component';
|
|
5
|
+
export * from './lib/components/private/dynamic-module-field-fix/dynamic-module-field.component';
|
|
6
|
+
export * from './lib/components/private/field-templates/attachment-field-template/attachment-field-template.component';
|
|
7
|
+
export * from './lib/components/private/field-templates/boolean-field-template/boolean-field-template.component';
|
|
8
|
+
export * from './lib/components/private/field-templates/date-field-template/date-field-template.component';
|
|
9
|
+
export * from './lib/components/private/field-templates/image-field-template/image-field-template.component';
|
|
10
|
+
export * from './lib/components/private/field-templates/list-value-field-template/list-value-field-template.component';
|
|
11
|
+
export * from './lib/components/private/field-templates/numeric-field-template/numeric-field-template.component';
|
|
12
|
+
export * from './lib/components/private/field-templates/text-field-template/text-field-template.component';
|
|
13
|
+
export * from './lib/components/private/field-templates/textarea-field-template/textarea-field-template.component';
|
|
14
|
+
export * from './lib/components/private/form-records/add-form-record/add-form-record.component';
|
|
15
|
+
export * from './lib/components/private/form-records/repair-form-fields/repair-form-fields.component';
|
|
16
|
+
export * from './lib/components/private/form-records/list-form-record/list-form-record.component';
|
|
17
|
+
export * from './lib/interfaces/iBaseFieldComponent.interface';
|
|
18
|
+
export * from './lib/interfaces/iRootObject.interface';
|
|
19
|
+
export * from './lib/models/baseField.model';
|
|
20
|
+
export * from './lib/models/baseObj.model';
|
|
21
|
+
export * from './lib/models/context.model';
|
|
22
|
+
export * from './lib/models/dynamicModuleConfiguratorConfig.model';
|
|
23
|
+
export * from './lib/models/dynamicModuleConfiguratorSpecificConfig.model';
|
|
24
|
+
export * from './lib/models/dynamicModuleConfig.model';
|
|
25
|
+
export * from './lib/models/dynamicModuleGeneralConfig.model';
|
|
26
|
+
export * from './lib/models/dynamicModuleCompileConfig.model';
|
|
27
|
+
export * from './lib/models/dynamicModuleListConfig.model';
|
|
28
|
+
export * from './lib/models/dynamicModuleRepairConfig.model';
|
|
29
|
+
export * from './lib/models/dynamicModuleFilterResultViewModeEnum.model';
|
|
30
|
+
export * from './lib/models/dynamicModuleViewModeEnum';
|
|
31
|
+
export * from './lib/models/dynamicModuleListFormRecordActionsDefault';
|
|
32
|
+
export * from './lib/models/endPointConfiguration.model';
|
|
33
|
+
export * from './lib/models/entity.model';
|
|
34
|
+
export * from './lib/models/form.model';
|
|
35
|
+
export * from './lib/models/record.model';
|
|
36
|
+
export * from './lib/models/trigger.model';
|
|
37
|
+
export * from './lib/models/fields/attachmentField.model';
|
|
38
|
+
export * from './lib/models/fields/booleanField.model';
|
|
39
|
+
export * from './lib/models/fields/dateField.model';
|
|
40
|
+
export * from './lib/models/fields/imageField.model';
|
|
41
|
+
export * from './lib/models/fields/listValueField.model';
|
|
42
|
+
export * from './lib/models/fields/imageSelectorField.model';
|
|
43
|
+
export * from './lib/models/fields/lookupField.model';
|
|
44
|
+
export * from './lib/models/fields/numericField.model';
|
|
45
|
+
export * from './lib/models/fields/textareaField.model';
|
|
46
|
+
export * from './lib/models/fields/textField.model';
|
|
47
|
+
export * from './lib/services/custom-form-validators.service';
|
|
48
|
+
export * from './lib/services/eqp-dynamic-module-dialog.service';
|
|
49
|
+
export * from './lib/services/spinner.service';
|
|
50
|
+
export * from './lib/services/utilityHelper.services';
|
|
51
|
+
export * from './lib/models/graph.model';
|
|
52
|
+
export * from './lib/directives/dynamic-loader/dynamic-loader.directive';
|
|
53
|
+
export * from './lib/directives/speech-to-text/speech-to-text.directive';
|