vueless 0.0.483 → 0.0.485
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/README.md +1 -1
- package/adatper.locale/vueless.ts +3 -3
- package/composables/useUI.ts +10 -34
- package/package.json +1 -1
- package/plugin-vite.js +2 -1
- package/types.ts +10 -3
- package/ui.form-calendar/UCalendar.vue +310 -370
- package/ui.form-calendar/UCalendarDayView.vue +211 -257
- package/ui.form-calendar/UCalendarMonthView.vue +120 -164
- package/ui.form-calendar/UCalendarYearView.vue +118 -164
- package/ui.form-calendar/{config.js → config.ts} +0 -2
- package/ui.form-calendar/{constants.js → constants.ts} +35 -16
- package/ui.form-calendar/storybook/Docs.mdx +2 -3
- package/ui.form-calendar/storybook/{stories.js → stories.ts} +12 -4
- package/ui.form-calendar/types.ts +91 -0
- package/ui.form-calendar/{useAttrs.js → useAttrs.ts} +5 -2
- package/ui.form-calendar/{utilCalendar.js → utilCalendar.ts} +50 -53
- package/ui.form-calendar/{utilDate.js → utilDate.ts} +44 -37
- package/ui.form-calendar/utilFormatting.ts +178 -0
- package/ui.text-badge/useAttrs.ts +2 -2
- package/ui.text-block/useAttrs.ts +1 -3
- package/web-types.json +177 -50
- package/ui.form-calendar/utilFormatting.js +0 -180
- package/ui.form-date-picker/storybook/Docs.mdx +0 -53
- package/ui.form-date-picker/storybook/stories.js +0 -185
- package/ui.form-date-picker-range/storybook/Docs.mdx +0 -16
- package/ui.form-date-picker-range/storybook/stories.js +0 -216
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source, Markdown } from "@storybook/blocks";
|
|
2
|
-
import { getSource } from "../../utils/storybook.ts";
|
|
3
|
-
|
|
4
|
-
import * as stories from "./stories.js";
|
|
5
|
-
import defaultConfig from "../config.js?raw"
|
|
6
|
-
|
|
7
|
-
<Meta of={stories} />
|
|
8
|
-
<Title of={stories} />
|
|
9
|
-
<Subtitle of={stories} />
|
|
10
|
-
<Description of={stories} />
|
|
11
|
-
<Primary of={stories} />
|
|
12
|
-
<Controls of={stories.Default} />
|
|
13
|
-
<Stories of={stories} />
|
|
14
|
-
|
|
15
|
-
## Default config
|
|
16
|
-
<Source code={getSource(defaultConfig)} language="jsx" dark />
|
|
17
|
-
|
|
18
|
-
## Formatting tokens
|
|
19
|
-
Each character in the table below can be used in `dateFormat` / `dateTimeFormat` and `userDateFormat` / `userDateTimeFormat` options
|
|
20
|
-
to achieve the format you need.
|
|
21
|
-
|
|
22
|
-
<Markdown>
|
|
23
|
-
{`
|
|
24
|
-
| Token | Description | Example |
|
|
25
|
-
| ----- | --------------------------------------------------------- | ------------------------------------------------------------- |
|
|
26
|
-
| d | Day of the month, 2 digits with leading zeros | 01 to 31 |
|
|
27
|
-
| D | A textual representation of a day | Mon through Sun |
|
|
28
|
-
| l | A full textual representation of the day of the week | Sunday through Saturday |
|
|
29
|
-
| j | Day of the month without leading zeros | 1 to 31 |
|
|
30
|
-
| J | Day of the month without leading zeros and ordinal suffix | 1st, 2nd, to 31st |
|
|
31
|
-
| w | Numeric representation of the day of the week | 0 (for Sunday) through 6 (for Saturday) |
|
|
32
|
-
| W | Numeric representation of the week | 0 (first week of the year) through 52 (last week of the year) |
|
|
33
|
-
| F | A full textual representation of a month | January through December |
|
|
34
|
-
| m | Numeric representation of a month, with leading zero | 01 through 12 |
|
|
35
|
-
| n | Numeric representation of a month, without leading zeros | 1 through 12 |
|
|
36
|
-
| M | A short textual representation of a month | Jan through Dec |
|
|
37
|
-
| U | A short textual representation of a month | 1413704993 |
|
|
38
|
-
| y | A two-digit representation of a year | 99 or 03 |
|
|
39
|
-
| Y | A full numeric representation of a year, 4 digits | 1999 or 2003 |
|
|
40
|
-
| Z | ISO Date format | 2017-03-04T01:23:43.000Z |
|
|
41
|
-
| H | Hours (24 hours) | 00 to 23 |
|
|
42
|
-
| h | Hours | 1 to 12 |
|
|
43
|
-
| G | Hours, 2 digits with leading zeros | 1 to 12 |
|
|
44
|
-
| i | Minutes | 00 to 59 |
|
|
45
|
-
| S | Seconds, 2 digits | 00 to 59 |
|
|
46
|
-
| s | Seconds | 0, 1 to 59 |
|
|
47
|
-
`}
|
|
48
|
-
</Markdown>
|
|
49
|
-
|
|
50
|
-
## Escaping Formatting Tokens
|
|
51
|
-
You may escape formatting tokens using `\\`.
|
|
52
|
-
|
|
53
|
-
<Source code={`dateFormat: "Y-m-d\\Z", // Displays: 2017-01-22Z`} language="jsx" dark />
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/storybook.ts";
|
|
2
|
-
|
|
3
|
-
import UDatePicker from "../../ui.form-date-picker/UDatePicker.vue";
|
|
4
|
-
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
5
|
-
import URow from "../../ui.container-row/URow.vue";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The `UDatePicker` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.form-date-picker)
|
|
9
|
-
*/
|
|
10
|
-
export default {
|
|
11
|
-
id: "3170",
|
|
12
|
-
title: "Form Inputs & Controls / Date Picker",
|
|
13
|
-
component: UDatePicker,
|
|
14
|
-
args: {
|
|
15
|
-
label: "Label",
|
|
16
|
-
modelValue: null,
|
|
17
|
-
},
|
|
18
|
-
argTypes: {
|
|
19
|
-
...getArgTypes(UDatePicker.__name),
|
|
20
|
-
},
|
|
21
|
-
parameters: {
|
|
22
|
-
docs: {
|
|
23
|
-
story: {
|
|
24
|
-
height: "480px",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const DefaultTemplate = (args) => ({
|
|
31
|
-
components: { UDatePicker, UIcon },
|
|
32
|
-
setup() {
|
|
33
|
-
const slots = getSlotNames(UDatePicker.__name);
|
|
34
|
-
|
|
35
|
-
return { args, slots };
|
|
36
|
-
},
|
|
37
|
-
template: `
|
|
38
|
-
<UDatePicker open-direction-y="bottom" v-bind="args" v-model="args.modelValue">
|
|
39
|
-
${args.slotTemplate || getSlotsFragment()}
|
|
40
|
-
</UDatePicker>
|
|
41
|
-
|
|
42
|
-
<div class="mt-4">
|
|
43
|
-
{{ args.modelValue }}
|
|
44
|
-
</div>
|
|
45
|
-
`,
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
const EnumVariantTemplate = (args, { argTypes }) => ({
|
|
49
|
-
components: { UDatePicker, URow },
|
|
50
|
-
setup() {
|
|
51
|
-
return {
|
|
52
|
-
args,
|
|
53
|
-
options: argTypes[args.enum].options,
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
template: `
|
|
57
|
-
<URow>
|
|
58
|
-
<UDatePicker
|
|
59
|
-
v-for="(option, index) in options"
|
|
60
|
-
open-direction-y="bottom"
|
|
61
|
-
:key="index"
|
|
62
|
-
v-bind="args"
|
|
63
|
-
:[args.enum]="option"
|
|
64
|
-
:label="option"
|
|
65
|
-
/>
|
|
66
|
-
</URow>
|
|
67
|
-
`,
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
const OpenDirectionTemplate = (args) => ({
|
|
71
|
-
components: { UDatePicker, URow },
|
|
72
|
-
setup() {
|
|
73
|
-
return {
|
|
74
|
-
args,
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
template: `
|
|
78
|
-
<URow class="!flex-col">
|
|
79
|
-
<UDatePicker
|
|
80
|
-
class="w-full"
|
|
81
|
-
open-direction-y="top"
|
|
82
|
-
open-direction-x="left"
|
|
83
|
-
v-bind="args"
|
|
84
|
-
v-model="args.modelValue"
|
|
85
|
-
label="Top Left"
|
|
86
|
-
/>
|
|
87
|
-
<UDatePicker
|
|
88
|
-
class="w-full"
|
|
89
|
-
open-direction-y="top"
|
|
90
|
-
open-direction-x="right"
|
|
91
|
-
v-bind="args"
|
|
92
|
-
v-model="args.modelValue"
|
|
93
|
-
label="Top Right"
|
|
94
|
-
/>
|
|
95
|
-
<UDatePicker
|
|
96
|
-
class="w-full"
|
|
97
|
-
open-direction-y="bottom"
|
|
98
|
-
open-direction-x="left"
|
|
99
|
-
v-bind="args"
|
|
100
|
-
v-model="args.modelValue"
|
|
101
|
-
label="Bottom Left"
|
|
102
|
-
/>
|
|
103
|
-
<UDatePicker
|
|
104
|
-
class="w-full"
|
|
105
|
-
open-direction-y="bottom"
|
|
106
|
-
open-direction-x="right"
|
|
107
|
-
v-bind="args"
|
|
108
|
-
v-model="args.modelValue"
|
|
109
|
-
label="Bottom Right"
|
|
110
|
-
/>
|
|
111
|
-
</URow>
|
|
112
|
-
`,
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
export const Default = DefaultTemplate.bind({});
|
|
116
|
-
Default.args = { modelValue: new Date() };
|
|
117
|
-
|
|
118
|
-
export const Sizes = EnumVariantTemplate.bind({});
|
|
119
|
-
Sizes.args = { enum: "size", label: "" };
|
|
120
|
-
|
|
121
|
-
export const OpenDirection = OpenDirectionTemplate.bind({});
|
|
122
|
-
OpenDirection.args = {};
|
|
123
|
-
|
|
124
|
-
export const Description = DefaultTemplate.bind({});
|
|
125
|
-
Description.args = { description: "some description" };
|
|
126
|
-
|
|
127
|
-
export const Disabled = DefaultTemplate.bind({});
|
|
128
|
-
Disabled.args = { disabled: true };
|
|
129
|
-
|
|
130
|
-
export const Error = DefaultTemplate.bind({});
|
|
131
|
-
Error.args = { error: "some error" };
|
|
132
|
-
|
|
133
|
-
export const Placeholder = DefaultTemplate.bind({});
|
|
134
|
-
Placeholder.args = { placeholder: "some placeholder" };
|
|
135
|
-
|
|
136
|
-
export const DateFormat = DefaultTemplate.bind({});
|
|
137
|
-
DateFormat.args = { dateFormat: "d.m.Y", userDateFormat: "d.m.Y", modelValue: "28.06.2024" };
|
|
138
|
-
|
|
139
|
-
export const Timepicker = DefaultTemplate.bind({});
|
|
140
|
-
Timepicker.args = {
|
|
141
|
-
timepicker: true,
|
|
142
|
-
modelValue: new Date(2024, 2, 14, 12, 24, 14),
|
|
143
|
-
userDateFormat: "j F, Y - H:i:S",
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
export const MinMax = DefaultTemplate.bind({});
|
|
147
|
-
MinMax.args = {
|
|
148
|
-
minDate: new Date(2022, 2, 22),
|
|
149
|
-
maxDate: new Date(2022, 2, 26),
|
|
150
|
-
modelValue: new Date(2022, 2, 24),
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
export const LeftIcon = DefaultTemplate.bind({});
|
|
154
|
-
LeftIcon.args = {
|
|
155
|
-
leftIcon: "star",
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
export const RightIcon = DefaultTemplate.bind({});
|
|
159
|
-
RightIcon.args = {
|
|
160
|
-
rightIcon: "star",
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
export const LeftIconSlot = DefaultTemplate.bind({});
|
|
164
|
-
LeftIconSlot.args = {
|
|
165
|
-
slotTemplate: `
|
|
166
|
-
<template #left-icon>
|
|
167
|
-
<UIcon
|
|
168
|
-
name="archive"
|
|
169
|
-
color="red"
|
|
170
|
-
/>
|
|
171
|
-
</template>
|
|
172
|
-
`,
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
export const RightIconSlot = DefaultTemplate.bind({});
|
|
176
|
-
RightIconSlot.args = {
|
|
177
|
-
slotTemplate: `
|
|
178
|
-
<template #right-icon>
|
|
179
|
-
<UIcon
|
|
180
|
-
name="archive"
|
|
181
|
-
color="red"
|
|
182
|
-
/>
|
|
183
|
-
</template>
|
|
184
|
-
`,
|
|
185
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
-
import { getSource } from "../../utils/storybook.ts";
|
|
3
|
-
|
|
4
|
-
import * as stories from "./stories.js";
|
|
5
|
-
import defaultConfig from "../config.js?raw"
|
|
6
|
-
|
|
7
|
-
<Meta of={stories} />
|
|
8
|
-
<Title of={stories} />
|
|
9
|
-
<Subtitle of={stories} />
|
|
10
|
-
<Description of={stories} />
|
|
11
|
-
<Primary of={stories} />
|
|
12
|
-
<Controls of={stories.Default} />
|
|
13
|
-
<Stories of={stories} />
|
|
14
|
-
|
|
15
|
-
## Default config
|
|
16
|
-
<Source code={getSource(defaultConfig)} language="jsx" dark />
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/storybook.ts";
|
|
2
|
-
|
|
3
|
-
import UDatePickerRange from "../UDatePickerRange.vue";
|
|
4
|
-
import URow from "../../ui.container-row/URow.vue";
|
|
5
|
-
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
6
|
-
import UButton from "../../ui.button/UButton.vue";
|
|
7
|
-
|
|
8
|
-
import { addDays } from "../../ui.form-calendar/utilDate.js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The `UDatePickerRange` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.form-date-picker-range)
|
|
12
|
-
*/
|
|
13
|
-
export default {
|
|
14
|
-
id: "3180",
|
|
15
|
-
title: "Form Inputs & Controls / Date Picker Range",
|
|
16
|
-
component: UDatePickerRange,
|
|
17
|
-
args: {
|
|
18
|
-
modelValue: {
|
|
19
|
-
from: new Date(2022, 1, 14),
|
|
20
|
-
to: new Date(2022, 2, 20),
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
argTypes: {
|
|
24
|
-
...getArgTypes(UDatePickerRange.__name),
|
|
25
|
-
},
|
|
26
|
-
parameters: {
|
|
27
|
-
docs: {
|
|
28
|
-
story: {
|
|
29
|
-
height: "620px",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const DefaultTemplate = (args) => ({
|
|
36
|
-
components: { UDatePickerRange, UIcon, UButton },
|
|
37
|
-
setup() {
|
|
38
|
-
const slots = getSlotNames(UDatePickerRange.__name);
|
|
39
|
-
|
|
40
|
-
return { args, slots };
|
|
41
|
-
},
|
|
42
|
-
template: `
|
|
43
|
-
<UDatePickerRange open-direction-y="bottom" v-bind="args" v-model="args.modelValue">
|
|
44
|
-
${args.slotTemplate || getSlotsFragment()}
|
|
45
|
-
</UDatePickerRange>
|
|
46
|
-
|
|
47
|
-
<div class="mt-4">
|
|
48
|
-
{{ args.modelValue }}
|
|
49
|
-
</div>
|
|
50
|
-
`,
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
const EnumVariantTemplate = (args, { argTypes }) => ({
|
|
54
|
-
components: { UDatePickerRange, URow },
|
|
55
|
-
setup() {
|
|
56
|
-
return {
|
|
57
|
-
args,
|
|
58
|
-
options: argTypes[args.enum].options,
|
|
59
|
-
};
|
|
60
|
-
},
|
|
61
|
-
template: `
|
|
62
|
-
<URow>
|
|
63
|
-
<UDatePickerRange
|
|
64
|
-
v-for="(option, index) in options"
|
|
65
|
-
:key="index"
|
|
66
|
-
open-direction-y="bottom"
|
|
67
|
-
v-bind="args"
|
|
68
|
-
v-model="args.modelValue"
|
|
69
|
-
:[args.enum]="option"
|
|
70
|
-
/>
|
|
71
|
-
</URow>
|
|
72
|
-
`,
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
const OpenDirectionTemplate = (args) => ({
|
|
76
|
-
components: { UDatePickerRange, URow },
|
|
77
|
-
setup() {
|
|
78
|
-
return { args };
|
|
79
|
-
},
|
|
80
|
-
template: `
|
|
81
|
-
<URow class="!flex-col">
|
|
82
|
-
<UDatePickerRange
|
|
83
|
-
class="w-full"
|
|
84
|
-
open-direction-y="top"
|
|
85
|
-
open-direction-x="left"
|
|
86
|
-
v-bind="args"
|
|
87
|
-
v-model="args.modelValue"
|
|
88
|
-
label="Top Left"
|
|
89
|
-
/>
|
|
90
|
-
<UDatePickerRange
|
|
91
|
-
class="w-full"
|
|
92
|
-
open-direction-y="top"
|
|
93
|
-
open-direction-x="right"
|
|
94
|
-
v-bind="args"
|
|
95
|
-
v-model="args.modelValue"
|
|
96
|
-
label="Top Right"
|
|
97
|
-
/>
|
|
98
|
-
<UDatePickerRange
|
|
99
|
-
class="w-full"
|
|
100
|
-
open-direction-y="bottom"
|
|
101
|
-
open-direction-x="left"
|
|
102
|
-
v-bind="args"
|
|
103
|
-
v-model="args.modelValue"
|
|
104
|
-
label="Bottom Left"
|
|
105
|
-
/>
|
|
106
|
-
<UDatePickerRange
|
|
107
|
-
class="w-full"
|
|
108
|
-
open-direction-y="bottom"
|
|
109
|
-
open-direction-x="right"
|
|
110
|
-
v-bind="args"
|
|
111
|
-
v-model="args.modelValue"
|
|
112
|
-
label="Bottom Right"
|
|
113
|
-
/>
|
|
114
|
-
</URow>
|
|
115
|
-
`,
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
export const Default = DefaultTemplate.bind({});
|
|
119
|
-
Default.args = {};
|
|
120
|
-
|
|
121
|
-
export const Variants = EnumVariantTemplate.bind({});
|
|
122
|
-
Variants.args = { enum: "variant" };
|
|
123
|
-
|
|
124
|
-
export const OpenDirection = OpenDirectionTemplate.bind({});
|
|
125
|
-
OpenDirection.args = {};
|
|
126
|
-
|
|
127
|
-
export const Disabled = EnumVariantTemplate.bind({});
|
|
128
|
-
Disabled.args = { enum: "variant", disabled: true };
|
|
129
|
-
|
|
130
|
-
export const Label = DefaultTemplate.bind({});
|
|
131
|
-
Label.args = { variant: "input", label: "some label" };
|
|
132
|
-
|
|
133
|
-
export const Description = DefaultTemplate.bind({});
|
|
134
|
-
Description.args = { variant: "input", description: "some description" };
|
|
135
|
-
|
|
136
|
-
export const Error = DefaultTemplate.bind({});
|
|
137
|
-
Error.args = { variant: "input", error: "some error" };
|
|
138
|
-
|
|
139
|
-
export const MinMax = DefaultTemplate.bind({});
|
|
140
|
-
MinMax.args = {
|
|
141
|
-
minDate: new Date(2022, 2, 22),
|
|
142
|
-
maxDate: new Date(2022, 2, 26),
|
|
143
|
-
modelValue: { from: new Date(2022, 2, 24), to: new Date(2022, 2, 25) },
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
export const DateFormat = DefaultTemplate.bind({});
|
|
147
|
-
DateFormat.args = {
|
|
148
|
-
dateFormat: "d.m.Y",
|
|
149
|
-
userDateFormat: "d.m.Y",
|
|
150
|
-
modelValue: { from: "28.06.2024", to: "30.06.2024" },
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
export const CustomRangeButton = DefaultTemplate.bind({});
|
|
154
|
-
CustomRangeButton.args = {
|
|
155
|
-
customRangeButton: {
|
|
156
|
-
range: {
|
|
157
|
-
from: new Date(),
|
|
158
|
-
to: addDays(new Date(), 2),
|
|
159
|
-
},
|
|
160
|
-
label: "Next 2 days",
|
|
161
|
-
description: "Some description",
|
|
162
|
-
},
|
|
163
|
-
modelValue: { from: null, to: null },
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
export const LeftIcon = DefaultTemplate.bind({});
|
|
167
|
-
LeftIcon.args = { leftIcon: "star", variant: "input" };
|
|
168
|
-
|
|
169
|
-
export const RightIcon = DefaultTemplate.bind({});
|
|
170
|
-
RightIcon.args = { rightIcon: "star", variant: "input" };
|
|
171
|
-
|
|
172
|
-
export const LeftIconSlot = DefaultTemplate.bind({});
|
|
173
|
-
LeftIconSlot.args = {
|
|
174
|
-
variant: "input",
|
|
175
|
-
slotTemplate: `
|
|
176
|
-
<template #left-icon>
|
|
177
|
-
<UIcon
|
|
178
|
-
name="archive"
|
|
179
|
-
color="red"
|
|
180
|
-
/>
|
|
181
|
-
</template>
|
|
182
|
-
`,
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
export const RightIconSlot = DefaultTemplate.bind({});
|
|
186
|
-
RightIconSlot.args = {
|
|
187
|
-
variant: "input",
|
|
188
|
-
slotTemplate: `
|
|
189
|
-
<template #right-icon>
|
|
190
|
-
<UIcon
|
|
191
|
-
name="archive"
|
|
192
|
-
color="red"
|
|
193
|
-
/>
|
|
194
|
-
</template>
|
|
195
|
-
`,
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
export const LeftSlot = DefaultTemplate.bind({});
|
|
199
|
-
LeftSlot.args = {
|
|
200
|
-
variant: "input",
|
|
201
|
-
slotTemplate: `
|
|
202
|
-
<template #left>
|
|
203
|
-
<UButton variant="thirdary" filled square label="Filter" class="rounded-r-none h-full" />
|
|
204
|
-
</template>
|
|
205
|
-
`,
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
export const RightSlot = DefaultTemplate.bind({});
|
|
209
|
-
RightSlot.args = {
|
|
210
|
-
variant: "input",
|
|
211
|
-
slotTemplate: `
|
|
212
|
-
<template #right>
|
|
213
|
-
<UButton variant="thirdary" filled square label="Filter" class="rounded-l-none" />
|
|
214
|
-
</template>
|
|
215
|
-
`,
|
|
216
|
-
};
|