@mixd-id/web-scaffold 0.1.230406343 → 0.1.230406344

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.
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.230406343",
4
+ "version": "0.1.230406344",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -646,7 +646,11 @@
646
646
  @mousedown="(e) => $util.dragResize(e, resize1)"></div>
647
647
  </div>
648
648
 
649
- <div v-if="viewedPreset" class="flex-1 px-8 py-5 overflow-y-auto flex flex-col gap-6">
649
+ <div v-if="readyState === 0" class="flex-1 flex items-center justify-center">
650
+ <svg class="animate-spin aspect-square w-[64px] h-[64px]" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>
651
+ </div>
652
+
653
+ <div v-else-if="viewedPreset" class="flex-1 px-8 py-5 overflow-y-auto flex flex-col gap-6">
650
654
 
651
655
  <div class="flex flex-row gap-2 md:gap-2 items-center" ref="title">
652
656
  <button type="button"
@@ -718,6 +722,7 @@
718
722
  <DatasourcePreview ref="datasourcePreview" :src="previewSrc" />
719
723
 
720
724
  </div>
725
+ <div v-else>{{ $t('Loading...') }}</div>
721
726
  </template>
722
727
 
723
728
  <script>
@@ -939,6 +944,8 @@ export default{
939
944
 
940
945
  previewData: null,
941
946
 
947
+ readyState: 0,
948
+
942
949
  selectedViewUid: null,
943
950
 
944
951
  viewTypes: [
@@ -1210,6 +1217,7 @@ export default{
1210
1217
  this.socket.send(this.src, { views })
1211
1218
  .then(_ => {
1212
1219
  Object.assign(this.values, _)
1220
+ this.readyState = 1
1213
1221
  })
1214
1222
  },
1215
1223