xmlui 0.10.12 → 0.10.14
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/lib/{index-CDOoBf2R.mjs → index-779mp2Bm.mjs} +1508 -1287
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-BAV9RKui.mjs → initMock-CAXdczCj.mjs} +1 -1
- package/dist/lib/scss/components-core/theming/_themes.scss +1 -1
- package/dist/lib/xmlui.d.ts +17 -2
- package/dist/lib/xmlui.mjs +33 -32
- package/dist/metadata/{collectedComponentMetadata-Dp8BqWQO.mjs → collectedComponentMetadata-7DFXlw-J.mjs} +14957 -14751
- package/dist/metadata/{initMock-BvEO8W8r.mjs → initMock-AFWEftc6.mjs} +1 -1
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +3 -3
- package/dist/scripts/bin/build-lib.js +21 -13
- package/dist/scripts/bin/viteConfig.js +3 -1
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/abstractions/scripting/Token.js +2 -0
- package/dist/scripts/src/abstractions/scripting/TryScope.js +2 -0
- package/dist/scripts/src/abstractions/scripting/modules.js +2 -0
- package/dist/scripts/src/components/APICall/APICall.spec.js +910 -0
- package/dist/scripts/src/components/Accordion/Accordion.spec.js +969 -0
- package/dist/scripts/src/components/Animation/Animation.js +50 -0
- package/dist/scripts/src/components/App/App.spec.js +219 -0
- package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +169 -0
- package/dist/scripts/src/components/AppState/AppState.spec.js +268 -0
- package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +383 -0
- package/dist/scripts/src/components/Avatar/Avatar.spec.js +1543 -0
- package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +131 -0
- package/dist/scripts/src/components/Badge/Badge.spec.js +2214 -0
- package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +230 -0
- package/dist/scripts/src/components/Breakout/Breakout.spec.js +56 -0
- package/dist/scripts/src/components/Button/Button-style.spec.js +274 -0
- package/dist/scripts/src/components/Button/Button.spec.js +454 -0
- package/dist/scripts/src/components/Card/Card.spec.js +150 -0
- package/dist/scripts/src/components/Carousel/Carousel.spec.js +343 -0
- package/dist/scripts/src/components/Carousel/CarouselNative.js +2 -2
- package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +169 -0
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +999 -0
- package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +597 -0
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +608 -0
- package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +539 -0
- package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +558 -0
- package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +450 -0
- package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +584 -0
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +571 -0
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +449 -0
- package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +964 -0
- package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +196 -0
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +3 -3
- package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +283 -0
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +16 -5
- package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +53 -0
- package/dist/scripts/src/components/ComponentProvider.js +6 -6
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +338 -0
- package/dist/scripts/src/components/DateInput/DateInput.spec.js +918 -0
- package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +362 -0
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +3 -3
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +331 -0
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +1 -1
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +29 -0
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +435 -0
- package/dist/scripts/src/components/FileInput/FileInput.spec.js +249 -0
- package/dist/scripts/src/components/FileInput/FileInputNative.js +14 -10
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +296 -0
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +1 -1
- package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +518 -0
- package/dist/scripts/src/components/Footer/Footer.spec.js +991 -0
- package/dist/scripts/src/components/Form/Form.js +6 -0
- package/dist/scripts/src/components/Form/Form.spec.js +1257 -0
- package/dist/scripts/src/components/Form/FormNative.js +13 -3
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +723 -0
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +2 -2
- package/dist/scripts/src/components/FormSection/FormSection.js +6 -31
- package/dist/scripts/src/components/Fragment/Fragment.js +5 -1
- package/dist/scripts/src/components/Fragment/Fragment.spec.js +50 -0
- package/dist/scripts/src/components/Heading/H1.spec.js +66 -0
- package/dist/scripts/src/components/Heading/H2.spec.js +66 -0
- package/dist/scripts/src/components/Heading/H3.spec.js +66 -0
- package/dist/scripts/src/components/Heading/H4.spec.js +66 -0
- package/dist/scripts/src/components/Heading/H5.spec.js +66 -0
- package/dist/scripts/src/components/Heading/H6.spec.js +66 -0
- package/dist/scripts/src/components/Heading/Heading.js +0 -12
- package/dist/scripts/src/components/Heading/Heading.spec.js +897 -0
- package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +69 -0
- package/dist/scripts/src/components/IFrame/IFrame.spec.js +527 -0
- package/dist/scripts/src/components/Icon/ArrowDropDown.js +11 -0
- package/dist/scripts/src/components/Icon/ArrowDropUp.js +11 -0
- package/dist/scripts/src/components/Icon/ArrowLeft.js +11 -0
- package/dist/scripts/src/components/Icon/ArrowRight.js +11 -0
- package/dist/scripts/src/components/Icon/ChevronDownIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ChevronUpIcon.js +7 -0
- package/dist/scripts/src/components/Icon/Icon.spec.js +527 -0
- package/dist/scripts/src/components/Icon/SunIcon.js +10 -0
- package/dist/scripts/src/components/Image/Image.js +2 -1
- package/dist/scripts/src/components/Image/Image.spec.js +198 -0
- package/dist/scripts/src/components/Image/ImageNative.js +30 -2
- package/dist/scripts/src/components/Input/InputLabel.js +25 -0
- package/dist/scripts/src/components/Input/index.js +5 -0
- package/dist/scripts/src/components/Items/Items.spec.js +397 -0
- package/dist/scripts/src/components/Link/Link.spec.js +894 -0
- package/dist/scripts/src/components/List/List.spec.js +927 -0
- package/dist/scripts/src/components/List/doc-resources/list-component-data.js +53 -0
- package/dist/scripts/src/components/Markdown/Markdown.spec.js +188 -0
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +1 -1
- package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +162 -0
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +1 -1
- package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +153 -0
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +2 -2
- package/dist/scripts/src/components/NavLink/NavLink.spec.js +864 -0
- package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +864 -0
- package/dist/scripts/src/components/NoResult/NoResult.spec.js +863 -0
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +1231 -0
- package/dist/scripts/src/components/Option/Option.spec.js +472 -0
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +80 -0
- package/dist/scripts/src/components/Pagination/Pagination.spec.js +1003 -0
- package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +20 -0
- package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +166 -0
- package/dist/scripts/src/components/Queue/Queue.spec.js +626 -0
- package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +479 -0
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +17 -1
- package/dist/scripts/src/components/Redirect/Redirect.spec.js +527 -0
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +76 -0
- package/dist/scripts/src/components/Select/Select.spec.js +527 -0
- package/dist/scripts/src/components/Slider/Slider.js +2 -0
- package/dist/scripts/src/components/Slider/Slider.spec.js +574 -0
- package/dist/scripts/src/components/Slider/SliderNative.js +62 -25
- package/dist/scripts/src/components/Slot/Slot.spec.js +368 -0
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +184 -0
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +161 -0
- package/dist/scripts/src/components/Splitter/HSplitter.spec.js +104 -0
- package/dist/scripts/src/components/Splitter/Splitter.spec.js +543 -0
- package/dist/scripts/src/components/Splitter/VSplitter.spec.js +104 -0
- package/dist/scripts/src/components/Stack/CHStack.spec.js +86 -0
- package/dist/scripts/src/components/Stack/CVStack.spec.js +86 -0
- package/dist/scripts/src/components/Stack/HStack.spec.js +67 -0
- package/dist/scripts/src/components/Stack/Stack.spec.js +654 -0
- package/dist/scripts/src/components/Stack/VStack.spec.js +67 -0
- package/dist/scripts/src/components/Switch/Switch.spec.js +829 -0
- package/dist/scripts/src/components/Table/Table.js +8 -5
- package/dist/scripts/src/components/Table/Table.spec.js +555 -0
- package/dist/scripts/src/components/Table/TableNative.js +1 -1
- package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +53 -0
- package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +838 -0
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +875 -0
- package/dist/scripts/src/components/Text/Text.js +0 -13
- package/dist/scripts/src/components/Text/Text.spec.js +1075 -0
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +714 -0
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +8 -1
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +643 -0
- package/dist/scripts/src/components/Theme/NotificationToast.js +4 -1
- package/dist/scripts/src/components/Theme/Theme.spec.js +124 -0
- package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +1122 -0
- package/dist/scripts/src/components/Timer/Timer.spec.js +358 -0
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +414 -0
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +89 -0
- package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +418 -0
- package/dist/scripts/src/components/chart-color-schemes.js +43 -0
- package/dist/scripts/src/components-core/CompoundComponent.js +5 -5
- package/dist/scripts/src/components-core/RestApiProxy.js +89 -11
- package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +8 -0
- package/dist/scripts/src/components-core/renderers.js +31 -0
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +1 -1
- package/dist/scripts/src/components-core/rendering/Container.js +19 -8
- package/dist/scripts/src/components-core/rendering/reducer.js +1 -1
- package/dist/scripts/src/components-core/script-runner/simplify-expression.js +386 -0
- package/dist/scripts/src/components-core/theming/component-layout-resolver.js +153 -0
- package/dist/scripts/src/components-core/theming/parse-layout-props.js +98 -0
- package/dist/scripts/src/components-core/theming/themes/root.js +13 -20
- package/dist/scripts/src/components-core/theming/themes/solid.js +16 -0
- package/dist/scripts/src/components-core/utils/audio-utils.js +83 -0
- package/dist/scripts/src/index-standalone.js +61 -0
- package/dist/scripts/src/index.js +2 -1
- package/dist/scripts/src/language-server/server-common.js +151 -0
- package/dist/scripts/src/language-server/server-web-worker.js +47 -0
- package/dist/scripts/src/language-server/server.js +42 -0
- package/dist/scripts/src/language-server/services/common/docs-generation.js +73 -0
- package/dist/scripts/src/language-server/services/common/lsp-utils.js +9 -0
- package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +135 -0
- package/dist/scripts/src/language-server/services/completion.js +270 -0
- package/dist/scripts/src/language-server/services/diagnostic.js +19 -0
- package/dist/scripts/src/language-server/services/format.js +430 -0
- package/dist/scripts/src/language-server/services/hover.js +164 -0
- package/dist/scripts/src/language-server/xmlui-metadata-generated.mjs +16266 -0
- package/dist/scripts/src/logging/xmlui.js +21 -0
- package/dist/scripts/src/parsers/common/utils.js +19 -0
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +286 -0
- package/dist/scripts/src/syntax/monaco/index.js +14 -0
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +25 -0
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +25 -0
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +310 -0
- package/dist/scripts/src/syntax/textMate/index.js +14 -0
- package/dist/scripts/src/syntax/textMate/xmlui-dark.json +631 -0
- package/dist/scripts/src/syntax/textMate/xmlui-light.json +565 -0
- package/dist/scripts/src/syntax/textMate/xmlui.json +564 -0
- package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +341 -0
- package/dist/scripts/src/testing/ComponentDrivers.js +1355 -0
- package/dist/scripts/src/testing/assertions.js +444 -0
- package/dist/scripts/src/testing/component-test-helpers.js +389 -0
- package/dist/scripts/src/testing/drivers/DateInputDriver.js +19 -0
- package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +10 -0
- package/dist/scripts/src/testing/drivers/TimeInputDriver.js +22 -0
- package/dist/scripts/src/testing/drivers/TimerDriver.js +64 -0
- package/dist/scripts/src/testing/fixtures.js +487 -0
- package/dist/scripts/src/testing/infrastructure/TestBed.js +17 -0
- package/dist/scripts/src/testing/infrastructure/main.js +9 -0
- package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +266 -0
- package/dist/scripts/src/testing/themed-app-test-helpers.js +139 -0
- package/dist/standalone/xmlui-standalone.es.d.ts +19 -2
- package/dist/standalone/xmlui-standalone.umd.js +36 -36
- package/package.json +1 -1
- package/dist/scripts/src/components/RadioGroup/RadioItem.js +0 -28
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "xmlui",
|
|
3
|
+
"scopeName": "source.xmlui",
|
|
4
|
+
"patterns": [{ "include": "#root" }],
|
|
5
|
+
"repository": {
|
|
6
|
+
"root": {
|
|
7
|
+
"patterns": [
|
|
8
|
+
{ "include": "#comments" },
|
|
9
|
+
{ "include": "#helperTag" },
|
|
10
|
+
{ "include": "#componentTag" },
|
|
11
|
+
{ "include": "#entity" },
|
|
12
|
+
{ "include": "#textWithBindingExpr" },
|
|
13
|
+
{
|
|
14
|
+
"begin": "(<!\\[)(CDATA)(\\[)",
|
|
15
|
+
"beginCaptures": {
|
|
16
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
17
|
+
"2": { "name": "storage.xmlui" },
|
|
18
|
+
"3": { "name": "punctuation.definition.tag.xmlui" }
|
|
19
|
+
},
|
|
20
|
+
"end": "]]>",
|
|
21
|
+
"endCaptures": {
|
|
22
|
+
"0": { "name": "punctuation.definition.tag.xmlui" }
|
|
23
|
+
},
|
|
24
|
+
"contentName": "string.unquoted.cdata.xmlui"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"methodTag": {
|
|
29
|
+
"begin": "(<)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(method)",
|
|
30
|
+
"beginCaptures": {
|
|
31
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
32
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
33
|
+
"3": { "name": "entity.name.tag.localname.xmlui" }
|
|
34
|
+
},
|
|
35
|
+
"endCaptures": {
|
|
36
|
+
"0": { "name": "punctuation.definition.tag.xmlui" }
|
|
37
|
+
},
|
|
38
|
+
"applyEndPatternLast": "1",
|
|
39
|
+
"patterns": [
|
|
40
|
+
{ "include": "#comments" },
|
|
41
|
+
{ "include": "#valueAttributeScriptInside" },
|
|
42
|
+
{ "include": "#attribute" },
|
|
43
|
+
{
|
|
44
|
+
"begin": "(?<!/|(?:/\\s*(?:method))\\s*)>",
|
|
45
|
+
"beginCaptures": {
|
|
46
|
+
"0": {
|
|
47
|
+
"name": "punctuation.definition.tag.xmlui"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"endCaptures": {
|
|
51
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
52
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
53
|
+
"3": { "name": "entity.name.tag.localname.xmlui" }
|
|
54
|
+
},
|
|
55
|
+
"contentName": "meta.embedded.block.javascript",
|
|
56
|
+
"patterns": [{ "include": "source.js" }],
|
|
57
|
+
"end": "(</)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(method)(?=\\s*>)"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"end": "/?>"
|
|
61
|
+
},
|
|
62
|
+
"eventTag": {
|
|
63
|
+
"begin": "(<)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(event)",
|
|
64
|
+
"beginCaptures": {
|
|
65
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
66
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
67
|
+
"3": { "name": "entity.name.tag.localname.xmlui" }
|
|
68
|
+
},
|
|
69
|
+
"endCaptures": {
|
|
70
|
+
"0": { "name": "punctuation.definition.tag.xmlui" }
|
|
71
|
+
},
|
|
72
|
+
"applyEndPatternLast": "1",
|
|
73
|
+
"patterns": [
|
|
74
|
+
{ "include": "#comments" },
|
|
75
|
+
{ "include": "#valueAttributeScriptInside" },
|
|
76
|
+
{ "include": "#attribute" },
|
|
77
|
+
{
|
|
78
|
+
"begin": "(?<!/|(?:/\\s*event)\\s*)(>)",
|
|
79
|
+
"beginCaptures": {
|
|
80
|
+
"0": {
|
|
81
|
+
"name": "punctuation.definition.tag.xmlui"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"endCaptures": {
|
|
85
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
86
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
87
|
+
"3": { "name": "entity.name.tag.localname.xmlui" }
|
|
88
|
+
},
|
|
89
|
+
"patterns": [
|
|
90
|
+
{ "include": "#comments" },
|
|
91
|
+
{ "include": "#componentTag" },
|
|
92
|
+
{ "include": "source.js" }
|
|
93
|
+
],
|
|
94
|
+
"end": "(</)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(event)(?=\\s*>)"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"end": ">"
|
|
98
|
+
},
|
|
99
|
+
"fieldTag": {
|
|
100
|
+
"begin": "(<)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(field)",
|
|
101
|
+
"beginCaptures": {
|
|
102
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
103
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
104
|
+
"3": { "name": "entity.name.tag.localname.xmlui" }
|
|
105
|
+
},
|
|
106
|
+
"endCaptures": {
|
|
107
|
+
"0": { "name": "punctuation.definition.tag.xmlui" }
|
|
108
|
+
},
|
|
109
|
+
"applyEndPatternLast": "1",
|
|
110
|
+
"patterns": [
|
|
111
|
+
{ "include": "#comments" },
|
|
112
|
+
{ "include": "#valueAttributeScriptInside" },
|
|
113
|
+
{ "include": "#attribute" },
|
|
114
|
+
{
|
|
115
|
+
"begin": "(?<!/|(?:/\\s*field)\\s*)(>)",
|
|
116
|
+
"beginCaptures": {
|
|
117
|
+
"0": {
|
|
118
|
+
"name": "punctuation.definition.tag.xmlui"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"endCaptures": {
|
|
122
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
123
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
124
|
+
"3": { "name": "entity.name.tag.localname.xmlui" }
|
|
125
|
+
},
|
|
126
|
+
"patterns": [
|
|
127
|
+
{ "include": "#comments" },
|
|
128
|
+
{ "include": "#componentTag" },
|
|
129
|
+
{ "include": "source.js" }
|
|
130
|
+
],
|
|
131
|
+
"end": "(</)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(field)(?=\\s*>)"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"end": ">"
|
|
135
|
+
},
|
|
136
|
+
"itemTag": {
|
|
137
|
+
"begin": "(<)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(item)",
|
|
138
|
+
"beginCaptures": {
|
|
139
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
140
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
141
|
+
"3": { "name": "entity.name.tag.localname.xmlui" }
|
|
142
|
+
},
|
|
143
|
+
"endCaptures": {
|
|
144
|
+
"0": { "name": "punctuation.definition.tag.xmlui" }
|
|
145
|
+
},
|
|
146
|
+
"applyEndPatternLast": "1",
|
|
147
|
+
"patterns": [
|
|
148
|
+
{ "include": "#comments" },
|
|
149
|
+
{ "include": "#valueAttributeScriptInside" },
|
|
150
|
+
{ "include": "#attribute" },
|
|
151
|
+
{
|
|
152
|
+
"begin": "(?<!/|(?:/\\s*item)\\s*)(>)",
|
|
153
|
+
"beginCaptures": {
|
|
154
|
+
"0": {
|
|
155
|
+
"name": "punctuation.definition.tag.xmlui"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"endCaptures": {
|
|
159
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
160
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
161
|
+
"3": { "name": "entity.name.tag.localname.xmlui" }
|
|
162
|
+
},
|
|
163
|
+
"patterns": [
|
|
164
|
+
{ "include": "#comments" },
|
|
165
|
+
{ "include": "#componentTag" },
|
|
166
|
+
{ "include": "source.js" }
|
|
167
|
+
],
|
|
168
|
+
"end": "(</)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(item)(?=\\s*>)"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"end": ">"
|
|
172
|
+
},
|
|
173
|
+
"bindingExpr": {
|
|
174
|
+
"contentName": "meta.embedded.block.javascript",
|
|
175
|
+
"begin": "\\{",
|
|
176
|
+
"end": "\\}",
|
|
177
|
+
"beginCaptures": {
|
|
178
|
+
"0": { "name": "entity.name.function.xmlui punctuation.definition.block.xmlui" }
|
|
179
|
+
},
|
|
180
|
+
"endCaptures": {
|
|
181
|
+
"0": { "name": "entity.name.function.xmlui punctuation.definition.block.xmlui" }
|
|
182
|
+
},
|
|
183
|
+
"patterns": [{ "include": "source.js" }]
|
|
184
|
+
},
|
|
185
|
+
"helperTag": {
|
|
186
|
+
"patterns": [
|
|
187
|
+
{ "include": "#scriptTag" },
|
|
188
|
+
{ "include": "#eventTag" },
|
|
189
|
+
{ "include": "#fieldTag" },
|
|
190
|
+
{ "include": "#itemTag" },
|
|
191
|
+
{ "include": "#methodTag" },
|
|
192
|
+
{ "include": "#propOrVarTag" }
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
"valueAttributeScriptInside": {
|
|
196
|
+
"patterns": [
|
|
197
|
+
{
|
|
198
|
+
"captures": {
|
|
199
|
+
"1": { "name": "entity.other.attribute-name.localname.xmlui" },
|
|
200
|
+
"2": { "name": "keyword.operator.xmlui" }
|
|
201
|
+
},
|
|
202
|
+
"match": "(?:^|\\s+)(value)(\\s*=)"
|
|
203
|
+
},
|
|
204
|
+
{ "include": "#quotedStringJsInside" }
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
"scriptTag": {
|
|
208
|
+
"begin": "(\\s*<)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(script)(\\s*>)",
|
|
209
|
+
"end": "(\\s*</)(\\2)(\\3)(\\s*>)",
|
|
210
|
+
"contentName": "meta.embedded.block.javascript",
|
|
211
|
+
"beginCaptures": {
|
|
212
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
213
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
214
|
+
"3": { "name": "entity.name.function.xmlui" },
|
|
215
|
+
"4": { "name": "punctuation.definition.tag.xmlui" }
|
|
216
|
+
},
|
|
217
|
+
"endCaptures": {
|
|
218
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
219
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
220
|
+
"3": { "name": "entity.name.function.xmlui" },
|
|
221
|
+
"4": { "name": "punctuation.definition.tag.xmlui" }
|
|
222
|
+
},
|
|
223
|
+
"patterns": [{ "include": "source.js" }]
|
|
224
|
+
},
|
|
225
|
+
"textWithBindingExpr": {
|
|
226
|
+
"patterns": [{ "include": "#entity" }, { "match": "\\\\{" }, { "include": "#bindingExpr" }]
|
|
227
|
+
},
|
|
228
|
+
"propOrVarTag": {
|
|
229
|
+
"begin": "(</?)([a-zA-Z_][\\w\\.\\-]*?:)?((?:variable)|(?:property)|(?:prop))",
|
|
230
|
+
"beginCaptures": {
|
|
231
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
232
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
233
|
+
"3": { "name": "entity.name.tag.localname.xmlui" }
|
|
234
|
+
},
|
|
235
|
+
"end": "(/?>)",
|
|
236
|
+
"endCaptures": {
|
|
237
|
+
"1": { "name": "punctuation.definition.tag.xmlui" }
|
|
238
|
+
},
|
|
239
|
+
"patterns": [{ "include": "#attribute" }, { "include": "#comments" }]
|
|
240
|
+
},
|
|
241
|
+
"componentTag": {
|
|
242
|
+
"begin": "(\\s*</?)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)([a-zA-Z][\\w\\.\\-]*)",
|
|
243
|
+
"beginCaptures": {
|
|
244
|
+
"1": { "name": "punctuation.definition.tag.xmlui" },
|
|
245
|
+
"2": { "name": "keyword.operator.namespace.xmlui" },
|
|
246
|
+
"3": { "name": "support.class.tag.component.xmlui" }
|
|
247
|
+
},
|
|
248
|
+
"end": "(/?>)",
|
|
249
|
+
"endCaptures": {
|
|
250
|
+
"1": { "name": "punctuation.definition.tag.xmlui" }
|
|
251
|
+
},
|
|
252
|
+
"patterns": [
|
|
253
|
+
{ "include": "#comments" },
|
|
254
|
+
{ "include": "#eventHandler" },
|
|
255
|
+
{ "include": "#attribute" }
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"quotedStringJsInside": {
|
|
259
|
+
"begin": "\"|'|`",
|
|
260
|
+
"beginCaptures": {
|
|
261
|
+
"0": { "name": "string.xmlui" }
|
|
262
|
+
},
|
|
263
|
+
"end": "\\0",
|
|
264
|
+
"endCaptures": {
|
|
265
|
+
"0": { "name": "string.xmlui" }
|
|
266
|
+
},
|
|
267
|
+
"contentName": "meta.embedded.block.javascript",
|
|
268
|
+
"patterns": [{ "include": "source.js" }]
|
|
269
|
+
},
|
|
270
|
+
"entity": {
|
|
271
|
+
"captures": {
|
|
272
|
+
"1": { "name": "punctuation.definition.constant.xmlui" },
|
|
273
|
+
"2": { "name": "punctuation.definition.constant.xmlui" },
|
|
274
|
+
"3": { "name": "punctuation.definition.constant.xmlui" }
|
|
275
|
+
},
|
|
276
|
+
"match": "(&)((?:amp)|(?:lt)|(?:gt)|(?:quot)|(?:apos))(;)"
|
|
277
|
+
},
|
|
278
|
+
"eventHandler": {
|
|
279
|
+
"patterns": [
|
|
280
|
+
{
|
|
281
|
+
"captures": {
|
|
282
|
+
"1": { "name": "entity.other.attribute-name.localname.xmlui" },
|
|
283
|
+
"2": { "name": "keyword.operator.xmlui" }
|
|
284
|
+
},
|
|
285
|
+
"match": "(?:^|\\s+)(on[A-Z][-\\w.:$]*)(\\s*=)"
|
|
286
|
+
},
|
|
287
|
+
{ "include": "#quotedStringJsInside" }
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
"attribute": {
|
|
291
|
+
"patterns": [
|
|
292
|
+
{
|
|
293
|
+
"begin": "(?:^|\\s+)((?:[a-zA-Z$_][-\\w.$]*:)?)([a-zA-Z$_][-\\w.$]*)(\\s*=\\s*)(['\"`])",
|
|
294
|
+
"end": "\\4",
|
|
295
|
+
"beginCaptures": {
|
|
296
|
+
"1": { "name": "keyword.operator.namespace.xmlui" },
|
|
297
|
+
"2": { "name": "entity.other.attribute-name.localname.xmlui" },
|
|
298
|
+
"3": { "name": "keyword.operator.xmlui" },
|
|
299
|
+
"4": { "name": "string.xmlui" }
|
|
300
|
+
},
|
|
301
|
+
"endCaptures": {
|
|
302
|
+
"0": { "name": "string.xmlui" }
|
|
303
|
+
},
|
|
304
|
+
"contentName": "string.xmlui",
|
|
305
|
+
"patterns": [{ "include": "#textWithBindingExpr" }]
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"match": "(?:^|\\s+)((?:[a-zA-Z$_][-\\w.$]*:)?)([a-zA-Z$_][-\\w.$]*)(\\s*=\\s*)([a-zA-Z$_][-\\w.$]*)",
|
|
309
|
+
"captures": {
|
|
310
|
+
"1": { "name": "keyword.operator.namespace.xmlui" },
|
|
311
|
+
"2": { "name": "entity.other.attribute-name.localname.xmlui" },
|
|
312
|
+
"3": { "name": "keyword.operator.xmlui" },
|
|
313
|
+
"4": { "name": "string.xmlui" }
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"match": "(?:^|\\s+)((?:[a-zA-Z$_][-\\w.$]*:)?)([a-zA-Z$_][-\\w.$]*)",
|
|
318
|
+
"name": "entity.other.attribute-name.localname.xmlui",
|
|
319
|
+
"captures": {
|
|
320
|
+
"1": { "name": "keyword.operator.namespace.xmlui" },
|
|
321
|
+
"2": { "name": "entity.other.attribute-name.localname.xmlui" }
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
"comments": {
|
|
327
|
+
"patterns": [
|
|
328
|
+
{
|
|
329
|
+
"begin": "<!--",
|
|
330
|
+
"captures": {
|
|
331
|
+
"0": {
|
|
332
|
+
"name": "punctuation.definition.comment.xmlui"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"end": "-->",
|
|
336
|
+
"name": "comment.block.xmlui"
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|