@pequity/squirrel 5.3.0 → 5.3.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.
- package/dist/cjs/chunks/{p-icon.js → p-action-bar.js} +141 -1
- package/dist/cjs/chunks/p-dropdown-select.js +1 -1
- package/dist/cjs/component.js +4 -27
- package/dist/cjs/index.js +12 -147
- package/dist/cjs/p-action-bar.js +2 -0
- package/dist/cjs/p-loading.js +1 -1
- package/dist/cjs/string.js +13 -32
- package/dist/cjs/useSelectList.js +1 -1
- package/dist/es/chunks/{p-icon.js → p-action-bar.js} +143 -3
- package/dist/es/chunks/p-dropdown-select.js +3 -3
- package/dist/es/component.js +5 -27
- package/dist/es/index.js +52 -187
- package/dist/es/p-action-bar.js +4 -1
- package/dist/es/p-dropdown-select.js +1 -1
- package/dist/es/p-loading.js +1 -1
- package/dist/es/string.js +14 -32
- package/dist/es/useSelectList.js +1 -1
- package/dist/style.css +129 -129
- package/package.json +3 -3
- package/dist/cjs/chunks/component.js +0 -4
- package/dist/cjs/chunks/string.js +0 -13
- package/dist/es/chunks/component.js +0 -5
- package/dist/es/chunks/string.js +0 -14
- package/dist/squirrel/utils/component.spec.d.ts +0 -1
- package/dist/squirrel/utils/string.spec.d.ts +0 -1
- /package/squirrel/components/p-action-bar/{p-action-bar.spec.js → p-action-bar.spec.ts} +0 -0
- /package/squirrel/components/p-avatar/{p-avatar.spec.js → p-avatar.spec.ts} +0 -0
|
@@ -4,7 +4,7 @@ import PInputSearch from "../p-input-search.js";
|
|
|
4
4
|
import { SIZES } from "../p-select-list.js";
|
|
5
5
|
import { omit } from "lodash-es";
|
|
6
6
|
import { splitStringForHighlight } from "../text.js";
|
|
7
|
-
import {
|
|
7
|
+
import { toString } from "../string.js";
|
|
8
8
|
import { useInputClasses } from "../useInputClasses.js";
|
|
9
9
|
import { useSelectList } from "../useSelectList.js";
|
|
10
10
|
const _imports_0 = "data:image/svg+xml,%3csvg%20width='18'%20height='12'%20viewBox='0%200%2018%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.1383%200.166992L6.30411%209.83366L1.69828%205.27533L0.526611%206.46033L5.71578%2011.597C5.87174%2011.7509%206.08205%2011.8372%206.3012%2011.8372C6.52034%2011.8372%206.73065%2011.7509%206.88661%2011.597L17.3033%201.35366L16.1383%200.166992Z'%20fill='%231A123B'%20/%3e%3c/svg%3e";
|
|
@@ -410,6 +410,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
export {
|
|
413
|
-
|
|
414
|
-
|
|
413
|
+
_imports_0 as _,
|
|
414
|
+
_sfc_main as a
|
|
415
415
|
};
|
package/dist/es/component.js
CHANGED
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
7
|
-
it("should return false for null", () => {
|
|
8
|
-
expect(isComponent(null)).toBe(false);
|
|
9
|
-
});
|
|
10
|
-
it.each([
|
|
11
|
-
["string", "string"],
|
|
12
|
-
["number", 123],
|
|
13
|
-
["boolean", true],
|
|
14
|
-
["undefined", void 0],
|
|
15
|
-
["symbol", Symbol("symbol")],
|
|
16
|
-
["function", () => {
|
|
17
|
-
}],
|
|
18
|
-
["array", []],
|
|
19
|
-
["date", /* @__PURE__ */ new Date()],
|
|
20
|
-
["regexp", /regex/],
|
|
21
|
-
["error", new Error("error")],
|
|
22
|
-
["map", /* @__PURE__ */ new Map()],
|
|
23
|
-
["set", /* @__PURE__ */ new Set()]
|
|
24
|
-
])("should return false for a non-component object: %s", (_, value) => {
|
|
25
|
-
expect(isComponent(value)).toBe(false);
|
|
26
|
-
});
|
|
27
|
-
});
|
|
1
|
+
import { isPlainObject } from "lodash-es";
|
|
2
|
+
const isComponent = (val) => isPlainObject(val);
|
|
3
|
+
export {
|
|
4
|
+
isComponent
|
|
5
|
+
};
|
package/dist/es/index.js
CHANGED
|
@@ -1,61 +1,60 @@
|
|
|
1
1
|
import { config } from "./config.js";
|
|
2
|
-
import {
|
|
3
|
-
import PBtn from "./p-btn.js";
|
|
4
|
-
import PCloseBtn from "./p-close-btn.js";
|
|
5
|
-
import PDropdown from "./p-dropdown.js";
|
|
6
|
-
import { _ as _sfc_main$5 } from "./chunks/p-icon.js";
|
|
7
|
-
import { i as isComponent } from "./chunks/component.js";
|
|
8
|
-
import { i as isString, t as toString } from "./chunks/string.js";
|
|
2
|
+
import { _, a } from "./chunks/p-action-bar.js";
|
|
9
3
|
import { default as default2 } from "./p-alert.js";
|
|
10
4
|
import { default as default3 } from "./p-avatar.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { default as default5 } from "./p-
|
|
14
|
-
import { default as default6 } from "./p-
|
|
15
|
-
import { default as default7 } from "./p-
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
5
|
+
import { default as default4 } from "./p-btn.js";
|
|
6
|
+
import { _ as _2 } from "./chunks/p-card.js";
|
|
7
|
+
import { default as default5 } from "./p-checkbox.js";
|
|
8
|
+
import { default as default6 } from "./p-chips.js";
|
|
9
|
+
import { default as default7 } from "./p-close-btn.js";
|
|
10
|
+
import { default as default8 } from "./p-date-picker.js";
|
|
11
|
+
import { default as default9 } from "./p-drawer.js";
|
|
12
|
+
import { default as default10 } from "./p-dropdown.js";
|
|
13
|
+
import { _ as _imports_0$2 } from "./chunks/p-dropdown-select.js";
|
|
14
|
+
import { a as a2 } from "./chunks/p-dropdown-select.js";
|
|
15
|
+
import { defineComponent, shallowRef, ref, computed, onMounted, openBlock, createElementBlock, normalizeClass, unref, toDisplayString, createCommentVNode, createElementVNode, withModifiers, createTextVNode, Fragment, renderList, withDirectives, vShow, pushScopeId, popScopeId, useAttrs, resolveDirective, normalizeStyle, createVNode, isRef, renderSlot, provide, onBeforeUnmount, watch, mergeProps, toHandlers } from "vue";
|
|
18
16
|
import { formatBytes, getFileExtension } from "./p-file-upload.js";
|
|
19
17
|
import { uniq, kebabCase } from "lodash-es";
|
|
20
18
|
import { useInputClasses } from "./useInputClasses.js";
|
|
21
19
|
import { useToast } from "vue-toastification";
|
|
22
20
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
21
|
+
import { default as default11 } from "./p-table-filter-icon.js";
|
|
22
|
+
import { default as default12 } from "./p-info-icon.js";
|
|
23
|
+
import { default as default13 } from "./p-inline-date-picker.js";
|
|
24
|
+
import { default as default14 } from "./p-input.js";
|
|
25
|
+
import { default as default15 } from "./p-input-number.js";
|
|
28
26
|
import { _ as _3 } from "./chunks/p-input-percent.js";
|
|
29
27
|
import PInputSearch from "./p-input-search.js";
|
|
30
28
|
import { _ as _4 } from "./chunks/p-link.js";
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
29
|
+
import { default as default16 } from "./p-loading.js";
|
|
30
|
+
import { default as default17 } from "./p-modal.js";
|
|
33
31
|
import { _ as _5 } from "./chunks/p-pagination.js";
|
|
34
32
|
import { _ as _6 } from "./chunks/p-pagination-info.js";
|
|
35
|
-
import { default as
|
|
33
|
+
import { default as default18 } from "./p-progress-bar.js";
|
|
36
34
|
import { _ as _7 } from "./chunks/p-ring-loader.js";
|
|
37
35
|
import { _ as _8 } from "./chunks/p-select.js";
|
|
38
36
|
import { _ as _9 } from "./chunks/p-select-btn.js";
|
|
39
37
|
import { SIZES } from "./p-select-list.js";
|
|
40
38
|
import { splitStringForHighlight } from "./text.js";
|
|
39
|
+
import { toString } from "./string.js";
|
|
41
40
|
import { useSelectList } from "./useSelectList.js";
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
41
|
+
import { default as default19 } from "./p-select-pill.js";
|
|
42
|
+
import { default as default20 } from "./p-skeleton-loader.js";
|
|
44
43
|
import PTableHeaderCell from "./p-table-header-cell.js";
|
|
45
44
|
import { colsInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey, isColsResizableInjectionKey } from "./p-table.js";
|
|
46
45
|
import { MIN_WIDTH_COL_RESIZE } from "./p-table.js";
|
|
47
46
|
import { usePTableColResize } from "./usePTableColResize.js";
|
|
48
47
|
import { _ as _10 } from "./chunks/p-table-loader.js";
|
|
49
48
|
import { SORTING_TYPES } from "./p-table-sort.js";
|
|
50
|
-
import { default as
|
|
49
|
+
import { default as default21 } from "./p-table-td.js";
|
|
51
50
|
import { _ as _11 } from "./chunks/p-tabs.js";
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
51
|
+
import { default as default22 } from "./p-textarea.js";
|
|
52
|
+
import { default as default23 } from "./p-toggle.js";
|
|
54
53
|
import { P_ICON_ALIASES } from "./p-icon.js";
|
|
55
54
|
import { usePLoading } from "./usePLoading.js";
|
|
56
55
|
import { usePModal } from "./usePModal.js";
|
|
57
56
|
import { usePTableRowVirtualizer } from "./usePTableRowVirtualizer.js";
|
|
58
|
-
import { default as
|
|
57
|
+
import { default as default24 } from "./inputClassesMixin.js";
|
|
59
58
|
import { CURRENCY_INPUT_DEFAULTS } from "./currency.js";
|
|
60
59
|
import { getColor, getColorDeep, getScreen } from "./tailwind.js";
|
|
61
60
|
import { ERROR_MSG, INPUT_BASE, INPUT_ERROR, INPUT_NORMAL, INPUT_SIZES, LABEL_BASE, LABEL_REQUIRED, LABEL_SIZES, SELECT_ARROW, SELECT_BASE, SELECT_SIZES, SPACING_LEFT, SPACING_PREFIX, SPACING_RIGHT, SPACING_SUFFIX, TEXTAREA_BASE } from "./inputClassesShared.js";
|
|
@@ -65,140 +64,6 @@ import { isObject } from "./object.js";
|
|
|
65
64
|
import { sanitizeUrl } from "./sanitization.js";
|
|
66
65
|
import { setupListKeyboardNavigation } from "./listKeyboardNavigation.js";
|
|
67
66
|
import { toNumberOrNull } from "./number.js";
|
|
68
|
-
const _hoisted_1$4 = { class: "flex h-12 w-max select-none items-center rounded-lg bg-p-purple-60 px-2 text-sm font-medium text-white" };
|
|
69
|
-
const _hoisted_2$4 = { class: "whitespace-nowrap px-3" };
|
|
70
|
-
const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("div", { class: "mx-4 h-9 w-0.5 shrink-0 rounded bg-p-purple-50" }, null, -1);
|
|
71
|
-
const _hoisted_4$4 = { class: "flex" };
|
|
72
|
-
const _hoisted_5$4 = { class: "flex items-center gap-2 px-1 py-0.5" };
|
|
73
|
-
const _hoisted_6$4 = { class: "flex items-center gap-2 px-1 py-0.5" };
|
|
74
|
-
const _hoisted_7$3 = { class: "flex flex-col bg-p-purple-60" };
|
|
75
|
-
const _hoisted_8$1 = { class: "flex items-center gap-2 px-1 py-0.5" };
|
|
76
|
-
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
77
|
-
...{
|
|
78
|
-
name: "PActionBar",
|
|
79
|
-
inheritAttrs: false
|
|
80
|
-
},
|
|
81
|
-
__name: "p-action-bar",
|
|
82
|
-
props: {
|
|
83
|
-
show: { type: Boolean },
|
|
84
|
-
label: {},
|
|
85
|
-
actions: {}
|
|
86
|
-
},
|
|
87
|
-
emits: ["click:dismiss", "click:action"],
|
|
88
|
-
setup(__props) {
|
|
89
|
-
return (_ctx, _cache) => {
|
|
90
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
91
|
-
_ctx.show ? (openBlock(), createElementBlock("div", mergeProps({
|
|
92
|
-
key: 0,
|
|
93
|
-
class: "fixed bottom-6 left-1/2 z-[100] -translate-x-2/4",
|
|
94
|
-
role: "alertdialog"
|
|
95
|
-
}, _ctx.$attrs), [
|
|
96
|
-
createElementVNode("div", _hoisted_1$4, [
|
|
97
|
-
createVNode(PCloseBtn, {
|
|
98
|
-
variant: "dark",
|
|
99
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:dismiss"))
|
|
100
|
-
}),
|
|
101
|
-
createElementVNode("p", _hoisted_2$4, toDisplayString(_ctx.label), 1),
|
|
102
|
-
_hoisted_3$4,
|
|
103
|
-
createElementVNode("div", _hoisted_4$4, [
|
|
104
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.actions, (actionOrMenu) => {
|
|
105
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
106
|
-
key: `action-${actionOrMenu.label}`
|
|
107
|
-
}, [
|
|
108
|
-
!actionOrMenu.subActions ? (openBlock(), createBlock(PBtn, {
|
|
109
|
-
key: 0,
|
|
110
|
-
size: "sm",
|
|
111
|
-
type: "secondary-ghost-dark",
|
|
112
|
-
onClick: ($event) => _ctx.$emit("click:action", actionOrMenu.name)
|
|
113
|
-
}, {
|
|
114
|
-
default: withCtx(() => [
|
|
115
|
-
createElementVNode("div", _hoisted_5$4, [
|
|
116
|
-
unref(isComponent)(actionOrMenu.icon) ? (openBlock(), createBlock(resolveDynamicComponent(actionOrMenu.icon), {
|
|
117
|
-
key: 0,
|
|
118
|
-
class: "h-4 w-4"
|
|
119
|
-
})) : createCommentVNode("", true),
|
|
120
|
-
unref(isString)(actionOrMenu.icon) ? (openBlock(), createBlock(_sfc_main$5, {
|
|
121
|
-
key: 1,
|
|
122
|
-
icon: actionOrMenu.icon,
|
|
123
|
-
width: "16px",
|
|
124
|
-
height: "16px"
|
|
125
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
126
|
-
createElementVNode("div", null, toDisplayString(actionOrMenu.label), 1)
|
|
127
|
-
])
|
|
128
|
-
]),
|
|
129
|
-
_: 2
|
|
130
|
-
}, 1032, ["onClick"])) : (openBlock(), createBlock(PDropdown, {
|
|
131
|
-
key: 1,
|
|
132
|
-
placement: "top",
|
|
133
|
-
strategy: "fixed"
|
|
134
|
-
}, {
|
|
135
|
-
popper: withCtx(() => [
|
|
136
|
-
createElementVNode("div", _hoisted_7$3, [
|
|
137
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(actionOrMenu.subActions, (subaction) => {
|
|
138
|
-
return openBlock(), createElementBlock("div", {
|
|
139
|
-
key: `subaction-${subaction.name}`
|
|
140
|
-
}, [
|
|
141
|
-
createVNode(PBtn, {
|
|
142
|
-
size: "sm",
|
|
143
|
-
class: "w-full",
|
|
144
|
-
type: "secondary-ghost-dark",
|
|
145
|
-
onClick: ($event) => _ctx.$emit("click:action", subaction.name)
|
|
146
|
-
}, {
|
|
147
|
-
default: withCtx(() => [
|
|
148
|
-
createElementVNode("div", _hoisted_8$1, [
|
|
149
|
-
unref(isComponent)(subaction.icon) ? (openBlock(), createBlock(resolveDynamicComponent(subaction.icon), {
|
|
150
|
-
key: 0,
|
|
151
|
-
class: "h-4 w-4"
|
|
152
|
-
})) : createCommentVNode("", true),
|
|
153
|
-
unref(isString)(subaction.icon) ? (openBlock(), createBlock(_sfc_main$5, {
|
|
154
|
-
key: 1,
|
|
155
|
-
icon: subaction.icon,
|
|
156
|
-
width: "16px",
|
|
157
|
-
height: "16px"
|
|
158
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
159
|
-
createElementVNode("div", null, toDisplayString(subaction.label), 1)
|
|
160
|
-
])
|
|
161
|
-
]),
|
|
162
|
-
_: 2
|
|
163
|
-
}, 1032, ["onClick"])
|
|
164
|
-
]);
|
|
165
|
-
}), 128))
|
|
166
|
-
])
|
|
167
|
-
]),
|
|
168
|
-
default: withCtx(() => [
|
|
169
|
-
createVNode(PBtn, {
|
|
170
|
-
size: "sm",
|
|
171
|
-
type: "secondary-ghost-dark"
|
|
172
|
-
}, {
|
|
173
|
-
default: withCtx(() => [
|
|
174
|
-
createElementVNode("div", _hoisted_6$4, [
|
|
175
|
-
unref(isComponent)(actionOrMenu.icon) ? (openBlock(), createBlock(resolveDynamicComponent(actionOrMenu.icon), {
|
|
176
|
-
key: 0,
|
|
177
|
-
class: "h-4 w-4"
|
|
178
|
-
})) : createCommentVNode("", true),
|
|
179
|
-
unref(isString)(actionOrMenu.icon) ? (openBlock(), createBlock(_sfc_main$5, {
|
|
180
|
-
key: 1,
|
|
181
|
-
icon: actionOrMenu.icon,
|
|
182
|
-
width: "16px",
|
|
183
|
-
height: "16px"
|
|
184
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
185
|
-
createElementVNode("div", null, toDisplayString(actionOrMenu.label), 1)
|
|
186
|
-
])
|
|
187
|
-
]),
|
|
188
|
-
_: 2
|
|
189
|
-
}, 1024)
|
|
190
|
-
]),
|
|
191
|
-
_: 2
|
|
192
|
-
}, 1024))
|
|
193
|
-
], 64);
|
|
194
|
-
}), 128))
|
|
195
|
-
])
|
|
196
|
-
])
|
|
197
|
-
], 16)) : createCommentVNode("", true)
|
|
198
|
-
]);
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
67
|
const _imports_0$1 = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.8335%206.25016L10.0002%202.0835L14.1668%206.25016'%20stroke='%23767189'%20stroke-width='1.25'%20/%3e%3cpath%20d='M10%202.0835V13.7502'%20stroke='%23767189'%20stroke-width='1.25'%20/%3e%3cpath%20d='M2.91675%2015V18.3333H17.0834V15'%20stroke='%23767189'%20stroke-width='1.25'%20/%3e%3c/svg%3e";
|
|
203
68
|
const _imports_1$1 = "data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M33%2012H14V44H42V21L33%2012Z'%20stroke='%231A123B'%20stroke-width='3'%20/%3e%3cpath%20d='M9%2036H6V4H25L28%207'%20stroke='%231A123B'%20stroke-width='3'%20/%3e%3cpath%20d='M37%2030H19M28%2021V39'%20stroke='%231A123B'%20stroke-width='3'%20/%3e%3c/svg%3e";
|
|
204
69
|
const _withScopeId = (n) => (pushScopeId("data-v-d07a8f64"), n = n(), popScopeId(), n);
|
|
@@ -1081,47 +946,47 @@ export {
|
|
|
1081
946
|
LABEL_REQUIRED,
|
|
1082
947
|
LABEL_SIZES,
|
|
1083
948
|
MIN_WIDTH_COL_RESIZE,
|
|
1084
|
-
|
|
949
|
+
_ as PActionBar,
|
|
1085
950
|
default2 as PAlert,
|
|
1086
951
|
default3 as PAvatar,
|
|
1087
|
-
PBtn,
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
PCloseBtn,
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
PDropdown,
|
|
1095
|
-
|
|
952
|
+
default4 as PBtn,
|
|
953
|
+
_2 as PCard,
|
|
954
|
+
default5 as PCheckbox,
|
|
955
|
+
default6 as PChips,
|
|
956
|
+
default7 as PCloseBtn,
|
|
957
|
+
default8 as PDatePicker,
|
|
958
|
+
default9 as PDrawer,
|
|
959
|
+
default10 as PDropdown,
|
|
960
|
+
a2 as PDropdownSelect,
|
|
1096
961
|
pFileUpload as PFileUpload,
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
962
|
+
default11 as PFilterIcon,
|
|
963
|
+
a as PIcon,
|
|
964
|
+
default12 as PInfoIcon,
|
|
965
|
+
default13 as PInlineDatePicker,
|
|
966
|
+
default14 as PInput,
|
|
967
|
+
default15 as PInputNumber,
|
|
1103
968
|
_3 as PInputPercent,
|
|
1104
969
|
PInputSearch,
|
|
1105
970
|
_4 as PLink,
|
|
1106
|
-
|
|
1107
|
-
|
|
971
|
+
default16 as PLoading,
|
|
972
|
+
default17 as PModal,
|
|
1108
973
|
_5 as PPagination,
|
|
1109
974
|
_6 as PPaginationInfo,
|
|
1110
|
-
|
|
975
|
+
default18 as PProgressBar,
|
|
1111
976
|
_7 as PRingLoader,
|
|
1112
977
|
_8 as PSelect,
|
|
1113
978
|
_9 as PSelectBtn,
|
|
1114
979
|
_sfc_main$2 as PSelectList,
|
|
1115
|
-
|
|
1116
|
-
|
|
980
|
+
default19 as PSelectPill,
|
|
981
|
+
default20 as PSkeletonLoader,
|
|
1117
982
|
pTable as PTable,
|
|
1118
983
|
PTableHeaderCell,
|
|
1119
984
|
_10 as PTableLoader,
|
|
1120
985
|
pTableSort as PTableSort,
|
|
1121
|
-
|
|
986
|
+
default21 as PTableTd,
|
|
1122
987
|
_11 as PTabs,
|
|
1123
|
-
|
|
1124
|
-
|
|
988
|
+
default22 as PTextarea,
|
|
989
|
+
default23 as PToggle,
|
|
1125
990
|
P_ICON_ALIASES,
|
|
1126
991
|
SELECT_ARROW,
|
|
1127
992
|
SELECT_BASE,
|
|
@@ -1139,7 +1004,7 @@ export {
|
|
|
1139
1004
|
getColorDeep,
|
|
1140
1005
|
getNextActiveElement,
|
|
1141
1006
|
getScreen,
|
|
1142
|
-
|
|
1007
|
+
default24 as inputClassesMixin,
|
|
1143
1008
|
isColsResizableInjectionKey,
|
|
1144
1009
|
isElement,
|
|
1145
1010
|
isFirstColFixedInjectionKey,
|
package/dist/es/p-action-bar.js
CHANGED
package/dist/es/p-loading.js
CHANGED
|
@@ -1,5 +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 {
|
|
2
|
+
import { isComponent } from "./component.js";
|
|
3
3
|
import { usePLoading } from "./usePLoading.js";
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
5
5
|
const _hoisted_1 = {
|
package/dist/es/string.js
CHANGED
|
@@ -1,32 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
16
|
-
describe("isString", () => {
|
|
17
|
-
it("should return true for a string", () => {
|
|
18
|
-
expect(isString("hello")).toBe(true);
|
|
19
|
-
});
|
|
20
|
-
it.each([
|
|
21
|
-
[123, false],
|
|
22
|
-
[{}, false],
|
|
23
|
-
[[], false],
|
|
24
|
-
[null, false],
|
|
25
|
-
[void 0, false],
|
|
26
|
-
[true, false],
|
|
27
|
-
[() => {
|
|
28
|
-
}, false]
|
|
29
|
-
])("should return %s for %p", (input, expected) => {
|
|
30
|
-
expect(isString(input)).toBe(expected);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
1
|
+
const isString = (val) => typeof val === "string";
|
|
2
|
+
const toString = (value) => {
|
|
3
|
+
if (typeof value === "number" && (!isFinite(value) || isNaN(value))) {
|
|
4
|
+
return "";
|
|
5
|
+
}
|
|
6
|
+
if (typeof value !== "string" && typeof value !== "number") {
|
|
7
|
+
return "";
|
|
8
|
+
}
|
|
9
|
+
return String(value);
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
isString,
|
|
13
|
+
toString
|
|
14
|
+
};
|
package/dist/es/useSelectList.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ref, computed, watch, onUnmounted, nextTick } from "vue";
|
|
|
2
2
|
import { setupListKeyboardNavigation } from "./listKeyboardNavigation.js";
|
|
3
3
|
import { cloneDeep, uniqBy } from "lodash-es";
|
|
4
4
|
import { isObject } from "./object.js";
|
|
5
|
-
import {
|
|
5
|
+
import { toString } from "./string.js";
|
|
6
6
|
import { useVirtualizer } from "@tanstack/vue-virtual";
|
|
7
7
|
const createInternalItems = (items) => {
|
|
8
8
|
let arr = Array.isArray(items) ? items.slice() : [];
|