sit-onyx 1.1.0-dev-20250930080442 → 1.1.0-dev-20250930084752
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/components/OnyxCalendar/OnyxCalendar.d.vue.ts +34 -0
- package/dist/components/OnyxCalendar/types.d.ts +45 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm-bundler.js +679 -217
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +3844 -3495
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnyxCalendarProps } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* @experimental
|
|
4
|
+
* @deprecated This component is still under active development and its API might change in patch releases.
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<OnyxCalendarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:selectedDate": (...args: any[]) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<OnyxCalendarProps> & Readonly<{
|
|
9
|
+
"onUpdate:selectedDate"?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
skeleton: import('../../composables/useSkeletonState.js', { with: { "resolution-mode": "import" } }).SkeletonInjected;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
size: import('./types.js', { with: { "resolution-mode": "import" } }).OnyxCalendarSize;
|
|
14
|
+
selection: import('./types.js', { with: { "resolution-mode": "import" } }).OnyxCalendarSelection;
|
|
15
|
+
weekStartDay: import('@sit-onyx/headless', { with: { "resolution-mode": "import" } }).OnyxWeekDays;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
17
|
+
calendar: HTMLDivElement;
|
|
18
|
+
}, any>, Readonly<{
|
|
19
|
+
/**
|
|
20
|
+
* Optional slot that is displayed below at the right of the Header.
|
|
21
|
+
*/
|
|
22
|
+
actions?(): unknown;
|
|
23
|
+
}> & {
|
|
24
|
+
/**
|
|
25
|
+
* Optional slot that is displayed below at the right of the Header.
|
|
26
|
+
*/
|
|
27
|
+
actions?(): unknown;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { OnyxWeekDays } from '@sit-onyx/headless';
|
|
2
|
+
import { DensityProp } from '../../composables/density.js';
|
|
3
|
+
import { SkeletonInjected } from '../../composables/useSkeletonState.js';
|
|
4
|
+
export type OnyxCalendarProps = DensityProp & {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the calendar is disabled. Disables all interactions and prevents date selection.
|
|
7
|
+
*/
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The earliest selectable date. Dates before this will be disabled.
|
|
11
|
+
*/
|
|
12
|
+
min?: Date;
|
|
13
|
+
/**
|
|
14
|
+
* The latest selectable date. Dates after this will be disabled.
|
|
15
|
+
*/
|
|
16
|
+
max?: Date;
|
|
17
|
+
/**
|
|
18
|
+
* The first day of the week displayed in the calendar.
|
|
19
|
+
* @default Monday
|
|
20
|
+
*/
|
|
21
|
+
weekStartDay?: OnyxWeekDays;
|
|
22
|
+
/**
|
|
23
|
+
* The initial date to display when the calendar is first rendered.
|
|
24
|
+
* @default today
|
|
25
|
+
*/
|
|
26
|
+
initialDate?: Date;
|
|
27
|
+
/**
|
|
28
|
+
* The visual size of the calendar.
|
|
29
|
+
* - "big": larger layout with more spacing and bigger text
|
|
30
|
+
* - "small": compact layout
|
|
31
|
+
* - "auto": adjusts based on container or viewport
|
|
32
|
+
*/
|
|
33
|
+
size?: OnyxCalendarSize;
|
|
34
|
+
/**
|
|
35
|
+
* Skeleton component to display while the calendar is loading.
|
|
36
|
+
*/
|
|
37
|
+
skeleton?: SkeletonInjected;
|
|
38
|
+
/**
|
|
39
|
+
* The selection mode for dates.
|
|
40
|
+
* TODO: support "multiple" and "range".
|
|
41
|
+
*/
|
|
42
|
+
selection?: OnyxCalendarSelection;
|
|
43
|
+
};
|
|
44
|
+
export type OnyxCalendarSelection = "single";
|
|
45
|
+
export type OnyxCalendarSize = "big" | "small" | "auto";
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export { default as OnyxButton } from './components/OnyxButton/OnyxButton.vue';
|
|
|
22
22
|
export * from './components/OnyxButton/types.js';
|
|
23
23
|
export { default as OnyxCard } from './components/OnyxCard/OnyxCard.vue';
|
|
24
24
|
export * from './components/OnyxCard/types.js';
|
|
25
|
+
export { default as OnyxUnstableCalendar } from './components/OnyxCalendar/OnyxCalendar.vue';
|
|
26
|
+
export * from './components/OnyxCalendar/types.js';
|
|
25
27
|
export { default as OnyxCheckbox } from './components/OnyxCheckbox/OnyxCheckbox.vue';
|
|
26
28
|
export * from './components/OnyxCheckbox/types.js';
|
|
27
29
|
export { default as OnyxCheckboxGroup } from './components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue';
|