@omnitend/dashboard-for-laravel 0.37.0 → 0.39.0
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/extended/DXSwitch.vue.d.ts +8 -0
- package/dist/dashboard-for-laravel.js +4 -3
- 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 +2 -2
- package/docs/public/api-reference.json +8 -2
- package/docs/public/docs-map.md +1 -1
- package/package.json +1 -1
- package/resources/css/theme.scss +20 -1
- package/resources/js/components/extended/DXSwitch.vue +21 -1
|
@@ -15,6 +15,14 @@ interface Props {
|
|
|
15
15
|
* shouldn't imply good/bad — it uses the brand primary on / grey off (#158).
|
|
16
16
|
*/
|
|
17
17
|
onVariant?: "success" | "neutral";
|
|
18
|
+
/**
|
|
19
|
+
* `"sm"` renders a compact box (a few px shorter than the default, which
|
|
20
|
+
* matches the input height) for dense rows that repeat the switch per item (a
|
|
21
|
+
* per-line visibility toggle in a modal). Omit for the standard size, which
|
|
22
|
+
* lines the switch up with the `.form-control`
|
|
23
|
+
* height so a switch lines up with inputs beside it.
|
|
24
|
+
*/
|
|
25
|
+
size?: "sm";
|
|
18
26
|
}
|
|
19
27
|
declare var __VLS_4: {
|
|
20
28
|
on: boolean;
|
|
@@ -30404,7 +30404,8 @@ const ck = { class: "sidebar-header p-3" }, fk = { class: "d-flex align-items-ce
|
|
|
30404
30404
|
label: {},
|
|
30405
30405
|
textWhenTrue: {},
|
|
30406
30406
|
textWhenFalse: {},
|
|
30407
|
-
onVariant: { default: "success" }
|
|
30407
|
+
onVariant: { default: "success" },
|
|
30408
|
+
size: {}
|
|
30408
30409
|
},
|
|
30409
30410
|
emits: ["update:modelValue"],
|
|
30410
30411
|
setup(e, { emit: t }) {
|
|
@@ -30413,7 +30414,7 @@ const ck = { class: "sidebar-header p-3" }, fk = { class: "d-flex align-items-ce
|
|
|
30413
30414
|
set: (i) => l("update:modelValue", i)
|
|
30414
30415
|
});
|
|
30415
30416
|
return (i, u) => (b(), L("div", {
|
|
30416
|
-
class: ce(["dx-switch", [`dx-switch--${e.onVariant}`, { "dx-switch--on": o.value }]])
|
|
30417
|
+
class: ce(["dx-switch", [`dx-switch--${e.onVariant}`, { "dx-switch--on": o.value, "dx-switch--sm": e.size === "sm" }]])
|
|
30417
30418
|
}, [
|
|
30418
30419
|
de(br, K({
|
|
30419
30420
|
modelValue: s.value,
|
|
@@ -30430,7 +30431,7 @@ const ck = { class: "sidebar-header p-3" }, fk = { class: "d-flex align-items-ce
|
|
|
30430
30431
|
}, 16, ["modelValue", "class"])
|
|
30431
30432
|
], 2));
|
|
30432
30433
|
}
|
|
30433
|
-
}), Id = /* @__PURE__ */ zt(jk, [["__scopeId", "data-v-
|
|
30434
|
+
}), Id = /* @__PURE__ */ zt(jk, [["__scopeId", "data-v-d9d57d95"]]), Ki = /* @__PURE__ */ M({
|
|
30434
30435
|
inheritAttrs: !1,
|
|
30435
30436
|
__name: "DInputGroup",
|
|
30436
30437
|
setup(e) {
|