@mtdt/observeops-ds-elements 0.1.3 → 0.1.4

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,878 @@
1
+ {
2
+ "$note": "The ACTUAL API of each obs-* web component (parsed from the element source), for tools that need to discover attributes/events without reverse-engineering the shadow DOM. Events deliver the value in event.detail as an ARRAY (unwrap detail[0]). `referenceOnly` = renders but has no functional data contract.",
3
+ "elements": {
4
+ "obs-button": {
5
+ "element": "ObsButton",
6
+ "referenceOnly": false,
7
+ "attributes": [
8
+ {
9
+ "prop": "variant",
10
+ "attribute": "variant",
11
+ "type": "String",
12
+ "default": "'primary'"
13
+ },
14
+ {
15
+ "prop": "size",
16
+ "attribute": "size",
17
+ "type": "String",
18
+ "default": "'default'"
19
+ },
20
+ {
21
+ "prop": "disabled",
22
+ "attribute": "disabled",
23
+ "type": "Boolean",
24
+ "default": "false"
25
+ },
26
+ {
27
+ "prop": "loading",
28
+ "attribute": "loading",
29
+ "type": "Boolean",
30
+ "default": "false"
31
+ },
32
+ {
33
+ "prop": "outline",
34
+ "attribute": "outline",
35
+ "type": "Boolean",
36
+ "default": "false"
37
+ },
38
+ {
39
+ "prop": "square",
40
+ "attribute": "square",
41
+ "type": "Boolean",
42
+ "default": "false"
43
+ },
44
+ {
45
+ "prop": "block",
46
+ "attribute": "block",
47
+ "type": "Boolean",
48
+ "default": "false"
49
+ },
50
+ {
51
+ "prop": "shape",
52
+ "attribute": "shape",
53
+ "type": "String",
54
+ "default": "''"
55
+ },
56
+ {
57
+ "prop": "squared",
58
+ "attribute": "squared",
59
+ "type": "Boolean",
60
+ "default": "false"
61
+ }
62
+ ],
63
+ "events": []
64
+ },
65
+ "obs-tag": {
66
+ "element": "ObsTag",
67
+ "referenceOnly": false,
68
+ "attributes": [
69
+ {
70
+ "prop": "variant",
71
+ "attribute": "variant",
72
+ "type": "String",
73
+ "default": "'tag-primary'"
74
+ },
75
+ {
76
+ "prop": "closable",
77
+ "attribute": "closable",
78
+ "type": "Boolean",
79
+ "default": "false"
80
+ },
81
+ {
82
+ "prop": "rounded",
83
+ "attribute": "rounded",
84
+ "type": "Boolean",
85
+ "default": "false"
86
+ },
87
+ {
88
+ "prop": "disabled",
89
+ "attribute": "disabled",
90
+ "type": "Boolean",
91
+ "default": "false"
92
+ },
93
+ {
94
+ "prop": "status",
95
+ "attribute": "status",
96
+ "type": "String",
97
+ "default": "''"
98
+ },
99
+ {
100
+ "prop": "forcePrimary",
101
+ "attribute": "force-primary",
102
+ "type": "Boolean",
103
+ "default": "false"
104
+ },
105
+ {
106
+ "prop": "compliance",
107
+ "attribute": "compliance",
108
+ "type": "Boolean",
109
+ "default": "false"
110
+ },
111
+ {
112
+ "prop": "confirmable",
113
+ "attribute": "confirmable",
114
+ "type": "Boolean",
115
+ "default": "false"
116
+ },
117
+ {
118
+ "prop": "confirmTitle",
119
+ "attribute": "confirm-title",
120
+ "type": "String",
121
+ "default": "'Are you sure?'"
122
+ }
123
+ ],
124
+ "events": [
125
+ "close"
126
+ ]
127
+ },
128
+ "obs-checkbox": {
129
+ "element": "ObsCheckbox",
130
+ "referenceOnly": false,
131
+ "attributes": [
132
+ {
133
+ "prop": "checked",
134
+ "attribute": "checked",
135
+ "type": "Boolean",
136
+ "default": "false"
137
+ },
138
+ {
139
+ "prop": "disabled",
140
+ "attribute": "disabled",
141
+ "type": "Boolean",
142
+ "default": "false"
143
+ },
144
+ {
145
+ "prop": "indeterminate",
146
+ "attribute": "indeterminate",
147
+ "type": "Boolean",
148
+ "default": "false"
149
+ },
150
+ {
151
+ "prop": "value",
152
+ "attribute": "value",
153
+ "type": "String",
154
+ "default": "''"
155
+ }
156
+ ],
157
+ "events": [
158
+ "change"
159
+ ]
160
+ },
161
+ "obs-switch": {
162
+ "element": "ObsSwitch",
163
+ "referenceOnly": false,
164
+ "attributes": [
165
+ {
166
+ "prop": "checked",
167
+ "attribute": "checked",
168
+ "type": "Boolean",
169
+ "default": "false"
170
+ },
171
+ {
172
+ "prop": "size",
173
+ "attribute": "size",
174
+ "type": "String",
175
+ "default": "'default'"
176
+ },
177
+ {
178
+ "prop": "disabled",
179
+ "attribute": "disabled",
180
+ "type": "Boolean",
181
+ "default": "false"
182
+ },
183
+ {
184
+ "prop": "loading",
185
+ "attribute": "loading",
186
+ "type": "Boolean",
187
+ "default": "false"
188
+ },
189
+ {
190
+ "prop": "checkedText",
191
+ "attribute": "checked-text",
192
+ "type": "String"
193
+ },
194
+ {
195
+ "prop": "uncheckedText",
196
+ "attribute": "unchecked-text",
197
+ "type": "String"
198
+ }
199
+ ],
200
+ "events": [
201
+ "change"
202
+ ]
203
+ },
204
+ "obs-selected-pills": {
205
+ "element": "ObsSelectedPills",
206
+ "referenceOnly": false,
207
+ "attributes": [
208
+ {
209
+ "prop": "value",
210
+ "attribute": "value",
211
+ "type": "[String,Array]",
212
+ "default": "''"
213
+ },
214
+ {
215
+ "prop": "maxItems",
216
+ "attribute": "max-items",
217
+ "type": "Number",
218
+ "default": "1"
219
+ }
220
+ ],
221
+ "events": []
222
+ },
223
+ "obs-radio": {
224
+ "element": "ObsRadio",
225
+ "referenceOnly": false,
226
+ "attributes": [
227
+ {
228
+ "prop": "options",
229
+ "attribute": "options",
230
+ "type": "[String,Array]"
231
+ },
232
+ {
233
+ "prop": "value",
234
+ "attribute": "value",
235
+ "type": "String"
236
+ },
237
+ {
238
+ "prop": "asButton",
239
+ "attribute": "as-button",
240
+ "type": "Boolean",
241
+ "default": "false"
242
+ },
243
+ {
244
+ "prop": "severity",
245
+ "attribute": "severity",
246
+ "type": "Boolean",
247
+ "default": "false"
248
+ },
249
+ {
250
+ "prop": "size",
251
+ "attribute": "size",
252
+ "type": "String",
253
+ "default": "'default'"
254
+ },
255
+ {
256
+ "prop": "disabled",
257
+ "attribute": "disabled",
258
+ "type": "Boolean",
259
+ "default": "false"
260
+ },
261
+ {
262
+ "prop": "vertical",
263
+ "attribute": "vertical",
264
+ "type": "Boolean",
265
+ "default": "false"
266
+ }
267
+ ],
268
+ "events": [
269
+ "change"
270
+ ]
271
+ },
272
+ "obs-input": {
273
+ "element": "ObsInput",
274
+ "referenceOnly": false,
275
+ "attributes": [
276
+ {
277
+ "prop": "type",
278
+ "attribute": "type",
279
+ "type": "String",
280
+ "default": "'text'"
281
+ },
282
+ {
283
+ "prop": "value",
284
+ "attribute": "value",
285
+ "type": "String"
286
+ },
287
+ {
288
+ "prop": "placeholder",
289
+ "attribute": "placeholder",
290
+ "type": "String"
291
+ },
292
+ {
293
+ "prop": "disabled",
294
+ "attribute": "disabled",
295
+ "type": "Boolean",
296
+ "default": "false"
297
+ },
298
+ {
299
+ "prop": "readonly",
300
+ "attribute": "readonly",
301
+ "type": "Boolean",
302
+ "default": "false"
303
+ },
304
+ {
305
+ "prop": "required",
306
+ "attribute": "required",
307
+ "type": "Boolean",
308
+ "default": "false"
309
+ },
310
+ {
311
+ "prop": "error",
312
+ "attribute": "error",
313
+ "type": "Boolean",
314
+ "default": "false"
315
+ },
316
+ {
317
+ "prop": "errorMessage",
318
+ "attribute": "error-message",
319
+ "type": "String"
320
+ },
321
+ {
322
+ "prop": "allowClear",
323
+ "attribute": "allow-clear",
324
+ "type": "Boolean",
325
+ "default": "false"
326
+ },
327
+ {
328
+ "prop": "material",
329
+ "attribute": "material",
330
+ "type": "Boolean",
331
+ "default": "false"
332
+ },
333
+ {
334
+ "prop": "noBorder",
335
+ "attribute": "no-border",
336
+ "type": "Boolean",
337
+ "default": "false"
338
+ },
339
+ {
340
+ "prop": "block",
341
+ "attribute": "block",
342
+ "type": "Boolean",
343
+ "default": "false"
344
+ },
345
+ {
346
+ "prop": "prefixIcon",
347
+ "attribute": "prefix-icon",
348
+ "type": "String"
349
+ },
350
+ {
351
+ "prop": "suffixIcon",
352
+ "attribute": "suffix-icon",
353
+ "type": "String"
354
+ },
355
+ {
356
+ "prop": "prefix",
357
+ "attribute": "prefix",
358
+ "type": "String"
359
+ },
360
+ {
361
+ "prop": "suffix",
362
+ "attribute": "suffix",
363
+ "type": "String"
364
+ },
365
+ {
366
+ "prop": "addonBefore",
367
+ "attribute": "addon-before",
368
+ "type": "String"
369
+ },
370
+ {
371
+ "prop": "addonAfter",
372
+ "attribute": "addon-after",
373
+ "type": "String"
374
+ }
375
+ ],
376
+ "events": [
377
+ "input",
378
+ "change",
379
+ "search",
380
+ "enterKey"
381
+ ]
382
+ },
383
+ "obs-link": {
384
+ "element": "ObsLink",
385
+ "referenceOnly": false,
386
+ "attributes": [
387
+ {
388
+ "prop": "href",
389
+ "attribute": "href",
390
+ "type": "String"
391
+ },
392
+ {
393
+ "prop": "asButton",
394
+ "attribute": "as-button",
395
+ "type": "Boolean",
396
+ "default": "false"
397
+ },
398
+ {
399
+ "prop": "variant",
400
+ "attribute": "variant",
401
+ "type": "String",
402
+ "default": "'primary'"
403
+ },
404
+ {
405
+ "prop": "size",
406
+ "attribute": "size",
407
+ "type": "String",
408
+ "default": "'default'"
409
+ },
410
+ {
411
+ "prop": "external",
412
+ "attribute": "external",
413
+ "type": "Boolean",
414
+ "default": "false"
415
+ },
416
+ {
417
+ "prop": "kLink",
418
+ "attribute": "k-link",
419
+ "type": "Boolean",
420
+ "default": "false"
421
+ },
422
+ {
423
+ "prop": "disabled",
424
+ "attribute": "disabled",
425
+ "type": "Boolean",
426
+ "default": "false"
427
+ }
428
+ ],
429
+ "events": []
430
+ },
431
+ "obs-select": {
432
+ "element": "ObsSelect",
433
+ "referenceOnly": false,
434
+ "attributes": [
435
+ {
436
+ "prop": "options",
437
+ "attribute": "options",
438
+ "type": "[String,Array]"
439
+ },
440
+ {
441
+ "prop": "value",
442
+ "attribute": "value",
443
+ "type": "String"
444
+ },
445
+ {
446
+ "prop": "placeholder",
447
+ "attribute": "placeholder",
448
+ "type": "String"
449
+ },
450
+ {
451
+ "prop": "multiple",
452
+ "attribute": "multiple",
453
+ "type": "Boolean",
454
+ "default": "false"
455
+ },
456
+ {
457
+ "prop": "allowSelectAll",
458
+ "attribute": "allow-select-all",
459
+ "type": "Boolean",
460
+ "default": "false"
461
+ },
462
+ {
463
+ "prop": "allowClear",
464
+ "attribute": "allow-clear",
465
+ "type": "Boolean",
466
+ "default": "false"
467
+ },
468
+ {
469
+ "prop": "block",
470
+ "attribute": "block",
471
+ "type": "Boolean",
472
+ "default": "false"
473
+ },
474
+ {
475
+ "prop": "searchable",
476
+ "attribute": "searchable",
477
+ "type": "[String,Boolean]"
478
+ },
479
+ {
480
+ "prop": "asInput",
481
+ "attribute": "as-input",
482
+ "type": "[String,Boolean]"
483
+ },
484
+ {
485
+ "prop": "textOnly",
486
+ "attribute": "text-only",
487
+ "type": "Boolean",
488
+ "default": "false"
489
+ },
490
+ {
491
+ "prop": "disabled",
492
+ "attribute": "disabled",
493
+ "type": "Boolean",
494
+ "default": "false"
495
+ },
496
+ {
497
+ "prop": "loading",
498
+ "attribute": "loading",
499
+ "type": "Boolean",
500
+ "default": "false"
501
+ },
502
+ {
503
+ "prop": "disabledOptions",
504
+ "attribute": "disabled-options",
505
+ "type": "String"
506
+ },
507
+ {
508
+ "prop": "canUserAddOptions",
509
+ "attribute": "can-user-add-options",
510
+ "type": "Boolean",
511
+ "default": "false"
512
+ },
513
+ {
514
+ "prop": "addLabel",
515
+ "attribute": "add-label",
516
+ "type": "String"
517
+ },
518
+ {
519
+ "prop": "useAfterMenuDescription",
520
+ "attribute": "use-after-menu-description",
521
+ "type": "Boolean",
522
+ "default": "false"
523
+ },
524
+ {
525
+ "prop": "maxValues",
526
+ "attribute": "max-values",
527
+ "type": "Number",
528
+ "default": "0"
529
+ },
530
+ {
531
+ "prop": "maxItems",
532
+ "attribute": "max-items",
533
+ "type": "Number",
534
+ "default": "1"
535
+ },
536
+ {
537
+ "prop": "removeClearBtn",
538
+ "attribute": "remove-clear-btn",
539
+ "type": "Boolean",
540
+ "default": "false"
541
+ }
542
+ ],
543
+ "events": [
544
+ "change",
545
+ "show",
546
+ "hide",
547
+ "search",
548
+ "add"
549
+ ]
550
+ },
551
+ "obs-severity": {
552
+ "element": "ObsSeverity",
553
+ "referenceOnly": false,
554
+ "attributes": [
555
+ {
556
+ "prop": "severity",
557
+ "attribute": "severity",
558
+ "type": "String",
559
+ "default": "'unknown'"
560
+ },
561
+ {
562
+ "prop": "shape",
563
+ "attribute": "shape",
564
+ "type": "String",
565
+ "default": "'dot'"
566
+ },
567
+ {
568
+ "prop": "displayText",
569
+ "attribute": "display-text",
570
+ "type": "Boolean",
571
+ "default": "false"
572
+ },
573
+ {
574
+ "prop": "value",
575
+ "attribute": "value",
576
+ "type": "String"
577
+ }
578
+ ],
579
+ "events": []
580
+ },
581
+ "obs-tags": {
582
+ "element": "ObsTags",
583
+ "referenceOnly": false,
584
+ "attributes": [
585
+ {
586
+ "prop": "type",
587
+ "attribute": "type",
588
+ "type": "String",
589
+ "default": "'loose'"
590
+ },
591
+ {
592
+ "prop": "value",
593
+ "attribute": "value",
594
+ "type": "String",
595
+ "default": "''"
596
+ },
597
+ {
598
+ "prop": "options",
599
+ "attribute": "options",
600
+ "type": "[String,Array]",
601
+ "default": "''"
602
+ },
603
+ {
604
+ "prop": "suggestions",
605
+ "attribute": "suggestions",
606
+ "type": "String",
607
+ "default": "''"
608
+ },
609
+ {
610
+ "prop": "placeholder",
611
+ "attribute": "placeholder",
612
+ "type": "String",
613
+ "default": "''"
614
+ },
615
+ {
616
+ "prop": "disabled",
617
+ "attribute": "disabled",
618
+ "type": "Boolean",
619
+ "default": "false"
620
+ },
621
+ {
622
+ "prop": "loading",
623
+ "attribute": "loading",
624
+ "type": "Boolean",
625
+ "default": "false"
626
+ },
627
+ {
628
+ "prop": "block",
629
+ "attribute": "block",
630
+ "type": "Boolean",
631
+ "default": "false"
632
+ },
633
+ {
634
+ "prop": "lowercase",
635
+ "attribute": "lowercase",
636
+ "type": "[String,Boolean]",
637
+ "default": "'true'"
638
+ }
639
+ ],
640
+ "events": [
641
+ "change"
642
+ ]
643
+ },
644
+ "obs-tooltip": {
645
+ "element": "ObsTooltip",
646
+ "referenceOnly": false,
647
+ "attributes": [
648
+ {
649
+ "prop": "placement",
650
+ "attribute": "placement",
651
+ "type": "String",
652
+ "default": "'top-start'"
653
+ },
654
+ {
655
+ "prop": "disabled",
656
+ "attribute": "disabled",
657
+ "type": "Boolean",
658
+ "default": "false"
659
+ },
660
+ {
661
+ "prop": "chartLike",
662
+ "attribute": "chart-like",
663
+ "type": "Boolean",
664
+ "default": "false"
665
+ },
666
+ {
667
+ "prop": "triggerLabel",
668
+ "attribute": "trigger-label",
669
+ "type": "String",
670
+ "default": "''"
671
+ },
672
+ {
673
+ "prop": "open",
674
+ "attribute": "open",
675
+ "type": "Boolean",
676
+ "default": "false"
677
+ }
678
+ ],
679
+ "events": []
680
+ },
681
+ "obs-dataviz-tooltip": {
682
+ "element": "ObsDataVizTooltip",
683
+ "referenceOnly": false,
684
+ "attributes": [
685
+ {
686
+ "prop": "kind",
687
+ "attribute": "kind",
688
+ "type": "String",
689
+ "default": "'bar'"
690
+ },
691
+ {
692
+ "prop": "block",
693
+ "attribute": "block",
694
+ "type": "Boolean",
695
+ "default": "false"
696
+ }
697
+ ],
698
+ "events": []
699
+ },
700
+ "obs-date-time-picker": {
701
+ "element": "ObsDateTimePicker",
702
+ "referenceOnly": true,
703
+ "attributes": [
704
+ {
705
+ "prop": "kind",
706
+ "attribute": "kind",
707
+ "type": "String",
708
+ "default": "'range'"
709
+ },
710
+ {
711
+ "prop": "disabled",
712
+ "attribute": "disabled",
713
+ "type": "Boolean",
714
+ "default": "false"
715
+ },
716
+ {
717
+ "prop": "bordered",
718
+ "attribute": "bordered",
719
+ "type": "Boolean",
720
+ "default": "false"
721
+ },
722
+ {
723
+ "prop": "allowClear",
724
+ "attribute": "allow-clear",
725
+ "type": "Boolean",
726
+ "default": "false"
727
+ },
728
+ {
729
+ "prop": "empty",
730
+ "attribute": "empty",
731
+ "type": "Boolean",
732
+ "default": "false"
733
+ },
734
+ {
735
+ "prop": "placeholder",
736
+ "attribute": "placeholder",
737
+ "type": "String",
738
+ "default": "''"
739
+ }
740
+ ],
741
+ "events": []
742
+ },
743
+ "obs-filters": {
744
+ "element": "ObsFilters",
745
+ "referenceOnly": true,
746
+ "attributes": [
747
+ {
748
+ "prop": "kind",
749
+ "attribute": "kind",
750
+ "type": "String",
751
+ "default": "'bar'"
752
+ },
753
+ {
754
+ "prop": "pre",
755
+ "attribute": "pre",
756
+ "type": "String"
757
+ },
758
+ {
759
+ "prop": "post",
760
+ "attribute": "post",
761
+ "type": "String"
762
+ }
763
+ ],
764
+ "events": []
765
+ },
766
+ "obs-layout-appshell": {
767
+ "element": "ObsLayoutAppShell",
768
+ "referenceOnly": true,
769
+ "attributes": [
770
+ {
771
+ "prop": "sidebar",
772
+ "attribute": "sidebar",
773
+ "type": "Boolean",
774
+ "default": "false"
775
+ },
776
+ {
777
+ "prop": "header",
778
+ "attribute": "header",
779
+ "type": "Boolean",
780
+ "default": "false"
781
+ },
782
+ {
783
+ "prop": "overlay",
784
+ "attribute": "overlay",
785
+ "type": "Boolean",
786
+ "default": "false"
787
+ },
788
+ {
789
+ "prop": "empty",
790
+ "attribute": "empty",
791
+ "type": "Boolean",
792
+ "default": "false"
793
+ },
794
+ {
795
+ "prop": "anatomy",
796
+ "attribute": "anatomy",
797
+ "type": "Boolean",
798
+ "default": "false"
799
+ }
800
+ ],
801
+ "events": []
802
+ },
803
+ "obs-layout-grid": {
804
+ "element": "ObsLayoutGrid",
805
+ "referenceOnly": true,
806
+ "attributes": [
807
+ {
808
+ "prop": "size",
809
+ "attribute": "size",
810
+ "type": "[String,Number]",
811
+ "default": "6"
812
+ },
813
+ {
814
+ "prop": "gutter",
815
+ "attribute": "gutter",
816
+ "type": "Boolean",
817
+ "default": "false"
818
+ },
819
+ {
820
+ "prop": "autoSize",
821
+ "attribute": "auto-size",
822
+ "type": "Boolean",
823
+ "default": "false"
824
+ }
825
+ ],
826
+ "events": []
827
+ },
828
+ "obs-layout-regions": {
829
+ "element": "ObsLayoutRegions",
830
+ "referenceOnly": true,
831
+ "attributes": [
832
+ {
833
+ "prop": "shape",
834
+ "attribute": "shape",
835
+ "type": "String",
836
+ "default": "'two-pane'"
837
+ },
838
+ {
839
+ "prop": "toolbar",
840
+ "attribute": "toolbar",
841
+ "type": "Boolean",
842
+ "default": "false"
843
+ },
844
+ {
845
+ "prop": "footer",
846
+ "attribute": "footer",
847
+ "type": "Boolean",
848
+ "default": "false"
849
+ },
850
+ {
851
+ "prop": "callouts",
852
+ "attribute": "callouts",
853
+ "type": "Boolean",
854
+ "default": "false"
855
+ }
856
+ ],
857
+ "events": []
858
+ },
859
+ "obs-layout-shells": {
860
+ "element": "ObsLayoutShells",
861
+ "referenceOnly": true,
862
+ "attributes": [],
863
+ "events": []
864
+ },
865
+ "obs-layout-page-templates": {
866
+ "element": "ObsLayoutPageTemplates",
867
+ "referenceOnly": true,
868
+ "attributes": [],
869
+ "events": []
870
+ },
871
+ "obs-layout-panels": {
872
+ "element": "ObsLayoutPanels",
873
+ "referenceOnly": true,
874
+ "attributes": [],
875
+ "events": []
876
+ }
877
+ }
878
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtdt/observeops-ds-elements",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "ObserveOps design system as framework-agnostic Web Components (obs-*). The real DS components for React/Vue/HTML.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -21,7 +21,7 @@
21
21
  "dev": "vite",
22
22
  "site:build": "node site/generate.mjs",
23
23
  "site:dev": "node site/generate.mjs && npx --yes serve site/dist",
24
- "prepublishOnly": "vite build"
24
+ "prepublishOnly": "vite build && node scripts/build-elements-api.mjs"
25
25
  },
26
26
  "keywords": [
27
27
  "observeops",