@appscode/design-system 1.0.43-alpha.99 → 1.1.0

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 (101) hide show
  1. package/base/utilities/_all.scss +7 -0
  2. package/base/utilities/_customize-bulma.scss +191 -0
  3. package/base/utilities/_default.scss +58 -124
  4. package/base/utilities/_derived-variables.scss +6 -0
  5. package/base/utilities/_grid.scss +29 -0
  6. package/base/utilities/_initial-variables.scss +13 -9
  7. package/base/utilities/_typography.scss +6 -12
  8. package/base/utilities/dark-theme.scss +1 -0
  9. package/components/_ac-accordion.scss +14 -5
  10. package/components/_ac-alert-box.scss +32 -6
  11. package/components/_ac-card.scss +17 -5
  12. package/components/_ac-drag.scss +2 -0
  13. package/components/_ac-input.scss +19 -11
  14. package/components/_ac-modal.scss +1 -1
  15. package/components/_ac-multi-select.scss +60 -4
  16. package/components/_ac-report.scss +53 -0
  17. package/components/_ac-table.scss +60 -2
  18. package/components/_ac-tabs.scss +16 -2
  19. package/components/_ac-tags.scss +85 -0
  20. package/components/_ac-terminal.scss +1 -3
  21. package/components/_all.scss +28 -0
  22. package/components/_buttons.scss +14 -33
  23. package/components/_dashboard-header.scss +32 -0
  24. package/components/_left-sidebar-menu.scss +9 -9
  25. package/components/_navbar.scss +89 -4
  26. package/components/_preview-modal.scss +14 -1
  27. package/components/_transitions.scss +261 -0
  28. package/components/_wizard.scss +1 -0
  29. package/components/bbum/_all.scss +9 -0
  30. package/components/bbum/_single-post-preview.scss +1 -1
  31. package/components/ui-builder/_ui-builder.scss +58 -0
  32. package/components/ui-builder/_vue-open-api.scss +6 -0
  33. package/layouts/_all.scss +2 -0
  34. package/layouts/_code-preview.scss +5 -2
  35. package/main.scss +5 -56
  36. package/package.json +4 -2
  37. package/plugins/caching.ts +243 -0
  38. package/plugins/time-convert.js +49 -0
  39. package/plugins/vue-toaster.js +3 -0
  40. package/vue-components/v2/banner/Banner.vue +2 -2
  41. package/vue-components/v2/breadcrumbs/Breadcrumb.vue +97 -0
  42. package/vue-components/v2/button/Button.vue +5 -0
  43. package/vue-components/v2/button/DownloadBtn.vue +45 -0
  44. package/vue-components/v2/card/Card.vue +1 -0
  45. package/vue-components/v2/content/ContentTable.vue +12 -7
  46. package/vue-components/v2/editor/Editor.vue +37 -24
  47. package/vue-components/v2/editor/FilteredFileEditor.vue +189 -0
  48. package/vue-components/v2/editor/MonacoEditor.vue +125 -0
  49. package/vue-components/v2/editor/ResourceKeyValueEditor.vue +209 -0
  50. package/vue-components/v2/form-fields/Input.vue +1 -1
  51. package/vue-components/v2/loaders/ResourceLoader.vue +101 -0
  52. package/vue-components/v2/loaders/SidebarLoader.vue +43 -0
  53. package/vue-components/v2/modal/Modal.vue +30 -5
  54. package/vue-components/v2/modals/DeleteConfirmationModal.vue +79 -0
  55. package/vue-components/v2/modals/JsonShowModal.vue +12 -2
  56. package/vue-components/v2/navbar/User.vue +229 -17
  57. package/vue-components/v2/notification/Notification.vue +101 -0
  58. package/vue-components/v2/notification/NotificationItem.vue +44 -0
  59. package/vue-components/v2/pagination/Pagination.vue +16 -3
  60. package/vue-components/v2/preloader/Preloader.vue +1 -1
  61. package/vue-components/v2/sidebar/SidebarItemWithDropDown.vue +19 -20
  62. package/vue-components/v2/tab/TabItem.vue +1 -1
  63. package/vue-components/v2/table/Table.vue +49 -8
  64. package/vue-components/v2/table/TableRow.vue +12 -2
  65. package/vue-components/v2/table/table-cell/CellValue.vue +29 -9
  66. package/vue-components/v2/table/table-cell/GenericCell.vue +56 -0
  67. package/vue-components/v2/table/table-cell/ObjectCell.vue +4 -1
  68. package/vue-components/v3/button/Button.vue +6 -1
  69. package/vue-components/v3/content/ContentHeader.vue +2 -1
  70. package/vue-components/v3/content/ContentTable.vue +20 -2
  71. package/vue-components/v3/editor/Editor.vue +36 -33
  72. package/vue-components/v3/editor/FilteredFileEditor.vue +186 -0
  73. package/vue-components/v3/editor/MonacoEditor.vue +131 -0
  74. package/vue-components/v3/editor/ResourceKeyValueEditor.vue +125 -0
  75. package/vue-components/v3/form/Form.vue +63 -0
  76. package/vue-components/v3/form-fields/Input.vue +11 -10
  77. package/vue-components/v3/header/HeaderItem.vue +5 -0
  78. package/vue-components/v3/header/HeaderItems.vue +5 -0
  79. package/vue-components/v3/loaders/ResourceLoader.vue +83 -0
  80. package/vue-components/v3/loaders/SidebarLoader.vue +34 -0
  81. package/vue-components/v3/long-running-tasks/LongRunningTaskItem.vue +92 -0
  82. package/vue-components/v3/modal/Modal.vue +30 -7
  83. package/vue-components/v3/modals/DeleteConfirmationModal.vue +85 -0
  84. package/vue-components/v3/modals/JsonShowModal.vue +25 -16
  85. package/vue-components/v3/modals/LongRunningTasksModal.vue +400 -0
  86. package/vue-components/v3/navbar/ThemeMode.vue +41 -49
  87. package/vue-components/v3/navbar/User.vue +242 -18
  88. package/vue-components/v3/notification/AlertBox.vue +61 -0
  89. package/vue-components/v3/notification/Notification.vue +98 -0
  90. package/vue-components/v3/notification/NotificationItem.vue +52 -0
  91. package/vue-components/v3/pagination/Pagination.vue +16 -3
  92. package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +120 -0
  93. package/vue-components/v3/tab/TabItem.vue +1 -1
  94. package/vue-components/v3/table/MultiInfoTable.vue +143 -0
  95. package/vue-components/v3/table/Table.vue +52 -13
  96. package/vue-components/v3/table/TableContainer.vue +34 -0
  97. package/vue-components/v3/table/TableRow.vue +93 -6
  98. package/vue-components/v3/table/table-cell/CellValue.vue +23 -7
  99. package/vue-components/v3/table/table-cell/GenericCell.vue +75 -0
  100. package/vue-components/v3/table/table-cell/ObjectCell.vue +7 -2
  101. package/vue-components/v3/terminal/LongRunningTaskTerminal.vue +148 -0
