@pequity/squirrel 8.0.1 → 8.0.2

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.
Files changed (29) hide show
  1. package/dist/cjs/chunks/p-action-bar.js +6 -9
  2. package/dist/cjs/usePLoading.js +7 -1
  3. package/dist/es/chunks/p-action-bar.js +6 -9
  4. package/dist/es/usePLoading.js +7 -1
  5. package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +3 -2
  6. package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +1 -1
  7. package/dist/squirrel/components/p-card/p-card.vue.d.ts +2 -19
  8. package/dist/squirrel/components/p-checkbox/p-checkbox.vue.d.ts +2 -37
  9. package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +3 -2
  10. package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +2 -9
  11. package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +3 -33
  12. package/dist/squirrel/components/p-input/p-input.vue.d.ts +6 -4
  13. package/dist/squirrel/components/p-input-number/p-input-number.vue.d.ts +3 -107
  14. package/dist/squirrel/components/p-link/p-link.vue.d.ts +3 -11
  15. package/dist/squirrel/components/p-loading/usePLoading.d.ts +1 -0
  16. package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +2 -227
  17. package/dist/squirrel/components/p-pagination-info/p-pagination-info.vue.d.ts +2 -74
  18. package/dist/squirrel/components/p-select/p-select.vue.d.ts +3 -110
  19. package/dist/squirrel/components/p-select-btn/p-select-btn.vue.d.ts +2 -29
  20. package/dist/squirrel/components/p-table/p-table.vue.d.ts +10 -5
  21. package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +1 -1
  22. package/dist/squirrel/components/p-table-td/p-table-td.vue.d.ts +2 -19
  23. package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +3 -72
  24. package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +2 -2
  25. package/package.json +14 -14
  26. package/squirrel/components/p-action-bar/p-action-bar.spec.ts +17 -11
  27. package/squirrel/components/p-action-bar/p-action-bar.vue +6 -6
  28. package/squirrel/components/p-loading/p-loading.spec.js +35 -2
  29. package/squirrel/components/p-loading/usePLoading.ts +10 -1
@@ -9,10 +9,10 @@ const string = require("../string.js");
9
9
  const _hoisted_1 = { class: "flex h-12 w-max select-none items-center rounded-lg bg-p-purple-60 px-2 text-sm font-medium text-white" };
10
10
  const _hoisted_2 = { class: "mx-4 whitespace-nowrap" };
11
11
  const _hoisted_3 = { class: "flex" };
12
- const _hoisted_4 = { class: "flex items-center gap-2 px-1 py-0.5" };
13
- const _hoisted_5 = { class: "flex items-center gap-2 px-1 py-0.5" };
12
+ const _hoisted_4 = { class: "flex items-center gap-2 px-1" };
13
+ const _hoisted_5 = { class: "flex items-center gap-2 px-1" };
14
14
  const _hoisted_6 = { class: "bg-p-purple-60 py-2" };
