@creatio/base 0.814.0 → 0.820.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/CHANGELOG.md +4 -0
- package/esm2022/lib/external/utils/date-utils.mjs +51 -0
- package/esm2022/lib/internal/enums/platform-apis.enum.mjs +16 -0
- package/esm2022/lib/internal/model/data-source-config.mjs +2 -0
- package/esm2022/lib/internal/models/compatible-apis.model.mjs +2 -0
- package/esm2022/lib/internal/models/filtration-platform-api-options.model.mjs +2 -0
- package/esm2022/lib/internal/models/index.mjs +5 -0
- package/esm2022/lib/internal/models/platform-api-options.model.mjs +2 -0
- package/esm2022/lib/public/enums/aggregation-function.enum.mjs +36 -0
- package/esm2022/lib/public/enums/aggregation-type.enum.mjs +36 -0
- package/esm2022/lib/public/enums/data-schema-type.enum.mjs +20 -0
- package/esm2022/lib/public/enums/data-value-type.enum.mjs +170 -0
- package/{esm2020 → esm2022}/lib/public/enums/index.mjs +2 -1
- package/esm2022/lib/public/enums/message-channel-type.enum.mjs +24 -0
- package/esm2022/lib/public/esq/data-model/columns/arithmetic/arithmetic-query-column.mjs +14 -0
- package/esm2022/lib/public/esq/data-model/columns/base-query-column.mjs +65 -0
- package/esm2022/lib/public/esq/data-model/columns/entity-column/entity-query-column.mjs +14 -0
- package/esm2022/lib/public/esq/data-model/columns/functions/aggregation-function-column.mjs +18 -0
- package/esm2022/lib/public/esq/data-model/columns/functions/date-part-function-column.mjs +25 -0
- package/esm2022/lib/public/esq/data-model/columns/functions/length-function-column.mjs +14 -0
- package/esm2022/lib/public/esq/data-model/columns/functions/macros-function-column.mjs +14 -0
- package/esm2022/lib/public/esq/data-model/columns/functions/window-function-column.mjs +14 -0
- package/esm2022/lib/public/esq/data-model/columns/parameters/parameter-query-column.mjs +14 -0
- package/esm2022/lib/public/esq/data-model/columns/query-column-test-utils.mjs +19 -0
- package/esm2022/lib/public/esq/data-model/columns/sub-queries/aggregation-sub-query-column.mjs +20 -0
- package/esm2022/lib/public/esq/data-model/columns/sub-queries/sub-query-column.mjs +14 -0
- package/esm2022/lib/public/esq/data-model/enums/admin-unit-role-sources.enum.mjs +40 -0
- package/esm2022/lib/public/esq/data-model/enums/aggregation-eval-type.enum.mjs +20 -0
- package/esm2022/lib/public/esq/data-model/enums/arithmetic-operation.enum.mjs +24 -0
- package/esm2022/lib/public/esq/data-model/enums/comparison-type.enum.mjs +94 -0
- package/esm2022/lib/public/esq/data-model/enums/date-part-type.enum.mjs +40 -0
- package/esm2022/lib/public/esq/data-model/enums/expression-type.enum.mjs +28 -0
- package/esm2022/lib/public/esq/data-model/enums/filter-type.enum.mjs +43 -0
- package/esm2022/lib/public/esq/data-model/enums/function-type.enum.mjs +40 -0
- package/esm2022/lib/public/esq/data-model/enums/logical-operator-type.enum.mjs +16 -0
- package/esm2022/lib/public/esq/data-model/enums/order-direction.enum.mjs +20 -0
- package/esm2022/lib/public/esq/data-model/enums/query-macros-type.enum.mjs +152 -0
- package/esm2022/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +60 -0
- package/esm2022/lib/public/esq/data-model/expressions/base-expression.mjs +68 -0
- package/esm2022/lib/public/esq/data-model/expressions/columns/column-expression.mjs +55 -0
- package/esm2022/lib/public/esq/data-model/expressions/expression-parser/base-expression-parser.mjs +17 -0
- package/esm2022/lib/public/esq/data-model/expressions/expression-parser/expression-parser.mjs +18 -0
- package/esm2022/lib/public/esq/data-model/expressions/expression-parser/expression-resolver.mjs +48 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/aggregation-function-expression.mjs +50 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +40 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/date-part-function-expression.mjs +43 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/function-expression.mjs +30 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/length-function-expression.mjs +43 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +53 -0
- package/esm2022/lib/public/esq/data-model/expressions/functions/window-function-expression.mjs +41 -0
- package/esm2022/lib/public/esq/data-model/expressions/mocks/expression.mock.mjs +38 -0
- package/esm2022/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +117 -0
- package/esm2022/lib/public/esq/data-model/expressions/sub-queries/aggregation-sub-query-expression.mjs +43 -0
- package/esm2022/lib/public/esq/data-model/expressions/sub-queries/sub-query-expression.mjs +82 -0
- package/esm2022/lib/public/esq/data-model/filters/base-filter.mjs +68 -0
- package/esm2022/lib/public/esq/data-model/filters/between-filter.mjs +58 -0
- package/esm2022/lib/public/esq/data-model/filters/compare-filter.mjs +52 -0
- package/esm2022/lib/public/esq/data-model/filters/exists-filter.mjs +64 -0
- package/esm2022/lib/public/esq/data-model/filters/filter-group.mjs +247 -0
- package/esm2022/lib/public/esq/data-model/filters/filter-parser/base-filter-parser.mjs +15 -0
- package/esm2022/lib/public/esq/data-model/filters/filter-parser/filter-parser.mjs +23 -0
- package/esm2022/lib/public/esq/data-model/filters/filter-parser/filter-resolver.mjs +31 -0
- package/esm2022/lib/public/esq/data-model/filters/filter-test-utils.mjs +17 -0
- package/esm2022/lib/public/esq/data-model/filters/in-filter.mjs +57 -0
- package/esm2022/lib/public/esq/data-model/filters/isnull-filter.mjs +52 -0
- package/esm2022/lib/public/esq/data-model/filters/mocks/filter.mock.mjs +34 -0
- package/esm2022/lib/public/esq/data-model/filters/mocks/parser.mock.mjs +11 -0
- package/esm2022/lib/public/esq/data-model/filters/single-filter.mjs +39 -0
- package/{esm2020 → esm2022}/lib/public/esq/data-model/metadata-provider/metadata-provider.mjs +1 -1
- package/esm2022/lib/public/esq/data-model/queries/base-filterable-query.mjs +49 -0
- package/esm2022/lib/public/esq/data-model/queries/base-query.mjs +22 -0
- package/esm2022/lib/public/esq/data-model/queries/delete-query.mjs +14 -0
- package/esm2022/lib/public/esq/data-model/queries/entity-schema-query.mjs +242 -0
- package/esm2022/lib/public/esq/data-model/queries/insert-query.mjs +49 -0
- package/esm2022/lib/public/esq/data-model/queries/query-operation-type.mjs +28 -0
- package/esm2022/lib/public/esq/data-model/queries/select-localization-query.mjs +9 -0
- package/esm2022/lib/public/esq/data-model/queries/update-query.mjs +56 -0
- package/esm2022/lib/public/exceptions/argument-empty-exception.mjs +12 -0
- package/esm2022/lib/public/exceptions/argument-out-of-range-exception.mjs +12 -0
- package/esm2022/lib/public/exceptions/item-not-found-exception.mjs +12 -0
- package/esm2022/lib/public/exceptions/next-handler-already-specified-exception.mjs +10 -0
- package/esm2022/lib/public/exceptions/validation-utilities.mjs +66 -0
- package/esm2022/lib/public/interfaces/serializable.mjs +2 -0
- package/esm2022/lib/public/models/data-source/data-source-insert-result.model.mjs +2 -0
- package/{esm2020 → esm2022}/lib/public/models/index.mjs +3 -1
- package/esm2022/lib/public/models/lookup-value.model.mjs +2 -0
- package/esm2022/lib/public/models/message-channel-event.mjs +3 -0
- package/esm2022/lib/public/models/request/base-request.mjs +8 -0
- package/esm2022/lib/public/models/request/request-registration-config.model.mjs +2 -0
- package/esm2022/lib/public/models/subscription.mjs +39 -0
- package/{esm2020 → esm2022}/lib/public/models/view-model-context.mjs +1 -1
- package/{esm2020 → esm2022}/lib/public/services/index.mjs +2 -1
- package/esm2022/lib/public/services/mask-service/schema-view-mask.request.mjs +33 -0
- package/esm2022/lib/public/services/message-channel/base-message-channel.service.mjs +3 -0
- package/esm2022/lib/public/services/message-channel/index.mjs +2 -0
- package/esm2022/lib/public/services/model/base-model.mjs +2 -0
- package/esm2022/lib/public/services/model/data-schema-attribute.mjs +2 -0
- package/esm2022/lib/public/services/model/data-schema.mjs +2 -0
- package/esm2022/lib/public/services/model/data-source-aggregation-config.mjs +2 -0
- package/esm2022/lib/public/services/model/data-source-attribute.mjs +2 -0
- package/esm2022/lib/public/services/model/data-source-can-execute-operation.mjs +2 -0
- package/esm2022/lib/public/services/model/data-source-function-config.mjs +2 -0
- package/esm2022/lib/public/services/model/data-source-paging-config.mjs +2 -0
- package/esm2022/lib/public/services/model/data-source-parameter.mjs +38 -0
- package/esm2022/lib/public/services/model/data-source-sorting-config.mjs +2 -0
- package/esm2022/lib/public/services/model/model-load-options.mjs +2 -0
- package/{esm2020 → esm2022}/lib/public/services/sys-settings/base-sys-settings.service.mjs +1 -1
- package/{esm2020 → esm2022}/lib/public/types/aggregation-eval.type.mjs +1 -1
- package/{esm2020 → esm2022}/lib/public/types/entity-column-value.mjs +1 -1
- package/esm2022/lib/public/types/guid.type.mjs +53 -0
- package/{esm2020 → esm2022}/lib/public/types/index.mjs +2 -1
- package/esm2022/lib/public/types/json-data.type.mjs +2 -0
- package/esm2022/lib/public/types/teardown-logic.type.mjs +2 -0
- package/{fesm2020 → fesm2022}/creatio-base.mjs +1308 -238
- package/fesm2022/creatio-base.mjs.map +1 -0
- package/index.d.ts +1794 -161
- package/package.json +7 -15
- package/esm2020/lib/external/utils/date-utils.mjs +0 -29
- package/esm2020/lib/internal/enums/platform-apis.enum.mjs +0 -11
- package/esm2020/lib/internal/model/data-source-config.mjs +0 -2
- package/esm2020/lib/internal/models/index.mjs +0 -2
- package/esm2020/lib/public/enums/aggregation-function.enum.mjs +0 -18
- package/esm2020/lib/public/enums/aggregation-type.enum.mjs +0 -18
- package/esm2020/lib/public/enums/data-schema-type.enum.mjs +0 -10
- package/esm2020/lib/public/enums/data-value-type.enum.mjs +0 -48
- package/esm2020/lib/public/esq/data-model/columns/arithmetic/arithmetic-query-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/base-query-column.mjs +0 -51
- package/esm2020/lib/public/esq/data-model/columns/entity-column/entity-query-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/functions/aggregation-function-column.mjs +0 -13
- package/esm2020/lib/public/esq/data-model/columns/functions/date-part-function-column.mjs +0 -17
- package/esm2020/lib/public/esq/data-model/columns/functions/length-function-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/functions/macros-function-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/functions/window-function-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/parameters/parameter-query-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/columns/query-column-test-utils.mjs +0 -13
- package/esm2020/lib/public/esq/data-model/columns/sub-queries/aggregation-sub-query-column.mjs +0 -15
- package/esm2020/lib/public/esq/data-model/columns/sub-queries/sub-query-column.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/enums/admin-unit-role-sources.enum.mjs +0 -36
- package/esm2020/lib/public/esq/data-model/enums/aggregation-eval-type.enum.mjs +0 -10
- package/esm2020/lib/public/esq/data-model/enums/arithmetic-operation.enum.mjs +0 -12
- package/esm2020/lib/public/esq/data-model/enums/comparison-type.enum.mjs +0 -22
- package/esm2020/lib/public/esq/data-model/enums/date-part-type.enum.mjs +0 -20
- package/esm2020/lib/public/esq/data-model/enums/expression-type.enum.mjs +0 -9
- package/esm2020/lib/public/esq/data-model/enums/filter-type.enum.mjs +0 -11
- package/esm2020/lib/public/esq/data-model/enums/function-type.enum.mjs +0 -19
- package/esm2020/lib/public/esq/data-model/enums/logical-operator-type.enum.mjs +0 -6
- package/esm2020/lib/public/esq/data-model/enums/order-direction.enum.mjs +0 -7
- package/esm2020/lib/public/esq/data-model/enums/query-macros-type.enum.mjs +0 -76
- package/esm2020/lib/public/esq/data-model/expressions/arithmetic/arithmetic-expression.mjs +0 -48
- package/esm2020/lib/public/esq/data-model/expressions/base-expression.mjs +0 -49
- package/esm2020/lib/public/esq/data-model/expressions/columns/column-expression.mjs +0 -43
- package/esm2020/lib/public/esq/data-model/expressions/expression-parser/base-expression-parser.mjs +0 -10
- package/esm2020/lib/public/esq/data-model/expressions/expression-parser/expression-parser.mjs +0 -17
- package/esm2020/lib/public/esq/data-model/expressions/expression-parser/expression-resolver.mjs +0 -41
- package/esm2020/lib/public/esq/data-model/expressions/functions/aggregation-function-expression.mjs +0 -41
- package/esm2020/lib/public/esq/data-model/expressions/functions/argument-function-expression.mjs +0 -33
- package/esm2020/lib/public/esq/data-model/expressions/functions/date-part-function-expression.mjs +0 -34
- package/esm2020/lib/public/esq/data-model/expressions/functions/function-expression.mjs +0 -21
- package/esm2020/lib/public/esq/data-model/expressions/functions/length-function-expression.mjs +0 -32
- package/esm2020/lib/public/esq/data-model/expressions/functions/macros-function-expression.mjs +0 -42
- package/esm2020/lib/public/esq/data-model/expressions/functions/window-function-expression.mjs +0 -32
- package/esm2020/lib/public/esq/data-model/expressions/mocks/expression.mock.mjs +0 -35
- package/esm2020/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +0 -106
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/aggregation-sub-query-expression.mjs +0 -37
- package/esm2020/lib/public/esq/data-model/expressions/sub-queries/sub-query-expression.mjs +0 -72
- package/esm2020/lib/public/esq/data-model/filters/base-filter.mjs +0 -50
- package/esm2020/lib/public/esq/data-model/filters/between-filter.mjs +0 -53
- package/esm2020/lib/public/esq/data-model/filters/compare-filter.mjs +0 -47
- package/esm2020/lib/public/esq/data-model/filters/exists-filter.mjs +0 -50
- package/esm2020/lib/public/esq/data-model/filters/filter-group.mjs +0 -200
- package/esm2020/lib/public/esq/data-model/filters/filter-parser/base-filter-parser.mjs +0 -10
- package/esm2020/lib/public/esq/data-model/filters/filter-parser/filter-parser.mjs +0 -19
- package/esm2020/lib/public/esq/data-model/filters/filter-parser/filter-resolver.mjs +0 -25
- package/esm2020/lib/public/esq/data-model/filters/filter-test-utils.mjs +0 -11
- package/esm2020/lib/public/esq/data-model/filters/in-filter.mjs +0 -50
- package/esm2020/lib/public/esq/data-model/filters/isnull-filter.mjs +0 -43
- package/esm2020/lib/public/esq/data-model/filters/mocks/filter.mock.mjs +0 -34
- package/esm2020/lib/public/esq/data-model/filters/mocks/parser.mock.mjs +0 -8
- package/esm2020/lib/public/esq/data-model/filters/single-filter.mjs +0 -33
- package/esm2020/lib/public/esq/data-model/queries/base-filterable-query.mjs +0 -39
- package/esm2020/lib/public/esq/data-model/queries/base-query.mjs +0 -20
- package/esm2020/lib/public/esq/data-model/queries/delete-query.mjs +0 -12
- package/esm2020/lib/public/esq/data-model/queries/entity-schema-query.mjs +0 -221
- package/esm2020/lib/public/esq/data-model/queries/insert-query.mjs +0 -37
- package/esm2020/lib/public/esq/data-model/queries/query-operation-type.mjs +0 -15
- package/esm2020/lib/public/esq/data-model/queries/select-localization-query.mjs +0 -7
- package/esm2020/lib/public/esq/data-model/queries/update-query.mjs +0 -43
- package/esm2020/lib/public/exceptions/argument-empty-exception.mjs +0 -7
- package/esm2020/lib/public/exceptions/argument-out-of-range-exception.mjs +0 -7
- package/esm2020/lib/public/exceptions/item-not-found-exception.mjs +0 -7
- package/esm2020/lib/public/exceptions/next-handler-already-specified-exception.mjs +0 -9
- package/esm2020/lib/public/exceptions/validation-utilities.mjs +0 -32
- package/esm2020/lib/public/interfaces/serializable.mjs +0 -2
- package/esm2020/lib/public/models/data-source/data-source-insert-result.model.mjs +0 -2
- package/esm2020/lib/public/models/lookup-value.model.mjs +0 -2
- package/esm2020/lib/public/models/request/base-request.mjs +0 -9
- package/esm2020/lib/public/models/request/request-registration-config.model.mjs +0 -2
- package/esm2020/lib/public/services/mask-service/schema-view-mask.request.mjs +0 -24
- package/esm2020/lib/public/services/model/base-model.mjs +0 -2
- package/esm2020/lib/public/services/model/data-schema-attribute.mjs +0 -2
- package/esm2020/lib/public/services/model/data-schema.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-aggregation-config.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-attribute.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-can-execute-operation.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-function-config.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-paging-config.mjs +0 -2
- package/esm2020/lib/public/services/model/data-source-parameter.mjs +0 -13
- package/esm2020/lib/public/services/model/data-source-sorting-config.mjs +0 -2
- package/esm2020/lib/public/services/model/model-load-options.mjs +0 -2
- package/esm2020/lib/public/types/guid.type.mjs +0 -53
- package/esm2020/lib/public/types/json-data.type.mjs +0 -2
- package/fesm2015/creatio-base.mjs +0 -2323
- package/fesm2015/creatio-base.mjs.map +0 -1
- package/fesm2020/creatio-base.mjs.map +0 -1
- /package/{esm2020 → esm2022}/creatio-base.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/external/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/data-schema-attribute-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/data-source-scope.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/default-value-source.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/enums/lookup-mode.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/model/data-schema/data-schema-attribute-aggregation-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/model/data-schema/data-schema-attribute-function-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/model/data-schema/data-schema-validator-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/model/data-schema/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/model/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/internal/models/default-value-schema.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/enums/model-in-page-action.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/columns/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/arithmetic/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/columns/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/expression-parser/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/functions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/mocks/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/parameters/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/expressions/sub-queries/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/filters/filter-parser/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/filters/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/filters/mocks/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/queries/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/data-model/used-column.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/esq/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/exceptions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/interfaces/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/data-source/data-source-save-result.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/data-source/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/item-creation-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/model-init-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request-handler/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/request-handler/request-handler.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/models/view-model-collection.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/dialog.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/models/base-dialog-button-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/models/dialog-action.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/models/dialog-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/dialog/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/mask-service/base-mask.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/mask-service/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/model/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/services/sys-settings/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/abstract-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/button-color.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/date-part.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/function.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/localizable-string.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/localize-fn.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/resolve-dependency-fn.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/sort-direction.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/public/types/type.mjs +0 -0
|
@@ -1,2323 +0,0 @@
|
|
|
1
|
-
import { classToPlain, Exclude, Expose } from 'class-transformer';
|
|
2
|
-
import { __decorate, __metadata } from 'tslib';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @public
|
|
6
|
-
* Returns a string represent of date in ISO 8601 without time zone specification(doesn't convert it
|
|
7
|
-
* using local timezone).
|
|
8
|
-
*
|
|
9
|
-
* Example:
|
|
10
|
-
*
|
|
11
|
-
* const date = new Date(2018, 01, 20, 15, 10, 30);
|
|
12
|
-
* const result = toLocalISOString(date);
|
|
13
|
-
* //result: '2018-02-20T15:10:30'
|
|
14
|
-
*
|
|
15
|
-
* @param date Date value.
|
|
16
|
-
*/
|
|
17
|
-
function ɵtoLocalISOString(date) {
|
|
18
|
-
if (!(date instanceof Date)) {
|
|
19
|
-
throw new TypeError();
|
|
20
|
-
}
|
|
21
|
-
const timeZoneOffset = date.getTimezoneOffset() * 60000;
|
|
22
|
-
return new Date(date.getTime() - timeZoneOffset).toISOString().slice(0, -1);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @public
|
|
26
|
-
* Returns encoded date in string value.
|
|
27
|
-
* @param date Date value.
|
|
28
|
-
*/
|
|
29
|
-
function ɵencodeDate(date) {
|
|
30
|
-
return `"${ɵtoLocalISOString(date)}"`;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @public
|
|
35
|
-
*/
|
|
36
|
-
var ɵDataSourceScope;
|
|
37
|
-
(function (ɵDataSourceScope) {
|
|
38
|
-
ɵDataSourceScope["ViewElement"] = "viewElement";
|
|
39
|
-
ɵDataSourceScope["Page"] = "page";
|
|
40
|
-
})(ɵDataSourceScope || (ɵDataSourceScope = {}));
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @public
|
|
44
|
-
*/
|
|
45
|
-
var ɵDataSchemaAttributeType;
|
|
46
|
-
(function (ɵDataSchemaAttributeType) {
|
|
47
|
-
ɵDataSchemaAttributeType["OwnAttribute"] = "Own";
|
|
48
|
-
ɵDataSchemaAttributeType["ForwardReferenceAttribute"] = "ForwardReference";
|
|
49
|
-
ɵDataSchemaAttributeType["BackReferenceAttribute"] = "BackReference";
|
|
50
|
-
ɵDataSchemaAttributeType["AggregationAttribute"] = "Aggregation";
|
|
51
|
-
ɵDataSchemaAttributeType["FunctionAttribute"] = "Function";
|
|
52
|
-
})(ɵDataSchemaAttributeType || (ɵDataSchemaAttributeType = {}));
|
|
53
|
-
/**
|
|
54
|
-
* @public
|
|
55
|
-
*/
|
|
56
|
-
var ɵDataSchemaAttributeUsageType;
|
|
57
|
-
(function (ɵDataSchemaAttributeUsageType) {
|
|
58
|
-
ɵDataSchemaAttributeUsageType[ɵDataSchemaAttributeUsageType["General"] = 0] = "General";
|
|
59
|
-
ɵDataSchemaAttributeUsageType[ɵDataSchemaAttributeUsageType["Advanced"] = 1] = "Advanced";
|
|
60
|
-
ɵDataSchemaAttributeUsageType[ɵDataSchemaAttributeUsageType["None"] = 2] = "None";
|
|
61
|
-
})(ɵDataSchemaAttributeUsageType || (ɵDataSchemaAttributeUsageType = {}));
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @public
|
|
65
|
-
*/
|
|
66
|
-
var ɵDefaultValueSource;
|
|
67
|
-
(function (ɵDefaultValueSource) {
|
|
68
|
-
ɵDefaultValueSource[ɵDefaultValueSource["None"] = 0] = "None";
|
|
69
|
-
ɵDefaultValueSource[ɵDefaultValueSource["Const"] = 1] = "Const";
|
|
70
|
-
ɵDefaultValueSource[ɵDefaultValueSource["Settings"] = 2] = "Settings";
|
|
71
|
-
ɵDefaultValueSource[ɵDefaultValueSource["SystemValue"] = 3] = "SystemValue";
|
|
72
|
-
ɵDefaultValueSource[ɵDefaultValueSource["Sequence"] = 4] = "Sequence";
|
|
73
|
-
})(ɵDefaultValueSource || (ɵDefaultValueSource = {}));
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Lookup mode
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
var LookupMode;
|
|
80
|
-
(function (LookupMode) {
|
|
81
|
-
LookupMode["List"] = "List";
|
|
82
|
-
LookupMode["SelectionWindow"] = "SelectionWindow";
|
|
83
|
-
})(LookupMode || (LookupMode = {}));
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Available platform APIs
|
|
87
|
-
*/
|
|
88
|
-
var ɵPlatformAPIs;
|
|
89
|
-
(function (ɵPlatformAPIs) {
|
|
90
|
-
/**
|
|
91
|
-
* Selection metadata API.
|
|
92
|
-
*/
|
|
93
|
-
ɵPlatformAPIs["Selection"] = "selection";
|
|
94
|
-
})(ɵPlatformAPIs || (ɵPlatformAPIs = {}));
|
|
95
|
-
|
|
96
|
-
var ɵDataValueType;
|
|
97
|
-
(function (ɵDataValueType) {
|
|
98
|
-
ɵDataValueType[ɵDataValueType["Guid"] = 0] = "Guid";
|
|
99
|
-
ɵDataValueType[ɵDataValueType["Text"] = 1] = "Text";
|
|
100
|
-
ɵDataValueType[ɵDataValueType["Integer"] = 4] = "Integer";
|
|
101
|
-
ɵDataValueType[ɵDataValueType["Float"] = 5] = "Float";
|
|
102
|
-
ɵDataValueType[ɵDataValueType["Money"] = 6] = "Money";
|
|
103
|
-
ɵDataValueType[ɵDataValueType["DateTime"] = 7] = "DateTime";
|
|
104
|
-
ɵDataValueType[ɵDataValueType["Date"] = 8] = "Date";
|
|
105
|
-
ɵDataValueType[ɵDataValueType["Time"] = 9] = "Time";
|
|
106
|
-
ɵDataValueType[ɵDataValueType["Lookup"] = 10] = "Lookup";
|
|
107
|
-
ɵDataValueType[ɵDataValueType["Enum"] = 11] = "Enum";
|
|
108
|
-
ɵDataValueType[ɵDataValueType["Boolean"] = 12] = "Boolean";
|
|
109
|
-
ɵDataValueType[ɵDataValueType["Blob"] = 13] = "Blob";
|
|
110
|
-
ɵDataValueType[ɵDataValueType["Image"] = 14] = "Image";
|
|
111
|
-
ɵDataValueType[ɵDataValueType["CUSTOM_OBJECT"] = 15] = "CUSTOM_OBJECT";
|
|
112
|
-
ɵDataValueType[ɵDataValueType["IMAGELOOKUP"] = 16] = "IMAGELOOKUP";
|
|
113
|
-
ɵDataValueType[ɵDataValueType["COLLECTION"] = 17] = "COLLECTION";
|
|
114
|
-
ɵDataValueType[ɵDataValueType["Color"] = 18] = "Color";
|
|
115
|
-
ɵDataValueType[ɵDataValueType["LOCALIZABLE_STRING"] = 19] = "LOCALIZABLE_STRING";
|
|
116
|
-
ɵDataValueType[ɵDataValueType["ENTITY"] = 20] = "ENTITY";
|
|
117
|
-
ɵDataValueType[ɵDataValueType["ENTITY_COLLECTION"] = 21] = "ENTITY_COLLECTION";
|
|
118
|
-
ɵDataValueType[ɵDataValueType["ENTITY_COLUMN_MAPPING_COLLECTION"] = 22] = "ENTITY_COLUMN_MAPPING_COLLECTION";
|
|
119
|
-
ɵDataValueType[ɵDataValueType["HASH_TEXT"] = 23] = "HASH_TEXT";
|
|
120
|
-
ɵDataValueType[ɵDataValueType["SECURE_TEXT"] = 24] = "SECURE_TEXT";
|
|
121
|
-
ɵDataValueType[ɵDataValueType["FILE"] = 25] = "FILE";
|
|
122
|
-
ɵDataValueType[ɵDataValueType["MAPPING"] = 26] = "MAPPING";
|
|
123
|
-
ɵDataValueType[ɵDataValueType["SHORT_TEXT"] = 27] = "SHORT_TEXT";
|
|
124
|
-
ɵDataValueType[ɵDataValueType["MEDIUM_TEXT"] = 28] = "MEDIUM_TEXT";
|
|
125
|
-
ɵDataValueType[ɵDataValueType["MAXSIZE_TEXT"] = 29] = "MAXSIZE_TEXT";
|
|
126
|
-
ɵDataValueType[ɵDataValueType["LONG_TEXT"] = 30] = "LONG_TEXT";
|
|
127
|
-
ɵDataValueType[ɵDataValueType["FLOAT1"] = 31] = "FLOAT1";
|
|
128
|
-
ɵDataValueType[ɵDataValueType["FLOAT2"] = 32] = "FLOAT2";
|
|
129
|
-
ɵDataValueType[ɵDataValueType["FLOAT3"] = 33] = "FLOAT3";
|
|
130
|
-
ɵDataValueType[ɵDataValueType["FLOAT4"] = 34] = "FLOAT4";
|
|
131
|
-
ɵDataValueType[ɵDataValueType["LOCALIZABLE_PARAMETER_VALUES_LIST"] = 35] = "LOCALIZABLE_PARAMETER_VALUES_LIST";
|
|
132
|
-
ɵDataValueType[ɵDataValueType["METADATA_TEXT"] = 36] = "METADATA_TEXT";
|
|
133
|
-
ɵDataValueType[ɵDataValueType["STAGE_INDICATOR"] = 37] = "STAGE_INDICATOR";
|
|
134
|
-
ɵDataValueType[ɵDataValueType["OBJECT_LIST"] = 38] = "OBJECT_LIST";
|
|
135
|
-
ɵDataValueType[ɵDataValueType["COMPOSITE_OBJECT_LIST"] = 39] = "COMPOSITE_OBJECT_LIST";
|
|
136
|
-
ɵDataValueType[ɵDataValueType["FLOAT8"] = 40] = "FLOAT8";
|
|
137
|
-
ɵDataValueType[ɵDataValueType["FILE_LOCATOR"] = 41] = "FILE_LOCATOR";
|
|
138
|
-
ɵDataValueType[ɵDataValueType["PHONE_TEXT"] = 42] = "PHONE_TEXT";
|
|
139
|
-
ɵDataValueType[ɵDataValueType["RICH_TEXT"] = 43] = "RICH_TEXT";
|
|
140
|
-
ɵDataValueType[ɵDataValueType["WEB_TEXT"] = 44] = "WEB_TEXT";
|
|
141
|
-
ɵDataValueType[ɵDataValueType["EMAIL_TEXT"] = 45] = "EMAIL_TEXT";
|
|
142
|
-
})(ɵDataValueType || (ɵDataValueType = {}));
|
|
143
|
-
|
|
144
|
-
var ɵAggregationType;
|
|
145
|
-
(function (ɵAggregationType) {
|
|
146
|
-
/** Aggregation function type not defined. */
|
|
147
|
-
ɵAggregationType[ɵAggregationType["None"] = 0] = "None";
|
|
148
|
-
/** Aggregation function type not defined. */
|
|
149
|
-
ɵAggregationType[ɵAggregationType["Count"] = 1] = "Count";
|
|
150
|
-
/** Sum of values of all elements. */
|
|
151
|
-
ɵAggregationType[ɵAggregationType["Sum"] = 2] = "Sum";
|
|
152
|
-
/** Average value for all elements. */
|
|
153
|
-
ɵAggregationType[ɵAggregationType["Avg"] = 3] = "Avg";
|
|
154
|
-
/** The minimum value among all elements. */
|
|
155
|
-
ɵAggregationType[ɵAggregationType["Min"] = 4] = "Min";
|
|
156
|
-
/** The maximum value among all elements. */
|
|
157
|
-
ɵAggregationType[ɵAggregationType["Max"] = 5] = "Max";
|
|
158
|
-
/** Top one record from collection. */
|
|
159
|
-
ɵAggregationType[ɵAggregationType["TopOne"] = 6] = "TopOne";
|
|
160
|
-
})(ɵAggregationType || (ɵAggregationType = {}));
|
|
161
|
-
|
|
162
|
-
var ɵAggregationFunction;
|
|
163
|
-
(function (ɵAggregationFunction) {
|
|
164
|
-
/** Aggregation function type not defined. */
|
|
165
|
-
ɵAggregationFunction["None"] = "";
|
|
166
|
-
/** Aggregation function type not defined. */
|
|
167
|
-
ɵAggregationFunction["Count"] = "Count";
|
|
168
|
-
/** Sum of values of all elements. */
|
|
169
|
-
ɵAggregationFunction["Sum"] = "Sum";
|
|
170
|
-
/** Average value for all elements. */
|
|
171
|
-
ɵAggregationFunction["Avg"] = "Avg";
|
|
172
|
-
/** The minimum value among all elements. */
|
|
173
|
-
ɵAggregationFunction["Min"] = "Min";
|
|
174
|
-
/** The maximum value among all elements. */
|
|
175
|
-
ɵAggregationFunction["Max"] = "Max";
|
|
176
|
-
/** Top one record from collection. */
|
|
177
|
-
ɵAggregationFunction["TopOne"] = "TopOne";
|
|
178
|
-
})(ɵAggregationFunction || (ɵAggregationFunction = {}));
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Type of DataSchema. In combination with the name is used for unique identification of {@link DataSchema}.
|
|
182
|
-
*/
|
|
183
|
-
var ɵDataSchemaType;
|
|
184
|
-
(function (ɵDataSchemaType) {
|
|
185
|
-
ɵDataSchemaType["Entity"] = "Entity";
|
|
186
|
-
ɵDataSchemaType["ClientUnit"] = "ClientUnit";
|
|
187
|
-
ɵDataSchemaType["Intent"] = "Intent";
|
|
188
|
-
})(ɵDataSchemaType || (ɵDataSchemaType = {}));
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @public
|
|
192
|
-
* @description Type of the action of the model.
|
|
193
|
-
*/
|
|
194
|
-
var ɵModelInPageAction;
|
|
195
|
-
(function (ɵModelInPageAction) {
|
|
196
|
-
/**
|
|
197
|
-
* @description Action for editing existed record.
|
|
198
|
-
*/
|
|
199
|
-
ɵModelInPageAction["Edit"] = "edit";
|
|
200
|
-
/**
|
|
201
|
-
* @description Action for adding new record.
|
|
202
|
-
*/
|
|
203
|
-
ɵModelInPageAction["Add"] = "add";
|
|
204
|
-
/**
|
|
205
|
-
* @description Action for copying the record.
|
|
206
|
-
*/
|
|
207
|
-
ɵModelInPageAction["Copy"] = "copy";
|
|
208
|
-
})(ɵModelInPageAction || (ɵModelInPageAction = {}));
|
|
209
|
-
|
|
210
|
-
var eAdminUnitRoleSources;
|
|
211
|
-
(function (eAdminUnitRoleSources) {
|
|
212
|
-
/**
|
|
213
|
-
* Empty value.
|
|
214
|
-
*/
|
|
215
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["None"] = 0] = "None";
|
|
216
|
-
/**
|
|
217
|
-
* Self.
|
|
218
|
-
*/
|
|
219
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["Self"] = 1] = "Self";
|
|
220
|
-
/**
|
|
221
|
-
* Explicit entry into role.
|
|
222
|
-
*/
|
|
223
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["ExplicitEntry"] = 2] = "ExplicitEntry";
|
|
224
|
-
/**
|
|
225
|
-
* Delegated role.
|
|
226
|
-
*/
|
|
227
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["Delegated"] = 4] = "Delegated";
|
|
228
|
-
/**
|
|
229
|
-
* Gets functional role from organizational role.
|
|
230
|
-
*/
|
|
231
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["FuncRoleFromOrgRole"] = 8] = "FuncRoleFromOrgRole";
|
|
232
|
-
/**
|
|
233
|
-
* Gets role up hierarchy from role.
|
|
234
|
-
*/
|
|
235
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["UpHierarchy"] = 16] = "UpHierarchy";
|
|
236
|
-
/**
|
|
237
|
-
* Gets role as a manager.
|
|
238
|
-
*/
|
|
239
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["AsManager"] = 32] = "AsManager";
|
|
240
|
-
/**
|
|
241
|
-
* Gets all roles.
|
|
242
|
-
*/
|
|
243
|
-
eAdminUnitRoleSources[eAdminUnitRoleSources["All"] = 63] = "All";
|
|
244
|
-
})(eAdminUnitRoleSources || (eAdminUnitRoleSources = {}));
|
|
245
|
-
|
|
246
|
-
var ɵAggregationEvalType;
|
|
247
|
-
(function (ɵAggregationEvalType) {
|
|
248
|
-
/** The scope of the aggregating function is not defined. */
|
|
249
|
-
ɵAggregationEvalType[ɵAggregationEvalType["None"] = 0] = "None";
|
|
250
|
-
/** Applies to all elements. */
|
|
251
|
-
ɵAggregationEvalType[ɵAggregationEvalType["All"] = 1] = "All";
|
|
252
|
-
/** Applies to unique values. */
|
|
253
|
-
ɵAggregationEvalType[ɵAggregationEvalType["Distinct"] = 2] = "Distinct";
|
|
254
|
-
})(ɵAggregationEvalType || (ɵAggregationEvalType = {}));
|
|
255
|
-
|
|
256
|
-
var ɵArithmeticOperation;
|
|
257
|
-
(function (ɵArithmeticOperation) {
|
|
258
|
-
/** Addition. */
|
|
259
|
-
ɵArithmeticOperation[ɵArithmeticOperation["Addition"] = 0] = "Addition";
|
|
260
|
-
/** Subtraction. */
|
|
261
|
-
ɵArithmeticOperation[ɵArithmeticOperation["Subtraction"] = 1] = "Subtraction";
|
|
262
|
-
/** Multiplication. */
|
|
263
|
-
ɵArithmeticOperation[ɵArithmeticOperation["Multiplication"] = 2] = "Multiplication";
|
|
264
|
-
/** Division. */
|
|
265
|
-
ɵArithmeticOperation[ɵArithmeticOperation["Division"] = 3] = "Division";
|
|
266
|
-
})(ɵArithmeticOperation || (ɵArithmeticOperation = {}));
|
|
267
|
-
|
|
268
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
269
|
-
var ɵComparisonType;
|
|
270
|
-
(function (ɵComparisonType) {
|
|
271
|
-
ɵComparisonType[ɵComparisonType["Between"] = 0] = "Between";
|
|
272
|
-
ɵComparisonType[ɵComparisonType["Contain"] = 11] = "Contain";
|
|
273
|
-
ɵComparisonType[ɵComparisonType["End_with"] = 13] = "End_with";
|
|
274
|
-
ɵComparisonType[ɵComparisonType["Equal"] = 3] = "Equal";
|
|
275
|
-
ɵComparisonType[ɵComparisonType["Exists"] = 15] = "Exists";
|
|
276
|
-
ɵComparisonType[ɵComparisonType["Greater"] = 7] = "Greater";
|
|
277
|
-
ɵComparisonType[ɵComparisonType["Greater_or_equal"] = 8] = "Greater_or_equal";
|
|
278
|
-
ɵComparisonType[ɵComparisonType["Is_not_null"] = 2] = "Is_not_null";
|
|
279
|
-
ɵComparisonType[ɵComparisonType["Is_null"] = 1] = "Is_null";
|
|
280
|
-
ɵComparisonType[ɵComparisonType["Less"] = 5] = "Less";
|
|
281
|
-
ɵComparisonType[ɵComparisonType["Less_or_equal"] = 6] = "Less_or_equal";
|
|
282
|
-
ɵComparisonType[ɵComparisonType["Not_contain"] = 12] = "Not_contain";
|
|
283
|
-
ɵComparisonType[ɵComparisonType["Not_end_with"] = 14] = "Not_end_with";
|
|
284
|
-
ɵComparisonType[ɵComparisonType["Not_equal"] = 4] = "Not_equal";
|
|
285
|
-
ɵComparisonType[ɵComparisonType["Not_exists"] = 16] = "Not_exists";
|
|
286
|
-
ɵComparisonType[ɵComparisonType["Not_start_with"] = 10] = "Not_start_with";
|
|
287
|
-
ɵComparisonType[ɵComparisonType["Start_with"] = 9] = "Start_with";
|
|
288
|
-
})(ɵComparisonType || (ɵComparisonType = {}));
|
|
289
|
-
|
|
290
|
-
var ɵDatePartType;
|
|
291
|
-
(function (ɵDatePartType) {
|
|
292
|
-
/** Empty value. */
|
|
293
|
-
ɵDatePartType[ɵDatePartType["None"] = 0] = "None";
|
|
294
|
-
/** Day. */
|
|
295
|
-
ɵDatePartType[ɵDatePartType["Day"] = 1] = "Day";
|
|
296
|
-
/** Week. */
|
|
297
|
-
ɵDatePartType[ɵDatePartType["Week"] = 2] = "Week";
|
|
298
|
-
/** Month. */
|
|
299
|
-
ɵDatePartType[ɵDatePartType["Month"] = 3] = "Month";
|
|
300
|
-
/** Year. */
|
|
301
|
-
ɵDatePartType[ɵDatePartType["Year"] = 4] = "Year";
|
|
302
|
-
/** Day of the week. */
|
|
303
|
-
ɵDatePartType[ɵDatePartType["WeekDay"] = 5] = "WeekDay";
|
|
304
|
-
/** Hour. */
|
|
305
|
-
ɵDatePartType[ɵDatePartType["Hour"] = 6] = "Hour";
|
|
306
|
-
/** Minute. */
|
|
307
|
-
ɵDatePartType[ɵDatePartType["HourMinute"] = 7] = "HourMinute";
|
|
308
|
-
})(ɵDatePartType || (ɵDatePartType = {}));
|
|
309
|
-
|
|
310
|
-
var ɵExpressionType;
|
|
311
|
-
(function (ɵExpressionType) {
|
|
312
|
-
ɵExpressionType[ɵExpressionType["SchemaColumn"] = 0] = "SchemaColumn";
|
|
313
|
-
ɵExpressionType[ɵExpressionType["Function"] = 1] = "Function";
|
|
314
|
-
ɵExpressionType[ɵExpressionType["Parameter"] = 2] = "Parameter";
|
|
315
|
-
ɵExpressionType[ɵExpressionType["SubQuery"] = 3] = "SubQuery";
|
|
316
|
-
ɵExpressionType[ɵExpressionType["ArithmeticOperation"] = 4] = "ArithmeticOperation";
|
|
317
|
-
})(ɵExpressionType || (ɵExpressionType = {}));
|
|
318
|
-
|
|
319
|
-
var ɵFilterType;
|
|
320
|
-
(function (ɵFilterType) {
|
|
321
|
-
ɵFilterType[ɵFilterType["None"] = 0] = "None";
|
|
322
|
-
ɵFilterType[ɵFilterType["Compare"] = 1] = "Compare";
|
|
323
|
-
ɵFilterType[ɵFilterType["IsNull"] = 2] = "IsNull";
|
|
324
|
-
ɵFilterType[ɵFilterType["Between"] = 3] = "Between";
|
|
325
|
-
ɵFilterType[ɵFilterType["In"] = 4] = "In";
|
|
326
|
-
ɵFilterType[ɵFilterType["Exists"] = 5] = "Exists";
|
|
327
|
-
ɵFilterType[ɵFilterType["FilterGroup"] = 6] = "FilterGroup";
|
|
328
|
-
})(ɵFilterType || (ɵFilterType = {}));
|
|
329
|
-
|
|
330
|
-
var ɵFunctionType;
|
|
331
|
-
(function (ɵFunctionType) {
|
|
332
|
-
ɵFunctionType[ɵFunctionType["None"] = 0] = "None";
|
|
333
|
-
/** Substitution by macro. */
|
|
334
|
-
ɵFunctionType[ɵFunctionType["Macros"] = 1] = "Macros";
|
|
335
|
-
/** Aggregating function. */
|
|
336
|
-
ɵFunctionType[ɵFunctionType["Aggregation"] = 2] = "Aggregation";
|
|
337
|
-
/** Date fragment. */
|
|
338
|
-
ɵFunctionType[ɵFunctionType["DatePart"] = 3] = "DatePart";
|
|
339
|
-
/** The size of the value in bytes, used for binary data. */
|
|
340
|
-
ɵFunctionType[ɵFunctionType["Length"] = 4] = "Length";
|
|
341
|
-
/** Window query function */
|
|
342
|
-
ɵFunctionType[ɵFunctionType["Window"] = 5] = "Window";
|
|
343
|
-
/** Date add. */
|
|
344
|
-
ɵFunctionType[ɵFunctionType["DateAdd"] = 6] = "DateAdd";
|
|
345
|
-
/** Date diff. */
|
|
346
|
-
ɵFunctionType[ɵFunctionType["DateDiff"] = 7] = "DateDiff";
|
|
347
|
-
})(ɵFunctionType || (ɵFunctionType = {}));
|
|
348
|
-
|
|
349
|
-
var ɵLogicalOperatorType;
|
|
350
|
-
(function (ɵLogicalOperatorType) {
|
|
351
|
-
ɵLogicalOperatorType[ɵLogicalOperatorType["And"] = 0] = "And";
|
|
352
|
-
ɵLogicalOperatorType[ɵLogicalOperatorType["Or"] = 1] = "Or";
|
|
353
|
-
})(ɵLogicalOperatorType || (ɵLogicalOperatorType = {}));
|
|
354
|
-
|
|
355
|
-
var ɵOrderDirection;
|
|
356
|
-
(function (ɵOrderDirection) {
|
|
357
|
-
ɵOrderDirection[ɵOrderDirection["None"] = 0] = "None";
|
|
358
|
-
ɵOrderDirection[ɵOrderDirection["Asc"] = 1] = "Asc";
|
|
359
|
-
ɵOrderDirection[ɵOrderDirection["Desc"] = 2] = "Desc";
|
|
360
|
-
})(ɵOrderDirection || (ɵOrderDirection = {}));
|
|
361
|
-
|
|
362
|
-
var ɵQueryMacrosType;
|
|
363
|
-
(function (ɵQueryMacrosType) {
|
|
364
|
-
/** Macro type not defined. */
|
|
365
|
-
ɵQueryMacrosType[ɵQueryMacrosType["None"] = 0] = "None";
|
|
366
|
-
/** Current user. */
|
|
367
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentUser"] = 1] = "CurrentUser";
|
|
368
|
-
/** Current user contact. */
|
|
369
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentUserContact"] = 2] = "CurrentUserContact";
|
|
370
|
-
/** Yesterday. */
|
|
371
|
-
ɵQueryMacrosType[ɵQueryMacrosType["Yesterday"] = 3] = "Yesterday";
|
|
372
|
-
/** Today. */
|
|
373
|
-
ɵQueryMacrosType[ɵQueryMacrosType["Today"] = 4] = "Today";
|
|
374
|
-
/** Tomorrow. */
|
|
375
|
-
ɵQueryMacrosType[ɵQueryMacrosType["Tomorrow"] = 5] = "Tomorrow";
|
|
376
|
-
/** Previous week. */
|
|
377
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousWeek"] = 6] = "PreviousWeek";
|
|
378
|
-
/** This week. */
|
|
379
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentWeek"] = 7] = "CurrentWeek";
|
|
380
|
-
/** Next week. */
|
|
381
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextWeek"] = 8] = "NextWeek";
|
|
382
|
-
/** Previous month. */
|
|
383
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousMonth"] = 9] = "PreviousMonth";
|
|
384
|
-
/** Current month. */
|
|
385
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentMonth"] = 10] = "CurrentMonth";
|
|
386
|
-
/** Next month. */
|
|
387
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextMonth"] = 11] = "NextMonth";
|
|
388
|
-
/** Previous quarter. */
|
|
389
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousQuarter"] = 12] = "PreviousQuarter";
|
|
390
|
-
/** Current quarter. */
|
|
391
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentQuarter"] = 13] = "CurrentQuarter";
|
|
392
|
-
/** Next quarter. */
|
|
393
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextQuarter"] = 14] = "NextQuarter";
|
|
394
|
-
/** Previous half of the year. */
|
|
395
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousHalfYear"] = 15] = "PreviousHalfYear";
|
|
396
|
-
/** Current half-year. */
|
|
397
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentHalfYear"] = 16] = "CurrentHalfYear";
|
|
398
|
-
/** Next half-year. */
|
|
399
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextHalfYear"] = 17] = "NextHalfYear";
|
|
400
|
-
/** Last year. */
|
|
401
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousYear"] = 18] = "PreviousYear";
|
|
402
|
-
/** This year. */
|
|
403
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentYear"] = 19] = "CurrentYear";
|
|
404
|
-
/** Previous hour. */
|
|
405
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousHour"] = 20] = "PreviousHour";
|
|
406
|
-
/** Current hour. */
|
|
407
|
-
ɵQueryMacrosType[ɵQueryMacrosType["CurrentHour"] = 21] = "CurrentHour";
|
|
408
|
-
/** Next hour. */
|
|
409
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextHour"] = 22] = "NextHour";
|
|
410
|
-
/** Next year. */
|
|
411
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextYear"] = 23] = "NextYear";
|
|
412
|
-
/** Next N Days. */
|
|
413
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextNDays"] = 24] = "NextNDays";
|
|
414
|
-
/** Previous N days. */
|
|
415
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNDays"] = 25] = "PreviousNDays";
|
|
416
|
-
/** Next N hours. */
|
|
417
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextNHours"] = 26] = "NextNHours";
|
|
418
|
-
/** Previous N hours. */
|
|
419
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNHours"] = 27] = "PreviousNHours";
|
|
420
|
-
/** Primary column. */
|
|
421
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryColumn"] = 34] = "PrimaryColumn";
|
|
422
|
-
/** Primary displayed column. */
|
|
423
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryDisplayColumn"] = 35] = "PrimaryDisplayColumn";
|
|
424
|
-
/** Primary image display column. */
|
|
425
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryImageColumn"] = 36] = "PrimaryImageColumn";
|
|
426
|
-
/** Anniversary today. */
|
|
427
|
-
ɵQueryMacrosType[ɵQueryMacrosType["DayOfYearToday"] = 37] = "DayOfYearToday";
|
|
428
|
-
/** Anniversary on the date computed as today plus days offset. */
|
|
429
|
-
ɵQueryMacrosType[ɵQueryMacrosType["DayOfYearTodayPlusDaysOffset"] = 38] = "DayOfYearTodayPlusDaysOffset";
|
|
430
|
-
/** Anniversary on the next several days. */
|
|
431
|
-
ɵQueryMacrosType[ɵQueryMacrosType["NextNDaysOfYear"] = 39] = "NextNDaysOfYear";
|
|
432
|
-
/** Anniversary on the previous several days. */
|
|
433
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNDaysOfYear"] = 40] = "PreviousNDaysOfYear";
|
|
434
|
-
/** Primary color display column. */
|
|
435
|
-
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryColorColumn"] = 41] = "PrimaryColorColumn";
|
|
436
|
-
})(ɵQueryMacrosType || (ɵQueryMacrosType = {}));
|
|
437
|
-
|
|
438
|
-
class ɵBaseExpression {
|
|
439
|
-
/**
|
|
440
|
-
* @internal
|
|
441
|
-
* @dontChange
|
|
442
|
-
*/
|
|
443
|
-
static get _instanceOfKeys() {
|
|
444
|
-
return [this._instanceOfKey];
|
|
445
|
-
}
|
|
446
|
-
static [Symbol.hasInstance](instance) {
|
|
447
|
-
var _a, _b;
|
|
448
|
-
const instanceOfKeys = (_b = (_a = instance === null || instance === void 0 ? void 0 : instance.constructor) === null || _a === void 0 ? void 0 : _a['_instanceOfKeys']) !== null && _b !== void 0 ? _b : [];
|
|
449
|
-
return instanceOfKeys.includes(this._instanceOfKey);
|
|
450
|
-
}
|
|
451
|
-
constructor(config) {
|
|
452
|
-
this.isBlock = false;
|
|
453
|
-
this.isBlock = config === null || config === void 0 ? void 0 : config.isBlock;
|
|
454
|
-
}
|
|
455
|
-
/**
|
|
456
|
-
* Parses expression from json.
|
|
457
|
-
* @public
|
|
458
|
-
*/
|
|
459
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
460
|
-
throw new Error(`fromJson not supported on expression type ${this.constructor.name}`);
|
|
461
|
-
}
|
|
462
|
-
serializeItem(item) {
|
|
463
|
-
return typeof item.toJson === 'function'
|
|
464
|
-
? item.toJson()
|
|
465
|
-
: classToPlain(item, {
|
|
466
|
-
exposeUnsetFields: false,
|
|
467
|
-
excludePrefixes: ['_'],
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
* Converts instance to json object.
|
|
472
|
-
* @public
|
|
473
|
-
*/
|
|
474
|
-
toJson() {
|
|
475
|
-
return classToPlain(this, {
|
|
476
|
-
exposeUnsetFields: false,
|
|
477
|
-
excludePrefixes: ['_'],
|
|
478
|
-
});
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
/**
|
|
482
|
-
* @internal
|
|
483
|
-
* @dontChange
|
|
484
|
-
*/
|
|
485
|
-
ɵBaseExpression._instanceOfKey = 'devkit_BaseExpression';
|
|
486
|
-
|
|
487
|
-
class ɵArithmeticExpression extends ɵBaseExpression {
|
|
488
|
-
/**
|
|
489
|
-
* @internal
|
|
490
|
-
* @dontChange
|
|
491
|
-
*/
|
|
492
|
-
static get _instanceOfKeys() {
|
|
493
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
494
|
-
}
|
|
495
|
-
constructor(config) {
|
|
496
|
-
super(config);
|
|
497
|
-
this.expressionType = ɵExpressionType.ArithmeticOperation;
|
|
498
|
-
this.arithmeticOperation = config === null || config === void 0 ? void 0 : config.arithmeticOperation;
|
|
499
|
-
this.leftArithmeticOperand = config === null || config === void 0 ? void 0 : config.leftArithmeticOperand.clone();
|
|
500
|
-
this.rightArithmeticOperand = config === null || config === void 0 ? void 0 : config.rightArithmeticOperand.clone();
|
|
501
|
-
}
|
|
502
|
-
/**
|
|
503
|
-
* Parses expression from json.
|
|
504
|
-
* @public
|
|
505
|
-
*/
|
|
506
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
507
|
-
const leftArithmeticOperand = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['leftArithmeticOperand'], filterParser);
|
|
508
|
-
const rightArithmeticOperand = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['rightArithmeticOperand'], filterParser);
|
|
509
|
-
const config = {
|
|
510
|
-
leftArithmeticOperand,
|
|
511
|
-
rightArithmeticOperand,
|
|
512
|
-
arithmeticOperation: dto['arithmeticOperation'],
|
|
513
|
-
isBlock: dto['isBlock'],
|
|
514
|
-
};
|
|
515
|
-
return new ɵArithmeticExpression(config);
|
|
516
|
-
}
|
|
517
|
-
clone() {
|
|
518
|
-
return new ɵArithmeticExpression(this);
|
|
519
|
-
}
|
|
520
|
-
/**
|
|
521
|
-
* @internal
|
|
522
|
-
*/
|
|
523
|
-
_getUsedColumns() {
|
|
524
|
-
return [...this.leftArithmeticOperand._getUsedColumns(), ...this.rightArithmeticOperand._getUsedColumns()];
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
/**
|
|
528
|
-
* @internal
|
|
529
|
-
* @dontChange
|
|
530
|
-
*/
|
|
531
|
-
ɵArithmeticExpression._instanceOfKey = 'devkit_ArithmeticExpression';
|
|
532
|
-
|
|
533
|
-
class ɵColumnExpression extends ɵBaseExpression {
|
|
534
|
-
/**
|
|
535
|
-
* @internal
|
|
536
|
-
* @dontChange
|
|
537
|
-
*/
|
|
538
|
-
static get _instanceOfKeys() {
|
|
539
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
540
|
-
}
|
|
541
|
-
constructor(config) {
|
|
542
|
-
super(config);
|
|
543
|
-
this.expressionType = ɵExpressionType.SchemaColumn;
|
|
544
|
-
this.columnPath = config === null || config === void 0 ? void 0 : config.columnPath;
|
|
545
|
-
}
|
|
546
|
-
/**
|
|
547
|
-
* Parses expression from json.
|
|
548
|
-
* @public
|
|
549
|
-
*/
|
|
550
|
-
static fromJson(dto) {
|
|
551
|
-
const expression = new ɵColumnExpression({ columnPath: dto['columnPath'] });
|
|
552
|
-
return expression;
|
|
553
|
-
}
|
|
554
|
-
clone() {
|
|
555
|
-
return new ɵColumnExpression(this);
|
|
556
|
-
}
|
|
557
|
-
/**
|
|
558
|
-
* @internal
|
|
559
|
-
*/
|
|
560
|
-
_getUsedColumns() {
|
|
561
|
-
return [
|
|
562
|
-
{
|
|
563
|
-
path: this.columnPath,
|
|
564
|
-
},
|
|
565
|
-
];
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
/**
|
|
569
|
-
* @internal
|
|
570
|
-
* @dontChange
|
|
571
|
-
*/
|
|
572
|
-
ɵColumnExpression._instanceOfKey = 'devkit_ColumnExpression';
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* Expression parser interface
|
|
576
|
-
* @public
|
|
577
|
-
*/
|
|
578
|
-
class ɵBaseExpressionParser {
|
|
579
|
-
static fromJson(dto, filterParser) {
|
|
580
|
-
throw new Error('not implemented');
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
class ɵFunctionExpression extends ɵBaseExpression {
|
|
585
|
-
/**
|
|
586
|
-
* @internal
|
|
587
|
-
* @dontChange
|
|
588
|
-
*/
|
|
589
|
-
static get _instanceOfKeys() {
|
|
590
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
591
|
-
}
|
|
592
|
-
constructor(config) {
|
|
593
|
-
super(config);
|
|
594
|
-
this.expressionType = ɵExpressionType.Function;
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
/**
|
|
598
|
-
* @internal
|
|
599
|
-
* @dontChange
|
|
600
|
-
*/
|
|
601
|
-
ɵFunctionExpression._instanceOfKey = 'devkit_FunctionExpression';
|
|
602
|
-
|
|
603
|
-
class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
604
|
-
/**
|
|
605
|
-
* @internal
|
|
606
|
-
* @dontChange
|
|
607
|
-
*/
|
|
608
|
-
static get _instanceOfKeys() {
|
|
609
|
-
return [...ɵFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
610
|
-
}
|
|
611
|
-
constructor(config) {
|
|
612
|
-
super(config);
|
|
613
|
-
this.functionArgument = config === null || config === void 0 ? void 0 : config.functionArgument.clone();
|
|
614
|
-
}
|
|
615
|
-
toJson() {
|
|
616
|
-
const result = super.toJson();
|
|
617
|
-
if (this.functionArgument) {
|
|
618
|
-
result['functionArgument'] = this.serializeItem(this.functionArgument);
|
|
619
|
-
}
|
|
620
|
-
return result;
|
|
621
|
-
}
|
|
622
|
-
/**
|
|
623
|
-
* @internal
|
|
624
|
-
*/
|
|
625
|
-
_getUsedColumns() {
|
|
626
|
-
var _a, _b;
|
|
627
|
-
return (_b = (_a = this.functionArgument) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : [];
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
/**
|
|
631
|
-
* @internal
|
|
632
|
-
* @dontChange
|
|
633
|
-
*/
|
|
634
|
-
ɵArgumentFunctionExpression._instanceOfKey = 'devkit_ArgumentFunctionExpression';
|
|
635
|
-
|
|
636
|
-
class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
637
|
-
/**
|
|
638
|
-
* @internal
|
|
639
|
-
* @dontChange
|
|
640
|
-
*/
|
|
641
|
-
static get _instanceOfKeys() {
|
|
642
|
-
return [...ɵArgumentFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
643
|
-
}
|
|
644
|
-
constructor(config) {
|
|
645
|
-
super(config);
|
|
646
|
-
this.functionType = ɵFunctionType.Aggregation;
|
|
647
|
-
this.aggregationType = config === null || config === void 0 ? void 0 : config.aggregationType;
|
|
648
|
-
this.aggregationEvalType = config === null || config === void 0 ? void 0 : config.aggregationEvalType;
|
|
649
|
-
}
|
|
650
|
-
/**
|
|
651
|
-
* Parses expression from json.
|
|
652
|
-
* @public
|
|
653
|
-
*/
|
|
654
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
655
|
-
const functionArgument = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['functionArgument'], filterParser);
|
|
656
|
-
const aggregationType = dto['aggregationType'];
|
|
657
|
-
const aggregationEvalType = dto['aggregationEvalType'];
|
|
658
|
-
return new ɵAggregationFunctionExpression({
|
|
659
|
-
functionArgument,
|
|
660
|
-
aggregationType,
|
|
661
|
-
aggregationEvalType,
|
|
662
|
-
isBlock: dto['isBlock'],
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
clone() {
|
|
666
|
-
return new ɵAggregationFunctionExpression(this);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
/**
|
|
670
|
-
* @internal
|
|
671
|
-
* @dontChange
|
|
672
|
-
*/
|
|
673
|
-
ɵAggregationFunctionExpression._instanceOfKey = 'devkit_AggregationFunctionExpression';
|
|
674
|
-
|
|
675
|
-
class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
676
|
-
/**
|
|
677
|
-
* @internal
|
|
678
|
-
* @dontChange
|
|
679
|
-
*/
|
|
680
|
-
static get _instanceOfKeys() {
|
|
681
|
-
return [...ɵArgumentFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
682
|
-
}
|
|
683
|
-
constructor(config) {
|
|
684
|
-
super(config);
|
|
685
|
-
this.functionType = ɵFunctionType.DatePart;
|
|
686
|
-
this.datePartType = config === null || config === void 0 ? void 0 : config.datePartType;
|
|
687
|
-
}
|
|
688
|
-
/**
|
|
689
|
-
* Parses expression from json.
|
|
690
|
-
* @public
|
|
691
|
-
*/
|
|
692
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
693
|
-
const functionArgument = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['functionArgument'], filterParser);
|
|
694
|
-
const datePartType = dto['datePartType'];
|
|
695
|
-
return new ɵDatePartFunctionExpression({ functionArgument, datePartType, isBlock: dto['isBlock'] });
|
|
696
|
-
}
|
|
697
|
-
clone() {
|
|
698
|
-
return new ɵDatePartFunctionExpression(this);
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
/**
|
|
702
|
-
* @internal
|
|
703
|
-
* @dontChange
|
|
704
|
-
*/
|
|
705
|
-
ɵDatePartFunctionExpression._instanceOfKey = 'devkit_DatePartFunctionExpression';
|
|
706
|
-
|
|
707
|
-
class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
708
|
-
/**
|
|
709
|
-
* @internal
|
|
710
|
-
* @dontChange
|
|
711
|
-
*/
|
|
712
|
-
static get _instanceOfKeys() {
|
|
713
|
-
return [...ɵArgumentFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
714
|
-
}
|
|
715
|
-
constructor(config) {
|
|
716
|
-
super(config);
|
|
717
|
-
this.functionType = ɵFunctionType.Length;
|
|
718
|
-
}
|
|
719
|
-
/**
|
|
720
|
-
* Parses expression from json.
|
|
721
|
-
* @public
|
|
722
|
-
*/
|
|
723
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
724
|
-
const functionArgument = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['functionArgument'], filterParser);
|
|
725
|
-
return new ɵLengthFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
726
|
-
}
|
|
727
|
-
clone() {
|
|
728
|
-
return new ɵLengthFunctionExpression(this);
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
/**
|
|
732
|
-
* @internal
|
|
733
|
-
* @dontChange
|
|
734
|
-
*/
|
|
735
|
-
ɵLengthFunctionExpression._instanceOfKey = 'devkit_LengthFunctionExpression';
|
|
736
|
-
|
|
737
|
-
class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
738
|
-
/**
|
|
739
|
-
* @internal
|
|
740
|
-
* @dontChange
|
|
741
|
-
*/
|
|
742
|
-
static get _instanceOfKeys() {
|
|
743
|
-
return [...ɵFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
744
|
-
}
|
|
745
|
-
constructor(config) {
|
|
746
|
-
super(config);
|
|
747
|
-
this.functionType = ɵFunctionType.Macros;
|
|
748
|
-
this.macrosType = config === null || config === void 0 ? void 0 : config.macrosType;
|
|
749
|
-
this.functionArgument = config === null || config === void 0 ? void 0 : config.functionArgument;
|
|
750
|
-
}
|
|
751
|
-
/**
|
|
752
|
-
* Parses expression from json.
|
|
753
|
-
* @public
|
|
754
|
-
*/
|
|
755
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
756
|
-
const functionArgument = filterParser && expressionParser && dto['functionArgument']
|
|
757
|
-
? expressionParser.fromJson(dto['functionArgument'], filterParser)
|
|
758
|
-
: undefined;
|
|
759
|
-
return new ɵMacrosFunctionExpression({ functionArgument, macrosType: dto['macrosType'] });
|
|
760
|
-
}
|
|
761
|
-
clone() {
|
|
762
|
-
return new ɵMacrosFunctionExpression(this);
|
|
763
|
-
}
|
|
764
|
-
/**
|
|
765
|
-
* @internal
|
|
766
|
-
*/
|
|
767
|
-
_getUsedColumns() {
|
|
768
|
-
var _a, _b;
|
|
769
|
-
return (_b = (_a = this.functionArgument) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : [];
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
/**
|
|
773
|
-
* @internal
|
|
774
|
-
* @dontChange
|
|
775
|
-
*/
|
|
776
|
-
ɵMacrosFunctionExpression._instanceOfKey = 'devkit_MacrosFunctionExpression';
|
|
777
|
-
|
|
778
|
-
class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
779
|
-
/**
|
|
780
|
-
* @internal
|
|
781
|
-
* @dontChange
|
|
782
|
-
*/
|
|
783
|
-
static get _instanceOfKeys() {
|
|
784
|
-
return [...ɵArgumentFunctionExpression._instanceOfKeys, this._instanceOfKey];
|
|
785
|
-
}
|
|
786
|
-
constructor(config) {
|
|
787
|
-
super(config);
|
|
788
|
-
this.functionType = ɵFunctionType.Window;
|
|
789
|
-
}
|
|
790
|
-
/**
|
|
791
|
-
* Parses expression from json.
|
|
792
|
-
* @public
|
|
793
|
-
*/
|
|
794
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
795
|
-
const functionArgument = expressionParser === null || expressionParser === void 0 ? void 0 : expressionParser.fromJson(dto['functionArgument'], filterParser);
|
|
796
|
-
return new ɵWindowFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
797
|
-
}
|
|
798
|
-
clone() {
|
|
799
|
-
return new ɵWindowFunctionExpression(this);
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
/**
|
|
803
|
-
* @internal
|
|
804
|
-
* @dontChange
|
|
805
|
-
*/
|
|
806
|
-
ɵWindowFunctionExpression._instanceOfKey = 'devkit_WindowFunctionExpression';
|
|
807
|
-
|
|
808
|
-
class ɵParameterExpression extends ɵBaseExpression {
|
|
809
|
-
/**
|
|
810
|
-
* @internal
|
|
811
|
-
* @dontChange
|
|
812
|
-
*/
|
|
813
|
-
static get _instanceOfKeys() {
|
|
814
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
815
|
-
}
|
|
816
|
-
constructor(config) {
|
|
817
|
-
var _a;
|
|
818
|
-
super(config);
|
|
819
|
-
this.expressionType = ɵExpressionType.Parameter;
|
|
820
|
-
const value = config === null || config === void 0 ? void 0 : config.value;
|
|
821
|
-
if (value instanceof Date) {
|
|
822
|
-
const cloneDate = new Date();
|
|
823
|
-
cloneDate.setTime(value.getTime());
|
|
824
|
-
this.value = cloneDate;
|
|
825
|
-
}
|
|
826
|
-
else if (!value) {
|
|
827
|
-
this.value = value;
|
|
828
|
-
}
|
|
829
|
-
else {
|
|
830
|
-
this.value = typeof value === 'object' ? Object.assign({}, value) : value;
|
|
831
|
-
}
|
|
832
|
-
this.dataValueType = (_a = config === null || config === void 0 ? void 0 : config.dataValueType) !== null && _a !== void 0 ? _a : ɵDataValueType.Text;
|
|
833
|
-
this.parameter = Object.assign({ dataValueType: this.dataValueType }, this._getParameterValueMetadata());
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
* Parses expression from json.
|
|
837
|
-
* @public
|
|
838
|
-
*/
|
|
839
|
-
static fromJson(dto) {
|
|
840
|
-
const expression = new ɵParameterExpression(dto['parameter']);
|
|
841
|
-
return expression;
|
|
842
|
-
}
|
|
843
|
-
_convertStringToBlobArray(str) {
|
|
844
|
-
const out = [];
|
|
845
|
-
let position = 0;
|
|
846
|
-
for (let i = 0; i < str.length; i++) {
|
|
847
|
-
const code = str.charCodeAt(i);
|
|
848
|
-
if (code < 128) {
|
|
849
|
-
out[position++] = String.fromCharCode(code);
|
|
850
|
-
}
|
|
851
|
-
else if (code < 2048) {
|
|
852
|
-
/* eslint-disable no-bitwise */
|
|
853
|
-
out[position++] = String.fromCharCode((code >> 6) | 192);
|
|
854
|
-
out[position++] = String.fromCharCode((code & 63) | 128);
|
|
855
|
-
}
|
|
856
|
-
else {
|
|
857
|
-
out[position++] = String.fromCharCode((code >> 12) | 224);
|
|
858
|
-
out[position++] = String.fromCharCode(((code >> 6) & 63) | 128);
|
|
859
|
-
out[position++] = String.fromCharCode((code & 63) | 128);
|
|
860
|
-
/* eslint-enable no-bitwise */
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
return out;
|
|
864
|
-
}
|
|
865
|
-
_getParameterValueMetadata() {
|
|
866
|
-
if (this.dataValueType === ɵDataValueType.Blob) {
|
|
867
|
-
return {
|
|
868
|
-
arrayValue: !this.value ? [] : this._convertStringToBlobArray(this.value),
|
|
869
|
-
};
|
|
870
|
-
}
|
|
871
|
-
else if (this.value instanceof Date) {
|
|
872
|
-
return {
|
|
873
|
-
value: ɵencodeDate(this.value),
|
|
874
|
-
};
|
|
875
|
-
}
|
|
876
|
-
else {
|
|
877
|
-
return {
|
|
878
|
-
value: this.value,
|
|
879
|
-
};
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
clone() {
|
|
883
|
-
return new ɵParameterExpression(this);
|
|
884
|
-
}
|
|
885
|
-
/**
|
|
886
|
-
* @internal
|
|
887
|
-
*/
|
|
888
|
-
_getUsedColumns() {
|
|
889
|
-
return [];
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
/**
|
|
893
|
-
* @internal
|
|
894
|
-
* @dontChange
|
|
895
|
-
*/
|
|
896
|
-
ɵParameterExpression._instanceOfKey = 'devkit_ParameterExpression';
|
|
897
|
-
__decorate([
|
|
898
|
-
Exclude(),
|
|
899
|
-
__metadata("design:type", Object)
|
|
900
|
-
], ɵParameterExpression.prototype, "value", void 0);
|
|
901
|
-
__decorate([
|
|
902
|
-
Exclude(),
|
|
903
|
-
__metadata("design:type", Number)
|
|
904
|
-
], ɵParameterExpression.prototype, "dataValueType", void 0);
|
|
905
|
-
|
|
906
|
-
class ɵBaseFilter {
|
|
907
|
-
/**
|
|
908
|
-
* @internal
|
|
909
|
-
* @dontChange
|
|
910
|
-
*/
|
|
911
|
-
static get _instanceOfKeys() {
|
|
912
|
-
return [this._instanceOfKey];
|
|
913
|
-
}
|
|
914
|
-
static [Symbol.hasInstance](instance) {
|
|
915
|
-
var _a, _b;
|
|
916
|
-
const instanceOfKeys = (_b = (_a = instance === null || instance === void 0 ? void 0 : instance.constructor) === null || _a === void 0 ? void 0 : _a['_instanceOfKeys']) !== null && _b !== void 0 ? _b : [];
|
|
917
|
-
return instanceOfKeys.includes(this._instanceOfKey);
|
|
918
|
-
}
|
|
919
|
-
constructor(filterType) {
|
|
920
|
-
this.isEnabled = true;
|
|
921
|
-
this.trimDateTimeParameterToDate = false;
|
|
922
|
-
this.filterType = filterType;
|
|
923
|
-
}
|
|
924
|
-
/**
|
|
925
|
-
* Parses filter from json.
|
|
926
|
-
* @public
|
|
927
|
-
*/
|
|
928
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
929
|
-
throw new Error(`fromJson not supported on filter type ${this.constructor.name}`);
|
|
930
|
-
}
|
|
931
|
-
serializeItem(item) {
|
|
932
|
-
return typeof item.toJson === 'function'
|
|
933
|
-
? item.toJson()
|
|
934
|
-
: classToPlain(item, {
|
|
935
|
-
exposeUnsetFields: false,
|
|
936
|
-
excludePrefixes: ['_'],
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
/**
|
|
940
|
-
* Converts instance to json object.
|
|
941
|
-
* @public
|
|
942
|
-
*/
|
|
943
|
-
toJson() {
|
|
944
|
-
return classToPlain(this, {
|
|
945
|
-
exposeUnsetFields: false,
|
|
946
|
-
excludePrefixes: ['_'],
|
|
947
|
-
});
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
/**
|
|
951
|
-
* @internal
|
|
952
|
-
* @dontChange
|
|
953
|
-
*/
|
|
954
|
-
ɵBaseFilter._instanceOfKey = 'devkit_BaseFilter';
|
|
955
|
-
|
|
956
|
-
class ɵSingleFilter extends ɵBaseFilter {
|
|
957
|
-
/**
|
|
958
|
-
* @internal
|
|
959
|
-
* @dontChange
|
|
960
|
-
*/
|
|
961
|
-
static get _instanceOfKeys() {
|
|
962
|
-
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
963
|
-
}
|
|
964
|
-
constructor(filterType, comparisonType, leftExpression) {
|
|
965
|
-
super(filterType);
|
|
966
|
-
this.comparisonType = comparisonType;
|
|
967
|
-
this.leftExpression = leftExpression.clone();
|
|
968
|
-
}
|
|
969
|
-
toJson() {
|
|
970
|
-
return Object.assign(Object.assign({}, super.toJson()), { leftExpression: this.serializeItem(this.leftExpression) });
|
|
971
|
-
}
|
|
972
|
-
/**
|
|
973
|
-
* @internal
|
|
974
|
-
*/
|
|
975
|
-
_getUsedColumns() {
|
|
976
|
-
return this.leftExpression._getUsedColumns();
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
/**
|
|
980
|
-
* @internal
|
|
981
|
-
* @dontChange
|
|
982
|
-
*/
|
|
983
|
-
ɵSingleFilter._instanceOfKey = 'devkit_SingleFilter';
|
|
984
|
-
|
|
985
|
-
class ɵBetweenFilter extends ɵSingleFilter {
|
|
986
|
-
/**
|
|
987
|
-
* @internal
|
|
988
|
-
* @dontChange
|
|
989
|
-
*/
|
|
990
|
-
static get _instanceOfKeys() {
|
|
991
|
-
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
992
|
-
}
|
|
993
|
-
constructor(leftExpression, rightLessExpression, rightGreaterExpression) {
|
|
994
|
-
super(ɵFilterType.Between, ɵComparisonType.Between, leftExpression);
|
|
995
|
-
this.rightLessExpression = rightLessExpression.clone();
|
|
996
|
-
this.rightGreaterExpression = rightGreaterExpression.clone();
|
|
997
|
-
}
|
|
998
|
-
/**
|
|
999
|
-
* Parses filter from json.
|
|
1000
|
-
* @public
|
|
1001
|
-
*/
|
|
1002
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1003
|
-
const filter = new ɵBetweenFilter(expressionParser.fromJson(dto['leftExpression'], filterParser), expressionParser.fromJson(dto['rightLessExpression'], filterParser), expressionParser.fromJson(dto['rightGreaterExpression'], filterParser));
|
|
1004
|
-
return filter;
|
|
1005
|
-
}
|
|
1006
|
-
clone() {
|
|
1007
|
-
const filter = new ɵBetweenFilter(this.leftExpression, this.rightLessExpression, this.rightGreaterExpression);
|
|
1008
|
-
filter.isEnabled = this.isEnabled;
|
|
1009
|
-
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1010
|
-
return filter;
|
|
1011
|
-
}
|
|
1012
|
-
toJson() {
|
|
1013
|
-
return Object.assign(Object.assign({}, super.toJson()), { rightLessExpression: this.serializeItem(this.rightLessExpression), rightGreaterExpression: this.serializeItem(this.rightGreaterExpression) });
|
|
1014
|
-
}
|
|
1015
|
-
/**
|
|
1016
|
-
* @internal
|
|
1017
|
-
*/
|
|
1018
|
-
_getUsedColumns() {
|
|
1019
|
-
return [
|
|
1020
|
-
...super._getUsedColumns(),
|
|
1021
|
-
...this.rightLessExpression._getUsedColumns(),
|
|
1022
|
-
...this.rightGreaterExpression._getUsedColumns(),
|
|
1023
|
-
];
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
/**
|
|
1027
|
-
* @internal
|
|
1028
|
-
* @dontChange
|
|
1029
|
-
*/
|
|
1030
|
-
ɵBetweenFilter._instanceOfKey = 'devkit_BetweenFilter';
|
|
1031
|
-
|
|
1032
|
-
class ɵCompareFilter extends ɵSingleFilter {
|
|
1033
|
-
/**
|
|
1034
|
-
* @internal
|
|
1035
|
-
* @dontChange
|
|
1036
|
-
*/
|
|
1037
|
-
static get _instanceOfKeys() {
|
|
1038
|
-
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1039
|
-
}
|
|
1040
|
-
constructor(comparisonType, leftExpression, rightExpression) {
|
|
1041
|
-
super(ɵFilterType.Compare, comparisonType, leftExpression);
|
|
1042
|
-
this.rightExpression = rightExpression.clone();
|
|
1043
|
-
}
|
|
1044
|
-
/**
|
|
1045
|
-
* Parses filter from json.
|
|
1046
|
-
* @public
|
|
1047
|
-
*/
|
|
1048
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1049
|
-
const filter = new ɵCompareFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser), expressionParser.fromJson(dto['rightExpression'], filterParser));
|
|
1050
|
-
return filter;
|
|
1051
|
-
}
|
|
1052
|
-
clone() {
|
|
1053
|
-
const filter = new ɵCompareFilter(this.comparisonType, this.leftExpression, this.rightExpression);
|
|
1054
|
-
filter.isEnabled = this.isEnabled;
|
|
1055
|
-
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1056
|
-
return filter;
|
|
1057
|
-
}
|
|
1058
|
-
toJson() {
|
|
1059
|
-
return Object.assign(Object.assign({}, super.toJson()), { rightExpression: this.serializeItem(this.rightExpression) });
|
|
1060
|
-
}
|
|
1061
|
-
/**
|
|
1062
|
-
* @internal
|
|
1063
|
-
*/
|
|
1064
|
-
_getUsedColumns() {
|
|
1065
|
-
return [...super._getUsedColumns(), ...this.rightExpression._getUsedColumns()];
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
/**
|
|
1069
|
-
* @internal
|
|
1070
|
-
* @dontChange
|
|
1071
|
-
*/
|
|
1072
|
-
ɵCompareFilter._instanceOfKey = 'devkit_CompareFilter';
|
|
1073
|
-
|
|
1074
|
-
class ɵExistsFilter extends ɵSingleFilter {
|
|
1075
|
-
/**
|
|
1076
|
-
* @internal
|
|
1077
|
-
* @dontChange
|
|
1078
|
-
*/
|
|
1079
|
-
static get _instanceOfKeys() {
|
|
1080
|
-
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1081
|
-
}
|
|
1082
|
-
constructor(leftExpression, subFilters, comparisonType = ɵComparisonType.Exists, isAggregative = true) {
|
|
1083
|
-
super(ɵFilterType.Exists, comparisonType, leftExpression);
|
|
1084
|
-
this.subFilters = subFilters === null || subFilters === void 0 ? void 0 : subFilters.clone();
|
|
1085
|
-
this.isAggregative = isAggregative;
|
|
1086
|
-
}
|
|
1087
|
-
/**
|
|
1088
|
-
* Parses filter from json.
|
|
1089
|
-
* @public
|
|
1090
|
-
*/
|
|
1091
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1092
|
-
const leftExpression = expressionParser.fromJson(dto['leftExpression'], filterParser);
|
|
1093
|
-
const subFilters = filterParser.fromJson(dto['subFilters']);
|
|
1094
|
-
return new ɵExistsFilter(leftExpression, subFilters, dto['comparisonType'], dto['isAggregative']);
|
|
1095
|
-
}
|
|
1096
|
-
clone() {
|
|
1097
|
-
const filter = new ɵExistsFilter(this.leftExpression, this.subFilters, this.comparisonType, this.isAggregative);
|
|
1098
|
-
filter.isEnabled = this.isEnabled;
|
|
1099
|
-
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1100
|
-
return filter;
|
|
1101
|
-
}
|
|
1102
|
-
toJson() {
|
|
1103
|
-
const result = super.toJson();
|
|
1104
|
-
if (this.subFilters) {
|
|
1105
|
-
result['subFilters'] = this.serializeItem(this.subFilters);
|
|
1106
|
-
}
|
|
1107
|
-
return result;
|
|
1108
|
-
}
|
|
1109
|
-
/**
|
|
1110
|
-
* @internal
|
|
1111
|
-
*/
|
|
1112
|
-
_getUsedColumns() {
|
|
1113
|
-
var _a, _b;
|
|
1114
|
-
return [...super._getUsedColumns(), ...((_b = (_a = this.subFilters) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : [])];
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
/**
|
|
1118
|
-
* @internal
|
|
1119
|
-
* @dontChange
|
|
1120
|
-
*/
|
|
1121
|
-
ɵExistsFilter._instanceOfKey = 'devkit_ExistsFilter';
|
|
1122
|
-
|
|
1123
|
-
class ɵInFilter extends ɵSingleFilter {
|
|
1124
|
-
/**
|
|
1125
|
-
* @internal
|
|
1126
|
-
* @dontChange
|
|
1127
|
-
*/
|
|
1128
|
-
static get _instanceOfKeys() {
|
|
1129
|
-
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1130
|
-
}
|
|
1131
|
-
constructor(comparisonType, leftExpression, rightExpressions) {
|
|
1132
|
-
super(ɵFilterType.In, comparisonType, leftExpression);
|
|
1133
|
-
this.rightExpressions = rightExpressions.map((expression) => expression.clone());
|
|
1134
|
-
}
|
|
1135
|
-
/**
|
|
1136
|
-
* Parses in filter from json.
|
|
1137
|
-
* @public
|
|
1138
|
-
*/
|
|
1139
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1140
|
-
var _a;
|
|
1141
|
-
const dtoRightExpressions = ((_a = dto['rightExpressions']) !== null && _a !== void 0 ? _a : []);
|
|
1142
|
-
return new ɵInFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser), dtoRightExpressions.map((expression) => expressionParser.fromJson(expression, filterParser)));
|
|
1143
|
-
}
|
|
1144
|
-
clone() {
|
|
1145
|
-
const filter = new ɵInFilter(this.comparisonType, this.leftExpression, this.rightExpressions);
|
|
1146
|
-
filter.isEnabled = this.isEnabled;
|
|
1147
|
-
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1148
|
-
return filter;
|
|
1149
|
-
}
|
|
1150
|
-
toJson() {
|
|
1151
|
-
return Object.assign(Object.assign({}, super.toJson()), { rightExpressions: this.rightExpressions.map((expression) => this.serializeItem(expression)) });
|
|
1152
|
-
}
|
|
1153
|
-
/**
|
|
1154
|
-
* @internal
|
|
1155
|
-
*/
|
|
1156
|
-
_getUsedColumns() {
|
|
1157
|
-
const rightExpressionsUsedColumns = this.rightExpressions
|
|
1158
|
-
.map((expression) => expression._getUsedColumns())
|
|
1159
|
-
.flat();
|
|
1160
|
-
return [...super._getUsedColumns(), ...rightExpressionsUsedColumns];
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
/**
|
|
1164
|
-
* @internal
|
|
1165
|
-
* @dontChange
|
|
1166
|
-
*/
|
|
1167
|
-
ɵInFilter._instanceOfKey = 'devkit_InFilter';
|
|
1168
|
-
|
|
1169
|
-
class ɵIsNullFilter extends ɵSingleFilter {
|
|
1170
|
-
/**
|
|
1171
|
-
* @internal
|
|
1172
|
-
* @dontChange
|
|
1173
|
-
*/
|
|
1174
|
-
static get _instanceOfKeys() {
|
|
1175
|
-
return [...ɵSingleFilter._instanceOfKeys, this._instanceOfKey];
|
|
1176
|
-
}
|
|
1177
|
-
constructor(comparisonType, leftExpression) {
|
|
1178
|
-
super(ɵFilterType.IsNull, comparisonType, leftExpression);
|
|
1179
|
-
}
|
|
1180
|
-
get isNull() {
|
|
1181
|
-
return this.comparisonType === ɵComparisonType.Is_null;
|
|
1182
|
-
}
|
|
1183
|
-
/**
|
|
1184
|
-
* Parses isNull filter from json.
|
|
1185
|
-
* @public
|
|
1186
|
-
*/
|
|
1187
|
-
static fromJson(dto, filterParser, expressionParser) {
|
|
1188
|
-
return new ɵIsNullFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser));
|
|
1189
|
-
}
|
|
1190
|
-
clone() {
|
|
1191
|
-
const filter = new ɵIsNullFilter(this.comparisonType, this.leftExpression);
|
|
1192
|
-
filter.isEnabled = this.isEnabled;
|
|
1193
|
-
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1194
|
-
return filter;
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
/**
|
|
1198
|
-
* @internal
|
|
1199
|
-
* @dontChange
|
|
1200
|
-
*/
|
|
1201
|
-
ɵIsNullFilter._instanceOfKey = 'devkit_IsNullFilter';
|
|
1202
|
-
__decorate([
|
|
1203
|
-
Expose(),
|
|
1204
|
-
__metadata("design:type", Boolean),
|
|
1205
|
-
__metadata("design:paramtypes", [])
|
|
1206
|
-
], ɵIsNullFilter.prototype, "isNull", null);
|
|
1207
|
-
|
|
1208
|
-
/**
|
|
1209
|
-
* Empty Guid constant.
|
|
1210
|
-
* @public
|
|
1211
|
-
*/
|
|
1212
|
-
const ɵEMPTY_GUID = '00000000-0000-0000-0000-000000000000';
|
|
1213
|
-
/**
|
|
1214
|
-
* Regular expression for Guid validation.
|
|
1215
|
-
* @public
|
|
1216
|
-
*/
|
|
1217
|
-
const validator = new RegExp('^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$', 'i');
|
|
1218
|
-
/**
|
|
1219
|
-
* Generates guid part.
|
|
1220
|
-
* @param length Part length.
|
|
1221
|
-
* @public
|
|
1222
|
-
*/
|
|
1223
|
-
function generateGuidPart(length) {
|
|
1224
|
-
let out = '';
|
|
1225
|
-
for (let i = 0; i < length; i++) {
|
|
1226
|
-
// eslint-disable-next-line no-bitwise
|
|
1227
|
-
out += (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
1228
|
-
}
|
|
1229
|
-
return out;
|
|
1230
|
-
}
|
|
1231
|
-
/**
|
|
1232
|
-
* Generates new Guid.
|
|
1233
|
-
* @public
|
|
1234
|
-
*/
|
|
1235
|
-
function ɵgenerateGuid() {
|
|
1236
|
-
return [
|
|
1237
|
-
generateGuidPart(2),
|
|
1238
|
-
generateGuidPart(1),
|
|
1239
|
-
generateGuidPart(1),
|
|
1240
|
-
generateGuidPart(1),
|
|
1241
|
-
generateGuidPart(3),
|
|
1242
|
-
].join('-');
|
|
1243
|
-
}
|
|
1244
|
-
/**
|
|
1245
|
-
* Checks if value is Guid.
|
|
1246
|
-
* @param value Value for check.
|
|
1247
|
-
* @public
|
|
1248
|
-
*/
|
|
1249
|
-
function ɵisGuid(value) {
|
|
1250
|
-
return Boolean(value) && validator.test(value);
|
|
1251
|
-
}
|
|
1252
|
-
/**
|
|
1253
|
-
* Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
1254
|
-
* @param guid Guid for check.
|
|
1255
|
-
* @public
|
|
1256
|
-
*/
|
|
1257
|
-
function ɵisEmptyGuid(guid) {
|
|
1258
|
-
return !guid || guid === ɵEMPTY_GUID;
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
/**
|
|
1262
|
-
* @public
|
|
1263
|
-
*/
|
|
1264
|
-
class ɵNextHandlerAlreadySpecifiedException extends Error {
|
|
1265
|
-
constructor() {
|
|
1266
|
-
super('Next handler already specified');
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
class ɵArgumentEmptyException extends Error {
|
|
1271
|
-
// region Constructors: Public
|
|
1272
|
-
constructor(argumentName) {
|
|
1273
|
-
super(`Argument with name '${argumentName}' is empty.`);
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
class ɵArgumentOutOfRangeException extends Error {
|
|
1278
|
-
// region Constructors: Public
|
|
1279
|
-
constructor(argumentName) {
|
|
1280
|
-
super(`Argument with name '${argumentName}' is out of range.`);
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
class ɵItemNotFoundException extends Error {
|
|
1285
|
-
// region Constructors: Public
|
|
1286
|
-
constructor(key) {
|
|
1287
|
-
super(`Item with key '${key}' does not exist.`);
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
class ɵValidationUtilities {
|
|
1292
|
-
// region Methods: Public
|
|
1293
|
-
static checkArgumentEmpty(argumentName, argumentValue) {
|
|
1294
|
-
if (argumentValue === undefined || argumentValue === null) {
|
|
1295
|
-
throw new ɵArgumentEmptyException(argumentName);
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
static checkArrayEmpty(argumentName, argumentValue) {
|
|
1299
|
-
ɵValidationUtilities.checkArgumentEmpty(argumentName, argumentValue);
|
|
1300
|
-
if (argumentValue.length === 0) {
|
|
1301
|
-
throw new ɵArgumentEmptyException(argumentName);
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
static checkStringIsNotEmpty(argumentName, argumentValue) {
|
|
1305
|
-
this.checkArgumentEmpty(argumentName, argumentValue);
|
|
1306
|
-
if (argumentValue === '') {
|
|
1307
|
-
throw new ɵArgumentEmptyException(argumentName);
|
|
1308
|
-
}
|
|
1309
|
-
return argumentValue;
|
|
1310
|
-
}
|
|
1311
|
-
static checkArgumentOutOfRange(argumentName, argumentValue, range) {
|
|
1312
|
-
if (range.begin && argumentValue < range.begin) {
|
|
1313
|
-
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
1314
|
-
}
|
|
1315
|
-
if (range.end && argumentValue > range.end) {
|
|
1316
|
-
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
class ɵFilterGroup extends ɵBaseFilter {
|
|
1322
|
-
/**
|
|
1323
|
-
* @internal
|
|
1324
|
-
* @dontChange
|
|
1325
|
-
*/
|
|
1326
|
-
static get _instanceOfKeys() {
|
|
1327
|
-
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
1328
|
-
}
|
|
1329
|
-
get items() {
|
|
1330
|
-
const result = {};
|
|
1331
|
-
this.filters.forEach((filter, key) => {
|
|
1332
|
-
result[key] = this.serializeItem(filter);
|
|
1333
|
-
});
|
|
1334
|
-
return result;
|
|
1335
|
-
}
|
|
1336
|
-
constructor(logicalOperation = ɵLogicalOperatorType.And, rootSchemaName) {
|
|
1337
|
-
super(ɵFilterType.FilterGroup);
|
|
1338
|
-
this.filters = new Map();
|
|
1339
|
-
this.logicalOperation = logicalOperation;
|
|
1340
|
-
this.rootSchemaName = rootSchemaName;
|
|
1341
|
-
}
|
|
1342
|
-
/**
|
|
1343
|
-
* Parses filter group from json.
|
|
1344
|
-
* @public
|
|
1345
|
-
*/
|
|
1346
|
-
static fromJson(dto, filterParser) {
|
|
1347
|
-
const logicalOperation = dto['logicalOperation'];
|
|
1348
|
-
const group = new ɵFilterGroup(logicalOperation || ɵLogicalOperatorType.And, dto['rootSchemaName']);
|
|
1349
|
-
Object.entries(dto['items']).forEach(([key, filterDTO]) => {
|
|
1350
|
-
group.add(filterParser.fromJson(filterDTO), key);
|
|
1351
|
-
});
|
|
1352
|
-
return group;
|
|
1353
|
-
}
|
|
1354
|
-
/**
|
|
1355
|
-
* Converts instance to json object.
|
|
1356
|
-
* @public
|
|
1357
|
-
*/
|
|
1358
|
-
toJson() {
|
|
1359
|
-
const result = {};
|
|
1360
|
-
result['filterType'] = this.filterType;
|
|
1361
|
-
result['isEnabled'] = this.isEnabled;
|
|
1362
|
-
result['logicalOperation'] = this.logicalOperation;
|
|
1363
|
-
result['trimDateTimeParameterToDate'] = this.trimDateTimeParameterToDate;
|
|
1364
|
-
result['items'] = this.items;
|
|
1365
|
-
if (this.rootSchemaName) {
|
|
1366
|
-
result['rootSchemaName'] = this.rootSchemaName;
|
|
1367
|
-
}
|
|
1368
|
-
return result;
|
|
1369
|
-
}
|
|
1370
|
-
_createParameterValueExpressions(values) {
|
|
1371
|
-
return values.map((value) => new ɵParameterExpression({
|
|
1372
|
-
value: value,
|
|
1373
|
-
}));
|
|
1374
|
-
}
|
|
1375
|
-
/**
|
|
1376
|
-
* Returns filter item by index.
|
|
1377
|
-
* @param index Item index.
|
|
1378
|
-
* @returns Filter.
|
|
1379
|
-
*/
|
|
1380
|
-
getItemByIndex(index) {
|
|
1381
|
-
return this.items[Object.keys(this.items)[index]];
|
|
1382
|
-
}
|
|
1383
|
-
/**
|
|
1384
|
-
* Creates and adds compare filter by value.
|
|
1385
|
-
* @param comparisonType Comparison type.
|
|
1386
|
-
* @param columnPath Column path.
|
|
1387
|
-
* @param parameterValue Parameter value.
|
|
1388
|
-
* @param filterKey Filter key.
|
|
1389
|
-
*/
|
|
1390
|
-
addSchemaColumnFilterWithParameter(comparisonType, columnPath, parameterValue, filterKey) {
|
|
1391
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1392
|
-
const rightExpression = new ɵParameterExpression({ value: parameterValue });
|
|
1393
|
-
const filter = new ɵCompareFilter(comparisonType, leftExpression, rightExpression);
|
|
1394
|
-
this.add(filter, filterKey);
|
|
1395
|
-
}
|
|
1396
|
-
/**
|
|
1397
|
-
* Creates and adds in filter by values.
|
|
1398
|
-
* @param comparisonType Comparison type.
|
|
1399
|
-
* @param columnPath Column path.
|
|
1400
|
-
* @param parameterValues Parameter values.
|
|
1401
|
-
* @param filterKey Filter key.
|
|
1402
|
-
*/
|
|
1403
|
-
addSchemaColumnInFilterWithParameters(comparisonType, columnPath, parameterValues, filterKey) {
|
|
1404
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1405
|
-
const expressions = this._createParameterValueExpressions(parameterValues);
|
|
1406
|
-
const filter = new ɵInFilter(comparisonType, leftExpression, expressions);
|
|
1407
|
-
this.add(filter, filterKey);
|
|
1408
|
-
}
|
|
1409
|
-
/**
|
|
1410
|
-
* Creates and adds in filter for primary column.
|
|
1411
|
-
* @param primaryColumnValues Primary column values.
|
|
1412
|
-
* @param filterKey Filter key.
|
|
1413
|
-
*/
|
|
1414
|
-
addPrimarySchemaColumnInFilter(primaryColumnValues, filterKey) {
|
|
1415
|
-
const leftExpression = new ɵMacrosFunctionExpression({ macrosType: ɵQueryMacrosType.PrimaryColumn });
|
|
1416
|
-
const expressions = this._createParameterValueExpressions(primaryColumnValues);
|
|
1417
|
-
const filter = new ɵInFilter(ɵComparisonType.Equal, leftExpression, expressions);
|
|
1418
|
-
this.add(filter, filterKey);
|
|
1419
|
-
}
|
|
1420
|
-
addSchemaColumnIsNullFilter(columnPath, filterKey) {
|
|
1421
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1422
|
-
const filter = new ɵIsNullFilter(ɵComparisonType.Is_null, leftExpression);
|
|
1423
|
-
this.add(filter, filterKey);
|
|
1424
|
-
}
|
|
1425
|
-
/**
|
|
1426
|
-
* Creates and adds not null filter.
|
|
1427
|
-
* @param columnPath Column path.
|
|
1428
|
-
* @param filterKey Filter key.
|
|
1429
|
-
*/
|
|
1430
|
-
addSchemaColumnIsNotNullFilter(columnPath, filterKey) {
|
|
1431
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1432
|
-
const filter = new ɵIsNullFilter(ɵComparisonType.Is_not_null, leftExpression);
|
|
1433
|
-
this.add(filter, filterKey);
|
|
1434
|
-
}
|
|
1435
|
-
/**
|
|
1436
|
-
* Creates and adds filter between less value and greater value.
|
|
1437
|
-
* @param columnPath Column path.
|
|
1438
|
-
* @param lessParamValue Less parameter value.
|
|
1439
|
-
* @param greaterParamValue Greater parameter value.
|
|
1440
|
-
* @param filterKey Filter key.
|
|
1441
|
-
*/
|
|
1442
|
-
addSchemaColumnBetweenFilterWithParameters(columnPath, lessParamValue, greaterParamValue, filterKey) {
|
|
1443
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1444
|
-
const rightLessExpression = new ɵParameterExpression({ value: lessParamValue });
|
|
1445
|
-
const rightGreaterExpression = new ɵParameterExpression({ value: greaterParamValue });
|
|
1446
|
-
const filter = new ɵBetweenFilter(leftExpression, rightLessExpression, rightGreaterExpression);
|
|
1447
|
-
this.add(filter, filterKey);
|
|
1448
|
-
}
|
|
1449
|
-
addExistsFilter(columnPath, subFilters, filterKey) {
|
|
1450
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1451
|
-
const filter = new ɵExistsFilter(leftExpression, subFilters);
|
|
1452
|
-
this.add(filter, filterKey);
|
|
1453
|
-
}
|
|
1454
|
-
addNotExistsFilter(columnPath, subFilters, filterKey) {
|
|
1455
|
-
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1456
|
-
const filter = new ɵExistsFilter(leftExpression, subFilters, ɵComparisonType.Not_exists);
|
|
1457
|
-
this.add(filter, filterKey);
|
|
1458
|
-
}
|
|
1459
|
-
add(filter, filterKey) {
|
|
1460
|
-
ɵValidationUtilities.checkArgumentEmpty('filter', filter);
|
|
1461
|
-
const key = filterKey || ɵgenerateGuid();
|
|
1462
|
-
this.filters.set(key, filter);
|
|
1463
|
-
}
|
|
1464
|
-
clone() {
|
|
1465
|
-
const filterGroup = new ɵFilterGroup(this.logicalOperation, this.rootSchemaName);
|
|
1466
|
-
this.filters.forEach((filter, filterKey) => {
|
|
1467
|
-
filterGroup.filters.set(filterKey, filter.clone());
|
|
1468
|
-
});
|
|
1469
|
-
filterGroup.isEnabled = this.isEnabled;
|
|
1470
|
-
filterGroup.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1471
|
-
return filterGroup;
|
|
1472
|
-
}
|
|
1473
|
-
/**
|
|
1474
|
-
* @internal
|
|
1475
|
-
*/
|
|
1476
|
-
_getUsedColumns() {
|
|
1477
|
-
const result = [];
|
|
1478
|
-
this.filters.forEach((filter) => {
|
|
1479
|
-
let filterUsedColumns = filter._getUsedColumns ? filter._getUsedColumns() : [];
|
|
1480
|
-
filterUsedColumns = filterUsedColumns.map((usedColumn) => {
|
|
1481
|
-
var _a;
|
|
1482
|
-
return ({
|
|
1483
|
-
path: usedColumn.path,
|
|
1484
|
-
schemaName: (_a = usedColumn.schemaName) !== null && _a !== void 0 ? _a : this.rootSchemaName,
|
|
1485
|
-
});
|
|
1486
|
-
});
|
|
1487
|
-
result.push(...filterUsedColumns);
|
|
1488
|
-
});
|
|
1489
|
-
return result;
|
|
1490
|
-
}
|
|
1491
|
-
}
|
|
1492
|
-
/**
|
|
1493
|
-
* @internal
|
|
1494
|
-
* @dontChange
|
|
1495
|
-
*/
|
|
1496
|
-
ɵFilterGroup._instanceOfKey = 'devkit_FilterGroup';
|
|
1497
|
-
__decorate([
|
|
1498
|
-
Exclude(),
|
|
1499
|
-
__metadata("design:type", Object)
|
|
1500
|
-
], ɵFilterGroup.prototype, "filters", void 0);
|
|
1501
|
-
__decorate([
|
|
1502
|
-
Expose(),
|
|
1503
|
-
__metadata("design:type", Object),
|
|
1504
|
-
__metadata("design:paramtypes", [])
|
|
1505
|
-
], ɵFilterGroup.prototype, "items", null);
|
|
1506
|
-
|
|
1507
|
-
class ɵSubQueryExpression extends ɵBaseExpression {
|
|
1508
|
-
/**
|
|
1509
|
-
* @internal
|
|
1510
|
-
* @dontChange
|
|
1511
|
-
*/
|
|
1512
|
-
static get _instanceOfKeys() {
|
|
1513
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
1514
|
-
}
|
|
1515
|
-
constructor(config) {
|
|
1516
|
-
super(config);
|
|
1517
|
-
this.expressionType = ɵExpressionType.SubQuery;
|
|
1518
|
-
this.columnPath = config === null || config === void 0 ? void 0 : config.columnPath;
|
|
1519
|
-
const subFilters = config === null || config === void 0 ? void 0 : config.subFilters;
|
|
1520
|
-
if (typeof (subFilters === null || subFilters === void 0 ? void 0 : subFilters.clone) === 'function') {
|
|
1521
|
-
this.subFilters = subFilters.clone();
|
|
1522
|
-
}
|
|
1523
|
-
else if (subFilters) {
|
|
1524
|
-
this.subFilters = new ɵFilterGroup(subFilters.logicalOperation, subFilters.rootSchemaName);
|
|
1525
|
-
Object.entries(subFilters.items).forEach(([key, filter]) => {
|
|
1526
|
-
this.subFilters.add(filter, key);
|
|
1527
|
-
});
|
|
1528
|
-
}
|
|
1529
|
-
else {
|
|
1530
|
-
this.subFilters = subFilters;
|
|
1531
|
-
}
|
|
1532
|
-
this.subOrderDirection = config.subOrderDirection;
|
|
1533
|
-
this.subOrderColumn = config.subOrderColumn;
|
|
1534
|
-
}
|
|
1535
|
-
/**
|
|
1536
|
-
* Parses expression from json.
|
|
1537
|
-
* @public
|
|
1538
|
-
*/
|
|
1539
|
-
static fromJson(dto, filterParser) {
|
|
1540
|
-
const expression = new ɵSubQueryExpression({
|
|
1541
|
-
columnPath: dto['columnPath'],
|
|
1542
|
-
subFilters: filterParser.fromJson(dto['subFilters']),
|
|
1543
|
-
subOrderDirection: dto['subOrderDirection'],
|
|
1544
|
-
subOrderColumn: dto['subOrderColumn'],
|
|
1545
|
-
});
|
|
1546
|
-
return expression;
|
|
1547
|
-
}
|
|
1548
|
-
clone() {
|
|
1549
|
-
return new ɵSubQueryExpression(this);
|
|
1550
|
-
}
|
|
1551
|
-
toJson() {
|
|
1552
|
-
const result = super.toJson();
|
|
1553
|
-
if (this.subFilters) {
|
|
1554
|
-
result['subFilters'] = this.serializeItem(this.subFilters);
|
|
1555
|
-
}
|
|
1556
|
-
return result;
|
|
1557
|
-
}
|
|
1558
|
-
/**
|
|
1559
|
-
* @internal
|
|
1560
|
-
*/
|
|
1561
|
-
_getUsedColumns() {
|
|
1562
|
-
var _a, _b;
|
|
1563
|
-
return [
|
|
1564
|
-
{
|
|
1565
|
-
path: this.columnPath,
|
|
1566
|
-
},
|
|
1567
|
-
...((_b = (_a = this.subFilters) === null || _a === void 0 ? void 0 : _a._getUsedColumns()) !== null && _b !== void 0 ? _b : []),
|
|
1568
|
-
];
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
/**
|
|
1572
|
-
* @internal
|
|
1573
|
-
* @dontChange
|
|
1574
|
-
*/
|
|
1575
|
-
ɵSubQueryExpression._instanceOfKey = 'devkit_SubQueryExpression';
|
|
1576
|
-
|
|
1577
|
-
class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
1578
|
-
/**
|
|
1579
|
-
* @internal
|
|
1580
|
-
* @dontChange
|
|
1581
|
-
*/
|
|
1582
|
-
static get _instanceOfKeys() {
|
|
1583
|
-
return [...ɵSubQueryExpression._instanceOfKeys, this._instanceOfKey];
|
|
1584
|
-
}
|
|
1585
|
-
constructor(config) {
|
|
1586
|
-
super(config);
|
|
1587
|
-
this.aggregationType = config === null || config === void 0 ? void 0 : config.aggregationType;
|
|
1588
|
-
this.functionType = config === null || config === void 0 ? void 0 : config.functionType;
|
|
1589
|
-
}
|
|
1590
|
-
/**
|
|
1591
|
-
* Parses expression from json.
|
|
1592
|
-
* @public
|
|
1593
|
-
*/
|
|
1594
|
-
static fromJson(dto, filterParser) {
|
|
1595
|
-
const subQueryExpression = super.fromJson(dto, filterParser);
|
|
1596
|
-
const expression = new ɵAggregationSubQueryExpression(Object.assign({ aggregationType: dto['aggregationType'], functionType: dto['functionType'] }, subQueryExpression));
|
|
1597
|
-
return expression;
|
|
1598
|
-
}
|
|
1599
|
-
clone() {
|
|
1600
|
-
return new ɵAggregationSubQueryExpression(this);
|
|
1601
|
-
}
|
|
1602
|
-
}
|
|
1603
|
-
/**
|
|
1604
|
-
* @internal
|
|
1605
|
-
* @dontChange
|
|
1606
|
-
*/
|
|
1607
|
-
ɵAggregationSubQueryExpression._instanceOfKey = 'devkit_AggregationSubQueryExpression';
|
|
1608
|
-
|
|
1609
|
-
/**
|
|
1610
|
-
* Function expression resolver.
|
|
1611
|
-
* @public
|
|
1612
|
-
*/
|
|
1613
|
-
class FunctionExpressionResolver {
|
|
1614
|
-
static resolve(dto) {
|
|
1615
|
-
const expressionClass = {
|
|
1616
|
-
[ɵFunctionType.Macros]: ɵMacrosFunctionExpression,
|
|
1617
|
-
[ɵFunctionType.Length]: ɵLengthFunctionExpression,
|
|
1618
|
-
[ɵFunctionType.Window]: ɵWindowFunctionExpression,
|
|
1619
|
-
[ɵFunctionType.DatePart]: ɵDatePartFunctionExpression,
|
|
1620
|
-
[ɵFunctionType.DateAdd]: ɵDatePartFunctionExpression,
|
|
1621
|
-
[ɵFunctionType.DateDiff]: ɵDatePartFunctionExpression,
|
|
1622
|
-
};
|
|
1623
|
-
return expressionClass[dto['functionType']];
|
|
1624
|
-
}
|
|
1625
|
-
}
|
|
1626
|
-
/**
|
|
1627
|
-
* Expression resolver.
|
|
1628
|
-
* @public
|
|
1629
|
-
*/
|
|
1630
|
-
class ɵExpressionResolver {
|
|
1631
|
-
static resolve(expressionType, dto) {
|
|
1632
|
-
const expressionClass = {
|
|
1633
|
-
[ɵExpressionType.SchemaColumn]: ɵColumnExpression,
|
|
1634
|
-
[ɵExpressionType.Parameter]: ɵParameterExpression,
|
|
1635
|
-
[ɵExpressionType.SubQuery]: ɵAggregationSubQueryExpression,
|
|
1636
|
-
[ɵExpressionType.ArithmeticOperation]: ɵArithmeticExpression,
|
|
1637
|
-
[ɵExpressionType.Function]: FunctionExpressionResolver.resolve(dto),
|
|
1638
|
-
};
|
|
1639
|
-
return expressionClass[expressionType];
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
/**
|
|
1644
|
-
* Expression parser.
|
|
1645
|
-
* @public
|
|
1646
|
-
*/
|
|
1647
|
-
class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
1648
|
-
/**
|
|
1649
|
-
* Parses expression from json.
|
|
1650
|
-
* @public
|
|
1651
|
-
*/
|
|
1652
|
-
static fromJson(dto, filterParser) {
|
|
1653
|
-
const expressionType = dto['expressionType'];
|
|
1654
|
-
return ɵExpressionResolver.resolve(expressionType, dto).fromJson(dto, filterParser, ɵExpressionParser);
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
const ɵEXPRESSION_TYPE_MOCK = -1;
|
|
1659
|
-
class ɵExpressionMock extends ɵBaseExpression {
|
|
1660
|
-
/**
|
|
1661
|
-
* @internal
|
|
1662
|
-
* @dontChange
|
|
1663
|
-
*/
|
|
1664
|
-
static get _instanceOfKeys() {
|
|
1665
|
-
return [...ɵBaseExpression._instanceOfKeys, this._instanceOfKey];
|
|
1666
|
-
}
|
|
1667
|
-
constructor(config) {
|
|
1668
|
-
super(config || {});
|
|
1669
|
-
this.expressionType = ɵEXPRESSION_TYPE_MOCK;
|
|
1670
|
-
}
|
|
1671
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1672
|
-
get plainObject() {
|
|
1673
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1674
|
-
}
|
|
1675
|
-
clone() {
|
|
1676
|
-
return new ɵExpressionMock(this);
|
|
1677
|
-
}
|
|
1678
|
-
/**
|
|
1679
|
-
* @internal
|
|
1680
|
-
*/
|
|
1681
|
-
_getUsedColumns() {
|
|
1682
|
-
return [];
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
/**
|
|
1686
|
-
* @internal
|
|
1687
|
-
* @dontChange
|
|
1688
|
-
*/
|
|
1689
|
-
ɵExpressionMock._instanceOfKey = 'devkit_ExpressionMock';
|
|
1690
|
-
|
|
1691
|
-
class ɵFilterMock extends ɵBaseFilter {
|
|
1692
|
-
/**
|
|
1693
|
-
* @internal
|
|
1694
|
-
* @dontChange
|
|
1695
|
-
*/
|
|
1696
|
-
static get _instanceOfKeys() {
|
|
1697
|
-
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
1698
|
-
}
|
|
1699
|
-
constructor(filterType = ɵFilterType.None) {
|
|
1700
|
-
super(filterType);
|
|
1701
|
-
}
|
|
1702
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1703
|
-
get plainObject() {
|
|
1704
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1705
|
-
}
|
|
1706
|
-
clone() {
|
|
1707
|
-
return new ɵFilterMock(this.filterType);
|
|
1708
|
-
}
|
|
1709
|
-
/**
|
|
1710
|
-
* @internal
|
|
1711
|
-
*/
|
|
1712
|
-
_getUsedColumns() {
|
|
1713
|
-
return [];
|
|
1714
|
-
}
|
|
1715
|
-
}
|
|
1716
|
-
/**
|
|
1717
|
-
* @internal
|
|
1718
|
-
* @dontChange
|
|
1719
|
-
*/
|
|
1720
|
-
ɵFilterMock._instanceOfKey = 'devkit_FilterMock';
|
|
1721
|
-
|
|
1722
|
-
const ɵparserMock = {
|
|
1723
|
-
fromJson: (data) => (Object.assign(Object.assign({}, data), { clone: () => data })),
|
|
1724
|
-
clone: () => this,
|
|
1725
|
-
};
|
|
1726
|
-
|
|
1727
|
-
/**
|
|
1728
|
-
* Filter parser interface
|
|
1729
|
-
* @public
|
|
1730
|
-
*/
|
|
1731
|
-
class ɵBaseFilterParser {
|
|
1732
|
-
static fromJson(dto) {
|
|
1733
|
-
throw new Error('not implemented');
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
/**
|
|
1738
|
-
* Filter resolver.
|
|
1739
|
-
* @public
|
|
1740
|
-
*/
|
|
1741
|
-
class ɵFilterResolver {
|
|
1742
|
-
static resolve(filterType) {
|
|
1743
|
-
const filterClass = {
|
|
1744
|
-
[ɵFilterType.Compare]: ɵCompareFilter,
|
|
1745
|
-
[ɵFilterType.FilterGroup]: ɵFilterGroup,
|
|
1746
|
-
[ɵFilterType.In]: ɵInFilter,
|
|
1747
|
-
[ɵFilterType.IsNull]: ɵIsNullFilter,
|
|
1748
|
-
[ɵFilterType.Exists]: ɵExistsFilter,
|
|
1749
|
-
[ɵFilterType.Between]: ɵBetweenFilter,
|
|
1750
|
-
};
|
|
1751
|
-
return filterClass[filterType];
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
/**
|
|
1756
|
-
* Filter parser.
|
|
1757
|
-
* @public
|
|
1758
|
-
*/
|
|
1759
|
-
class ɵFilterParser extends ɵBaseFilterParser {
|
|
1760
|
-
static fromJson(dto) {
|
|
1761
|
-
const filterType = dto['filterType'];
|
|
1762
|
-
const isEnabled = dto['isEnabled'];
|
|
1763
|
-
const trimDateTimeParameterToDate = dto['trimDateTimeParameterToDate'];
|
|
1764
|
-
const filter = ɵFilterResolver.resolve(filterType).fromJson(dto, ɵFilterParser, ɵExpressionParser);
|
|
1765
|
-
filter.isEnabled = isEnabled !== false;
|
|
1766
|
-
filter.trimDateTimeParameterToDate = trimDateTimeParameterToDate === true;
|
|
1767
|
-
return filter;
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
const ɵDEFAULT_FILTER_PLAIN_OBJ = {
|
|
1772
|
-
isEnabled: true,
|
|
1773
|
-
trimDateTimeParameterToDate: false,
|
|
1774
|
-
};
|
|
1775
|
-
function ɵgetFilterPlainObj(filterPlainObj) {
|
|
1776
|
-
return Object.assign(Object.assign({}, ɵDEFAULT_FILTER_PLAIN_OBJ), filterPlainObj);
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
class ɵBaseQueryColumn {
|
|
1780
|
-
constructor(expression) {
|
|
1781
|
-
this.orderDirection = ɵOrderDirection.None;
|
|
1782
|
-
this.orderPosition = -1;
|
|
1783
|
-
this.isVisible = true;
|
|
1784
|
-
this.expression = expression;
|
|
1785
|
-
}
|
|
1786
|
-
/**
|
|
1787
|
-
* Adds ordering options.
|
|
1788
|
-
* @param orderDirection Direction.
|
|
1789
|
-
* @param orderPosition Position.
|
|
1790
|
-
* @returns Self.
|
|
1791
|
-
*/
|
|
1792
|
-
withOrdering(orderDirection, orderPosition) {
|
|
1793
|
-
ɵValidationUtilities.checkArgumentEmpty('orderDirection', orderDirection);
|
|
1794
|
-
ɵValidationUtilities.checkArgumentEmpty('orderPosition', orderPosition);
|
|
1795
|
-
ɵValidationUtilities.checkArgumentOutOfRange('orderPosition', orderPosition, { begin: -1 });
|
|
1796
|
-
this.orderDirection = orderDirection;
|
|
1797
|
-
this.orderPosition = orderPosition;
|
|
1798
|
-
return this;
|
|
1799
|
-
}
|
|
1800
|
-
/**
|
|
1801
|
-
* Adds options.
|
|
1802
|
-
* @param options Options.
|
|
1803
|
-
* @returns Self.
|
|
1804
|
-
*/
|
|
1805
|
-
withOptions(options) {
|
|
1806
|
-
var _a;
|
|
1807
|
-
ɵValidationUtilities.checkArgumentEmpty('options', options);
|
|
1808
|
-
this.isVisible = (_a = options.isVisible) !== null && _a !== void 0 ? _a : true;
|
|
1809
|
-
return this;
|
|
1810
|
-
}
|
|
1811
|
-
/**
|
|
1812
|
-
* Adds caption.
|
|
1813
|
-
* @param caption Caption.
|
|
1814
|
-
* @returns Self.
|
|
1815
|
-
*/
|
|
1816
|
-
withCaption(caption) {
|
|
1817
|
-
ɵValidationUtilities.checkArgumentEmpty('caption', caption);
|
|
1818
|
-
this.caption = caption;
|
|
1819
|
-
return this;
|
|
1820
|
-
}
|
|
1821
|
-
/**
|
|
1822
|
-
* @internal
|
|
1823
|
-
*/
|
|
1824
|
-
_getUsedColumns() {
|
|
1825
|
-
return this.expression._getUsedColumns();
|
|
1826
|
-
}
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
1830
|
-
// region Constructors: Public
|
|
1831
|
-
constructor(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand) {
|
|
1832
|
-
super(new ɵArithmeticExpression({ arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand }));
|
|
1833
|
-
}
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
class ɵEntityQueryColumn extends ɵBaseQueryColumn {
|
|
1837
|
-
// region Constructors: Public
|
|
1838
|
-
constructor(columnPath) {
|
|
1839
|
-
super(new ɵColumnExpression({ columnPath }));
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
class ɵParameterQueryColumn extends ɵBaseQueryColumn {
|
|
1844
|
-
// region Constructors: Public
|
|
1845
|
-
constructor(value, dataValueType) {
|
|
1846
|
-
super(new ɵParameterExpression({ value, dataValueType }));
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
class ɵAggregationSubQueryColumn extends ɵBaseQueryColumn {
|
|
1851
|
-
// region Constructors: Public
|
|
1852
|
-
constructor(columnPath, aggregationType, subFilters, subOrderDirection, subOrderColumn) {
|
|
1853
|
-
super(new ɵAggregationSubQueryExpression({
|
|
1854
|
-
aggregationType,
|
|
1855
|
-
columnPath,
|
|
1856
|
-
subFilters,
|
|
1857
|
-
subOrderDirection,
|
|
1858
|
-
subOrderColumn,
|
|
1859
|
-
}));
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
class ɵSubQueryColumn extends ɵBaseQueryColumn {
|
|
1864
|
-
// region Constructors: Public
|
|
1865
|
-
constructor(columnPath, subFilters) {
|
|
1866
|
-
super(new ɵSubQueryExpression({ columnPath, subFilters }));
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
class ɵAggregationFunctionColumn extends ɵBaseQueryColumn {
|
|
1871
|
-
// region Constructors: Public
|
|
1872
|
-
constructor(aggregationType, aggregationEvalType, functionArgument) {
|
|
1873
|
-
super(new ɵAggregationFunctionExpression({
|
|
1874
|
-
aggregationType,
|
|
1875
|
-
aggregationEvalType,
|
|
1876
|
-
functionArgument,
|
|
1877
|
-
}));
|
|
1878
|
-
}
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
class ɵDatePartFunctionColumn extends ɵBaseQueryColumn {
|
|
1882
|
-
// region Constructors: Public
|
|
1883
|
-
constructor(datePartType, functionArgument) {
|
|
1884
|
-
super(new ɵDatePartFunctionExpression({
|
|
1885
|
-
datePartType,
|
|
1886
|
-
functionArgument,
|
|
1887
|
-
}));
|
|
1888
|
-
}
|
|
1889
|
-
// endregion
|
|
1890
|
-
// region Properties: Public
|
|
1891
|
-
get datePartType() {
|
|
1892
|
-
var _a;
|
|
1893
|
-
return (_a = this.expression) === null || _a === void 0 ? void 0 : _a.datePartType;
|
|
1894
|
-
}
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
class ɵLengthFunctionColumn extends ɵBaseQueryColumn {
|
|
1898
|
-
// region Constructors: Public
|
|
1899
|
-
constructor(functionArgument) {
|
|
1900
|
-
super(new ɵLengthFunctionExpression({ functionArgument }));
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
class ɵMacrosFunctionColumn extends ɵBaseQueryColumn {
|
|
1905
|
-
// region Constructors: Public
|
|
1906
|
-
constructor(macrosType) {
|
|
1907
|
-
super(new ɵMacrosFunctionExpression({ macrosType }));
|
|
1908
|
-
}
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
class ɵWindowFunctionColumn extends ɵBaseQueryColumn {
|
|
1912
|
-
// region Constructors: Public
|
|
1913
|
-
constructor(functionArgument) {
|
|
1914
|
-
super(new ɵWindowFunctionExpression({ functionArgument }));
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
const ɵDEFAULT_COLUMN_PLAIN_OBJ = {
|
|
1919
|
-
isVisible: true,
|
|
1920
|
-
orderPosition: -1,
|
|
1921
|
-
orderDirection: ɵOrderDirection.None,
|
|
1922
|
-
};
|
|
1923
|
-
function ɵgetColumnPlainObj(expressionPlainObj) {
|
|
1924
|
-
return Object.assign(Object.assign({}, ɵDEFAULT_COLUMN_PLAIN_OBJ), { expression: expressionPlainObj });
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
/**
|
|
1928
|
-
* @public
|
|
1929
|
-
*/
|
|
1930
|
-
class ɵBaseQuery {
|
|
1931
|
-
// region Constructors: Protected
|
|
1932
|
-
constructor(operationType, rootSchemaName) {
|
|
1933
|
-
this.operationType = operationType;
|
|
1934
|
-
this.rootSchemaName = rootSchemaName;
|
|
1935
|
-
ɵValidationUtilities.checkArgumentEmpty('_operationType', operationType);
|
|
1936
|
-
ɵValidationUtilities.checkArgumentEmpty('_rootSchemaName', rootSchemaName);
|
|
1937
|
-
}
|
|
1938
|
-
// endregion
|
|
1939
|
-
// region Methods: Public
|
|
1940
|
-
getMetadata() {
|
|
1941
|
-
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1942
|
-
}
|
|
1943
|
-
}
|
|
1944
|
-
|
|
1945
|
-
/**
|
|
1946
|
-
* @public
|
|
1947
|
-
*/
|
|
1948
|
-
class ɵBaseFilterableQuery extends ɵBaseQuery {
|
|
1949
|
-
constructor(operationType, rootSchemaName) {
|
|
1950
|
-
super(operationType, rootSchemaName);
|
|
1951
|
-
this.filters = new ɵFilterGroup();
|
|
1952
|
-
}
|
|
1953
|
-
clearFilters() {
|
|
1954
|
-
this.filters.filters.clear();
|
|
1955
|
-
}
|
|
1956
|
-
getMetadata() {
|
|
1957
|
-
return Object.assign(Object.assign({}, super.getMetadata()), { filters: this.filters.toJson() });
|
|
1958
|
-
}
|
|
1959
|
-
/**
|
|
1960
|
-
* @internal
|
|
1961
|
-
*/
|
|
1962
|
-
_getUsedColumns() {
|
|
1963
|
-
const usedColumns = this.filters._getUsedColumns();
|
|
1964
|
-
usedColumns.forEach((usedColumn) => {
|
|
1965
|
-
if (!usedColumn.schemaName) {
|
|
1966
|
-
usedColumn.schemaName = this.rootSchemaName;
|
|
1967
|
-
}
|
|
1968
|
-
});
|
|
1969
|
-
return usedColumns;
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
__decorate([
|
|
1973
|
-
Exclude(),
|
|
1974
|
-
__metadata("design:type", Object)
|
|
1975
|
-
], ɵBaseFilterableQuery.prototype, "filters", void 0);
|
|
1976
|
-
|
|
1977
|
-
/**
|
|
1978
|
-
* @public
|
|
1979
|
-
*/
|
|
1980
|
-
var ɵQueryOperationType;
|
|
1981
|
-
(function (ɵQueryOperationType) {
|
|
1982
|
-
ɵQueryOperationType[ɵQueryOperationType["Select"] = 0] = "Select";
|
|
1983
|
-
ɵQueryOperationType[ɵQueryOperationType["Insert"] = 1] = "Insert";
|
|
1984
|
-
ɵQueryOperationType[ɵQueryOperationType["Update"] = 2] = "Update";
|
|
1985
|
-
ɵQueryOperationType[ɵQueryOperationType["Delete"] = 3] = "Delete";
|
|
1986
|
-
// Batch,
|
|
1987
|
-
// ListSelect,
|
|
1988
|
-
// FilteredSelect,
|
|
1989
|
-
// LookupSelect
|
|
1990
|
-
})(ɵQueryOperationType || (ɵQueryOperationType = {}));
|
|
1991
|
-
|
|
1992
|
-
/**
|
|
1993
|
-
* @public
|
|
1994
|
-
*/
|
|
1995
|
-
class ɵDeleteQuery extends ɵBaseFilterableQuery {
|
|
1996
|
-
// region Constructors: Public
|
|
1997
|
-
constructor(rootSchemaName) {
|
|
1998
|
-
super(ɵQueryOperationType.Delete, rootSchemaName);
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
/**
|
|
2003
|
-
* @public
|
|
2004
|
-
*/
|
|
2005
|
-
class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
2006
|
-
constructor(rootSchemaName) {
|
|
2007
|
-
super(ɵQueryOperationType.Select, rootSchemaName);
|
|
2008
|
-
this._columns = new Map();
|
|
2009
|
-
this.isDistinct = false;
|
|
2010
|
-
/**
|
|
2011
|
-
* Number of rows to select.
|
|
2012
|
-
*/
|
|
2013
|
-
this.rowCount = -1;
|
|
2014
|
-
/**
|
|
2015
|
-
* Rows count to skip.
|
|
2016
|
-
*/
|
|
2017
|
-
this.rowsOffset = -1;
|
|
2018
|
-
this.useLocalization = true;
|
|
2019
|
-
this.useRecordDeactivation = false;
|
|
2020
|
-
this._getIsPageable = () => this.rowCount > 0 && this.rowsOffset > -1;
|
|
2021
|
-
}
|
|
2022
|
-
_internalAddColumn(key, column) {
|
|
2023
|
-
if (!this._columns.has(key)) {
|
|
2024
|
-
this._columns.set(key, column);
|
|
2025
|
-
}
|
|
2026
|
-
}
|
|
2027
|
-
// endregion
|
|
2028
|
-
// region Methods: Public
|
|
2029
|
-
/**
|
|
2030
|
-
* Returns column instance by column alias.
|
|
2031
|
-
* @param columnAlias Column alias.
|
|
2032
|
-
* @returns [BaseQueryColumn] Column instance.
|
|
2033
|
-
*/
|
|
2034
|
-
getColumn(columnAlias) {
|
|
2035
|
-
if (!this._columns.has(columnAlias)) {
|
|
2036
|
-
throw new ɵItemNotFoundException(columnAlias);
|
|
2037
|
-
}
|
|
2038
|
-
return this.findColumn(columnAlias);
|
|
2039
|
-
}
|
|
2040
|
-
/**
|
|
2041
|
-
* Returns column instance by column alias if not found returns null.
|
|
2042
|
-
*/
|
|
2043
|
-
findColumn(columnAlias) {
|
|
2044
|
-
return this._columns.get(columnAlias);
|
|
2045
|
-
}
|
|
2046
|
-
/**
|
|
2047
|
-
* @inheritDoc
|
|
2048
|
-
*/
|
|
2049
|
-
getMetadata() {
|
|
2050
|
-
return Object.assign(Object.assign({}, super.getMetadata()), { columns: {
|
|
2051
|
-
items: classToPlain(this._columns, { exposeUnsetFields: false, excludePrefixes: ['_'] }),
|
|
2052
|
-
}, allColumns: false, isDistinct: this.isDistinct, ignoreDisplayValues: false, rowCount: this.rowCount, rowsOffset: this.rowsOffset, adminUnitRoleSources: this.adminUnitRoleSources, isPageable: this._getIsPageable(), conditionalValues: this.conditionalValues ? this.conditionalValues : null, isHierarchical: false, hierarchicalMaxDepth: 0, hierarchicalColumnName: null, hierarchicalColumnValue: null, useLocalization: this.useLocalization, useRecordDeactivation: this.useRecordDeactivation });
|
|
2053
|
-
}
|
|
2054
|
-
/**
|
|
2055
|
-
* Add column.
|
|
2056
|
-
* @param column Column path.
|
|
2057
|
-
* @param columnAlias Column alias.
|
|
2058
|
-
* @returns [BaseQueryColumn] Column instance.
|
|
2059
|
-
*/
|
|
2060
|
-
addColumn(column, columnAlias) {
|
|
2061
|
-
this._internalAddColumn(columnAlias, column);
|
|
2062
|
-
return column;
|
|
2063
|
-
}
|
|
2064
|
-
/**
|
|
2065
|
-
* Add column by column path.
|
|
2066
|
-
* @param columnPath Column path.
|
|
2067
|
-
* @param columnAlias Column alias.
|
|
2068
|
-
* @returns [EntityQueryColumn] Column instance.
|
|
2069
|
-
*/
|
|
2070
|
-
addSchemaColumn(columnPath, columnAlias) {
|
|
2071
|
-
ɵValidationUtilities.checkArgumentEmpty('columnPath', columnPath);
|
|
2072
|
-
const column = new ɵEntityQueryColumn(columnPath);
|
|
2073
|
-
this._internalAddColumn(columnAlias || columnPath, column);
|
|
2074
|
-
return column;
|
|
2075
|
-
}
|
|
2076
|
-
/**
|
|
2077
|
-
* Add aggregation sub query column.
|
|
2078
|
-
* @param columnPath Column path.
|
|
2079
|
-
* @param aggregationType Aggregation type.
|
|
2080
|
-
* @param subFilters Sub query filters.
|
|
2081
|
-
* @param columnAlias Column alias.
|
|
2082
|
-
* @returns [AggregationSubQueryColumn] Column instance.
|
|
2083
|
-
*/
|
|
2084
|
-
addAggregationSubQueryColumn(columnPath, aggregationType, aggregationConfig, columnAlias) {
|
|
2085
|
-
const column = new ɵAggregationSubQueryColumn(columnPath, aggregationType, aggregationConfig.filter, aggregationConfig.sortByDirection, aggregationConfig.sortByColumn);
|
|
2086
|
-
this._internalAddColumn(columnAlias || columnPath, column);
|
|
2087
|
-
return column;
|
|
2088
|
-
}
|
|
2089
|
-
/**
|
|
2090
|
-
* Add parameter column.
|
|
2091
|
-
* @param value Parameter value.
|
|
2092
|
-
* @param dataValueType Parameter data value type.
|
|
2093
|
-
* @param columnAlias Column alias.
|
|
2094
|
-
* @returns [ParameterQueryColumn] Column instance.
|
|
2095
|
-
*/
|
|
2096
|
-
addParameterColumn(value, dataValueType, columnAlias) {
|
|
2097
|
-
const column = new ɵParameterQueryColumn(value, dataValueType);
|
|
2098
|
-
this._internalAddColumn(columnAlias, column);
|
|
2099
|
-
return column;
|
|
2100
|
-
}
|
|
2101
|
-
/**
|
|
2102
|
-
* Add arithmetic column.
|
|
2103
|
-
* @param arithmeticOperation Arithmetic operation.
|
|
2104
|
-
* @param leftArithmeticOperand Left arithmetic operand expression.
|
|
2105
|
-
* @param rightArithmeticOperand Right arithmetic operand expression.
|
|
2106
|
-
* @param columnAlias Column alias.
|
|
2107
|
-
* @returns [ArithmeticQueryColumn] Column instance.
|
|
2108
|
-
*/
|
|
2109
|
-
addArithmeticColumn(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand, columnAlias) {
|
|
2110
|
-
const column = new ɵArithmeticQueryColumn(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand);
|
|
2111
|
-
this._internalAddColumn(columnAlias, column);
|
|
2112
|
-
return column;
|
|
2113
|
-
}
|
|
2114
|
-
/**
|
|
2115
|
-
* Add macros function column.
|
|
2116
|
-
* @param queryMacrosType Macros type.
|
|
2117
|
-
* @param columnAlias Column alias.
|
|
2118
|
-
* @returns [MacrosFunctionColumn] Column instance.
|
|
2119
|
-
*/
|
|
2120
|
-
addMacrosFunctionColumn(queryMacrosType, columnAlias) {
|
|
2121
|
-
const column = new ɵMacrosFunctionColumn(queryMacrosType);
|
|
2122
|
-
this._internalAddColumn(columnAlias, column);
|
|
2123
|
-
return column;
|
|
2124
|
-
}
|
|
2125
|
-
/**
|
|
2126
|
-
* Add date part function column.
|
|
2127
|
-
* @param columnPath Column path.
|
|
2128
|
-
* @param datePartType Date part type.
|
|
2129
|
-
* @param columnAlias Column alias.
|
|
2130
|
-
* @returns [DatePartFunctionColumn] Column instance.
|
|
2131
|
-
*/
|
|
2132
|
-
addDatePartFunctionColumn(columnPath, datePartType, columnAlias) {
|
|
2133
|
-
const functionArgument = new ɵColumnExpression({ columnPath });
|
|
2134
|
-
const column = new ɵDatePartFunctionColumn(datePartType, functionArgument);
|
|
2135
|
-
this._internalAddColumn(columnAlias, column);
|
|
2136
|
-
return column;
|
|
2137
|
-
}
|
|
2138
|
-
/**
|
|
2139
|
-
* Add aggregation function column.
|
|
2140
|
-
* @param columnPath Column path.
|
|
2141
|
-
* @param aggregationType Aggregation type.
|
|
2142
|
-
* @param columnAlias Column alias.
|
|
2143
|
-
* @param aggregationEvalType Aggregation eval type.
|
|
2144
|
-
* @returns [AggregationFunctionColumn] Column instance.
|
|
2145
|
-
*/
|
|
2146
|
-
addAggregationFunctionColumn(columnPath, aggregationType, columnAlias, aggregationEvalType = ɵAggregationEvalType.None) {
|
|
2147
|
-
const functionArgument = new ɵColumnExpression({ columnPath });
|
|
2148
|
-
const column = new ɵAggregationFunctionColumn(aggregationType, aggregationEvalType, functionArgument);
|
|
2149
|
-
this._internalAddColumn(columnAlias, column);
|
|
2150
|
-
return column;
|
|
2151
|
-
}
|
|
2152
|
-
/**
|
|
2153
|
-
* Add length function column.
|
|
2154
|
-
* @param columnPath Column path.
|
|
2155
|
-
* @param columnAlias Column alias.
|
|
2156
|
-
* @returns [LengthFunctionColumn] Column instance.
|
|
2157
|
-
*/
|
|
2158
|
-
addLengthFunctionColumn(columnPath, columnAlias) {
|
|
2159
|
-
const functionArgument = new ɵColumnExpression({ columnPath });
|
|
2160
|
-
const column = new ɵLengthFunctionColumn(functionArgument);
|
|
2161
|
-
this._internalAddColumn(columnAlias, column);
|
|
2162
|
-
return column;
|
|
2163
|
-
}
|
|
2164
|
-
/**
|
|
2165
|
-
* Add window function column.
|
|
2166
|
-
* @param columnPath Column path.
|
|
2167
|
-
* @param aggregationType Aggregation type.
|
|
2168
|
-
* @param columnAlias Column alias.
|
|
2169
|
-
* @param aggregationEvalType Aggregation eval type.
|
|
2170
|
-
* @returns [WindowFunctionColumn] Column instance.
|
|
2171
|
-
*/
|
|
2172
|
-
addWindowFunctionColumn(columnPath, aggregationType, columnAlias, aggregationEvalType = ɵAggregationEvalType.None) {
|
|
2173
|
-
const functionArgument = new ɵAggregationFunctionExpression({
|
|
2174
|
-
aggregationType,
|
|
2175
|
-
aggregationEvalType,
|
|
2176
|
-
functionArgument: new ɵColumnExpression({ columnPath }),
|
|
2177
|
-
});
|
|
2178
|
-
const column = new ɵWindowFunctionColumn(functionArgument);
|
|
2179
|
-
this._internalAddColumn(columnAlias, column);
|
|
2180
|
-
return column;
|
|
2181
|
-
}
|
|
2182
|
-
/**
|
|
2183
|
-
* @internal
|
|
2184
|
-
*/
|
|
2185
|
-
_getUsedColumns() {
|
|
2186
|
-
const usedColumns = [];
|
|
2187
|
-
this._columns.forEach((column) => {
|
|
2188
|
-
usedColumns.push(...column._getUsedColumns());
|
|
2189
|
-
});
|
|
2190
|
-
usedColumns.forEach((usedColumn) => {
|
|
2191
|
-
if (!usedColumn.schemaName) {
|
|
2192
|
-
usedColumn.schemaName = this.rootSchemaName;
|
|
2193
|
-
}
|
|
2194
|
-
});
|
|
2195
|
-
return [...usedColumns, ...super._getUsedColumns()];
|
|
2196
|
-
}
|
|
2197
|
-
}
|
|
2198
|
-
|
|
2199
|
-
/**
|
|
2200
|
-
* @public
|
|
2201
|
-
*/
|
|
2202
|
-
class ɵInsertQuery extends ɵBaseQuery {
|
|
2203
|
-
// endregion
|
|
2204
|
-
// region Constructors: Public
|
|
2205
|
-
constructor(rootSchemaName) {
|
|
2206
|
-
super(ɵQueryOperationType.Insert, rootSchemaName);
|
|
2207
|
-
// region Fields: Private
|
|
2208
|
-
this._columnValues = new Map();
|
|
2209
|
-
}
|
|
2210
|
-
// endregion
|
|
2211
|
-
// region Properties: Public
|
|
2212
|
-
get columnValues() {
|
|
2213
|
-
return {
|
|
2214
|
-
items: classToPlain(this._columnValues),
|
|
2215
|
-
};
|
|
2216
|
-
}
|
|
2217
|
-
// endregion
|
|
2218
|
-
// region Methods: Public
|
|
2219
|
-
addColumn(columnName, columnValue, dataValueType) {
|
|
2220
|
-
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2221
|
-
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
2222
|
-
}
|
|
2223
|
-
}
|
|
2224
|
-
__decorate([
|
|
2225
|
-
Expose(),
|
|
2226
|
-
__metadata("design:type", Object),
|
|
2227
|
-
__metadata("design:paramtypes", [])
|
|
2228
|
-
], ɵInsertQuery.prototype, "columnValues", null);
|
|
2229
|
-
|
|
2230
|
-
/**
|
|
2231
|
-
* @public
|
|
2232
|
-
*/
|
|
2233
|
-
class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
2234
|
-
// endregion
|
|
2235
|
-
// region Constructors: Public
|
|
2236
|
-
constructor(rootSchemaName) {
|
|
2237
|
-
super(ɵQueryOperationType.Update, rootSchemaName);
|
|
2238
|
-
// region Fields: Private
|
|
2239
|
-
this._columnValues = new Map();
|
|
2240
|
-
// endregion
|
|
2241
|
-
// region Fields: Public
|
|
2242
|
-
/**
|
|
2243
|
-
* Flag that indicates whether to force save data.
|
|
2244
|
-
*/
|
|
2245
|
-
this.isForceUpdate = false;
|
|
2246
|
-
}
|
|
2247
|
-
// endregion
|
|
2248
|
-
// region Properties: Public
|
|
2249
|
-
get columnValues() {
|
|
2250
|
-
return {
|
|
2251
|
-
items: classToPlain(this._columnValues),
|
|
2252
|
-
};
|
|
2253
|
-
}
|
|
2254
|
-
// endregion
|
|
2255
|
-
// region Methods: Public
|
|
2256
|
-
addColumn(columnName, columnValue, dataValueType) {
|
|
2257
|
-
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2258
|
-
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
2259
|
-
}
|
|
2260
|
-
}
|
|
2261
|
-
__decorate([
|
|
2262
|
-
Expose(),
|
|
2263
|
-
__metadata("design:type", Object),
|
|
2264
|
-
__metadata("design:paramtypes", [])
|
|
2265
|
-
], ɵUpdateQuery.prototype, "columnValues", null);
|
|
2266
|
-
|
|
2267
|
-
/**
|
|
2268
|
-
* @public
|
|
2269
|
-
*/
|
|
2270
|
-
class ɵSelectLocalizationQuery extends ɵEntitySchemaQuery {
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
|
-
/**
|
|
2274
|
-
* @public
|
|
2275
|
-
* @class ɵBaseRequest
|
|
2276
|
-
* @describe Base definition of request.
|
|
2277
|
-
* @template TEvent
|
|
2278
|
-
*/
|
|
2279
|
-
class ɵBaseRequest {
|
|
2280
|
-
}
|
|
2281
|
-
|
|
2282
|
-
/**
|
|
2283
|
-
* @public
|
|
2284
|
-
*/
|
|
2285
|
-
var ɵModelParameterType;
|
|
2286
|
-
(function (ɵModelParameterType) {
|
|
2287
|
-
ɵModelParameterType["PrimaryColumnValue"] = "primaryColumnValue";
|
|
2288
|
-
ɵModelParameterType["ColumnValue"] = "columnValue";
|
|
2289
|
-
ɵModelParameterType["Filter"] = "filter";
|
|
2290
|
-
ɵModelParameterType["PrimaryDisplayValueFilter"] = "primaryDisplayValueFilter";
|
|
2291
|
-
ɵModelParameterType["Empty"] = "empty";
|
|
2292
|
-
ɵModelParameterType["Never"] = "never";
|
|
2293
|
-
})(ɵModelParameterType || (ɵModelParameterType = {}));
|
|
2294
|
-
|
|
2295
|
-
/**
|
|
2296
|
-
* @public
|
|
2297
|
-
* @description Actions of mask request.
|
|
2298
|
-
*/
|
|
2299
|
-
var ɵSchemaViewMaskRequestAction;
|
|
2300
|
-
(function (ɵSchemaViewMaskRequestAction) {
|
|
2301
|
-
ɵSchemaViewMaskRequestAction["AddTask"] = "addTask";
|
|
2302
|
-
ɵSchemaViewMaskRequestAction["RemoveTask"] = "removeTask";
|
|
2303
|
-
})(ɵSchemaViewMaskRequestAction || (ɵSchemaViewMaskRequestAction = {}));
|
|
2304
|
-
/**
|
|
2305
|
-
* @public
|
|
2306
|
-
* @description Request to show mask.
|
|
2307
|
-
*/
|
|
2308
|
-
class ɵSchemaViewMaskRequest extends ɵBaseRequest {
|
|
2309
|
-
constructor(action, taskName, $context) {
|
|
2310
|
-
super();
|
|
2311
|
-
this.action = action;
|
|
2312
|
-
this.taskName = taskName;
|
|
2313
|
-
this.$context = $context;
|
|
2314
|
-
this.type = 'crt.SchemaViewMaskRequest';
|
|
2315
|
-
}
|
|
2316
|
-
}
|
|
2317
|
-
|
|
2318
|
-
/**
|
|
2319
|
-
* Generated bundle index. Do not edit.
|
|
2320
|
-
*/
|
|
2321
|
-
|
|
2322
|
-
export { LookupMode, eAdminUnitRoleSources, ɵAggregationEvalType, ɵAggregationFunction, ɵAggregationFunctionColumn, ɵAggregationFunctionExpression, ɵAggregationSubQueryColumn, ɵAggregationSubQueryExpression, ɵAggregationType, ɵArgumentEmptyException, ɵArgumentFunctionExpression, ɵArgumentOutOfRangeException, ɵArithmeticExpression, ɵArithmeticOperation, ɵArithmeticQueryColumn, ɵBaseExpression, ɵBaseExpressionParser, ɵBaseFilter, ɵBaseFilterParser, ɵBaseFilterableQuery, ɵBaseQuery, ɵBaseQueryColumn, ɵBaseRequest, ɵBetweenFilter, ɵColumnExpression, ɵCompareFilter, ɵComparisonType, ɵDEFAULT_COLUMN_PLAIN_OBJ, ɵDEFAULT_FILTER_PLAIN_OBJ, ɵDataSchemaAttributeType, ɵDataSchemaAttributeUsageType, ɵDataSchemaType, ɵDataSourceScope, ɵDataValueType, ɵDatePartFunctionColumn, ɵDatePartFunctionExpression, ɵDatePartType, ɵDefaultValueSource, ɵDeleteQuery, ɵEMPTY_GUID, ɵEXPRESSION_TYPE_MOCK, ɵEntityQueryColumn, ɵEntitySchemaQuery, ɵExistsFilter, ɵExpressionMock, ɵExpressionParser, ɵExpressionResolver, ɵExpressionType, ɵFilterGroup, ɵFilterMock, ɵFilterParser, ɵFilterResolver, ɵFilterType, ɵFunctionExpression, ɵFunctionType, ɵInFilter, ɵInsertQuery, ɵIsNullFilter, ɵItemNotFoundException, ɵLengthFunctionColumn, ɵLengthFunctionExpression, ɵLogicalOperatorType, ɵMacrosFunctionColumn, ɵMacrosFunctionExpression, ɵModelInPageAction, ɵModelParameterType, ɵNextHandlerAlreadySpecifiedException, ɵOrderDirection, ɵParameterExpression, ɵParameterQueryColumn, ɵPlatformAPIs, ɵQueryMacrosType, ɵQueryOperationType, ɵSchemaViewMaskRequest, ɵSchemaViewMaskRequestAction, ɵSelectLocalizationQuery, ɵSingleFilter, ɵSubQueryColumn, ɵSubQueryExpression, ɵUpdateQuery, ɵValidationUtilities, ɵWindowFunctionColumn, ɵWindowFunctionExpression, ɵencodeDate, ɵgenerateGuid, ɵgetColumnPlainObj, ɵgetFilterPlainObj, ɵisEmptyGuid, ɵisGuid, ɵparserMock, ɵtoLocalISOString };
|
|
2323
|
-
//# sourceMappingURL=creatio-base.mjs.map
|