@oneflowui/ui 0.4.1 → 0.4.3

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 (233) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/components/ContextMenu/index.vue.js +7 -0
  4. package/dist/components/ContextMenu/index.vue2.js +91 -0
  5. package/dist/components/Dashboard/charts/BarChart.vue.js +7 -0
  6. package/dist/components/Dashboard/charts/BarChart.vue2.js +43 -0
  7. package/dist/components/Dashboard/charts/DoughnutChart.vue.js +23 -0
  8. package/dist/components/Dashboard/charts/DoughnutChart.vue2.js +4 -0
  9. package/dist/components/Dashboard/charts/NumberCard.vue.js +7 -0
  10. package/dist/components/Dashboard/charts/NumberCard.vue2.js +41 -0
  11. package/dist/components/Dashboard/charts/PieChart.vue.js +7 -0
  12. package/dist/components/Dashboard/charts/PieChart.vue2.js +53 -0
  13. package/dist/components/Dashboard/charts/TableChart.vue.js +7 -0
  14. package/dist/components/Dashboard/charts/TableChart.vue2.js +50 -0
  15. package/dist/components/Dashboard/index.vue.js +7 -0
  16. package/dist/components/Dashboard/index.vue2.js +104 -0
  17. package/dist/components/ai/AiMessageBubble.vue.js +7 -0
  18. package/dist/components/ai/AiMessageBubble.vue2.js +47 -0
  19. package/dist/components/ai/AiMessageList.vue.js +7 -0
  20. package/dist/components/ai/AiMessageList.vue2.js +78 -0
  21. package/dist/components/ai/AiSender.vue.js +7 -0
  22. package/dist/components/ai/AiSender.vue2.js +86 -0
  23. package/dist/components/ai/AiStreamingCursor.vue.js +7 -0
  24. package/dist/components/ai/AiStreamingCursor.vue2.js +16 -0
  25. package/dist/components/ai/AiThinking.vue.js +7 -0
  26. package/dist/components/ai/AiThinking.vue2.js +19 -0
  27. package/dist/components/ai/UserMessageBubble.vue.js +7 -0
  28. package/dist/components/ai/UserMessageBubble.vue2.js +34 -0
  29. package/dist/components/auxiliary/ColorPanel.vue.js +7 -0
  30. package/dist/components/auxiliary/ColorPanel.vue2.js +65 -0
  31. package/dist/components/auxiliary/FileUpload.vue.js +7 -0
  32. package/dist/components/auxiliary/FileUpload.vue2.js +90 -0
  33. package/dist/components/auxiliary/PersonPanel.vue.js +7 -0
  34. package/dist/components/auxiliary/PersonPanel.vue2.js +66 -0
  35. package/dist/components/base/Accordion.vue.js +7 -0
  36. package/dist/components/base/Accordion.vue2.js +78 -0
  37. package/dist/components/base/AddViewBtn.vue.js +7 -0
  38. package/dist/components/base/AddViewBtn.vue2.js +25 -0
  39. package/dist/components/base/Avatar.vue.js +7 -0
  40. package/dist/components/base/Avatar.vue2.js +72 -0
  41. package/dist/components/base/Badge.vue.js +7 -0
  42. package/dist/components/base/Badge.vue2.js +70 -0
  43. package/dist/components/base/ButtonGroup.vue.js +7 -0
  44. package/dist/components/base/ButtonGroup.vue2.js +40 -0
  45. package/dist/components/base/ChainItem.vue.js +7 -0
  46. package/dist/components/base/ChainItem.vue2.js +68 -0
  47. package/dist/components/base/DescBlock.vue.js +7 -0
  48. package/dist/components/base/DescBlock.vue2.js +13 -0
  49. package/dist/components/base/DropdownMenu.vue.js +7 -0
  50. package/dist/components/base/DropdownMenu.vue2.js +92 -0
  51. package/dist/components/base/EmptyState.vue.js +7 -0
  52. package/dist/components/base/EmptyState.vue2.js +38 -0
  53. package/dist/components/base/InfoCard.vue.js +7 -0
  54. package/dist/components/base/InfoCard.vue2.js +167 -0
  55. package/dist/components/base/MonitorItem.vue.js +7 -0
  56. package/dist/components/base/MonitorItem.vue2.js +56 -0
  57. package/dist/components/base/PersonaCard.vue.js +7 -0
  58. package/dist/components/base/PersonaCard.vue2.js +173 -0
  59. package/dist/components/base/ProgressBar.vue.js +7 -0
  60. package/dist/components/base/ProgressBar.vue2.js +49 -0
  61. package/dist/components/base/RangeSlider.vue.js +7 -0
  62. package/dist/components/base/RangeSlider.vue2.js +35 -0
  63. package/dist/components/base/RefTag.vue.js +7 -0
  64. package/dist/components/base/RefTag.vue2.js +52 -0
  65. package/dist/components/base/SectionBlock.vue.js +7 -0
  66. package/dist/components/base/SectionBlock.vue2.js +115 -0
  67. package/dist/components/base/SelectBadge.vue.js +7 -0
  68. package/dist/components/base/SelectBadge.vue2.js +81 -0
  69. package/dist/components/base/StatisticCard.vue.js +7 -0
  70. package/dist/components/base/StatisticCard.vue2.js +57 -0
  71. package/dist/components/base/StatusIndicator.vue.js +7 -0
  72. package/dist/components/base/StatusIndicator.vue2.js +54 -0
  73. package/dist/components/base/StatusSummary.vue.js +7 -0
  74. package/dist/components/base/StatusSummary.vue2.js +64 -0
  75. package/dist/components/base/Stepper.vue.js +7 -0
  76. package/dist/components/base/Stepper.vue2.js +70 -0
  77. package/dist/components/base/Switch.vue.js +7 -0
  78. package/dist/components/base/Switch.vue2.js +43 -0
  79. package/dist/components/base/ToolbarBtn.vue.js +7 -0
  80. package/dist/components/base/ToolbarBtn.vue2.js +30 -0
  81. package/dist/components/base/ViewModeGroup.vue.js +7 -0
  82. package/dist/components/base/ViewModeGroup.vue2.js +32 -0
  83. package/dist/components/base/ViewSwitcher.vue.js +7 -0
  84. package/dist/components/base/ViewSwitcher.vue2.js +73 -0
  85. package/dist/components/base/ViewTab.vue.js +7 -0
  86. package/dist/components/base/ViewTab.vue2.js +42 -0
  87. package/dist/components/breadcrumb/Breadcrumb.vue.js +7 -0
  88. package/dist/components/breadcrumb/Breadcrumb.vue2.js +52 -0
  89. package/dist/components/breadcrumb/BreadcrumbItem.vue.js +7 -0
  90. package/dist/components/breadcrumb/BreadcrumbItem.vue2.js +35 -0
  91. package/dist/components/detail/CommentItem.vue.js +7 -0
  92. package/dist/components/detail/CommentItem.vue2.js +29 -0
  93. package/dist/components/detail/DetailLayout.vue.js +7 -0
  94. package/dist/components/detail/DetailLayout.vue2.js +118 -0
  95. package/dist/components/detail/PropPanel.vue.js +7 -0
  96. package/dist/components/detail/PropPanel.vue2.js +51 -0
  97. package/dist/components/detail/PropRow.vue.js +7 -0
  98. package/dist/components/detail/PropRow.vue2.js +51 -0
  99. package/dist/components/editor/BlockQuote.vue.js +7 -0
  100. package/dist/components/editor/BlockQuote.vue2.js +45 -0
  101. package/dist/components/editor/CodeBlock.vue.js +7 -0
  102. package/dist/components/editor/CodeBlock.vue2.js +48 -0
  103. package/dist/components/editor/ContentBlock.vue.js +7 -0
  104. package/dist/components/editor/ContentBlock.vue2.js +49 -0
  105. package/dist/components/editor/RefLink.vue.js +7 -0
  106. package/dist/components/editor/RefLink.vue2.js +37 -0
  107. package/dist/components/editor/RichTextEditor.vue.js +7 -0
  108. package/dist/components/editor/RichTextEditor.vue2.js +132 -0
  109. package/dist/components/field/FieldCheckbox.vue.js +7 -0
  110. package/dist/{FieldCheckbox-CV3QtQ4Y.js → components/field/FieldCheckbox.vue2.js} +8 -9
  111. package/dist/components/field/FieldDate.vue.js +7 -0
  112. package/dist/{FieldDate-Bljx4jb7.js → components/field/FieldDate.vue2.js} +9 -10
  113. package/dist/components/field/FieldDatetime.vue.js +7 -0
  114. package/dist/{FieldDatetime-B52GfWrK.js → components/field/FieldDatetime.vue2.js} +11 -12
  115. package/dist/components/field/FieldEmail.vue.js +7 -0
  116. package/dist/{FieldEmail-UREMoue-.js → components/field/FieldEmail.vue2.js} +12 -13
  117. package/dist/components/field/FieldMultiSelect.vue.js +7 -0
  118. package/dist/{FieldMultiSelect-Dlay1Fop.js → components/field/FieldMultiSelect.vue2.js} +32 -33
  119. package/dist/components/field/FieldNumber.vue.js +7 -0
  120. package/dist/{FieldNumber-BjhfFhs6.js → components/field/FieldNumber.vue2.js} +8 -9
  121. package/dist/components/field/FieldRating.vue.js +7 -0
  122. package/dist/components/field/FieldRating.vue2.js +31 -0
  123. package/dist/components/field/FieldSelect.vue.js +7 -0
  124. package/dist/{FieldSelect-B39Ad8VH.js → components/field/FieldSelect.vue2.js} +34 -35
  125. package/dist/components/field/FieldText.vue.js +7 -0
  126. package/dist/{FieldText-Ry7f72Ug.js → components/field/FieldText.vue2.js} +13 -14
  127. package/dist/components/field/FieldUrl.vue.js +7 -0
  128. package/dist/components/field/FieldUrl.vue2.js +33 -0
  129. package/dist/components/form/FormDesigner.vue.js +7 -0
  130. package/dist/components/form/FormDesigner.vue2.js +245 -0
  131. package/dist/components/gallery/GalleryCard.vue.js +7 -0
  132. package/dist/components/gallery/GalleryCard.vue2.js +87 -0
  133. package/dist/components/gallery/GalleryView.vue.js +7 -0
  134. package/dist/components/gallery/GalleryView.vue2.js +48 -0
  135. package/dist/components/kanban/KanbanBoard.vue.js +7 -0
  136. package/dist/components/kanban/KanbanBoard.vue2.js +86 -0
  137. package/dist/components/kanban/KanbanCard.vue.js +7 -0
  138. package/dist/components/kanban/KanbanCard.vue2.js +56 -0
  139. package/dist/components/kanban/KanbanColumn.vue.js +7 -0
  140. package/dist/components/kanban/KanbanColumn.vue2.js +103 -0
  141. package/dist/components/kanban/QuickAddRow.vue.js +7 -0
  142. package/dist/components/kanban/QuickAddRow.vue2.js +58 -0
  143. package/dist/components/layout/AppLayout.vue.js +7 -0
  144. package/dist/components/layout/AppLayout.vue2.js +98 -0
  145. package/dist/components/layout/Navbar.vue.js +7 -0
  146. package/dist/components/layout/Navbar.vue2.js +70 -0
  147. package/dist/components/layout/Sidebar.vue.js +7 -0
  148. package/dist/components/layout/Sidebar.vue2.js +88 -0
  149. package/dist/components/layout/StatusBar.vue.js +7 -0
  150. package/dist/components/layout/StatusBar.vue2.js +37 -0
  151. package/dist/components/mermaid/MermaidChart.vue.js +7 -0
  152. package/dist/components/mermaid/MermaidChart.vue2.js +75 -0
  153. package/dist/components/overlay/Dialog.vue.js +7 -0
  154. package/dist/components/overlay/Dialog.vue2.js +89 -0
  155. package/dist/components/overlay/Drawer.vue.js +7 -0
  156. package/dist/components/overlay/Drawer.vue2.js +112 -0
  157. package/dist/components/overlay/Modal.vue.js +7 -0
  158. package/dist/components/overlay/Modal.vue2.js +115 -0
  159. package/dist/components/overlay/SidePanel.vue.js +7 -0
  160. package/dist/components/overlay/SidePanel.vue2.js +137 -0
  161. package/dist/components/split/SplitPane.vue.js +8 -0
  162. package/dist/components/split/SplitPane.vue2.js +68 -0
  163. package/dist/components/table/DataTable.vue.js +7 -0
  164. package/dist/components/table/DataTable.vue2.js +234 -0
  165. package/dist/components/table/FieldCell.vue.js +7 -0
  166. package/dist/components/table/FieldCell.vue2.js +71 -0
  167. package/dist/components/table/NewRowBtn.vue.js +7 -0
  168. package/dist/components/table/NewRowBtn.vue2.js +22 -0
  169. package/dist/components/table/TableColumnManager.vue.js +7 -0
  170. package/dist/components/table/TableColumnManager.vue2.js +100 -0
  171. package/dist/components/table/TableDataRow.vue.js +7 -0
  172. package/dist/components/table/TableDataRow.vue2.js +115 -0
  173. package/dist/components/table/TableFilterPanel.vue.js +7 -0
  174. package/dist/components/table/TableFilterPanel.vue2.js +142 -0
  175. package/dist/components/table/TableGroupRow.vue.js +7 -0
  176. package/dist/components/table/TableGroupRow.vue2.js +48 -0
  177. package/dist/components/table/TableHeaderRow.vue.js +7 -0
  178. package/dist/components/table/TableHeaderRow.vue2.js +69 -0
  179. package/dist/components/tabs/TabPanel.vue.js +7 -0
  180. package/dist/components/tabs/TabPanel.vue2.js +26 -0
  181. package/dist/components/tabs/Tabs.vue.js +7 -0
  182. package/dist/components/tabs/Tabs.vue2.js +87 -0
  183. package/dist/components/timeline/ActivityTimeline.vue.js +7 -0
  184. package/dist/components/timeline/ActivityTimeline.vue2.js +104 -0
  185. package/dist/components/timeline/GanttRow.vue.js +7 -0
  186. package/dist/components/timeline/GanttRow.vue2.js +110 -0
  187. package/dist/components/timeline/GanttTimeline.vue.js +7 -0
  188. package/dist/components/timeline/GanttTimeline.vue2.js +185 -0
  189. package/dist/components/toast/ToastContainer.vue.js +34 -0
  190. package/dist/components/toast/ToastContainer.vue3.js +5 -0
  191. package/dist/components/toast/ToastItem.vue.js +7 -0
  192. package/dist/components/toast/ToastItem.vue2.js +78 -0
  193. package/dist/composables/useAiChat.js +103 -0
  194. package/dist/composables/useBadge.js +76 -0
  195. package/dist/composables/useBreakpoint.js +16 -0
  196. package/dist/composables/useInlineEdit.js +28 -0
  197. package/dist/composables/useMarkdown.js +69 -0
  198. package/dist/composables/useStream.js +80 -0
  199. package/dist/composables/useTable.js +115 -0
  200. package/dist/composables/useTableColumns.js +24 -0
  201. package/dist/composables/useTableData.js +16 -0
  202. package/dist/composables/useTableFilter.js +97 -0
  203. package/dist/composables/useTableGroup.js +46 -0
  204. package/dist/composables/useToast.js +38 -0
  205. package/dist/composables/useTypewriter.js +56 -0
  206. package/dist/composables/useVirtualList.js +117 -0
  207. package/dist/constants/table.js +11 -0
  208. package/dist/index.js +301 -0
  209. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +5 -0
  210. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +377 -0
  211. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +923 -0
  212. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +151 -0
  213. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js +240 -0
  214. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +658 -0
  215. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +38 -0
  216. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js +216 -0
  217. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +13 -0
  218. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +399 -0
  219. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +305 -0
  220. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +615 -0
  221. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +753 -0
  222. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +219 -0
  223. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js +183 -0
  224. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1063 -0
  225. package/dist/style.css +1 -1
  226. package/dist/types/index.js +77 -0
  227. package/dist/utils/icon.js +15 -0
  228. package/package.json +13 -6
  229. package/dist/FieldRating-BKHUu-A1.js +0 -32
  230. package/dist/FieldUrl-bv0EB9sh.js +0 -34
  231. package/dist/index-DQph5iTq.js +0 -12936
  232. package/dist/oneflow-ui.js +0 -111
  233. package/dist/oneflow-ui.umd.cjs +0 -13
