@creatio-devkit/common 0.1000.1 → 0.1000.2
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/AI_GUIDES_INDEX.md +9 -4
- package/CHANGELOG.md +3 -0
- package/DESIGN_TOKENS_AI_GUIDE.md +366 -0
- package/REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md +5 -3
- package/REMOTE_COMPONENT_STYLING_AI_GUIDE.md +179 -0
- package/THIRD_PARTY_LICENSES.txt +12 -12
- package/fesm2022/creatio-devkit-common.mjs +17 -3
- package/fesm2022/creatio-devkit-common.mjs.map +1 -1
- package/index.d.ts +7 -0
- package/package.json +2 -2
- package/types/creatio-devkit-common.d.ts +16 -2
package/THIRD_PARTY_LICENSES.txt
CHANGED
|
@@ -85,7 +85,7 @@ Version: ^4.17.21
|
|
|
85
85
|
Installed: 4.18.1
|
|
86
86
|
Declared: dependency
|
|
87
87
|
License: MIT
|
|
88
|
-
Source: lodash/lodash
|
|
88
|
+
Source: https://github.com/lodash/lodash
|
|
89
89
|
----------------------------------------------------------------
|
|
90
90
|
|
|
91
91
|
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -146,15 +146,15 @@ License: 0BSD
|
|
|
146
146
|
Source: https://github.com/Microsoft/tslib
|
|
147
147
|
----------------------------------------------------------------
|
|
148
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
|
|
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
160
|
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1498,7 +1498,14 @@ class BaseViewElementRegistry extends ɵBaseRegistry {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
static getViewElementPropertiesDefaultValues(type) {
|
|
1500
1500
|
const config = this.store.typeInfos.get(type);
|
|
1501
|
-
|
|
1501
|
+
if (!config) {
|
|
1502
|
+
// A type that was never registered is not a view element (for example a timeline
|
|
1503
|
+
// quick-filter entry such as TimelineFilter_Entity), so it must not inherit the
|
|
1504
|
+
// view element `visible` default. Reporting one makes the design time defaults
|
|
1505
|
+
// filter strip `visible` from the saved schema. https://creatio.atlassian.net/browse/ENG-98480
|
|
1506
|
+
return [];
|
|
1507
|
+
}
|
|
1508
|
+
const propertiesDefaultValues = Object.entries(config.inputs ?? {})
|
|
1502
1509
|
.filter(([_, inputConfig]) => Object.prototype.hasOwnProperty.call(inputConfig, 'defaultValue'))
|
|
1503
1510
|
.map(([propertyName, propertyConfig]) => ({
|
|
1504
1511
|
name: propertyName,
|
|
@@ -2071,11 +2078,18 @@ class BaseValidator {
|
|
|
2071
2078
|
var ViewElementReuseStrategy;
|
|
2072
2079
|
(function (ViewElementReuseStrategy) {
|
|
2073
2080
|
/**
|
|
2074
|
-
* Reuse
|
|
2081
|
+
* Reuse the previously created view element when its state changes
|
|
2082
|
+
* To use this strategy, the view element must meet the following requirements:
|
|
2083
|
+
* 1. View element must load data via an external data source or calculated attributes, never on its own
|
|
2084
|
+
* 2. State of view element should be fully bound to input properties
|
|
2085
|
+
* 3. View element should not depend on input properties setting order
|
|
2086
|
+
* 4. View element should not directly use services working with schema and profile
|
|
2087
|
+
* (e.g. SchemaService, SchemaPartsService)
|
|
2088
|
+
* Details: https://creatio.atlassian.net/wiki/spaces/TER/pages/2878439446/View+Element+Reuse+Strategy
|
|
2075
2089
|
*/
|
|
2076
2090
|
ViewElementReuseStrategy[ViewElementReuseStrategy["Reuse"] = 0] = "Reuse";
|
|
2077
2091
|
/**
|
|
2078
|
-
* Rerender(recreate) view element when
|
|
2092
|
+
* Rerender (recreate) the view element when its state changes
|
|
2079
2093
|
*/
|
|
2080
2094
|
ViewElementReuseStrategy[ViewElementReuseStrategy["Rerender"] = 1] = "Rerender";
|
|
2081
2095
|
})(ViewElementReuseStrategy || (ViewElementReuseStrategy = {}));
|