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
@@ -0,0 +1,151 @@
1
+ import ConfigurationViewport from '../ConfigurationViewport.mjs';
2
+
3
+ import PrefixPlugin from '../../src/plugin/PrefixField.mjs';
4
+ import SelectField from '../../src/form/field/Select.mjs';
5
+ import TextField from '../../src/form/field/Text.mjs';
6
+
7
+ /**
8
+ * @class Neo.examples.fieldWithPrefix.MainContainer
9
+ * @extends Neo.examples.ConfigurationViewport
10
+ */
11
+ class MainContainer extends ConfigurationViewport {
12
+ static config = {
13
+ className : 'Neo.examples.fieldWithPrefix.MainContainer',
14
+ autoMount : true,
15
+ configItemLabelWidth: 100,
16
+ configItemWidth : 230,
17
+ layout : {ntype: 'hbox', align: 'stretch'},
18
+ cls : ['examples-container-accordion']
19
+ }
20
+
21
+ onPluginConfigChange(config, opts) {
22
+ const textfield = this.exampleComponent.items[0],
23
+ plugin = textfield.getPlugin({flag: 'prefix'});
24
+
25
+ if (config === 'accept') {
26
+ plugin.accept = opts.record.value;
27
+ } else {
28
+ plugin[config] = opts.value;
29
+ textfield.value = '';
30
+ }
31
+ }
32
+
33
+ createConfigurationComponents() {
34
+ let me = this,
35
+ textfield = me.exampleComponent.items[0],
36
+ plugin = textfield.plugins[0];
37
+
38
+ return [{
39
+ module : TextField,
40
+ clearable: true,
41
+ labelText: 'pattern',
42
+ listeners: {change: me.onPluginConfigChange.bind(me, 'pattern')},
43
+ value : plugin.pattern,
44
+ style : {marginTop: '10px'}
45
+ }, {
46
+ module : TextField,
47
+ clearable: true,
48
+ labelText: 'slots',
49
+ listeners: {change: me.onPluginConfigChange.bind(me, 'slots')},
50
+ value : '_',
51
+ style : {marginTop: '10px'}
52
+ }, {
53
+ module: SelectField,
54
+ store : {
55
+ model: {fields: [{name: 'id'}, {name: 'name'}, {name: 'value'}]},
56
+ data : [
57
+ {id: '0', name: 'empty=/\\d/', value: null},
58
+ {id: '1', name: '[0-9]', value: '[0-9]'},
59
+ {id: '2', name: '[A-H]', value: '[A-H]'},
60
+ {id: '3', name: '/\\w/', value: /\w/},
61
+ {id: '4', name: '/\\d/', value: /\d/},
62
+ {id: '5', name: '[0-9a-f]', value: '[0-9a-f]'}
63
+ ]
64
+ },
65
+
66
+ value : '4',
67
+ displayField: 'name',
68
+ valueField : 'value',
69
+
70
+ clearable: true,
71
+ labelText: 'accept',
72
+ listeners: {change: me.onPluginConfigChange.bind(me, 'accept')},
73
+ style : {marginTop: '10px'}
74
+ }];
75
+ }
76
+
77
+ /**
78
+ * @returns {*}
79
+ */
80
+ createExampleComponent() {
81
+ return Neo.ntype({
82
+ ntype : 'container',
83
+ width : 350,
84
+ cls : ['example-fieldWithPrefix'],
85
+ layout: {ntype: 'vbox', align: 'stretch'},
86
+ items : [{
87
+ module : TextField,
88
+ labelText: 'Phone Number',
89
+ plugins : [
90
+ {
91
+ module : PrefixPlugin,
92
+ flag : 'prefix',
93
+ pattern: '+1 (___) ___-___-____',
94
+ slots : '_'
95
+ }
96
+ ]
97
+ }, {
98
+ module : TextField,
99
+ labelText: '[0-9] Date',
100
+ plugins : [
101
+ {
102
+ module : PrefixPlugin,
103
+ flag : 'prefix',
104
+ pattern: 'dd/mm/yyyy hh:mm',
105
+ slots : 'dmyh'
106
+ }
107
+ ]
108
+ }, {
109
+ module : TextField,
110
+ labelText: '[A-H] MAC Adress',
111
+ plugins : [
112
+ {
113
+ module : PrefixPlugin,
114
+ flag : 'prefix',
115
+ pattern: 'XX:XX:XX:XX:XX:XX',
116
+ slots : 'X',
117
+ accept : '[A-H]'
118
+ }
119
+ ]
120
+ }, {
121
+ module : TextField,
122
+ labelText: '/\\w/ Alphanumeric',
123
+ plugins : [
124
+ {
125
+ module : PrefixPlugin,
126
+ flag : 'prefix',
127
+ pattern: '__-__-__-____',
128
+ slots : '_',
129
+ accept : /\w/
130
+ }
131
+ ]
132
+ }, {
133
+ module : TextField,
134
+ labelText: '/\\d/ Credit Card',
135
+ plugins : [
136
+ {
137
+ module : PrefixPlugin,
138
+ flag : 'prefix',
139
+ pattern: '.... .... .... ....',
140
+ slots : '.',
141
+ accept : /\d/
142
+ }
143
+ ]
144
+ }]
145
+ })
146
+ }
147
+ }
148
+
149
+ Neo.applyClassConfig(MainContainer);
150
+
151
+ export default MainContainer;
@@ -0,0 +1,6 @@
1
+ import MainContainer from './MainContainer.mjs';
2
+
3
+ export const onStart = () => Neo.app({
4
+ mainView: MainContainer,
5
+ name : 'Neo.examples.fieldWithPrefix'
6
+ });
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+ <meta charset="UTF-8">
6
+ <title>Field with Prefix</title>
7
+ </head>
8
+ <body>
9
+ <script src="../../src/MicroLoader.mjs" type="module"></script>
10
+ </body>
11
+ </html>
@@ -0,0 +1,7 @@
1
+ {
2
+ "appPath" : "examples/fieldWithPrefix/app.mjs",
3
+ "basePath" : "../../",
4
+ "environment": "development",
5
+ "mainPath" : "./Main.mjs",
6
+ "themes" : ["neo-theme-dark", "neo-theme-light"]
7
+ }
@@ -105,7 +105,7 @@ class MainContainer extends ConfigurationViewport {
105
105
  id : 2,
106
106
  fileName : 'test.pdf',
107
107
  size : 10664885,
108
- status : 'UN_DOWNLOADABLE'
108
+ status : 'AVAILABLE'
109
109
  },
