@molecule/app-http-inspector-angular 0.0.0-stage → 1.1.0

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.
@@ -0,0 +1,555 @@
1
+ /**
2
+ * HttpInspector component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { Component } from '@angular/core';
7
+ import { useTranslation } from '@molecule/app-angular';
8
+ import { getClassMap } from '@molecule/app-ui';
9
+ import { Button, Input, Select, Textarea } from '@molecule/app-ui-angular';
10
+ import * as i0 from "@angular/core";
11
+ function HttpInspector_For_9_Template(rf, ctx) { if (rf & 1) {
12
+ const _r1 = i0.ɵɵgetCurrentView();
13
+ i0.ɵɵelementStart(0, "div")(1, "div", 5);
14
+ i0.ɵɵlistener("change", function HttpInspector_For_9_Template_div_change_1_listener($event) { const $index_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.handleHeaderKey($index_r2, $event)); });
15
+ i0.ɵɵelementEnd();
16
+ i0.ɵɵelementStart(2, "div", 6);
17
+ i0.ɵɵlistener("change", function HttpInspector_For_9_Template_div_change_2_listener($event) { const $index_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.handleHeaderValue($index_r2, $event)); });
18
+ i0.ɵɵelementEnd();
19
+ i0.ɵɵelementStart(3, "button", 4);
20
+ i0.ɵɵlistener("click", function HttpInspector_For_9_Template_button_click_3_listener() { const $index_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.removeHeader($index_r2)); });
21
+ i0.ɵɵtext(4, "\u00D7");
22
+ i0.ɵɵelementEnd()();
23
+ } if (rf & 2) {
24
+ const header_r4 = ctx.$implicit;
25
+ const $index_r2 = ctx.$index;
26
+ const ctx_r2 = i0.ɵɵnextContext();
27
+ i0.ɵɵclassMap(ctx_r2.headerRowClasses());
28
+ i0.ɵɵadvance();
29
+ i0.ɵɵproperty("id", "http-inspector-header-" + $index_r2 + "-key")("type", "text")("value", header_r4.key)("placeholder", ctx_r2.headerPlaceholder());
30
+ i0.ɵɵadvance();
31
+ i0.ɵɵproperty("id", "http-inspector-header-" + $index_r2 + "-value")("type", "text")("value", header_r4.value)("placeholder", ctx_r2.valuePlaceholder())("className", ctx_r2.flexClasses());
32
+ i0.ɵɵadvance();
33
+ i0.ɵɵproperty("variant", "ghost")("size", "sm");
34
+ } }
35
+ function HttpInspector_Conditional_12_Template(rf, ctx) { if (rf & 1) {
36
+ const _r5 = i0.ɵɵgetCurrentView();
37
+ i0.ɵɵelementStart(0, "div")(1, "span");
38
+ i0.ɵɵtext(2);
39
+ i0.ɵɵelementEnd();
40
+ i0.ɵɵelementStart(3, "div", 7);
41
+ i0.ɵɵlistener("change", function HttpInspector_Conditional_12_Template_div_change_3_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.handleBodyChange($event)); });
42
+ i0.ɵɵelementEnd()();
43
+ } if (rf & 2) {
44
+ const ctx_r2 = i0.ɵɵnextContext();
45
+ i0.ɵɵclassMap(ctx_r2.stack1Classes());
46
+ i0.ɵɵadvance();
47
+ i0.ɵɵclassMap(ctx_r2.labelClasses());
48
+ i0.ɵɵadvance();
49
+ i0.ɵɵtextInterpolate(ctx_r2.bodyLabel());
50
+ i0.ɵɵadvance();
51
+ i0.ɵɵproperty("id", "http-inspector-body")("value", ctx_r2.body)("rows", 6)("placeholder", ctx_r2.bodyPlaceholder);
52
+ } }
53
+ function HttpInspector_Conditional_13_Conditional_4_Template(rf, ctx) { if (rf & 1) {
54
+ i0.ɵɵelementStart(0, "span");
55
+ i0.ɵɵtext(1);
56
+ i0.ɵɵelementEnd();
57
+ } if (rf & 2) {
58
+ const resp_r6 = i0.ɵɵnextContext();
59
+ const ctx_r2 = i0.ɵɵnextContext();
60
+ i0.ɵɵclassMap(ctx_r2.textXsClasses());
61
+ i0.ɵɵadvance();
62
+ i0.ɵɵtextInterpolate1("", resp_r6.durationMs, "ms");
63
+ } }
64
+ function HttpInspector_Conditional_13_Conditional_6_Template(rf, ctx) { if (rf & 1) {
65
+ i0.ɵɵelementContainerStart(0);
66
+ i0.ɵɵtext(1);
67
+ i0.ɵɵelementContainerEnd();
68
+ } if (rf & 2) {
69
+ const resp_r6 = i0.ɵɵnextContext();
70
+ i0.ɵɵadvance();
71
+ i0.ɵɵtextInterpolate(resp_r6.body);
72
+ } }
73
+ function HttpInspector_Conditional_13_Template(rf, ctx) { if (rf & 1) {
74
+ i0.ɵɵelementStart(0, "div")(1, "div")(2, "span");
75
+ i0.ɵɵtext(3);
76
+ i0.ɵɵelementEnd();
77
+ i0.ɵɵconditionalCreate(4, HttpInspector_Conditional_13_Conditional_4_Template, 2, 3, "span", 3);
78
+ i0.ɵɵelementEnd();
79
+ i0.ɵɵelementStart(5, "pre");
80
+ i0.ɵɵconditionalCreate(6, HttpInspector_Conditional_13_Conditional_6_Template, 2, 1, "ng-container");
81
+ i0.ɵɵelementEnd()();
82
+ } if (rf & 2) {
83
+ const resp_r6 = ctx;
84
+ const ctx_r2 = i0.ɵɵnextContext();
85
+ i0.ɵɵclassMap(ctx_r2.stack2Classes());
86
+ i0.ɵɵadvance();
87
+ i0.ɵɵclassMap(ctx_r2.rowClasses());
88
+ i0.ɵɵadvance();
89
+ i0.ɵɵstyleMap(ctx_r2.statusStyle());
90
+ i0.ɵɵclassMap(ctx_r2.statusClasses(resp_r6.statusCode));
91
+ i0.ɵɵadvance();
92
+ i0.ɵɵtextInterpolate2("", resp_r6.statusCode, " ", resp_r6.statusText ?? "");
93
+ i0.ɵɵadvance();
94
+ i0.ɵɵconditional(resp_r6.durationMs !== undefined ? 4 : -1);
95
+ i0.ɵɵadvance();
96
+ i0.ɵɵstyleMap(ctx_r2.preStyle());
97
+ i0.ɵɵclassMap(ctx_r2.preClasses());
98
+ i0.ɵɵadvance();
99
+ i0.ɵɵconditional(resp_r6.body !== "" ? 6 : -1);
100
+ } }
101
+ /** The method options, in React's order. */
102
+ const METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'];
103
+ /**
104
+ * Returns the semantic tone representing the severity of an HTTP status code:
105
+ * the theme's success green below 300, info blue for a redirect, warning amber
106
+ * for a client error, error red for a server error.
107
+ *
108
+ * @param code - The response status code.
109
+ * @returns The badge's semantic tone.
110
+ */
111
+ const statusTone = (code) => {
112
+ if (code < 300)
113
+ return 'success';
114
+ if (code < 400)
115
+ return 'info';
116
+ if (code < 500)
117
+ return 'warning';
118
+ return 'error';
119
+ };
120
+ /**
121
+ * HttpInspector component.
122
+ *
123
+ * Controlled HTTP request builder + response panel. The host IS the outer
124
+ * `<div>` React renders (`div[mol-http-inspector]`), with the same classes.
125
+ * App owns request state + the actual `fetch`; this component renders the UI:
126
+ * method + URL row, headers key/value editor, body textarea (methods that
127
+ * allow a body), Send button, then a response panel showing status + timing +
128
+ * body.
129
+ */
130
+ export class HttpInspector {
131
+ /** The request's HTTP method. */
132
+ method = 'GET';
133
+ /** Called with the new method when the user picks one (React's `onMethodChange`). */
134
+ onMethodChange;
135
+ /** The request URL. */
136
+ url = '';
137
+ /** Called with the new URL as the user types (React's `onUrlChange`). */
138
+ onUrlChange;
139
+ /** The request headers, in render order. */
140
+ headers = [];
141
+ /** Called with the next header list on any header edit (React's `onHeadersChange`). */
142
+ onHeadersChange;
143
+ /** The request body. */
144
+ body = '';
145
+ /** Called with the new body as the user types (React's `onBodyChange`). */
146
+ onBodyChange;
147
+ /** Sends the request (React's `onSend`). */
148
+ onSend;
149
+ /** Whether a send is in flight (React's `sending`). */
150
+ sending;
151
+ /** The last response to show (React's `response`). */
152
+ response;
153
+ /** Extra classes on the outer wrapper (React's `className`). */
154
+ className;
155
+ /** The method options, in React's order. */
156
+ methodOptions = METHODS.map((method) => ({ value: method, label: method }));
157
+ /** The body textarea's placeholder (React's literal). */
158
+ bodyPlaceholder = '{"key": "value"}';
159
+ /**
160
+ * Reactive translation, read in the injection context. Its `t` reads the
161
+ * locale, so the view re-renders the labels on a locale switch (the static
162
+ * `t` does not).
163
+ */
164
+ i18n = useTranslation();
165
+ /**
166
+ * The current class map.
167
+ * @returns The UIClassMap.
168
+ */
169
+ cm() {
170
+ return getClassMap();
171
+ }
172
+ /**
173
+ * The wrapper class list (React's `cm.cn(cm.stack(3), className)`).
174
+ * @returns The class string.
175
+ */
176
+ classes() {
177
+ return this.cm().cn(this.cm().stack(3), this.className);
178
+ }
179
+ /**
180
+ * The method + URL row's class (React's `cm.flex({ align: 'center', gap: 'sm' })`).
181
+ * @returns The class string.
182
+ */
183
+ rowClasses() {
184
+ return this.cm().flex({ align: 'center', gap: 'sm' });
185
+ }
186
+ /**
187
+ * A header row's class (React's `cm.flex({ align: 'center', gap: 'xs' })`).
188
+ * @returns The class string.
189
+ */
190
+ headerRowClasses() {
191
+ return this.cm().flex({ align: 'center', gap: 'xs' });
192
+ }
193
+ /**
194
+ * The headers / body section's class (React's `cm.stack(1)`).
195
+ * @returns The class string.
196
+ */
197
+ stack1Classes() {
198
+ return this.cm().stack(1);
199
+ }
200
+ /**
201
+ * The response section's class (React's `cm.stack(2)`).
202
+ * @returns The class string.
203
+ */
204
+ stack2Classes() {
205
+ return this.cm().stack(2);
206
+ }
207
+ /**
208
+ * A section label's class (React's `cm.cn(cm.textSize('xs'), cm.fontWeight('semibold'))`).
209
+ * @returns The class string.
210
+ */
211
+ labelClasses() {
212
+ return this.cm().cn(this.cm().textSize('xs'), this.cm().fontWeight('semibold'));
213
+ }
214
+ /**
215
+ * The timing span's class (React's `cm.textSize('xs')`).
216
+ * @returns The class string.
217
+ */
218
+ textXsClasses() {
219
+ return this.cm().textSize('xs');
220
+ }
221
+ /**
222
+ * The response body panel's class (React's `cm.cn(cm.sp('p', 3), cm.textSize('xs'))`).
223
+ * @returns The class string.
224
+ */
225
+ preClasses() {
226
+ return this.cm().cn(this.cm().sp('p', 3), this.cm().textSize('xs'));
227
+ }
228
+ /**
229
+ * The URL input's extra class (React's `cm.flex1`).
230
+ * @returns The class string.
231
+ */
232
+ flexClasses() {
233
+ return this.cm().flex1;
234
+ }
235
+ /**
236
+ * The status badge's class list (React's `cm.bgTone(tone)` + `cm.textOnTone`).
237
+ *
238
+ * @param code - The response status code.
239
+ * @returns The class string.
240
+ */
241
+ statusClasses(code) {
242
+ return this.cm().cn(this.cm().bgTone(statusTone(code)), this.cm().textOnTone);
243
+ }
244
+ /**
245
+ * The status badge's inline style (React's padding, radius and weight; the
246
+ * tone colours come from {@link statusClasses}).
247
+ *
248
+ * @returns The style map.
249
+ */
250
+ statusStyle() {
251
+ return {
252
+ padding: '2px 8px',
253
+ 'border-radius': '4px',
254
+ 'font-weight': '700',
255
+ };
256
+ }
257
+ /**
258
+ * The response body panel's inline style (horizontal scrolling).
259
+ * @returns The style map.
260
+ */
261
+ preStyle() {
262
+ return { 'overflow-x': 'auto' };
263
+ }
264
+ /**
265
+ * Whether the body editor renders (React hides it for GET and HEAD).
266
+ * @returns True when the method allows a body.
267
+ */
268
+ showBody() {
269
+ return this.method !== 'GET' && this.method !== 'HEAD';
270
+ }
271
+ /**
272
+ * The Send button's pending label (React's `httpInspector.sending`).
273
+ * @returns The label text.
274
+ */
275
+ sendingText() {
276
+ return this.i18n.t('httpInspector.sending', {}, { defaultValue: 'Sending…' });
277
+ }
278
+ /**
279
+ * The Send button's idle label (React's `httpInspector.send`).
280
+ * @returns The label text.
281
+ */
282
+ sendText() {
283
+ return this.i18n.t('httpInspector.send', {}, { defaultValue: 'Send' });
284
+ }
285
+ /**
286
+ * The headers section's label (React's `httpInspector.headers`).
287
+ * @returns The label text.
288
+ */
289
+ headersLabel() {
290
+ return this.i18n.t('httpInspector.headers', {}, { defaultValue: 'Headers' });
291
+ }
292
+ /**
293
+ * The body section's label (React's `httpInspector.body`).
294
+ * @returns The label text.
295
+ */
296
+ bodyLabel() {
297
+ return this.i18n.t('httpInspector.body', {}, { defaultValue: 'Body' });
298
+ }
299
+ /**
300
+ * The add-header button's label (React's `httpInspector.addHeader`).
301
+ * @returns The label text.
302
+ */
303
+ addHeaderLabel() {
304
+ return this.i18n.t('httpInspector.addHeader', {}, { defaultValue: 'Add header' });
305
+ }
306
+ /**
307
+ * The method select's accessible label (React's `httpInspector.methodLabel`).
308
+ * @returns The label text.
309
+ */
310
+ methodLabel() {
311
+ return this.i18n.t('httpInspector.methodLabel', {}, { defaultValue: 'HTTP method' });
312
+ }
313
+ /**
314
+ * The URL field's accessible label (React's `httpInspector.urlLabel`).
315
+ * @returns The label text.
316
+ */
317
+ urlLabel() {
318
+ return this.i18n.t('httpInspector.urlLabel', {}, { defaultValue: 'URL' });
319
+ }
320
+ /**
321
+ * A header row's key placeholder (React's `httpInspector.headerPlaceholder`).
322
+ * @returns The placeholder text.
323
+ */
324
+ headerPlaceholder() {
325
+ return this.i18n.t('httpInspector.headerPlaceholder', {}, { defaultValue: 'Header' });
326
+ }
327
+ /**
328
+ * A header row's value placeholder (React's `httpInspector.valuePlaceholder`).
329
+ * @returns The placeholder text.
330
+ */
331
+ valuePlaceholder() {
332
+ return this.i18n.t('httpInspector.valuePlaceholder', {}, { defaultValue: 'Value' });
333
+ }
334
+ /**
335
+ * Reports a picked method (React's `onMethodChange`).
336
+ *
337
+ * @param method - The selected option value.
338
+ */
339
+ handleMethodChange(method) {
340
+ this.onMethodChange?.(method);
341
+ }
342
+ /**
343
+ * Adopts the typed URL (React's `onUrlChange`).
344
+ *
345
+ * @param event - The native input event.
346
+ */
347
+ handleUrlChange(event) {
348
+ this.onUrlChange?.(event.target.value);
349
+ }
350
+ /**
351
+ * Updates a single header's key, keeping its value (React's `setHeader`).
352
+ *
353
+ * @param i - The row index.
354
+ * @param event - The native input event.
355
+ */
356
+ handleHeaderKey(i, event) {
357
+ const next = [...this.headers];
358
+ next[i] = { key: event.target.value, value: next[i].value };
359
+ this.onHeadersChange?.(next);
360
+ }
361
+ /**
362
+ * Updates a single header's value, keeping its key (React's `setHeader`).
363
+ *
364
+ * @param i - The row index.
365
+ * @param event - The native input event.
366
+ */
367
+ handleHeaderValue(i, event) {
368
+ const next = [...this.headers];
369
+ next[i] = { key: next[i].key, value: event.target.value };
370
+ this.onHeadersChange?.(next);
371
+ }
372
+ /**
373
+ * Removes one header (React's `headers.filter((_, j) => j !== i)`).
374
+ *
375
+ * @param i - The row index.
376
+ */
377
+ removeHeader(i) {
378
+ this.onHeadersChange?.(this.headers.filter((_, j) => j !== i));
379
+ }
380
+ /**
381
+ * Appends an empty header (React's `[...headers, { key: '', value: '' }]`).
382
+ */
383
+ addHeader() {
384
+ this.onHeadersChange?.([...this.headers, { key: '', value: '' }]);
385
+ }
386
+ /**
387
+ * Adopts the typed body (React's `onBodyChange`).
388
+ *
389
+ * @param event - The native input event.
390
+ */
391
+ handleBodyChange(event) {
392
+ this.onBodyChange?.(event.target.value);
393
+ }
394
+ /**
395
+ * Calls the app's send handler (React's `void onSend()`).
396
+ */
397
+ send() {
398
+ void this.onSend?.();
399
+ }
400
+ static ɵfac = function HttpInspector_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HttpInspector)(); };
401
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HttpInspector, selectors: [["div", "mol-http-inspector", ""]], hostVars: 2, hostBindings: function HttpInspector_HostBindings(rf, ctx) { if (rf & 2) {
402
+ i0.ɵɵclassMap(ctx.classes());
403
+ } }, inputs: { method: "method", onMethodChange: "onMethodChange", url: "url", onUrlChange: "onUrlChange", headers: "headers", onHeadersChange: "onHeadersChange", body: "body", onBodyChange: "onBodyChange", onSend: "onSend", sending: "sending", response: "response", className: "className" }, decls: 14, vars: 25, consts: [["mol-select", "", "translate", "no", 3, "valueChange", "id", "options", "value"], ["mol-input", "", "placeholder", "https://api.example.com/v1/resources", "translate", "no", 3, "change", "id", "type", "value", "className"], ["mol-button", "", 3, "click", "variant", "color", "disabled"], [3, "class"], ["mol-button", "", 3, "click", "variant", "size"], ["mol-input", "", 3, "change", "id", "type", "value", "placeholder"], ["mol-input", "", 3, "change", "id", "type", "value", "placeholder", "className"], ["mol-textarea", "", "translate", "no", 3, "change", "id", "value", "rows", "placeholder"]], template: function HttpInspector_Template(rf, ctx) { if (rf & 1) {
404
+ i0.ɵɵelementStart(0, "div")(1, "div", 0);
405
+ i0.ɵɵlistener("valueChange", function HttpInspector_Template_div_valueChange_1_listener($event) { return ctx.handleMethodChange($event); });
406
+ i0.ɵɵelementEnd();
407
+ i0.ɵɵelementStart(2, "div", 1);
408
+ i0.ɵɵlistener("change", function HttpInspector_Template_div_change_2_listener($event) { return ctx.handleUrlChange($event); });
409
+ i0.ɵɵelementEnd();
410
+ i0.ɵɵelementStart(3, "button", 2);
411
+ i0.ɵɵlistener("click", function HttpInspector_Template_button_click_3_listener() { return ctx.send(); });
412
+ i0.ɵɵtext(4);
413
+ i0.ɵɵelementEnd()();
414
+ i0.ɵɵelementStart(5, "div")(6, "span");
415
+ i0.ɵɵtext(7);
416
+ i0.ɵɵelementEnd();
417
+ i0.ɵɵrepeaterCreate(8, HttpInspector_For_9_Template, 5, 13, "div", 3, i0.ɵɵrepeaterTrackByIndex);
418
+ i0.ɵɵelementStart(10, "button", 4);
419
+ i0.ɵɵlistener("click", function HttpInspector_Template_button_click_10_listener() { return ctx.addHeader(); });
420
+ i0.ɵɵtext(11);
421
+ i0.ɵɵelementEnd()();
422
+ i0.ɵɵconditionalCreate(12, HttpInspector_Conditional_12_Template, 4, 9, "div", 3);
423
+ i0.ɵɵconditionalCreate(13, HttpInspector_Conditional_13_Template, 7, 16, "div", 3);
424
+ } if (rf & 2) {
425
+ let tmp_22_0;
426
+ i0.ɵɵclassMap(ctx.rowClasses());
427
+ i0.ɵɵadvance();
428
+ i0.ɵɵproperty("id", "http-inspector-method")("options", ctx.methodOptions)("value", ctx.method);
429
+ i0.ɵɵattribute("aria-label", ctx.methodLabel());
430
+ i0.ɵɵadvance();
431
+ i0.ɵɵproperty("id", "http-inspector-url")("type", "text")("value", ctx.url)("className", ctx.flexClasses());
432
+ i0.ɵɵattribute("aria-label", ctx.urlLabel());
433
+ i0.ɵɵadvance();
434
+ i0.ɵɵproperty("variant", "solid")("color", "primary")("disabled", !!ctx.sending);
435
+ i0.ɵɵadvance();
436
+ i0.ɵɵtextInterpolate(ctx.sending ? ctx.sendingText() : ctx.sendText());
437
+ i0.ɵɵadvance();
438
+ i0.ɵɵclassMap(ctx.stack1Classes());
439
+ i0.ɵɵadvance();
440
+ i0.ɵɵclassMap(ctx.labelClasses());
441
+ i0.ɵɵadvance();
442
+ i0.ɵɵtextInterpolate(ctx.headersLabel());
443
+ i0.ɵɵadvance();
444
+ i0.ɵɵrepeater(ctx.headers);
445
+ i0.ɵɵadvance(2);
446
+ i0.ɵɵproperty("variant", "ghost")("size", "sm");
447
+ i0.ɵɵadvance();
448
+ i0.ɵɵtextInterpolate1("+ ", ctx.addHeaderLabel());
449
+ i0.ɵɵadvance();
450
+ i0.ɵɵconditional(ctx.showBody() ? 12 : -1);
451
+ i0.ɵɵadvance();
452
+ i0.ɵɵconditional((tmp_22_0 = ctx.response) ? 13 : -1, tmp_22_0);
453
+ } }, dependencies: [Button, Input, Select, Textarea], encapsulation: 2 });
454
+ }
455
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HttpInspector, [{
456
+ type: Component,
457
+ args: [{
458
+ selector: 'div[mol-http-inspector]',
459
+ standalone: true,
460
+ imports: [Button, Input, Select, Textarea],
461
+ inputs: [
462
+ 'method',
463
+ 'onMethodChange',
464
+ 'url',
465
+ 'onUrlChange',
466
+ 'headers',
467
+ 'onHeadersChange',
468
+ 'body',
469
+ 'onBodyChange',
470
+ 'onSend',
471
+ 'sending',
472
+ 'response',
473
+ 'className',
474
+ ],
475
+ host: {
476
+ '[class]': 'classes()',
477
+ },
478
+ // prettier-ignore
479
+ template: `<div [class]="rowClasses()"
480
+ ><!-- The options are protocol tokens (GET, POST, …): never translated, so the element carries HTML's own translate="no" attribute. --><div
481
+ mol-select
482
+ [id]="'http-inspector-method'"
483
+ [options]="methodOptions"
484
+ [value]="method"
485
+ (valueChange)="handleMethodChange($event)"
486
+ translate="no"
487
+ [attr.aria-label]="methodLabel()"
488
+ ></div
489
+ ><!-- The placeholder is an example URL — input, not prose: never translated. --><div
490
+ mol-input
491
+ [id]="'http-inspector-url'"
492
+ [type]="'text'"
493
+ [value]="url"
494
+ (change)="handleUrlChange($event)"
495
+ placeholder="https://api.example.com/v1/resources"
496
+ translate="no"
497
+ [className]="flexClasses()"
498
+ [attr.aria-label]="urlLabel()"
499
+ ></div
500
+ ><button
501
+ mol-button
502
+ [variant]="'solid'"
503
+ [color]="'primary'"
504
+ (click)="send()"
505
+ [disabled]="!!sending"
506
+ >{{ sending ? sendingText() : sendText() }}</button
507
+ ></div>
508
+ <div [class]="stack1Classes()"><span [class]="labelClasses()">{{ headersLabel() }}</span>
509
+ @for (header of headers; track $index) {
510
+ <div [class]="headerRowClasses()"
511
+ ><div
512
+ mol-input
513
+ [id]="'http-inspector-header-' + $index + '-key'"
514
+ [type]="'text'"
515
+ [value]="header.key"
516
+ (change)="handleHeaderKey($index, $event)"
517
+ [placeholder]="headerPlaceholder()"
518
+ ></div
519
+ ><div
520
+ mol-input
521
+ [id]="'http-inspector-header-' + $index + '-value'"
522
+ [type]="'text'"
523
+ [value]="header.value"
524
+ (change)="handleHeaderValue($index, $event)"
525
+ [placeholder]="valuePlaceholder()"
526
+ [className]="flexClasses()"
527
+ ></div
528
+ ><button mol-button [variant]="'ghost'" [size]="'sm'" (click)="removeHeader($index)">×</button
529
+ ></div>
530
+ }
531
+ <button mol-button [variant]="'ghost'" [size]="'sm'" (click)="addHeader()">+ {{ addHeaderLabel() }}</button>
532
+ </div>
533
+ @if (showBody()) {
534
+ <div [class]="stack1Classes()"><span [class]="labelClasses()">{{ bodyLabel() }}</span><!-- The placeholder is a JSON example — input, not prose: never translated. --><div
535
+ mol-textarea
536
+ [id]="'http-inspector-body'"
537
+ [value]="body"
538
+ (change)="handleBodyChange($event)"
539
+ [rows]="6"
540
+ [placeholder]="bodyPlaceholder"
541
+ translate="no"
542
+ ></div></div>
543
+ }
544
+ @if (response; as resp) {
545
+ <div [class]="stack2Classes()">
546
+ <div [class]="rowClasses()"
547
+ ><span [class]="statusClasses(resp.statusCode)" [style]="statusStyle()">{{ resp.statusCode }} {{ resp.statusText ?? '' }}</span
548
+ >@if (resp.durationMs !== undefined) {<span [class]="textXsClasses()">{{ resp.durationMs }}ms</span>}</div
549
+ ><pre [class]="preClasses()" [style]="preStyle()">@if (resp.body !== '') {<ng-container>{{ resp.body }}</ng-container>}</pre>
550
+ </div>
551
+ }`,
552
+ }]
553
+ }], null, null); })();
554
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HttpInspector, { className: "HttpInspector", filePath: "http-inspector.component.ts", lineNumber: 140 }); })();
555
+ //# sourceMappingURL=http-inspector.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-inspector.component.js","sourceRoot":"","sources":["../src/http-inspector.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;;;;IAsFjE,AADH,2BACG,aAOA;IAFC,uMAAU,yCAA+B,KAAC;IAE3C,iBACA;IAAA,8BAQA;IAHC,uMAAU,2CAAiC,KAAC;IAG7C,iBACA;IAAA,iCAAoF;IAA/B,kMAAS,8BAAoB,KAAC;IAAC,sBAAC;IACvF,AADuF,iBACvF,EAAM;;;;;IAnBF,wCAA4B;IAG7B,cAAiD;IAIjD,AA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qG,iBAAS,EACxG;YACN,iFAAkB;YAWlB,kFAAyB;;;YAjET,+BAAsB;YAGlC,cAA8B;YAE9B,AADA,AADA,4CAA8B,8BACL,qBACT;;YAOhB,cAA2B;YAM3B,AAJA,AADA,AADA,yCAA2B,gBACZ,kBACF,gCAIc;;YAK3B,cAAmB;YAGnB,AAFA,AADA,iCAAmB,oBACA,2BAEG;YACvB,cAA0C;YAA1C,sEAA0C;YAExC,cAAyB;YAAzB,kCAAyB;YAAO,cAAwB;YAAxB,iCAAwB;YAAC,cAAoB;YAApB,wCAAoB;YAChF,cAqBC;YArBD,0BAqBC;YACkB,eAAmB;YAAC,AAApB,iCAAmB,cAAc;YAAuB,cAAwB;YAAxB,iDAAwB;YAErG,cAUC;YAVD,0CAUC;YACD,cAOC;YAPD,+DAOC;4BA3FS,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ;;iFA6F9B,aAAa;cAhGzB,SAAS;eAAC;gBACT,QAAQ,EAAE,yBAAyB;gBACnC,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC;gBAC1C,MAAM,EAAE;oBACN,QAAQ;oBACR,gBAAgB;oBAChB,KAAK;oBACL,aAAa;oBACb,SAAS;oBACT,iBAAiB;oBACjB,MAAM;oBACN,cAAc;oBACd,QAAQ;oBACR,SAAS;oBACT,UAAU;oBACV,WAAW;iBACZ;gBACD,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;iBACvB;gBACD,kBAAkB;gBAClB,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwER;aACH;;kFACY,aAAa"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Angular HTTP request builder + response inspector — the counterpart of
3
+ * `@molecule/app-http-inspector-react`: the same props and the same DOM for the
4
+ * same input.
5
+ *
6
+ * Exports `<HttpInspector>`, `HttpMethod`, `HttpHeader`, `HttpResponse` types.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * import { Component, signal } from '@angular/core'
11
+ * import { HttpInspector } from '@molecule/app-http-inspector-angular'
12
+ * import type { HttpHeader, HttpMethod, HttpResponse } from '@molecule/app-http-inspector-angular'
13
+ *
14
+ * @Component({
15
+ * selector: 'app-inspector',
16
+ * standalone: true,
17
+ * imports: [HttpInspector],
18
+ * template: `
19
+ * <div
20
+ * mol-http-inspector
21
+ * [method]="method()"
22
+ * (onMethodChange)="method.set($event)"
23
+ * [url]="url()"
24
+ * (onUrlChange)="url.set($event)"
25
+ * [headers]="headers()"
26
+ * (onHeadersChange)="headers.set($event)"
27
+ * [body]="body()"
28
+ * (onBodyChange)="body.set($event)"
29
+ * [onSend]="send"
30
+ * [sending]="sending()"
31
+ * [response]="response()"
32
+ * ></div>
33
+ * `,
34
+ * })
35
+ * export class Inspector {
36
+ * readonly method = signal<HttpMethod>('GET')
37
+ * readonly url = signal('https://api.example.com/v1/users')
38
+ * readonly headers = signal<HttpHeader[]>([])
39
+ * readonly body = signal('')
40
+ * readonly sending = signal(false)
41
+ * readonly response = signal<HttpResponse | null>(null)
42
+ *
43
+ * async send() {
44
+ * this.sending.set(true)
45
+ * try {
46
+ * // YOUR fetch here; then this.response.set(...)
47
+ * } finally {
48
+ * this.sending.set(false)
49
+ * }
50
+ * }
51
+ * }
52
+ * ```
53
+ *
54
+ * @remarks
55
+ * - Fully controlled and transport-agnostic: the component renders the
56
+ * builder UI only — YOUR `onSend` performs the fetch and sets `response`
57
+ * (`HttpResponse` with statusCode/durationMs/body). `sending` disables the
58
+ * Send button.
59
+ * - Requires the Angular binding's i18n provider (`useTranslation()` THROWS
60
+ * without it) and a bonded ClassMap; button/tab labels come from the
61
+ * `@molecule/app-locales-http-inspector` companion bond.
62
+ * - The body editor renders only for methods with bodies (hidden for GET and
63
+ * HEAD).
64
+ * - The response status chip uses fixed severity colors (green/blue/
65
+ * yellow/red) rendered inline — they do not follow the app theme.
66
+ *
67
+ * @module
68
+ */
69
+ export * from './http-inspector.component.js';
70
+ export * from './types.js';
71
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AAEH,cAAc,+BAA+B,CAAA;AAC7C,cAAc,YAAY,CAAA"}