@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,722 +0,0 @@
1
-
2
- const csvToArray = (str, delimiter = null) => {
3
-
4
- if(!delimiter){
5
- delimiter = str.indexOf(';') >= 0 ? ';' : ','
6
- }
7
-
8
- str = str.trim()
9
-
10
- const headers = str.slice(0, str.indexOf("\n")).split(delimiter);
11
-
12
- const rows = str.slice(str.indexOf("\n") + 1).split("\n");
13
-
14
- const arr = rows.map(function (row) {
15
- const values = row.split(delimiter);
16
- let el = {}
17
- if(values.length === headers.length){
18
- el = headers.reduce(function (object, header, index) {
19
- object[header] = values[index];
20
- return object;
21
- }, {});
22
- }
23
- return el;
24
- })
25
- .filter((_) => Object.keys(_).length > 0);
26
-
27
- return arr;
28
- }
29
-
30
- const downsizeImage = async (url, targetWidth, imageType, quality, opt = {}) => {
31
-
32
- let defaultImageType = 'image/jpeg'
33
- targetWidth = isNaN(parseInt(targetWidth)) ? 2048 : parseInt(targetWidth)
34
-
35
- if(url instanceof File){
36
- defaultImageType = url.type
37
-
38
- await (new Promise((resolve, reject) => {
39
- var reader = new FileReader();
40
- reader.addEventListener('load', () => {
41
- url = reader.result
42
- resolve()
43
- }, false)
44
- reader.addEventListener('error', (e) => {
45
- reject(e)
46
- })
47
- reader.readAsDataURL(url);
48
- }))
49
- }
50
-
51
- return new Promise((resolve, reject) => {
52
-
53
- const image = new Image()
54
- image.addEventListener('load', () => {
55
-
56
- const canvasWidth = image.width > targetWidth ? targetWidth : image.width
57
- const canvasHeight = Math.round((image.height / image.width) * canvasWidth)
58
-
59
- const canvas = document.createElement('canvas');
60
- canvas.width = canvasWidth;
61
- canvas.height = canvasHeight;
62
-
63
- if(opt.constraint){
64
- if(canvasWidth / canvasHeight !== opt.constraint)
65
- reject(new Error('Image constraint error'))
66
- }
67
-
68
- const ctx = canvas.getContext("2d");
69
- ctx.drawImage(image, 0, 0, canvasWidth, canvasHeight);
70
-
71
- canvas.toBlob((blob) => {
72
- resolve(blob)
73
- }, imageType ?? defaultImageType, quality ?? .8)
74
- })
75
- image.addEventListener('error', (e) => {
76
- reject(e)
77
- })
78
- image.src = url
79
- })
80
- }
81
-
82
- const parseBoolean = function(exp){
83
- return [ 'true', '1' ].includes(`${(exp ?? '')}`.toLowerCase())
84
- }
85
-
86
- const strVars = function(text, vars, opt = { emptyUndefined:true }){
87
-
88
- (text.match(/\{.*?(?=\})\}/gi) ?? []).forEach((match) => {
89
- const key = match.substring(1, match.length - 1)
90
- const value = vars[key] ?? (opt?.emptyUndefined ? '' : `{${key}}`)
91
- text = text.replace(match, value)
92
- })
93
-
94
- return text
95
- }
96
-
97
- let _QS
98
- const urlQuery = function(){
99
-
100
- if(!_QS){
101
- _QS = new Proxy(new URLSearchParams(window.location.search), {
102
- get: (searchParams, prop) => searchParams.get(prop),
103
- });
104
- }
105
-
106
- return _QS
107
- }
108
-
109
- const getQueryString = function(key){
110
- urlQuery()
111
-
112
- if(typeof key === 'string'){
113
- return _QS[key]
114
- }
115
- else if(Array.isArray(key)){
116
- return key.map((k) => {
117
- return _QS[k]
118
- })
119
- }
120
- }
121
-
122
- let __uid = new Date().getTime()
123
- const uid = function(prefix){
124
- return (prefix ?? '') + __uid++;
125
- }
126
-
127
- const accessNestedObject = function(obj, path) {
128
- if(!obj || typeof path !== 'string') return undefined
129
-
130
- const keys = path.split('.');
131
- let nestedObj = obj;
132
-
133
- for (let key of keys) {
134
- if (nestedObj && nestedObj.hasOwnProperty(key)) {
135
- nestedObj = nestedObj[key];
136
- } else {
137
- // Return undefined if any key in the path is missing
138
- return undefined;
139
- }
140
- }
141
-
142
- return nestedObj;
143
- }
144
-
145
- const mediaPrefixes = [
146
- '',
147
- 'md:'
148
- ]
149
- const calcUnit = (prefix, midfix, value) => {
150
-
151
- const values = (value ?? '').split(',')
152
-
153
- if(value === 'mx-auto'){
154
- return prefix + value
155
- }
156
- else if(values.length === 1){
157
- return prefix + midfix + '-' + values[0]
158
- }
159
- else if(values.length === 2){
160
- return prefix + midfix + 'x-' + values[0] +
161
- ' ' +
162
- prefix + midfix + 'y-' + values[1]
163
- }
164
- else if(values.length === 4){
165
- return prefix + midfix + 'l-' + values[0] +
166
- ' ' +
167
- prefix + midfix + 't-' + values[1] +
168
- ' ' +
169
- prefix + midfix + 'r-' + values[2] +
170
- ' ' +
171
- prefix + midfix + 'b-' + values[3]
172
- }
173
- }
174
-
175
- const _applyClass = function(props, defaultClass = {}){
176
- return []
177
- }
178
-
179
- const fallbackCopyTextToClipboard = function(obj){
180
- return new Promise((resolve, reject) => {
181
- try{
182
- var textArea = document.createElement("textarea");
183
- textArea.value = obj;
184
- textArea.style.left = "-100vw";
185
- textArea.style.position = "fixed";
186
- document.body.appendChild(textArea);
187
- textArea.focus();
188
- textArea.select();
189
-
190
- document.execCommand('copy')
191
- document.body.removeChild(textArea);
192
-
193
- resolve()
194
- }
195
- catch(e){
196
- reject(e)
197
- }
198
- })
199
- }
200
-
201
- const fallbackGetClipboardData = function(obj){
202
- return new Promise((resolve, reject) => {
203
- try{
204
- var textArea = document.createElement("textarea");
205
- textArea.style.left = "-100vw";
206
- textArea.style.position = "fixed";
207
- document.body.appendChild(textArea);
208
- textArea.focus();
209
- document.execCommand('paste');
210
-
211
- window.setTimeout(() => {
212
- const text = textArea.value;
213
- document.body.removeChild(textArea);
214
- resolve(text)
215
- }, 100)
216
- }
217
- catch(e){
218
- reject(e)
219
- }
220
- })
221
- }
222
-
223
- const copyToClipboard = function(obj){
224
- if (!navigator.clipboard) {
225
- return fallbackCopyTextToClipboard(obj);
226
- }
227
-
228
- return new Promise((resolve, reject) => {
229
- navigator.clipboard.writeText(obj).then(() => {
230
- resolve()
231
- }, (err) => {
232
- reject(err)
233
- });
234
- })
235
- }
236
-
237
- const getClipboardData = function(){
238
- if (!navigator.clipboard) {
239
- return fallbackGetClipboardData();
240
- }
241
-
242
- return new Promise((resolve, reject) => {
243
- navigator.clipboard.readText().then((text) => {
244
- resolve(text)
245
- }, (err) => {
246
- reject(err)
247
- });
248
- })
249
- }
250
-
251
- const getComponentUids = function(components, excepts = []){
252
-
253
- const arr = []
254
-
255
- for(let comp of components){
256
- if(!excepts.includes(comp.uid)){
257
- arr.push({
258
- uid: comp.uid,
259
- name: comp.props.name ?? comp.type
260
- })
261
-
262
- if(Array.isArray(comp.items)){
263
- arr.push(...getComponentUids(comp.items))
264
- }
265
- }
266
- }
267
-
268
- return arr
269
- }
270
-
271
- const unPascalCase = function(str){
272
- return str.replace(/([A-Z])/g, ' $1').trim()
273
- }
274
-
275
- const sleep = ms => new Promise(r => setTimeout(r, ms))
276
-
277
- const removeStyleFromTag = (html) => {
278
- const regex = /<[^>]+style="[^"]*"[^>]*>/g;
279
-
280
- return html.replace(regex, (match) => {
281
- return match.replace(/style="[^"]*"/, '');
282
- });
283
- }
284
-
285
- const createFormData = (obj) => {
286
-
287
- const form = new FormData()
288
-
289
- const iterateObject = (obj, parentKey = '') => {
290
-
291
- for (let key in obj) {
292
- if (obj.hasOwnProperty(key)) {
293
- const value = obj[key];
294
- const propName = parentKey ? `${parentKey}[${key}]` : key;
295
-
296
- if (value instanceof File || value instanceof Blob) {
297
- form.append(propName, value);
298
- }
299
- else if (typeof value === 'object' && value !== null) {
300
- iterateObject(value, propName);
301
- }
302
- else {
303
- form.append(propName, value);
304
- }
305
- }
306
- }
307
- }
308
-
309
- iterateObject(obj)
310
-
311
- return form
312
- }
313
-
314
- function unslugAndCapitalize(slug) {
315
- return (slug ?? '')
316
- .split('-') // Replace '-' with '_' if that's your separator
317
- .map(word => word.charAt(0).toUpperCase() + word.slice(1))
318
- .join(' ');
319
- }
320
-
321
- function slugify(text, separator = '-') {
322
- return text
323
- .toString() // Ensure the input is a string
324
- .normalize('NFD') // Normalize to decompose diacritic marks
325
- .replace(/[\u0300-\u036f]/g, '') // Remove diacritic marks
326
- .replace(/[^a-zA-Z0-9\s-]/g, '') // Remove special characters
327
- .trim() // Trim leading/trailing spaces
328
- .replace(/\s+/g, separator) // Replace spaces with dashes
329
- .toLowerCase(); // Convert to lowercase
330
- }
331
-
332
- const hexToRgb = (hex) => {
333
- var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
334
- return result ? {
335
- r: parseInt(result[1], 16),
336
- g: parseInt(result[2], 16),
337
- b: parseInt(result[3], 16)
338
- } : null;
339
- }
340
-
341
- function rgbToHex(r, g, b) {
342
-
343
- r = parseInt(r)
344
- g = parseInt(g)
345
- b = parseInt(b)
346
- if(isNaN(r) || isNaN(g) || isNaN(b))
347
- return
348
-
349
- r = Math.max(0, Math.min(255, r));
350
- g = Math.max(0, Math.min(255, g));
351
- b = Math.max(0, Math.min(255, b));
352
-
353
- const hexR = r.toString(16).padStart(2, '0');
354
- const hexG = g.toString(16).padStart(2, '0');
355
- const hexB = b.toString(16).padStart(2, '0');
356
-
357
- return "#" + hexR + hexG + hexB;
358
- }
359
-
360
- function applyDatasourceReplacer(value, datasource){
361
- if(typeof value !== 'string') return value
362
-
363
- let matches = value.match(/\{\{([^}]+)\}\}/g);
364
- (matches ?? []).forEach(matchKey => {
365
- matchKey = matchKey.slice(2, -2)
366
- const matchValue = accessNestedObject(datasource, matchKey) ?? ''
367
- value = value.replace(`{{${matchKey}}}`, matchValue, 'gi')
368
- });
369
-
370
- return value
371
- }
372
-
373
- function capitalize(str) {
374
- return (str ?? '').toLowerCase().replace(/\b\w/g, function(char) {
375
- return char.toUpperCase();
376
- });
377
- }
378
-
379
- const round = (num, precision = 0) => {
380
- var p = Math.pow(10, precision)
381
- var n = (num * p) * (1 + Number.EPSILON)
382
- return Math.round(n) / p
383
- }
384
-
385
- const invokeAfterIdle = (callback, opt) => {
386
-
387
- let timeoutId
388
- const { delay = 500 } = opt ?? {}
389
-
390
- return function(){
391
- window.clearTimeout(timeoutId)
392
- timeoutId = window.setTimeout(() => {
393
- callback.apply(this, arguments)
394
- }, delay)
395
- }
396
- }
397
-
398
- const queueForLater = (params) => {
399
-
400
- const instance = {
401
- delay: 1200,
402
- ...params,
403
-
404
- items: [],
405
- timeoutId: null,
406
-
407
- run: () => {
408
- const items = instance.items.splice(0, instance.items.length);
409
- typeof instance.pop === 'function' ? instance.pop(items) : null;
410
- instance.timeoutId = null
411
- },
412
-
413
- queue(item) {
414
- if(Array.isArray(item))
415
- instance.items.push(...item)
416
- else
417
- instance.items.push(item)
418
-
419
- if(!instance.timeoutId)
420
- instance.timeoutId = window.setTimeout(instance.run, instance.delay);
421
- }
422
- }
423
-
424
- return instance.queue
425
- }
426
-
427
- const queueForLaterWithKey = (params) => {
428
-
429
- const instance = {
430
- delay: 1200,
431
- ...params,
432
-
433
- items: {},
434
- timeoutId: {},
435
-
436
- run: (key) => {
437
- const items = instance.items[key].splice(0, instance.items[key].length);
438
- //console.log('run', key, items)
439
- typeof instance.pop === 'function' ? instance.pop(items) : null;
440
- instance.timeoutId[key] = false
441
- },
442
-
443
- queue(key, item) {
444
- if(!instance.items[key]){
445
- instance.items[key] = []
446
- }
447
-
448
- if(Array.isArray(item))
449
- instance.items[key].push(...item)
450
- else
451
- instance.items[key].push(item)
452
-
453
- //console.log('queue', key, item, instance.items[key])
454
-
455
- if(!instance.timeoutId[key])
456
- instance.timeoutId[key] = window.setTimeout(() => instance.run(key), instance.delay);
457
- }
458
- }
459
-
460
- return instance.queue
461
- }
462
-
463
- const transactionWithRetry = async (sequelize, callback, opt = {}) => {
464
- const { maxRetries = 99, delay = 1000, rollback = false } = opt
465
-
466
- let retries = 0
467
- while(retries < maxRetries){
468
- try{
469
- const transaction = await sequelize.transaction()
470
- const res = await callback(transaction)
471
-
472
- if(rollback)
473
- await transaction.rollback()
474
- else
475
- await transaction.commit()
476
-
477
- return res
478
- }
479
- catch(e){
480
- if(e.name === 'SequelizeConnectionAcquireTimeoutError' ||
481
- (e.name === 'SequelizeDatabaseError' && [ 'ER_LOCK_DEADLOCK', '40001' ].includes(e.original.code))){
482
- retries++
483
-
484
- if(retries >= maxRetries){
485
- throw e
486
- }
487
-
488
- await new Promise((resolve) => setTimeout(resolve, delay))
489
- }
490
-
491
- else{
492
- throw e
493
- }
494
- }
495
- }
496
- }
497
-
498
- const groupBy = (arr, key) => {
499
- return arr.reduce((acc, item) => {
500
- (acc[item[key]] = acc[item[key]] || []).push(item);
501
- return acc;
502
- }, {});
503
- }
504
-
505
- const arrayPush = (arr, items, opt = { update:true }) => {
506
- if(!Array.isArray(arr)) return
507
- if(!Array.isArray(items)) items = [ items ]
508
- if(!opt.key){
509
- opt.key = items[0] && items[0].uid ? 'uid' : 'id'
510
- }
511
-
512
- if(!Array.isArray(opt.key)){
513
- opt.key = [ opt.key ]
514
- }
515
-
516
- for(let item of items){
517
- if(!item) continue
518
-
519
- const index = arr.findIndex((_) => {
520
- for(let key of opt.key){
521
- if(_[key] !== item[key]){
522
- return false
523
- }
524
- }
525
- return true
526
- })
527
-
528
- if(index >= 0){
529
- if(opt.update !== false){
530
- Object.assign(arr[index], item)
531
- }
532
- }
533
- else{
534
- arr.push(item)
535
- }
536
- }
537
- }
538
-
539
- const arrayRemove = (arr, items, opt = {}) => {
540
- if(!Array.isArray(arr)) return
541
- if(!Array.isArray(items)) items = [ items ]
542
- if(!opt.key){
543
- opt.key = items[0] && items[0].uid ? 'uid' : 'id'
544
- }
545
-
546
- items = groupBy(items, opt.key)
547
-
548
- for(let i = arr.length - 1 ; i >= 0 ; i--){
549
- if(!arr[i]) continue
550
-
551
- if(arr[i][opt.key] in items){
552
- arr.splice(i, 1)
553
- }
554
- }
555
- }
556
-
557
- const arrayUnshift = (arr, items, opt = { update:true }) => {
558
- if(!Array.isArray(arr)) return
559
- if(!Array.isArray(items)) items = [ items ]
560
- if(!opt.key){
561
- opt.key = items[0] && items[0].uid ? 'uid' : 'id'
562
- }
563
-
564
- if(!Array.isArray(opt.key)){
565
- opt.key = [ opt.key ]
566
- }
567
-
568
- for(let item of items){
569
- if(!item) continue
570
-
571
- const index = arr.findIndex((_) => {
572
- for(let key of opt.key){
573
- if(_[key] !== item[key]){
574
- return false
575
- }
576
- }
577
- return true
578
- })
579
-
580
- if(index >= 0){
581
- if(opt.update !== false){
582
- Object.assign(arr[index], item)
583
- }
584
- }
585
- else{
586
- arr.unshift(item)
587
- }
588
- }
589
- }
590
-
591
- function addHash(hash, newHash, prefix = '_'){
592
- const cleaned = hash.split('#')
593
- .filter(_=>_).map(_ => `#${_}`)
594
- .filter(_ => !_.startsWith(prefix))
595
-
596
- cleaned.push(newHash)
597
-
598
- return cleaned.join('')
599
- }
600
-
601
- const downloadUrl = (url, as) => {
602
- url = url + (url.indexOf('?') >= 0 ? '&' : '?') + 'nocache=' + new Date().getTime()
603
-
604
- const downloader = document.createElement('a')
605
- downloader.setAttribute('href', url)
606
- downloader.target = '_blank'
607
- if(as) downloader.download = as
608
- document.body.appendChild(downloader)
609
-
610
- downloader.click()
611
-
612
- window.setTimeout(() => {
613
- document.body.removeChild(downloader)
614
- }, 100)
615
- }
616
-
617
- export {
618
- capitalize,
619
- round,
620
- downsizeImage,
621
- hexToRgb,
622
- rgbToHex,
623
- uid,
624
- observeInit,
625
- csvToArray,
626
- parseBoolean,
627
- urlQuery,
628
- getQueryString,
629
- accessNestedObject,
630
- mediaPrefixes,
631
- _applyClass,
632
- copyToClipboard,
633
- getClipboardData,
634
- getComponentUids,
635
- unPascalCase,
636
- sleep,
637
- removeStyleFromTag,
638
- createFormData,
639
- unslugAndCapitalize,
640
- slugify,
641
- applyDatasourceReplacer,
642
- strVars,
643
- invokeAfterIdle,
644
- queueForLater,
645
- queueForLaterWithKey,
646
- transactionWithRetry,
647
- groupBy,
648
- arrayPush,
649
- arrayRemove,
650
- arrayUnshift,
651
- addHash,
652
- downloadUrl
653
- }
654
-
655
- function observeInit(){
656
-
657
- const intersectionObserver = new IntersectionObserver(
658
- onIntersection,
659
- {
660
- rootMargin: '50px 50px 50px 50px',
661
- threshold: 0.01,
662
- }
663
- )
664
-
665
- function onIntersection(entries, observer) {
666
-
667
- entries.forEach((entry) => {
668
- if (entry.intersectionRatio === 0) {
669
- return;
670
- }
671
-
672
- const item = entry.target
673
- const key = item.__observeKey
674
-
675
- if(observeCols[key]){
676
- const { type, callback } = observeCols[key]
677
-
678
- if(typeof callback === 'function')
679
- callback.apply(item)
680
-
681
- if(type === 'once'){
682
- observer.unobserve(item)
683
- delete observeCols[key]
684
- }
685
- }
686
- })
687
- }
688
-
689
- const observeCols = {}
690
-
691
- const once = function(el, callback){
692
- if(typeof el.__observeKey !== 'undefined') return
693
-
694
- intersectionObserver.observe(el)
695
-
696
- const key = 'observe-' + uid()
697
- observeCols[key] = { type:'once', callback }
698
- el.__observeKey = key
699
- }
700
-
701
- const always = function(el, callback){
702
- if(typeof el.__observeKey !== 'undefined') return
703
-
704
- intersectionObserver.observe(el)
705
-
706
- const key = 'observe-' + uid()
707
- observeCols[key] = { type:'one', callback }
708
- el.__observeKey = key
709
- }
710
-
711
- const unregister = function(el){
712
- if(el && el.__observeKey && observeCols[el.__observeKey]){
713
- delete observeCols[el.__observeKey]
714
- }
715
- }
716
-
717
- return {
718
- once,
719
- always,
720
- unregister
721
- }
722
- }