15
- const _hoisted_7 = { class: "flex items-center gap-2 px-1 py-0.5" };
15
+ const _hoisted_7 = { class: "flex items-center gap-2 px-1" };
16
16
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
17
  ...{
18
18
  name: "PActionBar",
@@ -67,8 +67,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
67
67
  vue.unref(string.isString)(actionOrMenu.icon) ? (vue.openBlock(), vue.createBlock(pIcon_vue_vue_type_script_setup_true_lang._sfc_main, {
68
68
  key: 1,
69
69
  icon: actionOrMenu.icon,
70
- width: "16px",
71
- height: "16px"
70
+ width: "16"
72
71
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
73
72
  vue.createElementVNode("div", null, vue.toDisplayString(actionOrMenu.label), 1)
74
73
  ])
@@ -100,8 +99,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
100
99
  vue.unref(string.isString)(subaction.icon) ? (vue.openBlock(), vue.createBlock(pIcon_vue_vue_type_script_setup_true_lang._sfc_main, {
101
100
  key: 1,
102
101
  icon: subaction.icon,
103
- width: "16px",
104
- height: "16px"
102
+ width: "16"
105
103
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
106
104
  vue.createElementVNode("div", null, vue.toDisplayString(subaction.label), 1)
107
105
  ])
@@ -126,8 +124,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
126
124
  vue.unref(string.isString)(actionOrMenu.icon) ? (vue.openBlock(), vue.createBlock(pIcon_vue_vue_type_script_setup_true_lang._sfc_main, {
127
125
  key: 1,
128
126
  icon: actionOrMenu.icon,
129
- width: "16px",
130
- height: "16px"
127
+ width: "16"
131
128
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
132
129
  vue.createElementVNode("div", null, vue.toDisplayString(actionOrMenu.label), 1)
133
130
  ])
@@ -56,6 +56,12 @@ const usePLoading = (options) => {
56
56
  show.value = false;
57
57
  }
58
58
  };
59
+ const isLoading = (id) => {
60
+ if (id) {
61
+ return loadingItems.value.some((item) => item.id === id);
62
+ }
63
+ return loadingItems.value.length > 0;
64
+ };
59
65
  if (scope) {
60
66
  vue.onScopeDispose(() => {
61
67
  if (loadingItems.value.some((item) => item.clearOnDispose === false)) {
@@ -71,6 +77,6 @@ const usePLoading = (options) => {
71
77
  }
72
78
  });
73
79
  }
74
- return { show, content, props, loadingShow, loadingHide };
80
+ return { show, content, props, loadingShow, loadingHide, isLoading };
75
81
  };
76
82
  exports.usePLoading = usePLoading;
@@ -8,10 +8,10 @@ import { isString } from "../string.js";
8
8
  const _hoisted_1 = { class: "flex h-12 w-max select-none items-center rounded-lg bg-p-purple-60 px-2 text-sm font-medium text-white" };
9
9
  const _hoisted_2 = { class: "mx-4 whitespace-nowrap" };
10
10
  const _hoisted_3 = { class: "flex" };
11
- const _hoisted_4 = { class: "flex items-center gap-2 px-1 py-0.5" };
12
- const _hoisted_5 = { class: "flex items-center gap-2 px-1 py-0.5" };
11
+ const _hoisted_4 = { class: "flex items-center gap-2 px-1" };
12
+ const _hoisted_5 = { class: "flex items-center gap-2 px-1" };
13
13
  const _hoisted_6 = { class: "bg-p-purple-60 py-2" };
14
- const _hoisted_7 = { class: "flex items-center gap-2 px-1 py-0.5" };
14
+ const _hoisted_7 = { class: "flex items-center gap-2 px-1" };
15
15
  const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  ...{
17
17
  name: "PActionBar",
@@ -66,8 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
66
  unref(isString)(actionOrMenu.icon) ? (openBlock(), createBlock(_sfc_main$2, {
67
67
  key: 1,
68
68
  icon: actionOrMenu.icon,
69
- width: "16px",
70
- height: "16px"
69
+ width: "16"
71
70
  }, null, 8, ["icon"])) : createCommentVNode("", true),
72
71
  createElementVNode("div", null, toDisplayString(actionOrMenu.label), 1)
73
72
  ])
@@ -99,8 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
98
  unref(isString)(subaction.icon) ? (openBlock(), createBlock(_sfc_main$2, {
100
99
  key: 1,
101
100
  icon: subaction.icon,
102
- width: "16px",
103
- height: "16px"
101
+ width: "16"
104
102
  }, null, 8, ["icon"])) : createCommentVNode("", true),
105
103
  createElementVNode("div", null, toDisplayString(subaction.label), 1)
106
104
  ])
@@ -125,8 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
125
123
  unref(isString)(actionOrMenu.icon) ? (openBlock(), createBlock(_sfc_main$2, {
126
124
  key: 1,
127
125
  icon: actionOrMenu.icon,
128
- width: "16px",
129
- height: "16px"
126
+ width: "16"
130
127
  }, null, 8, ["icon"])) : createCommentVNode("", true),
131
128
  createElementVNode("div", null, toDisplayString(actionOrMenu.label), 1)
132
129
  ])
@@ -54,6 +54,12 @@ const usePLoading = (options) => {
54
54
  show.value = false;
55
55
  }
56
56
  };
57
+ const isLoading = (id) => {
58
+ if (id) {
59
+ return loadingItems.value.some((item) => item.id === id);
60
+ }
61
+ return loadingItems.value.length > 0;
62
+ };
57
63
  if (scope) {
58
64
  onScopeDispose(() => {
59
65
  if (loadingItems.value.some((item) => item.clearOnDispose === false)) {
@@ -69,7 +75,7 @@ const usePLoading = (options) => {
69
75
  }
70
76
  });
71
77
  }
72
- return { show, content, props, loadingShow, loadingHide };
78
+ return { show, content, props, loadingShow, loadingHide, isLoading };
73
79
  };
