@pequity/squirrel 1.0.20-beta.2 → 1.0.20-beta.3
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/_plugin-vue_export-helper.js +9 -1
- package/dist/cjs/chunks/p-action-bar.js +60 -1
- package/dist/cjs/chunks/p-card.js +28 -1
- package/dist/cjs/chunks/p-checkbox.js +24 -1
- package/dist/cjs/chunks/p-dropdown-select.js +414 -1
- package/dist/cjs/chunks/p-input-percent.js +53 -1
- package/dist/cjs/chunks/p-pagination-info.js +66 -1
- package/dist/cjs/chunks/p-pagination.js +122 -1
- package/dist/cjs/chunks/p-ring-loader.js +81 -1
- package/dist/cjs/chunks/p-select-btn.js +97 -1
- package/dist/cjs/chunks/p-select.js +123 -1
- package/dist/cjs/chunks/p-table-loader.js +70 -1
- package/dist/cjs/chunks/p-tabs.js +52 -1
- package/dist/cjs/config.js +105 -1
- package/dist/cjs/currency.js +9 -1
- package/dist/cjs/dom.js +27 -1
- package/dist/cjs/index.js +976 -1
- package/dist/cjs/inputClassesMixin.js +50 -1
- package/dist/cjs/inputClassesShared.js +76 -1
- package/dist/cjs/listKeyboardNavigation.js +110 -1
- package/dist/cjs/number.js +9 -1
- package/dist/cjs/object.js +4 -1
- package/dist/cjs/p-action-bar.js +3 -1
- package/dist/cjs/p-alert.js +65 -1
- package/dist/cjs/p-avatar.js +71 -1
- package/dist/cjs/p-btn.js +358 -2
- package/dist/cjs/p-card.js +3 -1
- package/dist/cjs/p-checkbox.js +3 -1
- package/dist/cjs/p-chips.js +110 -1
- package/dist/cjs/p-close-btn.js +36 -1
- package/dist/cjs/p-date-picker.js +139 -1
- package/dist/cjs/p-drawer.js +253 -1
- package/dist/cjs/p-dropdown-select.js +3 -1
- package/dist/cjs/p-dropdown.js +138 -1
- package/dist/cjs/p-file-upload.js +21 -1
- package/dist/cjs/p-info-icon.js +35 -1
- package/dist/cjs/p-inline-date-picker.js +142 -1
- package/dist/cjs/p-input-number.js +146 -1
- package/dist/cjs/p-input-percent.js +3 -1
- package/dist/cjs/p-input-search.js +110 -1
- package/dist/cjs/p-input.js +89 -1
- package/dist/cjs/p-loading.js +38 -1
- package/dist/cjs/p-modal.js +369 -1
- package/dist/cjs/p-pagination-info.js +3 -1
- package/dist/cjs/p-pagination.js +3 -1
- package/dist/cjs/p-progress-bar.js +41 -1
- package/dist/cjs/p-ring-loader.js +3 -1
- package/dist/cjs/p-select-btn.js +3 -1
- package/dist/cjs/p-select-list.js +4 -1
- package/dist/cjs/p-select-pill.js +111 -1
- package/dist/cjs/p-select.js +3 -1
- package/dist/cjs/p-skeleton-loader.js +73 -1
- package/dist/cjs/p-table-filter-icon.js +20 -1
- package/dist/cjs/p-table-header-cell.js +75 -1
- package/dist/cjs/p-table-loader.js +3 -1
- package/dist/cjs/p-table-sort.js +8 -1
- package/dist/cjs/p-table-td.js +88 -1
- package/dist/cjs/p-table.js +12 -1
- package/dist/cjs/p-tabs.js +3 -1
- package/dist/cjs/p-textarea.js +73 -1
- package/dist/cjs/p-toggle.js +114 -1
- package/dist/cjs/pagination.js +29 -1
- package/dist/cjs/string.js +12 -1
- package/dist/cjs/tailwind.js +4353 -1
- package/dist/cjs/text.js +16 -1
- package/dist/cjs/useInputClasses.js +44 -1
- package/dist/cjs/usePLoading.js +35 -1
- package/dist/cjs/usePModal.js +21 -1
- package/dist/cjs/usePTableColResize.js +81 -1
- package/dist/cjs/usePTableRowVirtualizer.js +31 -1
- package/dist/cjs/useSelectList.js +256 -1
- package/dist/es/chunks/_plugin-vue_export-helper.js +7 -6
- package/dist/es/chunks/p-action-bar.js +45 -36
- package/dist/es/chunks/p-card.js +18 -14
- package/dist/es/chunks/p-checkbox.js +14 -11
- package/dist/es/chunks/p-dropdown-select.js +232 -183
- package/dist/es/chunks/p-input-percent.js +34 -25
- package/dist/es/chunks/p-pagination-info.js +30 -24
- package/dist/es/chunks/p-pagination.js +78 -48
- package/dist/es/chunks/p-ring-loader.js +63 -40
- package/dist/es/chunks/p-select-btn.js +80 -59
- package/dist/es/chunks/p-select.js +81 -54
- package/dist/es/chunks/p-table-loader.js +46 -32
- package/dist/es/chunks/p-tabs.js +35 -29
- package/dist/es/config.js +2 -2
- package/dist/es/currency.js +3 -3
- package/dist/es/dom.js +24 -12
- package/dist/es/index.js +703 -561
- package/dist/es/inputClassesMixin.js +20 -14
- package/dist/es/inputClassesShared.js +60 -45
- package/dist/es/listKeyboardNavigation.js +86 -36
- package/dist/es/number.js +7 -2
- package/dist/es/object.js +2 -2
- package/dist/es/p-action-bar.js +2 -2
- package/dist/es/p-alert.js +35 -30
- package/dist/es/p-avatar.js +30 -27
- package/dist/es/p-btn.js +209 -164
- package/dist/es/p-card.js +2 -2
- package/dist/es/p-checkbox.js +2 -2
- package/dist/es/p-chips.js +60 -40
- package/dist/es/p-close-btn.js +20 -16
- package/dist/es/p-date-picker.js +66 -58
- package/dist/es/p-drawer.js +108 -89
- package/dist/es/p-dropdown-select.js +2 -2
- package/dist/es/p-dropdown.js +52 -33
- package/dist/es/p-file-upload.js +17 -9
- package/dist/es/p-info-icon.js +21 -16
- package/dist/es/p-inline-date-picker.js +64 -53
- package/dist/es/p-input-number.js +84 -66
- package/dist/es/p-input-percent.js +2 -2
- package/dist/es/p-input-search.js +43 -41
- package/dist/es/p-input.js +51 -45
- package/dist/es/p-loading.js +31 -22
- package/dist/es/p-modal.js +261 -174
- package/dist/es/p-pagination-info.js +2 -2
- package/dist/es/p-pagination.js +2 -2
- package/dist/es/p-progress-bar.js +26 -23
- package/dist/es/p-ring-loader.js +2 -2
- package/dist/es/p-select-btn.js +2 -2
- package/dist/es/p-select-list.js +2 -2
- package/dist/es/p-select-pill.js +58 -41
- package/dist/es/p-select.js +2 -2
- package/dist/es/p-skeleton-loader.js +34 -29
- package/dist/es/p-table-filter-icon.js +11 -11
- package/dist/es/p-table-header-cell.js +38 -33
- package/dist/es/p-table-loader.js +2 -2
- package/dist/es/p-table-sort.js +2 -2
- package/dist/es/p-table-td.js +76 -29
- package/dist/es/p-table.js +10 -6
- package/dist/es/p-tabs.js +2 -2
- package/dist/es/p-textarea.js +36 -34
- package/dist/es/p-toggle.js +53 -48
- package/dist/es/pagination.js +25 -8
- package/dist/es/string.js +10 -2
- package/dist/es/tailwind.js +1660 -1101
- package/dist/es/text.js +13 -8
- package/dist/es/useInputClasses.js +38 -22
- package/dist/es/usePLoading.js +31 -15
- package/dist/es/usePModal.js +15 -12
- package/dist/es/usePTableColResize.js +71 -39
- package/dist/es/usePTableRowVirtualizer.js +24 -15
- package/dist/es/useSelectList.js +234 -121
- package/dist/style.css +2124 -1
- package/package.json +1 -1
package/dist/es/p-input.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
1
|
+
import inputClassesMixin from "./inputClassesMixin.js";
|
|
2
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, toDisplayString, createCommentVNode, createElementVNode, mergeProps, withDirectives, vShow } from "vue";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
|
+
const INPUT_TYPES = { TEXT: "text", PASSWORD: "password" };
|
|
5
|
+
const _sfc_main = defineComponent({
|
|
5
6
|
name: "PInput",
|
|
6
|
-
mixins: [
|
|
7
|
-
inheritAttrs:
|
|
7
|
+
mixins: [inputClassesMixin],
|
|
8
|
+
inheritAttrs: false,
|
|
8
9
|
props: {
|
|
9
10
|
modelValue: {
|
|
10
11
|
type: [String, Number],
|
|
@@ -12,9 +13,9 @@ const u = { TEXT: "text", PASSWORD: "password" }, g = f({
|
|
|
12
13
|
},
|
|
13
14
|
type: {
|
|
14
15
|
type: String,
|
|
15
|
-
default:
|
|
16
|
-
validator(
|
|
17
|
-
return Object.values(
|
|
16
|
+
default: INPUT_TYPES.TEXT,
|
|
17
|
+
validator(value) {
|
|
18
|
+
return Object.values(INPUT_TYPES).includes(value);
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
label: {
|
|
@@ -27,58 +28,63 @@ const u = { TEXT: "text", PASSWORD: "password" }, g = f({
|
|
|
27
28
|
},
|
|
28
29
|
required: {
|
|
29
30
|
type: Boolean,
|
|
30
|
-
default:
|
|
31
|
+
default: false
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
emits: ["update:modelValue"],
|
|
34
35
|
computed: {
|
|
35
36
|
attrs() {
|
|
36
|
-
const { class:
|
|
37
|
-
return
|
|
37
|
+
const { class: classes, style, ...rest } = this.$attrs;
|
|
38
|
+
return rest;
|
|
38
39
|
},
|
|
39
40
|
style() {
|
|
40
41
|
return this.$attrs.style;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
});
|
|
45
|
+
const _hoisted_1 = ["data-has-error"];
|
|
46
|
+
const _hoisted_2 = { class: "relative w-full" };
|
|
47
|
+
const _hoisted_3 = { key: 0 };
|
|
48
|
+
const _hoisted_4 = ["type", "value"];
|
|
49
|
+
const _hoisted_5 = { key: 1 };
|
|
50
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
51
|
+
return openBlock(), createElementBlock("div", {
|
|
52
|
+
class: normalizeClass([{ hidden: _ctx.$attrs.hidden }, _ctx.$attrs.class]),
|
|
53
|
+
"data-has-error": !!_ctx.errorMsg,
|
|
54
|
+
style: normalizeStyle(_ctx.style)
|
|
49
55
|
}, [
|
|
50
|
-
|
|
51
|
-
label:
|
|
52
|
-
labelClasses:
|
|
56
|
+
renderSlot(_ctx.$slots, "label", {
|
|
57
|
+
label: _ctx.label,
|
|
58
|
+
labelClasses: _ctx.labelClasses
|
|
53
59
|
}, () => [
|
|
54
|
-
|
|
60
|
+
_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
55
61
|
key: 0,
|
|
56
|
-
class:
|
|
57
|
-
},
|
|
62
|
+
class: normalizeClass(_ctx.labelClasses)
|
|
63
|
+
}, toDisplayString(_ctx.label), 3)) : createCommentVNode("", true)
|
|
58
64
|
]),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
])) :
|
|
63
|
-
|
|
64
|
-
type:
|
|
65
|
-
value:
|
|
66
|
-
},
|
|
67
|
-
class:
|
|
68
|
-
onInput:
|
|
69
|
-
}), null, 16,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
])) :
|
|
65
|
+
createElementVNode("div", _hoisted_2, [
|
|
66
|
+
!!_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
67
|
+
renderSlot(_ctx.$slots, "prefix")
|
|
68
|
+
])) : createCommentVNode("", true),
|
|
69
|
+
createElementVNode("input", mergeProps({
|
|
70
|
+
type: _ctx.type,
|
|
71
|
+
value: _ctx.modelValue
|
|
72
|
+
}, _ctx.attrs, {
|
|
73
|
+
class: _ctx.inputClasses,
|
|
74
|
+
onInput: _cache[0] || (_cache[0] = (event) => _ctx.$emit("update:modelValue", event.target.value))
|
|
75
|
+
}), null, 16, _hoisted_4),
|
|
76
|
+
!!_ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
77
|
+
renderSlot(_ctx.$slots, "suffix")
|
|
78
|
+
])) : createCommentVNode("", true)
|
|
73
79
|
]),
|
|
74
|
-
|
|
75
|
-
class:
|
|
76
|
-
},
|
|
77
|
-
[
|
|
80
|
+
withDirectives(createElementVNode("div", {
|
|
81
|
+
class: normalizeClass(_ctx.errorMsgClasses)
|
|
82
|
+
}, toDisplayString(_ctx.errorMsg), 3), [
|
|
83
|
+
[vShow, _ctx.errorMsg]
|
|
78
84
|
])
|
|
79
|
-
], 14,
|
|
85
|
+
], 14, _hoisted_1);
|
|
80
86
|
}
|
|
81
|
-
const
|
|
87
|
+
const PInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
82
88
|
export {
|
|
83
|
-
|
|
89
|
+
PInput as default
|
|
84
90
|
};
|
package/dist/es/p-loading.js
CHANGED
|
@@ -1,30 +1,39 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { usePLoading
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent, openBlock, createBlock, Transition, withCtx, unref, createElementBlock, createCommentVNode, pushScopeId, popScopeId, createElementVNode } from "vue";
|
|
2
|
+
import { usePLoading } from "./usePLoading.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
|
+
const _withScopeId = (n) => (pushScopeId("data-v-3a800f21"), n = n(), popScopeId(), n);
|
|
5
|
+
const _hoisted_1 = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "fixed left-0 top-0 z-[120] flex w-full justify-center",
|
|
7
8
|
"aria-live": "polite",
|
|
8
9
|
"aria-busy": "true"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "bg-blue-10 h-8 rounded-b border-x border-b border-p-gray-30 px-4 pt-2 text-sm font-semibold leading-none text-p-purple-60 shadow" }, " Loading... ", -1));
|
|
12
|
+
const _hoisted_3 = [
|
|
13
|
+
_hoisted_2
|
|
14
|
+
];
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
+
...{
|
|
17
|
+
name: "PLoading"
|
|
18
|
+
},
|
|
13
19
|
__name: "p-loading",
|
|
14
|
-
setup(
|
|
15
|
-
const { show
|
|
16
|
-
return (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const { show } = usePLoading();
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(Transition, {
|
|
24
|
+
name: "pm-backdrop-transition",
|
|
25
|
+
"enter-active-class": "fadeInDown",
|
|
26
|
+
"leave-active-class": "fadeOutUp"
|
|
27
|
+
}, {
|
|
28
|
+
default: withCtx(() => [
|
|
29
|
+
unref(show) ? (openBlock(), createElementBlock("div", _hoisted_1, _hoisted_3)) : createCommentVNode("", true)
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
});
|
|
33
|
+
};
|
|
26
34
|
}
|
|
27
|
-
})
|
|
35
|
+
});
|
|
36
|
+
const pLoading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3a800f21"]]);
|
|
28
37
|
export {
|
|
29
|
-
|
|
38
|
+
pLoading as default
|
|
30
39
|
};
|