neo.mjs 5.18.0 → 6.0.1

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 (304) hide show
  1. package/apps/ServiceWorker.mjs +2 -2
  2. package/buildScripts/buildThemes.mjs +89 -192
  3. package/buildScripts/createClass.mjs +13 -11
  4. package/buildScripts/watchThemes.mjs +41 -83
  5. package/examples/ServiceWorker.mjs +2 -2
  6. package/examples/fieldWithPrefix/MainContainer.mjs +151 -0
  7. package/examples/fieldWithPrefix/app.mjs +6 -0
  8. package/examples/fieldWithPrefix/index.html +11 -0
  9. package/examples/fieldWithPrefix/neo-config.json +7 -0
  10. package/examples/form/field/fileupload/MainContainer.mjs +1 -1
  11. package/examples/form/field/fileupload/server.mjs +2 -2
  12. package/package.json +2 -2
  13. package/resources/scss/src/Global.scss +7 -7
  14. package/resources/scss/src/apps/covid/HeaderContainer.scss +25 -25
  15. package/resources/scss/src/apps/covid/country/Gallery.scss +6 -6
  16. package/resources/scss/src/apps/covid/country/Helix.scss +8 -8
  17. package/resources/scss/src/apps/covid/country/LineChartComponent.scss +2 -2
  18. package/resources/scss/src/apps/docs/ContentTabContainer.scss +3 -3
  19. package/resources/scss/src/apps/docs/HeaderContainer.scss +8 -8
  20. package/resources/scss/src/apps/docs/MainContainer.scss +1 -1
  21. package/resources/scss/src/apps/docs/classdetails/HeaderComponent.scss +1 -1
  22. package/resources/scss/src/apps/docs/classdetails/MembersList.scss +16 -16
  23. package/resources/scss/src/apps/docs/classdetails/TutorialComponent.scss +3 -3
  24. package/resources/scss/src/apps/website/HeaderContainer.scss +9 -9
  25. package/resources/scss/src/apps/website/MainContainer.scss +3 -3
  26. package/resources/scss/src/apps/website/blog/Container.scss +3 -3
  27. package/resources/scss/src/apps/website/blog/List.scss +8 -8
  28. package/resources/scss/src/apps/website/examples/List.scss +7 -7
  29. package/resources/scss/src/apps/website/home/TabContainer.scss +5 -5
  30. package/resources/scss/src/button/Base.scss +101 -101
  31. package/resources/scss/src/button/Split.scss +3 -3
  32. package/resources/scss/src/calendar/view/EditEventContainer.scss +4 -4
  33. package/resources/scss/src/calendar/view/MainContainer.scss +46 -46
  34. package/resources/scss/src/calendar/view/SettingsContainer.scss +3 -3
  35. package/resources/scss/src/calendar/view/YearComponent.scss +13 -13
  36. package/resources/scss/src/calendar/view/calendars/EditContainer.scss +4 -4
  37. package/resources/scss/src/calendar/view/calendars/List.scss +7 -7
  38. package/resources/scss/src/calendar/view/month/Component.scss +15 -13
  39. package/resources/scss/src/calendar/view/week/Component.scss +12 -12
  40. package/resources/scss/src/calendar/view/week/TimeAxisComponent.scss +4 -4
  41. package/resources/scss/src/component/BoxLabel.scss +5 -5
  42. package/resources/scss/src/component/Chip.scss +13 -13
  43. package/resources/scss/src/component/Circle.scss +2 -2
  44. package/resources/scss/src/component/DateSelector.scss +28 -28
  45. package/resources/scss/src/component/Helix.scss +1 -1
  46. package/resources/scss/src/component/Process.scss +17 -17
  47. package/resources/scss/src/component/Progress.scss +2 -2
  48. package/resources/scss/src/component/Splitter.scss +6 -6
  49. package/resources/scss/src/component/StatusBadge.scss +21 -21
  50. package/resources/scss/src/component/Timer.scss +9 -9
  51. package/resources/scss/src/component/Toast.scss +10 -10
  52. package/resources/scss/src/component/Video.scss +5 -5
  53. package/resources/scss/src/container/Accordion.scss +3 -3
  54. package/resources/scss/src/container/AccordionItem.scss +15 -15
  55. package/resources/scss/src/container/Base.scss +3 -3
  56. package/resources/scss/src/container/Panel.scss +4 -4
  57. package/resources/scss/src/container/Viewport.scss +2 -2
  58. package/resources/scss/src/dialog/Base.scss +8 -8
  59. package/resources/scss/src/draggable/list/DragZone.scss +2 -2
  60. package/resources/scss/src/examples/ConfigurationPanel.scss +3 -3
  61. package/resources/scss/src/examples/calendar/basic/MainContainer.scss +2 -2
  62. package/resources/scss/src/examples/fieldWithPrefix/MainContainer.scss +25 -0
  63. package/resources/scss/src/examples/treeSelectionModel/MainContainer.scss +6 -6
  64. package/resources/scss/src/form/Fieldset.scss +4 -4
  65. package/resources/scss/src/form/field/CheckBox.scss +10 -10
  66. package/resources/scss/src/form/field/FileUpload.scss +25 -12
  67. package/resources/scss/src/form/field/Number.scss +5 -5
  68. package/resources/scss/src/form/field/Picker.scss +3 -3
  69. package/resources/scss/src/form/field/Range.scss +5 -5
  70. package/resources/scss/src/form/field/Search.scss +1 -1
  71. package/resources/scss/src/form/field/Select.scss +8 -8
  72. package/resources/scss/src/form/field/Switch.scss +6 -6
  73. package/resources/scss/src/form/field/Text.scss +78 -78
  74. package/resources/scss/src/form/field/TextArea.scss +1 -1
  75. package/resources/scss/src/form/field/trigger/Base.scss +6 -6
  76. package/resources/scss/src/form/field/trigger/Clear.scss +2 -2
  77. package/resources/scss/src/form/field/trigger/CopyToClipboard.scss +3 -3
  78. package/resources/scss/src/form/field/trigger/Time.scss +5 -5
  79. package/resources/scss/src/grid/Container.scss +6 -6
  80. package/resources/scss/src/grid/View.scss +11 -11
  81. package/resources/scss/src/grid/header/Button.scss +5 -5
  82. package/resources/scss/src/grid/header/Toolbar.scss +2 -2
  83. package/resources/scss/src/list/Base.scss +11 -11
  84. package/resources/scss/src/list/Chip.scss +3 -3
  85. package/resources/scss/src/list/Circle.scss +2 -2
  86. package/resources/scss/src/menu/List.scss +21 -21
  87. package/resources/scss/src/menu/Panel.scss +1 -1
  88. package/resources/scss/src/plugin/PrefixField.scss +5 -0
  89. package/resources/scss/src/sitemap/Component.scss +2 -2
  90. package/resources/scss/src/tab/Container.scss +1 -1
  91. package/resources/scss/src/tab/Strip.scss +7 -7
  92. package/resources/scss/src/tab/header/Button.scss +26 -26
  93. package/resources/scss/src/tab/header/Toolbar.scss +18 -18
  94. package/resources/scss/src/table/Container.scss +16 -16
  95. package/resources/scss/src/table/View.scss +11 -11
  96. package/resources/scss/src/table/header/Button.scss +5 -5
  97. package/resources/scss/src/toolbar/Base.scss +20 -20
  98. package/resources/scss/src/toolbar/Breadcrumb.scss +1 -1
  99. package/resources/scss/src/tree/List.scss +5 -5
  100. package/resources/scss/theme-dark/Global.scss +7 -17
  101. package/resources/scss/theme-dark/apps/covid/HeaderContainer.scss +10 -23
  102. package/resources/scss/theme-dark/apps/covid/country/Gallery.scss +7 -17
  103. package/resources/scss/theme-dark/apps/covid/country/Helix.scss +8 -19
  104. package/resources/scss/theme-dark/apps/covid/country/LineChartComponent.scss +3 -9
  105. package/resources/scss/theme-dark/apps/docs/ContentTabContainer.scss +4 -11
  106. package/resources/scss/theme-dark/apps/docs/HeaderContainer.scss +10 -23
  107. package/resources/scss/theme-dark/apps/docs/MainContainer.scss +3 -9
  108. package/resources/scss/theme-dark/apps/docs/classdetails/HeaderComponent.scss +4 -11
  109. package/resources/scss/theme-dark/apps/docs/classdetails/MembersList.scss +17 -37
  110. package/resources/scss/theme-dark/apps/docs/classdetails/TutorialComponent.scss +4 -11
  111. package/resources/scss/theme-dark/apps/website/HeaderContainer.scss +5 -13
  112. package/resources/scss/theme-dark/apps/website/MainContainer.scss +4 -11
  113. package/resources/scss/theme-dark/apps/website/blog/Container.scss +3 -9
  114. package/resources/scss/theme-dark/apps/website/home/TabContainer.scss +4 -11
  115. package/resources/scss/theme-dark/button/Base.scss +108 -219
  116. package/resources/scss/theme-dark/calendar/view/EditEventContainer.scss +4 -12
  117. package/resources/scss/theme-dark/calendar/view/MainContainer.scss +22 -48
  118. package/resources/scss/theme-dark/calendar/view/SettingsContainer.scss +4 -11
  119. package/resources/scss/theme-dark/calendar/view/YearComponent.scss +10 -23
  120. package/resources/scss/theme-dark/calendar/view/calendars/EditContainer.scss +4 -12
  121. package/resources/scss/theme-dark/calendar/view/calendars/List.scss +2 -8
  122. package/resources/scss/theme-dark/calendar/view/month/Component.scss +9 -22
  123. package/resources/scss/theme-dark/calendar/view/week/Component.scss +12 -28
  124. package/resources/scss/theme-dark/component/BoxLabel.scss +5 -13
  125. package/resources/scss/theme-dark/component/Chip.scss +14 -31
  126. package/resources/scss/theme-dark/component/DateSelector.scss +24 -52
  127. package/resources/scss/theme-dark/component/Process.scss +9 -21
  128. package/resources/scss/theme-dark/component/Progress.scss +3 -9
  129. package/resources/scss/theme-dark/component/Splitter.scss +4 -12
  130. package/resources/scss/theme-dark/component/StatusBadge.scss +19 -41
  131. package/resources/scss/theme-dark/component/Timer.scss +4 -13
  132. package/resources/scss/theme-dark/component/Toast.scss +8 -20
  133. package/resources/scss/theme-dark/component/Video.scss +3 -10
  134. package/resources/scss/theme-dark/container/Accordion.scss +5 -13
  135. package/resources/scss/theme-dark/container/AccordionItem.scss +10 -23
  136. package/resources/scss/theme-dark/container/Base.scss +4 -11
  137. package/resources/scss/theme-dark/container/Panel.scss +5 -13
  138. package/resources/scss/theme-dark/container/Viewport.scss +3 -9
  139. package/resources/scss/theme-dark/dialog/Base.scss +5 -13
  140. package/resources/scss/theme-dark/examples/ConfigurationPanel.scss +3 -9
  141. package/resources/scss/theme-dark/examples/calendar/basic/MainContainer.scss +3 -10
  142. package/resources/scss/theme-dark/form/Fieldset.scss +5 -14
  143. package/resources/scss/theme-dark/form/field/CheckBox.scss +7 -18
  144. package/resources/scss/theme-dark/form/field/FileUpload.scss +11 -26
  145. package/resources/scss/theme-dark/form/field/Picker.scss +5 -13
  146. package/resources/scss/theme-dark/form/field/Range.scss +4 -11
  147. package/resources/scss/theme-dark/form/field/Search.scss +3 -9
  148. package/resources/scss/theme-dark/form/field/Select.scss +8 -20
  149. package/resources/scss/theme-dark/form/field/Switch.scss +6 -16
  150. package/resources/scss/theme-dark/form/field/Text.scss +31 -66
  151. package/resources/scss/theme-dark/form/field/trigger/Base.scss +5 -14
  152. package/resources/scss/theme-dark/form/field/trigger/Time.scss +3 -10
  153. package/resources/scss/theme-dark/grid/Container.scss +6 -16
  154. package/resources/scss/theme-dark/grid/View.scss +12 -28
  155. package/resources/scss/theme-dark/grid/header/Button.scss +5 -14
  156. package/resources/scss/theme-dark/list/Base.scss +11 -26
  157. package/resources/scss/theme-dark/menu/List.scss +20 -44
  158. package/resources/scss/theme-dark/menu/Panel.scss +2 -8
  159. package/resources/scss/theme-dark/tab/Container.scss +3 -9
  160. package/resources/scss/theme-dark/tab/Strip.scss +5 -13
  161. package/resources/scss/theme-dark/tab/header/Button.scss +29 -62
  162. package/resources/scss/theme-dark/table/Container.scss +9 -22
  163. package/resources/scss/theme-dark/table/View.scss +13 -29
  164. package/resources/scss/theme-dark/table/header/Button.scss +6 -16
  165. package/resources/scss/theme-dark/toolbar/Base.scss +4 -11
  166. package/resources/scss/theme-dark/tree/List.scss +4 -11
  167. package/resources/scss/theme-light/Global.scss +7 -17
  168. package/resources/scss/theme-light/apps/covid/HeaderContainer.scss +10 -23
  169. package/resources/scss/theme-light/apps/covid/country/Gallery.scss +7 -17
  170. package/resources/scss/theme-light/apps/covid/country/Helix.scss +8 -19
  171. package/resources/scss/theme-light/apps/covid/country/LineChartComponent.scss +3 -9
  172. package/resources/scss/theme-light/apps/docs/ContentTabContainer.scss +4 -11
  173. package/resources/scss/theme-light/apps/docs/HeaderContainer.scss +10 -23
  174. package/resources/scss/theme-light/apps/docs/MainContainer.scss +3 -9
  175. package/resources/scss/theme-light/apps/docs/classdetails/HeaderComponent.scss +4 -11
  176. package/resources/scss/theme-light/apps/docs/classdetails/MembersList.scss +17 -37
  177. package/resources/scss/theme-light/apps/docs/classdetails/TutorialComponent.scss +4 -11
  178. package/resources/scss/theme-light/apps/website/HeaderContainer.scss +5 -13
  179. package/resources/scss/theme-light/apps/website/MainContainer.scss +4 -11
  180. package/resources/scss/theme-light/apps/website/blog/Container.scss +3 -9
  181. package/resources/scss/theme-light/apps/website/home/TabContainer.scss +4 -11
  182. package/resources/scss/theme-light/button/Base.scss +107 -218
  183. package/resources/scss/theme-light/calendar/view/EditEventContainer.scss +4 -12
  184. package/resources/scss/theme-light/calendar/view/MainContainer.scss +22 -48
  185. package/resources/scss/theme-light/calendar/view/SettingsContainer.scss +3 -11
  186. package/resources/scss/theme-light/calendar/view/YearComponent.scss +10 -23
  187. package/resources/scss/theme-light/calendar/view/calendars/EditContainer.scss +4 -12
  188. package/resources/scss/theme-light/calendar/view/calendars/List.scss +2 -8
  189. package/resources/scss/theme-light/calendar/view/month/Component.scss +10 -23
  190. package/resources/scss/theme-light/calendar/view/week/Component.scss +12 -28
  191. package/resources/scss/theme-light/component/BoxLabel.scss +5 -13
  192. package/resources/scss/theme-light/component/Chip.scss +14 -31
  193. package/resources/scss/theme-light/component/DateSelector.scss +24 -52
  194. package/resources/scss/theme-light/component/Process.scss +9 -21
  195. package/resources/scss/theme-light/component/Progress.scss +3 -9
  196. package/resources/scss/theme-light/component/Splitter.scss +4 -12
  197. package/resources/scss/theme-light/component/StatusBadge.scss +19 -41
  198. package/resources/scss/theme-light/component/Timer.scss +5 -14
  199. package/resources/scss/theme-light/component/Toast.scss +8 -20
  200. package/resources/scss/theme-light/component/Video.scss +3 -10
  201. package/resources/scss/theme-light/container/Accordion.scss +5 -13
  202. package/resources/scss/theme-light/container/AccordionItem.scss +10 -23
  203. package/resources/scss/theme-light/container/Base.scss +4 -11
  204. package/resources/scss/theme-light/container/Panel.scss +5 -13
  205. package/resources/scss/theme-light/container/Viewport.scss +3 -9
  206. package/resources/scss/theme-light/dialog/Base.scss +5 -13
  207. package/resources/scss/theme-light/examples/ConfigurationPanel.scss +3 -9
  208. package/resources/scss/theme-light/examples/calendar/basic/MainContainer.scss +3 -10
  209. package/resources/scss/theme-light/form/Fieldset.scss +5 -14
  210. package/resources/scss/theme-light/form/field/CheckBox.scss +7 -18
  211. package/resources/scss/theme-light/form/field/FileUpload.scss +11 -26
  212. package/resources/scss/theme-light/form/field/Picker.scss +5 -13
  213. package/resources/scss/theme-light/form/field/Range.scss +4 -11
  214. package/resources/scss/theme-light/form/field/Search.scss +3 -9
  215. package/resources/scss/theme-light/form/field/Select.scss +9 -21
  216. package/resources/scss/theme-light/form/field/Switch.scss +6 -16
  217. package/resources/scss/theme-light/form/field/Text.scss +31 -66
  218. package/resources/scss/theme-light/form/field/trigger/Base.scss +5 -14
  219. package/resources/scss/theme-light/form/field/trigger/Time.scss +3 -10
  220. package/resources/scss/theme-light/grid/Container.scss +6 -16
  221. package/resources/scss/theme-light/grid/View.scss +12 -28
  222. package/resources/scss/theme-light/grid/header/Button.scss +5 -14
  223. package/resources/scss/theme-light/list/Base.scss +12 -27
  224. package/resources/scss/theme-light/menu/List.scss +20 -44
  225. package/resources/scss/theme-light/menu/Panel.scss +2 -8
  226. package/resources/scss/theme-light/tab/Container.scss +3 -9
  227. package/resources/scss/theme-light/tab/Strip.scss +5 -13
  228. package/resources/scss/theme-light/tab/header/Button.scss +29 -62
  229. package/resources/scss/theme-light/table/Container.scss +9 -22
  230. package/resources/scss/theme-light/table/View.scss +13 -29
  231. package/resources/scss/theme-light/table/header/Button.scss +6 -16
  232. package/resources/scss/theme-light/toolbar/Base.scss +4 -11
  233. package/resources/scss/theme-light/tree/List.scss +4 -11
  234. package/src/DefaultConfig.mjs +2 -2
  235. package/src/component/Splitter.mjs +0 -1
  236. package/src/draggable/tab/header/toolbar/SortZone.mjs +3 -3
  237. package/src/form/field/FileUpload.mjs +32 -5
  238. package/src/form/field/Text.mjs +1 -1
  239. package/src/main/DomAccess.mjs +2 -2
  240. package/src/main/DomEvents.mjs +50 -12
  241. package/src/manager/DomEvent.mjs +1 -0
  242. package/src/plugin/PrefixField.mjs +304 -0
  243. package/src/tab/header/Toolbar.mjs +8 -8
  244. package/resources/scss/mixins/_all.scss +0 -31
  245. package/resources/scss/theme-dark/_all.scss +0 -15
  246. package/resources/scss/theme-dark/apps/_all.scss +0 -3
  247. package/resources/scss/theme-dark/apps/covid/_all.scss +0 -4
  248. package/resources/scss/theme-dark/apps/docs/ExamplesTreeList.scss +0 -0
  249. package/resources/scss/theme-dark/apps/docs/TutorialsTreeList.scss +0 -0
  250. package/resources/scss/theme-dark/apps/docs/_all.scss +0 -6
  251. package/resources/scss/theme-dark/apps/docs/classdetails/HierarchyTreeList.scss +0 -0
  252. package/resources/scss/theme-dark/apps/docs/classdetails/MainContainer.scss +0 -0
  253. package/resources/scss/theme-dark/apps/docs/classdetails/_all.scss +0 -5
  254. package/resources/scss/theme-dark/apps/website/_all.scss +0 -4
  255. package/resources/scss/theme-dark/button/_all.scss +0 -1
  256. package/resources/scss/theme-dark/calendar/_all.scss +0 -8
  257. package/resources/scss/theme-dark/component/Circle.scss +0 -0
  258. package/resources/scss/theme-dark/component/_all.scss +0 -5
  259. package/resources/scss/theme-dark/container/_all.scss +0 -3
  260. package/resources/scss/theme-dark/dialog/_all.scss +0 -1
  261. package/resources/scss/theme-dark/examples/_all.scss +0 -2
  262. package/resources/scss/theme-dark/form/_all.scss +0 -9
  263. package/resources/scss/theme-dark/form/field/trigger/Clear.scss +0 -0
  264. package/resources/scss/theme-dark/form/field/trigger/_all.scss +0 -3
  265. package/resources/scss/theme-dark/grid/_all.scss +0 -3
  266. package/resources/scss/theme-dark/grid/header/Toolbar.scss +0 -0
  267. package/resources/scss/theme-dark/grid/header/_all.scss +0 -2
  268. package/resources/scss/theme-dark/list/_all.scss +0 -1
  269. package/resources/scss/theme-dark/menu/_all.scss +0 -2
  270. package/resources/scss/theme-dark/tab/_all.scss +0 -3
  271. package/resources/scss/theme-dark/table/_all.scss +0 -3
  272. package/resources/scss/theme-dark/table/header/Toolbar.scss +0 -0
  273. package/resources/scss/theme-dark/table/header/_all.scss +0 -2
  274. package/resources/scss/theme-dark/tree/_all.scss +0 -1
  275. package/resources/scss/theme-light/_all.scss +0 -15
  276. package/resources/scss/theme-light/apps/_all.scss +0 -3
  277. package/resources/scss/theme-light/apps/covid/_all.scss +0 -4
  278. package/resources/scss/theme-light/apps/docs/ExamplesTreeList.scss +0 -0
  279. package/resources/scss/theme-light/apps/docs/TutorialsTreeList.scss +0 -0
  280. package/resources/scss/theme-light/apps/docs/_all.scss +0 -6
  281. package/resources/scss/theme-light/apps/docs/classdetails/HierarchyTreeList.scss +0 -0
  282. package/resources/scss/theme-light/apps/docs/classdetails/MainContainer.scss +0 -0
  283. package/resources/scss/theme-light/apps/docs/classdetails/_all.scss +0 -5
  284. package/resources/scss/theme-light/apps/website/_all.scss +0 -4
  285. package/resources/scss/theme-light/button/_all.scss +0 -1
  286. package/resources/scss/theme-light/calendar/_all.scss +0 -8
  287. package/resources/scss/theme-light/component/Circle.scss +0 -0
  288. package/resources/scss/theme-light/component/_all.scss +0 -5
  289. package/resources/scss/theme-light/container/_all.scss +0 -3
  290. package/resources/scss/theme-light/dialog/_all.scss +0 -1
  291. package/resources/scss/theme-light/examples/_all.scss +0 -2
  292. package/resources/scss/theme-light/form/_all.scss +0 -9
  293. package/resources/scss/theme-light/form/field/trigger/Clear.scss +0 -0
  294. package/resources/scss/theme-light/form/field/trigger/_all.scss +0 -3
  295. package/resources/scss/theme-light/grid/_all.scss +0 -3
  296. package/resources/scss/theme-light/grid/header/Toolbar.scss +0 -0
  297. package/resources/scss/theme-light/grid/header/_all.scss +0 -2
  298. package/resources/scss/theme-light/list/_all.scss +0 -1
  299. package/resources/scss/theme-light/menu/_all.scss +0 -2
  300. package/resources/scss/theme-light/tab/_all.scss +0 -3
  301. package/resources/scss/theme-light/table/_all.scss +0 -3
  302. package/resources/scss/theme-light/table/header/Toolbar.scss +0 -0
  303. package/resources/scss/theme-light/table/header/_all.scss +0 -2
  304. package/resources/scss/theme-light/tree/_all.scss +0 -1
