@mixd-id/web-scaffold 0.2.240701 → 0.2.240703

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 (92) hide show
  1. package/docs/schema/user-action.json +266 -0
  2. package/package.json +6 -2
  3. package/public/assets/dashboard/bar.png +0 -0
  4. package/public/assets/dashboard/doughnut.png +0 -0
  5. package/public/assets/dashboard/metric.png +0 -0
  6. package/public/assets/dashboard/pie.png +0 -0
  7. package/public/assets/dashboard/polar-area.png +0 -0
  8. package/public/assets/dashboard/virtual-table.png +0 -0
  9. package/public/static/dashboard/bar.png +0 -0
  10. package/public/static/dashboard/doughnut.png +0 -0
  11. package/public/static/dashboard/metric.png +0 -0
  12. package/public/static/dashboard/pie.png +0 -0
  13. package/public/static/dashboard/polar-area.png +0 -0
  14. package/public/static/dashboard/virtual-table.png +0 -0
  15. package/src/components/Button.vue +179 -160
  16. package/src/components/Checkbox.vue +0 -1
  17. package/src/components/Datepicker.vue +8 -6
  18. package/src/components/GHeatMaps.vue +317 -0
  19. package/src/components/GmapsDirection.vue +191 -0
  20. package/src/components/Grid.vue +2 -0
  21. package/src/components/HTMLEditor.vue +2 -2
  22. package/src/components/List.vue +384 -308
  23. package/src/components/Modal.vue +2 -3
  24. package/src/components/PresetSelectorFilterItem.vue +15 -2
  25. package/src/components/Switch.vue +3 -0
  26. package/src/components/Tabs.vue +1 -1
  27. package/src/components/TextWithTag.vue +67 -25
  28. package/src/components/Textbox.vue +5 -0
  29. package/src/components/VirtualGrid.vue +224 -228
  30. package/src/components/VirtualTable.vue +46 -28
  31. package/src/configs/dashboard/bar.js +10 -0
  32. package/src/configs/dashboard/collection-1.js +5 -0
  33. package/src/configs/dashboard/doughnut.js +7 -0
  34. package/src/configs/dashboard/gheatmaps.js +9 -0
  35. package/src/configs/dashboard/grid-2.js +34 -0
  36. package/src/configs/dashboard/grid-3.js +34 -0
  37. package/src/configs/dashboard/grid-4.js +34 -0
  38. package/src/configs/dashboard/grid.js +15 -0
  39. package/src/configs/dashboard/metric.js +10 -0
  40. package/src/configs/dashboard/pie.js +7 -0
  41. package/src/configs/dashboard/polar-area.js +7 -0
  42. package/src/configs/dashboard/virtual-table.js +9 -0
  43. package/src/defs/dashboard-preset.js +22 -0
  44. package/src/index.js +35 -23
  45. package/src/mixin/ready-state.js +37 -0
  46. package/src/stores/datasource.js +11 -0
  47. package/src/themes/default/index.js +1 -1
  48. package/src/utils/dashboard.js +1080 -0
  49. package/src/utils/event-bus.js +8 -0
  50. package/src/utils/helpers.js +56 -10
  51. package/src/utils/helpers.mjs +35 -1
  52. package/src/utils/preset-selector.js +5 -2
  53. package/src/utils/preset-selector.mjs +23 -13
  54. package/src/widgets/Dashboard/BarChart.vue +330 -0
  55. package/src/widgets/Dashboard/BarChartSetting.vue +317 -0
  56. package/src/widgets/Dashboard/DatasourceFilterSharing.vue +93 -0
  57. package/src/widgets/Dashboard/DatasourcePreview.vue +93 -0
  58. package/src/widgets/Dashboard/DatasourceSelector.vue +122 -0
  59. package/src/widgets/Dashboard/Doughnut.vue +157 -0
  60. package/src/widgets/Dashboard/DoughnutSetting.vue +196 -0
  61. package/src/widgets/Dashboard/GHeatMapsSetting.vue +108 -0
  62. package/src/widgets/Dashboard/InteractionEdit.vue +228 -0
  63. package/src/widgets/Dashboard/Metric.vue +76 -0
  64. package/src/widgets/Dashboard/MetricSetting.vue +174 -0
  65. package/src/widgets/Dashboard/Pie.vue +139 -0
  66. package/src/widgets/Dashboard/PieSetting.vue +247 -0
  67. package/src/widgets/Dashboard/PolarArea.vue +159 -0
  68. package/src/widgets/Dashboard/PolarAreaSetting.vue +195 -0
  69. package/src/widgets/Dashboard/SharingModal.vue +116 -0
  70. package/src/widgets/Dashboard/ViewSelector.vue +183 -0
  71. package/src/widgets/Dashboard/VirtualColumnEdit.vue +97 -0
  72. package/src/widgets/Dashboard/VirtualTableSetting.vue +234 -0
  73. package/src/widgets/Dashboard.vue +1773 -0
  74. package/src/widgets/PresetBar.vue +136 -175
  75. package/src/widgets/PresetBarPivot.vue +186 -0
  76. package/src/widgets/UserActionBuilder/UserActionCondition.vue +97 -0
  77. package/src/widgets/UserActionBuilder/UserActionConsole.vue +77 -0
  78. package/src/widgets/UserActionBuilder/UserActionItem.vue +163 -58
  79. package/src/widgets/UserActionBuilder/UserActionOutput.vue +35 -9
  80. package/src/widgets/UserActionBuilder/UserActionOutputDelay.vue +27 -0
  81. package/src/widgets/UserActionBuilder/UserActionOutputLog.vue +28 -0
  82. package/src/widgets/UserActionBuilder/UserActionOutputReply.vue +135 -0
  83. package/src/widgets/UserActionBuilder/UserActionProps.vue +211 -0
  84. package/src/widgets/UserActionBuilder.vue +68 -199
  85. package/src/widgets/WebPageBuilder4/GridSetting.vue +123 -73
  86. package/src/widgets/WebPageBuilder4/HeightSetting.vue +14 -11
  87. package/src/widgets/WebPageBuilder4/MarginSetting.vue +4 -1
  88. package/src/widgets/WebPageBuilder4/MultiValueSetting.vue +12 -4
  89. package/src/widgets/WebPageBuilder4/PaddingSetting.vue +4 -0
  90. package/src/widgets/WebPageBuilder4/TreeView.vue +6 -3
  91. package/src/widgets/WebPageBuilder4/TreeViewItem.vue +32 -58
  92. package/tailwind.config.js +2 -2
