@openremote/or-attribute-picker 1.6.0-snapshot.20250512145140 → 1.6.0-snapshot.20250512155842

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,3118 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/asset-attribute-picker.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "Custom Event that is dispatched upon closing the dialog.\nContains a list of AttributeRef of the selected attributes.",
12
+ "name": "OrAssetAttributePickerPickedEvent",
13
+ "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "NAME",
17
+ "type": {
18
+ "text": "string"
19
+ },
20
+ "privacy": "public",
21
+ "static": true,
22
+ "readonly": true,
23
+ "default": "\"or-asset-attribute-picker-picked\""
24
+ }
25
+ ],
26
+ "superclass": {
27
+ "name": "AttributePickerPickedEvent",
28
+ "module": "/src/attribute-picker"
29
+ }
30
+ },
31
+ {
32
+ "kind": "class",
33
+ "description": "The \"Attribute Picker\" component using the OrAssetTree component for selecting assets and its attributes.",
34
+ "name": "OrAssetAttributePicker",
35
+ "members": [
36
+ {
37
+ "kind": "field",
38
+ "name": "attributeFilter",
39
+ "type": {
40
+ "text": "(attribute: Attribute<any>) => boolean | undefined"
41
+ },
42
+ "privacy": "public"
43
+ },
44
+ {
45
+ "kind": "field",
46
+ "name": "_assetAttributes",
47
+ "type": {
48
+ "text": "(Attribute<any>)[] | undefined"
49
+ },
50
+ "privacy": "protected"
51
+ },
52
+ {
53
+ "kind": "field",
54
+ "name": "selectedAssets",
55
+ "type": {
56
+ "text": "string[]"
57
+ },
58
+ "privacy": "public",
59
+ "default": "[]"
60
+ },
61
+ {
62
+ "kind": "field",
63
+ "name": "selectedAttributes",
64
+ "type": {
65
+ "text": "AttributeRef[]"
66
+ },
67
+ "privacy": "public",
68
+ "default": "[]"
69
+ },
70
+ {
71
+ "kind": "field",
72
+ "name": "_asset",
73
+ "type": {
74
+ "text": "Asset | undefined"
75
+ },
76
+ "privacy": "protected"
77
+ },
78
+ {
79
+ "kind": "method",
80
+ "name": "setAttributeFilter",
81
+ "privacy": "public",
82
+ "return": {
83
+ "type": {
84
+ "text": "this"
85
+ }
86
+ },
87
+ "parameters": [
88
+ {
89
+ "name": "attributeFilter",
90
+ "type": {
91
+ "text": "((attribute: Attribute<any>) => boolean) | undefined"
92
+ }
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "kind": "method",
98
+ "name": "setSelectedAssets",
99
+ "privacy": "public",
100
+ "return": {
101
+ "type": {
102
+ "text": "this"
103
+ }
104
+ },
105
+ "parameters": [
106
+ {
107
+ "name": "selectedAssets",
108
+ "type": {
109
+ "text": "string[]"
110
+ }
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "kind": "method",
116
+ "name": "setSelectedAttributes",
117
+ "privacy": "public",
118
+ "return": {
119
+ "type": {
120
+ "text": "this"
121
+ }
122
+ },
123
+ "parameters": [
124
+ {
125
+ "name": "selectedAttributes",
126
+ "type": {
127
+ "text": "AttributeRef[]"
128
+ }
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "kind": "method",
134
+ "name": "_setDialogActions",
135
+ "privacy": "protected",
136
+ "return": {
137
+ "type": {
138
+ "text": "void"
139
+ }
140
+ },
141
+ "inheritedFrom": {
142
+ "name": "AttributePicker",
143
+ "module": "src/attribute-picker.ts"
144
+ }
145
+ },
146
+ {
147
+ "kind": "method",
148
+ "name": "_setDialogContent",
149
+ "privacy": "protected",
150
+ "return": {
151
+ "type": {
152
+ "text": "void"
153
+ }
154
+ },
155
+ "inheritedFrom": {
156
+ "name": "AttributePicker",
157
+ "module": "src/attribute-picker.ts"
158
+ }
159
+ },
160
+ {
161
+ "kind": "method",
162
+ "name": "_onAssetSelectionChanged",
163
+ "privacy": "protected",
164
+ "parameters": [
165
+ {
166
+ "name": "event",
167
+ "type": {
168
+ "text": "OrAssetTreeSelectionEvent"
169
+ }
170
+ }
171
+ ],
172
+ "description": "Event callback function that is triggered once a user selects an asset.\nIt fetches the attributes of that specific asset, and caches these to be displayed later.\nAlso applies the filtering such as showOnlyDatapointAttrs, showOnlyRuleStateAttrs and attributeFilter if set."
173
+ },
174
+ {
175
+ "kind": "method",
176
+ "name": "_onAttributesSelect",
177
+ "privacy": "protected",
178
+ "parameters": [
179
+ {
180
+ "name": "attrNames",
181
+ "type": {
182
+ "text": "string[]"
183
+ }
184
+ }
185
+ ],
186
+ "description": "HTML Callback function when the selected attributes have been updated."
187
+ },
188
+ {
189
+ "kind": "field",
190
+ "name": "multiSelect",
191
+ "type": {
192
+ "text": "boolean | undefined"
193
+ },
194
+ "privacy": "public",
195
+ "default": "false",
196
+ "inheritedFrom": {
197
+ "name": "AttributePicker",
198
+ "module": "src/attribute-picker.ts"
199
+ }
200
+ },
201
+ {
202
+ "kind": "field",
203
+ "name": "showOnlyDatapointAttrs",
204
+ "type": {
205
+ "text": "boolean | undefined"
206
+ },
207
+ "privacy": "public",
208
+ "default": "false",
209
+ "inheritedFrom": {
210
+ "name": "AttributePicker",
211
+ "module": "src/attribute-picker.ts"
212
+ }
213
+ },
214
+ {
215
+ "kind": "field",
216
+ "name": "showOnlyRuleStateAttrs",
217
+ "type": {
218
+ "text": "boolean | undefined"
219
+ },
220
+ "privacy": "public",
221
+ "default": "false",
222
+ "inheritedFrom": {
223
+ "name": "AttributePicker",
224
+ "module": "src/attribute-picker.ts"
225
+ }
226
+ },
227
+ {
228
+ "kind": "field",
229
+ "name": "addBtn",
230
+ "type": {
231
+ "text": "OrMwcInput"
232
+ },
233
+ "privacy": "protected",
234
+ "inheritedFrom": {
235
+ "name": "AttributePicker",
236
+ "module": "src/attribute-picker.ts"
237
+ }
238
+ },
239
+ {
240
+ "kind": "method",
241
+ "name": "setShowOnlyDatapointAttrs",
242
+ "privacy": "public",
243
+ "return": {
244
+ "type": {
245
+ "text": "this"
246
+ }
247
+ },
248
+ "parameters": [
249
+ {
250
+ "name": "showOnlyDatapointAttrs",
251
+ "type": {
252
+ "text": "boolean | undefined"
253
+ }
254
+ }
255
+ ],
256
+ "inheritedFrom": {
257
+ "name": "AttributePicker",
258
+ "module": "src/attribute-picker.ts"
259
+ }
260
+ },
261
+ {
262
+ "kind": "method",
263
+ "name": "setShowOnlyRuleStateAttrs",
264
+ "privacy": "public",
265
+ "return": {
266
+ "type": {
267
+ "text": "this"
268
+ }
269
+ },
270
+ "parameters": [
271
+ {
272
+ "name": "showOnlyRuleStateAttrs",
273
+ "type": {
274
+ "text": "boolean | undefined"
275
+ }
276
+ }
277
+ ],
278
+ "inheritedFrom": {
279
+ "name": "AttributePicker",
280
+ "module": "src/attribute-picker.ts"
281
+ }
282
+ },
283
+ {
284
+ "kind": "method",
285
+ "name": "setMultiSelect",
286
+ "privacy": "public",
287
+ "return": {
288
+ "type": {
289
+ "text": "this"
290
+ }
291
+ },
292
+ "parameters": [
293
+ {
294
+ "name": "multiSelect",
295
+ "type": {
296
+ "text": "boolean | undefined"
297
+ }
298
+ }
299
+ ],
300
+ "inheritedFrom": {
301
+ "name": "AttributePicker",
302
+ "module": "src/attribute-picker.ts"
303
+ }
304
+ },
305
+ {
306
+ "kind": "method",
307
+ "name": "setOpen",
308
+ "privacy": "public",
309
+ "return": {
310
+ "type": {
311
+ "text": "this"
312
+ }
313
+ },
314
+ "parameters": [
315
+ {
316
+ "name": "isOpen",
317
+ "type": {
318
+ "text": "boolean"
319
+ }
320
+ }
321
+ ],
322
+ "inheritedFrom": {
323
+ "name": "AttributePicker",
324
+ "module": "src/attribute-picker.ts"
325
+ }
326
+ },
327
+ {
328
+ "kind": "method",
329
+ "name": "setHeading",
330
+ "privacy": "public",
331
+ "return": {
332
+ "type": {
333
+ "text": "this"
334
+ }
335
+ },
336
+ "parameters": [
337
+ {
338
+ "name": "heading",
339
+ "type": {
340
+ "text": "TemplateResult | string | undefined"
341
+ }
342
+ }
343
+ ],
344
+ "inheritedFrom": {
345
+ "name": "AttributePicker",
346
+ "module": "src/attribute-picker.ts"
347
+ }
348
+ },
349
+ {
350
+ "kind": "method",
351
+ "name": "setContent",
352
+ "privacy": "public",
353
+ "return": {
354
+ "type": {
355
+ "text": "this"
356
+ }
357
+ },
358
+ "parameters": [
359
+ {
360
+ "name": "_content",
361
+ "type": {
362
+ "text": "TemplateResult | (() => TemplateResult) | undefined"
363
+ }
364
+ }
365
+ ],
366
+ "inheritedFrom": {
367
+ "name": "AttributePicker",
368
+ "module": "src/attribute-picker.ts"
369
+ }
370
+ },
371
+ {
372
+ "kind": "method",
373
+ "name": "setActions",
374
+ "privacy": "public",
375
+ "return": {
376
+ "type": {
377
+ "text": "this"
378
+ }
379
+ },
380
+ "parameters": [
381
+ {
382
+ "name": "_actions",
383
+ "type": {
384
+ "text": "DialogAction[] | undefined"
385
+ }
386
+ }
387
+ ],
388
+ "inheritedFrom": {
389
+ "name": "AttributePicker",
390
+ "module": "src/attribute-picker.ts"
391
+ }
392
+ },
393
+ {
394
+ "kind": "method",
395
+ "name": "setDismissAction",
396
+ "privacy": "public",
397
+ "return": {
398
+ "type": {
399
+ "text": "this"
400
+ }
401
+ },
402
+ "parameters": [
403
+ {
404
+ "name": "_action",
405
+ "type": {
406
+ "text": "DialogActionBase | null | undefined"
407
+ }
408
+ }
409
+ ],
410
+ "inheritedFrom": {
411
+ "name": "AttributePicker",
412
+ "module": "src/attribute-picker.ts"
413
+ }
414
+ },
415
+ {
416
+ "kind": "method",
417
+ "name": "setStyles",
418
+ "privacy": "public",
419
+ "return": {
420
+ "type": {
421
+ "text": "this"
422
+ }
423
+ },
424
+ "parameters": [
425
+ {
426
+ "name": "_styles",
427
+ "type": {
428
+ "text": "string | TemplateResult | undefined"
429
+ }
430
+ }
431
+ ],
432
+ "inheritedFrom": {
433
+ "name": "AttributePicker",
434
+ "module": "src/attribute-picker.ts"
435
+ }
436
+ },
437
+ {
438
+ "kind": "method",
439
+ "name": "setAvatar",
440
+ "privacy": "public",
441
+ "return": {
442
+ "type": {
443
+ "text": "this"
444
+ }
445
+ },
446
+ "parameters": [
447
+ {
448
+ "name": "_avatar",
449
+ "type": {
450
+ "text": "boolean | undefined"
451
+ }
452
+ }
453
+ ],
454
+ "inheritedFrom": {
455
+ "name": "AttributePicker",
456
+ "module": "src/attribute-picker.ts"
457
+ }
458
+ },
459
+ {
460
+ "kind": "method",
461
+ "name": "_updateDialogContent",
462
+ "privacy": "protected",
463
+ "description": "Convenient function to update the dialog content manually,\nsince updating the UI is handled different for OrMwcDialog.",
464
+ "inheritedFrom": {
465
+ "name": "AttributePicker",
466
+ "module": "src/attribute-picker.ts"
467
+ }
468
+ },
469
+ {
470
+ "kind": "method",
471
+ "name": "_updateDialogActions",
472
+ "privacy": "protected",
473
+ "description": "Convenient function to update the dialog actions manually,\nsince updating the UI is handled different for OrMwcDialog.",
474
+ "inheritedFrom": {
475
+ "name": "AttributePicker",
476
+ "module": "src/attribute-picker.ts"
477
+ }
478
+ },
479
+ {
480
+ "kind": "method",
481
+ "name": "_getAttributesTemplate",
482
+ "privacy": "protected",
483
+ "return": {
484
+ "type": {
485
+ "text": "Promise<TemplateResult>"
486
+ }
487
+ },
488
+ "parameters": [
489
+ {
490
+ "name": "attributes",
491
+ "optional": true,
492
+ "type": {
493
+ "text": "Attribute<any>[]"
494
+ }
495
+ },
496
+ {
497
+ "name": "descriptors",
498
+ "optional": true,
499
+ "type": {
500
+ "text": "AttributeDescriptor[]"
501
+ }
502
+ },
503
+ {
504
+ "name": "selectedNames",
505
+ "optional": true,
506
+ "type": {
507
+ "text": "string[]"
508
+ }
509
+ },
510
+ {
511
+ "name": "multi",
512
+ "default": "false"
513
+ },
514
+ {
515
+ "name": "onSelect",
516
+ "optional": true,
517
+ "type": {
518
+ "text": "(attrNames: string[]) => void"
519
+ }
520
+ }
521
+ ],
522
+ "description": "Function that creates the HTML template for selecting attributes.\nCurrently uses OrMwcList with or without checkboxes, and uses Util.getAttributeLabel to formulate the text.",
523
+ "inheritedFrom": {
524
+ "name": "AttributePicker",
525
+ "module": "src/attribute-picker.ts"
526
+ }
527
+ },
528
+ {
529
+ "kind": "method",
530
+ "name": "_getStyles",
531
+ "privacy": "protected",
532
+ "return": {
533
+ "type": {
534
+ "text": "string"
535
+ }
536
+ },
537
+ "description": "Simple function that creates the CSS styles for this component",
538
+ "inheritedFrom": {
539
+ "name": "AttributePicker",
540
+ "module": "src/attribute-picker.ts"
541
+ }
542
+ }
543
+ ],
544
+ "events": [
545
+ {
546
+ "type": {
547
+ "text": "OrAssetAttributePickerPickedEvent"
548
+ }
549
+ }
550
+ ],
551
+ "attributes": [
552
+ {
553
+ "type": {
554
+ "text": "object"
555
+ },
556
+ "description": "Callback method for consumers to filter the attribute list shown. Returning true will make the attribute visible, returning false hides it.",
557
+ "name": "attributeFilter"
558
+ },
559
+ {
560
+ "type": {
561
+ "text": "boolean"
562
+ },
563
+ "description": "Whether selecting multiple attributes is allowed or not.",
564
+ "name": "multiSelect",
565
+ "inheritedFrom": {
566
+ "name": "AttributePicker",
567
+ "module": "src/attribute-picker.ts"
568
+ }
569
+ },
570
+ {
571
+ "type": {
572
+ "text": "boolean"
573
+ },
574
+ "description": "Whether only attributes with the 'STORE_DATAPOINT' meta item should be shown.",
575
+ "name": "showOnlyDatapointAttrs",
576
+ "inheritedFrom": {
577
+ "name": "AttributePicker",
578
+ "module": "src/attribute-picker.ts"
579
+ }
580
+ },
581
+ {
582
+ "type": {
583
+ "text": "boolean"
584
+ },
585
+ "description": "Whether only attributes with the 'RULE_STATE' meta item should be shown.",
586
+ "name": "showOnlyRuleStateAttrs",
587
+ "inheritedFrom": {
588
+ "name": "AttributePicker",
589
+ "module": "src/attribute-picker.ts"
590
+ }
591
+ }
592
+ ],
593
+ "superclass": {
594
+ "name": "AttributePicker",
595
+ "module": "/src/attribute-picker"
596
+ }
597
+ }
598
+ ],
599
+ "exports": [
600
+ {
601
+ "kind": "js",
602
+ "name": "OrAssetAttributePickerPickedEvent",
603
+ "declaration": {
604
+ "name": "OrAssetAttributePickerPickedEvent",
605
+ "module": "src/asset-attribute-picker.ts"
606
+ }
607
+ },
608
+ {
609
+ "kind": "js",
610
+ "name": "OrAssetAttributePicker",
611
+ "declaration": {
612
+ "name": "OrAssetAttributePicker",
613
+ "module": "src/asset-attribute-picker.ts"
614
+ }
615
+ }
616
+ ]
617
+ },
618
+ {
619
+ "kind": "javascript-module",
620
+ "path": "src/assettype-attribute-picker.ts",
621
+ "declarations": [
622
+ {
623
+ "kind": "class",
624
+ "description": "Custom Event that is dispatched upon closing the dialog.\nContains a map that is keyed by AssetDescriptor.name, with an array of AttributeDescriptors of the selected attributes.",
625
+ "name": "AssetTypeAttributePickerPickedEvent",
626
+ "members": [
627
+ {
628
+ "kind": "field",
629
+ "name": "NAME",
630
+ "type": {
631
+ "text": "string"
632
+ },
633
+ "privacy": "public",
634
+ "static": true,
635
+ "readonly": true,
636
+ "default": "\"or-asset-type-attribute-picker-picked\""
637
+ }
638
+ ],
639
+ "superclass": {
640
+ "name": "AttributePickerPickedEvent",
641
+ "module": "/src/attribute-picker"
642
+ }
643
+ },
644
+ {
645
+ "kind": "class",
646
+ "description": "The \"Attribute Picker\" component using the OrAssetTree component for selecting assets and its attributes.",
647
+ "name": "AssetTypeAttributePicker",
648
+ "members": [
649
+ {
650
+ "kind": "field",
651
+ "name": "assetTypeFilter",
652
+ "type": {
653
+ "text": "(descriptor: AssetDescriptor) => boolean | undefined"
654
+ },
655
+ "privacy": "public"
656
+ },
657
+ {
658
+ "kind": "field",
659
+ "name": "attributeFilter",
660
+ "type": {
661
+ "text": "(descriptor: AttributeDescriptor) => boolean | undefined"
662
+ },
663
+ "privacy": "public"
664
+ },
665
+ {
666
+ "kind": "field",
667
+ "name": "selectedAttributes",
668
+ "type": {
669
+ "text": "Map<string, AttributeDescriptor[]>"
670
+ },
671
+ "privacy": "public",
672
+ "default": "new Map()"
673
+ },
674
+ {
675
+ "kind": "field",
676
+ "name": "_selectedAssetType",
677
+ "type": {
678
+ "text": "string | undefined"
679
+ },
680
+ "privacy": "protected"
681
+ },
682
+ {
683
+ "kind": "field",
684
+ "name": "_loadedAttributeTypes",
685
+ "type": {
686
+ "text": "AttributeDescriptor[] | undefined"
687
+ },
688
+ "privacy": "protected"
689
+ },
690
+ {
691
+ "kind": "field",
692
+ "name": "_loadedAssetTypes",
693
+ "type": {
694
+ "text": "AssetDescriptor[] | undefined"
695
+ },
696
+ "privacy": "protected"
697
+ },
698
+ {
699
+ "kind": "method",
700
+ "name": "setSelectedAttributes",
701
+ "privacy": "public",
702
+ "parameters": [
703
+ {
704
+ "name": "selectedAttributes",
705
+ "type": {
706
+ "text": "Map<string, AttributeDescriptor[]>"
707
+ }
708
+ }
709
+ ]
710
+ },
711
+ {
712
+ "kind": "method",
713
+ "name": "willUpdate",
714
+ "privacy": "protected",
715
+ "parameters": [
716
+ {
717
+ "name": "changedProps",
718
+ "type": {
719
+ "text": "PropertyValues"
720
+ }
721
+ }
722
+ ]
723
+ },
724
+ {
725
+ "kind": "method",
726
+ "name": "_loadAssetTypes",
727
+ "privacy": "protected",
728
+ "return": {
729
+ "type": {
730
+ "text": "AssetDescriptor[]"
731
+ }
732
+ },
733
+ "description": "Function that will load and update the available asset types up for selection.\nAlso applies the filtering such as assetTypeFilter if set."
734
+ },
735
+ {
736
+ "kind": "method",
737
+ "name": "_loadAttributeTypes",
738
+ "privacy": "protected",
739
+ "return": {
740
+ "type": {
741
+ "text": "AttributeDescriptor[]"
742
+ }
743
+ },
744
+ "parameters": [
745
+ {
746
+ "name": "descriptor",
747
+ "type": {
748
+ "text": "AssetDescriptor"
749
+ }
750
+ }
751
+ ],
752
+ "description": "Function that will load and update the available attributes up for selection.\nThe descriptor parameter is usually the selected asset type.\nAlso applies the filtering such as showOnlyDatapointAttrs, showOnlyRuleStateAttrs and attributeFilter if set."
753
+ },
754
+ {
755
+ "kind": "method",
756
+ "name": "_setDialogContent",
757
+ "privacy": "protected",
758
+ "return": {
759
+ "type": {
760
+ "text": "void"
761
+ }
762
+ },
763
+ "inheritedFrom": {
764
+ "name": "AttributePicker",
765
+ "module": "src/attribute-picker.ts"
766
+ }
767
+ },
768
+ {
769
+ "kind": "method",
770
+ "name": "_setDialogActions",
771
+ "privacy": "protected",
772
+ "return": {
773
+ "type": {
774
+ "text": "void"
775
+ }
776
+ },
777
+ "inheritedFrom": {
778
+ "name": "AttributePicker",
779
+ "module": "src/attribute-picker.ts"
780
+ }
781
+ },
782
+ {
783
+ "kind": "method",
784
+ "name": "_onAssetTypeItemClick",
785
+ "privacy": "protected",
786
+ "parameters": [
787
+ {
788
+ "name": "listItem",
789
+ "type": {
790
+ "text": "ListItem"
791
+ }
792
+ }
793
+ ],
794
+ "description": "HTML Callback function when the selected asset type has been updated."
795
+ },
796
+ {
797
+ "kind": "method",
798
+ "name": "_onAttributesSelect",
799
+ "privacy": "protected",
800
+ "parameters": [
801
+ {
802
+ "name": "attrNames",
803
+ "type": {
804
+ "text": "string[]"
805
+ }
806
+ }
807
+ ],
808
+ "description": "HTML callback function when the selected attributes have been updated."
809
+ },
810
+ {
811
+ "kind": "method",
812
+ "name": "_getAssetTypeDescriptors",
813
+ "privacy": "protected",
814
+ "return": {
815
+ "type": {
816
+ "text": "ListItem[]"
817
+ }
818
+ },
819
+ "parameters": [
820
+ {
821
+ "name": "descriptors",
822
+ "type": {
823
+ "text": "AssetDescriptor[]"
824
+ }
825
+ },
826
+ {
827
+ "name": "selected",
828
+ "optional": true,
829
+ "type": {
830
+ "text": "AssetDescriptor[]"
831
+ }
832
+ },
833
+ {
834
+ "name": "withNoneValue",
835
+ "optional": true,
836
+ "type": {
837
+ "text": "ListItem"
838
+ }
839
+ }
840
+ ],
841
+ "description": "Function that maps the AssetDescriptors to the formatted ListItems.\nUses helpers like Util.getAssetTypeLabel and sorts by descriptorType so that agents show up first."
842
+ },
843
+ {
844
+ "kind": "method",
845
+ "name": "_getAssetDescriptorByName",
846
+ "privacy": "protected",
847
+ "return": {
848
+ "type": {
849
+ "text": "AssetDescriptor | undefined"
850
+ }
851
+ },
852
+ "parameters": [
853
+ {
854
+ "name": "name",
855
+ "optional": true,
856
+ "type": {
857
+ "text": "string"
858
+ }
859
+ }
860
+ ],
861
+ "description": "Utility method to get the cached AssetDescriptor by its name"
862
+ },
863
+ {
864
+ "kind": "field",
865
+ "name": "multiSelect",
866
+ "type": {
867
+ "text": "boolean | undefined"
868
+ },
869
+ "privacy": "public",
870
+ "default": "false",
871
+ "inheritedFrom": {
872
+ "name": "AttributePicker",
873
+ "module": "src/attribute-picker.ts"
874
+ }
875
+ },
876
+ {
877
+ "kind": "field",
878
+ "name": "showOnlyDatapointAttrs",
879
+ "type": {
880
+ "text": "boolean | undefined"
881
+ },
882
+ "privacy": "public",
883
+ "default": "false",
884
+ "inheritedFrom": {
885
+ "name": "AttributePicker",
886
+ "module": "src/attribute-picker.ts"
887
+ }
888
+ },
889
+ {
890
+ "kind": "field",
891
+ "name": "showOnlyRuleStateAttrs",
892
+ "type": {
893
+ "text": "boolean | undefined"
894
+ },
895
+ "privacy": "public",
896
+ "default": "false",
897
+ "inheritedFrom": {
898
+ "name": "AttributePicker",
899
+ "module": "src/attribute-picker.ts"
900
+ }
901
+ },
902
+ {
903
+ "kind": "field",
904
+ "name": "addBtn",
905
+ "type": {
906
+ "text": "OrMwcInput"
907
+ },
908
+ "privacy": "protected",
909
+ "inheritedFrom": {
910
+ "name": "AttributePicker",
911
+ "module": "src/attribute-picker.ts"
912
+ }
913
+ },
914
+ {
915
+ "kind": "method",
916
+ "name": "setShowOnlyDatapointAttrs",
917
+ "privacy": "public",
918
+ "return": {
919
+ "type": {
920
+ "text": "this"
921
+ }
922
+ },
923
+ "parameters": [
924
+ {
925
+ "name": "showOnlyDatapointAttrs",
926
+ "type": {
927
+ "text": "boolean | undefined"
928
+ }
929
+ }
930
+ ],
931
+ "inheritedFrom": {
932
+ "name": "AttributePicker",
933
+ "module": "src/attribute-picker.ts"
934
+ }
935
+ },
936
+ {
937
+ "kind": "method",
938
+ "name": "setShowOnlyRuleStateAttrs",
939
+ "privacy": "public",
940
+ "return": {
941
+ "type": {
942
+ "text": "this"
943
+ }
944
+ },
945
+ "parameters": [
946
+ {
947
+ "name": "showOnlyRuleStateAttrs",
948
+ "type": {
949
+ "text": "boolean | undefined"
950
+ }
951
+ }
952
+ ],
953
+ "inheritedFrom": {
954
+ "name": "AttributePicker",
955
+ "module": "src/attribute-picker.ts"
956
+ }
957
+ },
958
+ {
959
+ "kind": "method",
960
+ "name": "setMultiSelect",
961
+ "privacy": "public",
962
+ "return": {
963
+ "type": {
964
+ "text": "this"
965
+ }
966
+ },
967
+ "parameters": [
968
+ {
969
+ "name": "multiSelect",
970
+ "type": {
971
+ "text": "boolean | undefined"
972
+ }
973
+ }
974
+ ],
975
+ "inheritedFrom": {
976
+ "name": "AttributePicker",
977
+ "module": "src/attribute-picker.ts"
978
+ }
979
+ },
980
+ {
981
+ "kind": "method",
982
+ "name": "setOpen",
983
+ "privacy": "public",
984
+ "return": {
985
+ "type": {
986
+ "text": "this"
987
+ }
988
+ },
989
+ "parameters": [
990
+ {
991
+ "name": "isOpen",
992
+ "type": {
993
+ "text": "boolean"
994
+ }
995
+ }
996
+ ],
997
+ "inheritedFrom": {
998
+ "name": "AttributePicker",
999
+ "module": "src/attribute-picker.ts"
1000
+ }
1001
+ },
1002
+ {
1003
+ "kind": "method",
1004
+ "name": "setHeading",
1005
+ "privacy": "public",
1006
+ "return": {
1007
+ "type": {
1008
+ "text": "this"
1009
+ }
1010
+ },
1011
+ "parameters": [
1012
+ {
1013
+ "name": "heading",
1014
+ "type": {
1015
+ "text": "TemplateResult | string | undefined"
1016
+ }
1017
+ }
1018
+ ],
1019
+ "inheritedFrom": {
1020
+ "name": "AttributePicker",
1021
+ "module": "src/attribute-picker.ts"
1022
+ }
1023
+ },
1024
+ {
1025
+ "kind": "method",
1026
+ "name": "setContent",
1027
+ "privacy": "public",
1028
+ "return": {
1029
+ "type": {
1030
+ "text": "this"
1031
+ }
1032
+ },
1033
+ "parameters": [
1034
+ {
1035
+ "name": "_content",
1036
+ "type": {
1037
+ "text": "TemplateResult | (() => TemplateResult) | undefined"
1038
+ }
1039
+ }
1040
+ ],
1041
+ "inheritedFrom": {
1042
+ "name": "AttributePicker",
1043
+ "module": "src/attribute-picker.ts"
1044
+ }
1045
+ },
1046
+ {
1047
+ "kind": "method",
1048
+ "name": "setActions",
1049
+ "privacy": "public",
1050
+ "return": {
1051
+ "type": {
1052
+ "text": "this"
1053
+ }
1054
+ },
1055
+ "parameters": [
1056
+ {
1057
+ "name": "_actions",
1058
+ "type": {
1059
+ "text": "DialogAction[] | undefined"
1060
+ }
1061
+ }
1062
+ ],
1063
+ "inheritedFrom": {
1064
+ "name": "AttributePicker",
1065
+ "module": "src/attribute-picker.ts"
1066
+ }
1067
+ },
1068
+ {
1069
+ "kind": "method",
1070
+ "name": "setDismissAction",
1071
+ "privacy": "public",
1072
+ "return": {
1073
+ "type": {
1074
+ "text": "this"
1075
+ }
1076
+ },
1077
+ "parameters": [
1078
+ {
1079
+ "name": "_action",
1080
+ "type": {
1081
+ "text": "DialogActionBase | null | undefined"
1082
+ }
1083
+ }
1084
+ ],
1085
+ "inheritedFrom": {
1086
+ "name": "AttributePicker",
1087
+ "module": "src/attribute-picker.ts"
1088
+ }
1089
+ },
1090
+ {
1091
+ "kind": "method",
1092
+ "name": "setStyles",
1093
+ "privacy": "public",
1094
+ "return": {
1095
+ "type": {
1096
+ "text": "this"
1097
+ }
1098
+ },
1099
+ "parameters": [
1100
+ {
1101
+ "name": "_styles",
1102
+ "type": {
1103
+ "text": "string | TemplateResult | undefined"
1104
+ }
1105
+ }
1106
+ ],
1107
+ "inheritedFrom": {
1108
+ "name": "AttributePicker",
1109
+ "module": "src/attribute-picker.ts"
1110
+ }
1111
+ },
1112
+ {
1113
+ "kind": "method",
1114
+ "name": "setAvatar",
1115
+ "privacy": "public",
1116
+ "return": {
1117
+ "type": {
1118
+ "text": "this"
1119
+ }
1120
+ },
1121
+ "parameters": [
1122
+ {
1123
+ "name": "_avatar",
1124
+ "type": {
1125
+ "text": "boolean | undefined"
1126
+ }
1127
+ }
1128
+ ],
1129
+ "inheritedFrom": {
1130
+ "name": "AttributePicker",
1131
+ "module": "src/attribute-picker.ts"
1132
+ }
1133
+ },
1134
+ {
1135
+ "kind": "method",
1136
+ "name": "_updateDialogContent",
1137
+ "privacy": "protected",
1138
+ "description": "Convenient function to update the dialog content manually,\nsince updating the UI is handled different for OrMwcDialog.",
1139
+ "inheritedFrom": {
1140
+ "name": "AttributePicker",
1141
+ "module": "src/attribute-picker.ts"
1142
+ }
1143
+ },
1144
+ {
1145
+ "kind": "method",
1146
+ "name": "_updateDialogActions",
1147
+ "privacy": "protected",
1148
+ "description": "Convenient function to update the dialog actions manually,\nsince updating the UI is handled different for OrMwcDialog.",
1149
+ "inheritedFrom": {
1150
+ "name": "AttributePicker",
1151
+ "module": "src/attribute-picker.ts"
1152
+ }
1153
+ },
1154
+ {
1155
+ "kind": "method",
1156
+ "name": "_getAttributesTemplate",
1157
+ "privacy": "protected",
1158
+ "return": {
1159
+ "type": {
1160
+ "text": "Promise<TemplateResult>"
1161
+ }
1162
+ },
1163
+ "parameters": [
1164
+ {
1165
+ "name": "attributes",
1166
+ "optional": true,
1167
+ "type": {
1168
+ "text": "Attribute<any>[]"
1169
+ }
1170
+ },
1171
+ {
1172
+ "name": "descriptors",
1173
+ "optional": true,
1174
+ "type": {
1175
+ "text": "AttributeDescriptor[]"
1176
+ }
1177
+ },
1178
+ {
1179
+ "name": "selectedNames",
1180
+ "optional": true,
1181
+ "type": {
1182
+ "text": "string[]"
1183
+ }
1184
+ },
1185
+ {
1186
+ "name": "multi",
1187
+ "default": "false"
1188
+ },
1189
+ {
1190
+ "name": "onSelect",
1191
+ "optional": true,
1192
+ "type": {
1193
+ "text": "(attrNames: string[]) => void"
1194
+ }
1195
+ }
1196
+ ],
1197
+ "description": "Function that creates the HTML template for selecting attributes.\nCurrently uses OrMwcList with or without checkboxes, and uses Util.getAttributeLabel to formulate the text.",
1198
+ "inheritedFrom": {
1199
+ "name": "AttributePicker",
1200
+ "module": "src/attribute-picker.ts"
1201
+ }
1202
+ },
1203
+ {
1204
+ "kind": "method",
1205
+ "name": "_getStyles",
1206
+ "privacy": "protected",
1207
+ "return": {
1208
+ "type": {
1209
+ "text": "string"
1210
+ }
1211
+ },
1212
+ "description": "Simple function that creates the CSS styles for this component",
1213
+ "inheritedFrom": {
1214
+ "name": "AttributePicker",
1215
+ "module": "src/attribute-picker.ts"
1216
+ }
1217
+ }
1218
+ ],
1219
+ "events": [
1220
+ {
1221
+ "type": {
1222
+ "text": "AssetTypeAttributePickerPickedEvent"
1223
+ }
1224
+ }
1225
+ ],
1226
+ "attributes": [
1227
+ {
1228
+ "type": {
1229
+ "text": "object"
1230
+ },
1231
+ "description": "-Callback method for consumers to filter the asset type list shown. Returning true will make the asset type visible, returning false hides it.",
1232
+ "name": "assetTypeFilter"
1233
+ },
1234
+ {
1235
+ "type": {
1236
+ "text": "object"
1237
+ },
1238
+ "description": "Callback method for consumers to filter the attribute list shown. Returning true will make the attribute visible, returning false hides it.",
1239
+ "name": "attributeFilter"
1240
+ },
1241
+ {
1242
+ "type": {
1243
+ "text": "boolean"
1244
+ },
1245
+ "description": "Whether selecting multiple attributes is allowed or not.",
1246
+ "name": "multiSelect",
1247
+ "inheritedFrom": {
1248
+ "name": "AttributePicker",
1249
+ "module": "src/attribute-picker.ts"
1250
+ }
1251
+ },
1252
+ {
1253
+ "type": {
1254
+ "text": "boolean"
1255
+ },
1256
+ "description": "Whether only attributes with the 'STORE_DATAPOINT' meta item should be shown.",
1257
+ "name": "showOnlyDatapointAttrs",
1258
+ "inheritedFrom": {
1259
+ "name": "AttributePicker",
1260
+ "module": "src/attribute-picker.ts"
1261
+ }
1262
+ },
1263
+ {
1264
+ "type": {
1265
+ "text": "boolean"
1266
+ },
1267
+ "description": "Whether only attributes with the 'RULE_STATE' meta item should be shown.",
1268
+ "name": "showOnlyRuleStateAttrs",
1269
+ "inheritedFrom": {
1270
+ "name": "AttributePicker",
1271
+ "module": "src/attribute-picker.ts"
1272
+ }
1273
+ }
1274
+ ],
1275
+ "superclass": {
1276
+ "name": "AttributePicker",
1277
+ "module": "/src/attribute-picker"
1278
+ }
1279
+ }
1280
+ ],
1281
+ "exports": [
1282
+ {
1283
+ "kind": "js",
1284
+ "name": "AssetTypeAttributePickerPickedEvent",
1285
+ "declaration": {
1286
+ "name": "AssetTypeAttributePickerPickedEvent",
1287
+ "module": "src/assettype-attribute-picker.ts"
1288
+ }
1289
+ },
1290
+ {
1291
+ "kind": "js",
1292
+ "name": "AssetTypeAttributePicker",
1293
+ "declaration": {
1294
+ "name": "AssetTypeAttributePicker",
1295
+ "module": "src/assettype-attribute-picker.ts"
1296
+ }
1297
+ }
1298
+ ]
1299
+ },
1300
+ {
1301
+ "kind": "javascript-module",
1302
+ "path": "src/assettype-list.ts",
1303
+ "declarations": [
1304
+ {
1305
+ "kind": "class",
1306
+ "description": "",
1307
+ "name": "AssettypeList",
1308
+ "members": [
1309
+ {
1310
+ "kind": "field",
1311
+ "name": "styles",
1312
+ "static": true,
1313
+ "readonly": true
1314
+ }
1315
+ ],
1316
+ "superclass": {
1317
+ "name": "OrMwcList",
1318
+ "package": "@openremote/or-mwc-components/or-mwc-list"
1319
+ }
1320
+ }
1321
+ ],
1322
+ "exports": [
1323
+ {
1324
+ "kind": "js",
1325
+ "name": "AssettypeList",
1326
+ "declaration": {
1327
+ "name": "AssettypeList",
1328
+ "module": "src/assettype-list.ts"
1329
+ }
1330
+ }
1331
+ ]
1332
+ },
1333
+ {
1334
+ "kind": "javascript-module",
1335
+ "path": "src/attribute-picker.ts",
1336
+ "declarations": [
1337
+ {
1338
+ "kind": "class",
1339
+ "description": "",
1340
+ "name": "AttributePickerPickedEvent",
1341
+ "superclass": {
1342
+ "name": "CustomEvent",
1343
+ "module": "src/attribute-picker.ts"
1344
+ }
1345
+ },
1346
+ {
1347
+ "kind": "class",
1348
+ "description": "",
1349
+ "name": "AttributePicker",
1350
+ "members": [
1351
+ {
1352
+ "kind": "method",
1353
+ "name": "_setDialogContent",
1354
+ "privacy": "protected",
1355
+ "return": {
1356
+ "type": {
1357
+ "text": "void"
1358
+ }
1359
+ }
1360
+ },
1361
+ {
1362
+ "kind": "method",
1363
+ "name": "_setDialogActions",
1364
+ "privacy": "protected",
1365
+ "return": {
1366
+ "type": {
1367
+ "text": "void"
1368
+ }
1369
+ }
1370
+ },
1371
+ {
1372
+ "kind": "field",
1373
+ "name": "multiSelect",
1374
+ "type": {
1375
+ "text": "boolean | undefined"
1376
+ },
1377
+ "privacy": "public",
1378
+ "default": "false"
1379
+ },
1380
+ {
1381
+ "kind": "field",
1382
+ "name": "showOnlyDatapointAttrs",
1383
+ "type": {
1384
+ "text": "boolean | undefined"
1385
+ },
1386
+ "privacy": "public",
1387
+ "default": "false"
1388
+ },
1389
+ {
1390
+ "kind": "field",
1391
+ "name": "showOnlyRuleStateAttrs",
1392
+ "type": {
1393
+ "text": "boolean | undefined"
1394
+ },
1395
+ "privacy": "public",
1396
+ "default": "false"
1397
+ },
1398
+ {
1399
+ "kind": "field",
1400
+ "name": "addBtn",
1401
+ "type": {
1402
+ "text": "OrMwcInput"
1403
+ },
1404
+ "privacy": "protected"
1405
+ },
1406
+ {
1407
+ "kind": "method",
1408
+ "name": "setShowOnlyDatapointAttrs",
1409
+ "privacy": "public",
1410
+ "return": {
1411
+ "type": {
1412
+ "text": "this"
1413
+ }
1414
+ },
1415
+ "parameters": [
1416
+ {
1417
+ "name": "showOnlyDatapointAttrs",
1418
+ "type": {
1419
+ "text": "boolean | undefined"
1420
+ }
1421
+ }
1422
+ ]
1423
+ },
1424
+ {
1425
+ "kind": "method",
1426
+ "name": "setShowOnlyRuleStateAttrs",
1427
+ "privacy": "public",
1428
+ "return": {
1429
+ "type": {
1430
+ "text": "this"
1431
+ }
1432
+ },
1433
+ "parameters": [
1434
+ {
1435
+ "name": "showOnlyRuleStateAttrs",
1436
+ "type": {
1437
+ "text": "boolean | undefined"
1438
+ }
1439
+ }
1440
+ ]
1441
+ },
1442
+ {
1443
+ "kind": "method",
1444
+ "name": "setMultiSelect",
1445
+ "privacy": "public",
1446
+ "return": {
1447
+ "type": {
1448
+ "text": "this"
1449
+ }
1450
+ },
1451
+ "parameters": [
1452
+ {
1453
+ "name": "multiSelect",
1454
+ "type": {
1455
+ "text": "boolean | undefined"
1456
+ }
1457
+ }
1458
+ ]
1459
+ },
1460
+ {
1461
+ "kind": "method",
1462
+ "name": "setOpen",
1463
+ "privacy": "public",
1464
+ "return": {
1465
+ "type": {
1466
+ "text": "this"
1467
+ }
1468
+ },
1469
+ "parameters": [
1470
+ {
1471
+ "name": "isOpen",
1472
+ "type": {
1473
+ "text": "boolean"
1474
+ }
1475
+ }
1476
+ ]
1477
+ },
1478
+ {
1479
+ "kind": "method",
1480
+ "name": "setHeading",
1481
+ "privacy": "public",
1482
+ "return": {
1483
+ "type": {
1484
+ "text": "this"
1485
+ }
1486
+ },
1487
+ "parameters": [
1488
+ {
1489
+ "name": "heading",
1490
+ "type": {
1491
+ "text": "TemplateResult | string | undefined"
1492
+ }
1493
+ }
1494
+ ]
1495
+ },
1496
+ {
1497
+ "kind": "method",
1498
+ "name": "setContent",
1499
+ "privacy": "public",
1500
+ "return": {
1501
+ "type": {
1502
+ "text": "this"
1503
+ }
1504
+ },
1505
+ "parameters": [
1506
+ {
1507
+ "name": "_content",
1508
+ "type": {
1509
+ "text": "TemplateResult | (() => TemplateResult) | undefined"
1510
+ }
1511
+ }
1512
+ ]
1513
+ },
1514
+ {
1515
+ "kind": "method",
1516
+ "name": "setActions",
1517
+ "privacy": "public",
1518
+ "return": {
1519
+ "type": {
1520
+ "text": "this"
1521
+ }
1522
+ },
1523
+ "parameters": [
1524
+ {
1525
+ "name": "_actions",
1526
+ "type": {
1527
+ "text": "DialogAction[] | undefined"
1528
+ }
1529
+ }
1530
+ ]
1531
+ },
1532
+ {
1533
+ "kind": "method",
1534
+ "name": "setDismissAction",
1535
+ "privacy": "public",
1536
+ "return": {
1537
+ "type": {
1538
+ "text": "this"
1539
+ }
1540
+ },
1541
+ "parameters": [
1542
+ {
1543
+ "name": "_action",
1544
+ "type": {
1545
+ "text": "DialogActionBase | null | undefined"
1546
+ }
1547
+ }
1548
+ ]
1549
+ },
1550
+ {
1551
+ "kind": "method",
1552
+ "name": "setStyles",
1553
+ "privacy": "public",
1554
+ "return": {
1555
+ "type": {
1556
+ "text": "this"
1557
+ }
1558
+ },
1559
+ "parameters": [
1560
+ {
1561
+ "name": "_styles",
1562
+ "type": {
1563
+ "text": "string | TemplateResult | undefined"
1564
+ }
1565
+ }
1566
+ ]
1567
+ },
1568
+ {
1569
+ "kind": "method",
1570
+ "name": "setAvatar",
1571
+ "privacy": "public",
1572
+ "return": {
1573
+ "type": {
1574
+ "text": "this"
1575
+ }
1576
+ },
1577
+ "parameters": [
1578
+ {
1579
+ "name": "_avatar",
1580
+ "type": {
1581
+ "text": "boolean | undefined"
1582
+ }
1583
+ }
1584
+ ]
1585
+ },
1586
+ {
1587
+ "kind": "method",
1588
+ "name": "_updateDialogContent",
1589
+ "privacy": "protected",
1590
+ "description": "Convenient function to update the dialog content manually,\nsince updating the UI is handled different for OrMwcDialog."
1591
+ },
1592
+ {
1593
+ "kind": "method",
1594
+ "name": "_updateDialogActions",
1595
+ "privacy": "protected",
1596
+ "description": "Convenient function to update the dialog actions manually,\nsince updating the UI is handled different for OrMwcDialog."
1597
+ },
1598
+ {
1599
+ "kind": "method",
1600
+ "name": "_getAttributesTemplate",
1601
+ "privacy": "protected",
1602
+ "return": {
1603
+ "type": {
1604
+ "text": "Promise<TemplateResult>"
1605
+ }
1606
+ },
1607
+ "parameters": [
1608
+ {
1609
+ "name": "attributes",
1610
+ "optional": true,
1611
+ "type": {
1612
+ "text": "Attribute<any>[]"
1613
+ }
1614
+ },
1615
+ {
1616
+ "name": "descriptors",
1617
+ "optional": true,
1618
+ "type": {
1619
+ "text": "AttributeDescriptor[]"
1620
+ }
1621
+ },
1622
+ {
1623
+ "name": "selectedNames",
1624
+ "optional": true,
1625
+ "type": {
1626
+ "text": "string[]"
1627
+ }
1628
+ },
1629
+ {
1630
+ "name": "multi",
1631
+ "default": "false"
1632
+ },
1633
+ {
1634
+ "name": "onSelect",
1635
+ "optional": true,
1636
+ "type": {
1637
+ "text": "(attrNames: string[]) => void"
1638
+ }
1639
+ }
1640
+ ],
1641
+ "description": "Function that creates the HTML template for selecting attributes.\nCurrently uses OrMwcList with or without checkboxes, and uses Util.getAttributeLabel to formulate the text."
1642
+ },
1643
+ {
1644
+ "kind": "method",
1645
+ "name": "_getStyles",
1646
+ "privacy": "protected",
1647
+ "return": {
1648
+ "type": {
1649
+ "text": "string"
1650
+ }
1651
+ },
1652
+ "description": "Simple function that creates the CSS styles for this component"
1653
+ }
1654
+ ],
1655
+ "attributes": [
1656
+ {
1657
+ "type": {
1658
+ "text": "boolean"
1659
+ },
1660
+ "description": "Whether selecting multiple attributes is allowed or not.",
1661
+ "name": "multiSelect"
1662
+ },
1663
+ {
1664
+ "type": {
1665
+ "text": "boolean"
1666
+ },
1667
+ "description": "Whether only attributes with the 'STORE_DATAPOINT' meta item should be shown.",
1668
+ "name": "showOnlyDatapointAttrs"
1669
+ },
1670
+ {
1671
+ "type": {
1672
+ "text": "boolean"
1673
+ },
1674
+ "description": "Whether only attributes with the 'RULE_STATE' meta item should be shown.",
1675
+ "name": "showOnlyRuleStateAttrs"
1676
+ }
1677
+ ],
1678
+ "superclass": {
1679
+ "name": "OrMwcDialog",
1680
+ "package": "@openremote/or-mwc-components/or-mwc-dialog"
1681
+ },
1682
+ "summary": "Abstract implementation of the Attribute Picker UI. Wraps around OrMwcDialog and provides some utility properties and functions to inherit."
1683
+ }
1684
+ ],
1685
+ "exports": [
1686
+ {
1687
+ "kind": "js",
1688
+ "name": "AttributePickerPickedEvent",
1689
+ "declaration": {
1690
+ "name": "AttributePickerPickedEvent",
1691
+ "module": "src/attribute-picker.ts"
1692
+ }
1693
+ },
1694
+ {
1695
+ "kind": "js",
1696
+ "name": "AttributePicker",
1697
+ "declaration": {
1698
+ "name": "AttributePicker",
1699
+ "module": "src/attribute-picker.ts"
1700
+ }
1701
+ }
1702
+ ]
1703
+ },
1704
+ {
1705
+ "kind": "javascript-module",
1706
+ "path": "src/index.ts",
1707
+ "declarations": [
1708
+ {
1709
+ "kind": "class",
1710
+ "description": "CustomEvent that triggers once attributes have been selected, and the user closes the dialog.",
1711
+ "name": "OrAttributePickerPickedEvent",
1712
+ "superclass": {
1713
+ "name": "OrAssetAttributePickerPickedEvent",
1714
+ "module": "/src/asset-attribute-picker"
1715
+ },
1716
+ "deprecated": "Replaced this class with an abstract {@link OrAssetAttributePickerPickedEvent}, that is inherited by other classes like {@link OrAssetAttributePicker} and {@link AssetTypeAttributePicker}.",
1717
+ "members": [
1718
+ {
1719
+ "kind": "field",
1720
+ "name": "NAME",
1721
+ "type": {
1722
+ "text": "string"
1723
+ },
1724
+ "privacy": "public",
1725
+ "static": true,
1726
+ "readonly": true,
1727
+ "default": "\"or-asset-attribute-picker-picked\"",
1728
+ "inheritedFrom": {
1729
+ "name": "OrAssetAttributePickerPickedEvent",
1730
+ "module": "src/asset-attribute-picker.ts"
1731
+ }
1732
+ }
1733
+ ]
1734
+ },
1735
+ {
1736
+ "kind": "class",
1737
+ "description": "Dialog to pick attributes of supplied asset(s).",
1738
+ "name": "OrAttributePicker",
1739
+ "superclass": {
1740
+ "name": "OrAssetAttributePicker",
1741
+ "module": "/src/asset-attribute-picker"
1742
+ },
1743
+ "deprecated": "Replaced this class with {@link OrAssetAttributePicker}.",
1744
+ "attributes": [
1745
+ {
1746
+ "type": {
1747
+ "text": "object"
1748
+ },
1749
+ "description": "Callback method for consumers to filter the attribute list shown. Returning true will make the attribute visible, returning false hides it.",
1750
+ "name": "attributeFilter",
1751
+ "inheritedFrom": {
1752
+ "name": "OrAssetAttributePicker",
1753
+ "module": "src/asset-attribute-picker.ts"
1754
+ }
1755
+ },
1756
+ {
1757
+ "type": {
1758
+ "text": "boolean"
1759
+ },
1760
+ "description": "Whether selecting multiple attributes is allowed or not.",
1761
+ "name": "multiSelect",
1762
+ "inheritedFrom": {
1763
+ "name": "AttributePicker",
1764
+ "module": "src/attribute-picker.ts"
1765
+ }
1766
+ },
1767
+ {
1768
+ "type": {
1769
+ "text": "boolean"
1770
+ },
1771
+ "description": "Whether only attributes with the 'STORE_DATAPOINT' meta item should be shown.",
1772
+ "name": "showOnlyDatapointAttrs",
1773
+ "inheritedFrom": {
1774
+ "name": "AttributePicker",
1775
+ "module": "src/attribute-picker.ts"
1776
+ }
1777
+ },
1778
+ {
1779
+ "type": {
1780
+ "text": "boolean"
1781
+ },
1782
+ "description": "Whether only attributes with the 'RULE_STATE' meta item should be shown.",
1783
+ "name": "showOnlyRuleStateAttrs",
1784
+ "inheritedFrom": {
1785
+ "name": "AttributePicker",
1786
+ "module": "src/attribute-picker.ts"
1787
+ }
1788
+ }
1789
+ ],
1790
+ "members": [
1791
+ {
1792
+ "kind": "field",
1793
+ "name": "attributeFilter",
1794
+ "type": {
1795
+ "text": "(attribute: Attribute<any>) => boolean | undefined"
1796
+ },
1797
+ "privacy": "public",
1798
+ "inheritedFrom": {
1799
+ "name": "OrAssetAttributePicker",
1800
+ "module": "src/asset-attribute-picker.ts"
1801
+ }
1802
+ },
1803
+ {
1804
+ "kind": "field",
1805
+ "name": "_assetAttributes",
1806
+ "type": {
1807
+ "text": "(Attribute<any>)[] | undefined"
1808
+ },
1809
+ "privacy": "protected",
1810
+ "inheritedFrom": {
1811
+ "name": "OrAssetAttributePicker",
1812
+ "module": "src/asset-attribute-picker.ts"
1813
+ }
1814
+ },
1815
+ {
1816
+ "kind": "field",
1817
+ "name": "selectedAssets",
1818
+ "type": {
1819
+ "text": "string[]"
1820
+ },
1821
+ "privacy": "public",
1822
+ "default": "[]",
1823
+ "inheritedFrom": {
1824
+ "name": "OrAssetAttributePicker",
1825
+ "module": "src/asset-attribute-picker.ts"
1826
+ }
1827
+ },
1828
+ {
1829
+ "kind": "field",
1830
+ "name": "selectedAttributes",
1831
+ "type": {
1832
+ "text": "AttributeRef[]"
1833
+ },
1834
+ "privacy": "public",
1835
+ "default": "[]",
1836
+ "inheritedFrom": {
1837
+ "name": "OrAssetAttributePicker",
1838
+ "module": "src/asset-attribute-picker.ts"
1839
+ }
1840
+ },
1841
+ {
1842
+ "kind": "field",
1843
+ "name": "_asset",
1844
+ "type": {
1845
+ "text": "Asset | undefined"
1846
+ },
1847
+ "privacy": "protected",
1848
+ "inheritedFrom": {
1849
+ "name": "OrAssetAttributePicker",
1850
+ "module": "src/asset-attribute-picker.ts"
1851
+ }
1852
+ },
1853
+ {
1854
+ "kind": "method",
1855
+ "name": "setAttributeFilter",
1856
+ "privacy": "public",
1857
+ "return": {
1858
+ "type": {
1859
+ "text": "this"
1860
+ }
1861
+ },
1862
+ "parameters": [
1863
+ {
1864
+ "name": "attributeFilter",
1865
+ "type": {
1866
+ "text": "((attribute: Attribute<any>) => boolean) | undefined"
1867
+ }
1868
+ }
1869
+ ],
1870
+ "inheritedFrom": {
1871
+ "name": "OrAssetAttributePicker",
1872
+ "module": "src/asset-attribute-picker.ts"
1873
+ }
1874
+ },
1875
+ {
1876
+ "kind": "method",
1877
+ "name": "setSelectedAssets",
1878
+ "privacy": "public",
1879
+ "return": {
1880
+ "type": {
1881
+ "text": "this"
1882
+ }
1883
+ },
1884
+ "parameters": [
1885
+ {
1886
+ "name": "selectedAssets",
1887
+ "type": {
1888
+ "text": "string[]"
1889
+ }
1890
+ }
1891
+ ],
1892
+ "inheritedFrom": {
1893
+ "name": "OrAssetAttributePicker",
1894
+ "module": "src/asset-attribute-picker.ts"
1895
+ }
1896
+ },
1897
+ {
1898
+ "kind": "method",
1899
+ "name": "setSelectedAttributes",
1900
+ "privacy": "public",
1901
+ "return": {
1902
+ "type": {
1903
+ "text": "this"
1904
+ }
1905
+ },
1906
+ "parameters": [
1907
+ {
1908
+ "name": "selectedAttributes",
1909
+ "type": {
1910
+ "text": "AttributeRef[]"
1911
+ }
1912
+ }
1913
+ ],
1914
+ "inheritedFrom": {
1915
+ "name": "OrAssetAttributePicker",
1916
+ "module": "src/asset-attribute-picker.ts"
1917
+ }
1918
+ },
1919
+ {
1920
+ "kind": "method",
1921
+ "name": "_setDialogActions",
1922
+ "privacy": "protected",
1923
+ "return": {
1924
+ "type": {
1925
+ "text": "void"
1926
+ }
1927
+ },
1928
+ "inheritedFrom": {
1929
+ "name": "AttributePicker",
1930
+ "module": "src/attribute-picker.ts"
1931
+ }
1932
+ },
1933
+ {
1934
+ "kind": "method",
1935
+ "name": "_setDialogContent",
1936
+ "privacy": "protected",
1937
+ "return": {
1938
+ "type": {
1939
+ "text": "void"
1940
+ }
1941
+ },
1942
+ "inheritedFrom": {
1943
+ "name": "AttributePicker",
1944
+ "module": "src/attribute-picker.ts"
1945
+ }
1946
+ },
1947
+ {
1948
+ "kind": "method",
1949
+ "name": "_onAssetSelectionChanged",
1950
+ "privacy": "protected",
1951
+ "parameters": [
1952
+ {
1953
+ "name": "event",
1954
+ "type": {
1955
+ "text": "OrAssetTreeSelectionEvent"
1956
+ }
1957
+ }
1958
+ ],
1959
+ "description": "Event callback function that is triggered once a user selects an asset.\nIt fetches the attributes of that specific asset, and caches these to be displayed later.\nAlso applies the filtering such as showOnlyDatapointAttrs, showOnlyRuleStateAttrs and attributeFilter if set.",
1960
+ "inheritedFrom": {
1961
+ "name": "OrAssetAttributePicker",
1962
+ "module": "src/asset-attribute-picker.ts"
1963
+ }
1964
+ },
1965
+ {
1966
+ "kind": "method",
1967
+ "name": "_onAttributesSelect",
1968
+ "privacy": "protected",
1969
+ "parameters": [
1970
+ {
1971
+ "name": "attrNames",
1972
+ "type": {
1973
+ "text": "string[]"
1974
+ }
1975
+ }
1976
+ ],
1977
+ "description": "HTML Callback function when the selected attributes have been updated.",
1978
+ "inheritedFrom": {
1979
+ "name": "OrAssetAttributePicker",
1980
+ "module": "src/asset-attribute-picker.ts"
1981
+ }
1982
+ },
1983
+ {
1984
+ "kind": "field",
1985
+ "name": "multiSelect",
1986
+ "type": {
1987
+ "text": "boolean | undefined"
1988
+ },
1989
+ "privacy": "public",
1990
+ "default": "false",
1991
+ "inheritedFrom": {
1992
+ "name": "AttributePicker",
1993
+ "module": "src/attribute-picker.ts"
1994
+ }
1995
+ },
1996
+ {
1997
+ "kind": "field",
1998
+ "name": "showOnlyDatapointAttrs",
1999
+ "type": {
2000
+ "text": "boolean | undefined"
2001
+ },
2002
+ "privacy": "public",
2003
+ "default": "false",
2004
+ "inheritedFrom": {
2005
+ "name": "AttributePicker",
2006
+ "module": "src/attribute-picker.ts"
2007
+ }
2008
+ },
2009
+ {
2010
+ "kind": "field",
2011
+ "name": "showOnlyRuleStateAttrs",
2012
+ "type": {
2013
+ "text": "boolean | undefined"
2014
+ },
2015
+ "privacy": "public",
2016
+ "default": "false",
2017
+ "inheritedFrom": {
2018
+ "name": "AttributePicker",
2019
+ "module": "src/attribute-picker.ts"
2020
+ }
2021
+ },
2022
+ {
2023
+ "kind": "field",
2024
+ "name": "addBtn",
2025
+ "type": {
2026
+ "text": "OrMwcInput"
2027
+ },
2028
+ "privacy": "protected",
2029
+ "inheritedFrom": {
2030
+ "name": "AttributePicker",
2031
+ "module": "src/attribute-picker.ts"
2032
+ }
2033
+ },
2034
+ {
2035
+ "kind": "method",
2036
+ "name": "setShowOnlyDatapointAttrs",
2037
+ "privacy": "public",
2038
+ "return": {
2039
+ "type": {
2040
+ "text": "this"
2041
+ }
2042
+ },
2043
+ "parameters": [
2044
+ {
2045
+ "name": "showOnlyDatapointAttrs",
2046
+ "type": {
2047
+ "text": "boolean | undefined"
2048
+ }
2049
+ }
2050
+ ],
2051
+ "inheritedFrom": {
2052
+ "name": "AttributePicker",
2053
+ "module": "src/attribute-picker.ts"
2054
+ }
2055
+ },
2056
+ {
2057
+ "kind": "method",
2058
+ "name": "setShowOnlyRuleStateAttrs",
2059
+ "privacy": "public",
2060
+ "return": {
2061
+ "type": {
2062
+ "text": "this"
2063
+ }
2064
+ },
2065
+ "parameters": [
2066
+ {
2067
+ "name": "showOnlyRuleStateAttrs",
2068
+ "type": {
2069
+ "text": "boolean | undefined"
2070
+ }
2071
+ }
2072
+ ],
2073
+ "inheritedFrom": {
2074
+ "name": "AttributePicker",
2075
+ "module": "src/attribute-picker.ts"
2076
+ }
2077
+ },
2078
+ {
2079
+ "kind": "method",
2080
+ "name": "setMultiSelect",
2081
+ "privacy": "public",
2082
+ "return": {
2083
+ "type": {
2084
+ "text": "this"
2085
+ }
2086
+ },
2087
+ "parameters": [
2088
+ {
2089
+ "name": "multiSelect",
2090
+ "type": {
2091
+ "text": "boolean | undefined"
2092
+ }
2093
+ }
2094
+ ],
2095
+ "inheritedFrom": {
2096
+ "name": "AttributePicker",
2097
+ "module": "src/attribute-picker.ts"
2098
+ }
2099
+ },
2100
+ {
2101
+ "kind": "method",
2102
+ "name": "setOpen",
2103
+ "privacy": "public",
2104
+ "return": {
2105
+ "type": {
2106
+ "text": "this"
2107
+ }
2108
+ },
2109
+ "parameters": [
2110
+ {
2111
+ "name": "isOpen",
2112
+ "type": {
2113
+ "text": "boolean"
2114
+ }
2115
+ }
2116
+ ],
2117
+ "inheritedFrom": {
2118
+ "name": "AttributePicker",
2119
+ "module": "src/attribute-picker.ts"
2120
+ }
2121
+ },
2122
+ {
2123
+ "kind": "method",
2124
+ "name": "setHeading",
2125
+ "privacy": "public",
2126
+ "return": {
2127
+ "type": {
2128
+ "text": "this"
2129
+ }
2130
+ },
2131
+ "parameters": [
2132
+ {
2133
+ "name": "heading",
2134
+ "type": {
2135
+ "text": "TemplateResult | string | undefined"
2136
+ }
2137
+ }
2138
+ ],
2139
+ "inheritedFrom": {
2140
+ "name": "AttributePicker",
2141
+ "module": "src/attribute-picker.ts"
2142
+ }
2143
+ },
2144
+ {
2145
+ "kind": "method",
2146
+ "name": "setContent",
2147
+ "privacy": "public",
2148
+ "return": {
2149
+ "type": {
2150
+ "text": "this"
2151
+ }
2152
+ },
2153
+ "parameters": [
2154
+ {
2155
+ "name": "_content",
2156
+ "type": {
2157
+ "text": "TemplateResult | (() => TemplateResult) | undefined"
2158
+ }
2159
+ }
2160
+ ],
2161
+ "inheritedFrom": {
2162
+ "name": "AttributePicker",
2163
+ "module": "src/attribute-picker.ts"
2164
+ }
2165
+ },
2166
+ {
2167
+ "kind": "method",
2168
+ "name": "setActions",
2169
+ "privacy": "public",
2170
+ "return": {
2171
+ "type": {
2172
+ "text": "this"
2173
+ }
2174
+ },
2175
+ "parameters": [
2176
+ {
2177
+ "name": "_actions",
2178
+ "type": {
2179
+ "text": "DialogAction[] | undefined"
2180
+ }
2181
+ }
2182
+ ],
2183
+ "inheritedFrom": {
2184
+ "name": "AttributePicker",
2185
+ "module": "src/attribute-picker.ts"
2186
+ }
2187
+ },
2188
+ {
2189
+ "kind": "method",
2190
+ "name": "setDismissAction",
2191
+ "privacy": "public",
2192
+ "return": {
2193
+ "type": {
2194
+ "text": "this"
2195
+ }
2196
+ },
2197
+ "parameters": [
2198
+ {
2199
+ "name": "_action",
2200
+ "type": {
2201
+ "text": "DialogActionBase | null | undefined"
2202
+ }
2203
+ }
2204
+ ],
2205
+ "inheritedFrom": {
2206
+ "name": "AttributePicker",
2207
+ "module": "src/attribute-picker.ts"
2208
+ }
2209
+ },
2210
+ {
2211
+ "kind": "method",
2212
+ "name": "setStyles",
2213
+ "privacy": "public",
2214
+ "return": {
2215
+ "type": {
2216
+ "text": "this"
2217
+ }
2218
+ },
2219
+ "parameters": [
2220
+ {
2221
+ "name": "_styles",
2222
+ "type": {
2223
+ "text": "string | TemplateResult | undefined"
2224
+ }
2225
+ }
2226
+ ],
2227
+ "inheritedFrom": {
2228
+ "name": "AttributePicker",
2229
+ "module": "src/attribute-picker.ts"
2230
+ }
2231
+ },
2232
+ {
2233
+ "kind": "method",
2234
+ "name": "setAvatar",
2235
+ "privacy": "public",
2236
+ "return": {
2237
+ "type": {
2238
+ "text": "this"
2239
+ }
2240
+ },
2241
+ "parameters": [
2242
+ {
2243
+ "name": "_avatar",
2244
+ "type": {
2245
+ "text": "boolean | undefined"
2246
+ }
2247
+ }
2248
+ ],
2249
+ "inheritedFrom": {
2250
+ "name": "AttributePicker",
2251
+ "module": "src/attribute-picker.ts"
2252
+ }
2253
+ },
2254
+ {
2255
+ "kind": "method",
2256
+ "name": "_updateDialogContent",
2257
+ "privacy": "protected",
2258
+ "description": "Convenient function to update the dialog content manually,\nsince updating the UI is handled different for OrMwcDialog.",
2259
+ "inheritedFrom": {
2260
+ "name": "AttributePicker",
2261
+ "module": "src/attribute-picker.ts"
2262
+ }
2263
+ },
2264
+ {
2265
+ "kind": "method",
2266
+ "name": "_updateDialogActions",
2267
+ "privacy": "protected",
2268
+ "description": "Convenient function to update the dialog actions manually,\nsince updating the UI is handled different for OrMwcDialog.",
2269
+ "inheritedFrom": {
2270
+ "name": "AttributePicker",
2271
+ "module": "src/attribute-picker.ts"
2272
+ }
2273
+ },
2274
+ {
2275
+ "kind": "method",
2276
+ "name": "_getAttributesTemplate",
2277
+ "privacy": "protected",
2278
+ "return": {
2279
+ "type": {
2280
+ "text": "Promise<TemplateResult>"
2281
+ }
2282
+ },
2283
+ "parameters": [
2284
+ {
2285
+ "name": "attributes",
2286
+ "optional": true,
2287
+ "type": {
2288
+ "text": "Attribute<any>[]"
2289
+ }
2290
+ },
2291
+ {
2292
+ "name": "descriptors",
2293
+ "optional": true,
2294
+ "type": {
2295
+ "text": "AttributeDescriptor[]"
2296
+ }
2297
+ },
2298
+ {
2299
+ "name": "selectedNames",
2300
+ "optional": true,
2301
+ "type": {
2302
+ "text": "string[]"
2303
+ }
2304
+ },
2305
+ {
2306
+ "name": "multi",
2307
+ "default": "false"
2308
+ },
2309
+ {
2310
+ "name": "onSelect",
2311
+ "optional": true,
2312
+ "type": {
2313
+ "text": "(attrNames: string[]) => void"
2314
+ }
2315
+ }
2316
+ ],
2317
+ "description": "Function that creates the HTML template for selecting attributes.\nCurrently uses OrMwcList with or without checkboxes, and uses Util.getAttributeLabel to formulate the text.",
2318
+ "inheritedFrom": {
2319
+ "name": "AttributePicker",
2320
+ "module": "src/attribute-picker.ts"
2321
+ }
2322
+ },
2323
+ {
2324
+ "kind": "method",
2325
+ "name": "_getStyles",
2326
+ "privacy": "protected",
2327
+ "return": {
2328
+ "type": {
2329
+ "text": "string"
2330
+ }
2331
+ },
2332
+ "description": "Simple function that creates the CSS styles for this component",
2333
+ "inheritedFrom": {
2334
+ "name": "AttributePicker",
2335
+ "module": "src/attribute-picker.ts"
2336
+ }
2337
+ }
2338
+ ],
2339
+ "events": [
2340
+ {
2341
+ "type": {
2342
+ "text": "OrAssetAttributePickerPickedEvent"
2343
+ },
2344
+ "inheritedFrom": {
2345
+ "name": "OrAssetAttributePicker",
2346
+ "module": "src/asset-attribute-picker.ts"
2347
+ }
2348
+ }
2349
+ ]
2350
+ },
2351
+ {
2352
+ "kind": "class",
2353
+ "description": "TODO: Remove this, and export the ./assettype-attribute-picker file",
2354
+ "name": "OrAssetTypeAttributePickerPickedEvent",
2355
+ "superclass": {
2356
+ "name": "AssetTypeAttributePickerPickedEvent",
2357
+ "module": "/src/assettype-attribute-picker"
2358
+ },
2359
+ "members": [
2360
+ {
2361
+ "kind": "field",
2362
+ "name": "NAME",
2363
+ "type": {
2364
+ "text": "string"
2365
+ },
2366
+ "privacy": "public",
2367
+ "static": true,
2368
+ "readonly": true,
2369
+ "default": "\"or-asset-type-attribute-picker-picked\"",
2370
+ "inheritedFrom": {
2371
+ "name": "AssetTypeAttributePickerPickedEvent",
2372
+ "module": "src/assettype-attribute-picker.ts"
2373
+ }
2374
+ }
2375
+ ]
2376
+ },
2377
+ {
2378
+ "kind": "class",
2379
+ "description": "TODO: Remove this, and export the ./assettype-attribute-picker file",
2380
+ "name": "OrAssetTypeAttributePicker",
2381
+ "superclass": {
2382
+ "name": "AssetTypeAttributePicker",
2383
+ "module": "/src/assettype-attribute-picker"
2384
+ },
2385
+ "attributes": [
2386
+ {
2387
+ "type": {
2388
+ "text": "object"
2389
+ },
2390
+ "description": "-Callback method for consumers to filter the asset type list shown. Returning true will make the asset type visible, returning false hides it.",
2391
+ "name": "assetTypeFilter",
2392
+ "inheritedFrom": {
2393
+ "name": "AssetTypeAttributePicker",
2394
+ "module": "src/assettype-attribute-picker.ts"
2395
+ }
2396
+ },
2397
+ {
2398
+ "type": {
2399
+ "text": "object"
2400
+ },
2401
+ "description": "Callback method for consumers to filter the attribute list shown. Returning true will make the attribute visible, returning false hides it.",
2402
+ "name": "attributeFilter",
2403
+ "inheritedFrom": {
2404
+ "name": "AssetTypeAttributePicker",
2405
+ "module": "src/assettype-attribute-picker.ts"
2406
+ }
2407
+ },
2408
+ {
2409
+ "type": {
2410
+ "text": "boolean"
2411
+ },
2412
+ "description": "Whether selecting multiple attributes is allowed or not.",
2413
+ "name": "multiSelect",
2414
+ "inheritedFrom": {
2415
+ "name": "AttributePicker",
2416
+ "module": "src/attribute-picker.ts"
2417
+ }
2418
+ },
2419
+ {
2420
+ "type": {
2421
+ "text": "boolean"
2422
+ },
2423
+ "description": "Whether only attributes with the 'STORE_DATAPOINT' meta item should be shown.",
2424
+ "name": "showOnlyDatapointAttrs",
2425
+ "inheritedFrom": {
2426
+ "name": "AttributePicker",
2427
+ "module": "src/attribute-picker.ts"
2428
+ }
2429
+ },
2430
+ {
2431
+ "type": {
2432
+ "text": "boolean"
2433
+ },
2434
+ "description": "Whether only attributes with the 'RULE_STATE' meta item should be shown.",
2435
+ "name": "showOnlyRuleStateAttrs",
2436
+ "inheritedFrom": {
2437
+ "name": "AttributePicker",
2438
+ "module": "src/attribute-picker.ts"
2439
+ }
2440
+ }
2441
+ ],
2442
+ "members": [
2443
+ {
2444
+ "kind": "field",
2445
+ "name": "assetTypeFilter",
2446
+ "type": {
2447
+ "text": "(descriptor: AssetDescriptor) => boolean | undefined"
2448
+ },
2449
+ "privacy": "public",
2450
+ "inheritedFrom": {
2451
+ "name": "AssetTypeAttributePicker",
2452
+ "module": "src/assettype-attribute-picker.ts"
2453
+ }
2454
+ },
2455
+ {
2456
+ "kind": "field",
2457
+ "name": "attributeFilter",
2458
+ "type": {
2459
+ "text": "(descriptor: AttributeDescriptor) => boolean | undefined"
2460
+ },
2461
+ "privacy": "public",
2462
+ "inheritedFrom": {
2463
+ "name": "AssetTypeAttributePicker",
2464
+ "module": "src/assettype-attribute-picker.ts"
2465
+ }
2466
+ },
2467
+ {
2468
+ "kind": "field",
2469
+ "name": "selectedAttributes",
2470
+ "type": {
2471
+ "text": "Map<string, AttributeDescriptor[]>"
2472
+ },
2473
+ "privacy": "public",
2474
+ "default": "new Map()",
2475
+ "inheritedFrom": {
2476
+ "name": "AssetTypeAttributePicker",
2477
+ "module": "src/assettype-attribute-picker.ts"
2478
+ }
2479
+ },
2480
+ {
2481
+ "kind": "field",
2482
+ "name": "_selectedAssetType",
2483
+ "type": {
2484
+ "text": "string | undefined"
2485
+ },
2486
+ "privacy": "protected",
2487
+ "inheritedFrom": {
2488
+ "name": "AssetTypeAttributePicker",
2489
+ "module": "src/assettype-attribute-picker.ts"
2490
+ }
2491
+ },
2492
+ {
2493
+ "kind": "field",
2494
+ "name": "_loadedAttributeTypes",
2495
+ "type": {
2496
+ "text": "AttributeDescriptor[] | undefined"
2497
+ },
2498
+ "privacy": "protected",
2499
+ "inheritedFrom": {
2500
+ "name": "AssetTypeAttributePicker",
2501
+ "module": "src/assettype-attribute-picker.ts"
2502
+ }
2503
+ },
2504
+ {
2505
+ "kind": "field",
2506
+ "name": "_loadedAssetTypes",
2507
+ "type": {
2508
+ "text": "AssetDescriptor[] | undefined"
2509
+ },
2510
+ "privacy": "protected",
2511
+ "inheritedFrom": {
2512
+ "name": "AssetTypeAttributePicker",
2513
+ "module": "src/assettype-attribute-picker.ts"
2514
+ }
2515
+ },
2516
+ {
2517
+ "kind": "method",
2518
+ "name": "setSelectedAttributes",
2519
+ "privacy": "public",
2520
+ "parameters": [
2521
+ {
2522
+ "name": "selectedAttributes",
2523
+ "type": {
2524
+ "text": "Map<string, AttributeDescriptor[]>"
2525
+ }
2526
+ }
2527
+ ],
2528
+ "inheritedFrom": {
2529
+ "name": "AssetTypeAttributePicker",
2530
+ "module": "src/assettype-attribute-picker.ts"
2531
+ }
2532
+ },
2533
+ {
2534
+ "kind": "method",
2535
+ "name": "willUpdate",
2536
+ "privacy": "protected",
2537
+ "parameters": [
2538
+ {
2539
+ "name": "changedProps",
2540
+ "type": {
2541
+ "text": "PropertyValues"
2542
+ }
2543
+ }
2544
+ ],
2545
+ "inheritedFrom": {
2546
+ "name": "AssetTypeAttributePicker",
2547
+ "module": "src/assettype-attribute-picker.ts"
2548
+ }
2549
+ },
2550
+ {
2551
+ "kind": "method",
2552
+ "name": "_loadAssetTypes",
2553
+ "privacy": "protected",
2554
+ "return": {
2555
+ "type": {
2556
+ "text": "AssetDescriptor[]"
2557
+ }
2558
+ },
2559
+ "description": "Function that will load and update the available asset types up for selection.\nAlso applies the filtering such as assetTypeFilter if set.",
2560
+ "inheritedFrom": {
2561
+ "name": "AssetTypeAttributePicker",
2562
+ "module": "src/assettype-attribute-picker.ts"
2563
+ }
2564
+ },
2565
+ {
2566
+ "kind": "method",
2567
+ "name": "_loadAttributeTypes",
2568
+ "privacy": "protected",
2569
+ "return": {
2570
+ "type": {
2571
+ "text": "AttributeDescriptor[]"
2572
+ }
2573
+ },
2574
+ "parameters": [
2575
+ {
2576
+ "name": "descriptor",
2577
+ "type": {
2578
+ "text": "AssetDescriptor"
2579
+ }
2580
+ }
2581
+ ],
2582
+ "description": "Function that will load and update the available attributes up for selection.\nThe descriptor parameter is usually the selected asset type.\nAlso applies the filtering such as showOnlyDatapointAttrs, showOnlyRuleStateAttrs and attributeFilter if set.",
2583
+ "inheritedFrom": {
2584
+ "name": "AssetTypeAttributePicker",
2585
+ "module": "src/assettype-attribute-picker.ts"
2586
+ }
2587
+ },
2588
+ {
2589
+ "kind": "method",
2590
+ "name": "_setDialogContent",
2591
+ "privacy": "protected",
2592
+ "return": {
2593
+ "type": {
2594
+ "text": "void"
2595
+ }
2596
+ },
2597
+ "inheritedFrom": {
2598
+ "name": "AttributePicker",
2599
+ "module": "src/attribute-picker.ts"
2600
+ }
2601
+ },
2602
+ {
2603
+ "kind": "method",
2604
+ "name": "_setDialogActions",
2605
+ "privacy": "protected",
2606
+ "return": {
2607
+ "type": {
2608
+ "text": "void"
2609
+ }
2610
+ },
2611
+ "inheritedFrom": {
2612
+ "name": "AttributePicker",
2613
+ "module": "src/attribute-picker.ts"
2614
+ }
2615
+ },
2616
+ {
2617
+ "kind": "method",
2618
+ "name": "_onAssetTypeItemClick",
2619
+ "privacy": "protected",
2620
+ "parameters": [
2621
+ {
2622
+ "name": "listItem",
2623
+ "type": {
2624
+ "text": "ListItem"
2625
+ }
2626
+ }
2627
+ ],
2628
+ "description": "HTML Callback function when the selected asset type has been updated.",
2629
+ "inheritedFrom": {
2630
+ "name": "AssetTypeAttributePicker",
2631
+ "module": "src/assettype-attribute-picker.ts"
2632
+ }
2633
+ },
2634
+ {
2635
+ "kind": "method",
2636
+ "name": "_onAttributesSelect",
2637
+ "privacy": "protected",
2638
+ "parameters": [
2639
+ {
2640
+ "name": "attrNames",
2641
+ "type": {
2642
+ "text": "string[]"
2643
+ }
2644
+ }
2645
+ ],
2646
+ "description": "HTML callback function when the selected attributes have been updated.",
2647
+ "inheritedFrom": {
2648
+ "name": "AssetTypeAttributePicker",
2649
+ "module": "src/assettype-attribute-picker.ts"
2650
+ }
2651
+ },
2652
+ {
2653
+ "kind": "method",
2654
+ "name": "_getAssetTypeDescriptors",
2655
+ "privacy": "protected",
2656
+ "return": {
2657
+ "type": {
2658
+ "text": "ListItem[]"
2659
+ }
2660
+ },
2661
+ "parameters": [
2662
+ {
2663
+ "name": "descriptors",
2664
+ "type": {
2665
+ "text": "AssetDescriptor[]"
2666
+ }
2667
+ },
2668
+ {
2669
+ "name": "selected",
2670
+ "optional": true,
2671
+ "type": {
2672
+ "text": "AssetDescriptor[]"
2673
+ }
2674
+ },
2675
+ {
2676
+ "name": "withNoneValue",
2677
+ "optional": true,
2678
+ "type": {
2679
+ "text": "ListItem"
2680
+ }
2681
+ }
2682
+ ],
2683
+ "description": "Function that maps the AssetDescriptors to the formatted ListItems.\nUses helpers like Util.getAssetTypeLabel and sorts by descriptorType so that agents show up first.",
2684
+ "inheritedFrom": {
2685
+ "name": "AssetTypeAttributePicker",
2686
+ "module": "src/assettype-attribute-picker.ts"
2687
+ }
2688
+ },
2689
+ {
2690
+ "kind": "method",
2691
+ "name": "_getAssetDescriptorByName",
2692
+ "privacy": "protected",
2693
+ "return": {
2694
+ "type": {
2695
+ "text": "AssetDescriptor | undefined"
2696
+ }
2697
+ },
2698
+ "parameters": [
2699
+ {
2700
+ "name": "name",
2701
+ "optional": true,
2702
+ "type": {
2703
+ "text": "string"
2704
+ }
2705
+ }
2706
+ ],
2707
+ "description": "Utility method to get the cached AssetDescriptor by its name",
2708
+ "inheritedFrom": {
2709
+ "name": "AssetTypeAttributePicker",
2710
+ "module": "src/assettype-attribute-picker.ts"
2711
+ }
2712
+ },
2713
+ {
2714
+ "kind": "field",
2715
+ "name": "multiSelect",
2716
+ "type": {
2717
+ "text": "boolean | undefined"
2718
+ },
2719
+ "privacy": "public",
2720
+ "default": "false",
2721
+ "inheritedFrom": {
2722
+ "name": "AttributePicker",
2723
+ "module": "src/attribute-picker.ts"
2724
+ }
2725
+ },
2726
+ {
2727
+ "kind": "field",
2728
+ "name": "showOnlyDatapointAttrs",
2729
+ "type": {
2730
+ "text": "boolean | undefined"
2731
+ },
2732
+ "privacy": "public",
2733
+ "default": "false",
2734
+ "inheritedFrom": {
2735
+ "name": "AttributePicker",
2736
+ "module": "src/attribute-picker.ts"
2737
+ }
2738
+ },
2739
+ {
2740
+ "kind": "field",
2741
+ "name": "showOnlyRuleStateAttrs",
2742
+ "type": {
2743
+ "text": "boolean | undefined"
2744
+ },
2745
+ "privacy": "public",
2746
+ "default": "false",
2747
+ "inheritedFrom": {
2748
+ "name": "AttributePicker",
2749
+ "module": "src/attribute-picker.ts"
2750
+ }
2751
+ },
2752
+ {
2753
+ "kind": "field",
2754
+ "name": "addBtn",
2755
+ "type": {
2756
+ "text": "OrMwcInput"
2757
+ },
2758
+ "privacy": "protected",
2759
+ "inheritedFrom": {
2760
+ "name": "AttributePicker",
2761
+ "module": "src/attribute-picker.ts"
2762
+ }
2763
+ },
2764
+ {
2765
+ "kind": "method",
2766
+ "name": "setShowOnlyDatapointAttrs",
2767
+ "privacy": "public",
2768
+ "return": {
2769
+ "type": {
2770
+ "text": "this"
2771
+ }
2772
+ },
2773
+ "parameters": [
2774
+ {
2775
+ "name": "showOnlyDatapointAttrs",
2776
+ "type": {
2777
+ "text": "boolean | undefined"
2778
+ }
2779
+ }
2780
+ ],
2781
+ "inheritedFrom": {
2782
+ "name": "AttributePicker",
2783
+ "module": "src/attribute-picker.ts"
2784
+ }
2785
+ },
2786
+ {
2787
+ "kind": "method",
2788
+ "name": "setShowOnlyRuleStateAttrs",
2789
+ "privacy": "public",
2790
+ "return": {
2791
+ "type": {
2792
+ "text": "this"
2793
+ }
2794
+ },
2795
+ "parameters": [
2796
+ {
2797
+ "name": "showOnlyRuleStateAttrs",
2798
+ "type": {
2799
+ "text": "boolean | undefined"
2800
+ }
2801
+ }
2802
+ ],
2803
+ "inheritedFrom": {
2804
+ "name": "AttributePicker",
2805
+ "module": "src/attribute-picker.ts"
2806
+ }
2807
+ },
2808
+ {
2809
+ "kind": "method",
2810
+ "name": "setMultiSelect",
2811
+ "privacy": "public",
2812
+ "return": {
2813
+ "type": {
2814
+ "text": "this"
2815
+ }
2816
+ },
2817
+ "parameters": [
2818
+ {
2819
+ "name": "multiSelect",
2820
+ "type": {
2821
+ "text": "boolean | undefined"
2822
+ }
2823
+ }
2824
+ ],
2825
+ "inheritedFrom": {
2826
+ "name": "AttributePicker",
2827
+ "module": "src/attribute-picker.ts"
2828
+ }
2829
+ },
2830
+ {
2831
+ "kind": "method",
2832
+ "name": "setOpen",
2833
+ "privacy": "public",
2834
+ "return": {
2835
+ "type": {
2836
+ "text": "this"
2837
+ }
2838
+ },
2839
+ "parameters": [
2840
+ {
2841
+ "name": "isOpen",
2842
+ "type": {
2843
+ "text": "boolean"
2844
+ }
2845
+ }
2846
+ ],
2847
+ "inheritedFrom": {
2848
+ "name": "AttributePicker",
2849
+ "module": "src/attribute-picker.ts"
2850
+ }
2851
+ },
2852
+ {
2853
+ "kind": "method",
2854
+ "name": "setHeading",
2855
+ "privacy": "public",
2856
+ "return": {
2857
+ "type": {
2858
+ "text": "this"
2859
+ }
2860
+ },
2861
+ "parameters": [
2862
+ {
2863
+ "name": "heading",
2864
+ "type": {
2865
+ "text": "TemplateResult | string | undefined"
2866
+ }
2867
+ }
2868
+ ],
2869
+ "inheritedFrom": {
2870
+ "name": "AttributePicker",
2871
+ "module": "src/attribute-picker.ts"
2872
+ }
2873
+ },
2874
+ {
2875
+ "kind": "method",
2876
+ "name": "setContent",
2877
+ "privacy": "public",
2878
+ "return": {
2879
+ "type": {
2880
+ "text": "this"
2881
+ }
2882
+ },
2883
+ "parameters": [
2884
+ {
2885
+ "name": "_content",
2886
+ "type": {
2887
+ "text": "TemplateResult | (() => TemplateResult) | undefined"
2888
+ }
2889
+ }
2890
+ ],
2891
+ "inheritedFrom": {
2892
+ "name": "AttributePicker",
2893
+ "module": "src/attribute-picker.ts"
2894
+ }
2895
+ },
2896
+ {
2897
+ "kind": "method",
2898
+ "name": "setActions",
2899
+ "privacy": "public",
2900
+ "return": {
2901
+ "type": {
2902
+ "text": "this"
2903
+ }
2904
+ },
2905
+ "parameters": [
2906
+ {
2907
+ "name": "_actions",
2908
+ "type": {
2909
+ "text": "DialogAction[] | undefined"
2910
+ }
2911
+ }
2912
+ ],
2913
+ "inheritedFrom": {
2914
+ "name": "AttributePicker",
2915
+ "module": "src/attribute-picker.ts"
2916
+ }
2917
+ },
2918
+ {
2919
+ "kind": "method",
2920
+ "name": "setDismissAction",
2921
+ "privacy": "public",
2922
+ "return": {
2923
+ "type": {
2924
+ "text": "this"
2925
+ }
2926
+ },
2927
+ "parameters": [
2928
+ {
2929
+ "name": "_action",
2930
+ "type": {
2931
+ "text": "DialogActionBase | null | undefined"
2932
+ }
2933
+ }
2934
+ ],
2935
+ "inheritedFrom": {
2936
+ "name": "AttributePicker",
2937
+ "module": "src/attribute-picker.ts"
2938
+ }
2939
+ },
2940
+ {
2941
+ "kind": "method",
2942
+ "name": "setStyles",
2943
+ "privacy": "public",
2944
+ "return": {
2945
+ "type": {
2946
+ "text": "this"
2947
+ }
2948
+ },
2949
+ "parameters": [
2950
+ {
2951
+ "name": "_styles",
2952
+ "type": {
2953
+ "text": "string | TemplateResult | undefined"
2954
+ }
2955
+ }
2956
+ ],
2957
+ "inheritedFrom": {
2958
+ "name": "AttributePicker",
2959
+ "module": "src/attribute-picker.ts"
2960
+ }
2961
+ },
2962
+ {
2963
+ "kind": "method",
2964
+ "name": "setAvatar",
2965
+ "privacy": "public",
2966
+ "return": {
2967
+ "type": {
2968
+ "text": "this"
2969
+ }
2970
+ },
2971
+ "parameters": [
2972
+ {
2973
+ "name": "_avatar",
2974
+ "type": {
2975
+ "text": "boolean | undefined"
2976
+ }
2977
+ }
2978
+ ],
2979
+ "inheritedFrom": {
2980
+ "name": "AttributePicker",
2981
+ "module": "src/attribute-picker.ts"
2982
+ }
2983
+ },
2984
+ {
2985
+ "kind": "method",
2986
+ "name": "_updateDialogContent",
2987
+ "privacy": "protected",
2988
+ "description": "Convenient function to update the dialog content manually,\nsince updating the UI is handled different for OrMwcDialog.",
2989
+ "inheritedFrom": {
2990
+ "name": "AttributePicker",
2991
+ "module": "src/attribute-picker.ts"
2992
+ }
2993
+ },
2994
+ {
2995
+ "kind": "method",
2996
+ "name": "_updateDialogActions",
2997
+ "privacy": "protected",
2998
+ "description": "Convenient function to update the dialog actions manually,\nsince updating the UI is handled different for OrMwcDialog.",
2999
+ "inheritedFrom": {
3000
+ "name": "AttributePicker",
3001
+ "module": "src/attribute-picker.ts"
3002
+ }
3003
+ },
3004
+ {
3005
+ "kind": "method",
3006
+ "name": "_getAttributesTemplate",
3007
+ "privacy": "protected",
3008
+ "return": {
3009
+ "type": {
3010
+ "text": "Promise<TemplateResult>"
3011
+ }
3012
+ },
3013
+ "parameters": [
3014
+ {
3015
+ "name": "attributes",
3016
+ "optional": true,
3017
+ "type": {
3018
+ "text": "Attribute<any>[]"
3019
+ }
3020
+ },
3021
+ {
3022
+ "name": "descriptors",
3023
+ "optional": true,
3024
+ "type": {
3025
+ "text": "AttributeDescriptor[]"
3026
+ }
3027
+ },
3028
+ {
3029
+ "name": "selectedNames",
3030
+ "optional": true,
3031
+ "type": {
3032
+ "text": "string[]"
3033
+ }
3034
+ },
3035
+ {
3036
+ "name": "multi",
3037
+ "default": "false"
3038
+ },
3039
+ {
3040
+ "name": "onSelect",
3041
+ "optional": true,
3042
+ "type": {
3043
+ "text": "(attrNames: string[]) => void"
3044
+ }
3045
+ }
3046
+ ],
3047
+ "description": "Function that creates the HTML template for selecting attributes.\nCurrently uses OrMwcList with or without checkboxes, and uses Util.getAttributeLabel to formulate the text.",
3048
+ "inheritedFrom": {
3049
+ "name": "AttributePicker",
3050
+ "module": "src/attribute-picker.ts"
3051
+ }
3052
+ },
3053
+ {
3054
+ "kind": "method",
3055
+ "name": "_getStyles",
3056
+ "privacy": "protected",
3057
+ "return": {
3058
+ "type": {
3059
+ "text": "string"
3060
+ }
3061
+ },
3062
+ "description": "Simple function that creates the CSS styles for this component",
3063
+ "inheritedFrom": {
3064
+ "name": "AttributePicker",
3065
+ "module": "src/attribute-picker.ts"
3066
+ }
3067
+ }
3068
+ ],
3069
+ "events": [
3070
+ {
3071
+ "type": {
3072
+ "text": "AssetTypeAttributePickerPickedEvent"
3073
+ },
3074
+ "inheritedFrom": {
3075
+ "name": "AssetTypeAttributePicker",
3076
+ "module": "src/assettype-attribute-picker.ts"
3077
+ }
3078
+ }
3079
+ ]
3080
+ }
3081
+ ],
3082
+ "exports": [
3083
+ {
3084
+ "kind": "js",
3085
+ "name": "OrAttributePickerPickedEvent",
3086
+ "declaration": {
3087
+ "name": "OrAttributePickerPickedEvent",
3088
+ "module": "src/index.ts"
3089
+ }
3090
+ },
3091
+ {
3092
+ "kind": "js",
3093
+ "name": "OrAttributePicker",
3094
+ "declaration": {
3095
+ "name": "OrAttributePicker",
3096
+ "module": "src/index.ts"
3097
+ }
3098
+ },
3099
+ {
3100
+ "kind": "js",
3101
+ "name": "OrAssetTypeAttributePickerPickedEvent",
3102
+ "declaration": {
3103
+ "name": "OrAssetTypeAttributePickerPickedEvent",
3104
+ "module": "src/index.ts"
3105
+ }
3106
+ },
3107
+ {
3108
+ "kind": "js",
3109
+ "name": "OrAssetTypeAttributePicker",
3110
+ "declaration": {
3111
+ "name": "OrAssetTypeAttributePicker",
3112
+ "module": "src/index.ts"
3113
+ }
3114
+ }
3115
+ ]
3116
+ }
3117
+ ]
3118
+ }