@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,131 +0,0 @@
1
- <template>
2
- <div :class="$style.review"
3
- v-if="items && items.rate && items.count && Array.isArray(items.reviews)"
4
- :style="computedStyle">
5
-
6
- <div>
7
- <h3>{{ title }}</h3>
8
- </div>
9
-
10
- <div class="flex flex-col md:flex-row md:gap-12">
11
- <div class="md:w-[25%]">
12
-
13
- <div class="flex flex-col gap-4">
14
- <div class="p-3 rounded-lg text-center flex flex-col items-center">
15
- <div class="flex flex-row items-baseline">
16
- <h4 class="text-9xl text-primary">{{ items.rate.toFixed(1) }}</h4>
17
- <strong class="text-lg">/ 5.0</strong>
18
- </div>
19
- <div>
20
- <label>Total: {{ items.count }} ulasan</label>
21
- </div>
22
- </div>
23
-
24
- <div class="flex flex-col gap-2">
25
- <div class="flex flex-row items-center gap-4" v-for="i in 5">
26
- <div class="flex flex-row gap-1">
27
- <svg width="19" height="19" class="fill-primary" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"/></svg>
28
- <div>{{ i }}</div>
29
- </div>
30
- <div class="flex-1">
31
- <div :class="$style.bar">
32
- <div :style="barStyle(items.countByRate ? items.countByRate[i] : 0, items.count)"></div>
33
- </div>
34
- </div>
35
- <div class="w-[2rem] text-right">{{ items.countByRate ? items.countByRate[i] : 0 }}</div>
36
- </div>
37
- </div>
38
-
39
- </div>
40
- </div>
41
-
42
- <div class="md:flex-1 py-6 flex flex-col gap-6">
43
-
44
- <div v-for="review in items.reviews" class="flex flex-col gap-2 bg-white border-[1px] border-gray-200 p-4 pb-2 rounded-xl">
45
- <div class="flex flex-row gap-4">
46
- <div class="flex-1 flex flex-col gap-2">
47
- <div class="flex flex-row gap-1">
48
- <div v-for="i in 5">
49
- <svg v-if="review.rate >= i" width="14" height="14" class="fill-primary" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"/></svg>
50
- <svg v-else width="14" height="14" class="fill-primary" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"/></svg>
51
- </div>
52
- </div>
53
- <p>{{ review.details ?? review.text }}</p>
54
- </div>
55
- <div v-if="review.imageUrl">
56
- <Image :src="imageSrc(review.imageUrl)" class="w-[80px] aspect-square rounded-lg" edit-selectable="false" />
57
- </div>
58
- </div>
59
- <div class="flex flex-row gap-2">
60
- <small class="text-gray-400">{{ review.name }}</small>
61
- <div class="text-gray-400">&bull;</div>
62
- <small class="text-gray-400">{{ timeOf(review.createdAt) }}</small>
63
- </div>
64
- </div>
65
-
66
- </div>
67
- </div>
68
-
69
- </div>
70
- </template>
71
-
72
- <script>
73
-
74
- import { componentMixin } from "../mixin/component";
75
- import dayjs from "dayjs";
76
- import {computed} from "vue";
77
-
78
- export default{
79
-
80
- mixins: [ componentMixin ],
81
-
82
- props: {
83
-
84
- title: String,
85
-
86
- items: Object
87
-
88
- },
89
-
90
- methods: {
91
- computed,
92
-
93
- barStyle(count, totalCount){
94
- count = count > totalCount ? totalCount : count
95
- const width = Math.round(count / totalCount * 100) + '%'
96
- return {
97
- width
98
- }
99
- },
100
-
101
- timeOf(date){
102
- return dayjs(date).format('D MMM YYYY HH:mm')
103
- },
104
-
105
-
106
- imageSrc(url){
107
- return import.meta.env.VITE_IMAGE_HOST + '/' + url
108
- }
109
-
110
- },
111
-
112
- }
113
-
114
- </script>
115
-
116
- <style module>
117
-
118
- .review{
119
- @apply relative flex flex-col gap-4;
120
- @apply w-full mx-auto max-w-screen-xl p-6;
121
- }
122
-
123
- .bar{
124
- @apply h-[1rem] bg-gray-200 rounded-lg;
125
- @apply relative;
126
- }
127
- .bar>*{
128
- @apply absolute top-0 left-0 h-full bg-primary rounded-lg;
129
- }
130
-
131
- </style>
@@ -1,201 +0,0 @@
1
- <template>
2
- <div :class="$style.comp">
3
-
4
- <div v-if="viewType === ''" class="flex flex-col gap-4">
5
- <div class="flex flex-col gap-1">
6
- <label class="text-text-400">Title</label>
7
- <Textbox v-model="item.props.title" maxlength="40" @keyup.enter="$emit('change')" placeholder="Title" />
8
- </div>
9
-
10
- <div class="flex flex-col gap-1">
11
- <label class="text-text-400">Mode</label>
12
- <Dropdown v-model="item.props.mode" @change="item.props.items = { reviews:[] }">
13
- <option value="">Static</option>
14
- <option value="dynamic">Dynamic</option>
15
- </Dropdown>
16
- <Textbox v-if="item.props.mode === 'dynamic'"
17
- placeholder="Var" v-model="item.props.src"
18
- @blur="$emit('change')"
19
- @keyup.enter="$emit('change')" />
20
- </div>
21
-
22
- <div v-if="item.props.mode !== 'dynamic'">
23
- <div class="flex flex-row gap-2">
24
- <label class="flex-1 text-text-400">Reviews</label>
25
- <button type="button" class="text-primary" @click="$refs.reviewModal.open({ item:{} })">Add Review</button>
26
- </div>
27
- <div class="mt-1">
28
- <ListItem :items="items.reviews"
29
- @reorder="(from, to) => { items.reviews.splice(to, 0, items.reviews.splice(from, 1)[0]); calcReview(); $emit('change') }">
30
- <template v-slot="{ item, index }">
31
- <div class="flex flex-row items-center gap-3 p-2">
32
- <div data-reorder>
33
- <svg width="14" height="14" class="fill-text-300" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M496 288H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-128H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"/></svg>
34
- </div>
35
- <div class="flex-1 cursor-pointer" @click="$refs.reviewModal.open({ item, index })">
36
- <p class="line-clamp-1">
37
- <span class="w-[19px] aspect-square rounded-full bg-primary text-white inline-flex items-center justify-center">
38
- {{ item.rate }}
39
- </span>
40
- {{ item.text }}
41
- </p>
42
- </div>
43
- <button type="button" @click="confirm($t('Remove this item?'), '', () => { items.reviews.splice(index, 1); calcReview(); $emit('change') })">
44
- <svg width="16" height="16" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></svg>
45
- </button>
46
- </div>
47
- </template>
48
- </ListItem>
49
- </div>
50
- </div>
51
-
52
- <div class="flex flex-row gap-4 items-center">
53
- <Checkbox v-model="item.props.enableGoogleReviewSD" @change="$emit('change')">
54
- Enable google structured data
55
- </Checkbox>
56
- </div>
57
- </div>
58
-
59
-
60
- <Modal ref="reviewModal" width="360" height="420">
61
- <template v-slot:head>
62
- <div class="relative p-6">
63
- <h3>Review</h3>
64
- <div class="absolute top-0 right-0 p-2">
65
- <button type="button" class="p-2" @click="$refs.reviewModal.close()">
66
- <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">
67
- <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"/>
68
- </svg>
69
- </button>
70
- </div>
71
- </div>
72
- </template>
73
- <template v-slot:foot="{ context }">
74
- <div class="p-6 flex flex-row gap-3">
75
- <Button class="w-[100px]"
76
- :state="!canSaveReview(context.item) ? -1 : 1"
77
- @click="addReview(context.item, context.index); $refs.reviewModal.close()">
78
- Add Review
79
- </Button>
80
- <Button class="w-[100px]" variant="secondary"
81
- :state="!canSaveReview(context.item) ? -1 : 1"
82
- @click="addReview(context.item, context.index); Object.assign(context, { item:{}, index:-1 })">
83
- Add More
84
- </Button>
85
- </div>
86
- </template>
87
- <template #default="{ context }">
88
- <div class="flex-1 p-6 flex flex-col gap-3">
89
- <div>
90
- <Dropdown v-model="context.item.rate" class="w-[120px]">
91
- <option :value="5">5</option>
92
- <option :value="4">4</option>
93
- <option :value="3">3</option>
94
- <option :value="2">2</option>
95
- <option :value="1">1</option>
96
- </Dropdown>
97
- </div>
98
- <div>
99
- <Textbox v-model="context.item.text" class="flex-1" placeholder="Text"/>
100
- </div>
101
- <div class="flex flex-col gap-2">
102
- <div class="flex flex-row gap-3">
103
- <Textbox v-model="context.item.name" class="flex-1" placeholder="Nama"/>
104
- <Datepicker mode="popup" v-model="context.item.date" class="w-[100px]" />
105
- <Textbox v-model="context.item.time" class="w-[80px]" maxlength="5" />
106
- </div>
107
- </div>
108
- <div>
109
- <Image ref="currentReviewImage" :src="context.item.imageUrl"
110
- class="w-[96px] aspect-square bg-text-50 rounded-lg"
111
- :editable="true"
112
- @click="$refs.currentReviewImage.edit()"
113
- @change="(_, file) => context.item.imageUrl = file" />
114
- </div>
115
- </div>
116
- </template>
117
- </Modal>
118
-
119
- <ComponentSetting2 :item="item"
120
- :view-type="viewType"
121
- :view-types="viewTypes"
122
- defaultDisplay="flex"
123
- @change="$emit('change')" />
124
-
125
- </div>
126
- </template>
127
-
128
- <script>
129
-
130
- import dayjs from "dayjs";
131
-
132
- export default{
133
-
134
- emits: [ 'change' ],
135
-
136
- inject: [ 'confirm', 'socketEmit2' ],
137
-
138
- methods: {
139
-
140
- addReview(review, index){
141
- review.createdAt = review.date + ' ' + review.time
142
-
143
- if(index >= 0){
144
- Object.assign(this.items.reviews[index], review)
145
- }
146
- else{
147
- this.items.reviews.push(review)
148
- }
149
- this.calcReview()
150
- this.$emit('change')
151
- },
152
-
153
- calcReview(){
154
- this.items.count = this.items.reviews.length
155
- this.items.rate = this.items.reviews.reduce((acc, cur) => acc + parseInt(cur.rate), 0) / this.items.count
156
- },
157
-
158
- save(){
159
- this.$emit('save')
160
- this.close()
161
- },
162
-
163
- canSaveReview(item){
164
- const date = dayjs(item.date + ' ' + item.time)
165
- return item.rate && item.text && item.name &&
166
- date.format('YYYY-MM-DD') === item.date && date.format('HH:mm') === item.time
167
- }
168
-
169
- },
170
-
171
- props: {
172
-
173
- item: Object,
174
-
175
- viewType: String,
176
- viewTypes: Array,
177
-
178
- },
179
-
180
- computed: {
181
-
182
- items(){
183
- if(!this.item.props.items){
184
- this.item.props.items = { reviews:[] }
185
- }
186
- return this.item.props.items
187
- }
188
-
189
- }
190
-
191
- }
192
-
193
- </script>
194
-
195
- <style module>
196
-
197
- .comp{
198
- @apply flex flex-col gap-4;
199
- }
200
-
201
- </style>
@@ -1,70 +0,0 @@
1
- <template>
2
- <div :class="$style.comp">
3
-
4
- <div class="p-6 py-4 flex flex-col gap-4">
5
-
6
- <div>
7
- <label class="flex-1 text-text-400">API Url</label>
8
- <Textbox v-model="item.props.apiUrl"/>
9
- </div>
10
-
11
- </div>
12
-
13
- <ComponentSetting2 :item="item"
14
- :view-type="viewType"
15
- :view-types="viewTypes"
16
- :view-index="viewIndex"
17
- defaultDisplay="block"
18
- @change="$emit('change')" />
19
-
20
- </div>
21
- </template>
22
-
23
- <script>
24
-
25
- export default{
26
-
27
- emits: [ 'change' ],
28
-
29
- props: {
30
-
31
- item: {
32
- type: Object,
33
- required: true
34
- },
35
-
36
- viewType: String,
37
-
38
- viewIndex: Number,
39
-
40
- viewTypes: Array,
41
-
42
- },
43
-
44
- data(){
45
- return {
46
- }
47
- },
48
-
49
- inject: [ ],
50
-
51
- methods: {
52
-
53
-
54
- },
55
-
56
- computed: {
57
-
58
- }
59
-
60
- }
61
-
62
- </script>
63
-
64
- <style module>
65
-
66
- .comp{
67
- @apply flex flex-col divide-y divide-border-50;
68
- }
69
-
70
- </style>
@@ -1,164 +0,0 @@
1
- <template>
2
- <div :class="$style.comp" :data-uid="uid">
3
- <strong v-if="title" class="mr-6">{{ title }}</strong>
4
-
5
- <div v-if="direction === 'vertical'" class="flex-1 flex flex-col divide-y divide-text-100 self-stretch">
6
- <div v-for="channel in channels">
7
- <a v-if="channel.channel === 'facebook' && fbShareUrl"
8
- href="javascript:void(0)"
9
- @click="openWindow(fbShareUrl)" class="py-3 flex flex-row items-center gap-2 text-lg">
10
- <svg id="Apple" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><defs></defs><title/><path :class="$style.facebook1" d="M459.44,23.47H52.56A29.15,29.15,0,0,0,23.49,52.54V459.42a29.15,29.15,0,0,0,29.07,29.07H271.38V308.67H210.72V238.25h60.66V186c0-41.17,9.51-64.72,30.06-79.9,17.61-13,40.56-13.83,54.57-13.4,15,.46,60.13,3,60.13,3v63.77l-41.85-.4s-17.46-.61-24,9.34c-5.58,8.54-5.69,23.16-5.69,23.16v46.31h68.65l-7.72,70.82H344.23V488.49H459.44a29.15,29.15,0,0,0,29.07-29.07V52.54A29.15,29.15,0,0,0,459.44,23.47Z"/></svg>
11
- Facebook
12
- </a>
13
- <a v-else-if="channel.channel === 'instagram' && ($device.media === '') && instagramShareUrl"
14
- href="javascript:void(0)"
15
- @click="openWindow(instagramShareUrl)" class="py-3 flex flex-row items-center gap-2 text-lg">
16
- <svg id="Apple" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><linearGradient gradientUnits="userSpaceOnUse" id="instagram3" x1="328.27" x2="183.73" y1="508.05" y2="3.95"><stop offset="0" stop-color="#ffdb73"/><stop offset="0.08" stop-color="#fdad4e"/><stop offset="0.15" stop-color="#fb832e"/><stop offset="0.19" stop-color="#fa7321"/><stop offset="0.23" stop-color="#f6692f"/><stop offset="0.37" stop-color="#e84a5a"/><stop offset="0.48" stop-color="#e03675"/><stop offset="0.55" stop-color="#dd2f7f"/><stop offset="0.68" stop-color="#b43d97"/><stop offset="0.97" stop-color="#4d60d4"/><stop offset="1" stop-color="#4264db"/></linearGradient></defs><title/><rect :class="$style.instagram1" height="465.06" rx="107.23" ry="107.23" width="465.06" x="23.47" y="23.47"/><path :class="$style.instagram2" d="M331,115.22a66.92,66.92,0,0,1,66.65,66.65V330.13A66.92,66.92,0,0,1,331,396.78H181a66.92,66.92,0,0,1-66.65-66.65V181.87A66.92,66.92,0,0,1,181,115.22H331m0-31H181c-53.71,0-97.66,44-97.66,97.66V330.13c0,53.71,44,97.66,97.66,97.66H331c53.71,0,97.66-44,97.66-97.66V181.87c0-53.71-43.95-97.66-97.66-97.66Z"/><path :class="$style.instagram2" d="M256,198.13A57.87,57.87,0,1,1,198.13,256,57.94,57.94,0,0,1,256,198.13m0-31A88.87,88.87,0,1,0,344.87,256,88.87,88.87,0,0,0,256,167.13Z"/><circle :class="$style.instagram2" cx="346.81" cy="163.23" r="21.07"/></svg>
17
- Instagram
18
- </a>
19
- <a v-else-if="channel.channel === 'twitter' && twitterShareUrl"
20
- href="javascript:void(0)"
21
- @click="openWindow(twitterShareUrl)" class="py-3 flex flex-row items-center gap-2 text-lg">
22
- <svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve"><g><polygon points="12.153992,10.729553 8.088684,5.041199 5.92041,5.041199 10.956299,12.087097 11.59021,12.97345 15.900635,19.009583 18.068909,19.009583 12.785217,11.615906 "/><path d="M21.15979,1H2.84021C1.823853,1,1,1.823853,1,2.84021v18.31958C1,22.176147,1.823853,23,2.84021,23h18.31958 C22.176147,23,23,22.176147,23,21.15979V2.84021C23,1.823853,22.176147,1,21.15979,1z M15.235352,20l-4.362549-6.213013 L5.411438,20H4l6.246887-7.104675L4,4h4.764648l4.130127,5.881958L18.06958,4h1.411377l-5.95697,6.775635L20,20H15.235352z"/></g></svg>
23
- X
24
- </a>
25
- <a v-else-if="channel.channel === 'whatsapp' && waShareUrl"
26
- href="javascript:void(0)"
27
- @click="openWindow(waShareUrl)" class="py-3 flex flex-row items-center gap-2 text-lg">
28
- <svg width="14" height="14" viewBox="0 0 360 362" fill="none" xmlns="http://www.w3.org/2000/svg">
29
- <path fill-rule="evenodd" clip-rule="evenodd" d="M307.546 52.5655C273.709 18.685 228.706 0.0171895 180.756 0C81.951 0 1.53846 80.404 1.50408 179.235C1.48689 210.829 9.74646 241.667 25.4319 268.844L0 361.736L95.0236 336.811C121.203 351.096 150.683 358.616 180.679 358.625H180.756C279.544 358.625 359.966 278.212 360 179.381C360.017 131.483 341.392 86.4547 307.546 52.5741V52.5655ZM180.756 328.354H180.696C153.966 328.346 127.744 321.16 104.865 307.589L99.4242 304.358L43.034 319.149L58.0834 264.168L54.5423 258.53C39.6304 234.809 31.749 207.391 31.7662 179.244C31.8006 97.1036 98.6334 30.2707 180.817 30.2707C220.61 30.2879 258.015 45.8015 286.145 73.9665C314.276 102.123 329.755 139.562 329.738 179.364C329.703 261.513 262.871 328.346 180.756 328.346V328.354ZM262.475 216.777C257.997 214.534 235.978 203.704 231.869 202.209C227.761 200.713 224.779 199.966 221.796 204.452C218.814 208.939 210.228 219.029 207.615 222.011C205.002 225.002 202.389 225.372 197.911 223.128C193.434 220.885 179.003 216.158 161.891 200.902C148.578 189.024 139.587 174.362 136.975 169.875C134.362 165.389 136.7 162.965 138.934 160.739C140.945 158.728 143.412 155.505 145.655 152.892C147.899 150.279 148.638 148.406 150.133 145.423C151.629 142.432 150.881 139.82 149.764 137.576C148.646 135.333 139.691 113.287 135.952 104.323C132.316 95.5909 128.621 96.777 125.879 96.6309C123.266 96.5019 120.284 96.4762 117.293 96.4762C114.302 96.4762 109.454 97.5935 105.346 102.08C101.238 106.566 89.6691 117.404 89.6691 139.441C89.6691 161.478 105.716 182.785 107.959 185.776C110.202 188.767 139.544 234.001 184.469 253.408C195.153 258.023 203.498 260.782 210.004 262.845C220.731 266.257 230.494 265.776 238.212 264.624C246.816 263.335 264.71 253.786 268.44 243.326C272.17 232.866 272.17 223.893 271.053 222.028C269.936 220.163 266.945 219.037 262.467 216.794L262.475 216.777Z" fill="#25D366"/>
30
- </svg>
31
- WhatsApp
32
- </a>
33
- </div>
34
- </div>
35
-
36
- <div v-else class="flex flex-row gap-3 md:gap-4">
37
- <div v-for="channel in channels">
38
- <a v-if="channel.channel === 'facebook' && fbShareUrl"
39
- href="javascript:void(0)"
40
- @click="openWindow(fbShareUrl)">
41
- <svg id="Apple" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><defs></defs><title/><path :class="$style.facebook1" d="M459.44,23.47H52.56A29.15,29.15,0,0,0,23.49,52.54V459.42a29.15,29.15,0,0,0,29.07,29.07H271.38V308.67H210.72V238.25h60.66V186c0-41.17,9.51-64.72,30.06-79.9,17.61-13,40.56-13.83,54.57-13.4,15,.46,60.13,3,60.13,3v63.77l-41.85-.4s-17.46-.61-24,9.34c-5.58,8.54-5.69,23.16-5.69,23.16v46.31h68.65l-7.72,70.82H344.23V488.49H459.44a29.15,29.15,0,0,0,29.07-29.07V52.54A29.15,29.15,0,0,0,459.44,23.47Z"/></svg>
42
- </a>
43
- <a v-else-if="channel.channel === 'instagram' && ($device.media === '') && instagramShareUrl"
44
- href="javascript:void(0)"
45
- @click="openWindow(instagramShareUrl)">
46
- <svg id="Apple" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><linearGradient gradientUnits="userSpaceOnUse" id="instagram3" x1="328.27" x2="183.73" y1="508.05" y2="3.95"><stop offset="0" stop-color="#ffdb73"/><stop offset="0.08" stop-color="#fdad4e"/><stop offset="0.15" stop-color="#fb832e"/><stop offset="0.19" stop-color="#fa7321"/><stop offset="0.23" stop-color="#f6692f"/><stop offset="0.37" stop-color="#e84a5a"/><stop offset="0.48" stop-color="#e03675"/><stop offset="0.55" stop-color="#dd2f7f"/><stop offset="0.68" stop-color="#b43d97"/><stop offset="0.97" stop-color="#4d60d4"/><stop offset="1" stop-color="#4264db"/></linearGradient></defs><title/><rect :class="$style.instagram1" height="465.06" rx="107.23" ry="107.23" width="465.06" x="23.47" y="23.47"/><path :class="$style.instagram2" d="M331,115.22a66.92,66.92,0,0,1,66.65,66.65V330.13A66.92,66.92,0,0,1,331,396.78H181a66.92,66.92,0,0,1-66.65-66.65V181.87A66.92,66.92,0,0,1,181,115.22H331m0-31H181c-53.71,0-97.66,44-97.66,97.66V330.13c0,53.71,44,97.66,97.66,97.66H331c53.71,0,97.66-44,97.66-97.66V181.87c0-53.71-43.95-97.66-97.66-97.66Z"/><path :class="$style.instagram2" d="M256,198.13A57.87,57.87,0,1,1,198.13,256,57.94,57.94,0,0,1,256,198.13m0-31A88.87,88.87,0,1,0,344.87,256,88.87,88.87,0,0,0,256,167.13Z"/><circle :class="$style.instagram2" cx="346.81" cy="163.23" r="21.07"/></svg>
47
- </a>
48
- <a v-else-if="channel.channel === 'twitter' && twitterShareUrl"
49
- href="javascript:void(0)"
50
- @click="openWindow(twitterShareUrl)">
51
- <svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve"><g><polygon points="12.153992,10.729553 8.088684,5.041199 5.92041,5.041199 10.956299,12.087097 11.59021,12.97345 15.900635,19.009583 18.068909,19.009583 12.785217,11.615906 "/><path d="M21.15979,1H2.84021C1.823853,1,1,1.823853,1,2.84021v18.31958C1,22.176147,1.823853,23,2.84021,23h18.31958 C22.176147,23,23,22.176147,23,21.15979V2.84021C23,1.823853,22.176147,1,21.15979,1z M15.235352,20l-4.362549-6.213013 L5.411438,20H4l6.246887-7.104675L4,4h4.764648l4.130127,5.881958L18.06958,4h1.411377l-5.95697,6.775635L20,20H15.235352z"/></g></svg>
52
- </a>
53
- <a v-else-if="channel.channel === 'whatsapp' && waShareUrl"
54
- href="javascript:void(0)"
55
- @click="openWindow(waShareUrl)">
56
- <svg width="14" height="14" viewBox="0 0 360 362" fill="none" xmlns="http://www.w3.org/2000/svg">
57
- <path fill-rule="evenodd" clip-rule="evenodd" d="M307.546 52.5655C273.709 18.685 228.706 0.0171895 180.756 0C81.951 0 1.53846 80.404 1.50408 179.235C1.48689 210.829 9.74646 241.667 25.4319 268.844L0 361.736L95.0236 336.811C121.203 351.096 150.683 358.616 180.679 358.625H180.756C279.544 358.625 359.966 278.212 360 179.381C360.017 131.483 341.392 86.4547 307.546 52.5741V52.5655ZM180.756 328.354H180.696C153.966 328.346 127.744 321.16 104.865 307.589L99.4242 304.358L43.034 319.149L58.0834 264.168L54.5423 258.53C39.6304 234.809 31.749 207.391 31.7662 179.244C31.8006 97.1036 98.6334 30.2707 180.817 30.2707C220.61 30.2879 258.015 45.8015 286.145 73.9665C314.276 102.123 329.755 139.562 329.738 179.364C329.703 261.513 262.871 328.346 180.756 328.346V328.354ZM262.475 216.777C257.997 214.534 235.978 203.704 231.869 202.209C227.761 200.713 224.779 199.966 221.796 204.452C218.814 208.939 210.228 219.029 207.615 222.011C205.002 225.002 202.389 225.372 197.911 223.128C193.434 220.885 179.003 216.158 161.891 200.902C148.578 189.024 139.587 174.362 136.975 169.875C134.362 165.389 136.7 162.965 138.934 160.739C140.945 158.728 143.412 155.505 145.655 152.892C147.899 150.279 148.638 148.406 150.133 145.423C151.629 142.432 150.881 139.82 149.764 137.576C148.646 135.333 139.691 113.287 135.952 104.323C132.316 95.5909 128.621 96.777 125.879 96.6309C123.266 96.5019 120.284 96.4762 117.293 96.4762C114.302 96.4762 109.454 97.5935 105.346 102.08C101.238 106.566 89.6691 117.404 89.6691 139.441C89.6691 161.478 105.716 182.785 107.959 185.776C110.202 188.767 139.544 234.001 184.469 253.408C195.153 258.023 203.498 260.782 210.004 262.845C220.731 266.257 230.494 265.776 238.212 264.624C246.816 263.335 264.71 253.786 268.44 243.326C272.17 232.866 272.17 223.893 271.053 222.028C269.936 220.163 266.945 219.037 262.467 216.794L262.475 216.777Z" fill="#25D366"/>
58
- </svg>
59
- </a>
60
- </div>
61
- </div>
62
- </div>
63
- </template>
64
-
65
- <script>
66
-
67
- import {componentMixin} from "../mixin/component";
68
-
69
- export default{
70
-
71
- mixins: [ componentMixin ],
72
-
73
- props: {
74
-
75
- title: String,
76
-
77
- channels: Array,
78
-
79
- config: {
80
- type: Object,
81
- default: {}
82
- },
83
-
84
- direction: {
85
- type: String,
86
- default: 'horizontal'
87
- }
88
-
89
- },
90
-
91
- methods: {
92
-
93
- openWindow(url){
94
- window.open(url, 'popup', 'width=800,height=500');
95
- return false;
96
- }
97
-
98
-
99
- },
100
-
101
- computed: {
102
-
103
- currentUrl(){
104
- return `${import.meta.env.VITE_WEB_HOST}${this.$route.path}`
105
- },
106
-
107
- fbShareUrl(){
108
- return `https://www.facebook.com/dialog/share?app_id=${this.config.fbAppId}&display=popup&href=` +
109
- encodeURIComponent(this.currentUrl)
110
- },
111
-
112
- waShareUrl(){
113
- return `https://wa.me/send?text=` + encodeURIComponent(this.currentUrl)
114
- },
115
-
116
- twitterShareUrl(){
117
- return `https://twitter.com/intent/tweet?url=` + encodeURIComponent(this.currentUrl)
118
- },
119
-
120
- instagramShareUrl(){
121
- return `instagram://caption=` + encodeURIComponent(this.currentUrl)
122
- }
123
-
124
- }
125
-
126
- }
127
-
128
- </script>
129
-
130
- <style module>
131
-
132
- .comp{
133
- @apply flex flex-row md:flex-col gap-2 items-center md:items-start;
134
- }
135
-
136
- .comp a{
137
- @apply text-sm;
138
- @apply flex flex-row gap-1;
139
- }
140
-
141
- .comp a *{
142
- @apply text-sm;
143
- }
144
-
145
- .comp svg{
146
- @apply w-[28px] h-[28px] md:w-[32px] md:h-[32px];
147
- }
148
-
149
- .tiktok1{ fill:#00f6ef; }
150
- .tiktok2{ fill:#fff; }
151
- .tiktok3{ fill:#ff004f; }
152
-
153
- .whatsapp1{ fill:url(#whatsapp3); }
154
- .whatsapp2{ fill:#fff; }
155
-
156
- .instagram1{ fill:url(#instagram3); }
157
- .instagram2{ fill:#fff; }
158
-
159
- .facebook1{ fill:#3b579d; }
160
-
161
- .twitter1{ fill:#1DA1F2; }
162
-
163
-
164
- </style>
@@ -1,99 +0,0 @@
1
- <template>
2
- <div :class="$style.comp">
3
-
4
- <div class="p-6 py-4 flex flex-col gap-4">
5
- <div>
6
- <label class="text-text-400">Title</label>
7
- <Textbox v-model="item.props.title" @keyup.enter="$emit('change')"/>
8
- </div>
9
-
10
- <div>
11
- <div class="flex flex-row items-center gap-4">
12
- <label class="flex-1 text-text-400">Platform</label>
13
- <button type="button" class="text-primary p-2" @click="(e) => $refs.contextMenu.open(e.target)">Add Platform</button>
14
- </div>
15
- <ListItem :items="item.props.channels"
16
- class="border-[1px] border-border-200 bg-base-300 rounded-lg overflow-hidden"
17
- container-class="divide-y divide-border-50"
18
- @reorder="(from, to) => { item.props.channels.splice(to, 0, item.props.channels.splice(from, 1)[0]); $emit('change') }">
19
- <template v-slot="{ item:channel, index }">
20
- <div class="flex flex-row items-center gap-2 p-2">
21
- <div data-reorder>
22
- <svg width="14" height="14" class="fill-text-300" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M496 288H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-128H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"/></svg>
23
- </div>
24
- <div class="flex-1">{{ channel.channel }}</div>
25
- <div>
26
- <button type="button" @click="confirm('Hapus channel ini?', '', () => { item.props.channels.splice(index, 1); $emit('change') })">
27
- <svg width="16" height="16" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></svg>
28
- </button>
29
- </div>
30
- </div>
31
- </template>
32
- </ListItem>
33
- </div>
34
- </div>
35
-
36
- <ContextMenu ref="contextMenu" position="bottom-right">
37
- <div class="flex flex-col min-w-[200px]">
38
- <button type="button" class="p-3 disabled:text-text-300"
39
- @click="item.props.channels.push({ channel:'facebook' });$emit('change')"
40
- :disabled="item.props.channels.findIndex(_ => _.channel === 'facebook') > -1">Facebook</button>
41
-
42
- <button type="button" class="p-3 disabled:text-text-300"
43
- @click="item.props.channels.push({ channel:'twitter' });$emit('change')"
44
- :disabled="item.props.channels.findIndex(_ => _.channel === 'twitter') > -1">Twitter</button>
45
-
46
- <button type="button" class="p-3 disabled:text-text-300"
47
- @click="item.props.channels.push({ channel:'whatsapp' });$emit('change')"
48
- :disabled="item.props.channels.findIndex(_ => _.channel === 'whatsapp') > -1">Whatsapp</button>
49
-
50
- <button type="button" class="p-3 disabled:text-text-300"
51
- @click="item.props.channels.push({ channel:'instagram' });$emit('change')"
52
- :disabled="item.props.channels.findIndex(_ => _.channel === 'instagram') > -1">Instagram</button>
53
- </div>
54
- </ContextMenu>
55
-
56
- <ComponentSetting2 :item="item"
57
- :view-type="viewType"
58
- :view-types="viewTypes"
59
- :view-index="viewIndex"
60
- defaultDisplay="block"
61
- @change="$emit('change')" />
62
-
63
- </div>
64
- </template>
65
-
66
- <script>
67
-
68
- export default{
69
-
70
- emits: [ 'change' ],
71
-
72
- inject: [ 'confirm' ],
73
-
74
- props: {
75
-
76
- item: {
77
- type: Object,
78
- required: true
79
- },
80
-
81
- viewType: String,
82
-
83
- viewIndex: Number,
84
-
85
- viewTypes: Array,
86
-
87
- }
88
-
89
- }
90
-
91
- </script>
92
-
93
- <style module>
94
-
95
- .comp{
96
- @apply flex flex-col divide-y divide-border-50;
97
- }
98
-
99
- </style>