@omnitend/dashboard-for-laravel 0.47.3 → 0.47.5
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/DInputGroup.vue.d.ts +18 -1
- package/dist/dashboard-for-laravel.js +312 -307
- package/dist/dashboard-for-laravel.js.map +1 -1
- package/dist/dashboard-for-laravel.umd.cjs +1 -1
- package/dist/dashboard-for-laravel.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/docs/public/api-reference.json +12 -4
- package/docs/public/docs-map.md +1 -1
- package/package.json +7 -7
- package/resources/css/theme.scss +6 -1
- package/resources/js/components/base/DInputGroup.vue +39 -1
- package/resources/js/components/extended/DXForm.vue +18 -10
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generated": "2026-10-
|
|
2
|
+
"generated": "2026-10-24T05:02:12.083Z",
|
|
3
3
|
"package": {
|
|
4
4
|
"name": "@omnitend/dashboard-for-laravel",
|
|
5
|
-
"version": "0.47.
|
|
5
|
+
"version": "0.47.5"
|
|
6
6
|
},
|
|
7
7
|
"components": {
|
|
8
8
|
"base": [
|
|
@@ -866,7 +866,15 @@
|
|
|
866
866
|
"category": "base",
|
|
867
867
|
"filePath": "resources/js/components/base/DInputGroup.vue",
|
|
868
868
|
"description": "Type-safe wrapper around Bootstrap Vue Next BInputGroup component. Easily extend form controls by adding text, buttons, or button groups.",
|
|
869
|
-
"props": [
|
|
869
|
+
"props": [
|
|
870
|
+
{
|
|
871
|
+
"name": "wrap",
|
|
872
|
+
"type": "union",
|
|
873
|
+
"required": false,
|
|
874
|
+
"default": "\"narrow\"",
|
|
875
|
+
"description": "How a group with two or more controls behaves below md (768px).\n\n- `'narrow'` wraps it: a leading text label takes its own row and the\n controls sit beneath it as separate controls.\n- `'never'` keeps it one joined control at every width, for groups whose\n text is an affix or part of a sentence rather than a label. Renders the\n `dx-input-group--joined` class.\n\nA group with one control never wraps either way."
|
|
876
|
+
}
|
|
877
|
+
],
|
|
870
878
|
"events": [],
|
|
871
879
|
"slots": [
|
|
872
880
|
{
|
|
@@ -2668,7 +2676,7 @@
|
|
|
2668
2676
|
"slots": [
|
|
2669
2677
|
{
|
|
2670
2678
|
"name": "`tab-content(${tab.key})`",
|
|
2671
|
-
"description": "Replaces the entire body of a tab, keyed by tab (slot name `tab-content(<tabKey>)`).",
|
|
2679
|
+
"description": "Replaces the entire body of a tab, keyed by tab (slot name `tab-content(<tabKey>)`). Without a card (`:card-tabs=\"false\"`) the body is spaced 1rem below the tab bar, as a field tab's is; in card mode the card's own padding is the only spacing.",
|
|
2672
2680
|
"bindings": [
|
|
2673
2681
|
{
|
|
2674
2682
|
"name": "name",
|
package/docs/public/docs-map.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Documentation Map
|
|
2
2
|
|
|
3
3
|
> Auto-generated hierarchical overview of all documentation
|
|
4
|
-
> Last updated: 2026-10-
|
|
4
|
+
> Last updated: 2026-10-24T05:02:12.151Z
|
|
5
5
|
|
|
6
6
|
This file provides a complete map of all available documentation for AI agents and developers.
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnitend/dashboard-for-laravel",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.5",
|
|
4
4
|
"description": "Vue 3 dashboard components for Laravel with Bootstrap Vue Next",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/dashboard-for-laravel.umd.cjs",
|
|
@@ -78,19 +78,19 @@
|
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@astrojs/markdown-remark": "^7.2.0",
|
|
81
|
-
"@astrojs/mdx": "^
|
|
81
|
+
"@astrojs/mdx": "^8.0.3",
|
|
82
82
|
"@astrojs/sitemap": "^3.7.3",
|
|
83
|
-
"@astrojs/vue": "^7.0.
|
|
83
|
+
"@astrojs/vue": "^7.0.3",
|
|
84
84
|
"@iconify-json/lucide": "^1.2.71",
|
|
85
85
|
"@iconify/json": "^2.2.397",
|
|
86
86
|
"@inertiajs/vue3": "^2.2.15",
|
|
87
87
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
88
88
|
"@types/pluralize": "^0.0.33",
|
|
89
89
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
90
|
-
"@vitest/browser": "^4.1.
|
|
91
|
-
"@vitest/browser-playwright": "^4.1.
|
|
90
|
+
"@vitest/browser": "^4.1.12",
|
|
91
|
+
"@vitest/browser-playwright": "^4.1.12",
|
|
92
92
|
"@vue/test-utils": "^2.4.6",
|
|
93
|
-
"astro": "7.
|
|
93
|
+
"astro": "7.3.8",
|
|
94
94
|
"bootstrap": "^5.3.8",
|
|
95
95
|
"bootstrap-icons": "^1.13.1",
|
|
96
96
|
"chart.js": "^4.5.1",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"unplugin-icons": "^22.5.0",
|
|
106
106
|
"unplugin-vue-components": "^30.0.0",
|
|
107
107
|
"vite": "^6.4.1",
|
|
108
|
-
"vitest": "^4.1.
|
|
108
|
+
"vitest": "^4.1.12",
|
|
109
109
|
"vitest-browser-vue": "^2.0.0",
|
|
110
110
|
"vue-chartjs": "^5.3.3",
|
|
111
111
|
"vue-docgen-api": "^4.79.2",
|
package/resources/css/theme.scss
CHANGED
|
@@ -818,12 +818,17 @@ $dx-display-only-row: '.dx-form--horizontal .row:has(> .col-form-label):not(:has
|
|
|
818
818
|
// group that would have fitted ("Sort [Name] [Asc]") also takes the wrapped
|
|
819
819
|
// layout below md; it then reads the same as its neighbours in a filter bar.
|
|
820
820
|
//
|
|
821
|
+
// CSS cannot tell a label from an affix either, so a "sentence" group whose
|
|
822
|
+
// text belongs to the controls ("Every [1] [days]", "£ [cost] ex. VAT per
|
|
823
|
+
// [unit]") opts out with `dx-input-group--joined` (DInputGroup's
|
|
824
|
+
// `wrap="never"`) and keeps the nowrap rule above at every width.
|
|
825
|
+
//
|
|
821
826
|
// No `!important`: each override below is Bootstrap's own joined-group
|
|
822
827
|
// selector (forms/_input-group.scss) or the theme's DFormFile one, gated on
|
|
823
828
|
// `$dx-wrapping-input-group`. The gate adds specificity to the exact selector
|
|
824
829
|
// it undoes, so it wins wherever that rule applies and touches nothing else.
|
|
825
830
|
$dx-input-group-control: ':not(.input-group-text, .btn, .dropdown-menu, .dropdown-toggle, [type="hidden"], .valid-feedback, .invalid-feedback, .valid-tooltip, .invalid-tooltip)';
|
|
826
|
-
$dx-wrapping-input-group: '.input-group:has(> #{$dx-input-group-control} ~ #{$dx-input-group-control})';
|
|
831
|
+
$dx-wrapping-input-group: '.input-group:not(.dx-input-group--joined):has(> #{$dx-input-group-control} ~ #{$dx-input-group-control})';
|
|
827
832
|
$dx-input-group-validation-messages: '';
|
|
828
833
|
@each $state in map-keys($form-validation-states) {
|
|
829
834
|
$dx-input-group-validation-messages: $dx-input-group-validation-messages + ':not(.#{$state}-tooltip):not(.#{$state}-feedback)';
|
|
@@ -4,15 +4,53 @@
|
|
|
4
4
|
* Easily extend form controls by adding text, buttons, or button groups.
|
|
5
5
|
*/
|
|
6
6
|
<script setup lang="ts">
|
|
7
|
+
/**
|
|
8
|
+
* Adds `wrap`: below md, a group with two or more controls wraps (its leading
|
|
9
|
+
* text takes its own row as a label). `wrap="never"` keeps a "sentence" group,
|
|
10
|
+
* such as `Every [1] [days]` or `£ [cost] ex. VAT`, joined at every width by
|
|
11
|
+
* adding the `dx-input-group--joined` class, which plain `.input-group`
|
|
12
|
+
* markup can use directly.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```vue
|
|
16
|
+
* <DInputGroup prepend="Every" wrap="never">
|
|
17
|
+
* <DFormInput type="number" />
|
|
18
|
+
* <DFormSelect :options="units" />
|
|
19
|
+
* </DInputGroup>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
7
22
|
import { BInputGroup } from "bootstrap-vue-next";
|
|
8
23
|
|
|
24
|
+
interface Props {
|
|
25
|
+
/**
|
|
26
|
+
* How a group with two or more controls behaves below md (768px).
|
|
27
|
+
*
|
|
28
|
+
* - `'narrow'` wraps it: a leading text label takes its own row and the
|
|
29
|
+
* controls sit beneath it as separate controls.
|
|
30
|
+
* - `'never'` keeps it one joined control at every width, for groups whose
|
|
31
|
+
* text is an affix or part of a sentence rather than a label. Renders the
|
|
32
|
+
* `dx-input-group--joined` class.
|
|
33
|
+
*
|
|
34
|
+
* A group with one control never wraps either way.
|
|
35
|
+
* @default 'narrow'
|
|
36
|
+
*/
|
|
37
|
+
wrap?: "narrow" | "never";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
withDefaults(defineProps<Props>(), {
|
|
41
|
+
wrap: "narrow",
|
|
42
|
+
});
|
|
43
|
+
|
|
9
44
|
defineOptions({
|
|
10
45
|
inheritAttrs: false,
|
|
11
46
|
});
|
|
12
47
|
</script>
|
|
13
48
|
|
|
14
49
|
<template>
|
|
15
|
-
<BInputGroup
|
|
50
|
+
<BInputGroup
|
|
51
|
+
v-bind="$attrs"
|
|
52
|
+
:class="{ 'dx-input-group--joined': wrap === 'never' }"
|
|
53
|
+
>
|
|
16
54
|
<!-- Dynamically pass through all named slots with their props -->
|
|
17
55
|
<template v-for="(_, name) in $slots" :key="name" #[name]="slotProps">
|
|
18
56
|
<slot :name="name" v-bind="slotProps" />
|
|
@@ -69,17 +69,25 @@
|
|
|
69
69
|
:titleLinkAttrs="tabButtonAttrs(tab.key)"
|
|
70
70
|
:onClick="tabControlsFor(tab.key).onClick"
|
|
71
71
|
>
|
|
72
|
-
<!--
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<slot
|
|
72
|
+
<!-- A custom body gets the same top spacing as a field
|
|
73
|
+
body (`pt-3`) when there is no card. In card mode
|
|
74
|
+
`.card-body` already pads the pane, so it gets
|
|
75
|
+
nothing extra. -->
|
|
76
|
+
<div
|
|
78
77
|
v-if="$slots[`tab-content(${tab.key})`]"
|
|
79
|
-
:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
:class="{ 'pt-3': !tabsInCard }"
|
|
79
|
+
>
|
|
80
|
+
<!--
|
|
81
|
+
@slot Replaces the entire body of a tab, keyed by tab (slot name `tab-content(<tabKey>)`). Without a card (`:card-tabs="false"`) the body is spaced 1rem below the tab bar, as a field tab's is; in card mode the card's own padding is the only spacing.
|
|
82
|
+
@binding {FormTab} tab The tab definition being rendered.
|
|
83
|
+
@binding {object} model Live form data merged with `context`, for predicates.
|
|
84
|
+
-->
|
|
85
|
+
<slot
|
|
86
|
+
:name="`tab-content(${tab.key})`"
|
|
87
|
+
:tab="tab"
|
|
88
|
+
:model="model"
|
|
89
|
+
/>
|
|
90
|
+
</div>
|
|
83
91
|
|
|
84
92
|
<div v-else class="pt-3">
|
|
85
93
|
<!--
|