110
110
  uploadUrl : 'http://127.0.0.1:3000/file-upload-test',
111
111
  documentStatusUrl : 'http://127.0.0.1:3000/document-status-not-downloadable?documentId={documentId}',
@@ -24,7 +24,7 @@ app.get('/document-status', async(req, res) => {
24
24
  res.send('{"status":"SCANNING"}');
25
25
  });
26
26
 
27
- app.get('/document-delete', async(req, res) => {
27
+ app.delete('/document-delete', async(req, res) => {
28
28
  res.set('Content-Type', 'application/json');
29
29
  res.send('');
30
30
  });
@@ -41,7 +41,7 @@ app.get('/document-status-downloadable', async(req, res) => {
41
41
 
42
42
  app.get('/document-status-not-downloadable', async(req, res) => {
43
43
  res.set('Content-Type', 'application/json');
44
- res.send('{"status":"UN_DOWNLOADABLE","fileName":"testfile.pdf","size":9653413}');
44
+ res.send('{"status":"AVAILABLE","fileName":"testfile.pdf","size":9653413}');
45
45
  });
46
46
 
47
47
  app.get('/document-status-non-existent', async(req, res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "5.18.0",
3
+ "version": "6.0.1",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -56,7 +56,7 @@
56
56
  "neo-jsdoc": "1.0.1",
57
57
  "neo-jsdoc-x": "1.0.5",
58
58
  "postcss": "^8.4.28",
59
- "sass": "^1.66.0",
59
+ "sass": "^1.66.1",
60
60
  "showdown": "^2.1.0",
61
61
  "webpack": "^5.88.2",
62
62
  "webpack-cli": "^5.1.4",
@@ -10,12 +10,12 @@ html, .neo-body-viewport {
10
10
  }
11
11
 
12
12
  .neo-body {
13
- background-color: v(neo-background-color);
14
- color : v(neo-color);
15
- font-family : v(neo-font-family);
13
+ background-color: var(--neo-background-color);
14
+ color : var(--neo-color);
15
+ font-family : var(--neo-font-family);
16
16
  margin : 0;
17
17
 
18
- -webkit-font-smoothing: v(neo-font-smoothing);
18
+ -webkit-font-smoothing: var(--neo-font-smoothing);
19
19
  }
20
20
 
21
21
  .neo-body, .neo-body * {
@@ -23,7 +23,7 @@ html, .neo-body-viewport {
23
23
  }
24
24
 
25
25
  .neo-disabled {
26
- opacity : v(neo-disabled-opacity);
26
+ opacity : var(--neo-disabled-opacity);
27
27
  pointer-events: none;
28
28
  }
29
29
 
@@ -32,10 +32,10 @@ html, .neo-body-viewport {
32
32
  }
33
33
 
34
34
  .neo-link-color {
35
- color: v(neo-color);
35
+ color: var(--neo-color);
36
36
 
37
37
  a {
38
- color: v(neo-color);
38
+ color: var(--neo-color);
39
39
  }
40
40
  }
41
41
 
@@ -35,62 +35,62 @@
35
35
  }
36
36
 
37
37
  &.active {
38
- background-color: v(covid-header-active-background-color);
38
+ background-color: var(--covid-header-active-background-color);
39
39
  border-left : 5px solid rgb(100, 181, 246);
40
40
 
41
41
  &:after {
42
- background-color: v(covid-header-active-background-color);
42
+ background-color: var(--covid-header-active-background-color);
43
43
  }
44
44
 
45
45
  &:before {
46
- border-bottom: 5px solid v(covid-header-active-background-color);
47
- border-right : 5px solid v(covid-header-active-background-color);
48
- border-color : v(covid-header-active-background-color) transparent transparent v(covid-header-active-background-color);
46
+ border-bottom: 5px solid var(--covid-header-active-background-color);
47
+ border-right : 5px solid var(--covid-header-active-background-color);
48
+ border-color : var(--covid-header-active-background-color) transparent transparent var(--covid-header-active-background-color);
49
49
  }
50
50
  }
51
51
 
52
52
  &.cases {
53
- background-color: v(covid-header-cases-background-color);
53
+ background-color: var(--covid-header-cases-background-color);
54
54
  border-left : 5px solid rgb(187, 187, 187);
55
55
 
56
56
  &:after {
57
- background-color: v(covid-header-cases-background-color);
57
+ background-color: var(--covid-header-cases-background-color);
58
58
  }
59
59
 
60
60
  &:before {
61
- border-bottom: 5px solid v(covid-header-cases-background-color);
62
- border-right : 5px solid v(covid-header-cases-background-color);
63
- border-color : v(covid-header-cases-background-color) transparent transparent v(covid-header-cases-background-color);
61
+ border-bottom: 5px solid var(--covid-header-cases-background-color);
62
+ border-right : 5px solid var(--covid-header-cases-background-color);
63
+ border-color : var(--covid-header-cases-background-color) transparent transparent var(--covid-header-cases-background-color);
64
64
  }
65
65
  }
66
66
 
67
67
  &.deaths {
68
- background-color: v(covid-header-deaths-background-color);
68
+ background-color: var(--covid-header-deaths-background-color);
69
69
  border-left : 5px solid rgb(251, 103, 103);
70
70
 
71
71
  &:after {
72
- background-color: v(covid-header-deaths-background-color);
72
+ background-color: var(--covid-header-deaths-background-color);
73
73
  }
74
74
 
75
75
  &:before {
76
- border-bottom: 5px solid v(covid-header-deaths-background-color);
77
- border-right : 5px solid v(covid-header-deaths-background-color);
78
- border-color : v(covid-header-deaths-background-color) transparent transparent v(covid-header-deaths-background-color);
76
+ border-bottom: 5px solid var(--covid-header-deaths-background-color);
77
+ border-right : 5px solid var(--covid-header-deaths-background-color);
78
+ border-color : var(--covid-header-deaths-background-color) transparent transparent var(--covid-header-deaths-background-color);
79
79
  }
80
80
  }
81
81
 
82
82
  &.recovered {
83
- background-color: v(covid-header-recovered-background-color);
83
+ background-color: var(--covid-header-recovered-background-color);
84
84
  border-left : 5px solid rgb(40, 218, 111);
85
85
 
86
86
  &:after {
87
- background-color: v(covid-header-recovered-background-color);
87
+ background-color: var(--covid-header-recovered-background-color);
88
88
  }
89
89
 
90
90
  &:before {
91
- border-bottom: 5px solid v(covid-header-recovered-background-color);
92
- border-right : 5px solid v(covid-header-recovered-background-color);
93
- border-color : v(covid-header-recovered-background-color) transparent transparent v(covid-header-recovered-background-color);
91
+ border-bottom: 5px solid var(--covid-header-recovered-background-color);
92
+ border-right : 5px solid var(--covid-header-recovered-background-color);
93
+ border-color : var(--covid-header-recovered-background-color) transparent transparent var(--covid-header-recovered-background-color);
94
94
  }
95
95
  }
96
96
  }
@@ -100,20 +100,20 @@
100
100
  margin : 5px 0;
101
101
 
102
102
  &.active {
103
- color: v(covid-header-active-color);
103
+ color: var(--covid-header-active-color);
104
104
  }
105
105
 
106
106
  &.cases {
107
- color: v(covid-header-cases-color);
107
+ color: var(--covid-header-cases-color);
108
108
  }
109
109
 
110
110
  &.deaths {
111
- color: v(covid-header-deaths-color);
111
+ color: var(--covid-header-deaths-color);
112
112
  }
113
113
 
114
114
  &.recovered {
115
- color: v(covid-header-recovered-color);
115
+ color: var(--covid-header-recovered-color);
116
116
  }
117
117
  }
118
118
  }
119
- }
119
+ }
@@ -1,6 +1,6 @@
1
1
  .neo-gallery.covid-country-gallery {
2
- background-color: v(covid-gallery-background-color);
3
- border-color : v(covid-gallery-border-color);
2
+ background-color: var(--covid-gallery-background-color);
3
+ border-color : var(--covid-gallery-border-color);
4
4
  color : #000;
5
5
  text-align : left;
6
6
 
@@ -23,7 +23,7 @@
23
23
  }
24
24
 
25
25
  .neo-item-wrapper {
26
- background-color : v(covid-gallery-item-wrapper-background-color);
26
+ background-color : var(--covid-gallery-item-wrapper-background-color);
27
27
  border-radius : 10px;
28
28
  pointer-events : none;
29
29
  transition-duration: .55s;
@@ -33,9 +33,9 @@
33
33
  .neo-country-gallery-item {
34
34
  background-color : #fff;
35
35
  border-bottom : 0;
36
- border-color : v(covid-gallery-item-border-color);
37
- border-left-width : v(covid-gallery-item-border-sides-width);
38
- border-right-width : v(covid-gallery-item-border-sides-width);
36
+ border-color : var(--covid-gallery-item-border-color);
37
+ border-left-width : var(--covid-gallery-item-border-sides-width);
38
+ border-right-width : var(--covid-gallery-item-border-sides-width);
39
39
  border-style : solid;
40
40
  border-top-left-radius : 10px;
41
41
  border-top-right-radius: 10px;
@@ -1,6 +1,6 @@
1
1
  .neo-helix.covid-country-helix {
2
- background-color: v(covid-helix-background-color);
3
- border-color : v(covid-helix-border-color);
2
+ background-color: var(--covid-helix-background-color);
3
+ border-color : var(--covid-helix-border-color);
4
4
  color : #000;
5
5
  text-align : left;
6
6
 
@@ -37,19 +37,19 @@
37
37
  }
38
38
 
39
39
  .neo-helix-item {
40
- background-color: v(covid-helix-item-wrapper-background-color);
40
+ background-color: var(--covid-helix-item-wrapper-background-color);
41
41
 
42
42
  &.neo-selected {
43
- box-shadow: v(covid-helix-item-box-shadow-selected);
43
+ box-shadow: var(--covid-helix-item-box-shadow-selected);
44
44
  }
45
45
  }
46
46
 
47
47
  .neo-country-helix-item {
48
48
  background-color : #fff;
49
49
  border-bottom : 0;
50
- border-color : v(covid-helix-item-border-color);
51
- border-left-width : v(covid-helix-item-border-sides-width);
52
- border-right-width : v(covid-helix-item-border-sides-width);
50
+ border-color : var(--covid-helix-item-border-color);
51
+ border-left-width : var(--covid-helix-item-border-sides-width);
52
+ border-right-width : var(--covid-helix-item-border-sides-width);
53
53
  border-style : solid;
54
54
  border-top-left-radius : 10px;
55
55
  border-top-right-radius: 10px;
@@ -70,4 +70,4 @@
70
70
  height : 280px;
71
71
  width : 340px;
72
72
  }
73
- }
73
+ }
@@ -1,3 +1,3 @@
1
1
  .covid-line-chart {
2
- background-color: v(covid-line-chart-background-color);
3
- }
2
+ background-color: var(--covid-line-chart-background-color);
3
+ }
@@ -2,7 +2,7 @@
2
2
  overflow: hidden;
