@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,6 +1,30 @@
|
|
|
1
1
|
import { classToPlain, Exclude, Expose } from 'class-transformer';
|
|
2
2
|
import { __decorate, __metadata } from 'tslib';
|
|
3
|
+
import { isFunction } from 'lodash';
|
|
3
4
|
|
|
5
|
+
function isHistoricalDate(date) {
|
|
6
|
+
return date.getFullYear() < 1970;
|
|
7
|
+
}
|
|
8
|
+
function getISOStringWithOffset(date) {
|
|
9
|
+
const timeZoneOffset = date.getTimezoneOffset() * 60000;
|
|
10
|
+
return new Date(date.getTime() - timeZoneOffset).toISOString().slice(0, -1);
|
|
11
|
+
}
|
|
12
|
+
function getISOStringForPre1970Date(date) {
|
|
13
|
+
const year = date.getFullYear();
|
|
14
|
+
const month = padToTwoDigits(date.getMonth() + 1);
|
|
15
|
+
const day = padToTwoDigits(date.getDate());
|
|
16
|
+
const hours = padToTwoDigits(date.getHours());
|
|
17
|
+
const minutes = padToTwoDigits(date.getMinutes());
|
|
18
|
+
const seconds = padToTwoDigits(date.getSeconds());
|
|
19
|
+
const milliseconds = padToThreeDigits(date.getMilliseconds());
|
|
20
|
+
return `${year}-${month}-${day}T${hours}:${minutes}:${seconds}.${milliseconds}`;
|
|
21
|
+
}
|
|
22
|
+
function padToTwoDigits(value) {
|
|
23
|
+
return String(value).padStart(2, '0');
|
|
24
|
+
}
|
|
25
|
+
function padToThreeDigits(value) {
|
|
26
|
+
return String(value).padStart(3, '0');
|
|
27
|
+
}
|
|
4
28
|
/**
|
|
5
29
|
* @public
|
|
6
30
|
* Returns a string represent of date in ISO 8601 without time zone specification(doesn't convert it
|
|
@@ -18,8 +42,7 @@ function ɵtoLocalISOString(date) {
|
|
|
18
42
|
if (!(date instanceof Date)) {
|
|
19
43
|
throw new TypeError();
|
|
20
44
|
}
|
|
21
|
-
|
|
22
|
-
return new Date(date.getTime() - timeZoneOffset).toISOString().slice(0, -1);
|
|
45
|
+
return isHistoricalDate(date) ? getISOStringForPre1970Date(date) : getISOStringWithOffset(date);
|
|
23
46
|
}
|
|
24
47
|
/**
|
|
25
48
|
* @public
|
|
@@ -85,105 +108,278 @@ var LookupMode;
|
|
|
85
108
|
/**
|
|
86
109
|
* Available platform APIs
|
|
87
110
|
*/
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
88
112
|
var ɵPlatformAPIs;
|
|
89
113
|
(function (ɵPlatformAPIs) {
|
|
90
114
|
/**
|
|
91
115
|
* Selection metadata API.
|
|
92
116
|
*/
|
|
93
117
|
ɵPlatformAPIs["Selection"] = "selection";
|
|
118
|
+
/**
|
|
119
|
+
* Filtration metadata API.
|
|
120
|
+
*/
|
|
121
|
+
ɵPlatformAPIs["Filtration"] = "filtration";
|
|
94
122
|
})(ɵPlatformAPIs || (ɵPlatformAPIs = {}));
|
|
95
123
|
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
* Types of values.
|
|
127
|
+
*/
|
|
96
128
|
var ɵDataValueType;
|
|
97
129
|
(function (ɵDataValueType) {
|
|
130
|
+
/**
|
|
131
|
+
* @description Global unique identifier.
|
|
132
|
+
*/
|
|
98
133
|
ɵDataValueType[ɵDataValueType["Guid"] = 0] = "Guid";
|
|
134
|
+
/**
|
|
135
|
+
* @description String.
|
|
136
|
+
*/
|
|
99
137
|
ɵDataValueType[ɵDataValueType["Text"] = 1] = "Text";
|
|
138
|
+
/**
|
|
139
|
+
* @description Integer.
|
|
140
|
+
*/
|
|
100
141
|
ɵDataValueType[ɵDataValueType["Integer"] = 4] = "Integer";
|
|
142
|
+
/**
|
|
143
|
+
* @description Real number.
|
|
144
|
+
*/
|
|
101
145
|
ɵDataValueType[ɵDataValueType["Float"] = 5] = "Float";
|
|
146
|
+
/**
|
|
147
|
+
* @description Currency.
|
|
148
|
+
*/
|
|
102
149
|
ɵDataValueType[ɵDataValueType["Money"] = 6] = "Money";
|
|
150
|
+
/**
|
|
151
|
+
* @description Date and time.
|
|
152
|
+
*/
|
|
103
153
|
ɵDataValueType[ɵDataValueType["DateTime"] = 7] = "DateTime";
|
|
154
|
+
/**
|
|
155
|
+
* @description Date.
|
|
156
|
+
*/
|
|
104
157
|
ɵDataValueType[ɵDataValueType["Date"] = 8] = "Date";
|
|
158
|
+
/**
|
|
159
|
+
* @description Time.
|
|
160
|
+
*/
|
|
105
161
|
ɵDataValueType[ɵDataValueType["Time"] = 9] = "Time";
|
|
162
|
+
/**
|
|
163
|
+
* @description Lookup.
|
|
164
|
+
*/
|
|
106
165
|
ɵDataValueType[ɵDataValueType["Lookup"] = 10] = "Lookup";
|
|
166
|
+
/**
|
|
167
|
+
* @description Enumeration.
|
|
168
|
+
*/
|
|
107
169
|
ɵDataValueType[ɵDataValueType["Enum"] = 11] = "Enum";
|
|
170
|
+
/**
|
|
171
|
+
* @description Boolean.
|
|
172
|
+
*/
|
|
108
173
|
ɵDataValueType[ɵDataValueType["Boolean"] = 12] = "Boolean";
|
|
174
|
+
/**
|
|
175
|
+
* @description Binary data object.
|
|
176
|
+
*/
|
|
109
177
|
ɵDataValueType[ɵDataValueType["Blob"] = 13] = "Blob";
|
|
178
|
+
/**
|
|
179
|
+
* @description The object of image binary data.
|
|
180
|
+
*/
|
|
110
181
|
ɵDataValueType[ɵDataValueType["Image"] = 14] = "Image";
|
|
182
|
+
/**
|
|
183
|
+
* @description Custom object.
|
|
184
|
+
*/
|
|
111
185
|
ɵDataValueType[ɵDataValueType["CUSTOM_OBJECT"] = 15] = "CUSTOM_OBJECT";
|
|
186
|
+
/**
|
|
187
|
+
* @description Image from a lookup.
|
|
188
|
+
*/
|
|
112
189
|
ɵDataValueType[ɵDataValueType["IMAGELOOKUP"] = 16] = "IMAGELOOKUP";
|
|
190
|
+
/**
|
|
191
|
+
* @description Collection of items.
|
|
192
|
+
*/
|
|
113
193
|
ɵDataValueType[ɵDataValueType["COLLECTION"] = 17] = "COLLECTION";
|
|
194
|
+
/**
|
|
195
|
+
* @description Color.
|
|
196
|
+
*/
|
|
114
197
|
ɵDataValueType[ɵDataValueType["Color"] = 18] = "Color";
|
|
198
|
+
/**
|
|
199
|
+
* @description Localized string.
|
|
200
|
+
*/
|
|
115
201
|
ɵDataValueType[ɵDataValueType["LOCALIZABLE_STRING"] = 19] = "LOCALIZABLE_STRING";
|
|
202
|
+
/**
|
|
203
|
+
* @description Object (Entity).
|
|
204
|
+
*/
|
|
116
205
|
ɵDataValueType[ɵDataValueType["ENTITY"] = 20] = "ENTITY";
|
|
206
|
+
/**
|
|
207
|
+
* @description Collection of objects (EntityCollection).
|
|
208
|
+
*/
|
|
117
209
|
ɵDataValueType[ɵDataValueType["ENTITY_COLLECTION"] = 21] = "ENTITY_COLLECTION";
|
|
210
|
+
/**
|
|
211
|
+
* @description List of object column values (EntityColumnMappingCollection).
|
|
212
|
+
*/
|
|
118
213
|
ɵDataValueType[ɵDataValueType["ENTITY_COLUMN_MAPPING_COLLECTION"] = 22] = "ENTITY_COLUMN_MAPPING_COLLECTION";
|
|
214
|
+
/**
|
|
215
|
+
* @description Hash string.
|
|
216
|
+
*/
|
|
119
217
|
ɵDataValueType[ɵDataValueType["HASH_TEXT"] = 23] = "HASH_TEXT";
|
|
218
|
+
/**
|
|
219
|
+
* @description Encrypted string.
|
|
220
|
+
*/
|
|
120
221
|
ɵDataValueType[ɵDataValueType["SECURE_TEXT"] = 24] = "SECURE_TEXT";
|
|
222
|
+
/**
|
|
223
|
+
* @description File.
|
|
224
|
+
*/
|
|
121
225
|
ɵDataValueType[ɵDataValueType["FILE"] = 25] = "FILE";
|
|
226
|
+
/**
|
|
227
|
+
* @description Mapping.
|
|
228
|
+
*/
|
|
122
229
|
ɵDataValueType[ɵDataValueType["MAPPING"] = 26] = "MAPPING";
|
|
230
|
+
/**
|
|
231
|
+
* @description Short length text.
|
|
232
|
+
*/
|
|
123
233
|
ɵDataValueType[ɵDataValueType["SHORT_TEXT"] = 27] = "SHORT_TEXT";
|
|
234
|
+
/**
|
|
235
|
+
* @description Medium length text.
|
|
236
|
+
*/
|
|
124
237
|
ɵDataValueType[ɵDataValueType["MEDIUM_TEXT"] = 28] = "MEDIUM_TEXT";
|
|
238
|
+
/**
|
|
239
|
+
* @description Unlimited length text.
|
|
240
|
+
*/
|
|
125
241
|
ɵDataValueType[ɵDataValueType["MAXSIZE_TEXT"] = 29] = "MAXSIZE_TEXT";
|
|
242
|
+
/**
|
|
243
|
+
* @description Long length text.
|
|
244
|
+
*/
|
|
126
245
|
ɵDataValueType[ɵDataValueType["LONG_TEXT"] = 30] = "LONG_TEXT";
|
|
127
246
|
ɵDataValueType[ɵDataValueType["FLOAT1"] = 31] = "FLOAT1";
|
|
128
247
|
ɵDataValueType[ɵDataValueType["FLOAT2"] = 32] = "FLOAT2";
|
|
129
248
|
ɵDataValueType[ɵDataValueType["FLOAT3"] = 33] = "FLOAT3";
|
|
130
249
|
ɵDataValueType[ɵDataValueType["FLOAT4"] = 34] = "FLOAT4";
|
|
250
|
+
/**
|
|
251
|
+
* @description Localizable parameter values list.
|
|
252
|
+
*/
|
|
131
253
|
ɵDataValueType[ɵDataValueType["LOCALIZABLE_PARAMETER_VALUES_LIST"] = 35] = "LOCALIZABLE_PARAMETER_VALUES_LIST";
|
|
254
|
+
/**
|
|
255
|
+
* @description Process not localizable text.
|
|
256
|
+
*/
|
|
132
257
|
ɵDataValueType[ɵDataValueType["METADATA_TEXT"] = 36] = "METADATA_TEXT";
|
|
258
|
+
/**
|
|
259
|
+
* @description Stage indicator.
|
|
260
|
+
*/
|
|
133
261
|
ɵDataValueType[ɵDataValueType["STAGE_INDICATOR"] = 37] = "STAGE_INDICATOR";
|
|
262
|
+
/**
|
|
263
|
+
* @description Serializable list of values.
|
|
264
|
+
*/
|
|
134
265
|
ɵDataValueType[ɵDataValueType["OBJECT_LIST"] = 38] = "OBJECT_LIST";
|
|
266
|
+
/**
|
|
267
|
+
* @description Serializable list of composite values.
|
|
268
|
+
*/
|
|
135
269
|
ɵDataValueType[ɵDataValueType["COMPOSITE_OBJECT_LIST"] = 39] = "COMPOSITE_OBJECT_LIST";
|
|
136
270
|
ɵDataValueType[ɵDataValueType["FLOAT8"] = 40] = "FLOAT8";
|
|
271
|
+
/**
|
|
272
|
+
* @description File.
|
|
273
|
+
*/
|
|
137
274
|
ɵDataValueType[ɵDataValueType["FILE_LOCATOR"] = 41] = "FILE_LOCATOR";
|
|
275
|
+
/**
|
|
276
|
+
* @description Phone.
|
|
277
|
+
*/
|
|
138
278
|
ɵDataValueType[ɵDataValueType["PHONE_TEXT"] = 42] = "PHONE_TEXT";
|
|
279
|
+
/**
|
|
280
|
+
* @description Text with formating tags.
|
|
281
|
+
*/
|
|
139
282
|
ɵDataValueType[ɵDataValueType["RICH_TEXT"] = 43] = "RICH_TEXT";
|
|
283
|
+
/**
|
|
284
|
+
* @description Web link.
|
|
285
|
+
*/
|
|
140
286
|
ɵDataValueType[ɵDataValueType["WEB_TEXT"] = 44] = "WEB_TEXT";
|
|
287
|
+
/**
|
|
288
|
+
* @description Email.
|
|
289
|
+
*/
|
|
141
290
|
ɵDataValueType[ɵDataValueType["EMAIL_TEXT"] = 45] = "EMAIL_TEXT";
|
|
291
|
+
ɵDataValueType[ɵDataValueType["COMPOSITE_OBJECT"] = 46] = "COMPOSITE_OBJECT";
|
|
142
292
|
})(ɵDataValueType || (ɵDataValueType = {}));
|
|
143
293
|
|
|
294
|
+
/**
|
|
295
|
+
* @public
|
|
296
|
+
* The type of the aggregation (can be set to None).
|
|
297
|
+
*/
|
|
144
298
|
var ɵAggregationType;
|
|
145
299
|
(function (ɵAggregationType) {
|
|
146
|
-
/**
|
|
300
|
+
/**
|
|
301
|
+
* @description Aggregation function type not defined.
|
|
302
|
+
*/
|
|
147
303
|
ɵAggregationType[ɵAggregationType["None"] = 0] = "None";
|
|
148
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* @description Aggregation function type not defined.
|
|
306
|
+
*/
|
|
149
307
|
ɵAggregationType[ɵAggregationType["Count"] = 1] = "Count";
|
|
150
|
-
/**
|
|
308
|
+
/**
|
|
309
|
+
* @description Sum of values of all elements.
|
|
310
|
+
*/
|
|
151
311
|
ɵAggregationType[ɵAggregationType["Sum"] = 2] = "Sum";
|
|
152
|
-
/**
|
|
312
|
+
/**
|
|
313
|
+
* @description Average value for all elements.
|
|
314
|
+
*/
|
|
153
315
|
ɵAggregationType[ɵAggregationType["Avg"] = 3] = "Avg";
|
|
154
|
-
/**
|
|
316
|
+
/**
|
|
317
|
+
* @description The minimum value among all elements.
|
|
318
|
+
*/
|
|
155
319
|
ɵAggregationType[ɵAggregationType["Min"] = 4] = "Min";
|
|
156
|
-
/**
|
|
320
|
+
/**
|
|
321
|
+
* @description The maximum value among all elements.
|
|
322
|
+
*/
|
|
157
323
|
ɵAggregationType[ɵAggregationType["Max"] = 5] = "Max";
|
|
158
|
-
/**
|
|
324
|
+
/**
|
|
325
|
+
* @description Top one record from collection.
|
|
326
|
+
*/
|
|
159
327
|
ɵAggregationType[ɵAggregationType["TopOne"] = 6] = "TopOne";
|
|
160
328
|
})(ɵAggregationType || (ɵAggregationType = {}));
|
|
161
329
|
|
|
330
|
+
/**
|
|
331
|
+
* @public
|
|
332
|
+
* The type of the aggregation function (can be set to None).
|
|
333
|
+
*/
|
|
162
334
|
var ɵAggregationFunction;
|
|
163
335
|
(function (ɵAggregationFunction) {
|
|
164
|
-
/**
|
|
336
|
+
/**
|
|
337
|
+
* @description Aggregation function type not defined.
|
|
338
|
+
*/
|
|
165
339
|
ɵAggregationFunction["None"] = "";
|
|
166
|
-
/**
|
|
340
|
+
/**
|
|
341
|
+
* @description Aggregation function type not defined.
|
|
342
|
+
*/
|
|
167
343
|
ɵAggregationFunction["Count"] = "Count";
|
|
168
|
-
/**
|
|
344
|
+
/**
|
|
345
|
+
* @description Sum of values of all elements.
|
|
346
|
+
*/
|
|
169
347
|
ɵAggregationFunction["Sum"] = "Sum";
|
|
170
|
-
/**
|
|
348
|
+
/**
|
|
349
|
+
* @description Average value for all elements.
|
|
350
|
+
*/
|
|
171
351
|
ɵAggregationFunction["Avg"] = "Avg";
|
|
172
|
-
/**
|
|
352
|
+
/**
|
|
353
|
+
* @description The minimum value among all elements.
|
|
354
|
+
*/
|
|
173
355
|
ɵAggregationFunction["Min"] = "Min";
|
|
174
|
-
/**
|
|
356
|
+
/**
|
|
357
|
+
* @description The maximum value among all elements.
|
|
358
|
+
*/
|
|
175
359
|
ɵAggregationFunction["Max"] = "Max";
|
|
176
|
-
/**
|
|
360
|
+
/**
|
|
361
|
+
* @description Top one record from collection.
|
|
362
|
+
*/
|
|
177
363
|
ɵAggregationFunction["TopOne"] = "TopOne";
|
|
178
364
|
})(ɵAggregationFunction || (ɵAggregationFunction = {}));
|
|
179
365
|
|
|
180
366
|
/**
|
|
181
|
-
*
|
|
367
|
+
* @public
|
|
368
|
+
* @decription Type of DataSchema. In combination with the name is used for unique identification of {@link ɵDataSchema}.
|
|
182
369
|
*/
|
|
183
370
|
var ɵDataSchemaType;
|
|
184
371
|
(function (ɵDataSchemaType) {
|
|
372
|
+
/**
|
|
373
|
+
* @description Entity.
|
|
374
|
+
*/
|
|
185
375
|
ɵDataSchemaType["Entity"] = "Entity";
|
|
376
|
+
/**
|
|
377
|
+
* @description Client unit.
|
|
378
|
+
*/
|
|
186
379
|
ɵDataSchemaType["ClientUnit"] = "ClientUnit";
|
|
380
|
+
/**
|
|
381
|
+
* @description Intent.
|
|
382
|
+
*/
|
|
187
383
|
ɵDataSchemaType["Intent"] = "Intent";
|
|
188
384
|
})(ɵDataSchemaType || (ɵDataSchemaType = {}));
|
|
189
385
|
|
|
@@ -207,235 +403,559 @@ var ɵModelInPageAction;
|
|
|
207
403
|
ɵModelInPageAction["Copy"] = "copy";
|
|
208
404
|
})(ɵModelInPageAction || (ɵModelInPageAction = {}));
|
|
209
405
|
|
|
406
|
+
/**
|
|
407
|
+
* @public
|
|
408
|
+
* @description Type of message channel. Used to specify where the message can be received.
|
|
409
|
+
*/
|
|
410
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
411
|
+
var ɵMessageChannelType;
|
|
412
|
+
(function (ɵMessageChannelType) {
|
|
413
|
+
/**
|
|
414
|
+
* @public
|
|
415
|
+
* @description Message will be sent to the same user who sent the message (client side).
|
|
416
|
+
*/
|
|
417
|
+
ɵMessageChannelType["PTP"] = "PTPMsg";
|
|
418
|
+
/**
|
|
419
|
+
* @public
|
|
420
|
+
* @description Message will be sent to all users (client side).
|
|
421
|
+
*/
|
|
422
|
+
ɵMessageChannelType["BROADCAST"] = "BroadcastMsg";
|
|
423
|
+
/**
|
|
424
|
+
* @public
|
|
425
|
+
* @description Message will be sent to the server.
|
|
426
|
+
*/
|
|
427
|
+
ɵMessageChannelType["SERVER"] = "ServerMsg";
|
|
428
|
+
})(ɵMessageChannelType || (ɵMessageChannelType = {}));
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* @public
|
|
432
|
+
* @description SysAdminUnitInRole source type.
|
|
433
|
+
*/
|
|
210
434
|
var eAdminUnitRoleSources;
|
|
211
435
|
(function (eAdminUnitRoleSources) {
|
|
212
436
|
/**
|
|
213
|
-
* Empty value.
|
|
437
|
+
* @description Empty value.
|
|
214
438
|
*/
|
|
215
439
|
eAdminUnitRoleSources[eAdminUnitRoleSources["None"] = 0] = "None";
|
|
216
440
|
/**
|
|
217
|
-
* Self.
|
|
441
|
+
* @description Self.
|
|
218
442
|
*/
|
|
219
443
|
eAdminUnitRoleSources[eAdminUnitRoleSources["Self"] = 1] = "Self";
|
|
220
444
|
/**
|
|
221
|
-
* Explicit entry into role.
|
|
445
|
+
* @description Explicit entry into role.
|
|
222
446
|
*/
|
|
223
447
|
eAdminUnitRoleSources[eAdminUnitRoleSources["ExplicitEntry"] = 2] = "ExplicitEntry";
|
|
224
448
|
/**
|
|
225
|
-
* Delegated role.
|
|
449
|
+
* @description Delegated role.
|
|
226
450
|
*/
|
|
227
451
|
eAdminUnitRoleSources[eAdminUnitRoleSources["Delegated"] = 4] = "Delegated";
|
|
228
452
|
/**
|
|
229
|
-
* Gets functional role from organizational role.
|
|
453
|
+
* @description Gets functional role from organizational role.
|
|
230
454
|
*/
|
|
231
455
|
eAdminUnitRoleSources[eAdminUnitRoleSources["FuncRoleFromOrgRole"] = 8] = "FuncRoleFromOrgRole";
|
|
232
456
|
/**
|
|
233
|
-
* Gets role up hierarchy from role.
|
|
457
|
+
* @description Gets role up hierarchy from role.
|
|
234
458
|
*/
|
|
235
459
|
eAdminUnitRoleSources[eAdminUnitRoleSources["UpHierarchy"] = 16] = "UpHierarchy";
|
|
236
460
|
/**
|
|
237
|
-
* Gets role as a manager.
|
|
461
|
+
* @description Gets role as a manager.
|
|
238
462
|
*/
|
|
239
463
|
eAdminUnitRoleSources[eAdminUnitRoleSources["AsManager"] = 32] = "AsManager";
|
|
240
464
|
/**
|
|
241
|
-
* Gets all roles.
|
|
465
|
+
* @description Gets all roles.
|
|
242
466
|
*/
|
|
243
467
|
eAdminUnitRoleSources[eAdminUnitRoleSources["All"] = 63] = "All";
|
|
244
468
|
})(eAdminUnitRoleSources || (eAdminUnitRoleSources = {}));
|
|
245
469
|
|
|
470
|
+
/**
|
|
471
|
+
* @public
|
|
472
|
+
* @description Scope of the aggregation function.
|
|
473
|
+
*/
|
|
246
474
|
var ɵAggregationEvalType;
|
|
247
475
|
(function (ɵAggregationEvalType) {
|
|
248
|
-
/**
|
|
476
|
+
/**
|
|
477
|
+
* @description The scope of the aggregating function is not defined.
|
|
478
|
+
*/
|
|
249
479
|
ɵAggregationEvalType[ɵAggregationEvalType["None"] = 0] = "None";
|
|
250
|
-
/**
|
|
480
|
+
/**
|
|
481
|
+
* @description Applies to all elements.
|
|
482
|
+
*/
|
|
251
483
|
ɵAggregationEvalType[ɵAggregationEvalType["All"] = 1] = "All";
|
|
252
|
-
/**
|
|
484
|
+
/**
|
|
485
|
+
* @description Applies to unique values.
|
|
486
|
+
*/
|
|
253
487
|
ɵAggregationEvalType[ɵAggregationEvalType["Distinct"] = 2] = "Distinct";
|
|
254
488
|
})(ɵAggregationEvalType || (ɵAggregationEvalType = {}));
|
|
255
489
|
|
|
490
|
+
/**
|
|
491
|
+
* @public
|
|
492
|
+
* @description Arithmetic operation.
|
|
493
|
+
*/
|
|
256
494
|
var ɵArithmeticOperation;
|
|
257
495
|
(function (ɵArithmeticOperation) {
|
|
258
|
-
/**
|
|
496
|
+
/**
|
|
497
|
+
* @description Addition.
|
|
498
|
+
*/
|
|
259
499
|
ɵArithmeticOperation[ɵArithmeticOperation["Addition"] = 0] = "Addition";
|
|
260
|
-
/**
|
|
500
|
+
/**
|
|
501
|
+
* @description Subtraction.
|
|
502
|
+
*/
|
|
261
503
|
ɵArithmeticOperation[ɵArithmeticOperation["Subtraction"] = 1] = "Subtraction";
|
|
262
|
-
/**
|
|
504
|
+
/**
|
|
505
|
+
* @description Multiplication.
|
|
506
|
+
*/
|
|
263
507
|
ɵArithmeticOperation[ɵArithmeticOperation["Multiplication"] = 2] = "Multiplication";
|
|
264
|
-
/**
|
|
508
|
+
/**
|
|
509
|
+
* @description Division.
|
|
510
|
+
*/
|
|
265
511
|
ɵArithmeticOperation[ɵArithmeticOperation["Division"] = 3] = "Division";
|
|
266
512
|
})(ɵArithmeticOperation || (ɵArithmeticOperation = {}));
|
|
267
513
|
|
|
514
|
+
/**
|
|
515
|
+
* @public
|
|
516
|
+
* @description The type of comparison operation in the filter.
|
|
517
|
+
*/
|
|
268
518
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
269
519
|
var ɵComparisonType;
|
|
270
520
|
(function (ɵComparisonType) {
|
|
521
|
+
/**
|
|
522
|
+
* @public
|
|
523
|
+
* @description Value is between two specified values.
|
|
524
|
+
*/
|
|
271
525
|
ɵComparisonType[ɵComparisonType["Between"] = 0] = "Between";
|
|
526
|
+
/**
|
|
527
|
+
* @public
|
|
528
|
+
* @description Value contains a specified substring.
|
|
529
|
+
*/
|
|
272
530
|
ɵComparisonType[ɵComparisonType["Contain"] = 11] = "Contain";
|
|
531
|
+
/**
|
|
532
|
+
* @public
|
|
533
|
+
* @description Value ends with a specified substring.
|
|
534
|
+
*/
|
|
273
535
|
ɵComparisonType[ɵComparisonType["End_with"] = 13] = "End_with";
|
|
536
|
+
/**
|
|
537
|
+
* @public
|
|
538
|
+
* @description Value is equal to a specified value.
|
|
539
|
+
*/
|
|
274
540
|
ɵComparisonType[ɵComparisonType["Equal"] = 3] = "Equal";
|
|
541
|
+
/**
|
|
542
|
+
* @public
|
|
543
|
+
* @description Value exists (is not null or undefined).
|
|
544
|
+
*/
|
|
275
545
|
ɵComparisonType[ɵComparisonType["Exists"] = 15] = "Exists";
|
|
546
|
+
/**
|
|
547
|
+
* @public
|
|
548
|
+
* @description Value is greater than a specified value.
|
|
549
|
+
*/
|
|
276
550
|
ɵComparisonType[ɵComparisonType["Greater"] = 7] = "Greater";
|
|
551
|
+
/**
|
|
552
|
+
* @public
|
|
553
|
+
* @description Value is greater than or equal to a specified value.
|
|
554
|
+
*/
|
|
277
555
|
ɵComparisonType[ɵComparisonType["Greater_or_equal"] = 8] = "Greater_or_equal";
|
|
556
|
+
/**
|
|
557
|
+
* @public
|
|
558
|
+
* @description Value is not null.
|
|
559
|
+
*/
|
|
278
560
|
ɵComparisonType[ɵComparisonType["Is_not_null"] = 2] = "Is_not_null";
|
|
561
|
+
/**
|
|
562
|
+
* @public
|
|
563
|
+
* @description Value is null.
|
|
564
|
+
*/
|
|
279
565
|
ɵComparisonType[ɵComparisonType["Is_null"] = 1] = "Is_null";
|
|
566
|
+
/**
|
|
567
|
+
* @public
|
|
568
|
+
* @description Value is less than a specified value.
|
|
569
|
+
*/
|
|
280
570
|
ɵComparisonType[ɵComparisonType["Less"] = 5] = "Less";
|
|
571
|
+
/**
|
|
572
|
+
* @public
|
|
573
|
+
* @description Value is less than or equal to a specified value.
|
|
574
|
+
*/
|
|
281
575
|
ɵComparisonType[ɵComparisonType["Less_or_equal"] = 6] = "Less_or_equal";
|
|
576
|
+
/**
|
|
577
|
+
* @public
|
|
578
|
+
* @description Value does not contain a specified substring.
|
|
579
|
+
*/
|
|
282
580
|
ɵComparisonType[ɵComparisonType["Not_contain"] = 12] = "Not_contain";
|
|
581
|
+
/**
|
|
582
|
+
* @public
|
|
583
|
+
* @description Value does not end with a specified substring.
|
|
584
|
+
*/
|
|
283
585
|
ɵComparisonType[ɵComparisonType["Not_end_with"] = 14] = "Not_end_with";
|
|
586
|
+
/**
|
|
587
|
+
* @public
|
|
588
|
+
* @description Value is not equal to a specified value.
|
|
589
|
+
*/
|
|
284
590
|
ɵComparisonType[ɵComparisonType["Not_equal"] = 4] = "Not_equal";
|
|
591
|
+
/**
|
|
592
|
+
* @public
|
|
593
|
+
* @description Value does not exist (is null or undefined).
|
|
594
|
+
*/
|
|
285
595
|
ɵComparisonType[ɵComparisonType["Not_exists"] = 16] = "Not_exists";
|
|
596
|
+
/**
|
|
597
|
+
* @public
|
|
598
|
+
* @description Value does not start with a specified substring.
|
|
599
|
+
*/
|
|
286
600
|
ɵComparisonType[ɵComparisonType["Not_start_with"] = 10] = "Not_start_with";
|
|
601
|
+
/**
|
|
602
|
+
* @public
|
|
603
|
+
* @description Value starts with a specified substring.
|
|
604
|
+
*/
|
|
287
605
|
ɵComparisonType[ɵComparisonType["Start_with"] = 9] = "Start_with";
|
|
288
606
|
})(ɵComparisonType || (ɵComparisonType = {}));
|
|
289
607
|
|
|
608
|
+
/**
|
|
609
|
+
* @public
|
|
610
|
+
* @description Part of the date.
|
|
611
|
+
*/
|
|
290
612
|
var ɵDatePartType;
|
|
291
613
|
(function (ɵDatePartType) {
|
|
292
|
-
/**
|
|
614
|
+
/**
|
|
615
|
+
* @description Empty value.
|
|
616
|
+
*/
|
|
293
617
|
ɵDatePartType[ɵDatePartType["None"] = 0] = "None";
|
|
294
|
-
/**
|
|
618
|
+
/**
|
|
619
|
+
* @description Day.
|
|
620
|
+
*/
|
|
295
621
|
ɵDatePartType[ɵDatePartType["Day"] = 1] = "Day";
|
|
296
|
-
/**
|
|
622
|
+
/**
|
|
623
|
+
* @description Week.
|
|
624
|
+
*/
|
|
297
625
|
ɵDatePartType[ɵDatePartType["Week"] = 2] = "Week";
|
|
298
|
-
/**
|
|
626
|
+
/**
|
|
627
|
+
* @description Month.
|
|
628
|
+
*/
|
|
299
629
|
ɵDatePartType[ɵDatePartType["Month"] = 3] = "Month";
|
|
300
|
-
/**
|
|
630
|
+
/**
|
|
631
|
+
* @description Year.
|
|
632
|
+
*/
|
|
301
633
|
ɵDatePartType[ɵDatePartType["Year"] = 4] = "Year";
|
|
302
|
-
/**
|
|
634
|
+
/**
|
|
635
|
+
* @description Day of the week.
|
|
636
|
+
*/
|
|
303
637
|
ɵDatePartType[ɵDatePartType["WeekDay"] = 5] = "WeekDay";
|
|
304
|
-
/**
|
|
638
|
+
/**
|
|
639
|
+
* @description Hour.
|
|
640
|
+
*/
|
|
305
641
|
ɵDatePartType[ɵDatePartType["Hour"] = 6] = "Hour";
|
|
306
|
-
/**
|
|
642
|
+
/**
|
|
643
|
+
* @description Minute.
|
|
644
|
+
*/
|
|
307
645
|
ɵDatePartType[ɵDatePartType["HourMinute"] = 7] = "HourMinute";
|
|
308
646
|
})(ɵDatePartType || (ɵDatePartType = {}));
|
|
309
647
|
|
|
648
|
+
/**
|
|
649
|
+
* @public
|
|
650
|
+
* @description Type of expression.
|
|
651
|
+
*/
|
|
310
652
|
var ɵExpressionType;
|
|
311
653
|
(function (ɵExpressionType) {
|
|
654
|
+
/**
|
|
655
|
+
* @description Column.
|
|
656
|
+
*/
|
|
312
657
|
ɵExpressionType[ɵExpressionType["SchemaColumn"] = 0] = "SchemaColumn";
|
|
658
|
+
/**
|
|
659
|
+
* @description Function.
|
|
660
|
+
*/
|
|
313
661
|
ɵExpressionType[ɵExpressionType["Function"] = 1] = "Function";
|
|
662
|
+
/**
|
|
663
|
+
* @description Parameter.
|
|
664
|
+
*/
|
|
314
665
|
ɵExpressionType[ɵExpressionType["Parameter"] = 2] = "Parameter";
|
|
666
|
+
/**
|
|
667
|
+
* @description Subselect query.
|
|
668
|
+
*/
|
|
315
669
|
ɵExpressionType[ɵExpressionType["SubQuery"] = 3] = "SubQuery";
|
|
670
|
+
/**
|
|
671
|
+
* @description Arithmetic operation.
|
|
672
|
+
*/
|
|
316
673
|
ɵExpressionType[ɵExpressionType["ArithmeticOperation"] = 4] = "ArithmeticOperation";
|
|
317
674
|
})(ɵExpressionType || (ɵExpressionType = {}));
|
|
318
675
|
|
|
676
|
+
/**
|
|
677
|
+
* @public
|
|
678
|
+
* @description The type of filter.
|
|
679
|
+
*/
|
|
319
680
|
var ɵFilterType;
|
|
320
681
|
(function (ɵFilterType) {
|
|
682
|
+
/**
|
|
683
|
+
* @public
|
|
684
|
+
* @description No filter applied.
|
|
685
|
+
*/
|
|
321
686
|
ɵFilterType[ɵFilterType["None"] = 0] = "None";
|
|
687
|
+
/**
|
|
688
|
+
* @public
|
|
689
|
+
* @description Comparison filter (e.g., equal to, greater than).
|
|
690
|
+
*/
|
|
322
691
|
ɵFilterType[ɵFilterType["Compare"] = 1] = "Compare";
|
|
692
|
+
/**
|
|
693
|
+
* @public
|
|
694
|
+
* @description Checks if a value is null.
|
|
695
|
+
*/
|
|
323
696
|
ɵFilterType[ɵFilterType["IsNull"] = 2] = "IsNull";
|
|
697
|
+
/**
|
|
698
|
+
* @public
|
|
699
|
+
* @description Checks if a value is between two specified values.
|
|
700
|
+
*/
|
|
324
701
|
ɵFilterType[ɵFilterType["Between"] = 3] = "Between";
|
|
702
|
+
/**
|
|
703
|
+
* @public
|
|
704
|
+
* @description Checks if a value is in a specified set of values.
|
|
705
|
+
*/
|
|
325
706
|
ɵFilterType[ɵFilterType["In"] = 4] = "In";
|
|
707
|
+
/**
|
|
708
|
+
* @public
|
|
709
|
+
* @description Checks if a value exists.
|
|
710
|
+
*/
|
|
326
711
|
ɵFilterType[ɵFilterType["Exists"] = 5] = "Exists";
|
|
712
|
+
/**
|
|
713
|
+
* @public
|
|
714
|
+
* @description A group of filters combined with logical operators (AND, OR).
|
|
715
|
+
*/
|
|
327
716
|
ɵFilterType[ɵFilterType["FilterGroup"] = 6] = "FilterGroup";
|
|
328
717
|
})(ɵFilterType || (ɵFilterType = {}));
|
|
329
718
|
|
|
719
|
+
/**
|
|
720
|
+
* @public
|
|
721
|
+
* @description The type of function in the filter.
|
|
722
|
+
*/
|
|
330
723
|
var ɵFunctionType;
|
|
331
724
|
(function (ɵFunctionType) {
|
|
725
|
+
/**
|
|
726
|
+
* @description Function type not defined.
|
|
727
|
+
* */
|
|
332
728
|
ɵFunctionType[ɵFunctionType["None"] = 0] = "None";
|
|
333
|
-
/**
|
|
729
|
+
/**
|
|
730
|
+
* @description Substitution by macro.
|
|
731
|
+
* */
|
|
334
732
|
ɵFunctionType[ɵFunctionType["Macros"] = 1] = "Macros";
|
|
335
|
-
/**
|
|
733
|
+
/**
|
|
734
|
+
* @description Aggregating function.
|
|
735
|
+
* */
|
|
336
736
|
ɵFunctionType[ɵFunctionType["Aggregation"] = 2] = "Aggregation";
|
|
337
|
-
/**
|
|
737
|
+
/**
|
|
738
|
+
* @description Date fragment.
|
|
739
|
+
* */
|
|
338
740
|
ɵFunctionType[ɵFunctionType["DatePart"] = 3] = "DatePart";
|
|
339
|
-
/**
|
|
741
|
+
/**
|
|
742
|
+
* @description The size of the value in bytes, used for binary data.
|
|
743
|
+
* */
|
|
340
744
|
ɵFunctionType[ɵFunctionType["Length"] = 4] = "Length";
|
|
341
|
-
/**
|
|
745
|
+
/**
|
|
746
|
+
* @description Window query function
|
|
747
|
+
* */
|
|
342
748
|
ɵFunctionType[ɵFunctionType["Window"] = 5] = "Window";
|
|
343
|
-
/**
|
|
749
|
+
/**
|
|
750
|
+
* @description Date add.
|
|
751
|
+
* */
|
|
344
752
|
ɵFunctionType[ɵFunctionType["DateAdd"] = 6] = "DateAdd";
|
|
345
|
-
/**
|
|
753
|
+
/**
|
|
754
|
+
* @description Date diff.
|
|
755
|
+
* */
|
|
346
756
|
ɵFunctionType[ɵFunctionType["DateDiff"] = 7] = "DateDiff";
|
|
347
757
|
})(ɵFunctionType || (ɵFunctionType = {}));
|
|
348
758
|
|
|
759
|
+
/**
|
|
760
|
+
* @public
|
|
761
|
+
* @description The type of logical operation.
|
|
762
|
+
*/
|
|
349
763
|
var ɵLogicalOperatorType;
|
|
350
764
|
(function (ɵLogicalOperatorType) {
|
|
765
|
+
/**
|
|
766
|
+
* @description Logical And.
|
|
767
|
+
*/
|
|
351
768
|
ɵLogicalOperatorType[ɵLogicalOperatorType["And"] = 0] = "And";
|
|
769
|
+
/**
|
|
770
|
+
* @description Logical Or.
|
|
771
|
+
*/
|
|
352
772
|
ɵLogicalOperatorType[ɵLogicalOperatorType["Or"] = 1] = "Or";
|
|
353
773
|
})(ɵLogicalOperatorType || (ɵLogicalOperatorType = {}));
|
|
354
774
|
|
|
775
|
+
/**
|
|
776
|
+
* @public
|
|
777
|
+
* @description Sort order (can be set to None).
|
|
778
|
+
*/
|
|
355
779
|
var ɵOrderDirection;
|
|
356
780
|
(function (ɵOrderDirection) {
|
|
781
|
+
/**
|
|
782
|
+
* @description Order not defined.
|
|
783
|
+
* */
|
|
357
784
|
ɵOrderDirection[ɵOrderDirection["None"] = 0] = "None";
|
|
785
|
+
/**
|
|
786
|
+
* @description Ascending.
|
|
787
|
+
* */
|
|
358
788
|
ɵOrderDirection[ɵOrderDirection["Asc"] = 1] = "Asc";
|
|
789
|
+
/**
|
|
790
|
+
* @description Descending.
|
|
791
|
+
* */
|
|
359
792
|
ɵOrderDirection[ɵOrderDirection["Desc"] = 2] = "Desc";
|
|
360
793
|
})(ɵOrderDirection || (ɵOrderDirection = {}));
|
|
361
794
|
|
|
795
|
+
/**
|
|
796
|
+
* @public
|
|
797
|
+
* @description The type of macros.
|
|
798
|
+
*/
|
|
362
799
|
var ɵQueryMacrosType;
|
|
363
800
|
(function (ɵQueryMacrosType) {
|
|
364
|
-
/**
|
|
801
|
+
/**
|
|
802
|
+
* @description Macro type not defined.
|
|
803
|
+
*/
|
|
365
804
|
ɵQueryMacrosType[ɵQueryMacrosType["None"] = 0] = "None";
|
|
366
|
-
/**
|
|
805
|
+
/**
|
|
806
|
+
* @description Current user.
|
|
807
|
+
*/
|
|
367
808
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentUser"] = 1] = "CurrentUser";
|
|
368
|
-
/**
|
|
809
|
+
/**
|
|
810
|
+
* @description Current user contact.
|
|
811
|
+
*/
|
|
369
812
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentUserContact"] = 2] = "CurrentUserContact";
|
|
370
|
-
/**
|
|
813
|
+
/**
|
|
814
|
+
* @description Yesterday.
|
|
815
|
+
*/
|
|
371
816
|
ɵQueryMacrosType[ɵQueryMacrosType["Yesterday"] = 3] = "Yesterday";
|
|
372
|
-
/**
|
|
817
|
+
/**
|
|
818
|
+
* @description Today.
|
|
819
|
+
*/
|
|
373
820
|
ɵQueryMacrosType[ɵQueryMacrosType["Today"] = 4] = "Today";
|
|
374
|
-
/**
|
|
821
|
+
/**
|
|
822
|
+
* @description Tomorrow.
|
|
823
|
+
*/
|
|
375
824
|
ɵQueryMacrosType[ɵQueryMacrosType["Tomorrow"] = 5] = "Tomorrow";
|
|
376
|
-
/**
|
|
825
|
+
/**
|
|
826
|
+
* @description Previous week.
|
|
827
|
+
*/
|
|
377
828
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousWeek"] = 6] = "PreviousWeek";
|
|
378
|
-
/**
|
|
829
|
+
/**
|
|
830
|
+
* @description This week.
|
|
831
|
+
*/
|
|
379
832
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentWeek"] = 7] = "CurrentWeek";
|
|
380
|
-
/**
|
|
833
|
+
/**
|
|
834
|
+
* @description Next week.
|
|
835
|
+
*/
|
|
381
836
|
ɵQueryMacrosType[ɵQueryMacrosType["NextWeek"] = 8] = "NextWeek";
|
|
382
|
-
/**
|
|
837
|
+
/**
|
|
838
|
+
* @description Previous month.
|
|
839
|
+
*/
|
|
383
840
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousMonth"] = 9] = "PreviousMonth";
|
|
384
|
-
/**
|
|
841
|
+
/**
|
|
842
|
+
* @description Current month.
|
|
843
|
+
*/
|
|
385
844
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentMonth"] = 10] = "CurrentMonth";
|
|
386
|
-
/**
|
|
845
|
+
/**
|
|
846
|
+
* @description Next month.
|
|
847
|
+
*/
|
|
387
848
|
ɵQueryMacrosType[ɵQueryMacrosType["NextMonth"] = 11] = "NextMonth";
|
|
388
|
-
/**
|
|
849
|
+
/**
|
|
850
|
+
* @description Previous quarter.
|
|
851
|
+
*/
|
|
389
852
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousQuarter"] = 12] = "PreviousQuarter";
|
|
390
|
-
/**
|
|
853
|
+
/**
|
|
854
|
+
* @description Current quarter.
|
|
855
|
+
*/
|
|
391
856
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentQuarter"] = 13] = "CurrentQuarter";
|
|
392
|
-
/**
|
|
857
|
+
/**
|
|
858
|
+
* @description Next quarter.
|
|
859
|
+
*/
|
|
393
860
|
ɵQueryMacrosType[ɵQueryMacrosType["NextQuarter"] = 14] = "NextQuarter";
|
|
394
|
-
/**
|
|
861
|
+
/**
|
|
862
|
+
* @description Previous half of the year.
|
|
863
|
+
*/
|
|
395
864
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousHalfYear"] = 15] = "PreviousHalfYear";
|
|
396
|
-
/**
|
|
865
|
+
/**
|
|
866
|
+
* @description Current half-year.
|
|
867
|
+
*/
|
|
397
868
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentHalfYear"] = 16] = "CurrentHalfYear";
|
|
398
|
-
/**
|
|
869
|
+
/**
|
|
870
|
+
* @description Next half-year.
|
|
871
|
+
*/
|
|
399
872
|
ɵQueryMacrosType[ɵQueryMacrosType["NextHalfYear"] = 17] = "NextHalfYear";
|
|
400
|
-
/**
|
|
873
|
+
/**
|
|
874
|
+
* @description Last year.
|
|
875
|
+
*/
|
|
401
876
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousYear"] = 18] = "PreviousYear";
|
|
402
|
-
/**
|
|
877
|
+
/**
|
|
878
|
+
* @description This year.
|
|
879
|
+
*/
|
|
403
880
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentYear"] = 19] = "CurrentYear";
|
|
404
|
-
/**
|
|
881
|
+
/**
|
|
882
|
+
* @description Previous hour.
|
|
883
|
+
*/
|
|
405
884
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousHour"] = 20] = "PreviousHour";
|
|
406
|
-
/**
|
|
885
|
+
/**
|
|
886
|
+
* @description Current hour.
|
|
887
|
+
*/
|
|
407
888
|
ɵQueryMacrosType[ɵQueryMacrosType["CurrentHour"] = 21] = "CurrentHour";
|
|
408
|
-
/**
|
|
889
|
+
/**
|
|
890
|
+
* @description Next hour.
|
|
891
|
+
*/
|
|
409
892
|
ɵQueryMacrosType[ɵQueryMacrosType["NextHour"] = 22] = "NextHour";
|
|
410
|
-
/**
|
|
893
|
+
/**
|
|
894
|
+
* @description Next year.
|
|
895
|
+
*/
|
|
411
896
|
ɵQueryMacrosType[ɵQueryMacrosType["NextYear"] = 23] = "NextYear";
|
|
412
|
-
/**
|
|
897
|
+
/**
|
|
898
|
+
* @description Next N Days.
|
|
899
|
+
*/
|
|
413
900
|
ɵQueryMacrosType[ɵQueryMacrosType["NextNDays"] = 24] = "NextNDays";
|
|
414
|
-
/**
|
|
901
|
+
/**
|
|
902
|
+
* @description Previous N days.
|
|
903
|
+
*/
|
|
415
904
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNDays"] = 25] = "PreviousNDays";
|
|
416
|
-
/**
|
|
905
|
+
/**
|
|
906
|
+
* @description Next N hours.
|
|
907
|
+
*/
|
|
417
908
|
ɵQueryMacrosType[ɵQueryMacrosType["NextNHours"] = 26] = "NextNHours";
|
|
418
|
-
/**
|
|
909
|
+
/**
|
|
910
|
+
* @description Previous N hours.
|
|
911
|
+
*/
|
|
419
912
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNHours"] = 27] = "PreviousNHours";
|
|
420
|
-
/**
|
|
913
|
+
/**
|
|
914
|
+
* @description Primary column.
|
|
915
|
+
*/
|
|
421
916
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryColumn"] = 34] = "PrimaryColumn";
|
|
422
|
-
/**
|
|
917
|
+
/**
|
|
918
|
+
* @description Primary displayed column.
|
|
919
|
+
*/
|
|
423
920
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryDisplayColumn"] = 35] = "PrimaryDisplayColumn";
|
|
424
|
-
/**
|
|
921
|
+
/**
|
|
922
|
+
* @description Primary image display column.
|
|
923
|
+
*/
|
|
425
924
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryImageColumn"] = 36] = "PrimaryImageColumn";
|
|
426
|
-
/**
|
|
925
|
+
/**
|
|
926
|
+
* @description Anniversary today.
|
|
927
|
+
*/
|
|
427
928
|
ɵQueryMacrosType[ɵQueryMacrosType["DayOfYearToday"] = 37] = "DayOfYearToday";
|
|
428
|
-
/**
|
|
929
|
+
/**
|
|
930
|
+
* @description Anniversary on the date computed as today plus days offset.
|
|
931
|
+
*/
|
|
429
932
|
ɵQueryMacrosType[ɵQueryMacrosType["DayOfYearTodayPlusDaysOffset"] = 38] = "DayOfYearTodayPlusDaysOffset";
|
|
430
|
-
/**
|
|
933
|
+
/**
|
|
934
|
+
* @description Anniversary on the next several days.
|
|
935
|
+
*/
|
|
431
936
|
ɵQueryMacrosType[ɵQueryMacrosType["NextNDaysOfYear"] = 39] = "NextNDaysOfYear";
|
|
432
|
-
/**
|
|
937
|
+
/**
|
|
938
|
+
* @description Anniversary on the previous several days.
|
|
939
|
+
*/
|
|
433
940
|
ɵQueryMacrosType[ɵQueryMacrosType["PreviousNDaysOfYear"] = 40] = "PreviousNDaysOfYear";
|
|
434
|
-
/**
|
|
941
|
+
/**
|
|
942
|
+
* @description Primary color display column.
|
|
943
|
+
*/
|
|
435
944
|
ɵQueryMacrosType[ɵQueryMacrosType["PrimaryColorColumn"] = 41] = "PrimaryColorColumn";
|
|
436
945
|
})(ɵQueryMacrosType || (ɵQueryMacrosType = {}));
|
|
437
946
|
|
|
947
|
+
/**
|
|
948
|
+
* @public
|
|
949
|
+
* @abstract
|
|
950
|
+
* @description The base class of the expression.
|
|
951
|
+
* @extends {ɵSerializable}
|
|
952
|
+
*/
|
|
438
953
|
class ɵBaseExpression {
|
|
954
|
+
/**
|
|
955
|
+
* @internal
|
|
956
|
+
* @dontChange
|
|
957
|
+
*/
|
|
958
|
+
static { this._instanceOfKey = 'devkit_BaseExpression'; }
|
|
439
959
|
/**
|
|
440
960
|
* @internal
|
|
441
961
|
* @dontChange
|
|
@@ -443,21 +963,34 @@ class ɵBaseExpression {
|
|
|
443
963
|
static get _instanceOfKeys() {
|
|
444
964
|
return [this._instanceOfKey];
|
|
445
965
|
}
|
|
966
|
+
/**
|
|
967
|
+
* @public
|
|
968
|
+
* @description Method for checking if an instance is of the current class type.
|
|
969
|
+
* @param instance - The instance to check.
|
|
970
|
+
* @returns `true` if the instance is of the current class type, `false` otherwise.
|
|
971
|
+
*/
|
|
446
972
|
static [Symbol.hasInstance](instance) {
|
|
447
973
|
const instanceOfKeys = instance?.constructor?.['_instanceOfKeys'] ?? [];
|
|
448
974
|
return instanceOfKeys.includes(this._instanceOfKey);
|
|
449
975
|
}
|
|
450
976
|
constructor(config) {
|
|
977
|
+
/**
|
|
978
|
+
* @description True if expression has brackets.
|
|
979
|
+
*/
|
|
451
980
|
this.isBlock = false;
|
|
452
981
|
this.isBlock = config?.isBlock;
|
|
453
982
|
}
|
|
454
983
|
/**
|
|
455
|
-
* Parses expression from json.
|
|
456
984
|
* @public
|
|
985
|
+
* @description Parses expression from json.
|
|
457
986
|
*/
|
|
458
987
|
static fromJson(dto, filterParser, expressionParser) {
|
|
459
988
|
throw new Error(`fromJson not supported on expression type ${this.constructor.name}`);
|
|
460
989
|
}
|
|
990
|
+
/**
|
|
991
|
+
* @description Converts instance to json object.
|
|
992
|
+
* @param item - The instance to serialize.
|
|
993
|
+
*/
|
|
461
994
|
serializeItem(item) {
|
|
462
995
|
return typeof item.toJson === 'function'
|
|
463
996
|
? item.toJson()
|
|
@@ -467,8 +1000,8 @@ class ɵBaseExpression {
|
|
|
467
1000
|
});
|
|
468
1001
|
}
|
|
469
1002
|
/**
|
|
470
|
-
* Converts instance to json object.
|
|
471
1003
|
* @public
|
|
1004
|
+
* @description Converts instance to json object.
|
|
472
1005
|
*/
|
|
473
1006
|
toJson() {
|
|
474
1007
|
return classToPlain(this, {
|
|
@@ -477,13 +1010,18 @@ class ɵBaseExpression {
|
|
|
477
1010
|
});
|
|
478
1011
|
}
|
|
479
1012
|
}
|
|
1013
|
+
|
|
480
1014
|
/**
|
|
481
|
-
* @
|
|
482
|
-
* @
|
|
1015
|
+
* @public
|
|
1016
|
+
* @description Arithmetic expression.
|
|
1017
|
+
* @extends {ɵBaseExpression}
|
|
483
1018
|
*/
|
|
484
|
-
ɵBaseExpression._instanceOfKey = 'devkit_BaseExpression';
|
|
485
|
-
|
|
486
1019
|
class ɵArithmeticExpression extends ɵBaseExpression {
|
|
1020
|
+
/**
|
|
1021
|
+
* @internal
|
|
1022
|
+
* @dontChange
|
|
1023
|
+
*/
|
|
1024
|
+
static { this._instanceOfKey = 'devkit_ArithmeticExpression'; }
|
|
487
1025
|
/**
|
|
488
1026
|
* @internal
|
|
489
1027
|
* @dontChange
|
|
@@ -493,6 +1031,9 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
493
1031
|
}
|
|
494
1032
|
constructor(config) {
|
|
495
1033
|
super(config);
|
|
1034
|
+
/**
|
|
1035
|
+
* @description Expression type. Default 'ArithmeticOperation'.
|
|
1036
|
+
*/
|
|
496
1037
|
this.expressionType = ɵExpressionType.ArithmeticOperation;
|
|
497
1038
|
this.arithmeticOperation = config?.arithmeticOperation;
|
|
498
1039
|
this.leftArithmeticOperand = config?.leftArithmeticOperand.clone();
|
|
@@ -513,6 +1054,10 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
513
1054
|
};
|
|
514
1055
|
return new ɵArithmeticExpression(config);
|
|
515
1056
|
}
|
|
1057
|
+
/**
|
|
1058
|
+
* @public
|
|
1059
|
+
* @description Clones instance.
|
|
1060
|
+
*/
|
|
516
1061
|
clone() {
|
|
517
1062
|
return new ɵArithmeticExpression(this);
|
|
518
1063
|
}
|
|
@@ -523,13 +1068,18 @@ class ɵArithmeticExpression extends ɵBaseExpression {
|
|
|
523
1068
|
return [...this.leftArithmeticOperand._getUsedColumns(), ...this.rightArithmeticOperand._getUsedColumns()];
|
|
524
1069
|
}
|
|
525
1070
|
}
|
|
1071
|
+
|
|
526
1072
|
/**
|
|
527
|
-
* @
|
|
528
|
-
* @
|
|
1073
|
+
* @public
|
|
1074
|
+
* @description A class that defines an expression of type column EntitySchema.
|
|
1075
|
+
* @extends {ɵBaseExpression}
|
|
529
1076
|
*/
|
|
530
|
-
ɵArithmeticExpression._instanceOfKey = 'devkit_ArithmeticExpression';
|
|
531
|
-
|
|
532
1077
|
class ɵColumnExpression extends ɵBaseExpression {
|
|
1078
|
+
/**
|
|
1079
|
+
* @internal
|
|
1080
|
+
* @dontChange
|
|
1081
|
+
*/
|
|
1082
|
+
static { this._instanceOfKey = 'devkit_ColumnExpression'; }
|
|
533
1083
|
/**
|
|
534
1084
|
* @internal
|
|
535
1085
|
* @dontChange
|
|
@@ -539,17 +1089,24 @@ class ɵColumnExpression extends ɵBaseExpression {
|
|
|
539
1089
|
}
|
|
540
1090
|
constructor(config) {
|
|
541
1091
|
super(config);
|
|
1092
|
+
/**
|
|
1093
|
+
* @description Type of expression.
|
|
1094
|
+
*/
|
|
542
1095
|
this.expressionType = ɵExpressionType.SchemaColumn;
|
|
543
1096
|
this.columnPath = config?.columnPath;
|
|
544
1097
|
}
|
|
545
1098
|
/**
|
|
546
1099
|
* Parses expression from json.
|
|
547
1100
|
* @public
|
|
1101
|
+
* @param dto - Serialized object.
|
|
548
1102
|
*/
|
|
549
1103
|
static fromJson(dto) {
|
|
550
1104
|
const expression = new ɵColumnExpression({ columnPath: dto['columnPath'] });
|
|
551
1105
|
return expression;
|
|
552
1106
|
}
|
|
1107
|
+
/**
|
|
1108
|
+
* @description Clones instance.
|
|
1109
|
+
*/
|
|
553
1110
|
clone() {
|
|
554
1111
|
return new ɵColumnExpression(this);
|
|
555
1112
|
}
|
|
@@ -564,23 +1121,36 @@ class ɵColumnExpression extends ɵBaseExpression {
|
|
|
564
1121
|
];
|
|
565
1122
|
}
|
|
566
1123
|
}
|
|
567
|
-
/**
|
|
568
|
-
* @internal
|
|
569
|
-
* @dontChange
|
|
570
|
-
*/
|
|
571
|
-
ɵColumnExpression._instanceOfKey = 'devkit_ColumnExpression';
|
|
572
1124
|
|
|
573
1125
|
/**
|
|
574
|
-
* Expression parser interface
|
|
575
1126
|
* @public
|
|
1127
|
+
* @description Expression parser interface.
|
|
576
1128
|
*/
|
|
577
1129
|
class ɵBaseExpressionParser {
|
|
1130
|
+
/**
|
|
1131
|
+
* @public
|
|
1132
|
+
* @description Parses filter from json.
|
|
1133
|
+
* @param dto - Serialized object.
|
|
1134
|
+
* @param filterParser - Type of parser.
|
|
1135
|
+
* @return InstanceType of expression.
|
|
1136
|
+
*/
|
|
578
1137
|
static fromJson(dto, filterParser) {
|
|
579
1138
|
throw new Error('not implemented');
|
|
580
1139
|
}
|
|
581
1140
|
}
|
|
582
1141
|
|
|
1142
|
+
/**
|
|
1143
|
+
* @public
|
|
1144
|
+
* @abstract
|
|
1145
|
+
* @description A class that describes a functional expression.
|
|
1146
|
+
* @extends {ɵFunctionExpression}
|
|
1147
|
+
*/
|
|
583
1148
|
class ɵFunctionExpression extends ɵBaseExpression {
|
|
1149
|
+
/**
|
|
1150
|
+
* @internal
|
|
1151
|
+
* @dontChange
|
|
1152
|
+
*/
|
|
1153
|
+
static { this._instanceOfKey = 'devkit_FunctionExpression'; }
|
|
584
1154
|
/**
|
|
585
1155
|
* @internal
|
|
586
1156
|
* @dontChange
|
|
@@ -590,16 +1160,25 @@ class ɵFunctionExpression extends ɵBaseExpression {
|
|
|
590
1160
|
}
|
|
591
1161
|
constructor(config) {
|
|
592
1162
|
super(config);
|
|
1163
|
+
/**
|
|
1164
|
+
* @description Expression type. Default 'Function'.
|
|
1165
|
+
*/
|
|
593
1166
|
this.expressionType = ɵExpressionType.Function;
|
|
594
1167
|
}
|
|
595
1168
|
}
|
|
1169
|
+
|
|
596
1170
|
/**
|
|
597
|
-
* @
|
|
598
|
-
* @
|
|
1171
|
+
* @public
|
|
1172
|
+
* @abstract
|
|
1173
|
+
* @description A class that describes a functional expression with argument.
|
|
1174
|
+
* @extends {ɵFunctionExpression}
|
|
599
1175
|
*/
|
|
600
|
-
ɵFunctionExpression._instanceOfKey = 'devkit_FunctionExpression';
|
|
601
|
-
|
|
602
1176
|
class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
1177
|
+
/**
|
|
1178
|
+
* @internal
|
|
1179
|
+
* @dontChange
|
|
1180
|
+
*/
|
|
1181
|
+
static { this._instanceOfKey = 'devkit_ArgumentFunctionExpression'; }
|
|
603
1182
|
/**
|
|
604
1183
|
* @internal
|
|
605
1184
|
* @dontChange
|
|
@@ -609,8 +1188,9 @@ class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
|
609
1188
|
}
|
|
610
1189
|
constructor(config) {
|
|
611
1190
|
super(config);
|
|
612
|
-
this.functionArgument = config?.functionArgument
|
|
1191
|
+
this.functionArgument = config?.functionArgument?.clone();
|
|
613
1192
|
}
|
|
1193
|
+
/** {@inheritDoc ɵBaseExpression.toJson} */
|
|
614
1194
|
toJson() {
|
|
615
1195
|
const result = super.toJson();
|
|
616
1196
|
if (this.functionArgument) {
|
|
@@ -625,13 +1205,18 @@ class ɵArgumentFunctionExpression extends ɵFunctionExpression {
|
|
|
625
1205
|
return this.functionArgument?._getUsedColumns() ?? [];
|
|
626
1206
|
}
|
|
627
1207
|
}
|
|
1208
|
+
|
|
628
1209
|
/**
|
|
629
|
-
* @
|
|
630
|
-
* @
|
|
1210
|
+
* @public
|
|
1211
|
+
* @description A class that describes expression with aggregate function.
|
|
1212
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
631
1213
|
*/
|
|
632
|
-
ɵArgumentFunctionExpression._instanceOfKey = 'devkit_ArgumentFunctionExpression';
|
|
633
|
-
|
|
634
1214
|
class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
1215
|
+
/**
|
|
1216
|
+
* @internal
|
|
1217
|
+
* @dontChange
|
|
1218
|
+
*/
|
|
1219
|
+
static { this._instanceOfKey = 'devkit_AggregationFunctionExpression'; }
|
|
635
1220
|
/**
|
|
636
1221
|
* @internal
|
|
637
1222
|
* @dontChange
|
|
@@ -641,6 +1226,9 @@ class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
641
1226
|
}
|
|
642
1227
|
constructor(config) {
|
|
643
1228
|
super(config);
|
|
1229
|
+
/**
|
|
1230
|
+
* @description The type of the functional expression passed for initialization.
|
|
1231
|
+
*/
|
|
644
1232
|
this.functionType = ɵFunctionType.Aggregation;
|
|
645
1233
|
this.aggregationType = config?.aggregationType;
|
|
646
1234
|
this.aggregationEvalType = config?.aggregationEvalType;
|
|
@@ -660,17 +1248,23 @@ class ɵAggregationFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
660
1248
|
isBlock: dto['isBlock'],
|
|
661
1249
|
});
|
|
662
1250
|
}
|
|
1251
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
663
1252
|
clone() {
|
|
664
1253
|
return new ɵAggregationFunctionExpression(this);
|
|
665
1254
|
}
|
|
666
1255
|
}
|
|
1256
|
+
|
|
667
1257
|
/**
|
|
668
|
-
* @
|
|
669
|
-
* @
|
|
1258
|
+
* @public
|
|
1259
|
+
* @description A class that describes expression part of date function.
|
|
1260
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
670
1261
|
*/
|
|
671
|
-
ɵAggregationFunctionExpression._instanceOfKey = 'devkit_AggregationFunctionExpression';
|
|
672
|
-
|
|
673
1262
|
class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
1263
|
+
/**
|
|
1264
|
+
* @internal
|
|
1265
|
+
* @dontChange
|
|
1266
|
+
*/
|
|
1267
|
+
static { this._instanceOfKey = 'devkit_DatePartFunctionExpression'; }
|
|
674
1268
|
/**
|
|
675
1269
|
* @internal
|
|
676
1270
|
* @dontChange
|
|
@@ -680,6 +1274,9 @@ class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
680
1274
|
}
|
|
681
1275
|
constructor(config) {
|
|
682
1276
|
super(config);
|
|
1277
|
+
/**
|
|
1278
|
+
* @description Function type. Default 'DatePart'.
|
|
1279
|
+
*/
|
|
683
1280
|
this.functionType = ɵFunctionType.DatePart;
|
|
684
1281
|
this.datePartType = config?.datePartType;
|
|
685
1282
|
}
|
|
@@ -692,17 +1289,23 @@ class ɵDatePartFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
692
1289
|
const datePartType = dto['datePartType'];
|
|
693
1290
|
return new ɵDatePartFunctionExpression({ functionArgument, datePartType, isBlock: dto['isBlock'] });
|
|
694
1291
|
}
|
|
1292
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
695
1293
|
clone() {
|
|
696
1294
|
return new ɵDatePartFunctionExpression(this);
|
|
697
1295
|
}
|
|
698
1296
|
}
|
|
1297
|
+
|
|
699
1298
|
/**
|
|
700
|
-
* @
|
|
701
|
-
* @
|
|
1299
|
+
* @public
|
|
1300
|
+
* @description A class that describes expression with length function.
|
|
1301
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
702
1302
|
*/
|
|
703
|
-
ɵDatePartFunctionExpression._instanceOfKey = 'devkit_DatePartFunctionExpression';
|
|
704
|
-
|
|
705
1303
|
class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
1304
|
+
/**
|
|
1305
|
+
* @internal
|
|
1306
|
+
* @dontChange
|
|
1307
|
+
*/
|
|
1308
|
+
static { this._instanceOfKey = 'devkit_LengthFunctionExpression'; }
|
|
706
1309
|
/**
|
|
707
1310
|
* @internal
|
|
708
1311
|
* @dontChange
|
|
@@ -712,6 +1315,9 @@ class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
712
1315
|
}
|
|
713
1316
|
constructor(config) {
|
|
714
1317
|
super(config);
|
|
1318
|
+
/**
|
|
1319
|
+
* @description Function type. Default 'Length'.
|
|
1320
|
+
*/
|
|
715
1321
|
this.functionType = ɵFunctionType.Length;
|
|
716
1322
|
}
|
|
717
1323
|
/**
|
|
@@ -722,17 +1328,25 @@ class ɵLengthFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
722
1328
|
const functionArgument = expressionParser?.fromJson(dto['functionArgument'], filterParser);
|
|
723
1329
|
return new ɵLengthFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
724
1330
|
}
|
|
1331
|
+
/**
|
|
1332
|
+
* @description Method to create cloned instance.
|
|
1333
|
+
*/
|
|
725
1334
|
clone() {
|
|
726
1335
|
return new ɵLengthFunctionExpression(this);
|
|
727
1336
|
}
|
|
728
1337
|
}
|
|
1338
|
+
|
|
729
1339
|
/**
|
|
730
|
-
* @
|
|
731
|
-
* @
|
|
1340
|
+
* @public
|
|
1341
|
+
* @description A class that describes expression with macros function.
|
|
1342
|
+
* @extends {ɵFunctionExpression}
|
|
732
1343
|
*/
|
|
733
|
-
ɵLengthFunctionExpression._instanceOfKey = 'devkit_LengthFunctionExpression';
|
|
734
|
-
|
|
735
1344
|
class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
1345
|
+
/**
|
|
1346
|
+
* @internal
|
|
1347
|
+
* @dontChange
|
|
1348
|
+
*/
|
|
1349
|
+
static { this._instanceOfKey = 'devkit_MacrosFunctionExpression'; }
|
|
736
1350
|
/**
|
|
737
1351
|
* @internal
|
|
738
1352
|
* @dontChange
|
|
@@ -742,6 +1356,9 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
742
1356
|
}
|
|
743
1357
|
constructor(config) {
|
|
744
1358
|
super(config);
|
|
1359
|
+
/**
|
|
1360
|
+
* @description Function type. Default 'Macros'.
|
|
1361
|
+
*/
|
|
745
1362
|
this.functionType = ɵFunctionType.Macros;
|
|
746
1363
|
this.macrosType = config?.macrosType;
|
|
747
1364
|
this.functionArgument = config?.functionArgument;
|
|
@@ -756,6 +1373,9 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
756
1373
|
: undefined;
|
|
757
1374
|
return new ɵMacrosFunctionExpression({ functionArgument, macrosType: dto['macrosType'] });
|
|
758
1375
|
}
|
|
1376
|
+
/**
|
|
1377
|
+
* @description method to create cloned instance.
|
|
1378
|
+
*/
|
|
759
1379
|
clone() {
|
|
760
1380
|
return new ɵMacrosFunctionExpression(this);
|
|
761
1381
|
}
|
|
@@ -766,13 +1386,18 @@ class ɵMacrosFunctionExpression extends ɵFunctionExpression {
|
|
|
766
1386
|
return this.functionArgument?._getUsedColumns() ?? [];
|
|
767
1387
|
}
|
|
768
1388
|
}
|
|
1389
|
+
|
|
769
1390
|
/**
|
|
770
|
-
* @
|
|
771
|
-
* @
|
|
1391
|
+
* @public
|
|
1392
|
+
* @description A class that describes expression with window function.
|
|
1393
|
+
* @extends {ɵArgumentFunctionExpression}
|
|
772
1394
|
*/
|
|
773
|
-
ɵMacrosFunctionExpression._instanceOfKey = 'devkit_MacrosFunctionExpression';
|
|
774
|
-
|
|
775
1395
|
class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
1396
|
+
/**
|
|
1397
|
+
* @internal
|
|
1398
|
+
* @dontChange
|
|
1399
|
+
*/
|
|
1400
|
+
static { this._instanceOfKey = 'devkit_WindowFunctionExpression'; }
|
|
776
1401
|
/**
|
|
777
1402
|
* @internal
|
|
778
1403
|
* @dontChange
|
|
@@ -782,6 +1407,9 @@ class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
782
1407
|
}
|
|
783
1408
|
constructor(config) {
|
|
784
1409
|
super(config);
|
|
1410
|
+
/**
|
|
1411
|
+
* @description Function type.
|
|
1412
|
+
*/
|
|
785
1413
|
this.functionType = ɵFunctionType.Window;
|
|
786
1414
|
}
|
|
787
1415
|
/**
|
|
@@ -792,17 +1420,23 @@ class ɵWindowFunctionExpression extends ɵArgumentFunctionExpression {
|
|
|
792
1420
|
const functionArgument = expressionParser?.fromJson(dto['functionArgument'], filterParser);
|
|
793
1421
|
return new ɵWindowFunctionExpression({ functionArgument, isBlock: dto['isBlock'] });
|
|
794
1422
|
}
|
|
1423
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
795
1424
|
clone() {
|
|
796
1425
|
return new ɵWindowFunctionExpression(this);
|
|
797
1426
|
}
|
|
798
1427
|
}
|
|
1428
|
+
|
|
799
1429
|
/**
|
|
800
|
-
* @
|
|
801
|
-
* @
|
|
1430
|
+
* @public
|
|
1431
|
+
* @description The class that defines the parametric expression.
|
|
1432
|
+
* @extends {ɵBaseExpression}
|
|
802
1433
|
*/
|
|
803
|
-
ɵWindowFunctionExpression._instanceOfKey = 'devkit_WindowFunctionExpression';
|
|
804
|
-
|
|
805
1434
|
class ɵParameterExpression extends ɵBaseExpression {
|
|
1435
|
+
/**
|
|
1436
|
+
* @internal
|
|
1437
|
+
* @dontChange
|
|
1438
|
+
*/
|
|
1439
|
+
static { this._instanceOfKey = 'devkit_ParameterExpression'; }
|
|
806
1440
|
/**
|
|
807
1441
|
* @internal
|
|
808
1442
|
* @dontChange
|
|
@@ -812,6 +1446,9 @@ class ɵParameterExpression extends ɵBaseExpression {
|
|
|
812
1446
|
}
|
|
813
1447
|
constructor(config) {
|
|
814
1448
|
super(config);
|
|
1449
|
+
/**
|
|
1450
|
+
* @description Type of expression.
|
|
1451
|
+
*/
|
|
815
1452
|
this.expressionType = ɵExpressionType.Parameter;
|
|
816
1453
|
const value = config?.value;
|
|
817
1454
|
if (value instanceof Date) {
|
|
@@ -878,6 +1515,9 @@ class ɵParameterExpression extends ɵBaseExpression {
|
|
|
878
1515
|
};
|
|
879
1516
|
}
|
|
880
1517
|
}
|
|
1518
|
+
/**
|
|
1519
|
+
* @description Returns cloned instance.
|
|
1520
|
+
*/
|
|
881
1521
|
clone() {
|
|
882
1522
|
return new ɵParameterExpression(this);
|
|
883
1523
|
}
|
|
@@ -888,11 +1528,6 @@ class ɵParameterExpression extends ɵBaseExpression {
|
|
|
888
1528
|
return [];
|
|
889
1529
|
}
|
|
890
1530
|
}
|
|
891
|
-
/**
|
|
892
|
-
* @internal
|
|
893
|
-
* @dontChange
|
|
894
|
-
*/
|
|
895
|
-
ɵParameterExpression._instanceOfKey = 'devkit_ParameterExpression';
|
|
896
1531
|
__decorate([
|
|
897
1532
|
Exclude(),
|
|
898
1533
|
__metadata("design:type", Object)
|
|
@@ -902,7 +1537,18 @@ __decorate([
|
|
|
902
1537
|
__metadata("design:type", Number)
|
|
903
1538
|
], ɵParameterExpression.prototype, "dataValueType", void 0);
|
|
904
1539
|
|
|
1540
|
+
/**
|
|
1541
|
+
* @public
|
|
1542
|
+
* @abstract
|
|
1543
|
+
* @description The base class of the filter.
|
|
1544
|
+
* @extends {ɵSerializable}
|
|
1545
|
+
*/
|
|
905
1546
|
class ɵBaseFilter {
|
|
1547
|
+
/**
|
|
1548
|
+
* @internal
|
|
1549
|
+
* @dontChange
|
|
1550
|
+
*/
|
|
1551
|
+
static { this._instanceOfKey = 'devkit_BaseFilter'; }
|
|
906
1552
|
/**
|
|
907
1553
|
* @internal
|
|
908
1554
|
* @dontChange
|
|
@@ -910,12 +1556,24 @@ class ɵBaseFilter {
|
|
|
910
1556
|
static get _instanceOfKeys() {
|
|
911
1557
|
return [this._instanceOfKey];
|
|
912
1558
|
}
|
|
1559
|
+
/**
|
|
1560
|
+
* @public
|
|
1561
|
+
* @description Method for checking if an instance is of the current class type.
|
|
1562
|
+
* @param instance - The instance to check.
|
|
1563
|
+
* @returns `true` if the instance is of the current class type, `false` otherwise.
|
|
1564
|
+
*/
|
|
913
1565
|
static [Symbol.hasInstance](instance) {
|
|
914
1566
|
const instanceOfKeys = instance?.constructor?.['_instanceOfKeys'] ?? [];
|
|
915
1567
|
return instanceOfKeys.includes(this._instanceOfKey);
|
|
916
1568
|
}
|
|
917
1569
|
constructor(filterType) {
|
|
1570
|
+
/**
|
|
1571
|
+
* @description Indicates that the filter is active and will be taken into account when building the query.
|
|
1572
|
+
*/
|
|
918
1573
|
this.isEnabled = true;
|
|
1574
|
+
/**
|
|
1575
|
+
* @description Drop the time for the date / time type parameters.
|
|
1576
|
+
*/
|
|
919
1577
|
this.trimDateTimeParameterToDate = false;
|
|
920
1578
|
this.filterType = filterType;
|
|
921
1579
|
}
|
|
@@ -945,13 +1603,18 @@ class ɵBaseFilter {
|
|
|
945
1603
|
});
|
|
946
1604
|
}
|
|
947
1605
|
}
|
|
1606
|
+
|
|
948
1607
|
/**
|
|
949
|
-
* @
|
|
950
|
-
* @
|
|
1608
|
+
* @public
|
|
1609
|
+
* @description Basic filter class with one condition.
|
|
1610
|
+
* @extends {ɵBaseFilter}
|
|
951
1611
|
*/
|
|
952
|
-
ɵBaseFilter._instanceOfKey = 'devkit_BaseFilter';
|
|
953
|
-
|
|
954
1612
|
class ɵSingleFilter extends ɵBaseFilter {
|
|
1613
|
+
/**
|
|
1614
|
+
* @internal
|
|
1615
|
+
* @dontChange
|
|
1616
|
+
*/
|
|
1617
|
+
static { this._instanceOfKey = 'devkit_SingleFilter'; }
|
|
955
1618
|
/**
|
|
956
1619
|
* @internal
|
|
957
1620
|
* @dontChange
|
|
@@ -962,8 +1625,9 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
962
1625
|
constructor(filterType, comparisonType, leftExpression) {
|
|
963
1626
|
super(filterType);
|
|
964
1627
|
this.comparisonType = comparisonType;
|
|
965
|
-
this.leftExpression = leftExpression
|
|
1628
|
+
this.leftExpression = leftExpression?.clone();
|
|
966
1629
|
}
|
|
1630
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
967
1631
|
toJson() {
|
|
968
1632
|
return {
|
|
969
1633
|
...super.toJson(),
|
|
@@ -977,13 +1641,18 @@ class ɵSingleFilter extends ɵBaseFilter {
|
|
|
977
1641
|
return this.leftExpression._getUsedColumns();
|
|
978
1642
|
}
|
|
979
1643
|
}
|
|
1644
|
+
|
|
980
1645
|
/**
|
|
981
|
-
* @
|
|
982
|
-
* @
|
|
1646
|
+
* @public
|
|
1647
|
+
* @description Filter class of the "Between" type.
|
|
1648
|
+
* @extends {ɵSingleFilter}
|
|
983
1649
|
*/
|
|
984
|
-
ɵSingleFilter._instanceOfKey = 'devkit_SingleFilter';
|
|
985
|
-
|
|
986
1650
|
class ɵBetweenFilter extends ɵSingleFilter {
|
|
1651
|
+
/**
|
|
1652
|
+
* @internal
|
|
1653
|
+
* @dontChange
|
|
1654
|
+
*/
|
|
1655
|
+
static { this._instanceOfKey = 'devkit_BetweenFilter'; }
|
|
987
1656
|
/**
|
|
988
1657
|
* @internal
|
|
989
1658
|
* @dontChange
|
|
@@ -993,8 +1662,8 @@ class ɵBetweenFilter extends ɵSingleFilter {
|
|
|
993
1662
|
}
|
|
994
1663
|
constructor(leftExpression, rightLessExpression, rightGreaterExpression) {
|
|
995
1664
|
super(ɵFilterType.Between, ɵComparisonType.Between, leftExpression);
|
|
996
|
-
this.rightLessExpression = rightLessExpression
|
|
997
|
-
this.rightGreaterExpression = rightGreaterExpression
|
|
1665
|
+
this.rightLessExpression = rightLessExpression?.clone();
|
|
1666
|
+
this.rightGreaterExpression = rightGreaterExpression?.clone();
|
|
998
1667
|
}
|
|
999
1668
|
/**
|
|
1000
1669
|
* Parses filter from json.
|
|
@@ -1028,13 +1697,18 @@ class ɵBetweenFilter extends ɵSingleFilter {
|
|
|
1028
1697
|
];
|
|
1029
1698
|
}
|
|
1030
1699
|
}
|
|
1700
|
+
|
|
1031
1701
|
/**
|
|
1032
|
-
* @
|
|
1033
|
-
* @
|
|
1702
|
+
* @public
|
|
1703
|
+
* @description Comparison filter class.
|
|
1704
|
+
* @extends {ɵSingleFilter}
|
|
1034
1705
|
*/
|
|
1035
|
-
ɵBetweenFilter._instanceOfKey = 'devkit_BetweenFilter';
|
|
1036
|
-
|
|
1037
1706
|
class ɵCompareFilter extends ɵSingleFilter {
|
|
1707
|
+
/**
|
|
1708
|
+
* @internal
|
|
1709
|
+
* @dontChange
|
|
1710
|
+
*/
|
|
1711
|
+
static { this._instanceOfKey = 'devkit_CompareFilter'; }
|
|
1038
1712
|
/**
|
|
1039
1713
|
* @internal
|
|
1040
1714
|
* @dontChange
|
|
@@ -1044,7 +1718,7 @@ class ɵCompareFilter extends ɵSingleFilter {
|
|
|
1044
1718
|
}
|
|
1045
1719
|
constructor(comparisonType, leftExpression, rightExpression) {
|
|
1046
1720
|
super(ɵFilterType.Compare, comparisonType, leftExpression);
|
|
1047
|
-
this.rightExpression = rightExpression
|
|
1721
|
+
this.rightExpression = rightExpression?.clone();
|
|
1048
1722
|
}
|
|
1049
1723
|
/**
|
|
1050
1724
|
* Parses filter from json.
|
|
@@ -1073,13 +1747,18 @@ class ɵCompareFilter extends ɵSingleFilter {
|
|
|
1073
1747
|
return [...super._getUsedColumns(), ...this.rightExpression._getUsedColumns()];
|
|
1074
1748
|
}
|
|
1075
1749
|
}
|
|
1750
|
+
|
|
1076
1751
|
/**
|
|
1077
|
-
* @
|
|
1078
|
-
* @
|
|
1752
|
+
* @public
|
|
1753
|
+
* @description The comparison filter class [Exists according to the specified condition].
|
|
1754
|
+
* @extends {ɵSingleFilter}
|
|
1079
1755
|
*/
|
|
1080
|
-
ɵCompareFilter._instanceOfKey = 'devkit_CompareFilter';
|
|
1081
|
-
|
|
1082
1756
|
class ɵExistsFilter extends ɵSingleFilter {
|
|
1757
|
+
/**
|
|
1758
|
+
* @internal
|
|
1759
|
+
* @dontChange
|
|
1760
|
+
*/
|
|
1761
|
+
static { this._instanceOfKey = 'devkit_ExistsFilter'; }
|
|
1083
1762
|
/**
|
|
1084
1763
|
* @internal
|
|
1085
1764
|
* @dontChange
|
|
@@ -1098,15 +1777,24 @@ class ɵExistsFilter extends ɵSingleFilter {
|
|
|
1098
1777
|
*/
|
|
1099
1778
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1100
1779
|
const leftExpression = expressionParser.fromJson(dto['leftExpression'], filterParser);
|
|
1101
|
-
const
|
|
1780
|
+
const subFiltersDto = dto['subFilters'];
|
|
1781
|
+
let subFilters;
|
|
1782
|
+
if (subFiltersDto) {
|
|
1783
|
+
subFilters = filterParser.fromJson(dto['subFilters']);
|
|
1784
|
+
}
|
|
1102
1785
|
return new ɵExistsFilter(leftExpression, subFilters, dto['comparisonType'], dto['isAggregative']);
|
|
1103
1786
|
}
|
|
1787
|
+
/**
|
|
1788
|
+
* @public
|
|
1789
|
+
* @description Clones instance.
|
|
1790
|
+
*/
|
|
1104
1791
|
clone() {
|
|
1105
1792
|
const filter = new ɵExistsFilter(this.leftExpression, this.subFilters, this.comparisonType, this.isAggregative);
|
|
1106
1793
|
filter.isEnabled = this.isEnabled;
|
|
1107
1794
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1108
1795
|
return filter;
|
|
1109
1796
|
}
|
|
1797
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1110
1798
|
toJson() {
|
|
1111
1799
|
const result = super.toJson();
|
|
1112
1800
|
if (this.subFilters) {
|
|
@@ -1121,13 +1809,18 @@ class ɵExistsFilter extends ɵSingleFilter {
|
|
|
1121
1809
|
return [...super._getUsedColumns(), ...(this.subFilters?._getUsedColumns() ?? [])];
|
|
1122
1810
|
}
|
|
1123
1811
|
}
|
|
1812
|
+
|
|
1124
1813
|
/**
|
|
1125
|
-
* @
|
|
1126
|
-
* @
|
|
1814
|
+
* @public
|
|
1815
|
+
* @description In-Filter Class
|
|
1816
|
+
* @extends {ɵSingleFilter}
|
|
1127
1817
|
*/
|
|
1128
|
-
ɵExistsFilter._instanceOfKey = 'devkit_ExistsFilter';
|
|
1129
|
-
|
|
1130
1818
|
class ɵInFilter extends ɵSingleFilter {
|
|
1819
|
+
/**
|
|
1820
|
+
* @internal
|
|
1821
|
+
* @dontChange
|
|
1822
|
+
*/
|
|
1823
|
+
static { this._instanceOfKey = 'devkit_InFilter'; }
|
|
1131
1824
|
/**
|
|
1132
1825
|
* @internal
|
|
1133
1826
|
* @dontChange
|
|
@@ -1137,22 +1830,24 @@ class ɵInFilter extends ɵSingleFilter {
|
|
|
1137
1830
|
}
|
|
1138
1831
|
constructor(comparisonType, leftExpression, rightExpressions) {
|
|
1139
1832
|
super(ɵFilterType.In, comparisonType, leftExpression);
|
|
1140
|
-
this.rightExpressions = rightExpressions.map((expression) => expression
|
|
1833
|
+
this.rightExpressions = rightExpressions.map((expression) => expression?.clone()) ?? [];
|
|
1141
1834
|
}
|
|
1142
1835
|
/**
|
|
1143
|
-
* Parses in filter from json.
|
|
1836
|
+
* @description Parses in filter from json.
|
|
1144
1837
|
* @public
|
|
1145
1838
|
*/
|
|
1146
1839
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1147
1840
|
const dtoRightExpressions = (dto['rightExpressions'] ?? []);
|
|
1148
1841
|
return new ɵInFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser), dtoRightExpressions.map((expression) => expressionParser.fromJson(expression, filterParser)));
|
|
1149
1842
|
}
|
|
1843
|
+
/** {@inheritDoc ɵBaseFilter.clone} */
|
|
1150
1844
|
clone() {
|
|
1151
1845
|
const filter = new ɵInFilter(this.comparisonType, this.leftExpression, this.rightExpressions);
|
|
1152
1846
|
filter.isEnabled = this.isEnabled;
|
|
1153
1847
|
filter.trimDateTimeParameterToDate = this.trimDateTimeParameterToDate;
|
|
1154
1848
|
return filter;
|
|
1155
1849
|
}
|
|
1850
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1156
1851
|
toJson() {
|
|
1157
1852
|
return {
|
|
1158
1853
|
...super.toJson(),
|
|
@@ -1169,13 +1864,18 @@ class ɵInFilter extends ɵSingleFilter {
|
|
|
1169
1864
|
return [...super._getUsedColumns(), ...rightExpressionsUsedColumns];
|
|
1170
1865
|
}
|
|
1171
1866
|
}
|
|
1867
|
+
|
|
1172
1868
|
/**
|
|
1173
|
-
* @
|
|
1174
|
-
* @
|
|
1869
|
+
* @public
|
|
1870
|
+
* @description IsNull filter Class
|
|
1871
|
+
* @extends {ɵSingleFilter}
|
|
1175
1872
|
*/
|
|
1176
|
-
ɵInFilter._instanceOfKey = 'devkit_InFilter';
|
|
1177
|
-
|
|
1178
1873
|
class ɵIsNullFilter extends ɵSingleFilter {
|
|
1874
|
+
/**
|
|
1875
|
+
* @internal
|
|
1876
|
+
* @dontChange
|
|
1877
|
+
*/
|
|
1878
|
+
static { this._instanceOfKey = 'devkit_IsNullFilter'; }
|
|
1179
1879
|
/**
|
|
1180
1880
|
* @internal
|
|
1181
1881
|
* @dontChange
|
|
@@ -1186,16 +1886,20 @@ class ɵIsNullFilter extends ɵSingleFilter {
|
|
|
1186
1886
|
constructor(comparisonType, leftExpression) {
|
|
1187
1887
|
super(ɵFilterType.IsNull, comparisonType, leftExpression);
|
|
1188
1888
|
}
|
|
1889
|
+
/**
|
|
1890
|
+
* @description Flag that indicates if expression is empty or not.
|
|
1891
|
+
*/
|
|
1189
1892
|
get isNull() {
|
|
1190
1893
|
return this.comparisonType === ɵComparisonType.Is_null;
|
|
1191
1894
|
}
|
|
1192
1895
|
/**
|
|
1193
|
-
* Parses isNull filter from json.
|
|
1896
|
+
* @description Parses isNull filter from json.
|
|
1194
1897
|
* @public
|
|
1195
1898
|
*/
|
|
1196
1899
|
static fromJson(dto, filterParser, expressionParser) {
|
|
1197
1900
|
return new ɵIsNullFilter(dto['comparisonType'], expressionParser.fromJson(dto['leftExpression'], filterParser));
|
|
1198
1901
|
}
|
|
1902
|
+
/** {@inheritDoc ɵBaseFilter.clone} */
|
|
1199
1903
|
clone() {
|
|
1200
1904
|
const filter = new ɵIsNullFilter(this.comparisonType, this.leftExpression);
|
|
1201
1905
|
filter.isEnabled = this.isEnabled;
|
|
@@ -1203,11 +1907,6 @@ class ɵIsNullFilter extends ɵSingleFilter {
|
|
|
1203
1907
|
return filter;
|
|
1204
1908
|
}
|
|
1205
1909
|
}
|
|
1206
|
-
/**
|
|
1207
|
-
* @internal
|
|
1208
|
-
* @dontChange
|
|
1209
|
-
*/
|
|
1210
|
-
ɵIsNullFilter._instanceOfKey = 'devkit_IsNullFilter';
|
|
1211
1910
|
__decorate([
|
|
1212
1911
|
Expose(),
|
|
1213
1912
|
__metadata("design:type", Boolean),
|
|
@@ -1215,17 +1914,17 @@ __decorate([
|
|
|
1215
1914
|
], ɵIsNullFilter.prototype, "isNull", null);
|
|
1216
1915
|
|
|
1217
1916
|
/**
|
|
1218
|
-
* Empty Guid constant.
|
|
1219
1917
|
* @public
|
|
1918
|
+
* @description Empty Guid constant.
|
|
1220
1919
|
*/
|
|
1221
1920
|
const ɵEMPTY_GUID = '00000000-0000-0000-0000-000000000000';
|
|
1222
1921
|
/**
|
|
1223
|
-
* Regular expression for Guid validation.
|
|
1922
|
+
* @description Regular expression for Guid validation.
|
|
1224
1923
|
* @public
|
|
1225
1924
|
*/
|
|
1226
1925
|
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');
|
|
1227
1926
|
/**
|
|
1228
|
-
* Generates guid part.
|
|
1927
|
+
* @description Generates guid part.
|
|
1229
1928
|
* @param length Part length.
|
|
1230
1929
|
* @public
|
|
1231
1930
|
*/
|
|
@@ -1238,7 +1937,7 @@ function generateGuidPart(length) {
|
|
|
1238
1937
|
return out;
|
|
1239
1938
|
}
|
|
1240
1939
|
/**
|
|
1241
|
-
* Generates new Guid.
|
|
1940
|
+
* @description Generates new Guid.
|
|
1242
1941
|
* @public
|
|
1243
1942
|
*/
|
|
1244
1943
|
function ɵgenerateGuid() {
|
|
@@ -1251,7 +1950,7 @@ function ɵgenerateGuid() {
|
|
|
1251
1950
|
].join('-');
|
|
1252
1951
|
}
|
|
1253
1952
|
/**
|
|
1254
|
-
* Checks if value is Guid.
|
|
1953
|
+
* @description Checks if value is Guid.
|
|
1255
1954
|
* @param value Value for check.
|
|
1256
1955
|
* @public
|
|
1257
1956
|
*/
|
|
@@ -1259,7 +1958,7 @@ function ɵisGuid(value) {
|
|
|
1259
1958
|
return Boolean(value) && validator.test(value);
|
|
1260
1959
|
}
|
|
1261
1960
|
/**
|
|
1262
|
-
* Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
1961
|
+
* @description Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
1263
1962
|
* @param guid Guid for check.
|
|
1264
1963
|
* @public
|
|
1265
1964
|
*/
|
|
@@ -1269,6 +1968,7 @@ function ɵisEmptyGuid(guid) {
|
|
|
1269
1968
|
|
|
1270
1969
|
/**
|
|
1271
1970
|
* @public
|
|
1971
|
+
* @description An exception thrown when next handler already specified.
|
|
1272
1972
|
*/
|
|
1273
1973
|
class ɵNextHandlerAlreadySpecifiedException extends Error {
|
|
1274
1974
|
constructor() {
|
|
@@ -1276,6 +1976,11 @@ class ɵNextHandlerAlreadySpecifiedException extends Error {
|
|
|
1276
1976
|
}
|
|
1277
1977
|
}
|
|
1278
1978
|
|
|
1979
|
+
/**
|
|
1980
|
+
* @public
|
|
1981
|
+
* @description The exception thrown when trying to pass an empty or null argument.
|
|
1982
|
+
* @extends {Error}
|
|
1983
|
+
*/
|
|
1279
1984
|
class ɵArgumentEmptyException extends Error {
|
|
1280
1985
|
// region Constructors: Public
|
|
1281
1986
|
constructor(argumentName) {
|
|
@@ -1283,6 +1988,11 @@ class ɵArgumentEmptyException extends Error {
|
|
|
1283
1988
|
}
|
|
1284
1989
|
}
|
|
1285
1990
|
|
|
1991
|
+
/**
|
|
1992
|
+
* @public
|
|
1993
|
+
* @description The exception thrown when trying to pass argument that not in range.
|
|
1994
|
+
* @extends {Error}
|
|
1995
|
+
*/
|
|
1286
1996
|
class ɵArgumentOutOfRangeException extends Error {
|
|
1287
1997
|
// region Constructors: Public
|
|
1288
1998
|
constructor(argumentName) {
|
|
@@ -1290,6 +2000,11 @@ class ɵArgumentOutOfRangeException extends Error {
|
|
|
1290
2000
|
}
|
|
1291
2001
|
}
|
|
1292
2002
|
|
|
2003
|
+
/**
|
|
2004
|
+
* @public
|
|
2005
|
+
* @description An exception thrown when trying to retrieve a collection item and it not exists.
|
|
2006
|
+
* @extends {Error}
|
|
2007
|
+
*/
|
|
1293
2008
|
class ɵItemNotFoundException extends Error {
|
|
1294
2009
|
// region Constructors: Public
|
|
1295
2010
|
constructor(key) {
|
|
@@ -1297,19 +2012,41 @@ class ɵItemNotFoundException extends Error {
|
|
|
1297
2012
|
}
|
|
1298
2013
|
}
|
|
1299
2014
|
|
|
2015
|
+
/**
|
|
2016
|
+
* @public
|
|
2017
|
+
* @description Utilities class with various validation methods.
|
|
2018
|
+
*/
|
|
1300
2019
|
class ɵValidationUtilities {
|
|
1301
2020
|
// region Methods: Public
|
|
2021
|
+
/**
|
|
2022
|
+
* @public
|
|
2023
|
+
* @description Checks if argument is empty.
|
|
2024
|
+
* @param argumentName - Argument name.
|
|
2025
|
+
* @param argumentValue - Value of argument.
|
|
2026
|
+
*/
|
|
1302
2027
|
static checkArgumentEmpty(argumentName, argumentValue) {
|
|
1303
2028
|
if (argumentValue === undefined || argumentValue === null) {
|
|
1304
2029
|
throw new ɵArgumentEmptyException(argumentName);
|
|
1305
2030
|
}
|
|
1306
2031
|
}
|
|
2032
|
+
/**
|
|
2033
|
+
* @public
|
|
2034
|
+
* @description Checks if array is empty.
|
|
2035
|
+
* @param argumentName - Argument name.
|
|
2036
|
+
* @param argumentValue - Value of argument.
|
|
2037
|
+
*/
|
|
1307
2038
|
static checkArrayEmpty(argumentName, argumentValue) {
|
|
1308
2039
|
ɵValidationUtilities.checkArgumentEmpty(argumentName, argumentValue);
|
|
1309
2040
|
if (argumentValue.length === 0) {
|
|
1310
2041
|
throw new ɵArgumentEmptyException(argumentName);
|
|
1311
2042
|
}
|
|
1312
2043
|
}
|
|
2044
|
+
/**
|
|
2045
|
+
* @public
|
|
2046
|
+
* @description Checks if string is empty.
|
|
2047
|
+
* @param argumentName - Argument name.
|
|
2048
|
+
* @param argumentValue - Value of argument.
|
|
2049
|
+
*/
|
|
1313
2050
|
static checkStringIsNotEmpty(argumentName, argumentValue) {
|
|
1314
2051
|
this.checkArgumentEmpty(argumentName, argumentValue);
|
|
1315
2052
|
if (argumentValue === '') {
|
|
@@ -1317,6 +2054,13 @@ class ɵValidationUtilities {
|
|
|
1317
2054
|
}
|
|
1318
2055
|
return argumentValue;
|
|
1319
2056
|
}
|
|
2057
|
+
/**
|
|
2058
|
+
* @public
|
|
2059
|
+
* @description Checks if argument in range.
|
|
2060
|
+
* @param argumentName - Argument name.
|
|
2061
|
+
* @param argumentValue - Value of argument.
|
|
2062
|
+
* @param range - Range.
|
|
2063
|
+
*/
|
|
1320
2064
|
static checkArgumentOutOfRange(argumentName, argumentValue, range) {
|
|
1321
2065
|
if (range.begin && argumentValue < range.begin) {
|
|
1322
2066
|
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
@@ -1325,9 +2069,25 @@ class ɵValidationUtilities {
|
|
|
1325
2069
|
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
1326
2070
|
}
|
|
1327
2071
|
}
|
|
2072
|
+
static checkEnumOutOfRange(argumentName, argumentValue, range) {
|
|
2073
|
+
if (!range || !Object.values(range).includes(argumentValue)) {
|
|
2074
|
+
throw new ɵArgumentOutOfRangeException(argumentName);
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
1328
2077
|
}
|
|
1329
2078
|
|
|
2079
|
+
/**
|
|
2080
|
+
* @public
|
|
2081
|
+
* @description Group of filters. Groups of filters can be nested into each other,
|
|
2082
|
+
* i.e. The collection itself can be an element of another collection.
|
|
2083
|
+
* @extends {ɵBaseFilter}
|
|
2084
|
+
*/
|
|
1330
2085
|
class ɵFilterGroup extends ɵBaseFilter {
|
|
2086
|
+
/**
|
|
2087
|
+
* @internal
|
|
2088
|
+
* @dontChange
|
|
2089
|
+
*/
|
|
2090
|
+
static { this._instanceOfKey = 'devkit_FilterGroup'; }
|
|
1331
2091
|
/**
|
|
1332
2092
|
* @internal
|
|
1333
2093
|
* @dontChange
|
|
@@ -1335,6 +2095,10 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1335
2095
|
static get _instanceOfKeys() {
|
|
1336
2096
|
return [...ɵBaseFilter._instanceOfKeys, this._instanceOfKey];
|
|
1337
2097
|
}
|
|
2098
|
+
/**
|
|
2099
|
+
* @public
|
|
2100
|
+
* @description Return collecion of deserialized filters.
|
|
2101
|
+
*/
|
|
1338
2102
|
get items() {
|
|
1339
2103
|
const result = {};
|
|
1340
2104
|
this.filters.forEach((filter, key) => {
|
|
@@ -1344,13 +2108,17 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1344
2108
|
}
|
|
1345
2109
|
constructor(logicalOperation = ɵLogicalOperatorType.And, rootSchemaName) {
|
|
1346
2110
|
super(ɵFilterType.FilterGroup);
|
|
2111
|
+
/**
|
|
2112
|
+
* @public
|
|
2113
|
+
* @description Collection of child filters.
|
|
2114
|
+
*/
|
|
1347
2115
|
this.filters = new Map();
|
|
1348
2116
|
this.logicalOperation = logicalOperation;
|
|
1349
2117
|
this.rootSchemaName = rootSchemaName;
|
|
1350
2118
|
}
|
|
1351
2119
|
/**
|
|
1352
|
-
* Parses filter group from json.
|
|
1353
2120
|
* @public
|
|
2121
|
+
* @description Parses filter group from json.
|
|
1354
2122
|
*/
|
|
1355
2123
|
static fromJson(dto, filterParser) {
|
|
1356
2124
|
const logicalOperation = dto['logicalOperation'];
|
|
@@ -1360,10 +2128,7 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1360
2128
|
});
|
|
1361
2129
|
return group;
|
|
1362
2130
|
}
|
|
1363
|
-
/**
|
|
1364
|
-
* Converts instance to json object.
|
|
1365
|
-
* @public
|
|
1366
|
-
*/
|
|
2131
|
+
/** {@inheritDoc ɵSerializable.toJson} */
|
|
1367
2132
|
toJson() {
|
|
1368
2133
|
const result = {};
|
|
1369
2134
|
result['filterType'] = this.filterType;
|
|
@@ -1382,7 +2147,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1382
2147
|
}));
|
|
1383
2148
|
}
|
|
1384
2149
|
/**
|
|
1385
|
-
*
|
|
2150
|
+
* @public
|
|
2151
|
+
* @description Returns filter item by index.
|
|
1386
2152
|
* @param index Item index.
|
|
1387
2153
|
* @returns Filter.
|
|
1388
2154
|
*/
|
|
@@ -1390,7 +2156,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1390
2156
|
return this.items[Object.keys(this.items)[index]];
|
|
1391
2157
|
}
|
|
1392
2158
|
/**
|
|
1393
|
-
*
|
|
2159
|
+
* @public
|
|
2160
|
+
* @description Creates and adds compare filter by value.
|
|
1394
2161
|
* @param comparisonType Comparison type.
|
|
1395
2162
|
* @param columnPath Column path.
|
|
1396
2163
|
* @param parameterValue Parameter value.
|
|
@@ -1403,7 +2170,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1403
2170
|
this.add(filter, filterKey);
|
|
1404
2171
|
}
|
|
1405
2172
|
/**
|
|
1406
|
-
*
|
|
2173
|
+
* @public
|
|
2174
|
+
* @description Creates and adds in filter by values.
|
|
1407
2175
|
* @param comparisonType Comparison type.
|
|
1408
2176
|
* @param columnPath Column path.
|
|
1409
2177
|
* @param parameterValues Parameter values.
|
|
@@ -1416,7 +2184,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1416
2184
|
this.add(filter, filterKey);
|
|
1417
2185
|
}
|
|
1418
2186
|
/**
|
|
1419
|
-
*
|
|
2187
|
+
* @public
|
|
2188
|
+
* @description Creates and adds in filter for primary column.
|
|
1420
2189
|
* @param primaryColumnValues Primary column values.
|
|
1421
2190
|
* @param filterKey Filter key.
|
|
1422
2191
|
*/
|
|
@@ -1426,13 +2195,20 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1426
2195
|
const filter = new ɵInFilter(ɵComparisonType.Equal, leftExpression, expressions);
|
|
1427
2196
|
this.add(filter, filterKey);
|
|
1428
2197
|
}
|
|
2198
|
+
/**
|
|
2199
|
+
* @public
|
|
2200
|
+
* @description Creates and adds null filter.
|
|
2201
|
+
* @param columnPath Path of column.
|
|
2202
|
+
* @param filterKey Filter key.
|
|
2203
|
+
*/
|
|
1429
2204
|
addSchemaColumnIsNullFilter(columnPath, filterKey) {
|
|
1430
2205
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1431
2206
|
const filter = new ɵIsNullFilter(ɵComparisonType.Is_null, leftExpression);
|
|
1432
2207
|
this.add(filter, filterKey);
|
|
1433
2208
|
}
|
|
1434
2209
|
/**
|
|
1435
|
-
*
|
|
2210
|
+
* @public
|
|
2211
|
+
* @description Creates and adds not null filter.
|
|
1436
2212
|
* @param columnPath Column path.
|
|
1437
2213
|
* @param filterKey Filter key.
|
|
1438
2214
|
*/
|
|
@@ -1442,7 +2218,8 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1442
2218
|
this.add(filter, filterKey);
|
|
1443
2219
|
}
|
|
1444
2220
|
/**
|
|
1445
|
-
*
|
|
2221
|
+
* @public
|
|
2222
|
+
* @description Creates and adds filter between less value and greater value.
|
|
1446
2223
|
* @param columnPath Column path.
|
|
1447
2224
|
* @param lessParamValue Less parameter value.
|
|
1448
2225
|
* @param greaterParamValue Greater parameter value.
|
|
@@ -1455,21 +2232,45 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1455
2232
|
const filter = new ɵBetweenFilter(leftExpression, rightLessExpression, rightGreaterExpression);
|
|
1456
2233
|
this.add(filter, filterKey);
|
|
1457
2234
|
}
|
|
2235
|
+
/**
|
|
2236
|
+
* @public
|
|
2237
|
+
* @description Creates and adds exists filter.
|
|
2238
|
+
* @param columnPath Column path.
|
|
2239
|
+
* @param subFilters Filters for exists expression.
|
|
2240
|
+
* @param filterKey Filter key.
|
|
2241
|
+
*/
|
|
1458
2242
|
addExistsFilter(columnPath, subFilters, filterKey) {
|
|
1459
2243
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1460
2244
|
const filter = new ɵExistsFilter(leftExpression, subFilters);
|
|
1461
2245
|
this.add(filter, filterKey);
|
|
1462
2246
|
}
|
|
2247
|
+
/**
|
|
2248
|
+
* @public
|
|
2249
|
+
* @description Creates and adds not exists filter.
|
|
2250
|
+
* @param columnPath Column path.
|
|
2251
|
+
* @param subFilters Filters for exist expression.
|
|
2252
|
+
* @param filterKey Filter key.
|
|
2253
|
+
*/
|
|
1463
2254
|
addNotExistsFilter(columnPath, subFilters, filterKey) {
|
|
1464
2255
|
const leftExpression = new ɵColumnExpression({ columnPath });
|
|
1465
2256
|
const filter = new ɵExistsFilter(leftExpression, subFilters, ɵComparisonType.Not_exists);
|
|
1466
2257
|
this.add(filter, filterKey);
|
|
1467
2258
|
}
|
|
2259
|
+
/**
|
|
2260
|
+
* @public
|
|
2261
|
+
* @description Adds filter.
|
|
2262
|
+
* @param filter Instance of filter.
|
|
2263
|
+
* @param filterKey Filter key.
|
|
2264
|
+
*/
|
|
1468
2265
|
add(filter, filterKey) {
|
|
1469
2266
|
ɵValidationUtilities.checkArgumentEmpty('filter', filter);
|
|
1470
2267
|
const key = filterKey || ɵgenerateGuid();
|
|
1471
2268
|
this.filters.set(key, filter);
|
|
1472
2269
|
}
|
|
2270
|
+
/**
|
|
2271
|
+
* @public
|
|
2272
|
+
* @description Clones instance.
|
|
2273
|
+
*/
|
|
1473
2274
|
clone() {
|
|
1474
2275
|
const filterGroup = new ɵFilterGroup(this.logicalOperation, this.rootSchemaName);
|
|
1475
2276
|
this.filters.forEach((filter, filterKey) => {
|
|
@@ -1495,11 +2296,6 @@ class ɵFilterGroup extends ɵBaseFilter {
|
|
|
1495
2296
|
return result;
|
|
1496
2297
|
}
|
|
1497
2298
|
}
|
|
1498
|
-
/**
|
|
1499
|
-
* @internal
|
|
1500
|
-
* @dontChange
|
|
1501
|
-
*/
|
|
1502
|
-
ɵFilterGroup._instanceOfKey = 'devkit_FilterGroup';
|
|
1503
2299
|
__decorate([
|
|
1504
2300
|
Exclude(),
|
|
1505
2301
|
__metadata("design:type", Object)
|
|
@@ -1510,7 +2306,17 @@ __decorate([
|
|
|
1510
2306
|
__metadata("design:paramtypes", [])
|
|
1511
2307
|
], ɵFilterGroup.prototype, "items", null);
|
|
1512
2308
|
|
|
2309
|
+
/**
|
|
2310
|
+
* @public
|
|
2311
|
+
* @description The class that defines the sub query expression.
|
|
2312
|
+
* @extends {ɵBaseExpression}
|
|
2313
|
+
*/
|
|
1513
2314
|
class ɵSubQueryExpression extends ɵBaseExpression {
|
|
2315
|
+
/**
|
|
2316
|
+
* @internal
|
|
2317
|
+
* @dontChange
|
|
2318
|
+
*/
|
|
2319
|
+
static { this._instanceOfKey = 'devkit_SubQueryExpression'; }
|
|
1514
2320
|
/**
|
|
1515
2321
|
* @internal
|
|
1516
2322
|
* @dontChange
|
|
@@ -1520,6 +2326,9 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1520
2326
|
}
|
|
1521
2327
|
constructor(config) {
|
|
1522
2328
|
super(config);
|
|
2329
|
+
/**
|
|
2330
|
+
* @description Type of expression.
|
|
2331
|
+
*/
|
|
1523
2332
|
this.expressionType = ɵExpressionType.SubQuery;
|
|
1524
2333
|
this.columnPath = config?.columnPath;
|
|
1525
2334
|
const subFilters = config?.subFilters;
|
|
@@ -1551,9 +2360,11 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1551
2360
|
});
|
|
1552
2361
|
return expression;
|
|
1553
2362
|
}
|
|
2363
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
1554
2364
|
clone() {
|
|
1555
2365
|
return new ɵSubQueryExpression(this);
|
|
1556
2366
|
}
|
|
2367
|
+
/** {@inheritDoc ɵBaseExpression.toJson} */
|
|
1557
2368
|
toJson() {
|
|
1558
2369
|
const result = super.toJson();
|
|
1559
2370
|
if (this.subFilters) {
|
|
@@ -1573,13 +2384,18 @@ class ɵSubQueryExpression extends ɵBaseExpression {
|
|
|
1573
2384
|
];
|
|
1574
2385
|
}
|
|
1575
2386
|
}
|
|
2387
|
+
|
|
1576
2388
|
/**
|
|
1577
|
-
* @
|
|
1578
|
-
* @
|
|
2389
|
+
* @public
|
|
2390
|
+
* @description A class that describes expression with aggregation sub query.
|
|
2391
|
+
* @extends {ɵSubQueryExpression}
|
|
1579
2392
|
*/
|
|
1580
|
-
ɵSubQueryExpression._instanceOfKey = 'devkit_SubQueryExpression';
|
|
1581
|
-
|
|
1582
2393
|
class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
2394
|
+
/**
|
|
2395
|
+
* @internal
|
|
2396
|
+
* @dontChange
|
|
2397
|
+
*/
|
|
2398
|
+
static { this._instanceOfKey = 'devkit_AggregationSubQueryExpression'; }
|
|
1583
2399
|
/**
|
|
1584
2400
|
* @internal
|
|
1585
2401
|
* @dontChange
|
|
@@ -1605,19 +2421,15 @@ class ɵAggregationSubQueryExpression extends ɵSubQueryExpression {
|
|
|
1605
2421
|
});
|
|
1606
2422
|
return expression;
|
|
1607
2423
|
}
|
|
2424
|
+
/** {@inheritDoc ɵBaseExpression.clone} */
|
|
1608
2425
|
clone() {
|
|
1609
2426
|
return new ɵAggregationSubQueryExpression(this);
|
|
1610
2427
|
}
|
|
1611
2428
|
}
|
|
1612
|
-
/**
|
|
1613
|
-
* @internal
|
|
1614
|
-
* @dontChange
|
|
1615
|
-
*/
|
|
1616
|
-
ɵAggregationSubQueryExpression._instanceOfKey = 'devkit_AggregationSubQueryExpression';
|
|
1617
2429
|
|
|
1618
2430
|
/**
|
|
1619
|
-
* Function expression resolver.
|
|
1620
2431
|
* @public
|
|
2432
|
+
* @description Function expression resolver.
|
|
1621
2433
|
*/
|
|
1622
2434
|
class FunctionExpressionResolver {
|
|
1623
2435
|
static resolve(dto) {
|
|
@@ -1633,10 +2445,17 @@ class FunctionExpressionResolver {
|
|
|
1633
2445
|
}
|
|
1634
2446
|
}
|
|
1635
2447
|
/**
|
|
1636
|
-
* Expression resolver.
|
|
2448
|
+
* @description Expression resolver.
|
|
1637
2449
|
* @public
|
|
1638
2450
|
*/
|
|
1639
2451
|
class ɵExpressionResolver {
|
|
2452
|
+
/**
|
|
2453
|
+
* @public
|
|
2454
|
+
* @description Resolves class of expression.
|
|
2455
|
+
* @param expressionType - Type of expression.
|
|
2456
|
+
* @param dto - Serialized object.
|
|
2457
|
+
* @return Class of expression.
|
|
2458
|
+
*/
|
|
1640
2459
|
static resolve(expressionType, dto) {
|
|
1641
2460
|
const expressionClass = {
|
|
1642
2461
|
[ɵExpressionType.SchemaColumn]: ɵColumnExpression,
|
|
@@ -1650,13 +2469,14 @@ class ɵExpressionResolver {
|
|
|
1650
2469
|
}
|
|
1651
2470
|
|
|
1652
2471
|
/**
|
|
1653
|
-
* Expression parser.
|
|
1654
2472
|
* @public
|
|
2473
|
+
* @description Expression parser.
|
|
2474
|
+
* @extends {ɵBaseExpressionParser}
|
|
1655
2475
|
*/
|
|
1656
2476
|
class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
1657
2477
|
/**
|
|
1658
|
-
* Parses expression from json.
|
|
1659
2478
|
* @public
|
|
2479
|
+
* @description Parses expression from json.
|
|
1660
2480
|
*/
|
|
1661
2481
|
static fromJson(dto, filterParser) {
|
|
1662
2482
|
const expressionType = dto['expressionType'];
|
|
@@ -1664,8 +2484,16 @@ class ɵExpressionParser extends ɵBaseExpressionParser {
|
|
|
1664
2484
|
}
|
|
1665
2485
|
}
|
|
1666
2486
|
|
|
1667
|
-
|
|
2487
|
+
/**
|
|
2488
|
+
* @internal
|
|
2489
|
+
*/
|
|
2490
|
+
const ɵEXPRESSION_TYPE_MOCK = 0;
|
|
1668
2491
|
class ɵExpressionMock extends ɵBaseExpression {
|
|
2492
|
+
/**
|
|
2493
|
+
* @internal
|
|
2494
|
+
* @dontChange
|
|
2495
|
+
*/
|
|
2496
|
+
static { this._instanceOfKey = 'devkit_ExpressionMock'; }
|
|
1669
2497
|
/**
|
|
1670
2498
|
* @internal
|
|
1671
2499
|
* @dontChange
|
|
@@ -1691,13 +2519,13 @@ class ɵExpressionMock extends ɵBaseExpression {
|
|
|
1691
2519
|
return [];
|
|
1692
2520
|
}
|
|
1693
2521
|
}
|
|
1694
|
-
/**
|
|
1695
|
-
* @internal
|
|
1696
|
-
* @dontChange
|
|
1697
|
-
*/
|
|
1698
|
-
ɵExpressionMock._instanceOfKey = 'devkit_ExpressionMock';
|
|
1699
2522
|
|
|
1700
2523
|
class ɵFilterMock extends ɵBaseFilter {
|
|
2524
|
+
/**
|
|
2525
|
+
* @internal
|
|
2526
|
+
* @dontChange
|
|
2527
|
+
*/
|
|
2528
|
+
static { this._instanceOfKey = 'devkit_FilterMock'; }
|
|
1701
2529
|
/**
|
|
1702
2530
|
* @internal
|
|
1703
2531
|
* @dontChange
|
|
@@ -1722,12 +2550,10 @@ class ɵFilterMock extends ɵBaseFilter {
|
|
|
1722
2550
|
return [];
|
|
1723
2551
|
}
|
|
1724
2552
|
}
|
|
2553
|
+
|
|
1725
2554
|
/**
|
|
1726
2555
|
* @internal
|
|
1727
|
-
* @dontChange
|
|
1728
2556
|
*/
|
|
1729
|
-
ɵFilterMock._instanceOfKey = 'devkit_FilterMock';
|
|
1730
|
-
|
|
1731
2557
|
const ɵparserMock = {
|
|
1732
2558
|
fromJson: (data) => ({
|
|
1733
2559
|
...data,
|
|
@@ -1737,20 +2563,31 @@ const ɵparserMock = {
|
|
|
1737
2563
|
};
|
|
1738
2564
|
|
|
1739
2565
|
/**
|
|
1740
|
-
* Filter parser interface
|
|
1741
2566
|
* @public
|
|
2567
|
+
* @description Filter parser interface.
|
|
1742
2568
|
*/
|
|
1743
2569
|
class ɵBaseFilterParser {
|
|
2570
|
+
/**
|
|
2571
|
+
* @description Creates filter from JSON.
|
|
2572
|
+
* @param dto - Serialized filter.
|
|
2573
|
+
* @return Instance of filter.
|
|
2574
|
+
*/
|
|
1744
2575
|
static fromJson(dto) {
|
|
1745
2576
|
throw new Error('not implemented');
|
|
1746
2577
|
}
|
|
1747
2578
|
}
|
|
1748
2579
|
|
|
1749
2580
|
/**
|
|
1750
|
-
* Filter resolver.
|
|
1751
2581
|
* @public
|
|
2582
|
+
* @description Filter resolver.
|
|
1752
2583
|
*/
|
|
1753
2584
|
class ɵFilterResolver {
|
|
2585
|
+
/**
|
|
2586
|
+
* @public
|
|
2587
|
+
* @description Resolves class of filter.
|
|
2588
|
+
* @param filterType - Type of filter.
|
|
2589
|
+
* @return Class of filter.
|
|
2590
|
+
*/
|
|
1754
2591
|
static resolve(filterType) {
|
|
1755
2592
|
const filterClass = {
|
|
1756
2593
|
[ɵFilterType.Compare]: ɵCompareFilter,
|
|
@@ -1765,10 +2602,14 @@ class ɵFilterResolver {
|
|
|
1765
2602
|
}
|
|
1766
2603
|
|
|
1767
2604
|
/**
|
|
1768
|
-
* Filter parser.
|
|
1769
2605
|
* @public
|
|
2606
|
+
* @description Filter parser.
|
|
1770
2607
|
*/
|
|
1771
2608
|
class ɵFilterParser extends ɵBaseFilterParser {
|
|
2609
|
+
/**
|
|
2610
|
+
* @description Creates filter from JSON.
|
|
2611
|
+
* @param dto - Serialized filter.
|
|
2612
|
+
*/
|
|
1772
2613
|
static fromJson(dto) {
|
|
1773
2614
|
const filterType = dto['filterType'];
|
|
1774
2615
|
const isEnabled = dto['isEnabled'];
|
|
@@ -1780,10 +2621,16 @@ class ɵFilterParser extends ɵBaseFilterParser {
|
|
|
1780
2621
|
}
|
|
1781
2622
|
}
|
|
1782
2623
|
|
|
2624
|
+
/**
|
|
2625
|
+
* @internal
|
|
2626
|
+
*/
|
|
1783
2627
|
const ɵDEFAULT_FILTER_PLAIN_OBJ = {
|
|
1784
2628
|
isEnabled: true,
|
|
1785
2629
|
trimDateTimeParameterToDate: false,
|
|
1786
2630
|
};
|
|
2631
|
+
/**
|
|
2632
|
+
* @internal
|
|
2633
|
+
*/
|
|
1787
2634
|
function ɵgetFilterPlainObj(filterPlainObj) {
|
|
1788
2635
|
return {
|
|
1789
2636
|
...ɵDEFAULT_FILTER_PLAIN_OBJ,
|
|
@@ -1791,10 +2638,24 @@ function ɵgetFilterPlainObj(filterPlainObj) {
|
|
|
1791
2638
|
};
|
|
1792
2639
|
}
|
|
1793
2640
|
|
|
2641
|
+
/**
|
|
2642
|
+
* @public
|
|
2643
|
+
* @abstract
|
|
2644
|
+
* @classdesc Class contains info about column for query.
|
|
2645
|
+
*/
|
|
1794
2646
|
class ɵBaseQueryColumn {
|
|
1795
2647
|
constructor(expression) {
|
|
2648
|
+
/**
|
|
2649
|
+
* @description Order direction.
|
|
2650
|
+
*/
|
|
1796
2651
|
this.orderDirection = ɵOrderDirection.None;
|
|
2652
|
+
/**
|
|
2653
|
+
* @description Column order position.
|
|
2654
|
+
*/
|
|
1797
2655
|
this.orderPosition = -1;
|
|
2656
|
+
/**
|
|
2657
|
+
* @description If true then column data will be present in the result set.
|
|
2658
|
+
*/
|
|
1798
2659
|
this.isVisible = true;
|
|
1799
2660
|
this.expression = expression;
|
|
1800
2661
|
}
|
|
@@ -1840,6 +2701,11 @@ class ɵBaseQueryColumn {
|
|
|
1840
2701
|
}
|
|
1841
2702
|
}
|
|
1842
2703
|
|
|
2704
|
+
/**
|
|
2705
|
+
* @public
|
|
2706
|
+
* @classdesc Class contains info about column with arithmetic operation.
|
|
2707
|
+
* @extends {ɵBaseQueryColumn}
|
|
2708
|
+
*/
|
|
1843
2709
|
class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
1844
2710
|
// region Constructors: Public
|
|
1845
2711
|
constructor(arithmeticOperation, leftArithmeticOperand, rightArithmeticOperand) {
|
|
@@ -1847,6 +2713,11 @@ class ɵArithmeticQueryColumn extends ɵBaseQueryColumn {
|
|
|
1847
2713
|
}
|
|
1848
2714
|
}
|
|
1849
2715
|
|
|
2716
|
+
/**
|
|
2717
|
+
* @public
|
|
2718
|
+
* @classdesc Class contains info about common column from entity.
|
|
2719
|
+
* @extends {ɵBaseQueryColumn}
|
|
2720
|
+
*/
|
|
1850
2721
|
class ɵEntityQueryColumn extends ɵBaseQueryColumn {
|
|
1851
2722
|
// region Constructors: Public
|
|
1852
2723
|
constructor(columnPath) {
|
|
@@ -1854,6 +2725,11 @@ class ɵEntityQueryColumn extends ɵBaseQueryColumn {
|
|
|
1854
2725
|
}
|
|
1855
2726
|
}
|
|
1856
2727
|
|
|
2728
|
+
/**
|
|
2729
|
+
* @public
|
|
2730
|
+
* @classdesc Class contains info about column that contains parameter.
|
|
2731
|
+
* @extends {ɵBaseQueryColumn}
|
|
2732
|
+
*/
|
|
1857
2733
|
class ɵParameterQueryColumn extends ɵBaseQueryColumn {
|
|
1858
2734
|
// region Constructors: Public
|
|
1859
2735
|
constructor(value, dataValueType) {
|
|
@@ -1861,6 +2737,11 @@ class ɵParameterQueryColumn extends ɵBaseQueryColumn {
|
|
|
1861
2737
|
}
|
|
1862
2738
|
}
|
|
1863
2739
|
|
|
2740
|
+
/**
|
|
2741
|
+
* @public
|
|
2742
|
+
* @classdesc Class contains info about column with sub query and aggregation.
|
|
2743
|
+
* @extends {ɵBaseQueryColumn}
|
|
2744
|
+
*/
|
|
1864
2745
|
class ɵAggregationSubQueryColumn extends ɵBaseQueryColumn {
|
|
1865
2746
|
// region Constructors: Public
|
|
1866
2747
|
constructor(columnPath, aggregationType, subFilters, subOrderDirection, subOrderColumn) {
|
|
@@ -1874,6 +2755,11 @@ class ɵAggregationSubQueryColumn extends ɵBaseQueryColumn {
|
|
|
1874
2755
|
}
|
|
1875
2756
|
}
|
|
1876
2757
|
|
|
2758
|
+
/**
|
|
2759
|
+
* @public
|
|
2760
|
+
* @classdesc Class contains info about column with sub query.
|
|
2761
|
+
* @extends {ɵBaseQueryColumn}
|
|
2762
|
+
*/
|
|
1877
2763
|
class ɵSubQueryColumn extends ɵBaseQueryColumn {
|
|
1878
2764
|
// region Constructors: Public
|
|
1879
2765
|
constructor(columnPath, subFilters) {
|
|
@@ -1881,6 +2767,11 @@ class ɵSubQueryColumn extends ɵBaseQueryColumn {
|
|
|
1881
2767
|
}
|
|
1882
2768
|
}
|
|
1883
2769
|
|
|
2770
|
+
/**
|
|
2771
|
+
* @public
|
|
2772
|
+
* @classdesc Class contains info about column with aggregation function.
|
|
2773
|
+
* @extends {ɵBaseQueryColumn}
|
|
2774
|
+
*/
|
|
1884
2775
|
class ɵAggregationFunctionColumn extends ɵBaseQueryColumn {
|
|
1885
2776
|
// region Constructors: Public
|
|
1886
2777
|
constructor(aggregationType, aggregationEvalType, functionArgument) {
|
|
@@ -1892,6 +2783,11 @@ class ɵAggregationFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1892
2783
|
}
|
|
1893
2784
|
}
|
|
1894
2785
|
|
|
2786
|
+
/**
|
|
2787
|
+
* @public
|
|
2788
|
+
* @classdesc Class contains info about column with date part.
|
|
2789
|
+
* @extends {ɵBaseQueryColumn}
|
|
2790
|
+
*/
|
|
1895
2791
|
class ɵDatePartFunctionColumn extends ɵBaseQueryColumn {
|
|
1896
2792
|
// region Constructors: Public
|
|
1897
2793
|
constructor(datePartType, functionArgument) {
|
|
@@ -1902,11 +2798,19 @@ class ɵDatePartFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1902
2798
|
}
|
|
1903
2799
|
// endregion
|
|
1904
2800
|
// region Properties: Public
|
|
2801
|
+
/**
|
|
2802
|
+
* @description Part of date.
|
|
2803
|
+
*/
|
|
1905
2804
|
get datePartType() {
|
|
1906
2805
|
return this.expression?.datePartType;
|
|
1907
2806
|
}
|
|
1908
2807
|
}
|
|
1909
2808
|
|
|
2809
|
+
/**
|
|
2810
|
+
* @public
|
|
2811
|
+
* @classdesc Class contains info about column with length function.
|
|
2812
|
+
* @extends {ɵBaseQueryColumn}
|
|
2813
|
+
*/
|
|
1910
2814
|
class ɵLengthFunctionColumn extends ɵBaseQueryColumn {
|
|
1911
2815
|
// region Constructors: Public
|
|
1912
2816
|
constructor(functionArgument) {
|
|
@@ -1914,6 +2818,11 @@ class ɵLengthFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1914
2818
|
}
|
|
1915
2819
|
}
|
|
1916
2820
|
|
|
2821
|
+
/**
|
|
2822
|
+
* @public
|
|
2823
|
+
* @classdesc Class contains info about column with macros function.
|
|
2824
|
+
* @extends {ɵBaseQueryColumn}
|
|
2825
|
+
*/
|
|
1917
2826
|
class ɵMacrosFunctionColumn extends ɵBaseQueryColumn {
|
|
1918
2827
|
// region Constructors: Public
|
|
1919
2828
|
constructor(macrosType) {
|
|
@@ -1921,6 +2830,11 @@ class ɵMacrosFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1921
2830
|
}
|
|
1922
2831
|
}
|
|
1923
2832
|
|
|
2833
|
+
/**
|
|
2834
|
+
* @public
|
|
2835
|
+
* @classdesc Class contains info about column with window function.
|
|
2836
|
+
* @extends {ɵBaseQueryColumn}
|
|
2837
|
+
*/
|
|
1924
2838
|
class ɵWindowFunctionColumn extends ɵBaseQueryColumn {
|
|
1925
2839
|
// region Constructors: Public
|
|
1926
2840
|
constructor(functionArgument) {
|
|
@@ -1928,11 +2842,17 @@ class ɵWindowFunctionColumn extends ɵBaseQueryColumn {
|
|
|
1928
2842
|
}
|
|
1929
2843
|
}
|
|
1930
2844
|
|
|
2845
|
+
/**
|
|
2846
|
+
* @internal
|
|
2847
|
+
*/
|
|
1931
2848
|
const ɵDEFAULT_COLUMN_PLAIN_OBJ = {
|
|
1932
2849
|
isVisible: true,
|
|
1933
2850
|
orderPosition: -1,
|
|
1934
2851
|
orderDirection: ɵOrderDirection.None,
|
|
1935
2852
|
};
|
|
2853
|
+
/**
|
|
2854
|
+
* @internal
|
|
2855
|
+
*/
|
|
1936
2856
|
function ɵgetColumnPlainObj(expressionPlainObj) {
|
|
1937
2857
|
return {
|
|
1938
2858
|
...ɵDEFAULT_COLUMN_PLAIN_OBJ,
|
|
@@ -1942,6 +2862,7 @@ function ɵgetColumnPlainObj(expressionPlainObj) {
|
|
|
1942
2862
|
|
|
1943
2863
|
/**
|
|
1944
2864
|
* @public
|
|
2865
|
+
* @description The base class of the data request. Implements {@link ɵMetadataProvider}
|
|
1945
2866
|
*/
|
|
1946
2867
|
class ɵBaseQuery {
|
|
1947
2868
|
// region Constructors: Protected
|
|
@@ -1953,6 +2874,7 @@ class ɵBaseQuery {
|
|
|
1953
2874
|
}
|
|
1954
2875
|
// endregion
|
|
1955
2876
|
// region Methods: Public
|
|
2877
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
1956
2878
|
getMetadata() {
|
|
1957
2879
|
return classToPlain(this, { exposeUnsetFields: false, excludePrefixes: ['_'] });
|
|
1958
2880
|
}
|
|
@@ -1960,15 +2882,25 @@ class ɵBaseQuery {
|
|
|
1960
2882
|
|
|
1961
2883
|
/**
|
|
1962
2884
|
* @public
|
|
2885
|
+
* @description The base class of the filtered data request.
|
|
2886
|
+
* @extends {ɵBaseQuery}
|
|
1963
2887
|
*/
|
|
1964
2888
|
class ɵBaseFilterableQuery extends ɵBaseQuery {
|
|
1965
2889
|
constructor(operationType, rootSchemaName) {
|
|
1966
2890
|
super(operationType, rootSchemaName);
|
|
2891
|
+
/**
|
|
2892
|
+
* @description Collection of filters.
|
|
2893
|
+
*/
|
|
1967
2894
|
this.filters = new ɵFilterGroup();
|
|
1968
2895
|
}
|
|
2896
|
+
/**
|
|
2897
|
+
* @public
|
|
2898
|
+
* @description Clears all filters.
|
|
2899
|
+
*/
|
|
1969
2900
|
clearFilters() {
|
|
1970
2901
|
this.filters.filters.clear();
|
|
1971
2902
|
}
|
|
2903
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
1972
2904
|
getMetadata() {
|
|
1973
2905
|
return {
|
|
1974
2906
|
...super.getMetadata(),
|
|
@@ -1995,12 +2927,25 @@ __decorate([
|
|
|
1995
2927
|
|
|
1996
2928
|
/**
|
|
1997
2929
|
* @public
|
|
2930
|
+
* @description Type of data query
|
|
1998
2931
|
*/
|
|
1999
2932
|
var ɵQueryOperationType;
|
|
2000
2933
|
(function (ɵQueryOperationType) {
|
|
2934
|
+
/**
|
|
2935
|
+
* @description Select query.
|
|
2936
|
+
*/
|
|
2001
2937
|
ɵQueryOperationType[ɵQueryOperationType["Select"] = 0] = "Select";
|
|
2938
|
+
/**
|
|
2939
|
+
* @description Insert query.
|
|
2940
|
+
*/
|
|
2002
2941
|
ɵQueryOperationType[ɵQueryOperationType["Insert"] = 1] = "Insert";
|
|
2942
|
+
/**
|
|
2943
|
+
* @description Edit query.
|
|
2944
|
+
*/
|
|
2003
2945
|
ɵQueryOperationType[ɵQueryOperationType["Update"] = 2] = "Update";
|
|
2946
|
+
/**
|
|
2947
|
+
* @description Delete query.
|
|
2948
|
+
*/
|
|
2004
2949
|
ɵQueryOperationType[ɵQueryOperationType["Delete"] = 3] = "Delete";
|
|
2005
2950
|
// Batch,
|
|
2006
2951
|
// ListSelect,
|
|
@@ -2010,6 +2955,8 @@ var ɵQueryOperationType;
|
|
|
2010
2955
|
|
|
2011
2956
|
/**
|
|
2012
2957
|
* @public
|
|
2958
|
+
* @description Request to delete data.
|
|
2959
|
+
* @extends {ɵBaseFilterableQuery}
|
|
2013
2960
|
*/
|
|
2014
2961
|
class ɵDeleteQuery extends ɵBaseFilterableQuery {
|
|
2015
2962
|
// region Constructors: Public
|
|
@@ -2020,21 +2967,32 @@ class ɵDeleteQuery extends ɵBaseFilterableQuery {
|
|
|
2020
2967
|
|
|
2021
2968
|
/**
|
|
2022
2969
|
* @public
|
|
2970
|
+
* @description The query class for data fetching.
|
|
2971
|
+
* @extends {ɵBaseFilterableQuery}
|
|
2023
2972
|
*/
|
|
2024
2973
|
class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
2025
2974
|
constructor(rootSchemaName) {
|
|
2026
2975
|
super(ɵQueryOperationType.Select, rootSchemaName);
|
|
2027
2976
|
this._columns = new Map();
|
|
2977
|
+
/**
|
|
2978
|
+
* @description Determines if merge duplicates in query result.
|
|
2979
|
+
*/
|
|
2028
2980
|
this.isDistinct = false;
|
|
2029
2981
|
/**
|
|
2030
|
-
* Number of rows to select.
|
|
2982
|
+
* @description Number of rows to select.
|
|
2031
2983
|
*/
|
|
2032
2984
|
this.rowCount = -1;
|
|
2033
2985
|
/**
|
|
2034
|
-
* Rows count to skip.
|
|
2986
|
+
* @description Rows count to skip.
|
|
2035
2987
|
*/
|
|
2036
2988
|
this.rowsOffset = -1;
|
|
2989
|
+
/**
|
|
2990
|
+
* @description The parameter that determines whether to use the localized data.
|
|
2991
|
+
*/
|
|
2037
2992
|
this.useLocalization = true;
|
|
2993
|
+
/**
|
|
2994
|
+
* @description Represent parameter which determines disabling data in filtering.
|
|
2995
|
+
*/
|
|
2038
2996
|
this.useRecordDeactivation = false;
|
|
2039
2997
|
this._getIsPageable = () => this.rowCount > 0 && this.rowsOffset > -1;
|
|
2040
2998
|
}
|
|
@@ -2046,7 +3004,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2046
3004
|
// endregion
|
|
2047
3005
|
// region Methods: Public
|
|
2048
3006
|
/**
|
|
2049
|
-
*
|
|
3007
|
+
* @public
|
|
3008
|
+
* @description Returns column instance by column alias.
|
|
2050
3009
|
* @param columnAlias Column alias.
|
|
2051
3010
|
* @returns [BaseQueryColumn] Column instance.
|
|
2052
3011
|
*/
|
|
@@ -2057,14 +3016,13 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2057
3016
|
return this.findColumn(columnAlias);
|
|
2058
3017
|
}
|
|
2059
3018
|
/**
|
|
2060
|
-
*
|
|
3019
|
+
* @public
|
|
3020
|
+
* @description Returns column instance by column alias if not found returns null.
|
|
2061
3021
|
*/
|
|
2062
3022
|
findColumn(columnAlias) {
|
|
2063
3023
|
return this._columns.get(columnAlias);
|
|
2064
3024
|
}
|
|
2065
|
-
/**
|
|
2066
|
-
* @inheritDoc
|
|
2067
|
-
*/
|
|
3025
|
+
/** {@inheritDoc ɵMetadataProvider.getMetadata} */
|
|
2068
3026
|
getMetadata() {
|
|
2069
3027
|
return {
|
|
2070
3028
|
...super.getMetadata(),
|
|
@@ -2088,7 +3046,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2088
3046
|
};
|
|
2089
3047
|
}
|
|
2090
3048
|
/**
|
|
2091
|
-
*
|
|
3049
|
+
* @public
|
|
3050
|
+
* @description Add column.
|
|
2092
3051
|
* @param column Column path.
|
|
2093
3052
|
* @param columnAlias Column alias.
|
|
2094
3053
|
* @returns [BaseQueryColumn] Column instance.
|
|
@@ -2098,7 +3057,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2098
3057
|
return column;
|
|
2099
3058
|
}
|
|
2100
3059
|
/**
|
|
2101
|
-
*
|
|
3060
|
+
* @public
|
|
3061
|
+
* @description Add column by column path.
|
|
2102
3062
|
* @param columnPath Column path.
|
|
2103
3063
|
* @param columnAlias Column alias.
|
|
2104
3064
|
* @returns [EntityQueryColumn] Column instance.
|
|
@@ -2110,7 +3070,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2110
3070
|
return column;
|
|
2111
3071
|
}
|
|
2112
3072
|
/**
|
|
2113
|
-
*
|
|
3073
|
+
* @public
|
|
3074
|
+
* @description Add aggregation sub query column.
|
|
2114
3075
|
* @param columnPath Column path.
|
|
2115
3076
|
* @param aggregationType Aggregation type.
|
|
2116
3077
|
* @param subFilters Sub query filters.
|
|
@@ -2123,7 +3084,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2123
3084
|
return column;
|
|
2124
3085
|
}
|
|
2125
3086
|
/**
|
|
2126
|
-
*
|
|
3087
|
+
* @public
|
|
3088
|
+
* @description Add parameter column.
|
|
2127
3089
|
* @param value Parameter value.
|
|
2128
3090
|
* @param dataValueType Parameter data value type.
|
|
2129
3091
|
* @param columnAlias Column alias.
|
|
@@ -2135,7 +3097,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2135
3097
|
return column;
|
|
2136
3098
|
}
|
|
2137
3099
|
/**
|
|
2138
|
-
*
|
|
3100
|
+
* @public
|
|
3101
|
+
* @description Add arithmetic column.
|
|
2139
3102
|
* @param arithmeticOperation Arithmetic operation.
|
|
2140
3103
|
* @param leftArithmeticOperand Left arithmetic operand expression.
|
|
2141
3104
|
* @param rightArithmeticOperand Right arithmetic operand expression.
|
|
@@ -2148,7 +3111,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2148
3111
|
return column;
|
|
2149
3112
|
}
|
|
2150
3113
|
/**
|
|
2151
|
-
*
|
|
3114
|
+
* @public
|
|
3115
|
+
* @description Add macros function column.
|
|
2152
3116
|
* @param queryMacrosType Macros type.
|
|
2153
3117
|
* @param columnAlias Column alias.
|
|
2154
3118
|
* @returns [MacrosFunctionColumn] Column instance.
|
|
@@ -2159,7 +3123,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2159
3123
|
return column;
|
|
2160
3124
|
}
|
|
2161
3125
|
/**
|
|
2162
|
-
*
|
|
3126
|
+
* @public
|
|
3127
|
+
* @description Add date part function column.
|
|
2163
3128
|
* @param columnPath Column path.
|
|
2164
3129
|
* @param datePartType Date part type.
|
|
2165
3130
|
* @param columnAlias Column alias.
|
|
@@ -2172,7 +3137,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2172
3137
|
return column;
|
|
2173
3138
|
}
|
|
2174
3139
|
/**
|
|
2175
|
-
*
|
|
3140
|
+
* @public
|
|
3141
|
+
* @description Add aggregation function column.
|
|
2176
3142
|
* @param columnPath Column path.
|
|
2177
3143
|
* @param aggregationType Aggregation type.
|
|
2178
3144
|
* @param columnAlias Column alias.
|
|
@@ -2186,7 +3152,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2186
3152
|
return column;
|
|
2187
3153
|
}
|
|
2188
3154
|
/**
|
|
2189
|
-
*
|
|
3155
|
+
* @public
|
|
3156
|
+
* @description Add length function column.
|
|
2190
3157
|
* @param columnPath Column path.
|
|
2191
3158
|
* @param columnAlias Column alias.
|
|
2192
3159
|
* @returns [LengthFunctionColumn] Column instance.
|
|
@@ -2198,7 +3165,8 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2198
3165
|
return column;
|
|
2199
3166
|
}
|
|
2200
3167
|
/**
|
|
2201
|
-
*
|
|
3168
|
+
* @public
|
|
3169
|
+
* @description Add window function column.
|
|
2202
3170
|
* @param columnPath Column path.
|
|
2203
3171
|
* @param aggregationType Aggregation type.
|
|
2204
3172
|
* @param columnAlias Column alias.
|
|
@@ -2234,6 +3202,7 @@ class ɵEntitySchemaQuery extends ɵBaseFilterableQuery {
|
|
|
2234
3202
|
|
|
2235
3203
|
/**
|
|
2236
3204
|
* @public
|
|
3205
|
+
* @description Request to insert data.
|
|
2237
3206
|
*/
|
|
2238
3207
|
class ɵInsertQuery extends ɵBaseQuery {
|
|
2239
3208
|
// endregion
|
|
@@ -2245,6 +3214,9 @@ class ɵInsertQuery extends ɵBaseQuery {
|
|
|
2245
3214
|
}
|
|
2246
3215
|
// endregion
|
|
2247
3216
|
// region Properties: Public
|
|
3217
|
+
/**
|
|
3218
|
+
* @description A collection of column values for updating entities.
|
|
3219
|
+
*/
|
|
2248
3220
|
get columnValues() {
|
|
2249
3221
|
return {
|
|
2250
3222
|
items: classToPlain(this._columnValues),
|
|
@@ -2252,6 +3224,14 @@ class ɵInsertQuery extends ɵBaseQuery {
|
|
|
2252
3224
|
}
|
|
2253
3225
|
// endregion
|
|
2254
3226
|
// region Methods: Public
|
|
3227
|
+
/**
|
|
3228
|
+
* @public
|
|
3229
|
+
* @description Adds the value parameter. An instance of the value-parameter is created and
|
|
3230
|
+
* is added to the column values collection.
|
|
3231
|
+
* @param columnName The alias of the column to set value in
|
|
3232
|
+
* @param columnValue The value of the parameter. The value must match the data type.
|
|
3233
|
+
* @param dataValueType The type of the given parameter value.
|
|
3234
|
+
*/
|
|
2255
3235
|
addColumn(columnName, columnValue, dataValueType) {
|
|
2256
3236
|
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2257
3237
|
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
@@ -2265,6 +3245,8 @@ __decorate([
|
|
|
2265
3245
|
|
|
2266
3246
|
/**
|
|
2267
3247
|
* @public
|
|
3248
|
+
* @description Request for data changes.
|
|
3249
|
+
* @extends {ɵBaseFilterableQuery}
|
|
2268
3250
|
*/
|
|
2269
3251
|
class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
2270
3252
|
// endregion
|
|
@@ -2276,12 +3258,15 @@ class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
|
2276
3258
|
// endregion
|
|
2277
3259
|
// region Fields: Public
|
|
2278
3260
|
/**
|
|
2279
|
-
* Flag that indicates whether to force save data.
|
|
3261
|
+
* @description Flag that indicates whether to force save data.
|
|
2280
3262
|
*/
|
|
2281
3263
|
this.isForceUpdate = false;
|
|
2282
3264
|
}
|
|
2283
3265
|
// endregion
|
|
2284
3266
|
// region Properties: Public
|
|
3267
|
+
/**
|
|
3268
|
+
* @description A collection of column values for updating entities.
|
|
3269
|
+
*/
|
|
2285
3270
|
get columnValues() {
|
|
2286
3271
|
return {
|
|
2287
3272
|
items: classToPlain(this._columnValues),
|
|
@@ -2289,6 +3274,14 @@ class ɵUpdateQuery extends ɵBaseFilterableQuery {
|
|
|
2289
3274
|
}
|
|
2290
3275
|
// endregion
|
|
2291
3276
|
// region Methods: Public
|
|
3277
|
+
/**
|
|
3278
|
+
* @public
|
|
3279
|
+
* @description Adds the value parameter. An instance of the value-parameter is created and
|
|
3280
|
+
* is added to the column values collection.
|
|
3281
|
+
* @param columnName The alias of the column to set value in
|
|
3282
|
+
* @param columnValue The value of the parameter. The value must match the data type.
|
|
3283
|
+
* @param dataValueType The type of the given parameter value.
|
|
3284
|
+
*/
|
|
2292
3285
|
addColumn(columnName, columnValue, dataValueType) {
|
|
2293
3286
|
ɵValidationUtilities.checkArgumentEmpty('columnName', columnName);
|
|
2294
3287
|
this._columnValues.set(columnName, new ɵParameterExpression({ value: columnValue, dataValueType }));
|
|
@@ -2302,14 +3295,15 @@ __decorate([
|
|
|
2302
3295
|
|
|
2303
3296
|
/**
|
|
2304
3297
|
* @public
|
|
3298
|
+
* @description The query class for localized data fetching.
|
|
3299
|
+
* @extends {ɵEntitySchemaQuery}
|
|
2305
3300
|
*/
|
|
2306
3301
|
class ɵSelectLocalizationQuery extends ɵEntitySchemaQuery {
|
|
2307
3302
|
}
|
|
2308
3303
|
|
|
2309
3304
|
/**
|
|
2310
3305
|
* @public
|
|
2311
|
-
* @
|
|
2312
|
-
* @describe Base definition of request.
|
|
3306
|
+
* @description Base definition of request.
|
|
2313
3307
|
* @template TEvent
|
|
2314
3308
|
*/
|
|
2315
3309
|
class ɵBaseRequest {
|
|
@@ -2317,16 +3311,81 @@ class ɵBaseRequest {
|
|
|
2317
3311
|
|
|
2318
3312
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2319
3313
|
|
|
3314
|
+
// noinspection NonAsciiCharacters, JSNonASCIINames
|
|
3315
|
+
|
|
3316
|
+
// noinspection NonAsciiCharacters, JSNonASCIINames
|
|
3317
|
+
/**
|
|
3318
|
+
* @public
|
|
3319
|
+
* @classdesc Represents a disposable resource, similar to the execution of Observable. A
|
|
3320
|
+
* Subscription has one important method, `unsubscribe`, that just disposes
|
|
3321
|
+
* the resource held by the subscription.
|
|
3322
|
+
*/
|
|
3323
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3324
|
+
class ɵSubscription {
|
|
3325
|
+
/**
|
|
3326
|
+
* @public
|
|
3327
|
+
* @description A flag to indicate whether this Subscription has already been unsubscribed.
|
|
3328
|
+
*/
|
|
3329
|
+
get closed() {
|
|
3330
|
+
return this._closed;
|
|
3331
|
+
}
|
|
3332
|
+
/**
|
|
3333
|
+
* @param _initialTeardown A function executed as part of the finalization.
|
|
3334
|
+
* process when {@link #unsubscribe} is called.
|
|
3335
|
+
*/
|
|
3336
|
+
constructor(_initialTeardown) {
|
|
3337
|
+
this._initialTeardown = _initialTeardown;
|
|
3338
|
+
this._closed = false;
|
|
3339
|
+
}
|
|
3340
|
+
/**
|
|
3341
|
+
* @public
|
|
3342
|
+
* @description Disposes the resources held by the subscription.
|
|
3343
|
+
*/
|
|
3344
|
+
unsubscribe() {
|
|
3345
|
+
if (!this._closed) {
|
|
3346
|
+
this._closed = true;
|
|
3347
|
+
if (isFunction(this._initialTeardown)) {
|
|
3348
|
+
this._initialTeardown();
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
}
|
|
3353
|
+
|
|
2320
3354
|
/**
|
|
2321
3355
|
* @public
|
|
3356
|
+
* @description Enum for model parameter types.
|
|
2322
3357
|
*/
|
|
2323
3358
|
var ɵModelParameterType;
|
|
2324
3359
|
(function (ɵModelParameterType) {
|
|
3360
|
+
/**
|
|
3361
|
+
* @public
|
|
3362
|
+
* @description Parameter represents primary column value.
|
|
3363
|
+
*/
|
|
2325
3364
|
ɵModelParameterType["PrimaryColumnValue"] = "primaryColumnValue";
|
|
3365
|
+
/**
|
|
3366
|
+
* @public
|
|
3367
|
+
* @description Parameter represents column value.
|
|
3368
|
+
*/
|
|
2326
3369
|
ɵModelParameterType["ColumnValue"] = "columnValue";
|
|
3370
|
+
/**
|
|
3371
|
+
* @public
|
|
3372
|
+
* @description Parameter represents filter value.
|
|
3373
|
+
*/
|
|
2327
3374
|
ɵModelParameterType["Filter"] = "filter";
|
|
3375
|
+
/**
|
|
3376
|
+
* @public
|
|
3377
|
+
* @description Parameter represents primary display value filter.
|
|
3378
|
+
*/
|
|
2328
3379
|
ɵModelParameterType["PrimaryDisplayValueFilter"] = "primaryDisplayValueFilter";
|
|
3380
|
+
/**
|
|
3381
|
+
* @public
|
|
3382
|
+
* @description Parameter is empty.
|
|
3383
|
+
*/
|
|
2329
3384
|
ɵModelParameterType["Empty"] = "empty";
|
|
3385
|
+
/**
|
|
3386
|
+
* @public
|
|
3387
|
+
* @description Parameter is never used.
|
|
3388
|
+
*/
|
|
2330
3389
|
ɵModelParameterType["Never"] = "never";
|
|
2331
3390
|
})(ɵModelParameterType || (ɵModelParameterType = {}));
|
|
2332
3391
|
|
|
@@ -2336,7 +3395,13 @@ var ɵModelParameterType;
|
|
|
2336
3395
|
*/
|
|
2337
3396
|
var ɵSchemaViewMaskRequestAction;
|
|
2338
3397
|
(function (ɵSchemaViewMaskRequestAction) {
|
|
3398
|
+
/**
|
|
3399
|
+
* @description To add task.
|
|
3400
|
+
*/
|
|
2339
3401
|
ɵSchemaViewMaskRequestAction["AddTask"] = "addTask";
|
|
3402
|
+
/**
|
|
3403
|
+
* @description To remove task.
|
|
3404
|
+
*/
|
|
2340
3405
|
ɵSchemaViewMaskRequestAction["RemoveTask"] = "removeTask";
|
|
2341
3406
|
})(ɵSchemaViewMaskRequestAction || (ɵSchemaViewMaskRequestAction = {}));
|
|
2342
3407
|
/**
|
|
@@ -2349,13 +3414,18 @@ class ɵSchemaViewMaskRequest extends ɵBaseRequest {
|
|
|
2349
3414
|
this.action = action;
|
|
2350
3415
|
this.taskName = taskName;
|
|
2351
3416
|
this.$context = $context;
|
|
3417
|
+
/**
|
|
3418
|
+
* @description Request type
|
|
3419
|
+
*/
|
|
2352
3420
|
this.type = 'crt.SchemaViewMaskRequest';
|
|
2353
3421
|
}
|
|
2354
3422
|
}
|
|
2355
3423
|
|
|
3424
|
+
// noinspection NonAsciiCharacters, JSNonASCIINames
|
|
3425
|
+
|
|
2356
3426
|
/**
|
|
2357
3427
|
* Generated bundle index. Do not edit.
|
|
2358
3428
|
*/
|
|
2359
3429
|
|
|
2360
|
-
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 };
|
|
3430
|
+
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, ɵMessageChannelType, ɵModelInPageAction, ɵModelParameterType, ɵNextHandlerAlreadySpecifiedException, ɵOrderDirection, ɵParameterExpression, ɵParameterQueryColumn, ɵPlatformAPIs, ɵQueryMacrosType, ɵQueryOperationType, ɵSchemaViewMaskRequest, ɵSchemaViewMaskRequestAction, ɵSelectLocalizationQuery, ɵSingleFilter, ɵSubQueryColumn, ɵSubQueryExpression, ɵSubscription, ɵUpdateQuery, ɵValidationUtilities, ɵWindowFunctionColumn, ɵWindowFunctionExpression, ɵencodeDate, ɵgenerateGuid, ɵgetColumnPlainObj, ɵgetFilterPlainObj, ɵisEmptyGuid, ɵisGuid, ɵparserMock, ɵtoLocalISOString };
|
|
2361
3431
|
//# sourceMappingURL=creatio-base.mjs.map
|