@appscode/design-system 2.6.0 → 2.6.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -13,6 +13,12 @@
13
13
  .card-details-inner {
14
14
  width: 100%;
15
15
  }
16
+ .top-right {
17
+ top: 12px;
18
+ right: 12px;
19
+ position: absolute;
20
+ z-index: 1;
21
+ }
16
22
 
17
23
  .ac-options {
18
24
  position: absolute;
@@ -31,6 +31,8 @@ const OptionDots = defineAsyncComponent(() => import("../option-dots/Options.vue
31
31
  <option-dots v-if="showOptions" :position="'is-right'">
32
32
  <slot name="options" />
33
33
  </option-dots>
34
+
35
+ <div v-else class="top-right"><slot name="custom-option" /></div>
34
36
  <div class="card-details-inner" :class="modifierClasses">
35
37
  <div class="c-header">
36
38
  <div class="c-logo">
@@ -12,6 +12,7 @@ import AcButton from "../button/Button.vue";
12
12
 
13
13
  interface Props {
14
14
  isButtonsDisabled?: boolean;
15
+ isButtonLoaderActive?: boolean;
15
16
  disabled?: boolean;
16
17
  isCreateDisabled?: boolean;
17
18
  label: string;
@@ -51,6 +52,7 @@ const prop = withDefaults(defineProps<Props>(), {
51
52
  showCustomMessage: false,
52
53
  buttonLabel: "Add New",
53
54
  formLabel: "",
55
+ isButtonLoaderActive: false,
54
56
  });
55
57
 
56
58
  const Accordion = defineAsyncComponent(() => import("./Accordion.vue"));
@@ -126,6 +128,7 @@ function collapseForm() {
126
128
  :disabled="disabled ? true : false"
127
129
  data-testid="single-step-form-array-item-save-button"
128
130
  @click.prevent="onSaveItem()"
131
+ :is-loader-active="isButtonLoaderActive"
129
132
  title="Save"
130
133
  icon-class="unplugin"
131
134
  >
@@ -136,6 +139,7 @@ function collapseForm() {
136
139
  <ac-button
137
140
  modifier-classes="is-small is-light is-danger"
138
141
  data-testid="single-step-form-array-item-close-button"
142
+ :disabled="isButtonLoaderActive"
139
143
  @click.prevent="resetAllData()"
140
144
  >
141
145
  <span class="icon"><HeroiconsXMark20Solid /></span>
@@ -213,6 +217,7 @@ function collapseForm() {
213
217
  v-if="!isButtonsDisabled && isEditable"
214
218
  modifier-classes="is-small is-light is-primary"
215
219
  data-testid="single-step-form-array-item-edit-button"
220
+ :disabled="isButtonLoaderActive"
216
221
  @click.prevent="onEditClick(idxRow)"
217
222
  >
218
223
  <span class="icon"> <HeroiconsPencilSquare /> </span>
@@ -222,6 +227,7 @@ function collapseForm() {
222
227
  v-if="!isButtonsDisabled"
223
228
  modifier-classes="is-small is-light is-danger"
224
229
  data-testid="single-step-form-array-item-delete-button"
230
+ :disabled="isButtonLoaderActive"
225
231
  @click.prevent="onDeleteItem(idxRow)"
226
232
  >
227
233
  <span class="icon"> <HeroiconsTrash /> </span>
@@ -231,6 +237,7 @@ function collapseForm() {
231
237
  v-if="isExpandable"
232
238
  modifier-classes="is-small is-light"
233
239
  data-testid="single-step-form-array-item-show-details-button"
240
+ :disabled="isButtonLoaderActive"
234
241
  @click.prevent="onDetailsClick(idxRow)"
235
242
  >
236
243
  <span v-if="expandableFieldIndex === idxRow" class="icon"><HeroiconsChevronUpSolid /></span>
@@ -254,6 +261,7 @@ function collapseForm() {
254
261
  :disabled="disabled ? true : false"
255
262
  data-testid="single-step-form-array-item-save-button"
256
263
  @click.prevent="onSaveEditedItem(idxRow)"
264
+ :is-loader-active="isButtonLoaderActive"
257
265
  icon-class="unplugin"
258
266
  title="Save"
259
267
  >
@@ -263,6 +271,7 @@ function collapseForm() {
263
271
  <!-- close button start -->
264
272
  <ac-button
265
273
  modifier-classes="is-small is-danger is-light"
274
+ :disabled="isButtonLoaderActive"
266
275
  data-testid="single-step-form-array-item-close-button"
267
276
  @click.prevent="resetAllData()"
268
277
  >