@facet-tools/ui 0.0.0-stage → 0.1.0-rc.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 (82) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +6 -0
  3. package/README.md +24 -2
  4. package/THIRD_PARTY.md +673 -0
  5. package/dist/NOTICE +6 -0
  6. package/dist/THIRD_PARTY.md +15 -0
  7. package/dist/atlas-BsWEDCxa.d.cts +4861 -0
  8. package/dist/atlas-BsWEDCxa.d.ts +4861 -0
  9. package/dist/chunk-7FW4IMVY.cjs +2013 -0
  10. package/dist/chunk-7FW4IMVY.cjs.map +1 -0
  11. package/dist/chunk-7SLSRYM3.cjs +6324 -0
  12. package/dist/chunk-7SLSRYM3.cjs.map +1 -0
  13. package/dist/chunk-A4BERWE6.js +19973 -0
  14. package/dist/chunk-A4BERWE6.js.map +1 -0
  15. package/dist/chunk-EZP2CCQY.js +6209 -0
  16. package/dist/chunk-EZP2CCQY.js.map +1 -0
  17. package/dist/chunk-FR6DIALV.js +511 -0
  18. package/dist/chunk-FR6DIALV.js.map +1 -0
  19. package/dist/chunk-GDFKDECN.cjs +1788 -0
  20. package/dist/chunk-GDFKDECN.cjs.map +1 -0
  21. package/dist/chunk-K2OVG2BC.cjs +20035 -0
  22. package/dist/chunk-K2OVG2BC.cjs.map +1 -0
  23. package/dist/chunk-LOI5RY3Y.js +1754 -0
  24. package/dist/chunk-LOI5RY3Y.js.map +1 -0
  25. package/dist/chunk-SWCO2XQL.js +1968 -0
  26. package/dist/chunk-SWCO2XQL.js.map +1 -0
  27. package/dist/chunk-WAG2ZZJH.cjs +514 -0
  28. package/dist/chunk-WAG2ZZJH.cjs.map +1 -0
  29. package/dist/classic.cjs +467 -0
  30. package/dist/classic.cjs.map +1 -0
  31. package/dist/classic.css +635 -0
  32. package/dist/classic.d.cts +4 -0
  33. package/dist/classic.d.ts +4 -0
  34. package/dist/classic.js +6 -0
  35. package/dist/classic.js.map +1 -0
  36. package/dist/companion-BUs0yNdX.d.cts +110 -0
  37. package/dist/companion-DOQ435G6.d.ts +110 -0
  38. package/dist/core/fixtures.cjs +268 -0
  39. package/dist/core/fixtures.cjs.map +1 -0
  40. package/dist/core/fixtures.d.cts +11 -0
  41. package/dist/core/fixtures.d.ts +11 -0
  42. package/dist/core/fixtures.js +261 -0
  43. package/dist/core/fixtures.js.map +1 -0
  44. package/dist/core.cjs +310 -0
  45. package/dist/core.cjs.map +1 -0
  46. package/dist/core.d.cts +268 -0
  47. package/dist/core.d.ts +268 -0
  48. package/dist/core.js +5 -0
  49. package/dist/core.js.map +1 -0
  50. package/dist/elements.cjs +616 -0
  51. package/dist/elements.cjs.map +1 -0
  52. package/dist/elements.d.cts +20 -0
  53. package/dist/elements.d.ts +20 -0
  54. package/dist/elements.js +612 -0
  55. package/dist/elements.js.map +1 -0
  56. package/dist/facet/atlas.cjs +25 -0
  57. package/dist/facet/atlas.cjs.map +1 -0
  58. package/dist/facet/atlas.d.cts +2 -0
  59. package/dist/facet/atlas.d.ts +2 -0
  60. package/dist/facet/atlas.js +4 -0
  61. package/dist/facet/atlas.js.map +1 -0
  62. package/dist/facet-ui.standalone.js +104 -0
  63. package/dist/facet.cjs +253 -0
  64. package/dist/facet.cjs.map +1 -0
  65. package/dist/facet.css +10649 -0
  66. package/dist/facet.d.cts +91 -0
  67. package/dist/facet.d.ts +91 -0
  68. package/dist/facet.js +4 -0
  69. package/dist/facet.js.map +1 -0
  70. package/dist/index.cjs +467 -0
  71. package/dist/index.cjs.map +1 -0
  72. package/dist/index.d.cts +1584 -0
  73. package/dist/index.d.ts +1584 -0
  74. package/dist/index.js +6 -0
  75. package/dist/index.js.map +1 -0
  76. package/dist/licenses/react-dom@19.2.8/LICENSE +21 -0
  77. package/dist/licenses/react@19.2.8/LICENSE +21 -0
  78. package/dist/licenses/scheduler@0.27.0/LICENSE +21 -0
  79. package/dist/tokens.css +635 -0
  80. package/dist/types-DkZBrIXE.d.cts +527 -0
  81. package/dist/types-DkZBrIXE.d.ts +527 -0
  82. package/package.json +169 -4
