@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
@@ -19,20 +19,29 @@ customElements.define('compodoc-menu', class extends HTMLElement {
19
19
  </li>
20
20
 
21
21
  <li class="divider"></li>
22
- ${ isNormalMode ? `<div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div>` : '' }
22
+ ${ isNormalMode ? `<div id="book-search-input" role="search">
23
+ <input type="text" placeholder="Type to search">
24
+ <button type="button"
25
+ class="search-input-clear"
26
+ aria-label="Clear search"
27
+ data-search-input-clear>&times;</button>
28
+ </div>
29
+ ` : '' }
23
30
  <li class="chapter">
24
31
  <a data-type="chapter-link" href="index.html"><span class="icon ion-ios-home"></span>Getting started</a>
25
32
  <ul class="links">
26
- <li class="link">
27
- <a href="overview.html" data-type="chapter-link">
28
- <span class="icon ion-ios-keypad"></span>Overview
29
- </a>
30
- </li>
31
- <li class="link">
32
- <a href="index.html" data-type="chapter-link">
33
- <span class="icon ion-ios-paper"></span>README
34
- </a>
35
- </li>
33
+ <li class="link">
34
+ <a href="overview.html" data-type="chapter-link">
35
+ <span class="icon ion-ios-keypad"></span>Overview
36
+ </a>
37
+ </li>
38
+
39
+ <li class="link">
40
+ <a href="index.html" data-type="chapter-link">
41
+ <span class="icon ion-ios-paper"></span>
42
+ README
43
+ </a>
44
+ </li>
36
45
  <li class="link">
37
46
  <a href="changelog.html" data-type="chapter-link">
38
47
  <span class="icon ion-ios-paper"></span>CHANGELOG
@@ -53,6 +62,7 @@ customElements.define('compodoc-menu', class extends HTMLElement {
53
62
  <span class="icon ion-ios-apps"></span>Properties
54
63
  </a>
55
64
  </li>
65
+
56
66
  </ul>
57
67
  </li>
58
68
  <li class="chapter">
@@ -153,6 +163,9 @@ customElements.define('compodoc-menu', class extends HTMLElement {
153
163
  </li>
154
164
  </ul>
155
165
  </li>
166
+ <li class="chapter">
167
+ <a data-type="chapter-link" href="routes.html"><span class="icon ion-ios-git-branch"></span>Routes</a>
168
+ </li>
156
169
  <li class="divider"></li>
157
170
  <li class="copyright">
158
171
  Documentation generated using <a href="https://compodoc.app/" target="_blank" rel="noopener noreferrer">
@@ -164,4 +177,4 @@ customElements.define('compodoc-menu', class extends HTMLElement {
164
177
  `);
165
178
  this.innerHTML = tp.strings;
166
179
  }
167
- });
180
+ });
@@ -150,17 +150,17 @@ document.addEventListener('DOMContentLoaded', function () {
150
150
  faAngleUpClass = 'ion-ios-arrow-up',
151
151
  faAngleDownClass = 'ion-ios-arrow-down',
152
152
  toggleItemMenu = function (e) {
153
- var element = $(e.target),
154
- parent = element[0].parentNode,
153
+ var element = e.target,
154
+ parent = element.parentNode,
155
155
  parentLink,
156
156
  elementIconChild;
157
157
  if (parent) {
158
- if (!$(parent).hasClass('linked')) {
158
+ if (!parent.classList.contains('linked')) {
159
159
  e.preventDefault();
160
160
  } else {
161
161
  parentLink = parent.parentNode;
162
- if (parentLink && element.hasClass('link-name')) {
163
- $(parentLink).trigger('click');
162
+ if (parentLink && element.classList.contains('link-name')) {
163
+ parentLink.trigger('click');
164
164
  }
165
165
  }
166
166
  elementIconChild = parent.getElementsByClassName(faAngleUpClass)[0];
@@ -168,13 +168,12 @@ document.addEventListener('DOMContentLoaded', function () {
168
168
  elementIconChild = parent.getElementsByClassName(faAngleDownClass)[0];
169
169
  }
170
170
  if (elementIconChild) {
171
- elementIconChild = $(elementIconChild);
172
- if (elementIconChild.hasClass(faAngleUpClass)) {
173
- elementIconChild.addClass(faAngleDownClass);
174
- elementIconChild.removeClass(faAngleUpClass);
171
+ if (elementIconChild.classList.contains(faAngleUpClass)) {
172
+ elementIconChild.classList.add(faAngleDownClass);
173
+ elementIconChild.classList.remove(faAngleUpClass);
175
174
  } else {
176
- elementIconChild.addClass(faAngleUpClass);
177
- elementIconChild.removeClass(faAngleDownClass);
175
+ elementIconChild.classList.add(faAngleUpClass);
176
+ elementIconChild.classList.remove(faAngleDownClass);
178
177
  }
179
178
  }
180
179
  }
@@ -0,0 +1 @@
1
+ var ROUTES_INDEX = {"name":"<root>","kind":"module","children":[]}
@@ -15,6 +15,65 @@ document.addEventListener('DOMContentLoaded', function () {
15
15
  return lazyModuleName;
16
16
  }
17
17
 
18
+ function foundLazyComponentWithPath(path) {
19
+ var split = path.split('#'),
20
+ lazyComponentName = split[1];
21
+ return lazyComponentName;
22
+ }
23
+
24
+ function safeHref(href) {
25
+ return String(href || '').replace(/"/g, '&quot;');
26
+ }
27
+
28
+ function resolveNodeHref(d) {
29
+ if (!d) {
30
+ return '';
31
+ }
32
+
33
+ if (d.href) {
34
+ return d.href;
35
+ }
36
+
37
+ if (d.component && d.component !== 'default') {
38
+ return './components/' + d.component + '.html';
39
+ }
40
+
41
+ if (d.module && d.module !== 'default') {
42
+ return './modules/' + d.module + '.html';
43
+ }
44
+
45
+ if (d.loadComponent) {
46
+ var lazyComponent = foundLazyComponentWithPath(d.loadComponent);
47
+ if (lazyComponent && lazyComponent !== 'default') {
48
+ return './components/' + lazyComponent + '.html';
49
+ }
50
+ }
51
+
52
+ if (d.loadChildren) {
53
+ var lazyModule = foundLazyModuleWithPath(d.loadChildren);
54
+ if (lazyModule && lazyModule !== 'default') {
55
+ return './modules/' + lazyModule + '.html';
56
+ }
57
+ }
58
+
59
+ return '';
60
+ }
61
+
62
+ function wrapLabelWithLink(label, href) {
63
+ if (!href) {
64
+ return label;
65
+ }
66
+ return '<a href="' + safeHref(href) + '" target="_top">' + label + '</a>';
67
+ }
68
+
69
+ function withLeadingSlash(routeValue) {
70
+ var value = String(routeValue || '');
71
+ if (value.length === 0) {
72
+ return '/';
73
+ }
74
+ return value.charAt(0) === '/' ? value : '/' + value;
75
+ }
76
+
18
77
  function getBB(selection) {
19
78
  selection.each(function (d) {
20
79
  d.bbox = this.getBBox();
@@ -26,16 +85,32 @@ document.addEventListener('DOMContentLoaded', function () {
26
85
  var tree = ROUTES_INDEX;
27
86
 
28
87
  function cleanStringChildren(obj) {
88
+ if (!obj || typeof obj !== 'object') {
89
+ return;
90
+ }
29
91
  for (var property in obj) {
30
- if (obj.hasOwnProperty(property)) {
31
- if (property === 'children' && typeof obj[property] === 'object') {
32
- for (var i = obj[property].length - 1; i >= 0; i--) {
33
- if (typeof obj[property][i] === 'string') {
34
- obj[property].splice(i, 1);
92
+ if (Object.prototype.hasOwnProperty.call(obj, property)) {
93
+ if (property === 'children') {
94
+ if (typeof obj[property] === 'string') {
95
+ obj[property] = [];
96
+ continue;
97
+ }
98
+
99
+ if (Array.isArray(obj[property])) {
100
+ for (var i = obj[property].length - 1; i >= 0; i--) {
101
+ if (
102
+ typeof obj[property][i] !== 'object' ||
103
+ obj[property][i] === null
104
+ ) {
105
+ obj[property].splice(i, 1);
106
+ }
35
107
  }
108
+ } else if (obj[property] && typeof obj[property] === 'object') {
109
+ obj[property] = [];
36
110
  }
37
111
  }
38
- if (typeof obj[property] === 'object') {
112
+
113
+ if (obj[property] && typeof obj[property] === 'object') {
39
114
  cleanStringChildren(obj[property]);
40
115
  }
41
116
  }
@@ -84,6 +159,17 @@ document.addEventListener('DOMContentLoaded', function () {
84
159
  dy: 0
85
160
  });
86
161
 
162
+ infos_group
163
+ .style('cursor', function (d) {
164
+ return resolveNodeHref(d) ? 'pointer' : null;
165
+ })
166
+ .on('click', function (d) {
167
+ var href = resolveNodeHref(d);
168
+ if (href) {
169
+ window.location.href = href;
170
+ }
171
+ });
172
+
87
173
  //Node icon
88
174
  infos_group
89
175
  .append('text')
@@ -118,49 +204,66 @@ document.addEventListener('DOMContentLoaded', function () {
118
204
  // if kind === module name + module
119
205
  // if kind === component component + path
120
206
  var _name = '';
207
+ var nodeHref = resolveNodeHref(d);
121
208
  if (d.kind === 'module') {
122
209
  if (d.module) {
123
210
  _name +=
124
- '<tspan x="0" dy="1.4em"><a href="./modules/' +
125
- d.module +
126
- '.html">' +
127
- d.module +
128
- '</a></tspan>';
211
+ '<tspan x="0" dy="1.4em">' +
212
+ wrapLabelWithLink(d.module, nodeHref || './modules/' + d.module + '.html') +
213
+ '</tspan>';
129
214
  if (d.name) {
130
215
  _name += '<tspan x="0" dy="1.4em">' + d.name + '</tspan>';
131
216
  }
132
217
  } else {
133
- _name += '<tspan x="0" dy="1.4em">' + htmlEntities(d.name) + '</tspan>';
218
+ _name +=
219
+ '<tspan x="0" dy="1.4em">' +
220
+ wrapLabelWithLink(htmlEntities(d.name), nodeHref) +
221
+ '</tspan>';
134
222
  }
135
223
  } else if (d.kind === 'component') {
136
- _name += '<tspan x="0" dy="1.4em">' + d.path + '</tspan>';
137
224
  _name +=
138
- '<tspan x="0" dy="1.4em"><a href="./components/' +
139
- d.component +
140
- '.html">' +
141
- d.component +
142
- '</a></tspan>';
225
+ '<tspan x="0" dy="1.4em">' +
226
+ wrapLabelWithLink(d.path || d.name, nodeHref) +
227
+ '</tspan>';
228
+ if (d.component) {
229
+ _name +=
230
+ '<tspan x="0" dy="1.4em">' +
231
+ wrapLabelWithLink(d.component, nodeHref) +
232
+ '</tspan>';
233
+ } else if (d.name && d.name.includes('Component')) {
234
+ _name += '<tspan x="0" dy="1.4em">' + wrapLabelWithLink(d.name, nodeHref) + '</tspan>';
235
+ }
143
236
  if (d.outlet) {
144
237
  _name += '<tspan x="0" dy="1.4em">&lt;outlet&gt; : ' + d.outlet + '</tspan>';
145
238
  }
146
239
  } else {
147
- _name += '<tspan x="0" dy="1.4em">/' + d.path + '</tspan>';
240
+ if (d.kind === 'route-redirect') {
241
+ var fromPath = d.path === '' ? "''" : withLeadingSlash(d.path || '');
242
+ var redirectTo = withLeadingSlash(d.redirectTo || d.name);
243
+ _name += '<tspan x="0" dy="1.4em">' + fromPath + ' &rarr; ' + redirectTo + '</tspan>';
244
+ if (d.pathMatch) {
245
+ _name += '<tspan x="0" dy="1.4em">pathMatch: ' + d.pathMatch + '</tspan>';
246
+ }
247
+ } else {
248
+ _name +=
249
+ '<tspan x="0" dy="1.4em">' +
250
+ wrapLabelWithLink(withLeadingSlash(d.path || d.name), nodeHref) +
251
+ '</tspan>';
252
+ }
148
253
  if (d.component) {
149
254
  _name +=
150
- '<tspan x="0" dy="1.4em"><a href="./components/' +
151
- d.component +
152
- '.html">' +
153
- d.component +
154
- '</a></tspan>';
255
+ '<tspan x="0" dy="1.4em">' +
256
+ wrapLabelWithLink(d.component, nodeHref) +
257
+ '</tspan>';
155
258
  }
156
259
  if (d.loadChildren) {
157
260
  var moduleName = foundLazyModuleWithPath(d.loadChildren);
158
- _name +=
159
- '<tspan x="0" dy="1.4em"><a href="./modules/' +
160
- moduleName +
161
- '.html">' +
162
- moduleName +
163
- '</a></tspan>';
261
+ if (moduleName && moduleName !== 'default') {
262
+ _name +=
263
+ '<tspan x="0" dy="1.4em">' +
264
+ wrapLabelWithLink(moduleName, './modules/' + moduleName + '.html') +
265
+ '</tspan>';
266
+ }
164
267
  }
165
268
  if (d.canActivate) {
166
269
  _name += '<tspan x="0" dy="1.4em">&#10003; canActivate</tspan>';
@@ -174,10 +277,10 @@ document.addEventListener('DOMContentLoaded', function () {
174
277
  if (d.canLoad) {
175
278
  _name += '<tspan x="0" dy="1.4em">&#8594; canLoad</tspan>';
176
279
  }
177
- if (d.redirectTo) {
280
+ if (d.kind !== 'route-redirect' && d.redirectTo) {
178
281
  _name += '<tspan x="0" dy="1.4em">&rarr; ' + d.redirectTo + '</tspan>';
179
282
  }
180
- if (d.pathMatch) {
283
+ if (d.kind !== 'route-redirect' && d.pathMatch) {
181
284
  _name += '<tspan x="0" dy="1.4em">&gt; ' + d.pathMatch + '</tspan>';
182
285
  }
183
286
  if (d.outlet) {
@@ -259,11 +362,16 @@ document.addEventListener('DOMContentLoaded', function () {
259
362
 
260
363
  var area_ave = area_sum / nodes.length;
261
364
  var scale = 80 / Math.sqrt(area_ave);
365
+ var depthHorizontalSpacing = 40;
262
366
 
263
367
  function svg_x(node_y) {
264
368
  return node_y - ymin;
265
369
  }
266
370
 
371
+ function projected_x(node) {
372
+ return svg_x(node.y) + (node.depth || 0) * depthHorizontalSpacing;
373
+ }
374
+
267
375
  function svg_y(node_x) {
268
376
  return (node_x - xmin) * scale;
269
377
  }
@@ -272,11 +380,11 @@ document.addEventListener('DOMContentLoaded', function () {
272
380
  var nodebox_vertical_margin = Math.min(y_size_min * scale, 3);
273
381
 
274
382
  node.attr('transform', function (d) {
275
- return 'translate(' + svg_x(d.y) + ',' + svg_y(d.x) + ')';
383
+ return 'translate(' + projected_x(d) + ',' + svg_y(d.x) + ')';
276
384
  });
277
385
 
278
386
  var diagonal = d3.svg.diagonal().projection(function (d) {
279
- return [svg_x(d.y), svg_y(d.x)];
387
+ return [projected_x(d), svg_y(d.x)];
280
388
  });
281
389
 
282
390
  var links = engine.links(nodes);
@@ -1,12 +1,11 @@
1
- (function(compodoc) {
2
-
1
+ (function (compodoc) {
3
2
  function LunrSearchEngine() {
4
3
  this.index = undefined;
5
4
  this.store = {};
6
5
  this.name = 'LunrSearchEngine';
7
6
  }
8
7
 
9
- LunrSearchEngine.prototype.init = function() {
8
+ LunrSearchEngine.prototype.init = function () {
10
9
  var that = this,
11
10
  d = new promise.Promise();
12
11
 
@@ -17,13 +16,13 @@
17
16
  return d;
18
17
  };
19
18
 
20
- LunrSearchEngine.prototype.search = function(q, offset, length) {
19
+ LunrSearchEngine.prototype.search = function (q, offset, length) {
21
20
  var that = this,
22
21
  results = [],
23
22
  d = new promise.Promise();
24
23
 
25
24
  if (this.index) {
26
- results = $.map(this.index.search('*' + q + '*'), function(result) {
25
+ results = this.index.search('*' + q + '*').map(function (result) {
27
26
  var doc = that.store[result.ref];
28
27
 
29
28
  return {
@@ -43,7 +42,7 @@
43
42
  return d;
44
43
  };
45
44
 
46
- compodoc.addEventListener(compodoc.EVENTS.READY, function(event) {
45
+ compodoc.addEventListener(compodoc.EVENTS.READY, function (event) {
47
46
  var engine = new LunrSearchEngine(),
48
47
  initialized = false;
49
48
 
@@ -56,8 +55,7 @@
56
55
  query: query
57
56
  };
58
57
 
59
- engine.init()
60
- .then(function() {
58
+ engine.init().then(function () {
61
59
  initialized = true;
62
60
  compodoc.dispatchEvent({
63
61
  type: compodoc.EVENTS.SEARCH_READY