@openremote/or-asset-viewer 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,1383 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/index.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "function",
11
+ "name": "getIncludedProperties",
12
+ "return": {
13
+ "type": {
14
+ "text": "string[]"
15
+ }
16
+ },
17
+ "parameters": [
18
+ {
19
+ "name": "config",
20
+ "optional": true,
21
+ "type": {
22
+ "text": "InfoPanelConfig"
23
+ }
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ "kind": "function",
29
+ "name": "getIncludedAttributes",
30
+ "return": {
31
+ "type": {
32
+ "text": "Attribute<any>[]"
33
+ }
34
+ },
35
+ "parameters": [
36
+ {
37
+ "name": "attributes",
38
+ "type": {
39
+ "text": "{ [index: string]: Attribute<any> }"
40
+ }
41
+ },
42
+ {
43
+ "name": "config",
44
+ "optional": true,
45
+ "type": {
46
+ "text": "InfoPanelConfig"
47
+ }
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ "kind": "class",
53
+ "description": "",
54
+ "name": "OrAssetViewerComputeGridEvent",
55
+ "members": [
56
+ {
57
+ "kind": "field",
58
+ "name": "NAME",
59
+ "type": {
60
+ "text": "string"
61
+ },
62
+ "privacy": "public",
63
+ "static": true,
64
+ "readonly": true,
65
+ "default": "\"or-asset-viewer-compute-grid-event\""
66
+ }
67
+ ],
68
+ "superclass": {
69
+ "name": "CustomEvent",
70
+ "module": "src/index.ts"
71
+ }
72
+ },
73
+ {
74
+ "kind": "class",
75
+ "description": "",
76
+ "name": "OrAssetViewerRequestSaveEvent",
77
+ "members": [
78
+ {
79
+ "kind": "field",
80
+ "name": "NAME",
81
+ "type": {
82
+ "text": "string"
83
+ },
84
+ "privacy": "public",
85
+ "static": true,
86
+ "readonly": true,
87
+ "default": "\"or-asset-viewer-request-save\""
88
+ }
89
+ ],
90
+ "superclass": {
91
+ "name": "CustomEvent",
92
+ "module": "src/index.ts"
93
+ }
94
+ },
95
+ {
96
+ "kind": "class",
97
+ "description": "",
98
+ "name": "OrAssetViewerSaveEvent",
99
+ "members": [
100
+ {
101
+ "kind": "field",
102
+ "name": "NAME",
103
+ "type": {
104
+ "text": "string"
105
+ },
106
+ "privacy": "public",
107
+ "static": true,
108
+ "readonly": true,
109
+ "default": "\"or-asset-viewer-save\""
110
+ }
111
+ ],
112
+ "superclass": {
113
+ "name": "CustomEvent",
114
+ "module": "src/index.ts"
115
+ }
116
+ },
117
+ {
118
+ "kind": "class",
119
+ "description": "",
120
+ "name": "OrAssetViewerRequestEditToggleEvent",
121
+ "members": [
122
+ {
123
+ "kind": "field",
124
+ "name": "NAME",
125
+ "type": {
126
+ "text": "string"
127
+ },
128
+ "privacy": "public",
129
+ "static": true,
130
+ "readonly": true,
131
+ "default": "\"or-asset-viewer-request-edit-toggle\""
132
+ }
133
+ ],
134
+ "superclass": {
135
+ "name": "CustomEvent",
136
+ "module": "src/index.ts"
137
+ }
138
+ },
139
+ {
140
+ "kind": "class",
141
+ "description": "",
142
+ "name": "OrAssetViewerEditToggleEvent",
143
+ "members": [
144
+ {
145
+ "kind": "field",
146
+ "name": "NAME",
147
+ "type": {
148
+ "text": "string"
149
+ },
150
+ "privacy": "public",
151
+ "static": true,
152
+ "readonly": true,
153
+ "default": "\"or-asset-viewer-edit-toggle\""
154
+ }
155
+ ],
156
+ "superclass": {
157
+ "name": "CustomEvent",
158
+ "module": "src/index.ts"
159
+ }
160
+ },
161
+ {
162
+ "kind": "class",
163
+ "description": "",
164
+ "name": "OrAssetViewerLoadUserEvent",
165
+ "members": [
166
+ {
167
+ "kind": "field",
168
+ "name": "NAME",
169
+ "type": {
170
+ "text": "string"
171
+ },
172
+ "privacy": "public",
173
+ "static": true,
174
+ "readonly": true,
175
+ "default": "\"or-asset-viewer-load-user-event\""
176
+ }
177
+ ],
178
+ "superclass": {
179
+ "name": "CustomEvent",
180
+ "module": "src/index.ts"
181
+ }
182
+ },
183
+ {
184
+ "kind": "class",
185
+ "description": "",
186
+ "name": "OrAssetViewerLoadAlarmEvent",
187
+ "members": [
188
+ {
189
+ "kind": "field",
190
+ "name": "NAME",
191
+ "type": {
192
+ "text": "string"
193
+ },
194
+ "privacy": "public",
195
+ "static": true,
196
+ "readonly": true,
197
+ "default": "\"or-asset-viewer-load-alarm-event\""
198
+ }
199
+ ],
200
+ "superclass": {
201
+ "name": "CustomEvent",
202
+ "module": "src/index.ts"
203
+ }
204
+ },
205
+ {
206
+ "kind": "function",
207
+ "name": "getPanel",
208
+ "parameters": [
209
+ {
210
+ "name": "id",
211
+ "type": {
212
+ "text": "string"
213
+ }
214
+ },
215
+ {
216
+ "name": "panelConfig",
217
+ "type": {
218
+ "text": "PanelConfig"
219
+ }
220
+ },
221
+ {
222
+ "name": "content",
223
+ "type": {
224
+ "text": "TemplateResult | undefined"
225
+ }
226
+ }
227
+ ]
228
+ },
229
+ {
230
+ "kind": "function",
231
+ "name": "getAttributeTemplate",
232
+ "return": {
233
+ "type": {
234
+ "text": "TemplateResult"
235
+ }
236
+ },
237
+ "parameters": [
238
+ {
239
+ "name": "asset",
240
+ "type": {
241
+ "text": "Asset"
242
+ }
243
+ },
244
+ {
245
+ "name": "attribute",
246
+ "type": {
247
+ "text": "Attribute<any>"
248
+ }
249
+ },
250
+ {
251
+ "name": "hostElement",
252
+ "type": {
253
+ "text": "LitElement"
254
+ }
255
+ },
256
+ {
257
+ "name": "viewerConfig",
258
+ "type": {
259
+ "text": "AssetViewerConfig"
260
+ }
261
+ },
262
+ {
263
+ "name": "panelConfig",
264
+ "type": {
265
+ "text": "PanelConfig"
266
+ }
267
+ },
268
+ {
269
+ "name": "itemConfig",
270
+ "type": {
271
+ "text": "InfoPanelItemConfig"
272
+ }
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "kind": "function",
278
+ "name": "getPropertyTemplate",
279
+ "parameters": [
280
+ {
281
+ "name": "asset",
282
+ "type": {
283
+ "text": "Asset"
284
+ }
285
+ },
286
+ {
287
+ "name": "property",
288
+ "type": {
289
+ "text": "string"
290
+ }
291
+ },
292
+ {
293
+ "name": "hostElement",
294
+ "type": {
295
+ "text": "LitElement"
296
+ }
297
+ },
298
+ {
299
+ "name": "viewerConfig",
300
+ "type": {
301
+ "text": "AssetViewerConfig | undefined"
302
+ }
303
+ },
304
+ {
305
+ "name": "panelConfig",
306
+ "type": {
307
+ "text": "PanelConfig | undefined"
308
+ }
309
+ },
310
+ {
311
+ "name": "itemConfig",
312
+ "type": {
313
+ "text": "InfoPanelItemConfig"
314
+ }
315
+ }
316
+ ]
317
+ },
318
+ {
319
+ "kind": "function",
320
+ "name": "getField",
321
+ "return": {
322
+ "type": {
323
+ "text": "TemplateResult"
324
+ }
325
+ },
326
+ "parameters": [
327
+ {
328
+ "name": "name",
329
+ "type": {
330
+ "text": "string"
331
+ }
332
+ },
333
+ {
334
+ "name": "itemConfig",
335
+ "optional": true,
336
+ "type": {
337
+ "text": "InfoPanelItemConfig"
338
+ }
339
+ },
340
+ {
341
+ "name": "content",
342
+ "optional": true,
343
+ "type": {
344
+ "text": "TemplateResult"
345
+ }
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ "kind": "function",
351
+ "name": "saveAsset",
352
+ "return": {
353
+ "type": {
354
+ "text": "Promise<SaveResult>"
355
+ }
356
+ },
357
+ "parameters": [
358
+ {
359
+ "name": "asset",
360
+ "type": {
361
+ "text": "Asset"
362
+ }
363
+ }
364
+ ]
365
+ },
366
+ {
367
+ "kind": "variable",
368
+ "name": "DEFAULT_ASSET_PROPERTIES",
369
+ "type": {
370
+ "text": "array"
371
+ },
372
+ "default": "[ \"name\", \"createdOn\", \"type\", \"parentId\", \"accessPublicRead\" ]"
373
+ },
374
+ {
375
+ "kind": "variable",
376
+ "name": "DEFAULT_VIEWER_CONFIG",
377
+ "type": {
378
+ "text": "AssetViewerConfig"
379
+ },
380
+ "default": "{ viewerStyles: {}, panels: [ { type: \"group\", title: \"underlyingAssets\" }, { type: \"info\", hideOnMobile: true, properties: { include:[] }, attributes: { include: [\"notes\", \"manufacturer\", \"model\"] } }, { title: \"attributes\", type: \"info\", properties: { include:[] }, attributes: { exclude: [\"location\", \"notes\", \"manufacturer\", \"model\"] } }, { type: \"setup\", hideOnMobile: false }, { title: \"location\", type: \"info\", column: 1, properties: { include:[] }, attributes: { include: [\"location\"], itemConfig: { location: { label: \"\", readonly: true } } } }, { type: \"history\", column: 1 }, { type: \"linkedUsers\", column: 1 }, { type: \"alarm.linkedAlarms\", column: 1, hideOnMobile: true } ] }"
381
+ },
382
+ {
383
+ "kind": "class",
384
+ "description": "",
385
+ "name": "OrAssetViewer",
386
+ "members": [
387
+ {
388
+ "kind": "field",
389
+ "name": "styles",
390
+ "static": true,
391
+ "readonly": true
392
+ },
393
+ {
394
+ "kind": "field",
395
+ "name": "asset",
396
+ "type": {
397
+ "text": "Asset | undefined"
398
+ },
399
+ "privacy": "public"
400
+ },
401
+ {
402
+ "kind": "field",
403
+ "name": "assetId",
404
+ "type": {
405
+ "text": "string | undefined"
406
+ },
407
+ "privacy": "public"
408
+ },
409
+ {
410
+ "kind": "field",
411
+ "name": "config",
412
+ "type": {
413
+ "text": "ViewerConfig | undefined"
414
+ },
415
+ "privacy": "public"
416
+ },
417
+ {
418
+ "kind": "field",
419
+ "name": "editMode",
420
+ "type": {
421
+ "text": "boolean | undefined"
422
+ },
423
+ "privacy": "public"
424
+ },
425
+ {
426
+ "kind": "field",
427
+ "name": "readonly",
428
+ "type": {
429
+ "text": "boolean | undefined"
430
+ },
431
+ "privacy": "public"
432
+ },
433
+ {
434
+ "kind": "field",
435
+ "name": "_assetInfo",
436
+ "type": {
437
+ "text": "AssetInfo | undefined"
438
+ },
439
+ "privacy": "protected"
440
+ },
441
+ {
442
+ "kind": "field",
443
+ "name": "_validationResults",
444
+ "type": {
445
+ "text": "ValidatorResult[]"
446
+ },
447
+ "privacy": "protected",
448
+ "default": "[]"
449
+ },
450
+ {
451
+ "kind": "field",
452
+ "name": "wrapperElem",
453
+ "type": {
454
+ "text": "HTMLDivElement"
455
+ },
456
+ "privacy": "protected"
457
+ },
458
+ {
459
+ "kind": "field",
460
+ "name": "saveBtnElem",
461
+ "type": {
462
+ "text": "OrMwcInput"
463
+ },
464
+ "privacy": "protected"
465
+ },
466
+ {
467
+ "kind": "field",
468
+ "name": "editBtnElem",
469
+ "type": {
470
+ "text": "OrMwcInput"
471
+ },
472
+ "privacy": "protected"
473
+ },
474
+ {
475
+ "kind": "field",
476
+ "name": "editor",
477
+ "type": {
478
+ "text": "OrEditAssetPanel"
479
+ },
480
+ "privacy": "protected"
481
+ },
482
+ {
483
+ "kind": "field",
484
+ "name": "headerElem",
485
+ "type": {
486
+ "text": "HTMLDivElement"
487
+ },
488
+ "privacy": "protected"
489
+ },
490
+ {
491
+ "kind": "field",
492
+ "name": "containerElem",
493
+ "type": {
494
+ "text": "HTMLDivElement"
495
+ },
496
+ "privacy": "protected"
497
+ },
498
+ {
499
+ "kind": "field",
500
+ "name": "_saveInProgress",
501
+ "type": {
502
+ "text": "boolean"
503
+ },
504
+ "privacy": "protected",
505
+ "default": "false"
506
+ },
507
+ {
508
+ "kind": "method",
509
+ "name": "isModified",
510
+ "privacy": "public"
511
+ },
512
+ {
513
+ "kind": "field",
514
+ "name": "langChangedCallback",
515
+ "description": "When language is changed, we clear the cached templates,\nso can be rendered differently according to the selected language."
516
+ },
517
+ {
518
+ "kind": "method",
519
+ "name": "shouldUpdate",
520
+ "return": {
521
+ "type": {
522
+ "text": "boolean"
523
+ }
524
+ },
525
+ "parameters": [
526
+ {
527
+ "name": "changedProperties",
528
+ "type": {
529
+ "text": "PropertyValues"
530
+ }
531
+ }
532
+ ]
533
+ },
534
+ {
535
+ "kind": "method",
536
+ "name": "updated",
537
+ "parameters": [
538
+ {
539
+ "name": "_changedProperties",
540
+ "type": {
541
+ "text": "PropertyValues"
542
+ }
543
+ }
544
+ ]
545
+ },
546
+ {
547
+ "kind": "method",
548
+ "name": "loadAssetInfo",
549
+ "return": {
550
+ "type": {
551
+ "text": "Promise<AssetInfo>"
552
+ }
553
+ },
554
+ "parameters": [
555
+ {
556
+ "name": "asset",
557
+ "type": {
558
+ "text": "Asset"
559
+ }
560
+ }
561
+ ]
562
+ },
563
+ {
564
+ "kind": "method",
565
+ "name": "_doValidation",
566
+ "privacy": "protected"
567
+ },
568
+ {
569
+ "kind": "method",
570
+ "name": "render",
571
+ "privacy": "protected",
572
+ "return": {
573
+ "type": {
574
+ "text": "TemplateResult | void"
575
+ }
576
+ }
577
+ },
578
+ {
579
+ "kind": "method",
580
+ "name": "_toggleHeaderShadow",
581
+ "privacy": "protected"
582
+ },
583
+ {
584
+ "kind": "method",
585
+ "name": "_isReadonly",
586
+ "privacy": "protected"
587
+ },
588
+ {
589
+ "kind": "method",
590
+ "name": "_onEditToggleClicked",
591
+ "privacy": "protected",
592
+ "parameters": [
593
+ {
594
+ "name": "edit",
595
+ "type": {
596
+ "text": "boolean"
597
+ }
598
+ }
599
+ ]
600
+ },
601
+ {
602
+ "kind": "method",
603
+ "name": "_doEditToggle",
604
+ "privacy": "protected",
605
+ "parameters": [
606
+ {
607
+ "name": "edit",
608
+ "type": {
609
+ "text": "boolean"
610
+ }
611
+ }
612
+ ]
613
+ },
614
+ {
615
+ "kind": "method",
616
+ "name": "_onSaveClicked",
617
+ "privacy": "protected"
618
+ },
619
+ {
620
+ "kind": "method",
621
+ "name": "save"
622
+ },
623
+ {
624
+ "kind": "method",
625
+ "name": "_onAssetModified",
626
+ "privacy": "protected",
627
+ "parameters": [
628
+ {
629
+ "name": "validationResults",
630
+ "type": {
631
+ "text": "ValidatorResult[]"
632
+ }
633
+ }
634
+ ]
635
+ },
636
+ {
637
+ "kind": "method",
638
+ "name": "_onEvent",
639
+ "parameters": [
640
+ {
641
+ "name": "event",
642
+ "type": {
643
+ "text": "SharedEvent"
644
+ }
645
+ }
646
+ ]
647
+ },
648
+ {
649
+ "kind": "method",
650
+ "name": "_getPanelConfig",
651
+ "privacy": "protected",
652
+ "return": {
653
+ "type": {
654
+ "text": "AssetViewerConfig"
655
+ }
656
+ },
657
+ "parameters": [
658
+ {
659
+ "name": "asset",
660
+ "type": {
661
+ "text": "Asset"
662
+ }
663
+ }
664
+ ]
665
+ }
666
+ ],
667
+ "events": [
668
+ {
669
+ "name": "edit",
670
+ "type": {
671
+ "text": "OrAssetViewerEditToggleEvent"
672
+ }
673
+ },
674
+ {
675
+ "name": "saveResult",
676
+ "type": {
677
+ "text": "OrAssetViewerSaveEvent"
678
+ }
679
+ }
680
+ ],
681
+ "mixins": [
682
+ {
683
+ "name": "subscribe(manager)",
684
+ "module": "src/index.ts"
685
+ },
686
+ {
687
+ "name": "translate(i18next)",
688
+ "module": "src/index.ts"
689
+ }
690
+ ],
691
+ "superclass": {
692
+ "name": "LitElement",
693
+ "package": "lit"
694
+ },
695
+ "customElement": true
696
+ }
697
+ ],
698
+ "exports": [
699
+ {
700
+ "kind": "js",
701
+ "name": "getIncludedProperties",
702
+ "declaration": {
703
+ "name": "getIncludedProperties",
704
+ "module": "src/index.ts"
705
+ }
706
+ },
707
+ {
708
+ "kind": "js",
709
+ "name": "getIncludedAttributes",
710
+ "declaration": {
711
+ "name": "getIncludedAttributes",
712
+ "module": "src/index.ts"
713
+ }
714
+ },
715
+ {
716
+ "kind": "js",
717
+ "name": "OrAssetViewerComputeGridEvent",
718
+ "declaration": {
719
+ "name": "OrAssetViewerComputeGridEvent",
720
+ "module": "src/index.ts"
721
+ }
722
+ },
723
+ {
724
+ "kind": "js",
725
+ "name": "OrAssetViewerRequestSaveEvent",
726
+ "declaration": {
727
+ "name": "OrAssetViewerRequestSaveEvent",
728
+ "module": "src/index.ts"
729
+ }
730
+ },
731
+ {
732
+ "kind": "js",
733
+ "name": "OrAssetViewerSaveEvent",
734
+ "declaration": {
735
+ "name": "OrAssetViewerSaveEvent",
736
+ "module": "src/index.ts"
737
+ }
738
+ },
739
+ {
740
+ "kind": "js",
741
+ "name": "OrAssetViewerRequestEditToggleEvent",
742
+ "declaration": {
743
+ "name": "OrAssetViewerRequestEditToggleEvent",
744
+ "module": "src/index.ts"
745
+ }
746
+ },
747
+ {
748
+ "kind": "js",
749
+ "name": "OrAssetViewerEditToggleEvent",
750
+ "declaration": {
751
+ "name": "OrAssetViewerEditToggleEvent",
752
+ "module": "src/index.ts"
753
+ }
754
+ },
755
+ {
756
+ "kind": "js",
757
+ "name": "OrAssetViewerLoadUserEvent",
758
+ "declaration": {
759
+ "name": "OrAssetViewerLoadUserEvent",
760
+ "module": "src/index.ts"
761
+ }
762
+ },
763
+ {
764
+ "kind": "js",
765
+ "name": "OrAssetViewerLoadAlarmEvent",
766
+ "declaration": {
767
+ "name": "OrAssetViewerLoadAlarmEvent",
768
+ "module": "src/index.ts"
769
+ }
770
+ },
771
+ {
772
+ "kind": "js",
773
+ "name": "getPanel",
774
+ "declaration": {
775
+ "name": "getPanel",
776
+ "module": "src/index.ts"
777
+ }
778
+ },
779
+ {
780
+ "kind": "js",
781
+ "name": "getAttributeTemplate",
782
+ "declaration": {
783
+ "name": "getAttributeTemplate",
784
+ "module": "src/index.ts"
785
+ }
786
+ },
787
+ {
788
+ "kind": "js",
789
+ "name": "getPropertyTemplate",
790
+ "declaration": {
791
+ "name": "getPropertyTemplate",
792
+ "module": "src/index.ts"
793
+ }
794
+ },
795
+ {
796
+ "kind": "js",
797
+ "name": "getField",
798
+ "declaration": {
799
+ "name": "getField",
800
+ "module": "src/index.ts"
801
+ }
802
+ },
803
+ {
804
+ "kind": "js",
805
+ "name": "saveAsset",
806
+ "declaration": {
807
+ "name": "saveAsset",
808
+ "module": "src/index.ts"
809
+ }
810
+ },
811
+ {
812
+ "kind": "js",
813
+ "name": "DEFAULT_ASSET_PROPERTIES",
814
+ "declaration": {
815
+ "name": "DEFAULT_ASSET_PROPERTIES",
816
+ "module": "src/index.ts"
817
+ }
818
+ },
819
+ {
820
+ "kind": "js",
821
+ "name": "DEFAULT_VIEWER_CONFIG",
822
+ "declaration": {
823
+ "name": "DEFAULT_VIEWER_CONFIG",
824
+ "module": "src/index.ts"
825
+ }
826
+ },
827
+ {
828
+ "kind": "js",
829
+ "name": "OrAssetViewer",
830
+ "declaration": {
831
+ "name": "OrAssetViewer",
832
+ "module": "src/index.ts"
833
+ }
834
+ }
835
+ ]
836
+ },
837
+ {
838
+ "kind": "javascript-module",
839
+ "path": "src/or-add-attribute-panel.ts",
840
+ "declarations": [
841
+ {
842
+ "kind": "class",
843
+ "description": "",
844
+ "name": "OrAddAttributePanelAttributeChangedEvent",
845
+ "members": [
846
+ {
847
+ "kind": "field",
848
+ "name": "NAME",
849
+ "type": {
850
+ "text": "string"
851
+ },
852
+ "privacy": "public",
853
+ "static": true,
854
+ "readonly": true,
855
+ "default": "\"or-add-attribute-panel-attribute-changed\""
856
+ }
857
+ ],
858
+ "superclass": {
859
+ "name": "CustomEvent",
860
+ "module": "src/or-add-attribute-panel.ts"
861
+ }
862
+ },
863
+ {
864
+ "kind": "class",
865
+ "description": "",
866
+ "name": "OrAddAttributePanel",
867
+ "members": [
868
+ {
869
+ "kind": "field",
870
+ "name": "asset",
871
+ "type": {
872
+ "text": "Asset"
873
+ },
874
+ "privacy": "protected"
875
+ },
876
+ {
877
+ "kind": "field",
878
+ "name": "attribute",
879
+ "type": {
880
+ "text": "Attribute<any>"
881
+ },
882
+ "privacy": "protected",
883
+ "default": "{}"
884
+ },
885
+ {
886
+ "kind": "field",
887
+ "name": "isCustom",
888
+ "type": {
889
+ "text": "boolean"
890
+ },
891
+ "privacy": "protected",
892
+ "default": "false"
893
+ },
894
+ {
895
+ "kind": "field",
896
+ "name": "isArray",
897
+ "type": {
898
+ "text": "boolean"
899
+ },
900
+ "privacy": "public",
901
+ "default": "false"
902
+ },
903
+ {
904
+ "kind": "field",
905
+ "name": "arrayDimensions",
906
+ "type": {
907
+ "text": "number"
908
+ },
909
+ "privacy": "public",
910
+ "default": "1"
911
+ },
912
+ {
913
+ "kind": "field",
914
+ "name": "arrayInput",
915
+ "type": {
916
+ "text": "OrMwcInput"
917
+ },
918
+ "privacy": "protected"
919
+ },
920
+ {
921
+ "kind": "field",
922
+ "name": "customAttribute",
923
+ "type": {
924
+ "text": "boolean"
925
+ },
926
+ "privacy": "protected",
927
+ "default": "true"
928
+ },
929
+ {
930
+ "kind": "field",
931
+ "name": "attributeTypes",
932
+ "type": {
933
+ "text": "[string, string][] | undefined"
934
+ },
935
+ "privacy": "protected"
936
+ },
937
+ {
938
+ "kind": "field",
939
+ "name": "attributeValueTypes",
940
+ "type": {
941
+ "text": "[string, string][] | undefined"
942
+ },
943
+ "privacy": "protected"
944
+ },
945
+ {
946
+ "kind": "field",
947
+ "name": "arrayRegex",
948
+ "type": {
949
+ "text": "RegExp"
950
+ },
951
+ "privacy": "protected",
952
+ "default": "/\\[\\]/g"
953
+ },
954
+ {
955
+ "kind": "field",
956
+ "name": "styles",
957
+ "privacy": "public",
958
+ "static": true,
959
+ "readonly": true
960
+ },
961
+ {
962
+ "kind": "method",
963
+ "name": "shouldUpdate",
964
+ "privacy": "protected",
965
+ "parameters": [
966
+ {
967
+ "name": "_changedProperties",
968
+ "type": {
969
+ "text": "PropertyValues"
970
+ }
971
+ }
972
+ ]
973
+ },
974
+ {
975
+ "kind": "method",
976
+ "name": "render",
977
+ "privacy": "protected"
978
+ },
979
+ {
980
+ "kind": "method",
981
+ "name": "onTypeChanged",
982
+ "privacy": "protected",
983
+ "parameters": [
984
+ {
985
+ "name": "name",
986
+ "type": {
987
+ "text": "string"
988
+ }
989
+ }
990
+ ]
991
+ },
992
+ {
993
+ "kind": "method",
994
+ "name": "onNameChanged",
995
+ "privacy": "protected",
996
+ "parameters": [
997
+ {
998
+ "name": "name",
999
+ "type": {
1000
+ "text": "string"
1001
+ }
1002
+ }
1003
+ ]
1004
+ },
1005
+ {
1006
+ "kind": "method",
1007
+ "name": "onValueTypeChanged",
1008
+ "privacy": "protected",
1009
+ "parameters": [
1010
+ {
1011
+ "name": "valueType",
1012
+ "type": {
1013
+ "text": "string"
1014
+ }
1015
+ }
1016
+ ]
1017
+ },
1018
+ {
1019
+ "kind": "method",
1020
+ "name": "onArrayChanged",
1021
+ "privacy": "protected",
1022
+ "parameters": [
1023
+ {
1024
+ "name": "array",
1025
+ "type": {
1026
+ "text": "boolean"
1027
+ }
1028
+ },
1029
+ {
1030
+ "name": "dimensions",
1031
+ "type": {
1032
+ "text": "number"
1033
+ }
1034
+ }
1035
+ ]
1036
+ },
1037
+ {
1038
+ "kind": "method",
1039
+ "name": "updateAttributeType",
1040
+ "privacy": "protected"
1041
+ }
1042
+ ],
1043
+ "events": [
1044
+ {
1045
+ "type": {
1046
+ "text": "OrAddAttributePanelAttributeChangedEvent"
1047
+ }
1048
+ }
1049
+ ],
1050
+ "superclass": {
1051
+ "name": "LitElement",
1052
+ "package": "lit"
1053
+ },
1054
+ "customElement": true
1055
+ }
1056
+ ],
1057
+ "exports": [
1058
+ {
1059
+ "kind": "js",
1060
+ "name": "OrAddAttributePanelAttributeChangedEvent",
1061
+ "declaration": {
1062
+ "name": "OrAddAttributePanelAttributeChangedEvent",
1063
+ "module": "src/or-add-attribute-panel.ts"
1064
+ }
1065
+ },
1066
+ {
1067
+ "kind": "js",
1068
+ "name": "OrAddAttributePanel",
1069
+ "declaration": {
1070
+ "name": "OrAddAttributePanel",
1071
+ "module": "src/or-add-attribute-panel.ts"
1072
+ }
1073
+ }
1074
+ ]
1075
+ },
1076
+ {
1077
+ "kind": "javascript-module",
1078
+ "path": "src/or-edit-asset-panel.ts",
1079
+ "declarations": [
1080
+ {
1081
+ "kind": "class",
1082
+ "description": "",
1083
+ "name": "OrEditAssetModifiedEvent",
1084
+ "members": [
1085
+ {
1086
+ "kind": "field",
1087
+ "name": "NAME",
1088
+ "type": {
1089
+ "text": "string"
1090
+ },
1091
+ "privacy": "public",
1092
+ "static": true,
1093
+ "readonly": true,
1094
+ "default": "\"or-edit-asset-modified\""
1095
+ }
1096
+ ],
1097
+ "superclass": {
1098
+ "name": "CustomEvent",
1099
+ "module": "src/or-edit-asset-panel.ts"
1100
+ }
1101
+ },
1102
+ {
1103
+ "kind": "class",
1104
+ "description": "",
1105
+ "name": "OrEditAssetPanel",
1106
+ "members": [
1107
+ {
1108
+ "kind": "field",
1109
+ "name": "asset",
1110
+ "type": {
1111
+ "text": "Asset"
1112
+ },
1113
+ "privacy": "protected"
1114
+ },
1115
+ {
1116
+ "kind": "field",
1117
+ "name": "attributeTemplatesAndValidators",
1118
+ "type": {
1119
+ "text": "TemplateAndValidator[]"
1120
+ },
1121
+ "privacy": "protected",
1122
+ "default": "[]"
1123
+ },
1124
+ {
1125
+ "kind": "field",
1126
+ "name": "changedAttributes",
1127
+ "type": {
1128
+ "text": "string[]"
1129
+ },
1130
+ "privacy": "protected",
1131
+ "default": "[]"
1132
+ },
1133
+ {
1134
+ "kind": "field",
1135
+ "name": "expandedAll",
1136
+ "type": {
1137
+ "text": "boolean"
1138
+ },
1139
+ "privacy": "protected",
1140
+ "default": "false"
1141
+ },
1142
+ {
1143
+ "kind": "field",
1144
+ "name": "styles",
1145
+ "privacy": "public",
1146
+ "static": true,
1147
+ "readonly": true
1148
+ },
1149
+ {
1150
+ "kind": "method",
1151
+ "name": "attributeUpdated",
1152
+ "privacy": "public",
1153
+ "parameters": [
1154
+ {
1155
+ "name": "attributeName",
1156
+ "type": {
1157
+ "text": "string"
1158
+ }
1159
+ }
1160
+ ]
1161
+ },
1162
+ {
1163
+ "kind": "method",
1164
+ "name": "shouldUpdate",
1165
+ "return": {
1166
+ "type": {
1167
+ "text": "boolean"
1168
+ }
1169
+ },
1170
+ "parameters": [
1171
+ {
1172
+ "name": "changedProperties",
1173
+ "type": {
1174
+ "text": "PropertyValues"
1175
+ }
1176
+ }
1177
+ ]
1178
+ },
1179
+ {
1180
+ "kind": "method",
1181
+ "name": "render",
1182
+ "privacy": "protected"
1183
+ },
1184
+ {
1185
+ "kind": "method",
1186
+ "name": "_getAttributeTemplate",
1187
+ "privacy": "protected",
1188
+ "return": {
1189
+ "type": {
1190
+ "text": "TemplateAndValidator"
1191
+ }
1192
+ },
1193
+ "parameters": [
1194
+ {
1195
+ "name": "assetType",
1196
+ "type": {
1197
+ "text": "string"
1198
+ }
1199
+ },
1200
+ {
1201
+ "name": "attribute",
1202
+ "type": {
1203
+ "text": "Attribute<any>"
1204
+ }
1205
+ }
1206
+ ]
1207
+ },
1208
+ {
1209
+ "kind": "method",
1210
+ "name": "_onModified",
1211
+ "privacy": "protected"
1212
+ },
1213
+ {
1214
+ "kind": "method",
1215
+ "name": "validate",
1216
+ "privacy": "public",
1217
+ "return": {
1218
+ "type": {
1219
+ "text": "ValidatorResult[]"
1220
+ }
1221
+ }
1222
+ },
1223
+ {
1224
+ "kind": "method",
1225
+ "name": "_onAttributeModified",
1226
+ "privacy": "protected",
1227
+ "parameters": [
1228
+ {
1229
+ "name": "attribute",
1230
+ "type": {
1231
+ "text": "Attribute<any>"
1232
+ }
1233
+ },
1234
+ {
1235
+ "name": "newValue",
1236
+ "type": {
1237
+ "text": "any"
1238
+ }
1239
+ }
1240
+ ]
1241
+ },
1242
+ {
1243
+ "kind": "method",
1244
+ "name": "_onMetaItemModified",
1245
+ "privacy": "protected",
1246
+ "parameters": [
1247
+ {
1248
+ "name": "attribute",
1249
+ "type": {
1250
+ "text": "Attribute<any>"
1251
+ }
1252
+ },
1253
+ {
1254
+ "name": "metaItem",
1255
+ "type": {
1256
+ "text": "NameValueHolder<any>"
1257
+ }
1258
+ },
1259
+ {
1260
+ "name": "detail",
1261
+ "type": {
1262
+ "text": "OrInputChangedEventDetail | undefined"
1263
+ }
1264
+ }
1265
+ ]
1266
+ },
1267
+ {
1268
+ "kind": "method",
1269
+ "name": "_getMetaItemTemplate",
1270
+ "privacy": "protected",
1271
+ "return": {
1272
+ "type": {
1273
+ "text": "TemplateAndValidator"
1274
+ }
1275
+ },
1276
+ "parameters": [
1277
+ {
1278
+ "name": "attribute",
1279
+ "type": {
1280
+ "text": "Attribute<any>"
1281
+ }
1282
+ },
1283
+ {
1284
+ "name": "metaItem",
1285
+ "type": {
1286
+ "text": "NameValueHolder<any>"
1287
+ }
1288
+ }
1289
+ ]
1290
+ },
1291
+ {
1292
+ "kind": "method",
1293
+ "name": "_addAttribute",
1294
+ "privacy": "protected"
1295
+ },
1296
+ {
1297
+ "kind": "method",
1298
+ "name": "_addMetaItems",
1299
+ "privacy": "protected",
1300
+ "parameters": [
1301
+ {
1302
+ "name": "attribute",
1303
+ "type": {
1304
+ "text": "Attribute<any>"
1305
+ }
1306
+ }
1307
+ ]
1308
+ },
1309
+ {
1310
+ "kind": "method",
1311
+ "name": "_getParentTemplate",
1312
+ "privacy": "protected"
1313
+ }
1314
+ ],
1315
+ "events": [
1316
+ {
1317
+ "type": {
1318
+ "text": "OrEditAssetModifiedEvent"
1319
+ }
1320
+ }
1321
+ ],
1322
+ "superclass": {
1323
+ "name": "LitElement",
1324
+ "package": "lit"
1325
+ },
1326
+ "customElement": true
1327
+ }
1328
+ ],
1329
+ "exports": [
1330
+ {
1331
+ "kind": "js",
1332
+ "name": "OrEditAssetModifiedEvent",
1333
+ "declaration": {
1334
+ "name": "OrEditAssetModifiedEvent",
1335
+ "module": "src/or-edit-asset-panel.ts"
1336
+ }
1337
+ },
1338
+ {
1339
+ "kind": "js",
1340
+ "name": "OrEditAssetPanel",
1341
+ "declaration": {
1342
+ "name": "OrEditAssetPanel",
1343
+ "module": "src/or-edit-asset-panel.ts"
1344
+ }
1345
+ }
1346
+ ]
1347
+ },
1348
+ {
1349
+ "kind": "javascript-module",
1350
+ "path": "src/style.ts",
1351
+ "declarations": [
1352
+ {
1353
+ "kind": "variable",
1354
+ "name": "panelStyles",
1355
+ "default": "css` .panelContainer { flex: 1 1 50%; box-sizing: border-box; min-width: 400px; padding: 0 5px; } .panel { background-color: var(--internal-or-asset-viewer-panel-color); border: 1px solid #e5e5e5; border-radius: 5px; position: relative; margin: 0 0 10px 0; } .panel-content-wrapper { padding: var(--internal-or-asset-viewer-panel-padding); } .panel-content > :first-child { margin-top: 0; } .panel-content > :last-child { margin-bottom: 0; } .panel-content { display: flex; flex-wrap: wrap; } .panel-title { text-transform: uppercase; font-weight: bolder; line-height: 1em; color: var(--internal-or-asset-viewer-title-text-color); margin-bottom: 20px; flex: 0 0 auto; letter-spacing: 0.025em; } .field { margin: 10px 0; width: 100%; flex: 0 0 auto; } .field > * { width: 100%; box-sizing: border-box; } @media screen and (max-width: 767px) { .panel { border-radius: 0; border-right: none; border-left: none; flex-basis: 100%; min-width: 360px; } } #linkedUsers-panel { min-height: 200px; } `"
1356
+ },
1357
+ {
1358
+ "kind": "variable",
1359
+ "name": "style",
1360
+ "default": "css` :host { --internal-or-asset-viewer-background-color: var(--or-asset-viewer-background-color, var(--or-app-color2, ${unsafeCSS(DefaultColor2)})); --internal-or-asset-viewer-panel-margin: var(--or-asset-viewer-panel-margin, 20px); --internal-or-asset-viewer-panel-padding: var(--or-asset-viewer-panel-padding, 24px); --internal-or-asset-viewer-text-color: var(--or-asset-viewer-text-color, var(--or-app-color3, ${unsafeCSS(DefaultColor3)})); --internal-or-asset-viewer-title-text-color: var(--or-asset-viewer-title-text-color, var(--or-app-color3, ${unsafeCSS(DefaultColor3)})); --internal-or-asset-viewer-panel-color: var(--or-asset-viewer-panel-color, var(--or-app-color1, ${unsafeCSS(DefaultColor1)})); --internal-or-asset-viewer-line-color: var(--or-asset-viewer-line-color, var(--or-app-color5, ${unsafeCSS(DefaultColor5)})); --internal-or-asset-viewer-button-color: var(--or-asset-viewer-button-color, var(--or-app-color4, ${unsafeCSS(DefaultColor4)})); --internal-or-asset-viewer-error-color: var(--or-asset-viewer-error-color, var(--or-app-color6, ${unsafeCSS(DefaultColor6)})); --internal-or-header-height: var(--or-header-height, ${unsafeCSS(DefaultHeaderHeight)}); height: 100%; width: 100%; background-color: var(--internal-or-asset-viewer-background-color); } *[hidden] { display: none; } #wrapper { height: 100%; width: 100%; display: flex; flex-direction: column; } #wrapper.saving { opacity: 0.5; pointer-events: none; } #view-container, #edit-container { flex: 0 1 auto; overflow: auto; } #view-container { flex: 1; margin-top: 0; box-sizing: border-box; display: flex; flex-direction: row; flex-wrap: wrap; width: 100%; padding: 0 15px 15px; -webkit-animation: fadein 0.3s; /* Safari, Chrome and Opera > 12.1 */ -moz-animation: fadein 0.3s; /* Firefox < 16 */ -ms-animation: fadein 0.3s; /* Internet Explorer */ -o-animation: fadein 0.3s; /* Opera < 12.1 */ animation: fadein 0.3s; } #edit-container { padding: 10px 20px 0; } #name-input { width: 300px; } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Firefox < 16 */ @-moz-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Safari, Chrome and Opera > 12.1 */ @-webkit-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Internet Explorer */ @-ms-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Opera < 12.1 */ @-o-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } #asset-header { padding: 20px 30px 15px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; z-index: 1; transition: box-shadow 0.2s; box-shadow: none; } #asset-header.editmode { padding: 14px 30px; background-color: var(--internal-or-asset-viewer-panel-color); border-bottom: solid 1px #e5e5e5; } #asset-header.scrolled { box-shadow: rgb(0 0 0 / 15%) 0 0 5px 0; } #title { flex: 1 1 auto; font-size: 18px; font-weight: bold; display: flex; flex-direction: row; align-items: center; color: var(--internal-or-asset-viewer-title-text-color); } #title > or-icon { margin-right: 10px; } #error-wrapper { color: var(--internal-or-asset-viewer-error-color); } #error-wrapper > * { vertical-align: middle; } #error-wrapper or-translate { margin-left: 5px; } #created-time { font-size: 12px; } #right-wrapper { flex: 1 1 auto; text-align: right; } #edit-wrapper { flex: 0 0 auto; } #edit-wrapper > or-translate { margin-right: 10px; } #save-btn { margin-left: 20px; } #edit-btn { margin-left: 15px; } #location-panel .panel-content { height: 100%; } #history-panel .panel-content { position: relative; } .msg { display: flex; justify-content: center; align-items: center; text-align: center; height: 100%; } .back-navigation { display: none; cursor: pointer; } #fileupload { display: flex; align-items: center; width: 100%; } .hidden { display: none; } @media screen and (max-width: 767px) { #wrapper { position: absolute; left: 0; right: 0; } .back-navigation { display: block; } .mobileHidden { display: none; } #asset-header { padding: 15px 15px 15px; } #name-input { width: auto; } #view-container { padding: 0; } #edit-container { padding: 10px 0; } .panelContainer { min-width: 360px; padding: 0; } } @media screen and (max-width: 1130px) { #name-input { width: 150px; } .tabletHidden { display: none; } #view-container { flex-direction: column; flex-wrap: nowrap; } .panelContainer { flex: 0 1 auto; } } `"
1361
+ }
1362
+ ],
1363
+ "exports": [
1364
+ {
1365
+ "kind": "js",
1366
+ "name": "panelStyles",
1367
+ "declaration": {
1368
+ "name": "panelStyles",
1369
+ "module": "src/style.ts"
1370
+ }
1371
+ },
1372
+ {
1373
+ "kind": "js",
1374
+ "name": "style",
1375
+ "declaration": {
1376
+ "name": "style",
1377
+ "module": "src/style.ts"
1378
+ }
1379
+ }
1380
+ ]
1381
+ }
1382
+ ]
1383
+ }