@prokodo/ui 0.0.52 → 0.0.54

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.
Files changed (204) hide show
  1. package/README.md +81 -81
  2. package/dist/_virtual/_commonjsHelpers.js +9 -0
  3. package/dist/_virtual/common.js +7 -0
  4. package/dist/components/accordion/Accordion.client.js +3 -1
  5. package/dist/components/accordion/Accordion.view.js +100 -81
  6. package/dist/components/animated/Animated.server.js +3 -1
  7. package/dist/components/animatedText/AnimatedText.client.js +1 -7
  8. package/dist/components/animatedText/AnimatedText.view.js +4 -1
  9. package/dist/components/avatar/Avatar.view.js +2 -2
  10. package/dist/components/base-link/BaseLink.view.js +1 -1
  11. package/dist/components/button/Button.server.js +1 -8
  12. package/dist/components/calendly/Calendly.client.js +63 -54
  13. package/dist/components/calendly/Calendly.server.js +3 -1
  14. package/dist/components/card/Card.client.js +2 -1
  15. package/dist/components/card/Card.effects.client.js +5 -1
  16. package/dist/components/card/Card.view.js +19 -2
  17. package/dist/components/carousel/Carousel.client.js +36 -12
  18. package/dist/components/chip/Chip.view.js +10 -6
  19. package/dist/components/datePicker/DatePicker.client.js +53 -37
  20. package/dist/components/datePicker/DatePicker.view.js +3 -1
  21. package/dist/components/dialog/Dialog.client.js +22 -14
  22. package/dist/components/dialog/Dialog.view.js +10 -2
  23. package/dist/components/drawer/Drawer.client.js +10 -2
  24. package/dist/components/drawer/Drawer.effects.client.js +7 -2
  25. package/dist/components/dynamic-list/DynamicList.client.js +8 -7
  26. package/dist/components/dynamic-list/DynamicList.server.js +10 -4
  27. package/dist/components/dynamic-list/DynamicList.view.js +1 -1
  28. package/dist/components/form/Form.client.js +16 -13
  29. package/dist/components/form/Form.view.js +8 -4
  30. package/dist/components/form/FormField.client.js +5 -5
  31. package/dist/components/form/FormField.server.js +3 -23
  32. package/dist/components/form/FormResponse.js +5 -1
  33. package/dist/components/grid/Grid.js +7 -2
  34. package/dist/components/grid/GridRow.js +12 -2
  35. package/dist/components/headline/Headline.js +3 -1
  36. package/dist/components/icon/Icon.js +8 -4
  37. package/dist/components/image-text/ImageText.js +5 -1
  38. package/dist/components/input/Input.client.js +52 -28
  39. package/dist/components/input/Input.view.js +92 -68
  40. package/dist/components/inputOTP/InputOTP.js +107 -90
  41. package/dist/components/label/Label.js +1 -8
  42. package/dist/components/link/Link.view.js +3 -1
  43. package/dist/components/list/List.js +94 -42
  44. package/dist/components/loading/Loading.client.js +15 -2
  45. package/dist/components/loading/Loading.server.js +8 -1
  46. package/dist/components/loading/Loading.view.js +30 -7
  47. package/dist/components/post-item/PostItem.client.js +17 -0
  48. package/dist/components/post-item/PostItem.js +7 -136
  49. package/dist/components/post-item/PostItem.lazy.js +14 -0
  50. package/dist/components/post-item/PostItem.module.scss.js +3 -1
  51. package/dist/components/post-item/PostItem.server.js +14 -0
  52. package/dist/components/post-item/PostItem.view.js +238 -0
  53. package/dist/components/post-item/PostItemAuthor.js +28 -22
  54. package/dist/components/post-teaser/PostTeaser.client.js +30 -0
  55. package/dist/components/post-teaser/PostTeaser.js +9 -169
  56. package/dist/components/post-teaser/PostTeaser.lazy.js +13 -0
  57. package/dist/components/post-teaser/PostTeaser.module.scss.js +3 -0
  58. package/dist/components/post-teaser/PostTeaser.server.js +22 -0
  59. package/dist/components/post-teaser/PostTeaser.view.js +252 -0
  60. package/dist/components/post-widget/PostWidget.client.js +9 -0
  61. package/dist/components/post-widget/PostWidget.js +11 -156
  62. package/dist/components/post-widget/PostWidget.lazy.js +13 -0
  63. package/dist/components/post-widget/PostWidget.module.scss.js +1 -0
  64. package/dist/components/post-widget/PostWidget.server.js +11 -0
  65. package/dist/components/post-widget/PostWidget.view.js +263 -0
  66. package/dist/components/post-widget-carousel/PostWidgetCarousel.client.js +9 -0
  67. package/dist/components/post-widget-carousel/PostWidgetCarousel.js +9 -160
  68. package/dist/components/post-widget-carousel/PostWidgetCarousel.lazy.js +13 -0
  69. package/dist/components/post-widget-carousel/PostWidgetCarousel.module.scss.js +3 -0
  70. package/dist/components/post-widget-carousel/PostWidgetCarousel.server.js +11 -0
  71. package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +244 -0
  72. package/dist/components/rich-text/RichText.client.js +182 -12
  73. package/dist/components/rich-text/RichText.module.scss.js +1 -1
  74. package/dist/components/select/Select.view.js +132 -116
  75. package/dist/components/sidenav/SideNav.client.js +19 -18
  76. package/dist/components/sidenav/SideNav.server.js +8 -1
  77. package/dist/components/sidenav/SideNav.view.js +21 -3
  78. package/dist/components/skeleton/Skeleton.effects.client.js +3 -1
  79. package/dist/components/slider/Slider.client.js +56 -38
  80. package/dist/components/slider/Slider.view.js +1 -7
  81. package/dist/components/snackbar/SnackbarProvider.client.js +21 -22
  82. package/dist/components/stepper/Stepper.client.js +1 -8
  83. package/dist/components/switch/Switch.client.js +1 -6
  84. package/dist/components/switch/Switch.server.js +1 -3
  85. package/dist/components/table/Table.js +3 -1
  86. package/dist/components/table/TableCell.js +13 -1
  87. package/dist/components/teaser/Teaser.js +1 -5
  88. package/dist/constants/project.js +1 -1
  89. package/dist/helpers/createIsland.js +3 -1
  90. package/dist/helpers/createLazyWrapper.js +3 -1
  91. package/dist/helpers/date.js +21 -0
  92. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
  93. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +90 -0
  94. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1629 -0
  95. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +407 -0
  96. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +307 -0
  97. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +556 -0
  98. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +413 -0
  99. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +950 -0
  100. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +66 -0
  101. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +167 -0
  102. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +83 -0
  103. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +129 -0
  104. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +268 -0
  105. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +715 -0
  106. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +53 -0
  107. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +268 -0
  108. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +1031 -0
  109. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +74 -0
  110. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +84 -0
  111. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +245 -0
  112. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +256 -0
  113. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +498 -0
  114. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +59 -0
  115. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +614 -0
  116. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +25 -0
  117. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +38 -0
  118. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +428 -0
  119. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +223 -0
  120. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +426 -0
  121. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +326 -0
  122. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +935 -0
  123. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +37 -0
  124. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +658 -0
  125. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +893 -0
  126. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +829 -0
  127. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +146 -0
  128. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +134 -0
  129. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +239 -0
  130. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +214 -0
  131. package/dist/node_modules/.pnpm/marked-highlight@2.2.2_marked@15.0.12/node_modules/marked-highlight/src/index.js +93 -0
  132. package/dist/tsconfig.build.tsbuildinfo +1 -1
  133. package/dist/types/components/accordion/Accordion.model.d.ts +1 -1
  134. package/dist/types/components/animated/Animated.client.d.ts +2 -2
  135. package/dist/types/components/animated/Animated.model.d.ts +1 -1
  136. package/dist/types/components/button/Button.client.d.ts +1 -1
  137. package/dist/types/components/button/Button.d.ts +1 -1
  138. package/dist/types/components/button/Button.lazy.d.ts +1 -1
  139. package/dist/types/components/button/Button.server.d.ts +1 -1
  140. package/dist/types/components/button/Button.view.d.ts +1 -1
  141. package/dist/types/components/card/Card.effects.client.d.ts +1 -1
  142. package/dist/types/components/card/index.d.ts +1 -1
  143. package/dist/types/components/carousel/Carousel.d.ts +3 -0
  144. package/dist/types/components/carousel/Carousel.lazy.d.ts +3 -0
  145. package/dist/types/components/carousel/Carousel.model.d.ts +4 -0
  146. package/dist/types/components/dialog/Dialog.client.d.ts +1 -1
  147. package/dist/types/components/dialog/Dialog.model.d.ts +4 -4
  148. package/dist/types/components/dialog/Dialog.view.d.ts +2 -2
  149. package/dist/types/components/drawer/Drawer.client.d.ts +1 -1
  150. package/dist/types/components/drawer/Drawer.d.ts +1 -1
  151. package/dist/types/components/drawer/Drawer.effects.client.d.ts +1 -1
  152. package/dist/types/components/drawer/Drawer.lazy.d.ts +1 -1
  153. package/dist/types/components/drawer/Drawer.model.d.ts +6 -6
  154. package/dist/types/components/drawer/Drawer.server.d.ts +1 -1
  155. package/dist/types/components/drawer/Drawer.view.d.ts +2 -2
  156. package/dist/types/components/drawer/index.d.ts +1 -1
  157. package/dist/types/components/icon/IconList.d.ts +1 -1
  158. package/dist/types/components/icon/index.d.ts +1 -1
  159. package/dist/types/components/image/Image.model.d.ts +2 -2
  160. package/dist/types/components/link/Link.d.ts +1 -1
  161. package/dist/types/components/link/Link.model.d.ts +1 -1
  162. package/dist/types/components/link/Link.server.d.ts +1 -1
  163. package/dist/types/components/loading/index.d.ts +1 -1
  164. package/dist/types/components/post-item/PostItem.client.d.ts +4 -0
  165. package/dist/types/components/post-item/PostItem.d.ts +3 -2
  166. package/dist/types/components/post-item/PostItem.lazy.d.ts +5 -0
  167. package/dist/types/components/post-item/PostItem.model.d.ts +46 -6
  168. package/dist/types/components/post-item/PostItem.server.d.ts +3 -0
  169. package/dist/types/components/post-item/PostItem.view.d.ts +3 -0
  170. package/dist/types/components/post-item/PostItemAuthor.model.d.ts +5 -8
  171. package/dist/types/components/post-item/index.d.ts +2 -2
  172. package/dist/types/components/post-teaser/PostTeaser.client.d.ts +4 -0
  173. package/dist/types/components/post-teaser/PostTeaser.d.ts +3 -2
  174. package/dist/types/components/post-teaser/PostTeaser.lazy.d.ts +5 -0
  175. package/dist/types/components/post-teaser/PostTeaser.model.d.ts +49 -3
  176. package/dist/types/components/post-teaser/PostTeaser.server.d.ts +3 -0
  177. package/dist/types/components/post-teaser/PostTeaser.view.d.ts +3 -0
  178. package/dist/types/components/post-teaser/index.d.ts +1 -1
  179. package/dist/types/components/post-widget/PostWidget.client.d.ts +4 -0
  180. package/dist/types/components/post-widget/PostWidget.d.ts +13 -3
  181. package/dist/types/components/post-widget/PostWidget.lazy.d.ts +14 -0
  182. package/dist/types/components/post-widget/PostWidget.model.d.ts +53 -3
  183. package/dist/types/components/post-widget/PostWidget.server.d.ts +3 -0
  184. package/dist/types/components/post-widget/PostWidget.view.d.ts +3 -0
  185. package/dist/types/components/post-widget/index.d.ts +1 -1
  186. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.client.d.ts +3 -0
  187. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.d.ts +11 -3
  188. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.lazy.d.ts +12 -0
  189. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.model.d.ts +39 -0
  190. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.server.d.ts +3 -0
  191. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.view.d.ts +3 -0
  192. package/dist/types/components/post-widget-carousel/index.d.ts +1 -1
  193. package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
  194. package/dist/types/components/rich-text/RichText.d.ts +5 -0
  195. package/dist/types/components/rich-text/RichText.lazy.d.ts +5 -0
  196. package/dist/types/components/rich-text/RichText.model.d.ts +5 -0
  197. package/dist/types/components/sidenav/index.d.ts +1 -1
  198. package/dist/types/components/skeleton/Skeleton.effects.client.d.ts +2 -2
  199. package/dist/types/helpers/createIsland.d.ts +1 -1
  200. package/dist/types/helpers/createLazyWrapper.d.ts +1 -1
  201. package/dist/types/helpers/date.d.ts +5 -0
  202. package/dist/ui.css +154 -65
  203. package/package.json +5 -2
  204. package/dist/helpers/calculation.js +0 -6
