@openremote/or-attribute-picker 1.6.0 → 1.6.2

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.
@@ -39,7 +39,8 @@
39
39
  "type": {
40
40
  "text": "(attribute: Attribute<any>) => boolean | undefined"
41
41
  },
42
- "privacy": "public"
42
+ "privacy": "public",
43
+ "attribute": "attributeFilter"
43
44
  },
44
45
  {
45
46
  "kind": "field",
@@ -193,6 +194,7 @@
193
194
  },
194
195
  "privacy": "public",
195
196
  "default": "false",
197
+ "attribute": "multiSelect",
196
198
  "inheritedFrom": {
197
199
  "name": "AttributePicker",
198
200
  "module": "src/attribute-picker.ts"
@@ -206,6 +208,7 @@
206
208
  },
207
209
  "privacy": "public",
208
210
  "default": "false",
211
+ "attribute": "showOnlyDatapointAttrs",
209
212
  "inheritedFrom": {
210
213
  "name": "AttributePicker",
211
214
  "module": "src/attribute-picker.ts"
@@ -219,6 +222,7 @@
219
222
  },
220
223
  "privacy": "public",
221
224
  "default": "false",
225
+ "attribute": "showOnlyRuleStateAttrs",
222
226
  "inheritedFrom": {
223
227
  "name": "AttributePicker",
224
228
  "module": "src/attribute-picker.ts"
@@ -551,17 +555,20 @@
551
555
  "attributes": [
552
556
  {
553
557
  "type": {
554
- "text": "object"
558
+ "text": "(attribute: Attribute<any>) => boolean | undefined"
555
559
  },
556
560
  "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"
561
+ "name": "attributeFilter",
562
+ "fieldName": "attributeFilter"
558
563
  },
559
564
  {
560
565
  "type": {
561
- "text": "boolean"
566
+ "text": "boolean | undefined"
562
567
  },
563
568
  "description": "Whether selecting multiple attributes is allowed or not.",
564
569
  "name": "multiSelect",
570
+ "default": "false",
571
+ "fieldName": "multiSelect",
565
572
  "inheritedFrom": {
566
573
  "name": "AttributePicker",
567
574
  "module": "src/attribute-picker.ts"
@@ -569,10 +576,12 @@
569
576
  },
570
577
  {
571
578
  "type": {
572
- "text": "boolean"
579
+ "text": "boolean | undefined"
573
580
  },
574
581
  "description": "Whether only attributes with the 'STORE_DATAPOINT' meta item should be shown.",
575
582
  "name": "showOnlyDatapointAttrs",
583
+ "default": "false",
584
+ "fieldName": "showOnlyDatapointAttrs",
576
585
  "inheritedFrom": {
577
586
  "name": "AttributePicker",
578
587
  "module": "src/attribute-picker.ts"
@@ -580,10 +589,12 @@
580
589
  },
581
590
  {
582
591
  "type": {
583
- "text": "boolean"
592
+ "text": "boolean | undefined"
584
593
  },
585
594
  "description": "Whether only attributes with the 'RULE_STATE' meta item should be shown.",
586
595
  "name": "showOnlyRuleStateAttrs",
596
+ "default": "false",
597
+ "fieldName": "showOnlyRuleStateAttrs",
587
598
  "inheritedFrom": {
588
599
  "name": "AttributePicker",
589
600
  "module": "src/attribute-picker.ts"
@@ -593,7 +604,9 @@
593
604
  "superclass": {
594
605
  "name": "AttributePicker",
595
606
  "module": "/src/attribute-picker"
596
- }
607
+ },
608
+ "tagName": "or-asset-attribute-picker",
609
+ "customElement": true
597
610
  }
598
611
  ],
599
612
  "exports": [
@@ -612,6 +625,14 @@
612
625
  "name": "OrAssetAttributePicker",
613
626
  "module": "src/asset-attribute-picker.ts"
614
627
  }
628
+ },
629
+ {
630
+ "kind": "custom-element-definition",
631
+ "name": "or-asset-attribute-picker",
632
+ "declaration": {
633
+ "name": "OrAssetAttributePicker",
634
+ "module": "src/asset-attribute-picker.ts"
635
+ }
615
636
  }
616
637
  ]
617
638
  },
