use-wc 1.0.0-pre.24 → 1.0.0-pre.26
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/custom-elements.json +28 -0
- package/dist/elements/use-calendar/use-calendar.d.ts +8 -0
- package/dist/elements/use-calendar/use-calendar.stories.d.ts +6 -0
- package/dist/elements/use-tree/use-tree.d.ts +1 -0
- package/dist/elements/use-treeitem/use-treeitem.d.ts +1 -0
- package/dist/use-wc.js +1224 -1039
- package/dist/use-wc.umd.cjs +185 -102
- package/package.json +1 -1
- package/vscode.css-custom-data.json +29 -1
- package/vscode.html-custom-data.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -96,6 +96,34 @@
|
|
|
96
96
|
{
|
|
97
97
|
"description": "A disabled date cell",
|
|
98
98
|
"name": "day-disabled"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"description": "The clickable button wrapping the month/year title",
|
|
102
|
+
"name": "title-button"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"description": "The scrollable month/year picker panel (replaces grid when open)",
|
|
106
|
+
"name": "picker"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"description": "Container for one year's label and month grid",
|
|
110
|
+
"name": "picker-year-section"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"description": "The year heading inside a year section",
|
|
114
|
+
"name": "picker-year-label"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"description": "The 4-column month grid inside a year section",
|
|
118
|
+
"name": "picker-months"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"description": "An individual month button",
|
|
122
|
+
"name": "picker-month"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"description": "Applied to the currently selected month button",
|
|
126
|
+
"name": "picker-month-current"
|
|
99
127
|
}
|
|
100
128
|
],
|
|
101
129
|
"slots": [
|
|
@@ -32,6 +32,13 @@ export type UseCalendarRenderDay = (data: {
|
|
|
32
32
|
* @csspart day-selected - A selected day cell
|
|
33
33
|
* @csspart day-today - The current date cell
|
|
34
34
|
* @csspart day-disabled - A disabled date cell
|
|
35
|
+
* @csspart title-button - The clickable button wrapping the month/year title
|
|
36
|
+
* @csspart picker - The scrollable month/year picker panel (replaces grid when open)
|
|
37
|
+
* @csspart picker-year-section - Container for one year's label and month grid
|
|
38
|
+
* @csspart picker-year-label - The year heading inside a year section
|
|
39
|
+
* @csspart picker-months - The 4-column month grid inside a year section
|
|
40
|
+
* @csspart picker-month - An individual month button
|
|
41
|
+
* @csspart picker-month-current - Applied to the currently selected month button
|
|
35
42
|
*/
|
|
36
43
|
export declare class UseCalendar extends LitElement {
|
|
37
44
|
#private;
|
|
@@ -58,6 +65,7 @@ export declare class UseCalendar extends LitElement {
|
|
|
58
65
|
end?: string;
|
|
59
66
|
constructor();
|
|
60
67
|
connectedCallback(): void;
|
|
68
|
+
disconnectedCallback(): void;
|
|
61
69
|
firstUpdated(): void;
|
|
62
70
|
get value(): string;
|
|
63
71
|
set value(value: string[] | string);
|
|
@@ -134,3 +134,9 @@ export declare const WeekSelectionLocale: StoryObj<UseCalendar>;
|
|
|
134
134
|
*/
|
|
135
135
|
export declare const WeekSelectionMinMax: StoryObj<UseCalendar>;
|
|
136
136
|
export declare const CustomStyles: StoryObj<UseCalendar>;
|
|
137
|
+
/**
|
|
138
|
+
* Clicking the month/year title opens an inline scrollable picker.
|
|
139
|
+
* Each year has its own section with a 4-column month grid. Selecting a month
|
|
140
|
+
* from any year navigates directly to that month and year.
|
|
141
|
+
*/
|
|
142
|
+
export declare const MonthYearPicker: StoryObj<UseCalendar>;
|
|
@@ -27,6 +27,7 @@ export declare class UseTree extends LitElement {
|
|
|
27
27
|
get activeOption(): UseTreeitem | null;
|
|
28
28
|
set activeOption(option: UseTreeitem | null);
|
|
29
29
|
firstUpdated(): void;
|
|
30
|
+
updated(): void;
|
|
30
31
|
set value(value: string[] | string);
|
|
31
32
|
get value(): FormData;
|
|
32
33
|
lazyQueryItems(): UseTreeitem[];
|
|
@@ -25,6 +25,7 @@ export declare class UseTreeitem extends LitElement {
|
|
|
25
25
|
toggleSelected(): void;
|
|
26
26
|
toggle(): void;
|
|
27
27
|
firstUpdated(): void;
|
|
28
|
+
updated(): void;
|
|
28
29
|
render(): import('lit-html').TemplateResult<1>;
|
|
29
30
|
/**
|
|
30
31
|
* Consumers will need to override the `::after` pseudo-element if they want
|