sit-onyx 1.3.0-dev-20251027185548 → 1.3.0-dev-20251027213347

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.
@@ -0,0 +1,9 @@
1
+ import { OnyxPaginationProps } from './types.js';
2
+ declare const _default: import('vue').DefineComponent<OnyxPaginationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ "update:modelValue": (page: number) => any;
4
+ }, string, import('vue').PublicProps, Readonly<OnyxPaginationProps> & Readonly<{
5
+ "onUpdate:modelValue"?: ((page: number) => any) | undefined;
6
+ }>, {
7
+ skeleton: import('../../composables/useSkeletonState.js', { with: { "resolution-mode": "import" } }).SkeletonInjected;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -17,4 +17,10 @@ export type OnyxPaginationProps = DensityProp & {
17
17
  * Whether to show a skeleton pagination.
18
18
  */
19
19
  skeleton?: SkeletonInjected;
20
+ /**
21
+ * The display type of the pagination
22
+ * @default select
23
+ */
24
+ type?: PaginationType;
20
25
  };
26
+ export type PaginationType = "select" | "inline";
@@ -0,0 +1,21 @@
1
+ import { OnyxSliderProps, SliderMode, SliderValue } 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: <TSliderMode extends SliderMode>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
+ readonly onValidityChange?: ((validity: ValidityState) => any) | undefined;
9
+ readonly "onUpdate:modelValue"?: ((value: SliderValue<TSliderMode>) => any) | undefined;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onValidityChange"> & OnyxSliderProps<TSliderMode> & Partial<{}>> & import('vue').PublicProps;
11
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
12
+ attrs: any;
13
+ slots: {};
14
+ emit: ((evt: "validityChange", validity: ValidityState) => void) & ((evt: "update:modelValue", value: SliderValue<TSliderMode>) => void);
15
+ }>) => import('vue').VNode & {
16
+ __ctx?: Awaited<typeof __VLS_setup>;
17
+ };
18
+ export default _default;
19
+ type __VLS_PrettifyLocal<T> = {
20
+ [K in keyof T]: T[K];
21
+ } & {};
@@ -0,0 +1,106 @@
1
+ import { CustomValidityProp } from '../../composables/useFormElementError.js';
2
+ import { SkeletonInjected } from '../../composables/useSkeletonState.js';
3
+ import { Orientation } from '../../types/index.js';
4
+ import { OnyxFormElementProps } from '../OnyxFormElement/types.js';
5
+ export declare const SLIDER_CONTROLS: readonly ["icon", "value", "input"];
6
+ export type SliderControl = (typeof SLIDER_CONTROLS)[number];
7
+ export type SliderMark = {
8
+ value: number;
9
+ label?: string;
10
+ } | number;
11
+ export declare const SLIDER_MODES: readonly ["single", "range"];
12
+ export type SliderMode = (typeof SLIDER_MODES)[number];
13
+ export type SliderValue<TSliderMode extends SliderMode> = TSliderMode extends "single" ? number : [number, number];
14
+ export type OnyxSliderProps<TSliderMode extends SliderMode> = CustomValidityProp & Omit<OnyxFormElementProps<SliderValue<TSliderMode>>, "autocapitalize" | "autocomplete" | "loading" | "minlength" | "maxlength" | "placeholder" | "readonly" | "required" | "requiredMarker" | "withCounter" | "modelValue"> & {
15
+ /**
16
+ * Defines the mode of the slider.
17
+ *
18
+ * - `single`: A single-thumb slider for selecting one value.
19
+ * - `range`: A range slider with two thumbs for selecting a value range.
20
+ *
21
+ * @default "single"
22
+ */
23
+ mode?: TSliderMode;
24
+ /**
25
+ * Current value(s) of the slider.
26
+ *
27
+ * - `single` mode: provide a single value, e.g. `42`.
28
+ * - `range` mode: provide two values, e.g. `[20, 80]`.
29
+ *
30
+ * Constraints:
31
+ * - Each value must be within `[min, max]`.
32
+ * - Values should align to `step` (when `discrete` is true they will snap).
33
+ * - For `range` mode, values should be in ascending order.
34
+ *
35
+ * Recommended defaults (if your product has no specific initial value):
36
+ * - `single` mode: middle of the range → `(min + max) / 2`.
37
+ * - `range` mode: full range → `[min, max]`.
38
+ */
39
+ modelValue: SliderValue<TSliderMode>;
40
+ /**
41
+ * Smallest possible number.
42
+ */
43
+ min?: number;
44
+ /**
45
+ * Highest possible number.
46
+ */
47
+ max?: number;
48
+ /**
49
+ * Step size.
50
+ *
51
+ * @default 1
52
+ */
53
+ step?: number;
54
+ /**
55
+ * Step size when holding shift key or using Page Up/Page Down keys.
56
+ *
57
+ * Defaults to 10% of the total range (max - min) multiplied by the step size.
58
+ * This provides intuitive behavior that automatically scales with different slider ranges.
59
+ */
60
+ shiftStep?: number;
61
+ /**
62
+ * Marks to show for each step.
63
+ * - If set to `true`, marks will be generated automatically based on `step` prop.
64
+ * - If an array of `SliderMark` is provided, marks will be shown at the specified values with optional labels.
65
+ * - If set to `false`, no marks will be displayed.
66
+ *
67
+ * @default false
68
+ */
69
+ marks?: SliderMark[] | boolean;
70
+ /**
71
+ * Defines if and which control to display in addition to the slider.
72
+ * Can be used to e.g. display inputs or icon buttons that can also be used to change the value.
73
+ *
74
+ * - `value`: shows min and max value labels.
75
+ * - `icon`: shows icon buttons to increment/decrement the value. The buttons increment/decrement by the shiftStep value. Available only for `single` mode.
76
+ */
77
+ control?: SliderControl;
78
+ /**
79
+ * Orientation of the slider.
80
+ *
81
+ * @default "horizontal"
82
+ */
83
+ orientation?: Orientation;
84
+ /**
85
+ * When to show the tooltip with the current value over the thumb.
86
+ *
87
+ * @default undefined
88
+ */
89
+ disableTooltip?: boolean;
90
+ /**
91
+ * Whether to show a skeleton slider.
92
+ */
93
+ skeleton?: SkeletonInjected;
94
+ /**
95
+ * Whether to render the slider in discrete mode.
96
+ * In discrete mode, the slider will snap to the nearest step/mark.
97
+ *
98
+ * @default false
99
+ */
100
+ discrete?: boolean;
101
+ /**
102
+ * Label to show above the form element. Required due to accessibility / screen readers.
103
+ * If you want to visually hide the label, use the `hideLabel` property.
104
+ */
105
+ label: string;
106
+ };
@@ -169,6 +169,8 @@
169
169
  "ofPages": "von 1 Seite | von {n} Seiten",
