@creatio-devkit/common 0.1000.2 → 0.1000.3
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 +4 -9
- package/CHANGELOG.md +3 -2
- package/REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md +3 -5
- package/THIRD_PARTY_LICENSES.txt +12 -12
- package/fesm2022/creatio-devkit-common.mjs +3 -17
- package/fesm2022/creatio-devkit-common.mjs.map +1 -1
- package/package.json +2 -2
- package/types/creatio-devkit-common.d.ts +2709 -3527
- package/DESIGN_TOKENS_AI_GUIDE.md +0 -366
- package/REMOTE_COMPONENT_STYLING_AI_GUIDE.md +0 -179
- package/index.d.ts +0 -3699
package/AI_GUIDES_INDEX.md
CHANGED
|
@@ -8,8 +8,6 @@ These guides are complementary. In many tasks, you should read more than one.
|
|
|
8
8
|
|
|
9
9
|
- Use [DEFERRED_REMOTE_MIGRATION_AI_GUIDE.md](./DEFERRED_REMOTE_MIGRATION_AI_GUIDE.md) when migrating an existing remote entry from the old eager bootstrap flow to the deferred remote contract.
|
|
10
10
|
- Use [REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md](./REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md) when creating or updating the runtime part of a Freedom UI custom component.
|
|
11
|
-
- Use [REMOTE_COMPONENT_STYLING_AI_GUIDE.md](./REMOTE_COMPONENT_STYLING_AI_GUIDE.md) whenever a runtime component's `.scss`/template visuals are generated or modified. Treat it as mandatory.
|
|
12
|
-
- Use [DESIGN_TOKENS_AI_GUIDE.md](./DESIGN_TOKENS_AI_GUIDE.md) as the catalog of all `--crt-*` design token names and default values. It is a reference, not a task entry point.
|
|
13
11
|
- Use [WCAG_ACCESSIBILITY_AI_GUIDE.md](./WCAG_ACCESSIBILITY_AI_GUIDE.md) for any user-facing component work. Treat it as mandatory for runtime component development.
|
|
14
12
|
- Use [ICON_REQUIREMENTS_AI_GUIDE.md](./ICON_REQUIREMENTS_AI_GUIDE.md) when a component appears in Interface Designer, publishes designer metadata, or needs a toolbar icon.
|
|
15
13
|
|
|
@@ -17,10 +15,8 @@ These guides are complementary. In many tasks, you should read more than one.
|
|
|
17
15
|
|
|
18
16
|
| Task | Primary guide | Also read | Notes |
|
|
19
17
|
| --- | --- | --- | --- |
|
|
20
|
-
| Create a new runtime-only Freedom UI component | [REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md](./REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md) | [
|
|
21
|
-
|
|
|
22
|
-
| Look up a design token name or default value | [DESIGN_TOKENS_AI_GUIDE.md](./DESIGN_TOKENS_AI_GUIDE.md) | [REMOTE_COMPONENT_STYLING_AI_GUIDE.md](./REMOTE_COMPONENT_STYLING_AI_GUIDE.md) | Catalog of all `--crt-*` tokens (semantic, palette, typography, spacing, radius). Reference only — consumption rules live in the styling guide. |
|
|
23
|
-
| Create a component that also appears in Interface Designer | [REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md](./REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md) | [REMOTE_COMPONENT_STYLING_AI_GUIDE.md](./REMOTE_COMPONENT_STYLING_AI_GUIDE.md), [WCAG_ACCESSIBILITY_AI_GUIDE.md](./WCAG_ACCESSIBILITY_AI_GUIDE.md), [ICON_REQUIREMENTS_AI_GUIDE.md](./ICON_REQUIREMENTS_AI_GUIDE.md) | Runtime behavior, styling, accessibility, and designer icon requirements all apply. |
|
|
18
|
+
| Create a new runtime-only Freedom UI component | [REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md](./REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md) | [WCAG_ACCESSIBILITY_AI_GUIDE.md](./WCAG_ACCESSIBILITY_AI_GUIDE.md) | Default path for user-facing runtime component implementation. |
|
|
19
|
+
| Create a component that also appears in Interface Designer | [REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md](./REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md) | [WCAG_ACCESSIBILITY_AI_GUIDE.md](./WCAG_ACCESSIBILITY_AI_GUIDE.md), [ICON_REQUIREMENTS_AI_GUIDE.md](./ICON_REQUIREMENTS_AI_GUIDE.md) | Runtime behavior, accessibility, and designer icon requirements all apply. |
|
|
24
20
|
| Add or update a toolbar icon for a designer-visible component | [ICON_REQUIREMENTS_AI_GUIDE.md](./ICON_REQUIREMENTS_AI_GUIDE.md) | [REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md](./REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md) if runtime metadata is also changing | Use this when the task is mainly about icon assets or designer presentation. |
|
|
25
21
|
| Review or fix keyboard navigation, ARIA, labels, focus, or screen-reader behavior | [WCAG_ACCESSIBILITY_AI_GUIDE.md](./WCAG_ACCESSIBILITY_AI_GUIDE.md) | [REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md](./REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md) if component code also changes | Use this for accessibility-first work. |
|
|
26
22
|
| Migrate an old eager remote to the deferred remote contract | [DEFERRED_REMOTE_MIGRATION_AI_GUIDE.md](./DEFERRED_REMOTE_MIGRATION_AI_GUIDE.md) | | Use this when the current remote still bootstraps via `main.ts -> bootstrap.ts -> AppModule`. The same guide can also support staged migration, but do not assume the final state must already be fully deferred unless the task says so. |
|
|
@@ -30,9 +26,8 @@ These guides are complementary. In many tasks, you should read more than one.
|
|
|
30
26
|
|
|
31
27
|
1. If the task is about changing the remote entry architecture from eager bootstrap toward deferred features, start with [DEFERRED_REMOTE_MIGRATION_AI_GUIDE.md](./DEFERRED_REMOTE_MIGRATION_AI_GUIDE.md). This includes full migrations and staged migrations, but do not assume the final state must already be pure deferred unless the task says so explicitly.
|
|
32
28
|
2. Otherwise, if the task is about component runtime behavior, inputs, outputs, rendering, handlers, validators, or registration, start with [REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md](./REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md).
|
|
33
|
-
3.
|
|
34
|
-
4. If the task
|
|
35
|
-
5. If the component is visible in Interface Designer or the task includes icon work, also read [ICON_REQUIREMENTS_AI_GUIDE.md](./ICON_REQUIREMENTS_AI_GUIDE.md).
|
|
29
|
+
3. If the task affects a user-facing component, also read [WCAG_ACCESSIBILITY_AI_GUIDE.md](./WCAG_ACCESSIBILITY_AI_GUIDE.md).
|
|
30
|
+
4. If the component is visible in Interface Designer or the task includes icon work, also read [ICON_REQUIREMENTS_AI_GUIDE.md](./ICON_REQUIREMENTS_AI_GUIDE.md).
|
|
36
31
|
|
|
37
32
|
## When You Are Unsure
|
|
38
33
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
#
|
|
2
|
-
- fix -
|
|
1
|
+
# 0.1000.3
|
|
2
|
+
- fix - Published typings are the API Extractor trimmed rollup again: the `package.json` types entry now points at the trimmed d.ts, so `@internal` declarations are no longer visible to consumers (regression since the Angular 21 upgrade).
|
|
3
|
+
- feature - `DataSourceLoadParameters` is now `@public`.
|
|
3
4
|
|
|
4
5
|
# 0.1000.1
|
|
5
6
|
- 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.
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
- When in doubt, use camelCase variants: `isDisabled`, `isReadOnly`, `currentValue`
|
|
12
12
|
|
|
13
13
|
**Related guides:**
|
|
14
|
-
- **Design-time guide:** See REMOTE_COMPONENT_DESIGN_TIME_AI_GUIDE.md from @creatio/interface-designer package
|
|
15
|
-
- **Styling guide:** See REMOTE_COMPONENT_STYLING_AI_GUIDE.md from @creatio-devkit/common package (MANDATORY whenever the component has any `.scss` / styled template — design-token usage, theming)
|
|
14
|
+
- **Design-time guide:** See REMOTE_COMPONENT_DESIGN_TIME_AI_GUIDE.md from @creatio-devkit/interface-designer package
|
|
16
15
|
- **Accessibility guide:** See WCAG_ACCESSIBILITY_AI_GUIDE.md from @creatio-devkit/common package (MANDATORY for all components)
|
|
17
16
|
- **Icon guide:** See ICON_REQUIREMENTS_AI_GUIDE.md from @creatio-devkit/common package
|
|
18
17
|
|
|
@@ -663,7 +662,7 @@ export class {{COMPONENT_NAME_PASCAL}}Component {
|
|
|
663
662
|
|
|
664
663
|
@Input()
|
|
665
664
|
@CrtInput()
|
|
666
|
-
public color = '
|
|
665
|
+
public color = 'black';
|
|
667
666
|
|
|
668
667
|
@Input()
|
|
669
668
|
@CrtInput()
|
|
@@ -1051,7 +1050,6 @@ export default {
|
|
|
1051
1050
|
- [ ] **MANDATORY: Run WCAG code audit against WCAG_ACCESSIBILITY_AI_GUIDE.md**
|
|
1052
1051
|
- [ ] **MANDATORY: WCAG audit has 0 critical and 0 major violations (BLOCKING)**
|
|
1053
1052
|
- [ ] **MANDATORY: WCAG accessibility requirements met (see WCAG_ACCESSIBILITY_AI_GUIDE.md)**
|
|
1054
|
-
- [ ] **MANDATORY: If the component has visuals, styling audited against REMOTE_COMPONENT_STYLING_AI_GUIDE.md — colors/fonts/spacing/radius all on --crt-* tokens, no hardcoded chrome**
|
|
1055
1053
|
- [ ] Accessibility: Semantic HTML used (button, input, label, etc.)
|
|
1056
1054
|
- [ ] Accessibility: All interactive elements have accessible names
|
|
1057
1055
|
- [ ] Accessibility: Keyboard support (Tab, Enter, Space, Escape)
|
|
@@ -1492,7 +1490,7 @@ public readonly myEvent = new EventEmitter<MyType>();
|
|
|
1492
1490
|
display: block;
|
|
1493
1491
|
}
|
|
1494
1492
|
.my-class {
|
|
1495
|
-
color:
|
|
1493
|
+
color: red;
|
|
1496
1494
|
}
|
|
1497
1495
|
`],
|
|
1498
1496
|
})
|
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:
|
|
88
|
+
Source: 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,14 +1498,7 @@ class BaseViewElementRegistry extends ɵBaseRegistry {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
static getViewElementPropertiesDefaultValues(type) {
|
|
1500
1500
|
const config = this.store.typeInfos.get(type);
|
|
1501
|
-
|
|
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 ?? {})
|
|
1501
|
+
const propertiesDefaultValues = Object.entries(config?.inputs ?? {})
|
|
1509
1502
|
.filter(([_, inputConfig]) => Object.prototype.hasOwnProperty.call(inputConfig, 'defaultValue'))
|
|
1510
1503
|
.map(([propertyName, propertyConfig]) => ({
|
|
1511
1504
|
name: propertyName,
|
|
@@ -2078,18 +2071,11 @@ class BaseValidator {
|
|
|
2078
2071
|
var ViewElementReuseStrategy;
|
|
2079
2072
|
(function (ViewElementReuseStrategy) {
|
|
2080
2073
|
/**
|
|
2081
|
-
* Reuse
|
|
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
|
|
2074
|
+
* Reuse early created view element when it state changed
|
|
2089
2075
|
*/
|
|
2090
2076
|
ViewElementReuseStrategy[ViewElementReuseStrategy["Reuse"] = 0] = "Reuse";
|
|
2091
2077
|
/**
|
|
2092
|
-
* Rerender
|
|
2078
|
+
* Rerender(recreate) view element when it state changed
|
|
2093
2079
|
*/
|
|
2094
2080
|
ViewElementReuseStrategy[ViewElementReuseStrategy["Rerender"] = 1] = "Rerender";
|
|
2095
2081
|
})(ViewElementReuseStrategy || (ViewElementReuseStrategy = {}));
|