@@ -622,7 +643,7 @@
622
643
  {
623
644
  "kind": "class",
624
645
  "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",
646
+ "name": "OrAssetTypeAttributePickerPickedEvent",
626
647
  "members": [
627
648
  {
628
649
  "kind": "field",
@@ -644,7 +665,7 @@
644
665
  {
645
666
  "kind": "class",
646
667
  "description": "The \"Attribute Picker\" component using the OrAssetTree component for selecting assets and its attributes.",
647
- "name": "AssetTypeAttributePicker",
668
+ "name": "OrAssetTypeAttributePicker",
648
669
  "members": [
649
670
  {
650
671
  "kind": "field",
@@ -652,7 +673,8 @@
652
673
  "type": {
653
674
  "text": "(descriptor: AssetDescriptor) => boolean | undefined"
654
675
  },
655
- "privacy": "public"
676
+ "privacy": "public",
677
+ "attribute": "assetTypeFilter"
656
678
  },
657
679
  {
658
680
  "kind": "field",
@@ -660,7 +682,8 @@
660
682
  "type": {
661
683
  "text": "(descriptor: AttributeDescriptor) => boolean | undefined"
662
684
  },
663
- "privacy": "public"
685
+ "privacy": "public",
686
+ "attribute": "attributeFilter"
664
687
  },
665
688
  {
666
689
  "kind": "field",
@@ -708,19 +731,6 @@
708
731
  }
709
732
  ]
710
733
  },
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
734
  {
725
735
  "kind": "method",
726
736
  "name": "_loadAssetTypes",
@@ -868,6 +878,7 @@
868
878
  },
869
879
  "privacy": "public",
870
880
  "default": "false",
881
+ "attribute": "multiSelect",
871
882
  "inheritedFrom": {
872
883
  "name": "AttributePicker",
873
884
  "module": "src/attribute-picker.ts"
@@ -881,6 +892,7 @@
881
892
  },
882
893
  "privacy": "public",
883
894
  "default": "false",
895
+ "attribute": "showOnlyDatapointAttrs",
884
896
  "inheritedFrom": {
885
897
  "name": "AttributePicker",
886
898
  "module": "src/attribute-picker.ts"
@@ -894,6 +906,7 @@
894
906
  },
895
907
  "privacy": "public",
896
908
  "default": "false",
909
+ "attribute": "showOnlyRuleStateAttrs",
897
910
  "inheritedFrom": {
898
911
  "name": "AttributePicker",
899
912
  "module": "src/attribute-picker.ts"
@@ -1219,31 +1232,35 @@
1219
1232
  "events": [
1220
1233
  {
1221
1234
  "type": {
1222
- "text": "AssetTypeAttributePickerPickedEvent"
1235
+ "text": "OrAssetTypeAttributePickerPickedEvent"
1223
1236
  }
1224
1237
  }
1225
1238
  ],
1226
1239
  "attributes": [
1227
1240
  {
1228
1241
  "type": {
1229
- "text": "object"
1242
+ "text": "(descriptor: AssetDescriptor) => boolean | undefined"
1230
1243
  },
1231
1244
  "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"
1245
+ "name": "assetTypeFilter",
1246
+ "fieldName": "assetTypeFilter"
1233
1247
  },
1234
1248
  {
1235
1249
  "type": {
1236
- "text": "object"
1250
+ "text": "(descriptor: AttributeDescriptor) => boolean | undefined"
1237
1251
  },
1238
1252
  "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"
1253
+ "name": "attributeFilter",
1254
+ "fieldName": "attributeFilter"
1240
1255
  },
1241
1256
  {
1242
1257
  "type": {
1243
- "text": "boolean"
1258
+ "text": "boolean | undefined"
1244
1259
  },
1245
1260
  "description": "Whether selecting multiple attributes is allowed or not.",
1246
1261
  "name": "multiSelect",
1262
+ "default": "false",
1263
+ "fieldName": "multiSelect",
1247
1264
  "inheritedFrom": {
1248
1265
  "name": "AttributePicker",
1249
1266
  "module": "src/attribute-picker.ts"
@@ -1251,10 +1268,12 @@
1251
1268
  },
1252
1269
  {
1253
1270
  "type": {
1254
- "text": "boolean"
1271
+ "text": "boolean | undefined"
1255
1272
  },
1256
1273
  "description": "Whether only attributes with the 'STORE_DATAPOINT' meta item should be shown.",
1257
1274
  "name": "showOnlyDatapointAttrs",
1275
+ "default": "false",
1276
+ "fieldName": "showOnlyDatapointAttrs",
1258
1277
  "inheritedFrom": {
1259
1278
  "name": "AttributePicker",
1260
1279
  "module": "src/attribute-picker.ts"
@@ -1262,10 +1281,12 @@
1262
1281
  },
1263
1282
  {
1264
1283
  "type": {
1265
- "text": "boolean"
1284
+ "text": "boolean | undefined"
1266
1285
  },
1267
1286
  "description": "Whether only attributes with the 'RULE_STATE' meta item should be shown.",
1268
1287
  "name": "showOnlyRuleStateAttrs",
1288
+ "default": "false",
1289
+ "fieldName": "showOnlyRuleStateAttrs",
1269
1290
  "inheritedFrom": {
1270
1291
  "name": "AttributePicker",
1271
1292
  "module": "src/attribute-picker.ts"
@@ -1275,23 +1296,33 @@
1275
1296
  "superclass": {
1276
1297
  "name": "AttributePicker",
1277
1298
  "module": "/src/attribute-picker"
1278
- }
1299
+ },
1300
+ "tagName": "or-assettype-attribute-picker",
1301
+ "customElement": true
1279
1302
  }
1280
1303
  ],
1281
1304
  "exports": [
1282
1305
  {
1283
1306
  "kind": "js",
1284
- "name": "AssetTypeAttributePickerPickedEvent",
1307
+ "name": "OrAssetTypeAttributePickerPickedEvent",
1285
1308
  "declaration": {
1286
- "name": "AssetTypeAttributePickerPickedEvent",
1309
+ "name": "OrAssetTypeAttributePickerPickedEvent",
1287
1310
  "module": "src/assettype-attribute-picker.ts"
1288
1311
  }
1289
1312
  },
1290
1313
  {
1291
1314
  "kind": "js",
1292
- "name": "AssetTypeAttributePicker",
1315
+ "name": "OrAssetTypeAttributePicker",
1316
+ "declaration": {
1317
+ "name": "OrAssetTypeAttributePicker",
1318
+ "module": "src/assettype-attribute-picker.ts"
1319
+ }
1320
+ },
1321
+ {
1322
+ "kind": "custom-element-definition",
1323
+ "name": "or-assettype-attribute-picker",
1293
1324
  "declaration": {
1294
- "name": "AssetTypeAttributePicker",
1325
+ "name": "OrAssetTypeAttributePicker",
1295
1326
  "module": "src/assettype-attribute-picker.ts"
1296
1327
  }
1297
1328
  }
@@ -1305,18 +1336,13 @@
1305
1336
  "kind": "class",
1306
1337
  "description": "",
1307
1338
  "name": "AssettypeList",
1308
- "members": [
1309
- {
1310
- "kind": "field",
1311
- "name": "styles",
1312
- "static": true,
1313
- "readonly": true
1314
- }
1315
- ],
1339
+ "members": [],
1316
1340
  "superclass": {
1317
1341
  "name": "OrMwcList",
1318
1342
  "package": "@openremote/or-mwc-components/or-mwc-list"
1319
- }
1343
+ },
1344
+ "tagName": "asset-type-list",
1345
+ "customElement": true
1320
1346
  }
1321
1347
  ],
1322
1348
  "exports": [
@@ -1327,6 +1353,14 @@
1327
1353
  "name": "AssettypeList",
1328
1354
  "module": "src/assettype-list.ts"
1329
1355
  }
1356
+ },
1357
+ {
1358
+ "kind": "custom-element-definition",
1359
+ "name": "asset-type-list",
1360
+ "declaration": {
1361
+ "name": "AssettypeList",
1362
+ "module": "src/assettype-list.ts"
1363
+ }
1330
1364
  }
1331
1365
  ]
1332
1366
  },
@@ -1375,7 +1409,8 @@
1375
1409
  "text": "boolean | undefined"
1376
1410
  },
