@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.
- package/dist/components/base/DButton.vue.d.ts +57 -2
- package/dist/components/extended/DXField.vue.d.ts +8 -4
- package/dist/dashboard-for-laravel.js +3190 -3106
- package/dist/dashboard-for-laravel.js.map +1 -1
- package/dist/dashboard-for-laravel.umd.cjs +6 -6
- package/dist/dashboard-for-laravel.umd.cjs.map +1 -1
- package/dist/style.css +5 -1
- package/dist/types/index.d.ts +10 -0
- package/docs/public/api-reference.json +172 -4
- package/docs/public/docs-map.md +1 -1
- package/package.json +2 -1
- package/resources/css/theme.scss +17 -0
- package/resources/js/components/base/DButton.vue +170 -6
- package/resources/js/components/extended/DXField.vue +32 -11
- package/resources/js/components/extended/DXForm.vue +12 -8
- package/resources/js/components/extended/DXTable.vue +6 -7
- package/resources/js/types/index.ts +11 -0
|
@@ -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
|
-
|
|
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
|
-
|
|
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`.
|