@@ -0,0 +1,209 @@
1
+ <template>
2
+ <content-table
3
+ :table-title="title"
4
+ :searchable="isSearchable"
5
+ :hide-header="hideHeader"
6
+ >
7
+ <template #content-controls>
8
+ <header-item v-if="showHideBtn">
9
+ <ac-button
10
+ modifier-classes="is-square is-primary"
11
+ :icon-class="toggleHideValue ? 'eye-slash' : 'eye'"
12
+ @click.prevent="toggleHideValue = !toggleHideValue"
13
+ />
14
+ </header-item>
15
+ <header-item v-if="showCopyBtn">
16
+ <ac-button
17
+ modifier-classes="is-square is-primary"
18
+ icon-class="copy"
19
+ v-clipboard:copy="decode(activeFile)"
20
+ v-clipboard:success="onCopy"
21
+ v-clipboard:error="onError"
22
+ />
23
+ </header-item>
24
+ <header-item v-if="showDownloadBtn">
25
+ <download-btn
26
+ :file-data="decode(activeFile)"
27
+ :file-name="activeFile.name"
28
+ />
29
+ </header-item>
30
+ <header-item v-if="showUpdateBtn && !isEditorReadOnly">
31
+ <ac-button
32
+ modifier-classes="is-square is-primary"
33
+ icon-class="floppy-o"
34
+ :class="{ 'is-loading': isUpdateActive }"
35
+ @click.prevent="$emit('updateData', activeKey, activeFile)"
36
+ />
37
+ </header-item>
38
+ <header-item v-if="showDeleteBtn">
39
+ <ac-button
40
+ modifier-classes="is-square is-danger"
41
+ icon-class="trash"
42
+ @click.prevent="showDeleteDataModal = true"
43
+ />
44
+ <delete-confirmation-modal
45
+ title="Delete Resource"
46
+ message="Do you want to delete "
47
+ :item-name="activeFile.name"
48
+ :open="showDeleteDataModal"
49
+ :is-delete-active="deleteModalStatus === 'loading'"
50
+ @delete-confirmation-modal$confirm="confirmDelete"
51
+ @closemodal="showDeleteDataModal = false"
52
+ />
53
+ </header-item>
54
+ <slot name="content-action" />
55
+ </template>
56
+ <template #content="{ searchText }">
57
+ <filtered-file-editor
58
+ :search-text="searchText"
59
+ :toggle-hide-value="toggleHideValue"
60
+ :is-preview-loading="isPreviewLoading"
61
+ :is-editor-read-only="isEditorReadOnly"
62
+ :preview-yamls="previewYamls"
63
+ :show-minimap="showMinimap"
64
+ :editor-height="editorHeight"
65
+ :loader-color="loaderColor"
66
+ :theme="theme"
67
+ :key="theme"
68
+ @setActiveKey="setActiveKey"
69
+ />
70
+ </template>
71
+ </content-table>
72
+ </template>
73
+ <script>
74
+ export default {
75
+ components: {
76
+ AcButton: () => import("./../button/Button.vue"),
77
+ Editor: () => import("./../editor/Editor.vue"),
78
+ ContentTable: () => import("./../content/ContentTable.vue"),
79
+ HeaderItem: () => import("./../header/HeaderItem.vue"),
80
+ DownloadBtn: () => import("./../button/DownloadBtn.vue"),
81
+ DeleteConfirmationModal: () =>
82
+ import("./../modals/DeleteConfirmationModal.vue"),
83
+ FilteredFileEditor: () => import("./FilteredFileEditor.vue")
84
+ },
85
+ props: {
86
+ title: {
87
+ type: String,
88
+ default: "Title"
89
+ },
90
+ isSearchable: {
91
+ type: Boolean,
92
+ default: false
93
+ },
94
+ isPreviewLoading: {
95
+ type: Boolean,
96
+ default: false
97
+ },
98
+ isEditorReadOnly: {
99
+ type: Boolean,
100
+ default: false
101
+ },
102
+ previewYamls: {
103
+ type: Array,
104
+ default: () => {
105
+ [];
106
+ }
107
+ },
108
+ visibleBtn: {
109
+ type: Object,
110
+ default: () => {
111
+ return {};
112
+ }
113
+ },
114
+ showMinimap: {
115
+ type: Boolean,
116
+ default: false
117
+ },
118
+ isUpdateActive: {
119
+ type: Boolean,
120
+ default: false
121
+ },
122
+ deleteModalStatus: {
123
+ type: String,
124
+ default: "closed"
125
+ },
126
+ editorHeight: {
127
+ type: Number,
128
+ default: 60
129
+ },
130
+ hideHeader: {
131
+ type: Boolean,
132
+ default: false
133
+ },
134
+ loaderColor: {
135
+ type: Object,
136
+ default: () => {
137
+ return {};
138
+ }
139
+ },
140
+ theme: {
141
+ type: String,
142
+ default: "light"
143
+ }
144
+ },
145
+ data() {
146
+ return {
147
+ activeKey: 0,
148
+ toggleHideValue: "",
149
+ showDeleteDataModal: false
150
+ };
151
+ },
152
+ computed: {
153
+ activeFile() {
154
+ const activeFile = this.previewYamls.find(
155
+ element => element.uid === this.activeKey
156
+ );
157
+ return activeFile || { content: "", format: "yaml" };
158
+ },
159
+ showCopyBtn() {
160
+ if (this.visibleBtn.showCopyBtn) return true;
161
+ else return false;
162
+ },
163
+ showHideBtn() {
164
+ if (this.visibleBtn.showHideBtn) return true;
165
+ else return false;
166
+ },
167
+ showUpdateBtn() {
168
+ if (this.visibleBtn.showUpdateBtn) return true;
169
+ else return false;
170
+ },
171
+ showDownloadBtn() {
172
+ if (this.visibleBtn.showDownloadBtn) return true;
173
+ else return false;
174
+ },
175
+ showDeleteBtn() {
176
+ if (this.visibleBtn.showDeleteBtn) return true;
177
+ else return false;
178
+ }
179
+ },
180
+ methods: {
181
+ onCopy() {
182
+ this.$toasted.global.success("Value copied successfully").goAway(1000);
183
+ },
184
+ onError() {
185
+ this.$toasted.global.error("Copying failed").goAway(1000);
186
+ },
187
+ decode(str) {
188
+ if (str) return str.content;
189
+ else return "";
190
+ },
191
+ encode(str) {
192
+ if (str) return str.content;
193
+ else return "";
194
+ },
195
+ confirmDelete(flag) {
196
+ if (flag) this.$emit("deleteResource", this.activeKey);
197
+ },
198
+ setActiveKey(key) {
199
+ this.activeKey = key;
200
+ this.toggleHideValue = this.activeFile.isSecret;
201
+ }
202
+ },
203
+ watch: {
204
+ deleteModalStatus(n) {
205
+ if (n === "closed") this.showDeleteDataModal = false;
206
+ }
207
+ }
208
+ };
209
+ </script>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <input class="ac-input" v-on="inputListeners" />
2
+ <input data-testid="ac-input" class="ac-input" v-on="inputListeners" />
3
3
  </template>
