@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,93 +0,0 @@
1
- <template>
2
- <Modal :state="isOpen" width="400" height="400" :class="$style.previewModal">
3
- <div class="flex-1 flex flex-col gap-3">
4
- <div class="flex flex-row gap-4 justify-end items-center p-3 pr-6">
5
- <slot name="moreButtons"></slot>
6
- <a v-if="canDownload" :href="imageUrl" target="_blank" download>
7
- <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" class="fill-text" 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="M480 352h-133.5l-45.25 45.25C289.2 409.3 273.1 416 256 416s-33.16-6.656-45.25-18.75L165.5 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM432 456c-13.2 0-24-10.8-24-24c0-13.2 10.8-24 24-24s24 10.8 24 24C456 445.2 445.2 456 432 456zM233.4 374.6C239.6 380.9 247.8 384 256 384s16.38-3.125 22.62-9.375l128-128c12.49-12.5 12.49-32.75 0-45.25c-12.5-12.5-32.76-12.5-45.25 0L288 274.8V32c0-17.67-14.33-32-32-32C238.3 0 224 14.33 224 32v242.8L150.6 201.4c-12.49-12.5-32.75-12.5-45.25 0c-12.49 12.5-12.49 32.75 0 45.25L233.4 374.6z"/></svg>
8
- </a>
9
- <button @click="close">
10
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="fill-text" viewBox="0 0 320 512"><!--! Font Awesome Pro 6.0.0-alpha3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) --><path d="M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"/></svg>
11
- </button>
12
- </div>
13
- <div class="flex items-center justify-center">
14
- <img :src="imageUrl" class="max-h-[75vh]"/>
15
- </div>
16
- </div>
17
- </Modal>
18
- </template>
19
-
20
- <script>
21
-
22
- export default{
23
-
24
- props: {
25
-
26
- download: {
27
- type: [ Boolean, String ],
28
- default: false
29
- },
30
-
31
-
32
-
33
- },
34
-
35
- computed: {
36
-
37
- canDownload(){
38
- return this.download || this.downloadable
39
- }
40
-
41
- },
42
-
43
- data(){
44
- return {
45
- downloadable: false,
46
- isOpen: false,
47
- imageUrl: null
48
- }
49
- },
50
-
51
- methods: {
52
-
53
- open(imageUrl, opt = {}){
54
- this.imageUrl = imageUrl
55
- this.isOpen = true
56
- this.downloadable = opt.download || this.downloadable
57
- window.addEventListener('keyup', this.onKeyUp)
58
- },
59
-
60
- close(){
61
- this.isOpen = false
62
- this.imageUrl = null
63
- window.removeEventListener('keyup', this.onKeyUp)
64
- },
65
-
66
- onKeyUp(e){
67
- if(e.keyCode === 27){
68
- e.preventDefault()
69
- e.stopPropagation()
70
- this.close()
71
- }
72
- }
73
-
74
- }
75
-
76
- }
77
-
78
- </script>
79
-
80
- <style module>
81
-
82
- .comp{
83
-
84
- }
85
-
86
- .previewModal{
87
- @apply !w-screen !h-screen !bg-base-300 !rounded-none top-0;
88
- z-index: 121 !important;
89
- max-width: unset !important;
90
- max-height: unset !important;
91
- }
92
-
93
- </style>
@@ -1,114 +0,0 @@
1
- <template>
2
- <button ref="btn"
3
- type="button"
4
- class="text-primary text-sm"
5
- @click="$refs.contextMenu.open($refs.btn)">
6
- <slot>Upload</slot>
7
- </button>
8
-
9
- <input type="file" class="hidden" ref="file" accept="image/*" @change="onFileUpload" />
10
-
11
- <ContextMenu ref="contextMenu" position="bottom-right">
12
- <div class="flex flex-col min-w-[200px]">
13
-
14
- <button class="menu-item w-full p-3 text-left flex flex-row"
15
- @click="$refs.file.click()">
16
- Upload Image File...
17
- </button>
18
-
19
- <button class="menu-item w-full p-3 text-left flex flex-row"
20
- @click="$refs.modal.open()">
21
- SVG Text
22
- </button>
23
- </div>
24
- </ContextMenu>
25
-
26
- <Modal ref="modal" width="480" height="480">
27
- <template v-slot:head>
28
- <div class="relative p-5">
29
- <h3>Add SVG Text</h3>
30
- <div class="absolute top-0 right-0 p-2">
31
- <button type="button" class="p-2" @click="$refs.modal.close()">
32
- <svg width="24" height="24" viewBox="0 0 24 24" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg">
33
- <path d="M6.53034 5.46965C6.23745 5.17676 5.76257 5.17676 5.46968 5.46965C5.17679 5.76255 5.17679 6.23742 5.46968 6.53031L10.9393 12L5.46967 17.4697C5.17678 17.7626 5.17678 18.2374 5.46967 18.5303C5.76256 18.8232 6.23744 18.8232 6.53033 18.5303L12 13.0606L17.4697 18.5303C17.7626 18.8232 18.2375 18.8232 18.5303 18.5303C18.8232 18.2374 18.8232 17.7626 18.5303 17.4697L13.0607 12L18.5303 6.53032C18.8232 6.23743 18.8232 5.76256 18.5303 5.46966C18.2374 5.17677 17.7626 5.17677 17.4697 5.46966L12 10.9393L6.53034 5.46965Z"/>
34
- </svg>
35
- </button>
36
- </div>
37
- </div>
38
- </template>
39
- <template v-slot:foot="{ context }">
40
- <div class="p-5">
41
- <Button class="w-[90px]"
42
- :state="`${context.value}`.length > 0 ? 1 : -1"
43
- @click="addSvg(context)">
44
- Add
45
- </Button>
46
- </div>
47
- </template>
48
-
49
- <template #default="{ context }">
50
- <div class="flex-1 p-5 flex flex-col gap-3">
51
-
52
- <div>
53
- <SvgEditor v-model="context.value" class="" />
54
- </div>
55
-
56
- </div>
57
- </template>
58
- </Modal>
59
- </template>
60
-
61
- <script setup>
62
-
63
- import {useTemplateRef} from "vue";
64
- import ContextMenu from "./ContextMenu.vue";
65
- import SvgEditor from "./SvgEditor.vue";
66
-
67
- const { uploadFn } = defineProps({
68
- uploadFn: Function
69
- })
70
-
71
- const file = useTemplateRef('file')
72
- const modal = useTemplateRef('modal')
73
- const emits = defineEmits([ 'change' ])
74
-
75
- function onFileUpload(e){
76
- if(typeof uploadFn === 'function'){
77
- uploadFn(e.target.files[0])
78
- .then(res => {
79
- emits('change', res.name)
80
- file.value.value = null
81
- })
82
- .catch(e => {
83
- console.error(e)
84
- })
85
- }
86
- else{
87
- emits('change', e.target.files[0])
88
- file.value.value = null
89
- }
90
- }
91
-
92
- function addSvg(obj){
93
- emits('change', obj.value)
94
- modal.value.close()
95
- }
96
-
97
- function edit(value){
98
- if(`${value}`.indexOf('<svg') >= 0){
99
- modal.value.open({ value })
100
- }
101
- }
102
-
103
- defineExpose({
104
- edit
105
- })
106
-
107
- </script>
108
-
109
- <style module>
110
-
111
- .comp {
112
- }
113
-
114
- </style>
@@ -1,260 +0,0 @@
1
- <template>
2
- <Modal :state="isOpen" width="480" height="560">
3
- <template v-slot:head>
4
- <div class="relative flex flex-row">
5
- <div v-if="step !== 3" class="flex-1 p-6 leading-relaxed">
6
- <h3>{{ title }}</h3>
7
- <slot v-if="step === 1 && 'description' in $slots" name="description"></slot>
8
- <p v-else-if="step === 1" class="mt-1 text-text-400" v-html="description"></p>
9
- <slot v-else-if="step === 2 && 'description2' in $slots" name="description2"></slot>
10
- <p v-else-if="step === 2" class="mt-1 text-text-400" v-html="description2"></p>
11
- </div>
12
- <div class="p-2 pl-0">
13
- <button type="button" class="p-2" @click="isOpen = false">
14
- <svg width="24" height="24" viewBox="0 0 24 24" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg">
15
- <path d="M6.53034 5.46965C6.23745 5.17676 5.76257 5.17676 5.46968 5.46965C5.17679 5.76255 5.17679 6.23742 5.46968 6.53031L10.9393 12L5.46967 17.4697C5.17678 17.7626 5.17678 18.2374 5.46967 18.5303C5.76256 18.8232 6.23744 18.8232 6.53033 18.5303L12 13.0606L17.4697 18.5303C17.7626 18.8232 18.2375 18.8232 18.5303 18.5303C18.8232 18.2374 18.8232 17.7626 18.5303 17.4697L13.0607 12L18.5303 6.53032C18.8232 6.23743 18.8232 5.76256 18.5303 5.46966C18.2374 5.17677 17.7626 5.17677 17.4697 5.46966L12 10.9393L6.53034 5.46965Z"/>
16
- </svg>
17
- </button>
18
- </div>
19
- </div>
20
- </template>
21
- <template v-slot:foot>
22
- <div class="p-5 flex flex-row gap-3" v-if="step === 2">
23
- <Button class="w-[120px]" :disabled="!canImport" :state="isLoading ? 2 : 1" @click="proceedImport">Import</Button>
24
- <Button variant="secondary" class="w-[80px]" @click="step = 1">Back</Button>
25
- </div>
26
- </template>
27
-
28
- <div class="flex-1 p-5 flex flex-col items-center justify-center" v-if="step === 1">
29
- <button type="button" @click="$refs.uploader.click()" class="rounded-3xl w-[160px] bg-base-300 px-6 aspect-square flex items-center justify-center text-center border-dashed border-[3px] border-border-100">
30
- <div class="text-xl" v-if="!isLoading">
31
- Click to <br />
32
- <span class="text-primary text-lg">Upload</span>
33
- file
34
- </div>
35
- <div v-else class="flex items-center justify-center">
36
- <svg class="animate-spin aspect-square w-[48px] text-primary" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>
37
- </div>
38
- </button>
39
- <input type="file" :accept="accept" ref="uploader" class="hidden" @change="onFileUploaded"/>
40
- <br />
41
- <br />
42
- <br />
43
- <br />
44
- <div v-if="templateFiles.length > 0" class="flex flex-col gap-2">
45
- <a v-for="(file, index) in templateFiles" :href="file" class="text-primary">
46
- Download Sample {{ templateFiles.length > 1 ? index + 1 : '' }}
47
- </a>
48
- </div>
49
- </div>
50
-
51
- <div class="flex-1 p-5 flex flex-col gap-3" v-else-if="step === 2">
52
- <div v-for="(key, index) in importData.keys" class="flex flex-row items-center gap-2">
53
- <div class="w-[120px]">
54
- <strong v-if="key.required">{{ key.text }}*</strong>
55
- <label v-else>{{ key.text }}</label>
56
- </div>
57
- <div class="flex-1">
58
- <Dropdown v-model="importData.keys[index].value" :class="key.required ? 'w-full' : 'w-[210px]'">
59
- <option disabled selected>Pilih Kolom</option>
60
- <option v-for="column in importData.columns" :value="column">{{ column }}</option>
61
- </Dropdown>
62
- </div>
63
- </div>
64
- <slot name="mapping-opt" :import-data="importData"></slot>
65
- </div>
66
-
67
- <div class="flex-1 flex items-center justify-center" v-else-if="step === 3">
68
- <div class="flex flex-col items-center justify-center gap-1">
69
- <svg width="84" height="84" viewBox="0 0 24 24" class="fill-green-600" xmlns="http://www.w3.org/2000/svg">
70
- <path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20.5 12C20.5 16.6944 16.6944 20.5 12 20.5C7.30558 20.5 3.5 16.6944 3.5 12C3.5 7.30558 7.30558 3.5 12 3.5C14.5863 3.5 16.9028 4.65509 18.4618 6.47753L11.1768 13.7626C11.0791 13.8602 10.9209 13.8602 10.8232 13.7626L8.03033 10.9697C7.73744 10.6768 7.26256 10.6768 6.96967 10.9697C6.67678 11.2626 6.67678 11.7374 6.96967 12.0303L9.76256 14.8232C10.446 15.5066 11.554 15.5066 12.2374 14.8232L19.3437 7.717C20.0787 8.97466 20.5 10.4381 20.5 12Z" />
71
- </svg>
72
- <h3>{{ importData.result.title ?? 'Data berhasil diimport' }}</h3>
73
- <p class="mb-4 text-text-400 text-center" v-html="importData.result.description"></p>
74
- <div v-if="Object.keys(importData.result.count).length > 0" class="p-2 border-green-500 border-[1px] rounded-lg">
75
- <table>
76
- <tr v-for="(count, key) in importData.result.count">
77
- <td class="text-sm text-green-500">{{ key }}</td>
78
- <td class="text-sm text-green-500 px-2">:</td>
79
- <td class="text-sm text-green-500">{{ count }}</td>
80
- </tr>
81
- </table>
82
- </div>
83
- <div v-else class="p-2 text-sm text-green-500 border-green-500 border-[1px] rounded-lg">
84
- Total Data: {{ importData.result.count }}
85
- </div>
86
- <div class="px-6 my-4">
87
- <VirtualTable v-if="warnings.length > 0" :columns="warningColumns" :items="warnings" class="h-[200px]"></VirtualTable>
88
- </div>
89
-
90
- <div class="flex flex-row gap-3">
91
- <Button class="font-bold w-[160px]" @click="close">OK</Button>
92
- <Button v-if="warnings.length > 0" variant="outline" class="font-bold w-[60px]" @click="downloadWarning">
93
- <svg width="21" height="21" viewBox="0 0 24 24" class="fill-text-300 mr-1" xmlns="http://www.w3.org/2000/svg">
94
- <path d="M12.7519 4.99959C12.7519 4.58537 12.4161 4.24959 12.0019 4.24959C11.5877 4.24959 11.2519 4.58537 11.2519 4.99959V13.6894L8.03216 10.4697C7.73927 10.1768 7.26439 10.1768 6.9715 10.4697C6.67861 10.7626 6.67861 11.2374 6.9715 11.5303L10.7644 15.3233C11.4479 16.0067 12.5559 16.0067 13.2393 15.3233L17.0303 11.5323C17.3232 11.2394 17.3232 10.7645 17.0303 10.4716C16.7374 10.1787 16.2625 10.1787 15.9696 10.4716L12.7519 13.6893V4.99959Z" />
95
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4 14.25C4.41421 14.25 4.75 14.5858 4.75 15V17C4.75 17.6904 5.30964 18.25 6 18.25H18C18.6904 18.25 19.25 17.6904 19.25 17V15C19.25 14.5858 19.5858 14.25 20 14.25C20.4142 14.25 20.75 14.5858 20.75 15V17C20.75 18.5188 19.5188 19.75 18 19.75H6C4.48122 19.75 3.25 18.5188 3.25 17V15C3.25 14.5858 3.58579 14.25 4 14.25Z" />
96
- </svg>
97
- </Button>
98
- </div>
99
- </div>
100
- </div>
101
-
102
- </Modal>
103
- </template>
104
-
105
- <script>
106
-
107
- import axios from "axios";
108
-
109
- export default{
110
-
111
- emits: [ 'complete' ],
112
-
113
- inject: [ 'alert', 'socketEmit', 'socket' ],
114
-
115
- props: {
116
-
117
- accept: { type: String, default: ".csv,.xlsx" },
118
-
119
- title: { type: String, default: "Untitled Import" },
120
-
121
- description: { type: String, default: "Import csv or xlsx file" },
122
-
123
- description2: { type: String, default: "Map column to fields" },
124
-
125
- urlAnalyse: { type: String },
126
-
127
- urlImport: { type: String },
128
-
129
- useHttp: [ Boolean, String, Number ],
130
-
131
- completeDescription: { type: String, default: "" },
132
-
133
- warningFile: { type: String, default: "warning.txt" },
134
-
135
- templateFile: String
136
-
137
- },
138
-
139
- computed: {
140
-
141
- canImport(){
142
- return (this.importData.keys ?? []).filter((_) => _.required && !_.value).length < 1
143
- },
144
-
145
- warnings(){
146
- return (this.importData.result ?? {}).warnings ?? []
147
- },
148
-
149
- templateFiles(){
150
- return (this.templateFile ?? '').split(',')
151
- }
152
-
153
- },
154
-
155
- data(){
156
- return {
157
- isOpen: false,
158
- isLoading: false,
159
- step: 1,
160
- importData: null,
161
- warningColumns: [
162
- { key:"text", label:"Warning", width:"420px", visible:true }
163
- ]
164
- }
165
- },
166
-
167
- methods: {
168
-
169
- onFileUploaded(){
170
-
171
- const data = new FormData()
172
- data.append('file', this.$refs.uploader.files[0])
173
- data.append('filename', this.$refs.uploader.files[0].name)
174
-
175
- this.isLoading = true
176
- axios({
177
- url: this.urlAnalyse,
178
- method: 'POST',
179
- data
180
- })
181
- .then(({ data:res }) => {
182
-
183
- this.step = 2
184
- this.importData = res
185
-
186
- this.importData.keys.forEach((key) => {
187
-
188
- const labels = [
189
- ...(key.labels ?? []),
190
- key.text
191
- ]
192
-
193
- const value = res.columns.filter((_) => labels.includes(_)).pop()
194
- if(value) key.value = value
195
- })
196
- })
197
- .catch((e) => {
198
- this.alert(e.response.data)
199
- })
200
- .finally(() => {
201
- this.isLoading = false
202
- })
203
- },
204
-
205
- open(){
206
- this.reset()
207
- this.isOpen = true
208
- },
209
-
210
- close(){
211
- this.isOpen = false
212
- this.$emit('dismiss')
213
- if(this.step === 3){
214
- this.$emit('complete')
215
- }
216
- },
217
-
218
- reset(){
219
- this.step = 1
220
- this.importData = {}
221
- },
222
-
223
- proceedImport(){
224
-
225
- this.isLoading = true
226
- axios({
227
- url: this.urlImport,
228
- method: 'POST',
229
- data: this.importData
230
- })
231
- .then(({ data:res }) => {
232
- this.importData.result = res
233
- this.step = 3
234
- })
235
- .catch((e) => {
236
- this.alert(e.response.data)
237
- })
238
- .finally(() => {
239
- this.isLoading = false
240
- })
241
- },
242
-
243
- downloadWarning(){
244
- const warningText = this.importData.result.warnings.map((_) => _.text).join("\n")
245
- this.$download("data:attachment/text," + encodeURI(warningText), this.warningFile)
246
- }
247
-
248
- }
249
-
250
- }
251
-
252
- </script>
253
-
254
- <style module>
255
-
256
- .comp{
257
-
258
- }
259
-
260
- </style>
@@ -1,95 +0,0 @@
1
- <template>
2
- <router-link v-if="mode === 'route' && (items ?? []).length <= 0" :to="route">
3
- {{ text }}
4
- </router-link>
5
- <router-link v-else-if="mode === 'route' && (items ?? []).length > 0" :to="route">
6
- <component v-for="(item, idx) in items"
7
- :is="item.type"
8
- :key="idx"
9
- :="item" />
10
- </router-link>
11
-
12
- <a v-else-if="mode === 'link' && (items ?? []).length <= 0" :href="link.href" :target="link.target">
13
- {{ text }}
14
- </a>
15
- <a v-else-if="mode === 'link' && (items ?? []).length > 0" :href="link.href" :target="link.target">
16
- <component v-for="(item, idx) in items"
17
- :is="item.type"
18
- :key="idx"
19
- :="item" />
20
- </a>
21
-
22
- <a v-else-if="mode === 'download' && (items ?? []).length <= 0"
23
- :download="download.originalName ?? download.name"
24
- :href="download.url">
25
- {{ text }}
26
- </a>
27
- <a v-else-if="mode === 'download' && (items ?? []).length > 0"
28
- :download="download.originalName ?? download.name"
29
- :href="download.url">
30
- <component v-for="(item, idx) in items"
31
- :is="item.type"
32
- :key="idx"
33
- :="item" />
34
- </a>
35
-
36
- </template>
37
-
38
- <script>
39
-
40
- import {componentMixin} from "../mixin/component";
41
- import {applyDatasourceReplacer} from "../utils/helpers";
42
-
43
- export default{
44
-
45
- mixins: [ componentMixin ],
46
-
47
- props: {
48
- text: String,
49
- items: Array,
50
-
51
- mode: String,
52
- route: Object,
53
- link: Object,
54
- download: Object,
55
- },
56
-
57
- computed: {
58
-
59
- isExternalLink(){
60
- return (this.href ?? '').indexOf('://') > -1;
61
- },
62
-
63
- to(){
64
- const obj = {}
65
-
66
- if(this.route.hash)
67
- obj.hash = '#' + (this.editMode === 1 ? this.route.hash :
68
- applyDatasourceReplacer(this.route.hash, this.data))
69
-
70
- if(this.route.path)
71
- obj.path = this.editMode === 1 ? this.route.path :
72
- applyDatasourceReplacer(this.route.path, this.data)
73
-
74
- return obj
75
- }
76
-
77
- },
78
-
79
- provide(){
80
- return {
81
- parentData: this.data
82
- }
83
- }
84
-
85
- }
86
-
87
- </script>
88
-
89
- <style module>
90
-
91
- .comp{
92
-
93
- }
94
-
95
- </style>