@mixd-id/web-scaffold 0.2.250801010 → 0.2.250801012

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 (398) hide show
  1. package/docs/components/AccountIcon.md +16 -0
  2. package/docs/components/Ahref.md +35 -0
  3. package/docs/components/Alert.md +72 -0
  4. package/docs/components/ArrayList.md +39 -0
  5. package/docs/components/Article.md +28 -0
  6. package/docs/components/BarChart.md +81 -0
  7. package/docs/components/Block.md +23 -0
  8. package/docs/components/Box.md +15 -0
  9. package/docs/components/Button.md +68 -0
  10. package/docs/components/Card.md +67 -0
  11. package/docs/components/Carousel.md +70 -0
  12. package/docs/components/Cart.md +20 -0
  13. package/docs/components/CartIcon.md +29 -0
  14. package/docs/components/Chart.md +53 -0
  15. package/docs/components/ChartBar.md +34 -0
  16. package/docs/components/ChatTyping.md +21 -0
  17. package/docs/components/Checkbox.md +63 -0
  18. package/docs/components/CodeEditor.md +25 -0
  19. package/docs/components/CollapsiblePanel.md +41 -0
  20. package/docs/components/ColorPicker.md +52 -0
  21. package/docs/components/Confirm.md +62 -0
  22. package/docs/components/ContextMenu.md +76 -0
  23. package/docs/components/ContextMenuItem.md +29 -0
  24. package/docs/components/CopyToClipboard.md +43 -0
  25. package/docs/components/Countdown.md +47 -0
  26. package/docs/components/Datepicker.md +61 -0
  27. package/docs/components/Datetimepicker.md +57 -0
  28. package/docs/components/DayTimeRange.md +20 -0
  29. package/docs/components/Dropdown.md +65 -0
  30. package/docs/components/ErrorText.md +15 -0
  31. package/docs/components/FBLogin.md +21 -0
  32. package/docs/components/Flex.md +44 -0
  33. package/docs/components/GHeatMaps.md +16 -0
  34. package/docs/components/GSignIn.md +21 -0
  35. package/docs/components/Gmaps.md +16 -0
  36. package/docs/components/GmapsDirection.md +20 -0
  37. package/docs/components/Grid.md +36 -0
  38. package/docs/components/HTMLEditor.md +26 -0
  39. package/docs/components/IconMenu.md +20 -0
  40. package/docs/components/Image.md +78 -0
  41. package/docs/components/Link.md +33 -0
  42. package/docs/components/MultiDropdown.md +46 -0
  43. package/docs/components/Radio.md +55 -0
  44. package/docs/components/Slider.md +47 -0
  45. package/docs/components/Switch.md +43 -0
  46. package/docs/components/Table.md +31 -0
  47. package/docs/components/Tabs.md +65 -0
  48. package/docs/components/Text.md +30 -0
  49. package/docs/components/Textarea.md +66 -0
  50. package/docs/components/Textbox.md +97 -0
  51. package/docs/components/Timepicker.md +62 -0
  52. package/docs/components/Toast.md +59 -0
  53. package/docs/components/Uploader.md +51 -0
  54. package/docs/components/Video.md +54 -0
  55. package/package.json +65 -2
  56. package/docs/components/Dashboard.md +0 -56
  57. package/docs/components/Header2.md +0 -16
  58. package/log.txt +0 -7
  59. package/public/assets/dashboard/bar.png +0 -0
  60. package/public/assets/dashboard/doughnut.png +0 -0
  61. package/public/assets/dashboard/metric.png +0 -0
  62. package/public/assets/dashboard/pie.png +0 -0
  63. package/public/assets/dashboard/polar-area.png +0 -0
  64. package/public/assets/dashboard/virtual-table.png +0 -0
  65. package/public/static/dashboard/bar.png +0 -0
  66. package/public/static/dashboard/doughnut.png +0 -0
  67. package/public/static/dashboard/metric.png +0 -0
  68. package/public/static/dashboard/pie.png +0 -0
  69. package/public/static/dashboard/polar-area.png +0 -0
  70. package/public/static/dashboard/virtual-table.png +0 -0
  71. package/src/components/404.vue +0 -61
  72. package/src/components/AccountIcon.vue +0 -19
  73. package/src/components/Ahref.vue +0 -200
  74. package/src/components/Alert.vue +0 -257
  75. package/src/components/ArrayList.vue +0 -49
  76. package/src/components/Article.vue +0 -387
  77. package/src/components/Block.vue +0 -31
  78. package/src/components/Box.vue +0 -34
  79. package/src/components/Button.vue +0 -258
  80. package/src/components/Card.vue +0 -257
  81. package/src/components/Carousel.vue +0 -364
  82. package/src/components/Cart.vue +0 -192
  83. package/src/components/CartIcon.vue +0 -89
  84. package/src/components/Chart.vue +0 -485
  85. package/src/components/ChartBar.vue +0 -192
  86. package/src/components/ChatTyping.vue +0 -69
  87. package/src/components/Checkbox.vue +0 -200
  88. package/src/components/Checkout.vue +0 -373
  89. package/src/components/CheckoutDelivery.vue +0 -267
  90. package/src/components/CodeEditor.vue +0 -50
  91. package/src/components/CollapsiblePanel.vue +0 -70
  92. package/src/components/ColorPicker.vue +0 -165
  93. package/src/components/ColorPicker2.vue +0 -186
  94. package/src/components/ColorPicker3.vue +0 -100
  95. package/src/components/Confirm.vue +0 -180
  96. package/src/components/ContextMenu.vue +0 -265
  97. package/src/components/ContextMenuItem.vue +0 -53
  98. package/src/components/ConversationBuilder.vue +0 -161
  99. package/src/components/CopyToClipboard.vue +0 -34
  100. package/src/components/Countdown.vue +0 -264
  101. package/src/components/DGrid.vue +0 -21
  102. package/src/components/DGridItem.vue +0 -263
  103. package/src/components/Dashboard.vue +0 -243
  104. package/src/components/Dashboard2.vue +0 -118
  105. package/src/components/DashboardComponentSelector.vue +0 -96
  106. package/src/components/DashboardConfigs.vue +0 -202
  107. package/src/components/DataList.vue +0 -92
  108. package/src/components/Datepicker.vue +0 -399
  109. package/src/components/DayTimeRange.vue +0 -126
  110. package/src/components/Dropdown.vue +0 -224
  111. package/src/components/ErrorText.vue +0 -57
  112. package/src/components/FBLogin.vue +0 -194
  113. package/src/components/Feed.vue +0 -118
  114. package/src/components/Flex.vue +0 -44
  115. package/src/components/GHeatMaps.vue +0 -317
  116. package/src/components/GSignIn.vue +0 -166
  117. package/src/components/Gmaps.vue +0 -251
  118. package/src/components/GmapsDirection.vue +0 -191
  119. package/src/components/Grid.vue +0 -35
  120. package/src/components/HTMLEditor.vue +0 -588
  121. package/src/components/IconMenu.vue +0 -95
  122. package/src/components/IconMenu2.vue +0 -89
  123. package/src/components/IconPlus.vue +0 -89
  124. package/src/components/Image.vue +0 -263
  125. package/src/components/Image360.vue +0 -140
  126. package/src/components/ImageFullScreen.vue +0 -101
  127. package/src/components/ImagePreview.vue +0 -93
  128. package/src/components/ImageUploader.vue +0 -114
  129. package/src/components/ImportModal.vue +0 -260
  130. package/src/components/Link.vue +0 -95
  131. package/src/components/List.vue +0 -1381
  132. package/src/components/ListContextMenu.vue +0 -88
  133. package/src/components/ListItem.vue +0 -160
  134. package/src/components/ListPage1.vue +0 -1401
  135. package/src/components/ListPage1Filter.vue +0 -170
  136. package/src/components/ListView.vue +0 -961
  137. package/src/components/ListViewBarSummary.vue +0 -81
  138. package/src/components/ListViewLineSummary.vue +0 -75
  139. package/src/components/ListViewLiveBarSummary.vue +0 -52
  140. package/src/components/ListViewMapSummary.vue +0 -56
  141. package/src/components/ListViewSettings.vue +0 -514
  142. package/src/components/ListViewTableSummary.vue +0 -77
  143. package/src/components/LogViewerItem.vue +0 -116
  144. package/src/components/MarkdownEdit.vue +0 -128
  145. package/src/components/MarkdownPreview.vue +0 -102
  146. package/src/components/MenuItem1.vue +0 -36
  147. package/src/components/Modal.vue +0 -456
  148. package/src/components/MultiDropdown.vue +0 -124
  149. package/src/components/MultilineText.vue +0 -174
  150. package/src/components/OTPField.vue +0 -139
  151. package/src/components/ObjectTree.vue +0 -105
  152. package/src/components/PageBuilder.vue +0 -449
  153. package/src/components/Paragraph.vue +0 -40
  154. package/src/components/PresetSelectorFilterItem.vue +0 -203
  155. package/src/components/Radio.vue +0 -109
  156. package/src/components/SearchModal.vue +0 -153
  157. package/src/components/Slider.vue +0 -317
  158. package/src/components/SplitPane.vue +0 -129
  159. package/src/components/Svg.vue +0 -33
  160. package/src/components/SvgEditor.vue +0 -173
  161. package/src/components/Switch.vue +0 -101
  162. package/src/components/TabView.vue +0 -105
  163. package/src/components/Table.vue +0 -56
  164. package/src/components/TableView.vue +0 -200
  165. package/src/components/TableViewHead.vue +0 -159
  166. package/src/components/Tabs.vue +0 -131
  167. package/src/components/Test.vue +0 -23
  168. package/src/components/Testimonial.vue +0 -86
  169. package/src/components/Text.vue +0 -34
  170. package/src/components/TextBlock.vue +0 -50
  171. package/src/components/TextEditor.vue +0 -85
  172. package/src/components/TextWithTag.vue +0 -298
  173. package/src/components/Textarea.vue +0 -184
  174. package/src/components/Textbox.vue +0 -216
  175. package/src/components/Thumbnail.vue +0 -27
  176. package/src/components/Timepicker.vue +0 -125
  177. package/src/components/Toast.vue +0 -117
  178. package/src/components/TreeMenu.vue +0 -122
  179. package/src/components/TreeView.vue +0 -106
  180. package/src/components/TreeView2.vue +0 -38
  181. package/src/components/TreeViewItem.vue +0 -453
  182. package/src/components/TreeViewItem1.vue +0 -282
  183. package/src/components/TreeViewItem2.vue +0 -55
  184. package/src/components/Uploader.vue +0 -45
  185. package/src/components/Video.vue +0 -119
  186. package/src/components/VirtualGrid.vue +0 -297
  187. package/src/components/VirtualScroll.vue +0 -282
  188. package/src/components/VirtualTable.vue +0 -956
  189. package/src/components/YoutubeVideo.vue +0 -196
  190. package/src/configs/dashboard/bar.js +0 -10
  191. package/src/configs/dashboard/collection-1.js +0 -5
  192. package/src/configs/dashboard/data-table.js +0 -9
  193. package/src/configs/dashboard/doughnut.js +0 -7
  194. package/src/configs/dashboard/gheatmaps.js +0 -9
  195. package/src/configs/dashboard/grid-2.js +0 -34
  196. package/src/configs/dashboard/grid-3.js +0 -34
  197. package/src/configs/dashboard/grid-4.js +0 -34
  198. package/src/configs/dashboard/grid.js +0 -15
  199. package/src/configs/dashboard/metric.js +0 -10
  200. package/src/configs/dashboard/pie.js +0 -7
  201. package/src/configs/dashboard/polar-area.js +0 -7
  202. package/src/configs/dashboard/virtual-table.js +0 -9
  203. package/src/configs/icons-fa.json +0 -12
  204. package/src/configs/web-page-builder.js +0 -118
  205. package/src/defs/dashboard-preset.js +0 -22
  206. package/src/directives/intersect.js +0 -26
  207. package/src/hooks/device.js +0 -14
  208. package/src/index.css +0 -3
  209. package/src/index.js +0 -648
  210. package/src/middleware/http/trim-string.js +0 -20
  211. package/src/mixin/component.js +0 -306
  212. package/src/mixin/ready-state.js +0 -37
  213. package/src/stores/components.js +0 -36
  214. package/src/stores/datasource.js +0 -11
  215. package/src/themes/default/index.js +0 -303
  216. package/src/utils/dashboard.js +0 -140
  217. package/src/utils/event-bus.js +0 -8
  218. package/src/utils/helpers.cjs +0 -635
  219. package/src/utils/helpers.js +0 -635
  220. package/src/utils/helpers.mjs +0 -722
  221. package/src/utils/importer.js +0 -209
  222. package/src/utils/list.mjs +0 -1509
  223. package/src/utils/listpage1.js +0 -1507
  224. package/src/utils/listview.js +0 -1287
  225. package/src/utils/preset-selector.cjs +0 -1455
  226. package/src/utils/preset-selector.js +0 -1452
  227. package/src/utils/preset-selector.mjs +0 -234
  228. package/src/utils/queue.js +0 -63
  229. package/src/utils/selection.js +0 -43
  230. package/src/utils/web.js +0 -50
  231. package/src/utils/web.mjs +0 -120
  232. package/src/utils/wss.js +0 -296
  233. package/src/utils/wss.mjs +0 -285
  234. package/src/widgets/AhrefSetting.vue +0 -97
  235. package/src/widgets/ArticleSetting.vue +0 -457
  236. package/src/widgets/BackgroundColorSetting.vue +0 -153
  237. package/src/widgets/BackgroundSetting.vue +0 -132
  238. package/src/widgets/BlockSetting.vue +0 -49
  239. package/src/widgets/BorderColorSetting.vue +0 -57
  240. package/src/widgets/BorderSetting.vue +0 -201
  241. package/src/widgets/BotEditor/BotEditorActions.vue +0 -163
  242. package/src/widgets/BotEditor/BotEditorSettings.vue +0 -21
  243. package/src/widgets/BotEditor.vue +0 -248
  244. package/src/widgets/BoxSetting.vue +0 -53
  245. package/src/widgets/ButtonSetting.vue +0 -113
  246. package/src/widgets/CarouselSetting.vue +0 -181
  247. package/src/widgets/CartSetting.vue +0 -46
  248. package/src/widgets/CheckoutSetting.vue +0 -46
  249. package/src/widgets/CollapsiblePanelSetting.vue +0 -46
  250. package/src/widgets/ColumnSelector.vue +0 -104
  251. package/src/widgets/ComponentPropertyLabel.vue +0 -35
  252. package/src/widgets/ComponentPropertySelector.vue +0 -115
  253. package/src/widgets/ComponentSetting.vue +0 -2220
  254. package/src/widgets/ComponentSetting2.vue +0 -927
  255. package/src/widgets/ComponentSetting3.vue +0 -231
  256. package/src/widgets/ContactForm.vue +0 -193
  257. package/src/widgets/ContactFormSetting.vue +0 -395
  258. package/src/widgets/CountdownSetting.vue +0 -76
  259. package/src/widgets/Dashboard/BarChart.vue +0 -366
  260. package/src/widgets/Dashboard/BarChartSetting.vue +0 -317
  261. package/src/widgets/Dashboard/DataTable.vue +0 -125
  262. package/src/widgets/Dashboard/DataTableSetting.vue +0 -243
  263. package/src/widgets/Dashboard/DatasourceFilterSharing.vue +0 -93
  264. package/src/widgets/Dashboard/DatasourcePreview.vue +0 -93
  265. package/src/widgets/Dashboard/DatasourceSelector.vue +0 -122
  266. package/src/widgets/Dashboard/Doughnut.vue +0 -199
  267. package/src/widgets/Dashboard/DoughnutSetting.vue +0 -196
  268. package/src/widgets/Dashboard/GHeatMapsSetting.vue +0 -108
  269. package/src/widgets/Dashboard/InteractionEdit.vue +0 -228
  270. package/src/widgets/Dashboard/Metric.vue +0 -135
  271. package/src/widgets/Dashboard/MetricSetting.vue +0 -227
  272. package/src/widgets/Dashboard/Pie.vue +0 -188
  273. package/src/widgets/Dashboard/PieSetting.vue +0 -247
  274. package/src/widgets/Dashboard/PolarArea.vue +0 -201
  275. package/src/widgets/Dashboard/PolarAreaSetting.vue +0 -195
  276. package/src/widgets/Dashboard/SharingModal.vue +0 -115
  277. package/src/widgets/Dashboard/ViewSelector.vue +0 -183
  278. package/src/widgets/Dashboard/VirtualColumnEdit.vue +0 -97
  279. package/src/widgets/Dashboard/VirtualTableSetting.vue +0 -171
  280. package/src/widgets/Dashboard0.vue +0 -1856
  281. package/src/widgets/DataListSetting.vue +0 -102
  282. package/src/widgets/EffectSetting.vue +0 -94
  283. package/src/widgets/EmbeddedVideo.vue +0 -60
  284. package/src/widgets/EmbeddedVideoSetting.vue +0 -50
  285. package/src/widgets/FAQ.vue +0 -98
  286. package/src/widgets/FAQSetting.vue +0 -94
  287. package/src/widgets/FeatureList.vue +0 -131
  288. package/src/widgets/FeatureListSetting.vue +0 -233
  289. package/src/widgets/FiltersSetting.vue +0 -88
  290. package/src/widgets/FlexSetting.vue +0 -174
  291. package/src/widgets/GridSetting.vue +0 -165
  292. package/src/widgets/Header.vue +0 -15
  293. package/src/widgets/Header0.vue +0 -41
  294. package/src/widgets/Header0Setting.vue +0 -75
  295. package/src/widgets/Header2.vue +0 -65
  296. package/src/widgets/Header2Setting.vue +0 -193
  297. package/src/widgets/HeaderSetting.vue +0 -102
  298. package/src/widgets/IconList.vue +0 -51
  299. package/src/widgets/IconListSetting.vue +0 -188
  300. package/src/widgets/ImageSetting.vue +0 -119
  301. package/src/widgets/LayoutSetting.vue +0 -251
  302. package/src/widgets/LinkSetting.vue +0 -209
  303. package/src/widgets/LinkSettingModal.vue +0 -173
  304. package/src/widgets/LogViewer.vue +0 -85
  305. package/src/widgets/MarginPaddingSetting.vue +0 -58
  306. package/src/widgets/MarginSetting.vue +0 -142
  307. package/src/widgets/MenuEditor.vue +0 -256
  308. package/src/widgets/MenuItem1Setting.vue +0 -78
  309. package/src/widgets/ModalSetting.vue +0 -94
  310. package/src/widgets/MultiValueSetting.vue +0 -121
  311. package/src/widgets/MultiValueSetting2.vue +0 -147
  312. package/src/widgets/OGSettingModal.vue +0 -103
  313. package/src/widgets/PaddingSetting.vue +0 -142
  314. package/src/widgets/ParagraphSetting.vue +0 -89
  315. package/src/widgets/PositionSetting.vue +0 -209
  316. package/src/widgets/PresetBar.vue +0 -990
  317. package/src/widgets/PresetBarPivot.vue +0 -198
  318. package/src/widgets/PresetBarPivotColumnEdit.vue +0 -197
  319. package/src/widgets/PresetSelector.vue +0 -685
  320. package/src/widgets/Review.vue +0 -131
  321. package/src/widgets/ReviewSetting.vue +0 -201
  322. package/src/widgets/SearchModalSetting.vue +0 -70
  323. package/src/widgets/Share.vue +0 -164
  324. package/src/widgets/ShareSetting.vue +0 -99
  325. package/src/widgets/SizingSetting.vue +0 -306
  326. package/src/widgets/SpacingSetting.vue +0 -77
  327. package/src/widgets/StyleSetting.vue +0 -543
  328. package/src/widgets/StyleSetting2.vue +0 -90
  329. package/src/widgets/SvgSetting.vue +0 -133
  330. package/src/widgets/TableSetting.vue +0 -172
  331. package/src/widgets/TestimonialSetting.vue +0 -161
  332. package/src/widgets/TextBlockSetting.vue +0 -81
  333. package/src/widgets/ThumbnailSetting.vue +0 -49
  334. package/src/widgets/TransitionSetting.vue +0 -64
  335. package/src/widgets/TypographySetting.vue +0 -334
  336. package/src/widgets/UserActionBuilder/UserActionCondition.vue +0 -99
  337. package/src/widgets/UserActionBuilder/UserActionConsole.vue +0 -97
  338. package/src/widgets/UserActionBuilder/UserActionItem.vue +0 -273
  339. package/src/widgets/UserActionBuilder/UserActionOutput.vue +0 -152
  340. package/src/widgets/UserActionBuilder/UserActionOutputDelay.vue +0 -27
  341. package/src/widgets/UserActionBuilder/UserActionOutputLog.vue +0 -28
  342. package/src/widgets/UserActionBuilder/UserActionOutputReply.vue +0 -112
  343. package/src/widgets/UserActionBuilder/UserActionProps.vue +0 -213
  344. package/src/widgets/UserActionBuilder.vue +0 -314
  345. package/src/widgets/WebComponentSelector.vue +0 -205
  346. package/src/widgets/WebDatasourceSelector.vue +0 -153
  347. package/src/widgets/WebLayoutSelector.vue +0 -147
  348. package/src/widgets/WebPageBuilder.vue +0 -2161
  349. package/src/widgets/WebPageBuilder2.vue +0 -1091
  350. package/src/widgets/WebPageBuilder3.vue +0 -411
  351. package/src/widgets/WebPageBuilder4/BackgroundColorSetting.vue +0 -54
  352. package/src/widgets/WebPageBuilder4/BackgroundPositionSetting.vue +0 -75
  353. package/src/widgets/WebPageBuilder4/BackgroundRepeatSetting.vue +0 -72
  354. package/src/widgets/WebPageBuilder4/BackgroundSizeSetting.vue +0 -72
  355. package/src/widgets/WebPageBuilder4/BlurSetting.vue +0 -72
  356. package/src/widgets/WebPageBuilder4/BorderColorSetting.vue +0 -64
  357. package/src/widgets/WebPageBuilder4/BorderRadiusSetting.vue +0 -75
  358. package/src/widgets/WebPageBuilder4/BorderSizeSetting.vue +0 -69
  359. package/src/widgets/WebPageBuilder4/BorderStyleSetting.vue +0 -72
  360. package/src/widgets/WebPageBuilder4/BoxShadowSetting.vue +0 -73
  361. package/src/widgets/WebPageBuilder4/ButtonSetting.vue +0 -65
  362. package/src/widgets/WebPageBuilder4/CarouselSetting.vue +0 -178
  363. package/src/widgets/WebPageBuilder4/DisplaySetting.vue +0 -76
  364. package/src/widgets/WebPageBuilder4/FlexAlignSetting.vue +0 -71
  365. package/src/widgets/WebPageBuilder4/FlexDirectionSetting.vue +0 -70
  366. package/src/widgets/WebPageBuilder4/FlexJustifySetting.vue +0 -74
  367. package/src/widgets/WebPageBuilder4/FlexPropertySetting.vue +0 -71
  368. package/src/widgets/WebPageBuilder4/FlexSetting.vue +0 -96
  369. package/src/widgets/WebPageBuilder4/FlexWrapSetting.vue +0 -69
  370. package/src/widgets/WebPageBuilder4/GapSetting.vue +0 -75
  371. package/src/widgets/WebPageBuilder4/GrayscaleSetting.vue +0 -68
  372. package/src/widgets/WebPageBuilder4/GridSetting.vue +0 -216
  373. package/src/widgets/WebPageBuilder4/HeightSetting.vue +0 -98
  374. package/src/widgets/WebPageBuilder4/ImageSetting.vue +0 -102
  375. package/src/widgets/WebPageBuilder4/MarginSetting.vue +0 -73
  376. package/src/widgets/WebPageBuilder4/MaxHeightSetting.vue +0 -82
  377. package/src/widgets/WebPageBuilder4/MaxWidthSetting.vue +0 -90
  378. package/src/widgets/WebPageBuilder4/MinHeightSetting.vue +0 -81
  379. package/src/widgets/WebPageBuilder4/MinWidthSetting.vue +0 -101
  380. package/src/widgets/WebPageBuilder4/MultiValueSetting.vue +0 -163
  381. package/src/widgets/WebPageBuilder4/OpacitySetting.vue +0 -77
  382. package/src/widgets/WebPageBuilder4/OverflowSetting.vue +0 -81
  383. package/src/widgets/WebPageBuilder4/PaddingSetting.vue +0 -57
  384. package/src/widgets/WebPageBuilder4/PositionSetting.vue +0 -191
  385. package/src/widgets/WebPageBuilder4/PropertySetting.vue +0 -176
  386. package/src/widgets/WebPageBuilder4/TextSetting.vue +0 -72
  387. package/src/widgets/WebPageBuilder4/TreeView.vue +0 -46
  388. package/src/widgets/WebPageBuilder4/TreeViewItem.vue +0 -303
  389. package/src/widgets/WebPageBuilder4/WebPageComponentSelector.vue +0 -141
  390. package/src/widgets/WebPageBuilder4/WebPagePropertySelector.vue +0 -172
  391. package/src/widgets/WebPageBuilder4/WidthSetting.vue +0 -105
  392. package/src/widgets/WebPageBuilder4/ZIndexSetting.vue +0 -72
  393. package/src/widgets/WebPageBuilder4.vue +0 -798
  394. package/src/widgets/WebPagePreview.vue +0 -295
  395. package/src/widgets/WebPageSelector.vue +0 -173
  396. package/src/widgets/WebTemplateCreator.vue +0 -156
  397. package/src/widgets/YoutubeVideoSetting.vue +0 -68
  398. package/tailwind.config.js +0 -481