@@ -0,0 +1,266 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "key": "{message.body}",
5
+ "op": "contains",
6
+ "value": "hello"
7
+ },
8
+ {
9
+ "key": "{message.direction}",
10
+ "value": 1
11
+ },
12
+ {
13
+ "key": "{message.channelId}",
14
+ "value": 1
15
+ },
16
+ {
17
+ "key": "{message.inbox.mobileNumber}",
18
+ "op": "contains",
19
+ "value": "+6287823888111"
20
+ }
21
+ ],
22
+ "output": [
23
+ {
24
+ "params": {
25
+ "text": "Hello {name} welcome, please select between these beverages:\n\n\n\n\n1. Coffees\n\n2. Tea"
26
+ },
27
+ "type": "reply",
28
+ "text": "Reply"
29
+ },
30
+ {
31
+ "params": {
32
+ "text": "xzczxc"
33
+ },
34
+ "type": "log",
35
+ "text": "Log"
36
+ }
37
+ ],
38
+ "id": 1,
39
+ "enabled": true,
40
+ "uid": "55a54008ad1ba589aa210d2629c1df41",
41
+ "parentId": null,
42
+ "rootParentId": null,
43
+ "userId": 2,
44
+ "sequence": 0,
45
+ "name": "Handle hello @@",
46
+ "type": 1,
47
+ "event": "message.create",
48
+ "isFallback": false,
49
+ "createdAt": "2024-08-10T08:13:27.000Z",
50
+ "updatedAt": "2024-08-24T08:46:09.000Z",
51
+ "weight": null,
52
+ "items": [
53
+ {
54
+ "params": [
55
+ {
56
+ "key": "{message.body}",
57
+ "op": "contains",
58
+ "value": "coffee"
59
+ },
60
+ {
61
+ "key": "{message.direction}",
62
+ "value": 1
63
+ }
64
+ ],
65
+ "output": [
66
+ {
67
+ "params": {
68
+ "text": "Cofeee"
69
+ },
70
+ "type": "log",
71
+ "text": "Log",
72
+ "items": [
73
+ {
74
+ "text": "Name",
75
+ "value": "{message.inbox.name}"
76
+ },
77
+ {
78
+ "text": "Text",
79
+ "value": "{message.body}"
80
+ }
81
+ ]
82
+ }
83
+ ],
84
+ "id": 39,
85
+ "enabled": true,
86
+ "uid": "d4ec222d86f8f4c3d8006dfe3907ada3",
87
+ "parentId": 1,
88
+ "rootParentId": null,
89
+ "userId": 2,
90
+ "sequence": 0,
91
+ "name": "Coffee",
92
+ "type": 1,
93
+ "event": "message.create",
94
+ "isFallback": false,
95
+ "createdAt": "2024-08-18T07:43:41.000Z",
96
+ "updatedAt": "2024-08-24T08:46:09.000Z",
97
+ "weight": null,
98
+ "items": []
99
+ },
100
+ {
101
+ "params": [
102
+ {
103
+ "key": "{message.body}",
104
+ "op": "contains",
105
+ "value": "Tea"
106
+ },
107
+ {
108
+ "key": "{message.direction}",
109
+ "value": 1
110
+ }
111
+ ],
112
+ "output": [
113
+ {
114
+ "params": {
115
+ "text": "Tea with Baking Soda"
116
+ },
117
+ "type": "log",
118
+ "text": "Log",
119
+ "items": [
120
+ {
121
+ "text": "Name",
122
+ "value": "{message.inbox.name}"
123
+ },
124
+ {
125
+ "text": "Text",
126
+ "value": "{message.body}"
127
+ }
128
+ ]
129
+ }
130
+ ],
131
+ "id": 42,
132
+ "enabled": true,
133
+ "uid": "78fd150298136c2224f521ad8460ac4d",
134
+ "parentId": 1,
135
+ "rootParentId": null,
136
+ "userId": 2,
137
+ "sequence": 1,
138
+ "name": "Tea",
139
+ "type": 1,
140
+ "event": "message.create",
141
+ "isFallback": false,
142
+ "createdAt": "2024-08-18T08:11:49.000Z",
143
+ "updatedAt": "2024-08-24T08:46:09.000Z",
144
+ "weight": null,
145
+ "items": [
146
+ {
147
+ "params": [
148
+ {
149
+ "key": "{message.body}",
150
+ "op": "contains",
151
+ "value": "earl"
152
+ }
153
+ ],
154
+ "output": [
155
+ {
156
+ "params": {
157
+ "text": "Ok {message.inbox.name}, your earl tea will be served in 5 minutes"
158
+ },
159
+ "type": "log",
160
+ "text": "Log",
161
+ "items": [
162
+ {
163
+ "text": "Name",
164
+ "value": "{message.inbox.name}"
165
+ },
166
+ {
167
+ "text": "Text",
168
+ "value": "{message.body}"
169
+ }
170
+ ]
171
+ }
172
+ ],
173
+ "id": 43,
174
+ "enabled": true,
175
+ "uid": "3a745cd46789deafb55739f088328eaa",
176
+ "parentId": 42,
177
+ "rootParentId": null,
178
+ "userId": 2,
179
+ "sequence": 0,
180
+ "name": "Earl",
181
+ "type": 1,
182
+ "event": "message.create",
183
+ "isFallback": false,
184
+ "createdAt": "2024-08-18T08:24:19.000Z",
185
+ "updatedAt": "2024-08-24T08:46:09.000Z",
186
+ "weight": null,
187
+ "items": []
188
+ },
189
+ {
190
+ "params": [],
191
+ "output": [
192
+ {
193
+ "params": {
194
+ "text": "Sorry, we dont serve this"
195
+ },
196
+ "type": "log",
197
+ "text": "Log",
198
+ "items": [
199
+ {
200
+ "text": "Name",
201
+ "value": "{message.inbox.name}"
202
+ },
203
+ {
204
+ "text": "Text",
205
+ "value": "{message.body}"
206
+ }
207
+ ]
208
+ }
209
+ ],
210
+ "id": 47,
211
+ "enabled": true,
212
+ "uid": "5243cc818c1d9f711b45a86ab03ed582",
213
+ "parentId": 42,
214
+ "rootParentId": null,
215
+ "userId": 2,
216
+ "sequence": 1,
217
+ "name": "Other Teas",
218
+ "type": 1,
219
+ "event": "message.create",
220
+ "isFallback": true,
221
+ "createdAt": "2024-08-18T08:57:42.000Z",
222
+ "updatedAt": "2024-08-24T08:46:09.000Z",
223
+ "weight": null,
224
+ "items": []
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ "params": [],
230
+ "output": [
231
+ {
232
+ "params": {
233
+ "text": "Sorry, we dont provide this beverages"
234
+ },
235
+ "type": "log",
236
+ "text": "Log",
237
+ "items": [
238
+ {
239
+ "text": "Name",
240
+ "value": "{message.inbox.name}"
241
+ },
242
+ {
243
+ "text": "Text",
244
+ "value": "{message.body}"
245
+ }
246
+ ]
247
+ }
248
+ ],
249
+ "id": 46,
250
+ "enabled": true,
251
+ "uid": "5199af6c2e0ee6fbe2ca1bb2381ac640",
252
+ "parentId": 1,
253
+ "rootParentId": null,
254
+ "userId": 2,
255
+ "sequence": 2,
256
+ "name": "Other Beverages",
257
+ "type": 1,
258
+ "event": "message.create",
259
+ "isFallback": true,
260
+ "createdAt": "2024-08-18T08:40:59.000Z",
261
+ "updatedAt": "2024-08-24T08:46:09.000Z",
262
+ "weight": null,
263
+ "items": []
264
+ }
265
+ ]
266
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.2.240701",
4
+ "version": "0.2.240703",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -14,6 +14,8 @@
14
14
  "./components/*": "./src/components/*",
15
15
  "./mixin/*": "./src/mixin/*",
16
16
  "./widgets/*": "./src/widgets/*",
17
+ "./mixin/component": "./src/mixin/component.js",
18
+ "./mixin/edit-mode": "./src/mixin/edit-mode.js",
17
19
  "./middleware/http/trim-string": "./src/middleware/http/trim-string.js",
18
20
  "./helpers": {
19
21
  "require": "./src/utils/helpers.js",
@@ -25,6 +27,7 @@
25
27
  },
26
28
  "./importer": "./src/utils/importer.js",
27
29
  "./listpage1": "./src/utils/listpage1.js",
30
+ "./dashboard": "./src/utils/dashboard.js",
28
31
  "./listview": "./src/utils/listview.js",
29
32
  "./preset-selector": {
30
33
  "require": "./src/utils/preset-selector.js",
@@ -52,8 +55,9 @@
52
55
  "glob": "^8.0.3",
53
56
  "lodash": "^4.17.21",
54
57
  "md5": "^2.3.0",
58
+ "mitt": "^3.0.1",
55
59
  "nprogress": "^0.2.0",
56
- "pinia": "^2.0.14",
60
+ "pinia": "^2.0.2",
57
61
  "prismjs": "^1.28.0",
58
62
  "redis": "^4.6.13",
59
63
  "serve-static": "^1.15.0",
Binary file
Binary file
Binary file
Binary file