@club-employes/utopia 4.80.0 → 4.82.0

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.
@@ -17,6 +17,7 @@ declare const __VLS_component: DefineComponent<CheckboxProps, {}, {}, {}, {}, Co
17
17
  size: "small" | "medium" | "large";
18
18
  disabled: boolean;
19
19
  modelValue: boolean;
20
+ focusable: boolean;
20
21
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
21
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
23
  export default _default;
@@ -1,5 +1,6 @@
1
1
  export interface CheckboxProps {
2
2
  modelValue?: boolean;
3
3
  disabled?: boolean;
4
+ focusable?: boolean;
4
5
  size?: 'small' | 'medium' | 'large';
5
6
  }
@@ -1,6 +1,7 @@
1
1
  export interface DropDownOption {
2
2
  value: string | number | boolean;
3
3
  label: string;
4
+ secondaryLabel?: string;
4
5
  disabled?: boolean;
5
6
  }
6
7
  export interface DropDownProps {
@@ -0,0 +1,16 @@
1
+ import { FilterLocationProps, FilterLocationValue } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { DropDownOption } from '../DropDown/types';
4
+ declare const _default: DefineComponent<FilterLocationProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5
+ "update:modelValue": (value: FilterLocationValue) => any;
6
+ }, string, PublicProps, Readonly<FilterLocationProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: FilterLocationValue) => any) | undefined;
8
+ }>, {
9
+ regionLabel: string;
10
+ orLabel: string;
11
+ nearMeLabel: string;
12
+ geolocDisabledLabel: string;
13
+ regions: DropDownOption[];
14
+ maxDistance: number;
15
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as FilterLocation } from './FilterLocation';
2
+ export type { FilterLocationProps } from './types';
@@ -0,0 +1,19 @@
1
+ import { DropDownOption } from '../DropDown/types';
2
+ export interface FilterLocationValue {
3
+ region?: string;
4
+ location: {
5
+ active: boolean;
6
+ distance?: number;
7
+ latitude?: number;
8
+ longitude?: number;
9
+ };
10
+ }
11
+ export interface FilterLocationProps {
12
+ regionLabel?: string;
13
+ orLabel?: string;
14
+ nearMeLabel?: string;
15
+ geolocDisabledLabel?: string;
16
+ modelValue: FilterLocationValue;
17
+ regions?: DropDownOption[];
18
+ maxDistance?: number;
19
+ }
@@ -1,6 +1,7 @@
1
1
  export interface FilterSelectOption {
2
2
  value: string;
3
3
  label: string;
4
+ count?: number;
4
5
  active: boolean;
5
6
  imageUrl?: string;
6
7
  children?: {
@@ -1,7 +1,7 @@
1
1
  export { BottomSheet } from './BottomSheet';
2
2
  export type { BottomSheetChangeReason, BottomSheetProps } from './BottomSheet/types';
3
3
  export { DatePicker } from './DatePicker';
4
- export type { DatePickerProps } from './DatePicker';
4
+ export type { DatePickerProps } from './DatePicker/types';
5
5
  export { DropDown } from './DropDown';
6
6
  export { DropFilter } from './DropFilter';
7
7
  export { FeedbackState } from './FeedbackState';
@@ -22,3 +22,4 @@ export type { SlideType, SliderProps } from './Slider';
22
22
  export { Tab, Tabs } from './Tabs';
23
23
  export type { TabProps, TabsProps } from './Tabs/types';
24
24
  export { Tooltip } from './Tooltip';
25
+ export { FilterLocation, type FilterLocationProps } from './FilterLocation';
@@ -1,10 +1,10 @@
1
- import { FilterSelectProps } from '../../molecules';
1
+ import { FilterSelectProps, FilterLocationProps } from '../../molecules';
2
2
  import { FilterPriceProps } from '../FilterPrice/types';
3
- export type FilterType = 'Select' | 'Price';
3
+ export type FilterType = 'Select' | 'Price' | 'Location';
4
4
  export interface Filter {
5
5
  label: string;
6
6
  type: FilterType;
7
- value: FilterSelectProps | FilterPriceProps;
7
+ value: FilterSelectProps | FilterPriceProps | FilterLocationProps;
8
8
  }
9
9
  export interface Sort {
10
10
  label: string;
@@ -1,4 +1,4 @@
1
- import { TableProps, ColumnType } from './types';
1
+ import { ColumnType, TableProps } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { DataTableFilterMeta } from 'primevue/datatable';
4
4
  type __VLS_Props = TableProps<any>;
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ export declare function useGeolocation(): {
3
+ geolocationEnabled: Ref<boolean>;
4
+ getLocation: (callback: (active: boolean, coords?: {
5
+ latitude: number;
6
+ longitude: number;
7
+ }) => void) => void;
8
+ };