74
80
  export {
75
81
  usePLoading
@@ -32,8 +32,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
32
32
  }>> & Readonly<{}>, {
33
33
  type: "info" | "error" | "success" | "warning";
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
35
- icon?: ((props: {}) => any) | undefined;
36
- default?: ((props: {}) => any) | undefined;
35
+ icon?: (props: {}) => any;
36
+ } & {
37
+ default?: (props: {}) => any;
37
38
  }>;
38
39
  export default _default;
39
40
  type __VLS_WithSlots<T, S> = T & {
@@ -329,7 +329,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
329
329
  to: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric;
330
330
  iconRight: "delete" | "edit" | "send" | "settings" | "empty" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "ok-circle" | "cancel-circle" | "ok" | "cancel" | "ok-bold" | "cancel-bold" | "archive" | "lock" | "drag-horizontal" | "email" | "location" | "calendar" | "save" | "copy" | "plus" | "add" | "more" | "filters" | "bar-chart" | "list" | "formula" | "refresh" | "download" | "upload" | "info" | "search" | (string & {});
331
331
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
332
- default?: ((props: {}) => any) | undefined;
332
+ default?: (props: {}) => any;
333
333
  }>;
334
334
  export default _default;
335
335
  type __VLS_WithSlots<T, S> = T & {
@@ -1,28 +1,11 @@
1
- declare const titleClass = "text-xl font-medium leading-none text-p-purple-60";
2
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
3
1
  declare var __VLS_1: {
4
2
  titleClass: "text-xl font-medium leading-none text-p-purple-60";
5
3
  }, __VLS_3: {};
6
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
4
+ type __VLS_Slots = {} & {
7
5
  title?: (props: typeof __VLS_1) => any;
8
6
  } & {
9
7
  default?: (props: typeof __VLS_3) => any;
10
- }>;
11
- declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
- title: {
13
- type: StringConstructor;
14
- default: string;
15
- };
16
- }>, {
17
- titleClass: typeof titleClass;
18
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
- title: {
20
- type: StringConstructor;
21
- default: string;
22
- };
23
- }>> & Readonly<{}>, {
24
- title: string;
25
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ };
26
9
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
27
10
  title: {
28
11
  type: StringConstructor;
@@ -1,44 +1,9 @@
1
- import { type StyleValue } from 'vue';
2
- declare const attrs: import("vue").ComputedRef<{
3
- [x: string]: unknown;
4
- }>;
5
- declare const style: import("vue").ComputedRef<StyleValue>;
6
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
7
1
  declare var __VLS_1: {}, __VLS_3: {};
8
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
2
+ type __VLS_Slots = {} & {
9
3
  'label-before'?: (props: typeof __VLS_1) => any;
10
4
  } & {
11
5
  label?: (props: typeof __VLS_3) => any;
12
- }>;
13
- declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
- modelValue: {
15
- type: BooleanConstructor;
16
- default: boolean;
17
- };
18
- label: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- }>, {
23
- attrs: typeof attrs;
24
- style: typeof style;
25
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
- "update:modelValue": (...args: any[]) => void;
27
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
- modelValue: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
32
- label: {
33
- type: StringConstructor;
34
- default: string;
35
- };
36
- }>> & Readonly<{
37
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
38
- }>, {
39
- label: string;
40
- modelValue: boolean;
41
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ };
42
7
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
43
8
  modelValue: {
44
9
  type: BooleanConstructor;
@@ -209,8 +209,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
209
209
  type: "info" | "error" | "success" | "warning";
210
210
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
211
211
  $slots: {
212
- icon?: ((props: {}) => any) | undefined;
213
- default?: ((props: {}) => any) | undefined;
212
+ icon?: (props: {}) => any;
213
+ } & {
214
+ default?: (props: {}) => any;
214
215
  };
215
216
  });
216
217
  PCloseBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -1,17 +1,10 @@
1
- import PIcon from '../p-icon/p-icon.vue';
2
1
  type Props = {
3
2
  text?: string | null;
4
3
  };
5
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
6
4
  declare var __VLS_9: {};
