@kirana-ui/vue 0.1.1 → 0.2.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/llms.txt +1619 -241
- package/package.json +14 -2
- package/skills/kirana-ui-primitives/SKILL.md +142 -0
- package/src/accordion.d.ts +42 -75
- package/src/accordion.js +4 -2
- package/src/accordion.js.map +1 -1
- package/src/agent.d.ts +1 -0
- package/src/agent.js +1 -0
- package/src/alert-dialog.d.ts +3 -2
- package/src/autocomplete.d.ts +4 -2
- package/src/autosize.d.ts +9 -9
- package/src/autosize.js.map +1 -1
- package/src/avatar.d.ts +10 -13
- package/src/avatar.js.map +1 -1
- package/src/button.d.ts +4 -21
- package/src/button.js.map +1 -1
- package/src/calendar.d.ts +65 -99
- package/src/calendar.js +6 -1
- package/src/calendar.js.map +1 -1
- package/src/carousel.d.ts +36 -58
- package/src/carousel.js.map +1 -1
- package/src/checkbox.d.ts +28 -50
- package/src/checkbox.js +2 -2
- package/src/checkbox.js.map +1 -1
- package/src/collapsible.d.ts +26 -36
- package/src/collapsible.js.map +1 -1
- package/src/combobox.d.ts +139 -290
- package/src/combobox.js +11 -1
- package/src/combobox.js.map +1 -1
- package/src/command.d.ts +43 -86
- package/src/command.js.map +1 -1
- package/src/context-menu.d.ts +4 -2
- package/src/date-field.d.ts +31 -61
- package/src/date-field.js +7 -3
- package/src/date-field.js.map +1 -1
- package/src/date-picker.d.ts +83 -139
- package/src/date-picker.js.map +1 -1
- package/src/dialog.d.ts +74 -145
- package/src/dialog.js +3 -1
- package/src/dialog.js.map +1 -1
- package/src/direction.d.ts +5 -8
- package/src/direction.js.map +1 -1
- package/src/drawer.d.ts +3 -2
- package/src/element.d.ts +23 -0
- package/src/element.js +90 -0
- package/src/element.js.map +1 -0
- package/src/field.d.ts +63 -45
- package/src/field.js +3 -2
- package/src/field.js.map +1 -1
- package/src/fieldset.d.ts +12 -13
- package/src/fieldset.js.map +1 -1
- package/src/form.d.ts +5 -15
- package/src/form.js.map +1 -1
- package/src/hover-card.d.ts +29 -43
- package/src/hover-card.js.map +1 -1
- package/src/hover-popup.d.ts +27 -46
- package/src/hover-popup.js +4 -1
- package/src/hover-popup.js.map +1 -1
- package/src/index.d.ts +13 -3
- package/src/input.d.ts +12 -14
- package/src/input.js.map +1 -1
- package/src/label.d.ts +3 -3
- package/src/label.js.map +1 -1
- package/src/listbox.d.ts +34 -89
- package/src/listbox.js.map +1 -1
- package/src/menu.d.ts +170 -533
- package/src/menu.js.map +1 -1
- package/src/menubar.d.ts +6 -24
- package/src/menubar.js.map +1 -1
- package/src/message-scroller.d.ts +23 -17
- package/src/message-scroller.js.map +1 -1
- package/src/meter.d.ts +10 -31
- package/src/meter.js.map +1 -1
- package/src/navigation-menu.d.ts +77 -88
- package/src/navigation-menu.js +13 -12
- package/src/navigation-menu.js.map +1 -1
- package/src/number-field.d.ts +72 -68
- package/src/number-field.js +2 -2
- package/src/number-field.js.map +1 -1
- package/src/otp.d.ts +33 -54
- package/src/otp.js +2 -2
- package/src/otp.js.map +1 -1
- package/src/pagination.d.ts +31 -58
- package/src/pagination.js.map +1 -1
- package/src/popover.d.ts +60 -36
- package/src/popover.js +33 -5
- package/src/popover.js.map +1 -1
- package/src/primitive.d.ts +21 -0
- package/src/primitive.js +27 -0
- package/src/primitive.js.map +1 -0
- package/src/progress.d.ts +28 -31
- package/src/progress.js.map +1 -1
- package/src/qr-code.d.ts +12 -21
- package/src/qr-code.js.map +1 -1
- package/src/radio-group.d.ts +37 -75
- package/src/radio-group.js +2 -2
- package/src/radio-group.js.map +1 -1
- package/src/resizable.d.ts +26 -45
- package/src/resizable.js.map +1 -1
- package/src/runtime.d.ts +93 -21
- package/src/runtime.js +24 -25
- package/src/runtime.js.map +1 -1
- package/src/scroll-area.d.ts +33 -28
- package/src/scroll-area.js.map +1 -1
- package/src/select.d.ts +87 -147
- package/src/select.js +31 -6
- package/src/select.js.map +1 -1
- package/src/separator.d.ts +4 -9
- package/src/separator.js.map +1 -1
- package/src/slider.d.ts +61 -80
- package/src/slider.js +10 -10
- package/src/slider.js.map +1 -1
- package/src/switch.d.ts +21 -39
- package/src/switch.js +2 -2
- package/src/switch.js.map +1 -1
- package/src/tabs.d.ts +44 -98
- package/src/tabs.js.map +1 -1
- package/src/testing.d.ts +1 -0
- package/src/testing.js +1 -0
- package/src/toast.d.ts +58 -45
- package/src/toast.js +46 -17
- package/src/toast.js.map +1 -1
- package/src/toggle-group.d.ts +8 -39
- package/src/toggle-group.js.map +1 -1
- package/src/toggle.d.ts +5 -34
- package/src/toggle.js.map +1 -1
- package/src/toolbar.d.ts +31 -69
- package/src/toolbar.js.map +1 -1
- package/src/tooltip.d.ts +29 -43
- package/src/tooltip.js.map +1 -1
- package/src/value-bar.d.ts +26 -35
- package/src/value-bar.js +10 -3
- package/src/value-bar.js.map +1 -1
package/src/calendar.d.ts
CHANGED
|
@@ -1,107 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Calendar as Calendar$1, CalendarProps, CalendarValue, CalendarWeekday } from "@kirana-ui/core/calendar";
|
|
1
|
+
import { Changes, PartComponent, PartComponentProps, PlainComponent } from "./runtime.js";
|
|
2
|
+
import { Calendar as Calendar$1, CalendarDay, CalendarProps, CalendarValue, CalendarWeekday } from "@kirana-ui/core/calendar";
|
|
3
|
+
/**
|
|
4
|
+
* The calendar its parts are inside. Exported for a component that is made of one (a date picker
|
|
5
|
+
* provides its own to the calendar's parts).
|
|
6
|
+
*/
|
|
3
7
|
declare const scope: {
|
|
4
8
|
provide(controller: Calendar$1): Calendar$1;
|
|
5
9
|
use(): Calendar$1;
|
|
6
10
|
};
|
|
11
|
+
export type RootProps = Omit<CalendarProps, "id" | "onValueChange" | "onMonthChange"> & {
|
|
12
|
+
id?: string | undefined;
|
|
13
|
+
} & PartComponentProps;
|
|
14
|
+
export type RootEmits = Changes<"value", CalendarValue> & {
|
|
15
|
+
/** The month shown has changed: its first day. */
|
|
16
|
+
monthChange: (month: string) => void;
|
|
17
|
+
};
|
|
18
|
+
export type HeadingProps = PartComponentProps;
|
|
19
|
+
export type WeekdaysProps = Record<never, never>;
|
|
20
|
+
export type WeeksProps = Record<never, never>;
|
|
21
|
+
export interface HeadCellProps extends PartComponentProps {
|
|
22
|
+
/** The day of the week it names, as `Calendar.Weekdays` gives it. */
|
|
23
|
+
weekday: CalendarWeekday;
|
|
24
|
+
}
|
|
25
|
+
export interface CellProps extends PartComponentProps {
|
|
26
|
+
/** The day it is for, as a week of `Calendar.Weeks` gives it. */
|
|
27
|
+
date: string;
|
|
28
|
+
}
|
|
29
|
+
export type DayProps = CellProps;
|
|
30
|
+
export type PreviousProps = PartComponentProps;
|
|
31
|
+
export type NextProps = PartComponentProps;
|
|
32
|
+
export type GridProps = PartComponentProps;
|
|
7
33
|
export declare const Calendar: {
|
|
8
|
-
Root:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
disabled
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
onMonthChange?: ((...args: any[]) => any) | undefined;
|
|
46
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
47
|
-
onValueChange?: ((...args: any[]) => any) | undefined;
|
|
48
|
-
}>, {
|
|
49
|
-
value: CalendarValue;
|
|
50
|
-
disabled: boolean;
|
|
51
|
-
readOnly: boolean;
|
|
52
|
-
fixedWeeks: boolean;
|
|
53
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
|
-
Heading: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
|
-
Previous: import("vue").Component;
|
|
58
|
-
Next: import("vue").Component;
|
|
59
|
-
Grid: import("vue").Component;
|
|
60
|
-
Weekdays: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
61
|
-
[key: string]: any;
|
|
62
|
-
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
63
|
-
HeadCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
64
|
-
weekday: {
|
|
65
|
-
type: PropType<CalendarWeekday>;
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
68
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
69
|
-
[key: string]: any;
|
|
70
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
|
-
weekday: {
|
|
72
|
-
type: PropType<CalendarWeekday>;
|
|
73
|
-
required: true;
|
|
74
|
-
};
|
|
75
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
76
|
-
Weeks: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
77
|
-
[key: string]: any;
|
|
78
|
-
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
79
|
-
Cell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
80
|
-
date: {
|
|
81
|
-
type: StringConstructor;
|
|
82
|
-
required: true;
|
|
83
|
-
};
|
|
84
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
85
|
-
[key: string]: any;
|
|
86
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
87
|
-
date: {
|
|
88
|
-
type: StringConstructor;
|
|
89
|
-
required: true;
|
|
90
|
-
};
|
|
91
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
92
|
-
Day: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
93
|
-
date: {
|
|
94
|
-
type: StringConstructor;
|
|
95
|
-
required: true;
|
|
96
|
-
};
|
|
97
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
98
|
-
[key: string]: any;
|
|
99
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
|
-
date: {
|
|
101
|
-
type: StringConstructor;
|
|
102
|
-
required: true;
|
|
103
|
-
};
|
|
104
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
Root: PartComponent<"div", {
|
|
35
|
+
readonly disabled?: true | undefined;
|
|
36
|
+
readonly readonly?: true | undefined;
|
|
37
|
+
}, RootProps, RootEmits>;
|
|
38
|
+
Heading: PartComponent<"div", Record<never, never>, PartComponentProps>;
|
|
39
|
+
Previous: PartComponent<"button", {
|
|
40
|
+
readonly disabled?: true | undefined;
|
|
41
|
+
}, PartComponentProps, {}, unknown>;
|
|
42
|
+
Next: PartComponent<"button", {
|
|
43
|
+
readonly disabled?: true | undefined;
|
|
44
|
+
}, PartComponentProps, {}, unknown>;
|
|
45
|
+
Grid: PartComponent<"table", Record<never, never>, PartComponentProps, {}, unknown>;
|
|
46
|
+
Weekdays: PlainComponent<WeekdaysProps, {}, {
|
|
47
|
+
weekday: CalendarWeekday;
|
|
48
|
+
}>;
|
|
49
|
+
HeadCell: PartComponent<"th", Record<never, never>, HeadCellProps>;
|
|
50
|
+
Weeks: PlainComponent<WeeksProps, {}, {
|
|
51
|
+
week: readonly CalendarDay[];
|
|
52
|
+
}>;
|
|
53
|
+
Cell: PartComponent<"td", {
|
|
54
|
+
readonly selected?: true | undefined;
|
|
55
|
+
readonly today?: true | undefined;
|
|
56
|
+
readonly outsideMonth?: true | undefined;
|
|
57
|
+
readonly disabled?: true | undefined;
|
|
58
|
+
readonly unavailable?: true | undefined;
|
|
59
|
+
readonly rangeStart?: true | undefined;
|
|
60
|
+
readonly rangeEnd?: true | undefined;
|
|
61
|
+
}, CellProps>;
|
|
62
|
+
Day: PartComponent<"button", {
|
|
63
|
+
readonly selected?: true | undefined;
|
|
64
|
+
readonly today?: true | undefined;
|
|
65
|
+
readonly outsideMonth?: true | undefined;
|
|
66
|
+
readonly disabled?: true | undefined;
|
|
67
|
+
readonly unavailable?: true | undefined;
|
|
68
|
+
readonly rangeStart?: true | undefined;
|
|
69
|
+
readonly rangeEnd?: true | undefined;
|
|
70
|
+
}, CellProps>;
|
|
105
71
|
};
|
|
106
72
|
export { scope as calendarScope };
|
|
107
73
|
//# sourceMappingURL=calendar.d.ts.map
|
package/src/calendar.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { useDirectionAround } from "./direction-context.js";
|
|
2
|
+
import { written } from "./element.js";
|
|
2
3
|
import { context, controller, fromSignal, optional, partComponent } from "./runtime.js";
|
|
3
4
|
import { within } from "@kirana-ui/core";
|
|
4
5
|
import { Fragment, defineComponent, h, useId } from "vue";
|
|
5
6
|
import { createCalendar } from "@kirana-ui/core/calendar";
|
|
6
7
|
// src/calendar.ts
|
|
8
|
+
/**
|
|
9
|
+
* The calendar its parts are inside. Exported for a component that is made of one (a date picker
|
|
10
|
+
* provides its own to the calendar's parts).
|
|
11
|
+
*/
|
|
7
12
|
const scope = context("Calendar");
|
|
8
13
|
const RootElement = partComponent("CalendarRootElement", "div", () => scope.use().root);
|
|
9
14
|
/** `v-model:value`, `@value-change="(value, details) => …"`, `@month-change="(month) => …"`. */
|
|
@@ -56,13 +61,13 @@ const Root = defineComponent({
|
|
|
56
61
|
return () => h(RootElement, attrs, slots);
|
|
57
62
|
}
|
|
58
63
|
});
|
|
59
|
-
const HeadingElement = partComponent("CalendarHeadingElement", "div", () => scope.use().heading);
|
|
60
64
|
/** Names the month shown, unless it is given something else to say. */
|
|
61
65
|
const Heading = defineComponent({
|
|
62
66
|
name: "CalendarHeading",
|
|
63
67
|
inheritAttrs: false,
|
|
64
68
|
setup(_, { attrs, slots }) {
|
|
65
69
|
const title = fromSignal(scope.use().title);
|
|
70
|
+
const HeadingElement = partComponent("CalendarHeadingElement", "div", () => scope.use().heading, written(() => title.value));
|
|
66
71
|
return () => h(HeadingElement, attrs, slots.default ?? (() => title.value));
|
|
67
72
|
}
|
|
68
73
|
});
|
package/src/calendar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","names":[],"sources":["../../../../packages/vue/src/calendar.ts"],"sourcesContent":["import { within } from \"@kirana-ui/core\"\nimport type { ChangeDetails } from \"@kirana-ui/core\"\nimport { createCalendar } from \"@kirana-ui/core/calendar\"\nimport type {\n Calendar as Controller,\n CalendarProps,\n CalendarValue,\n CalendarWeekday,\n} from \"@kirana-ui/core/calendar\"\nimport { Fragment, defineComponent, h, useId } from \"vue\"\nimport type { PropType } from \"vue\"\n\nimport { useDirectionAround } from \"./direction-context.ts\"\nimport { context, controller, fromSignal, optional, partComponent } from \"./runtime.ts\"\n\nconst scope = context<Controller>(\"Calendar\")\n/** For a component made of this one's parts: a date picker. */\nexport { scope as calendarScope }\n\nconst RootElement = partComponent(\"CalendarRootElement\", \"div\", () => scope.use().root)\n\n/** `v-model:value`, `@value-change=\"(value, details) => …\"`, `@month-change=\"(month) => …\"`. */\nconst Root = defineComponent({\n name: \"CalendarRoot\",\n inheritAttrs: false,\n props: {\n value: optional([String, Object] as PropType<CalendarValue>),\n defaultValue: [String, Object] as PropType<CalendarValue>,\n mode: String as PropType<\"single\" | \"range\">,\n defaultFocusedValue: String,\n locale: String,\n calendarSystem: Object as PropType<CalendarProps[\"calendarSystem\"]>,\n min: String,\n max: String,\n isDateUnavailable: Function as PropType<(date: string) => boolean>,\n disabled: Boolean,\n readOnly: Boolean,\n fixedWeeks: Boolean,\n id: String,\n },\n emits: [\"update:value\", \"valueChange\", \"monthChange\"],\n setup(props, { attrs, slots, emit }) {\n const generated = useId()\n const direction = useDirectionAround()\n scope.provide(\n controller(within(createCalendar, { direction }), () => ({\n id: props.id ?? generated,\n value: props.value,\n defaultValue: props.defaultValue,\n mode: props.mode,\n defaultFocusedValue: props.defaultFocusedValue,\n locale: props.locale,\n calendarSystem: props.calendarSystem,\n min: props.min,\n max: props.max,\n isDateUnavailable: props.isDateUnavailable,\n disabled: props.disabled,\n readOnly: props.readOnly,\n fixedWeeks: props.fixedWeeks,\n onValueChange(value: CalendarValue, details: ChangeDetails) {\n emit(\"valueChange\", value, details)\n if (!details.canceled) emit(\"update:value\", value)\n },\n onMonthChange: (month: string) => emit(\"monthChange\", month),\n }))\n )\n return () => h(RootElement, attrs, slots)\n },\n})
|
|
1
|
+
{"version":3,"file":"calendar.js","names":[],"sources":["../../../../packages/vue/src/calendar.ts"],"sourcesContent":["import { within } from \"@kirana-ui/core\"\nimport type { ChangeDetails } from \"@kirana-ui/core\"\nimport { createCalendar } from \"@kirana-ui/core/calendar\"\nimport type {\n Calendar as Controller,\n CalendarDay,\n CalendarProps,\n CalendarValue,\n CalendarWeekday,\n} from \"@kirana-ui/core/calendar\"\nimport { Fragment, defineComponent, h, useId } from \"vue\"\nimport type { PropType } from \"vue\"\n\nimport { useDirectionAround } from \"./direction-context.ts\"\nimport { written } from \"./element.ts\"\nimport { context, controller, fromSignal, optional, partComponent } from \"./runtime.ts\"\nimport type {\n Changes,\n PartComponent,\n PartComponentProps,\n PlainComponent,\n StatesOf,\n} from \"./runtime.ts\"\n\ntype State = StatesOf<\"calendar\">\n\n/**\n * The calendar its parts are inside. Exported for a component that is made of one (a date picker\n * provides its own to the calendar's parts).\n */\nconst scope = context<Controller>(\"Calendar\")\n/** For a component made of this one's parts: a date picker. */\nexport { scope as calendarScope }\n\nconst RootElement = partComponent(\"CalendarRootElement\", \"div\", () => scope.use().root)\n\nexport type RootProps = Omit<CalendarProps, \"id\" | \"onValueChange\" | \"onMonthChange\"> & {\n id?: string | undefined\n} & PartComponentProps\n\nexport type RootEmits = Changes<\"value\", CalendarValue> & {\n /** The month shown has changed: its first day. */\n monthChange: (month: string) => void\n}\n\n/** `v-model:value`, `@value-change=\"(value, details) => …\"`, `@month-change=\"(month) => …\"`. */\nconst Root = defineComponent({\n name: \"CalendarRoot\",\n inheritAttrs: false,\n props: {\n value: optional([String, Object] as PropType<CalendarValue>),\n defaultValue: [String, Object] as PropType<CalendarValue>,\n mode: String as PropType<\"single\" | \"range\">,\n defaultFocusedValue: String,\n locale: String,\n calendarSystem: Object as PropType<CalendarProps[\"calendarSystem\"]>,\n min: String,\n max: String,\n isDateUnavailable: Function as PropType<(date: string) => boolean>,\n disabled: Boolean,\n readOnly: Boolean,\n fixedWeeks: Boolean,\n id: String,\n },\n emits: [\"update:value\", \"valueChange\", \"monthChange\"],\n setup(props, { attrs, slots, emit }) {\n const generated = useId()\n const direction = useDirectionAround()\n scope.provide(\n controller(within(createCalendar, { direction }), () => ({\n id: props.id ?? generated,\n value: props.value,\n defaultValue: props.defaultValue,\n mode: props.mode,\n defaultFocusedValue: props.defaultFocusedValue,\n locale: props.locale,\n calendarSystem: props.calendarSystem,\n min: props.min,\n max: props.max,\n isDateUnavailable: props.isDateUnavailable,\n disabled: props.disabled,\n readOnly: props.readOnly,\n fixedWeeks: props.fixedWeeks,\n onValueChange(value: CalendarValue, details: ChangeDetails) {\n emit(\"valueChange\", value, details)\n if (!details.canceled) emit(\"update:value\", value)\n },\n onMonthChange: (month: string) => emit(\"monthChange\", month),\n }))\n )\n return () => h(RootElement, attrs, slots)\n },\n}) as unknown as PartComponent<\"div\", State[\"root\"], RootProps, RootEmits>\n\nexport type HeadingProps = PartComponentProps\n\n/** Names the month shown, unless it is given something else to say. */\nconst Heading = defineComponent({\n name: \"CalendarHeading\",\n inheritAttrs: false,\n setup(_, { attrs, slots }) {\n const title = fromSignal(scope.use().title)\n // With `as-child` the caller's element holds the text, unless it writes its own.\n const HeadingElement = partComponent(\n \"CalendarHeadingElement\",\n \"div\",\n () => scope.use().heading,\n written(() => title.value)\n )\n return () => h(HeadingElement, attrs, slots.default ?? (() => title.value))\n },\n}) as unknown as PartComponent<\"div\", State[\"heading\"], HeadingProps>\n\nexport type WeekdaysProps = Record<never, never>\n\n/** Its slot once for each day of the week, in the locale's order: `v-slot=\"{ weekday }\"`. */\nconst Weekdays = defineComponent({\n name: \"CalendarWeekdays\",\n setup(_, { slots }) {\n const weekdays = fromSignal(scope.use().weekdays)\n return () =>\n weekdays.value.map((weekday) =>\n h(Fragment, { key: weekday.index }, slots.default?.({ weekday }))\n )\n },\n}) as unknown as PlainComponent<WeekdaysProps, {}, { weekday: CalendarWeekday }>\n\nexport type WeeksProps = Record<never, never>\n\n/** Its slot once for each week of the month shown: `v-slot=\"{ week }\"`. */\nconst Weeks = defineComponent({\n name: \"CalendarWeeks\",\n setup(_, { slots }) {\n const weeks = fromSignal(scope.use().weeks)\n return () =>\n weeks.value.map((week) => h(Fragment, { key: week[0]!.date }, slots.default?.({ week })))\n },\n}) as unknown as PlainComponent<WeeksProps, {}, { week: readonly CalendarDay[] }>\n\nexport interface HeadCellProps extends PartComponentProps {\n /** The day of the week it names, as `Calendar.Weekdays` gives it. */\n weekday: CalendarWeekday\n}\n\nconst HeadCell = defineComponent({\n name: \"CalendarHeadCell\",\n inheritAttrs: false,\n props: { weekday: { type: Object as PropType<CalendarWeekday>, required: true } },\n setup(props, { attrs, slots }) {\n const part = scope.use().headCell(props.weekday)\n const Element = partComponent(\"CalendarHeadCellElement\", \"th\", () => part)\n return () => h(Element, attrs, slots)\n },\n}) as unknown as PartComponent<\"th\", State[\"headCell\"], HeadCellProps>\n\nexport interface CellProps extends PartComponentProps {\n /** The day it is for, as a week of `Calendar.Weeks` gives it. */\n date: string\n}\nexport type DayProps = CellProps\nexport type PreviousProps = PartComponentProps\nexport type NextProps = PartComponentProps\nexport type GridProps = PartComponentProps\n\nconst dated = <Tag extends string, Member extends \"cell\" | \"day\">(\n name: string,\n tag: Tag,\n member: Member\n) =>\n defineComponent({\n name,\n inheritAttrs: false,\n props: { date: { type: String, required: true } },\n setup(props, { attrs, slots }) {\n const part = scope.use()[member](props.date)\n const Element = partComponent<string>(`${name}Element`, tag, () => part)\n return () => h(Element, attrs, slots)\n },\n }) as unknown as PartComponent<Tag, State[Member], CellProps>\n\nexport const Calendar = {\n Root,\n Heading,\n Previous: partComponent<\"button\", State[\"previous\"]>(\n \"CalendarPrevious\",\n \"button\",\n () => scope.use().previous\n ),\n Next: partComponent<\"button\", State[\"next\"]>(\"CalendarNext\", \"button\", () => scope.use().next),\n Grid: partComponent<\"table\", State[\"grid\"]>(\"CalendarGrid\", \"table\", () => scope.use().grid),\n Weekdays,\n HeadCell,\n Weeks,\n Cell: dated(\"CalendarCell\", \"td\", \"cell\"),\n Day: dated(\"CalendarDay\", \"button\", \"day\"),\n}\n"],"mappings":";;;;;;;;;;;AA8BA,MAAM,QAAQ,QAAoB,UAAU;AAI5C,MAAM,cAAc,cAAc,uBAAuB,aAAa,MAAM,IAAI,CAAC,CAAC,IAAI;;AAYtF,MAAM,OAAO,gBAAgB;CAC3B,MAAM;CACN,cAAc;CACd,OAAO;EACL,OAAO,SAAS,CAAC,QAAQ,MAAM,CAA4B;EAC3D,cAAc,CAAC,QAAQ,MAAM;EAC7B,MAAM;EACN,qBAAqB;EACrB,QAAQ;EACR,gBAAgB;EAChB,KAAK;EACL,KAAK;EACL,mBAAmB;EACnB,UAAU;EACV,UAAU;EACV,YAAY;EACZ,IAAI;CACN;CACA,OAAO;EAAC;EAAgB;EAAe;CAAa;CACpD,MAAM,OAAO,EAAE,OAAO,OAAO,QAAQ;EACnC,MAAM,YAAY,MAAM;EACxB,MAAM,YAAY,mBAAmB;EACrC,MAAM,QACJ,WAAW,OAAO,gBAAgB,EAAE,UAAU,CAAC,UAAU;GACvD,IAAI,MAAM,MAAM;GAChB,OAAO,MAAM;GACb,cAAc,MAAM;GACpB,MAAM,MAAM;GACZ,qBAAqB,MAAM;GAC3B,QAAQ,MAAM;GACd,gBAAgB,MAAM;GACtB,KAAK,MAAM;GACX,KAAK,MAAM;GACX,mBAAmB,MAAM;GACzB,UAAU,MAAM;GAChB,UAAU,MAAM;GAChB,YAAY,MAAM;GAClB,cAAc,OAAsB,SAAwB;IAC1D,KAAK,eAAe,OAAO,OAAO;IAClC,IAAI,CAAC,QAAQ,UAAU,KAAK,gBAAgB,KAAK;GACnD;GACA,gBAAgB,UAAkB,KAAK,eAAe,KAAK;EAC7D,EAAE,CACJ;EACA,aAAa,EAAE,aAAa,OAAO,KAAK;CAC1C;AACF,CAAC;;AAKD,MAAM,UAAU,gBAAgB;CAC9B,MAAM;CACN,cAAc;CACd,MAAM,GAAG,EAAE,OAAO,SAAS;EACzB,MAAM,QAAQ,WAAW,MAAM,IAAI,CAAC,CAAC,KAAK;EAE1C,MAAM,iBAAiB,cACrB,0BACA,aACM,MAAM,IAAI,CAAC,CAAC,SAClB,cAAc,MAAM,KAAK,CAC3B;EACA,aAAa,EAAE,gBAAgB,OAAO,MAAM,kBAAkB,MAAM,MAAM;CAC5E;AACF,CAAC;;AAKD,MAAM,WAAW,gBAAgB;CAC/B,MAAM;CACN,MAAM,GAAG,EAAE,SAAS;EAClB,MAAM,WAAW,WAAW,MAAM,IAAI,CAAC,CAAC,QAAQ;EAChD,aACE,SAAS,MAAM,KAAK,YAClB,EAAE,UAAU,EAAE,KAAK,QAAQ,MAAM,GAAG,MAAM,UAAU,EAAE,QAAQ,CAAC,CAAC,CAClE;CACJ;AACF,CAAC;;AAKD,MAAM,QAAQ,gBAAgB;CAC5B,MAAM;CACN,MAAM,GAAG,EAAE,SAAS;EAClB,MAAM,QAAQ,WAAW,MAAM,IAAI,CAAC,CAAC,KAAK;EAC1C,aACE,MAAM,MAAM,KAAK,SAAS,EAAE,UAAU,EAAE,KAAK,KAAK,EAAE,CAAE,KAAK,GAAG,MAAM,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;CAC5F;AACF,CAAC;AAOD,MAAM,WAAW,gBAAgB;CAC/B,MAAM;CACN,cAAc;CACd,OAAO,EAAE,SAAS;EAAE,MAAM;EAAqC,UAAU;CAAK,EAAE;CAChF,MAAM,OAAO,EAAE,OAAO,SAAS;EAC7B,MAAM,OAAO,MAAM,IAAI,CAAC,CAAC,SAAS,MAAM,OAAO;EAC/C,MAAM,UAAU,cAAc,2BAA2B,YAAY,IAAI;EACzE,aAAa,EAAE,SAAS,OAAO,KAAK;CACtC;AACF,CAAC;AAWD,MAAM,SACJ,MACA,KACA,WAEA,gBAAgB;CACd;CACA,cAAc;CACd,OAAO,EAAE,MAAM;EAAE,MAAM;EAAQ,UAAU;CAAK,EAAE;CAChD,MAAM,OAAO,EAAE,OAAO,SAAS;EAC7B,MAAM,OAAO,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI;EAC3C,MAAM,UAAU,cAAsB,GAAG,KAAK,UAAU,WAAW,IAAI;EACvE,aAAa,EAAE,SAAS,OAAO,KAAK;CACtC;AACF,CAAC;AAEH,MAAa,WAAW;CACtB;CACA;CACA,UAAU,cACR,oBACA,gBACM,MAAM,IAAI,CAAC,CAAC,QACpB;CACA,MAAM,cAAuC,gBAAgB,gBAAgB,MAAM,IAAI,CAAC,CAAC,IAAI;CAC7F,MAAM,cAAsC,gBAAgB,eAAe,MAAM,IAAI,CAAC,CAAC,IAAI;CAC3F;CACA;CACA;CACA,MAAM,MAAM,gBAAgB,MAAM,MAAM;CACxC,KAAK,MAAM,eAAe,UAAU,KAAK;AAC3C"}
|
package/src/carousel.d.ts
CHANGED
|
@@ -1,61 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Changes, PartComponent, PartComponentProps } from "./runtime.js";
|
|
2
|
+
import { CarouselProps } from "@kirana-ui/core/carousel";
|
|
3
|
+
export type RootProps = Omit<CarouselProps, "id" | "onIndexChange"> & {
|
|
4
|
+
id?: string | undefined;
|
|
5
|
+
} & PartComponentProps;
|
|
6
|
+
export type RootEmits = Changes<"index", number>;
|
|
7
|
+
export type ViewportProps = PartComponentProps;
|
|
8
|
+
export type PreviousProps = PartComponentProps;
|
|
9
|
+
export type NextProps = PartComponentProps;
|
|
10
|
+
export interface ItemProps extends PartComponentProps {
|
|
11
|
+
/** Its place among the slides, from 0. */
|
|
12
|
+
index: number;
|
|
13
|
+
}
|
|
14
|
+
export interface IndicatorProps extends PartComponentProps {
|
|
15
|
+
/** The slide it goes to, from 0. */
|
|
16
|
+
index: number;
|
|
17
|
+
}
|
|
3
18
|
export declare const Carousel: {
|
|
4
|
-
Root:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
id: StringConstructor;
|
|
24
|
-
}>> & Readonly<{
|
|
25
|
-
onIndexChange?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
"onUpdate:index"?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}>, {
|
|
28
|
-
index: number;
|
|
29
|
-
loop: boolean;
|
|
30
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
|
-
Viewport: import("vue").Component;
|
|
32
|
-
Item: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
33
|
-
index: {
|
|
34
|
-
type: NumberConstructor;
|
|
35
|
-
required: true;
|
|
36
|
-
};
|
|
37
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
-
index: {
|
|
41
|
-
type: NumberConstructor;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
45
|
-
Previous: import("vue").Component;
|
|
46
|
-
Next: import("vue").Component;
|
|
47
|
-
Indicator: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
48
|
-
index: {
|
|
49
|
-
type: NumberConstructor;
|
|
50
|
-
required: true;
|
|
51
|
-
};
|
|
52
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
53
|
-
[key: string]: any;
|
|
54
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
-
index: {
|
|
56
|
-
type: NumberConstructor;
|
|
57
|
-
required: true;
|
|
58
|
-
};
|
|
59
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
Root: PartComponent<"div", {
|
|
20
|
+
readonly orientation?: "horizontal" | "vertical" | undefined;
|
|
21
|
+
}, RootProps, RootEmits>;
|
|
22
|
+
Viewport: PartComponent<"div", {
|
|
23
|
+
readonly orientation?: "horizontal" | "vertical" | undefined;
|
|
24
|
+
}, PartComponentProps, {}, unknown>;
|
|
25
|
+
Item: PartComponent<"div", {
|
|
26
|
+
readonly orientation?: "horizontal" | "vertical" | undefined;
|
|
27
|
+
readonly current?: true | undefined;
|
|
28
|
+
}, ItemProps>;
|
|
29
|
+
Previous: PartComponent<"button", {
|
|
30
|
+
readonly disabled?: true | undefined;
|
|
31
|
+
}, PartComponentProps, {}, unknown>;
|
|
32
|
+
Next: PartComponent<"button", {
|
|
33
|
+
readonly disabled?: true | undefined;
|
|
34
|
+
}, PartComponentProps, {}, unknown>;
|
|
35
|
+
Indicator: PartComponent<"button", {
|
|
36
|
+
readonly current?: true | undefined;
|
|
37
|
+
}, IndicatorProps>;
|
|
60
38
|
};
|
|
61
39
|
//# sourceMappingURL=carousel.d.ts.map
|
package/src/carousel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.js","names":[],"sources":["../../../../packages/vue/src/carousel.ts"],"sourcesContent":["import { within } from \"@kirana-ui/core\"\nimport type { ChangeDetails, Orientation } from \"@kirana-ui/core\"\nimport { createCarousel } from \"@kirana-ui/core/carousel\"\nimport type { Carousel as Controller } from \"@kirana-ui/core/carousel\"\nimport { defineComponent, h, useId } from \"vue\"\nimport type { PropType } from \"vue\"\n\nimport { useDirectionAround } from \"./direction-context.ts\"\nimport { context, controller, optional, partComponent } from \"./runtime.ts\"\n\nconst scope = context<Controller>(\"Carousel\")\n\nconst RootElement = partComponent(\"CarouselRootElement\", \"div\", () => scope.use().root)\n\n/** `v-model:index`, and `@index-change=\"(index, details) => …\"`. */\nconst Root = defineComponent({\n name: \"CarouselRoot\",\n inheritAttrs: false,\n props: {\n index: optional(Number),\n defaultIndex: Number,\n orientation: String as PropType<Orientation>,\n loop: Boolean,\n id: String,\n },\n emits: [\"update:index\", \"indexChange\"],\n setup(props, { attrs, slots, emit }) {\n const generated = useId()\n const direction = useDirectionAround()\n scope.provide(\n controller(within(createCarousel, { direction }), () => ({\n id: props.id ?? generated,\n index: props.index,\n defaultIndex: props.defaultIndex,\n orientation: props.orientation,\n loop: props.loop,\n onIndexChange: (index: number, details: ChangeDetails) => {\n emit(\"indexChange\", index, details)\n if (!details.canceled) emit(\"update:index\", index)\n },\n }))\n )\n return () => h(RootElement, attrs, slots)\n },\n})\n\nconst Viewport = partComponent(\"CarouselViewport\"
|
|
1
|
+
{"version":3,"file":"carousel.js","names":[],"sources":["../../../../packages/vue/src/carousel.ts"],"sourcesContent":["import { within } from \"@kirana-ui/core\"\nimport type { ChangeDetails, Orientation } from \"@kirana-ui/core\"\nimport { createCarousel } from \"@kirana-ui/core/carousel\"\nimport type { CarouselProps, Carousel as Controller } from \"@kirana-ui/core/carousel\"\nimport { defineComponent, h, useId } from \"vue\"\nimport type { PropType } from \"vue\"\n\nimport { useDirectionAround } from \"./direction-context.ts\"\nimport { context, controller, optional, partComponent } from \"./runtime.ts\"\nimport type { Changes, PartComponent, PartComponentProps, StatesOf } from \"./runtime.ts\"\n\ntype State = StatesOf<\"carousel\">\n\nconst scope = context<Controller>(\"Carousel\")\n\nconst RootElement = partComponent(\"CarouselRootElement\", \"div\", () => scope.use().root)\n\nexport type RootProps = Omit<CarouselProps, \"id\" | \"onIndexChange\"> & {\n id?: string | undefined\n} & PartComponentProps\n\nexport type RootEmits = Changes<\"index\", number>\n\n/** `v-model:index`, and `@index-change=\"(index, details) => …\"`. */\nconst Root = defineComponent({\n name: \"CarouselRoot\",\n inheritAttrs: false,\n props: {\n index: optional(Number),\n defaultIndex: Number,\n orientation: String as PropType<Orientation>,\n loop: Boolean,\n id: String,\n },\n emits: [\"update:index\", \"indexChange\"],\n setup(props, { attrs, slots, emit }) {\n const generated = useId()\n const direction = useDirectionAround()\n scope.provide(\n controller(within(createCarousel, { direction }), () => ({\n id: props.id ?? generated,\n index: props.index,\n defaultIndex: props.defaultIndex,\n orientation: props.orientation,\n loop: props.loop,\n onIndexChange: (index: number, details: ChangeDetails) => {\n emit(\"indexChange\", index, details)\n if (!details.canceled) emit(\"update:index\", index)\n },\n }))\n )\n return () => h(RootElement, attrs, slots)\n },\n}) as unknown as PartComponent<\"div\", State[\"root\"], RootProps, RootEmits>\n\nexport type ViewportProps = PartComponentProps\nexport type PreviousProps = PartComponentProps\nexport type NextProps = PartComponentProps\nconst Viewport = partComponent<\"div\", State[\"viewport\"]>(\n \"CarouselViewport\",\n \"div\",\n () => scope.use().viewport\n)\nconst Previous = partComponent<\"button\", State[\"previous\"]>(\n \"CarouselPrevious\",\n \"button\",\n () => scope.use().previous\n)\nconst Next = partComponent<\"button\", State[\"next\"]>(\n \"CarouselNext\",\n \"button\",\n () => scope.use().next\n)\n\nexport interface ItemProps extends PartComponentProps {\n /** Its place among the slides, from 0. */\n index: number\n}\n\nconst Item = defineComponent({\n name: \"CarouselItem\",\n inheritAttrs: false,\n props: { index: { type: Number, required: true } },\n setup(props, { attrs, slots }) {\n const part = scope.use().item(props.index)\n const Element = partComponent(\"CarouselItemElement\", \"div\", () => part)\n return () => h(Element, attrs, slots)\n },\n}) as unknown as PartComponent<\"div\", State[\"item\"], ItemProps>\n\nexport interface IndicatorProps extends PartComponentProps {\n /** The slide it goes to, from 0. */\n index: number\n}\n\nconst Indicator = defineComponent({\n name: \"CarouselIndicator\",\n inheritAttrs: false,\n props: { index: { type: Number, required: true } },\n setup(props, { attrs, slots }) {\n const part = scope.use().indicator(props.index)\n const Element = partComponent(\"CarouselIndicatorElement\", \"button\", () => part)\n return () => h(Element, attrs, slots)\n },\n}) as unknown as PartComponent<\"button\", State[\"indicator\"], IndicatorProps>\n\nexport const Carousel = { Root, Viewport, Item, Previous, Next, Indicator }\n"],"mappings":";;;;;;AAaA,MAAM,QAAQ,QAAoB,UAAU;AAE5C,MAAM,cAAc,cAAc,uBAAuB,aAAa,MAAM,IAAI,CAAC,CAAC,IAAI;;AAStF,MAAM,OAAO,gBAAgB;CAC3B,MAAM;CACN,cAAc;CACd,OAAO;EACL,OAAO,SAAS,MAAM;EACtB,cAAc;EACd,aAAa;EACb,MAAM;EACN,IAAI;CACN;CACA,OAAO,CAAC,gBAAgB,aAAa;CACrC,MAAM,OAAO,EAAE,OAAO,OAAO,QAAQ;EACnC,MAAM,YAAY,MAAM;EACxB,MAAM,YAAY,mBAAmB;EACrC,MAAM,QACJ,WAAW,OAAO,gBAAgB,EAAE,UAAU,CAAC,UAAU;GACvD,IAAI,MAAM,MAAM;GAChB,OAAO,MAAM;GACb,cAAc,MAAM;GACpB,aAAa,MAAM;GACnB,MAAM,MAAM;GACZ,gBAAgB,OAAe,YAA2B;IACxD,KAAK,eAAe,OAAO,OAAO;IAClC,IAAI,CAAC,QAAQ,UAAU,KAAK,gBAAgB,KAAK;GACnD;EACF,EAAE,CACJ;EACA,aAAa,EAAE,aAAa,OAAO,KAAK;CAC1C;AACF,CAAC;AAKD,MAAM,WAAW,cACf,oBACA,aACM,MAAM,IAAI,CAAC,CAAC,QACpB;AACA,MAAM,WAAW,cACf,oBACA,gBACM,MAAM,IAAI,CAAC,CAAC,QACpB;AACA,MAAM,OAAO,cACX,gBACA,gBACM,MAAM,IAAI,CAAC,CAAC,IACpB;AAkCA,MAAa,WAAW;CAAE;CAAM;CAAU,MA3B7B,gBAAgB;EAC3B,MAAM;EACN,cAAc;EACd,OAAO,EAAE,OAAO;GAAE,MAAM;GAAQ,UAAU;EAAK,EAAE;EACjD,MAAM,OAAO,EAAE,OAAO,SAAS;GAC7B,MAAM,OAAO,MAAM,IAAI,CAAC,CAAC,KAAK,MAAM,KAAK;GACzC,MAAM,UAAU,cAAc,uBAAuB,aAAa,IAAI;GACtE,aAAa,EAAE,SAAS,OAAO,KAAK;EACtC;CACF,CAkB0C;CAAM;CAAU;CAAM,WAX9C,gBAAgB;EAChC,MAAM;EACN,cAAc;EACd,OAAO,EAAE,OAAO;GAAE,MAAM;GAAQ,UAAU;EAAK,EAAE;EACjD,MAAM,OAAO,EAAE,OAAO,SAAS;GAC7B,MAAM,OAAO,MAAM,IAAI,CAAC,CAAC,UAAU,MAAM,KAAK;GAC9C,MAAM,UAAU,cAAc,4BAA4B,gBAAgB,IAAI;GAC9E,aAAa,EAAE,SAAS,OAAO,KAAK;EACtC;CACF,CAEgE;AAAU"}
|
package/src/checkbox.d.ts
CHANGED
|
@@ -1,53 +1,31 @@
|
|
|
1
|
+
import { Changes, PartComponent, PartComponentProps } from "./runtime.js";
|
|
2
|
+
import { CheckboxProps } from "@kirana-ui/core/checkbox";
|
|
3
|
+
export type RootProps = Omit<CheckboxProps, "id" | "onCheckedChange"> & {
|
|
4
|
+
id?: string | undefined;
|
|
5
|
+
} & PartComponentProps;
|
|
6
|
+
export type RootEmits = Changes<"checked", boolean>;
|
|
7
|
+
export interface IndicatorProps extends PartComponentProps {
|
|
8
|
+
/** Keeps the mark in the page while the box is unchecked. */
|
|
9
|
+
keepMounted?: boolean | undefined;
|
|
10
|
+
}
|
|
1
11
|
export declare const Checkbox: {
|
|
2
|
-
Root:
|
|
3
|
-
checked
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
indeterminate
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: undefined;
|
|
22
|
-
};
|
|
23
|
-
defaultChecked: BooleanConstructor;
|
|
24
|
-
indeterminate: BooleanConstructor;
|
|
25
|
-
disabled: BooleanConstructor;
|
|
26
|
-
readOnly: BooleanConstructor;
|
|
27
|
-
required: BooleanConstructor;
|
|
28
|
-
name: StringConstructor;
|
|
29
|
-
form: StringConstructor;
|
|
30
|
-
value: StringConstructor;
|
|
31
|
-
id: StringConstructor;
|
|
32
|
-
}>> & Readonly<{
|
|
33
|
-
onCheckedChange?: ((...args: any[]) => any) | undefined;
|
|
34
|
-
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
35
|
-
}>, {
|
|
36
|
-
checked: boolean;
|
|
37
|
-
defaultChecked: boolean;
|
|
38
|
-
indeterminate: boolean;
|
|
39
|
-
disabled: boolean;
|
|
40
|
-
readOnly: boolean;
|
|
41
|
-
required: boolean;
|
|
42
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
43
|
-
Indicator: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
44
|
-
keepMounted: BooleanConstructor;
|
|
45
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
|
-
[key: string]: any;
|
|
47
|
-
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
-
keepMounted: BooleanConstructor;
|
|
49
|
-
}>> & Readonly<{}>, {
|
|
50
|
-
keepMounted: boolean;
|
|
51
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
Root: PartComponent<"span", {
|
|
13
|
+
readonly checked?: true | undefined;
|
|
14
|
+
readonly unchecked?: true | undefined;
|
|
15
|
+
readonly disabled?: true | undefined;
|
|
16
|
+
readonly readonly?: true | undefined;
|
|
17
|
+
readonly required?: true | undefined;
|
|
18
|
+
readonly indeterminate?: true | undefined;
|
|
19
|
+
}, RootProps, RootEmits>;
|
|
20
|
+
Indicator: PartComponent<"span", {
|
|
21
|
+
readonly checked?: true | undefined;
|
|
22
|
+
readonly unchecked?: true | undefined;
|
|
23
|
+
readonly disabled?: true | undefined;
|
|
24
|
+
readonly readonly?: true | undefined;
|
|
25
|
+
readonly required?: true | undefined;
|
|
26
|
+
readonly indeterminate?: true | undefined;
|
|
27
|
+
readonly startingStyle?: true | undefined;
|
|
28
|
+
readonly endingStyle?: true | undefined;
|
|
29
|
+
}, IndicatorProps>;
|
|
52
30
|
};
|
|
53
31
|
//# sourceMappingURL=checkbox.d.ts.map
|
package/src/checkbox.js
CHANGED
|
@@ -5,8 +5,8 @@ import { defineComponent, h, useId } from "vue";
|
|
|
5
5
|
import { createCheckbox } from "@kirana-ui/core/checkbox";
|
|
6
6
|
// src/checkbox.ts
|
|
7
7
|
const scope = context("Checkbox");
|
|
8
|
-
const RootElement = partComponent("CheckboxRootElement", "span", () => scope.use().root);
|
|
9
8
|
const Input = partComponent("CheckboxInput", "input", () => scope.use().input);
|
|
9
|
+
const RootElement = partComponent("CheckboxRootElement", "span", () => scope.use().root, (content) => [content, h(Input)]);
|
|
10
10
|
/** `v-model:checked`, or `checked` with `@checked-change="(checked, details) => …"`. */
|
|
11
11
|
const Root = defineComponent({
|
|
12
12
|
name: "CheckboxRoot",
|
|
@@ -43,7 +43,7 @@ const Root = defineComponent({
|
|
|
43
43
|
if (!details.canceled) emit("update:checked", checked);
|
|
44
44
|
}
|
|
45
45
|
})));
|
|
46
|
-
return () => h(RootElement, attrs,
|
|
46
|
+
return () => h(RootElement, attrs, slots);
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
const IndicatorElement = partComponent("CheckboxIndicatorElement", "span", () => scope.use().indicator);
|
package/src/checkbox.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","names":[],"sources":["../../../../packages/vue/src/checkbox.ts"],"sourcesContent":["import { within } from \"@kirana-ui/core\"\nimport type { ChangeDetails } from \"@kirana-ui/core\"\nimport { createCheckbox } from \"@kirana-ui/core/checkbox\"\nimport type { Checkbox as Controller } from \"@kirana-ui/core/checkbox\"\nimport { defineComponent, h, useId } from \"vue\"\n\nimport { useFieldAround } from \"./field-context.ts\"\nimport { context, controller, fromSignal, optional, partComponent } from \"./runtime.ts\"\n\nconst scope = context<Controller>(\"Checkbox\")\n\nconst
|
|
1
|
+
{"version":3,"file":"checkbox.js","names":[],"sources":["../../../../packages/vue/src/checkbox.ts"],"sourcesContent":["import { within } from \"@kirana-ui/core\"\nimport type { ChangeDetails } from \"@kirana-ui/core\"\nimport { createCheckbox } from \"@kirana-ui/core/checkbox\"\nimport type { CheckboxProps, Checkbox as Controller } from \"@kirana-ui/core/checkbox\"\nimport { defineComponent, h, useId } from \"vue\"\n\nimport { useFieldAround } from \"./field-context.ts\"\nimport { context, controller, fromSignal, optional, partComponent } from \"./runtime.ts\"\nimport type { Changes, PartComponent, PartComponentProps, StatesOf } from \"./runtime.ts\"\n\ntype State = StatesOf<\"checkbox\">\n\nconst scope = context<Controller>(\"Checkbox\")\n\nconst Input = partComponent(\"CheckboxInput\", \"input\", () => scope.use().input)\n// Its native input is the element's last child, whatever element the caller asked for.\nconst RootElement = partComponent(\n \"CheckboxRootElement\",\n \"span\",\n () => scope.use().root,\n (content) => [content, h(Input)]\n)\n\nexport type RootProps = Omit<CheckboxProps, \"id\" | \"onCheckedChange\"> & {\n id?: string | undefined\n} & PartComponentProps\n\nexport type RootEmits = Changes<\"checked\", boolean>\n\n/** `v-model:checked`, or `checked` with `@checked-change=\"(checked, details) => …\"`. */\nconst Root = defineComponent({\n name: \"CheckboxRoot\",\n inheritAttrs: false,\n props: {\n checked: optional(Boolean),\n defaultChecked: Boolean,\n indeterminate: Boolean,\n disabled: Boolean,\n readOnly: Boolean,\n required: Boolean,\n name: String,\n form: String,\n value: String,\n id: String,\n },\n emits: [\"update:checked\", \"checkedChange\"],\n setup(props, { attrs, slots, emit }) {\n const generated = useId()\n const field = useFieldAround()\n scope.provide(\n controller(within(createCheckbox, { field }), () => ({\n id: props.id ?? generated,\n checked: props.checked,\n defaultChecked: props.defaultChecked,\n indeterminate: props.indeterminate,\n disabled: props.disabled,\n readOnly: props.readOnly,\n required: props.required,\n name: props.name,\n form: props.form,\n value: props.value,\n onCheckedChange(checked: boolean, details: ChangeDetails) {\n emit(\"checkedChange\", checked, details)\n if (!details.canceled) emit(\"update:checked\", checked)\n },\n }))\n )\n return () => h(RootElement, attrs, slots)\n },\n}) as unknown as PartComponent<\"span\", State[\"root\"], RootProps, RootEmits>\n\nconst IndicatorElement = partComponent(\n \"CheckboxIndicatorElement\",\n \"span\",\n () => scope.use().indicator\n)\n\nexport interface IndicatorProps extends PartComponentProps {\n /** Keeps the mark in the page while the box is unchecked. */\n keepMounted?: boolean | undefined\n}\n\n/** `keep-mounted` keeps the mark in the page while the box is unchecked. */\nconst Indicator = defineComponent({\n name: \"CheckboxIndicator\",\n inheritAttrs: false,\n props: { keepMounted: Boolean },\n setup(props, { attrs, slots }) {\n const mounted = fromSignal(scope.use().indicatorMounted)\n return () => (mounted.value || props.keepMounted ? h(IndicatorElement, attrs, slots) : null)\n },\n}) as unknown as PartComponent<\"span\", State[\"indicator\"], IndicatorProps>\n\nexport const Checkbox = { Root, Indicator }\n"],"mappings":";;;;;;AAYA,MAAM,QAAQ,QAAoB,UAAU;AAE5C,MAAM,QAAQ,cAAc,iBAAiB,eAAe,MAAM,IAAI,CAAC,CAAC,KAAK;AAE7E,MAAM,cAAc,cAClB,uBACA,cACM,MAAM,IAAI,CAAC,CAAC,OACjB,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,CACjC;;AASA,MAAM,OAAO,gBAAgB;CAC3B,MAAM;CACN,cAAc;CACd,OAAO;EACL,SAAS,SAAS,OAAO;EACzB,gBAAgB;EAChB,eAAe;EACf,UAAU;EACV,UAAU;EACV,UAAU;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACP,IAAI;CACN;CACA,OAAO,CAAC,kBAAkB,eAAe;CACzC,MAAM,OAAO,EAAE,OAAO,OAAO,QAAQ;EACnC,MAAM,YAAY,MAAM;EACxB,MAAM,QAAQ,eAAe;EAC7B,MAAM,QACJ,WAAW,OAAO,gBAAgB,EAAE,MAAM,CAAC,UAAU;GACnD,IAAI,MAAM,MAAM;GAChB,SAAS,MAAM;GACf,gBAAgB,MAAM;GACtB,eAAe,MAAM;GACrB,UAAU,MAAM;GAChB,UAAU,MAAM;GAChB,UAAU,MAAM;GAChB,MAAM,MAAM;GACZ,MAAM,MAAM;GACZ,OAAO,MAAM;GACb,gBAAgB,SAAkB,SAAwB;IACxD,KAAK,iBAAiB,SAAS,OAAO;IACtC,IAAI,CAAC,QAAQ,UAAU,KAAK,kBAAkB,OAAO;GACvD;EACF,EAAE,CACJ;EACA,aAAa,EAAE,aAAa,OAAO,KAAK;CAC1C;AACF,CAAC;AAED,MAAM,mBAAmB,cACvB,4BACA,cACM,MAAM,IAAI,CAAC,CAAC,SACpB;AAkBA,MAAa,WAAW;CAAE;CAAM,WAVd,gBAAgB;EAChC,MAAM;EACN,cAAc;EACd,OAAO,EAAE,aAAa,QAAQ;EAC9B,MAAM,OAAO,EAAE,OAAO,SAAS;GAC7B,MAAM,UAAU,WAAW,MAAM,IAAI,CAAC,CAAC,gBAAgB;GACvD,aAAc,QAAQ,SAAS,MAAM,cAAc,EAAE,kBAAkB,OAAO,KAAK,IAAI;EACzF;CACF,CAEgC;AAAU"}
|
package/src/collapsible.d.ts
CHANGED
|
@@ -1,39 +1,29 @@
|
|
|
1
|
+
import { Changes, PartComponent, PartComponentProps } from "./runtime.js";
|
|
2
|
+
import { CollapsibleProps } from "@kirana-ui/core/collapsible";
|
|
3
|
+
export type RootProps = Omit<CollapsibleProps, "id" | "onOpenChange"> & {
|
|
4
|
+
id?: string | undefined;
|
|
5
|
+
} & PartComponentProps;
|
|
6
|
+
export type RootEmits = Changes<"open", boolean>;
|
|
7
|
+
export type TriggerProps = PartComponentProps;
|
|
8
|
+
export interface PanelProps extends PartComponentProps {
|
|
9
|
+
/** Keeps the closed panel in the page, `hidden`. */
|
|
10
|
+
keepMounted?: boolean | undefined;
|
|
11
|
+
}
|
|
1
12
|
export declare const Collapsible: {
|
|
2
|
-
Root:
|
|
3
|
-
open
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
defaultOpen: BooleanConstructor;
|
|
18
|
-
disabled: BooleanConstructor;
|
|
19
|
-
id: StringConstructor;
|
|
20
|
-
}>> & Readonly<{
|
|
21
|
-
onOpenChange?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
}>, {
|
|
24
|
-
open: boolean;
|
|
25
|
-
defaultOpen: boolean;
|
|
26
|
-
disabled: boolean;
|
|
27
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
28
|
-
Trigger: import("vue").Component;
|
|
29
|
-
Panel: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
30
|
-
keepMounted: BooleanConstructor;
|
|
31
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
-
keepMounted: BooleanConstructor;
|
|
35
|
-
}>> & Readonly<{}>, {
|
|
36
|
-
keepMounted: boolean;
|
|
37
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
Root: PartComponent<"div", {
|
|
14
|
+
readonly open?: true | undefined;
|
|
15
|
+
readonly closed?: true | undefined;
|
|
16
|
+
readonly disabled?: true | undefined;
|
|
17
|
+
}, RootProps, RootEmits>;
|
|
18
|
+
Trigger: PartComponent<"button", {
|
|
19
|
+
readonly panelOpen?: true | undefined;
|
|
20
|
+
readonly disabled?: true | undefined;
|
|
21
|
+
}, PartComponentProps, {}, unknown>;
|
|
22
|
+
Panel: PartComponent<"div", {
|
|
23
|
+
readonly open?: true | undefined;
|
|
24
|
+
readonly closed?: true | undefined;
|
|
25
|
+
readonly startingStyle?: true | undefined;
|
|
26
|
+
readonly endingStyle?: true | undefined;
|
|
27
|
+
}, PanelProps>;
|
|
38
28
|
};
|
|
39
29
|
//# sourceMappingURL=collapsible.d.ts.map
|
package/src/collapsible.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.js","names":[],"sources":["../../../../packages/vue/src/collapsible.ts"],"sourcesContent":["import type { ChangeDetails } from \"@kirana-ui/core\"\nimport { createCollapsible } from \"@kirana-ui/core/collapsible\"\nimport type { Collapsible as Controller } from \"@kirana-ui/core/collapsible\"\nimport { defineComponent, h, useId } from \"vue\"\n\nimport { context, controller, fromSignal, optional, partComponent } from \"./runtime.ts\"\n\nconst scope = context<Controller>(\"Collapsible\")\n\nconst RootElement = partComponent(\"CollapsibleRootElement\", \"div\", () => scope.use().root)\n\n/** `v-model:open`, or `open` with `@open-change=\"(open, details) => …\"`. */\nconst Root = defineComponent({\n name: \"CollapsibleRoot\",\n inheritAttrs: false,\n props: {\n open: optional(Boolean),\n defaultOpen: Boolean,\n disabled: Boolean,\n id: String,\n },\n emits: [\"update:open\", \"openChange\"],\n setup(props, { attrs, slots, emit }) {\n const generated = useId()\n scope.provide(\n controller(createCollapsible, () => ({\n id: props.id ?? generated,\n open: props.open,\n defaultOpen: props.defaultOpen,\n disabled: props.disabled,\n onOpenChange(open: boolean, details: ChangeDetails) {\n emit(\"openChange\", open, details)\n if (!details.canceled) emit(\"update:open\", open)\n },\n }))\n )\n return () => h(RootElement, attrs, slots)\n },\n})\n\nconst Trigger = partComponent(\"CollapsibleTrigger\"
|
|
1
|
+
{"version":3,"file":"collapsible.js","names":[],"sources":["../../../../packages/vue/src/collapsible.ts"],"sourcesContent":["import type { ChangeDetails } from \"@kirana-ui/core\"\nimport { createCollapsible } from \"@kirana-ui/core/collapsible\"\nimport type { Collapsible as Controller, CollapsibleProps } from \"@kirana-ui/core/collapsible\"\nimport { defineComponent, h, useId } from \"vue\"\n\nimport { context, controller, fromSignal, optional, partComponent } from \"./runtime.ts\"\nimport type { Changes, PartComponent, PartComponentProps, StatesOf } from \"./runtime.ts\"\n\ntype State = StatesOf<\"collapsible\">\n\nconst scope = context<Controller>(\"Collapsible\")\n\nconst RootElement = partComponent(\"CollapsibleRootElement\", \"div\", () => scope.use().root)\n\nexport type RootProps = Omit<CollapsibleProps, \"id\" | \"onOpenChange\"> & {\n id?: string | undefined\n} & PartComponentProps\n\nexport type RootEmits = Changes<\"open\", boolean>\n\n/** `v-model:open`, or `open` with `@open-change=\"(open, details) => …\"`. */\nconst Root = defineComponent({\n name: \"CollapsibleRoot\",\n inheritAttrs: false,\n props: {\n open: optional(Boolean),\n defaultOpen: Boolean,\n disabled: Boolean,\n id: String,\n },\n emits: [\"update:open\", \"openChange\"],\n setup(props, { attrs, slots, emit }) {\n const generated = useId()\n scope.provide(\n controller(createCollapsible, () => ({\n id: props.id ?? generated,\n open: props.open,\n defaultOpen: props.defaultOpen,\n disabled: props.disabled,\n onOpenChange(open: boolean, details: ChangeDetails) {\n emit(\"openChange\", open, details)\n if (!details.canceled) emit(\"update:open\", open)\n },\n }))\n )\n return () => h(RootElement, attrs, slots)\n },\n}) as unknown as PartComponent<\"div\", State[\"root\"], RootProps, RootEmits>\n\nexport type TriggerProps = PartComponentProps\n\nconst Trigger = partComponent<\"button\", State[\"trigger\"]>(\n \"CollapsibleTrigger\",\n \"button\",\n () => scope.use().trigger\n)\n\nconst PanelElement = partComponent(\"CollapsiblePanelElement\", \"div\", () => scope.use().panel)\n\nexport interface PanelProps extends PartComponentProps {\n /** Keeps the closed panel in the page, `hidden`. */\n keepMounted?: boolean | undefined\n}\n\n/** `keep-mounted` keeps the closed panel in the page, `hidden`. */\nconst Panel = defineComponent({\n name: \"CollapsiblePanel\",\n inheritAttrs: false,\n props: { keepMounted: Boolean },\n setup(props, { attrs, slots }) {\n const mounted = fromSignal(scope.use().mounted)\n return () => (mounted.value || props.keepMounted ? h(PanelElement, attrs, slots) : null)\n },\n}) as unknown as PartComponent<\"div\", State[\"panel\"], PanelProps>\n\nexport const Collapsible = { Root, Trigger, Panel }\n"],"mappings":";;;;AAUA,MAAM,QAAQ,QAAoB,aAAa;AAE/C,MAAM,cAAc,cAAc,0BAA0B,aAAa,MAAM,IAAI,CAAC,CAAC,IAAI;;AASzF,MAAM,OAAO,gBAAgB;CAC3B,MAAM;CACN,cAAc;CACd,OAAO;EACL,MAAM,SAAS,OAAO;EACtB,aAAa;EACb,UAAU;EACV,IAAI;CACN;CACA,OAAO,CAAC,eAAe,YAAY;CACnC,MAAM,OAAO,EAAE,OAAO,OAAO,QAAQ;EACnC,MAAM,YAAY,MAAM;EACxB,MAAM,QACJ,WAAW,0BAA0B;GACnC,IAAI,MAAM,MAAM;GAChB,MAAM,MAAM;GACZ,aAAa,MAAM;GACnB,UAAU,MAAM;GAChB,aAAa,MAAe,SAAwB;IAClD,KAAK,cAAc,MAAM,OAAO;IAChC,IAAI,CAAC,QAAQ,UAAU,KAAK,eAAe,IAAI;GACjD;EACF,EAAE,CACJ;EACA,aAAa,EAAE,aAAa,OAAO,KAAK;CAC1C;AACF,CAAC;AAID,MAAM,UAAU,cACd,sBACA,gBACM,MAAM,IAAI,CAAC,CAAC,OACpB;AAEA,MAAM,eAAe,cAAc,2BAA2B,aAAa,MAAM,IAAI,CAAC,CAAC,KAAK;AAkB5F,MAAa,cAAc;CAAE;CAAM;CAAS,OAV9B,gBAAgB;EAC5B,MAAM;EACN,cAAc;EACd,OAAO,EAAE,aAAa,QAAQ;EAC9B,MAAM,OAAO,EAAE,OAAO,SAAS;GAC7B,MAAM,UAAU,WAAW,MAAM,IAAI,CAAC,CAAC,OAAO;GAC9C,aAAc,QAAQ,SAAS,MAAM,cAAc,EAAE,cAAc,OAAO,KAAK,IAAI;EACrF;CACF,CAE4C;AAAM"}
|