@@ -0,0 +1,612 @@
1
+ import { Seal_default, LifecycleBadge_default, GherkinStatement_default, ProofMatrix_default, AnchorMap_default, CoverageRing_default, Bar_default, SegmentBand_default, StatValue_default, Text_default, Stack_default, Surface_default, Hairline_default, Mark_default, Dot_default, Counter_default, ScanValue_default, QuietLine_default, Kbd_default, Skeleton_default, FieldRow_default, ProbeNumber_default, Button_default, DepthLadder_default, Trail_default, RecordPicker_default, Markdown_default, Companion_default, RoleGate_default, FocusRow_default, RestCloud_default, Sheet_default, Blind_default, EmptyState_default, ErrorState_default, IndexProgress_default, ScenarioLedger_default, TestPyramid_default, KnowledgeSlots_default, ClauseSheet_default, FieldSheet_default, EvidenceLedger_default, SignalStack_default, DependencyFan_default, EntryCards_default, GroupTiles_default, Timeline_default, RecordSource_default } from './chunk-EZP2CCQY.js';
2
+ import './chunk-SWCO2XQL.js';
3
+ import './chunk-LOI5RY3Y.js';
4
+ import { labelText } from './chunk-FR6DIALV.js';
5
+ import { createElement } from 'react';
6
+ import { createRoot } from 'react-dom/client';
7
+
8
+ function parseValue(raw, kind) {
9
+ if (raw == null) return void 0;
10
+ if (kind === "number") {
11
+ const value = Number(raw);
12
+ return Number.isNaN(value) ? void 0 : value;
13
+ }
14
+ if (kind === "boolean") return raw !== "false";
15
+ if (kind === "json") {
16
+ try {
17
+ return JSON.parse(raw);
18
+ } catch {
19
+ return void 0;
20
+ }
21
+ }
22
+ return raw;
23
+ }
24
+ function defineFacetElement(definition) {
25
+ if (typeof window === "undefined" || !window.customElements) return;
26
+ if (window.customElements.get(definition.tag)) return;
27
+ const attributeNames = Object.keys(definition.attributes);
28
+ class FacetElement extends HTMLElement {
29
+ static get observedAttributes() {
30
+ return attributeNames;
31
+ }
32
+ root = null;
33
+ props = { ...definition.defaults };
34
+ captured = null;
35
+ connectedCallback() {
36
+ if (definition.children && this.captured == null) {
37
+ this.captured = this.innerHTML.trim();
38
+ }
39
+ if (!this.root) this.root = createRoot(this);
40
+ this.readAttributes();
41
+ this.bindEvents();
42
+ this.render();
43
+ }
44
+ attributeChangedCallback() {
45
+ if (!this.root) return;
46
+ this.readAttributes();
47
+ this.render();
48
+ }
49
+ disconnectedCallback() {
50
+ const root = this.root;
51
+ this.root = null;
52
+ if (root) queueMicrotask(() => root.unmount());
53
+ }
54
+ setProps(next) {
55
+ this.props = { ...this.props, ...next };
56
+ this.render();
57
+ }
58
+ readAttributes() {
59
+ attributeNames.forEach((name) => {
60
+ const spec = definition.attributes[name];
61
+ const value = parseValue(this.getAttribute(name), spec.kind);
62
+ if (value !== void 0) {
63
+ this.props[spec.prop] = value;
64
+ }
65
+ });
66
+ }
67
+ bindEvents() {
68
+ Object.entries(definition.events ?? {}).forEach(([prop, type]) => {
69
+ const props = this.props;
70
+ if (typeof props[prop] === "function") return;
71
+ props[prop] = (detail) => {
72
+ this.dispatchEvent(new CustomEvent(String(type), { detail, bubbles: true }));
73
+ };
74
+ });
75
+ }
76
+ render() {
77
+ const props = { ...this.props };
78
+ if (definition.children && this.captured) {
79
+ props.children = createElement("span", {
80
+ dangerouslySetInnerHTML: { __html: this.captured }
81
+ });
82
+ }
83
+ this.root?.render(createElement(definition.component, props));
84
+ }
85
+ }
86
+ window.customElements.define(definition.tag, FacetElement);
87
+ }
88
+
89
+ // src/elements/index.ts
90
+ var FACET_ELEMENT_TAGS = [
91
+ "facet-anchor-map",
92
+ "facet-bar",
93
+ "facet-blind",
94
+ "facet-button",
95
+ "facet-clause-sheet",
96
+ "facet-companion",
97
+ "facet-counter",
98
+ "facet-coverage-ring",
99
+ "facet-dependency-fan",
100
+ "facet-depth-ladder",
101
+ "facet-dot",
102
+ "facet-empty-state",
103
+ "facet-entry-cards",
104
+ "facet-error-state",
105
+ "facet-evidence-ledger",
106
+ "facet-field-row",
107
+ "facet-field-sheet",
108
+ "facet-focus-row",
109
+ "facet-gherkin-statement",
110
+ "facet-group-tiles",
111
+ "facet-hairline",
112
+ "facet-index-progress",
113
+ "facet-kbd",
114
+ "facet-knowledge-slots",
115
+ "facet-lifecycle-badge",
116
+ "facet-mark",
117
+ "facet-markdown",
118
+ "facet-probe-number",
119
+ "facet-proof-matrix",
120
+ "facet-quiet-line",
121
+ "facet-record-picker",
122
+ "facet-record-source",
123
+ "facet-rest-cloud",
124
+ "facet-role-gate",
125
+ "facet-scan-value",
126
+ "facet-scenario-ledger",
127
+ "facet-seal",
128
+ "facet-segment-band",
129
+ "facet-sheet",
130
+ "facet-signal-stack",
131
+ "facet-skeleton",
132
+ "facet-stack",
133
+ "facet-stat-value",
134
+ "facet-surface",
135
+ "facet-test-pyramid",
136
+ "facet-text",
137
+ "facet-timeline",
138
+ "facet-trail"
139
+ ];
140
+ function defineFacetElements() {
141
+ defineFacetElement({
142
+ tag: "facet-seal",
143
+ component: Seal_default,
144
+ attributes: {
145
+ present: { prop: "present", kind: "json" },
146
+ height: { prop: "height", kind: "number" },
147
+ "hide-count": { prop: "hideCount", kind: "boolean" }
148
+ },
149
+ defaults: { present: {} }
150
+ });
151
+ defineFacetElement({
152
+ tag: "facet-lifecycle-badge",
153
+ component: LifecycleBadge_default,
154
+ attributes: {
155
+ lifecycle: { prop: "lifecycle", kind: "string" },
156
+ "created-at": { prop: "createdAt", kind: "string" },
157
+ "superseded-by": { prop: "supersededBy", kind: "string" }
158
+ },
159
+ defaults: { lifecycle: "active" }
160
+ });
161
+ defineFacetElement({
162
+ tag: "facet-gherkin-statement",
163
+ component: GherkinStatement_default,
164
+ attributes: {
165
+ statement: { prop: "statement", kind: "string" },
166
+ compact: { prop: "compact", kind: "boolean" }
167
+ }
168
+ });
169
+ defineFacetElement({
170
+ tag: "facet-proof-matrix",
171
+ component: ProofMatrix_default,
172
+ attributes: {
173
+ scenarios: { prop: "scenarios", kind: "json" },
174
+ "only-gaps": { prop: "onlyGaps", kind: "boolean" }
175
+ },
176
+ defaults: { scenarios: [] }
177
+ });
178
+ defineFacetElement({
179
+ tag: "facet-anchor-map",
180
+ component: AnchorMap_default,
181
+ attributes: {
182
+ anchors: { prop: "anchors", kind: "json" },
183
+ lifecycle: { prop: "lifecycle", kind: "string" },
184
+ "hide-excerpt": { prop: "hideExcerpt", kind: "boolean" }
185
+ },
186
+ defaults: { anchors: [] }
187
+ });
188
+ defineFacetElement({
189
+ tag: "facet-coverage-ring",
190
+ component: CoverageRing_default,
191
+ attributes: {
192
+ value: { prop: "value", kind: "number" },
193
+ total: { prop: "total", kind: "number" },
194
+ size: { prop: "size", kind: "number" }
195
+ },
196
+ defaults: { value: 0, total: 0 }
197
+ });
198
+ defineFacetElement({
199
+ tag: "facet-bar",
200
+ component: Bar_default,
201
+ attributes: {
202
+ value: { prop: "value", kind: "number" },
203
+ total: { prop: "total", kind: "number" },
204
+ label: { prop: "label", kind: "string" }
205
+ },
206
+ defaults: { value: 0, total: 0, label: labelText.text252 }
207
+ });
208
+ defineFacetElement({
209
+ tag: "facet-segment-band",
210
+ component: SegmentBand_default,
211
+ attributes: {
212
+ segments: { prop: "segments", kind: "json" },
213
+ height: { prop: "height", kind: "number" }
214
+ },
215
+ defaults: { segments: [] }
216
+ });
217
+ defineFacetElement({
218
+ tag: "facet-stat-value",
219
+ component: StatValue_default,
220
+ attributes: {
221
+ label: { prop: "label", kind: "string" },
222
+ value: { prop: "value", kind: "string" },
223
+ hint: { prop: "hint", kind: "string" },
224
+ meaning: { prop: "meaning", kind: "string" },
225
+ size: { prop: "size", kind: "string" }
226
+ },
227
+ defaults: { label: "", value: "" }
228
+ });
229
+ defineFacetElement({
230
+ tag: "facet-text",
231
+ component: Text_default,
232
+ attributes: {
233
+ variant: { prop: "variant", kind: "string" },
234
+ tone: { prop: "tone", kind: "string" },
235
+ mono: { prop: "mono", kind: "boolean" },
236
+ truncate: { prop: "truncate", kind: "boolean" },
237
+ clamp: { prop: "clamp", kind: "number" }
238
+ },
239
+ children: true
240
+ });
241
+ defineFacetElement({
242
+ tag: "facet-stack",
243
+ component: Stack_default,
244
+ attributes: {
245
+ direction: { prop: "direction", kind: "string" },
246
+ gap: { prop: "gap", kind: "number" },
247
+ align: { prop: "align", kind: "string" },
248
+ justify: { prop: "justify", kind: "string" },
249
+ wrap: { prop: "wrap", kind: "boolean" }
250
+ },
251
+ children: true
252
+ });
253
+ defineFacetElement({
254
+ tag: "facet-surface",
255
+ component: Surface_default,
256
+ attributes: {
257
+ tone: { prop: "tone", kind: "string" },
258
+ padding: { prop: "padding", kind: "number" },
259
+ edge: { prop: "edge", kind: "string" },
260
+ rail: { prop: "rail", kind: "string" }
261
+ },
262
+ children: true
263
+ });
264
+ defineFacetElement({
265
+ tag: "facet-hairline",
266
+ component: Hairline_default,
267
+ attributes: {
268
+ orientation: { prop: "orientation", kind: "string" },
269
+ strength: { prop: "strength", kind: "string" },
270
+ inset: { prop: "inset", kind: "number" }
271
+ }
272
+ });
273
+ defineFacetElement({
274
+ tag: "facet-mark",
275
+ component: Mark_default,
276
+ attributes: {
277
+ variant: { prop: "variant", kind: "string" },
278
+ size: { prop: "size", kind: "number" },
279
+ label: { prop: "label", kind: "string" }
280
+ }
281
+ });
282
+ defineFacetElement({
283
+ tag: "facet-dot",
284
+ component: Dot_default,
285
+ attributes: {
286
+ meaning: { prop: "meaning", kind: "string" },
287
+ size: { prop: "size", kind: "number" },
288
+ hollow: { prop: "hollow", kind: "boolean" },
289
+ label: { prop: "label", kind: "string" }
290
+ }
291
+ });
292
+ defineFacetElement({
293
+ tag: "facet-counter",
294
+ component: Counter_default,
295
+ attributes: {
296
+ value: { prop: "value", kind: "number" },
297
+ unit: { prop: "unit", kind: "string" },
298
+ duration: { prop: "duration", kind: "number" },
299
+ animate: { prop: "animate", kind: "boolean" }
300
+ },
301
+ defaults: { value: 0 }
302
+ });
303
+ defineFacetElement({
304
+ tag: "facet-scan-value",
305
+ component: ScanValue_default,
306
+ attributes: {
307
+ origin: { prop: "origin", kind: "string" },
308
+ "origin-label": { prop: "originLabel", kind: "string" }
309
+ },
310
+ children: true
311
+ });
312
+ defineFacetElement({
313
+ tag: "facet-quiet-line",
314
+ component: QuietLine_default,
315
+ attributes: { tone: { prop: "tone", kind: "string" } },
316
+ children: true
317
+ });
318
+ defineFacetElement({
319
+ tag: "facet-kbd",
320
+ component: Kbd_default,
321
+ attributes: { keys: { prop: "keys", kind: "json" } }
322
+ });
323
+ defineFacetElement({
324
+ tag: "facet-skeleton",
325
+ component: Skeleton_default,
326
+ attributes: {
327
+ height: { prop: "height", kind: "number" },
328
+ width: { prop: "width", kind: "string" },
329
+ label: { prop: "label", kind: "string" }
330
+ }
331
+ });
332
+ defineFacetElement({
333
+ tag: "facet-field-row",
334
+ component: FieldRow_default,
335
+ attributes: {
336
+ label: { prop: "label", kind: "string" },
337
+ value: { prop: "value", kind: "string" },
338
+ emphasis: { prop: "emphasis", kind: "boolean" },
339
+ "label-width": { prop: "labelWidth", kind: "number" },
340
+ "preserve-lines": { prop: "preserveLines", kind: "boolean" }
341
+ }
342
+ });
343
+ defineFacetElement({
344
+ tag: "facet-probe-number",
345
+ component: ProbeNumber_default,
346
+ attributes: {
347
+ "probe-key": { prop: "probeKey", kind: "string" },
348
+ "active-probe": { prop: "activeProbe", kind: "string" },
349
+ label: { prop: "label", kind: "string" }
350
+ },
351
+ events: { onToggle: "facet-toggle" },
352
+ children: true
353
+ });
354
+ defineFacetElement({
355
+ tag: "facet-button",
356
+ component: Button_default,
357
+ attributes: {
358
+ variant: { prop: "variant", kind: "string" },
359
+ disabled: { prop: "disabled", kind: "boolean" }
360
+ },
361
+ events: { onClick: "facet-click" },
362
+ children: true
363
+ });
364
+ defineFacetElement({
365
+ tag: "facet-depth-ladder",
366
+ component: DepthLadder_default,
367
+ attributes: {
368
+ depth: { prop: "depth", kind: "number" },
369
+ steps: { prop: "steps", kind: "json" },
370
+ label: { prop: "label", kind: "string" }
371
+ },
372
+ events: { onDepthChange: "facet-depth-change" },
373
+ defaults: { depth: 1 }
374
+ });
375
+ defineFacetElement({
376
+ tag: "facet-trail",
377
+ component: Trail_default,
378
+ attributes: { steps: { prop: "steps", kind: "json" } },
379
+ defaults: { steps: [] }
380
+ });
381
+ defineFacetElement({
382
+ tag: "facet-record-picker",
383
+ component: RecordPicker_default,
384
+ attributes: {
385
+ items: { prop: "items", kind: "json" },
386
+ placeholder: { prop: "placeholder", kind: "string" },
387
+ limit: { prop: "limit", kind: "number" }
388
+ },
389
+ events: { onSelect: "facet-select" },
390
+ defaults: { items: [] }
391
+ });
392
+ defineFacetElement({
393
+ tag: "facet-markdown",
394
+ component: Markdown_default,
395
+ attributes: {
396
+ text: { prop: "text", kind: "string" },
397
+ gap: { prop: "gap", kind: "number" }
398
+ },
399
+ defaults: { text: "" }
400
+ });
401
+ defineFacetElement({
402
+ tag: "facet-companion",
403
+ component: Companion_default,
404
+ attributes: {
405
+ entries: { prop: "entries", kind: "json" },
406
+ reads: { prop: "reads", kind: "json" },
407
+ scope: { prop: "scope", kind: "string" },
408
+ intro: { prop: "intro", kind: "string" },
409
+ foot: { prop: "foot", kind: "string" },
410
+ draft: { prop: "draft", kind: "string" },
411
+ busy: { prop: "busy", kind: "boolean" }
412
+ },
413
+ events: { onAsk: "facet-ask", onSend: "facet-send", onClose: "facet-close" },
414
+ defaults: { entries: [], reads: [], suggestions: [] }
415
+ });
416
+ defineFacetElement({
417
+ tag: "facet-role-gate",
418
+ component: RoleGate_default,
419
+ attributes: { fallback: { prop: "fallback", kind: "string" } },
420
+ events: { onPick: "facet-pick" }
421
+ });
422
+ defineFacetElement({
423
+ tag: "facet-focus-row",
424
+ component: FocusRow_default,
425
+ attributes: {
426
+ id: { prop: "id", kind: "string" },
427
+ rank: { prop: "rank", kind: "number" },
428
+ title: { prop: "title", kind: "string" },
429
+ why: { prop: "why", kind: "string" },
430
+ meta: { prop: "meta", kind: "string" },
431
+ overdue: { prop: "overdue", kind: "boolean" },
432
+ "open-id": { prop: "openId", kind: "string" },
433
+ dimmed: { prop: "dimmed", kind: "boolean" }
434
+ },
435
+ events: { onOpenChange: "facet-open-change", onDeeper: "facet-deeper" },
436
+ children: true
437
+ });
438
+ defineFacetElement({
439
+ tag: "facet-rest-cloud",
440
+ component: RestCloud_default,
441
+ attributes: {
442
+ items: { prop: "items", kind: "json" },
443
+ expanded: { prop: "expanded", kind: "boolean" }
444
+ },
445
+ events: { onToggle: "facet-toggle" },
446
+ defaults: { items: [] }
447
+ });
448
+ defineFacetElement({
449
+ tag: "facet-sheet",
450
+ component: Sheet_default,
451
+ attributes: {
452
+ open: { prop: "open", kind: "boolean" },
453
+ label: { prop: "label", kind: "string" },
454
+ height: { prop: "height", kind: "string" }
455
+ },
456
+ events: { onClose: "facet-close" },
457
+ children: true
458
+ });
459
+ defineFacetElement({
460
+ tag: "facet-blind",
461
+ component: Blind_default,
462
+ attributes: {
463
+ open: { prop: "open", kind: "boolean" },
464
+ label: { prop: "label", kind: "string" },
465
+ width: { prop: "width", kind: "string" }
466
+ },
467
+ events: { onClose: "facet-close" },
468
+ children: true
469
+ });
470
+ defineFacetElement({
471
+ tag: "facet-empty-state",
472
+ component: EmptyState_default,
473
+ attributes: {
474
+ headline: { prop: "headline", kind: "string" },
475
+ body: { prop: "body", kind: "string" },
476
+ tone: { prop: "tone", kind: "string" }
477
+ },
478
+ defaults: { headline: "" }
479
+ });
480
+ defineFacetElement({
481
+ tag: "facet-error-state",
482
+ component: ErrorState_default,
483
+ attributes: {
484
+ error: { prop: "error", kind: "string" },
485
+ path: { prop: "path", kind: "string" },
486
+ "retry-label": { prop: "retryLabel", kind: "string" }
487
+ },
488
+ events: { onRetry: "facet-retry" }
489
+ });
490
+ defineFacetElement({
491
+ tag: "facet-index-progress",
492
+ component: IndexProgress_default,
493
+ attributes: {
494
+ status: { prop: "status", kind: "json" },
495
+ root: { prop: "root", kind: "string" },
496
+ registry: { prop: "registry", kind: "string" },
497
+ "history-length": { prop: "historyLength", kind: "number" }
498
+ }
499
+ });
500
+ defineFacetElement({
501
+ tag: "facet-scenario-ledger",
502
+ component: ScenarioLedger_default,
503
+ attributes: {
504
+ scenarios: { prop: "scenarios", kind: "json" },
505
+ "only-gaps": { prop: "onlyGaps", kind: "boolean" }
506
+ },
507
+ defaults: { scenarios: [] }
508
+ });
509
+ defineFacetElement({
510
+ tag: "facet-test-pyramid",
511
+ component: TestPyramid_default,
512
+ attributes: {
513
+ counts: { prop: "counts", kind: "json" },
514
+ kinds: { prop: "kinds", kind: "json" }
515
+ },
516
+ defaults: { counts: {} }
517
+ });
518
+ defineFacetElement({
519
+ tag: "facet-knowledge-slots",
520
+ component: KnowledgeSlots_default,
521
+ attributes: { slots: { prop: "slots", kind: "json" } },
522
+ defaults: { slots: [] }
523
+ });
524
+ defineFacetElement({
525
+ tag: "facet-clause-sheet",
526
+ component: ClauseSheet_default,
527
+ attributes: { clauses: { prop: "clauses", kind: "json" } },
528
+ defaults: { clauses: [] }
529
+ });
530
+ defineFacetElement({
531
+ tag: "facet-field-sheet",
532
+ component: FieldSheet_default,
533
+ attributes: { fields: { prop: "fields", kind: "json" } },
534
+ defaults: { fields: [] }
535
+ });
536
+ defineFacetElement({
537
+ tag: "facet-evidence-ledger",
538
+ component: EvidenceLedger_default,
539
+ attributes: { evidence: { prop: "evidence", kind: "json" } },
540
+ defaults: { evidence: [] }
541
+ });
542
+ defineFacetElement({
543
+ tag: "facet-signal-stack",
544
+ component: SignalStack_default,
545
+ attributes: {
546
+ slos: { prop: "slos", kind: "json" },
547
+ alerts: { prop: "alerts", kind: "json" },
548
+ "only-gaps": { prop: "onlyGaps", kind: "boolean" }
549
+ }
550
+ });
551
+ defineFacetElement({
552
+ tag: "facet-dependency-fan",
553
+ component: DependencyFan_default,
554
+ attributes: {
555
+ edges: { prop: "edges", kind: "json" },
556
+ depth: { prop: "depth", kind: "json" },
557
+ ghosts: { prop: "ghosts", kind: "json" }
558
+ },
559
+ events: { onOpen: "facet-open" },
560
+ defaults: { edges: [] }
561
+ });
562
+ defineFacetElement({
563
+ tag: "facet-entry-cards",
564
+ component: EntryCards_default,
565
+ attributes: {
566
+ entries: { prop: "entries", kind: "json" },
567
+ "card-width": { prop: "cardWidth", kind: "number" },
568
+ "empty-text": { prop: "emptyText", kind: "string" }
569
+ },
570
+ events: { onOpen: "facet-open" },
571
+ defaults: { entries: [] }
572
+ });
573
+ defineFacetElement({
574
+ tag: "facet-group-tiles",
575
+ component: GroupTiles_default,
576
+ attributes: {
577
+ groups: { prop: "groups", kind: "json" },
578
+ noun: { prop: "noun", kind: "string" },
579
+ unit: { prop: "unit", kind: "string" },
580
+ "share-noun": { prop: "shareNoun", kind: "string" },
581
+ "tile-width": { prop: "tileWidth", kind: "number" },
582
+ "empty-text": { prop: "emptyText", kind: "string" }
583
+ },
584
+ events: { onOpen: "facet-open" },
585
+ defaults: { groups: [] }
586
+ });
587
+ defineFacetElement({
588
+ tag: "facet-timeline",
589
+ component: Timeline_default,
590
+ attributes: {
591
+ events: { prop: "events", kind: "json" },
592
+ unit: { prop: "unit", kind: "string" },
593
+ bucket: { prop: "bucket", kind: "string" },
594
+ height: { prop: "height", kind: "number" },
595
+ "empty-text": { prop: "emptyText", kind: "string" }
596
+ },
597
+ defaults: { events: [] }
598
+ });
599
+ defineFacetElement({
600
+ tag: "facet-record-source",
601
+ component: RecordSource_default,
602
+ attributes: {
603
+ raw: { prop: "raw", kind: "string" },
604
+ path: { prop: "path", kind: "string" }
605
+ }
606
+ });
607
+ }
608
+ defineFacetElements();
609
+
610
+ export { FACET_ELEMENT_TAGS, defineFacetElement, defineFacetElements };
611
+ //# sourceMappingURL=elements.js.map
612
+ //# sourceMappingURL=elements.js.map