@@ -0,0 +1,66 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var diff_1;
4
+ var hasRequiredDiff;
5
+ function requireDiff() {
6
+ if (hasRequiredDiff) return diff_1;
7
+ hasRequiredDiff = 1;
8
+ function diff(hljs) {
9
+ const regex = hljs.regex;
10
+ return {
11
+ name: "Diff",
12
+ aliases: ["patch"],
13
+ contains: [
14
+ {
15
+ className: "meta",
16
+ relevance: 10,
17
+ match: regex.either(
18
+ /^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,
19
+ /^\*\*\* +\d+,\d+ +\*\*\*\*$/,
20
+ /^--- +\d+,\d+ +----$/
21
+ )
22
+ },
23
+ {
24
+ className: "comment",
25
+ variants: [
26
+ {
27
+ begin: regex.either(
28
+ /Index: /,
29
+ /^index/,
30
+ /={3,}/,
31
+ /^-{3}/,
32
+ /^\*{3} /,
33
+ /^\+{3}/,
34
+ /^diff --git/
35
+ ),
36
+ end: /$/
37
+ },
38
+ { match: /^\*{15}$/ }
39
+ ]
40
+ },
41
+ {
42
+ className: "addition",
43
+ begin: /^\+/,
44
+ end: /$/
45
+ },
46
+ {
47
+ className: "deletion",
48
+ begin: /^-/,
49
+ end: /$/
50
+ },
51
+ {
52
+ className: "addition",
53
+ begin: /^!/,
54
+ end: /$/
55
+ }
56
+ ]
57
+ };
58
+ }
59
+ __name(diff, "diff");
60
+ diff_1 = diff;
61
+ return diff_1;
62
+ }
63
+ __name(requireDiff, "requireDiff");
64
+ export {
65
+ requireDiff as __require
66
+ };
@@ -0,0 +1,167 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var go_1;
4
+ var hasRequiredGo;
5
+ function requireGo() {
6
+ if (hasRequiredGo) return go_1;
7
+ hasRequiredGo = 1;
8
+ function go(hljs) {
9
+ const LITERALS = [
10
+ "true",
11
+ "false",
12
+ "iota",
13
+ "nil"
14
+ ];
15
+ const BUILT_INS = [
16
+ "append",
17
+ "cap",
18
+ "close",
19
+ "complex",
20
+ "copy",
21
+ "imag",
22
+ "len",
23
+ "make",
24
+ "new",
25
+ "panic",
26
+ "print",
27
+ "println",
28
+ "real",
29
+ "recover",
30
+ "delete"
31
+ ];
32
+ const TYPES = [
33
+ "bool",
34
+ "byte",
35
+ "complex64",
36
+ "complex128",
37
+ "error",
38
+ "float32",
39
+ "float64",
40
+ "int8",
41
+ "int16",
42
+ "int32",
43
+ "int64",
44
+ "string",
45
+ "uint8",
46
+ "uint16",
47
+ "uint32",
48
+ "uint64",
49
+ "int",
50
+ "uint",
51
+ "uintptr",
52
+ "rune"
53
+ ];
54
+ const KWS = [
55
+ "break",
56
+ "case",
57
+ "chan",
58
+ "const",
59
+ "continue",
60
+ "default",
61
+ "defer",
62
+ "else",
63
+ "fallthrough",
64
+ "for",
65
+ "func",
66
+ "go",
67
+ "goto",
68
+ "if",
69
+ "import",
70
+ "interface",
71
+ "map",
72
+ "package",
73
+ "range",
74
+ "return",
75
+ "select",
76
+ "struct",
77
+ "switch",
78
+ "type",
79
+ "var"
80
+ ];
81
+ const KEYWORDS = {
82
+ keyword: KWS,
83
+ type: TYPES,
84
+ literal: LITERALS,
85
+ built_in: BUILT_INS
86
+ };
87
+ return {
88
+ name: "Go",
89
+ aliases: ["golang"],
90
+ keywords: KEYWORDS,
91
+ illegal: "</",
92
+ contains: [
93
+ hljs.C_LINE_COMMENT_MODE,
94
+ hljs.C_BLOCK_COMMENT_MODE,
95
+ {
96
+ className: "string",
97
+ variants: [
98
+ hljs.QUOTE_STRING_MODE,
99
+ hljs.APOS_STRING_MODE,
100
+ {
101
+ begin: "`",
102
+ end: "`"
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ className: "number",
108
+ variants: [
109
+ {
110
+ match: /-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,
111
+ // hex without a present digit before . (making a digit afterwards required)
112
+ relevance: 0
113
+ },
114
+ {
115
+ match: /-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,
116
+ // hex with a present digit before . (making a digit afterwards optional)
117
+ relevance: 0
118
+ },
119
+ {
120
+ match: /-?\b0[oO](_?[0-7])*i?/,
121
+ // leading 0o octal
122
+ relevance: 0
123
+ },
124
+ {
125
+ match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,
126
+ // decimal without a present digit before . (making a digit afterwards required)
127
+ relevance: 0
128
+ },
129
+ {
130
+ match: /-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,
131
+ // decimal with a present digit before . (making a digit afterwards optional)
132
+ relevance: 0
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ begin: /:=/
138
+ // relevance booster
139
+ },
140
+ {
141
+ className: "function",
142
+ beginKeywords: "func",
143
+ end: "\\s*(\\{|$)",
144
+ excludeEnd: true,
145
+ contains: [
146
+ hljs.TITLE_MODE,
147
+ {
148
+ className: "params",
149
+ begin: /\(/,
150
+ end: /\)/,
151
+ endsParent: true,
152
+ keywords: KEYWORDS,
153
+ illegal: /["']/
154
+ }
155
+ ]
156
+ }
157
+ ]
158
+ };
159
+ }
160
+ __name(go, "go");
161
+ go_1 = go;
162
+ return go_1;
163
+ }
164
+ __name(requireGo, "requireGo");
165
+ export {
166
+ requireGo as __require
167
+ };
@@ -0,0 +1,83 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var graphql_1;
4
+ var hasRequiredGraphql;
5
+ function requireGraphql() {
6
+ if (hasRequiredGraphql) return graphql_1;
7
+ hasRequiredGraphql = 1;
8
+ function graphql(hljs) {
9
+ const regex = hljs.regex;
10
+ const GQL_NAME = /[_A-Za-z][_0-9A-Za-z]*/;
11
+ return {
12
+ name: "GraphQL",
13
+ aliases: ["gql"],
14
+ case_insensitive: true,
15
+ disableAutodetect: false,
16
+ keywords: {
17
+ keyword: [
18
+ "query",
19
+ "mutation",
20
+ "subscription",
21
+ "type",
22
+ "input",
23
+ "schema",
24
+ "directive",
25
+ "interface",
26
+ "union",
27
+ "scalar",
28
+ "fragment",
29
+ "enum",
30
+ "on"
31
+ ],
32
+ literal: [
33
+ "true",
34
+ "false",
35
+ "null"
36
+ ]
37
+ },
38
+ contains: [
39
+ hljs.HASH_COMMENT_MODE,
40
+ hljs.QUOTE_STRING_MODE,
41
+ hljs.NUMBER_MODE,
42
+ {
43
+ scope: "punctuation",
44
+ match: /[.]{3}/,
45
+ relevance: 0
46
+ },
47
+ {
48
+ scope: "punctuation",
49
+ begin: /[\!\(\)\:\=\[\]\{\|\}]{1}/,
50
+ relevance: 0
51
+ },
52
+ {
53
+ scope: "variable",
54
+ begin: /\$/,
55
+ end: /\W/,
56
+ excludeEnd: true,
57
+ relevance: 0
58
+ },
59
+ {
60
+ scope: "meta",
61
+ match: /@\w+/,
62
+ excludeEnd: true
63
+ },
64
+ {
65
+ scope: "symbol",
66
+ begin: regex.concat(GQL_NAME, regex.lookahead(/\s*:/)),
67
+ relevance: 0
68
+ }
69
+ ],
70
+ illegal: [
71
+ /[;<']/,
72
+ /BEGIN/
73
+ ]
74
+ };
75
+ }
76
+ __name(graphql, "graphql");
77
+ graphql_1 = graphql;
78
+ return graphql_1;
79
+ }
80
+ __name(requireGraphql, "requireGraphql");
81
+ export {
82
+ requireGraphql as __require
83
+ };
@@ -0,0 +1,129 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var ini_1;
4
+ var hasRequiredIni;
5
+ function requireIni() {
6
+ if (hasRequiredIni) return ini_1;
7
+ hasRequiredIni = 1;
8
+ function ini(hljs) {
9
+ const regex = hljs.regex;
10
+ const NUMBERS = {
11
+ className: "number",
12
+ relevance: 0,
13
+ variants: [
14
+ { begin: /([+-]+)?[\d]+_[\d_]+/ },
15
+ { begin: hljs.NUMBER_RE }
16
+ ]
17
+ };
18
+ const COMMENTS = hljs.COMMENT();
19
+ COMMENTS.variants = [
20
+ {
21
+ begin: /;/,
22
+ end: /$/
23
+ },
24
+ {
25
+ begin: /#/,
26
+ end: /$/
27
+ }
28
+ ];
29
+ const VARIABLES = {
30
+ className: "variable",
31
+ variants: [
32
+ { begin: /\$[\w\d"][\w\d_]*/ },
33
+ { begin: /\$\{(.*?)\}/ }
34
+ ]
35
+ };
36
+ const LITERALS = {
37
+ className: "literal",
38
+ begin: /\bon|off|true|false|yes|no\b/
39
+ };
40
+ const STRINGS = {
41
+ className: "string",
42
+ contains: [hljs.BACKSLASH_ESCAPE],
43
+ variants: [
44
+ {
45
+ begin: "'''",
46
+ end: "'''",
47
+ relevance: 10
48
+ },
49
+ {
50
+ begin: '"""',
51
+ end: '"""',
52
+ relevance: 10
53
+ },
54
+ {
55
+ begin: '"',
56
+ end: '"'
57
+ },
58
+ {
59
+ begin: "'",
60
+ end: "'"
61
+ }
62
+ ]
63
+ };
64
+ const ARRAY = {
65
+ begin: /\[/,
66
+ end: /\]/,
67
+ contains: [
68
+ COMMENTS,
69
+ LITERALS,
70
+ VARIABLES,
71
+ STRINGS,
72
+ NUMBERS,
73
+ "self"
74
+ ],
75
+ relevance: 0
76
+ };
77
+ const BARE_KEY = /[A-Za-z0-9_-]+/;
78
+ const QUOTED_KEY_DOUBLE_QUOTE = /"(\\"|[^"])*"/;
79
+ const QUOTED_KEY_SINGLE_QUOTE = /'[^']*'/;
80
+ const ANY_KEY = regex.either(
81
+ BARE_KEY,
82
+ QUOTED_KEY_DOUBLE_QUOTE,
83
+ QUOTED_KEY_SINGLE_QUOTE
84
+ );
85
+ const DOTTED_KEY = regex.concat(
86
+ ANY_KEY,
87
+ "(\\s*\\.\\s*",
88
+ ANY_KEY,
89
+ ")*",
90
+ regex.lookahead(/\s*=\s*[^#\s]/)
91
+ );
92
+ return {
93
+ name: "TOML, also INI",
94
+ aliases: ["toml"],
95
+ case_insensitive: true,
96
+ illegal: /\S/,
97
+ contains: [
98
+ COMMENTS,
99
+ {
100
+ className: "section",
101
+ begin: /\[+/,
102
+ end: /\]+/
103
+ },
104
+ {
105
+ begin: DOTTED_KEY,
106
+ className: "attr",
107
+ starts: {
108
+ end: /$/,
109
+ contains: [
110
+ COMMENTS,
111
+ ARRAY,
112
+ LITERALS,
113
+ VARIABLES,
114
+ STRINGS,
115
+ NUMBERS
116
+ ]
117
+ }
118
+ }
119
+ ]
120
+ };
121
+ }
122
+ __name(ini, "ini");
123
+ ini_1 = ini;
124
+ return ini_1;
125
+ }
126
+ __name(requireIni, "requireIni");
127
+ export {
128
+ requireIni as __require
129
+ };
@@ -0,0 +1,268 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var java_1;
4
+ var hasRequiredJava;
5
+ function requireJava() {
6
+ if (hasRequiredJava) return java_1;
7
+ hasRequiredJava = 1;
8
+ var decimalDigits = "[0-9](_*[0-9])*";
9
+ var frac = `\\.(${decimalDigits})`;
10
+ var hexDigits = "[0-9a-fA-F](_*[0-9a-fA-F])*";
11
+ var NUMERIC = {
12
+ className: "number",
13
+ variants: [
14
+ // DecimalFloatingPointLiteral
15
+ // including ExponentPart
16
+ { begin: `(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})[fFdD]?\\b` },
17
+ // excluding ExponentPart
18
+ { begin: `\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
19
+ { begin: `(${frac})[fFdD]?\\b` },
20
+ { begin: `\\b(${decimalDigits})[fFdD]\\b` },
21
+ // HexadecimalFloatingPointLiteral
22
+ { begin: `\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))[pP][+-]?(${decimalDigits})[fFdD]?\\b` },
23
+ // DecimalIntegerLiteral
24
+ { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
25
+ // HexIntegerLiteral
26
+ { begin: `\\b0[xX](${hexDigits})[lL]?\\b` },
27
+ // OctalIntegerLiteral
28
+ { begin: "\\b0(_*[0-7])*[lL]?\\b" },
29
+ // BinaryIntegerLiteral
30
+ { begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }
31
+ ],
32
+ relevance: 0
33
+ };
34
+ function recurRegex(re, substitution, depth) {
35
+ if (depth === -1) return "";
36
+ return re.replace(substitution, (_) => {
37
+ return recurRegex(re, substitution, depth - 1);
38
+ });
39
+ }
40
+ __name(recurRegex, "recurRegex");
41
+ function java(hljs) {
42
+ const regex = hljs.regex;
43
+ const JAVA_IDENT_RE = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*";
44
+ const GENERIC_IDENT_RE = JAVA_IDENT_RE + recurRegex("(?:<" + JAVA_IDENT_RE + "~~~(?:\\s*,\\s*" + JAVA_IDENT_RE + "~~~)*>)?", /~~~/g, 2);
45
+ const MAIN_KEYWORDS = [
46
+ "synchronized",
47
+ "abstract",
48
+ "private",
49
+ "var",
50
+ "static",
51
+ "if",
52
+ "const ",
53
+ "for",
54
+ "while",
55
+ "strictfp",
56
+ "finally",
57
+ "protected",
58
+ "import",
59
+ "native",
60
+ "final",
61
+ "void",
62
+ "enum",
63
+ "else",
64
+ "break",
65
+ "transient",
66
+ "catch",
67
+ "instanceof",
68
+ "volatile",
69
+ "case",
70
+ "assert",
71
+ "package",
72
+ "default",
73
+ "public",
74
+ "try",
75
+ "switch",
76
+ "continue",
77
+ "throws",
78
+ "protected",
79
+ "public",
80
+ "private",
81
+ "module",
82
+ "requires",
83
+ "exports",
84
+ "do",
85
+ "sealed",
86
+ "yield",
87
+ "permits",
88
+ "goto",
89
+ "when"
90
+ ];
91
+ const BUILT_INS = [
92
+ "super",
93
+ "this"
94
+ ];
95
+ const LITERALS = [
96
+ "false",
97
+ "true",
98
+ "null"
99
+ ];
100
+ const TYPES = [
101
+ "char",
102
+ "boolean",
103
+ "long",
104
+ "float",
105
+ "int",
106
+ "byte",
107
+ "short",
108
+ "double"
109
+ ];
110
+ const KEYWORDS = {
111
+ keyword: MAIN_KEYWORDS,
112
+ literal: LITERALS,
113
+ type: TYPES,
114
+ built_in: BUILT_INS
115
+ };
116
+ const ANNOTATION = {
117
+ className: "meta",
118
+ begin: "@" + JAVA_IDENT_RE,
119
+ contains: [
120
+ {
121
+ begin: /\(/,
122
+ end: /\)/,
123
+ contains: ["self"]
124
+ // allow nested () inside our annotation
125
+ }
126
+ ]
127
+ };
128
+ const PARAMS = {
129
+ className: "params",
130
+ begin: /\(/,
131
+ end: /\)/,
132
+ keywords: KEYWORDS,
133
+ relevance: 0,
134
+ contains: [hljs.C_BLOCK_COMMENT_MODE],
135
+ endsParent: true
136
+ };
137
+ return {
138
+ name: "Java",
139
+ aliases: ["jsp"],
140
+ keywords: KEYWORDS,
141
+ illegal: /<\/|#/,
142
+ contains: [
143
+ hljs.COMMENT(
144
+ "/\\*\\*",
145
+ "\\*/",
146
+ {
147
+ relevance: 0,
148
+ contains: [
149
+ {
150
+ // eat up @'s in emails to prevent them to be recognized as doctags
151
+ begin: /\w+@/,
152
+ relevance: 0
153
+ },
154
+ {
155
+ className: "doctag",
156
+ begin: "@[A-Za-z]+"
157
+ }
158
+ ]
159
+ }
160
+ ),
161
+ // relevance boost
162
+ {
163
+ begin: /import java\.[a-z]+\./,
164
+ keywords: "import",
165
+ relevance: 2
166
+ },
167
+ hljs.C_LINE_COMMENT_MODE,
168
+ hljs.C_BLOCK_COMMENT_MODE,
169
+ {
170
+ begin: /"""/,
171
+ end: /"""/,
172
+ className: "string",
173
+ contains: [hljs.BACKSLASH_ESCAPE]
174
+ },
175
+ hljs.APOS_STRING_MODE,
176
+ hljs.QUOTE_STRING_MODE,
177
+ {
178
+ match: [
179
+ /\b(?:class|interface|enum|extends|implements|new)/,
180
+ /\s+/,
181
+ JAVA_IDENT_RE
182
+ ],
183
+ className: {
184
+ 1: "keyword",
185
+ 3: "title.class"
186
+ }
187
+ },
188
+ {
189
+ // Exceptions for hyphenated keywords
190
+ match: /non-sealed/,
191
+ scope: "keyword"
192
+ },
193
+ {
194
+ begin: [
195
+ regex.concat(/(?!else)/, JAVA_IDENT_RE),
196
+ /\s+/,
197
+ JAVA_IDENT_RE,
198
+ /\s+/,
199
+ /=(?!=)/
200
+ ],
201
+ className: {
202
+ 1: "type",
203
+ 3: "variable",
204
+ 5: "operator"
205
+ }
206
+ },
207
+ {
208
+ begin: [
209
+ /record/,
210
+ /\s+/,
211
+ JAVA_IDENT_RE
212
+ ],
213
+ className: {
214
+ 1: "keyword",
215
+ 3: "title.class"
216
+ },
217
+ contains: [
218
+ PARAMS,
219
+ hljs.C_LINE_COMMENT_MODE,
220
+ hljs.C_BLOCK_COMMENT_MODE
221
+ ]
222
+ },
223
+ {
224
+ // Expression keywords prevent 'keyword Name(...)' from being
225
+ // recognized as a function definition
226
+ beginKeywords: "new throw return else",
227
+ relevance: 0
228
+ },
229
+ {
230
+ begin: [
231
+ "(?:" + GENERIC_IDENT_RE + "\\s+)",
232
+ hljs.UNDERSCORE_IDENT_RE,
233
+ /\s*(?=\()/
234
+ ],
235
+ className: { 2: "title.function" },
236
+ keywords: KEYWORDS,
237
+ contains: [
238
+ {
239
+ className: "params",
240
+ begin: /\(/,
241
+ end: /\)/,
242
+ keywords: KEYWORDS,
243
+ relevance: 0,
244
+ contains: [
245
+ ANNOTATION,
246
+ hljs.APOS_STRING_MODE,
247
+ hljs.QUOTE_STRING_MODE,
248
+ NUMERIC,
249
+ hljs.C_BLOCK_COMMENT_MODE
250
+ ]
251
+ },
252
+ hljs.C_LINE_COMMENT_MODE,
253
+ hljs.C_BLOCK_COMMENT_MODE
254
+ ]
255
+ },
256
+ NUMERIC,
257
+ ANNOTATION
258
+ ]
259
+ };
260
+ }
261
+ __name(java, "java");
262
+ java_1 = java;
263
+ return java_1;
264
+ }
265
+ __name(requireJava, "requireJava");
266
+ export {
267
+ requireJava as __require
268
+ };