@colijnit/mainapi 261.1.7 → 261.1.9
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/build/enum/absence-type.enum.d.ts +10 -10
- package/build/enum/absence-type.enum.js +14 -14
- package/build/enum/activities-object-name.enum.d.ts +4 -4
- package/build/enum/activities-object-name.enum.js +8 -8
- package/build/enum/activities-operation-name.enum.d.ts +13 -13
- package/build/enum/activities-operation-name.enum.js +17 -17
- package/build/enum/activity-sort-type.enum.d.ts +5 -5
- package/build/enum/activity-sort-type.enum.js +9 -9
- package/build/enum/activity-type.d.ts +9 -9
- package/build/enum/activity-type.js +13 -13
- package/build/enum/article-method.enum.d.ts +51 -51
- package/build/enum/article-method.enum.js +55 -55
- package/build/enum/article-publication.enum.d.ts +5 -5
- package/build/enum/article-publication.enum.js +9 -9
- package/build/enum/article.enum.d.ts +3 -3
- package/build/enum/article.enum.js +7 -7
- package/build/enum/backend-service-name.enum.d.ts +9 -9
- package/build/enum/backend-service-name.enum.js +13 -13
- package/build/enum/co-document-image-display-kind.enum.d.ts +5 -5
- package/build/enum/co-document-image-display-kind.enum.js +9 -9
- package/build/enum/co-document-type.enum.d.ts +6 -6
- package/build/enum/co-document-type.enum.js +10 -10
- package/build/enum/co-sub-report.bo.d.ts +11 -11
- package/build/enum/co-sub-report.bo.js +21 -21
- package/build/enum/config-object-name.enum.d.ts +3 -3
- package/build/enum/config-object-name.enum.js +7 -7
- package/build/enum/data-mapping.enum.d.ts +6 -6
- package/build/enum/data-mapping.enum.js +10 -10
- package/build/enum/data-service-method.enum.d.ts +17 -17
- package/build/enum/data-service-method.enum.js +21 -21
- package/build/enum/db-boolean-value-type.enum.d.ts +12 -12
- package/build/enum/db-boolean-value-type.enum.js +32 -32
- package/build/enum/delivery-time-unit-type.enum.d.ts +4 -4
- package/build/enum/delivery-time-unit-type.enum.js +8 -8
- package/build/enum/document-allowed-type.enum.d.ts +10 -10
- package/build/enum/document-allowed-type.enum.js +14 -14
- package/build/enum/document-method.enum.d.ts +6 -6
- package/build/enum/document-method.enum.js +10 -10
- package/build/enum/domain-name.enum.d.ts +67 -67
- package/build/enum/domain-name.enum.js +71 -71
- package/build/enum/event-notification-operation-name.enum.d.ts +4 -4
- package/build/enum/event-notification-operation-name.enum.js +8 -8
- package/build/enum/file-type-internal.enum.d.ts +11 -11
- package/build/enum/file-type-internal.enum.js +15 -15
- package/build/enum/file-type.enum.d.ts +8 -8
- package/build/enum/file-type.enum.js +12 -12
- package/build/enum/file-upload-common-service-file-type.enum.d.ts +7 -7
- package/build/enum/file-upload-common-service-file-type.enum.js +11 -11
- package/build/enum/file-upload-common-service-method.enum.d.ts +7 -7
- package/build/enum/file-upload-common-service-method.enum.js +11 -11
- package/build/enum/file-upload-common-service-upload-status.enum.d.ts +6 -6
- package/build/enum/file-upload-common-service-upload-status.enum.js +10 -10
- package/build/enum/form-question.type.d.ts +11 -11
- package/build/enum/form-question.type.js +15 -15
- package/build/enum/forms-method-name.enum.d.ts +3 -3
- package/build/enum/forms-method-name.enum.js +7 -7
- package/build/enum/forms-object-name.enum.d.ts +6 -6
- package/build/enum/forms-object-name.enum.js +10 -10
- package/build/enum/general-method.enum.d.ts +37 -37
- package/build/enum/general-method.enum.js +41 -41
- package/build/enum/good-type.d.ts +21 -21
- package/build/enum/good-type.js +25 -25
- package/build/enum/insured-interest-type.enum.d.ts +10 -10
- package/build/enum/insured-interest-type.enum.js +14 -14
- package/build/enum/internal-default.enum.d.ts +13 -13
- package/build/enum/internal-default.enum.js +17 -17
- package/build/enum/internal-param.enum.d.ts +31 -31
- package/build/enum/internal-param.enum.js +35 -35
- package/build/enum/ione-module-name.enum.d.ts +39 -39
- package/build/enum/ione-module-name.enum.js +55 -55
- package/build/enum/layout-code.enum.d.ts +12 -12
- package/build/enum/layout-code.enum.js +16 -16
- package/build/enum/master-data-object-name.enum.d.ts +27 -27
- package/build/enum/master-data-object-name.enum.js +31 -31
- package/build/enum/message-type.enum.d.ts +6 -6
- package/build/enum/message-type.enum.js +10 -10
- package/build/enum/model-creation-method.enum.d.ts +4 -4
- package/build/enum/model-creation-method.enum.js +8 -8
- package/build/enum/module-name.enum.d.ts +17 -17
- package/build/enum/module-name.enum.js +21 -21
- package/build/enum/module-navigation-link.d.ts +5 -5
- package/build/enum/module-navigation-link.js +2 -2
- package/build/enum/note-display-type.enum.d.ts +5 -5
- package/build/enum/note-display-type.enum.js +9 -9
- package/build/enum/one-zero-bool-db-type.enum.d.ts +5 -5
- package/build/enum/one-zero-bool-db-type.enum.js +20 -20
- package/build/enum/own-risk.enum.d.ts +7 -7
- package/build/enum/own-risk.enum.js +11 -11
- package/build/enum/period.enum.d.ts +7 -7
- package/build/enum/period.enum.js +11 -11
- package/build/enum/personal-activity-tab.enum.d.ts +4 -4
- package/build/enum/personal-activity-tab.enum.js +8 -8
- package/build/enum/preset-object-name.enum.d.ts +3 -3
- package/build/enum/preset-object-name.enum.js +7 -7
- package/build/enum/price-type.enum.d.ts +4 -4
- package/build/enum/price-type.enum.js +8 -8
- package/build/enum/printing-service-method.d.ts +8 -8
- package/build/enum/printing-service-method.js +12 -12
- package/build/enum/priority-type.enum.d.ts +7 -7
- package/build/enum/priority-type.enum.js +11 -11
- package/build/enum/product-kind.enum.d.ts +6 -6
- package/build/enum/product-kind.enum.js +10 -10
- package/build/enum/public-service-method.d.ts +23 -23
- package/build/enum/public-service-method.js +27 -27
- package/build/enum/relation-kind.d.ts +10 -10
- package/build/enum/relation-kind.js +14 -14
- package/build/enum/relman-complete-name.d.ts +5 -5
- package/build/enum/relman-complete-name.js +2 -2
- package/build/enum/report-action.enum.d.ts +8 -8
- package/build/enum/report-action.enum.js +12 -12
- package/build/enum/report-method.enum.d.ts +16 -16
- package/build/enum/report-method.enum.js +20 -20
- package/build/enum/report-object-name.enum.d.ts +3 -3
- package/build/enum/report-object-name.enum.js +7 -7
- package/build/enum/report-param-type.enum.d.ts +15 -15
- package/build/enum/report-param-type.enum.js +19 -19
- package/build/enum/report-type.enum.d.ts +47 -47
- package/build/enum/report-type.enum.js +51 -51
- package/build/enum/reporting-documents-method.enum.d.ts +5 -5
- package/build/enum/reporting-documents-method.enum.js +9 -9
- package/build/enum/send-method-type.enum.d.ts +11 -11
- package/build/enum/send-method-type.enum.js +15 -15
- package/build/enum/sequence-name.enum.d.ts +31 -31
- package/build/enum/sequence-name.enum.js +35 -35
- package/build/enum/simple-base-data-object-name.enum.d.ts +6 -6
- package/build/enum/simple-base-data-object-name.enum.js +10 -10
- package/build/enum/simple-base-data-operation-name.enum.d.ts +6 -5
- package/build/enum/simple-base-data-operation-name.enum.js +10 -9
- package/build/enum/tab-category.enum.d.ts +19 -19
- package/build/enum/tab-category.enum.js +23 -23
- package/build/enum/table-name.enum.d.ts +84 -84
- package/build/enum/table-name.enum.js +88 -88
- package/build/enum/tag-method.enum.d.ts +4 -4
- package/build/enum/tag-method.enum.js +8 -8
- package/build/enum/tag-object.enum.d.ts +3 -3
- package/build/enum/tag-object.enum.js +7 -7
- package/build/enum/tag-operation-name.enum.d.ts +3 -3
- package/build/enum/tag-operation-name.enum.js +7 -7
- package/build/enum/text-standard-type-text.d.ts +7 -7
- package/build/enum/text-standard-type-text.js +11 -11
- package/build/enum/text-standard-type.d.ts +7 -7
- package/build/enum/text-standard-type.js +11 -11
- package/build/enum/transaction-kind.d.ts +13 -13
- package/build/enum/transaction-kind.js +17 -17
- package/build/enum/transport-costs-distribution.enum.d.ts +4 -4
- package/build/enum/transport-costs-distribution.enum.js +8 -8
- package/build/enum/true-false-db-type.enum.d.ts +5 -5
- package/build/enum/true-false-db-type.enum.js +20 -20
- package/build/enum/vat-type.enum.d.ts +4 -4
- package/build/enum/vat-type.enum.js +8 -8
- package/build/enum/workflow-category.enum.d.ts +19 -19
- package/build/enum/workflow-category.enum.js +23 -23
- package/build/enum/workflow-trigger-type.enum.d.ts +8 -8
- package/build/enum/workflow-trigger-type.enum.js +12 -12
- package/build/enum/yes-no-db-type.enum.d.ts +5 -5
- package/build/enum/yes-no-db-type.enum.js +20 -20
- package/build/main-api-connection.d.ts +113 -112
- package/build/main-api-connection.js +12 -12
- package/build/main-api.d.ts +131 -130
- package/build/main-api.js +375 -370
- package/build/main-api.unit.test.d.ts +1 -1
- package/build/main-api.unit.test.js +208 -208
- package/build/main-auth.d.ts +113 -112
- package/build/main-auth.js +1115 -1105
- package/build/main-public.d.ts +113 -112
- package/build/main-public.js +539 -533
- package/build/model/activity-email-history.bo.d.ts +10 -10
- package/build/model/activity-email-history.bo.js +21 -21
- package/build/model/activity-email-request-data.d.ts +8 -8
- package/build/model/activity-email-request-data.js +6 -6
- package/build/model/activity-list-view-model.d.ts +11 -11
- package/build/model/activity-list-view-model.js +20 -20
- package/build/model/activity-view-model.d.ts +13 -13
- package/build/model/activity-view-model.js +27 -27
- package/build/model/activity-workflow.d.ts +24 -24
- package/build/model/activity-workflow.js +66 -66
- package/build/model/activity.bo.d.ts +58 -58
- package/build/model/activity.bo.js +484 -484
- package/build/model/article-seo-value.d.ts +5 -5
- package/build/model/article-seo-value.js +6 -6
- package/build/model/branch.bo.d.ts +8 -8
- package/build/model/branch.bo.js +7 -7
- package/build/model/brand.d.ts +8 -8
- package/build/model/brand.js +10 -10
- package/build/model/category.bo.d.ts +12 -12
- package/build/model/category.bo.js +16 -16
- package/build/model/co-document-right.d.ts +7 -7
- package/build/model/co-document-right.js +7 -7
- package/build/model/co-document.bo.d.ts +67 -67
- package/build/model/co-document.bo.js +235 -235
- package/build/model/co-domain-value.bo.d.ts +10 -10
- package/build/model/co-domain-value.bo.js +20 -20
- package/build/model/co-email-attachment.bo.d.ts +6 -6
- package/build/model/co-email-attachment.bo.js +7 -7
- package/build/model/co-notition-right.bo.d.ts +10 -10
- package/build/model/co-notition-right.bo.js +13 -13
- package/build/model/co-notition.bo.d.ts +24 -24
- package/build/model/co-notition.bo.js +79 -79
- package/build/model/co-report-category-link.bo.d.ts +8 -8
- package/build/model/co-report-category-link.bo.js +7 -7
- package/build/model/co-report-sjablonen-documenten.bo.d.ts +6 -6
- package/build/model/co-report-sjablonen-documenten.bo.js +7 -7
- package/build/model/co-report.bo.d.ts +47 -47
- package/build/model/co-report.bo.js +68 -68
- package/build/model/co-rv-domain-value.bo.d.ts +10 -10
- package/build/model/co-rv-domain-value.bo.js +20 -20
- package/build/model/co-text.d.ts +26 -26
- package/build/model/co-text.js +28 -28
- package/build/model/color.bo.d.ts +7 -7
- package/build/model/color.bo.js +10 -10
- package/build/model/constant/java-constants.d.ts +2 -2
- package/build/model/constant/java-constants.js +5 -5
- package/build/model/constant/ref-code-class-to-domain-name-map.d.ts +2 -2
- package/build/model/constant/ref-code-class-to-domain-name-map.js +12 -12
- package/build/model/contact-moment.bo.d.ts +17 -17
- package/build/model/contact-moment.bo.js +39 -39
- package/build/model/container-article-info.d.ts +8 -8
- package/build/model/container-article-info.js +10 -10
- package/build/model/container-info.bo.d.ts +14 -14
- package/build/model/container-info.bo.js +14 -14
- package/build/model/container-type.bo.d.ts +11 -11
- package/build/model/container-type.bo.js +13 -13
- package/build/model/container.bo.d.ts +19 -19
- package/build/model/container.bo.js +39 -39
- package/build/model/currency.bo.d.ts +13 -13
- package/build/model/currency.bo.js +33 -33
- package/build/model/department.bo.d.ts +12 -12
- package/build/model/department.bo.js +69 -69
- package/build/model/document-allowed-extension.bo.d.ts +6 -6
- package/build/model/document-allowed-extension.bo.js +7 -7
- package/build/model/email-activity-request.d.ts +6 -6
- package/build/model/email-activity-request.js +7 -7
- package/build/model/email-job.d.ts +10 -10
- package/build/model/email-job.js +7 -7
- package/build/model/form-question-answer.bo.d.ts +10 -10
- package/build/model/form-question-answer.bo.js +13 -13
- package/build/model/form-question-response.bo.d.ts +10 -10
- package/build/model/form-question-response.bo.js +31 -31
- package/build/model/form-question.bo.d.ts +20 -20
- package/build/model/form-question.bo.js +39 -39
- package/build/model/form-response.bo.d.ts +16 -16
- package/build/model/form-response.bo.js +33 -33
- package/build/model/form.bo.d.ts +20 -20
- package/build/model/form.bo.js +38 -38
- package/build/model/get-postal-code-retrieval-output-params.d.ts +7 -7
- package/build/model/get-postal-code-retrieval-output-params.js +6 -6
- package/build/model/grouped-form-question.bo.d.ts +12 -12
- package/build/model/grouped-form-question.bo.js +28 -28
- package/build/model/image-content.bo.d.ts +5 -5
- package/build/model/image-content.bo.js +6 -6
- package/build/model/insured-interest.bo.d.ts +13 -13
- package/build/model/insured-interest.bo.js +39 -39
- package/build/model/language.bo.d.ts +5 -5
- package/build/model/language.bo.js +7 -7
- package/build/model/order-line-set-category.bo.d.ts +8 -8
- package/build/model/order-line-set-category.bo.js +7 -7
- package/build/model/own-risk.bo.d.ts +11 -11
- package/build/model/own-risk.bo.js +39 -39
- package/build/model/payment-condition-ledger-account.bo.d.ts +6 -6
- package/build/model/payment-condition-ledger-account.bo.js +7 -7
- package/build/model/payment-condition.bo.d.ts +11 -11
- package/build/model/payment-condition.bo.js +34 -34
- package/build/model/preset.bo.d.ts +12 -12
- package/build/model/preset.bo.js +16 -16
- package/build/model/print-purchase-order-for-transaction-order-without-lines-request.d.ts +10 -10
- package/build/model/print-purchase-order-for-transaction-order-without-lines-request.js +12 -12
- package/build/model/print-purchase-order-for-transaction-request.d.ts +4 -4
- package/build/model/print-purchase-order-for-transaction-request.js +7 -7
- package/build/model/printer.bo.d.ts +8 -8
- package/build/model/printer.bo.js +13 -13
- package/build/model/printing-service-request-data.d.ts +16 -16
- package/build/model/printing-service-request-data.js +2 -2
- package/build/model/privacy-setting.bo.d.ts +9 -9
- package/build/model/privacy-setting.bo.js +13 -13
- package/build/model/process-print-request.d.ts +5 -5
- package/build/model/process-print-request.js +2 -2
- package/build/model/relation-small-object.bo.d.ts +28 -28
- package/build/model/relation-small-object.bo.js +63 -63
- package/build/model/remark.bo.d.ts +19 -19
- package/build/model/remark.bo.js +57 -57
- package/build/model/report-category.bo.d.ts +6 -6
- package/build/model/report-category.bo.js +7 -7
- package/build/model/report-job.d.ts +5 -5
- package/build/model/report-job.js +9 -9
- package/build/model/report-layout-selection-base.bo.d.ts +9 -9
- package/build/model/report-layout-selection-base.bo.js +7 -7
- package/build/model/report-layout-selection-email.bo.d.ts +4 -4
- package/build/model/report-layout-selection-email.bo.js +7 -7
- package/build/model/report-layout-selection-print.bo.d.ts +5 -5
- package/build/model/report-layout-selection-print.bo.js +7 -7
- package/build/model/report-param.d.ts +16 -16
- package/build/model/report-param.js +9 -9
- package/build/model/report.bo.d.ts +11 -11
- package/build/model/report.bo.js +34 -34
- package/build/model/reporting-document-base-request.d.ts +4 -4
- package/build/model/reporting-document-base-request.js +6 -6
- package/build/model/reporting-document-email-base-request.d.ts +5 -5
- package/build/model/reporting-document-email-base-request.js +7 -7
- package/build/model/reporting-document-email-sign-doc-base-request.d.ts +5 -5
- package/build/model/reporting-document-email-sign-doc-base-request.js +11 -11
- package/build/model/reporting-document-pdf-base-request.d.ts +3 -3
- package/build/model/reporting-document-pdf-base-request.js +7 -7
- package/build/model/reporting-document-print-base-request.d.ts +7 -7
- package/build/model/reporting-document-print-base-request.js +7 -7
- package/build/model/reporting-document-print-sign-doc-base-request.d.ts +4 -4
- package/build/model/reporting-document-print-sign-doc-base-request.js +7 -7
- package/build/model/reporting-pdf-base-response.d.ts +4 -0
- package/build/model/reporting-pdf-base-response.js +6 -0
- package/build/model/role-email-address.d.ts +10 -10
- package/build/model/role-email-address.js +28 -28
- package/build/model/role-emailaddress.bo.d.ts +10 -10
- package/build/model/role-emailaddress.bo.js +28 -28
- package/build/model/select-report-templates-request.d.ts +17 -17
- package/build/model/select-report-templates-request.js +6 -6
- package/build/model/send-method.bo.d.ts +5 -5
- package/build/model/send-method.bo.js +7 -7
- package/build/model/store-group.bo.d.ts +9 -9
- package/build/model/store-group.bo.js +7 -7
- package/build/model/tag-stock-item.bo.d.ts +24 -24
- package/build/model/tag-stock-item.bo.js +21 -21
- package/build/model/tag-tree-item.bo.d.ts +18 -18
- package/build/model/tag-tree-item.bo.js +52 -52
- package/build/model/tag.d.ts +11 -11
- package/build/model/tag.js +41 -41
- package/build/model/task-category.bo.d.ts +13 -13
- package/build/model/task-category.bo.js +28 -28
- package/build/model/task.bo.d.ts +85 -85
- package/build/model/task.bo.js +262 -262
- package/build/model/title.bo.d.ts +9 -9
- package/build/model/title.bo.js +13 -13
- package/build/model/transition.bo.d.ts +17 -17
- package/build/model/transition.bo.js +21 -21
- package/build/model/tree-object.d.ts +8 -8
- package/build/model/tree-object.js +29 -29
- package/build/model/user-group.bo.d.ts +13 -13
- package/build/model/user-group.bo.js +16 -16
- package/build/model/warehouse-short.bo.d.ts +7 -0
- package/build/model/warehouse-short.bo.js +13 -0
- package/build/model/work.bo.d.ts +21 -21
- package/build/model/work.bo.js +58 -58
- package/build/model/workflow-generic-transition.bo.d.ts +22 -22
- package/build/model/workflow-generic-transition.bo.js +28 -28
- package/build/model/workflow-process-info-per-status.d.ts +5 -5
- package/build/model/workflow-process-info-per-status.js +6 -6
- package/build/model/workflow-process.d.ts +13 -13
- package/build/model/workflow-process.js +7 -7
- package/build/model/workflow-trigger.bo.d.ts +45 -45
- package/build/model/workflow-trigger.bo.js +52 -52
- package/build/model/workflow.bo.d.ts +37 -37
- package/build/model/workflow.bo.js +159 -159
- package/build/utils/css-utils.d.ts +18 -18
- package/build/utils/css-utils.js +148 -148
- package/build/utils/file-utils.d.ts +34 -34
- package/build/utils/file-utils.js +411 -401
- package/build/utils/time-utils.d.ts +6 -6
- package/build/utils/time-utils.js +44 -44
- package/package.json +5 -5
package/build/utils/css-utils.js
CHANGED
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CssUtils = void 0;
|
|
4
|
-
class CssUtils {
|
|
5
|
-
static AnimateMaxWidthTransitionOn(nativeElement, transitionTime = 0.2, startWidth = "0px", endWidth) {
|
|
6
|
-
if (!nativeElement) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
if (!endWidth) {
|
|
10
|
-
endWidth = CssUtils.FindOffsetWidthOfElementWithTransition(nativeElement);
|
|
11
|
-
}
|
|
12
|
-
const transitionStyle = `max-width ${transitionTime}s ease-out`;
|
|
13
|
-
if (!CssUtils.ElementHasStyle(nativeElement, "transition", transitionStyle)) {
|
|
14
|
-
CssUtils._AddTransitionStyleOn(nativeElement, transitionStyle);
|
|
15
|
-
}
|
|
16
|
-
nativeElement.style.maxWidth = startWidth;
|
|
17
|
-
CssUtils.PushCssChanges(nativeElement);
|
|
18
|
-
nativeElement.style.maxWidth = endWidth;
|
|
19
|
-
return this._returnPromise(transitionTime);
|
|
20
|
-
}
|
|
21
|
-
static AnimateMaxHeightTransitionOn(nativeElement, transitionTime = 0.2, startHeight = "0px", endHeight) {
|
|
22
|
-
if (!nativeElement) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
if (!endHeight) {
|
|
26
|
-
endHeight = CssUtils.FindOffsetHeightOfElementWithTransition(nativeElement);
|
|
27
|
-
}
|
|
28
|
-
const transitionStyle = `max-height ${transitionTime}s ease-out`;
|
|
29
|
-
if (!CssUtils.ElementHasStyle(nativeElement, "transition", transitionStyle)) {
|
|
30
|
-
CssUtils._AddTransitionStyleOn(nativeElement, transitionStyle);
|
|
31
|
-
}
|
|
32
|
-
nativeElement.style.maxHeight = startHeight;
|
|
33
|
-
CssUtils.PushCssChanges(nativeElement);
|
|
34
|
-
nativeElement.style.maxHeight = endHeight;
|
|
35
|
-
return this._returnPromise(transitionTime);
|
|
36
|
-
}
|
|
37
|
-
static FindOffsetWidthOfElementWithTransition(nativeElement) {
|
|
38
|
-
return this._FindOffsetHeightOrWidthOfElementWithTransition(nativeElement, false);
|
|
39
|
-
}
|
|
40
|
-
static FindOffsetHeightOfElementWithTransition(nativeElement) {
|
|
41
|
-
return this._FindOffsetHeightOrWidthOfElementWithTransition(nativeElement, true);
|
|
42
|
-
}
|
|
43
|
-
static GetComputedStyleVal(nativeElement, styleName) {
|
|
44
|
-
return document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue("styleName");
|
|
45
|
-
}
|
|
46
|
-
static ElementHasStyle(nativeElement, styleName, styleValue) {
|
|
47
|
-
if (!nativeElement || !styleName) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
return (nativeElement.style[styleName] === styleValue);
|
|
51
|
-
}
|
|
52
|
-
static SetStyleOnElement(nativeElement, styleName, styleValue, pushChanges = false) {
|
|
53
|
-
if (!nativeElement || !styleName) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
nativeElement.style[styleName] = styleValue;
|
|
57
|
-
if (pushChanges) {
|
|
58
|
-
CssUtils.PushCssChanges(nativeElement);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
static HideElement(nativeElement) {
|
|
62
|
-
if (nativeElement) {
|
|
63
|
-
CssUtils.SetStyleOnElement(nativeElement, "display", "none");
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
static GetStyleValue(nativeElement, styleName) {
|
|
67
|
-
if (!nativeElement || !styleName) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
return nativeElement.style[styleName];
|
|
71
|
-
}
|
|
72
|
-
static DbRgbColorStringToCssRgbColor(dbRgbColorStr) {
|
|
73
|
-
if (!dbRgbColorStr || dbRgbColorStr.length === 0) {
|
|
74
|
-
return undefined;
|
|
75
|
-
}
|
|
76
|
-
dbRgbColorStr = dbRgbColorStr.split("0x")[1];
|
|
77
|
-
if (!dbRgbColorStr) {
|
|
78
|
-
return undefined;
|
|
79
|
-
}
|
|
80
|
-
const strLen = dbRgbColorStr.length;
|
|
81
|
-
if (strLen > 6) {
|
|
82
|
-
dbRgbColorStr = dbRgbColorStr.slice(0, 6);
|
|
83
|
-
}
|
|
84
|
-
else if (strLen > 3 && strLen < 6) {
|
|
85
|
-
dbRgbColorStr = dbRgbColorStr.slice(0, 3);
|
|
86
|
-
}
|
|
87
|
-
else if (strLen === 1) {
|
|
88
|
-
dbRgbColorStr += dbRgbColorStr + dbRgbColorStr;
|
|
89
|
-
}
|
|
90
|
-
else if (strLen === 2) {
|
|
91
|
-
dbRgbColorStr += dbRgbColorStr[1];
|
|
92
|
-
}
|
|
93
|
-
return "#" + dbRgbColorStr;
|
|
94
|
-
}
|
|
95
|
-
static PushCssChanges(nativeElement) {
|
|
96
|
-
const notUnused = nativeElement.offsetHeight;
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
static TransparentColor(hexColor, opacity) {
|
|
100
|
-
const hex = hexColor.replace("#", "");
|
|
101
|
-
return `rgba(${Array.from({ length: 3 }, (v, i) => parseInt(hex.substring(i * 2, (i + 1) * 2), 16)).join(",")},${opacity})`;
|
|
102
|
-
}
|
|
103
|
-
static ElementHasClass(element, cssClass) {
|
|
104
|
-
return element && element.classList && element.classList.contains(cssClass);
|
|
105
|
-
}
|
|
106
|
-
static _FindOffsetHeightOrWidthOfElementWithTransition(nativeElement, wantHeight) {
|
|
107
|
-
if (!nativeElement) {
|
|
108
|
-
return "0px";
|
|
109
|
-
}
|
|
110
|
-
const originalTransitionStyle = nativeElement.style.transition;
|
|
111
|
-
CssUtils._AddTransitionStyleOn(nativeElement, "none");
|
|
112
|
-
if (wantHeight) {
|
|
113
|
-
nativeElement.style.maxHeight = "";
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
nativeElement.style.maxWidth = "";
|
|
117
|
-
}
|
|
118
|
-
let trueHeightOrWidth;
|
|
119
|
-
if (wantHeight) {
|
|
120
|
-
trueHeightOrWidth = nativeElement.offsetHeight;
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
trueHeightOrWidth = nativeElement.offsetWidth;
|
|
124
|
-
}
|
|
125
|
-
trueHeightOrWidth += "px";
|
|
126
|
-
nativeElement.style.transition = originalTransitionStyle;
|
|
127
|
-
return trueHeightOrWidth;
|
|
128
|
-
}
|
|
129
|
-
static _AddTransitionStyleOn(nativeElement, styleText) {
|
|
130
|
-
if (!nativeElement || !styleText) {
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
if (nativeElement.style.transition) {
|
|
134
|
-
styleText = ", " + styleText;
|
|
135
|
-
}
|
|
136
|
-
nativeElement.style.transition += styleText;
|
|
137
|
-
nativeElement.style.WebkitTransition += styleText;
|
|
138
|
-
nativeElement.style.MozTransition += styleText;
|
|
139
|
-
}
|
|
140
|
-
static _returnPromise(transitionTime) {
|
|
141
|
-
return new Promise((resolve) => {
|
|
142
|
-
setTimeout(() => {
|
|
143
|
-
resolve();
|
|
144
|
-
}, transitionTime * 1000);
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
exports.CssUtils = CssUtils;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CssUtils = void 0;
|
|
4
|
+
class CssUtils {
|
|
5
|
+
static AnimateMaxWidthTransitionOn(nativeElement, transitionTime = 0.2, startWidth = "0px", endWidth) {
|
|
6
|
+
if (!nativeElement) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
if (!endWidth) {
|
|
10
|
+
endWidth = CssUtils.FindOffsetWidthOfElementWithTransition(nativeElement);
|
|
11
|
+
}
|
|
12
|
+
const transitionStyle = `max-width ${transitionTime}s ease-out`;
|
|
13
|
+
if (!CssUtils.ElementHasStyle(nativeElement, "transition", transitionStyle)) {
|
|
14
|
+
CssUtils._AddTransitionStyleOn(nativeElement, transitionStyle);
|
|
15
|
+
}
|
|
16
|
+
nativeElement.style.maxWidth = startWidth;
|
|
17
|
+
CssUtils.PushCssChanges(nativeElement);
|
|
18
|
+
nativeElement.style.maxWidth = endWidth;
|
|
19
|
+
return this._returnPromise(transitionTime);
|
|
20
|
+
}
|
|
21
|
+
static AnimateMaxHeightTransitionOn(nativeElement, transitionTime = 0.2, startHeight = "0px", endHeight) {
|
|
22
|
+
if (!nativeElement) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (!endHeight) {
|
|
26
|
+
endHeight = CssUtils.FindOffsetHeightOfElementWithTransition(nativeElement);
|
|
27
|
+
}
|
|
28
|
+
const transitionStyle = `max-height ${transitionTime}s ease-out`;
|
|
29
|
+
if (!CssUtils.ElementHasStyle(nativeElement, "transition", transitionStyle)) {
|
|
30
|
+
CssUtils._AddTransitionStyleOn(nativeElement, transitionStyle);
|
|
31
|
+
}
|
|
32
|
+
nativeElement.style.maxHeight = startHeight;
|
|
33
|
+
CssUtils.PushCssChanges(nativeElement);
|
|
34
|
+
nativeElement.style.maxHeight = endHeight;
|
|
35
|
+
return this._returnPromise(transitionTime);
|
|
36
|
+
}
|
|
37
|
+
static FindOffsetWidthOfElementWithTransition(nativeElement) {
|
|
38
|
+
return this._FindOffsetHeightOrWidthOfElementWithTransition(nativeElement, false);
|
|
39
|
+
}
|
|
40
|
+
static FindOffsetHeightOfElementWithTransition(nativeElement) {
|
|
41
|
+
return this._FindOffsetHeightOrWidthOfElementWithTransition(nativeElement, true);
|
|
42
|
+
}
|
|
43
|
+
static GetComputedStyleVal(nativeElement, styleName) {
|
|
44
|
+
return document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue("styleName");
|
|
45
|
+
}
|
|
46
|
+
static ElementHasStyle(nativeElement, styleName, styleValue) {
|
|
47
|
+
if (!nativeElement || !styleName) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
return (nativeElement.style[styleName] === styleValue);
|
|
51
|
+
}
|
|
52
|
+
static SetStyleOnElement(nativeElement, styleName, styleValue, pushChanges = false) {
|
|
53
|
+
if (!nativeElement || !styleName) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
nativeElement.style[styleName] = styleValue;
|
|
57
|
+
if (pushChanges) {
|
|
58
|
+
CssUtils.PushCssChanges(nativeElement);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
static HideElement(nativeElement) {
|
|
62
|
+
if (nativeElement) {
|
|
63
|
+
CssUtils.SetStyleOnElement(nativeElement, "display", "none");
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
static GetStyleValue(nativeElement, styleName) {
|
|
67
|
+
if (!nativeElement || !styleName) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
return nativeElement.style[styleName];
|
|
71
|
+
}
|
|
72
|
+
static DbRgbColorStringToCssRgbColor(dbRgbColorStr) {
|
|
73
|
+
if (!dbRgbColorStr || dbRgbColorStr.length === 0) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
dbRgbColorStr = dbRgbColorStr.split("0x")[1];
|
|
77
|
+
if (!dbRgbColorStr) {
|
|
78
|
+
return undefined;
|
|
79
|
+
}
|
|
80
|
+
const strLen = dbRgbColorStr.length;
|
|
81
|
+
if (strLen > 6) {
|
|
82
|
+
dbRgbColorStr = dbRgbColorStr.slice(0, 6);
|
|
83
|
+
}
|
|
84
|
+
else if (strLen > 3 && strLen < 6) {
|
|
85
|
+
dbRgbColorStr = dbRgbColorStr.slice(0, 3);
|
|
86
|
+
}
|
|
87
|
+
else if (strLen === 1) {
|
|
88
|
+
dbRgbColorStr += dbRgbColorStr + dbRgbColorStr;
|
|
89
|
+
}
|
|
90
|
+
else if (strLen === 2) {
|
|
91
|
+
dbRgbColorStr += dbRgbColorStr[1];
|
|
92
|
+
}
|
|
93
|
+
return "#" + dbRgbColorStr;
|
|
94
|
+
}
|
|
95
|
+
static PushCssChanges(nativeElement) {
|
|
96
|
+
const notUnused = nativeElement.offsetHeight;
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
static TransparentColor(hexColor, opacity) {
|
|
100
|
+
const hex = hexColor.replace("#", "");
|
|
101
|
+
return `rgba(${Array.from({ length: 3 }, (v, i) => parseInt(hex.substring(i * 2, (i + 1) * 2), 16)).join(",")},${opacity})`;
|
|
102
|
+
}
|
|
103
|
+
static ElementHasClass(element, cssClass) {
|
|
104
|
+
return element && element.classList && element.classList.contains(cssClass);
|
|
105
|
+
}
|
|
106
|
+
static _FindOffsetHeightOrWidthOfElementWithTransition(nativeElement, wantHeight) {
|
|
107
|
+
if (!nativeElement) {
|
|
108
|
+
return "0px";
|
|
109
|
+
}
|
|
110
|
+
const originalTransitionStyle = nativeElement.style.transition;
|
|
111
|
+
CssUtils._AddTransitionStyleOn(nativeElement, "none");
|
|
112
|
+
if (wantHeight) {
|
|
113
|
+
nativeElement.style.maxHeight = "";
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
nativeElement.style.maxWidth = "";
|
|
117
|
+
}
|
|
118
|
+
let trueHeightOrWidth;
|
|
119
|
+
if (wantHeight) {
|
|
120
|
+
trueHeightOrWidth = nativeElement.offsetHeight;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
trueHeightOrWidth = nativeElement.offsetWidth;
|
|
124
|
+
}
|
|
125
|
+
trueHeightOrWidth += "px";
|
|
126
|
+
nativeElement.style.transition = originalTransitionStyle;
|
|
127
|
+
return trueHeightOrWidth;
|
|
128
|
+
}
|
|
129
|
+
static _AddTransitionStyleOn(nativeElement, styleText) {
|
|
130
|
+
if (!nativeElement || !styleText) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (nativeElement.style.transition) {
|
|
134
|
+
styleText = ", " + styleText;
|
|
135
|
+
}
|
|
136
|
+
nativeElement.style.transition += styleText;
|
|
137
|
+
nativeElement.style.WebkitTransition += styleText;
|
|
138
|
+
nativeElement.style.MozTransition += styleText;
|
|
139
|
+
}
|
|
140
|
+
static _returnPromise(transitionTime) {
|
|
141
|
+
return new Promise((resolve) => {
|
|
142
|
+
setTimeout(() => {
|
|
143
|
+
resolve();
|
|
144
|
+
}, transitionTime * 1000);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
exports.CssUtils = CssUtils;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { FileTypeInternal } from '../enum/file-type-internal.enum';
|
|
2
|
-
import { CoDocument } from '../model/co-document.bo';
|
|
3
|
-
import { DocumentAllowedExtension } from '../model/document-allowed-extension.bo';
|
|
4
|
-
export declare class FileUtils {
|
|
5
|
-
static get DefaultMaxUploadSizeInMb(): number;
|
|
6
|
-
static getMaxUploadSizeInMb(sizeInBytes: number): number;
|
|
7
|
-
static DocumentBodyToDataUri(documentBody: string, mimeType: string): string;
|
|
8
|
-
static FileNameToFileTypeInternal(fileName: string): FileTypeInternal;
|
|
9
|
-
static IsImageFile(file: File | CoDocument): boolean;
|
|
10
|
-
static GetGlobalFileType(document: CoDocument): FileTypeInternal;
|
|
11
|
-
static CheckMaxUploadSize(file: CoDocument | File, maxSizeInBytesFromParameter?: number): boolean;
|
|
12
|
-
static CheckExtension(file: CoDocument | File, allowedExtensions: DocumentAllowedExtension[]): boolean;
|
|
13
|
-
static ConvertFileToDataUri(file: File): Promise<string>;
|
|
14
|
-
static StripMimeStringFromDataUri(dataUri: string): string;
|
|
15
|
-
static GetMimeStringFromDataUri(dataUri: string): string;
|
|
16
|
-
static ConvertStringToArrayBuffer(stringData: string): Uint8Array;
|
|
17
|
-
static ConvertByteArrayToString(byteArray: number[]): string;
|
|
18
|
-
static StringIsImageDataUriOrURL(str: string): boolean;
|
|
19
|
-
static FixAssetUrl(assetUrl: string): string;
|
|
20
|
-
static MimeTypeFromFilename(fileName: string): string;
|
|
21
|
-
static DownloadFile(fileName: string, content: string, mimeType?: string): void;
|
|
22
|
-
static ReadAsText(file: File): Promise<string>;
|
|
23
|
-
static readAsDataURL(file: File): Promise<string>;
|
|
24
|
-
static ReadFileAsNewCoDocument(file: File, resize?: boolean, maxSizeInPixels?: number): Promise<CoDocument>;
|
|
25
|
-
static ResizeImage(src: string, fileType: string, maxSizeInPixels: number): Promise<string>;
|
|
26
|
-
static ReadFileAsDataURL(file: File): Promise<string>;
|
|
27
|
-
static DataURLtoFile(dataURL: string, filename: string): File;
|
|
28
|
-
static GetExtensionFromDataUri(dataUri: string): string;
|
|
29
|
-
static CreateDownloadFileNameFromBase64(dataUri: string): string;
|
|
30
|
-
static DownloadFromDataUri(dataUri: string, fileName: string): void;
|
|
31
|
-
static ValidUrl(stringToCheck: string): boolean;
|
|
32
|
-
static ReplaceExtension(fileName: string, newExtension: string): string;
|
|
33
|
-
static GenerateQRCode(url: string): string;
|
|
34
|
-
}
|
|
1
|
+
import { FileTypeInternal } from '../enum/file-type-internal.enum';
|
|
2
|
+
import { CoDocument } from '../model/co-document.bo';
|
|
3
|
+
import { DocumentAllowedExtension } from '../model/document-allowed-extension.bo';
|
|
4
|
+
export declare class FileUtils {
|
|
5
|
+
static get DefaultMaxUploadSizeInMb(): number;
|
|
6
|
+
static getMaxUploadSizeInMb(sizeInBytes: number): number;
|
|
7
|
+
static DocumentBodyToDataUri(documentBody: string, mimeType: string): string;
|
|
8
|
+
static FileNameToFileTypeInternal(fileName: string): FileTypeInternal;
|
|
9
|
+
static IsImageFile(file: File | CoDocument): boolean;
|
|
10
|
+
static GetGlobalFileType(document: CoDocument): FileTypeInternal;
|
|
11
|
+
static CheckMaxUploadSize(file: CoDocument | File, maxSizeInBytesFromParameter?: number): boolean;
|
|
12
|
+
static CheckExtension(file: CoDocument | File, allowedExtensions: DocumentAllowedExtension[]): boolean;
|
|
13
|
+
static ConvertFileToDataUri(file: File): Promise<string>;
|
|
14
|
+
static StripMimeStringFromDataUri(dataUri: string): string;
|
|
15
|
+
static GetMimeStringFromDataUri(dataUri: string): string;
|
|
16
|
+
static ConvertStringToArrayBuffer(stringData: string): Uint8Array;
|
|
17
|
+
static ConvertByteArrayToString(byteArray: number[]): string;
|
|
18
|
+
static StringIsImageDataUriOrURL(str: string): boolean;
|
|
19
|
+
static FixAssetUrl(assetUrl: string): string;
|
|
20
|
+
static MimeTypeFromFilename(fileName: string): string;
|
|
21
|
+
static DownloadFile(fileName: string, content: string, mimeType?: string): void;
|
|
22
|
+
static ReadAsText(file: File): Promise<string>;
|
|
23
|
+
static readAsDataURL(file: File): Promise<string>;
|
|
24
|
+
static ReadFileAsNewCoDocument(file: File, resize?: boolean, maxSizeInPixels?: number): Promise<CoDocument>;
|
|
25
|
+
static ResizeImage(src: string, fileType: string, maxSizeInPixels: number): Promise<string>;
|
|
26
|
+
static ReadFileAsDataURL(file: File): Promise<string>;
|
|
27
|
+
static DataURLtoFile(dataURL: string, filename: string): File;
|
|
28
|
+
static GetExtensionFromDataUri(dataUri: string): string;
|
|
29
|
+
static CreateDownloadFileNameFromBase64(dataUri: string): string;
|
|
30
|
+
static DownloadFromDataUri(dataUri: string, fileName: string): void;
|
|
31
|
+
static ValidUrl(stringToCheck: string): boolean;
|
|
32
|
+
static ReplaceExtension(fileName: string, newExtension: string): string;
|
|
33
|
+
static GenerateQRCode(url: string): string;
|
|
34
|
+
}
|