@pequity/squirrel 5.4.0 → 5.4.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-action-bar.js +10 -11
- package/dist/cjs/chunks/p-date-picker.js +108 -0
- package/dist/cjs/chunks/p-dropdown-select.js +7 -8
- package/dist/cjs/chunks/p-inline-date-picker.js +112 -0
- package/dist/cjs/chunks/p-input-percent.js +3 -5
- package/dist/cjs/chunks/p-pagination-info.js +1 -1
- package/dist/cjs/chunks/p-pagination.js +12 -16
- package/dist/cjs/config.js +54 -54
- package/dist/cjs/index.js +47 -52
- package/dist/cjs/p-btn.js +8 -5
- package/dist/cjs/p-chips.js +3 -5
- package/dist/cjs/p-date-picker.js +2 -138
- package/dist/cjs/p-drawer.js +3 -3
- package/dist/cjs/p-info-icon.js +1 -3
- package/dist/cjs/p-inline-date-picker.js +2 -143
- package/dist/cjs/p-modal.js +3 -3
- package/dist/cjs/p-table-td.js +3 -5
- package/dist/es/chunks/p-action-bar.js +10 -11
- package/dist/es/chunks/p-date-picker.js +109 -0
- package/dist/es/chunks/p-dropdown-select.js +7 -8
- package/dist/es/chunks/p-inline-date-picker.js +113 -0
- package/dist/es/chunks/p-input-percent.js +3 -5
- package/dist/es/chunks/p-pagination-info.js +1 -1
- package/dist/es/chunks/p-pagination.js +12 -16
- package/dist/es/config.js +54 -54
- package/dist/es/index.js +96 -101
- package/dist/es/p-btn.js +8 -5
- package/dist/es/p-chips.js +4 -6
- package/dist/es/p-date-picker.js +2 -138
- package/dist/es/p-drawer.js +3 -3
- package/dist/es/p-info-icon.js +2 -4
- package/dist/es/p-inline-date-picker.js +2 -143
- package/dist/es/p-modal.js +3 -3
- package/dist/es/p-table-td.js +4 -6
- package/dist/squirrel/components/p-action-bar/p-action-bar.vue.d.ts +5 -14
- package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +4 -4
- package/dist/squirrel/components/p-avatar/p-avatar.vue.d.ts +5 -5
- package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +40 -5
- package/dist/squirrel/components/p-card/p-card.vue.d.ts +4 -4
- package/dist/squirrel/components/p-checkbox/p-checkbox.vue.d.ts +5 -5
- package/dist/squirrel/components/p-chips/p-chips.vue.d.ts +5 -5
- package/dist/squirrel/components/p-close-btn/p-close-btn.vue.d.ts +4 -4
- package/dist/squirrel/components/p-date-picker/p-date-picker.vue.d.ts +35 -128
- package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +37 -5
- package/dist/squirrel/components/p-dropdown/p-dropdown.vue.d.ts +5 -5
- package/dist/squirrel/components/p-dropdown-select/p-dropdown-select.vue.d.ts +128 -29
- package/dist/squirrel/components/p-file-upload/p-file-upload.vue.d.ts +5 -5
- package/dist/squirrel/components/p-icon/p-icon.vue.d.ts +1 -10
- package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +2 -23
- package/dist/squirrel/components/p-input/p-input.vue.d.ts +9 -9
- package/dist/squirrel/components/p-input-number/p-input-number.vue.d.ts +40 -10
- package/dist/squirrel/components/p-input-percent/p-input-percent.vue.d.ts +5 -5
- package/dist/squirrel/components/p-input-search/p-input-search.vue.d.ts +121 -5
- package/dist/squirrel/components/p-link/p-link.vue.d.ts +1 -10
- package/dist/squirrel/components/p-loading/p-loading.vue.d.ts +1 -1
- package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +5 -5
- package/dist/squirrel/components/p-pagination/p-pagination.vue.d.ts +5 -5
- package/dist/squirrel/components/p-pagination-info/p-pagination-info.vue.d.ts +4 -4
- package/dist/squirrel/components/p-progress-bar/p-progress-bar.vue.d.ts +3 -3
- package/dist/squirrel/components/p-ring-loader/p-ring-loader.vue.d.ts +4 -4
- package/dist/squirrel/components/p-select/p-select.vue.d.ts +5 -5
- package/dist/squirrel/components/p-select-btn/p-select-btn.vue.d.ts +4 -45
- package/dist/squirrel/components/p-select-list/p-select-list.vue.d.ts +128 -29
- package/dist/squirrel/components/p-select-list/useSelectList.d.ts +4 -4
- package/dist/squirrel/components/p-select-pill/p-select-pill.vue.d.ts +5 -5
- package/dist/squirrel/components/p-skeleton-loader/p-skeleton-loader.vue.d.ts +4 -4
- package/dist/squirrel/components/p-table/p-table.vue.d.ts +10 -47
- package/dist/squirrel/components/p-table/usePTableColResize.d.ts +4 -4
- package/dist/squirrel/components/p-table/usePTableRowVirtualizer.d.ts +10 -4
- package/dist/squirrel/components/p-table-header-cell/p-table-filter-icon.vue.d.ts +4 -4
- package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +48 -5
- package/dist/squirrel/components/p-table-loader/p-table-loader.vue.d.ts +4 -4
- package/dist/squirrel/components/p-table-sort/p-table-sort.vue.d.ts +5 -5
- package/dist/squirrel/components/p-table-td/p-table-td.vue.d.ts +2 -25
- package/dist/squirrel/components/p-tabs/p-tabs.vue.d.ts +5 -5
- package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +9 -9
- package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +9 -9
- package/dist/squirrel/composables/useInputClasses.d.ts +1 -1
- package/dist/squirrel/tailwind/config.d.ts +54 -54
- package/dist/squirrel/utils/inputClassesMixin.d.ts +4 -4
- package/dist/style.css +92 -92
- package/dist/tailwind/config.js +54 -54
- package/package.json +25 -25
- package/squirrel/assets/squirrel.css +41 -41
- package/squirrel/components/p-alert/p-alert.spec.js +1 -1
- package/squirrel/components/p-btn/p-btn.spec.js +33 -4
- package/squirrel/components/p-btn/p-btn.vue +5 -2
- package/squirrel/components/p-date-picker/p-date-picker.vue +79 -86
- package/squirrel/components/p-drawer/p-drawer.vue +1 -1
- package/squirrel/components/p-inline-date-picker/p-inline-date-picker.spec.js +12 -14
- package/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue +87 -99
- package/squirrel/components/p-modal/p-modal.vue +1 -1
- package/squirrel/tailwind/config.ts +54 -54
- package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +0 -154
package/dist/es/index.js
CHANGED
|
@@ -7,54 +7,54 @@ import { _ as _2 } from "./chunks/p-card.js";
|
|
|
7
7
|
import { default as default5 } from "./p-checkbox.js";
|
|
8
8
|
import { default as default6 } from "./p-chips.js";
|
|
9
9
|
import { default as default7 } from "./p-close-btn.js";
|
|
10
|
-
import {
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
10
|
+
import { _ as _3 } from "./chunks/p-date-picker.js";
|
|
11
|
+
import { default as default8 } from "./p-drawer.js";
|
|
12
|
+
import { default as default9 } from "./p-dropdown.js";
|
|
13
13
|
import { _ as _imports_0$2 } from "./chunks/p-dropdown-select.js";
|
|
14
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,
|
|
15
|
+
import { defineComponent, shallowRef, ref, computed, onMounted, openBlock, createElementBlock, normalizeClass, unref, toDisplayString, createCommentVNode, createElementVNode, withModifiers, createTextVNode, Fragment, renderList, withDirectives, vShow, useAttrs, resolveDirective, normalizeStyle, createVNode, isRef, renderSlot, provide, onBeforeUnmount, watch, mergeProps, toHandlers } from "vue";
|
|
16
16
|
import { formatBytes, getFileExtension } from "./p-file-upload.js";
|
|
17
17
|
import { uniq, kebabCase } from "lodash-es";
|
|
18
18
|
import { useInputClasses } from "./useInputClasses.js";
|
|
19
19
|
import { useToast } from "vue-toastification";
|
|
20
20
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import {
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { _ as
|
|
21
|
+
import { default as default10 } from "./p-table-filter-icon.js";
|
|
22
|
+
import { default as default11 } from "./p-info-icon.js";
|
|
23
|
+
import { _ as _4 } from "./chunks/p-inline-date-picker.js";
|
|
24
|
+
import { default as default12 } from "./p-input.js";
|
|
25
|
+
import { default as default13 } from "./p-input-number.js";
|
|
26
|
+
import { _ as _5 } from "./chunks/p-input-percent.js";
|
|
27
27
|
import PInputSearch from "./p-input-search.js";
|
|
28
|
-
import { _ as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { _ as
|
|
32
|
-
import { _ as
|
|
33
|
-
import { default as
|
|
34
|
-
import { _ as
|
|
35
|
-
import { _ as
|
|
36
|
-
import { _ as
|
|
28
|
+
import { _ as _6 } from "./chunks/p-link.js";
|
|
29
|
+
import { default as default14 } from "./p-loading.js";
|
|
30
|
+
import { default as default15 } from "./p-modal.js";
|
|
31
|
+
import { _ as _7 } from "./chunks/p-pagination.js";
|
|
32
|
+
import { _ as _8 } from "./chunks/p-pagination-info.js";
|
|
33
|
+
import { default as default16 } from "./p-progress-bar.js";
|
|
34
|
+
import { _ as _9 } from "./chunks/p-ring-loader.js";
|
|
35
|
+
import { _ as _10 } from "./chunks/p-select.js";
|
|
36
|
+
import { _ as _11 } from "./chunks/p-select-btn.js";
|
|
37
37
|
import { SIZES } from "./p-select-list.js";
|
|
38
38
|
import { splitStringForHighlight } from "./text.js";
|
|
39
39
|
import { toString } from "./string.js";
|
|
40
40
|
import { useSelectList } from "./useSelectList.js";
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
41
|
+
import { default as default17 } from "./p-select-pill.js";
|
|
42
|
+
import { default as default18 } from "./p-skeleton-loader.js";
|
|
43
43
|
import PTableHeaderCell from "./p-table-header-cell.js";
|
|
44
44
|
import { colsInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey, isColsResizableInjectionKey } from "./p-table.js";
|
|
45
45
|
import { MIN_WIDTH_COL_RESIZE } from "./p-table.js";
|
|
46
46
|
import { usePTableColResize } from "./usePTableColResize.js";
|
|
47
|
-
import { _ as
|
|
47
|
+
import { _ as _12 } from "./chunks/p-table-loader.js";
|
|
48
48
|
import { SORTING_TYPES } from "./p-table-sort.js";
|
|
49
|
-
import { default as
|
|
50
|
-
import { _ as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
49
|
+
import { default as default19 } from "./p-table-td.js";
|
|
50
|
+
import { _ as _13 } from "./chunks/p-tabs.js";
|
|
51
|
+
import { default as default20 } from "./p-textarea.js";
|
|
52
|
+
import { default as default21 } from "./p-toggle.js";
|
|
53
53
|
import { P_ICON_ALIASES } from "./p-icon.js";
|
|
54
54
|
import { usePLoading } from "./usePLoading.js";
|
|
55
55
|
import { usePModal } from "./usePModal.js";
|
|
56
56
|
import { usePTableRowVirtualizer } from "./usePTableRowVirtualizer.js";
|
|
57
|
-
import { default as
|
|
57
|
+
import { default as default22 } from "./inputClassesMixin.js";
|
|
58
58
|
import { CURRENCY_INPUT_DEFAULTS } from "./currency.js";
|
|
59
59
|
import { getColor, getColorDeep, getScreen } from "./tailwind.js";
|
|
60
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";
|
|
@@ -66,7 +66,6 @@ import { setupListKeyboardNavigation } from "./listKeyboardNavigation.js";
|
|
|
66
66
|
import { toNumberOrNull } from "./number.js";
|
|
67
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";
|
|
68
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";
|
|
69
|
-
const _withScopeId = (n) => (pushScopeId("data-v-d07a8f64"), n = n(), popScopeId(), n);
|
|
70
69
|
const _hoisted_1$3 = ["data-has-error"];
|
|
71
70
|
const _hoisted_2$3 = {
|
|
72
71
|
key: 0,
|
|
@@ -76,26 +75,18 @@ const _hoisted_3$3 = {
|
|
|
76
75
|
key: 0,
|
|
77
76
|
class: "flex flex-col items-center"
|
|
78
77
|
};
|
|
79
|
-
const _hoisted_4$3 =
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}, null, -1));
|
|
83
|
-
const _hoisted_5$3 = { class: "mt-2 text-p-gray-50" };
|
|
84
|
-
const _hoisted_6$3 = { class: "text-p-blue-60" };
|
|
85
|
-
const _hoisted_7$2 = {
|
|
78
|
+
const _hoisted_4$3 = { class: "mt-2 text-p-gray-50" };
|
|
79
|
+
const _hoisted_5$3 = { class: "text-p-blue-60" };
|
|
80
|
+
const _hoisted_6$3 = {
|
|
86
81
|
key: 1,
|
|
87
82
|
class: "flex flex-col items-center"
|
|
88
83
|
};
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
const
|
|
95
|
-
const _hoisted_11 = { class: "max-h-48 overflow-y-auto overflow-x-hidden" };
|
|
96
|
-
const _hoisted_12 = ["title"];
|
|
97
|
-
const _hoisted_13 = ["onClick"];
|
|
98
|
-
const _hoisted_14 = { class: "mt-1 text-xs text-p-gray-40" };
|
|
84
|
+
const _hoisted_7 = { class: "mt-2 text-p-purple-60" };
|
|
85
|
+
const _hoisted_8 = ["accept", "multiple", "disabled"];
|
|
86
|
+
const _hoisted_9 = { class: "max-h-48 overflow-y-auto overflow-x-hidden" };
|
|
87
|
+
const _hoisted_10 = ["title"];
|
|
88
|
+
const _hoisted_11 = ["onClick"];
|
|
89
|
+
const _hoisted_12 = { class: "mt-1 text-xs text-p-gray-40" };
|
|
99
90
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
100
91
|
...{
|
|
101
92
|
name: "PFileUpload"
|
|
@@ -266,14 +257,20 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
266
257
|
}, [
|
|
267
258
|
!maxFilesReached.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
268
259
|
!isDraggingOver.value ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
260
|
+
_cache[4] || (_cache[4] = createElementVNode("img", {
|
|
261
|
+
src: _imports_0$1,
|
|
262
|
+
class: "h-8 w-8"
|
|
263
|
+
}, null, -1)),
|
|
264
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
265
|
+
_cache[3] || (_cache[3] = createTextVNode(" Drag or ")),
|
|
266
|
+
createElementVNode("span", _hoisted_5$3, "select " + toDisplayString(fileWord.value), 1)
|
|
273
267
|
])
|
|
274
|
-
])) : (openBlock(), createElementBlock("div",
|
|
275
|
-
|
|
276
|
-
|
|
268
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
269
|
+
_cache[5] || (_cache[5] = createElementVNode("img", {
|
|
270
|
+
src: _imports_1$1,
|
|
271
|
+
class: "h-8 w-8"
|
|
272
|
+
}, null, -1)),
|
|
273
|
+
createElementVNode("div", _hoisted_7, "Drop " + toDisplayString(fileWord.value), 1)
|
|
277
274
|
])),
|
|
278
275
|
createElementVNode("input", {
|
|
279
276
|
ref_key: "fileInputRef",
|
|
@@ -286,9 +283,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
286
283
|
disabled: __props.disabled,
|
|
287
284
|
"aria-hidden": "true",
|
|
288
285
|
onChange: changeFieldValue
|
|
289
|
-
}, null, 40,
|
|
286
|
+
}, null, 40, _hoisted_8)
|
|
290
287
|
])) : createCommentVNode("", true),
|
|
291
|
-
createElementVNode("div",
|
|
288
|
+
createElementVNode("div", _hoisted_9, [
|
|
292
289
|
(openBlock(true), createElementBlock(Fragment, null, renderList(files.value, (file, index) => {
|
|
293
290
|
return openBlock(), createElementBlock("div", {
|
|
294
291
|
key: index,
|
|
@@ -303,11 +300,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
303
300
|
createElementVNode("div", {
|
|
304
301
|
class: "truncate",
|
|
305
302
|
title: file.name
|
|
306
|
-
}, toDisplayString(file.name), 9,
|
|
303
|
+
}, toDisplayString(file.name), 9, _hoisted_10),
|
|
307
304
|
createElementVNode("button", {
|
|
308
305
|
class: "bg-file-upload-x-icon h-4 w-4 shrink-0 cursor-pointer",
|
|
309
306
|
onClick: withModifiers(($event) => removeFile(index), ["stop"])
|
|
310
|
-
}, null, 8,
|
|
307
|
+
}, null, 8, _hoisted_11)
|
|
311
308
|
], 2);
|
|
312
309
|
}), 128))
|
|
313
310
|
])
|
|
@@ -317,7 +314,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
317
314
|
}, toDisplayString(__props.errorMsg), 3), [
|
|
318
315
|
[vShow, __props.errorMsg]
|
|
319
316
|
]),
|
|
320
|
-
createElementVNode("div",
|
|
317
|
+
createElementVNode("div", _hoisted_12, toDisplayString(__props.multiple ? `Max ${__props.maxNumberOfFiles}` : "One") + " " + toDisplayString(acceptFileTypes.value) + " " + toDisplayString(__props.multiple ? "files" : "file") + " with size less than " + toDisplayString(unref(formatBytes)(__props.maxSizeInBytes)) + " " + toDisplayString(__props.multiple ? "each" : ""), 1)
|
|
321
318
|
], 10, _hoisted_1$3);
|
|
322
319
|
};
|
|
323
320
|
}
|
|
@@ -326,10 +323,9 @@ const pFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "dat
|
|
|
326
323
|
const _hoisted_1$2 = ["data-has-error"];
|
|
327
324
|
const _hoisted_2$2 = { class: "text-p-purple-60" };
|
|
328
325
|
const _hoisted_3$2 = { class: "flex flex-row" };
|
|
329
|
-
const _hoisted_4$2 =
|
|
330
|
-
const _hoisted_5$2 = ["
|
|
331
|
-
const _hoisted_6$2 =
|
|
332
|
-
const _hoisted_7$1 = {
|
|
326
|
+
const _hoisted_4$2 = ["onClick"];
|
|
327
|
+
const _hoisted_5$2 = ["title"];
|
|
328
|
+
const _hoisted_6$2 = {
|
|
333
329
|
key: 0,
|
|
334
330
|
class: "ml-auto fill-p-purple-60 pl-2",
|
|
335
331
|
src: _imports_0$2
|
|
@@ -541,7 +537,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
541
537
|
onClick: _cache[1] || (_cache[1] = //@ts-ignore
|
|
542
538
|
(...args) => unref(selectAll) && unref(selectAll)(...args))
|
|
543
539
|
}, " Select all filtered ", 2)),
|
|
544
|
-
|
|
540
|
+
_cache[6] || (_cache[6] = createElementVNode("span", { class: "px-1 leading-none" }, ".", -1)),
|
|
545
541
|
createElementVNode("a", {
|
|
546
542
|
class: normalizeClass([unref(selectedItems).length ? "cursor-pointer" : "pointer-events-none opacity-50"]),
|
|
547
543
|
onClick: _cache[2] || (_cache[2] = //@ts-ignore
|
|
@@ -611,11 +607,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
611
607
|
class: normalizeClass({ "bg-p-blue-20": index === 1 })
|
|
612
608
|
}, toDisplayString(str), 3);
|
|
613
609
|
}), 128))
|
|
614
|
-
], 8,
|
|
610
|
+
], 8, _hoisted_5$2)
|
|
615
611
|
]),
|
|
616
|
-
unref(isSelected)(unref(getValue)(row.index)) ? (openBlock(), createElementBlock("img",
|
|
612
|
+
unref(isSelected)(unref(getValue)(row.index)) ? (openBlock(), createElementBlock("img", _hoisted_6$2)) : createCommentVNode("", true)
|
|
617
613
|
], 2)
|
|
618
|
-
], 14,
|
|
614
|
+
], 14, _hoisted_4$2)), [
|
|
619
615
|
[_directive_close_popper, __props.closePopperOnSelect && !__props.multiple]
|
|
620
616
|
])
|
|
621
617
|
], 4);
|
|
@@ -878,28 +874,27 @@ const _imports_1 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewB
|
|
|
878
874
|
const _imports_2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1019_75842)'%3e%3cpath%20d='M11.8%2011.8933C11.75%2011.7716%2011.665%2011.6674%2011.5559%2011.5938C11.4467%2011.5203%2011.3183%2011.4807%2011.1866%2011.48H9.18664C9.16473%2011.4828%209.14248%2011.4812%209.12119%2011.4753C9.0999%2011.4694%209.07999%2011.4594%209.06262%2011.4457C9.04525%2011.4321%209.03077%2011.4151%209.02001%2011.3958C9.00926%2011.3765%209.00245%2011.3553%208.99997%2011.3333V1C8.99997%200.734784%208.89462%200.48043%208.70708%200.292893C8.51954%200.105357%208.26519%200%207.99997%200C7.73476%200%207.4804%200.105357%207.29287%200.292893C7.10533%200.48043%206.99997%200.734784%206.99997%201V11.3333C6.99997%2011.3775%206.98241%2011.4199%206.95116%2011.4512C6.9199%2011.4824%206.87751%2011.5%206.83331%2011.5H4.83331C4.70146%2011.5006%204.57273%2011.5402%204.46341%2011.6139C4.35409%2011.6876%204.26908%2011.7921%204.21913%2011.9141C4.16918%2012.0361%204.15653%2012.1702%204.18279%2012.2994C4.20904%2012.4286%204.27302%2012.5472%204.36664%2012.64L7.54664%2015.8267C7.60861%2015.8892%207.68235%2015.9387%207.76359%2015.9726C7.84483%2016.0064%207.93196%2016.0239%208.01997%2016.0239C8.10798%2016.0239%208.19512%2016.0064%208.27636%2015.9726C8.3576%2015.9387%208.43133%2015.8892%208.49331%2015.8267L11.6733%2012.64C11.7677%2012.5431%2011.8303%2012.4198%2011.853%2012.2864C11.8756%2012.153%2011.8571%2012.0159%2011.8%2011.8933Z'%20fill='%23424E6E'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1019_75842'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
879
875
|
const _imports_3 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1019_80100)'%3e%3cpath%20d='M11.8%2011.8933C11.75%2011.7716%2011.665%2011.6674%2011.5559%2011.5938C11.4467%2011.5203%2011.3183%2011.4807%2011.1866%2011.48H9.18664C9.16473%2011.4828%209.14248%2011.4812%209.12119%2011.4753C9.0999%2011.4694%209.07999%2011.4594%209.06262%2011.4457C9.04525%2011.4321%209.03077%2011.4151%209.02001%2011.3958C9.00926%2011.3765%209.00245%2011.3553%208.99997%2011.3333V1C8.99997%200.734784%208.89462%200.48043%208.70708%200.292893C8.51954%200.105357%208.26519%200%207.99997%200C7.73476%200%207.4804%200.105357%207.29287%200.292893C7.10533%200.48043%206.99997%200.734784%206.99997%201V11.3333C6.99997%2011.3775%206.98241%2011.4199%206.95116%2011.4512C6.9199%2011.4824%206.87751%2011.5%206.83331%2011.5H4.83331C4.70146%2011.5006%204.57273%2011.5402%204.46341%2011.6139C4.35409%2011.6876%204.26908%2011.7921%204.21913%2011.9141C4.16918%2012.0361%204.15653%2012.1702%204.18279%2012.2994C4.20904%2012.4286%204.27302%2012.5472%204.36664%2012.64L7.54664%2015.8267C7.60861%2015.8892%207.68235%2015.9387%207.76359%2015.9726C7.84483%2016.0064%207.93196%2016.0239%208.01997%2016.0239C8.10798%2016.0239%208.19512%2016.0064%208.27636%2015.9726C8.3576%2015.9387%208.43133%2015.8892%208.49331%2015.8267L11.6733%2012.64C11.7677%2012.5431%2011.8303%2012.4198%2011.853%2012.2864C11.8756%2012.153%2011.8571%2012.0159%2011.8%2011.8933Z'%20fill='%23323CEB'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1019_80100'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
880
876
|
const _hoisted_1 = { class: "flex items-center justify-between" };
|
|
881
|
-
const _hoisted_2 =
|
|
882
|
-
const _hoisted_3 = {
|
|
883
|
-
const _hoisted_4 = {
|
|
877
|
+
const _hoisted_2 = { class: "mt-2" };
|
|
878
|
+
const _hoisted_3 = {
|
|
884
879
|
key: 0,
|
|
885
880
|
src: _imports_0
|
|
886
881
|
};
|
|
887
|
-
const
|
|
882
|
+
const _hoisted_4 = {
|
|
888
883
|
key: 1,
|
|
889
884
|
src: _imports_1
|
|
890
885
|
};
|
|
891
|
-
const
|
|
886
|
+
const _hoisted_5 = {
|
|
892
887
|
key: 0,
|
|
893
888
|
src: _imports_2
|
|
894
889
|
};
|
|
895
|
-
const
|
|
890
|
+
const _hoisted_6 = {
|
|
896
891
|
key: 1,
|
|
897
892
|
src: _imports_3
|
|
898
893
|
};
|
|
899
894
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
900
895
|
return openBlock(), createElementBlock("div", null, [
|
|
901
896
|
createElementVNode("div", _hoisted_1, [
|
|
902
|
-
|
|
897
|
+
_cache[3] || (_cache[3] = createElementVNode("div", { class: "px-4 text-xs font-semibold text-p-gray-40" }, "SORT", -1)),
|
|
903
898
|
createElementVNode("div", {
|
|
904
899
|
class: normalizeClass([
|
|
905
900
|
"px-4 text-xs font-semibold text-primary",
|
|
@@ -908,7 +903,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
908
903
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", _ctx.SORTING_TYPES.NO_SORTING))
|
|
909
904
|
}, " Clear ", 2)
|
|
910
905
|
]),
|
|
911
|
-
createElementVNode("div",
|
|
906
|
+
createElementVNode("div", _hoisted_2, [
|
|
912
907
|
createElementVNode("div", {
|
|
913
908
|
class: "flex cursor-pointer items-center justify-between px-4 py-1 hover:bg-p-blue-10",
|
|
914
909
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:modelValue", _ctx.SORTING_TYPES.ASC))
|
|
@@ -917,7 +912,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
917
912
|
class: normalizeClass(["text-sm font-semibold text-p-purple-60", { "text-primary": _ctx.modelValue === _ctx.SORTING_TYPES.ASC }])
|
|
918
913
|
}, " Sort ascending ", 2),
|
|
919
914
|
createElementVNode("div", null, [
|
|
920
|
-
_ctx.modelValue === _ctx.SORTING_TYPES.NO_SORTING || _ctx.modelValue === _ctx.SORTING_TYPES.DESC ? (openBlock(), createElementBlock("img",
|
|
915
|
+
_ctx.modelValue === _ctx.SORTING_TYPES.NO_SORTING || _ctx.modelValue === _ctx.SORTING_TYPES.DESC ? (openBlock(), createElementBlock("img", _hoisted_3)) : (openBlock(), createElementBlock("img", _hoisted_4))
|
|
921
916
|
])
|
|
922
917
|
]),
|
|
923
918
|
createElementVNode("div", {
|
|
@@ -928,7 +923,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
928
923
|
class: normalizeClass(["text-sm font-semibold text-p-purple-60", { "text-primary": _ctx.modelValue === _ctx.SORTING_TYPES.DESC }])
|
|
929
924
|
}, " Sort descending ", 2),
|
|
930
925
|
createElementVNode("div", null, [
|
|
931
|
-
_ctx.modelValue === _ctx.SORTING_TYPES.NO_SORTING || _ctx.modelValue === _ctx.SORTING_TYPES.ASC ? (openBlock(), createElementBlock("img",
|
|
926
|
+
_ctx.modelValue === _ctx.SORTING_TYPES.NO_SORTING || _ctx.modelValue === _ctx.SORTING_TYPES.ASC ? (openBlock(), createElementBlock("img", _hoisted_5)) : (openBlock(), createElementBlock("img", _hoisted_6))
|
|
932
927
|
])
|
|
933
928
|
])
|
|
934
929
|
])
|
|
@@ -954,39 +949,39 @@ export {
|
|
|
954
949
|
default5 as PCheckbox,
|
|
955
950
|
default6 as PChips,
|
|
956
951
|
default7 as PCloseBtn,
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
952
|
+
_3 as PDatePicker,
|
|
953
|
+
default8 as PDrawer,
|
|
954
|
+
default9 as PDropdown,
|
|
960
955
|
a2 as PDropdownSelect,
|
|
961
956
|
pFileUpload as PFileUpload,
|
|
962
|
-
|
|
957
|
+
default10 as PFilterIcon,
|
|
963
958
|
a as PIcon,
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
959
|
+
default11 as PInfoIcon,
|
|
960
|
+
_4 as PInlineDatePicker,
|
|
961
|
+
default12 as PInput,
|
|
962
|
+
default13 as PInputNumber,
|
|
963
|
+
_5 as PInputPercent,
|
|
969
964
|
PInputSearch,
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
965
|
+
_6 as PLink,
|
|
966
|
+
default14 as PLoading,
|
|
967
|
+
default15 as PModal,
|
|
968
|
+
_7 as PPagination,
|
|
969
|
+
_8 as PPaginationInfo,
|
|
970
|
+
default16 as PProgressBar,
|
|
971
|
+
_9 as PRingLoader,
|
|
972
|
+
_10 as PSelect,
|
|
973
|
+
_11 as PSelectBtn,
|
|
979
974
|
_sfc_main$2 as PSelectList,
|
|
980
|
-
|
|
981
|
-
|
|
975
|
+
default17 as PSelectPill,
|
|
976
|
+
default18 as PSkeletonLoader,
|
|
982
977
|
pTable as PTable,
|
|
983
978
|
PTableHeaderCell,
|
|
984
|
-
|
|
979
|
+
_12 as PTableLoader,
|
|
985
980
|
pTableSort as PTableSort,
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
981
|
+
default19 as PTableTd,
|
|
982
|
+
_13 as PTabs,
|
|
983
|
+
default20 as PTextarea,
|
|
984
|
+
default21 as PToggle,
|
|
990
985
|
P_ICON_ALIASES,
|
|
991
986
|
SELECT_ARROW,
|
|
992
987
|
SELECT_BASE,
|
|
@@ -1004,7 +999,7 @@ export {
|
|
|
1004
999
|
getColorDeep,
|
|
1005
1000
|
getNextActiveElement,
|
|
1006
1001
|
getScreen,
|
|
1007
|
-
|
|
1002
|
+
default22 as inputClassesMixin,
|
|
1008
1003
|
isColsResizableInjectionKey,
|
|
1009
1004
|
isElement,
|
|
1010
1005
|
isFirstColFixedInjectionKey,
|
package/dist/es/p-btn.js
CHANGED
|
@@ -18,7 +18,7 @@ const BUTTON_TYPES = {
|
|
|
18
18
|
SECONDARY_GHOST_DARK: "secondary-ghost-dark"
|
|
19
19
|
};
|
|
20
20
|
const BUTTON_NATIVE_TYPES = ["button", "submit", "reset"];
|
|
21
|
-
const DEFAULT_CLASSES = `relative inline-block outline-none disabled:opacity-50 disabled:cursor-default disabled:pointer-events-none`;
|
|
21
|
+
const DEFAULT_CLASSES = `relative inline-block outline-none disabled:opacity-50 disabled:cursor-default disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-default aria-disabled:pointer-events-none`;
|
|
22
22
|
const BUTTON_CLASSES = {
|
|
23
23
|
[BUTTON_TYPES.PRIMARY]: "text-surface bg-primary hover:bg-accent active:bg-p-blue-80",
|
|
24
24
|
[BUTTON_TYPES.SECONDARY]: "bg-p-gray-20 hover:bg-p-gray-30 active:bg-p-gray-40",
|
|
@@ -136,13 +136,15 @@ const _sfc_main = defineComponent({
|
|
|
136
136
|
sanitizeUrl
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
|
-
const _hoisted_1 = ["href"];
|
|
139
|
+
const _hoisted_1 = ["href", "disabled", "aria-disabled"];
|
|
140
140
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
141
141
|
const _component_PRingLoader = resolveComponent("PRingLoader");
|
|
142
142
|
return typeof _ctx.to === "string" && _ctx.isExternalLink(_ctx.to) ? (openBlock(), createElementBlock("a", mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
143
143
|
href: _ctx.sanitizeUrl(_ctx.to),
|
|
144
144
|
target: "_blank",
|
|
145
|
-
class: _ctx.classes
|
|
145
|
+
class: _ctx.classes,
|
|
146
|
+
disabled: !!_ctx.$attrs.disabled ? true : null,
|
|
147
|
+
"aria-disabled": !!_ctx.$attrs.disabled
|
|
146
148
|
}), [
|
|
147
149
|
renderSlot(_ctx.$slots, "default")
|
|
148
150
|
], 16, _hoisted_1)) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.to ? "RouterLink" : "button"), mergeProps({
|
|
@@ -152,7 +154,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152
154
|
"aria-selected": _ctx.selected,
|
|
153
155
|
class: _ctx.classes
|
|
154
156
|
}, _ctx.$attrs, {
|
|
155
|
-
disabled: _ctx.$attrs.disabled || _ctx.loading
|
|
157
|
+
disabled: !!_ctx.$attrs.disabled || _ctx.loading ? true : null,
|
|
158
|
+
"aria-disabled": _ctx.$attrs.disabled
|
|
156
159
|
}), {
|
|
157
160
|
default: withCtx(() => [
|
|
158
161
|
createElementVNode("div", {
|
|
@@ -169,7 +172,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
169
172
|
}, null, 8, ["style", "color", "size"])) : createCommentVNode("", true)
|
|
170
173
|
]),
|
|
171
174
|
_: 3
|
|
172
|
-
}, 16, ["type", "to", "aria-selected", "class", "disabled"]));
|
|
175
|
+
}, 16, ["type", "to", "aria-selected", "class", "disabled", "aria-disabled"]));
|
|
173
176
|
}
|
|
174
177
|
const PBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
175
178
|
export {
|
package/dist/es/p-chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, renderSlot, Fragment, renderList, toDisplayString, withDirectives, vShow
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, renderSlot, Fragment, renderList, toDisplayString, withDirectives, vShow } from "vue";
|
|
2
2
|
import { isObject } from "lodash-es";
|
|
3
3
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -63,7 +63,6 @@ const _sfc_main = defineComponent({
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
const _withScopeId = (n) => (pushScopeId("data-v-cb511035"), n = n(), popScopeId(), n);
|
|
67
66
|
const _hoisted_1 = {
|
|
68
67
|
ref: "filterChipsRow",
|
|
69
68
|
class: "flex w-full items-center"
|
|
@@ -75,8 +74,7 @@ const _hoisted_3 = {
|
|
|
75
74
|
};
|
|
76
75
|
const _hoisted_4 = ["onClick"];
|
|
77
76
|
const _hoisted_5 = { class: "inline-block truncate" };
|
|
78
|
-
const _hoisted_6 =
|
|
79
|
-
const _hoisted_7 = { ref: "afterSlotContainer" };
|
|
77
|
+
const _hoisted_6 = { ref: "afterSlotContainer" };
|
|
80
78
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
81
79
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
82
80
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -90,7 +88,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
90
88
|
onClick: ($event) => _ctx.$emit("click:chip", item)
|
|
91
89
|
}, [
|
|
92
90
|
createElementVNode("div", _hoisted_5, toDisplayString(_ctx.getItemText(item)), 1),
|
|
93
|
-
|
|
91
|
+
_cache[1] || (_cache[1] = createElementVNode("i", { class: "bg-cross ml-2 inline-block h-1.5 w-1.5" }, null, -1))
|
|
94
92
|
], 8, _hoisted_4);
|
|
95
93
|
}), 128)),
|
|
96
94
|
withDirectives(createElementVNode("div", {
|
|
@@ -100,7 +98,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
100
98
|
[vShow, _ctx.items.length > _ctx.maxChipsDisplayed]
|
|
101
99
|
])
|
|
102
100
|
], 512),
|
|
103
|
-
createElementVNode("div",
|
|
101
|
+
createElementVNode("div", _hoisted_6, [
|
|
104
102
|
renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
105
103
|
], 512)
|
|
106
104
|
], 512);
|
package/dist/es/p-date-picker.js
CHANGED
|
@@ -1,140 +1,4 @@
|
|
|
1
|
-
import
|
|
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 = {
|
|
9
|
-
// The mask for the input
|
|
10
|
-
input: "DD-MMM-YYYY",
|
|
11
|
-
// The mask for the model value
|
|
12
|
-
data: "YYYY-MM-DD"
|
|
13
|
-
};
|
|
14
|
-
const _sfc_main = defineComponent({
|
|
15
|
-
name: "PDatePicker",
|
|
16
|
-
components: {
|
|
17
|
-
DatePicker
|
|
18
|
-
},
|
|
19
|
-
mixins: [inputClassesMixin],
|
|
20
|
-
inheritAttrs: false,
|
|
21
|
-
props: {
|
|
22
|
-
modelValue: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: ""
|
|
25
|
-
},
|
|
26
|
-
label: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: ""
|
|
29
|
-
},
|
|
30
|
-
errorMsg: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: ""
|
|
33
|
-
},
|
|
34
|
-
required: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: false
|
|
37
|
-
},
|
|
38
|
-
minDate: {
|
|
39
|
-
type: Date,
|
|
40
|
-
default: null
|
|
41
|
-
},
|
|
42
|
-
maxDate: {
|
|
43
|
-
type: Date,
|
|
44
|
-
default: null
|
|
45
|
-
},
|
|
46
|
-
timezone: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: ""
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
emits: ["update:modelValue"],
|
|
52
|
-
data() {
|
|
53
|
-
return {
|
|
54
|
-
// innerValue is a Date object
|
|
55
|
-
innerValue: null,
|
|
56
|
-
stopWatch: false,
|
|
57
|
-
selectAttribute
|
|
58
|
-
};
|
|
59
|
-
},
|
|
60
|
-
computed: {
|
|
61
|
-
displayPlaceholder() {
|
|
62
|
-
return isString(this.$attrs.placeholder) ? this.$attrs.placeholder : this.masks.input;
|
|
63
|
-
},
|
|
64
|
-
masks() {
|
|
65
|
-
return Object.assign(DEFAULT_MASKS, this.$attrs.masks);
|
|
66
|
-
},
|
|
67
|
-
attrs() {
|
|
68
|
-
const { class: classes, style, ...rest } = this.$attrs;
|
|
69
|
-
return rest;
|
|
70
|
-
},
|
|
71
|
-
style() {
|
|
72
|
-
return this.$attrs.style;
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
watch: {
|
|
76
|
-
modelValue: {
|
|
77
|
-
handler(nV) {
|
|
78
|
-
if (!this.stopWatch) {
|
|
79
|
-
this.innerValue = nV ? dayjs(nV, this.masks.data).toDate() : null;
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
immediate: true
|
|
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;
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
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)
|
|
102
|
-
}, [
|
|
103
|
-
renderSlot(_ctx.$slots, "label", {
|
|
104
|
-
label: _ctx.label,
|
|
105
|
-
labelClasses: _ctx.labelClasses
|
|
106
|
-
}, () => [
|
|
107
|
-
_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
108
|
-
key: 0,
|
|
109
|
-
class: normalizeClass(_ctx.labelClasses)
|
|
110
|
-
}, toDisplayString(_ctx.label), 3)) : createCommentVNode("", true)
|
|
111
|
-
]),
|
|
112
|
-
createVNode(_component_DatePicker, {
|
|
113
|
-
modelValue: _ctx.innerValue,
|
|
114
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.innerValue = $event),
|
|
115
|
-
"select-attribute": _ctx.selectAttribute,
|
|
116
|
-
popover: { visibility: "click", placement: "auto" },
|
|
117
|
-
"min-date": _ctx.minDate || null,
|
|
118
|
-
"max-date": _ctx.maxDate || null,
|
|
119
|
-
masks: _ctx.masks,
|
|
120
|
-
timezone: _ctx.timezone
|
|
121
|
-
}, {
|
|
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)
|
|
127
|
-
]),
|
|
128
|
-
_: 1
|
|
129
|
-
}, 8, ["modelValue", "select-attribute", "min-date", "max-date", "masks", "timezone"]),
|
|
130
|
-
withDirectives(createElementVNode("div", {
|
|
131
|
-
class: normalizeClass(_ctx.errorMsgClasses)
|
|
132
|
-
}, toDisplayString(_ctx.errorMsg), 3), [
|
|
133
|
-
[vShow, _ctx.errorMsg]
|
|
134
|
-
])
|
|
135
|
-
], 14, _hoisted_1);
|
|
136
|
-
}
|
|
137
|
-
const pDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
1
|
+
import { _ as _sfc_main } from "./chunks/p-date-picker.js";
|
|
138
2
|
export {
|
|
139
|
-
|
|
3
|
+
_sfc_main as default
|
|
140
4
|
};
|
package/dist/es/p-drawer.js
CHANGED
|
@@ -148,7 +148,7 @@ const __default__ = defineComponent({
|
|
|
148
148
|
});
|
|
149
149
|
const __injectCSSVars__ = () => {
|
|
150
150
|
useCssVars((_ctx) => ({
|
|
151
|
-
"
|
|
151
|
+
"508822d0": _ctx.width
|
|
152
152
|
}));
|
|
153
153
|
};
|
|
154
154
|
const __setup__ = __default__.setup;
|
|
@@ -178,7 +178,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
178
178
|
}, {
|
|
179
179
|
default: withCtx(() => [
|
|
180
180
|
withDirectives(createElementVNode("div", {
|
|
181
|
-
class: normalizeClass(["fixed bottom-0 left-0 right-0 top-0 bg-black
|
|
181
|
+
class: normalizeClass(["fixed bottom-0 left-0 right-0 top-0 bg-black/20", { "cursor-pointer": _ctx.enableClose }]),
|
|
182
182
|
style: normalizeStyle({ "z-index": _ctx.zIndex - 1 }),
|
|
183
183
|
tabindex: "-1",
|
|
184
184
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
@@ -265,7 +265,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
265
265
|
}, 8, ["enter-active-class", "leave-active-class", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"])
|
|
266
266
|
], 8, ["to"])) : createCommentVNode("", true);
|
|
267
267
|
}
|
|
268
|
-
const pDrawer = /* @__PURE__ */ _export_sfc(__default__, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
268
|
+
const pDrawer = /* @__PURE__ */ _export_sfc(__default__, [["render", _sfc_render], ["__scopeId", "data-v-95d3e794"]]);
|
|
269
269
|
export {
|
|
270
270
|
pDrawer as default
|
|
271
271
|
};
|
package/dist/es/p-info-icon.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString,
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
2
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
3
|
-
const _withScopeId = (n) => (pushScopeId("data-v-804e74f5"), n = n(), popScopeId(), n);
|
|
4
|
-
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "bg-info-circle-icon block h-3 w-3" }, null, -1));
|
|
5
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
4
|
...{
|
|
7
5
|
name: "PInfoIcon"
|
|
@@ -24,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
22
|
], true)
|
|
25
23
|
]),
|
|
26
24
|
default: withCtx(() => [
|
|
27
|
-
|
|
25
|
+
_cache[0] || (_cache[0] = createElementVNode("i", { class: "bg-info-circle-icon block h-3 w-3" }, null, -1))
|
|
28
26
|
]),
|
|
29
27
|
_: 3
|
|
30
28
|
}, 8, ["disabled"]);
|