beeple-toolkit 1.0.11 → 1.0.13

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.
@@ -1,6 +1,6 @@
1
1
  import type { DatePickerVariant, DatePickerTranslations } from '../types';
2
2
  import { type DatePickerLocale } from './locales';
3
- type DatePickerValue = Date | {
3
+ export type DatePickerValue = Date | {
4
4
  start: Date;
5
5
  end: Date;
6
6
  } | {
@@ -16,6 +16,7 @@ declare const __VLS_export: import("vue").DefineComponent<DropDownProps, {}, {},
16
16
  label: string;
17
17
  size: "x-small" | "small" | "medium" | "large";
18
18
  disabled: boolean;
19
+ fullWidth: boolean;
19
20
  placeholder: string;
20
21
  isMulti: boolean;
21
22
  clearable: boolean;
@@ -19,15 +19,15 @@ interface DropDownMenuProps {
19
19
  optionValue: string;
20
20
  getOptionKey: (option: string | number | DropDownOption | Record<string, unknown>) => string;
21
21
  getOptionLabel: (option: string | number | DropDownOption | Record<string, unknown>) => string;
22
- getOptionAvatar: (option: string | number | DropDownOption | Record<string, unknown>) => {
22
+ getOptionAvatar?: (option: string | number | DropDownOption | Record<string, unknown>) => {
23
23
  photo?: string;
24
24
  fullName?: string;
25
25
  } | undefined;
26
- getOptionAvatarAlt: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
27
- getOptionLeadingIcon: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
28
- getOptionTrailingIcon: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
29
- getOptionDisabled: (option: string | number | DropDownOption | Record<string, unknown>) => boolean;
30
- getOptionClickable: (option: string | number | DropDownOption | Record<string, unknown>) => boolean;
26
+ getOptionAvatarAlt?: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
27
+ getOptionLeadingIcon?: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
28
+ getOptionTrailingIcon?: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
29
+ getOptionDisabled?: (option: string | number | DropDownOption | Record<string, unknown>) => boolean;
30
+ getOptionClickable?: (option: string | number | DropDownOption | Record<string, unknown>) => boolean;
31
31
  isSelected: (option: string | number | DropDownOption | Record<string, unknown>) => boolean;
32
32
  }
33
33
  declare const __VLS_export: import("vue").DefineComponent<DropDownMenuProps, {
@@ -58,6 +58,16 @@ declare const __VLS_export: import("vue").DefineComponent<DropDownMenuProps, {
58
58
  onSelectOption?: ((option: string | number | DropDownOption | Record<string, unknown>) => any) | undefined;
59
59
  onSetHighlighted?: ((index: number) => any) | undefined;
60
60
  "onUpdate:searchQuery"?: ((value: string) => any) | undefined;
61
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
61
+ }>, {
62
+ getOptionAvatar: (option: string | number | DropDownOption | Record<string, unknown>) => {
63
+ photo?: string;
64
+ fullName?: string;
65
+ } | undefined;
66
+ getOptionAvatarAlt: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
67
+ getOptionLeadingIcon: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
68
+ getOptionTrailingIcon: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
69
+ getOptionDisabled: (option: string | number | DropDownOption | Record<string, unknown>) => boolean;
70
+ getOptionClickable: (option: string | number | DropDownOption | Record<string, unknown>) => boolean;
71
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
62
72
  declare const _default: typeof __VLS_export;
63
73
  export default _default;
@@ -1,19 +1,23 @@
1
1
  import type { FilterButtonProps } from '../types';
2
2
  import '../DropDown/dropdown.css';
3
+ import '../DatePicker/datepicker.css';
3
4
  import './filterButton.css';
4
5
  declare const __VLS_export: import("vue").DefineComponent<FilterButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
6
  close: () => any;
6
7
  "update:modelValue": (value: unknown) => any;
7
8
  change: (value: unknown) => any;
8
9
  open: () => any;
10
+ remove: () => any;
9
11
  }, string, import("vue").PublicProps, Readonly<FilterButtonProps> & Readonly<{
10
12
  onClose?: (() => any) | undefined;
11
13
  "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
12
14
  onChange?: ((value: unknown) => any) | undefined;
13
15
  onOpen?: (() => any) | undefined;
16
+ onRemove?: (() => any) | undefined;
14
17
  }>, {
15
18
  size: import("../constants.ts").ButtonSize;
16
19
  disabled: boolean;
20
+ fullWidth: boolean;
17
21
  searchable: boolean;
18
22
  searchPlaceholder: string;
19
23
  selectAllText: string;
@@ -22,6 +26,10 @@ declare const __VLS_export: import("vue").DefineComponent<FilterButtonProps, {},
22
26
  optionLabel: string;
23
27
  optionValue: string;
24
28
  filterName: string;
29
+ rangeFromLabel: string;
30
+ rangeToLabel: string;
31
+ booleanYesLabel: string;
32
+ booleanNoLabel: string;
25
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
34
  declare const _default: typeof __VLS_export;
27
35
  export default _default;
@@ -9,9 +9,9 @@ interface FilterButtonTriggerProps {
9
9
  declare const __VLS_export: import("vue").DefineComponent<FilterButtonTriggerProps, {
10
10
  triggerRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
- clear: () => any;
12
+ remove: () => any;
13
13
  }, string, import("vue").PublicProps, Readonly<FilterButtonTriggerProps> & Readonly<{
14
- onClear?: (() => any) | undefined;
14
+ onRemove?: (() => any) | undefined;
15
15
  }>, {
16
16
  size: ButtonSize;
17
17
  disabled: boolean;
@@ -3,12 +3,12 @@ import './teamCard.css';
3
3
  declare const __VLS_export: import("vue").DefineComponent<TeamCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
4
  click: (event: MouseEvent) => any;
5
5
  "add-collaborator": () => any;
6
- "menu-action": (action: "copy" | "delete" | "move" | "edit") => any;
6
+ "menu-action": (action: "copy" | "move" | "delete" | "edit") => any;
7
7
  "update:status": (status: "published" | "unpublished") => any;
8
8
  }, string, import("vue").PublicProps, Readonly<TeamCardProps> & Readonly<{
9
9
  onClick?: ((event: MouseEvent) => any) | undefined;
10
10
  "onAdd-collaborator"?: (() => any) | undefined;
11
- "onMenu-action"?: ((action: "copy" | "delete" | "move" | "edit") => any) | undefined;
11
+ "onMenu-action"?: ((action: "copy" | "move" | "delete" | "edit") => any) | undefined;
12
12
  "onUpdate:status"?: ((status: "published" | "unpublished") => any) | undefined;
13
13
  }>, {
14
14
  color: TeamCardColor;
@@ -6,9 +6,9 @@ type __VLS_Slots = {} & {
6
6
  };
7
7
  declare const __VLS_base: import("vue").DefineComponent<TextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextProps> & Readonly<{}>, {
8
8
  size: "default" | "small" | "x-small";
9
- tag: "p" | "span" | "div";
10
9
  fontStyle: "normal" | "italic" | "oblique";
11
10
  fontWeight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "normal" | "bold" | "lighter" | "bolder";
11
+ tag: "p" | "span" | "div";
12
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
14
  declare const _default: typeof __VLS_export;
@@ -106,6 +106,7 @@ export interface DropDownProps {
106
106
  clearAllText?: string;
107
107
  groupBy?: string;
108
108
  groupLabel?: Record<string, string>;
109
+ fullWidth?: boolean;
109
110
  }
110
111
  export interface AvatarProps {
111
112
  user?: {
@@ -117,9 +118,46 @@ export interface AvatarProps {
117
118
  withIcon?: string;
118
119
  withColor?: string;
119
120
  }
121
+ export type FilterType = 'LIST_MULTI_OPTION' | 'LIST_SINGLE_OPTION' | 'NUMERIC_RANGE' | 'BOOLEAN' | 'DATE_RANGE' | 'TIME_RANGE' | 'DATE_TIME_RANGE' | 'TEXT';
122
+ export interface FilterConfigRendering {
123
+ collection: string[] | number[] | Record<string, unknown>[];
124
+ labels: string[];
125
+ min?: number;
126
+ max?: number;
127
+ label_method?: Record<string, unknown>;
128
+ label?: string;
129
+ include_blank?: string;
130
+ include_blank_label?: Record<string, unknown>;
131
+ }
132
+ export interface FilterConfigOptions {
133
+ members_type?: string;
134
+ start?: string;
135
+ end?: string;
136
+ use_selector?: boolean;
137
+ rendering: FilterConfigRendering;
138
+ }
139
+ export interface FilterConfig {
140
+ type: FilterType;
141
+ name: string;
142
+ label: string;
143
+ options: FilterConfigOptions;
144
+ }
145
+ export interface FilterRangeValue {
146
+ min: number | null;
147
+ max: number | null;
148
+ }
149
+ export interface FilterDateRangeValue {
150
+ date_minimal_value: string | null;
151
+ date_maximal_value: string | null;
152
+ }
153
+ export interface FilterTimeRangeValue {
154
+ time_minimal_value: string;
155
+ time_maximal_value: string;
156
+ }
120
157
  export interface FilterButtonProps {
121
158
  modelValue?: unknown | unknown[];
122
- options: Array<string | number | DropDownOption | Record<string, unknown>>;
159
+ options?: Array<string | number | DropDownOption | Record<string, unknown>>;
160
+ filterConfig?: FilterConfig;
123
161
  placeholder?: string;
124
162
  filterName?: string;
125
163
  isMulti?: boolean;
@@ -135,6 +173,11 @@ export interface FilterButtonProps {
135
173
  buttonType?: ButtonType;
136
174
  selectAllText?: string;
137
175
  clearAllText?: string;
176
+ rangeFromLabel?: string;
177
+ rangeToLabel?: string;
178
+ booleanYesLabel?: string;
179
+ booleanNoLabel?: string;
180
+ fullWidth?: boolean;
138
181
  }
139
182
  export interface LabelProps {
140
183
  text?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beeple-toolkit",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Vue 3 component library beeple-toolkit",
5
5
  "keywords": [
6
6
  "vue",