@@ -0,0 +1,151 @@
1
+ function c(e) {
2
+ const n = {
3
+ keyword: [
4
+ "break",
5
+ "case",
6
+ "chan",
7
+ "const",
8
+ "continue",
9
+ "default",
10
+ "defer",
11
+ "else",
12
+ "fallthrough",
13
+ "for",
14
+ "func",
15
+ "go",
16
+ "goto",
17
+ "if",
18
+ "import",
19
+ "interface",
20
+ "map",
21
+ "package",
22
+ "range",
23
+ "return",
24
+ "select",
25
+ "struct",
26
+ "switch",
27
+ "type",
28
+ "var"
29
+ ],
30
+ type: [
31
+ "bool",
32
+ "byte",
33
+ "complex64",
34
+ "complex128",
35
+ "error",
36
+ "float32",
37
+ "float64",
38
+ "int8",
39
+ "int16",
40
+ "int32",
41
+ "int64",
42
+ "string",
43
+ "uint8",
44
+ "uint16",
45
+ "uint32",
46
+ "uint64",
47
+ "int",
48
+ "uint",
49
+ "uintptr",
50
+ "rune"
51
+ ],
52
+ literal: [
53
+ "true",
54
+ "false",
55
+ "iota",
56
+ "nil"
57
+ ],
58
+ built_in: [
59
+ "append",
60
+ "cap",
61
+ "close",
62
+ "complex",
63
+ "copy",
64
+ "imag",
65
+ "len",
66
+ "make",
67
+ "new",
68
+ "panic",
69
+ "print",
70
+ "println",
71
+ "real",
72
+ "recover",
73
+ "delete"
74
+ ]
75
+ };
76
+ return {
77
+ name: "Go",
78
+ aliases: ["golang"],
79
+ keywords: n,
80
+ illegal: "</",
81
+ contains: [
82
+ e.C_LINE_COMMENT_MODE,
83
+ e.C_BLOCK_COMMENT_MODE,
84
+ {
85
+ className: "string",
86
+ variants: [
87
+ e.QUOTE_STRING_MODE,
88
+ e.APOS_STRING_MODE,
89
+ {
90
+ begin: "`",
91
+ end: "`"
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ className: "number",
97
+ variants: [
98
+ {
99
+ match: /-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,
100
+ // hex without a present digit before . (making a digit afterwards required)
101
+ relevance: 0
102
+ },
103
+ {
104
+ match: /-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,
105
+ // hex with a present digit before . (making a digit afterwards optional)
106
+ relevance: 0
107
+ },
108
+ {
109
+ match: /-?\b0[oO](_?[0-7])*i?/,
110
+ // leading 0o octal
111
+ relevance: 0
112
+ },
113
+ {
114
+ match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,
115
+ // decimal without a present digit before . (making a digit afterwards required)
116
+ relevance: 0
117
+ },
118
+ {
119
+ match: /-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,
120
+ // decimal with a present digit before . (making a digit afterwards optional)
121
+ relevance: 0
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ begin: /:=/
127
+ // relevance booster
128
+ },
129
+ {
130
+ className: "function",
131
+ beginKeywords: "func",
132
+ end: "\\s*(\\{|$)",
133
+ excludeEnd: !0,
134
+ contains: [
135
+ e.TITLE_MODE,
136
+ {
137
+ className: "params",
138
+ begin: /\(/,
139
+ end: /\)/,
140
+ endsParent: !0,
141
+ keywords: n,
142
+ illegal: /["']/
143
+ }
144
+ ]
145
+ }
146
+ ]
147
+ };
148
+ }
149
+ export {
150
+ c as default
151
+ };
@@ -0,0 +1,240 @@
1
+ var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", _ = {
2
+ className: "number",
3
+ variants: [
4
+ // DecimalFloatingPointLiteral
5
+ // including ExponentPart
6
+ { begin: `(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b` },
7
+ // excluding ExponentPart
8
+ { begin: `\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
9
+ { begin: `(${r})[fFdD]?\\b` },
10
+ { begin: `\\b(${n})[fFdD]\\b` },
11
+ // HexadecimalFloatingPointLiteral
12
+ { begin: `\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b` },
13
+ // DecimalIntegerLiteral
14
+ { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
15
+ // HexIntegerLiteral
16
+ { begin: `\\b0[xX](${i})[lL]?\\b` },
17
+ // OctalIntegerLiteral
18
+ { begin: "\\b0(_*[0-7])*[lL]?\\b" },
19
+ // BinaryIntegerLiteral
20
+ { begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }
21
+ ],
22
+ relevance: 0
23
+ };
24
+ function b(e, t, a) {
25
+ return a === -1 ? "" : e.replace(t, (c) => b(e, t, a - 1));
26
+ }
27
+ function M(e) {
28
+ const t = e.regex, a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", c = a + b("(?:<" + a + "~~~(?:\\s*,\\s*" + a + "~~~)*>)?", /~~~/g, 2), s = {
29
+ keyword: [
30
+ "synchronized",
31
+ "abstract",
32
+ "private",
33
+ "var",
34
+ "static",
35
+ "if",
36
+ "const ",
37
+ "for",
38
+ "while",
39
+ "strictfp",
40
+ "finally",
41
+ "protected",
42
+ "import",
43
+ "native",
44
+ "final",
45
+ "void",
46
+ "enum",
47
+ "else",
48
+ "break",
49
+ "transient",
50
+ "catch",
51
+ "instanceof",
52
+ "volatile",
53
+ "case",
54
+ "assert",
55
+ "package",
56
+ "default",
57
+ "public",
58
+ "try",
59
+ "switch",
60
+ "continue",
61
+ "throws",
62
+ "protected",
63
+ "public",
64
+ "private",
65
+ "module",
66
+ "requires",
67
+ "exports",
68
+ "do",
69
+ "sealed",
70
+ "yield",
71
+ "permits",
72
+ "goto",
73
+ "when"
74
+ ],
75
+ literal: [
76
+ "false",
77
+ "true",
78
+ "null"
79
+ ],
80
+ type: [
81
+ "char",
82
+ "boolean",
83
+ "long",
84
+ "float",
85
+ "int",
86
+ "byte",
87
+ "short",
88
+ "double"
89
+ ],
90
+ built_in: [
91
+ "super",
92
+ "this"
93
+ ]
94
+ }, o = {
95
+ className: "meta",
96
+ begin: "@" + a,
97
+ contains: [
98
+ {
99
+ begin: /\(/,
100
+ end: /\)/,
101
+ contains: ["self"]
102
+ // allow nested () inside our annotation
103
+ }
104
+ ]
105
+ }, l = {
106
+ className: "params",
107
+ begin: /\(/,
108
+ end: /\)/,
109
+ keywords: s,
110
+ relevance: 0,
111
+ contains: [e.C_BLOCK_COMMENT_MODE],
112
+ endsParent: !0
113
+ };
114
+ return {
115
+ name: "Java",
116
+ aliases: ["jsp"],
117
+ keywords: s,
118
+ illegal: /<\/|#/,
119
+ contains: [
120
+ e.COMMENT(
121
+ "/\\*\\*",
122
+ "\\*/",
123
+ {
124
+ relevance: 0,
125
+ contains: [
126
+ {
127
+ // eat up @'s in emails to prevent them to be recognized as doctags
128
+ begin: /\w+@/,
129
+ relevance: 0
130
+ },
131
+ {
132
+ className: "doctag",
133
+ begin: "@[A-Za-z]+"
134
+ }
135
+ ]
136
+ }
137
+ ),
138
+ // relevance boost
139
+ {
140
+ begin: /import java\.[a-z]+\./,
141
+ keywords: "import",
142
+ relevance: 2
143
+ },
144
+ e.C_LINE_COMMENT_MODE,
145
+ e.C_BLOCK_COMMENT_MODE,
146
+ {
147
+ begin: /"""/,
148
+ end: /"""/,
149
+ className: "string",
150
+ contains: [e.BACKSLASH_ESCAPE]
151
+ },
152
+ e.APOS_STRING_MODE,
153
+ e.QUOTE_STRING_MODE,
154
+ {
155
+ match: [
156
+ /\b(?:class|interface|enum|extends|implements|new)/,
157
+ /\s+/,
158
+ a
159
+ ],
160
+ className: {
161
+ 1: "keyword",
162
+ 3: "title.class"
163
+ }
164
+ },
165
+ {
166
+ // Exceptions for hyphenated keywords
167
+ match: /non-sealed/,
168
+ scope: "keyword"
169
+ },
170
+ {
171
+ begin: [
172
+ t.concat(/(?!else)/, a),
173
+ /\s+/,
174
+ a,
175
+ /\s+/,
176
+ /=(?!=)/
177
+ ],
178
+ className: {
179
+ 1: "type",
180
+ 3: "variable",
181
+ 5: "operator"
182
+ }
183
+ },
184
+ {
185
+ begin: [
186
+ /record/,
187
+ /\s+/,
188
+ a
189
+ ],
190
+ className: {
191
+ 1: "keyword",
192
+ 3: "title.class"
193
+ },
194
+ contains: [
195
+ l,
196
+ e.C_LINE_COMMENT_MODE,
197
+ e.C_BLOCK_COMMENT_MODE
198
+ ]
199
+ },
200
+ {
201
+ // Expression keywords prevent 'keyword Name(...)' from being
202
+ // recognized as a function definition
203
+ beginKeywords: "new throw return else",
204
+ relevance: 0
205
+ },
206
+ {
207
+ begin: [
208
+ "(?:" + c + "\\s+)",
209
+ e.UNDERSCORE_IDENT_RE,
210
+ /\s*(?=\()/
211
+ ],
212
+ className: { 2: "title.function" },
213
+ keywords: s,
214
+ contains: [
215
+ {
216
+ className: "params",
217
+ begin: /\(/,
218
+ end: /\)/,
219
+ keywords: s,
220
+ relevance: 0,
221
+ contains: [
222
+ o,
223
+ e.APOS_STRING_MODE,
224
+ e.QUOTE_STRING_MODE,
225
+ _,
226
+ e.C_BLOCK_COMMENT_MODE
227
+ ]
228
+ },
229
+ e.C_LINE_COMMENT_MODE,
230
+ e.C_BLOCK_COMMENT_MODE
231
+ ]
232
+ },
233
+ _,
234
+ o
235
+ ]
236
+ };
237
+ }
238
+ export {
239
+ M as default
240
+ };