@rxap/material-form-system 22.0.0-dev.0 → 22.0.0-dev.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.
Files changed (111) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/compodoc/architecture.html +222 -0
  3. package/compodoc/changelog.html +64 -5
  4. package/compodoc/classes/ExtractHideShowMixin.html +95 -21
  5. package/compodoc/classes/RecordViewTuple.html +71 -18
  6. package/compodoc/components/FormControlsComponent.html +269 -165
  7. package/compodoc/dependencies.html +124 -35
  8. package/compodoc/directives/ChipInputAdapterDirective.html +83 -13
  9. package/compodoc/directives/ChipListIteratorDirective.html +98 -23
  10. package/compodoc/directives/CompareWithDirective.html +142 -57
  11. package/compodoc/directives/ControlErrorDirective.html +163 -56
  12. package/compodoc/directives/ControlErrorsDirective.html +120 -26
  13. package/compodoc/directives/FormFieldHideShowDirective.html +122 -33
  14. package/compodoc/directives/InputClearButtonDirective.html +125 -47
  15. package/compodoc/directives/RequiredDirective.html +98 -20
  16. package/compodoc/index.html +46 -5
  17. package/compodoc/interfaces/ChipListTemplateContext.html +155 -95
  18. package/compodoc/interfaces/ControlErrorDirectiveContext.html +149 -94
  19. package/compodoc/interfaces/ControlErrorsDirectiveContext.html +149 -94
  20. package/compodoc/js/architecture-graph.js +288 -0
  21. package/compodoc/js/libs/bootstrap-native.js +4 -2
  22. package/compodoc/js/libs/jszip.min.js +13 -0
  23. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  24. package/compodoc/js/libs/tablesort.min.js +3 -3
  25. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  26. package/compodoc/js/libs/vis-network.min.js +78 -0
  27. package/compodoc/js/menu-wc.js +25 -12
  28. package/compodoc/js/menu.js +10 -11
  29. package/compodoc/js/routes/routes_index.js +1 -0
  30. package/compodoc/js/routes.js +142 -34
  31. package/compodoc/js/search/search-lunr.js +6 -8
  32. package/compodoc/js/search/search.js +118 -66
  33. package/compodoc/js/search/search_index.js +2 -2
  34. package/compodoc/js/tabs.js +98 -15
  35. package/compodoc/js/tree.js +44 -7
  36. package/compodoc/license.html +48 -6
  37. package/compodoc/llms.txt +196 -0
  38. package/compodoc/miscellaneous/functions.html +51 -8
  39. package/compodoc/miscellaneous/variables.html +148 -5
  40. package/compodoc/modules.html +44 -3
  41. package/compodoc/overview.html +54 -3
  42. package/compodoc/properties.html +45 -4
  43. package/compodoc/routes.html +227 -0
  44. package/compodoc/styles/compodoc.css +365 -44
  45. package/compodoc/styles/dark.css +16 -0
  46. package/compodoc/template-playground/default-templates.json +192 -0
  47. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  48. package/compodoc/template-playground/main.ts +9 -0
  49. package/compodoc/template-playground/template-editor.service.ts +173 -0
  50. package/compodoc/template-playground/template-playground.component.ts +614 -0
  51. package/compodoc/template-playground/template-playground.module.ts +29 -0
  52. package/compodoc/template-playground/zip-export.service.ts +86 -0
  53. package/compodoc/template-playground-app/app.js +1389 -0
  54. package/compodoc/template-playground-app/index.html +462 -0
  55. package/docs/documentation.json +921 -736
  56. package/docs/html/assets/hierarchy.js +1 -1
  57. package/docs/html/assets/highlight.css +1 -1
  58. package/docs/html/assets/icons.js +1 -1
  59. package/docs/html/assets/icons.svg +1 -1
  60. package/docs/html/assets/main.js +5 -5
  61. package/docs/html/assets/search.js +1 -1
  62. package/docs/html/assets/style.css +265 -228
  63. package/docs/html/classes/ChipInputAdapterDirective.html +97 -6
  64. package/docs/html/classes/ChipListIteratorDirective.html +109 -7
  65. package/docs/html/classes/CompareWithDirective.html +95 -5
  66. package/docs/html/classes/ControlErrorDirective.html +160 -12
  67. package/docs/html/classes/ControlErrorsDirective.html +154 -11
  68. package/docs/html/classes/ExtractHideShowMixin.html +141 -8
  69. package/docs/html/classes/FormControlsComponent.html +183 -15
  70. package/docs/html/classes/FormFieldHideShowDirective.html +210 -15
  71. package/docs/html/classes/InputClearButtonDirective.html +122 -7
  72. package/docs/html/classes/RequiredDirective.html +81 -4
  73. package/docs/html/hierarchy.html +33 -1
  74. package/docs/html/index.html +40 -4
  75. package/docs/html/interfaces/ChipListTemplateContext.html +61 -3
  76. package/docs/html/interfaces/ControlErrorDirectiveContext.html +61 -3
  77. package/docs/html/interfaces/ControlErrorsDirectiveContext.html +61 -3
  78. package/docs/html/modules.html +40 -1
  79. package/docs/markdown/README.md +1 -1
  80. package/docs/markdown/classes/ChipInputAdapterDirective.md +8 -8
  81. package/docs/markdown/classes/ChipListIteratorDirective.md +8 -8
  82. package/docs/markdown/classes/CompareWithDirective.md +7 -7
  83. package/docs/markdown/classes/ControlErrorDirective.md +18 -16
  84. package/docs/markdown/classes/ControlErrorsDirective.md +17 -15
  85. package/docs/markdown/classes/ExtractHideShowMixin.md +23 -23
  86. package/docs/markdown/classes/FormControlsComponent.md +22 -20
  87. package/docs/markdown/classes/FormFieldHideShowDirective.md +30 -27
  88. package/docs/markdown/classes/InputClearButtonDirective.md +10 -10
  89. package/docs/markdown/classes/RequiredDirective.md +6 -6
  90. package/docs/markdown/globals.md +2 -2
  91. package/docs/markdown/interfaces/ChipListTemplateContext.md +5 -5
  92. package/docs/markdown/interfaces/ControlErrorDirectiveContext.md +4 -4
  93. package/docs/markdown/interfaces/ControlErrorsDirectiveContext.md +4 -4
  94. package/docs/wiki/Class.ChipInputAdapterDirective.md +7 -7
  95. package/docs/wiki/Class.ChipListIteratorDirective.md +7 -7
  96. package/docs/wiki/Class.CompareWithDirective.md +6 -6
  97. package/docs/wiki/Class.ControlErrorDirective.md +17 -15
  98. package/docs/wiki/Class.ControlErrorsDirective.md +16 -14
  99. package/docs/wiki/Class.ExtractHideShowMixin.md +22 -22
  100. package/docs/wiki/Class.FormControlsComponent.md +21 -19
  101. package/docs/wiki/Class.FormFieldHideShowDirective.md +29 -26
  102. package/docs/wiki/Class.InputClearButtonDirective.md +9 -9
  103. package/docs/wiki/Class.RequiredDirective.md +5 -5
  104. package/docs/wiki/Interface.ChipListTemplateContext.md +4 -4
  105. package/docs/wiki/Interface.ControlErrorDirectiveContext.md +3 -3
  106. package/docs/wiki/Interface.ControlErrorsDirectiveContext.md +3 -3
  107. package/docs/wiki/globals.md +1 -1
  108. package/fesm2022/rxap-material-form-system.mjs +793 -754
  109. package/fesm2022/rxap-material-form-system.mjs.map +1 -1
  110. package/package.json +31 -31
  111. package/types/rxap-material-form-system.d.ts +1 -0