4
4
 
5
5
  <script>
@@ -0,0 +1,101 @@
1
+ <template>
2
+ <div>
3
+ <content-loader
4
+ :width="100"
5
+ :height="40"
6
+ :speed="2"
7
+ :primaryColor="primaryLoaderColor"
8
+ :secondaryColor="secondaryLoaderColor"
9
+ >
10
+ <rect x="1" y="1" rx="1" ry="1" width="14" height="1" />
11
+ <rect x="17" y="1" rx="1" ry="1" width="13" height="1" />
12
+ <rect x="32" y="1" rx="1" ry="1" width="8" height="1" />
13
+
14
+ <rect x="7" y="3" rx="1" ry="1" width="14" height="1" />
15
+ <rect x="23" y="3" rx="1" ry="1" width="13" height="1" />
16
+ <rect x="38" y="3" rx="1" ry="1" width="8" height="1" />
17
+
18
+ <rect x="13" y="5" rx="1" ry="1" width="8" height="1" />
19
+ <rect x="23" y="5" rx="1" ry="1" width="15" height="1" />
20
+ <rect x="40" y="5" rx="1" ry="1" width="4" height="1" />
21
+
22
+ <rect x="13" y="7" rx="1" ry="1" width="10" height="1" />
23
+ <rect x="25" y="7" rx="1" ry="1" width="20" height="1" />
24
+
25
+ <rect x="7" y="10" rx="1" ry="1" width="14" height="1" />
26
+ <rect x="23" y="10" rx="1" ry="1" width="13" height="1" />
27
+ <rect x="38" y="10" rx="1" ry="1" width="8" height="1" />
28
+
29
+ <rect x="13" y="12" rx="1" ry="1" width="8" height="1" />
30
+ <rect x="23" y="12" rx="1" ry="1" width="15" height="1" />
31
+ <rect x="40" y="12" rx="1" ry="1" width="4" height="1" />
32
+
33
+ <rect x="13" y="14" rx="1" ry="1" width="10" height="1" />
34
+ <rect x="25" y="14" rx="1" ry="1" width="20" height="1" />
35
+
36
+ <rect x="7" y="17" rx="1" ry="1" width="14" height="1" />
37
+ <rect x="23" y="17" rx="1" ry="1" width="13" height="1" />
38
+ <rect x="38" y="17" rx="1" ry="1" width="8" height="1" />
39
+
40
+ <rect x="13" y="19" rx="1" ry="1" width="8" height="1" />
41
+ <rect x="23" y="19" rx="1" ry="1" width="15" height="1" />
42
+ <rect x="40" y="19" rx="1" ry="1" width="4" height="1" />
43
+
44
+ <rect x="7" y="22" rx="1" ry="1" width="14" height="1" />
45
+ <rect x="23" y="22" rx="1" ry="1" width="13" height="1" />
46
+ <rect x="38" y="22" rx="1" ry="1" width="8" height="1" />
47
+
48
+ <rect x="13" y="24" rx="1" ry="1" width="8" height="1" />
49
+ <rect x="23" y="24" rx="1" ry="1" width="15" height="1" />
50
+ <rect x="40" y="24" rx="1" ry="1" width="4" height="1" />
51
+
52
+ <rect x="1" y="26" rx="1" ry="1" width="14" height="1" />
53
+ <rect x="17" y="26" rx="1" ry="1" width="13" height="1" />
54
+ <rect x="32" y="26" rx="1" ry="1" width="8" height="1" />
55
+
56
+ <rect x="7" y="29" rx="1" ry="1" width="14" height="1" />
57
+ <rect x="23" y="29" rx="1" ry="1" width="13" height="1" />
58
+ <rect x="38" y="29" rx="1" ry="1" width="8" height="1" />
59
+
60
+ <rect x="13" y="31" rx="1" ry="1" width="8" height="1" />
61
+ <rect x="23" y="31" rx="1" ry="1" width="15" height="1" />
62
+ <rect x="40" y="31" rx="1" ry="1" width="4" height="1" />
63
+
64
+ <rect x="7" y="33" rx="1" ry="1" width="14" height="1" />
65
+ <rect x="23" y="33" rx="1" ry="1" width="13" height="1" />
66
+ <rect x="38" y="33" rx="1" ry="1" width="8" height="1" />
67
+
68
+ <rect x="13" y="35" rx="1" ry="1" width="8" height="1" />
69
+ <rect x="23" y="35" rx="1" ry="1" width="15" height="1" />
70
+ <rect x="40" y="35" rx="1" ry="1" width="4" height="1" />
71
+
72
+ <rect x="13" y="37" rx="1" ry="1" width="8" height="1" />
73
+ <rect x="23" y="37" rx="1" ry="1" width="15" height="1" />
74
+ <rect x="40" y="37" rx="1" ry="1" width="4" height="1" />
75
+
76
+ <rect x="1" y="39" rx="1" ry="1" width="14" height="1" />
77
+ <rect x="17" y="39" rx="1" ry="1" width="13" height="1" />
78
+ <rect x="32" y="39" rx="1" ry="1" width="8" height="1" />
79
+ </content-loader>
80
+ </div>
81
+ </template>
82
+
83
+ <script>
84
+ import { ContentLoader } from "vue-content-loader";
85
+
86
+ export default {
87
+ components: {
88
+ ContentLoader
89
+ },
90
+ props: {
91
+ primaryLoaderColor: {
92
+ type: String,
93
+ default: "#f5f7f9"
94
+ },
95
+ secondaryLoaderColor: {
96
+ type: String,
97
+ default: "#ecebeb"
98
+ }
99
+ }
100
+ };
101
+ </script>
@@ -0,0 +1,43 @@
1
+ <template>
2
+ <div>
3
+ <content-loader
4
+ :width="100"
5
+ :height="175"
6
+ :speed="2"
7
+ :primaryColor="primaryLoaderColor"
8
+ :secondaryColor="secondaryLoaderColor"
9
+ >
10
+ <rect x="2" y="1" rx="3" ry="3" width="96" height="20" />
11
+ <rect x="15" y="23" rx="3" ry="3" width="83" height="15" />
12
+ <rect x="15" y="40" rx="3" ry="3" width="83" height="15" />
13
+ <rect x="15" y="57" rx="3" ry="3" width="83" height="15" />
14
+
15
+ <rect x="2" y="78" rx="3" ry="3" width="96" height="20" />
16
+ <rect x="15" y="100" rx="3" ry="3" width="83" height="15" />
17
+ <rect x="15" y="117" rx="3" ry="3" width="83" height="15" />
18
+ <rect x="15" y="134" rx="3" ry="3" width="83" height="15" />
19
+
20
+ <rect x="2" y="155" rx="3" ry="3" width="96" height="20" />
21
+ </content-loader>
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import { ContentLoader } from "vue-content-loader";
27
+
28
+ export default {
29
+ components: {
30
+ ContentLoader
31
+ },
32
+ props: {
33
+ primaryLoaderColor: {
34
+ type: String,
35
+ default: "#f5f7f9"
36
+ },
37
+ secondaryLoaderColor: {
38
+ type: String,
39
+ default: "#ecebeb"
40
+ }
41
+ }
42
+ };
43
+ </script>
@@ -6,7 +6,7 @@
6
6
  v-if="showModal"
