@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-chips.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { isObject
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, renderSlot, Fragment, renderList, toDisplayString, withDirectives, vShow, pushScopeId, popScopeId } from "vue";
|
|
2
|
+
import { isObject } from "lodash-es";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
|
+
const _sfc_main = defineComponent({
|
|
5
5
|
name: "PChips",
|
|
6
6
|
props: {
|
|
7
7
|
items: {
|
|
8
8
|
type: Array,
|
|
9
9
|
default: () => [],
|
|
10
|
-
required:
|
|
10
|
+
required: true
|
|
11
11
|
},
|
|
12
12
|
itemText: {
|
|
13
13
|
type: String,
|
|
@@ -26,7 +26,8 @@ const g = m({
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
mounted() {
|
|
29
|
-
this.resizeFilterChips()
|
|
29
|
+
this.resizeFilterChips();
|
|
30
|
+
this.$nextTick(() => {
|
|
30
31
|
window.addEventListener("resize", this.resizeFilterChips);
|
|
31
32
|
});
|
|
32
33
|
},
|
|
@@ -35,57 +36,76 @@ const g = m({
|
|
|
35
36
|
},
|
|
36
37
|
methods: {
|
|
37
38
|
resizeFilterChips() {
|
|
38
|
-
this.maxChipsDisplayed = this.items.length
|
|
39
|
-
|
|
39
|
+
this.maxChipsDisplayed = this.items.length;
|
|
40
|
+
this.$nextTick(() => {
|
|
41
|
+
if (!this.$refs.filterChipsRowInner) {
|
|
40
42
|
return;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
}
|
|
44
|
+
const filterChipsRowElement = this.$refs.filterChipsRow;
|
|
45
|
+
const filterChipsRowInnerElement = this.$refs.filterChipsRowInner;
|
|
46
|
+
const afterSlotContainerElement = this.$refs.afterSlotContainer;
|
|
47
|
+
const beforeSlotContainerElement = this.$refs.beforeSlotContainer;
|
|
48
|
+
const chips = filterChipsRowInnerElement.children;
|
|
49
|
+
let totalInnerWidth = 0;
|
|
50
|
+
const overflowChipWidth = 42;
|
|
51
|
+
const totalExtraWidth = beforeSlotContainerElement.offsetWidth + afterSlotContainerElement.offsetWidth + overflowChipWidth;
|
|
52
|
+
for (let i = 0; i < chips.length; i++) {
|
|
53
|
+
totalInnerWidth += chips[i].offsetWidth;
|
|
54
|
+
if (totalInnerWidth + totalExtraWidth >= filterChipsRowElement.offsetWidth) {
|
|
55
|
+
this.maxChipsDisplayed = i;
|
|
47
56
|
break;
|
|
48
57
|
}
|
|
58
|
+
}
|
|
49
59
|
});
|
|
50
60
|
},
|
|
51
|
-
getItemText(
|
|
52
|
-
return typeof
|
|
61
|
+
getItemText(item) {
|
|
62
|
+
return typeof item === "string" ? item : isObject(item) ? item[this.itemText] : "";
|
|
53
63
|
}
|
|
54
64
|
}
|
|
55
|
-
})
|
|
65
|
+
});
|
|
66
|
+
const _withScopeId = (n) => (pushScopeId("data-v-40bc335f"), n = n(), popScopeId(), n);
|
|
67
|
+
const _hoisted_1 = {
|
|
56
68
|
ref: "filterChipsRow",
|
|
57
69
|
class: "flex w-full items-center"
|
|
58
|
-
}
|
|
70
|
+
};
|
|
71
|
+
const _hoisted_2 = { ref: "beforeSlotContainer" };
|
|
72
|
+
const _hoisted_3 = {
|
|
59
73
|
ref: "filterChipsRowInner",
|
|
60
74
|
class: "flex divide-x divide-p-blue-30 overflow-hidden rounded-md border border-p-blue-30 text-xs font-medium text-p-purple-60"
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
75
|
+
};
|
|
76
|
+
const _hoisted_4 = ["onClick"];
|
|
77
|
+
const _hoisted_5 = { class: "inline-block truncate" };
|
|
78
|
+
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "bg-cross ml-2 inline-block h-1.5 w-1.5" }, null, -1));
|
|
79
|
+
const _hoisted_7 = { ref: "afterSlotContainer" };
|
|
80
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
81
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
82
|
+
createElementVNode("div", _hoisted_2, [
|
|
83
|
+
renderSlot(_ctx.$slots, "before", {}, void 0, true)
|
|
66
84
|
], 512),
|
|
67
|
-
|
|
68
|
-
(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
85
|
+
createElementVNode("div", _hoisted_3, [
|
|
86
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items.slice(0, _ctx.maxChipsDisplayed), (item, idx) => {
|
|
87
|
+
return openBlock(), createElementBlock("div", {
|
|
88
|
+
key: `${_ctx.getItemText(item)}_${idx}`,
|
|
89
|
+
class: "flex cursor-pointer items-center px-3 py-1 hover:bg-p-blue-20",
|
|
90
|
+
onClick: ($event) => _ctx.$emit("click:chip", item)
|
|
91
|
+
}, [
|
|
92
|
+
createElementVNode("div", _hoisted_5, toDisplayString(_ctx.getItemText(item)), 1),
|
|
93
|
+
_hoisted_6
|
|
94
|
+
], 8, _hoisted_4);
|
|
95
|
+
}), 128)),
|
|
96
|
+
withDirectives(createElementVNode("div", {
|
|
77
97
|
class: "cursor-pointer px-3 py-1 hover:bg-p-blue-20",
|
|
78
|
-
onClick:
|
|
79
|
-
}, " +" +
|
|
80
|
-
[
|
|
98
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:overflow"))
|
|
99
|
+
}, " +" + toDisplayString(_ctx.items.length - _ctx.maxChipsDisplayed), 513), [
|
|
100
|
+
[vShow, _ctx.items.length > _ctx.maxChipsDisplayed]
|
|
81
101
|
])
|
|
82
102
|
], 512),
|
|
83
|
-
|
|
84
|
-
|
|
103
|
+
createElementVNode("div", _hoisted_7, [
|
|
104
|
+
renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
85
105
|
], 512)
|
|
86
106
|
], 512);
|
|
87
107
|
}
|
|
88
|
-
const
|
|
108
|
+
const pChips = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-40bc335f"]]);
|
|
89
109
|
export {
|
|
90
|
-
|
|
110
|
+
pChips as default
|
|
91
111
|
};
|
package/dist/es/p-close-btn.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode } from "vue";
|
|
2
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "p-close-btn",
|
|
5
5
|
props: {
|
|
6
6
|
variant: {
|
|
@@ -8,26 +8,30 @@ const l = /* @__PURE__ */ r({
|
|
|
8
8
|
default: "transparent"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const variantClasses = {
|
|
13
13
|
transparent: ["bg-transparent", "hover:bg-p-gray-20"],
|
|
14
14
|
gray: ["bg-p-gray-10", "hover:bg-p-gray-20"],
|
|
15
15
|
dark: ["bg-transparent"]
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
|
+
const iconClass = {
|
|
17
18
|
transparent: "x-black-icon",
|
|
18
19
|
gray: "x-black-icon",
|
|
19
20
|
dark: "x-white-icon"
|
|
20
21
|
};
|
|
21
|
-
return (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createElementBlock("button", {
|
|
24
|
+
type: "button",
|
|
25
|
+
class: normalizeClass(["inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded focus:outline-none disabled:cursor-default disabled:opacity-30 disabled:hover:bg-white", variantClasses[__props.variant]])
|
|
26
|
+
}, [
|
|
27
|
+
createElementVNode("i", {
|
|
28
|
+
class: normalizeClass(["block h-3 w-3 bg-center bg-no-repeat", iconClass[__props.variant]])
|
|
29
|
+
}, null, 2)
|
|
30
|
+
], 2);
|
|
31
|
+
};
|
|
29
32
|
}
|
|
30
|
-
})
|
|
33
|
+
});
|
|
34
|
+
const PCloseBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f61993bb"]]);
|
|
31
35
|
export {
|
|
32
|
-
|
|
36
|
+
PCloseBtn as default
|
|
33
37
|
};
|
package/dist/es/p-date-picker.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { DatePicker
|
|
4
|
-
import { defineComponent
|
|
5
|
-
import { isString
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import inputClassesMixin from "./inputClassesMixin.js";
|
|
3
|
+
import { DatePicker } from "v-calendar";
|
|
4
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, toDisplayString, createCommentVNode, createVNode, withCtx, createElementVNode, mergeProps, toHandlers, withDirectives, vShow } from "vue";
|
|
5
|
+
import { isString, isDate } from "lodash-es";
|
|
6
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
7
|
+
const selectAttribute = { highlight: { class: "bg-primary", contentClass: "text-white" } };
|
|
8
|
+
const DEFAULT_MASKS = {
|
|
8
9
|
// The mask for the input
|
|
9
10
|
input: "DD-MMM-YYYY",
|
|
10
11
|
// The mask for the model value
|
|
11
12
|
data: "YYYY-MM-DD"
|
|
12
|
-
}
|
|
13
|
+
};
|
|
14
|
+
const _sfc_main = defineComponent({
|
|
13
15
|
name: "PDatePicker",
|
|
14
16
|
components: {
|
|
15
|
-
DatePicker
|
|
17
|
+
DatePicker
|
|
16
18
|
},
|
|
17
|
-
mixins: [
|
|
18
|
-
inheritAttrs:
|
|
19
|
+
mixins: [inputClassesMixin],
|
|
20
|
+
inheritAttrs: false,
|
|
19
21
|
props: {
|
|
20
22
|
modelValue: {
|
|
21
23
|
type: String,
|
|
@@ -31,7 +33,7 @@ const Y = { highlight: { class: "bg-primary", contentClass: "text-white" } }, z
|
|
|
31
33
|
},
|
|
32
34
|
required: {
|
|
33
35
|
type: Boolean,
|
|
34
|
-
default:
|
|
36
|
+
default: false
|
|
35
37
|
},
|
|
36
38
|
minDate: {
|
|
37
39
|
type: Date,
|
|
@@ -51,20 +53,20 @@ const Y = { highlight: { class: "bg-primary", contentClass: "text-white" } }, z
|
|
|
51
53
|
return {
|
|
52
54
|
// innerValue is a Date object
|
|
53
55
|
innerValue: null,
|
|
54
|
-
stopWatch:
|
|
55
|
-
selectAttribute
|
|
56
|
+
stopWatch: false,
|
|
57
|
+
selectAttribute
|
|
56
58
|
};
|
|
57
59
|
},
|
|
58
60
|
computed: {
|
|
59
61
|
displayPlaceholder() {
|
|
60
|
-
return
|
|
62
|
+
return isString(this.$attrs.placeholder) ? this.$attrs.placeholder : this.masks.input;
|
|
61
63
|
},
|
|
62
64
|
masks() {
|
|
63
|
-
return Object.assign(
|
|
65
|
+
return Object.assign(DEFAULT_MASKS, this.$attrs.masks);
|
|
64
66
|
},
|
|
65
67
|
attrs() {
|
|
66
|
-
const { class:
|
|
67
|
-
return
|
|
68
|
+
const { class: classes, style, ...rest } = this.$attrs;
|
|
69
|
+
return rest;
|
|
68
70
|
},
|
|
69
71
|
style() {
|
|
70
72
|
return this.$attrs.style;
|
|
@@ -72,61 +74,67 @@ const Y = { highlight: { class: "bg-primary", contentClass: "text-white" } }, z
|
|
|
72
74
|
},
|
|
73
75
|
watch: {
|
|
74
76
|
modelValue: {
|
|
75
|
-
handler(
|
|
76
|
-
|
|
77
|
+
handler(nV) {
|
|
78
|
+
if (!this.stopWatch) {
|
|
79
|
+
this.innerValue = nV ? dayjs(nV, this.masks.data).toDate() : null;
|
|
80
|
+
}
|
|
77
81
|
},
|
|
78
|
-
immediate:
|
|
82
|
+
immediate: true
|
|
79
83
|
},
|
|
80
|
-
innerValue(
|
|
81
|
-
const
|
|
82
|
-
this.stopWatch =
|
|
83
|
-
|
|
84
|
+
innerValue(nV) {
|
|
85
|
+
const toEmit = isDate(nV) && nV.toString() !== "Invalid Date" ? dayjs(nV).format(this.masks.data) : null;
|
|
86
|
+
this.stopWatch = true;
|
|
87
|
+
this.$emit("update:modelValue", toEmit);
|
|
88
|
+
this.$nextTick(() => {
|
|
89
|
+
this.stopWatch = false;
|
|
84
90
|
});
|
|
85
91
|
}
|
|
86
92
|
}
|
|
87
|
-
})
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
});
|
|
94
|
+
const _hoisted_1 = ["data-has-error"];
|
|
95
|
+
const _hoisted_2 = ["value", "placeholder"];
|
|
96
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
97
|
+
const _component_DatePicker = resolveComponent("DatePicker");
|
|
98
|
+
return openBlock(), createElementBlock("div", {
|
|
99
|
+
class: normalizeClass([{ hidden: _ctx.$attrs.hidden }, _ctx.$attrs.class]),
|
|
100
|
+
"data-has-error": !!_ctx.errorMsg,
|
|
101
|
+
style: normalizeStyle(_ctx.style)
|
|
94
102
|
}, [
|
|
95
|
-
|
|
96
|
-
label:
|
|
97
|
-
labelClasses:
|
|
103
|
+
renderSlot(_ctx.$slots, "label", {
|
|
104
|
+
label: _ctx.label,
|
|
105
|
+
labelClasses: _ctx.labelClasses
|
|
98
106
|
}, () => [
|
|
99
|
-
|
|
107
|
+
_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
100
108
|
key: 0,
|
|
101
|
-
class:
|
|
102
|
-
},
|
|
109
|
+
class: normalizeClass(_ctx.labelClasses)
|
|
110
|
+
}, toDisplayString(_ctx.label), 3)) : createCommentVNode("", true)
|
|
103
111
|
]),
|
|
104
|
-
|
|
105
|
-
modelValue:
|
|
106
|
-
"onUpdate:modelValue":
|
|
107
|
-
"select-attribute":
|
|
112
|
+
createVNode(_component_DatePicker, {
|
|
113
|
+
modelValue: _ctx.innerValue,
|
|
114
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.innerValue = $event),
|
|
115
|
+
"select-attribute": _ctx.selectAttribute,
|
|
108
116
|
popover: { visibility: "click", placement: "auto" },
|
|
109
|
-
"min-date":
|
|
110
|
-
"max-date":
|
|
111
|
-
masks:
|
|
112
|
-
timezone:
|
|
117
|
+
"min-date": _ctx.minDate || null,
|
|
118
|
+
"max-date": _ctx.maxDate || null,
|
|
119
|
+
masks: _ctx.masks,
|
|
120
|
+
timezone: _ctx.timezone
|
|
113
121
|
}, {
|
|
114
|
-
default:
|
|
115
|
-
|
|
116
|
-
class: [
|
|
117
|
-
value:
|
|
118
|
-
},
|
|
122
|
+
default: withCtx(({ inputValue, inputEvents }) => [
|
|
123
|
+
createElementVNode("input", mergeProps({
|
|
124
|
+
class: [_ctx.inputClasses, { "cursor-pointer": !_ctx.attrs.disabled }],
|
|
125
|
+
value: inputValue
|
|
126
|
+
}, _ctx.attrs, { placeholder: _ctx.displayPlaceholder }, toHandlers(inputEvents, true)), null, 16, _hoisted_2)
|
|
119
127
|
]),
|
|
120
128
|
_: 1
|
|
121
129
|
}, 8, ["modelValue", "select-attribute", "min-date", "max-date", "masks", "timezone"]),
|
|
122
|
-
|
|
123
|
-
class:
|
|
124
|
-
},
|
|
125
|
-
[
|
|
130
|
+
withDirectives(createElementVNode("div", {
|
|
131
|
+
class: normalizeClass(_ctx.errorMsgClasses)
|
|
132
|
+
}, toDisplayString(_ctx.errorMsg), 3), [
|
|
133
|
+
[vShow, _ctx.errorMsg]
|
|
126
134
|
])
|
|
127
|
-
], 14,
|
|
135
|
+
], 14, _hoisted_1);
|
|
128
136
|
}
|
|
129
|
-
const
|
|
137
|
+
const pDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
130
138
|
export {
|
|
131
|
-
|
|
139
|
+
pDatePicker as default
|
|
132
140
|
};
|