1377
1411
  "privacy": "public",
1378
- "default": "false"
1412
+ "default": "false",
1413
+ "attribute": "multiSelect"
1379
1414
  },
1380
1415
  {
1381
1416
  "kind": "field",
@@ -1384,7 +1419,8 @@
1384
1419
  "text": "boolean | undefined"
1385
1420
  },
1386
1421
  "privacy": "public",
1387
- "default": "false"
1422
+ "default": "false",
1423
+ "attribute": "showOnlyDatapointAttrs"
1388
1424
  },
1389
1425
  {
1390
1426
  "kind": "field",
@@ -1393,7 +1429,8 @@
1393
1429
  "text": "boolean | undefined"
1394
1430
  },
1395
1431
  "privacy": "public",
1396
- "default": "false"
1432
+ "default": "false",
1433
+ "attribute": "showOnlyRuleStateAttrs"
1397
1434
  },
1398
1435
  {
1399
1436
  "kind": "field",
@@ -1655,24 +1692,30 @@
1655
1692
  "attributes": [
1656
1693
  {
1657
1694
  "type": {
1658
- "text": "boolean"
1695
+ "text": "boolean | undefined"
1659
1696
  },
1660
1697
  "description": "Whether selecting multiple attributes is allowed or not.",
1661
- "name": "multiSelect"
1698
+ "name": "multiSelect",
1699
+ "default": "false",
1700
+ "fieldName": "multiSelect"
1662
1701
  },
1663
1702
  {
1664
1703
  "type": {
1665
- "text": "boolean"
1704
+ "text": "boolean | undefined"
1666
1705
  },
1667
1706
  "description": "Whether only attributes with the 'STORE_DATAPOINT' meta item should be shown.",
1668
- "name": "showOnlyDatapointAttrs"
1707
+ "name": "showOnlyDatapointAttrs",
1708
+ "default": "false",
1709
+ "fieldName": "showOnlyDatapointAttrs"
1669
1710
  },
1670
1711
  {
1671
1712
  "type": {
1672
- "text": "boolean"
1713
+ "text": "boolean | undefined"
1673
1714
  },
1674
1715
  "description": "Whether only attributes with the 'RULE_STATE' meta item should be shown.",
1675
- "name": "showOnlyRuleStateAttrs"
1716
+ "name": "showOnlyRuleStateAttrs",
1717
+ "default": "false",
1718
+ "fieldName": "showOnlyRuleStateAttrs"
1676
1719
  }
1677
1720
  ],
1678
1721
  "superclass": {
@@ -1713,7 +1756,7 @@
1713
1756
  "name": "OrAssetAttributePickerPickedEvent",
1714
1757
  "module": "/src/asset-attribute-picker"
1715
1758
  },
1716
- "deprecated": "Replaced this class with an abstract {@link OrAssetAttributePickerPickedEvent}, that is inherited by other classes like {@link OrAssetAttributePicker} and {@link AssetTypeAttributePicker}.",
1759
+ "deprecated": "Replaced this class with an abstract {@link OrAssetAttributePickerPickedEvent}, that is inherited by other classes like {@link OrAssetAttributePicker} and {@link OrAssetTypeAttributePicker}.",
1717
1760
  "members": [
1718
1761
  {
1719
1762
  "kind": "field",
@@ -1741,13 +1784,16 @@
1741
1784
  "module": "/src/asset-attribute-picker"
1742
1785
  },
1743
1786
  "deprecated": "Replaced this class with {@link OrAssetAttributePicker}.",
1787
+ "tagName": "or-attribute-picker",
1788
+ "customElement": true,
1744
1789
  "attributes": [
1745
1790
  {
1746
1791
  "type": {
1747
- "text": "object"
1792
+ "text": "(attribute: Attribute<any>) => boolean | undefined"
1748
1793
  },
1749
1794
  "description": "Callback method for consumers to filter the attribute list shown. Returning true will make the attribute visible, returning false hides it.",
1750
1795
  "name": "attributeFilter",
1796
+ "fieldName": "attributeFilter",
1751
1797
  "inheritedFrom": {
1752
1798
  "name": "OrAssetAttributePicker",
1753
1799
  "module": "src/asset-attribute-picker.ts"
@@ -1755,10 +1801,12 @@
1755
1801
  },
1756
1802
  {
1757
1803
  "type": {
1758
- "text": "boolean"
1804
+ "text": "boolean | undefined"
1759
1805
  },
1760
1806
  "description": "Whether selecting multiple attributes is allowed or not.",
1761
1807
  "name": "multiSelect",
1808
+ "default": "false",
1809
+ "fieldName": "multiSelect",
1762
1810
  "inheritedFrom": {
1763
1811
  "name": "AttributePicker",
1764
1812
  "module": "src/attribute-picker.ts"
@@ -1766,10 +1814,12 @@
1766
1814
  },
1767
1815
  {
1768
1816
  "type": {
1769
- "text": "boolean"
1817
+ "text": "boolean | undefined"
1770
1818
  },
1771
1819
  "description": "Whether only attributes with the 'STORE_DATAPOINT' meta item should be shown.",
1772
1820
  "name": "showOnlyDatapointAttrs",
1821
+ "default": "false",
1822
+ "fieldName": "showOnlyDatapointAttrs",
1773
1823
  "inheritedFrom": {
1774
1824
  "name": "AttributePicker",
1775
1825
  "module": "src/attribute-picker.ts"
@@ -1777,10 +1827,12 @@
1777
1827
  },
1778
1828
  {
1779
1829
  "type": {
1780
- "text": "boolean"
1830
+ "text": "boolean | undefined"
1781
1831
  },
1782
1832
  "description": "Whether only attributes with the 'RULE_STATE' meta item should be shown.",
1783
1833
  "name": "showOnlyRuleStateAttrs",
1834
+ "default": "false",
1835
+ "fieldName": "showOnlyRuleStateAttrs",
1784
1836
  "inheritedFrom": {
1785
1837
  "name": "AttributePicker",
1786
1838
  "module": "src/attribute-picker.ts"
@@ -1795,6 +1847,7 @@
1795
1847
  "text": "(attribute: Attribute<any>) => boolean | undefined"
1796
1848
  },
1797
1849
  "privacy": "public",
1850
+ "attribute": "attributeFilter",
1798
1851
  "inheritedFrom": {
1799
1852
  "name": "OrAssetAttributePicker",
1800
1853
  "module": "src/asset-attribute-picker.ts"
@@ -1988,6 +2041,7 @@
1988
2041
  },
1989
2042
  "privacy": "public",
1990
2043
  "default": "false",
2044
+ "attribute": "multiSelect",
1991
2045
  "inheritedFrom": {
1992
2046
  "name": "AttributePicker",
1993
2047
  "module": "src/attribute-picker.ts"
@@ -2001,6 +2055,7 @@
2001
2055
  },
2002
2056
  "privacy": "public",
2003
2057
  "default": "false",
2058
+ "attribute": "showOnlyDatapointAttrs",
2004
2059
  "inheritedFrom": {
2005
2060
  "name": "AttributePicker",
2006
2061
  "module": "src/attribute-picker.ts"
@@ -2014,6 +2069,7 @@
2014
2069
  },
2015
2070
  "privacy": "public",
2016
2071
  "default": "false",
2072
+ "attribute": "showOnlyRuleStateAttrs",
2017
2073
  "inheritedFrom": {
2018
2074
  "name": "AttributePicker",
2019
2075
  "module": "src/attribute-picker.ts"
@@ -2347,750 +2403,28 @@
2347
2403
  }
2348
2404
  }
2349
2405
  ]
2406
+ }
2407
+ ],
2408
+ "exports": [
2409
+ {
2410
+ "kind": "js",
2411
+ "name": "OrAttributePickerPickedEvent",
2412
+ "declaration": {
2413
+ "name": "OrAttributePickerPickedEvent",
2414
+ "module": "src/index.ts"
2415
+ }
2350
2416
  },
2351
2417
  {
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
- ]
2418
+ "kind": "js",
2419
+ "name": "OrAttributePicker",
2420
+ "declaration": {
2421
+ "name": "OrAttributePicker",
2422
+ "module": "src/index.ts"
2423
+ }
2376
2424
  },
2377
2425
  {
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",
2426
+ "kind": "custom-element-definition",
2427
+ "name": "or-attribute-picker",
3094
2428
  "declaration": {
3095
2429
  "name": "OrAttributePicker",
3096
2430
  "module": "src/index.ts"
@@ -3098,18 +2432,18 @@
3098
2432
  },
3099
2433
  {
3100
2434
  "kind": "js",
3101
- "name": "OrAssetTypeAttributePickerPickedEvent",
2435
+ "name": "*",
3102
2436
  "declaration": {
3103
- "name": "OrAssetTypeAttributePickerPickedEvent",
3104
- "module": "src/index.ts"
2437
+ "name": "*",
2438
+ "package": "\"./asset-attribute-picker\""
3105
2439
  }
3106
2440
  },
3107
2441
  {
3108
2442
  "kind": "js",
3109
- "name": "OrAssetTypeAttributePicker",
2443
+ "name": "*",
3110
2444
  "declaration": {
3111
- "name": "OrAssetTypeAttributePicker",
3112
- "module": "src/index.ts"
2445
+ "name": "*",
2446
+ "package": "\"./assettype-attribute-picker\""
3113
2447
  }
3114
2448
  }
3115
2449
  ]