@redvars/peacock 3.2.3 → 3.2.5
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/BaseButton.js.map +1 -1
- package/dist/asciidoc-pJfx9Q5g.js +8 -0
- package/dist/asciidoc-pJfx9Q5g.js.map +1 -0
- package/dist/ayu-dark-B_QwGMx7.js +5 -0
- package/dist/ayu-dark-B_QwGMx7.js.map +1 -0
- package/dist/ayu-light-D3FWc2Ex.js +5 -0
- package/dist/ayu-light-D3FWc2Ex.js.map +1 -0
- package/dist/ayu-mirage-BmOeqvbN.js +5 -0
- package/dist/ayu-mirage-BmOeqvbN.js.map +1 -0
- package/dist/bird2-K3o4L1QD.js +8 -0
- package/dist/bird2-K3o4L1QD.js.map +1 -0
- package/dist/c3-B07AahKi.js +8 -0
- package/dist/c3-B07AahKi.js.map +1 -0
- package/dist/code-highlighter.js +46 -22
- package/dist/code-highlighter.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +29 -2
- package/dist/custom-elements.json +241 -155
- package/dist/{erb-m-j2vBLm.js → erb-ChJ68mCV.js} +2 -2
- package/dist/{erb-m-j2vBLm.js.map → erb-ChJ68mCV.js.map} +1 -1
- package/dist/focus-ring.js +32 -17
- package/dist/focus-ring.js.map +1 -1
- package/dist/horizon-bright-BLApERHE.js +5 -0
- package/dist/horizon-bright-BLApERHE.js.map +1 -0
- package/dist/icon.js +1 -1
- package/dist/index.js +2 -2
- package/dist/just-B9LTc0LG.js +36 -0
- package/dist/just-B9LTc0LG.js.map +1 -0
- package/dist/latex-BlSVCRS1.js +12 -0
- package/dist/latex-BlSVCRS1.js.map +1 -0
- package/dist/llvm-DmXvUVfA.js +8 -0
- package/dist/llvm-DmXvUVfA.js.map +1 -0
- package/dist/marko-BmJxIfAg.js +17 -0
- package/dist/marko-BmJxIfAg.js.map +1 -0
- package/dist/{mdc-BrYnGSXv.js → mdc-C7Ba-c77.js} +2 -2
- package/dist/{mdc-BrYnGSXv.js.map → mdc-C7Ba-c77.js.map} +1 -1
- package/dist/menu-item.js +70 -20
- package/dist/menu-item.js.map +1 -1
- package/dist/mojo-DYU6y2W9.js +8 -0
- package/dist/{mojo-u5OgFbxC.js.map → mojo-DYU6y2W9.js.map} +1 -1
- package/dist/moonbit-CV1yN8C9.js +8 -0
- package/dist/moonbit-CV1yN8C9.js.map +1 -0
- package/dist/{nextflow-u9s9iK4L.js → nextflow-Dg6qlPoG.js} +5 -2
- package/dist/nextflow-Dg6qlPoG.js.map +1 -0
- package/dist/nextflow-groovy-CORam5Fa.js +8 -0
- package/dist/nextflow-groovy-CORam5Fa.js.map +1 -0
- package/dist/nushell-CljK3mss.js +8 -0
- package/dist/nushell-CljK3mss.js.map +1 -0
- package/dist/peacock-loader.js +2 -2
- package/dist/ron-BdzR44AN.js +8 -0
- package/dist/ron-BdzR44AN.js.map +1 -0
- package/dist/{rst-DF3hmW_x.js → rst-CFS_KoQV.js} +2 -2
- package/dist/{rst-DF3hmW_x.js.map → rst-CFS_KoQV.js.map} +1 -1
- package/dist/ruby-D6iviT7z.js +39 -0
- package/dist/ruby-D6iviT7z.js.map +1 -0
- package/dist/src/button/BaseButton.d.ts +1 -1
- package/dist/src/focus-ring/focus-ring.d.ts +4 -0
- package/dist/src/menu/menu-item/menu-item.d.ts +10 -0
- package/dist/svelte-BkSXBbLu.js +17 -0
- package/dist/svelte-BkSXBbLu.js.map +1 -0
- package/dist/{swift-BCgZrEcl.js → swift-DyFZxOd-.js} +2 -2
- package/dist/{swift-BCgZrEcl.js.map → swift-DyFZxOd-.js.map} +1 -1
- package/dist/{switch-CSs3KDGd.js → switch-CC-S5fbc.js} +5 -4
- package/dist/switch-CC-S5fbc.js.map +1 -0
- package/dist/tex-BbUv4agS.js +11 -0
- package/dist/tex-BbUv4agS.js.map +1 -0
- package/dist/tooltip.js +72 -64
- package/dist/tooltip.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{twig-VqT-e9DI.js → twig-B60fOxJY.js} +2 -2
- package/dist/{twig-VqT-e9DI.js.map → twig-B60fOxJY.js.map} +1 -1
- package/dist/typedoc.json +73818 -73547
- package/dist/{unsafe-html-BIBrxtsS.js → unsafe-html-BS8X6Gto.js} +2 -2
- package/dist/{unsafe-html-BIBrxtsS.js.map → unsafe-html-BS8X6Gto.js.map} +1 -1
- package/package.json +5 -1
- package/readme.md +4 -4
- package/src/button/BaseButton.ts +1 -1
- package/src/button/button/button.scss +1 -0
- package/src/button/button/button.ts +1 -1
- package/src/button/icon-button/icon-button.ts +1 -1
- package/src/focus-ring/focus-ring.ts +34 -17
- package/src/menu/demo/index.html +36 -0
- package/src/menu/menu-item/menu-item.scss +13 -0
- package/src/menu/menu-item/menu-item.ts +65 -21
- package/dist/asciidoc-BDJTg1PM.js +0 -8
- package/dist/asciidoc-BDJTg1PM.js.map +0 -1
- package/dist/ayu-dark-ygzj7KbW.js +0 -5
- package/dist/ayu-dark-ygzj7KbW.js.map +0 -1
- package/dist/ayu-light-DsUL6vCY.js +0 -5
- package/dist/ayu-light-DsUL6vCY.js.map +0 -1
- package/dist/ayu-mirage-CyHYB1Vf.js +0 -5
- package/dist/ayu-mirage-CyHYB1Vf.js.map +0 -1
- package/dist/c3-CmLsUuAG.js +0 -8
- package/dist/c3-CmLsUuAG.js.map +0 -1
- package/dist/latex-Dym6_5Jv.js +0 -12
- package/dist/latex-Dym6_5Jv.js.map +0 -1
- package/dist/llvm-CPhCWK2d.js +0 -8
- package/dist/llvm-CPhCWK2d.js.map +0 -1
- package/dist/marko-C4cA5Esr.js +0 -17
- package/dist/marko-C4cA5Esr.js.map +0 -1
- package/dist/mojo-u5OgFbxC.js +0 -8
- package/dist/moonbit-aQWdlyG4.js +0 -8
- package/dist/moonbit-aQWdlyG4.js.map +0 -1
- package/dist/nextflow-u9s9iK4L.js.map +0 -1
- package/dist/nushell-Lv1Ave7e.js +0 -8
- package/dist/nushell-Lv1Ave7e.js.map +0 -1
- package/dist/ron-BKVA_67x.js +0 -8
- package/dist/ron-BKVA_67x.js.map +0 -1
- package/dist/ruby-w0WL1wp4.js +0 -39
- package/dist/ruby-w0WL1wp4.js.map +0 -1
- package/dist/svelte-CwlnTKtO.js +0 -17
- package/dist/svelte-CwlnTKtO.js.map +0 -1
- package/dist/switch-CSs3KDGd.js.map +0 -1
- package/dist/tex-C5wdBdOa.js +0 -11
- package/dist/tex-C5wdBdOa.js.map +0 -1
|
@@ -966,7 +966,6 @@
|
|
|
966
966
|
"type": {
|
|
967
967
|
"text": "HTMLElement | null"
|
|
968
968
|
},
|
|
969
|
-
"privacy": "private",
|
|
970
969
|
"readonly": true,
|
|
971
970
|
"inheritedFrom": {
|
|
972
971
|
"name": "BaseButton",
|
|
@@ -2868,6 +2867,15 @@
|
|
|
2868
2867
|
"attribute": "visible",
|
|
2869
2868
|
"reflects": true
|
|
2870
2869
|
},
|
|
2870
|
+
{
|
|
2871
|
+
"kind": "field",
|
|
2872
|
+
"name": "element",
|
|
2873
|
+
"type": {
|
|
2874
|
+
"text": "string"
|
|
2875
|
+
},
|
|
2876
|
+
"default": "''",
|
|
2877
|
+
"attribute": "element"
|
|
2878
|
+
},
|
|
2871
2879
|
{
|
|
2872
2880
|
"kind": "field",
|
|
2873
2881
|
"name": "_control",
|
|
@@ -2879,6 +2887,18 @@
|
|
|
2879
2887
|
"kind": "field",
|
|
2880
2888
|
"name": "control"
|
|
2881
2889
|
},
|
|
2890
|
+
{
|
|
2891
|
+
"kind": "method",
|
|
2892
|
+
"name": "__focusin"
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
"kind": "method",
|
|
2896
|
+
"name": "__focusout"
|
|
2897
|
+
},
|
|
2898
|
+
{
|
|
2899
|
+
"kind": "method",
|
|
2900
|
+
"name": "__pointerdown"
|
|
2901
|
+
},
|
|
2882
2902
|
{
|
|
2883
2903
|
"kind": "method",
|
|
2884
2904
|
"name": "attach"
|
|
@@ -2896,6 +2916,14 @@
|
|
|
2896
2916
|
},
|
|
2897
2917
|
"default": "false",
|
|
2898
2918
|
"fieldName": "visible"
|
|
2919
|
+
},
|
|
2920
|
+
{
|
|
2921
|
+
"name": "element",
|
|
2922
|
+
"type": {
|
|
2923
|
+
"text": "string"
|
|
2924
|
+
},
|
|
2925
|
+
"default": "''",
|
|
2926
|
+
"fieldName": "element"
|
|
2899
2927
|
}
|
|
2900
2928
|
],
|
|
2901
2929
|
"superclass": {
|
|
@@ -3502,7 +3530,6 @@
|
|
|
3502
3530
|
"type": {
|
|
3503
3531
|
"text": "HTMLElement | null"
|
|
3504
3532
|
},
|
|
3505
|
-
"privacy": "private",
|
|
3506
3533
|
"readonly": true,
|
|
3507
3534
|
"inheritedFrom": {
|
|
3508
3535
|
"name": "BaseButton",
|
|
@@ -852,6 +852,158 @@
|
|
|
852
852
|
}
|
|
853
853
|
]
|
|
854
854
|
},
|
|
855
|
+
{
|
|
856
|
+
"kind": "javascript-module",
|
|
857
|
+
"path": "src/badge/badge.ts",
|
|
858
|
+
"declarations": [
|
|
859
|
+
{
|
|
860
|
+
"kind": "class",
|
|
861
|
+
"description": "",
|
|
862
|
+
"name": "Badge",
|
|
863
|
+
"cssProperties": [
|
|
864
|
+
{
|
|
865
|
+
"description": "Controls the color of the badge.",
|
|
866
|
+
"name": "--badge-color"
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"members": [
|
|
870
|
+
{
|
|
871
|
+
"kind": "field",
|
|
872
|
+
"name": "value",
|
|
873
|
+
"type": {
|
|
874
|
+
"text": "string"
|
|
875
|
+
},
|
|
876
|
+
"default": "''",
|
|
877
|
+
"description": "The value to display in the badge.",
|
|
878
|
+
"attribute": "value"
|
|
879
|
+
}
|
|
880
|
+
],
|
|
881
|
+
"attributes": [
|
|
882
|
+
{
|
|
883
|
+
"name": "value",
|
|
884
|
+
"type": {
|
|
885
|
+
"text": "string"
|
|
886
|
+
},
|
|
887
|
+
"default": "''",
|
|
888
|
+
"description": "The value to display in the badge.",
|
|
889
|
+
"fieldName": "value"
|
|
890
|
+
}
|
|
891
|
+
],
|
|
892
|
+
"superclass": {
|
|
893
|
+
"name": "LitElement",
|
|
894
|
+
"package": "lit"
|
|
895
|
+
},
|
|
896
|
+
"tagName": "base-badge",
|
|
897
|
+
"customElement": true,
|
|
898
|
+
"summary": "The badge component is used to display a small amount of information to the user.",
|
|
899
|
+
"rawTag": {
|
|
900
|
+
"name": "badge",
|
|
901
|
+
"description": ""
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
],
|
|
905
|
+
"exports": [
|
|
906
|
+
{
|
|
907
|
+
"kind": "js",
|
|
908
|
+
"name": "Badge",
|
|
909
|
+
"declaration": {
|
|
910
|
+
"name": "Badge",
|
|
911
|
+
"module": "src/badge/badge.ts"
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
]
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"kind": "javascript-module",
|
|
918
|
+
"path": "src/badge/index.ts",
|
|
919
|
+
"declarations": [],
|
|
920
|
+
"exports": [
|
|
921
|
+
{
|
|
922
|
+
"kind": "js",
|
|
923
|
+
"name": "Badge",
|
|
924
|
+
"declaration": {
|
|
925
|
+
"name": "Badge",
|
|
926
|
+
"module": "./badge.js"
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
]
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"kind": "javascript-module",
|
|
933
|
+
"path": "src/badge/p-badge.ts",
|
|
934
|
+
"declarations": [
|
|
935
|
+
{
|
|
936
|
+
"kind": "class",
|
|
937
|
+
"description": "",
|
|
938
|
+
"name": "PBadge",
|
|
939
|
+
"superclass": {
|
|
940
|
+
"name": "Badge",
|
|
941
|
+
"module": "/src/badge/badge.js"
|
|
942
|
+
},
|
|
943
|
+
"tagName": "p-badge",
|
|
944
|
+
"customElement": true,
|
|
945
|
+
"cssProperties": [
|
|
946
|
+
{
|
|
947
|
+
"description": "Controls the color of the badge.",
|
|
948
|
+
"name": "--badge-color",
|
|
949
|
+
"inheritedFrom": {
|
|
950
|
+
"name": "Badge",
|
|
951
|
+
"module": "src/badge/badge.ts"
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
],
|
|
955
|
+
"attributes": [
|
|
956
|
+
{
|
|
957
|
+
"name": "value",
|
|
958
|
+
"type": {
|
|
959
|
+
"text": "string"
|
|
960
|
+
},
|
|
961
|
+
"default": "''",
|
|
962
|
+
"description": "The value to display in the badge.",
|
|
963
|
+
"fieldName": "value",
|
|
964
|
+
"inheritedFrom": {
|
|
965
|
+
"name": "Badge",
|
|
966
|
+
"module": "src/badge/badge.ts"
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
],
|
|
970
|
+
"members": [
|
|
971
|
+
{
|
|
972
|
+
"kind": "field",
|
|
973
|
+
"name": "value",
|
|
974
|
+
"type": {
|
|
975
|
+
"text": "string"
|
|
976
|
+
},
|
|
977
|
+
"default": "''",
|
|
978
|
+
"description": "The value to display in the badge.",
|
|
979
|
+
"attribute": "value",
|
|
980
|
+
"inheritedFrom": {
|
|
981
|
+
"name": "Badge",
|
|
982
|
+
"module": "src/badge/badge.ts"
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
]
|
|
986
|
+
}
|
|
987
|
+
],
|
|
988
|
+
"exports": [
|
|
989
|
+
{
|
|
990
|
+
"kind": "js",
|
|
991
|
+
"name": "PBadge",
|
|
992
|
+
"declaration": {
|
|
993
|
+
"name": "PBadge",
|
|
994
|
+
"module": "src/badge/p-badge.ts"
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"kind": "custom-element-definition",
|
|
999
|
+
"name": "p-badge",
|
|
1000
|
+
"declaration": {
|
|
1001
|
+
"name": "PBadge",
|
|
1002
|
+
"module": "src/badge/p-badge.ts"
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
]
|
|
1006
|
+
},
|
|
855
1007
|
{
|
|
856
1008
|
"kind": "javascript-module",
|
|
857
1009
|
"path": "src/avatar/avatar.ts",
|
|
@@ -1092,158 +1244,6 @@
|
|
|
1092
1244
|
}
|
|
1093
1245
|
]
|
|
1094
1246
|
},
|
|
1095
|
-
{
|
|
1096
|
-
"kind": "javascript-module",
|
|
1097
|
-
"path": "src/badge/badge.ts",
|
|
1098
|
-
"declarations": [
|
|
1099
|
-
{
|
|
1100
|
-
"kind": "class",
|
|
1101
|
-
"description": "",
|
|
1102
|
-
"name": "Badge",
|
|
1103
|
-
"cssProperties": [
|
|
1104
|
-
{
|
|
1105
|
-
"description": "Controls the color of the badge.",
|
|
1106
|
-
"name": "--badge-color"
|
|
1107
|
-
}
|
|
1108
|
-
],
|
|
1109
|
-
"members": [
|
|
1110
|
-
{
|
|
1111
|
-
"kind": "field",
|
|
1112
|
-
"name": "value",
|
|
1113
|
-
"type": {
|
|
1114
|
-
"text": "string"
|
|
1115
|
-
},
|
|
1116
|
-
"default": "''",
|
|
1117
|
-
"description": "The value to display in the badge.",
|
|
1118
|
-
"attribute": "value"
|
|
1119
|
-
}
|
|
1120
|
-
],
|
|
1121
|
-
"attributes": [
|
|
1122
|
-
{
|
|
1123
|
-
"name": "value",
|
|
1124
|
-
"type": {
|
|
1125
|
-
"text": "string"
|
|
1126
|
-
},
|
|
1127
|
-
"default": "''",
|
|
1128
|
-
"description": "The value to display in the badge.",
|
|
1129
|
-
"fieldName": "value"
|
|
1130
|
-
}
|
|
1131
|
-
],
|
|
1132
|
-
"superclass": {
|
|
1133
|
-
"name": "LitElement",
|
|
1134
|
-
"package": "lit"
|
|
1135
|
-
},
|
|
1136
|
-
"tagName": "base-badge",
|
|
1137
|
-
"customElement": true,
|
|
1138
|
-
"summary": "The badge component is used to display a small amount of information to the user.",
|
|
1139
|
-
"rawTag": {
|
|
1140
|
-
"name": "badge",
|
|
1141
|
-
"description": ""
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
],
|
|
1145
|
-
"exports": [
|
|
1146
|
-
{
|
|
1147
|
-
"kind": "js",
|
|
1148
|
-
"name": "Badge",
|
|
1149
|
-
"declaration": {
|
|
1150
|
-
"name": "Badge",
|
|
1151
|
-
"module": "src/badge/badge.ts"
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
]
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
"kind": "javascript-module",
|
|
1158
|
-
"path": "src/badge/index.ts",
|
|
1159
|
-
"declarations": [],
|
|
1160
|
-
"exports": [
|
|
1161
|
-
{
|
|
1162
|
-
"kind": "js",
|
|
1163
|
-
"name": "Badge",
|
|
1164
|
-
"declaration": {
|
|
1165
|
-
"name": "Badge",
|
|
1166
|
-
"module": "./badge.js"
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
]
|
|
1170
|
-
},
|
|
1171
|
-
{
|
|
1172
|
-
"kind": "javascript-module",
|
|
1173
|
-
"path": "src/badge/p-badge.ts",
|
|
1174
|
-
"declarations": [
|
|
1175
|
-
{
|
|
1176
|
-
"kind": "class",
|
|
1177
|
-
"description": "",
|
|
1178
|
-
"name": "PBadge",
|
|
1179
|
-
"superclass": {
|
|
1180
|
-
"name": "Badge",
|
|
1181
|
-
"module": "/src/badge/badge.js"
|
|
1182
|
-
},
|
|
1183
|
-
"tagName": "p-badge",
|
|
1184
|
-
"customElement": true,
|
|
1185
|
-
"cssProperties": [
|
|
1186
|
-
{
|
|
1187
|
-
"description": "Controls the color of the badge.",
|
|
1188
|
-
"name": "--badge-color",
|
|
1189
|
-
"inheritedFrom": {
|
|
1190
|
-
"name": "Badge",
|
|
1191
|
-
"module": "src/badge/badge.ts"
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
],
|
|
1195
|
-
"attributes": [
|
|
1196
|
-
{
|
|
1197
|
-
"name": "value",
|
|
1198
|
-
"type": {
|
|
1199
|
-
"text": "string"
|
|
1200
|
-
},
|
|
1201
|
-
"default": "''",
|
|
1202
|
-
"description": "The value to display in the badge.",
|
|
1203
|
-
"fieldName": "value",
|
|
1204
|
-
"inheritedFrom": {
|
|
1205
|
-
"name": "Badge",
|
|
1206
|
-
"module": "src/badge/badge.ts"
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
],
|
|
1210
|
-
"members": [
|
|
1211
|
-
{
|
|
1212
|
-
"kind": "field",
|
|
1213
|
-
"name": "value",
|
|
1214
|
-
"type": {
|
|
1215
|
-
"text": "string"
|
|
1216
|
-
},
|
|
1217
|
-
"default": "''",
|
|
1218
|
-
"description": "The value to display in the badge.",
|
|
1219
|
-
"attribute": "value",
|
|
1220
|
-
"inheritedFrom": {
|
|
1221
|
-
"name": "Badge",
|
|
1222
|
-
"module": "src/badge/badge.ts"
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
]
|
|
1226
|
-
}
|
|
1227
|
-
],
|
|
1228
|
-
"exports": [
|
|
1229
|
-
{
|
|
1230
|
-
"kind": "js",
|
|
1231
|
-
"name": "PBadge",
|
|
1232
|
-
"declaration": {
|
|
1233
|
-
"name": "PBadge",
|
|
1234
|
-
"module": "src/badge/p-badge.ts"
|
|
1235
|
-
}
|
|
1236
|
-
},
|
|
1237
|
-
{
|
|
1238
|
-
"kind": "custom-element-definition",
|
|
1239
|
-
"name": "p-badge",
|
|
1240
|
-
"declaration": {
|
|
1241
|
-
"name": "PBadge",
|
|
1242
|
-
"module": "src/badge/p-badge.ts"
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
]
|
|
1246
|
-
},
|
|
1247
1247
|
{
|
|
1248
1248
|
"kind": "javascript-module",
|
|
1249
1249
|
"path": "src/breadcrumb/index.ts",
|
|
@@ -1442,7 +1442,6 @@
|
|
|
1442
1442
|
"type": {
|
|
1443
1443
|
"text": "HTMLElement | null"
|
|
1444
1444
|
},
|
|
1445
|
-
"privacy": "private",
|
|
1446
1445
|
"readonly": true
|
|
1447
1446
|
},
|
|
1448
1447
|
{
|
|
@@ -3684,6 +3683,15 @@
|
|
|
3684
3683
|
"attribute": "visible",
|
|
3685
3684
|
"reflects": true
|
|
3686
3685
|
},
|
|
3686
|
+
{
|
|
3687
|
+
"kind": "field",
|
|
3688
|
+
"name": "element",
|
|
3689
|
+
"type": {
|
|
3690
|
+
"text": "string"
|
|
3691
|
+
},
|
|
3692
|
+
"default": "''",
|
|
3693
|
+
"attribute": "element"
|
|
3694
|
+
},
|
|
3687
3695
|
{
|
|
3688
3696
|
"kind": "field",
|
|
3689
3697
|
"name": "_control",
|
|
@@ -3695,6 +3703,18 @@
|
|
|
3695
3703
|
"kind": "field",
|
|
3696
3704
|
"name": "control"
|
|
3697
3705
|
},
|
|
3706
|
+
{
|
|
3707
|
+
"kind": "method",
|
|
3708
|
+
"name": "__focusin"
|
|
3709
|
+
},
|
|
3710
|
+
{
|
|
3711
|
+
"kind": "method",
|
|
3712
|
+
"name": "__focusout"
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
"kind": "method",
|
|
3716
|
+
"name": "__pointerdown"
|
|
3717
|
+
},
|
|
3698
3718
|
{
|
|
3699
3719
|
"kind": "method",
|
|
3700
3720
|
"name": "attach"
|
|
@@ -3712,6 +3732,14 @@
|
|
|
3712
3732
|
},
|
|
3713
3733
|
"default": "false",
|
|
3714
3734
|
"fieldName": "visible"
|
|
3735
|
+
},
|
|
3736
|
+
{
|
|
3737
|
+
"name": "element",
|
|
3738
|
+
"type": {
|
|
3739
|
+
"text": "string"
|
|
3740
|
+
},
|
|
3741
|
+
"default": "''",
|
|
3742
|
+
"fieldName": "element"
|
|
3715
3743
|
}
|
|
3716
3744
|
],
|
|
3717
3745
|
"superclass": {
|
|
@@ -8153,7 +8181,6 @@
|
|
|
8153
8181
|
"type": {
|
|
8154
8182
|
"text": "HTMLElement | null"
|
|
8155
8183
|
},
|
|
8156
|
-
"privacy": "private",
|
|
8157
8184
|
"readonly": true,
|
|
8158
8185
|
"inheritedFrom": {
|
|
8159
8186
|
"name": "BaseButton",
|
|
@@ -8878,7 +8905,6 @@
|
|
|
8878
8905
|
"type": {
|
|
8879
8906
|
"text": "HTMLElement | null"
|
|
8880
8907
|
},
|
|
8881
|
-
"privacy": "private",
|
|
8882
8908
|
"readonly": true,
|
|
8883
8909
|
"inheritedFrom": {
|
|
8884
8910
|
"name": "BaseButton",
|
|
@@ -9703,6 +9729,25 @@
|
|
|
9703
9729
|
"default": "false",
|
|
9704
9730
|
"attribute": "selected"
|
|
9705
9731
|
},
|
|
9732
|
+
{
|
|
9733
|
+
"kind": "field",
|
|
9734
|
+
"name": "href",
|
|
9735
|
+
"type": {
|
|
9736
|
+
"text": "string | undefined"
|
|
9737
|
+
},
|
|
9738
|
+
"attribute": "href",
|
|
9739
|
+
"reflects": true
|
|
9740
|
+
},
|
|
9741
|
+
{
|
|
9742
|
+
"kind": "field",
|
|
9743
|
+
"name": "target",
|
|
9744
|
+
"type": {
|
|
9745
|
+
"text": "string"
|
|
9746
|
+
},
|
|
9747
|
+
"default": "'_self'",
|
|
9748
|
+
"description": "Sets or retrieves the window or frame at which to target content.",
|
|
9749
|
+
"attribute": "target"
|
|
9750
|
+
},
|
|
9706
9751
|
{
|
|
9707
9752
|
"kind": "field",
|
|
9708
9753
|
"name": "variant",
|
|
@@ -9725,6 +9770,31 @@
|
|
|
9725
9770
|
}
|
|
9726
9771
|
}
|
|
9727
9772
|
]
|
|
9773
|
+
},
|
|
9774
|
+
{
|
|
9775
|
+
"kind": "method",
|
|
9776
|
+
"name": "__isLink"
|
|
9777
|
+
},
|
|
9778
|
+
{
|
|
9779
|
+
"kind": "field",
|
|
9780
|
+
"name": "menuItemElement",
|
|
9781
|
+
"type": {
|
|
9782
|
+
"text": "HTMLElement | null"
|
|
9783
|
+
},
|
|
9784
|
+
"privacy": "private",
|
|
9785
|
+
"readonly": true
|
|
9786
|
+
},
|
|
9787
|
+
{
|
|
9788
|
+
"kind": "method",
|
|
9789
|
+
"name": "focus"
|
|
9790
|
+
},
|
|
9791
|
+
{
|
|
9792
|
+
"kind": "method",
|
|
9793
|
+
"name": "blur"
|
|
9794
|
+
},
|
|
9795
|
+
{
|
|
9796
|
+
"kind": "method",
|
|
9797
|
+
"name": "renderContent"
|
|
9728
9798
|
}
|
|
9729
9799
|
],
|
|
9730
9800
|
"attributes": [
|
|
@@ -9752,6 +9822,22 @@
|
|
|
9752
9822
|
"default": "false",
|
|
9753
9823
|
"fieldName": "selected"
|
|
9754
9824
|
},
|
|
9825
|
+
{
|
|
9826
|
+
"name": "href",
|
|
9827
|
+
"type": {
|
|
9828
|
+
"text": "string | undefined"
|
|
9829
|
+
},
|
|
9830
|
+
"fieldName": "href"
|
|
9831
|
+
},
|
|
9832
|
+
{
|
|
9833
|
+
"name": "target",
|
|
9834
|
+
"type": {
|
|
9835
|
+
"text": "string"
|
|
9836
|
+
},
|
|
9837
|
+
"default": "'_self'",
|
|
9838
|
+
"description": "Sets or retrieves the window or frame at which to target content.",
|
|
9839
|
+
"fieldName": "target"
|
|
9840
|
+
},
|
|
9755
9841
|
{
|
|
9756
9842
|
"name": "variant",
|
|
9757
9843
|
"type": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import html from './html-CvRj4Gf8.js';
|
|
2
|
-
import ruby from './ruby-
|
|
2
|
+
import ruby from './ruby-D6iviT7z.js';
|
|
3
3
|
import './javascript-B-eMraLN.js';
|
|
4
4
|
import './css-BirQihPv.js';
|
|
5
5
|
import './haml-B9jY-Dmk.js';
|
|
@@ -27,4 +27,4 @@ lang
|
|
|
27
27
|
];
|
|
28
28
|
|
|
29
29
|
export { erb as default };
|
|
30
|
-
//# sourceMappingURL=erb-
|
|
30
|
+
//# sourceMappingURL=erb-ChJ68mCV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erb-
|
|
1
|
+
{"version":3,"file":"erb-ChJ68mCV.js","sources":["../node_modules/@shikijs/langs/dist/erb.mjs"],"sourcesContent":["import html from './html.mjs'\nimport ruby from './ruby.mjs'\n\nconst lang = Object.freeze(JSON.parse(\"{\\\"displayName\\\":\\\"ERB\\\",\\\"fileTypes\\\":[\\\"erb\\\",\\\"rhtml\\\",\\\"html.erb\\\"],\\\"injections\\\":{\\\"text.html.erb - (meta.embedded.block.erb | meta.embedded.line.erb | comment)\\\":{\\\"patterns\\\":[{\\\"begin\\\":\\\"^(\\\\\\\\s*)(?=<%+#(?![^%]*%>))\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.whitespace.comment.leading.erb\\\"}},\\\"end\\\":\\\"(?!\\\\\\\\G)(\\\\\\\\s*$\\\\\\\\n)?\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.whitespace.comment.trailing.erb\\\"}},\\\"patterns\\\":[{\\\"include\\\":\\\"#comment\\\"}]},{\\\"begin\\\":\\\"^(\\\\\\\\s*)(?=<%(?![^%]*%>))\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.whitespace.embedded.leading.erb\\\"}},\\\"end\\\":\\\"(?!\\\\\\\\G)(\\\\\\\\s*$\\\\\\\\n)?\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.whitespace.embedded.trailing.erb\\\"}},\\\"patterns\\\":[{\\\"include\\\":\\\"#tags\\\"}]},{\\\"include\\\":\\\"#comment\\\"},{\\\"include\\\":\\\"#tags\\\"}]}},\\\"name\\\":\\\"erb\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"text.html.basic\\\"}],\\\"repository\\\":{\\\"comment\\\":{\\\"patterns\\\":[{\\\"begin\\\":\\\"<%+#\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.comment.begin.erb\\\"}},\\\"end\\\":\\\"%>\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.comment.end.erb\\\"}},\\\"name\\\":\\\"comment.block.erb\\\"}]},\\\"tags\\\":{\\\"patterns\\\":[{\\\"begin\\\":\\\"<%+(?!>)[-=]?(?![^%]*%>)\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.section.embedded.begin.erb\\\"}},\\\"contentName\\\":\\\"source.ruby\\\",\\\"end\\\":\\\"(-?%)>\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.section.embedded.end.erb\\\"},\\\"1\\\":{\\\"name\\\":\\\"source.ruby\\\"}},\\\"name\\\":\\\"meta.embedded.block.erb\\\",\\\"patterns\\\":[{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"punctuation.definition.comment.erb\\\"}},\\\"match\\\":\\\"(#).*?(?=-?%>)\\\",\\\"name\\\":\\\"comment.line.number-sign.erb\\\"},{\\\"include\\\":\\\"source.ruby\\\"}]},{\\\"begin\\\":\\\"<%+(?!>)[-=]?\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.section.embedded.begin.erb\\\"}},\\\"contentName\\\":\\\"source.ruby\\\",\\\"end\\\":\\\"(-?%)>\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.section.embedded.end.erb\\\"},\\\"1\\\":{\\\"name\\\":\\\"source.ruby\\\"}},\\\"name\\\":\\\"meta.embedded.line.erb\\\",\\\"patterns\\\":[{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"punctuation.definition.comment.erb\\\"}},\\\"match\\\":\\\"(#).*?(?=-?%>)\\\",\\\"name\\\":\\\"comment.line.number-sign.erb\\\"},{\\\"include\\\":\\\"source.ruby\\\"}]}]}},\\\"scopeName\\\":\\\"text.html.erb\\\",\\\"embeddedLangs\\\":[\\\"html\\\",\\\"ruby\\\"]}\"))\n\nexport default [\n...html,\n...ruby,\nlang\n]\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,gtEAAgtE,CAAC;;AAEvvE,UAAe;AACf,GAAG,IAAI;AACP,GAAG,IAAI;AACP;AACA;;;;","x_google_ignoreList":[0]}
|
package/dist/focus-ring.js
CHANGED
|
@@ -37,6 +37,7 @@ class FocusRing extends i$1 {
|
|
|
37
37
|
constructor() {
|
|
38
38
|
super(...arguments);
|
|
39
39
|
this.visible = false;
|
|
40
|
+
this.element = '';
|
|
40
41
|
}
|
|
41
42
|
render() {
|
|
42
43
|
return A;
|
|
@@ -60,26 +61,37 @@ class FocusRing extends i$1 {
|
|
|
60
61
|
this.detach();
|
|
61
62
|
super.disconnectedCallback();
|
|
62
63
|
}
|
|
64
|
+
__focusin() {
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
this.visible = this._control[this.element].matches(':focus-visible') ?? false;
|
|
67
|
+
}
|
|
68
|
+
__focusout() {
|
|
69
|
+
this.visible = false;
|
|
70
|
+
}
|
|
71
|
+
__pointerdown() {
|
|
72
|
+
this.visible = false;
|
|
73
|
+
}
|
|
63
74
|
attach() {
|
|
64
|
-
// @ts-ignore
|
|
65
|
-
this._control
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
});
|
|
74
|
-
// @ts-ignore - buttonElement is not defined on the base class
|
|
75
|
-
this._control?.buttonElement?.addEventListener('pointerdown', () => {
|
|
76
|
-
this.visible = false;
|
|
77
|
-
});
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
if (this._control && this._control[this.element]) {
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
this._control[this.element].addEventListener('focusin', this.__focusin.bind(this));
|
|
79
|
+
// @ts-ignore
|
|
80
|
+
this._control[this.element].addEventListener('focusout', this.__focusin.bind(this));
|
|
81
|
+
// @ts-ignore
|
|
82
|
+
this._control[this.element].addEventListener('pointerdown', this.__focusin.bind(this));
|
|
83
|
+
}
|
|
78
84
|
}
|
|
79
85
|
detach() {
|
|
80
|
-
|
|
81
|
-
this._control
|
|
82
|
-
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
if (this._control && this._control[this.element]) {
|
|
88
|
+
// @ts-ignore
|
|
89
|
+
this._control[this.element].removeEventListener('focusin', this.__focusin);
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
this._control[this.element].removeEventListener('focusout', this.__focusout);
|
|
92
|
+
// @ts-ignore
|
|
93
|
+
this._control[this.element].removeEventListener('pointerdown', this.__pointerdown);
|
|
94
|
+
}
|
|
83
95
|
this._control = undefined;
|
|
84
96
|
}
|
|
85
97
|
}
|
|
@@ -87,6 +99,9 @@ FocusRing.styles = [css_248z];
|
|
|
87
99
|
__decorate([
|
|
88
100
|
n({ type: Boolean, reflect: true })
|
|
89
101
|
], FocusRing.prototype, "visible", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
n({ type: String })
|
|
104
|
+
], FocusRing.prototype, "element", void 0);
|
|
90
105
|
|
|
91
106
|
export { FocusRing };
|
|
92
107
|
//# sourceMappingURL=focus-ring.js.map
|
package/dist/focus-ring.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-ring.js","sources":["../../src/focus-ring/focus-ring.ts"],"sourcesContent":["import { LitElement, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport styles from './focus-ring.scss';\n\n/**\n * @label Focus Ring\n *\n * @tag focus-ring\n * @rawTag focus-ring\n *\n * @summary Adds a focus ring to an element.\n *\n *\n * @tags display\n */\nexport class FocusRing extends LitElement {\n static styles = [styles];\n\n @property({ type: Boolean, reflect: true }) visible: boolean = false;\n\n render() {\n return nothing;\n }\n\n _control?: HTMLElement;\n\n get control() {\n return this._control || null;\n }\n\n set control(control: HTMLElement | null) {\n if (control) {\n this._control = control;\n } else {\n this.detach();\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.attach();\n }\n\n disconnectedCallback() {\n this.detach();\n super.disconnectedCallback();\n }\n\n
|
|
1
|
+
{"version":3,"file":"focus-ring.js","sources":["../../src/focus-ring/focus-ring.ts"],"sourcesContent":["import { LitElement, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport styles from './focus-ring.scss';\n\n/**\n * @label Focus Ring\n *\n * @tag focus-ring\n * @rawTag focus-ring\n *\n * @summary Adds a focus ring to an element.\n *\n *\n * @tags display\n */\nexport class FocusRing extends LitElement {\n static styles = [styles];\n\n @property({ type: Boolean, reflect: true }) visible: boolean = false;\n\n @property({ type: String}) element = '';\n\n\n render() {\n return nothing;\n }\n\n _control?: HTMLElement;\n\n get control() {\n return this._control || null;\n }\n\n set control(control: HTMLElement | null) {\n if (control) {\n this._control = control;\n } else {\n this.detach();\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.attach();\n }\n\n disconnectedCallback() {\n this.detach();\n super.disconnectedCallback();\n }\n\n __focusin() {\n // @ts-ignore\n this.visible = this._control[this.element].matches(':focus-visible') ?? false;\n }\n\n __focusout() {\n this.visible = false;\n }\n\n __pointerdown() {\n this.visible = false;\n }\n\n attach() {\n // @ts-ignore\n if (this._control && this._control[this.element]) {\n // @ts-ignore\n this._control[this.element].addEventListener('focusin', this.__focusin.bind(this));\n // @ts-ignore\n this._control[this.element].addEventListener('focusout', this.__focusin.bind(this));\n // @ts-ignore\n this._control[this.element].addEventListener('pointerdown', this.__focusin.bind(this));\n }\n }\n\n detach() {\n // @ts-ignore\n if (this._control && this._control[this.element]) {\n // @ts-ignore\n this._control[this.element].removeEventListener('focusin', this.__focusin);\n // @ts-ignore\n this._control[this.element].removeEventListener('focusout', this.__focusout);\n // @ts-ignore\n this._control[this.element].removeEventListener('pointerdown', this.__pointerdown);\n }\n this._control = undefined;\n }\n}\n"],"names":["LitElement","nothing","styles","property"],"mappings":"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"}
|