@omnitend/dashboard-for-laravel 0.17.0 → 0.18.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.
@@ -599,10 +599,12 @@
599
599
  <DButton
600
600
  v-if="deleteUrl && !isCreateMode"
601
601
  variant="danger"
602
+ :loading="pendingAction === 'delete'"
603
+ loading-text="Deleting..."
602
604
  :disabled="editForm?.processing || editLoading"
603
605
  @click="handleDelete"
604
606
  >
605
- {{ pendingAction === 'delete' ? 'Deleting...' : 'Delete' }}
607
+ Delete
606
608
  </DButton>
607
609
  </div>
608
610
  <div class="d-flex gap-2">
@@ -611,15 +613,12 @@
611
613
  </DButton>
612
614
  <DButton
613
615
  variant="primary"
616
+ :loading="pendingAction === 'save'"
617
+ :loading-text="isCreateMode ? 'Creating...' : 'Saving...'"
614
618
  :disabled="editForm?.processing || editLoading"
615
619
  @click="handleEditSave"
616
620
  >
617
- <template v-if="isCreateMode">
618
- {{ pendingAction === 'save' ? 'Creating...' : 'Create' }}
619
- </template>
620
- <template v-else>
621
- {{ pendingAction === 'save' ? 'Saving...' : 'Save Changes' }}
622
- </template>
621
+ {{ isCreateMode ? 'Create' : 'Save Changes' }}
623
622
  </DButton>
624
623
  </div>
625
624
  </div>
@@ -207,6 +207,17 @@ export interface FieldDefinition {
207
207
  */
208
208
  labelCols?: LabelCols;
209
209
 
210
+ /**
211
+ * Skip rendering the field's own label. In horizontal layout no label
212
+ * column is reserved either, so the control spans the full width. Useful
213
+ * for `switch` (and `checkbox`) fields, which render their own label
214
+ * inside the control — the outer row label would otherwise duplicate it,
215
+ * and the self-label then lines up with sibling row labels. Also used
216
+ * internally by `DXRepeater`'s `table` layout, where a column header
217
+ * already names the field.
218
+ */
219
+ hideLabel?: boolean;
220
+
210
221
  /**
211
222
  * Component rendered for `type: "component"` fields. Receives
212
223
  * `modelValue`, `field`, `model` props and emits `update:modelValue`.