3
3
 
4
4
  .docs-tab-header-toolbar {
5
- background-color: v(docs-content-tabcontainer-tab-header-toolbar-background-color);
5
+ background-color: var(--docs-content-tabcontainer-tab-header-toolbar-background-color);
6
6
 
7
7
  .neo-button-glyph {
8
8
  pointer-events: all;
@@ -10,7 +10,7 @@
10
10
  width : 16px;
11
11
 
12
12
  &:hover {
13
- color : v(docs-content-tabcontainer-tab-header-toolbar-glyph-color-hover);
13
+ color : var(--docs-content-tabcontainer-tab-header-toolbar-glyph-color-hover);
14
14
  cursor: pointer;
15
15
 
16
16
  &::before {
@@ -23,4 +23,4 @@
23
23
  .neo-docs-tab-content-container {
24
24
  border: 0;
25
25
  }
26
- }
26
+ }
@@ -1,13 +1,13 @@
1
1
  .neo-docs-header-container {
2
- background-color: v(docs-header-container-background-color);
3
- background-image: v(docs-header-container-background-image);
2
+ background-color: var(--docs-header-container-background-color);
3
+ background-image: var(--docs-header-container-background-image);
4
4
 
5
5
  .neo-logo-text {
6
- background-clip : v(docs-header-container-logo-text-background-clip);
7
- color : v(docs-header-container-logo-text-color);
8
- font-size : v(docs-header-container-logo-text-font-size);
9
- font-weight : v(docs-header-container-logo-text-font-weight);
10
- padding : v(docs-header-container-logo-padding);
11
- text-shadow : v(docs-header-container-logo-text-shadow);
6
+ background-clip : var(--docs-header-container-logo-text-background-clip);
7
+ color : var(--docs-header-container-logo-text-color);
8
+ font-size : var(--docs-header-container-logo-text-font-size);
9
+ font-weight : var(--docs-header-container-logo-text-font-weight);
10
+ padding : var(--docs-header-container-logo-padding);
11
+ text-shadow : var(--docs-header-container-logo-text-shadow);
12
12
  }
13
13
  }
@@ -1,6 +1,6 @@
1
1
  .neo-docs-maincontainer {
2
2
  .neo-docs-navigation-tab-container {
3
- background-color: v(docs-navigation-tab-container-background-color);
3
+ background-color: var(--docs-navigation-tab-container-background-color);
4
4
 
5
5
  .neo-tab-content-container {
6
6
  border-right: none;
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .neo-docs-classdetails-headercomponent {
7
- background-color: v(docs-classdetails-headercomponent-background-color);
7
+ background-color: var(--docs-classdetails-headercomponent-background-color);
8
8
  overflow-y : auto;
9
9
  padding : 15px;
10
10
 
@@ -1,5 +1,5 @@
1
1
  .docs-classhierarchy-memberslist {
2
- background-color: v(docs-classhierarchy-memberslist-background-color);
2
+ background-color: var(--docs-classhierarchy-memberslist-background-color);
3
3
  overflow : auto;
4
4
 
5
5
  .docs-param-table {
@@ -12,16 +12,16 @@
12
12
  width : 100%;
13
13
 
14
14
  thead {
15
- background-color: v(docs-param-table-thead-background-color);
16
- background-image: v(docs-param-table-thead-background-image);
15
+ background-color: var(--docs-param-table-thead-background-color);
16
+ background-image: var(--docs-param-table-thead-background-image);
17
17
  }
18
18
 
19
19
  thead tr {
20
- background-clip: v(docs-param-table-tr-background-clip);
20
+ background-clip: var(--docs-param-table-tr-background-clip);
21
21
  border-bottom : 1px solid #282b2b;
22
- color : v(docs-param-table-tr-color);
22
+ color : var(--docs-param-table-tr-color);
23
23
  font-weight : 800;
24
- text-shadow : v(docs-param-table-tr-text-shadow);
24
+ text-shadow : var(--docs-param-table-tr-text-shadow);
25
25
  }
26
26
 
27
27
  td, th {
@@ -37,9 +37,9 @@
37
37
  }
38
38
 
39
39
  .neo-docs-memberlist-group-header {
40
- background-color: v(docs-memberlist-group-header-background-color);
40
+ background-color: var(--docs-memberlist-group-header-background-color);
41
41
  box-shadow : 0 5px 10px rgba(0,0,0,.4);
42
- color : v(docs-memberlist-group-header-color);
42
+ color : var(--docs-memberlist-group-header-color);
43
43
  margin : 5px;
44
44
  padding : 10px;
45
45
  position : sticky;
@@ -47,8 +47,8 @@
47
47
  }
48
48
 
49
49
  .neo-list-item {
50
- background-color: v(docs-param-table-list-item-background-color);
51
- background-image: v(docs-param-table-list-item-background-image);
50
+ background-color: var(--docs-param-table-list-item-background-color);
51
+ background-image: var(--docs-param-table-list-item-background-image);
52
52
  font-size : 14px;
53
53
  margin : 5px;
54
54
  padding : 10px;
@@ -58,23 +58,23 @@
58
58
  }
59
59
 
60
60
  .neo-list-item-header {
61
- background-clip: v(docs-param-table-list-item-header-background-clip);
61
+ background-clip: var(--docs-param-table-list-item-header-background-clip);
62
62
  color : rgba(0,0,0,0.6);
63
63
  font-size : 20px;
64
64
  font-weight : 800;
65
- text-shadow : v(docs-param-table-list-item-header-text-shadow);
65
+ text-shadow : var(--docs-param-table-list-item-header-text-shadow);
66
66
 
67
67
  .neo-highlight-search {
68
- color: v(docs-param-table-list-item-highlight-search-color);
68
+ color: var(--docs-param-table-list-item-highlight-search-color);
69
69
  }
70
70
  }
71
71
 
72
72
  .neo-docs-view-source-link {
73
- color : v(docs-param-table-source-link-color);
73
+ color : var(--docs-param-table-source-link-color);
74
74
  text-decoration: none;
75
75
 
76
76
  &:hover {
77
- color: v(docs-param-table-source-link-color-hover);
77
+ color: var(--docs-param-table-source-link-color-hover);
78
78
  }
79
79
  }
80
80
 
@@ -82,4 +82,4 @@
82
82
  margin-bottom: 10px;
83
83
  }
84
84
  }
85
- }
85
+ }
@@ -3,9 +3,9 @@
3
3
  padding: 10px;
4
4
 
5
5
  .neo-header-text-container {
6
- background-color: v(docs-classdetails-tutorialcomponent-background-color);
6
+ background-color: var(--docs-classdetails-tutorialcomponent-background-color);
7
7
  box-shadow : 0 5px 10px rgba(0,0,0,.4);
8
- color : v(docs-classdetails-tutorialcomponent-color);
8
+ color : var(--docs-classdetails-tutorialcomponent-color);
9
9
  padding-left : 10px;
10
10
  position : sticky;
11
11
  top : -10px;
@@ -31,4 +31,4 @@
31
31
  hr {
32
32
  border-style: groove;
33
33
  }
34
- }
34
+ }