7
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
5
+ type __VLS_Slots = {} & {
8
6
  default?: (props: typeof __VLS_9) => any;
9
- }>;
10
- declare const __VLS_self: import("vue").DefineComponent<Props, {
11
- PIcon: typeof PIcon;
12
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
- text: string | null;
14
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ };
15
8
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
16
9
  text: string | null;
17
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,50 +1,20 @@
1
- import VueDatePicker, { type VueDatePickerProps } from '@vuepic/vue-datepicker';
2
- import { type StyleValue } from 'vue';
1
+ import { type VueDatePickerProps } from '@vuepic/vue-datepicker';
3
2
  type Props = {
4
3
  label?: string;
5
4
  errorMsg?: string;
6
5
  required?: boolean;
7
6
  } & VueDatePickerProps;
8
7
  type __VLS_Props = Props;
9
- declare const model: import("vue").ModelRef<string | Date | null, string, string | Date | null, string | Date | null>;
10
- declare const labelClasses: import("vue").ComputedRef<string>, errorMsgClasses: import("vue").ComputedRef<string>;
11
- declare const datePickerProps: import("vue").ComputedRef<VueDatePickerProps>;
12
- declare const style: import("vue").ComputedRef<StyleValue>;
13
8
  type __VLS_PublicProps = __VLS_Props & {
14
9
  modelValue?: Date | string | null;
15
10
  };
16
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
17
11
  declare var __VLS_1: {
18
12
  label: string;
19
13
  labelClasses: string;
20
14
  };
21
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
15
+ type __VLS_Slots = {} & {
22
16
  label?: (props: typeof __VLS_1) => any;
23
- }>;
24
- declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
25
- VueDatePicker: typeof VueDatePicker;
26
- model: typeof model;
27
- labelClasses: typeof labelClasses;
28
- errorMsgClasses: typeof errorMsgClasses;
29
- datePickerProps: typeof datePickerProps;
30
- style: typeof style;
31
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
- "update:modelValue": (value: string | Date | null) => any;
33
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
34
- "onUpdate:modelValue"?: ((value: string | Date | null) => any) | undefined;
35
- }>, {
36
- inline: boolean | {
37
- input?: boolean;
38
- };
39
- label: string;
40
- required: boolean;
41
- errorMsg: string;
42
- enableTimePicker: boolean;
43
- weekStart: "0" | "1" | "2" | "3" | "4" | "5" | "6" | 0 | 1 | 2 | 3 | 4 | 5 | 6;
44
- autoApply: boolean;
45
- hideOffsetDates: boolean;
46
- modelType: "timestamp" | "iso" | "format" | string;
47
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ };
48
18
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
49
19
  "update:modelValue": (value: string | Date | null) => any;
50
20
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -81,12 +81,14 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
81
81
  rounded: boolean;
82
82
  errorMsg: string;
83
83
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
84
- label?: ((props: {
84
+ label?: (props: {
85
85
  label: string;
86
86
  labelClasses: string;
87
- }) => any) | undefined;
88
- prefix?: ((props: {}) => any) | undefined;
89
- suffix?: ((props: {}) => any) | undefined;
87
+ }) => any;
88
+ } & {
89
+ prefix?: (props: {}) => any;
90
+ } & {
91
+ suffix?: (props: {}) => any;
90
92
  }>;
91
93
  export default _default;