7
7
  class="ac-modal is-middle-alignment"
8
8
  :class="modifierClasses"
9
- @click.self="destroyModal"
9
+ @click.self="onModalOutsideClick"
10
10
  >
11
11
  <div class="ac-modal-inner">
12
12
  <!-- modal header start -->
@@ -18,7 +18,10 @@
18
18
  <ac-button
19
19
  modifier-classes="is-square is-transparent"
20
20
  :disabled="isCloseOptionDisabled"
21
- :icon-image="require('@/assets/images/icons/close-icon.svg')"
21
+ :icon-image="
22
+ require('@appscode/design-system-images/icons/close-icon.svg')
23
+ "
24
+ data-testid="delete-confirmation-modal-close-icon"
22
25
  @click.stop="destroyModal"
23
26
  />
24
27
  </header-item>
@@ -27,7 +30,10 @@
27
30
  <!-- modal header end -->
28
31
 
29
32
  <!-- modal body start -->
30
- <div class="ac-modal-body">
33
+ <div
34
+ class="ac-modal-body ac-vscrollbar"
35
+ data-testid="ac-modal-content-with-scroll"
36
+ >
31
37
  <div class="ac-modal-content">
32
38
  <!-- freedom content start -->
33
39
  <slot />
@@ -37,7 +43,14 @@
37
43
  <!-- modal body end -->
