@getcortexlabs/mavis-core 0.1.0-alpha.6 → 0.1.0-alpha.8
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/capabilities.d.ts +19 -6
- package/dist/capabilities.d.ts.map +1 -1
- package/dist/capabilities.js +19 -3
- package/dist/capabilities.js.map +1 -1
- package/dist/choice-motion.d.ts +14 -0
- package/dist/choice-motion.d.ts.map +1 -0
- package/dist/choice-motion.js +5 -0
- package/dist/choice-motion.js.map +1 -0
- package/dist/contracts.d.ts +42 -2
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +17 -0
- package/dist/contracts.js.map +1 -1
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.js +1 -0
- package/dist/dialog.js.map +1 -1
- package/dist/experimental-collections.d.ts +82 -0
- package/dist/experimental-collections.d.ts.map +1 -0
- package/dist/experimental-collections.js +8 -0
- package/dist/experimental-collections.js.map +1 -0
- package/dist/experimental-effects.d.ts +107 -0
- package/dist/experimental-effects.d.ts.map +1 -0
- package/dist/experimental-effects.js +24 -0
- package/dist/experimental-effects.js.map +1 -0
- package/dist/experimental-platforms.d.ts +94 -0
- package/dist/experimental-platforms.d.ts.map +1 -0
- package/dist/experimental-platforms.js +2 -0
- package/dist/experimental-platforms.js.map +1 -0
- package/dist/experimental-playback.d.ts +2 -2
- package/dist/experimental-playback.d.ts.map +1 -1
- package/dist/experimental-regions.d.ts +17 -2
- package/dist/experimental-regions.d.ts.map +1 -1
- package/dist/experimental-regions.js +91 -0
- package/dist/experimental-regions.js.map +1 -1
- package/dist/experimental-sensors.d.ts +42 -0
- package/dist/experimental-sensors.d.ts.map +1 -0
- package/dist/experimental-sensors.js +2 -0
- package/dist/experimental-sensors.js.map +1 -0
- package/dist/experimental-surfaces.d.ts +127 -0
- package/dist/experimental-surfaces.d.ts.map +1 -0
- package/dist/experimental-surfaces.js +2 -0
- package/dist/experimental-surfaces.js.map +1 -0
- package/dist/experimental.d.ts +37 -6
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +289 -5
- package/dist/experimental.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/multi-select.d.ts +4 -0
- package/dist/multi-select.d.ts.map +1 -0
- package/dist/multi-select.js +23 -0
- package/dist/multi-select.js.map +1 -0
- package/dist/number-input.d.ts +21 -0
- package/dist/number-input.d.ts.map +1 -0
- package/dist/number-input.js +63 -0
- package/dist/number-input.js.map +1 -0
- package/dist/vue/component-props.d.ts +309 -20
- package/dist/vue/component-props.d.ts.map +1 -1
- package/dist/vue/component-props.js +4 -0
- package/dist/vue/component-props.js.map +1 -1
- package/dist/vue/configurator-props.d.ts +256 -0
- package/dist/vue/configurator-props.d.ts.map +1 -0
- package/dist/vue/configurator-props.js +57 -0
- package/dist/vue/configurator-props.js.map +1 -0
- package/dist/vue/configurator.d.ts +403 -0
- package/dist/vue/configurator.d.ts.map +1 -0
- package/dist/vue/configurator.js +287 -0
- package/dist/vue/configurator.js.map +1 -0
- package/dist/vue/date-picker.d.ts +8 -8
- package/dist/vue/global-components.d.ts +14 -0
- package/dist/vue/global-components.d.ts.map +1 -1
- package/dist/vue/index.d.ts +3 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +3 -0
- package/dist/vue/index.js.map +1 -1
- package/dist/vue/loading-effect.d.ts +7 -0
- package/dist/vue/loading-effect.d.ts.map +1 -0
- package/dist/vue/loading-effect.js +32 -0
- package/dist/vue/loading-effect.js.map +1 -0
- package/dist/vue/props.d.ts +123 -43
- package/dist/vue/props.d.ts.map +1 -1
- package/dist/vue/props.js +7 -0
- package/dist/vue/props.js.map +1 -1
- package/dist/vue/workflows.d.ts +1 -1
- package/package.json +1 -1
- package/src/capabilities.ts +19 -3
- package/src/choice-motion.ts +12 -0
- package/src/contracts.ts +17 -0
- package/src/dialog.ts +3 -1
- package/src/experimental-collections.ts +87 -0
- package/src/experimental-effects.ts +146 -0
- package/src/experimental-platforms.ts +96 -0
- package/src/experimental-playback.ts +1 -1
- package/src/experimental-regions.ts +136 -2
- package/src/experimental-sensors.ts +50 -0
- package/src/experimental-surfaces.ts +124 -0
- package/src/experimental.ts +367 -20
- package/src/index.ts +4 -0
- package/src/multi-select.ts +30 -0
- package/src/number-input.ts +80 -0
- package/src/vue/component-props.ts +4 -0
- package/src/vue/configurator-props.ts +61 -0
- package/src/vue/configurator.ts +350 -0
- package/src/vue/global-components.ts +16 -0
- package/src/vue/index.ts +4 -0
- package/src/vue/loading-effect.ts +44 -0
- package/src/vue/props.ts +8 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAoBrE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE1E,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC3D,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,EA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CAAA;AAEjG,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAG9D,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAEzF,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAGxF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAiB,MAAM,WAAW,CAAA;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAEvD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE/E,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAQrE,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGrF,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAE9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ChoiceOption, type ChoiceValue } from './choice.js';
|
|
2
|
+
export declare function validateMultiSelection(options: readonly ChoiceOption[], values: readonly ChoiceValue[], max?: number): void;
|
|
3
|
+
export declare function toggleMultiSelection(options: readonly ChoiceOption[], values: readonly ChoiceValue[], value: ChoiceValue, max?: number): ChoiceValue[] | null;
|
|
4
|
+
//# sourceMappingURL=multi-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-select.d.ts","sourceRoot":"","sources":["../src/multi-select.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAE7F,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,MAAM,EAAE,SAAS,WAAW,EAAE,EAC9B,GAAG,CAAC,EAAE,MAAM,QAWb;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,MAAM,EAAE,SAAS,WAAW,EAAE,EAC9B,KAAK,EAAE,WAAW,EAClB,GAAG,CAAC,EAAE,MAAM,wBAOb"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { choiceKey, validateChoices } from './choice.js';
|
|
2
|
+
export function validateMultiSelection(options, values, max) {
|
|
3
|
+
validateChoices(options, null);
|
|
4
|
+
if (max !== undefined && (!Number.isInteger(max) || max < 1))
|
|
5
|
+
throw new RangeError('maxSelected must be a positive integer.');
|
|
6
|
+
const keys = values.map(choiceKey);
|
|
7
|
+
if (new Set(keys).size !== keys.length)
|
|
8
|
+
throw new RangeError('Selected values must be unique.');
|
|
9
|
+
if (values.some((value) => !options.some((option) => option.value === value)))
|
|
10
|
+
throw new RangeError('Each selected value needs a matching option.');
|
|
11
|
+
if (max !== undefined && values.length > max)
|
|
12
|
+
throw new RangeError('Selection exceeds maxSelected.');
|
|
13
|
+
}
|
|
14
|
+
export function toggleMultiSelection(options, values, value, max) {
|
|
15
|
+
validateMultiSelection(options, values, max);
|
|
16
|
+
const option = options.find((item) => item.value === value);
|
|
17
|
+
if (!option || option.disabled)
|
|
18
|
+
return null;
|
|
19
|
+
if (values.includes(value))
|
|
20
|
+
return values.filter((item) => item !== value);
|
|
21
|
+
return max !== undefined && values.length >= max ? null : [...values, value];
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=multi-select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-select.js","sourceRoot":"","sources":["../src/multi-select.ts"],"names":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I,CAAA;IAC3C,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,KAAK,CAAC,CAAA;IAC1E,OAAO,GAAG,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,CAAA;AAC9E,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type NumberLocale = 'en-US' | 'pt-BR';
|
|
2
|
+
export type NumberDraft = {
|
|
3
|
+
status: 'valid';
|
|
4
|
+
value: number;
|
|
5
|
+
} | {
|
|
6
|
+
status: 'empty';
|
|
7
|
+
value: null;
|
|
8
|
+
} | {
|
|
9
|
+
status: 'incomplete' | 'invalid' | 'range';
|
|
10
|
+
value: null;
|
|
11
|
+
};
|
|
12
|
+
export interface NumberConstraints {
|
|
13
|
+
min?: number;
|
|
14
|
+
max?: number;
|
|
15
|
+
step: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function validateNumberConstraints({ min, max, step }: NumberConstraints): void;
|
|
18
|
+
export declare function formatNumber(value: number | null, locale: NumberLocale): string;
|
|
19
|
+
export declare function parseNumberDraft(text: string, locale: NumberLocale, bounds: NumberConstraints): NumberDraft;
|
|
20
|
+
export declare function stepNumber(value: number | null, direction: -1 | 1, bounds: NumberConstraints): number;
|
|
21
|
+
//# sourceMappingURL=number-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../src/number-input.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,CAAA;AAC5C,MAAM,MAAM,WAAW,GACnB;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,IAAI,CAAA;CAAE,GAChC;IAAE,MAAM,EAAE,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;IAAC,KAAK,EAAE,IAAI,CAAA;CAAE,CAAA;AAE/D,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,yBAAyB,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,iBAAiB,QAM9E;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,YAAY,UAmBtE;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,iBAAiB,GACxB,WAAW,CAeb;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,iBAAiB,UAiB5F"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export function validateNumberConstraints({ min, max, step }) {
|
|
2
|
+
if (!Number.isFinite(step) || step <= 0)
|
|
3
|
+
throw new RangeError('step must be finite and positive.');
|
|
4
|
+
if ([min, max].some((value) => value !== undefined && !Number.isFinite(value)))
|
|
5
|
+
throw new RangeError('Numeric bounds must be finite.');
|
|
6
|
+
if (min !== undefined && max !== undefined && min > max)
|
|
7
|
+
throw new RangeError('min must not exceed max.');
|
|
8
|
+
}
|
|
9
|
+
export function formatNumber(value, locale) {
|
|
10
|
+
if (value === null)
|
|
11
|
+
return '';
|
|
12
|
+
if (!Number.isFinite(value))
|
|
13
|
+
throw new RangeError('NumberInput requires a finite number or null.');
|
|
14
|
+
const [coefficient, exponent] = String(value).split('e');
|
|
15
|
+
let text = coefficient;
|
|
16
|
+
if (exponent) {
|
|
17
|
+
const negative = text.startsWith('-');
|
|
18
|
+
const [whole, fraction = ''] = text.replace('-', '').split('.');
|
|
19
|
+
const digits = whole + fraction;
|
|
20
|
+
const point = whole.length + Number(exponent);
|
|
21
|
+
text =
|
|
22
|
+
point <= 0
|
|
23
|
+
? `0.${'0'.repeat(-point)}${digits}`
|
|
24
|
+
: point >= digits.length
|
|
25
|
+
? digits + '0'.repeat(point - digits.length)
|
|
26
|
+
: `${digits.slice(0, point)}.${digits.slice(point)}`;
|
|
27
|
+
if (negative)
|
|
28
|
+
text = `-${text}`;
|
|
29
|
+
}
|
|
30
|
+
return locale === 'pt-BR' ? text.replace('.', ',') : text;
|
|
31
|
+
}
|
|
32
|
+
export function parseNumberDraft(text, locale, bounds) {
|
|
33
|
+
const value = text.trim();
|
|
34
|
+
if (!value)
|
|
35
|
+
return { status: 'empty', value: null };
|
|
36
|
+
const normalized = locale === 'pt-BR' ? value.replace(',', '.') : value;
|
|
37
|
+
if (/^[+-]?$/.test(normalized) || /^[+-]?(?:\d+)?\.$/.test(normalized))
|
|
38
|
+
return { status: 'incomplete', value: null };
|
|
39
|
+
if (!/^[+-]?(?:\d+(?:\.\d+)?|\.\d+)$/.test(normalized))
|
|
40
|
+
return { status: 'invalid', value: null };
|
|
41
|
+
const number = Number(normalized);
|
|
42
|
+
if (!Number.isFinite(number))
|
|
43
|
+
return { status: 'invalid', value: null };
|
|
44
|
+
if ((bounds.min !== undefined && number < bounds.min) ||
|
|
45
|
+
(bounds.max !== undefined && number > bounds.max))
|
|
46
|
+
return { status: 'range', value: null };
|
|
47
|
+
return { status: 'valid', value: number };
|
|
48
|
+
}
|
|
49
|
+
export function stepNumber(value, direction, bounds) {
|
|
50
|
+
validateNumberConstraints(bounds);
|
|
51
|
+
const base = value ?? Math.max(bounds.min ?? 0, Math.min(0, bounds.max ?? 0));
|
|
52
|
+
// Scale ordinary decimal steps only while the integer arithmetic remains exact.
|
|
53
|
+
// Large or very small values retain JavaScript number precision without rounding to 15 digits.
|
|
54
|
+
const decimals = (number) => formatNumber(number, 'en-US').split('.')[1]?.length ?? 0;
|
|
55
|
+
const factor = 10 ** Math.max(decimals(base), decimals(bounds.step));
|
|
56
|
+
const scaledBase = Math.round(base * factor), scaledStep = Math.round(bounds.step * factor);
|
|
57
|
+
const scaledNext = scaledBase + direction * scaledStep;
|
|
58
|
+
const next = [scaledBase, scaledStep, scaledNext].every(Number.isSafeInteger)
|
|
59
|
+
? scaledNext / factor
|
|
60
|
+
: base + direction * bounds.step;
|
|
61
|
+
return Math.max(bounds.min ?? -Infinity, Math.min(bounds.max ?? Infinity, Number.isFinite(next) ? next : base));
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=number-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-input.js","sourceRoot":"","sources":["../src/number-input.ts"],"names":[],"mappings":"AAYA,MAAM,UAAU,yBAAyB,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAqB;IAC7E,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC;QAAE,MAAM,IAAI,UAAU,CAAC,mCAAmC,CAAC,CAAA;IAClG,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC5E,MAAM,IAAI,UAAU,CAAC,gCAAgC,CAAC,CAAA;IACxD,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,GAAG,GAAG;QACrD,MAAM,IAAI,UAAU,CAAC,0BAA0B,CAAC,CAAA;AACpD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAoB,EAAE,MAAoB;IACrE,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,EAAE,CAAA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,CAAC"}
|
|
@@ -2,6 +2,257 @@ import type { ExtractPublicPropTypes } from '@vue/runtime-core';
|
|
|
2
2
|
import type { SheetName } from '../sheet.js';
|
|
3
3
|
/** Complete registry, kept separate from the primitives used to compose controls. */
|
|
4
4
|
export declare const componentProps: {
|
|
5
|
+
MNumberInput: {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: import("@vue/runtime-core").PropType<number | null>;
|
|
8
|
+
default: null;
|
|
9
|
+
};
|
|
10
|
+
draft: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
min: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
max: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
step: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
locale: {
|
|
27
|
+
type: import("@vue/runtime-core").PropType<import("../number-input.js").NumberLocale>;
|
|
28
|
+
default: string;
|
|
29
|
+
validator: (value: string) => boolean;
|
|
30
|
+
};
|
|
31
|
+
name: {
|
|
32
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
33
|
+
} & {
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
placeholder: {
|
|
37
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
38
|
+
} & {
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
incrementLabel: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
decrementLabel: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
id: {
|
|
50
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
51
|
+
} & {
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
label: {
|
|
55
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
56
|
+
} & {
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
width: {
|
|
60
|
+
type: import("@vue/runtime-core").PropType<import("../layout.js").Dimension>;
|
|
61
|
+
} & {
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
grow: {
|
|
65
|
+
type: import("@vue/runtime-core").PropType<number>;
|
|
66
|
+
} & {
|
|
67
|
+
default: number;
|
|
68
|
+
};
|
|
69
|
+
shrink: {
|
|
70
|
+
type: import("@vue/runtime-core").PropType<number>;
|
|
71
|
+
} & {
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
disabled: BooleanConstructor;
|
|
75
|
+
readonly: BooleanConstructor;
|
|
76
|
+
helperText: {
|
|
77
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
78
|
+
} & {
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
error: {
|
|
82
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
83
|
+
} & {
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
accessibilityHidden: {
|
|
87
|
+
type: import("@vue/runtime-core").PropType<boolean>;
|
|
88
|
+
} & {
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
MMultiSelect: {
|
|
93
|
+
modelValue: {
|
|
94
|
+
type: import("@vue/runtime-core").PropType<readonly import("../choice.js").ChoiceValue[]>;
|
|
95
|
+
default: () => never[];
|
|
96
|
+
};
|
|
97
|
+
options: {
|
|
98
|
+
type: import("@vue/runtime-core").PropType<readonly import("../choice.js").ChoiceOption[]>;
|
|
99
|
+
required: true;
|
|
100
|
+
};
|
|
101
|
+
maxSelected: {
|
|
102
|
+
type: NumberConstructor;
|
|
103
|
+
default: undefined;
|
|
104
|
+
};
|
|
105
|
+
placeholder: {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
searchLabel: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
closeLabel: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
emptyLabel: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
removeLabel: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
id: {
|
|
126
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
127
|
+
} & {
|
|
128
|
+
default: undefined;
|
|
129
|
+
};
|
|
130
|
+
label: {
|
|
131
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
132
|
+
} & {
|
|
133
|
+
required: true;
|
|
134
|
+
};
|
|
135
|
+
width: {
|
|
136
|
+
type: import("@vue/runtime-core").PropType<import("../layout.js").Dimension>;
|
|
137
|
+
} & {
|
|
138
|
+
default: undefined;
|
|
139
|
+
};
|
|
140
|
+
grow: {
|
|
141
|
+
type: import("@vue/runtime-core").PropType<number>;
|
|
142
|
+
} & {
|
|
143
|
+
default: number;
|
|
144
|
+
};
|
|
145
|
+
shrink: {
|
|
146
|
+
type: import("@vue/runtime-core").PropType<number>;
|
|
147
|
+
} & {
|
|
148
|
+
default: undefined;
|
|
149
|
+
};
|
|
150
|
+
disabled: BooleanConstructor;
|
|
151
|
+
readonly: BooleanConstructor;
|
|
152
|
+
helperText: {
|
|
153
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
154
|
+
} & {
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
error: {
|
|
158
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
159
|
+
} & {
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
accessibilityHidden: {
|
|
163
|
+
type: import("@vue/runtime-core").PropType<boolean>;
|
|
164
|
+
} & {
|
|
165
|
+
default: undefined;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
MImage: {
|
|
169
|
+
motionSurface: {
|
|
170
|
+
type: import("@vue/runtime-core").PropType<import("../experimental.js").MotionSurface>;
|
|
171
|
+
default: undefined;
|
|
172
|
+
};
|
|
173
|
+
src: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
required: true;
|
|
176
|
+
};
|
|
177
|
+
alt: {
|
|
178
|
+
type: StringConstructor;
|
|
179
|
+
required: true;
|
|
180
|
+
};
|
|
181
|
+
aspectRatio: {
|
|
182
|
+
type: NumberConstructor;
|
|
183
|
+
default: number;
|
|
184
|
+
};
|
|
185
|
+
fit: {
|
|
186
|
+
type: import("@vue/runtime-core").PropType<"cover" | "contain">;
|
|
187
|
+
default: string;
|
|
188
|
+
validator: (value: string) => boolean;
|
|
189
|
+
};
|
|
190
|
+
radius: {
|
|
191
|
+
default: string;
|
|
192
|
+
type: import("@vue/runtime-core").PropType<number | import("../index.js").Radius>;
|
|
193
|
+
};
|
|
194
|
+
loadingLabel: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
default: string;
|
|
197
|
+
};
|
|
198
|
+
errorLabel: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: string;
|
|
201
|
+
};
|
|
202
|
+
padding: {
|
|
203
|
+
type: import("@vue/runtime-core").PropType<import("../index.js").Spacing>;
|
|
204
|
+
} & {
|
|
205
|
+
default: undefined;
|
|
206
|
+
};
|
|
207
|
+
paddingX: {
|
|
208
|
+
type: import("@vue/runtime-core").PropType<import("../index.js").Spacing>;
|
|
209
|
+
} & {
|
|
210
|
+
default: undefined;
|
|
211
|
+
};
|
|
212
|
+
paddingY: {
|
|
213
|
+
type: import("@vue/runtime-core").PropType<import("../index.js").Spacing>;
|
|
214
|
+
} & {
|
|
215
|
+
default: undefined;
|
|
216
|
+
};
|
|
217
|
+
width: {
|
|
218
|
+
type: import("@vue/runtime-core").PropType<import("../layout.js").Dimension>;
|
|
219
|
+
} & {
|
|
220
|
+
default: undefined;
|
|
221
|
+
};
|
|
222
|
+
height: {
|
|
223
|
+
type: import("@vue/runtime-core").PropType<import("../layout.js").Dimension>;
|
|
224
|
+
} & {
|
|
225
|
+
default: undefined;
|
|
226
|
+
};
|
|
227
|
+
backgroundColor: {
|
|
228
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
229
|
+
};
|
|
230
|
+
grow: {
|
|
231
|
+
type: import("@vue/runtime-core").PropType<number>;
|
|
232
|
+
} & {
|
|
233
|
+
default: number;
|
|
234
|
+
};
|
|
235
|
+
shrink: {
|
|
236
|
+
type: import("@vue/runtime-core").PropType<number>;
|
|
237
|
+
} & {
|
|
238
|
+
default: undefined;
|
|
239
|
+
};
|
|
240
|
+
id: {
|
|
241
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
242
|
+
} & {
|
|
243
|
+
default: undefined;
|
|
244
|
+
};
|
|
245
|
+
accessibilityLabel: {
|
|
246
|
+
type: import("@vue/runtime-core").PropType<string>;
|
|
247
|
+
} & {
|
|
248
|
+
default: undefined;
|
|
249
|
+
};
|
|
250
|
+
accessibilityHidden: {
|
|
251
|
+
type: import("@vue/runtime-core").PropType<boolean>;
|
|
252
|
+
} & {
|
|
253
|
+
default: undefined;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
5
256
|
MDatePicker: {
|
|
6
257
|
draft: {
|
|
7
258
|
type: StringConstructor;
|
|
@@ -490,6 +741,10 @@ export declare const componentProps: {
|
|
|
490
741
|
} & {
|
|
491
742
|
default: undefined;
|
|
492
743
|
};
|
|
744
|
+
motionRegion: {
|
|
745
|
+
type: import("@vue/runtime-core").PropType<import("../experimental-regions.js").MotionRegion>;
|
|
746
|
+
default: undefined;
|
|
747
|
+
};
|
|
493
748
|
motionScroll: {
|
|
494
749
|
type: import("@vue/runtime-core").PropType<import("../experimental.js").MotionScrollSource>;
|
|
495
750
|
default: undefined;
|
|
@@ -497,9 +752,9 @@ export declare const componentProps: {
|
|
|
497
752
|
};
|
|
498
753
|
MRow: {
|
|
499
754
|
align: {
|
|
500
|
-
type: import("@vue/runtime-core").PropType<"
|
|
755
|
+
type: import("@vue/runtime-core").PropType<"center" | "start" | "end" | "stretch">;
|
|
501
756
|
} & {
|
|
502
|
-
default: "
|
|
757
|
+
default: "center" | "start" | "end" | "stretch";
|
|
503
758
|
};
|
|
504
759
|
gap: {
|
|
505
760
|
type: import("@vue/runtime-core").PropType<import("../index.js").Spacing>;
|
|
@@ -507,9 +762,9 @@ export declare const componentProps: {
|
|
|
507
762
|
default: undefined;
|
|
508
763
|
};
|
|
509
764
|
justify: {
|
|
510
|
-
type: import("@vue/runtime-core").PropType<"
|
|
765
|
+
type: import("@vue/runtime-core").PropType<"center" | "start" | "end" | "between" | "around">;
|
|
511
766
|
} & {
|
|
512
|
-
default: "
|
|
767
|
+
default: "center" | "start" | "end" | "between" | "around";
|
|
513
768
|
};
|
|
514
769
|
wrap: {
|
|
515
770
|
type: import("@vue/runtime-core").PropType<boolean>;
|
|
@@ -577,9 +832,9 @@ export declare const componentProps: {
|
|
|
577
832
|
};
|
|
578
833
|
MColumn: {
|
|
579
834
|
align: {
|
|
580
|
-
type: import("@vue/runtime-core").PropType<"
|
|
835
|
+
type: import("@vue/runtime-core").PropType<"center" | "start" | "end" | "stretch">;
|
|
581
836
|
} & {
|
|
582
|
-
default: "
|
|
837
|
+
default: "center" | "start" | "end" | "stretch";
|
|
583
838
|
};
|
|
584
839
|
gap: {
|
|
585
840
|
type: import("@vue/runtime-core").PropType<import("../index.js").Spacing>;
|
|
@@ -587,9 +842,9 @@ export declare const componentProps: {
|
|
|
587
842
|
default: undefined;
|
|
588
843
|
};
|
|
589
844
|
justify: {
|
|
590
|
-
type: import("@vue/runtime-core").PropType<"
|
|
845
|
+
type: import("@vue/runtime-core").PropType<"center" | "start" | "end" | "between" | "around">;
|
|
591
846
|
} & {
|
|
592
|
-
default: "
|
|
847
|
+
default: "center" | "start" | "end" | "between" | "around";
|
|
593
848
|
};
|
|
594
849
|
wrap: {
|
|
595
850
|
type: import("@vue/runtime-core").PropType<boolean>;
|
|
@@ -666,9 +921,9 @@ export declare const componentProps: {
|
|
|
666
921
|
default: undefined;
|
|
667
922
|
};
|
|
668
923
|
align: {
|
|
669
|
-
type: import("@vue/runtime-core").PropType<"
|
|
924
|
+
type: import("@vue/runtime-core").PropType<"center" | "start" | "end" | "stretch">;
|
|
670
925
|
} & {
|
|
671
|
-
default: "
|
|
926
|
+
default: "center" | "start" | "end" | "stretch";
|
|
672
927
|
};
|
|
673
928
|
gap: {
|
|
674
929
|
type: import("@vue/runtime-core").PropType<import("../index.js").Spacing>;
|
|
@@ -676,9 +931,9 @@ export declare const componentProps: {
|
|
|
676
931
|
default: undefined;
|
|
677
932
|
};
|
|
678
933
|
justify: {
|
|
679
|
-
type: import("@vue/runtime-core").PropType<"
|
|
934
|
+
type: import("@vue/runtime-core").PropType<"center" | "start" | "end" | "between" | "around">;
|
|
680
935
|
} & {
|
|
681
|
-
default: "
|
|
936
|
+
default: "center" | "start" | "end" | "between" | "around";
|
|
682
937
|
};
|
|
683
938
|
wrap: {
|
|
684
939
|
type: import("@vue/runtime-core").PropType<boolean>;
|
|
@@ -795,6 +1050,11 @@ export declare const componentProps: {
|
|
|
795
1050
|
};
|
|
796
1051
|
};
|
|
797
1052
|
MBox: {
|
|
1053
|
+
motionSurface: {
|
|
1054
|
+
type: import("@vue/runtime-core").PropType<import("../experimental.js").MotionSurface>;
|
|
1055
|
+
} & {
|
|
1056
|
+
default: undefined;
|
|
1057
|
+
};
|
|
798
1058
|
motionRegion: {
|
|
799
1059
|
type: import("@vue/runtime-core").PropType<import("../experimental-regions.js").MotionRegion>;
|
|
800
1060
|
} & {
|
|
@@ -1010,6 +1270,11 @@ export declare const componentProps: {
|
|
|
1010
1270
|
} & {
|
|
1011
1271
|
default: undefined;
|
|
1012
1272
|
};
|
|
1273
|
+
motionSurface: {
|
|
1274
|
+
type: import("@vue/runtime-core").PropType<import("../experimental.js").MotionSurface>;
|
|
1275
|
+
} & {
|
|
1276
|
+
default: undefined;
|
|
1277
|
+
};
|
|
1013
1278
|
weight: {
|
|
1014
1279
|
type: import("@vue/runtime-core").PropType<import("../index.js").FontWeight>;
|
|
1015
1280
|
} & {
|
|
@@ -1023,9 +1288,9 @@ export declare const componentProps: {
|
|
|
1023
1288
|
default: undefined;
|
|
1024
1289
|
};
|
|
1025
1290
|
type: {
|
|
1026
|
-
type: import("@vue/runtime-core").PropType<"button" | "
|
|
1291
|
+
type: import("@vue/runtime-core").PropType<"button" | "reset" | "submit">;
|
|
1027
1292
|
} & {
|
|
1028
|
-
default: "button" | "
|
|
1293
|
+
default: "button" | "reset" | "submit";
|
|
1029
1294
|
};
|
|
1030
1295
|
name: {
|
|
1031
1296
|
type: import("@vue/runtime-core").PropType<string>;
|
|
@@ -1062,6 +1327,11 @@ export declare const componentProps: {
|
|
|
1062
1327
|
} & {
|
|
1063
1328
|
default: boolean;
|
|
1064
1329
|
};
|
|
1330
|
+
loadingIndicator: {
|
|
1331
|
+
type: import("@vue/runtime-core").PropType<"none" | "ring" | "dots" | "bars">;
|
|
1332
|
+
} & {
|
|
1333
|
+
default: "none" | "ring" | "dots" | "bars";
|
|
1334
|
+
};
|
|
1065
1335
|
loadingText: {
|
|
1066
1336
|
type: import("@vue/runtime-core").PropType<string>;
|
|
1067
1337
|
} & {
|
|
@@ -1102,6 +1372,11 @@ export declare const componentProps: {
|
|
|
1102
1372
|
} & {
|
|
1103
1373
|
default: undefined;
|
|
1104
1374
|
};
|
|
1375
|
+
reorderHandle: {
|
|
1376
|
+
type: import("@vue/runtime-core").PropType<boolean>;
|
|
1377
|
+
} & {
|
|
1378
|
+
default: boolean;
|
|
1379
|
+
};
|
|
1105
1380
|
motionSurface: {
|
|
1106
1381
|
type: import("@vue/runtime-core").PropType<import("../experimental.js").MotionSurface>;
|
|
1107
1382
|
} & {
|
|
@@ -1498,6 +1773,7 @@ export declare const componentProps: {
|
|
|
1498
1773
|
default: undefined;
|
|
1499
1774
|
};
|
|
1500
1775
|
open: BooleanConstructor;
|
|
1776
|
+
interactive: BooleanConstructor;
|
|
1501
1777
|
title: {
|
|
1502
1778
|
type: StringConstructor;
|
|
1503
1779
|
required: true;
|
|
@@ -1588,6 +1864,11 @@ export declare const componentProps: {
|
|
|
1588
1864
|
type: BooleanConstructor;
|
|
1589
1865
|
default: boolean;
|
|
1590
1866
|
};
|
|
1867
|
+
effect: {
|
|
1868
|
+
type: import("@vue/runtime-core").PropType<"pulse" | "shimmer">;
|
|
1869
|
+
default: "pulse" | "shimmer";
|
|
1870
|
+
validator: (value: "pulse" | "shimmer") => boolean;
|
|
1871
|
+
};
|
|
1591
1872
|
grow: {
|
|
1592
1873
|
type: import("@vue/runtime-core").PropType<number>;
|
|
1593
1874
|
} & {
|
|
@@ -2029,6 +2310,14 @@ export declare const componentProps: {
|
|
|
2029
2310
|
} & {
|
|
2030
2311
|
default: undefined;
|
|
2031
2312
|
};
|
|
2313
|
+
motionSurface: {
|
|
2314
|
+
type: import("@vue/runtime-core").PropType<import("../experimental.js").MotionSurface>;
|
|
2315
|
+
default: undefined;
|
|
2316
|
+
};
|
|
2317
|
+
systemName: {
|
|
2318
|
+
type: StringConstructor;
|
|
2319
|
+
default: undefined;
|
|
2320
|
+
};
|
|
2032
2321
|
name: {
|
|
2033
2322
|
type: import("@vue/runtime-core").PropType<import("../icon.js").IconName>;
|
|
2034
2323
|
required: true;
|
|
@@ -2051,9 +2340,9 @@ export declare const componentProps: {
|
|
|
2051
2340
|
MReveal: {
|
|
2052
2341
|
show: BooleanConstructor;
|
|
2053
2342
|
align: {
|
|
2054
|
-
type: import("@vue/runtime-core").PropType<"
|
|
2343
|
+
type: import("@vue/runtime-core").PropType<"center" | "start" | "end" | "stretch">;
|
|
2055
2344
|
} & {
|
|
2056
|
-
default: "
|
|
2345
|
+
default: "center" | "start" | "end" | "stretch";
|
|
2057
2346
|
};
|
|
2058
2347
|
gap: {
|
|
2059
2348
|
type: import("@vue/runtime-core").PropType<import("../index.js").Spacing>;
|
|
@@ -2061,9 +2350,9 @@ export declare const componentProps: {
|
|
|
2061
2350
|
default: undefined;
|
|
2062
2351
|
};
|
|
2063
2352
|
justify: {
|
|
2064
|
-
type: import("@vue/runtime-core").PropType<"
|
|
2353
|
+
type: import("@vue/runtime-core").PropType<"center" | "start" | "end" | "between" | "around">;
|
|
2065
2354
|
} & {
|
|
2066
|
-
default: "
|
|
2355
|
+
default: "center" | "start" | "end" | "between" | "around";
|
|
2067
2356
|
};
|
|
2068
2357
|
wrap: {
|
|
2069
2358
|
type: import("@vue/runtime-core").PropType<boolean>;
|
|
@@ -2164,9 +2453,9 @@ export declare const componentProps: {
|
|
|
2164
2453
|
default: undefined;
|
|
2165
2454
|
};
|
|
2166
2455
|
align: {
|
|
2167
|
-
type: import("@vue/runtime-core").PropType<"
|
|
2456
|
+
type: import("@vue/runtime-core").PropType<"center" | "start" | "end" | "stretch">;
|
|
2168
2457
|
} & {
|
|
2169
|
-
default: "
|
|
2458
|
+
default: "center" | "start" | "end" | "stretch";
|
|
2170
2459
|
};
|
|
2171
2460
|
};
|
|
2172
2461
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-props.d.ts","sourceRoot":"","sources":["../../src/vue/component-props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component-props.d.ts","sourceRoot":"","sources":["../../src/vue/component-props.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAO5C,qFAAqF;AACrF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa1B,CAAA;AACD,MAAM,MAAM,cAAc,GAAG;KAC1B,IAAI,IAAI,MAAM,OAAO,cAAc,GAAG,sBAAsB,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,IAAI,CAAC,CAAC,GAC1F,CAAC,IAAI,SAAS,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;CAChD,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { numberInputProps, multiSelectProps, imageProps } from './configurator-props.js';
|
|
1
2
|
import { componentProps as foundationProps } from './props.js';
|
|
2
3
|
import { datePickerProps, dateRangePickerProps } from './date-props.js';
|
|
3
4
|
import { comboboxProps } from './combobox.js';
|
|
@@ -6,6 +7,9 @@ import { formGroupProps, formErrorsProps, stepsProps, paginationProps } from './
|
|
|
6
7
|
/** Complete registry, kept separate from the primitives used to compose controls. */
|
|
7
8
|
export const componentProps = {
|
|
8
9
|
...foundationProps,
|
|
10
|
+
MNumberInput: numberInputProps,
|
|
11
|
+
MMultiSelect: multiSelectProps,
|
|
12
|
+
MImage: imageProps,
|
|
9
13
|
MDatePicker: datePickerProps,
|
|
10
14
|
MDateRangePicker: dateRangePickerProps,
|
|
11
15
|
MCombobox: comboboxProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-props.js","sourceRoot":"","sources":["../../src/vue/component-props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component-props.js","sourceRoot":"","sources":["../../src/vue/component-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAGxF,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAElG,qFAAqF;AACrF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,GAAG,eAAe;IAClB,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;IAC9B,MAAM,EAAE,UAAU;IAClB,WAAW,EAAE,eAAe;IAC5B,gBAAgB,EAAE,oBAAoB;IACtC,SAAS,EAAE,aAAa;IACxB,WAAW,EAAE,eAAe;IAC5B,UAAU,EAAE,cAAc;IAC1B,WAAW,EAAE,eAAe;IAC5B,MAAM,EAAE,UAAU;IAClB,WAAW,EAAE,eAAe;CAC7B,CAAA"}
|