@3squared/forge-ui-3 0.10.2 → 0.11.1

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.
@@ -7,39 +7,142 @@ export interface ForgeCheckProps extends CheckProps {
7
7
  declare function __VLS_template(): {
8
8
  default?(_: {}): any;
9
9
  };
10
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeCheckProps>, {
11
- binary: boolean;
12
- label: string;
13
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- "update:modelValue": (...args: any[]) => void;
15
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeCheckProps>, {
16
- binary: boolean;
17
- label: string;
18
- }>>> & {
19
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
20
- }, {
10
+ declare const __VLS_component: import('vue').DefineComponent<{
11
+ modelValue: import('vue').PropType<boolean>;
12
+ label: {
13
+ type: import('vue').PropType<string>;
14
+ required: true;
15
+ default: string;
16
+ };
17
+ pt: {
18
+ type: import('vue').PropType<object | import('primevue/checkbox').CheckboxPassThroughOptions>;
19
+ };
20
+ ptOptions: {
21
+ type: import('vue').PropType<import('primevue/passthrough').PassThroughOptions>;
22
+ };
23
+ unstyled: {
24
+ type: import('vue').PropType<boolean>;
25
+ };
26
+ disabled: {
27
+ type: import('vue').PropType<boolean>;
28
+ };
29
+ name: {
30
+ type: import('vue').PropType<string>;
31
+ };
32
+ value: {
33
+ type: import('vue').PropType<any>;
34
+ };
35
+ tabindex: {
36
+ type: import('vue').PropType<number>;
37
+ };
38
+ required: {
39
+ type: import('vue').PropType<boolean>;
40
+ };
41
+ binary: {
42
+ type: import('vue').PropType<boolean>;
43
+ default: boolean;
44
+ };
45
+ invalid: {
46
+ type: import('vue').PropType<boolean>;
47
+ };
48
+ variant: {
49
+ type: import('vue').PropType<"outlined" | "filled">;
50
+ };
51
+ readonly: {
52
+ type: import('vue').PropType<boolean>;
53
+ };
54
+ trueValue: {
55
+ type: import('vue').PropType<any>;
56
+ };
57
+ falseValue: {
58
+ type: import('vue').PropType<any>;
59
+ };
60
+ inputId: {
61
+ type: import('vue').PropType<string>;
62
+ };
63
+ inputClass: {
64
+ type: import('vue').PropType<object>;
65
+ };
66
+ inputStyle: {
67
+ type: import('vue').PropType<string | object>;
68
+ };
69
+ ariaLabelledby: {
70
+ type: import('vue').PropType<string>;
71
+ };
72
+ ariaLabel: {
73
+ type: import('vue').PropType<string>;
74
+ };
75
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
76
+ modelValue: import('vue').PropType<boolean>;
77
+ label: {
78
+ type: import('vue').PropType<string>;
79
+ required: true;
80
+ default: string;
81
+ };
82
+ pt: {
83
+ type: import('vue').PropType<object | import('primevue/checkbox').CheckboxPassThroughOptions>;
84
+ };
85
+ ptOptions: {
86
+ type: import('vue').PropType<import('primevue/passthrough').PassThroughOptions>;
87
+ };
88
+ unstyled: {
89
+ type: import('vue').PropType<boolean>;
90
+ };
91
+ disabled: {
92
+ type: import('vue').PropType<boolean>;
93
+ };
94
+ name: {
95
+ type: import('vue').PropType<string>;
96
+ };
97
+ value: {
98
+ type: import('vue').PropType<any>;
99
+ };
100
+ tabindex: {
101
+ type: import('vue').PropType<number>;
102
+ };
103
+ required: {
104
+ type: import('vue').PropType<boolean>;
105
+ };
106
+ binary: {
107
+ type: import('vue').PropType<boolean>;
108
+ default: boolean;
109
+ };
110
+ invalid: {
111
+ type: import('vue').PropType<boolean>;
112
+ };
113
+ variant: {
114
+ type: import('vue').PropType<"outlined" | "filled">;
115
+ };
116
+ readonly: {
117
+ type: import('vue').PropType<boolean>;
118
+ };
119
+ trueValue: {
120
+ type: import('vue').PropType<any>;
121
+ };
122
+ falseValue: {
123
+ type: import('vue').PropType<any>;
124
+ };
125
+ inputId: {
126
+ type: import('vue').PropType<string>;
127
+ };
128
+ inputClass: {
129
+ type: import('vue').PropType<object>;
130
+ };
131
+ inputStyle: {
132
+ type: import('vue').PropType<string | object>;
133
+ };
134
+ ariaLabelledby: {
135
+ type: import('vue').PropType<string>;
136
+ };
137
+ ariaLabel: {
138
+ type: import('vue').PropType<string>;
139
+ };
140
+ }>>, {
21
141
  label: string;
22
142
  binary: boolean;
23
143
  }, {}>;
24
144
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
25
145
  export default _default;
26
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
- type __VLS_TypePropsToRuntimeProps<T> = {
28
- [K in keyof T]-?: {} extends Pick<T, K> ? {
29
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
- } : {
31
- type: import('vue').PropType<T[K]>;
32
- required: true;
33
- };
34
- };
35
- type __VLS_WithDefaults<P, D> = {
36
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
- default: D[K];
38
- }> : P[K];
39
- };
40
- type __VLS_Prettify<T> = {
41
- [K in keyof T]: T[K];
42
- } & {};
43
146
  type __VLS_WithTemplateSlots<T, S> = T & {
44
147
  new (): {
45
148
  $slots: S;
@@ -4,56 +4,79 @@ export interface ForgeMultiSelectPreviewProps {
4
4
  title?: string;
5
5
  orientation?: ForgeMultiSelectOrientation;
6
6
  height?: string;
7
- options: MultiSelectOption<unknown>[];
7
+ options: MultiSelectOption<any>[];
8
8
  canRemoveItemFromPreview?: boolean;
9
+ optionsPreviewEmptyText?: string;
9
10
  }
10
11
  declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: {
11
12
  slot: string | number;
12
13
  }) => any>> & {
13
14
  "after-multi-select"?(_: {}): any;
14
15
  "list-item"?(_: {
15
- item: MultiSelectOption<any>;
16
+ item: MultiSelectOption<unknown>;
16
17
  }): any;
17
18
  };
18
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeMultiSelectPreviewProps>, {
19
- orientation: string;
20
- canRemoveItemFromPreview: boolean;
21
- height: string;
22
- title: string;
23
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
- "update:modelValue": (...args: any[]) => void;
25
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeMultiSelectPreviewProps>, {
26
- orientation: string;
27
- canRemoveItemFromPreview: boolean;
28
- height: string;
29
- title: string;
30
- }>>> & {
31
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
32
- }, {
19
+ declare const __VLS_component: import('vue').DefineComponent<{
20
+ modelValue: import('vue').PropType<MultiSelectOption<unknown>[]>;
21
+ title: {
22
+ type: import('vue').PropType<string>;
23
+ default: string;
24
+ };
25
+ height: {
26
+ type: import('vue').PropType<string>;
27
+ default: string;
28
+ };
29
+ options: {
30
+ type: import('vue').PropType<MultiSelectOption<any>[]>;
31
+ required: true;
32
+ };
33
+ orientation: {
34
+ type: import('vue').PropType<ForgeMultiSelectOrientation>;
35
+ default: string;
36
+ };
37
+ canRemoveItemFromPreview: {
38
+ type: import('vue').PropType<boolean>;
39
+ default: boolean;
40
+ };
41
+ optionsPreviewEmptyText: {
42
+ type: import('vue').PropType<string>;
43
+ default: string;
44
+ };
45
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
46
+ modelValue: import('vue').PropType<MultiSelectOption<unknown>[]>;
47
+ title: {
48
+ type: import('vue').PropType<string>;
49
+ default: string;
50
+ };
51
+ height: {
52
+ type: import('vue').PropType<string>;
53
+ default: string;
54
+ };
55
+ options: {
56
+ type: import('vue').PropType<MultiSelectOption<any>[]>;
57
+ required: true;
58
+ };
59
+ orientation: {
60
+ type: import('vue').PropType<ForgeMultiSelectOrientation>;
61
+ default: string;
62
+ };
63
+ canRemoveItemFromPreview: {
64
+ type: import('vue').PropType<boolean>;
65
+ default: boolean;
66
+ };
67
+ optionsPreviewEmptyText: {
68
+ type: import('vue').PropType<string>;
69
+ default: string;
70
+ };
71
+ }>>, {
33
72
  title: string;
34
73
  height: string;
35
74
  orientation: ForgeMultiSelectOrientation;
36
75
  canRemoveItemFromPreview: boolean;
76
+ optionsPreviewEmptyText: string;
37
77
  }, {}>;
38
78
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
39
79
  export default _default;
40
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
- type __VLS_TypePropsToRuntimeProps<T> = {
42
- [K in keyof T]-?: {} extends Pick<T, K> ? {
43
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
44
- } : {
45
- type: import('vue').PropType<T[K]>;
46
- required: true;
47
- };
48
- };
49
- type __VLS_WithDefaults<P, D> = {
50
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
- default: D[K];
52
- }> : P[K];
53
- };
54
- type __VLS_Prettify<T> = {
55
- [K in keyof T]: T[K];
56
- } & {};
57
80
  type __VLS_WithTemplateSlots<T, S> = T & {
58
81
  new (): {
59
82
  $slots: S;
@@ -1,4 +1,8 @@
1
+ import { MultiSelectOption } from '../types/forge-types.ts';
2
+
1
3
  export declare function parseError(error: any): {
2
4
  errorMessage: string;
3
5
  errorDetails: string[];
4
6
  };
7
+ export declare function enumToMultiSelectList<T>(items: readonly T[], formatter?: (val: T) => string): MultiSelectOption<T>[];
8
+ export declare function convertToMultiSelectOption<T>(id: T & Pick<string, "toString">, label?: string, shortLabel?: string): MultiSelectOption<T>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@3squared/forge-ui-3",
3
3
  "repository": "https://github.com/3Squared/ForgeUI-3",
4
4
  "description": "ForgeUI 3 is Vue 3 UI Library which combines a variety of popular packages to create a consistent UI for your application.",
5
- "version": "0.10.2",
5
+ "version": "0.11.1",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "contributors": [
@@ -51,7 +51,7 @@
51
51
  "typescript": "5.5.4",
52
52
  "unplugin-vue-components": "0.27.3",
53
53
  "rollup-plugin-visualizer": "5.12.0",
54
- "vite": "5.3.5",
54
+ "vite": "5.4.0",
55
55
  "vite-bundle-visualizer": "1.2.1",
56
56
  "vite-plugin-istanbul": "6.0.2",
57
57
  "vitest": "1.6.0",
@@ -176,7 +176,7 @@
176
176
 
177
177
  .multiselect__option {
178
178
  display: block;
179
- padding: 5px;
179
+ padding: 0px;
180
180
  min-height: 26px;
181
181
  line-height: 21px;
182
182
  text-decoration: none;