@creatio-devkit/common 0.834.0 → 0.1000.1
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 +7 -0
- package/LICENSE.md +5 -6
- package/THIRD_PARTY_LICENSES.txt +160 -0
- package/fesm2022/creatio-devkit-common.mjs +59 -8
- package/fesm2022/creatio-devkit-common.mjs.map +1 -1
- package/index.d.ts +121 -2
- package/package.json +6 -17
- package/types/creatio-devkit-common.d.ts +4509 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# 0.1000.1
|
|
2
|
+
- feature - Added theming runtime API: exported `ThemeDefinition` and `ThemeService` with `getAvailableThemes`, `applyTheme`, `canCustomizeBranding`, and `canChangeOwnTheme` methods. Theme applying resolves and applies a theme by id without persisting the user selection; the bundled registry fallback contains the Freedom theme. `canCustomizeBranding` checks the branding-customization license, `canChangeOwnTheme` checks the user's own-theme rights operation.
|
|
3
|
+
- feature - `AiContextService.getContext()` now populates each resolved part with its registered `contextId`. Added required `contextId` field to `BaseContextPart`. Added input-side types `CreatioPageContextPartInput` and `ConstantValuesContextPartInput` (`Omit<..., 'contextId'>`) so `ContextProvider` implementations register parts without supplying the id.
|
|
4
|
+
- feature - Made `title` optional on `ConstantValuesContextPart` so consumers can register value-only context parts without a title.
|
|
5
|
+
- feature - Re-exported `SegmentFilter`, `SegmentFilterComparisonType`, `SegmentFilterDto`, `SegmentFilterOptions`, and `SegmentFilterOptionsDto` from `@creatio/base` so segment-filter types are accessible via `@creatio-devkit/common`.
|
|
6
|
+
- feature - Re-exported `FilterGroupOrigin` and `FilterGroupOriginType` from `@creatio/base` so the filter-group origin types are accessible via `@creatio-devkit/common`.
|
|
7
|
+
- fix - A lazy reference is no longer misidentified when several independently built copies of the library coexist on a page. `ɵFeatureActivationRef` overrides `Symbol.hasInstance` to compare an instance-of key instead of the class, so a feature activation reference created by one copy is activated instead of being bootstrapped as a module by another copy, which previously failed the whole request with `TypeError: loadAndBootstrap is not a function`. Bundles are rebuilt independently, so references coming from a bundle that predates the key are matched by their activation method instead.
|
|
1
8
|
# 0.834.0
|
|
2
9
|
- feature - Added types `DataSourceHierarchyConfig` (`ClientSideDataSourceHierarchyConfig` | `ServerSideDataSourceHierarchyConfig`) to configure hierarchical data loading in client-side and server-side modes.
|
|
3
10
|
- feature - Added types `HierarchyState` (`HierarchyStateCollapsed` | `HierarchyStateExpanded`) to represent expanded and collapsed state of hierarchy nodes.
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
Creatio EMEA LTD. Proprietary. All rights reserved.
|
|
2
|
+
Internal Creatio component; not licensed for external use or distribution.
|
|
3
|
+
|
|
4
|
+
This package includes third-party open-source components. See
|
|
5
|
+
THIRD_PARTY_LICENSES.txt for the list of components and their license terms.
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
Third-Party Software Notices and Information for @creatio-devkit/common
|
|
2
|
+
=======================================================================
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
This package declares the following third-party open-source components as
|
|
6
|
+
dependencies and peerDependencies. Each component is redistributed under its
|
|
7
|
+
own license. Creatio EMEA LTD makes no additional claim of copyright over
|
|
8
|
+
these components.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Note: this package also depends on @creatio/base
|
|
12
|
+
(a Creatio-proprietary package). Its own third-party components are
|
|
13
|
+
listed in that package's THIRD_PARTY_LICENSES.txt.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
----------------------------------------------------------------
|
|
17
|
+
Component: reflect-metadata
|
|
18
|
+
Version: ^0.1.13
|
|
19
|
+
Installed: 0.1.14
|
|
20
|
+
Declared: dependency
|
|
21
|
+
License: Apache-2.0
|
|
22
|
+
Source: https://github.com/rbuckton/reflect-metadata
|
|
23
|
+
----------------------------------------------------------------
|
|
24
|
+
|
|
25
|
+
Apache License
|
|
26
|
+
|
|
27
|
+
Version 2.0, January 2004
|
|
28
|
+
|
|
29
|
+
http://www.apache.org/licenses/
|
|
30
|
+
|
|
31
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
32
|
+
|
|
33
|
+
1. Definitions.
|
|
34
|
+
|
|
35
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
36
|
+
|
|
37
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
38
|
+
|
|
39
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
40
|
+
|
|
41
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
42
|
+
|
|
43
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
44
|
+
|
|
45
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
46
|
+
|
|
47
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
48
|
+
|
|
49
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
50
|
+
|
|
51
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
52
|
+
|
|
53
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
54
|
+
|
|
55
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
56
|
+
|
|
57
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
58
|
+
|
|
59
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
60
|
+
|
|
61
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
62
|
+
|
|
63
|
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
64
|
+
|
|
65
|
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
66
|
+
|
|
67
|
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
68
|
+
|
|
69
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
70
|
+
|
|
71
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
72
|
+
|
|
73
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
74
|
+
|
|
75
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
76
|
+
|
|
77
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
78
|
+
|
|
79
|
+
END OF TERMS AND CONDITIONS
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
----------------------------------------------------------------
|
|
83
|
+
Component: lodash
|
|
84
|
+
Version: ^4.17.21
|
|
85
|
+
Installed: 4.18.1
|
|
86
|
+
Declared: dependency
|
|
87
|
+
License: MIT
|
|
88
|
+
Source: lodash/lodash
|
|
89
|
+
----------------------------------------------------------------
|
|
90
|
+
|
|
91
|
+
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
92
|
+
|
|
93
|
+
Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
94
|
+
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
95
|
+
|
|
96
|
+
This software consists of voluntary contributions made by many
|
|
97
|
+
individuals. For exact contribution history, see the revision history
|
|
98
|
+
available at https://github.com/lodash/lodash
|
|
99
|
+
|
|
100
|
+
The following license applies to all parts of this software except as
|
|
101
|
+
documented below:
|
|
102
|
+
|
|
103
|
+
====
|
|
104
|
+
|
|
105
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
106
|
+
a copy of this software and associated documentation files (the
|
|
107
|
+
"Software"), to deal in the Software without restriction, including
|
|
108
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
109
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
110
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
111
|
+
the following conditions:
|
|
112
|
+
|
|
113
|
+
The above copyright notice and this permission notice shall be
|
|
114
|
+
included in all copies or substantial portions of the Software.
|
|
115
|
+
|
|
116
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
117
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
118
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
119
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
120
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
121
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
122
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
123
|
+
|
|
124
|
+
====
|
|
125
|
+
|
|
126
|
+
Copyright and related rights for sample code are waived via CC0. Sample
|
|
127
|
+
code is defined as all source code displayed within the prose of the
|
|
128
|
+
documentation.
|
|
129
|
+
|
|
130
|
+
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
|
131
|
+
|
|
132
|
+
====
|
|
133
|
+
|
|
134
|
+
Files located in the node_modules and vendor directories are externally
|
|
135
|
+
maintained libraries used by this software which have their own
|
|
136
|
+
licenses; we recommend you read them, as their terms may differ from the
|
|
137
|
+
terms above.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
----------------------------------------------------------------
|
|
141
|
+
Component: tslib
|
|
142
|
+
Version: ^2.3.0
|
|
143
|
+
Installed: 2.8.1
|
|
144
|
+
Declared: dependency
|
|
145
|
+
License: 0BSD
|
|
146
|
+
Source: https://github.com/Microsoft/tslib
|
|
147
|
+
----------------------------------------------------------------
|
|
148
|
+
|
|
149
|
+
Copyright (c) Microsoft Corporation.
|
|
150
|
+
|
|
151
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
152
|
+
purpose with or without fee is hereby granted.
|
|
153
|
+
|
|
154
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
155
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
156
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
157
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
158
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
159
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
160
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ɵgenerateGuid as _generateGuid, ɵNextHandlerAlreadySpecifiedException as _NextHandlerAlreadySpecifiedException, ɵAggregationType as _AggregationType, ɵAggregationFunction as _AggregationFunction, ɵAggregationEvalType as _AggregationEvalType, ɵDatePartType as _DatePartType, ɵFunctionType as _FunctionType, ɵOrderDirection as _OrderDirection, ɵBaseRequest as _BaseRequest, ɵSchemaViewMaskRequest as _SchemaViewMaskRequest, ɵSchemaViewMaskRequestAction as _SchemaViewMaskRequestAction, ɵFilterGroup as _FilterGroup, ɵComparisonType as _ComparisonType, ɵModelParameterType as _ModelParameterType } from '@creatio/base';
|
|
2
|
-
export { ɵAggregationEvalType as AggregationEvalType, ɵAggregationFunction as AggregationFunction, ɵAggregationFunctionColumn as AggregationFunctionColumn, ɵAggregationFunctionExpression as AggregationFunctionExpression, ɵAggregationSubQueryColumn as AggregationSubQueryColumn, ɵAggregationSubQueryExpression as AggregationSubQueryExpression, ɵAggregationType as AggregationType, ɵArgumentEmptyException as ArgumentEmptyException, ɵArgumentFunctionExpression as ArgumentFunctionExpression, ɵArgumentOutOfRangeException as ArgumentOutOfRangeException, ɵArithmeticExpression as ArithmeticExpression, ɵArithmeticOperation as ArithmeticOperation, ɵArithmeticQueryColumn as ArithmeticQueryColumn, ɵBaseExpression as BaseExpression, ɵBaseExpressionParser as BaseExpressionParser, ɵBaseFilter as BaseFilter, ɵBaseFilterParser as BaseFilterParser, ɵBaseFilterableQuery as BaseFilterableQuery, ɵBaseQuery as BaseQuery, ɵBaseQueryColumn as BaseQueryColumn, ɵBaseRequest as BaseRequest, ɵBetweenFilter as BetweenFilter, ɵColumnExpression as ColumnExpression, ɵCompareFilter as CompareFilter, ɵComparisonType as ComparisonType, ɵDataSchemaAttributeType as DataSchemaAttributeType, ɵDataSchemaAttributeUsageType as DataSchemaAttributeUsageType, ɵDataSchemaType as DataSchemaType, ɵDataSourceScope as DataSourceScope, ɵDataValueType as DataValueType, ɵDatePartFunctionColumn as DatePartFunctionColumn, ɵDatePartFunctionExpression as DatePartFunctionExpression, ɵDatePartType as DatePartType, ɵDefaultValueSource as DefaultValueSource, ɵDeleteQuery as DeleteQuery, ɵEMPTY_GUID as EMPTY_GUID, ɵEntityQueryColumn as EntityQueryColumn, ɵEntitySchemaQuery as EntitySchemaQuery, ɵExistsFilter as ExistsFilter, ɵExpressionMock as ExpressionMock, ɵExpressionParser as ExpressionParser, ɵExpressionResolver as ExpressionResolver, ɵExpressionType as ExpressionType, ɵFilterGroup as FilterGroup, ɵFilterMock as FilterMock, ɵFilterParser as FilterParser, ɵFilterResolver as FilterResolver, ɵFilterType as FilterType, ɵFunctionExpression as FunctionExpression, ɵFunctionType as FunctionType, ɵInFilter as InFilter, ɵInsertQuery as InsertQuery, ɵIsNullFilter as IsNullFilter, ɵItemNotFoundException as ItemNotFoundException, ɵLengthFunctionColumn as LengthFunctionColumn, ɵLengthFunctionExpression as LengthFunctionExpression, ɵLogicalOperatorType as LogicalOperatorType, ɵMacrosFunctionColumn as MacrosFunctionColumn, ɵMacrosFunctionExpression as MacrosFunctionExpression, ɵMessageChannelType as MessageChannelType, ɵModelInPageAction as ModelInPageAction, ɵModelParameterType as ModelParameterType, ɵNextHandlerAlreadySpecifiedException as NextHandlerAlreadySpecifiedException, ɵOrderDirection as OrderDirection, ɵParameterExpression as ParameterExpression, ɵParameterQueryColumn as ParameterQueryColumn, ɵPlatformAPIs as PlatformAPIs, ɵQueryMacrosType as QueryMacrosType, ɵQueryOperationType as QueryOperationType, ɵSchemaViewMaskRequest as SchemaViewMaskRequest, ɵSchemaViewMaskRequestAction as SchemaViewMaskRequestAction, ɵSelectLocalizationQuery as SelectLocalizationQuery, ɵSingleFilter as SingleFilter, ɵSubQueryColumn as SubQueryColumn, ɵSubQueryExpression as SubQueryExpression, ɵSubscription as Subscription, ɵUpdateQuery as UpdateQuery, ɵValidationUtilities as ValidationUtilities, ɵWindowFunctionColumn as WindowFunctionColumn, ɵWindowFunctionExpression as WindowFunctionExpression, ɵencodeDate as encodeDate, ɵgenerateGuid as generateGuid, ɵisEmptyGuid as isEmptyGuid, ɵisGuid as isGuid, ɵtoLocalISOString as toLocalISOString } from '@creatio/base';
|
|
2
|
+
export { ɵAggregationEvalType as AggregationEvalType, ɵAggregationFunction as AggregationFunction, ɵAggregationFunctionColumn as AggregationFunctionColumn, ɵAggregationFunctionExpression as AggregationFunctionExpression, ɵAggregationSubQueryColumn as AggregationSubQueryColumn, ɵAggregationSubQueryExpression as AggregationSubQueryExpression, ɵAggregationType as AggregationType, ɵArgumentEmptyException as ArgumentEmptyException, ɵArgumentFunctionExpression as ArgumentFunctionExpression, ɵArgumentOutOfRangeException as ArgumentOutOfRangeException, ɵArithmeticExpression as ArithmeticExpression, ɵArithmeticOperation as ArithmeticOperation, ɵArithmeticQueryColumn as ArithmeticQueryColumn, ɵBaseExpression as BaseExpression, ɵBaseExpressionParser as BaseExpressionParser, ɵBaseFilter as BaseFilter, ɵBaseFilterParser as BaseFilterParser, ɵBaseFilterableQuery as BaseFilterableQuery, ɵBaseQuery as BaseQuery, ɵBaseQueryColumn as BaseQueryColumn, ɵBaseRequest as BaseRequest, ɵBetweenFilter as BetweenFilter, ɵColumnExpression as ColumnExpression, ɵCompareFilter as CompareFilter, ɵComparisonType as ComparisonType, ɵDataSchemaAttributeType as DataSchemaAttributeType, ɵDataSchemaAttributeUsageType as DataSchemaAttributeUsageType, ɵDataSchemaType as DataSchemaType, ɵDataSourceScope as DataSourceScope, ɵDataValueType as DataValueType, ɵDatePartFunctionColumn as DatePartFunctionColumn, ɵDatePartFunctionExpression as DatePartFunctionExpression, ɵDatePartType as DatePartType, ɵDefaultValueSource as DefaultValueSource, ɵDeleteQuery as DeleteQuery, ɵEMPTY_GUID as EMPTY_GUID, ɵEntityQueryColumn as EntityQueryColumn, ɵEntitySchemaQuery as EntitySchemaQuery, ɵExistsFilter as ExistsFilter, ɵExpressionMock as ExpressionMock, ɵExpressionParser as ExpressionParser, ɵExpressionResolver as ExpressionResolver, ɵExpressionType as ExpressionType, ɵFilterGroup as FilterGroup, ɵFilterGroupOriginType as FilterGroupOriginType, ɵFilterMock as FilterMock, ɵFilterParser as FilterParser, ɵFilterResolver as FilterResolver, ɵFilterType as FilterType, ɵFunctionExpression as FunctionExpression, ɵFunctionType as FunctionType, ɵInFilter as InFilter, ɵInsertQuery as InsertQuery, ɵIsNullFilter as IsNullFilter, ɵItemNotFoundException as ItemNotFoundException, ɵLengthFunctionColumn as LengthFunctionColumn, ɵLengthFunctionExpression as LengthFunctionExpression, ɵLogicalOperatorType as LogicalOperatorType, ɵMacrosFunctionColumn as MacrosFunctionColumn, ɵMacrosFunctionExpression as MacrosFunctionExpression, ɵMessageChannelType as MessageChannelType, ɵModelInPageAction as ModelInPageAction, ɵModelParameterType as ModelParameterType, ɵNextHandlerAlreadySpecifiedException as NextHandlerAlreadySpecifiedException, ɵOrderDirection as OrderDirection, ɵParameterExpression as ParameterExpression, ɵParameterQueryColumn as ParameterQueryColumn, ɵPlatformAPIs as PlatformAPIs, ɵQueryMacrosType as QueryMacrosType, ɵQueryOperationType as QueryOperationType, ɵSchemaViewMaskRequest as SchemaViewMaskRequest, ɵSchemaViewMaskRequestAction as SchemaViewMaskRequestAction, ɵSegmentFilter as SegmentFilter, ɵSelectLocalizationQuery as SelectLocalizationQuery, ɵSingleFilter as SingleFilter, ɵSubQueryColumn as SubQueryColumn, ɵSubQueryExpression as SubQueryExpression, ɵSubscription as Subscription, ɵUpdateQuery as UpdateQuery, ɵValidationUtilities as ValidationUtilities, ɵWindowFunctionColumn as WindowFunctionColumn, ɵWindowFunctionExpression as WindowFunctionExpression, ɵencodeDate as encodeDate, ɵgenerateGuid as generateGuid, ɵisEmptyGuid as isEmptyGuid, ɵisGuid as isGuid, ɵtoLocalISOString as toLocalISOString } from '@creatio/base';
|
|
3
3
|
import { get, set, upperFirst, camelCase, isEqual, cloneDeep, isEmpty } from 'lodash';
|
|
4
4
|
import 'reflect-metadata';
|
|
5
5
|
import { __decorate, __metadata } from 'tslib';
|
|
@@ -84,6 +84,11 @@ function ɵresetRemoteFeatureActivationTracking() {
|
|
|
84
84
|
* @internal
|
|
85
85
|
*/
|
|
86
86
|
class ɵFeatureActivationRef {
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @dontChange
|
|
90
|
+
*/
|
|
91
|
+
static { this._instanceOfKey = 'devkit_FeatureActivationRef'; }
|
|
87
92
|
#activationPromise;
|
|
88
93
|
#activated = false;
|
|
89
94
|
#activate;
|
|
@@ -99,6 +104,18 @@ class ɵFeatureActivationRef {
|
|
|
99
104
|
this.sourceName = sourceName;
|
|
100
105
|
this.#activate = activate;
|
|
101
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
static [Symbol.hasInstance](instance) {
|
|
111
|
+
const ref = instance;
|
|
112
|
+
const instanceOfKey = ref?.constructor?.['_instanceOfKey'];
|
|
113
|
+
// Bundles are rebuilt independently, so a reference can come from a bundle that predates the
|
|
114
|
+
// key. Such references are matched by their activation method instead.
|
|
115
|
+
return instanceOfKey
|
|
116
|
+
? instanceOfKey === ɵFeatureActivationRef._instanceOfKey
|
|
117
|
+
: typeof ref?.ensureActivated === 'function';
|
|
118
|
+
}
|
|
102
119
|
/**
|
|
103
120
|
* Indicates whether the activation callback has completed successfully.
|
|
104
121
|
*/
|
|
@@ -3072,6 +3089,7 @@ class BaseRequestHandler {
|
|
|
3072
3089
|
}
|
|
3073
3090
|
}
|
|
3074
3091
|
|
|
3092
|
+
const instanceKey = 'AiContextServiceInstance';
|
|
3075
3093
|
/**
|
|
3076
3094
|
* Service for managing AI context parts and providing a unified context.
|
|
3077
3095
|
* This service allows adding, retrieving, and removing context parts, which can be
|
|
@@ -3086,7 +3104,8 @@ class AiContextService {
|
|
|
3086
3104
|
* If the instance does not exist, it will be created.
|
|
3087
3105
|
*/
|
|
3088
3106
|
static get instance() {
|
|
3089
|
-
return
|
|
3107
|
+
return (window[instanceKey] ||
|
|
3108
|
+
(window[instanceKey] = new AiContextService()));
|
|
3090
3109
|
}
|
|
3091
3110
|
/**
|
|
3092
3111
|
* Generates a unique identifier for a context part.
|
|
@@ -3126,15 +3145,16 @@ class AiContextService {
|
|
|
3126
3145
|
if (!this._contextParts || this._contextParts.length === 0) {
|
|
3127
3146
|
return [];
|
|
3128
3147
|
}
|
|
3129
|
-
const resolved = await Promise.all(this._contextParts.map((c) => c.provider()));
|
|
3148
|
+
const resolved = await Promise.all(this._contextParts.map(async (c) => ({ id: c.id, value: await c.provider() })));
|
|
3130
3149
|
return resolved
|
|
3131
|
-
.filter((e) => e !== null)
|
|
3132
|
-
.map((
|
|
3133
|
-
const type =
|
|
3150
|
+
.filter((e) => e.value !== null)
|
|
3151
|
+
.map(({ id, value }) => {
|
|
3152
|
+
const type = value.type;
|
|
3134
3153
|
if (!type || type === 'CreatioPageContextPart' || type === 'ConstantValuesContextPart') {
|
|
3135
3154
|
return {
|
|
3136
|
-
...
|
|
3155
|
+
...value,
|
|
3137
3156
|
type,
|
|
3157
|
+
contextId: id,
|
|
3138
3158
|
};
|
|
3139
3159
|
}
|
|
3140
3160
|
throw new Error(`Invalid context part type: ${type}`);
|
|
@@ -3678,6 +3698,37 @@ __decorate([
|
|
|
3678
3698
|
__metadata("design:type", Function)
|
|
3679
3699
|
], SysValuesService.prototype, "loadSysValues", void 0);
|
|
3680
3700
|
|
|
3701
|
+
/**
|
|
3702
|
+
* @public
|
|
3703
|
+
* @classdesc Service to retrieve available themes using handler chain.
|
|
3704
|
+
* @extends {BaseHandlerChainService}
|
|
3705
|
+
*/
|
|
3706
|
+
class ThemeService extends BaseHandlerChainService {
|
|
3707
|
+
constructor() {
|
|
3708
|
+
super(...arguments);
|
|
3709
|
+
/**
|
|
3710
|
+
* @internal
|
|
3711
|
+
*/
|
|
3712
|
+
this.requestType = 'crt.ThemeService';
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3715
|
+
__decorate([
|
|
3716
|
+
ImplementUsingHandlerChain(),
|
|
3717
|
+
__metadata("design:type", Function)
|
|
3718
|
+
], ThemeService.prototype, "getAvailableThemes", void 0);
|
|
3719
|
+
__decorate([
|
|
3720
|
+
ImplementUsingHandlerChain(),
|
|
3721
|
+
__metadata("design:type", Function)
|
|
3722
|
+
], ThemeService.prototype, "applyTheme", void 0);
|
|
3723
|
+
__decorate([
|
|
3724
|
+
ImplementUsingHandlerChain(),
|
|
3725
|
+
__metadata("design:type", Function)
|
|
3726
|
+
], ThemeService.prototype, "canCustomizeBranding", void 0);
|
|
3727
|
+
__decorate([
|
|
3728
|
+
ImplementUsingHandlerChain(),
|
|
3729
|
+
__metadata("design:type", Function)
|
|
3730
|
+
], ThemeService.prototype, "canChangeOwnTheme", void 0);
|
|
3731
|
+
|
|
3681
3732
|
/**
|
|
3682
3733
|
* @public
|
|
3683
3734
|
* @class TransactionFactoryService
|
|
@@ -3906,5 +3957,5 @@ class UserConsentService {
|
|
|
3906
3957
|
* Generated bundle index. Do not edit.
|
|
3907
3958
|
*/
|
|
3908
3959
|
|
|
3909
|
-
export { AiContextService, BaseInterfaceDesignerItemRegistry, BaseItemRendererRegistry, BaseRequestHandler, BaseRequestsResolver, BaseValidator, BaseViewElementRegistry, BootstrapNotifier, ChatMessageTypeRegistry, ConverterRegistry, CrtChatMessageType, CrtConverter, CrtDesignTimeViewElement, CrtInject, CrtInput, CrtInputRegistrationConfig, CrtInterfaceDesignerItem, CrtMobileInterfaceDesignerItem, CrtMobileViewElement, CrtModule, CrtOutput, CrtRequest, CrtRequestHandler, CrtValidationInput, CrtValidator, CrtViewElement, CrtZoneService, DataRequest, DataSourceLoadType, DesignTimeViewElementRegistry, DesignerToolGroupType, DialogService, FeatureService, FileViewerFactory, FileViewerInstance, HandleViewModelAttributeChangeRequest, HandlerChainService, HandlerChainServicesRegistry, HandlerSourceType, HandlersOrderComparer, HttpClientService, ImplementUsingHandlerChain, InterfaceDesignerItemRegistrationConfig, InterfaceDesignerItemRegistry, InternalRequestHandlerRegistry, InternalRequestHandlerRegistryType, LazyLoadRefsManager, LicenseService, LocalizableValue, MaskService, MessageChannelService, MethodInvokeRequest, MobileInterfaceDesignerItemRegistry, MobileViewElementRegistry, Model, PkgTopology, ProcessEngineService, ProcessStatus, RemoteEntriesRegistry, RemoteEntryType, RequestHandlerRegistryService, RequestRegistryService, RequestsResolver, RightsService, RunProcessRequest, SchemaModalService, SysSetting, SysSettingValue, SysSettingsService, SysValuesService, TransactionFactoryService, UserConsentService, VIEW_ELEMENT_DEFAULT_HEIGHT, ValidatorMapValue, ValidatorRegistry, ViewElementDataGroupType, ViewElementGroupType, ViewElementProperty, ViewElementRegistry, ViewElementRenderStrategy, ViewElementReuseStrategy, ViewModelCollectionActionType, _from, applyLocalizeMetadataFn, bootstrapCrtModule, bootstrapCrtModuleHandlerChainServices, bootstrappedCrtModules, callOnContextCreateHooks, callOnContextDestroyHooks, callOnContextUpdateHooks, checkCrtTypeNamePascalCase, checkIfTypeRegistered, checkOnlyOneRegistration, checkTypeNameFormat, checkTypeNamePascalCase, crtInjectPrefix, crtInputPrefix, crtOutputPrefix, crtValidationInputPrefix, defineRenderConfig, designTimeViewElementRegistryKey, getConverterMetadata, getCrtInputsMetadata, getCrtOutputsMetadata, getCrtValidationInputsMetadata, getDeepModuleDependencies, getDesignTimeViewElementMetadata, getHandlerChainServiceMetadata, getInterfaceDesignerItemMetadata, getMobileInterfaceDesignerItemMetadata, getMobileViewElementMetadata, getModuleMetadata, getRequestHandlerMetadata, getTypeDependencies, getValidatorMetadata, getViewElementMetadata, hasInterfaceDesignerItemMetadata, hasMobileInterfaceDesignerItemMetadata, instantiate, interfaceDesignerItemRegister, interfaceDesignerItemRegistryKey, isClientSideDataSourceHierarchyConfig, isHierarchicalItemExpanded, isServerSideDataSourceHierarchyConfig, localize, matchScopes, mobileInterfaceDesignerItemRegistryKey, mobileViewElementRegistryKey, objectDeepKeys, registerAngularViewElement, registerViewElement, registryKey$1 as registryKey, resetGlobals, setConverterMetadata, setDesignTimeViewElementMetadata, setInterfaceDesignerItemMetadata, setMobileInterfaceDesignerItemMetadata, setMobileViewElementMetadata, setModuleMetadata, setRequestHandlerMetadata, setValidatorMetadata, setViewElementMetadata, toAggregationEval, toAggregationEvalType, toAggregationFunction, toAggregationType, toDatePart, toDatePartType, toNumericFunctionType, toOrderDirection, toPascalCase, toSortDirection, toStringFunctionType, validatorRegistryKey, viewElementRegister, viewElementRegistryKey, ɵBaseRegistry, ɵCrtInterfaceDesignerItem, ɵCrtMobileInterfaceDesignerItem, ɵFeatureActivationRef, ɵLazyModuleRef, ɵcheckTypeNameFormat, ɵinstantiate, ɵloadLazyRef, ɵloadLazyRefs };
|
|
3960
|
+
export { AiContextService, BaseInterfaceDesignerItemRegistry, BaseItemRendererRegistry, BaseRequestHandler, BaseRequestsResolver, BaseValidator, BaseViewElementRegistry, BootstrapNotifier, ChatMessageTypeRegistry, ConverterRegistry, CrtChatMessageType, CrtConverter, CrtDesignTimeViewElement, CrtInject, CrtInput, CrtInputRegistrationConfig, CrtInterfaceDesignerItem, CrtMobileInterfaceDesignerItem, CrtMobileViewElement, CrtModule, CrtOutput, CrtRequest, CrtRequestHandler, CrtValidationInput, CrtValidator, CrtViewElement, CrtZoneService, DataRequest, DataSourceLoadType, DesignTimeViewElementRegistry, DesignerToolGroupType, DialogService, FeatureService, FileViewerFactory, FileViewerInstance, HandleViewModelAttributeChangeRequest, HandlerChainService, HandlerChainServicesRegistry, HandlerSourceType, HandlersOrderComparer, HttpClientService, ImplementUsingHandlerChain, InterfaceDesignerItemRegistrationConfig, InterfaceDesignerItemRegistry, InternalRequestHandlerRegistry, InternalRequestHandlerRegistryType, LazyLoadRefsManager, LicenseService, LocalizableValue, MaskService, MessageChannelService, MethodInvokeRequest, MobileInterfaceDesignerItemRegistry, MobileViewElementRegistry, Model, PkgTopology, ProcessEngineService, ProcessStatus, RemoteEntriesRegistry, RemoteEntryType, RequestHandlerRegistryService, RequestRegistryService, RequestsResolver, RightsService, RunProcessRequest, SchemaModalService, SysSetting, SysSettingValue, SysSettingsService, SysValuesService, ThemeService, TransactionFactoryService, UserConsentService, VIEW_ELEMENT_DEFAULT_HEIGHT, ValidatorMapValue, ValidatorRegistry, ViewElementDataGroupType, ViewElementGroupType, ViewElementProperty, ViewElementRegistry, ViewElementRenderStrategy, ViewElementReuseStrategy, ViewModelCollectionActionType, _from, applyLocalizeMetadataFn, bootstrapCrtModule, bootstrapCrtModuleHandlerChainServices, bootstrappedCrtModules, callOnContextCreateHooks, callOnContextDestroyHooks, callOnContextUpdateHooks, checkCrtTypeNamePascalCase, checkIfTypeRegistered, checkOnlyOneRegistration, checkTypeNameFormat, checkTypeNamePascalCase, crtInjectPrefix, crtInputPrefix, crtOutputPrefix, crtValidationInputPrefix, defineRenderConfig, designTimeViewElementRegistryKey, getConverterMetadata, getCrtInputsMetadata, getCrtOutputsMetadata, getCrtValidationInputsMetadata, getDeepModuleDependencies, getDesignTimeViewElementMetadata, getHandlerChainServiceMetadata, getInterfaceDesignerItemMetadata, getMobileInterfaceDesignerItemMetadata, getMobileViewElementMetadata, getModuleMetadata, getRequestHandlerMetadata, getTypeDependencies, getValidatorMetadata, getViewElementMetadata, hasInterfaceDesignerItemMetadata, hasMobileInterfaceDesignerItemMetadata, instantiate, interfaceDesignerItemRegister, interfaceDesignerItemRegistryKey, isClientSideDataSourceHierarchyConfig, isHierarchicalItemExpanded, isServerSideDataSourceHierarchyConfig, localize, matchScopes, mobileInterfaceDesignerItemRegistryKey, mobileViewElementRegistryKey, objectDeepKeys, registerAngularViewElement, registerViewElement, registryKey$1 as registryKey, resetGlobals, setConverterMetadata, setDesignTimeViewElementMetadata, setInterfaceDesignerItemMetadata, setMobileInterfaceDesignerItemMetadata, setMobileViewElementMetadata, setModuleMetadata, setRequestHandlerMetadata, setValidatorMetadata, setViewElementMetadata, toAggregationEval, toAggregationEvalType, toAggregationFunction, toAggregationType, toDatePart, toDatePartType, toNumericFunctionType, toOrderDirection, toPascalCase, toSortDirection, toStringFunctionType, validatorRegistryKey, viewElementRegister, viewElementRegistryKey, ɵBaseRegistry, ɵCrtInterfaceDesignerItem, ɵCrtMobileInterfaceDesignerItem, ɵFeatureActivationRef, ɵLazyModuleRef, ɵcheckTypeNameFormat, ɵinstantiate, ɵloadLazyRef, ɵloadLazyRefs };
|
|
3910
3961
|
//# sourceMappingURL=creatio-devkit-common.mjs.map
|