@mixd-id/web-scaffold 0.1.240411101 → 0.1.240411103

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 (114) hide show
  1. package/package.json +1 -1
  2. package/src/components/Ahref.vue +1 -1
  3. package/src/components/Alert.vue +1 -1
  4. package/src/components/ArrayList.vue +2 -2
  5. package/src/components/Article.vue +2 -2
  6. package/src/components/Button.vue +1 -1
  7. package/src/components/Cart.vue +2 -2
  8. package/src/components/CartIcon.vue +1 -1
  9. package/src/components/Checkout.vue +1 -1
  10. package/src/components/CheckoutDelivery.vue +1 -1
  11. package/src/components/CodeEditor.vue +1 -1
  12. package/src/components/ColorPicker.vue +3 -3
  13. package/src/components/ColorPicker2.vue +3 -3
  14. package/src/components/ColorPicker3.vue +1 -1
  15. package/src/components/Confirm.vue +1 -1
  16. package/src/components/ContextMenu.vue +1 -1
  17. package/src/components/Dashboard.vue +1 -1
  18. package/src/components/Dashboard2.vue +1 -1
  19. package/src/components/DashboardComponentSelector.vue +1 -1
  20. package/src/components/Datepicker.vue +2 -2
  21. package/src/components/DayTimeRange.vue +2 -2
  22. package/src/components/Flex.vue +4 -6
  23. package/src/components/GHeatMaps.vue +3 -3
  24. package/src/components/HTMLEditor.vue +4 -8
  25. package/src/components/Image.vue +1 -1
  26. package/src/components/ImportModal.vue +1 -1
  27. package/src/components/List.vue +125 -312
  28. package/src/components/ListView.vue +6 -5
  29. package/src/components/ListViewSettings.vue +2 -2
  30. package/src/components/LogViewerItem.vue +1 -1
  31. package/src/components/MarkdownEdit.vue +29 -7
  32. package/src/components/MarkdownPreview.vue +2 -2
  33. package/src/components/MultiDropdown.vue +1 -1
  34. package/src/components/MultilineText.vue +1 -1
  35. package/src/components/PageBuilder.vue +3 -3
  36. package/src/components/Radio.vue +1 -1
  37. package/src/components/SearchModal.vue +1 -1
  38. package/src/components/Slider.vue +1 -1
  39. package/src/components/SvgEditor.vue +2 -2
  40. package/src/components/Table.vue +2 -2
  41. package/src/components/TableView.vue +3 -2
  42. package/src/components/TableViewHead.vue +2 -2
  43. package/src/components/Textarea.vue +13 -11
  44. package/src/components/Timepicker.vue +2 -2
  45. package/src/components/Toast.vue +1 -1
  46. package/src/components/TreeMenu.vue +2 -2
  47. package/src/components/VirtualGrid.vue +4 -4
  48. package/src/components/VirtualTable.vue +95 -180
  49. package/src/index.js +0 -6
  50. package/src/themes/default/index.js +0 -24
  51. package/src/utils/preset-selector.mjs +27 -183
  52. package/src/utils/wss.js +5 -26
  53. package/src/widgets/AhrefSetting.vue +1 -1
  54. package/src/widgets/ArticleSetting.vue +1 -1
  55. package/src/widgets/BackgroundColorSetting.vue +1 -1
  56. package/src/widgets/BotEditor/BotEditorActions.vue +2 -2
  57. package/src/widgets/BotEditor.vue +4 -4
  58. package/src/widgets/ButtonSetting.vue +1 -1
  59. package/src/widgets/CarouselSetting.vue +1 -1
  60. package/src/widgets/CartSetting.vue +1 -1
  61. package/src/widgets/CheckoutSetting.vue +1 -1
  62. package/src/widgets/CollapsiblePanelSetting.vue +1 -1
  63. package/src/widgets/ColumnSelector.vue +1 -1
  64. package/src/widgets/ComponentSetting.vue +1 -1
  65. package/src/widgets/ComponentSetting2.vue +1 -1
  66. package/src/widgets/ComponentSetting3.vue +1 -1
  67. package/src/widgets/ContactForm.vue +1 -1
  68. package/src/widgets/ContactFormSetting.vue +7 -7
  69. package/src/widgets/Dashboard/BarChart.vue +6 -5
  70. package/src/widgets/Dashboard/BarChartSetting.vue +1 -1
  71. package/src/widgets/Dashboard/DataTableSetting.vue +3 -3
  72. package/src/widgets/Dashboard/DatasourceSelector.vue +1 -1
  73. package/src/widgets/Dashboard/DoughnutSetting.vue +1 -1
  74. package/src/widgets/Dashboard/Metric.vue +1 -1
  75. package/src/widgets/Dashboard/PieSetting.vue +1 -1
  76. package/src/widgets/Dashboard/PolarAreaSetting.vue +1 -1
  77. package/src/widgets/Dashboard/ViewSelector.vue +1 -1
  78. package/src/widgets/Dashboard0.vue +10 -10
  79. package/src/widgets/FAQSetting.vue +3 -3
  80. package/src/widgets/FeatureListSetting.vue +3 -3
  81. package/src/widgets/FlexSetting.vue +1 -1
  82. package/src/widgets/GridSetting.vue +1 -1
  83. package/src/widgets/Header2Setting.vue +1 -1
  84. package/src/widgets/HeaderSetting.vue +1 -1
  85. package/src/widgets/IconListSetting.vue +2 -2
  86. package/src/widgets/ImageSetting.vue +1 -1
  87. package/src/widgets/LinkSetting.vue +1 -1
  88. package/src/widgets/LinkSettingModal.vue +1 -1
  89. package/src/widgets/LogViewer.vue +1 -1
  90. package/src/widgets/MarginSetting.vue +2 -2
  91. package/src/widgets/MenuEditor.vue +1 -1
  92. package/src/widgets/MenuItem1Setting.vue +1 -1
  93. package/src/widgets/ModalSetting.vue +1 -1
  94. package/src/widgets/MultiValueSetting.vue +2 -2
  95. package/src/widgets/MultiValueSetting2.vue +2 -2
  96. package/src/widgets/OGSettingModal.vue +1 -1
  97. package/src/widgets/PaddingSetting.vue +2 -2
  98. package/src/widgets/ParagraphSetting.vue +1 -1
  99. package/src/widgets/PresetBarPivot.vue +8 -8
  100. package/src/widgets/PresetSelector.vue +12 -12
  101. package/src/widgets/SearchModalSetting.vue +1 -1
  102. package/src/widgets/ShareSetting.vue +3 -3
  103. package/src/widgets/StyleSetting.vue +1 -1
  104. package/src/widgets/TestimonialSetting.vue +3 -3
  105. package/src/widgets/TextBlockSetting.vue +1 -1
  106. package/src/widgets/UserActionBuilder/UserActionOutput.vue +1 -1
  107. package/src/widgets/UserActionBuilder/UserActionOutputReply.vue +1 -1
  108. package/src/widgets/UserActionBuilder/UserActionProps.vue +3 -3
  109. package/src/widgets/UserActionBuilder.vue +4 -4
  110. package/src/widgets/WebPageBuilder.vue +17 -17
  111. package/src/widgets/WebPageBuilder2.vue +7 -7
  112. package/src/widgets/WebPageBuilder4/MultiValueSetting.vue +2 -2
  113. package/src/widgets/WebPageBuilder4.vue +5 -5
  114. package/src/widgets/YoutubeVideoSetting.vue +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.240411101",