92
94
  type __VLS_WithSlots<T, S> = T & {
@@ -1,118 +1,14 @@
1
1
  import { type Size } from '../p-btn/p-btn.types';
2
- import PInfoIcon from '../p-info-icon/p-info-icon.vue';
3
- import { type PropType, type StyleValue } from 'vue';
4
- declare const prefixClasses: Record<Size, string>;
5
- declare const labelClasses: import("vue").ComputedRef<string>, inputClasses: import("vue").ComputedRef<string>, errorMsgClasses: import("vue").ComputedRef<string>;
6
- declare const inputRef: import("vue").Ref<any, any>;
7
- declare const computedAttrs: import("vue").ComputedRef<{
8
- [x: string]: unknown;
9
- }>;
10
- declare const style: import("vue").ComputedRef<StyleValue>;
11
- declare const focus: () => void;
12
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
2
+ import { type PropType } from 'vue';
13
3
  declare var __VLS_1: {
14
4
  label: string;
15
5
  labelClasses: string;
16
6
  }, __VLS_6: {};
17
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
7
+ type __VLS_Slots = {} & {
18
8
  label?: (props: typeof __VLS_1) => any;
19
9
  } & {
20
10
  prefix?: (props: typeof __VLS_6) => any;
21
- }>;
22
- declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
23
- modelValue: {
24
- type: PropType<number | string | null | undefined>;
25
- default: null;
26
- };
27
- label: {
28
- type: StringConstructor;
29
- default: string;
30
- };
31
- errorMsg: {
32
- type: StringConstructor;
33
- default: string;
34
- };
35
- required: {
36
- type: BooleanConstructor;
37
- default: boolean;
38
- };
39
- size: {
40
- type: PropType<Size>;
41
- default: string;
42
- validator(value: Size): boolean;
43
- };
44
- selectOnClick: {
45
- type: BooleanConstructor;
46
- default: boolean;
47
- };
48
- tooltipText: {
49
- type: StringConstructor;
50
- default: string;
51
- };
52
- prefixString: {
53
- type: StringConstructor;
54
- default: string;
55
- };
56
- }>, {
57
- PInfoIcon: typeof PInfoIcon;
58
- prefixClasses: typeof prefixClasses;
59
- labelClasses: typeof labelClasses;
60
- inputClasses: typeof inputClasses;
61
- errorMsgClasses: typeof errorMsgClasses;
62
- inputRef: typeof inputRef;
63
- computedAttrs: typeof computedAttrs;
64
- style: typeof style;
65
- focus: typeof focus;
66
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
67
- change: (...args: any[]) => void;
68
- "update:modelValue": (...args: any[]) => void;
69
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70
- modelValue: {
71
- type: PropType<number | string | null | undefined>;
72
- default: null;
73
- };
74
- label: {
75
- type: StringConstructor;
76
- default: string;
77
- };
78
- errorMsg: {
79
- type: StringConstructor;
80
- default: string;
81
- };
82
- required: {
83
- type: BooleanConstructor;
84
- default: boolean;
85
- };
86
- size: {
87
- type: PropType<Size>;
88
- default: string;
89
- validator(value: Size): boolean;
90
- };
91
- selectOnClick: {
92
- type: BooleanConstructor;
93
- default: boolean;
94
- };
95
- tooltipText: {
96
- type: StringConstructor;
97
- default: string;
98
- };
99
- prefixString: {
100
- type: StringConstructor;
101
- default: string;
102
- };
103
- }>> & Readonly<{
104
- onChange?: ((...args: any[]) => any) | undefined;
105
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
106
- }>, {
107
- size: "sm" | "md" | "lg";
108
- label: string;
109
- required: boolean;
110
- modelValue: string | number | null | undefined;
111
- errorMsg: string;
112
- selectOnClick: boolean;
113
- tooltipText: string;
114
- prefixString: string;
115
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
+ };
116
12
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
117
13
  modelValue: {
118
14
  type: PropType<number | string | null | undefined>;
@@ -1,18 +1,10 @@
1
- import { isExternalLink } from '../../utils/link';
2
- import { sanitizeUrl } from '../../utils/sanitization';
3
- import { RouterLink, type RouterLinkProps } from 'vue-router';
4
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
1
+ import { type RouterLinkProps } from 'vue-router';
5
2
  declare var __VLS_1: {}, __VLS_8: {};
6
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
3
+ type __VLS_Slots = {} & {
7
4
  default?: (props: typeof __VLS_1) => any;
8
5
  } & {
9
6
  default?: (props: typeof __VLS_8) => any;
10
- }>;
11
- declare const __VLS_self: import("vue").DefineComponent<RouterLinkProps, {
12
- isExternalLink: typeof isExternalLink;
13
- sanitizeUrl: typeof sanitizeUrl;
14
- RouterLink: typeof RouterLink;
15
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouterLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ };
16
8
  declare const __VLS_component: import("vue").DefineComponent<RouterLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouterLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
9
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
10
  export default _default;
@@ -17,6 +17,7 @@ type UsePLoading = {
17
17
  props: Ref;
18
18
  loadingShow: (loadingItem: LoadingItemOption) => void;
19
19
  loadingHide: (id?: LoadingItemOption['id']) => void;
20
+ isLoading: (id?: LoadingItemOption['id']) => boolean;
20
21
  };
21
22
  export declare const usePLoading: (options?: Options) => UsePLoading;
22
23
  export {};