@xn-lib/component 0.1.27 → 0.1.29

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.
@@ -19,5 +19,6 @@ export type { EditableTextareaProps } from './editable-textarea/props';
19
19
  export type { TimeRangePickerProps, TimeRangeValue, TimeRange } from './time-range-picker/props';
20
20
  export type { TextRuleConfigProps } from './text-rule-config/props';
21
21
  export * from './types';
22
+ export * from './time-range-picker/utils';
22
23
  declare const plugin: Plugin;
23
24
  export default plugin;
@@ -3,3 +3,5 @@ import TimeRangePickerComponent from './index.vue';
3
3
  declare const TimeRangePicker: typeof TimeRangePickerComponent & Plugin;
4
4
  export default TimeRangePicker;
5
5
  export type { TimeRangeValue, TimeRange } from './props';
6
+ export { default as XnSelectedRanges } from './selectedRanges.vue';
7
+ export * from './utils';
@@ -1,5 +1,4 @@
1
1
  import { type TimeRangeValue } from './props';
2
- declare function clearAll(): void;
3
2
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
3
  readonly modelValue: {
5
4
  readonly type: import("vue").PropType<TimeRangeValue>;
@@ -45,7 +44,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
45
44
  readonly default: 500;
46
45
  };
47
46
  }>, {
48
- clearAll: typeof clearAll;
47
+ clearAll: () => void;
49
48
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
49
  "update:modelValue": (value: TimeRangeValue) => any;
51
50
  change: (value: TimeRangeValue) => any;
@@ -10,6 +10,7 @@ export interface Selection {
10
10
  day: number;
11
11
  slot: number;
12
12
  }
13
+ export declare const defaultWeekLabels: string[];
13
14
  export declare const timeRangePickerProps: {
14
15
  readonly modelValue: {
15
16
  readonly type: PropType<TimeRangeValue>;
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ hideHeader?: boolean;
3
+ ranges: string[];
4
+ disabled?: boolean;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "clear-all": () => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ "onClear-all"?: (() => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export interface TimeSlotRange {
2
+ day: number;
3
+ startSlot: number;
4
+ endSlot: number;
5
+ }
6
+ export declare function formatTimeRanges(value: Record<number, number[]> | string, count: number, timeGranularity?: number, weekLabels?: string[]): string[];
7
+ export declare function stringToObject(value: string, count: number): Record<number, number[]>;
8
+ export declare function objectToString(value: Record<number, number[]>, count: number): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@xn-lib/component",
4
- "version": "0.1.27",
4
+ "version": "0.1.29",
5
5
  "description": "",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.mjs",