4
+ "version": "0.1.240411103",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -55,7 +55,7 @@ export default {
55
55
  <style module>
56
56
 
57
57
  .button{
58
- @apply p-2;
58
+ @apply p-2 h-[var(--h-cp)];
59
59
  @apply relative flex items-center justify-center;
60
60
  @apply whitespace-nowrap text-ellipsis overflow-hidden;
61
61
  @apply rounded-lg;
@@ -205,7 +205,7 @@ export default{
205
205
 
206
206
  .alert>*{
207
207
  @apply max-h-[60vh] overflow-y-auto bg-base-400 dark:bg-base-300 rounded-xl;
208
- @apply border-[1px] border-border-50;
208
+ @apply border-[1px] border-text-50;
209
209
  @apply min-w-[280px] max-w-[80vw] md:max-w-[480px];
210
210
  }
211
211
 
@@ -37,12 +37,12 @@ export default{
37
37
 
38
38
  .comp{
39
39
  @apply min-w-[200px] p-1;
40
- @apply border-[1px] border-border-200 bg-base-300 hover:border-text-300 rounded-lg;
40
+ @apply border-[1px] border-text-200 bg-base-300 hover:border-text-300 rounded-lg;
41
41
  @apply flex flex-row items-start flex-nowrap;
42
42
  }
43
43
 
44
44
  .item{
45
- @apply border-[1px] border-border-200 hover:border-text-300 rounded-lg p-1 px-2;
45
+ @apply border-[1px] border-text-200 hover:border-text-300 rounded-lg p-1 px-2;
46
46
  @apply flex flex-row items-center gap-2;
47
47
  }
48
48
 
@@ -376,11 +376,11 @@ export default{
376
376
  .article font[size='7']{ @apply text-4xl; }
377
377
 
378
378
  .article table{
379
- @apply border-[1px] border-border-200 border-collapse w-full;
379
+ @apply border-[1px] border-text-200 border-collapse w-full;
380
380
  table-layout: fixed;
381
381
  }
382
382
  .article table th, .article table td{
383
- @apply border-[1px] border-border-200 p-3 text-left;
383
+ @apply border-[1px] border-text-200 p-3 text-left;
384
384
  @apply break-words;
385
385
  }
386
386
 
@@ -137,7 +137,7 @@ export default{
137
137
  <style module>
138
138
 
139
139
  .button{
140
- @apply p-2 px-8 rounded-lg relative inline-flex flex-row items-center justify-center;
140
+ @apply p-2 rounded-lg relative inline-flex flex-row items-center justify-center;
141
141
  @apply whitespace-nowrap text-ellipsis overflow-hidden min-h-7;
142
142
  @apply border-[1px];
143
143
  @apply active:top-[1px] active:left-[1px] disabled:top-0 disabled:left-0;
@@ -19,7 +19,7 @@
19
19
  <h3>Cart</h3>
20
20
  </div>
21
21
 
22
- <div class="divide-y divide-border-50 px-3 bg-base-300 min-h-[80vh]">
22
+ <div class="divide-y divide-text-50 px-3 bg-base-300 min-h-[80vh]">
23
23
  <div v-for="item in cart.items" class="flex flex-row gap-2 p-2">
24
24
  <Checkbox v-model="item.checked" />
25
25
  <Image :src="item.imageUrl" class="w-[56px] aspect-square rounded-lg" />
@@ -56,7 +56,7 @@
56
56
  </div>
57
57
  </div>
58
58
 
59
- <div class="p-5 py-3 bg-base-300 flex flex-row sticky bottom-0 border-t-[1px] border-border-50">
59
+ <div class="p-5 py-3 bg-base-300 flex flex-row sticky bottom-0 border-t-[1px] border-text-50">
60
60
  <div v-if="cart?.total > 0" class="flex flex-col flex-1 leading-3">
61
61
  <small>Total</small>
62
62
  <h5>Rp. {{ cart.total.toLocaleString() }}</h5>
@@ -23,7 +23,7 @@
23
23
  <ContextMenu ref="contextMenu"
24
24
  position="bottom-right"
25
25
  class="border-transparent">
26
- <div class="flex flex-col min-w-[300px] divide-y divide-border-50">
26
+ <div class="flex flex-col min-w-[300px] divide-y divide-text-50">
27
27
 
28
28
  <div class="" @click.stop>
29
29
  <div class="p-5 py-3 flex flex-row items-center">
@@ -173,7 +173,7 @@
173
173
 
174
174
  </div>
175
175
 
176
- <div class="flex md:hidden p-5 py-3 bg-base-300 flex-row sticky bottom-0 border-t-[1px] border-border-50">
176
+ <div class="flex md:hidden p-5 py-3 bg-base-300 flex-row sticky bottom-0 border-t-[1px] border-text-50">
177
177
  <div v-if="order?.total > 0" class="flex flex-col flex-1 leading-3">
178
178
  <small>Total</small>
179
179
  <h5>Rp. {{ order.total.toLocaleString() }}</h5>
@@ -5,7 +5,7 @@
5
5
  <h3>Select Delivery</h3>
6
6
  </div>
7
7
 
8
- <div v-if="!newItem" class="flex flex-col divide-y divide-border-50">
8
+ <div v-if="!newItem" class="flex flex-col divide-y divide-text-50">
9
9
  <div v-for="item in items"
10
10
  class="p-5 py-3 flex flex-col cursor-pointer"
11
11
  @click="apply(item)">
@@ -34,7 +34,7 @@ export default{
34
34
  <style module>
35
35
 
36
36
  .comp{
37
- @apply border-[1px] border-border-200 bg-base-300 rounded-lg flex flex-col overflow-hidden;
37
+ @apply border-[1px] border-text-200 bg-base-300 rounded-lg flex flex-col overflow-hidden;
38
38
  }
39
39
 
40
40
  .comp code{
@@ -20,9 +20,9 @@
20
20
  </div>
21
21
  <div class="grid grid-cols-2 gap-4">
22
22
  <button type="button" @click="select('')"
23
- class="w-full p-1 border-border-100 border-[1px] rounded-lg">None</button>
23
+ class="w-full p-1 border-text-100 border-[1px] rounded-lg">None</button>
24
24
  <button type="button" v-if="mode !== 'class' && Boolean(customColor)"
25
- class="w-full p-1 border-border-100 border-[1px] rounded-lg"
25
+ class="w-full p-1 border-text-100 border-[1px] rounded-lg"
26
26
  @click="$refs.inputColor.click()">Custom</button>
27
27
  </div>
28
28
  </div>
@@ -150,7 +150,7 @@ export default{
150
150
  }
151
151
 
152
152
  .circle{
153
- @apply w-[24px] h-[24px] rounded-full cursor-pointer border-[2px] border-border-200;
153
+ @apply w-[24px] h-[24px] rounded-full cursor-pointer border-[2px] border-text-200;
154
154
  }
155
155
 
156
156
  .inputColor{
@@ -24,9 +24,9 @@
24
24
  </div>
25
25
  <div class="grid grid-cols-2 gap-4">
26
26
  <button type="button" @click="select('')"
27
- class="w-full p-1 border-border-100 border-[1px] rounded-lg">None</button>
27
+ class="w-full p-1 border-text-100 border-[1px] rounded-lg">None</button>
28
28
  <button type="button" v-if="mode !== 'class' && Boolean(customColor)"
29
- class="w-full p-1 border-border-100 border-[1px] rounded-lg"
29
+ class="w-full p-1 border-text-100 border-[1px] rounded-lg"
30
30
  @click="$refs.inputColor.click()">Custom</button>
31
31
  </div>
32
32
  </div>
@@ -173,7 +173,7 @@ export default{
173
173
  }
174
174
 
175
175
  .circle{
176
- @apply w-[24px] h-[24px] rounded-full cursor-pointer border-[2px] border-border-200;
176
+ @apply w-[24px] h-[24px] rounded-full cursor-pointer border-[2px] border-text-200;
177
177
  }
178
178
 
179
179
  .inputColor{
@@ -9,7 +9,7 @@
9
9
  </Dropdown>
10
10
 
11
11
  <div v-if="computedBackground"
12
- class="h-[8px] border-[1px] border-border-200 rounded-lg"
12
+ class="h-[8px] border-[1px] border-text-200 rounded-lg"
13
13
  :style="{ background:computedBackground }"></div>
14
14
 
15
15
  <div v-if="mode === 'solid'">
@@ -123,7 +123,7 @@ export default{
123
123
 
124
124
  .confirm>*{
125
125
  @apply max-h-[60vh] overflow-y-auto bg-base-400 dark:bg-base-300 rounded-xl;
126
- @apply border-[1px] border-border-50;
126
+ @apply border-[1px] border-text-50;
127
127
  @apply min-w-[280px] max-w-[80vw] md:max-w-[480px];
128
128
  }
129
129
 
@@ -242,7 +242,7 @@ export default {
242
242
 
243
243
  .contextMenu{
244
244
  @apply fixed bg-base-400 dark:bg-base-300 min-w-[150px] overflow-y-auto rounded-lg;
245
- @apply whitespace-nowrap shadow-2xl border-[1px] border-border-50 mt-[1px];
245
+ @apply whitespace-nowrap shadow-2xl border-[1px] border-text-50 mt-[1px];
246
246
  z-index: 180;
247
247
  }
248
248
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div :class="$style.comp">
3
3
 
4
- <div v-if="config.params.openSidebar" :style="leftStyle" class="relative flex flex-col bg-base-300 border-l-[1px] border-border-50">
4
+ <div v-if="config.params.openSidebar" :style="leftStyle" class="relative flex flex-col bg-base-300 border-l-[1px] border-text-50">
5
5
  <DashboardConfigs :config="config" class="flex-1" />
6
6
 
7
7
  <div :class="$style.resize1" @mousedown="(e) => $util.dragResize(e, resize1)"></div>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div :class="$style.comp">
3
3
 
4
- <div class="w-[480px] border-r-[1px] border-border-50">
4
+ <div class="w-[480px] border-r-[1px] border-text-50">
5
5
  <MetricSetting :value="preset.views[0]"/>
6
6
 
7
7
  <pre class="text-xs break-all">
@@ -17,7 +17,7 @@
17
17
 
18
18
  </div>
19
19
  </template>
20
- <div class="flex-1 divide-y divide-border-50">
20
+ <div class="flex-1 divide-y divide-text-50">
21
21
 
22
22
  <div class="flex flex-col">
23
23
  <button v-for="component of components"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
 
3
- <div v-if="mode === ''" :class="compClass" class="divide-x divide-border-50">
3
+ <div v-if="mode === ''" :class="compClass" class="divide-x divide-text-50">
4
4
  <div class="w-[80px] flex flex-row items-center relative">
5
5
  <select v-model="DD" class="text-left w-full flex-1 px-3">
6
6
  <option disabled selected>Tanggal</option>
@@ -322,7 +322,7 @@ export default{
322
322
 
323
323
  .datepicker {
324
324
  @apply flex overflow-hidden cursor-pointer relative;
325
- @apply border-[1px] border-border-200 bg-base-300 rounded-lg;
325
+ @apply border-[1px] border-text-200 bg-base-300 rounded-lg;
326
326
  @apply cursor-pointer;
327
327
  }
328
328
  .datepicker:not(.readonly){
@@ -17,7 +17,7 @@
17
17
  <option value="-">Holiday</option>
18
18
  </select>
19
19
  </div>
20
- <div class="flex-1 flex flex-col gap-1 pl-2 border-l-[1px] border-border-100 divide-y divide-text-100">
20
+ <div class="flex-1 flex flex-col gap-1 pl-2 border-l-[1px] border-text-100 divide-y divide-text-100">
21
21
  <div v-for="(range, i) in val.value" class="flex flex-row">
22
22
  <div class="flex-1 flex flex-row">
23
23
  <input type="time" v-model="val.value[i][0]" @blur="updateModelValue()">
@@ -111,7 +111,7 @@ export default{
111
111
  <style module>
112
112
 
113
113
  .comp{
114
- @apply border-[1px] border-border-200 bg-base-500 rounded-lg;
114
+ @apply border-[1px] border-text-200 bg-base-500 rounded-lg;
115
115
  @apply inline-flex flex-col divide-y divide-text-100;
116
116
  }
117
117
 
@@ -1,12 +1,10 @@
1
1
  <template>
2
2
  <div :class="$style.Flex" :style="computedStyle">
3
3
 
4
- <slot name="default">
5
- <component v-for="item in items"
6
- :is="item.type"
7
- :key="item.key"
8
- :="item" />
9
- </slot>
4
+ <component v-for="item in items"
5
+ :is="item.type"
6
+ :key="item.key"
7
+ :="item" />
10
8
 
11
9
  </div>
12
10
  </template>
@@ -14,7 +14,7 @@
14
14
 
15
15
  <div class="flex flex-row">
16
16
 
17
- <div class="flex-1 flex items-center justify-center divide-x divide-border-50 border-l-[1px] border-r-[1px] border-border-50">
17
+ <div class="flex-1 flex items-center justify-center divide-x divide-text-50 border-l-[1px] border-r-[1px] border-text-50">
18
18
  <button type="button" class="p-1 px-3 hover:bg-primary text-text-400" @click="zoomOut">
19
19
  <svg width="16" height="16" class="fill-text-500 hover:fill-text" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.0.0-alpha3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) --><path d="M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"/></svg>
20
20
  </button>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <script>
46
46
 
47
- import {Loader} from '@googlemaps/js-api-loader';
47
+ import { Loader } from '@googlemaps/js-api-loader';
48
48
  import {readyStateMixin} from "../mixin/ready-state";
49
49
 
50
50
  let loader = null
@@ -311,7 +311,7 @@ export default{
311
311
  <style module>
312
312
 
313
313
  .comp{
314
- @apply flex flex-col h-[40vh] border-[1px] border-border-50 bg-base-500 rounded-xl overflow-hidden;
314
+ @apply flex flex-col h-[40vh] border-[1px] border-text-50 bg-base-500 rounded-xl overflow-hidden;
315
315
  }
316
316
 
317
317
  </style>
@@ -554,15 +554,11 @@ export default{
554
554
  <style module>
555
555
 
556
556
  .comp{
557
- @apply flex-1 flex flex-col border-[1px] border-border-200 rounded-lg overflow-hidden;
558
- }
559
-
560
- .comp article:before{
561
- content: " "
557
+ @apply flex-1 flex flex-col border-[1px] border-text-200 rounded-lg overflow-hidden;
562
558
  }
563
559
 
564
560
  .comp article {
565
- @apply w-full outline-none p-3 leading-6 bg-base-300;
561
+ @apply min-h-[var(--h-cp)] w-full outline-none p-3 leading-6 bg-base-300;
566
562
  @apply flex-1 overflow-auto;
567
563
  }
568
564
 
@@ -579,10 +575,10 @@ export default{
579
575
  }
580
576
 
581
577
  .comp table{
582
- @apply border-[1px] border-border-200 border-collapse;
578
+ @apply border-[1px] border-text-200 border-collapse;
583
579
  }
584
580
  .comp table th, .comp table td{
585
- @apply border-[1px] border-border-200 p-3 text-left;
581
+ @apply border-[1px] border-text-200 p-3 text-left;
586
582
  }
587
583
 
588
584
  </style>
@@ -274,7 +274,7 @@ export default{
274
274
  }
275
275
 
276
276
  .shimmer{
277
- @apply bg-text-300 animate-pulse;
277
+ @apply bg-text-200 animate-pulse;
278
278
  }
279
279
 
280
280
  </style>
@@ -28,7 +28,7 @@
28
28
  </template>
29
29
 
30
30
  <div class="flex-1 p-5 flex flex-col items-center justify-center" v-if="step === 1">
31
- <button type="button" @click="$refs.uploader.click()" class="rounded-3xl w-[160px] bg-base-300 px-6 aspect-square flex items-center justify-center text-center border-dashed border-[3px] border-border-100">
31
+ <button type="button" @click="$refs.uploader.click()" class="rounded-3xl w-[160px] bg-base-300 px-6 aspect-square flex items-center justify-center text-center border-dashed border-[3px] border-text-100">
32
32
  <div class="text-xl" v-if="!isLoading">
33
33
  Click to <br />
34
34
  <span class="text-primary text-lg">Upload</span>