@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
|
@@ -11,13 +11,68 @@ interface Props {
|
|
|
11
11
|
* bootstrap-vue-next 0.45 removed the no-op `'md'` value from `Size`.
|
|
12
12
|
*/
|
|
13
13
|
size?: Size;
|
|
14
|
+
/**
|
|
15
|
+
* Disable the button. Combined with `loading` — either one disables it.
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Show an in-flight state: the button is disabled immediately and, after
|
|
20
|
+
* `spinnerDelay`, a trailing spinner appears (and the label swaps to
|
|
21
|
+
* `loadingText` if given).
|
|
22
|
+
*
|
|
23
|
+
* Diverges from bvn: `BButton` has a native `loading`/`loadingText` that
|
|
24
|
+
* shows its spinner immediately. We intercept both and render our own
|
|
25
|
+
* anti-flash spinner instead, so bvn's native loading never fires. See
|
|
26
|
+
* DIVERGENCES.md.
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
loading?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Label shown in place of the default slot while the spinner is visible.
|
|
32
|
+
* Omit to keep the original label alongside the spinner. (See `loading` re:
|
|
33
|
+
* the bvn divergence.)
|
|
34
|
+
*/
|
|
35
|
+
loadingText?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Leading Bootstrap Icons glyph name, rendered as `<i class="bi bi-{icon}">`.
|
|
38
|
+
* e.g. `icon="save"`. Hidden while the loading spinner is visible.
|
|
39
|
+
*
|
|
40
|
+
* Diverges from bvn: `BButton`'s native `icon` is a `boolean` (icon-button
|
|
41
|
+
* styling mode). We redefine it as a glyph-name `string`, so bvn's boolean
|
|
42
|
+
* icon mode is unreachable through `DButton`. See DIVERGENCES.md.
|
|
43
|
+
*/
|
|
44
|
+
icon?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Full-width button (BS5 `w-100` idiom, replacing the dropped `.btn-block`).
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
block?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Anti-flash: how long (ms) `loading` must stay true before the spinner is
|
|
52
|
+
* shown, so fast actions never flicker one in.
|
|
53
|
+
* @default 500
|
|
54
|
+
*/
|
|
55
|
+
spinnerDelay?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Anti-flash: minimum time (ms) the spinner stays visible once shown, so a
|
|
58
|
+
* loading state that clears quickly doesn't strobe it away.
|
|
59
|
+
* @default 100
|
|
60
|
+
*/
|
|
61
|
+
minSpinnerTime?: number;
|
|
14
62
|
}
|
|
15
|
-
declare var
|
|
63
|
+
declare var __VLS_6: {}, __VLS_12: string, __VLS_13: any;
|
|
16
64
|
type __VLS_Slots = {} & {
|
|
17
|
-
[K in NonNullable<typeof
|
|
65
|
+
[K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
|
|
66
|
+
} & {
|
|
67
|
+
default?: (props: typeof __VLS_6) => any;
|
|
18
68
|
};
|
|
19
69
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
20
70
|
variant: ButtonVariant | LinkVariant | null;
|
|
71
|
+
disabled: boolean;
|
|
72
|
+
loading: boolean;
|
|
73
|
+
block: boolean;
|
|
74
|
+
spinnerDelay: number;
|
|
75
|
+
minSpinnerTime: number;
|
|
21
76
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
77
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
23
78
|
export default _default;
|
|
@@ -25,10 +25,14 @@ interface Props {
|
|
|
25
25
|
/** Label column width for horizontal layout (mirrors BFormGroup). */
|
|
26
26
|
labelCols?: LabelCols;
|
|
27
27
|
/**
|
|
28
|
-
* Skip rendering the field's own label
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
28
|
+
* Skip rendering the field's own (outer) label. Applies to the standard
|
|
29
|
+
* labelled-field branch and to the checkbox/switch/repeater branches. In
|
|
30
|
+
* horizontal layout no label column is reserved either, so the control
|
|
31
|
+
* spans the full width (a switch/checkbox self-label then lines up with
|
|
32
|
+
* sibling row labels). Used by DXRepeater's `table` layout (a column
|
|
33
|
+
* header already names the field) and by consumers hiding the redundant
|
|
34
|
+
* row label on a switch/checkbox, which render their own label inside the
|
|
35
|
+
* control (#78).
|
|
32
36
|
*/
|
|
33
37
|
hideLabel?: boolean;
|
|
34
38
|
}
|