@rxap/material-form-system 22.0.0-dev.0 → 22.0.0-dev.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/CHANGELOG.md +39 -0
- package/README.md +5 -3
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +83 -5
- package/compodoc/classes/ExtractHideShowMixin.html +95 -21
- package/compodoc/classes/RecordViewTuple.html +71 -18
- package/compodoc/components/FormControlsComponent.html +269 -165
- package/compodoc/dependencies.html +124 -35
- package/compodoc/directives/ChipInputAdapterDirective.html +83 -13
- package/compodoc/directives/ChipListIteratorDirective.html +98 -23
- package/compodoc/directives/CompareWithDirective.html +142 -57
- package/compodoc/directives/ControlErrorDirective.html +163 -56
- package/compodoc/directives/ControlErrorsDirective.html +120 -26
- package/compodoc/directives/FormFieldHideShowDirective.html +122 -33
- package/compodoc/directives/InputClearButtonDirective.html +125 -47
- package/compodoc/directives/RequiredDirective.html +98 -20
- package/compodoc/index.html +50 -8
- package/compodoc/interfaces/ChipListTemplateContext.html +155 -95
- package/compodoc/interfaces/ControlErrorDirectiveContext.html +149 -94
- package/compodoc/interfaces/ControlErrorsDirectiveContext.html +149 -94
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +25 -12
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +198 -0
- package/compodoc/miscellaneous/functions.html +132 -8
- package/compodoc/miscellaneous/variables.html +148 -5
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/docs/documentation.json +951 -742
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/ChipInputAdapterDirective.html +97 -6
- package/docs/html/classes/ChipListIteratorDirective.html +109 -7
- package/docs/html/classes/CompareWithDirective.html +95 -5
- package/docs/html/classes/ControlErrorDirective.html +160 -12
- package/docs/html/classes/ControlErrorsDirective.html +154 -11
- package/docs/html/classes/ExtractHideShowMixin.html +141 -8
- package/docs/html/classes/FormControlsComponent.html +183 -15
- package/docs/html/classes/FormFieldHideShowDirective.html +210 -15
- package/docs/html/classes/InputClearButtonDirective.html +122 -7
- package/docs/html/classes/RequiredDirective.html +81 -4
- package/docs/html/hierarchy.html +33 -1
- package/docs/html/index.html +44 -7
- package/docs/html/interfaces/ChipListTemplateContext.html +61 -3
- package/docs/html/interfaces/ControlErrorDirectiveContext.html +61 -3
- package/docs/html/interfaces/ControlErrorsDirectiveContext.html +61 -3
- package/docs/html/modules.html +40 -1
- package/docs/markdown/README.md +6 -4
- package/docs/markdown/classes/ChipInputAdapterDirective.md +8 -8
- package/docs/markdown/classes/ChipListIteratorDirective.md +8 -8
- package/docs/markdown/classes/CompareWithDirective.md +7 -7
- package/docs/markdown/classes/ControlErrorDirective.md +18 -16
- package/docs/markdown/classes/ControlErrorsDirective.md +17 -15
- package/docs/markdown/classes/ExtractHideShowMixin.md +23 -23
- package/docs/markdown/classes/FormControlsComponent.md +22 -20
- package/docs/markdown/classes/FormFieldHideShowDirective.md +31 -28
- package/docs/markdown/classes/InputClearButtonDirective.md +10 -10
- package/docs/markdown/classes/RequiredDirective.md +6 -6
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/ChipListTemplateContext.md +5 -5
- package/docs/markdown/interfaces/ControlErrorDirectiveContext.md +4 -4
- package/docs/markdown/interfaces/ControlErrorsDirectiveContext.md +4 -4
- package/docs/wiki/Class.ChipInputAdapterDirective.md +7 -7
- package/docs/wiki/Class.ChipListIteratorDirective.md +7 -7
- package/docs/wiki/Class.CompareWithDirective.md +6 -6
- package/docs/wiki/Class.ControlErrorDirective.md +17 -15
- package/docs/wiki/Class.ControlErrorsDirective.md +16 -14
- package/docs/wiki/Class.ExtractHideShowMixin.md +22 -22
- package/docs/wiki/Class.FormControlsComponent.md +21 -19
- package/docs/wiki/Class.FormFieldHideShowDirective.md +30 -27
- package/docs/wiki/Class.InputClearButtonDirective.md +9 -9
- package/docs/wiki/Class.RequiredDirective.md +5 -5
- package/docs/wiki/Home.md +5 -3
- package/docs/wiki/Interface.ChipListTemplateContext.md +4 -4
- package/docs/wiki/Interface.ControlErrorDirectiveContext.md +3 -3
- package/docs/wiki/Interface.ControlErrorsDirectiveContext.md +3 -3
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-material-form-system.mjs +793 -754
- package/fesm2022/rxap-material-form-system.mjs.map +1 -1
- package/generators.json +16 -0
- package/package.json +34 -36
- package/src/generators/init/generator.js +120 -0
- package/src/generators/init/index.js +6 -0
- package/src/generators/init/schema.json +8 -0
- package/src/generators/package.json +3 -0
- package/types/rxap-material-form-system.d.ts +1 -0
- package/compodoc/js/libs/vis.min.js +0 -47
- package/compodoc/js/menu-wc_es5.js +0 -40
- package/compodoc/modules/MaterialFormSystemModule/dependencies.svg +0 -162
- package/compodoc/modules/MaterialFormSystemModule.html +0 -466
- package/theme.css +0 -1
package/compodoc/js/tabs.js
CHANGED
|
@@ -1,21 +1,104 @@
|
|
|
1
1
|
document.addEventListener('DOMContentLoaded', function() {
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var tabContainers = document.getElementsByClassName('nav-tabs');
|
|
3
|
+
var tabLinks = [];
|
|
4
|
+
var tabAliasMap = {
|
|
5
|
+
'template': 'templateData',
|
|
6
|
+
'dom-tree': 'tree'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
function updateAddress(e) {
|
|
10
|
+
if (history.pushState && e.target.dataset.link) {
|
|
11
|
+
history.pushState(null, null, '#' + e.target.dataset.link);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function findTabLinkByDataLink(dataLink) {
|
|
16
|
+
for (var i = 0; i < tabLinks.length; i++) {
|
|
17
|
+
if (tabLinks[i].dataset.link === dataLink) {
|
|
18
|
+
return tabLinks[i];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function getClosestTabPane(element) {
|
|
25
|
+
if (!element) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
if (element.closest) {
|
|
29
|
+
return element.closest('.tab-pane');
|
|
30
|
+
}
|
|
31
|
+
var node = element;
|
|
32
|
+
while (node) {
|
|
33
|
+
if (node.classList && node.classList.contains('tab-pane')) {
|
|
34
|
+
return node;
|
|
6
35
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
36
|
+
node = node.parentElement;
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function findAnchorTarget(hashValue) {
|
|
42
|
+
if (!hashValue) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
var targetById = document.getElementById(hashValue);
|
|
47
|
+
if (targetById) {
|
|
48
|
+
return targetById;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
var targetsByName = document.getElementsByName(hashValue);
|
|
52
|
+
if (targetsByName && targetsByName.length > 0) {
|
|
53
|
+
return targetsByName[0];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function activateTabFromHash() {
|
|
60
|
+
if (location.hash === '') {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
var currentHash = decodeURIComponent(location.hash.substr(1));
|
|
65
|
+
if (!currentHash) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
var resolvedHash = tabAliasMap[currentHash] || currentHash;
|
|
70
|
+
var directMatch = findTabLinkByDataLink(resolvedHash);
|
|
71
|
+
if (directMatch) {
|
|
72
|
+
directMatch.click();
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (currentHash.indexOf('source.') === 0) {
|
|
77
|
+
var sourceTabLink = findTabLinkByDataLink('source');
|
|
78
|
+
if (sourceTabLink) {
|
|
79
|
+
sourceTabLink.click();
|
|
80
|
+
return;
|
|
18
81
|
}
|
|
19
82
|
}
|
|
83
|
+
|
|
84
|
+
var targetAnchor = findAnchorTarget(currentHash);
|
|
85
|
+
var tabPane = getClosestTabPane(targetAnchor);
|
|
86
|
+
if (!tabPane || !tabPane.id) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
var tabLink = findTabLinkByDataLink(tabPane.id);
|
|
91
|
+
if (tabLink) {
|
|
92
|
+
tabLink.click();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (tabContainers.length > 0) {
|
|
97
|
+
tabLinks = tabContainers[0].querySelectorAll('a[data-link]');
|
|
98
|
+
for (var i = 0; i < tabLinks.length; i++) {
|
|
99
|
+
tabLinks[i].addEventListener('click', updateAddress);
|
|
100
|
+
}
|
|
101
|
+
activateTabFromHash();
|
|
102
|
+
window.addEventListener('hashchange', activateTabFromHash, false);
|
|
20
103
|
}
|
|
21
104
|
});
|
package/compodoc/js/tree.js
CHANGED
|
@@ -58,10 +58,18 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
58
58
|
type
|
|
59
59
|
} of it) {
|
|
60
60
|
if (type === 'NonIterableObject' && typeof key !== 'undefined' && value.type === 'tag') {
|
|
61
|
+
var parentId = parentNode && parentNode._parent ? parentNode._parent._id : null,
|
|
62
|
+
parentLevel = parentNode && parentNode._parent && typeof parentNode._parent._level === 'number'
|
|
63
|
+
? parentNode._parent._level
|
|
64
|
+
: 0,
|
|
65
|
+
nodeLevel = parentLevel + 1;
|
|
66
|
+
value._level = nodeLevel;
|
|
67
|
+
|
|
61
68
|
var newNode = {
|
|
62
69
|
id: value._id,
|
|
63
70
|
label: value.name,
|
|
64
|
-
type: value.type
|
|
71
|
+
type: value.type,
|
|
72
|
+
level: nodeLevel
|
|
65
73
|
};
|
|
66
74
|
for(var i = 0; i < COMPONENTS.length; i++) {
|
|
67
75
|
if (COMPONENTS[i].selector === value.name) {
|
|
@@ -88,17 +96,29 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
88
96
|
}
|
|
89
97
|
}
|
|
90
98
|
newNodes.push(newNode);
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
if (parentId !== null && typeof parentId !== 'undefined') {
|
|
100
|
+
newEdges.push({
|
|
101
|
+
from: parentId,
|
|
102
|
+
to: value._id
|
|
103
|
+
});
|
|
104
|
+
}
|
|
96
105
|
}
|
|
97
106
|
}
|
|
98
107
|
|
|
99
108
|
newNodes.shift();
|
|
100
109
|
|
|
110
|
+
var stripHtml = function(value) {
|
|
111
|
+
return String(value || '').replace(/<[^>]*>/g, '');
|
|
112
|
+
},
|
|
113
|
+
longestLabelLength = newNodes.reduce(function(max, node) {
|
|
114
|
+
var labelLength = stripHtml(node.label).length;
|
|
115
|
+
return Math.max(max, labelLength);
|
|
116
|
+
}, 0),
|
|
117
|
+
uniformNodeWidth = Math.max(40, Math.ceil(longestLabelLength * 8 + 28));
|
|
118
|
+
|
|
101
119
|
var container = document.getElementById('tree-container'),
|
|
120
|
+
isDarkMode = document.body && document.body.classList.contains('dark'),
|
|
121
|
+
treeFontColor = isDarkMode ? '#f0f0f0' : '#2d2d2d',
|
|
102
122
|
data = {
|
|
103
123
|
nodes: newNodes,
|
|
104
124
|
edges: newEdges
|
|
@@ -107,12 +127,29 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
107
127
|
layout: {
|
|
108
128
|
hierarchical: {
|
|
109
129
|
sortMethod: 'directed',
|
|
130
|
+
shakeTowards: 'roots',
|
|
131
|
+
levelSeparation: 130,
|
|
110
132
|
enabled: true
|
|
111
133
|
}
|
|
112
134
|
},
|
|
135
|
+
edges: {
|
|
136
|
+
smooth: {
|
|
137
|
+
enabled: true,
|
|
138
|
+
type: 'cubicBezier',
|
|
139
|
+
forceDirection: 'vertical',
|
|
140
|
+
roundness: 0.45
|
|
141
|
+
}
|
|
142
|
+
},
|
|
113
143
|
nodes: {
|
|
114
144
|
shape: 'ellipse',
|
|
115
|
-
fixed: true
|
|
145
|
+
fixed: true,
|
|
146
|
+
font: {
|
|
147
|
+
color: treeFontColor
|
|
148
|
+
},
|
|
149
|
+
widthConstraint: {
|
|
150
|
+
minimum: uniformNodeWidth,
|
|
151
|
+
maximum: uniformNodeWidth
|
|
152
|
+
}
|
|
116
153
|
}
|
|
117
154
|
},
|
|
118
155
|
|
package/compodoc/license.html
CHANGED
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -79,9 +100,13 @@
|
|
|
79
100
|
<compodoc-menu mode="normal"></compodoc-menu>
|
|
80
101
|
</div>
|
|
81
102
|
<!-- START CONTENT -->
|
|
82
|
-
<div class="content
|
|
103
|
+
<div class="content license">
|
|
83
104
|
<div class="content-data">
|
|
84
105
|
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
85
110
|
<b>Example :</b><div><pre class="line-numbers"><code class="language-none"> GNU GENERAL PUBLIC LICENSE
|
|
86
111
|
Version 3, 29 June 2007</code></pre></div><p> Copyright (C) 2007 Free Software Foundation, Inc. <a href="https://fsf.org/">https://fsf.org/</a>
|
|
87
112
|
Everyone is permitted to copy and distribute verbatim copies
|
|
@@ -636,7 +661,8 @@ reviewing courts shall apply local law that most closely approximates
|
|
|
636
661
|
an absolute waiver of all civil liability in connection with the
|
|
637
662
|
Program, unless a warranty or assumption of liability accompanies a
|
|
638
663
|
copy of the Program in return for a fee.</p>
|
|
639
|
-
<b>Example :</b><div><pre class="line-numbers"><code class="language-none"> END OF TERMS AND CONDITIONS
|
|
664
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-none"> END OF TERMS AND CONDITIONS
|
|
665
|
+
</code></pre></div>
|
|
640
666
|
|
|
641
667
|
|
|
642
668
|
|
|
@@ -682,13 +708,31 @@ copy of the Program in return for a fee.</p>
|
|
|
682
708
|
|
|
683
709
|
<script>
|
|
684
710
|
var COMPODOC_CURRENT_PAGE_DEPTH = 0;
|
|
685
|
-
var COMPODOC_CURRENT_PAGE_CONTEXT = '
|
|
711
|
+
var COMPODOC_CURRENT_PAGE_CONTEXT = 'license';
|
|
686
712
|
var COMPODOC_CURRENT_PAGE_URL = 'license.html';
|
|
687
713
|
var MAX_SEARCH_RESULTS = 15;
|
|
688
714
|
</script>
|
|
689
715
|
|
|
690
716
|
<script>
|
|
691
717
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
718
|
+
var updateDarkModeSwitchOffset = function () {
|
|
719
|
+
var content = document.querySelector('.content');
|
|
720
|
+
var scrollbarWidth = 0;
|
|
721
|
+
|
|
722
|
+
if (content) {
|
|
723
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
document.documentElement.style.setProperty(
|
|
727
|
+
'--content-scrollbar-width',
|
|
728
|
+
scrollbarWidth + 'px'
|
|
729
|
+
);
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
updateDarkModeSwitchOffset();
|
|
733
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
734
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
735
|
+
|
|
692
736
|
checkToggle(darkModeState);
|
|
693
737
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
694
738
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -704,14 +748,12 @@ copy of the Program in return for a fee.</p>
|
|
|
704
748
|
<script src="./js/libs/lit-html.js"></script>
|
|
705
749
|
|
|
706
750
|
<script src="./js/menu-wc.js" defer></script>
|
|
707
|
-
<script nomodule src="./js/menu-wc_es5.js" defer></script>
|
|
708
751
|
|
|
709
752
|
<script src="./js/libs/bootstrap-native.js"></script>
|
|
710
753
|
|
|
711
754
|
<script src="./js/libs/es6-shim.min.js"></script>
|
|
712
755
|
<script src="./js/libs/EventDispatcher.js"></script>
|
|
713
756
|
<script src="./js/libs/promise.min.js"></script>
|
|
714
|
-
<script src="./js/libs/zepto.min.js"></script>
|
|
715
757
|
|
|
716
758
|
<script src="./js/compodoc.js"></script>
|
|
717
759
|
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# angular-material-form-system
|
|
2
|
+
|
|
3
|
+
> Provides directives and a module to enhance Angular Material forms. It includes features such as displaying control errors, clearing input fields, handling required fields, and managing form field visibility based on defined conditions. The package also offers a form controls component with built-in reset, cancel, and submit functionalities.
|
|
4
|
+
|
|
5
|
+
> Generated by compodoc 2.0.0 at 2026-11-26T16:48:47.367Z, llm-md export.
|
|
6
|
+
|
|
7
|
+
## Components
|
|
8
|
+
|
|
9
|
+
### FormControlsComponent
|
|
10
|
+
|
|
11
|
+
File: `src/lib/form-controls/form-controls.component.ts`
|
|
12
|
+
Selector: `rxap-form-controls`
|
|
13
|
+
Change detection: `ChangeDetectionStrategy.OnPush`
|
|
14
|
+
|
|
15
|
+
Inputs:
|
|
16
|
+
- `allowResubmit: boolean = false`
|
|
17
|
+
- `navigateAfterSubmit: string[]`
|
|
18
|
+
|
|
19
|
+
Outputs:
|
|
20
|
+
- `close: FormData | FormData[] | void`
|
|
21
|
+
- `submitted: FormData`
|
|
22
|
+
|
|
23
|
+
Properties:
|
|
24
|
+
- `invalid: unknown = signal(false)`
|
|
25
|
+
- `isDevMode: unknown = isDevMode()`
|
|
26
|
+
- `submitting: unknown = this.formDirective.submitting`
|
|
27
|
+
|
|
28
|
+
Methods:
|
|
29
|
+
- `cancel(): void`
|
|
30
|
+
- `logCurrentFormState(): void`
|
|
31
|
+
- `reset(): void`
|
|
32
|
+
- `submit(closeAfterSubmit?: boolean): void`
|
|
33
|
+
|
|
34
|
+
## Directives
|
|
35
|
+
|
|
36
|
+
### ChipInputAdapterDirective
|
|
37
|
+
|
|
38
|
+
File: `src/lib/chip-input-adapter.directive.ts`
|
|
39
|
+
Selector: `[matChipInputFor][rxapChipInputAdapter]`
|
|
40
|
+
Standalone: yes
|
|
41
|
+
|
|
42
|
+
### ChipListIteratorDirective
|
|
43
|
+
|
|
44
|
+
File: `src/lib/chip-list-iterator.directive.ts`
|
|
45
|
+
Selector: `[rxapChipListIterator]`
|
|
46
|
+
Standalone: yes
|
|
47
|
+
|
|
48
|
+
Methods:
|
|
49
|
+
- `applyChanges(changes: IterableChanges<string>): void`
|
|
50
|
+
|
|
51
|
+
### CompareWithDirective
|
|
52
|
+
|
|
53
|
+
File: `src/lib/compare-with.directive.ts`
|
|
54
|
+
Selector: `mat-select[rxapCompareWith]`
|
|
55
|
+
Standalone: yes
|
|
56
|
+
|
|
57
|
+
Inputs:
|
|
58
|
+
- `rxapCompareWith: string`
|
|
59
|
+
|
|
60
|
+
### ControlErrorDirective
|
|
61
|
+
|
|
62
|
+
File: `src/lib/control-error.directive.ts`
|
|
63
|
+
Selector: `[rxapControlError]`
|
|
64
|
+
Standalone: yes
|
|
65
|
+
|
|
66
|
+
Inputs:
|
|
67
|
+
- `rxapControlErrorKey: string`
|
|
68
|
+
|
|
69
|
+
Properties:
|
|
70
|
+
- `cdr: unknown = inject<ChangeDetectorRef>(ChangeDetectorRef)`
|
|
71
|
+
- `template: unknown = inject<TemplateRef<ControlErrorDirectiveContext>>(TemplateRef)`
|
|
72
|
+
- `viewContainerRef: unknown = inject<ViewContainerRef>(ViewContainerRef)`
|
|
73
|
+
|
|
74
|
+
Methods:
|
|
75
|
+
- `ngTemplateContextGuard(dir: ControlErrorDirective, ctx: any): ControlErrorDirectiveContext`
|
|
76
|
+
- `render(errors: ValidationErrors | null): void`
|
|
77
|
+
|
|
78
|
+
### ControlErrorsDirective
|
|
79
|
+
|
|
80
|
+
File: `src/lib/control-errors.directive.ts`
|
|
81
|
+
Selector: `[rxapControlErrors]`
|
|
82
|
+
Standalone: yes
|
|
83
|
+
|
|
84
|
+
Properties:
|
|
85
|
+
- `cdr: unknown = inject<ChangeDetectorRef>(ChangeDetectorRef)`
|
|
86
|
+
- `template: unknown = inject<TemplateRef<ControlErrorsDirectiveContext>>(TemplateRef)`
|
|
87
|
+
- `viewContainerRef: unknown = inject<ViewContainerRef>(ViewContainerRef)`
|
|
88
|
+
|
|
89
|
+
Methods:
|
|
90
|
+
- `ngTemplateContextGuard(dir: ControlErrorsDirective, ctx: any): ControlErrorsDirectiveContext`
|
|
91
|
+
- `render(errors: ValidationErrors | null): void`
|
|
92
|
+
|
|
93
|
+
### FormFieldHideShowDirective
|
|
94
|
+
|
|
95
|
+
File: `src/lib/form-field-hide-show.directive.ts`
|
|
96
|
+
Selector: `mat-form-field[rxapHideShow]`
|
|
97
|
+
Standalone: yes
|
|
98
|
+
|
|
99
|
+
Properties:
|
|
100
|
+
- `control: RxapFormControl`
|
|
101
|
+
- `controlId: string`
|
|
102
|
+
- `formDefinition: FormDefinition`
|
|
103
|
+
|
|
104
|
+
Methods:
|
|
105
|
+
- `extractHideFunction(formDefinition: FormDefinition = this.formDefinition, controlId: string = this.control?.controlId ?? this.controlId): ControlHideShowFunction | null`
|
|
106
|
+
- `extractOptions(formDefinition: FormDefinition = this.formDefinition, controlId: string = this.control?.controlId ?? this.controlId): ControlHideShowOptions`
|
|
107
|
+
- `extractShowFunction(formDefinition: FormDefinition = this.formDefinition, controlId: string = this.control?.controlId ?? this.controlId): ControlHideShowFunction | null`
|
|
108
|
+
|
|
109
|
+
### InputClearButtonDirective
|
|
110
|
+
|
|
111
|
+
File: `src/lib/input-clear-button.directive.ts`
|
|
112
|
+
Selector: `[rxapInputClearButton]`
|
|
113
|
+
Standalone: yes
|
|
114
|
+
|
|
115
|
+
Properties:
|
|
116
|
+
- `tabIndex: string = '-1'`
|
|
117
|
+
- `type: string = 'button'`
|
|
118
|
+
|
|
119
|
+
Methods:
|
|
120
|
+
- `onClick(): void`
|
|
121
|
+
|
|
122
|
+
### RequiredDirective
|
|
123
|
+
|
|
124
|
+
File: `src/lib/required.directive.ts`
|
|
125
|
+
Selector: `[formControlName][rxapRequired],[formControl][rxapRequired]`
|
|
126
|
+
Standalone: yes
|
|
127
|
+
|
|
128
|
+
## Classes
|
|
129
|
+
|
|
130
|
+
### ExtractHideShowMixin
|
|
131
|
+
|
|
132
|
+
File: `src/lib/form-field-hide-show.directive.ts`
|
|
133
|
+
|
|
134
|
+
Properties:
|
|
135
|
+
- `control?: RxapFormControl`
|
|
136
|
+
- `controlId: string`
|
|
137
|
+
- `formDefinition: FormDefinition`
|
|
138
|
+
|
|
139
|
+
Methods:
|
|
140
|
+
- `extractHideFunction(formDefinition: FormDefinition = this.formDefinition, controlId: string = this.control?.controlId ?? this.controlId): ControlHideShowFunction | null`
|
|
141
|
+
- `extractOptions(formDefinition: FormDefinition = this.formDefinition, controlId: string = this.control?.controlId ?? this.controlId): ControlHideShowOptions`
|
|
142
|
+
- `extractShowFunction(formDefinition: FormDefinition = this.formDefinition, controlId: string = this.control?.controlId ?? this.controlId): ControlHideShowFunction | null`
|
|
143
|
+
|
|
144
|
+
### RecordViewTuple
|
|
145
|
+
|
|
146
|
+
File: `src/lib/chip-list-iterator.directive.ts`
|
|
147
|
+
|
|
148
|
+
Properties:
|
|
149
|
+
- `record: any`
|
|
150
|
+
- `view: EmbeddedViewRef<ChipListTemplateContext>`
|
|
151
|
+
|
|
152
|
+
## Interfaces
|
|
153
|
+
|
|
154
|
+
### ChipListTemplateContext
|
|
155
|
+
|
|
156
|
+
File: `src/lib/chip-list-iterator.directive.ts`
|
|
157
|
+
|
|
158
|
+
Properties:
|
|
159
|
+
- `$implicit: string`
|
|
160
|
+
- `onRemoved: function`
|
|
161
|
+
|
|
162
|
+
### ControlErrorDirectiveContext
|
|
163
|
+
|
|
164
|
+
File: `src/lib/control-error.directive.ts`
|
|
165
|
+
|
|
166
|
+
Properties:
|
|
167
|
+
- `$implicit: any`
|
|
168
|
+
- `control: AbstractControl`
|
|
169
|
+
|
|
170
|
+
### ControlErrorsDirectiveContext
|
|
171
|
+
|
|
172
|
+
File: `src/lib/control-errors.directive.ts`
|
|
173
|
+
|
|
174
|
+
Properties:
|
|
175
|
+
- `$implicit: ValidationErrors`
|
|
176
|
+
- `control: AbstractControl`
|
|
177
|
+
|
|
178
|
+
## Public functions
|
|
179
|
+
|
|
180
|
+
- `getTypeName(type: any): string`
|
|
181
|
+
Defined in `src/lib/chip-list-iterator.directive.ts`
|
|
182
|
+
- `initGenerator(tree: Tree, options: InitGeneratorSchema)`
|
|
183
|
+
Defined in `src/generators/init/generator.ts`
|
|
184
|
+
- `resolvePackageDir(root: string, packageName: string): string` — Resolves the directory of a package installed in the workspace. The lookup starts at the workspace root, not at this package: with an isolated node\_modules layout (pnpm) or Yarn PnP the peer is not resolvable from here. The plain node\_modules path is the fallback for packages whose exports map hides their package.json.
|
|
185
|
+
Defined in `src/generators/init/generator.ts`
|
|
186
|
+
|
|
187
|
+
## Public variables
|
|
188
|
+
|
|
189
|
+
- `$localize: any`
|
|
190
|
+
Defined in `src/lib/form-controls/form-controls.component.ts`
|
|
191
|
+
- `PRISM_FORM_STYLE: string = 'display: flex; flex-direction: column; gap: 8px; min-width: 280px'`
|
|
192
|
+
Defined in `src/lib/compare-with.directive.ts`
|
|
193
|
+
- `PRISM_FORM_STYLE: string = 'display: flex; flex-direction: column; gap: 8px; min-width: 280px'`
|
|
194
|
+
Defined in `src/lib/input-clear-button.directive.ts`
|
|
195
|
+
- `PRISM_FORM_STYLE: string = 'display: flex; flex-direction: column; gap: 8px; min-width: 280px'`
|
|
196
|
+
Defined in `src/lib/required.directive.ts`
|
|
197
|
+
- `schematic: unknown = convertNxGenerator(generator)`
|
|
198
|
+
Defined in `src/generators/init/index.ts`
|