@@ -1,485 +0,0 @@
1
- <template>
2
- <div v-if="readyState === 1" :class="$style.comp">
3
-
4
- <div class="p-3 flex flex-col items-start leading-tight">
5
- <small class="text-text-400 text-xs">{{ title ?? 'Untitled' }}</small>
6
- <h4 class="inline align-top cursor-pointer hover:text-primary group"
7
- @click="openPreset">
8
- {{ preset.name ?? 'Preset Name' }}
9
- <span v-if="badgeCount > 0" class="mx-1 min-w-[19px] px-2 h-[19px] relative top-[-2px] rounded-full bg-primary text-white inline-flex items-center justify-center">
10
- {{ badgeCount }}
11
- </span>
12
- <svg v-if="![ 'sidebar', 'external' ].includes(presetMode)" width="13" height="13" class="inline fill-text pointer-events-none group-hover:fill-primary" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"/></svg>
13
- </h4>
14
- </div>
15
-
16
- <div class="flex-1 flex flex-col">
17
-
18
- <Bar v-if="preset.chart.type === 'bar'"
19
- class="w-full"
20
- :options="chartOptions"
21
- :data="chartData" />
22
-
23
- <Line v-else-if="preset.chart.type === 'line'"
24
- class="w-full"
25
- :options="chartOptions"
26
- :data="chartData" />
27
-
28
- <Doughnut v-else-if="preset.chart.type === 'doughnut'"
29
- class="aspect-square"
30
- :options="chartOptions"
31
- :data="chartData" />
32
-
33
- <Pie v-else-if="preset.chart.type === 'pie'"
34
- class="aspect-square"
35
- :options="chartOptions"
36
- :data="chartData" />
37
-
38
- <Gmaps v-else-if="preset.chart.type === 'maps'"
39
- :data="chartData"
40
- :config="chartOptions"
41
- class="flex-1" />
42
-
43
- </div>
44
-
45
- <PresetSelector ref="presetSelector" :config="config" @select="load" type="chart" />
46
-
47
- </div>
48
-
49
- <div v-else-if="readyState < 0" :class="$style.comp"
50
- class="flex items-center justify-center gap-3">
51
- <svg width="32" height="32" class="fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.0.0-alpha3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) --><path d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM359.5 133.7c-10.11-8.578-25.28-7.297-33.83 2.828L256 218.8L186.3 136.5C177.8 126.4 162.6 125.1 152.5 133.7C142.4 142.2 141.1 157.4 149.7 167.5L224.6 256l-74.88 88.5c-8.562 10.11-7.297 25.27 2.828 33.83C157 382.1 162.5 384 167.1 384c6.812 0 13.59-2.891 18.34-8.5L256 293.2l69.67 82.34C330.4 381.1 337.2 384 344 384c5.469 0 10.98-1.859 15.48-5.672c10.12-8.562 11.39-23.72 2.828-33.83L287.4 256l74.88-88.5C370.9 157.4 369.6 142.2 359.5 133.7z"/></svg>
52
- <h5>{{ (error ?? {}).message ?? 'An error occurred' }}</h5>
53
- </div>
54
- </template>
55
-
56
- <script>
57
-
58
- import { Bar, Line, Doughnut, Pie } from 'vue-chartjs'
59
- import Chart from 'chart.js/auto'
60
- import PresetSelector from "../widgets/PresetSelector.vue";
61
- import throttle from "lodash/throttle";
62
- import dayjs from "dayjs";
63
-
64
- export default{
65
-
66
- components: {Bar, Line, Doughnut, Pie, PresetSelector},
67
-
68
- emits: [ 'open-preset' ],
69
-
70
- inject: [ 'alert', 'socket' ],
71
-
72
- props: {
73
- config: {
74
- type: Object,
75
- default: {}
76
- },
77
-
78
- presetKey: undefined,
79
- src: undefined,
80
- title: String,
81
- subscribeKey: String,
82
- presetMode: String,
83
- },
84
-
85
- data(){
86
- return {
87
- badgeCount: 0,
88
- readyState: 0,
89
- data: {},
90
- error: null,
91
-
92
- backgroundColors: [
93
- '#5D9CEC',
94
- '#A0D468',
95
- '#FFCE54',
96
- '#FC6E51',
97
- '#48CFAD',
98
- '#AC92EC',
99
- '#4FC1E9',
100
- '#FFCE54',
101
- '#ED5565',
102
- '#EC87C0'
103
- ],
104
- borderColors: [
105
- '#4A89DC',
106
- '#8CC152',
107
- '#F6BB42',
108
- '#E9573F',
109
- '#37BC9B',
110
- '#967ADC',
111
- '#3BAFDA',
112
- '#F6BB42',
113
- '#DA4453',
114
- '#D770AD'
115
- ],
116
- }
117
- },
118
-
119
- computed: {
120
-
121
- chartData(){
122
-
123
- const { type } = this.preset.chart ?? {}
124
- const { xAxis = [], yAxis = [] } = this.preset.chart[type] ?? {}
125
- const items = this.data.items ?? []
126
- let labels = []
127
- let datasets = []
128
-
129
- if(items.length > 0){
130
- switch(type){
131
-
132
- case 'doughnut':
133
- case 'pie':
134
- if(yAxis.length > 0){
135
- for(let i = 0 ; i < items.length ; i++){
136
- const item = items[i]
137
-
138
- const data = []
139
- for(let key in item){
140
- if(key.startsWith(yAxis[0].key)){
141
- const value = key.split(':').pop()
142
- if(i === 0) labels.push(value)
143
- }
144
- data.push(item[key])
145
- }
146
-
147
- let label = []
148
- for(let xAxe of xAxis){
149
- if(!xAxe.key) continue
150
-
151
- switch(this.columns[xAxe.key].type){
152
- case 'enum':
153
- label.push(this.columns[xAxe.key].typeParams.find(_ => _.value === item[xAxe.key])?.text ?? item[xAxe.key])
154
- break
155
-
156
- default:
157
- label.push(item[xAxe.key])
158
- break
159
- }
160
- }
161
- label = label.join(' ')
162
-
163
- datasets.push({
164
- label,
165
- backgroundColor: this.backgroundColors,
166
- data
167
- })
168
- }
169
- }
170
- break
171
-
172
- case 'maps':
173
- datasets = items
174
- break
175
-
176
- case 'line':
177
- case 'bar':
178
-
179
- if(xAxis.length > 0){
180
- if(yAxis.length < 1){
181
- datasets.push({
182
- label: 'count',
183
- data: [],
184
- borderColor: this.borderColors[datasets.length % this.borderColors.length],
185
- backgroundColor: this.backgroundColors[datasets.length % this.backgroundColors.length],
186
- })
187
- }
188
- else{
189
- for(let yAxe of yAxis){
190
-
191
- const item0 = items[0]
192
- for(let key in item0){
193
- if(key.startsWith(yAxe.key)) {
194
- const value = key.split(':').pop()
195
- let label = value
196
-
197
- const columnKey = yAxe.key
198
- const column = this.config.columns.find(column => column.key === columnKey)
199
- if(column){
200
- switch (column.type) {
201
- case 'enum':
202
- label = column.typeParams.find(_ => `${_.value}` === `${value}`)?.text ?? label
203
- break
204
- }
205
- }
206
-
207
- datasets.push({
208
- key,
209
- label,
210
- data: [],
211
- borderColor: this.borderColors[datasets.length % this.borderColors.length],
212
- backgroundColor: this.backgroundColors[datasets.length % this.backgroundColors.length],
213
- })
214
- }
215
- }
216
- }
217
- }
218
-
219
- for(let item of this.data.items ?? []){
220
-
221
- const column = this.config.columns.find(column => column.key === xAxis[0].key)
222
- if(!column) continue
223
-
224
- switch(column.type){
225
- case 'date':
226
- switch(xAxis[0].aggregrate){
227
-
228
- case 'date':
229
- labels.push(dayjs(item[xAxis[0].key]).format('DD MMM'))
230
- break
231
-
232
- default:
233
- labels.push(item[xAxis[0].key])
234
- break
235
- }
236
- break
237
-
238
- case 'enum':
239
- labels.push(column.typeParams.find(_ => _.value === item[xAxis[0].key])?.text ?? item[xAxis[0].key])
240
- break
241
-
242
- default:
243
- labels.push(item[xAxis[0].key])
244
- break
245
- }
246
-
247
- if(yAxis.length < 1){
248
- datasets[0].data.push(item['count'])
249
- }
250
- else{
251
- for(let i in datasets){
252
- datasets[i].data.push(item[datasets[i].key])
253
- }
254
- }
255
- }
256
- }
257
- break
258
- }
259
- }
260
-
261
- return {
262
- labels,
263
- datasets,
264
- }
265
- },
266
-
267
- chartOptions(){
268
- if(typeof window === 'undefined') return
269
-
270
- const { type } = this.chart
271
- const opt = this.chartOpt
272
-
273
- switch(type){
274
-
275
- case 'doughnut':
276
- case 'pie':
277
- return {
278
- responsive: true,
279
- maintainAspectRatio: false,
280
- plugins: {
281
- legend: {
282
- display: opt.showLegend ?? false, // Disable the legend
283
- },
284
- },
285
- }
286
-
287
- case 'maps':
288
- return {
289
- apiKey: 'AIzaSyBmzMlmrR5St-njtN--64y_oLTa9FDLYfQ',
290
- mapColumn: opt.mapColumn,
291
- zoom: 4,
292
- center: [ -1.861824, 118.444392 ]
293
- }
294
-
295
- default:
296
- var style = getComputedStyle(document.body)
297
- var gridColor = style.getPropertyValue('--text-100')
298
- var gridColor2 = style.getPropertyValue('--text-200')
299
-
300
- return {
301
- responsive: true,
302
- maintainAspectRatio: false,
303
- animation: true,
304
- plugins: {
305
- legend: {
306
- display: opt.showLegend ?? false, // Disable the legend
307
- },
308
- },
309
- scales: {
310
- x: {
311
- //display: false, // Disable x-axis labels
312
- grid: {
313
- display: true,
314
- color: function(context){
315
- return `rgb(${gridColor2})`
316
- }
317
- },
318
- stacked: this.preset.chart.type === 'bar' && opt.stack
319
- },
320
- y: {
321
- beginAtZero: true, // Adjust y-axis as needed
322
- grid: {
323
- display: true,
324
- color: function(context){
325
- return `rgb(${gridColor})`
326
- }
327
- },
328
- stacked: this.preset.chart.type === 'bar' && opt.stack
329
- },
330
- },
331
- }
332
- }
333
- },
334
-
335
- chart(){
336
- return this.preset.chart ?? {}
337
- },
338
-
339
- chartOpt(){
340
- if(!this.preset.chart[this.preset.chart.type])
341
- this.preset.chart[this.preset.chart.type] = {}
342
-
343
- return this.preset.chart[this.preset.chart.type]
344
- },
345
-
346
- columns(){
347
- return this.config.columns.reduce((acc, column) => {
348
- acc[column.key] = column
349
- return acc
350
- }, {})
351
- },
352
-
353
- preset(){
354
- return ((this.config ?? {}).presets ?? [])[(this.config ?? {}).presetIdx ?? 0] ?? {}
355
- },
356
-
357
- },
358
-
359
- methods: {
360
-
361
- load(){
362
- this.socket.send(this.src, this.preset)
363
- .then(data => {
364
- this.data = data
365
- this.readyState = 1
366
- })
367
- .catch(err => {
368
- this.readyState = -1
369
- this.error = err
370
- })
371
- },
372
-
373
- loadPreset(){
374
- if(this.presetKey){
375
- return this.socket.send('user.preset', { key:this.presetKey, reset:'reset' in this.$route.query })
376
- .then(config => {
377
- Object.assign(this.config, config)
378
-
379
- if('reset' in this.$route.query){
380
- this.savePreset()
381
- this.$router.replace({ name:this.$route.name })
382
- }
383
- })
384
- }
385
- return new Promise(resolve => resolve())
386
- },
387
-
388
- saveConfig: throttle(function() {
389
- if(this.presetKey){
390
- this.socket.send('user.preset',
391
- { key:this.presetKey, config:this.config })
392
- }
393
- }, 1000, { leading:true }),
394
-
395
- onSignal(event, items){
396
-
397
- const hasData = items.some(item => item._data)
398
- if(hasData){
399
- for(let item of items){
400
- if(item._data){
401
- const length = this.data.items.length
402
- this.$util.push(this.data.items, { id:item.id, ...item._data })
403
- this.data.items.length > length ? this.data.items.shift() : null
404
- }
405
- }
406
- }
407
- else{
408
- this.socket.send(this.src, {
409
- ...this.preset,
410
- id: items.map(item => item.id)
411
- })
412
- .then(data => {
413
- if(!Array.isArray((data ?? {}).items)) return
414
-
415
- for(let item of data.items){
416
- const length = this.data.items.length
417
- this.$util.push(this.data.items, item)
418
- this.data.items.length > length ? this.data.items.shift() : null
419
- }
420
- })
421
- }
422
-
423
- },
424
-
425
- openPreset(){
426
-
427
- switch(this.presetMode){
428
-
429
- case 'external':
430
- this.$emit('open-preset')
431
- break
432
-
433
- case 'sidebar':
434
- break
435
-
436
- default:
437
- this.$refs.presetSelector.open()
438
- break
439
-
440
- }
441
- },
442
- },
443
-
444
- mounted() {
445
- this.loadPreset()
446
- .then(() => {
447
- this.readyState = 1
448
- this.load()
449
- })
450
-
451
- if(this.subscribeKey){
452
- this.socket.send('user.subscribe', { name:this.subscribeKey })
453
- this.socket.on(this.subscribeKey, this.onSignal)
454
- }
455
- },
456
-
457
- unmounted() {
458
- if(this.subscribeKey) {
459
- this.socket.send('user.unsubscribe', {name: this.subscribeKey})
460
- this.socket.off(this.subscribeKey, this.onSignal)
461
- }
462
- },
463
-
464
- watch: {
465
-
466
- config: {
467
- deep: true,
468
- handler(){
469
- this.saveConfig()
470
- }
471
- }
472
-
473
- },
474
-
475
- }
476
-
477
- </script>
478
-
479
- <style module>
480
-
481
- .comp{
482
- @apply flex flex-col p-2;
483
- }
484
-
485
- </style>
@@ -1,192 +0,0 @@
1
- <template>
2
- <div :class="$style.comp">
3
- <pre class="hidden whitespace-nowrap text-xs overflow-x-auto">{{ options }}</pre>
4
- <Bar :class="$style.chart" :data="chartData" :options="chartOptions" />
5
- </div>
6
- </template>
7
-
8
- <script>
9
-
10
- import {Bar} from 'vue-chartjs';
11
- import dayjs from "dayjs";
12
- import {groupBy} from "../utils/helpers.mjs";
13
-
14
- export default{
15
-
16
- name: 'BarChart',
17
-
18
- components: { Bar },
19
-
20
- props: {
21
-
22
- items: Array,
23
-
24
- options: Object,
25
-
26
- },
27
-
28
- methods: {
29
-
30
- setInitialData(){
31
-
32
- const items = []
33
- const end = new Date();
34
- const start = new Date(end);
35
- start.setMinutes(end.getMinutes() - 2);
36
-
37
- let currentTime = new Date(start);
38
- while (currentTime <= end) {
39
-
40
- const count = Math.round(Math.random() * 100)
41
- for(let i = 0 ; i < count ; i++){
42
- items.push({
43
- createdAt: currentTime.toISOString()
44
- })
45
- }
46
-
47
- currentTime.setSeconds(currentTime.getSeconds() + 1);
48
- }
49
-
50
- this.items = items
51
- },
52
-
53
- play(){
54
-
55
- const arr = []
56
- const end = new Date();
57
- //end.setHours(16, 7, 0, 0)
58
- const start = new Date(end);
59
- start.setHours(end.getHours() - 2);
60
-
61
- let currentTime = new Date(start);
62
- while (currentTime <= end) {
63
- arr.push(dayjs(currentTime).format('YYYYMMDDHHmm'))
64
- currentTime.setMinutes(currentTime.getMinutes() + 1);
65
- }
66
-
67
- this.labels = arr
68
-
69
- /*let count = Math.round(Math.random() * 100)
70
- if(count < 10) count = 0
71
- const newItems = []
72
- for(let i = 0 ; i < count ; i++){
73
- newItems.push({
74
- createdAt: currentTime.toISOString()
75
- })
76
- }
77
- this.items.push(...newItems)*/
78
-
79
- /*window.setTimeout(() => {
80
- this.play()
81
- }, 1000)*/
82
- },
83
-
84
- },
85
-
86
- data(){
87
- return {
88
- labels: [],
89
- groupedData: {},
90
- // items: []
91
- }
92
- },
93
-
94
- mounted() {
95
-
96
- //this.setInitialData()
97
-
98
- this.play()
99
- },
100
-
101
- computed: {
102
-
103
- columnKey(){
104
- return this.options.bar.rows[0].key
105
- },
106
-
107
- interval(){
108
- return this.options.bar.rows[0].format
109
- },
110
-
111
- groupedItems(){
112
- console.log('#1', this.columnKey)
113
- return groupBy(this.items, (item) => {
114
- return dayjs(item[this.columnKey]).format('YYYYMMDDHHmm')
115
- })
116
- },
117
-
118
- data(){
119
- const arr = []
120
- for(let i = 0 ; i < this.labels.length ; i++){
121
- arr.push((this.groupedItems[this.labels[i]] ?? []).length)
122
- }
123
-
124
- /*if(Array.isArray(this.labels))
125
- console.log(this.labels[0], this.labels[this.labels.length - 1], Object.keys(this.groupedItems), arr)*/
126
-
127
- return arr
128
- },
129
-
130
- chartData() {
131
- return {
132
- labels: this.labels,
133
- datasets: [ { data: this.data } ],
134
- }
135
- },
136
-
137
- chartOptions() {
138
-
139
- var style = getComputedStyle(document.body)
140
- var gridColor = style.getPropertyValue('--text-50')
141
- var gridColor2 = style.getPropertyValue('--text-200')
142
-
143
- return {
144
- responsive: true,
145
- maintainAspectRatio: false,
146
- animation: false,
147
- plugins: {
148
- legend: {
149
- display: false, // Disable the legend
150
- },
151
- },
152
- scales: {
153
- x: {
154
- display: false, // Disable x-axis labels
155
- grid: {
156
- display: true,
157
- color: function(context){
158
- return `rgb(${gridColor2})`
159
- }
160
- },
161
- },
162
- y: {
163
- beginAtZero: true, // Adjust y-axis as needed
164
- grid: {
165
- display: true,
166
- color: function(context){
167
- return `rgb(${gridColor})`
168
- }
169
- },
170
- },
171
- },
172
- }
173
- }
174
-
175
- },
176
-
177
- }
178
-
179
- </script>
180
-
181
- <style module>
182
-
183
- .comp{
184
- @apply flex-1;
185
- }
186
-
187
- .chart{
188
- position: relative;
189
- width: 100%;
190
- }
191
-
192
- </style>