@pequity/squirrel 5.2.3 → 5.3.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.
- package/dist/cjs/chunks/p-action-bar.js +2320 -0
- package/dist/cjs/component.js +5 -0
- package/dist/cjs/index.js +182 -2473
- package/dist/cjs/p-action-bar.js +2 -0
- package/dist/cjs/p-loading.js +4 -7
- package/dist/cjs/string.js +2 -0
- package/dist/es/chunks/p-action-bar.js +2321 -0
- package/dist/es/chunks/p-dropdown-select.js +2 -2
- package/dist/es/component.js +5 -0
- package/dist/es/index.js +54 -2345
- package/dist/es/p-action-bar.js +4 -1
- package/dist/es/p-dropdown-select.js +1 -1
- package/dist/es/p-loading.js +4 -7
- package/dist/es/string.js +2 -0
- package/dist/squirrel/squirrel/components/index.d.ts +53 -0
- package/dist/squirrel/squirrel/components/p-action-bar/p-action-bar.spec.d.ts +1 -0
- package/dist/squirrel/{components → squirrel/components}/p-action-bar/p-action-bar.types.d.ts +3 -2
- package/dist/squirrel/{components → squirrel/components}/p-action-bar/p-action-bar.vue.d.ts +1 -1
- package/dist/squirrel/squirrel/components/p-avatar/p-avatar.spec.d.ts +1 -0
- package/dist/squirrel/{components → squirrel/components}/p-btn/p-btn.vue.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-dropdown/p-dropdown.vue.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-dropdown-select/p-dropdown-select.vue.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-file-upload/p-file-upload.vue.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-icon/p-icon.vue.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-input-percent/p-input-percent.vue.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-input-search/p-input-search.vue.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-select/p-select.vue.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-select-btn/p-select-btn.vue.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-select-list/p-select-list.utils.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-select-list/p-select-list.vue.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-select-list/useSelectList.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-table/p-table.vue.d.ts +1 -1
- package/dist/squirrel/{components → squirrel/components}/p-table-sort/p-table-sort.vue.d.ts +1 -1
- package/dist/squirrel/squirrel/composables/index.d.ts +2 -0
- package/dist/squirrel/{composables → squirrel/composables}/useInputClasses.d.ts +1 -1
- package/dist/squirrel/squirrel/index.d.ts +5 -0
- package/dist/squirrel/squirrel/utils/component.d.ts +2 -0
- package/dist/squirrel/squirrel/utils/component.spec.d.ts +1 -0
- package/dist/squirrel/{utils → squirrel/utils}/index.d.ts +12 -12
- package/dist/squirrel/{utils → squirrel/utils}/inputClassesMixin.d.ts +1 -1
- package/dist/squirrel/squirrel/utils/string.d.ts +2 -0
- package/dist/squirrel/squirrel/utils/string.spec.d.ts +1 -0
- package/dist/squirrel/tests/vitest.helpers.d.ts +12 -0
- package/dist/style.css +134 -134
- package/package.json +3 -3
- package/squirrel/components/p-action-bar/{p-action-bar.spec.js → p-action-bar.spec.ts} +46 -14
- package/squirrel/components/p-action-bar/p-action-bar.stories.js +6 -0
- package/squirrel/components/p-action-bar/p-action-bar.types.ts +4 -2
- package/squirrel/components/p-action-bar/p-action-bar.vue +9 -3
- package/squirrel/components/p-avatar/{p-avatar.spec.js → p-avatar.spec.ts} +15 -0
- package/squirrel/components/p-icon/p-icon.spec.js +0 -1
- package/squirrel/components/p-loading/p-loading.vue +2 -7
- package/squirrel/components/p-table-td/p-table-td.spec.js +0 -1
- package/squirrel/utils/component.spec.ts +29 -0
- package/squirrel/utils/component.ts +5 -0
- package/squirrel/utils/{string.spec.js → string.spec.ts} +19 -1
- package/squirrel/utils/string.ts +2 -0
- package/dist/squirrel/components/index.d.ts +0 -53
- package/dist/squirrel/composables/index.d.ts +0 -2
- package/dist/squirrel/index.d.ts +0 -5
- package/dist/squirrel/utils/string.d.ts +0 -1
- /package/dist/squirrel/{components → squirrel/components}/p-alert/p-alert.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-avatar/p-avatar.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-btn/p-btn.types.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-card/p-card.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-checkbox/p-checkbox.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-chips/p-chips.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-close-btn/p-close-btn.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-date-picker/p-date-picker.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-drawer/p-drawer.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-file-upload/p-file-upload.types.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-file-upload/p-file-upload.utils.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-icon/p-icon.types.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-info-icon/p-info-icon.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-inline-date-picker/p-inline-date-picker.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-input/p-input.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-input-number/p-input-number.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-link/p-link.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-loading/p-loading.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-loading/usePLoading.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-modal/p-modal.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-modal/usePModal.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-pagination/p-pagination.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-pagination-info/p-pagination-info.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-progress-bar/p-progress-bar.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-ring-loader/p-ring-loader.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-select-list/p-select-list.types.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-select-pill/p-select-pill.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-skeleton-loader/p-skeleton-loader.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-table/p-table.types.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-table/usePTableColResize.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-table/usePTableRowVirtualizer.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-table-header-cell/p-table-filter-icon.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-table-header-cell/p-table-header-cell.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-table-loader/p-table-loader.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-table-sort/p-table-sort.config.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-table-td/p-table-td.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-tabs/p-tabs.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-textarea/p-textarea.vue.d.ts +0 -0
- /package/dist/squirrel/{components → squirrel/components}/p-toggle/p-toggle.vue.d.ts +0 -0
- /package/dist/squirrel/{tailwind → squirrel/tailwind}/config.d.ts +0 -0
- /package/dist/squirrel/{utils → squirrel/utils}/currency.d.ts +0 -0
- /package/dist/squirrel/{utils → squirrel/utils}/dom.d.ts +0 -0
- /package/dist/squirrel/{utils → squirrel/utils}/inputClassesShared.d.ts +0 -0
- /package/dist/squirrel/{utils → squirrel/utils}/link.d.ts +0 -0
- /package/dist/squirrel/{utils → squirrel/utils}/listKeyboardNavigation.d.ts +0 -0
- /package/dist/squirrel/{utils → squirrel/utils}/number.d.ts +0 -0
- /package/dist/squirrel/{utils → squirrel/utils}/object.d.ts +0 -0
- /package/dist/squirrel/{utils → squirrel/utils}/pagination.d.ts +0 -0
- /package/dist/squirrel/{utils → squirrel/utils}/sanitization.d.ts +0 -0
- /package/dist/squirrel/{utils → squirrel/utils}/tailwind.d.ts +0 -0
- /package/dist/squirrel/{utils → squirrel/utils}/text.d.ts +0 -0
package/dist/es/p-action-bar.js
CHANGED
package/dist/es/p-loading.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, toValue, onBeforeUnmount, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, unref, createElementBlock, createElementVNode, normalizeStyle, resolveDynamicComponent, normalizeProps, mergeProps, normalizeClass, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import { isComponent } from "./component.js";
|
|
2
3
|
import { usePLoading } from "./usePLoading.js";
|
|
3
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
5
|
const _hoisted_1 = {
|
|
@@ -32,10 +33,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
33
|
},
|
|
33
34
|
{ flush: "post" }
|
|
34
35
|
);
|
|
35
|
-
const isComponent = (content2) => {
|
|
36
|
-
const isComponent2 = typeof content2 === "object" && content2 !== null;
|
|
37
|
-
return isComponent2;
|
|
38
|
-
};
|
|
39
36
|
onBeforeUnmount(() => {
|
|
40
37
|
loadingHide();
|
|
41
38
|
});
|
|
@@ -57,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
54
|
"enter-active-class": "transition duration-500"
|
|
58
55
|
}, {
|
|
59
56
|
default: withCtx(() => [
|
|
60
|
-
isComponent(unref(content)) ? (openBlock(), createBlock(resolveDynamicComponent(unref(content)), normalizeProps(mergeProps({ key: 0 }, unref(componentProps))), null, 16)) : (openBlock(), createElementBlock("div", {
|
|
57
|
+
unref(isComponent)(unref(content)) ? (openBlock(), createBlock(resolveDynamicComponent(unref(content)), normalizeProps(mergeProps({ key: 0 }, unref(componentProps))), null, 16)) : (openBlock(), createElementBlock("div", {
|
|
61
58
|
key: 1,
|
|
62
59
|
class: normalizeClass(textDivClass)
|
|
63
60
|
}, toDisplayString(unref(content)), 1))
|
|
@@ -74,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
71
|
ref_key: "dimsReference",
|
|
75
72
|
ref: dimsReference
|
|
76
73
|
}, [
|
|
77
|
-
isComponent(unref(content)) ? (openBlock(), createBlock(resolveDynamicComponent(unref(content)), normalizeProps(mergeProps({ key: 0 }, unref(componentProps))), null, 16)) : (openBlock(), createElementBlock("div", {
|
|
74
|
+
unref(isComponent)(unref(content)) ? (openBlock(), createBlock(resolveDynamicComponent(unref(content)), normalizeProps(mergeProps({ key: 0 }, unref(componentProps))), null, 16)) : (openBlock(), createElementBlock("div", {
|
|
78
75
|
key: 1,
|
|
79
76
|
class: normalizeClass(textDivClass)
|
|
80
77
|
}, toDisplayString(unref(content)), 1))
|
|
@@ -84,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
81
|
};
|
|
85
82
|
}
|
|
86
83
|
});
|
|
87
|
-
const pLoading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
84
|
+
const pLoading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-980d32e1"]]);
|
|
88
85
|
export {
|
|
89
86
|
pLoading as default
|
|
90
87
|
};
|
package/dist/es/string.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const isString = (val) => typeof val === "string";
|
|
1
2
|
const toString = (value) => {
|
|
2
3
|
if (typeof value === "number" && (!isFinite(value) || isNaN(value))) {
|
|
3
4
|
return "";
|
|
@@ -8,5 +9,6 @@ const toString = (value) => {
|
|
|
8
9
|
return String(value);
|
|
9
10
|
};
|
|
10
11
|
export {
|
|
12
|
+
isString,
|
|
11
13
|
toString
|
|
12
14
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import PActionBar from '../../components/p-action-bar/p-action-bar.vue';
|
|
2
|
+
import PAlert from '../../components/p-alert/p-alert.vue';
|
|
3
|
+
import PAvatar from '../../components/p-avatar/p-avatar.vue';
|
|
4
|
+
import PBtn from '../../components/p-btn/p-btn.vue';
|
|
5
|
+
import PCard from '../../components/p-card/p-card.vue';
|
|
6
|
+
import PCheckbox from '../../components/p-checkbox/p-checkbox.vue';
|
|
7
|
+
import PChips from '../../components/p-chips/p-chips.vue';
|
|
8
|
+
import PCloseBtn from '../../components/p-close-btn/p-close-btn.vue';
|
|
9
|
+
import PDatePicker from '../../components/p-date-picker/p-date-picker.vue';
|
|
10
|
+
import PDrawer from '../../components/p-drawer/p-drawer.vue';
|
|
11
|
+
import PDropdown from '../../components/p-dropdown/p-dropdown.vue';
|
|
12
|
+
import PDropdownSelect from '../../components/p-dropdown-select/p-dropdown-select.vue';
|
|
13
|
+
import PFileUpload from '../../components/p-file-upload/p-file-upload.vue';
|
|
14
|
+
import PFilterIcon from '../../components/p-table-header-cell/p-table-filter-icon.vue';
|
|
15
|
+
import PIcon from '../../components/p-icon/p-icon.vue';
|
|
16
|
+
import PInfoIcon from '../../components/p-info-icon/p-info-icon.vue';
|
|
17
|
+
import PInlineDatePicker from '../../components/p-inline-date-picker/p-inline-date-picker.vue';
|
|
18
|
+
import PInput from '../../components/p-input/p-input.vue';
|
|
19
|
+
import PInputNumber from '../../components/p-input-number/p-input-number.vue';
|
|
20
|
+
import PInputPercent from '../../components/p-input-percent/p-input-percent.vue';
|
|
21
|
+
import PInputSearch from '../../components/p-input-search/p-input-search.vue';
|
|
22
|
+
import PLink from '../../components/p-link/p-link.vue';
|
|
23
|
+
import PLoading from '../../components/p-loading/p-loading.vue';
|
|
24
|
+
import PModal from '../../components/p-modal/p-modal.vue';
|
|
25
|
+
import PPagination from '../../components/p-pagination/p-pagination.vue';
|
|
26
|
+
import PPaginationInfo from '../../components/p-pagination-info/p-pagination-info.vue';
|
|
27
|
+
import PProgressBar from '../../components/p-progress-bar/p-progress-bar.vue';
|
|
28
|
+
import PRingLoader from '../../components/p-ring-loader/p-ring-loader.vue';
|
|
29
|
+
import PSelect from '../../components/p-select/p-select.vue';
|
|
30
|
+
import PSelectBtn from '../../components/p-select-btn/p-select-btn.vue';
|
|
31
|
+
import PSelectList from '../../components/p-select-list/p-select-list.vue';
|
|
32
|
+
import PSelectPill from '../../components/p-select-pill/p-select-pill.vue';
|
|
33
|
+
import PSkeletonLoader from '../../components/p-skeleton-loader/p-skeleton-loader.vue';
|
|
34
|
+
import PTable from '../../components/p-table/p-table.vue';
|
|
35
|
+
import PTableHeaderCell from '../../components/p-table-header-cell/p-table-header-cell.vue';
|
|
36
|
+
import PTableLoader from '../../components/p-table-loader/p-table-loader.vue';
|
|
37
|
+
import PTableSort from '../../components/p-table-sort/p-table-sort.vue';
|
|
38
|
+
import PTableTd from '../../components/p-table-td/p-table-td.vue';
|
|
39
|
+
import PTabs from '../../components/p-tabs/p-tabs.vue';
|
|
40
|
+
import PTextarea from '../../components/p-textarea/p-textarea.vue';
|
|
41
|
+
import PToggle from '../../components/p-toggle/p-toggle.vue';
|
|
42
|
+
import { type FileUploadFile } from '../../components/p-file-upload/p-file-upload.types';
|
|
43
|
+
import { type HeaderCellAttrs, MIN_WIDTH_COL_RESIZE, type TableCol, type ThAttrs, colsInjectionKey, isColsResizableInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey } from '../../components/p-table/p-table.types';
|
|
44
|
+
import { type PActionBarAction } from '../../components/p-action-bar/p-action-bar.types';
|
|
45
|
+
import { type PIconAlias, P_ICON_ALIASES } from '../../components/p-icon/p-icon.types';
|
|
46
|
+
import { SORTING_TYPES, type SortingType, type SortingTypeWithoutNoSorting } from '../../components/p-table-sort/p-table-sort.config';
|
|
47
|
+
import { type Size } from '../../components/p-btn/p-btn.types';
|
|
48
|
+
import { usePLoading } from '../../components/p-loading/usePLoading';
|
|
49
|
+
import { usePModal } from '../../components/p-modal/usePModal';
|
|
50
|
+
import { usePTableColResize } from '../../components/p-table/usePTableColResize';
|
|
51
|
+
import { usePTableRowVirtualizer } from '../../components/p-table/usePTableRowVirtualizer';
|
|
52
|
+
import { useSelectList } from '../../components/p-select-list/useSelectList';
|
|
53
|
+
export { PActionBar, PActionBarAction, PAlert, PAvatar, PBtn, PCard, PCheckbox, PChips, PCloseBtn, PDatePicker, PDrawer, PDropdown, PDropdownSelect, PFileUpload, PFilterIcon, PIcon, PInfoIcon, PInlineDatePicker, PInput, PInputNumber, PInputPercent, PInputSearch, PLink, PLoading, PModal, PPagination, PPaginationInfo, PProgressBar, PRingLoader, PSelect, PSelectBtn, PSelectList, PSelectPill, PSkeletonLoader, PTable, PTableHeaderCell, PTableLoader, PTableSort, PTableTd, PTabs, PTextarea, PToggle, SORTING_TYPES, MIN_WIDTH_COL_RESIZE, P_ICON_ALIASES, colsInjectionKey, isColsResizableInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey, usePModal, usePTableColResize, usePTableRowVirtualizer, useSelectList, usePLoading, SortingType, SortingTypeWithoutNoSorting, Size, FileUploadFile, HeaderCellAttrs, TableCol, ThAttrs, PIconAlias, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/squirrel/{components → squirrel/components}/p-action-bar/p-action-bar.types.d.ts
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
1
2
|
export type PActionBarAction = {
|
|
2
3
|
name?: string;
|
|
3
4
|
label: string;
|
|
4
|
-
icon?: string;
|
|
5
|
+
icon?: string | Component;
|
|
5
6
|
subActions?: {
|
|
6
7
|
name: string;
|
|
7
8
|
label: string;
|
|
8
|
-
icon?: string;
|
|
9
|
+
icon?: string | Component;
|
|
9
10
|
}[];
|
|
10
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import { type RouteLocationRaw } from 'vue-router';
|
|
3
|
-
import { type Size } from '
|
|
3
|
+
import { type Size } from '../../../components/p-btn/p-btn.types';
|
|
4
4
|
declare const BUTTON_TYPES: {
|
|
5
5
|
readonly PRIMARY: "primary";
|
|
6
6
|
readonly SECONDARY: "secondary";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ListKeyboardNavigationInstance } from '
|
|
1
|
+
import { type ListKeyboardNavigationInstance } from '../../../utils/listKeyboardNavigation';
|
|
2
2
|
import { type PropType } from 'vue';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type ModelValue, type Size } from '
|
|
2
|
+
import { type ModelValue, type Size } from '../../../components/p-select-list/p-select-list.types';
|
|
3
3
|
type AnyValue = string | number | boolean | null | undefined | Record<string, unknown>;
|
|
4
4
|
type AnyObject = Record<string, AnyValue>;
|
|
5
5
|
declare function __VLS_template(): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IconifyIconAttributes } from 'iconify-icon';
|
|
2
|
-
import { type PIconAlias } from '
|
|
2
|
+
import { type PIconAlias } from '../../../components/p-icon/p-icon.types';
|
|
3
3
|
import 'iconify-icon';
|
|
4
4
|
interface Props extends /* @vue-ignore */ Omit<IconifyIconAttributes, 'icon'> {
|
|
5
5
|
icon: IconifyIconAttributes['icon'] | PIconAlias;
|
package/dist/squirrel/{components → squirrel/components}/p-select-list/p-select-list.utils.d.ts
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type AnyObject, type AnyValue } from '
|
|
1
|
+
import { type AnyObject, type AnyValue } from '../../../components/p-select-list/p-select-list.types';
|
|
2
2
|
export declare const createInternalItems: (items: unknown[]) => AnyObject[];
|
|
3
3
|
export declare const createInternalValue: (modelValue: AnyValue | AnyValue[] | AnyObject | AnyObject[], valueIsObject: boolean, multiple: boolean, itemValue: AnyValue, internalItems: AnyObject[]) => AnyValue[];
|
package/dist/squirrel/{components → squirrel/components}/p-select-list/p-select-list.vue.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnyObject, type AnyValue, type ModelValue, type Size } from '
|
|
1
|
+
import { type AnyObject, type AnyValue, type ModelValue, type Size } from '../../../components/p-select-list/p-select-list.types';
|
|
2
2
|
import { type PropType } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
slots: Readonly<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnyObject, type AnyValue, type ModelValue, type Size } from '
|
|
1
|
+
import { type AnyObject, type AnyValue, type ModelValue, type Size } from '../../../components/p-select-list/p-select-list.types';
|
|
2
2
|
import { type ComponentPublicInstance, type Ref } from 'vue';
|
|
3
3
|
type Emits = {
|
|
4
4
|
(e: 'update:modelValue', modelValue: ModelValue): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type SortingType } from '
|
|
2
|
+
import { type SortingType } from '../../../components/p-table-sort/p-table-sort.config';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
modelValue: {
|
|
5
5
|
type: PropType<SortingType>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import inputClassesMixin from '
|
|
2
|
-
import { CURRENCY_INPUT_DEFAULTS } from '
|
|
3
|
-
import { type Color, getColor, getColorDeep, getScreen } from '
|
|
4
|
-
import { ERROR_MSG, INPUT_BASE, INPUT_ERROR, INPUT_NORMAL, INPUT_SIZES, type InputSize, LABEL_BASE, LABEL_REQUIRED, LABEL_SIZES, SELECT_ARROW, SELECT_BASE, SELECT_SIZES, SPACING_LEFT, SPACING_PREFIX, SPACING_RIGHT, SPACING_SUFFIX, TEXTAREA_BASE } from '
|
|
5
|
-
import { createPagingRange } from '
|
|
6
|
-
import { getNextActiveElement, isElement, isVisible } from '
|
|
7
|
-
import { isObject } from '
|
|
8
|
-
import { sanitizeUrl } from '
|
|
9
|
-
import { setupListKeyboardNavigation } from '
|
|
10
|
-
import { splitStringForHighlight } from '
|
|
11
|
-
import { toNumberOrNull } from '
|
|
12
|
-
import { toString } from '
|
|
1
|
+
import inputClassesMixin from '../../utils/inputClassesMixin';
|
|
2
|
+
import { CURRENCY_INPUT_DEFAULTS } from '../../utils/currency';
|
|
3
|
+
import { type Color, getColor, getColorDeep, getScreen } from '../../utils/tailwind';
|
|
4
|
+
import { ERROR_MSG, INPUT_BASE, INPUT_ERROR, INPUT_NORMAL, INPUT_SIZES, type InputSize, LABEL_BASE, LABEL_REQUIRED, LABEL_SIZES, SELECT_ARROW, SELECT_BASE, SELECT_SIZES, SPACING_LEFT, SPACING_PREFIX, SPACING_RIGHT, SPACING_SUFFIX, TEXTAREA_BASE } from '../../utils/inputClassesShared';
|
|
5
|
+
import { createPagingRange } from '../../utils/pagination';
|
|
6
|
+
import { getNextActiveElement, isElement, isVisible } from '../../utils/dom';
|
|
7
|
+
import { isObject } from '../../utils/object';
|
|
8
|
+
import { sanitizeUrl } from '../../utils/sanitization';
|
|
9
|
+
import { setupListKeyboardNavigation } from '../../utils/listKeyboardNavigation';
|
|
10
|
+
import { splitStringForHighlight } from '../../utils/text';
|
|
11
|
+
import { toNumberOrNull } from '../../utils/number';
|
|
12
|
+
import { toString } from '../../utils/string';
|
|
13
13
|
export { inputClassesMixin, CURRENCY_INPUT_DEFAULTS, Color, getColor, getColorDeep, getScreen, ERROR_MSG, INPUT_BASE, INPUT_ERROR, INPUT_NORMAL, INPUT_SIZES, InputSize, LABEL_BASE, LABEL_REQUIRED, LABEL_SIZES, SELECT_ARROW, SELECT_BASE, SELECT_SIZES, SPACING_LEFT, SPACING_PREFIX, SPACING_RIGHT, SPACING_SUFFIX, TEXTAREA_BASE, createPagingRange, getNextActiveElement, isElement, isVisible, isObject, sanitizeUrl, setupListKeyboardNavigation, splitStringForHighlight, toNumberOrNull, toString, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A helper method to create vue test utils wrappers - https://test-utils.vuejs.org/api/#wrapper-methods
|
|
3
|
+
* @param {any} component - The vue component to mount
|
|
4
|
+
* @param {Options} options - A combination of mounting options and a plugins object, used to pass/override plugins to the mount function
|
|
5
|
+
* @param {typeof mount} mountingMethod - The mounting method to use, defaults to mount
|
|
6
|
+
* @returns {ExtendedWrapper}
|
|
7
|
+
*/
|
|
8
|
+
export function createWrapperFor(component: any, options: Options, mountingMethod?: typeof mount): ExtendedWrapper;
|
|
9
|
+
export function waitNT(ctx: any): Promise<any>;
|
|
10
|
+
export function waitRAF(): Promise<any>;
|
|
11
|
+
export function sleep(ms: any): Promise<any>;
|
|
12
|
+
import { mount } from '@vue/test-utils';
|