@cfasim-ui/components 0.6.4 → 0.7.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/MultiSelect/MultiSelect.d.ts +4 -6
- package/dist/NumberInput/NumberInput.d.ts +4 -5
- package/dist/{ParamEditorImpl-BD3kPsrQ.js → ParamEditorImpl-D0xZTyAN.js} +11 -11
- package/dist/SelectBox/SelectBox.d.ts +4 -5
- package/dist/SelectBox-CByXZfaC.js +569 -0
- package/dist/TextInput/TextInput.d.ts +4 -5
- package/dist/ToggleGroup/ToggleGroup.d.ts +4 -6
- package/dist/_internal/FieldLabel.d.ts +10 -0
- package/dist/_internal/field.d.ts +22 -0
- package/dist/index.css +1 -1
- package/dist/index.js +391 -732
- package/package.json +2 -2
- package/dist/SelectBox-Bg7Qhmy7.js +0 -219
|
@@ -1,15 +1,13 @@
|
|
|
1
|
+
import { FieldProps } from '../_internal/field';
|
|
1
2
|
export interface MultiSelectOption {
|
|
2
3
|
value: string;
|
|
3
4
|
label: string;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
label?: string;
|
|
7
|
-
hideLabel?: boolean;
|
|
8
|
-
ariaLabel?: string;
|
|
6
|
+
interface Props extends FieldProps {
|
|
9
7
|
options: MultiSelectOption[];
|
|
10
8
|
placeholder?: string;
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
}
|
|
10
|
+
type __VLS_Props = Props;
|
|
13
11
|
type __VLS_PublicProps = {
|
|
14
12
|
modelValue?: string[];
|
|
15
13
|
} & __VLS_Props;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { NumberFormat } from '@cfasim-ui/shared';
|
|
2
|
+
import { FieldProps } from '../_internal/field';
|
|
2
3
|
export type NumberRange = [number, number];
|
|
3
|
-
|
|
4
|
-
label?: string;
|
|
5
|
-
hideLabel?: boolean;
|
|
4
|
+
interface Props extends FieldProps {
|
|
6
5
|
placeholder?: string;
|
|
7
6
|
step?: number;
|
|
8
7
|
min?: number;
|
|
9
8
|
max?: number;
|
|
10
|
-
hint?: string;
|
|
11
9
|
percent?: boolean;
|
|
12
10
|
slider?: boolean;
|
|
13
11
|
live?: boolean;
|
|
@@ -18,7 +16,8 @@ type __VLS_Props = {
|
|
|
18
16
|
/** @deprecated Use `format` instead. Still honored for slider labels
|
|
19
17
|
* when `format` is unset, but will be removed in a future release. */
|
|
20
18
|
sliderDisplay?: (value: number) => string;
|
|
21
|
-
}
|
|
19
|
+
}
|
|
20
|
+
type __VLS_Props = Props;
|
|
22
21
|
type __VLS_PublicProps = {
|
|
23
22
|
modelValue?: number;
|
|
24
23
|
"range"?: NumberRange;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e, l as t, t as n, u as r } from "./SelectBox-CByXZfaC.js";
|
|
2
2
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, h as f, inject as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, onUnmounted as _, openBlock as v, ref as y, shallowRef as b, toDisplayString as x, toRaw as S, unref as ee, useTemplateRef as te, watch as ne, withCtx as re } from "vue";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@marijn+find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.js
|
|
4
4
|
var C = [], ie = [];
|
|
@@ -20102,7 +20102,7 @@ function Sw(e, { maxDepth: t = 1e3, numbersAsFloat: n = !1 } = {}) {
|
|
|
20102
20102
|
var Cw = { class: "param-editor-toolbar" }, ww = { class: "param-editor-actions" }, Tw = {
|
|
20103
20103
|
class: "param-editor-error-region",
|
|
20104
20104
|
role: "status"
|
|
20105
|
-
}, Ew = { class: "param-editor-shortcut-hint" }, Dw = /* @__PURE__ */
|
|
20105
|
+
}, Ew = { class: "param-editor-shortcut-hint" }, Dw = /* @__PURE__ */ r(/* @__PURE__ */ d({
|
|
20106
20106
|
__name: "ParamEditorImpl",
|
|
20107
20107
|
props: {
|
|
20108
20108
|
value: {},
|
|
@@ -20112,8 +20112,8 @@ var Cw = { class: "param-editor-toolbar" }, ww = { class: "param-editor-actions"
|
|
|
20112
20112
|
filename: {}
|
|
20113
20113
|
},
|
|
20114
20114
|
emits: ["apply"],
|
|
20115
|
-
setup(
|
|
20116
|
-
let f =
|
|
20115
|
+
setup(r, { emit: d }) {
|
|
20116
|
+
let f = r, p = d, h = [
|
|
20117
20117
|
{
|
|
20118
20118
|
value: "json",
|
|
20119
20119
|
label: "JSON"
|
|
@@ -20222,28 +20222,28 @@ var Cw = { class: "param-editor-toolbar" }, ww = { class: "param-editor-actions"
|
|
|
20222
20222
|
class: "param-editor"
|
|
20223
20223
|
}, [
|
|
20224
20224
|
c("div", Cw, [
|
|
20225
|
-
u(
|
|
20225
|
+
u(n, {
|
|
20226
20226
|
"model-value": C.value,
|
|
20227
20227
|
"aria-label": "Format",
|
|
20228
20228
|
options: h,
|
|
20229
20229
|
"onUpdate:modelValue": d[0] ||= (e) => e && se(e)
|
|
20230
20230
|
}, null, 8, ["model-value"]),
|
|
20231
20231
|
c("div", ww, [
|
|
20232
|
-
u(
|
|
20232
|
+
u(e, {
|
|
20233
20233
|
variant: "secondary",
|
|
20234
20234
|
onClick: he
|
|
20235
20235
|
}, {
|
|
20236
20236
|
default: re(() => [...d[2] ||= [l("Import", -1)]]),
|
|
20237
20237
|
_: 1
|
|
20238
20238
|
}),
|
|
20239
|
-
u(
|
|
20239
|
+
u(e, {
|
|
20240
20240
|
variant: "secondary",
|
|
20241
20241
|
onClick: T
|
|
20242
20242
|
}, {
|
|
20243
20243
|
default: re(() => [...d[3] ||= [l("Export", -1)]]),
|
|
20244
20244
|
_: 1
|
|
20245
20245
|
}),
|
|
20246
|
-
u(
|
|
20246
|
+
u(e, { onClick: ce }, {
|
|
20247
20247
|
default: re(() => [...d[4] ||= [l("Apply", -1)]]),
|
|
20248
20248
|
_: 1
|
|
20249
20249
|
})
|
|
@@ -20264,8 +20264,8 @@ var Cw = { class: "param-editor-toolbar" }, ww = { class: "param-editor-actions"
|
|
|
20264
20264
|
"onUpdate:modelValue": d[1] ||= (e) => ie.value = e,
|
|
20265
20265
|
extensions: fe.value,
|
|
20266
20266
|
style: m({
|
|
20267
|
-
height:
|
|
20268
|
-
fontSize:
|
|
20267
|
+
height: r.height,
|
|
20268
|
+
fontSize: r.fontSize
|
|
20269
20269
|
}),
|
|
20270
20270
|
"indent-with-tab": !1,
|
|
20271
20271
|
"tab-size": 2,
|
|
@@ -20276,7 +20276,7 @@ var Cw = { class: "param-editor-toolbar" }, ww = { class: "param-editor-actions"
|
|
|
20276
20276
|
"extensions",
|
|
20277
20277
|
"style"
|
|
20278
20278
|
]),
|
|
20279
|
-
c("div", Tw, [w.value ? (v(), a(
|
|
20279
|
+
c("div", Tw, [w.value ? (v(), a(t, {
|
|
20280
20280
|
key: 0,
|
|
20281
20281
|
variant: "error",
|
|
20282
20282
|
class: "param-editor-error"
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
+
import { FieldProps } from '../_internal/field';
|
|
1
2
|
export interface SelectOption {
|
|
2
3
|
value: string;
|
|
3
4
|
label: string;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
label?: string;
|
|
7
|
-
hideLabel?: boolean;
|
|
8
|
-
ariaLabel?: string;
|
|
6
|
+
interface Props extends FieldProps {
|
|
9
7
|
options: SelectOption[];
|
|
10
8
|
placeholder?: string;
|
|
11
9
|
/** Turn the field into a filterable single-select autocomplete (combobox). */
|
|
12
10
|
autocomplete?: boolean;
|
|
13
|
-
}
|
|
11
|
+
}
|
|
12
|
+
type __VLS_Props = Props;
|
|
14
13
|
type __VLS_PublicProps = {
|
|
15
14
|
modelValue?: string;
|
|
16
15
|
} & __VLS_Props;
|