@chelone/vue 0.3.0 → 0.5.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/choices/use-choices.d.ts +11 -10
- package/dist/choices/use-choices.js +5 -4
- package/dist/components/admin/auth/auth-error.vue.d.ts +1 -1
- package/dist/components/admin/buttons/save-button.vue.d.ts +1 -1
- package/dist/components/admin/buttons/update-button.vue.d.ts +3 -3
- package/dist/components/admin/feedback/linear-progress.vue.d.ts +1 -1
- package/dist/components/admin/fields/api-key-field.vue.d.ts +27 -9
- package/dist/components/admin/fields/api-key-field.vue.js +3 -1
- package/dist/components/admin/fields/array-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/badge-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/boolean-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/chip-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/color-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/cron-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/currency-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/date-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/duration-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/email-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/file-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/function-field.vue.d.ts +3 -3
- package/dist/components/admin/fields/image-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/json-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/number-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/phone-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/rating-field.vue.d.ts +22 -7
- package/dist/components/admin/fields/rating-field.vue.js +3 -1
- package/dist/components/admin/fields/record-field.vue.d.ts +3 -3
- package/dist/components/admin/fields/reference-array-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/reference-field.vue.d.ts +2 -1
- package/dist/components/admin/fields/reference-many-count.vue.d.ts +2 -2
- package/dist/components/admin/fields/reference-many-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/reference-one-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/select-field.vue.d.ts +18 -7
- package/dist/components/admin/fields/select-field.vue.js +1 -1
- package/dist/components/admin/fields/subscription-plan-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/text-array-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/text-field.vue.d.ts +2 -8
- package/dist/components/admin/fields/url-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/usage-meter-field.vue.d.ts +22 -7
- package/dist/components/admin/fields/usage-meter-field.vue.js +3 -1
- package/dist/components/admin/fields/webhook-endpoint-field.vue.d.ts +2 -2
- package/dist/components/admin/fields/wrapper-field.vue.d.ts +3 -3
- package/dist/components/admin/fields/wrapper-field.vue.js +6 -0
- package/dist/components/admin/inputs/api-key-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/array-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/autocomplete-array-input.vue.d.ts +14 -6
- package/dist/components/admin/inputs/autocomplete-array-input.vue.js +2 -3
- package/dist/components/admin/inputs/autocomplete-input.vue.d.ts +14 -6
- package/dist/components/admin/inputs/autocomplete-input.vue.js +2 -3
- package/dist/components/admin/inputs/boolean-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/checkbox-group-input.vue.d.ts +14 -7
- package/dist/components/admin/inputs/checkbox-group-input.vue.js +2 -2
- package/dist/components/admin/inputs/choice-input-props.d.ts +6 -6
- package/dist/components/admin/inputs/color-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/cron-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/currency-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/datagrid-input.vue.d.ts +20 -5
- package/dist/components/admin/inputs/datagrid-input.vue.js +7 -3
- package/dist/components/admin/inputs/date-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/date-time-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/duration-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/file-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/nullable-boolean-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/number-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/password-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/phone-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/radio-button-group-input.vue.d.ts +14 -7
- package/dist/components/admin/inputs/radio-button-group-input.vue.js +2 -2
- package/dist/components/admin/inputs/rating-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/reference-array-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/reference-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/resettable-text-input.vue.d.ts +2 -1
- package/dist/components/admin/inputs/search-input.vue.d.ts +3 -3
- package/dist/components/admin/inputs/select-array-input.vue.d.ts +14 -5
- package/dist/components/admin/inputs/select-array-input.vue.js +1 -1
- package/dist/components/admin/inputs/select-input.vue.d.ts +14 -7
- package/dist/components/admin/inputs/select-input.vue.js +1 -1
- package/dist/components/admin/inputs/subscription-plan-picker.vue.d.ts +2 -2
- package/dist/components/admin/inputs/text-array-input.vue.d.ts +2 -2
- package/dist/components/admin/inputs/text-input.vue.d.ts +2 -1
- package/dist/components/admin/inputs/time-input.vue.d.ts +2 -1
- package/dist/components/admin/inputs/use-choice-input.d.ts +12 -19
- package/dist/components/admin/inputs/use-choice-input.js +4 -1
- package/dist/components/admin/inputs/webhook-endpoint-input.vue.d.ts +2 -2
- package/dist/components/admin/list/calendar-list.vue.d.ts +8 -8
- package/dist/components/admin/list/filter-live-search.vue.d.ts +1 -1
- package/dist/components/admin/list/kanban-board.vue.d.ts +41 -0
- package/dist/components/admin/list/kanban-board.vue.js +275 -0
- package/dist/components/admin/list/kanban-board2.vue.js +4 -0
- package/dist/components/admin/list/list-icons.d.ts +2 -0
- package/dist/components/admin/list/list-icons.js +7 -0
- package/dist/components/admin/list/tree-list.vue.d.ts +6 -5
- package/dist/components/admin/view/labeled.vue.d.ts +6 -5
- package/dist/components/admin/view/labeled.vue.js +4 -1
- package/dist/components/admin/view/tabbed-show-layout-tab.vue.d.ts +2 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/maps/geo-json-field.vue.d.ts +2 -1
- package/dist/components/maps/lat-lng-field.vue.d.ts +3 -3
- package/dist/components/maps/lat-lng-input.vue.d.ts +4 -4
- package/dist/components/maps-draw/shape-input.vue.d.ts +4 -4
- package/dist/components/maps-draw/simplify-input.vue.d.ts +2 -2
- package/dist/components/maps-osm/geocoding-input.vue.d.ts +6 -6
- package/dist/components/maps-osm/map-with-search.vue.d.ts +4 -4
- package/dist/components/maps-osm/osm-feature-operator.vue.d.ts +3 -3
- package/dist/components/maps-osm/reverse-geocode-field.vue.d.ts +3 -3
- package/dist/components/mdx-editor/mdx-field.vue.d.ts +2 -2
- package/dist/components/mdx-editor/mdx-input.vue.d.ts +2 -2
- package/dist/components/monaco/monaco-json-field.vue.d.ts +2 -2
- package/dist/components/monaco/monaco-json-input.vue.d.ts +2 -2
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.vue.d.ts +1 -1
- package/dist/components/ui/command/command-dialog.vue.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.vue.js +9 -3
- package/dist/components/ui/input.vue.d.ts +2 -2
- package/dist/components/ui/sidebar/sidebar-menu-button.vue.d.ts +1 -1
- package/dist/components/ui/textarea.vue.d.ts +2 -2
- package/dist/create-resource-components.d.ts +867 -0
- package/dist/create-resource-components.js +171 -0
- package/dist/data/create-chelone-hooks.d.ts +8 -8
- package/dist/data/mutations.d.ts +8 -8
- package/dist/form/use-input.d.ts +9 -7
- package/dist/form/use-input.js +2 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +248 -243
- package/dist/record/use-field-value.d.ts +16 -6
- package/package.json +4 -4
|
@@ -35,7 +35,14 @@ const ChevronsUpDownIcon = icon(() => [
|
|
|
35
35
|
h("path", { d: "m7 15 5 5 5-5" }),
|
|
36
36
|
h("path", { d: "m7 9 5-5 5 5" })
|
|
37
37
|
]);
|
|
38
|
+
const ArrowRightLeftIcon = icon(() => [
|
|
39
|
+
h("path", { d: "m16 3 4 4-4 4" }),
|
|
40
|
+
h("path", { d: "M20 7H4" }),
|
|
41
|
+
h("path", { d: "m8 21-4-4 4-4" }),
|
|
42
|
+
h("path", { d: "M4 17h16" })
|
|
43
|
+
]);
|
|
38
44
|
export {
|
|
45
|
+
ArrowRightLeftIcon,
|
|
39
46
|
ChevronLeftIcon,
|
|
40
47
|
ChevronRightIcon,
|
|
41
48
|
ChevronsUpDownIcon,
|
|
@@ -15,15 +15,16 @@
|
|
|
15
15
|
* </List>
|
|
16
16
|
*/
|
|
17
17
|
import { type LooseRecord } from "@chelone/core";
|
|
18
|
+
import type { SourceProp } from "@chelone/core";
|
|
18
19
|
import type { Component } from "vue";
|
|
19
20
|
/** Props for {@link TreeList}. */
|
|
20
21
|
export interface TreeListProps {
|
|
21
22
|
/** The field holding the parent's id; a dot or bracket path reads a nested value. */
|
|
22
|
-
parentSource:
|
|
23
|
+
parentSource: SourceProp;
|
|
23
24
|
/** The string field shown as the row title; the record representation otherwise. */
|
|
24
|
-
titleSource?:
|
|
25
|
+
titleSource?: SourceProp;
|
|
25
26
|
/** The field whose value picks a component from `iconMap`. */
|
|
26
|
-
iconSource?:
|
|
27
|
+
iconSource?: SourceProp;
|
|
27
28
|
iconMap?: Record<string, Component>;
|
|
28
29
|
/** Whether branches start open. Default `false`. */
|
|
29
30
|
defaultExpanded?: boolean;
|
|
@@ -41,8 +42,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TreeListPr
|
|
|
41
42
|
onSelect?: ((record: LooseRecord) => any) | undefined;
|
|
42
43
|
}>, {
|
|
43
44
|
linkType: "edit" | "show" | false;
|
|
44
|
-
titleSource:
|
|
45
|
-
iconSource:
|
|
45
|
+
titleSource: SourceProp;
|
|
46
|
+
iconSource: SourceProp;
|
|
46
47
|
iconMap: Record<string, Component>;
|
|
47
48
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
48
49
|
/** Rendered while the list is pending, in place of `SimpleListLoading`. */
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
* is a native element, a `<Labeled>` or a `<RecordField>`, which label
|
|
11
11
|
* themselves.
|
|
12
12
|
*/
|
|
13
|
+
import type { SourceProp } from "@chelone/core";
|
|
13
14
|
import { type PropType, type VNode } from "vue";
|
|
14
15
|
/** Props for {@link Labeled}. */
|
|
15
16
|
export interface LabeledProps {
|
|
16
17
|
/** Overrides the child's `label`; `false` renders no label. */
|
|
17
18
|
label?: string | false;
|
|
18
19
|
/** Overrides the child's `source` when resolving the label. */
|
|
19
|
-
source?:
|
|
20
|
+
source?: SourceProp;
|
|
20
21
|
/** Overrides the child's `resource` when resolving the label. */
|
|
21
22
|
resource?: string;
|
|
22
23
|
isRequired?: boolean;
|
|
@@ -33,7 +34,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
34
|
default: undefined;
|
|
34
35
|
};
|
|
35
36
|
source: {
|
|
36
|
-
type:
|
|
37
|
+
type: PropType<SourceProp>;
|
|
37
38
|
default: undefined;
|
|
38
39
|
};
|
|
39
40
|
resource: {
|
|
@@ -68,7 +69,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
68
69
|
default: undefined;
|
|
69
70
|
};
|
|
70
71
|
source: {
|
|
71
|
-
type:
|
|
72
|
+
type: PropType<SourceProp>;
|
|
72
73
|
default: undefined;
|
|
73
74
|
};
|
|
74
75
|
resource: {
|
|
@@ -96,13 +97,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
96
97
|
default: undefined;
|
|
97
98
|
};
|
|
98
99
|
}>> & Readonly<{}>, {
|
|
99
|
-
source: string;
|
|
100
100
|
class: string;
|
|
101
101
|
label: string | false;
|
|
102
|
+
source: string;
|
|
102
103
|
resource: string;
|
|
103
|
-
as: string;
|
|
104
104
|
htmlFor: string;
|
|
105
105
|
isRequired: boolean;
|
|
106
106
|
fullWidth: boolean;
|
|
107
|
+
as: string;
|
|
107
108
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
108
109
|
export default _default;
|
|
@@ -23,7 +23,10 @@ const _sfc_main = defineComponent({
|
|
|
23
23
|
type: [String, Boolean],
|
|
24
24
|
default: void 0
|
|
25
25
|
},
|
|
26
|
-
source: {
|
|
26
|
+
source: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: void 0
|
|
29
|
+
},
|
|
27
30
|
resource: { type: String, default: void 0 },
|
|
28
31
|
isRequired: { type: Boolean, default: false },
|
|
29
32
|
htmlFor: { type: String, default: void 0 },
|
|
@@ -75,9 +75,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
75
75
|
default: undefined;
|
|
76
76
|
};
|
|
77
77
|
}>> & Readonly<{}>, {
|
|
78
|
-
count: number;
|
|
79
|
-
path: string;
|
|
80
78
|
icon: Component;
|
|
79
|
+
path: string;
|
|
80
|
+
count: number;
|
|
81
81
|
contentClass: string;
|
|
82
82
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
83
83
|
export default _default;
|
|
@@ -326,6 +326,8 @@ export type { FilterLiveSearchProps } from "./admin/list/filter-live-search.vue.
|
|
|
326
326
|
export { default as FilterLiveSearch } from "./admin/list/filter-live-search.vue.js";
|
|
327
327
|
export type { InfinitePaginationProps } from "./admin/list/infinite-pagination.vue.js";
|
|
328
328
|
export { default as InfinitePagination } from "./admin/list/infinite-pagination.vue.js";
|
|
329
|
+
export type { KanbanBoardProps } from "./admin/list/kanban-board.vue.js";
|
|
330
|
+
export { default as KanbanBoard } from "./admin/list/kanban-board.vue.js";
|
|
329
331
|
export type { ListActionsProps } from "./admin/list/list-actions.vue.js";
|
|
330
332
|
export { default as ListActions } from "./admin/list/list-actions.vue.js";
|
|
331
333
|
export type { ListNoResultsProps } from "./admin/list/list-no-results.vue.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { SourceProp } from "@chelone/core";
|
|
1
2
|
import type { GeoJsonViewProps } from "./geo-json-view.vue.js";
|
|
2
3
|
/** Props for {@link GeoJsonField}. */
|
|
3
4
|
export interface GeoJsonFieldProps extends Partial<Omit<GeoJsonViewProps, "data">> {
|
|
4
5
|
/** The record property holding the GeoJSON value. */
|
|
5
|
-
source:
|
|
6
|
+
source: SourceProp;
|
|
6
7
|
/** Defaults to the ambient record. */
|
|
7
8
|
record?: Record<string, unknown>;
|
|
8
9
|
/** Used when the property is `undefined`. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { MapStyleInput } from "@chelone/core";
|
|
1
|
+
import type { MapStyleInput, SourceProp } from "@chelone/core";
|
|
2
2
|
/** Props for {@link LatLngField}. */
|
|
3
3
|
export interface LatLngFieldProps {
|
|
4
4
|
/** The record property holding the latitude. */
|
|
5
|
-
latSource:
|
|
5
|
+
latSource: SourceProp;
|
|
6
6
|
/** The record property holding the longitude. */
|
|
7
|
-
lngSource:
|
|
7
|
+
lngSource: SourceProp;
|
|
8
8
|
/** Defaults to the ambient record. */
|
|
9
9
|
record?: Record<string, unknown>;
|
|
10
10
|
zoom?: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { MapStyleInput, Validator } from "@chelone/core";
|
|
1
|
+
import type { MapStyleInput, SourceProp, Validator } from "@chelone/core";
|
|
2
2
|
/** Props for {@link LatLngInput}. */
|
|
3
3
|
export interface LatLngInputProps {
|
|
4
4
|
/** The form field holding the latitude. */
|
|
5
|
-
latSource:
|
|
5
|
+
latSource: SourceProp;
|
|
6
6
|
/** The form field holding the longitude. */
|
|
7
|
-
lngSource:
|
|
7
|
+
lngSource: SourceProp;
|
|
8
8
|
/** The legend. A string is translated; `false` renders none. */
|
|
9
9
|
label?: string | false;
|
|
10
10
|
helperText?: string;
|
|
@@ -29,8 +29,8 @@ declare const _default: import("vue").DefineComponent<LatLngInputProps, {}, {},
|
|
|
29
29
|
}, string, import("vue").PublicProps, Readonly<LatLngInputProps> & Readonly<{
|
|
30
30
|
onPositionChange?: ((lat: number, lng: number) => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
|
-
label: string | false;
|
|
33
32
|
disabled: boolean;
|
|
33
|
+
label: string | false;
|
|
34
34
|
height: number | string;
|
|
35
35
|
zoom: number;
|
|
36
36
|
defaultPosition: readonly [lat: number, lng: number];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type MapStyleInput, type ShapeStyle, type ShapeValue, type ShapeValueKind, type Validator } from "@chelone/core";
|
|
1
|
+
import { type MapStyleInput, type ShapeStyle, type ShapeValue, type ShapeValueKind, type SourceProp, type Validator } from "@chelone/core";
|
|
2
2
|
import { type DrawTool } from "./use-terra-draw.js";
|
|
3
3
|
type ToolbarTool = DrawTool | "delete";
|
|
4
4
|
/** Props for {@link ShapeInput}. */
|
|
5
5
|
export interface ShapeInputProps {
|
|
6
6
|
/** The form field holding the GeoJSON value. */
|
|
7
|
-
source:
|
|
7
|
+
source: SourceProp;
|
|
8
8
|
/** The kind of value the field holds, which decides what a drawing writes. */
|
|
9
9
|
kind: ShapeValueKind;
|
|
10
10
|
/** The legend. A string is translated; `false` renders none. */
|
|
@@ -62,11 +62,11 @@ declare const _default: import("vue").DefineComponent<ShapeInputProps, {}, {}, {
|
|
|
62
62
|
}, string, import("vue").PublicProps, Readonly<ShapeInputProps> & Readonly<{
|
|
63
63
|
onCommit?: ((value: ShapeValue | null) => any) | undefined;
|
|
64
64
|
}>, {
|
|
65
|
-
label: string | false;
|
|
66
65
|
disabled: boolean;
|
|
66
|
+
label: string | false;
|
|
67
67
|
height: number | string;
|
|
68
|
-
validate: Validator | readonly Validator[];
|
|
69
68
|
helperText: string | false;
|
|
69
|
+
validate: Validator | readonly Validator[];
|
|
70
70
|
mapStyle: MapStyleInput;
|
|
71
71
|
zoom: number;
|
|
72
72
|
tools: readonly ToolbarTool[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { MapStyleInput, ShapeStyle } from "@chelone/core";
|
|
1
|
+
import type { MapStyleInput, ShapeStyle, SourceProp } from "@chelone/core";
|
|
2
2
|
export type SimplifyQuality = "Default" | "High";
|
|
3
3
|
/** Props for {@link SimplifyInput}. */
|
|
4
4
|
export interface SimplifyInputProps {
|
|
5
5
|
/** The form field holding a Geometry, Feature or FeatureCollection. */
|
|
6
|
-
source:
|
|
6
|
+
source: SourceProp;
|
|
7
7
|
/** The legend. A string is translated; `false` renders none. */
|
|
8
8
|
label?: string | false;
|
|
9
9
|
helperText?: string | false;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { GeoBBox, GeocodingProvider } from "@chelone/core";
|
|
1
|
+
import type { GeoBBox, GeocodingProvider, SourceProp } from "@chelone/core";
|
|
2
2
|
/** Props for {@link GeocodingInput}. */
|
|
3
3
|
export interface GeocodingInputProps {
|
|
4
4
|
/** The form field holding the address text. */
|
|
5
|
-
source:
|
|
5
|
+
source: SourceProp;
|
|
6
6
|
/** Written with the picked result's latitude. Left alone when unset. */
|
|
7
|
-
latSource?:
|
|
7
|
+
latSource?: SourceProp;
|
|
8
8
|
/** Written with the picked result's longitude. Left alone when unset. */
|
|
9
|
-
lngSource?:
|
|
9
|
+
lngSource?: SourceProp;
|
|
10
10
|
/** Written with the picked result's `[west, south, east, north]`, when it has one. */
|
|
11
|
-
bboxSource?:
|
|
11
|
+
bboxSource?: SourceProp;
|
|
12
12
|
/** A string is translated; `false` renders none. Defaults to the label of `source`. */
|
|
13
13
|
label?: string | false;
|
|
14
14
|
/** Defaults to `chelone.map.search_placeholder`. */
|
|
@@ -26,8 +26,8 @@ export interface GeocodingInputProps {
|
|
|
26
26
|
class?: string;
|
|
27
27
|
}
|
|
28
28
|
declare const _default: import("vue").DefineComponent<GeocodingInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GeocodingInputProps> & Readonly<{}>, {
|
|
29
|
-
label: string | false;
|
|
30
29
|
disabled: boolean;
|
|
30
|
+
label: string | false;
|
|
31
31
|
debounceMs: number;
|
|
32
32
|
minChars: number;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { GeocodingProvider } from "@chelone/core";
|
|
1
|
+
import type { GeocodingProvider, SourceProp } from "@chelone/core";
|
|
2
2
|
/** Props for {@link MapWithSearch}. */
|
|
3
3
|
export interface MapWithSearchProps {
|
|
4
4
|
/** The form field holding the latitude. */
|
|
5
|
-
latSource:
|
|
5
|
+
latSource: SourceProp;
|
|
6
6
|
/** The form field holding the longitude. */
|
|
7
|
-
lngSource:
|
|
7
|
+
lngSource: SourceProp;
|
|
8
8
|
/** The form field holding the address text. */
|
|
9
|
-
addressSource:
|
|
9
|
+
addressSource: SourceProp;
|
|
10
10
|
/** In pixels, or any CSS length. Defaults to 400. */
|
|
11
11
|
height?: number | string;
|
|
12
12
|
/** Read once at mount. Defaults to 13. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { OsmPresetName, OsmTagInput, OverpassProvider } from "@chelone/core";
|
|
1
|
+
import type { OsmPresetName, OsmTagInput, OverpassProvider, SourceProp } from "@chelone/core";
|
|
2
2
|
/** Props for {@link OsmFeatureOperator}. */
|
|
3
3
|
export interface OsmFeatureOperatorProps {
|
|
4
4
|
/** The form field holding the Polygon or MultiPolygon. */
|
|
5
|
-
source:
|
|
5
|
+
source: SourceProp;
|
|
6
6
|
/** `subtract` removes the matching OSM areas from the polygon; `add` merges them in. */
|
|
7
7
|
mode: "subtract" | "add";
|
|
8
8
|
/** Named OSM feature sets to query, such as `water`. */
|
|
@@ -17,8 +17,8 @@ export interface OsmFeatureOperatorProps {
|
|
|
17
17
|
class?: string;
|
|
18
18
|
}
|
|
19
19
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<OsmFeatureOperatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OsmFeatureOperatorProps> & Readonly<{}>, {
|
|
20
|
-
label: string;
|
|
21
20
|
disabled: boolean;
|
|
21
|
+
label: string;
|
|
22
22
|
provider: OverpassProvider;
|
|
23
23
|
presets: readonly OsmPresetName[];
|
|
24
24
|
tags: readonly OsmTagInput[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { GeocodingProvider } from "@chelone/core";
|
|
1
|
+
import type { GeocodingProvider, SourceProp } from "@chelone/core";
|
|
2
2
|
/** Props for {@link ReverseGeocodeField}. */
|
|
3
3
|
export interface ReverseGeocodeFieldProps {
|
|
4
4
|
/** The record property holding the latitude. */
|
|
5
|
-
latSource:
|
|
5
|
+
latSource: SourceProp;
|
|
6
6
|
/** The record property holding the longitude. */
|
|
7
|
-
lngSource:
|
|
7
|
+
lngSource: SourceProp;
|
|
8
8
|
/** Defaults to the ambient record. */
|
|
9
9
|
record?: Record<string, unknown>;
|
|
10
10
|
/** `full` is the whole name, `street` its first part and `city` its first two. Defaults to `full`. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { LooseRecord } from "@chelone/core";
|
|
1
|
+
import type { LooseRecord, SourceProp } from "@chelone/core";
|
|
2
2
|
import type { CrepeEditorConfig } from "./internal/crepe-editor.vue.js";
|
|
3
3
|
/** Props for {@link MdxField}. */
|
|
4
4
|
export interface MdxFieldProps {
|
|
5
|
-
source:
|
|
5
|
+
source: SourceProp;
|
|
6
6
|
record?: LooseRecord;
|
|
7
7
|
/** Used when the record has no value at `source`. */
|
|
8
8
|
defaultValue?: unknown;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Validator } from "@chelone/core";
|
|
1
|
+
import type { SourceProp, Validator } from "@chelone/core";
|
|
2
2
|
import type { CrepeEditorConfig } from "./internal/crepe-editor.vue.js";
|
|
3
3
|
/** Props for {@link MdxInput}. */
|
|
4
4
|
export interface MdxInputProps {
|
|
5
|
-
source:
|
|
5
|
+
source: SourceProp;
|
|
6
6
|
label?: string | false;
|
|
7
7
|
/** Used when the record has no value at `source`. Defaults to `""`. */
|
|
8
8
|
defaultValue?: unknown;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { LooseRecord } from "@chelone/core";
|
|
1
|
+
import type { LooseRecord, SourceProp } from "@chelone/core";
|
|
2
2
|
import type { editor } from "monaco-editor";
|
|
3
3
|
/** Props for {@link MonacoJsonField}. */
|
|
4
4
|
export interface MonacoJsonFieldProps {
|
|
5
|
-
source:
|
|
5
|
+
source: SourceProp;
|
|
6
6
|
record?: LooseRecord;
|
|
7
7
|
/** Shown when the record has no value at `source`. */
|
|
8
8
|
defaultValue?: unknown;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Validator } from "@chelone/core";
|
|
1
|
+
import type { SourceProp, Validator } from "@chelone/core";
|
|
2
2
|
import type { editor } from "monaco-editor";
|
|
3
3
|
/** Props for {@link MonacoJsonInput}. */
|
|
4
4
|
export interface MonacoJsonInputProps {
|
|
5
|
-
source:
|
|
5
|
+
source: SourceProp;
|
|
6
6
|
label?: string | false;
|
|
7
7
|
defaultValue?: unknown;
|
|
8
8
|
validate?: Validator | readonly Validator[];
|
|
@@ -27,8 +27,8 @@ export declare const Alert: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
27
27
|
default: string;
|
|
28
28
|
};
|
|
29
29
|
}>> & Readonly<{}>, {
|
|
30
|
-
class: string;
|
|
31
30
|
variant: AlertVariant;
|
|
31
|
+
class: string;
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
33
|
export declare const AlertDescription: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
34
34
|
class: {
|
|
@@ -29,6 +29,6 @@ export declare const Badge: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
31
|
}>> & Readonly<{}>, {
|
|
32
|
-
class: string;
|
|
33
32
|
variant: BadgeVariant;
|
|
33
|
+
class: string;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -11,9 +11,9 @@ type __VLS_Slots = {} & {
|
|
|
11
11
|
default?: (props: typeof __VLS_1) => any;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
variant: ButtonVariant;
|
|
14
15
|
size: ButtonSize;
|
|
15
16
|
type: "button" | "submit" | "reset";
|
|
16
|
-
variant: ButtonVariant;
|
|
17
17
|
disabled: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -14,8 +14,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CommandDia
|
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<CommandDialogProps> & Readonly<{
|
|
15
15
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
description: string;
|
|
18
17
|
title: string;
|
|
18
|
+
description: string;
|
|
19
19
|
open: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
21
21
|
default?: (props: {}) => any;
|
|
@@ -11,10 +11,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
const props = __props;
|
|
12
12
|
const emit = __emit;
|
|
13
13
|
const { setOpen } = useDropdownMenu();
|
|
14
|
-
function
|
|
14
|
+
function select() {
|
|
15
15
|
setOpen(false);
|
|
16
16
|
emit("select");
|
|
17
17
|
}
|
|
18
|
+
function onKeydown(event) {
|
|
19
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
select();
|
|
22
|
+
}
|
|
18
23
|
return (_ctx, _cache) => {
|
|
19
24
|
return openBlock(), createElementBlock("div", {
|
|
20
25
|
role: "menuitem",
|
|
@@ -26,10 +31,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
31
|
)
|
|
27
32
|
),
|
|
28
33
|
"data-slot": "dropdown-menu-item",
|
|
29
|
-
onClick
|
|
34
|
+
onClick: select,
|
|
35
|
+
onKeydown
|
|
30
36
|
}, [
|
|
31
37
|
renderSlot(_ctx.$slots, "default")
|
|
32
|
-
],
|
|
38
|
+
], 34);
|
|
33
39
|
};
|
|
34
40
|
}
|
|
35
41
|
});
|
|
@@ -10,12 +10,12 @@ type __VLS_Props = {
|
|
|
10
10
|
class?: string;
|
|
11
11
|
};
|
|
12
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
"update:modelValue": (value: string) => any;
|
|
14
13
|
blur: (event: FocusEvent) => any;
|
|
15
14
|
focus: (event: FocusEvent) => any;
|
|
15
|
+
"update:modelValue": (value: string) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
18
17
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
19
18
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
19
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
export default _default;
|
|
@@ -17,8 +17,8 @@ export interface SidebarMenuButtonProps {
|
|
|
17
17
|
}
|
|
18
18
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SidebarMenuButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SidebarMenuButtonProps> & Readonly<{}>, {
|
|
19
19
|
size: "default" | "sm" | "lg";
|
|
20
|
-
as: string | Component;
|
|
21
20
|
isActive: boolean;
|
|
21
|
+
as: string | Component;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
23
23
|
default?: (props: {}) => any;
|
|
24
24
|
}>;
|
|
@@ -9,12 +9,12 @@ type __VLS_Props = {
|
|
|
9
9
|
class?: string;
|
|
10
10
|
};
|
|
11
11
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
"update:modelValue": (value: string) => any;
|
|
13
12
|
blur: (event: FocusEvent) => any;
|
|
14
13
|
focus: (event: FocusEvent) => any;
|
|
14
|
+
"update:modelValue": (value: string) => any;
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
16
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
18
17
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
18
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
19
19
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
export default _default;
|