@covalent/markdown-navigator 11.5.8 → 11.5.10
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.
|
@@ -12,185 +12,488 @@ import * as i2 from '@angular/material/tooltip';
|
|
|
12
12
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
13
13
|
import * as i3 from '@angular/material/list';
|
|
14
14
|
import { MatListModule } from '@angular/material/list';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i1$1 from '@angular/material/icon';
|
|
16
16
|
import { MatIconModule } from '@angular/material/icon';
|
|
17
17
|
import * as i5 from '@angular/material/progress-bar';
|
|
18
18
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
19
19
|
import { TdMessageComponent } from '@covalent/core/message';
|
|
20
|
-
import { TdBreadcrumbsComponent } from '@covalent/core/breadcrumbs';
|
|
20
|
+
import { TdBreadcrumbsComponent, TdBreadcrumbComponent } from '@covalent/core/breadcrumbs';
|
|
21
21
|
import { TdWindowDialogComponent, TdDialogService, ResizableDraggableDialog } from '@covalent/core/dialogs';
|
|
22
22
|
|
|
23
|
+
const COV_ICON_LIST = [
|
|
24
|
+
'advanced_sql',
|
|
25
|
+
'advanced_sql_outlined',
|
|
26
|
+
'ai_assistant',
|
|
27
|
+
'alias_arrow',
|
|
28
|
+
'alias_arrow_outlined',
|
|
29
|
+
'api',
|
|
30
|
+
'api_outlined',
|
|
31
|
+
'api_ondark',
|
|
32
|
+
'application',
|
|
33
|
+
'application_outlined',
|
|
34
|
+
'attribution',
|
|
35
|
+
'attribution_outlined',
|
|
36
|
+
'auto_refresh_off',
|
|
37
|
+
'auto_refresh_off_outlined',
|
|
38
|
+
'auto_refresh_on',
|
|
39
|
+
'auto_refresh_on_outlined',
|
|
40
|
+
'autorefresh_pause',
|
|
41
|
+
'autorefresh_pause_outlined',
|
|
42
|
+
'autorenew_on',
|
|
43
|
+
'autorenew_on_outlined',
|
|
44
|
+
'autorenew_off',
|
|
45
|
+
'autorenew_off_outlined',
|
|
46
|
+
'branch',
|
|
47
|
+
'branch_outlined',
|
|
48
|
+
'bucket',
|
|
49
|
+
'bucket_outlined',
|
|
50
|
+
'cluster_analysis',
|
|
51
|
+
'cluster_analysis_outlined',
|
|
52
|
+
'code_deployed',
|
|
53
|
+
'code_deployed_outlined',
|
|
54
|
+
'code_deployed_retired',
|
|
55
|
+
'code_deployed_retired_outlined',
|
|
56
|
+
'code_fork',
|
|
57
|
+
'code_fork_outlined',
|
|
58
|
+
'column',
|
|
59
|
+
'column_outlined',
|
|
60
|
+
'compute_cluster',
|
|
61
|
+
'compute_cluster_outlined',
|
|
62
|
+
'compute_cluster_group',
|
|
63
|
+
'compute_cluster_group_outlined',
|
|
64
|
+
'compute_groups',
|
|
65
|
+
'compute_groups_outlined',
|
|
66
|
+
'compute_profile',
|
|
67
|
+
'compute_profile_outlined',
|
|
68
|
+
'compute_profile_dark',
|
|
69
|
+
'compute_profile_light',
|
|
70
|
+
'connected_identity',
|
|
71
|
+
'connected_identity_outlined',
|
|
72
|
+
'created_document',
|
|
73
|
+
'created_document_outlined',
|
|
74
|
+
'data_management',
|
|
75
|
+
'data_management_outlined',
|
|
76
|
+
'data_preparation',
|
|
77
|
+
'data_preparation_outlined',
|
|
78
|
+
'data_protection',
|
|
79
|
+
'data_protection_outlined',
|
|
80
|
+
'data_sharing',
|
|
81
|
+
'data_sharing_outlined',
|
|
82
|
+
'data_source',
|
|
83
|
+
'data_source_outlined',
|
|
84
|
+
'data_source_type_amazon',
|
|
85
|
+
'data_source_type_amazon_outlined',
|
|
86
|
+
'data_source_type_azure',
|
|
87
|
+
'data_source_type_azure_outlined',
|
|
88
|
+
'data_source_type_cloudera',
|
|
89
|
+
'data_source_type_cloudera_outlined',
|
|
90
|
+
'data_source_type_hdinsight',
|
|
91
|
+
'data_source_type_hdinsight_outlined',
|
|
92
|
+
'data_source_type_microsoft',
|
|
93
|
+
'data_source_type_microsoft_outlined',
|
|
94
|
+
'data_source_type_teradata',
|
|
95
|
+
'data_source_type_teradata_outlined',
|
|
96
|
+
'data_transformation_services',
|
|
97
|
+
'data_transformation_services_outlined',
|
|
98
|
+
'database',
|
|
99
|
+
'database_outlined',
|
|
100
|
+
'database_changed',
|
|
101
|
+
'database_changed_outlined',
|
|
102
|
+
'database_edit',
|
|
103
|
+
'database_edit_outlined',
|
|
104
|
+
'database_foreign',
|
|
105
|
+
'database_foreign_outlined',
|
|
106
|
+
'database_lab',
|
|
107
|
+
'database_lab_outlined',
|
|
108
|
+
'database_none',
|
|
109
|
+
'database_none_outlined',
|
|
110
|
+
'database_search',
|
|
111
|
+
'database_search_outlined',
|
|
112
|
+
'database_synced',
|
|
113
|
+
'database_synced_outlined',
|
|
114
|
+
'database_unreachable',
|
|
115
|
+
'database_unreachable_outlined',
|
|
116
|
+
'disconnect',
|
|
117
|
+
'dock_right',
|
|
118
|
+
'dock_right_outlined',
|
|
119
|
+
'embedding_model',
|
|
120
|
+
'engine',
|
|
121
|
+
'engine_outlined',
|
|
122
|
+
'engine_sql',
|
|
123
|
+
'engine_sql_outlined',
|
|
124
|
+
'file',
|
|
125
|
+
'file_outlined',
|
|
126
|
+
'file_changed',
|
|
127
|
+
'file_changed_outlined',
|
|
128
|
+
'file_edit',
|
|
129
|
+
'file_edit_outlined',
|
|
130
|
+
'file_foreign',
|
|
131
|
+
'file_foreign_outlined',
|
|
132
|
+
'file_lab',
|
|
133
|
+
'file_lab_outlined',
|
|
134
|
+
'file_search',
|
|
135
|
+
'file_search_outlined',
|
|
136
|
+
'file_synced',
|
|
137
|
+
'file_synced_outlined',
|
|
138
|
+
'filter_clear',
|
|
139
|
+
'filter_clear_outlined',
|
|
140
|
+
'formula',
|
|
141
|
+
'formula_outlined',
|
|
142
|
+
'lab',
|
|
143
|
+
'lab_outlined',
|
|
144
|
+
'loader_dots',
|
|
145
|
+
'machine_learning',
|
|
146
|
+
'machine_learning_outlined',
|
|
147
|
+
'machine_learning_ondark',
|
|
148
|
+
'managed_services',
|
|
149
|
+
'managed_services_outlined',
|
|
150
|
+
'merge',
|
|
151
|
+
'merge_outlined',
|
|
152
|
+
'model',
|
|
153
|
+
'model_outlined',
|
|
154
|
+
'model_ondark',
|
|
155
|
+
'model_configuration',
|
|
156
|
+
'model_configuration_outlined',
|
|
157
|
+
'model_configuration_ondark',
|
|
158
|
+
'no_results',
|
|
159
|
+
'no_results_outlined',
|
|
160
|
+
'node_branch',
|
|
161
|
+
'node_merge',
|
|
162
|
+
'node_notification',
|
|
163
|
+
'node_notification_outlined',
|
|
164
|
+
'node_notification_ondark',
|
|
165
|
+
'nos',
|
|
166
|
+
'nos_outlined',
|
|
167
|
+
'object_browser_view',
|
|
168
|
+
'object_browser_view_outlined',
|
|
169
|
+
'object_storage',
|
|
170
|
+
'object_storage_outlined',
|
|
171
|
+
'object_storage_ondark',
|
|
172
|
+
'operations',
|
|
173
|
+
'operations_outlined',
|
|
174
|
+
'operators_divide',
|
|
175
|
+
'operators_divide_outlined',
|
|
176
|
+
'operators_equals',
|
|
177
|
+
'operators_equals_outlined',
|
|
178
|
+
'operators_greater_than',
|
|
179
|
+
'operators_greater_than_outlined',
|
|
180
|
+
'operators_greater_than_or_equal',
|
|
181
|
+
'operators_greater_than_or_equal_outlined',
|
|
182
|
+
'operators_less_than',
|
|
183
|
+
'operators_less_than_outlined',
|
|
184
|
+
'operators_less_than_or_equal',
|
|
185
|
+
'operators_less_than_or_equal_outlined',
|
|
186
|
+
'operators_multiply',
|
|
187
|
+
'operators_multiply_outlined',
|
|
188
|
+
'operators_not_equal',
|
|
189
|
+
'operators_not_equal_outlined',
|
|
190
|
+
'operators_parentheses',
|
|
191
|
+
'operators_parentheses_outlined',
|
|
192
|
+
'operators_parenthesis_left',
|
|
193
|
+
'operators_parenthesis_left_outlined',
|
|
194
|
+
'operators_parenthesis_right',
|
|
195
|
+
'operators_parenthesis_right_outlined',
|
|
196
|
+
'operators_subtract',
|
|
197
|
+
'operators_subtract_outlined',
|
|
198
|
+
'pinned',
|
|
199
|
+
'pin_outlined',
|
|
200
|
+
'placeholder',
|
|
201
|
+
'placeholder_outlined',
|
|
202
|
+
'primary_cluster',
|
|
203
|
+
'primary_cluster_outlined',
|
|
204
|
+
'product_analyst',
|
|
205
|
+
'product_analyst_outlined',
|
|
206
|
+
'product_appcenter',
|
|
207
|
+
'product_appcenter_outlined',
|
|
208
|
+
'product_console',
|
|
209
|
+
'product_console_outlined',
|
|
210
|
+
'product_cx',
|
|
211
|
+
'product_cx_outlined',
|
|
212
|
+
'product_editor',
|
|
213
|
+
'product_editor_outlined',
|
|
214
|
+
'product_jupyterhub',
|
|
215
|
+
'product_jupyterhub_outlined',
|
|
216
|
+
'product_modelops',
|
|
217
|
+
'product_modelops_outlined',
|
|
218
|
+
'product_outbound_campaign_manager',
|
|
219
|
+
'product_outbound_campaign_manager_outlined',
|
|
220
|
+
'product_querygrid',
|
|
221
|
+
'product_querygrid_outlined',
|
|
222
|
+
'product_streams',
|
|
223
|
+
'product_streams_outlined',
|
|
224
|
+
'product_vantage',
|
|
225
|
+
'product_vantage_outlined',
|
|
226
|
+
'product_viewpoint',
|
|
227
|
+
'product_viewpoint_outlined',
|
|
228
|
+
'professional_services',
|
|
229
|
+
'professional_services_outlined',
|
|
230
|
+
'report',
|
|
231
|
+
'report_outlined',
|
|
232
|
+
'resize_northeast',
|
|
233
|
+
'resize_northeast_outlined',
|
|
234
|
+
'resize_northwest',
|
|
235
|
+
'resize_northwest_outlined',
|
|
236
|
+
'resize_southeast',
|
|
237
|
+
'resize_southeast_outlined',
|
|
238
|
+
'resize_southwest',
|
|
239
|
+
'resize_southwest_outlined',
|
|
240
|
+
'row',
|
|
241
|
+
'row_outlined',
|
|
242
|
+
'rules',
|
|
243
|
+
'rules_outlined',
|
|
244
|
+
'rules_ondark',
|
|
245
|
+
'rules_insert',
|
|
246
|
+
'rules_insert_outlined',
|
|
247
|
+
'rules_insert_ondark',
|
|
248
|
+
'rules_select',
|
|
249
|
+
'rules_select_outlined',
|
|
250
|
+
'rules_select_ondark',
|
|
251
|
+
'sankey',
|
|
252
|
+
'sankey_outlined',
|
|
253
|
+
'script',
|
|
254
|
+
'script_outlined',
|
|
255
|
+
'script_ondark',
|
|
256
|
+
'script_macro',
|
|
257
|
+
'script_macro_ondark',
|
|
258
|
+
'script_management',
|
|
259
|
+
'script_management_outlined',
|
|
260
|
+
'script_sql',
|
|
261
|
+
'script_sql_outlined',
|
|
262
|
+
'script_sql_ondark',
|
|
263
|
+
'script_stored_procedure',
|
|
264
|
+
'script_stored_procedure_outlined',
|
|
265
|
+
'script_stored_procedure_ondark',
|
|
266
|
+
'segmentation',
|
|
267
|
+
'segmentation_outlined',
|
|
268
|
+
'server',
|
|
269
|
+
'server_outlined',
|
|
270
|
+
'server_changed',
|
|
271
|
+
'server_changed_outlined',
|
|
272
|
+
'server_edit',
|
|
273
|
+
'server_edit_outlined',
|
|
274
|
+
'server_foreign',
|
|
275
|
+
'server_foreign_outlined',
|
|
276
|
+
'server_lab',
|
|
277
|
+
'server_lab_outlined',
|
|
278
|
+
'server_search',
|
|
279
|
+
'server_search_outlined',
|
|
280
|
+
'server_synced',
|
|
281
|
+
'server_synced_outlined',
|
|
282
|
+
'server_workspace',
|
|
283
|
+
'server_workspace_outlined',
|
|
284
|
+
'sftp',
|
|
285
|
+
'sftp_outlined',
|
|
286
|
+
'sftp_ondark',
|
|
287
|
+
'slack',
|
|
288
|
+
'state_cancelled',
|
|
289
|
+
'state_cancelled_outlined',
|
|
290
|
+
'state_caution',
|
|
291
|
+
'state_caution_outlined',
|
|
292
|
+
'state_changed',
|
|
293
|
+
'state_changed_outlined',
|
|
294
|
+
'state_negative',
|
|
295
|
+
'state_negative_outlined',
|
|
296
|
+
'state_paused',
|
|
297
|
+
'state_paused_outlined',
|
|
298
|
+
'state_positive',
|
|
299
|
+
'state_positive_outlined',
|
|
300
|
+
'table',
|
|
301
|
+
'table_outlined',
|
|
302
|
+
'table_changed',
|
|
303
|
+
'table_changed_outlined',
|
|
304
|
+
'table_edit',
|
|
305
|
+
'table_edit_outlined',
|
|
306
|
+
'table_foreign',
|
|
307
|
+
'table_foreign_outlined',
|
|
308
|
+
'table_lab',
|
|
309
|
+
'table_lab_outlined',
|
|
310
|
+
'table_search',
|
|
311
|
+
'table_search_outlined',
|
|
312
|
+
'table_synced',
|
|
313
|
+
'table_synced_outlined',
|
|
314
|
+
'teradata',
|
|
315
|
+
'teradata_outlined',
|
|
316
|
+
'teradata_nocircle',
|
|
317
|
+
'teradata_nobackground',
|
|
318
|
+
'teradata_nobackground_outlined',
|
|
319
|
+
'text_analysis',
|
|
320
|
+
'text_analysis_outlined',
|
|
321
|
+
'undock',
|
|
322
|
+
'undock_outlined',
|
|
323
|
+
'user_defined_function',
|
|
324
|
+
'user_defined_function_outlined',
|
|
325
|
+
'variable',
|
|
326
|
+
'variable_outlined',
|
|
327
|
+
'variable_ondark',
|
|
328
|
+
'view_sankey',
|
|
329
|
+
'wand',
|
|
330
|
+
'wand_outlined',
|
|
331
|
+
'workflow',
|
|
332
|
+
'workflow_outlined',
|
|
333
|
+
];
|
|
334
|
+
|
|
23
335
|
const _c0 = ["markdownWrapper"];
|
|
24
336
|
const _c1 = () => ({});
|
|
25
|
-
|
|
26
|
-
|
|
337
|
+
const _forTrack0 = ($index, $item) => $item.id ?? $index;
|
|
338
|
+
function TdMarkdownNavigatorComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
339
|
+
i0.ɵɵelement(0, "mat-progress-bar", 2);
|
|
27
340
|
} }
|
|
28
|
-
function
|
|
341
|
+
function TdMarkdownNavigatorComponent_Conditional_0_Conditional_2_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
29
342
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
30
|
-
i0.ɵɵ
|
|
31
|
-
i0.ɵɵ
|
|
32
|
-
i0.ɵɵ
|
|
33
|
-
i0.ɵɵtext(2);
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
i0.ɵɵelementContainerEnd();
|
|
36
|
-
} if (rf & 2) {
|
|
37
|
-
const stack_r5 = i0.ɵɵnextContext().$implicit;
|
|
38
|
-
i0.ɵɵadvance();
|
|
39
|
-
i0.ɵɵattribute("data-test", "back-button");
|
|
40
|
-
i0.ɵɵadvance();
|
|
41
|
-
i0.ɵɵtextInterpolate(stack_r5.title);
|
|
42
|
-
} }
|
|
43
|
-
function TdMarkdownNavigatorComponent_ng_container_0_ng_container_2_ng_container_4_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
44
|
-
i0.ɵɵelementStart(0, "mat-icon", 16);
|
|
45
|
-
i0.ɵɵtext(1, "chevron_right");
|
|
343
|
+
i0.ɵɵelementStart(0, "a", 11);
|
|
344
|
+
i0.ɵɵlistener("click", function TdMarkdownNavigatorComponent_Conditional_0_Conditional_2_For_4_Template_a_click_0_listener() { const ɵ$index_13_r4 = i0.ɵɵrestoreView(_r3).$index; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.goBack(ctx_r1.historyStack.length - ɵ$index_13_r4)); });
|
|
345
|
+
i0.ɵɵtext(1);
|
|
46
346
|
i0.ɵɵelementEnd();
|
|
47
|
-
} }
|
|
48
|
-
function TdMarkdownNavigatorComponent_ng_container_0_ng_container_2_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
-
i0.ɵɵelementContainerStart(0);
|
|
50
|
-
i0.ɵɵtemplate(1, TdMarkdownNavigatorComponent_ng_container_0_ng_container_2_ng_container_4_ng_container_1_Template, 3, 2, "ng-container", 14)(2, TdMarkdownNavigatorComponent_ng_container_0_ng_container_2_ng_container_4_ng_template_2_Template, 2, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
51
|
-
i0.ɵɵelementContainerEnd();
|
|
52
347
|
} if (rf & 2) {
|
|
53
|
-
const
|
|
54
|
-
const
|
|
348
|
+
const item_r5 = ctx.$implicit;
|
|
349
|
+
const ɵ$index_13_r4 = ctx.$index;
|
|
350
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
351
|
+
i0.ɵɵattribute("data-test", "back-button-" + ɵ$index_13_r4);
|
|
55
352
|
i0.ɵɵadvance();
|
|
56
|
-
i0.ɵɵ
|
|
353
|
+
i0.ɵɵtextInterpolate(ctx_r1.getTitle(item_r5));
|
|
57
354
|
} }
|
|
58
|
-
function
|
|
355
|
+
function TdMarkdownNavigatorComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
59
356
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
60
|
-
i0.ɵɵ
|
|
61
|
-
i0.ɵɵ
|
|
62
|
-
i0.ɵɵ
|
|
63
|
-
i0.ɵɵtext(3, "Home");
|
|
357
|
+
i0.ɵɵelementStart(0, "td-breadcrumbs")(1, "a", 8);
|
|
358
|
+
i0.ɵɵlistener("click", function TdMarkdownNavigatorComponent_Conditional_0_Conditional_2_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.reset()); });
|
|
359
|
+
i0.ɵɵtext(2, "Home");
|
|
64
360
|
i0.ɵɵelementEnd();
|
|
65
|
-
i0.ɵɵ
|
|
361
|
+
i0.ɵɵrepeaterCreate(3, TdMarkdownNavigatorComponent_Conditional_0_Conditional_2_For_4_Template, 2, 2, "a", 9, _forTrack0);
|
|
66
362
|
i0.ɵɵelementEnd();
|
|
67
|
-
i0.ɵɵelementStart(5, "div",
|
|
363
|
+
i0.ɵɵelementStart(5, "div", 10);
|
|
68
364
|
i0.ɵɵtext(6);
|
|
69
365
|
i0.ɵɵelementEnd();
|
|
70
366
|
i0.ɵɵelement(7, "mat-divider");
|
|
71
|
-
i0.ɵɵelementContainerEnd();
|
|
72
367
|
} if (rf & 2) {
|
|
73
368
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
74
|
-
i0.ɵɵadvance(
|
|
369
|
+
i0.ɵɵadvance();
|
|
75
370
|
i0.ɵɵproperty("matTooltip", ctx_r1.goHomeLabel ?? "");
|
|
76
371
|
i0.ɵɵattribute("data-test", "home-button");
|
|
77
372
|
i0.ɵɵadvance(2);
|
|
78
|
-
i0.ɵɵ
|
|
79
|
-
i0.ɵɵadvance();
|
|
373
|
+
i0.ɵɵrepeater(ctx_r1.navigationBreadcrumbs);
|
|
374
|
+
i0.ɵɵadvance(2);
|
|
80
375
|
i0.ɵɵattribute("data-test", "title");
|
|
81
376
|
i0.ɵɵadvance();
|
|
82
377
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.currentItemTitle, " ");
|
|
83
378
|
i0.ɵɵadvance();
|
|
84
379
|
i0.ɵɵstyleProp("position", "relative");
|
|
85
380
|
} }
|
|
86
|
-
function
|
|
87
|
-
i0.ɵɵelement(0, "td-message",
|
|
381
|
+
function TdMarkdownNavigatorComponent_Conditional_0_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
382
|
+
i0.ɵɵelement(0, "td-message", 5);
|
|
88
383
|
} if (rf & 2) {
|
|
89
384
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
90
385
|
i0.ɵɵproperty("sublabel", ctx_r1.markdownLoaderError);
|
|
91
386
|
i0.ɵɵattribute("data-test", "markdown-loader-error");
|
|
92
387
|
} }
|
|
93
|
-
function
|
|
94
|
-
const
|
|
95
|
-
i0.ɵɵelementStart(0, "td-flavored-markdown-loader",
|
|
96
|
-
i0.ɵɵlistener("loadFailed", function
|
|
388
|
+
function TdMarkdownNavigatorComponent_Conditional_0_Conditional_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
389
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
390
|
+
i0.ɵɵelementStart(0, "td-flavored-markdown-loader", 14);
|
|
391
|
+
i0.ɵɵlistener("loadFailed", function TdMarkdownNavigatorComponent_Conditional_0_Conditional_4_Conditional_3_Template_td_flavored_markdown_loader_loadFailed_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.handleMarkdownLoaderError($event)); })("buttonClicked", function TdMarkdownNavigatorComponent_Conditional_0_Conditional_4_Conditional_3_Template_td_flavored_markdown_loader_buttonClicked_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.buttonClicked.emit($event)); });
|
|
97
392
|
i0.ɵɵelementEnd();
|
|
98
393
|
} if (rf & 2) {
|
|
99
394
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
100
395
|
i0.ɵɵproperty("url", ctx_r1.url ?? "")("httpOptions", ctx_r1.httpOptions ?? i0.ɵɵpureFunction0(5, _c1))("anchor", ctx_r1.anchor ?? "")("copyCodeToClipboard", ctx_r1.copyCodeToClipboard)("copyCodeTooltips", ctx_r1.copyCodeTooltips);
|
|
101
396
|
} }
|
|
102
|
-
function
|
|
103
|
-
const
|
|
104
|
-
i0.ɵɵelementStart(0, "td-flavored-markdown",
|
|
105
|
-
i0.ɵɵlistener("buttonClicked", function
|
|
397
|
+
function TdMarkdownNavigatorComponent_Conditional_0_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
398
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
399
|
+
i0.ɵɵelementStart(0, "td-flavored-markdown", 15);
|
|
400
|
+
i0.ɵɵlistener("buttonClicked", function TdMarkdownNavigatorComponent_Conditional_0_Conditional_4_Conditional_4_Template_td_flavored_markdown_buttonClicked_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.buttonClicked.emit($event)); });
|
|
106
401
|
i0.ɵɵelementEnd();
|
|
107
402
|
} if (rf & 2) {
|
|
108
403
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
109
404
|
i0.ɵɵproperty("content", ctx_r1.markdownString ?? "")("hostedUrl", ctx_r1.url ?? "")("anchor", ctx_r1.anchor ?? "")("copyCodeToClipboard", ctx_r1.copyCodeToClipboard)("copyCodeTooltips", ctx_r1.copyCodeTooltips);
|
|
110
405
|
} }
|
|
111
|
-
function
|
|
112
|
-
i0.ɵɵelementStart(0, "div",
|
|
113
|
-
i0.ɵɵ
|
|
406
|
+
function TdMarkdownNavigatorComponent_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
407
|
+
i0.ɵɵelementStart(0, "div", 4, 0);
|
|
408
|
+
i0.ɵɵconditionalCreate(2, TdMarkdownNavigatorComponent_Conditional_0_Conditional_4_Conditional_2_Template, 1, 2, "td-message", 5);
|
|
409
|
+
i0.ɵɵconditionalCreate(3, TdMarkdownNavigatorComponent_Conditional_0_Conditional_4_Conditional_3_Template, 1, 6, "td-flavored-markdown-loader", 12);
|
|
410
|
+
i0.ɵɵconditionalCreate(4, TdMarkdownNavigatorComponent_Conditional_0_Conditional_4_Conditional_4_Template, 1, 5, "td-flavored-markdown", 13);
|
|
114
411
|
i0.ɵɵelementEnd();
|
|
115
412
|
} if (rf & 2) {
|
|
116
413
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
117
414
|
i0.ɵɵadvance(2);
|
|
118
|
-
i0.ɵɵ
|
|
415
|
+
i0.ɵɵconditional(ctx_r1.markdownLoaderError ? 2 : -1);
|
|
119
416
|
i0.ɵɵadvance();
|
|
120
|
-
i0.ɵɵ
|
|
417
|
+
i0.ɵɵconditional(ctx_r1.showTdMarkdownLoader ? 3 : -1);
|
|
121
418
|
i0.ɵɵadvance();
|
|
122
|
-
i0.ɵɵ
|
|
419
|
+
i0.ɵɵconditional(ctx_r1.showTdMarkdown ? 4 : -1);
|
|
123
420
|
} }
|
|
124
|
-
function
|
|
125
|
-
i0.ɵɵelement(0, "td-message",
|
|
421
|
+
function TdMarkdownNavigatorComponent_Conditional_0_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
422
|
+
i0.ɵɵelement(0, "td-message", 5);
|
|
126
423
|
} if (rf & 2) {
|
|
127
424
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
128
425
|
i0.ɵɵproperty("sublabel", ctx_r1.childrenUrlError);
|
|
129
426
|
i0.ɵɵattribute("data-test", "children-url-error");
|
|
130
427
|
} }
|
|
131
|
-
function
|
|
132
|
-
const
|
|
133
|
-
i0.ɵɵelementStart(0, "button",
|
|
134
|
-
i0.ɵɵlistener("click", function
|
|
135
|
-
i0.ɵɵelementStart(1, "mat-icon",
|
|
428
|
+
function TdMarkdownNavigatorComponent_Conditional_0_Conditional_6_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
429
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
430
|
+
i0.ɵɵelementStart(0, "button", 17);
|
|
431
|
+
i0.ɵɵlistener("click", function TdMarkdownNavigatorComponent_Conditional_0_Conditional_6_For_3_Template_button_click_0_listener() { const item_r9 = i0.ɵɵrestoreView(_r8).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.handleItemSelected(item_r9)); });
|
|
432
|
+
i0.ɵɵelementStart(1, "mat-icon", 18);
|
|
136
433
|
i0.ɵɵtext(2);
|
|
137
434
|
i0.ɵɵelementEnd();
|
|
138
|
-
i0.ɵɵelementStart(3, "span",
|
|
435
|
+
i0.ɵɵelementStart(3, "span", 19);
|
|
139
436
|
i0.ɵɵtext(4);
|
|
140
437
|
i0.ɵɵelementEnd();
|
|
141
|
-
i0.ɵɵelementStart(5, "span",
|
|
438
|
+
i0.ɵɵelementStart(5, "span", 20);
|
|
142
439
|
i0.ɵɵtext(6);
|
|
143
440
|
i0.ɵɵelementEnd();
|
|
144
441
|
i0.ɵɵelement(7, "mat-divider");
|
|
145
442
|
i0.ɵɵelementEnd();
|
|
146
443
|
} if (rf & 2) {
|
|
147
|
-
const
|
|
148
|
-
const
|
|
444
|
+
const item_r9 = ctx.$implicit;
|
|
445
|
+
const ɵ$index_44_r10 = ctx.$index;
|
|
149
446
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
150
|
-
i0.ɵɵproperty("id", "td-markdown-navigator-list-item-" + (
|
|
151
|
-
i0.ɵɵadvance(
|
|
152
|
-
i0.ɵɵ
|
|
447
|
+
i0.ɵɵproperty("id", "td-markdown-navigator-list-item-" + (item_r9.id ? item_r9.id : ɵ$index_44_r10))("matTooltip", ctx_r1.getTitle(item_r9));
|
|
448
|
+
i0.ɵɵadvance();
|
|
449
|
+
i0.ɵɵattribute("fontSet", ctx_r1.isCovalentIcon(item_r9) ? "covalent-icons" : null);
|
|
450
|
+
i0.ɵɵadvance();
|
|
451
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.getIcon(item_r9), " ");
|
|
153
452
|
i0.ɵɵadvance(2);
|
|
154
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.getTitle(
|
|
453
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.getTitle(item_r9), " ");
|
|
155
454
|
i0.ɵɵadvance(2);
|
|
156
|
-
i0.ɵɵ
|
|
455
|
+
i0.ɵɵtextInterpolate1(" ", item_r9.description, " ");
|
|
157
456
|
} }
|
|
158
|
-
function
|
|
159
|
-
i0.ɵɵelementStart(0, "div",
|
|
160
|
-
i0.ɵɵ
|
|
457
|
+
function TdMarkdownNavigatorComponent_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
458
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "mat-action-list");
|
|
459
|
+
i0.ɵɵrepeaterCreate(2, TdMarkdownNavigatorComponent_Conditional_0_Conditional_6_For_3_Template, 8, 6, "button", 16, _forTrack0);
|
|
161
460
|
i0.ɵɵelementEnd()();
|
|
162
461
|
} if (rf & 2) {
|
|
163
462
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
164
463
|
i0.ɵɵadvance(2);
|
|
165
|
-
i0.ɵɵ
|
|
464
|
+
i0.ɵɵrepeater(ctx_r1.currentMenuItems);
|
|
166
465
|
} }
|
|
167
|
-
function
|
|
466
|
+
function TdMarkdownNavigatorComponent_Conditional_0_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
168
467
|
i0.ɵɵelementContainer(0);
|
|
169
468
|
} }
|
|
170
|
-
function
|
|
469
|
+
function TdMarkdownNavigatorComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
171
470
|
i0.ɵɵelementContainerStart(0);
|
|
172
|
-
i0.ɵɵ
|
|
173
|
-
i0.ɵɵ
|
|
174
|
-
i0.ɵɵ
|
|
471
|
+
i0.ɵɵconditionalCreate(1, TdMarkdownNavigatorComponent_Conditional_0_Conditional_1_Template, 1, 0, "mat-progress-bar", 2);
|
|
472
|
+
i0.ɵɵconditionalCreate(2, TdMarkdownNavigatorComponent_Conditional_0_Conditional_2_Template, 8, 6);
|
|
473
|
+
i0.ɵɵelementStart(3, "div", 3);
|
|
474
|
+
i0.ɵɵconditionalCreate(4, TdMarkdownNavigatorComponent_Conditional_0_Conditional_4_Template, 5, 3, "div", 4);
|
|
475
|
+
i0.ɵɵconditionalCreate(5, TdMarkdownNavigatorComponent_Conditional_0_Conditional_5_Template, 1, 2, "td-message", 5);
|
|
476
|
+
i0.ɵɵconditionalCreate(6, TdMarkdownNavigatorComponent_Conditional_0_Conditional_6_Template, 4, 0, "div", 6);
|
|
477
|
+
i0.ɵɵtemplate(7, TdMarkdownNavigatorComponent_Conditional_0_ng_container_7_Template, 1, 0, "ng-container", 7);
|
|
175
478
|
i0.ɵɵelementEnd();
|
|
176
479
|
i0.ɵɵelementContainerEnd();
|
|
177
480
|
} if (rf & 2) {
|
|
178
481
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
179
482
|
i0.ɵɵadvance();
|
|
180
|
-
i0.ɵɵ
|
|
483
|
+
i0.ɵɵconditional(ctx_r1.loading ? 1 : -1);
|
|
181
484
|
i0.ɵɵadvance();
|
|
182
|
-
i0.ɵɵ
|
|
485
|
+
i0.ɵɵconditional(ctx_r1.showHeader ? 2 : -1);
|
|
183
486
|
i0.ɵɵadvance(2);
|
|
184
|
-
i0.ɵɵ
|
|
487
|
+
i0.ɵɵconditional(ctx_r1.showTdMarkdownLoader || ctx_r1.showTdMarkdown ? 4 : -1);
|
|
185
488
|
i0.ɵɵadvance();
|
|
186
|
-
i0.ɵɵ
|
|
489
|
+
i0.ɵɵconditional(ctx_r1.childrenUrlError ? 5 : -1);
|
|
187
490
|
i0.ɵɵadvance();
|
|
188
|
-
i0.ɵɵ
|
|
491
|
+
i0.ɵɵconditional(ctx_r1.showMenu ? 6 : -1);
|
|
189
492
|
i0.ɵɵadvance();
|
|
190
493
|
i0.ɵɵproperty("ngComponentOutlet", ctx_r1.footerComponent);
|
|
191
494
|
} }
|
|
192
|
-
function
|
|
193
|
-
i0.ɵɵelementStart(0, "div",
|
|
495
|
+
function TdMarkdownNavigatorComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
496
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "mat-icon", 21);
|
|
194
497
|
i0.ɵɵtext(2, "subject");
|
|
195
498
|
i0.ɵɵelementEnd();
|
|
196
499
|
i0.ɵɵelementStart(3, "h2");
|
|
@@ -343,6 +646,9 @@ class TdMarkdownNavigatorComponent {
|
|
|
343
646
|
}
|
|
344
647
|
return '';
|
|
345
648
|
}
|
|
649
|
+
get navigationBreadcrumbs() {
|
|
650
|
+
return this.historyStack.slice(0, -1);
|
|
651
|
+
}
|
|
346
652
|
async ngOnChanges(changes) {
|
|
347
653
|
if (changes['items']) {
|
|
348
654
|
this.reset();
|
|
@@ -454,6 +760,10 @@ class TdMarkdownNavigatorComponent {
|
|
|
454
760
|
getIcon(item) {
|
|
455
761
|
return item?.icon || 'subject';
|
|
456
762
|
}
|
|
763
|
+
isCovalentIcon(item) {
|
|
764
|
+
const icon = this.getIcon(item);
|
|
765
|
+
return COV_ICON_LIST.includes(icon);
|
|
766
|
+
}
|
|
457
767
|
handleChildrenUrlError(error) {
|
|
458
768
|
this.childrenUrlError = error.message;
|
|
459
769
|
this._changeDetectorRef.markForCheck();
|
|
@@ -559,17 +869,19 @@ class TdMarkdownNavigatorComponent {
|
|
|
559
869
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.markdownWrapper = _t.first);
|
|
560
870
|
} }, hostBindings: function TdMarkdownNavigatorComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
561
871
|
i0.ɵɵlistener("click", function TdMarkdownNavigatorComponent_click_HostBindingHandler($event) { return ctx.clickListener($event); });
|
|
562
|
-
} }, inputs: { items: "items", labels: "labels", startAt: "startAt", copyCodeToClipboard: "copyCodeToClipboard", copyCodeTooltips: "copyCodeTooltips", footer: "footer", compareWith: "compareWith" }, outputs: { buttonClicked: "buttonClicked", itemSelected: "itemSelected" }, features: [i0.ɵɵProvidersFeature([TdMarkdownLoaderService]), i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["
|
|
563
|
-
i0.ɵɵ
|
|
872
|
+
} }, inputs: { items: "items", labels: "labels", startAt: "startAt", copyCodeToClipboard: "copyCodeToClipboard", copyCodeTooltips: "copyCodeTooltips", footer: "footer", compareWith: "compareWith" }, outputs: { buttonClicked: "buttonClicked", itemSelected: "itemSelected" }, features: [i0.ɵɵProvidersFeature([TdMarkdownLoaderService]), i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["markdownWrapper", ""], ["layout", "column", "layout-align", "center center", 1, "empty-state"], ["mode", "indeterminate", "color", "accent"], ["id", "td-markdown-navigator-content", 1, "scroll-area"], [1, "markdown-wrapper"], ["color", "warn", "icon", "error", 3, "sublabel"], [1, "td-markdown-list"], [4, "ngComponentOutlet"], ["td-breadcrumb", "", 3, "click", "matTooltip"], ["td-breadcrumb", ""], [1, "breadcrumb-current-title"], ["td-breadcrumb", "", 3, "click"], [3, "url", "httpOptions", "anchor", "copyCodeToClipboard", "copyCodeTooltips"], [3, "content", "hostedUrl", "anchor", "copyCodeToClipboard", "copyCodeTooltips"], [3, "loadFailed", "buttonClicked", "url", "httpOptions", "anchor", "copyCodeToClipboard", "copyCodeTooltips"], [3, "buttonClicked", "content", "hostedUrl", "anchor", "copyCodeToClipboard", "copyCodeTooltips"], ["mat-list-item", "", "matTooltipPosition", "before", "matTooltipShowDelay", "500", 3, "id", "matTooltip"], ["mat-list-item", "", "matTooltipPosition", "before", "matTooltipShowDelay", "500", 3, "click", "id", "matTooltip"], ["matListItemIcon", ""], ["matListItemTitle", "", 1, "truncate"], ["matListItemLine", "", 1, "truncate"], ["matListItemAvatar", ""]], template: function TdMarkdownNavigatorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
873
|
+
i0.ɵɵconditionalCreate(0, TdMarkdownNavigatorComponent_Conditional_0_Template, 8, 6, "ng-container");
|
|
874
|
+
i0.ɵɵconditionalCreate(1, TdMarkdownNavigatorComponent_Conditional_1_Template, 5, 1, "div", 1);
|
|
564
875
|
} if (rf & 2) {
|
|
565
|
-
i0.ɵɵ
|
|
876
|
+
i0.ɵɵconditional(!ctx.showEmptyState ? 0 : -1);
|
|
566
877
|
i0.ɵɵadvance();
|
|
567
|
-
i0.ɵɵ
|
|
568
|
-
} }, dependencies: [CommonModule, i1.NgComponentOutlet,
|
|
569
|
-
MatTooltipModule, i2.MatTooltip, MatListModule, i3.MatActionList, i3.MatListItem, i3.MatListItemAvatar, i3.MatListItemIcon, i3.MatDivider, i3.MatListItemLine, i3.MatListItemTitle, MatIconModule,
|
|
878
|
+
i0.ɵɵconditional(ctx.showEmptyState ? 1 : -1);
|
|
879
|
+
} }, dependencies: [CommonModule, i1.NgComponentOutlet, MatButtonModule,
|
|
880
|
+
MatTooltipModule, i2.MatTooltip, MatListModule, i3.MatActionList, i3.MatListItem, i3.MatListItemAvatar, i3.MatListItemIcon, i3.MatDivider, i3.MatListItemLine, i3.MatListItemTitle, MatIconModule, i1$1.MatIcon, MatProgressBarModule, i5.MatProgressBar, TdFlavoredMarkdownComponent,
|
|
570
881
|
TdFlavoredMarkdownLoaderComponent,
|
|
571
882
|
TdMessageComponent,
|
|
572
|
-
TdBreadcrumbsComponent
|
|
883
|
+
TdBreadcrumbsComponent,
|
|
884
|
+
TdBreadcrumbComponent], styles: ["[_nghost-%COMP%]{position:relative;height:inherit;height:100%;box-sizing:border-box;display:flex;flex-direction:column}[_nghost-%COMP%] .breadcrumb-current-title[_ngcontent-%COMP%]{margin-bottom:16px;padding-left:16px}[_nghost-%COMP%] .breadcrumb-end-icon[_ngcontent-%COMP%]{margin-left:8px;font-size:16px;width:16px;height:16px}[_nghost-%COMP%] .scroll-area[_ngcontent-%COMP%]{min-height:1px;overflow-y:auto;flex:1;box-sizing:border-box}[_nghost-%COMP%] .markdown-wrapper[_ngcontent-%COMP%]{padding:16px 16px 0}[_nghost-%COMP%] .td-markdown-list[_ngcontent-%COMP%] > .mat-list[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%] td-breadcrumbs[_ngcontent-%COMP%]{padding:8px 8px 0 16px}[_nghost-%COMP%] td-flavored-markdown-loader[_ngcontent-%COMP%] .mat-progress-bar{top:0;left:0;right:0;position:absolute}[_nghost-%COMP%] .title[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin:8px 0;padding-left:16px}.truncate[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-state[_ngcontent-%COMP%]{padding:32px}.empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:4em}"], changeDetection: 0 });
|
|
573
885
|
}
|
|
574
886
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdMarkdownNavigatorComponent, [{
|
|
575
887
|
type: Component,
|
|
@@ -584,7 +896,8 @@ class TdMarkdownNavigatorComponent {
|
|
|
584
896
|
TdFlavoredMarkdownLoaderComponent,
|
|
585
897
|
TdMessageComponent,
|
|
586
898
|
TdBreadcrumbsComponent,
|
|
587
|
-
|
|
899
|
+
TdBreadcrumbComponent,
|
|
900
|
+
], providers: [TdMarkdownLoaderService], template: "@if (!showEmptyState) {\n <ng-container>\n @if (loading) {\n <mat-progress-bar mode=\"indeterminate\" color=\"accent\"></mat-progress-bar>\n }\n\n @if (showHeader) {\n <td-breadcrumbs>\n <a\n td-breadcrumb\n [matTooltip]=\"goHomeLabel ?? ''\"\n (click)=\"reset()\"\n [attr.data-test]=\"'home-button'\"\n >Home</a\n >\n\n @for (\n item of navigationBreadcrumbs;\n let index = $index;\n track item.id ?? index\n ) {\n <a\n td-breadcrumb\n (click)=\"goBack(historyStack.length - index)\"\n [attr.data-test]=\"'back-button-' + index\"\n >{{ getTitle(item) }}</a\n >\n }\n </td-breadcrumbs>\n\n <div class=\"breadcrumb-current-title\" [attr.data-test]=\"'title'\">\n {{ currentItemTitle }}\n </div>\n\n <mat-divider [style.position]=\"'relative'\"></mat-divider>\n }\n\n <div class=\"scroll-area\" id=\"td-markdown-navigator-content\">\n @if (showTdMarkdownLoader || showTdMarkdown) {\n <div class=\"markdown-wrapper\" #markdownWrapper>\n @if (markdownLoaderError) {\n <td-message\n [sublabel]=\"markdownLoaderError\"\n color=\"warn\"\n icon=\"error\"\n [attr.data-test]=\"'markdown-loader-error'\"\n ></td-message>\n }\n\n @if (showTdMarkdownLoader) {\n <td-flavored-markdown-loader\n [url]=\"url ?? ''\"\n [httpOptions]=\"httpOptions ?? {}\"\n [anchor]=\"anchor ?? ''\"\n [copyCodeToClipboard]=\"copyCodeToClipboard\"\n [copyCodeTooltips]=\"copyCodeTooltips\"\n (loadFailed)=\"handleMarkdownLoaderError($event)\"\n (buttonClicked)=\"buttonClicked.emit($event)\"\n ></td-flavored-markdown-loader>\n }\n\n @if (showTdMarkdown) {\n <td-flavored-markdown\n [content]=\"markdownString ?? ''\"\n [hostedUrl]=\"url ?? ''\"\n [anchor]=\"anchor ?? ''\"\n [copyCodeToClipboard]=\"copyCodeToClipboard\"\n [copyCodeTooltips]=\"copyCodeTooltips\"\n (buttonClicked)=\"buttonClicked.emit($event)\"\n ></td-flavored-markdown>\n }\n </div>\n }\n\n @if (childrenUrlError) {\n <td-message\n [sublabel]=\"childrenUrlError\"\n color=\"warn\"\n icon=\"error\"\n [attr.data-test]=\"'children-url-error'\"\n ></td-message>\n }\n\n @if (showMenu) {\n <div class=\"td-markdown-list\">\n <mat-action-list>\n @for (\n item of currentMenuItems;\n let index = $index;\n track item.id ?? index\n ) {\n <button\n [id]=\"\n 'td-markdown-navigator-list-item-' +\n (item.id ? item.id : index)\n \"\n (click)=\"handleItemSelected(item)\"\n mat-list-item\n [matTooltip]=\"getTitle(item)\"\n matTooltipPosition=\"before\"\n matTooltipShowDelay=\"500\"\n >\n <mat-icon\n matListItemIcon\n [attr.fontSet]=\"\n isCovalentIcon(item) ? 'covalent-icons' : null\n \"\n >\n {{ getIcon(item) }}\n </mat-icon>\n <span matListItemTitle class=\"truncate\">\n {{ getTitle(item) }}\n </span>\n <span matListItemLine class=\"truncate\">\n {{ item.description }}\n </span>\n <mat-divider></mat-divider>\n </button>\n }\n </mat-action-list>\n </div>\n }\n <ng-container *ngComponentOutlet=\"footerComponent\"></ng-container>\n </div>\n </ng-container>\n}\n\n@if (showEmptyState) {\n <div layout=\"column\" layout-align=\"center center\" class=\"empty-state\">\n <mat-icon matListItemAvatar>subject</mat-icon>\n <h2>{{ emptyStateLabel }}</h2>\n </div>\n}\n", styles: [":host{position:relative;height:inherit;height:100%;box-sizing:border-box;display:flex;flex-direction:column}:host .breadcrumb-current-title{margin-bottom:16px;padding-left:16px}:host .breadcrumb-end-icon{margin-left:8px;font-size:16px;width:16px;height:16px}:host .scroll-area{min-height:1px;overflow-y:auto;flex:1;box-sizing:border-box}:host .markdown-wrapper{padding:16px 16px 0}:host .td-markdown-list>.mat-list{padding-top:0}:host td-breadcrumbs{padding:8px 8px 0 16px}:host td-flavored-markdown-loader ::ng-deep .mat-progress-bar{top:0;left:0;right:0;position:absolute}:host .title{display:inline-block;vertical-align:middle;margin:8px 0;padding-left:16px}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-state{padding:32px}.empty-state mat-icon{font-size:4em}\n"] }]
|
|
588
901
|
}], null, { items: [{
|
|
589
902
|
type: Input
|
|
590
903
|
}], labels: [{
|
|
@@ -610,7 +923,7 @@ class TdMarkdownNavigatorComponent {
|
|
|
610
923
|
type: HostListener,
|
|
611
924
|
args: ['click', ['$event']]
|
|
612
925
|
}] }); })();
|
|
613
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdMarkdownNavigatorComponent, { className: "TdMarkdownNavigatorComponent", filePath: "markdown-navigator.component.ts", lineNumber:
|
|
926
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdMarkdownNavigatorComponent, { className: "TdMarkdownNavigatorComponent", filePath: "markdown-navigator.component.ts", lineNumber: 96 }); })();
|
|
614
927
|
function getTitleFromUrl(url) {
|
|
615
928
|
if (url) {
|
|
616
929
|
const temp = new URL(url);
|
|
@@ -865,7 +1178,10 @@ class TdMarkdownNavigatorWindowDirective {
|
|
|
865
1178
|
* Please migrate to using standalone components as soon as possible.
|
|
866
1179
|
*/
|
|
867
1180
|
class CovalentMarkdownNavigatorModule {
|
|
868
|
-
|
|
1181
|
+
constructor(iconRegistry) {
|
|
1182
|
+
iconRegistry.registerFontClassAlias('covalent-icons', 'covalent-icons mat-ligature-font');
|
|
1183
|
+
}
|
|
1184
|
+
static ɵfac = function CovalentMarkdownNavigatorModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentMarkdownNavigatorModule)(i0.ɵɵinject(i1$1.MatIconRegistry)); };
|
|
869
1185
|
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentMarkdownNavigatorModule });
|
|
870
1186
|
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [TdMarkdownNavigatorWindowService, TdDialogService], imports: [CommonModule,
|
|
871
1187
|
TdMarkdownNavigatorComponent,
|
|
@@ -887,7 +1203,7 @@ class CovalentMarkdownNavigatorModule {
|
|
|
887
1203
|
],
|
|
888
1204
|
providers: [TdMarkdownNavigatorWindowService, TdDialogService],
|
|
889
1205
|
}]
|
|
890
|
-
}],
|
|
1206
|
+
}], () => [{ type: i1$1.MatIconRegistry }], null); })();
|
|
891
1207
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentMarkdownNavigatorModule, { imports: [CommonModule,
|
|
892
1208
|
TdMarkdownNavigatorComponent,
|
|
893
1209
|
TdMarkdownNavigatorWindowComponent,
|