@redvars/peacock 3.2.7 → 3.2.9
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.
- package/dist/PeacockComponent-CxJc63xj.js +73 -0
- package/dist/PeacockComponent-CxJc63xj.js.map +1 -0
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles.css.map +1 -1
- package/dist/button-2MeDq0Yy.js +898 -0
- package/dist/button-2MeDq0Yy.js.map +1 -0
- package/dist/button-group.js +7 -5
- package/dist/button-group.js.map +1 -1
- package/dist/button.js +7 -0
- package/dist/button.js.map +1 -0
- package/dist/{class-map-BmCohX9p.js → class-map-BvQRv7eW.js} +2 -2
- package/dist/{class-map-BmCohX9p.js.map → class-map-BvQRv7eW.js.map} +1 -1
- package/dist/clock.js +26 -24
- package/dist/clock.js.map +1 -1
- package/dist/code-editor.js +43877 -0
- package/dist/code-editor.js.map +1 -0
- package/dist/code-highlighter.js +9 -7
- package/dist/code-highlighter.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +561 -0
- package/dist/custom-elements.json +838 -227
- package/dist/{utils-DGMeCC48.js → dispatch-event-utils-vbdiOSeC.js} +19 -2
- package/dist/dispatch-event-utils-vbdiOSeC.js.map +1 -0
- package/dist/image-DK6VQW7N.js +7042 -0
- package/dist/image-DK6VQW7N.js.map +1 -0
- package/dist/index.js +10 -33
- package/dist/index.js.map +1 -1
- package/dist/number-counter.js +7 -5
- package/dist/number-counter.js.map +1 -1
- package/dist/observe-theme-change-NneLARW8.js +51 -0
- package/dist/observe-theme-change-NneLARW8.js.map +1 -0
- package/dist/peacock-loader.js +973 -37
- package/dist/peacock-loader.js.map +1 -1
- package/dist/src/PeacockComponent.d.ts +1 -0
- package/dist/src/code-editor/code-editor.d.ts +45 -0
- package/dist/src/code-editor/index.d.ts +2 -0
- package/dist/src/image/image.d.ts +45 -0
- package/dist/src/image/index.d.ts +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/utils/dispatch-event-utils.d.ts +72 -0
- package/dist/src/utils/observe-theme-change.d.ts +3 -0
- package/dist/src/utils.d.ts +1 -72
- package/dist/{state-CV1fRmOT.js → state-B09bP3XH.js} +2 -2
- package/dist/{state-CV1fRmOT.js.map → state-B09bP3XH.js.map} +1 -1
- package/dist/{style-map-CdmclYgz.js → style-map-B8xgVEc9.js} +2 -2
- package/dist/{style-map-CdmclYgz.js.map → style-map-B8xgVEc9.js.map} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{unsafe-html-BS8X6Gto.js → unsafe-html-B-dV3Jps.js} +2 -2
- package/dist/{unsafe-html-BS8X6Gto.js.map → unsafe-html-B-dV3Jps.js.map} +1 -1
- package/package.json +5 -3
- package/readme.md +2 -2
- package/scss/styles.scss +57 -1
- package/scss/tokens.css +1 -0
- package/src/PeacockComponent.ts +3 -0
- package/src/accordion/accordion-item/accordion-item.scss +1 -1
- package/src/button/BaseButton.ts +1 -1
- package/src/button/button/button.ts +3 -1
- package/src/button/button-group/button-group.ts +2 -0
- package/src/clock/clock.ts +4 -1
- package/src/code-editor/code-editor.scss +52 -0
- package/src/code-editor/code-editor.ts +215 -0
- package/src/code-editor/demo/index.html +37 -0
- package/src/code-editor/index.ts +3 -0
- package/src/code-highlighter/code-highlighter.ts +2 -0
- package/src/container/container.scss +1 -1
- package/src/date-picker/date-picker.ts +1 -1
- package/src/image/image.scss +49 -0
- package/src/image/image.ts +135 -0
- package/src/image/index.ts +1 -0
- package/src/index.ts +2 -0
- package/src/input/input.ts +1 -2
- package/src/menu/menu-item/menu-item.scss +5 -4
- package/src/menu/menu-list/menu-list.scss +1 -0
- package/src/number-counter/number-counter.ts +2 -0
- package/src/number-field/number-field.ts +1 -1
- package/src/peacock-loader.ts +7 -0
- package/src/textarea/textarea.ts +1 -1
- package/src/time-picker/time-picker.ts +1 -1
- package/src/utils/dispatch-event-utils.ts +131 -0
- package/src/utils/observe-theme-change.ts +30 -0
- package/src/utils.ts +5 -131
- package/dist/BaseButton.js +0 -209
- package/dist/BaseButton.js.map +0 -1
- package/dist/BaseInput.js +0 -27
- package/dist/BaseInput.js.map +0 -1
- package/dist/accordion-item.js +0 -191
- package/dist/accordion-item.js.map +0 -1
- package/dist/accordion.js +0 -142
- package/dist/accordion.js.map +0 -1
- package/dist/avatar.js +0 -106
- package/dist/avatar.js.map +0 -1
- package/dist/badge.js +0 -84
- package/dist/badge.js.map +0 -1
- package/dist/base-progress.js +0 -33
- package/dist/base-progress.js.map +0 -1
- package/dist/breadcrumb-item.js +0 -160
- package/dist/breadcrumb-item.js.map +0 -1
- package/dist/breadcrumb.js +0 -84
- package/dist/breadcrumb.js.map +0 -1
- package/dist/checkbox.js +0 -530
- package/dist/checkbox.js.map +0 -1
- package/dist/chip.js +0 -303
- package/dist/chip.js.map +0 -1
- package/dist/container.js +0 -135
- package/dist/container.js.map +0 -1
- package/dist/divider.js +0 -126
- package/dist/divider.js.map +0 -1
- package/dist/elevation.js +0 -79
- package/dist/elevation.js.map +0 -1
- package/dist/empty-state.js +0 -171
- package/dist/empty-state.js.map +0 -1
- package/dist/field.js +0 -416
- package/dist/field.js.map +0 -1
- package/dist/focus-ring.js +0 -107
- package/dist/focus-ring.js.map +0 -1
- package/dist/icon.js +0 -183
- package/dist/icon.js.map +0 -1
- package/dist/link.js +0 -91
- package/dist/link.js.map +0 -1
- package/dist/lit-element-CA46RFZ_.js +0 -28
- package/dist/lit-element-CA46RFZ_.js.map +0 -1
- package/dist/menu-item.js +0 -232
- package/dist/menu-item.js.map +0 -1
- package/dist/menu-list.js +0 -108
- package/dist/menu-list.js.map +0 -1
- package/dist/menu.js +0 -117
- package/dist/menu.js.map +0 -1
- package/dist/property-DNVWDdPC.js +0 -45
- package/dist/property-DNVWDdPC.js.map +0 -1
- package/dist/query-QBcUV-L_.js +0 -15
- package/dist/query-QBcUV-L_.js.map +0 -1
- package/dist/ripple.js +0 -128
- package/dist/ripple.js.map +0 -1
- package/dist/skeleton.js +0 -113
- package/dist/skeleton.js.map +0 -1
- package/dist/spinner.js +0 -93
- package/dist/spinner.js.map +0 -1
- package/dist/spread-axRTFMoH.js +0 -32
- package/dist/spread-axRTFMoH.js.map +0 -1
- package/dist/switch-DqxIiVsB.js +0 -2738
- package/dist/switch-DqxIiVsB.js.map +0 -1
- package/dist/tag.js +0 -323
- package/dist/tag.js.map +0 -1
- package/dist/tooltip.js +0 -1857
- package/dist/tooltip.js.map +0 -1
- package/dist/utils-DGMeCC48.js.map +0 -1
|
@@ -257,6 +257,34 @@
|
|
|
257
257
|
}
|
|
258
258
|
]
|
|
259
259
|
},
|
|
260
|
+
{
|
|
261
|
+
"kind": "javascript-module",
|
|
262
|
+
"path": "src/PeacockComponent.ts",
|
|
263
|
+
"declarations": [
|
|
264
|
+
{
|
|
265
|
+
"kind": "function",
|
|
266
|
+
"name": "PeacockComponent",
|
|
267
|
+
"parameters": [
|
|
268
|
+
{
|
|
269
|
+
"name": "constructor",
|
|
270
|
+
"type": {
|
|
271
|
+
"text": "Function"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"exports": [
|
|
278
|
+
{
|
|
279
|
+
"kind": "js",
|
|
280
|
+
"name": "default",
|
|
281
|
+
"declaration": {
|
|
282
|
+
"name": "PeacockComponent",
|
|
283
|
+
"module": "src/PeacockComponent.ts"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
},
|
|
260
288
|
{
|
|
261
289
|
"kind": "javascript-module",
|
|
262
290
|
"path": "src/constants.ts",
|
|
@@ -531,6 +559,22 @@
|
|
|
531
559
|
"name": "CodeHighlighter",
|
|
532
560
|
"module": "./code-highlighter/index.js"
|
|
533
561
|
}
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"kind": "js",
|
|
565
|
+
"name": "CodeEditor",
|
|
566
|
+
"declaration": {
|
|
567
|
+
"name": "CodeEditor",
|
|
568
|
+
"module": "./code-editor/index.js"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"kind": "js",
|
|
573
|
+
"name": "Image",
|
|
574
|
+
"declaration": {
|
|
575
|
+
"name": "Image",
|
|
576
|
+
"module": "./image/index.js"
|
|
577
|
+
}
|
|
534
578
|
}
|
|
535
579
|
]
|
|
536
580
|
},
|
|
@@ -836,7 +880,7 @@
|
|
|
836
880
|
},
|
|
837
881
|
{
|
|
838
882
|
"kind": "function",
|
|
839
|
-
"name": "
|
|
883
|
+
"name": "isInViewport",
|
|
840
884
|
"parameters": [
|
|
841
885
|
{
|
|
842
886
|
"name": "element",
|
|
@@ -844,59 +888,11 @@
|
|
|
844
888
|
"text": "HTMLElement"
|
|
845
889
|
}
|
|
846
890
|
}
|
|
847
|
-
]
|
|
848
|
-
"description": "Dispatches a click event to the given element that triggers a native action,\nbut is not composed and therefore is not seen outside the element.\n\nThis is useful for responding to an external click event on the host element\nthat should trigger an internal action like a button click.\n\nNote, a helper is provided because setting this up correctly is a bit tricky.\nIn particular, calling `click` on an element creates a composed event, which\nis not desirable, and a manually dispatched event must specifically be a\n`MouseEvent` to trigger a native action."
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
"kind": "function",
|
|
852
|
-
"name": "isActivationClick",
|
|
853
|
-
"parameters": [
|
|
854
|
-
{
|
|
855
|
-
"name": "event",
|
|
856
|
-
"type": {
|
|
857
|
-
"text": "Event"
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
],
|
|
861
|
-
"description": "Returns true if the click event should trigger an activation behavior. The\nbehavior is defined by the element and is whatever it should do when\nclicked.\n\nTypically when an element needs to handle a click, the click is generated\nfrom within the element and an event listener within the element implements\nthe needed behavior; however, it's possible to fire a click directly\nat the element that the element should handle. This method helps\ndistinguish these \"external\" clicks.\n\nAn \"external\" click can be triggered in a number of ways: via a click\non an associated label for a form associated element, calling\n`element.click()`, or calling\n`element.dispatchEvent(new MouseEvent('click', ...))`.\n\nAlso works around Firefox issue\nhttps://bugzilla.mozilla.org/show_bug.cgi?id=1804576 by squelching\nevents for a microtask after called."
|
|
862
|
-
},
|
|
863
|
-
{
|
|
864
|
-
"kind": "function",
|
|
865
|
-
"name": "redispatchEvent",
|
|
866
|
-
"parameters": [
|
|
867
|
-
{
|
|
868
|
-
"name": "element",
|
|
869
|
-
"type": {
|
|
870
|
-
"text": "Element"
|
|
871
|
-
},
|
|
872
|
-
"description": "The element to dispatch the event from."
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
"name": "event",
|
|
876
|
-
"type": {
|
|
877
|
-
"text": "Event"
|
|
878
|
-
},
|
|
879
|
-
"description": "The event to re-dispatch."
|
|
880
|
-
}
|
|
881
|
-
],
|
|
882
|
-
"description": "Re-dispatches an event from the provided element.\n\nThis function is useful for forwarding non-composed events, such as `change`\nevents.",
|
|
883
|
-
"return": {
|
|
884
|
-
"type": {
|
|
885
|
-
"text": ""
|
|
886
|
-
}
|
|
887
|
-
}
|
|
891
|
+
]
|
|
888
892
|
},
|
|
889
893
|
{
|
|
890
894
|
"kind": "function",
|
|
891
|
-
"name": "
|
|
892
|
-
"parameters": [
|
|
893
|
-
{
|
|
894
|
-
"name": "element",
|
|
895
|
-
"type": {
|
|
896
|
-
"text": "HTMLElement"
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
]
|
|
895
|
+
"name": "isDarkMode"
|
|
900
896
|
}
|
|
901
897
|
],
|
|
902
898
|
"exports": [
|
|
@@ -934,33 +930,17 @@
|
|
|
934
930
|
},
|
|
935
931
|
{
|
|
936
932
|
"kind": "js",
|
|
937
|
-
"name": "
|
|
938
|
-
"declaration": {
|
|
939
|
-
"name": "dispatchActivationClick",
|
|
940
|
-
"module": "src/utils.ts"
|
|
941
|
-
}
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
"kind": "js",
|
|
945
|
-
"name": "isActivationClick",
|
|
946
|
-
"declaration": {
|
|
947
|
-
"name": "isActivationClick",
|
|
948
|
-
"module": "src/utils.ts"
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
"kind": "js",
|
|
953
|
-
"name": "redispatchEvent",
|
|
933
|
+
"name": "isInViewport",
|
|
954
934
|
"declaration": {
|
|
955
|
-
"name": "
|
|
935
|
+
"name": "isInViewport",
|
|
956
936
|
"module": "src/utils.ts"
|
|
957
937
|
}
|
|
958
938
|
},
|
|
959
939
|
{
|
|
960
940
|
"kind": "js",
|
|
961
|
-
"name": "
|
|
941
|
+
"name": "isDarkMode",
|
|
962
942
|
"declaration": {
|
|
963
|
-
"name": "
|
|
943
|
+
"name": "isDarkMode",
|
|
964
944
|
"module": "src/utils.ts"
|
|
965
945
|
}
|
|
966
946
|
}
|
|
@@ -2321,148 +2301,469 @@
|
|
|
2321
2301
|
},
|
|
2322
2302
|
{
|
|
2323
2303
|
"kind": "javascript-module",
|
|
2324
|
-
"path": "src/code-
|
|
2304
|
+
"path": "src/code-editor/code-editor.ts",
|
|
2325
2305
|
"declarations": [
|
|
2326
2306
|
{
|
|
2327
2307
|
"kind": "class",
|
|
2328
2308
|
"description": "",
|
|
2329
|
-
"name": "
|
|
2309
|
+
"name": "CodeEditor",
|
|
2330
2310
|
"members": [
|
|
2311
|
+
{
|
|
2312
|
+
"kind": "field",
|
|
2313
|
+
"name": "name",
|
|
2314
|
+
"type": {
|
|
2315
|
+
"text": "string"
|
|
2316
|
+
},
|
|
2317
|
+
"default": "\"\"",
|
|
2318
|
+
"attribute": "name"
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
"kind": "field",
|
|
2322
|
+
"name": "value",
|
|
2323
|
+
"type": {
|
|
2324
|
+
"text": "any | undefined"
|
|
2325
|
+
},
|
|
2326
|
+
"default": "''",
|
|
2327
|
+
"attribute": "value",
|
|
2328
|
+
"inheritedFrom": {
|
|
2329
|
+
"name": "BaseInput",
|
|
2330
|
+
"module": "src/input/BaseInput.ts"
|
|
2331
|
+
}
|
|
2332
|
+
},
|
|
2331
2333
|
{
|
|
2332
2334
|
"kind": "field",
|
|
2333
2335
|
"name": "language",
|
|
2334
2336
|
"type": {
|
|
2335
|
-
"text": "
|
|
2337
|
+
"text": "'javascript' | 'json' | 'html'"
|
|
2336
2338
|
},
|
|
2337
2339
|
"default": "'javascript'",
|
|
2338
|
-
"attribute": "language"
|
|
2339
|
-
"reflects": true
|
|
2340
|
+
"attribute": "language"
|
|
2340
2341
|
},
|
|
2341
2342
|
{
|
|
2342
2343
|
"kind": "field",
|
|
2343
|
-
"name": "
|
|
2344
|
+
"name": "libSource",
|
|
2344
2345
|
"type": {
|
|
2345
|
-
"text": "
|
|
2346
|
+
"text": "any"
|
|
2346
2347
|
},
|
|
2347
|
-
"
|
|
2348
|
-
"attribute": "line-numbers",
|
|
2349
|
-
"reflects": true
|
|
2348
|
+
"attribute": "libSource"
|
|
2350
2349
|
},
|
|
2351
2350
|
{
|
|
2352
2351
|
"kind": "field",
|
|
2353
|
-
"name": "
|
|
2352
|
+
"name": "lineNumbers",
|
|
2354
2353
|
"type": {
|
|
2355
|
-
"text": "
|
|
2354
|
+
"text": "'off' | 'on'"
|
|
2356
2355
|
},
|
|
2357
|
-
"default": "''",
|
|
2358
|
-
"attribute": "
|
|
2356
|
+
"default": "'on'",
|
|
2357
|
+
"attribute": "lineNumbers"
|
|
2359
2358
|
},
|
|
2360
2359
|
{
|
|
2361
2360
|
"kind": "field",
|
|
2362
|
-
"name": "
|
|
2361
|
+
"name": "minimap",
|
|
2363
2362
|
"type": {
|
|
2364
|
-
"text": "boolean
|
|
2363
|
+
"text": "boolean"
|
|
2365
2364
|
},
|
|
2366
|
-
"default": "
|
|
2367
|
-
"attribute": "
|
|
2368
|
-
"reflects": true
|
|
2365
|
+
"default": "false",
|
|
2366
|
+
"attribute": "minimap"
|
|
2369
2367
|
},
|
|
2370
2368
|
{
|
|
2371
2369
|
"kind": "field",
|
|
2372
|
-
"name": "
|
|
2370
|
+
"name": "_isDarkMode",
|
|
2373
2371
|
"type": {
|
|
2374
2372
|
"text": "boolean"
|
|
2375
2373
|
},
|
|
2376
|
-
"
|
|
2377
|
-
"attribute": "hideCopy"
|
|
2374
|
+
"privacy": "private"
|
|
2378
2375
|
},
|
|
2379
2376
|
{
|
|
2380
2377
|
"kind": "field",
|
|
2381
|
-
"name": "
|
|
2378
|
+
"name": "hasFocus",
|
|
2382
2379
|
"type": {
|
|
2383
|
-
"text": "
|
|
2380
|
+
"text": "boolean"
|
|
2384
2381
|
},
|
|
2385
2382
|
"privacy": "private",
|
|
2386
|
-
"default": "
|
|
2383
|
+
"default": "false"
|
|
2387
2384
|
},
|
|
2388
2385
|
{
|
|
2389
2386
|
"kind": "field",
|
|
2390
|
-
"name": "
|
|
2387
|
+
"name": "editorMonacoInstance",
|
|
2391
2388
|
"type": {
|
|
2392
|
-
"text": "
|
|
2389
|
+
"text": "any | undefined"
|
|
2393
2390
|
},
|
|
2394
|
-
"privacy": "private"
|
|
2395
|
-
"default": "null"
|
|
2391
|
+
"privacy": "private"
|
|
2396
2392
|
},
|
|
2397
2393
|
{
|
|
2398
|
-
"kind": "
|
|
2399
|
-
"name": "
|
|
2400
|
-
"
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2394
|
+
"kind": "field",
|
|
2395
|
+
"name": "editorElement",
|
|
2396
|
+
"type": {
|
|
2397
|
+
"text": "HTMLElement"
|
|
2398
|
+
},
|
|
2399
|
+
"privacy": "private"
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
"kind": "field",
|
|
2403
|
+
"name": "monaco",
|
|
2404
|
+
"type": {
|
|
2405
|
+
"text": "any"
|
|
2406
|
+
}
|
|
2409
2407
|
},
|
|
2410
2408
|
{
|
|
2411
2409
|
"kind": "method",
|
|
2412
|
-
"name": "
|
|
2410
|
+
"name": "libSourceChanged",
|
|
2413
2411
|
"privacy": "private"
|
|
2414
2412
|
},
|
|
2415
2413
|
{
|
|
2416
2414
|
"kind": "method",
|
|
2417
|
-
"name": "
|
|
2415
|
+
"name": "getTheme",
|
|
2418
2416
|
"privacy": "private"
|
|
2419
|
-
}
|
|
2420
|
-
],
|
|
2421
|
-
"attributes": [
|
|
2417
|
+
},
|
|
2422
2418
|
{
|
|
2423
|
-
"
|
|
2424
|
-
"
|
|
2425
|
-
"text": "BundledLanguage"
|
|
2426
|
-
},
|
|
2427
|
-
"default": "'javascript'",
|
|
2428
|
-
"fieldName": "language"
|
|
2419
|
+
"kind": "method",
|
|
2420
|
+
"name": "initializeMonaco"
|
|
2429
2421
|
},
|
|
2430
2422
|
{
|
|
2431
|
-
"
|
|
2423
|
+
"kind": "method",
|
|
2424
|
+
"name": "setFocus"
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"kind": "method",
|
|
2428
|
+
"name": "setBlur"
|
|
2429
|
+
},
|
|
2430
|
+
{
|
|
2431
|
+
"kind": "field",
|
|
2432
|
+
"name": "disabled",
|
|
2432
2433
|
"type": {
|
|
2433
2434
|
"text": "boolean"
|
|
2434
2435
|
},
|
|
2435
2436
|
"default": "false",
|
|
2436
|
-
"
|
|
2437
|
+
"attribute": "disabled",
|
|
2438
|
+
"reflects": true,
|
|
2439
|
+
"inheritedFrom": {
|
|
2440
|
+
"name": "BaseInput",
|
|
2441
|
+
"module": "src/input/BaseInput.ts"
|
|
2442
|
+
}
|
|
2437
2443
|
},
|
|
2438
2444
|
{
|
|
2439
|
-
"
|
|
2445
|
+
"kind": "field",
|
|
2446
|
+
"name": "readonly",
|
|
2440
2447
|
"type": {
|
|
2441
|
-
"text": "
|
|
2448
|
+
"text": "boolean"
|
|
2442
2449
|
},
|
|
2443
|
-
"default": "
|
|
2444
|
-
"
|
|
2450
|
+
"default": "false",
|
|
2451
|
+
"attribute": "readonly",
|
|
2452
|
+
"reflects": true,
|
|
2453
|
+
"inheritedFrom": {
|
|
2454
|
+
"name": "BaseInput",
|
|
2455
|
+
"module": "src/input/BaseInput.ts"
|
|
2456
|
+
}
|
|
2445
2457
|
},
|
|
2446
2458
|
{
|
|
2447
|
-
"
|
|
2459
|
+
"kind": "field",
|
|
2460
|
+
"name": "required",
|
|
2448
2461
|
"type": {
|
|
2449
|
-
"text": "boolean
|
|
2462
|
+
"text": "boolean"
|
|
2450
2463
|
},
|
|
2451
|
-
"default": "
|
|
2452
|
-
"
|
|
2464
|
+
"default": "false",
|
|
2465
|
+
"attribute": "required",
|
|
2466
|
+
"reflects": true,
|
|
2467
|
+
"inheritedFrom": {
|
|
2468
|
+
"name": "BaseInput",
|
|
2469
|
+
"module": "src/input/BaseInput.ts"
|
|
2470
|
+
}
|
|
2453
2471
|
},
|
|
2454
2472
|
{
|
|
2455
|
-
"
|
|
2473
|
+
"kind": "field",
|
|
2474
|
+
"name": "skeleton",
|
|
2456
2475
|
"type": {
|
|
2457
2476
|
"text": "boolean"
|
|
2458
2477
|
},
|
|
2459
2478
|
"default": "false",
|
|
2460
|
-
"
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2479
|
+
"attribute": "skeleton",
|
|
2480
|
+
"reflects": true,
|
|
2481
|
+
"inheritedFrom": {
|
|
2482
|
+
"name": "BaseInput",
|
|
2483
|
+
"module": "src/input/BaseInput.ts"
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
],
|
|
2487
|
+
"attributes": [
|
|
2488
|
+
{
|
|
2489
|
+
"name": "name",
|
|
2490
|
+
"type": {
|
|
2491
|
+
"text": "string"
|
|
2492
|
+
},
|
|
2493
|
+
"default": "\"\"",
|
|
2494
|
+
"fieldName": "name"
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
"name": "value",
|
|
2498
|
+
"type": {
|
|
2499
|
+
"text": "string"
|
|
2500
|
+
},
|
|
2501
|
+
"default": "''",
|
|
2502
|
+
"fieldName": "value"
|
|
2503
|
+
},
|
|
2504
|
+
{
|
|
2505
|
+
"name": "language",
|
|
2506
|
+
"type": {
|
|
2507
|
+
"text": "'javascript' | 'json' | 'html'"
|
|
2508
|
+
},
|
|
2509
|
+
"default": "'javascript'",
|
|
2510
|
+
"fieldName": "language"
|
|
2511
|
+
},
|
|
2512
|
+
{
|
|
2513
|
+
"name": "libSource",
|
|
2514
|
+
"type": {
|
|
2515
|
+
"text": "any"
|
|
2516
|
+
},
|
|
2517
|
+
"fieldName": "libSource"
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
"name": "lineNumbers",
|
|
2521
|
+
"type": {
|
|
2522
|
+
"text": "'off' | 'on'"
|
|
2523
|
+
},
|
|
2524
|
+
"default": "'on'",
|
|
2525
|
+
"fieldName": "lineNumbers"
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
"name": "minimap",
|
|
2529
|
+
"type": {
|
|
2530
|
+
"text": "boolean"
|
|
2531
|
+
},
|
|
2532
|
+
"default": "false",
|
|
2533
|
+
"fieldName": "minimap"
|
|
2534
|
+
},
|
|
2535
|
+
{
|
|
2536
|
+
"name": "disabled",
|
|
2537
|
+
"type": {
|
|
2538
|
+
"text": "boolean"
|
|
2539
|
+
},
|
|
2540
|
+
"default": "false",
|
|
2541
|
+
"fieldName": "disabled",
|
|
2542
|
+
"inheritedFrom": {
|
|
2543
|
+
"name": "BaseInput",
|
|
2544
|
+
"module": "src/input/BaseInput.ts"
|
|
2545
|
+
}
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
"name": "readonly",
|
|
2549
|
+
"type": {
|
|
2550
|
+
"text": "boolean"
|
|
2551
|
+
},
|
|
2552
|
+
"default": "false",
|
|
2553
|
+
"fieldName": "readonly",
|
|
2554
|
+
"inheritedFrom": {
|
|
2555
|
+
"name": "BaseInput",
|
|
2556
|
+
"module": "src/input/BaseInput.ts"
|
|
2557
|
+
}
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
"name": "required",
|
|
2561
|
+
"type": {
|
|
2562
|
+
"text": "boolean"
|
|
2563
|
+
},
|
|
2564
|
+
"default": "false",
|
|
2565
|
+
"fieldName": "required",
|
|
2566
|
+
"inheritedFrom": {
|
|
2567
|
+
"name": "BaseInput",
|
|
2568
|
+
"module": "src/input/BaseInput.ts"
|
|
2569
|
+
}
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
"name": "skeleton",
|
|
2573
|
+
"type": {
|
|
2574
|
+
"text": "boolean"
|
|
2575
|
+
},
|
|
2576
|
+
"default": "false",
|
|
2577
|
+
"fieldName": "skeleton",
|
|
2578
|
+
"inheritedFrom": {
|
|
2579
|
+
"name": "BaseInput",
|
|
2580
|
+
"module": "src/input/BaseInput.ts"
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
],
|
|
2584
|
+
"superclass": {
|
|
2585
|
+
"name": "BaseInput",
|
|
2586
|
+
"module": "/src/input/BaseInput.js"
|
|
2587
|
+
},
|
|
2588
|
+
"tagName": "code-editor",
|
|
2589
|
+
"customElement": true,
|
|
2590
|
+
"summary": "Code editor",
|
|
2591
|
+
"rawTag": {
|
|
2592
|
+
"name": "code-editor",
|
|
2593
|
+
"description": ""
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
],
|
|
2597
|
+
"exports": [
|
|
2598
|
+
{
|
|
2599
|
+
"kind": "js",
|
|
2600
|
+
"name": "default",
|
|
2601
|
+
"declaration": {
|
|
2602
|
+
"name": "CodeEditor",
|
|
2603
|
+
"module": "src/code-editor/code-editor.ts"
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
]
|
|
2607
|
+
},
|
|
2608
|
+
{
|
|
2609
|
+
"kind": "javascript-module",
|
|
2610
|
+
"path": "src/code-editor/index.ts",
|
|
2611
|
+
"declarations": [],
|
|
2612
|
+
"exports": [
|
|
2613
|
+
{
|
|
2614
|
+
"kind": "js",
|
|
2615
|
+
"name": "CodeEditor",
|
|
2616
|
+
"declaration": {
|
|
2617
|
+
"name": "CodeEditor",
|
|
2618
|
+
"module": "src/code-editor/index.ts"
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
]
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
"kind": "javascript-module",
|
|
2625
|
+
"path": "src/code-highlighter/code-highlighter.ts",
|
|
2626
|
+
"declarations": [
|
|
2627
|
+
{
|
|
2628
|
+
"kind": "class",
|
|
2629
|
+
"description": "",
|
|
2630
|
+
"name": "CodeHighlighter",
|
|
2631
|
+
"members": [
|
|
2632
|
+
{
|
|
2633
|
+
"kind": "field",
|
|
2634
|
+
"name": "language",
|
|
2635
|
+
"type": {
|
|
2636
|
+
"text": "BundledLanguage"
|
|
2637
|
+
},
|
|
2638
|
+
"default": "'javascript'",
|
|
2639
|
+
"attribute": "language",
|
|
2640
|
+
"reflects": true
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
"kind": "field",
|
|
2644
|
+
"name": "lineNumbers",
|
|
2645
|
+
"type": {
|
|
2646
|
+
"text": "boolean"
|
|
2647
|
+
},
|
|
2648
|
+
"default": "false",
|
|
2649
|
+
"attribute": "line-numbers",
|
|
2650
|
+
"reflects": true
|
|
2651
|
+
},
|
|
2652
|
+
{
|
|
2653
|
+
"kind": "field",
|
|
2654
|
+
"name": "value",
|
|
2655
|
+
"type": {
|
|
2656
|
+
"text": "string"
|
|
2657
|
+
},
|
|
2658
|
+
"default": "''",
|
|
2659
|
+
"attribute": "value"
|
|
2660
|
+
},
|
|
2661
|
+
{
|
|
2662
|
+
"kind": "field",
|
|
2663
|
+
"name": "format",
|
|
2664
|
+
"type": {
|
|
2665
|
+
"text": "boolean | undefined"
|
|
2666
|
+
},
|
|
2667
|
+
"default": "true",
|
|
2668
|
+
"attribute": "format",
|
|
2669
|
+
"reflects": true
|
|
2670
|
+
},
|
|
2671
|
+
{
|
|
2672
|
+
"kind": "field",
|
|
2673
|
+
"name": "hideCopy",
|
|
2674
|
+
"type": {
|
|
2675
|
+
"text": "boolean"
|
|
2676
|
+
},
|
|
2677
|
+
"default": "false",
|
|
2678
|
+
"attribute": "hideCopy"
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
"kind": "field",
|
|
2682
|
+
"name": "compiledCode",
|
|
2683
|
+
"type": {
|
|
2684
|
+
"text": "string | null"
|
|
2685
|
+
},
|
|
2686
|
+
"privacy": "private",
|
|
2687
|
+
"default": "null"
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
"kind": "field",
|
|
2691
|
+
"name": "parsedCode",
|
|
2692
|
+
"type": {
|
|
2693
|
+
"text": "string | null"
|
|
2694
|
+
},
|
|
2695
|
+
"privacy": "private",
|
|
2696
|
+
"default": "null"
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
"kind": "method",
|
|
2700
|
+
"name": "decode",
|
|
2701
|
+
"privacy": "private",
|
|
2702
|
+
"parameters": [
|
|
2703
|
+
{
|
|
2704
|
+
"name": "str",
|
|
2705
|
+
"type": {
|
|
2706
|
+
"text": "string"
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
]
|
|
2710
|
+
},
|
|
2711
|
+
{
|
|
2712
|
+
"kind": "method",
|
|
2713
|
+
"name": "__highlightCode",
|
|
2714
|
+
"privacy": "private"
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"kind": "method",
|
|
2718
|
+
"name": "__handleCopyClick",
|
|
2719
|
+
"privacy": "private"
|
|
2720
|
+
}
|
|
2721
|
+
],
|
|
2722
|
+
"attributes": [
|
|
2723
|
+
{
|
|
2724
|
+
"name": "language",
|
|
2725
|
+
"type": {
|
|
2726
|
+
"text": "BundledLanguage"
|
|
2727
|
+
},
|
|
2728
|
+
"default": "'javascript'",
|
|
2729
|
+
"fieldName": "language"
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
"name": "line-numbers",
|
|
2733
|
+
"type": {
|
|
2734
|
+
"text": "boolean"
|
|
2735
|
+
},
|
|
2736
|
+
"default": "false",
|
|
2737
|
+
"fieldName": "lineNumbers"
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
"name": "value",
|
|
2741
|
+
"type": {
|
|
2742
|
+
"text": "string"
|
|
2743
|
+
},
|
|
2744
|
+
"default": "''",
|
|
2745
|
+
"fieldName": "value"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
"name": "format",
|
|
2749
|
+
"type": {
|
|
2750
|
+
"text": "boolean | undefined"
|
|
2751
|
+
},
|
|
2752
|
+
"default": "true",
|
|
2753
|
+
"fieldName": "format"
|
|
2754
|
+
},
|
|
2755
|
+
{
|
|
2756
|
+
"name": "hideCopy",
|
|
2757
|
+
"type": {
|
|
2758
|
+
"text": "boolean"
|
|
2759
|
+
},
|
|
2760
|
+
"default": "false",
|
|
2761
|
+
"fieldName": "hideCopy"
|
|
2762
|
+
}
|
|
2763
|
+
],
|
|
2764
|
+
"superclass": {
|
|
2765
|
+
"name": "LitElement",
|
|
2766
|
+
"package": "lit"
|
|
2466
2767
|
},
|
|
2467
2768
|
"tagName": "code-highlighter",
|
|
2468
2769
|
"customElement": true,
|
|
@@ -4182,158 +4483,364 @@
|
|
|
4182
4483
|
"type": {
|
|
4183
4484
|
"text": "IconProvider"
|
|
4184
4485
|
},
|
|
4185
|
-
"default": "'material-symbols'",
|
|
4186
|
-
"fieldName": "provider",
|
|
4187
|
-
"inheritedFrom": {
|
|
4188
|
-
"name": "Icon",
|
|
4189
|
-
"module": "src/icon/icon.ts"
|
|
4190
|
-
}
|
|
4191
|
-
}
|
|
4192
|
-
],
|
|
4193
|
-
"members": [
|
|
4486
|
+
"default": "'material-symbols'",
|
|
4487
|
+
"fieldName": "provider",
|
|
4488
|
+
"inheritedFrom": {
|
|
4489
|
+
"name": "Icon",
|
|
4490
|
+
"module": "src/icon/icon.ts"
|
|
4491
|
+
}
|
|
4492
|
+
}
|
|
4493
|
+
],
|
|
4494
|
+
"members": [
|
|
4495
|
+
{
|
|
4496
|
+
"kind": "field",
|
|
4497
|
+
"name": "name",
|
|
4498
|
+
"type": {
|
|
4499
|
+
"text": "string | undefined"
|
|
4500
|
+
},
|
|
4501
|
+
"description": "The identifier for the icon.\nThis name corresponds to a specific SVG asset in the icon set.",
|
|
4502
|
+
"attribute": "name",
|
|
4503
|
+
"reflects": true,
|
|
4504
|
+
"inheritedFrom": {
|
|
4505
|
+
"name": "Icon",
|
|
4506
|
+
"module": "src/icon/icon.ts"
|
|
4507
|
+
}
|
|
4508
|
+
},
|
|
4509
|
+
{
|
|
4510
|
+
"kind": "field",
|
|
4511
|
+
"name": "src",
|
|
4512
|
+
"type": {
|
|
4513
|
+
"text": "string | undefined"
|
|
4514
|
+
},
|
|
4515
|
+
"attribute": "src",
|
|
4516
|
+
"reflects": true,
|
|
4517
|
+
"inheritedFrom": {
|
|
4518
|
+
"name": "Icon",
|
|
4519
|
+
"module": "src/icon/icon.ts"
|
|
4520
|
+
}
|
|
4521
|
+
},
|
|
4522
|
+
{
|
|
4523
|
+
"kind": "field",
|
|
4524
|
+
"name": "provider",
|
|
4525
|
+
"type": {
|
|
4526
|
+
"text": "IconProvider"
|
|
4527
|
+
},
|
|
4528
|
+
"default": "'material-symbols'",
|
|
4529
|
+
"attribute": "provider",
|
|
4530
|
+
"inheritedFrom": {
|
|
4531
|
+
"name": "Icon",
|
|
4532
|
+
"module": "src/icon/icon.ts"
|
|
4533
|
+
}
|
|
4534
|
+
},
|
|
4535
|
+
{
|
|
4536
|
+
"kind": "field",
|
|
4537
|
+
"name": "svgContent",
|
|
4538
|
+
"type": {
|
|
4539
|
+
"text": "string"
|
|
4540
|
+
},
|
|
4541
|
+
"privacy": "private",
|
|
4542
|
+
"default": "''",
|
|
4543
|
+
"inheritedFrom": {
|
|
4544
|
+
"name": "Icon",
|
|
4545
|
+
"module": "src/icon/icon.ts"
|
|
4546
|
+
}
|
|
4547
|
+
},
|
|
4548
|
+
{
|
|
4549
|
+
"kind": "field",
|
|
4550
|
+
"name": "loading",
|
|
4551
|
+
"type": {
|
|
4552
|
+
"text": "boolean"
|
|
4553
|
+
},
|
|
4554
|
+
"privacy": "private",
|
|
4555
|
+
"default": "false",
|
|
4556
|
+
"inheritedFrom": {
|
|
4557
|
+
"name": "Icon",
|
|
4558
|
+
"module": "src/icon/icon.ts"
|
|
4559
|
+
}
|
|
4560
|
+
},
|
|
4561
|
+
{
|
|
4562
|
+
"kind": "field",
|
|
4563
|
+
"name": "error",
|
|
4564
|
+
"type": {
|
|
4565
|
+
"text": "Error | null"
|
|
4566
|
+
},
|
|
4567
|
+
"privacy": "private",
|
|
4568
|
+
"default": "null",
|
|
4569
|
+
"inheritedFrom": {
|
|
4570
|
+
"name": "Icon",
|
|
4571
|
+
"module": "src/icon/icon.ts"
|
|
4572
|
+
}
|
|
4573
|
+
},
|
|
4574
|
+
{
|
|
4575
|
+
"kind": "field",
|
|
4576
|
+
"name": "_fetchId",
|
|
4577
|
+
"type": {
|
|
4578
|
+
"text": "number"
|
|
4579
|
+
},
|
|
4580
|
+
"privacy": "private",
|
|
4581
|
+
"default": "0",
|
|
4582
|
+
"inheritedFrom": {
|
|
4583
|
+
"name": "Icon",
|
|
4584
|
+
"module": "src/icon/icon.ts"
|
|
4585
|
+
}
|
|
4586
|
+
},
|
|
4587
|
+
{
|
|
4588
|
+
"kind": "field",
|
|
4589
|
+
"name": "_debounceTimer",
|
|
4590
|
+
"type": {
|
|
4591
|
+
"text": "number | undefined"
|
|
4592
|
+
},
|
|
4593
|
+
"privacy": "private",
|
|
4594
|
+
"inheritedFrom": {
|
|
4595
|
+
"name": "Icon",
|
|
4596
|
+
"module": "src/icon/icon.ts"
|
|
4597
|
+
}
|
|
4598
|
+
},
|
|
4599
|
+
{
|
|
4600
|
+
"kind": "method",
|
|
4601
|
+
"name": "__scheduleUpdate",
|
|
4602
|
+
"privacy": "private",
|
|
4603
|
+
"inheritedFrom": {
|
|
4604
|
+
"name": "Icon",
|
|
4605
|
+
"module": "src/icon/icon.ts"
|
|
4606
|
+
}
|
|
4607
|
+
}
|
|
4608
|
+
],
|
|
4609
|
+
"events": [
|
|
4610
|
+
{
|
|
4611
|
+
"name": "icon-error",
|
|
4612
|
+
"type": {
|
|
4613
|
+
"text": "CustomEvent"
|
|
4614
|
+
},
|
|
4615
|
+
"inheritedFrom": {
|
|
4616
|
+
"name": "Icon",
|
|
4617
|
+
"module": "src/icon/icon.ts"
|
|
4618
|
+
}
|
|
4619
|
+
}
|
|
4620
|
+
]
|
|
4621
|
+
}
|
|
4622
|
+
],
|
|
4623
|
+
"exports": [
|
|
4624
|
+
{
|
|
4625
|
+
"kind": "js",
|
|
4626
|
+
"name": "PIcon",
|
|
4627
|
+
"declaration": {
|
|
4628
|
+
"name": "PIcon",
|
|
4629
|
+
"module": "src/icon/p-icon.ts"
|
|
4630
|
+
}
|
|
4631
|
+
},
|
|
4632
|
+
{
|
|
4633
|
+
"kind": "custom-element-definition",
|
|
4634
|
+
"name": "base-icon",
|
|
4635
|
+
"declaration": {
|
|
4636
|
+
"name": "PIcon",
|
|
4637
|
+
"module": "src/icon/p-icon.ts"
|
|
4638
|
+
}
|
|
4639
|
+
}
|
|
4640
|
+
]
|
|
4641
|
+
},
|
|
4642
|
+
{
|
|
4643
|
+
"kind": "javascript-module",
|
|
4644
|
+
"path": "src/image/image.ts",
|
|
4645
|
+
"declarations": [
|
|
4646
|
+
{
|
|
4647
|
+
"kind": "class",
|
|
4648
|
+
"description": "",
|
|
4649
|
+
"name": "Image",
|
|
4650
|
+
"members": [
|
|
4651
|
+
{
|
|
4652
|
+
"kind": "field",
|
|
4653
|
+
"name": "src",
|
|
4654
|
+
"type": {
|
|
4655
|
+
"text": "string"
|
|
4656
|
+
},
|
|
4657
|
+
"default": "''",
|
|
4658
|
+
"description": "Primary image source",
|
|
4659
|
+
"attribute": "src",
|
|
4660
|
+
"reflects": true
|
|
4661
|
+
},
|
|
4662
|
+
{
|
|
4663
|
+
"kind": "field",
|
|
4664
|
+
"name": "darkSrc",
|
|
4665
|
+
"type": {
|
|
4666
|
+
"text": "string"
|
|
4667
|
+
},
|
|
4668
|
+
"default": "''",
|
|
4669
|
+
"description": "Optional dark-mode image source",
|
|
4670
|
+
"attribute": "dark-src",
|
|
4671
|
+
"reflects": true
|
|
4672
|
+
},
|
|
4194
4673
|
{
|
|
4195
4674
|
"kind": "field",
|
|
4196
|
-
"name": "
|
|
4675
|
+
"name": "imageTitle",
|
|
4197
4676
|
"type": {
|
|
4198
|
-
"text": "string
|
|
4677
|
+
"text": "string"
|
|
4199
4678
|
},
|
|
4200
|
-
"
|
|
4201
|
-
"
|
|
4202
|
-
"
|
|
4203
|
-
"inheritedFrom": {
|
|
4204
|
-
"name": "Icon",
|
|
4205
|
-
"module": "src/icon/icon.ts"
|
|
4206
|
-
}
|
|
4679
|
+
"default": "''",
|
|
4680
|
+
"description": "Alt text / title for the image",
|
|
4681
|
+
"attribute": "image-title"
|
|
4207
4682
|
},
|
|
4208
4683
|
{
|
|
4209
4684
|
"kind": "field",
|
|
4210
|
-
"name": "
|
|
4685
|
+
"name": "preview",
|
|
4211
4686
|
"type": {
|
|
4212
|
-
"text": "
|
|
4687
|
+
"text": "boolean"
|
|
4213
4688
|
},
|
|
4214
|
-
"
|
|
4215
|
-
"
|
|
4216
|
-
"
|
|
4217
|
-
|
|
4218
|
-
"module": "src/icon/icon.ts"
|
|
4219
|
-
}
|
|
4689
|
+
"default": "false",
|
|
4690
|
+
"description": "Enable click-to-preview lightbox",
|
|
4691
|
+
"attribute": "preview",
|
|
4692
|
+
"reflects": true
|
|
4220
4693
|
},
|
|
4221
4694
|
{
|
|
4222
4695
|
"kind": "field",
|
|
4223
|
-
"name": "
|
|
4696
|
+
"name": "_isDarkMode",
|
|
4224
4697
|
"type": {
|
|
4225
|
-
"text": "
|
|
4698
|
+
"text": "boolean"
|
|
4226
4699
|
},
|
|
4227
|
-
"
|
|
4228
|
-
"attribute": "provider",
|
|
4229
|
-
"inheritedFrom": {
|
|
4230
|
-
"name": "Icon",
|
|
4231
|
-
"module": "src/icon/icon.ts"
|
|
4232
|
-
}
|
|
4700
|
+
"privacy": "private"
|
|
4233
4701
|
},
|
|
4234
4702
|
{
|
|
4235
4703
|
"kind": "field",
|
|
4236
|
-
"name": "
|
|
4704
|
+
"name": "_loaded",
|
|
4237
4705
|
"type": {
|
|
4238
|
-
"text": "
|
|
4706
|
+
"text": "boolean"
|
|
4239
4707
|
},
|
|
4240
4708
|
"privacy": "private",
|
|
4241
|
-
"default": "
|
|
4242
|
-
"inheritedFrom": {
|
|
4243
|
-
"name": "Icon",
|
|
4244
|
-
"module": "src/icon/icon.ts"
|
|
4245
|
-
}
|
|
4709
|
+
"default": "false"
|
|
4246
4710
|
},
|
|
4247
4711
|
{
|
|
4248
4712
|
"kind": "field",
|
|
4249
|
-
"name": "
|
|
4713
|
+
"name": "_previewOpen",
|
|
4250
4714
|
"type": {
|
|
4251
4715
|
"text": "boolean"
|
|
4252
4716
|
},
|
|
4253
4717
|
"privacy": "private",
|
|
4254
|
-
"default": "false"
|
|
4255
|
-
"inheritedFrom": {
|
|
4256
|
-
"name": "Icon",
|
|
4257
|
-
"module": "src/icon/icon.ts"
|
|
4258
|
-
}
|
|
4718
|
+
"default": "false"
|
|
4259
4719
|
},
|
|
4260
4720
|
{
|
|
4261
4721
|
"kind": "field",
|
|
4262
|
-
"name": "
|
|
4722
|
+
"name": "_intersectionObserver",
|
|
4263
4723
|
"type": {
|
|
4264
|
-
"text": "
|
|
4724
|
+
"text": "IntersectionObserver | null"
|
|
4265
4725
|
},
|
|
4266
4726
|
"privacy": "private",
|
|
4267
|
-
"default": "null"
|
|
4268
|
-
"inheritedFrom": {
|
|
4269
|
-
"name": "Icon",
|
|
4270
|
-
"module": "src/icon/icon.ts"
|
|
4271
|
-
}
|
|
4727
|
+
"default": "null"
|
|
4272
4728
|
},
|
|
4273
4729
|
{
|
|
4274
4730
|
"kind": "field",
|
|
4275
|
-
"name": "
|
|
4731
|
+
"name": "_themeCleanup",
|
|
4276
4732
|
"type": {
|
|
4277
|
-
"text": "
|
|
4733
|
+
"text": "(() => void) | null"
|
|
4278
4734
|
},
|
|
4279
4735
|
"privacy": "private",
|
|
4280
|
-
"default": "
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4736
|
+
"default": "null"
|
|
4737
|
+
},
|
|
4738
|
+
{
|
|
4739
|
+
"kind": "method",
|
|
4740
|
+
"name": "_setupIntersectionObserver",
|
|
4741
|
+
"privacy": "private"
|
|
4285
4742
|
},
|
|
4286
4743
|
{
|
|
4287
4744
|
"kind": "field",
|
|
4288
|
-
"name": "
|
|
4745
|
+
"name": "_activeSrc",
|
|
4289
4746
|
"type": {
|
|
4290
|
-
"text": "
|
|
4747
|
+
"text": "string"
|
|
4291
4748
|
},
|
|
4292
4749
|
"privacy": "private",
|
|
4293
|
-
"
|
|
4294
|
-
"name": "Icon",
|
|
4295
|
-
"module": "src/icon/icon.ts"
|
|
4296
|
-
}
|
|
4750
|
+
"readonly": true
|
|
4297
4751
|
},
|
|
4298
4752
|
{
|
|
4299
4753
|
"kind": "method",
|
|
4300
|
-
"name": "
|
|
4754
|
+
"name": "_handleClick",
|
|
4755
|
+
"privacy": "private"
|
|
4756
|
+
},
|
|
4757
|
+
{
|
|
4758
|
+
"kind": "method",
|
|
4759
|
+
"name": "_closePreview",
|
|
4301
4760
|
"privacy": "private",
|
|
4302
|
-
"
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4761
|
+
"parameters": [
|
|
4762
|
+
{
|
|
4763
|
+
"name": "e",
|
|
4764
|
+
"type": {
|
|
4765
|
+
"text": "Event"
|
|
4766
|
+
}
|
|
4767
|
+
}
|
|
4768
|
+
]
|
|
4306
4769
|
}
|
|
4307
4770
|
],
|
|
4308
|
-
"
|
|
4771
|
+
"attributes": [
|
|
4309
4772
|
{
|
|
4310
|
-
"name": "
|
|
4773
|
+
"name": "src",
|
|
4311
4774
|
"type": {
|
|
4312
|
-
"text": "
|
|
4775
|
+
"text": "string"
|
|
4313
4776
|
},
|
|
4314
|
-
"
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4777
|
+
"default": "''",
|
|
4778
|
+
"description": "Primary image source",
|
|
4779
|
+
"fieldName": "src"
|
|
4780
|
+
},
|
|
4781
|
+
{
|
|
4782
|
+
"name": "dark-src",
|
|
4783
|
+
"type": {
|
|
4784
|
+
"text": "string"
|
|
4785
|
+
},
|
|
4786
|
+
"default": "''",
|
|
4787
|
+
"description": "Optional dark-mode image source",
|
|
4788
|
+
"fieldName": "darkSrc"
|
|
4789
|
+
},
|
|
4790
|
+
{
|
|
4791
|
+
"name": "image-title",
|
|
4792
|
+
"type": {
|
|
4793
|
+
"text": "string"
|
|
4794
|
+
},
|
|
4795
|
+
"default": "''",
|
|
4796
|
+
"description": "Alt text / title for the image",
|
|
4797
|
+
"fieldName": "imageTitle"
|
|
4798
|
+
},
|
|
4799
|
+
{
|
|
4800
|
+
"name": "preview",
|
|
4801
|
+
"type": {
|
|
4802
|
+
"text": "boolean"
|
|
4803
|
+
},
|
|
4804
|
+
"default": "false",
|
|
4805
|
+
"description": "Enable click-to-preview lightbox",
|
|
4806
|
+
"fieldName": "preview"
|
|
4318
4807
|
}
|
|
4319
|
-
]
|
|
4808
|
+
],
|
|
4809
|
+
"superclass": {
|
|
4810
|
+
"name": "LitElement",
|
|
4811
|
+
"package": "lit"
|
|
4812
|
+
},
|
|
4813
|
+
"tagName": "base-image",
|
|
4814
|
+
"customElement": true,
|
|
4815
|
+
"summary": "Image",
|
|
4816
|
+
"rawTag": {
|
|
4817
|
+
"name": "image",
|
|
4818
|
+
"description": ""
|
|
4819
|
+
}
|
|
4320
4820
|
}
|
|
4321
4821
|
],
|
|
4322
4822
|
"exports": [
|
|
4323
4823
|
{
|
|
4324
4824
|
"kind": "js",
|
|
4325
|
-
"name": "
|
|
4825
|
+
"name": "Image",
|
|
4326
4826
|
"declaration": {
|
|
4327
|
-
"name": "
|
|
4328
|
-
"module": "src/
|
|
4827
|
+
"name": "Image",
|
|
4828
|
+
"module": "src/image/image.ts"
|
|
4329
4829
|
}
|
|
4330
|
-
}
|
|
4830
|
+
}
|
|
4831
|
+
]
|
|
4832
|
+
},
|
|
4833
|
+
{
|
|
4834
|
+
"kind": "javascript-module",
|
|
4835
|
+
"path": "src/image/index.ts",
|
|
4836
|
+
"declarations": [],
|
|
4837
|
+
"exports": [
|
|
4331
4838
|
{
|
|
4332
|
-
"kind": "
|
|
4333
|
-
"name": "
|
|
4839
|
+
"kind": "js",
|
|
4840
|
+
"name": "Image",
|
|
4334
4841
|
"declaration": {
|
|
4335
|
-
"name": "
|
|
4336
|
-
"module": "
|
|
4842
|
+
"name": "Image",
|
|
4843
|
+
"module": "./image.js"
|
|
4337
4844
|
}
|
|
4338
4845
|
}
|
|
4339
4846
|
]
|
|
@@ -7524,6 +8031,110 @@
|
|
|
7524
8031
|
}
|
|
7525
8032
|
]
|
|
7526
8033
|
},
|
|
8034
|
+
{
|
|
8035
|
+
"kind": "javascript-module",
|
|
8036
|
+
"path": "src/utils/dispatch-event-utils.ts",
|
|
8037
|
+
"declarations": [
|
|
8038
|
+
{
|
|
8039
|
+
"kind": "function",
|
|
8040
|
+
"name": "dispatchActivationClick",
|
|
8041
|
+
"parameters": [
|
|
8042
|
+
{
|
|
8043
|
+
"name": "element",
|
|
8044
|
+
"type": {
|
|
8045
|
+
"text": "HTMLElement"
|
|
8046
|
+
}
|
|
8047
|
+
}
|
|
8048
|
+
],
|
|
8049
|
+
"description": "Dispatches a click event to the given element that triggers a native action,\nbut is not composed and therefore is not seen outside the element.\n\nThis is useful for responding to an external click event on the host element\nthat should trigger an internal action like a button click.\n\nNote, a helper is provided because setting this up correctly is a bit tricky.\nIn particular, calling `click` on an element creates a composed event, which\nis not desirable, and a manually dispatched event must specifically be a\n`MouseEvent` to trigger a native action."
|
|
8050
|
+
},
|
|
8051
|
+
{
|
|
8052
|
+
"kind": "function",
|
|
8053
|
+
"name": "isActivationClick",
|
|
8054
|
+
"parameters": [
|
|
8055
|
+
{
|
|
8056
|
+
"name": "event",
|
|
8057
|
+
"type": {
|
|
8058
|
+
"text": "Event"
|
|
8059
|
+
}
|
|
8060
|
+
}
|
|
8061
|
+
],
|
|
8062
|
+
"description": "Returns true if the click event should trigger an activation behavior. The\nbehavior is defined by the element and is whatever it should do when\nclicked.\n\nTypically when an element needs to handle a click, the click is generated\nfrom within the element and an event listener within the element implements\nthe needed behavior; however, it's possible to fire a click directly\nat the element that the element should handle. This method helps\ndistinguish these \"external\" clicks.\n\nAn \"external\" click can be triggered in a number of ways: via a click\non an associated label for a form associated element, calling\n`element.click()`, or calling\n`element.dispatchEvent(new MouseEvent('click', ...))`.\n\nAlso works around Firefox issue\nhttps://bugzilla.mozilla.org/show_bug.cgi?id=1804576 by squelching\nevents for a microtask after called."
|
|
8063
|
+
},
|
|
8064
|
+
{
|
|
8065
|
+
"kind": "function",
|
|
8066
|
+
"name": "redispatchEvent",
|
|
8067
|
+
"parameters": [
|
|
8068
|
+
{
|
|
8069
|
+
"name": "element",
|
|
8070
|
+
"type": {
|
|
8071
|
+
"text": "Element"
|
|
8072
|
+
},
|
|
8073
|
+
"description": "The element to dispatch the event from."
|
|
8074
|
+
},
|
|
8075
|
+
{
|
|
8076
|
+
"name": "event",
|
|
8077
|
+
"type": {
|
|
8078
|
+
"text": "Event"
|
|
8079
|
+
},
|
|
8080
|
+
"description": "The event to re-dispatch."
|
|
8081
|
+
}
|
|
8082
|
+
],
|
|
8083
|
+
"description": "Re-dispatches an event from the provided element.\n\nThis function is useful for forwarding non-composed events, such as `change`\nevents.",
|
|
8084
|
+
"return": {
|
|
8085
|
+
"type": {
|
|
8086
|
+
"text": ""
|
|
8087
|
+
}
|
|
8088
|
+
}
|
|
8089
|
+
}
|
|
8090
|
+
],
|
|
8091
|
+
"exports": [
|
|
8092
|
+
{
|
|
8093
|
+
"kind": "js",
|
|
8094
|
+
"name": "dispatchActivationClick",
|
|
8095
|
+
"declaration": {
|
|
8096
|
+
"name": "dispatchActivationClick",
|
|
8097
|
+
"module": "src/utils/dispatch-event-utils.ts"
|
|
8098
|
+
}
|
|
8099
|
+
},
|
|
8100
|
+
{
|
|
8101
|
+
"kind": "js",
|
|
8102
|
+
"name": "isActivationClick",
|
|
8103
|
+
"declaration": {
|
|
8104
|
+
"name": "isActivationClick",
|
|
8105
|
+
"module": "src/utils/dispatch-event-utils.ts"
|
|
8106
|
+
}
|
|
8107
|
+
},
|
|
8108
|
+
{
|
|
8109
|
+
"kind": "js",
|
|
8110
|
+
"name": "redispatchEvent",
|
|
8111
|
+
"declaration": {
|
|
8112
|
+
"name": "redispatchEvent",
|
|
8113
|
+
"module": "src/utils/dispatch-event-utils.ts"
|
|
8114
|
+
}
|
|
8115
|
+
}
|
|
8116
|
+
]
|
|
8117
|
+
},
|
|
8118
|
+
{
|
|
8119
|
+
"kind": "javascript-module",
|
|
8120
|
+
"path": "src/utils/observe-theme-change.ts",
|
|
8121
|
+
"declarations": [
|
|
8122
|
+
{
|
|
8123
|
+
"kind": "variable",
|
|
8124
|
+
"name": "observeThemeChange"
|
|
8125
|
+
}
|
|
8126
|
+
],
|
|
8127
|
+
"exports": [
|
|
8128
|
+
{
|
|
8129
|
+
"kind": "js",
|
|
8130
|
+
"name": "observeThemeChange",
|
|
8131
|
+
"declaration": {
|
|
8132
|
+
"name": "observeThemeChange",
|
|
8133
|
+
"module": "src/utils/observe-theme-change.ts"
|
|
8134
|
+
}
|
|
8135
|
+
}
|
|
8136
|
+
]
|
|
8137
|
+
},
|
|
7527
8138
|
{
|
|
7528
8139
|
"kind": "javascript-module",
|
|
7529
8140
|
"path": "src/accordion/accordion/accordion.ts",
|