170
170
  "previous": "vorherige Seite",
171
171
  "next": "nächste Seite",
172
+ "buttonLabel": "Seite {page}",
173
+ "morePages": "Weitere Seiten",
172
174
  "select": {
173
175
  "label": "Seiten-Auswahl",
174
176
  "listLabel": "Verfügbare Seiten"
@@ -169,6 +169,8 @@
169
169
  "ofPages": "of {pages} page | of {pages} pages",
170
170
  "previous": "previous page",
171
171
  "next": "next page",
172
+ "buttonLabel": "Page {page}",
173
+ "morePages": "More pages in between",
172
174
  "select": {
173
175
  "label": "Page selection",
174
176
  "listLabel": "Available pages"
@@ -169,6 +169,8 @@ declare const _default: {
169
169
  "ofPages": "of {pages} page | of {pages} pages",
170
170
  "previous": "previous page",
171
171
  "next": "next page",
172
+ "buttonLabel": "Page {page}",
173
+ "morePages": "More pages in between",
172
174
  "select": {
173
175
  "label": "Page selection",
174
176
  "listLabel": "Available pages"
package/dist/index.d.ts CHANGED
@@ -125,6 +125,8 @@ export * from './components/OnyxSidebar/modules/index.js';
125
125
  export { default as OnyxSidebar } from './components/OnyxSidebar/OnyxSidebar.vue';
126
126
  export * from './components/OnyxSidebar/types.js';
127
127
  export { default as OnyxSkeleton } from './components/OnyxSkeleton/OnyxSkeleton.vue';
128
+ export { default as OnyxUnstableSlider } from './components/OnyxSlider/OnyxSlider.vue';
129
+ export * from './components/OnyxSlider/types.js';
128
130
  export { default as OnyxStepper } from './components/OnyxStepper/OnyxStepper.vue';
129
131
  export * from './components/OnyxStepper/types.js';
130
132
  export { default as OnyxSwitch } from './components/OnyxSwitch/OnyxSwitch.vue';