@vc-shell/framework 1.1.84 → 1.1.85
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.
- package/CHANGELOG.md +9 -0
- package/core/types/index.ts +4 -4
- package/dist/core/types/index.d.ts +4 -4
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +2773 -2769
- package/dist/index.css +1 -1
- package/dist/shared/composables/useExternalWidgets.d.ts.map +1 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +3 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +3 -3
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +63 -36
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts +3 -13
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/types.d.ts +5 -5
- package/dist/ui/components/organisms/vc-table/types.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/composables/useExternalWidgets.ts +2 -1
- package/shared/composables/useMenuExpanded.ts +1 -1
- package/shared/modules/assets/components/assets-details/assets-details.vue +4 -0
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +2 -2
- package/shared/modules/dynamic/types/index.ts +2 -2
- package/ui/components/molecules/vc-input/vc-input.vue +68 -23
- package/ui/components/organisms/vc-blade/vc-blade.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue +3 -3
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue +3 -3
- package/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue +21 -35
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue +7 -3
- package/ui/components/organisms/vc-table/types.ts +5 -5
- package/ui/components/organisms/vc-table/vc-table.vue +3 -3
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { VueDatePickerProps } from "@vuepic/vue-datepicker";
|
|
1
|
+
import { VueDatePickerProps, ModelValue } from "@vuepic/vue-datepicker";
|
|
2
2
|
import "@vuepic/vue-datepicker/dist/main.css";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
modelValue?: string | number | Date | null | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Base props for VcInput
|
|
5
|
+
*/
|
|
6
|
+
interface VcInputBaseProps {
|
|
8
7
|
/**
|
|
9
8
|
* Input label text
|
|
10
9
|
*/
|
|
@@ -13,15 +12,6 @@ export interface Props {
|
|
|
13
12
|
* Input placeholder text
|
|
14
13
|
*/
|
|
15
14
|
placeholder?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Input type
|
|
18
|
-
* Default value: text
|
|
19
|
-
*/
|
|
20
|
-
type?: "text" | "password" | "email" | "tel" | "number" | "integer" | "url" | "time" | "date" | "datetime-local";
|
|
21
|
-
/**
|
|
22
|
-
* The step attribute is a number that specifies the granularity that the value must adhere to.
|
|
23
|
-
*/
|
|
24
|
-
step?: string;
|
|
25
15
|
/**
|
|
26
16
|
* Input description (hint) text below input component
|
|
27
17
|
*/
|
|
@@ -88,6 +78,53 @@ export interface Props {
|
|
|
88
78
|
* Input current language
|
|
89
79
|
*/
|
|
90
80
|
currentLanguage?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The step attribute is a number that specifies the granularity that the value must adhere to.
|
|
83
|
+
*/
|
|
84
|
+
step?: string;
|
|
85
|
+
size?: "default" | "small";
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Props for string-based inputs
|
|
89
|
+
*/
|
|
90
|
+
interface VcInputStringProps extends VcInputBaseProps {
|
|
91
|
+
/**
|
|
92
|
+
* Model of the component; Use with a listener for 'update:model-value' event OR use v-model directive
|
|
93
|
+
*/
|
|
94
|
+
modelValue?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Input type
|
|
97
|
+
* Default value: text
|
|
98
|
+
*/
|
|
99
|
+
type?: "text" | "password" | "email" | "tel" | "url" | "time";
|
|
100
|
+
datePickerOptions?: never;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Props for number-based inputs
|
|
104
|
+
*/
|
|
105
|
+
interface VcInputNumberProps extends VcInputBaseProps {
|
|
106
|
+
/**
|
|
107
|
+
* Model of the component; Use with a listener for 'update:model-value' event OR use v-model directive
|
|
108
|
+
*/
|
|
109
|
+
modelValue?: number | null;
|
|
110
|
+
/**
|
|
111
|
+
* Input type
|
|
112
|
+
*/
|
|
113
|
+
type: "number" | "integer";
|
|
114
|
+
datePickerOptions?: never;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Props for date-based inputs
|
|
118
|
+
*/
|
|
119
|
+
interface VcInputDateProps extends VcInputBaseProps {
|
|
120
|
+
/**
|
|
121
|
+
* Model of the component; Use with a listener for 'update:model-value' event OR use v-model directive
|
|
122
|
+
*/
|
|
123
|
+
modelValue?: ModelValue;
|
|
124
|
+
/**
|
|
125
|
+
* Input type
|
|
126
|
+
*/
|
|
127
|
+
type: "date" | "datetime-local";
|
|
91
128
|
/**
|
|
92
129
|
* VueDatePicker options
|
|
93
130
|
*
|
|
@@ -96,13 +133,17 @@ export interface Props {
|
|
|
96
133
|
* @see https://vue3datepicker.com/
|
|
97
134
|
*/
|
|
98
135
|
datePickerOptions?: VueDatePickerProps;
|
|
99
|
-
size?: "default" | "small";
|
|
100
136
|
}
|
|
137
|
+
export type Props = VcInputStringProps | VcInputNumberProps | VcInputDateProps;
|
|
101
138
|
export interface Emits {
|
|
102
139
|
/**
|
|
103
140
|
* Emitted when the component needs to change the model; Is also used by v-model
|
|
141
|
+
* Type of value depends on input type:
|
|
142
|
+
* - string inputs: string | null
|
|
143
|
+
* - number inputs: number | null
|
|
144
|
+
* - date inputs: ModelValue
|
|
104
145
|
*/
|
|
105
|
-
(event: "update:modelValue", value: string | number |
|
|
146
|
+
(event: "update:modelValue", value: string | number | ModelValue | null | undefined): void;
|
|
106
147
|
(event: "blur", value: Event): void;
|
|
107
148
|
(event: "focus"): void;
|
|
108
149
|
}
|
|
@@ -121,14 +162,14 @@ type __VLS_Slots = {
|
|
|
121
162
|
*/
|
|
122
163
|
focused: boolean | undefined;
|
|
123
164
|
/**
|
|
124
|
-
* Field's value
|
|
165
|
+
* Field's value - type depends on input type
|
|
125
166
|
*/
|
|
126
|
-
modelValue: string | number |
|
|
167
|
+
modelValue: string | number | ModelValue | null;
|
|
127
168
|
/**
|
|
128
169
|
* Function that emits an @input event in the context of the field
|
|
129
|
-
* @param value Value to be emitted
|
|
170
|
+
* @param value Value to be emitted - type depends on input type
|
|
130
171
|
*/
|
|
131
|
-
emitValue: (value: string | number |
|
|
172
|
+
emitValue: (value: string | number | ModelValue | null) => void;
|
|
132
173
|
/**
|
|
133
174
|
* Field placeholder text
|
|
134
175
|
*/
|
|
@@ -167,21 +208,7 @@ type __VLS_Slots = {
|
|
|
167
208
|
*/
|
|
168
209
|
hint: (props: any) => any;
|
|
169
210
|
};
|
|
170
|
-
declare const __VLS_component: import("vue").
|
|
171
|
-
blur: (value: Event) => any;
|
|
172
|
-
focus: () => any;
|
|
173
|
-
"update:modelValue": (value: string | number | Date | null | undefined) => any;
|
|
174
|
-
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
175
|
-
onBlur?: ((value: Event) => any) | undefined;
|
|
176
|
-
onFocus?: (() => any) | undefined;
|
|
177
|
-
"onUpdate:modelValue"?: ((value: string | number | Date | null | undefined) => any) | undefined;
|
|
178
|
-
}>, {
|
|
179
|
-
size: "default" | "small";
|
|
180
|
-
type: "text" | "password" | "email" | "tel" | "number" | "integer" | "url" | "time" | "date" | "datetime-local";
|
|
181
|
-
name: string;
|
|
182
|
-
step: string;
|
|
183
|
-
maxlength: string | number;
|
|
184
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
211
|
+
declare const __VLS_component: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
|
|
185
212
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
186
213
|
export default _default;
|
|
187
214
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-input.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-input/vc-input.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vc-input.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-input/vc-input.vue"],"names":[],"mappings":"AA64BA,OAAsB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACvF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AK,IAAI,CAAC;QAChE;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;KACjC,KAAK,GAAG,CAAC;IACV;;OAEG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,GAAG,CAAC;IAC/C;;OAEG;IACH,eAAe,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,GAAG,CAAC;IACvD;;OAEG;IACH,cAAc,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,GAAG,CAAC;IACtD;;OAEG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,GAAG,CAAC;IAC9C;;OAEG;IACH,KAAK,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;IAC3B;;OAEG;IACH,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;CAC3B,CAAC;AAulBF,QAAA,MAAM,eAAe,wHAQnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -23,7 +23,7 @@ type __VLS_Slots = {
|
|
|
23
23
|
* Use `useWidgets` composable instead
|
|
24
24
|
* @example
|
|
25
25
|
* // Register widget in blade:
|
|
26
|
-
* const blade =
|
|
26
|
+
* const blade = useBlade();
|
|
27
27
|
* const widgetService = useWidgets();
|
|
28
28
|
* widgetService.registerWidget({
|
|
29
29
|
* id: "widget-id",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IActionBuilderResult } from "../../../../../../../../core/types";
|
|
2
|
-
import type { TableSlots, TableItem, TableColPartial,
|
|
2
|
+
import type { TableSlots, TableItem, TableColPartial, TableEmptyAction } from "../../../../types";
|
|
3
3
|
import { MaybeRef } from "vue";
|
|
4
4
|
declare const _default: <T extends TableItem | string>(__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<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -41,8 +41,8 @@ declare const _default: <T extends TableItem | string>(__VLS_props: NonNullable<
|
|
|
41
41
|
columnsInit: boolean;
|
|
42
42
|
searchValue?: string;
|
|
43
43
|
activeFilterCount?: number;
|
|
44
|
-
notfound?:
|
|
45
|
-
empty?:
|
|
44
|
+
notfound?: TableEmptyAction;
|
|
45
|
+
empty?: TableEmptyAction;
|
|
46
46
|
isSelected: (item: T) => boolean;
|
|
47
47
|
} & Partial<{}>> & import("vue").PublicProps;
|
|
48
48
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table-body.vue.d.ts","sourceRoot":"","sources":["../../../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue"],"names":[],"mappings":"AAuIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"vc-table-body.vue.d.ts","sourceRoot":"","sources":["../../../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue"],"names":[],"mappings":"AAuIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,o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xC,cAAc,SAAS,SAAS,QAAQ,CAAC,GAAG,IAAI;YAChD,aAAa,SAAS,SAAS,QAAQ,CAAC,GAAG,IAAI;YAC/C,cAAc,SAAS,SAAS,GAAG,IAAI;YACvC,YAAY,SAAS,SAAS,GAAG,IAAI;YACrC,SAAS,SAAS,SAAS,GAAG,IAAI;YAClC,aAAa,SAAS,MAAM,GAAG,IAAI;YACnC,aAAa,QAAQ,CAAC,GAAG,IAAI;YAC7B,gBAAgB,QAAQ;YAAE,KAAK,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI;YAClG,YAAY,QAAQ;YAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI;;EA+OvE,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAxRzE,wBAwR4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MaybeRef } from "vue";
|
|
2
2
|
import type { IActionBuilderResult, ITableColumns } from "../../../../../../core/types";
|
|
3
|
-
import type { TableSlots, TableItem, TableColPartial,
|
|
3
|
+
import type { TableSlots, TableItem, TableColPartial, TableEmptyAction } from "../../types";
|
|
4
4
|
declare const _default: <T extends TableItem | string>(__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<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly onItemClick?: ((item: T) => any) | undefined;
|
|
@@ -58,8 +58,8 @@ declare const _default: <T extends TableItem | string>(__VLS_props: NonNullable<
|
|
|
58
58
|
hasClickListener?: boolean;
|
|
59
59
|
searchValue?: string;
|
|
60
60
|
activeFilterCount?: number;
|
|
61
|
-
notfound?:
|
|
62
|
-
empty?:
|
|
61
|
+
notfound?: TableEmptyAction;
|
|
62
|
+
empty?: TableEmptyAction;
|
|
63
63
|
isSelected: (item: T) => boolean;
|
|
64
64
|
rowCheckbox: (item: T) => void;
|
|
65
65
|
internalColumns: TableColPartial[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table-desktop-view.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue"],"names":[],"mappings":"AAAA,OAsNO,EAAU,QAAQ,EAAY,MAAM,KAAK,CAAC;AAIjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"vc-table-desktop-view.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue"],"names":[],"mappings":"AAAA,OAsNO,EAAU,QAAQ,EAAY,MAAM,KAAK,CAAC;AAIjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;yBAE3E,CAAC,SAAS,SAAS,GAAG,MAAM,EAC5C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAA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AE,MAAM,CAAC;gBAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI;YAClG,YAAY,QAAQ;YAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI;YACrE,iBAAiB,SAAS,OAAO,GAAG,IAAI;YACxC,gBAAgB,SAAS,OAAO,GAAG,IAAI;YACvC,aAAa,QAAQ,aAAa,GAAG,IAAI;YACzC,WAAW,GAAG,IAAI;YAClB,uBAAuB,SAAS,OAAO,GAAG,IAAI;YAC9C,eAAe,GAAG,IAAI;YACtB,cAAc,GAAG,IAAI;YACrB,aAAa,QAAQ;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,CAAC,EAAE,CAAA;SAAE,GAAG,IAAI;YAChF,aAAa,SAAS,MAAM,GAAG,IAAI;YACnC,cAAc,GAAG,IAAI;YACrB,cAAc,QAAQ,aAAa,GAAG,IAAI;;EA8U5C,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAtYzE,wBAsY4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts
CHANGED
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TableEmptyAction } from "../../types";
|
|
2
2
|
export interface Props {
|
|
3
3
|
items: any[];
|
|
4
4
|
columnsInit: boolean;
|
|
5
5
|
searchValue?: string;
|
|
6
6
|
activeFilterCount?: number;
|
|
7
|
-
notfound?:
|
|
8
|
-
|
|
9
|
-
text: string | Ref<string>;
|
|
10
|
-
action?: string;
|
|
11
|
-
clickHandler?: () => void;
|
|
12
|
-
};
|
|
13
|
-
empty?: {
|
|
14
|
-
image?: string;
|
|
15
|
-
text: string | Ref<string>;
|
|
16
|
-
action?: string;
|
|
17
|
-
clickHandler?: () => void;
|
|
18
|
-
};
|
|
7
|
+
notfound?: TableEmptyAction;
|
|
8
|
+
empty?: TableEmptyAction;
|
|
19
9
|
}
|
|
20
10
|
type __VLS_Slots = {
|
|
21
11
|
notfound: void;
|
package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table-empty.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vc-table-empty.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue"],"names":[],"mappings":"AA2FA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAID,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,IAAI,CAAC;IACf,KAAK,EAAE,IAAI,CAAC;CACb,CAAC;AAiIF,QAAA,MAAM,eAAe,sRAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TableItem,
|
|
1
|
+
import type { TableItem, TableEmptyAction } from "../../types";
|
|
2
2
|
import { IActionBuilderResult, ITableColumns } from "../../../../../../core/types";
|
|
3
3
|
declare const _default: <T extends TableItem | string>(__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<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -27,8 +27,8 @@ declare const _default: <T extends TableItem | string>(__VLS_props: NonNullable<
|
|
|
27
27
|
columnsInit: boolean;
|
|
28
28
|
searchValue?: string;
|
|
29
29
|
activeFilterCount?: number;
|
|
30
|
-
notfound?:
|
|
31
|
-
empty?:
|
|
30
|
+
notfound?: TableEmptyAction;
|
|
31
|
+
empty?: TableEmptyAction;
|
|
32
32
|
} & Partial<{}>> & import("vue").PublicProps;
|
|
33
33
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
34
34
|
attrs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table-mobile-view.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vc-table-mobile-view.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue"],"names":[],"mappings":"AA4bA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,aAA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C3B,gBAAgB,QAAQ;YAAE,KAAK,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI;YAClG,YAAY,QAAQ;YAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI;;EA+gBvE,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA1iBzE,wBA0iB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Ref, VNode } from "vue";
|
|
1
|
+
import type { ComputedRef, Ref, VNode } from "vue";
|
|
2
2
|
import { IActionBuilderResult, ITableColumns } from "../../../../core/types";
|
|
3
3
|
export interface TableSlots<T> {
|
|
4
4
|
header: (props: {
|
|
@@ -27,10 +27,10 @@ export interface TableItem {
|
|
|
27
27
|
export type TableColPartial = Partial<ITableColumns & {
|
|
28
28
|
predefined?: boolean;
|
|
29
29
|
}>;
|
|
30
|
-
export interface
|
|
31
|
-
|
|
32
|
-
text: string | Ref<string>;
|
|
33
|
-
action?: string
|
|
30
|
+
export interface TableEmptyAction {
|
|
31
|
+
icon?: string;
|
|
32
|
+
text: string | Ref<string> | ComputedRef<string>;
|
|
33
|
+
action?: string | Ref<string> | ComputedRef<string>;
|
|
34
34
|
clickHandler?: () => void;
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/types.ts"],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C,EAAE,CAAC;CACvC;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,CACnC,aAAa,GAAG;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CACF,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B"}
|
|
@@ -4,7 +4,7 @@ import { IActionBuilderResult, ITableColumns } from "./../../../../core/types";
|
|
|
4
4
|
import "core-js/actual/array/to-spliced";
|
|
5
5
|
import "core-js/actual/array/to-sorted";
|
|
6
6
|
import type { ComponentProps } from "vue-component-type-helpers";
|
|
7
|
-
import type { TableSlots, TableItem,
|
|
7
|
+
import type { TableSlots, TableItem, TableEmptyAction } from "./types";
|
|
8
8
|
declare const _default: <T extends TableItem | string>(__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<{
|
|
9
9
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
10
10
|
readonly "onScroll:ptr"?: (() => any) | undefined;
|
|
@@ -46,8 +46,8 @@ declare const _default: <T extends TableItem | string>(__VLS_props: NonNullable<
|
|
|
46
46
|
searchPlaceholder?: string;
|
|
47
47
|
searchValue?: string;
|
|
48
48
|
loading?: MaybeRef<boolean>;
|
|
49
|
-
empty?:
|
|
50
|
-
notfound?:
|
|
49
|
+
empty?: TableEmptyAction;
|
|
50
|
+
notfound?: TableEmptyAction;
|
|
51
51
|
header?: boolean;
|
|
52
52
|
footer?: boolean;
|
|
53
53
|
activeFilterCount?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue"],"names":[],"mappings":"AAAA,OAutBO,EAAE,QAAQ,EAAiF,MAAM,KAAK,CAAC;AAC9G,OAAO,EAAe,YAAY,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE/E,OAAO,iCAAiC,CAAC;AACzC,OAAO,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AASjE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAmB,
|
|
1
|
+
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue"],"names":[],"mappings":"AAAA,OAutBO,EAAE,QAAQ,EAAiF,MAAM,KAAK,CAAC;AAC9G,OAAO,EAAe,YAAY,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE/E,OAAO,iCAAiC,CAAC;AACzC,OAAO,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AASjE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAmB,gBAAgB,EAAE,MAAM,SAAS,CAAC;yBAEvE,CAAC,SAAS,SAAS,GAAG,MAAM,EAC5C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAA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Q,MAAM,GAAG,IAAI;YACtC,kBAAkB,UAAU,CAAC,EAAE,GAAG,IAAI;YACtC,eAAe,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YACjD,aAAa,QAAQ,aAAa,GAAG,IAAI;YACzC,WAAW,QAAQ,CAAC,GAAG,IAAI;YAC3B,YAAY,GAAG,IAAI;YACnB,aAAa,QAAQ;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,CAAC,EAAE,CAAA;SAAE,GAAG,IAAI;YAChF,YAAY,UAAU,OAAO,GAAG,IAAI;YACpC,gBAAgB,QAAQ;YAAE,KAAK,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI;YAClG,aAAa,GAAG,IAAI;YACpB,YAAY,QAAQ;YAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI;;EA6nBvE,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA3sBzE,wBA2sB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.85",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"@fullhuman/postcss-purgecss": "^7.0.2",
|
|
91
91
|
"@laynezh/vite-plugin-lib-assets": "v1.1.0",
|
|
92
92
|
"@types/dompurify": "^3.0.5",
|
|
93
|
-
"@vc-shell/api-client-generator": "^1.1.
|
|
94
|
-
"@vc-shell/config-generator": "^1.1.
|
|
95
|
-
"@vc-shell/ts-config": "^1.1.
|
|
93
|
+
"@vc-shell/api-client-generator": "^1.1.85",
|
|
94
|
+
"@vc-shell/config-generator": "^1.1.85",
|
|
95
|
+
"@vc-shell/ts-config": "^1.1.85",
|
|
96
96
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
97
97
|
"@vue/test-utils": "^2.4.5",
|
|
98
98
|
"cypress-signalr-mock": "^1.5.0",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { computed, inject, onMounted, onUnmounted, watch, toValue, Ref, ComputedRef } from "vue";
|
|
2
2
|
import { WidgetServiceKey, BladeInstance } from "../../injection-keys";
|
|
3
3
|
import { IWidget } from "../../core/services";
|
|
4
|
+
import { useBlade } from "../../core/composables";
|
|
4
5
|
|
|
5
6
|
export interface UseExternalWidgetsOptions {
|
|
6
7
|
bladeId: Ref<string> | string;
|
|
@@ -11,7 +12,7 @@ export function useExternalWidgets(options: UseExternalWidgetsOptions) {
|
|
|
11
12
|
const { bladeId, bladeData } = options;
|
|
12
13
|
|
|
13
14
|
const widgetService = inject(WidgetServiceKey);
|
|
14
|
-
const blade =
|
|
15
|
+
const blade = useBlade();
|
|
15
16
|
|
|
16
17
|
// Normalize bladeId to lowercase for consistency
|
|
17
18
|
const normalizedBladeId = computed(() => blade?.value.id?.toLowerCase() ?? "");
|
|
@@ -13,7 +13,7 @@ const isHoverExpanded = ref(false);
|
|
|
13
13
|
function getStorageKey(): string {
|
|
14
14
|
// Extract app name from pathname (e.g., "/vendor-portal/" -> "vendor-portal")
|
|
15
15
|
const pathSegments = window.location.pathname.split("/").filter(Boolean);
|
|
16
|
-
const appName = pathSegments[
|
|
16
|
+
const appName = pathSegments[pathSegments.length - 1] || "default";
|
|
17
17
|
return `${STORAGE_KEY_PREFIX}_${appName}`;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -160,7 +160,7 @@ import { IParentCallArgs } from "../../../index";
|
|
|
160
160
|
import { reactiveComputed, toReactive, useMounted } from "@vueuse/core";
|
|
161
161
|
import { safeIn } from "../helpers/safeIn";
|
|
162
162
|
import { useWidgets } from "../../../../core/composables/useWidgets";
|
|
163
|
-
import {
|
|
163
|
+
import { useBlade } from "../../../../core/composables";
|
|
164
164
|
|
|
165
165
|
export interface Props {
|
|
166
166
|
expanded?: boolean;
|
|
@@ -203,7 +203,7 @@ const sort = shallowRef();
|
|
|
203
203
|
const selectedIds = shallowRef<string[]>([]);
|
|
204
204
|
const itemsProxy = ref<Record<string, any>[]>();
|
|
205
205
|
const isMixinReady = ref(false);
|
|
206
|
-
const blade =
|
|
206
|
+
const blade = useBlade();
|
|
207
207
|
|
|
208
208
|
const { setNavigationQuery, getNavigationQuery } = useBladeNavigation();
|
|
209
209
|
|
|
@@ -458,7 +458,7 @@ export interface InputSchema extends SchemaBase {
|
|
|
458
458
|
* Input type.
|
|
459
459
|
* @type {"number" | "text" | "password" | "email" | "tel" | "url" | "time" | "date" | "datetime-local"}
|
|
460
460
|
*/
|
|
461
|
-
variant?:
|
|
461
|
+
variant?: "text" | "password" | "email" | "tel" | "number" | "integer" | "url" | "time" | "date" | "datetime-local";
|
|
462
462
|
/**
|
|
463
463
|
* Whether the input is clearable or not.
|
|
464
464
|
* @type {boolean}
|
|
@@ -496,7 +496,7 @@ export interface InputSchema extends SchemaBase {
|
|
|
496
496
|
/**
|
|
497
497
|
* Datepicker options.
|
|
498
498
|
*/
|
|
499
|
-
datePickerOptions?:
|
|
499
|
+
datePickerOptions?: import("@vuepic/vue-datepicker").VueDatePickerProps;
|
|
500
500
|
/**
|
|
501
501
|
* Whether the input is in loading state or not.
|
|
502
502
|
* @type {boolean}
|
|
@@ -241,14 +241,13 @@
|
|
|
241
241
|
<script lang="ts" setup>
|
|
242
242
|
import { computed, ref, unref, watch } from "vue";
|
|
243
243
|
import { VcLabel, VcIcon, VcHint } from "./../../";
|
|
244
|
-
import VueDatePicker, { VueDatePickerProps } from "@vuepic/vue-datepicker";
|
|
244
|
+
import VueDatePicker, { VueDatePickerProps, ModelValue } from "@vuepic/vue-datepicker";
|
|
245
245
|
import "@vuepic/vue-datepicker/dist/main.css";
|
|
246
246
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
modelValue?: string | number | Date | null | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* Base props for VcInput
|
|
249
|
+
*/
|
|
250
|
+
interface VcInputBaseProps {
|
|
252
251
|
/**
|
|
253
252
|
* Input label text
|
|
254
253
|
*/
|
|
@@ -257,15 +256,6 @@ export interface Props {
|
|
|
257
256
|
* Input placeholder text
|
|
258
257
|
*/
|
|
259
258
|
placeholder?: string;
|
|
260
|
-
/**
|
|
261
|
-
* Input type
|
|
262
|
-
* Default value: text
|
|
263
|
-
*/
|
|
264
|
-
type?: "text" | "password" | "email" | "tel" | "number" | "integer" | "url" | "time" | "date" | "datetime-local";
|
|
265
|
-
/**
|
|
266
|
-
* The step attribute is a number that specifies the granularity that the value must adhere to.
|
|
267
|
-
*/
|
|
268
|
-
step?: string;
|
|
269
259
|
/**
|
|
270
260
|
* Input description (hint) text below input component
|
|
271
261
|
*/
|
|
@@ -332,6 +322,56 @@ export interface Props {
|
|
|
332
322
|
* Input current language
|
|
333
323
|
*/
|
|
334
324
|
currentLanguage?: string;
|
|
325
|
+
/**
|
|
326
|
+
* The step attribute is a number that specifies the granularity that the value must adhere to.
|
|
327
|
+
*/
|
|
328
|
+
step?: string;
|
|
329
|
+
size?: "default" | "small";
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Props for string-based inputs
|
|
334
|
+
*/
|
|
335
|
+
interface VcInputStringProps extends VcInputBaseProps {
|
|
336
|
+
/**
|
|
337
|
+
* Model of the component; Use with a listener for 'update:model-value' event OR use v-model directive
|
|
338
|
+
*/
|
|
339
|
+
modelValue?: string | null;
|
|
340
|
+
/**
|
|
341
|
+
* Input type
|
|
342
|
+
* Default value: text
|
|
343
|
+
*/
|
|
344
|
+
type?: "text" | "password" | "email" | "tel" | "url" | "time";
|
|
345
|
+
datePickerOptions?: never;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Props for number-based inputs
|
|
350
|
+
*/
|
|
351
|
+
interface VcInputNumberProps extends VcInputBaseProps {
|
|
352
|
+
/**
|
|
353
|
+
* Model of the component; Use with a listener for 'update:model-value' event OR use v-model directive
|
|
354
|
+
*/
|
|
355
|
+
modelValue?: number | null;
|
|
356
|
+
/**
|
|
357
|
+
* Input type
|
|
358
|
+
*/
|
|
359
|
+
type: "number" | "integer";
|
|
360
|
+
datePickerOptions?: never;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Props for date-based inputs
|
|
365
|
+
*/
|
|
366
|
+
interface VcInputDateProps extends VcInputBaseProps {
|
|
367
|
+
/**
|
|
368
|
+
* Model of the component; Use with a listener for 'update:model-value' event OR use v-model directive
|
|
369
|
+
*/
|
|
370
|
+
modelValue?: ModelValue;
|
|
371
|
+
/**
|
|
372
|
+
* Input type
|
|
373
|
+
*/
|
|
374
|
+
type: "date" | "datetime-local";
|
|
335
375
|
/**
|
|
336
376
|
* VueDatePicker options
|
|
337
377
|
*
|
|
@@ -340,14 +380,19 @@ export interface Props {
|
|
|
340
380
|
* @see https://vue3datepicker.com/
|
|
341
381
|
*/
|
|
342
382
|
datePickerOptions?: VueDatePickerProps;
|
|
343
|
-
size?: "default" | "small";
|
|
344
383
|
}
|
|
345
384
|
|
|
385
|
+
export type Props = VcInputStringProps | VcInputNumberProps | VcInputDateProps;
|
|
386
|
+
|
|
346
387
|
export interface Emits {
|
|
347
388
|
/**
|
|
348
389
|
* Emitted when the component needs to change the model; Is also used by v-model
|
|
390
|
+
* Type of value depends on input type:
|
|
391
|
+
* - string inputs: string | null
|
|
392
|
+
* - number inputs: number | null
|
|
393
|
+
* - date inputs: ModelValue
|
|
349
394
|
*/
|
|
350
|
-
(event: "update:modelValue", value: string | number |
|
|
395
|
+
(event: "update:modelValue", value: string | number | ModelValue | null | undefined): void;
|
|
351
396
|
(event: "blur", value: Event): void;
|
|
352
397
|
(event: "focus"): void;
|
|
353
398
|
}
|
|
@@ -377,14 +422,14 @@ defineSlots<{
|
|
|
377
422
|
*/
|
|
378
423
|
focused: boolean | undefined;
|
|
379
424
|
/**
|
|
380
|
-
* Field's value
|
|
425
|
+
* Field's value - type depends on input type
|
|
381
426
|
*/
|
|
382
|
-
modelValue: string | number |
|
|
427
|
+
modelValue: string | number | ModelValue | null;
|
|
383
428
|
/**
|
|
384
429
|
* Function that emits an @input event in the context of the field
|
|
385
|
-
* @param value Value to be emitted
|
|
430
|
+
* @param value Value to be emitted - type depends on input type
|
|
386
431
|
*/
|
|
387
|
-
emitValue: (value: string | number |
|
|
432
|
+
emitValue: (value: string | number | ModelValue | null) => void;
|
|
388
433
|
/**
|
|
389
434
|
* Field placeholder text
|
|
390
435
|
*/
|
|
@@ -522,11 +567,11 @@ function onKeyDown(e: KeyboardEvent) {
|
|
|
522
567
|
}
|
|
523
568
|
|
|
524
569
|
// Handle input event and emit changes
|
|
525
|
-
function onInput(value: string | number |
|
|
570
|
+
function onInput(value: string | number | ModelValue | null) {
|
|
526
571
|
emitValue(value);
|
|
527
572
|
}
|
|
528
573
|
|
|
529
|
-
function emitValue(val: string | number |
|
|
574
|
+
function emitValue(val: string | number | ModelValue | null) {
|
|
530
575
|
emitValueFn = () => {
|
|
531
576
|
if (mutatedModel.value !== val) {
|
|
532
577
|
let value;
|
|
@@ -175,7 +175,7 @@ const slots = defineSlots<{
|
|
|
175
175
|
* Use `useWidgets` composable instead
|
|
176
176
|
* @example
|
|
177
177
|
* // Register widget in blade:
|
|
178
|
-
* const blade =
|
|
178
|
+
* const blade = useBlade();
|
|
179
179
|
* const widgetService = useWidgets();
|
|
180
180
|
* widgetService.registerWidget({
|
|
181
181
|
* id: "widget-id",
|