@@ -1,21 +1,104 @@
1
1
  document.addEventListener('DOMContentLoaded', function() {
2
- var tabs = document.getElementsByClassName('nav-tabs'),
3
- updateAddress = function(e) {
4
- if(history.pushState && e.target.dataset.link) {
5
- history.pushState(null, null, '#' + e.target.dataset.link);
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
- if (tabs.length > 0) {
9
- tabs = tabs[0].querySelectorAll('li');
10
- for (var i = 0; i < tabs.length; i++) {
11
- tabs[i].addEventListener('click', updateAddress);
12
- var linkTag = tabs[i].querySelector('a');
13
- if (location.hash !== '') {
14
- var currentHash = location.hash.substr(1);
15
- if (currentHash === linkTag.dataset.link) {
16
- linkTag.click();
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
  });
@@ -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
- newEdges.push({
92
- from: parentNode._parent._id,
93
- to: value._id,
94
- arrows: 'to'
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
 
@@ -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"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
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>&times;</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 getting-started">
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</code></pre></div>
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 = 'getting-started';
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,196 @@
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-23T22:34:17.714Z, 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
+
185
+ ## Public variables
186
+
187
+ - `$localize: any`
188
+ Defined in `src/lib/form-controls/form-controls.component.ts`
189
+ - `PRISM_FORM_STYLE: string = 'display: flex; flex-direction: column; gap: 8px; min-width: 280px'`
190
+ Defined in `src/lib/compare-with.directive.ts`
191
+ - `PRISM_FORM_STYLE: string = 'display: flex; flex-direction: column; gap: 8px; min-width: 280px'`
192
+ Defined in `src/lib/input-clear-button.directive.ts`
193
+ - `PRISM_FORM_STYLE: string = 'display: flex; flex-direction: column; gap: 8px; min-width: 280px'`
194
+ Defined in `src/lib/required.directive.ts`
195
+ - `schematic: unknown = convertNxGenerator(generator)`
196
+ Defined in `src/generators/init/index.ts`
@@ -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"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
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>&times;</button>
93
+ </div>
94
+ <compodoc-menu></compodoc-menu>
74
95
  </div>
75
96
 
76
97
  <div class="container-fluid main">
@@ -97,6 +118,10 @@
97
118
 
98
119
 
99
120
 
121
+
122
+
123
+
124
+
100
125
 
101
126
 
102
127
  <ol class="breadcrumb">
@@ -112,10 +137,10 @@
112
137
  <td class="col-md-4">
113
138
  <ul class="index-list">
114
139
  <li>
115
- <a href="#getTypeName" title="src/lib/chip-list-iterator.directive.ts" ><b>getTypeName</b>&nbsp;&nbsp;&nbsp;(src/.../chip-list-iterator.directive.ts)</a>
140
+ <a href="#getTypeName" title="src/lib/chip-list-iterator.directive.ts" class="reference-link "><span class="reference-badge reference-badge--function" aria-hidden="true">F</span><span class="reference-link-label"><b>getTypeName</b>&nbsp;&nbsp;&nbsp;(src/.../chip-list-iterator.directive.ts)</span></a>
116
141
  </li>
117
142
  <li>
118
- <a href="#initGenerator" title="src/generators/init/generator.ts" ><b>initGenerator</b>&nbsp;&nbsp;&nbsp;(src/.../generator.ts)</a>
143
+ <a href="#initGenerator" title="src/generators/init/generator.ts" class="reference-link "><span class="reference-badge reference-badge--function" aria-hidden="true">F</span><span class="reference-link-label"><b>initGenerator</b>&nbsp;&nbsp;&nbsp;(src/.../generator.ts)</span></a>
119
144
  </li>
120
145
  </ul>
121
146
  </td>
@@ -187,7 +212,8 @@
187
212
  </tr>
188
213
  </tbody>
189
214
  </table>
190
- </section> <h3>src/generators/init/generator.ts</h3>
215
+ </section>
216
+ <h3>src/generators/init/generator.ts</h3>
191
217
  <section data-compodoc="block-methods">
192
218
  <h3></h3> <table class="table table-sm table-bordered">
193
219
  <tbody>
@@ -202,7 +228,7 @@
202
228
  </tr>
203
229
  <tr>
204
230
  <td class="col-md-4">
205
- <code>initGenerator(tree: Tree, options: InitGeneratorSchema)</code>
231
+ <code>initGenerator(tree: <a href="https://angular.dev/api/aria/tree/Tree" target="_blank">Tree</a>, options: InitGeneratorSchema)</code>
206
232
  </td>
207
233
  </tr>
208
234
 
@@ -227,7 +253,7 @@
227
253
  <tr>
228
254
  <td>tree</td>
229
255
  <td>
230
- <code>Tree</code>
256
+ <code><a href="https://angular.dev/api/aria/tree/Tree" target="_blank" >Tree</a></code>
231
257
  </td>
232
258
 
233
259
  <td>
@@ -258,6 +284,7 @@
258
284
  </section>
259
285
 
260
286
 
287
+
261
288
  </div><div class="search-results">
262
289
  <div class="has-results">
263
290
  <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
@@ -290,6 +317,24 @@
290
317
 
291
318
  <script>
292
319
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
320
+ var updateDarkModeSwitchOffset = function () {
321
+ var content = document.querySelector('.content');
322
+ var scrollbarWidth = 0;
323
+
324
+ if (content) {
325
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
326
+ }
327
+
328
+ document.documentElement.style.setProperty(
329
+ '--content-scrollbar-width',
330
+ scrollbarWidth + 'px'
331
+ );
332
+ };
333
+
334
+ updateDarkModeSwitchOffset();
335
+ requestAnimationFrame(updateDarkModeSwitchOffset);
336
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
337
+
293
338
  checkToggle(darkModeState);
294
339
  if ($darkModeToggleSwitchers.length > 0) {
295
340
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -305,14 +350,12 @@
305
350
  <script src="../js/libs/lit-html.js"></script>
306
351
 
307
352
  <script src="../js/menu-wc.js" defer></script>
308
- <script nomodule src="../js/menu-wc_es5.js" defer></script>
309
353
 
310
354
  <script src="../js/libs/bootstrap-native.js"></script>
311
355
 
312
356
  <script src="../js/libs/es6-shim.min.js"></script>
313
357
  <script src="../js/libs/EventDispatcher.js"></script>
314
358
  <script src="../js/libs/promise.min.js"></script>
315
- <script src="../js/libs/zepto.min.js"></script>
316
359
 
317
360
  <script src="../js/compodoc.js"></script>
318
361