38
44
 
39
45
  <!-- modal footer start -->
40
- <div class="ac-modal-footer action-footer is-flex is-align-items-center is-justify-content-space-between">
46
+ <div
47
+ v-if="!hideActionFooter"
48
+ class="
49
+ ac-modal-footer
50
+ action-footer
51
+ is-flex is-align-items-center is-justify-content-space-between
52
+ "
53
+ >
41
54
  <div>
42
55
  <slot name="modal-footer-left" />
43
56
  </div>
@@ -69,7 +82,15 @@ export default {
69
82
  isCloseOptionDisabled: {
70
83
  type: Boolean,
71
84
  default: false,
72
- }
85
+ },
86
+ ignoreOutsideClick: {
87
+ type: Boolean,
88
+ default: false,
89
+ },
90
+ hideActionFooter: {
91
+ type: Boolean,
92
+ default: false,
93
+ },
73
94
  },
74
95
 
75
96
  components: {
@@ -105,6 +126,10 @@ export default {
105
126
  this.destroyModal();
106
127
  }
107
128
  },
129
+ onModalOutsideClick() {
130
+ if (this.ignoreOutsideClick) return;
131
+ this.destroyModal();
132
+ },
108
133
  initializeModal() {
109
134
  this.showModal = true;
110
135
  document.addEventListener("keydown", this.onKeyDown);
@@ -0,0 +1,79 @@
1
+ <template>
2
+ <!-- modal start -->
3
+ <modal
4
+ :title="title"
5
+ modifier-classes="is-normal"
6
+ :open="open"
7
+ @closemodal="closeModal"
8
+ >
9
+ <!-- freedom content start -->
10
+ <div class="action-message pt-35 pb-35 has-text-centered">
11
+ <h5 class="is-message">{{ message }} {{ itemName ? "" : "?" }}</h5>
12
+ <p class="is-description">{{ itemName }} {{ itemName ? "?" : "" }}</p>
13
+ </div>
14
+
15
+ <!-- freedom content end -->
16
+
17
+ <!-- modal footer start -->
18
+ <template #modal-footer-controls>
19
+ <ac-button
20
+ @click.stop="closeModal"
21
+ title="Cancel"
22
+ modifier-classes="is-outlined"
23
+ data-testid="delete-confirmation-modal-close-button"
24
+ />
25
+ <ac-button
26
+ modifier-classes="is-danger"
27
+ :is-loader-active="isDeleteActive"
28
+ title="Yes"
29
+ data-testid="delete-confirmation-modal-confirm-button"
30
+ @click.stop="confirm(true)"
31
+ />
32
+ </template>
33
+ </modal>
34
+ <!-- modal end -->
35
+ </template>
36
+
37
+ <script>
38
+ export default {
39
+ components: {
40
+ Modal: () => import("./../modal/Modal.vue"),
41
+ AcButton: () => import("./../button/Button.vue"),
42
+ },
43
+ props: {
44
+ open: {
45
+ type: Boolean,
46
+ default: false,
47
+ },
48
+ title: {
49
+ type: String,
50
+ default: "",
51
+ },
52
+ message: {
53
+ type: String,
54
+ default: "",
55
+ },
56
+ itemName: {
57
+ type: String,
58
+ default: "",
59
+ },
60
+ isLoading: {
61
+ type: Boolean,
62
+ default: false,
63
+ },
64
+ isDeleteActive: {
65
+ type: Boolean,
66
+ default: false,
67
+ },
68
+ },
69
+ methods: {
70
+ confirm(response) {
71
+ this.$emit("delete-confirmation-modal$confirm", response);
72
+ },
73
+ closeModal() {
74
+ this.confirm(false);
75
+ this.$emit("closemodal", true);
76
+ },
77
+ },
78
+ };
79
+ </script>
@@ -10,7 +10,9 @@
10
10
  <ac-button
11
11
  modifier-classes="is-square is-primary"
12
12
  icon-class="copy"
13
- v-clipboard:copy="`${editorTitle}: &quot;${editorContent}&quot;`"
13
+ v-clipboard:copy="
14
+ `${editorTitle}: ${JSON.stringify(parsedContent, null, 4)}`
15
+ "
14
16
  v-clipboard:success="onCopy"
15
17
  v-clipboard:error="onError"
16
18
  />
@@ -26,6 +28,8 @@
26
28
  </template>
27
29
 
28
30
  <script>
31
+ import Preloader from "../preloader/Preloader.vue";
32
+ import Banner from "../banner/Banner.vue";
29
33
  export default {
30
34
  props: {
31
35
  open: {
@@ -43,7 +47,13 @@ export default {
43
47
  },
44
48
  components: {
45
49
  Modal: () => import("../modal/Modal.vue"),
46
- Editor: () => import("../editor/Editor.vue"),
50
+ Editor: () => ({
51
+ component: import("../editor/Editor.vue"),
52
+ loading: Preloader,
53
+ delay: 200,
54
+ error: Banner,
55
+ timeout: 100000,
56
+ }),
47
57
  AcButton: () => import("../button/Button.vue"),
48
58
  HeaderItem: () => import("../header/HeaderItem.vue"),
49
59
  },