@@ -1,29 +1,13 @@
1
- $neoMap: map-merge($neoMap, (
2
- 'table-cell-background-color-hover' : lighten(#33343d, 70%),
3
- 'table-cellmodel-selected-cell-background-color' : lighten(#64B5F6, 22%),
4
- 'table-cellmodel-selected-cell-color' : #2b2b2b,
5
- 'table-cellmodel-selected-column-cell-background-color': lighten(#4f558a, 52%),
6
- 'table-cellmodel-selected-column-cell-color' : #2b2b2b,
7
- 'table-cellrowmodel-selected-cell-background-color' : lighten(#64B5F6, 22%),
8
- 'table-cellrowmodel-selected-cell-color' : #2b2b2b,
9
- 'table-cellrowmodel-selected-row-cell-background-color': lighten(#4f558a, 52%),
10
- 'table-cellrowmodel-selected-row-cell-color' : #2b2b2b,
11
- 'table-rowmodel-selected-cell-background-color' : lighten(#64B5F6, 22%),
12
- 'table-rowmodel-selected-cell-color' : #2b2b2b
13
- ));
14
-
15
- @if $useCssVars == true {
16
- :root .neo-theme-light { // .neo-table-view
17
- --table-cell-background-color-hover : #{neo(table-cell-background-color-hover)};
18
- --table-cellmodel-selected-cell-background-color : #{neo(table-cellmodel-selected-cell-background-color)};
19
- --table-cellmodel-selected-cell-color : #{neo(table-cellmodel-selected-cell-color)};
20
- --table-cellmodel-selected-column-cell-background-color: #{neo(table-cellmodel-selected-column-cell-background-color)};
21
- --table-cellmodel-selected-column-cell-color : #{neo(table-cellmodel-selected-column-cell-color)};
22
- --table-cellrowmodel-selected-cell-background-color : #{neo(table-cellrowmodel-selected-cell-background-color)};
23
- --table-cellrowmodel-selected-cell-color : #{neo(table-cellrowmodel-selected-cell-color)};
24
- --table-cellrowmodel-selected-row-cell-background-color: #{neo(table-cellrowmodel-selected-row-cell-background-color)};
25
- --table-cellrowmodel-selected-row-cell-color : #{neo(table-cellrowmodel-selected-row-cell-color)};
26
- --table-rowmodel-selected-cell-background-color : #{neo(table-rowmodel-selected-cell-background-color)};
27
- --table-rowmodel-selected-cell-color : #{neo(table-rowmodel-selected-cell-color)};
28
- }
29
- }
1
+ :root .neo-theme-light { // .neo-table-view
2
+ --table-cell-background-color-hover : #{lighten(#33343d, 70%)};
3
+ --table-cellmodel-selected-cell-background-color : #{lighten(#64B5F6, 22%)};
4
+ --table-cellmodel-selected-cell-color : #2b2b2b;
5
+ --table-cellmodel-selected-column-cell-background-color: #{lighten(#4f558a, 52%)};
6
+ --table-cellmodel-selected-column-cell-color : #2b2b2b;
7
+ --table-cellrowmodel-selected-cell-background-color : #{lighten(#64B5F6, 22%)};
8
+ --table-cellrowmodel-selected-cell-color : #2b2b2b;
9
+ --table-cellrowmodel-selected-row-cell-background-color: #{lighten(#4f558a, 52%)};
10
+ --table-cellrowmodel-selected-row-cell-color : #2b2b2b;
11
+ --table-rowmodel-selected-cell-background-color : #{lighten(#64B5F6, 22%)};
12
+ --table-rowmodel-selected-cell-color : #2b2b2b;
13
+ }
@@ -1,17 +1,7 @@
1
- $neoMap: map-merge($neoMap, (
2
- 'table-header-button-background-color' : #5d83a7,
3
- 'table-header-button-background-image' : none,
4
- 'table-header-button-color' : #fff,
5
- 'table-header-button-glyph-color' : #fff,
6
- 'table-header-button-ripple-background-color': darken(#5d83a7, 10%),
7
- ));
8
-
9
- @if $useCssVars == true {
10
- :root .neo-theme-light { // .neo-table-header-button
11
- --table-header-button-background-color : #{neo(table-header-button-background-color)};
12
- --table-header-button-background-image : #{neo(table-header-button-background-image)};
13
- --table-header-button-color : #{neo(table-header-button-color)};
14
- --table-header-button-glyph-color : #{neo(table-header-button-glyph-color)};
15
- --table-header-button-ripple-background-color: #{neo(table-header-button-ripple-background-color)};
16
- }
1
+ :root .neo-theme-light { // .neo-table-header-button
2
+ --table-header-button-background-color : #5d83a7;
3
+ --table-header-button-background-image : none;
4
+ --table-header-button-color : #fff;
5
+ --table-header-button-glyph-color : #fff;
6
+ --table-header-button-ripple-background-color: #{darken(#5d83a7, 10%)};
17
7
  }
@@ -1,11 +1,4 @@
1
- $neoMap: map-merge($neoMap, (
2
- 'toolbar-background-color': #fff,
3
- 'toolbar-padding' : 5px
4
- ));
5
-
6
- @if $useCssVars == true {
7
- :root .neo-theme-light { // .neo-toolbar
8
- --toolbar-background-color: #{neo(toolbar-background-color)};
9
- --toolbar-padding : #{neo(toolbar-padding)};
10
- }
11
- }
1
+ :root .neo-theme-light { // .neo-toolbar
2
+ --toolbar-background-color: #fff;
3
+ --toolbar-padding : 5px;
4
+ }
@@ -1,11 +1,4 @@
1
- $neoMap: map-merge($neoMap, (
2
- 'tree-list-color' : #666,
3
- 'tree-list-menu-item-color': #1c60a0
4
- ));
5
-
6
- @if $useCssVars == true {
7
- :root .neo-theme-light { // .neo-tree-list
8
- --tree-list-color : #{neo(tree-list-color)};
9
- --tree-list-menu-item-color: #{neo(tree-list-menu-item-color)};
10
- }
11
- }
1
+ :root .neo-theme-light { // .neo-tree-list
2
+ --tree-list-color : #666;
3
+ --tree-list-menu-item-color: #1c60a0;
4
+ }
@@ -245,12 +245,12 @@ const DefaultConfig = {
245
245
  useVdomWorker: true,
246
246
  /**
247
247
  * buildScripts/injectPackageVersion.mjs will update this value
248
- * @default '5.18.0'
248
+ * @default '6.0.1'
249
249
  * @memberOf! module:Neo
250
250
  * @name config.version
251
251
  * @type String
252
252
  */
253
- version: '5.18.0'
253
+ version: '6.0.1'
254
254
  };
255
255
 
256
256
  Object.assign(DefaultConfig, {
@@ -170,7 +170,6 @@ class Splitter extends Component {
170
170
  newSize = data.clientX - data.offsetX - size - parentRect.left;
171
171
 
172
172
  if (resizeNext) {
173
- console.log(parentRect);
174
173
  newSize = parentRect.width - newSize - 2 * size
175
174
  } else {
176
175
  newSize += size
@@ -31,7 +31,7 @@ class SortZone extends BaseSortZone {
31
31
  * @param {Number} toIndex
32
32
  */
33
33
  moveTo(fromIndex, toIndex) {
34
- this.owner.up().moveTo(fromIndex, toIndex);
34
+ this.owner.up().moveTo(fromIndex, toIndex)
35
35
  }
36
36
 
37
37
  /**
@@ -47,7 +47,7 @@ class SortZone extends BaseSortZone {
47
47
 
48
48
  NeoArray.remove(cls, 'neo-no-animation');
49
49
  owner.cls = cls;
50
- }, 300);
50
+ }, 300)
51
51
  }
52
52
 
53
53
  /**
@@ -61,7 +61,7 @@ class SortZone extends BaseSortZone {
61
61
  NeoArray.add(cls, 'neo-no-animation');
62
62
  owner.cls = cls;
63
63
 
64
- super.onDragStart(data);
64
+ super.onDragStart(data)
65
65
  }
66
66
  }
67
67
 
@@ -122,6 +122,10 @@ class FileUpload extends Base {
122
122
  tag : 'input',
123
123
  type : 'file'
124
124
  },
125
+ {
126
+ cls : 'neo-file-upload-label',
127
+ tag : 'label'
128
+ },
125
129
  {
126
130
  cls : 'neo-file-upload-error-message'
127
131
  }
@@ -149,7 +153,7 @@ class FileUpload extends Base {
149
153
  UPLOADING : 'scanning',
150
154
 
151
155
  MALWARE_DETECTED : 'scan-failed',
152
- UN_DOWNLOADABLE : 'not-downloadable',
156
+ AVAILABLE : 'not-downloadable',
153
157
  DOWNLOADABLE : 'downloadable',
154
158
  DELETED : 'deleted'
155
159
  },
@@ -281,6 +285,14 @@ class FileUpload extends Base {
281
285
  */
282
286
  documentDeleteUrl_ : null,
283
287
 
288
+ /**
289
+ * The HTTP method to use when requesting a document deletion using the {@link #member-documentDeleteUrl}.
290
+ *
291
+ * Defaults to `DELETE`.
292
+ * @member {String} documentDeleteMethod
293
+ */
294
+ documentDeleteMethod : 'DELETE',
295
+
284
296
  /**
285
297
  * @member {String} state_=null
286
298
  */
@@ -303,6 +315,7 @@ class FileUpload extends Base {
303
315
  error_ : null,
304
316
 
305
317
  // UI strings which can be overridden for other languages
318
+ chooseFile : 'Choose file',
306
319
  documentText : 'Document',
307
320
  pleaseUseTheseTypes : 'Please use these file types',
308
321
  fileSizeMoreThan : 'File size exceeds',
@@ -311,6 +324,7 @@ class FileUpload extends Base {
311
324
  documentStatusError : 'Document status service error',
312
325
  uploadFailed : 'Upload failed',
313
326
  scanning : 'Scanning',
327
+ uploading : 'Uploading...',
314
328
  malwareFoundInFile : 'Malware found in file',
315
329
  pleaseCheck : 'Please check the file and try again',
316
330
  successfullyUploaded : 'Successfully uploaded',
@@ -331,6 +345,18 @@ class FileUpload extends Base {
331
345
  ]);
332
346
  }
333
347
 
348
+ afterSetId(value, oldValue) {
349
+ const
350
+ labelEl = this.vdom.cn[4],
351
+ inputElId = `${this.id}-input`;
352
+
353
+ this.getInputEl().id = labelEl.for = inputElId;
354
+ labelEl.html = this.chooseFile;
355
+
356
+ // silent vdom update, the super call will trigger the engine
357
+ super.afterSetId?.(value, oldValue);
358
+ }
359
+
334
360
  /**
335
361
  * @returns {Object}
336
362
  */
@@ -420,7 +446,7 @@ class FileUpload extends Base {
420
446
 
421
447
  /**
422
448
  * This event fires before every HTTP request is sent to the server via any of the configured URLs.
423
- *
449
+ *
424
450
  * @event beforeRequest
425
451
  * @param {Object} event The event
426
452
  * @param {Object} event.headers An object containing the configured {@link #property-headers}
@@ -444,7 +470,7 @@ class FileUpload extends Base {
444
470
 
445
471
  (vdom.style || (vdom.style = {}))['--upload-progress'] = `${progress}turn`;
446
472
 
447
- vdom.cn[1].cn[1].innerHTML = `Uploading... (${Math.round(progress * 100)}%)`;
473
+ vdom.cn[1].cn[1].innerHTML = `${this.uploading}... (${Math.round(progress * 100)}%)`;
448
474
 
449
475
  this.uploadSize = loaded;
450
476
  this.update();
@@ -545,6 +571,7 @@ class FileUpload extends Base {
545
571
 
546
572
  // We ask the server to delete using our this.documentId
547
573
  const statusResponse = await fetch(me.documentDeleteUrl, {
574
+ method : me.documentDeleteMethod,
548
575
  headers
549
576
  });
550
577
 
@@ -731,13 +758,13 @@ class FileUpload extends Base {
731
758
 
732
759
  afterSetError(text) {
733
760
  if (text) {
734
- this.vdom.cn[4].cn = [{
761
+ this.vdom.cn[5].cn = [{
735
762
  vtype : 'text',
736
763
  html : text
737
764
  }];
738
765
  }
739
766
  else {
740
- this.vdom.cn[4].cn = [];
767
+ this.vdom.cn[5].cn = [];
741
768
  }
742
769
 
743
770
  this.validate();
@@ -665,7 +665,7 @@ class Text extends Base {
665
665
 
666
666
  me.silentVdomUpdate = true;
667
667
 
668
- !me.clean && me.validate(false);
668
+ me.validate(false);
669
669
  me.changeInputElKey('required', value ? value : null);
670
670
  me.labelText = me.labelText; // apply the optional text if needed
671
671
 
@@ -509,8 +509,8 @@ class DomAccess extends Base {
509
509
  */
510
510
  selectNode(data) {
511
511
  let node = this.getElement(data.id),
512
- start = Neo.isNumber(data.start) || 0,
513
- end = Neo.isNumber(data.end) || 99999;
512
+ start = Neo.isNumber(data.start) ? data.start : 0,
513
+ end = Neo.isNumber(data.end) ? data.end : 99999;
514
514
 
515
515
  if (node) {
516
516
  node.select();
@@ -118,6 +118,7 @@ class DomEvents extends Base {
118
118
 
119
119
  let me = this;
120
120
 
121
+ document.addEventListener('selectionchange', me.onSelectionChange .bind(me));
121
122
  document.addEventListener('DOMContentLoaded', me.onDomContentLoaded.bind(me));
122
123
  window .addEventListener('hashchange', me.onHashChange .bind(me));
123
124
 
@@ -331,6 +332,16 @@ class DomEvents extends Base {
331
332
  return path
332
333
  }
333
334
 
335
+ getSelectionPath(path, target) {
336
+ if (target.parentNode && target.id.split('__').length > 1) {
337
+ path = this.getSelectionPath(path, target.parentNode);
338
+ }
339
+
340
+ path.push(this.getTargetData(target));
341
+
342
+ return path;
343
+ }
344
+
334
345
  /**
335
346
  * @param {Object} node
336
347
  * @returns {Object}
@@ -388,7 +399,7 @@ class DomEvents extends Base {
388
399
  let manager = Neo.worker.Manager;
389
400
 
390
401
  manager.appNames.forEach(appName => {
391
- manager.broadcast({action : 'disconnect', appName})
402
+ manager.broadcast({action: 'disconnect', appName})
392
403
  })
393
404
  }
394
405
 
@@ -401,11 +412,11 @@ class DomEvents extends Base {
401
412
  tagName = target.tagName,
402
413
  value = target.value,
403
414
 
404
- data = {
405
- ...me.getEventData(event),
406
- valid: target.checkValidity(),
407
- value: tagName === 'INPUT' ? StringUtil.escapeHtml(value) : tagName === 'TEXTAREA' ? me.stripHtml(value) : value
408
- };
415
+ data = {
416
+ ...me.getEventData(event),
417
+ valid: target.checkValidity(),
418
+ value: tagName === 'INPUT' ? StringUtil.escapeHtml(value) : tagName === 'TEXTAREA' ? me.stripHtml(value) : value
419
+ };
409
420
 
410
421
  // input and change events can pass a FileList for input type file
411
422
  if (target.files) {
@@ -489,8 +500,8 @@ class DomEvents extends Base {
489
500
  manager.sendMessage('app', {
490
501
  action: 'hashChange',
491
502
  data : {
492
- appNames : manager.appNames,
493
- hash : this.parseHash(hashString),
503
+ appNames: manager.appNames,
504
+ hash : this.parseHash(hashString),
494
505
  hashString
495
506
  }
496
507
  })
@@ -575,6 +586,33 @@ class DomEvents extends Base {
575
586
  })
576
587
  }
577
588
 
589
+ /**
590
+ * @param {Object} event
591
+ */
592
+ onSelectionChange(event) {
593
+ const me = this,
594
+ target = event.target.activeElement;
595
+
596
+ if (target.tagName === 'BODY') return;
597
+
598
+
599
+ const targetData = me.getTargetData(target),
600
+ path = me.getSelectionPath([], target),
601
+ outputEvent = {
602
+ selection: {
603
+ start : target.selectionStart,
604
+ end : target.selectionEnd,
605
+ direction: target.selectionDirection
606
+ },
607
+ path : path,
608
+ target : targetData,
609
+ timeStamp: event.timeStamp,
610
+ type : "selectionchange"
611
+ };
612
+
613
+ me.sendMessageToApp(outputEvent);
614
+ }
615
+
578
616
  /**
579
617
  * @param {Object} event
580
618
  */
@@ -599,7 +637,7 @@ class DomEvents extends Base {
599
637
  }
600
638
  }
601
639
 
602
- if (!preventUpdate) {
640
+ if (!preventUpdate) {
603
641
  let {deltaX, deltaY, deltaZ} = event;
604
642
 
605
643
  this.sendMessageToApp({
@@ -659,7 +697,7 @@ class DomEvents extends Base {
659
697
  parts.push('')
660
698
  }
661
699
 
662
- key = decodeURIComponent(parts[0]);
700
+ key = decodeURIComponent(parts[0]);
663
701
  value = decodeURIComponent(parts[1]);
664
702
 
665
703
  if (key.indexOf('[]') !== -1) {
@@ -770,10 +808,10 @@ class DomEvents extends Base {
770
808
  for (; i < len; i++) {
771
809
  node = path[i];
772
810
 
773
- for (j=0; j < countTargets; j++) {
811
+ for (j = 0; j < countTargets; j++) {
774
812
  if (node.classList?.contains(targetArray[j])) {
775
813
  return {
776
- cls : targetArray[j],
814
+ cls: targetArray[j],
777
815
  node
778
816
  };
779
817
  }
@@ -31,6 +31,7 @@ const globalDomEvents = [
31
31
  'mouseleave',
32
32
  'mouseup',
33
33
  'scroll',
34
+ 'selectionchange',
34
35
  'wheel'
35
36
  ];
36
37