@pequity/squirrel 8.4.4 → 8.4.5
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/README.md +2 -1
- package/dist/cjs/chunks/p-alert.js +3 -0
- package/dist/cjs/chunks/p-avatar.js +16 -0
- package/dist/cjs/chunks/p-btn.js +3 -0
- package/dist/cjs/chunks/p-card.js +4 -0
- package/dist/cjs/chunks/p-dropdown-select.js +34 -0
- package/dist/cjs/chunks/p-input-number.js +32 -0
- package/dist/cjs/chunks/p-input-percent.js +13 -2
- package/dist/cjs/chunks/p-input.js +28 -0
- package/dist/cjs/chunks/p-pagination-info.js +9 -5
- package/dist/cjs/chunks/p-pagination.js +23 -13
- package/dist/cjs/chunks/p-select-btn.js +2 -1
- package/dist/cjs/chunks/p-select.js +33 -0
- package/dist/cjs/chunks/p-table-loader.js +20 -0
- package/dist/cjs/chunks/p-tabs.js +12 -0
- package/dist/cjs/chunks/p-textarea.js +20 -0
- package/dist/cjs/index.js +40 -3
- package/dist/cjs/p-checkbox.js +8 -1
- package/dist/cjs/p-chips.js +17 -1
- package/dist/cjs/p-close-btn.js +6 -1
- package/dist/cjs/p-drawer.js +90 -2
- package/dist/cjs/p-dropdown.js +2 -1
- package/dist/cjs/p-input-search.js +13 -1
- package/dist/cjs/p-loading.js +1 -1
- package/dist/cjs/p-modal.js +82 -2
- package/dist/cjs/p-select-pill.js +36 -2
- package/dist/cjs/p-skeleton-loader.js +17 -1
- package/dist/cjs/p-table-filter-icon.js +4 -1
- package/dist/cjs/p-table-header-cell.js +29 -0
- package/dist/cjs/p-table-td.js +1 -1
- package/dist/cjs/p-toggle.js +22 -1
- package/dist/es/chunks/p-alert.js +3 -0
- package/dist/es/chunks/p-avatar.js +16 -0
- package/dist/es/chunks/p-btn.js +3 -0
- package/dist/es/chunks/p-card.js +4 -0
- package/dist/es/chunks/p-dropdown-select.js +34 -0
- package/dist/es/chunks/p-input-number.js +32 -0
- package/dist/es/chunks/p-input-percent.js +13 -2
- package/dist/es/chunks/p-input.js +28 -0
- package/dist/es/chunks/p-pagination-info.js +9 -5
- package/dist/es/chunks/p-pagination.js +24 -14
- package/dist/es/chunks/p-select-btn.js +2 -1
- package/dist/es/chunks/p-select.js +33 -0
- package/dist/es/chunks/p-table-loader.js +20 -0
- package/dist/es/chunks/p-tabs.js +12 -0
- package/dist/es/chunks/p-textarea.js +20 -0
- package/dist/es/index.js +40 -3
- package/dist/es/p-checkbox.js +8 -1
- package/dist/es/p-chips.js +17 -1
- package/dist/es/p-close-btn.js +6 -1
- package/dist/es/p-drawer.js +90 -2
- package/dist/es/p-dropdown.js +2 -1
- package/dist/es/p-input-search.js +13 -1
- package/dist/es/p-loading.js +1 -1
- package/dist/es/p-modal.js +82 -2
- package/dist/es/p-select-pill.js +36 -2
- package/dist/es/p-skeleton-loader.js +17 -1
- package/dist/es/p-table-filter-icon.js +4 -1
- package/dist/es/p-table-header-cell.js +29 -0
- package/dist/es/p-table-td.js +1 -1
- package/dist/es/p-toggle.js +22 -1
- package/dist/squirrel/components/p-action-bar/p-action-bar.vue.d.ts +14 -2
- package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +16 -3
- package/dist/squirrel/components/p-avatar/p-avatar.vue.d.ts +35 -0
- package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +18 -2
- package/dist/squirrel/components/p-card/p-card.vue.d.ts +20 -7
- package/dist/squirrel/components/p-checkbox/p-checkbox.vue.d.ts +25 -7
- package/dist/squirrel/components/p-chips/p-chips.vue.d.ts +24 -0
- package/dist/squirrel/components/p-close-btn/p-close-btn.vue.d.ts +13 -0
- package/dist/squirrel/components/p-date-picker/p-date-picker.vue.d.ts +16 -0
- package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +141 -3
- package/dist/squirrel/components/p-dropdown/p-dropdown.vue.d.ts +11 -2
- package/dist/squirrel/components/p-dropdown-select/p-dropdown-select.vue.d.ts +69 -1
- package/dist/squirrel/components/p-file-upload/p-file-upload.vue.d.ts +70 -6
- package/dist/squirrel/components/p-icon/p-icon.vue.d.ts +4 -0
- package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +11 -4
- package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +27 -7
- package/dist/squirrel/components/p-input/p-input.vue.d.ts +73 -8
- package/dist/squirrel/components/p-input-number/p-input-number.vue.d.ts +83 -12
- package/dist/squirrel/components/p-input-percent/p-input-percent.vue.d.ts +22 -2
- package/dist/squirrel/components/p-input-search/p-input-search.vue.d.ts +24 -0
- package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +185 -15
- package/dist/squirrel/components/p-pagination/p-pagination.vue.d.ts +22 -12
- package/dist/squirrel/components/p-pagination-info/p-pagination-info.vue.d.ts +16 -8
- package/dist/squirrel/components/p-progress-bar/p-progress-bar.vue.d.ts +20 -0
- package/dist/squirrel/components/p-ring-loader/p-ring-loader.vue.d.ts +10 -0
- package/dist/squirrel/components/p-select/p-select.vue.d.ts +76 -6
- package/dist/squirrel/components/p-select-btn/p-select-btn.vue.d.ts +67 -10
- package/dist/squirrel/components/p-select-list/p-select-list.vue.d.ts +1 -1
- package/dist/squirrel/components/p-select-pill/p-select-pill.vue.d.ts +72 -2
- package/dist/squirrel/components/p-skeleton-loader/p-skeleton-loader.vue.d.ts +40 -0
- package/dist/squirrel/components/p-steps/p-steps.vue.d.ts +12 -0
- package/dist/squirrel/components/p-table/p-table.vue.d.ts +32 -0
- package/dist/squirrel/components/p-table-header-cell/p-table-filter-icon.vue.d.ts +6 -0
- package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +56 -1
- package/dist/squirrel/components/p-table-loader/p-table-loader.vue.d.ts +40 -0
- package/dist/squirrel/components/p-table-sort/p-table-sort.vue.d.ts +12 -2
- package/dist/squirrel/components/p-table-td/p-table-td.vue.d.ts +12 -0
- package/dist/squirrel/components/p-tabs/p-tabs.vue.d.ts +33 -2
- package/dist/squirrel/components/p-tabs-pills/p-tabs-pills.vue.d.ts +22 -0
- package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +52 -8
- package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +50 -3
- package/dist/squirrel.css +68 -68
- package/package.json +15 -15
- package/squirrel/components/p-action-bar/p-action-bar.stories.js +5 -5
- package/squirrel/components/p-action-bar/p-action-bar.vue +30 -3
- package/squirrel/components/p-alert/p-alert.vue +24 -0
- package/squirrel/components/p-avatar/p-avatar.vue +28 -0
- package/squirrel/components/p-btn/p-btn.vue +35 -0
- package/squirrel/components/p-card/p-card.vue +24 -1
- package/squirrel/components/p-checkbox/p-checkbox.vue +23 -1
- package/squirrel/components/p-chips/p-chips.vue +24 -0
- package/squirrel/components/p-close-btn/p-close-btn.vue +15 -0
- package/squirrel/components/p-date-picker/p-date-picker.vue +23 -1
- package/squirrel/components/p-drawer/p-drawer.vue +95 -0
- package/squirrel/components/p-dropdown/p-dropdown.vue +12 -1
- package/squirrel/components/p-dropdown-select/p-dropdown-select.vue +41 -0
- package/squirrel/components/p-file-upload/p-file-upload.vue +58 -3
- package/squirrel/components/p-icon/p-icon.vue +16 -0
- package/squirrel/components/p-info-icon/p-info-icon.vue +19 -0
- package/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue +32 -0
- package/squirrel/components/p-input/p-input.vue +61 -1
- package/squirrel/components/p-input-number/p-input-number.vue +78 -1
- package/squirrel/components/p-input-percent/p-input-percent.vue +27 -3
- package/squirrel/components/p-input-search/p-input-search.vue +30 -2
- package/squirrel/components/p-link/p-link.vue +13 -0
- package/squirrel/components/p-loading/p-loading.vue +9 -2
- package/squirrel/components/p-modal/p-modal.vue +138 -2
- package/squirrel/components/p-pagination/p-pagination.vue +28 -8
- package/squirrel/components/p-pagination-info/p-pagination-info.vue +16 -4
- package/squirrel/components/p-progress-bar/p-progress-bar.vue +31 -4
- package/squirrel/components/p-ring-loader/p-ring-loader.vue +17 -0
- package/squirrel/components/p-select/p-select.vue +50 -1
- package/squirrel/components/p-select-btn/p-select-btn.vue +90 -2
- package/squirrel/components/p-select-list/p-select-list.vue +7 -0
- package/squirrel/components/p-select-pill/p-select-pill.vue +52 -2
- package/squirrel/components/p-skeleton-loader/p-skeleton-loader.vue +24 -0
- package/squirrel/components/p-steps/p-steps.vue +25 -0
- package/squirrel/components/p-table/p-table.vue +39 -0
- package/squirrel/components/p-table-header-cell/p-table-filter-icon.vue +9 -0
- package/squirrel/components/p-table-header-cell/p-table-header-cell.vue +36 -0
- package/squirrel/components/p-table-loader/p-table-loader.vue +28 -0
- package/squirrel/components/p-table-sort/p-table-sort.vue +19 -1
- package/squirrel/components/p-table-td/p-table-td.vue +20 -0
- package/squirrel/components/p-tabs/p-tabs.stories.js +2 -2
- package/squirrel/components/p-tabs/p-tabs.vue +33 -1
- package/squirrel/components/p-tabs-pills/p-tabs-pills.vue +33 -0
- package/squirrel/components/p-textarea/p-textarea.vue +43 -1
- package/squirrel/components/p-toggle/p-toggle.vue +44 -1
- package/squirrel/assets/pagination-left-icon.svg +0 -5
- package/squirrel/assets/pagination-right-icon.svg +0 -5
package/dist/es/p-dropdown.js
CHANGED
|
@@ -23,6 +23,7 @@ const _sfc_main = defineComponent({
|
|
|
23
23
|
},
|
|
24
24
|
/**
|
|
25
25
|
* Enables closing the dropdown with the Escape key.
|
|
26
|
+
* When true, pressing Escape will close the dropdown.
|
|
26
27
|
*/
|
|
27
28
|
enableCloseOnEsc: {
|
|
28
29
|
type: Boolean,
|
|
@@ -30,7 +31,7 @@ const _sfc_main = defineComponent({
|
|
|
30
31
|
},
|
|
31
32
|
/**
|
|
32
33
|
* v-tooltip wraps the popper trigger with a div that has `display: inline-block` set by default.
|
|
33
|
-
* This prop is used to override the CSS style of that wrapper div
|
|
34
|
+
* This prop is used to override the CSS style of that wrapper div.
|
|
34
35
|
*/
|
|
35
36
|
triggerStyle: {
|
|
36
37
|
type: Object,
|
|
@@ -10,10 +10,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
},
|
|
11
11
|
__name: "p-input-search",
|
|
12
12
|
props: {
|
|
13
|
+
/**
|
|
14
|
+
* The search query value (v-model).
|
|
15
|
+
* Controls the input field content and visibility of the clear button.
|
|
16
|
+
*/
|
|
13
17
|
modelValue: {
|
|
14
18
|
type: String,
|
|
15
19
|
default: ""
|
|
16
20
|
},
|
|
21
|
+
/**
|
|
22
|
+
* The size of the search input.
|
|
23
|
+
* Affects the overall dimensions and icon positioning.
|
|
24
|
+
*/
|
|
17
25
|
size: {
|
|
18
26
|
type: String,
|
|
19
27
|
default: "md",
|
|
@@ -21,6 +29,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
29
|
return SIZES.includes(value);
|
|
22
30
|
}
|
|
23
31
|
},
|
|
32
|
+
/**
|
|
33
|
+
* Whether to show the enter key icon when the input is focused.
|
|
34
|
+
* Provides visual feedback that pressing enter will trigger a search.
|
|
35
|
+
*/
|
|
24
36
|
showEnterIcon: {
|
|
25
37
|
type: Boolean,
|
|
26
38
|
default: false
|
|
@@ -114,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
114
126
|
};
|
|
115
127
|
}
|
|
116
128
|
});
|
|
117
|
-
const PInputSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
129
|
+
const PInputSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ce44730a"]]);
|
|
118
130
|
export {
|
|
119
131
|
PInputSearch as default
|
|
120
132
|
};
|
package/dist/es/p-loading.js
CHANGED
|
@@ -115,7 +115,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
const pLoading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
118
|
+
const pLoading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7e116004"]]);
|
|
119
119
|
export {
|
|
120
120
|
pLoading as default
|
|
121
121
|
};
|
package/dist/es/p-modal.js
CHANGED
|
@@ -25,82 +25,162 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
},
|
|
26
26
|
__name: "p-modal",
|
|
27
27
|
props: {
|
|
28
|
+
/**
|
|
29
|
+
* Unique name for the modal when using the modal service.
|
|
30
|
+
* Used for programmatic control of the modal.
|
|
31
|
+
*/
|
|
28
32
|
name: {
|
|
29
33
|
type: String,
|
|
30
34
|
default: ""
|
|
31
35
|
},
|
|
36
|
+
/**
|
|
37
|
+
* Title displayed in the modal header.
|
|
38
|
+
* Used for accessibility and visual identification.
|
|
39
|
+
*/
|
|
32
40
|
title: {
|
|
33
41
|
type: String,
|
|
34
42
|
default: ""
|
|
35
43
|
},
|
|
44
|
+
/**
|
|
45
|
+
* Base z-index for the modal.
|
|
46
|
+
* Higher values ensure the modal appears above other content.
|
|
47
|
+
*/
|
|
36
48
|
baseZindex: {
|
|
37
49
|
type: Number,
|
|
38
50
|
default: 1051
|
|
39
51
|
},
|
|
52
|
+
/**
|
|
53
|
+
* CSS classes for the backdrop element.
|
|
54
|
+
* Controls the appearance of the modal overlay.
|
|
55
|
+
*/
|
|
40
56
|
bgClass: {
|
|
41
57
|
type: [String, Object, Array],
|
|
42
58
|
default: "fixed bottom-0 left-0 right-0 top-0 bg-black/20"
|
|
43
59
|
},
|
|
60
|
+
/**
|
|
61
|
+
* CSS classes for the modal wrapper element.
|
|
62
|
+
* Controls the positioning and layout of the modal container.
|
|
63
|
+
*/
|
|
44
64
|
wrapperClass: {
|
|
45
65
|
type: [String, Object, Array],
|
|
46
66
|
default: "fixed bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center overflow-y-auto overflow-x-hidden outline-none"
|
|
47
67
|
},
|
|
68
|
+
/**
|
|
69
|
+
* Base CSS classes for the modal content.
|
|
70
|
+
* Controls the appearance of the modal dialog itself.
|
|
71
|
+
*/
|
|
48
72
|
modalBaseClass: {
|
|
49
73
|
type: [String, Object, Array],
|
|
50
74
|
default: "pm relative flex flex-col rounded-2xl pb-6 cursor-default bg-surface shadow-xl"
|
|
51
75
|
},
|
|
76
|
+
/**
|
|
77
|
+
* Additional CSS classes for the modal content.
|
|
78
|
+
* Merged with modalBaseClass for custom styling.
|
|
79
|
+
*/
|
|
52
80
|
modalClass: {
|
|
53
81
|
type: [String, Object, Array],
|
|
54
82
|
default: ""
|
|
55
83
|
},
|
|
84
|
+
/**
|
|
85
|
+
* Inline styles for the modal content.
|
|
86
|
+
* Applied directly to the modal element.
|
|
87
|
+
*/
|
|
56
88
|
modalStyle: {
|
|
57
89
|
type: [String, Object, Array],
|
|
58
90
|
default: ""
|
|
59
91
|
},
|
|
92
|
+
/**
|
|
93
|
+
* CSS class for the modal entrance animation.
|
|
94
|
+
* Controls how the modal appears.
|
|
95
|
+
*/
|
|
60
96
|
inClass: {
|
|
61
97
|
type: String,
|
|
62
98
|
default: "slideInTop"
|
|
63
99
|
},
|
|
100
|
+
/**
|
|
101
|
+
* CSS class for the modal exit animation.
|
|
102
|
+
* Controls how the modal disappears.
|
|
103
|
+
*/
|
|
64
104
|
outClass: {
|
|
65
105
|
type: String,
|
|
66
106
|
default: "slideOutTop"
|
|
67
107
|
},
|
|
108
|
+
/**
|
|
109
|
+
* CSS class for the backdrop entrance animation.
|
|
110
|
+
* Controls how the backdrop appears.
|
|
111
|
+
*/
|
|
68
112
|
bgInClass: {
|
|
69
113
|
type: String,
|
|
70
114
|
default: "fadeIn"
|
|
71
115
|
},
|
|
116
|
+
/**
|
|
117
|
+
* CSS class for the backdrop exit animation.
|
|
118
|
+
* Controls how the backdrop disappears.
|
|
119
|
+
*/
|
|
72
120
|
bgOutClass: {
|
|
73
121
|
type: String,
|
|
74
122
|
default: "fadeOut"
|
|
75
123
|
},
|
|
124
|
+
/**
|
|
125
|
+
* Target element to append the modal to.
|
|
126
|
+
* Usually 'body' for proper z-index stacking.
|
|
127
|
+
*/
|
|
76
128
|
appendTo: {
|
|
77
129
|
type: String,
|
|
78
130
|
default: "body"
|
|
79
131
|
},
|
|
132
|
+
/**
|
|
133
|
+
* Whether the modal should be mounted immediately.
|
|
134
|
+
* Useful for modals that are always present in the DOM.
|
|
135
|
+
*/
|
|
80
136
|
live: {
|
|
81
137
|
type: Boolean,
|
|
82
138
|
default: false
|
|
83
139
|
},
|
|
140
|
+
/**
|
|
141
|
+
* Whether the modal can be closed by user interaction.
|
|
142
|
+
* Controls close button visibility and backdrop click behavior.
|
|
143
|
+
*/
|
|
84
144
|
enableClose: {
|
|
85
145
|
type: Boolean,
|
|
86
146
|
default: true
|
|
87
147
|
},
|
|
148
|
+
/**
|
|
149
|
+
* Controls the visibility of the modal (v-model).
|
|
150
|
+
* Supports two-way binding for modal state.
|
|
151
|
+
*/
|
|
88
152
|
modelValue: {
|
|
89
153
|
type: Boolean,
|
|
90
154
|
default: false
|
|
91
155
|
},
|
|
156
|
+
/**
|
|
157
|
+
* Accessibility label for the close button.
|
|
158
|
+
* Used by screen readers for better accessibility.
|
|
159
|
+
*/
|
|
92
160
|
closeLabel: {
|
|
93
161
|
type: String,
|
|
94
162
|
default: "Close"
|
|
95
163
|
},
|
|
164
|
+
/**
|
|
165
|
+
* Whether the modal content is disabled.
|
|
166
|
+
* Prevents user interaction with modal content.
|
|
167
|
+
*/
|
|
96
168
|
disabled: {
|
|
97
169
|
type: Boolean,
|
|
98
170
|
default: false
|
|
99
171
|
},
|
|
172
|
+
/**
|
|
173
|
+
* Error message to display in the modal.
|
|
174
|
+
* Shows an error alert above the modal content.
|
|
175
|
+
*/
|
|
100
176
|
errorMsg: {
|
|
101
177
|
type: String,
|
|
102
178
|
default: ""
|
|
103
179
|
},
|
|
180
|
+
/**
|
|
181
|
+
* Maximum width of the modal.
|
|
182
|
+
* Controls the responsive behavior of the modal.
|
|
183
|
+
*/
|
|
104
184
|
maxWidth: {
|
|
105
185
|
type: String,
|
|
106
186
|
default: "500px"
|
|
@@ -109,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
189
|
emits: ["before-open", "opening", "opened", "before-close", "closing", "closed", "update:modelValue", "click:overlay"],
|
|
110
190
|
setup(__props, { emit: __emit }) {
|
|
111
191
|
useCssVars((_ctx) => ({
|
|
112
|
-
"
|
|
192
|
+
"5951a2a6": __props.maxWidth
|
|
113
193
|
}));
|
|
114
194
|
let animatingZIndex = 0;
|
|
115
195
|
const emit = __emit;
|
|
@@ -364,7 +444,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
364
444
|
};
|
|
365
445
|
}
|
|
366
446
|
});
|
|
367
|
-
const pModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
447
|
+
const pModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bb3daa48"]]);
|
|
368
448
|
export {
|
|
369
449
|
pModal as default
|
|
370
450
|
};
|
package/dist/es/p-select-pill.js
CHANGED
|
@@ -14,26 +14,51 @@ const getOffsetValues = (container) => {
|
|
|
14
14
|
const _sfc_main = defineComponent({
|
|
15
15
|
name: "PSelectPill",
|
|
16
16
|
props: {
|
|
17
|
+
/**
|
|
18
|
+
* The currently selected value (v-model).
|
|
19
|
+
* Should match one of the item values in the items array.
|
|
20
|
+
*/
|
|
17
21
|
modelValue: {
|
|
18
22
|
type: [String, Number],
|
|
19
23
|
default: ""
|
|
20
24
|
},
|
|
25
|
+
/**
|
|
26
|
+
* Array of options to display as pills.
|
|
27
|
+
* Each option should have text, value, and optional subtext and disabled properties.
|
|
28
|
+
*/
|
|
21
29
|
items: {
|
|
22
30
|
type: Array,
|
|
23
31
|
default: () => []
|
|
24
32
|
},
|
|
33
|
+
/**
|
|
34
|
+
* Property name to use as the item display text.
|
|
35
|
+
* Used for button label content.
|
|
36
|
+
*/
|
|
25
37
|
itemText: {
|
|
26
38
|
type: String,
|
|
27
39
|
default: "text"
|
|
28
40
|
},
|
|
41
|
+
/**
|
|
42
|
+
* Property name to use as the item subtext.
|
|
43
|
+
* Displayed below the main text when provided.
|
|
44
|
+
*/
|
|
29
45
|
itemSubtext: {
|
|
30
46
|
type: String,
|
|
31
47
|
default: "subtext"
|
|
32
48
|
},
|
|
49
|
+
/**
|
|
50
|
+
* Property name to use as the item value.
|
|
51
|
+
* Used for selection comparison and v-model binding.
|
|
52
|
+
*/
|
|
33
53
|
itemValue: {
|
|
34
54
|
type: [String, Number],
|
|
35
55
|
default: "value"
|
|
36
56
|
},
|
|
57
|
+
/**
|
|
58
|
+
* The size of the pill buttons.
|
|
59
|
+
* Valid values: 'sm', 'md', 'lg'
|
|
60
|
+
* @values sm, md, lg
|
|
61
|
+
*/
|
|
37
62
|
size: {
|
|
38
63
|
type: String,
|
|
39
64
|
default: "md",
|
|
@@ -42,7 +67,13 @@ const _sfc_main = defineComponent({
|
|
|
42
67
|
}
|
|
43
68
|
}
|
|
44
69
|
},
|
|
45
|
-
emits:
|
|
70
|
+
emits: {
|
|
71
|
+
/**
|
|
72
|
+
* Emitted when the selected value changes.
|
|
73
|
+
* @param {string | number} value - The new selected value
|
|
74
|
+
*/
|
|
75
|
+
"update:modelValue": (value) => true
|
|
76
|
+
},
|
|
46
77
|
data() {
|
|
47
78
|
return {
|
|
48
79
|
SIZES,
|
|
@@ -69,7 +100,10 @@ const _sfc_main = defineComponent({
|
|
|
69
100
|
methods: {
|
|
70
101
|
click(e, option) {
|
|
71
102
|
if (!option.disabled) {
|
|
72
|
-
|
|
103
|
+
const value = option[this.itemValue];
|
|
104
|
+
if (typeof value === "string" || typeof value === "number") {
|
|
105
|
+
this.$emit("update:modelValue", value);
|
|
106
|
+
}
|
|
73
107
|
}
|
|
74
108
|
},
|
|
75
109
|
setPillStyle() {
|
|
@@ -17,6 +17,10 @@ const hexToRgb = (hex) => `${hex.match(/\w\w/g)?.map((x) => +`0x${x}`)}`;
|
|
|
17
17
|
const _sfc_main = defineComponent({
|
|
18
18
|
name: "PSkeletonLoader",
|
|
19
19
|
props: {
|
|
20
|
+
/**
|
|
21
|
+
* The shape type of the skeleton loader.
|
|
22
|
+
* Determines the border radius and overall appearance.
|
|
23
|
+
*/
|
|
20
24
|
type: {
|
|
21
25
|
type: String,
|
|
22
26
|
default: LOADER_TYPES.rectangle,
|
|
@@ -24,14 +28,26 @@ const _sfc_main = defineComponent({
|
|
|
24
28
|
return Object.values(LOADER_TYPES).includes(value);
|
|
25
29
|
}
|
|
26
30
|
},
|
|
31
|
+
/**
|
|
32
|
+
* The background CSS class for the skeleton loader.
|
|
33
|
+
* Controls the base color of the loading placeholder.
|
|
34
|
+
*/
|
|
27
35
|
bgClass: {
|
|
28
36
|
type: String,
|
|
29
37
|
default: "bg-p-gray-30"
|
|
30
38
|
},
|
|
39
|
+
/**
|
|
40
|
+
* Additional CSS classes to apply to the loader.
|
|
41
|
+
* Allows for custom styling beyond the default type-based classes.
|
|
42
|
+
*/
|
|
31
43
|
cssClass: {
|
|
32
44
|
type: String,
|
|
33
45
|
default: ""
|
|
34
46
|
},
|
|
47
|
+
/**
|
|
48
|
+
* The color of the shimmer effect in hex format.
|
|
49
|
+
* Controls the color of the animated shimmer overlay.
|
|
50
|
+
*/
|
|
35
51
|
shimmerColor: {
|
|
36
52
|
type: String,
|
|
37
53
|
default: SHIMMER_COLOR
|
|
@@ -65,7 +81,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65
81
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
66
82
|
], 2);
|
|
67
83
|
}
|
|
68
|
-
const PSkeletonLoader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
84
|
+
const PSkeletonLoader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1beaf57b"]]);
|
|
69
85
|
export {
|
|
70
86
|
PSkeletonLoader as default
|
|
71
87
|
};
|
|
@@ -7,6 +7,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7
7
|
},
|
|
8
8
|
__name: "p-table-filter-icon",
|
|
9
9
|
props: {
|
|
10
|
+
/**
|
|
11
|
+
* Whether the filter icon is active (filtered state).
|
|
12
|
+
*/
|
|
10
13
|
active: {
|
|
11
14
|
type: Boolean,
|
|
12
15
|
default: false
|
|
@@ -20,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
23
|
};
|
|
21
24
|
}
|
|
22
25
|
});
|
|
23
|
-
const PTableFilterIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
26
|
+
const PTableFilterIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5c047926"]]);
|
|
24
27
|
export {
|
|
25
28
|
PTableFilterIcon as default
|
|
26
29
|
};
|
|
@@ -10,31 +10,60 @@ const _sfc_main = defineComponent({
|
|
|
10
10
|
PInfoIcon: _sfc_main$1
|
|
11
11
|
},
|
|
12
12
|
props: {
|
|
13
|
+
/**
|
|
14
|
+
* The text content to display in the header cell.
|
|
15
|
+
* Also used as the title attribute for accessibility.
|
|
16
|
+
*/
|
|
13
17
|
text: {
|
|
14
18
|
type: String,
|
|
15
19
|
default: ""
|
|
16
20
|
},
|
|
21
|
+
/**
|
|
22
|
+
* CSS classes to apply to the text element.
|
|
23
|
+
* Can be a string, object, or array for flexible styling.
|
|
24
|
+
*/
|
|
17
25
|
textClass: {
|
|
18
26
|
type: [String, Object, Array],
|
|
19
27
|
default: "text-left"
|
|
20
28
|
},
|
|
29
|
+
/**
|
|
30
|
+
* Whether the filter icon is in an active state.
|
|
31
|
+
* Controls the visual appearance of the filter icon and text color.
|
|
32
|
+
*/
|
|
21
33
|
filterActive: {
|
|
22
34
|
type: Boolean,
|
|
23
35
|
default: false
|
|
24
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* Whether to show the filter icon.
|
|
39
|
+
* When false, the filter icon is hidden regardless of other states.
|
|
40
|
+
*/
|
|
25
41
|
showFilterIcon: {
|
|
26
42
|
type: Boolean,
|
|
27
43
|
default: false
|
|
28
44
|
},
|
|
45
|
+
/**
|
|
46
|
+
* Tooltip text to display when hovering over the info icon.
|
|
47
|
+
* When provided, shows an info icon with the tooltip content.
|
|
48
|
+
*/
|
|
29
49
|
tooltipText: {
|
|
30
50
|
type: String,
|
|
31
51
|
default: ""
|
|
32
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* Custom text color to apply to the header text.
|
|
55
|
+
* Overrides the default text color when provided.
|
|
56
|
+
*/
|
|
33
57
|
textColor: {
|
|
34
58
|
type: String,
|
|
35
59
|
default: ""
|
|
36
60
|
}
|
|
37
61
|
},
|
|
62
|
+
/**
|
|
63
|
+
* Emitted when the filter icon is clicked.
|
|
64
|
+
* @param {Event} event - The click event
|
|
65
|
+
* @param {boolean} filterActive - The current filter active state
|
|
66
|
+
*/
|
|
38
67
|
emits: ["click-filter-icon"],
|
|
39
68
|
data() {
|
|
40
69
|
return {
|
package/dist/es/p-table-td.js
CHANGED
|
@@ -81,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
|
-
const PTableTd = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
84
|
+
const PTableTd = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9a0c95c7"]]);
|
|
85
85
|
export {
|
|
86
86
|
PTableTd as default
|
|
87
87
|
};
|
package/dist/es/p-toggle.js
CHANGED
|
@@ -34,22 +34,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
},
|
|
35
35
|
__name: "p-toggle",
|
|
36
36
|
props: {
|
|
37
|
+
/**
|
|
38
|
+
* The current toggle state (v-model).
|
|
39
|
+
* Supports two-way binding for form inputs.
|
|
40
|
+
*/
|
|
37
41
|
modelValue: {
|
|
38
42
|
type: Boolean,
|
|
39
43
|
default: false
|
|
40
44
|
},
|
|
45
|
+
/**
|
|
46
|
+
* Text label for the toggle switch.
|
|
47
|
+
* If not provided, you can use the label slot instead.
|
|
48
|
+
*/
|
|
41
49
|
label: {
|
|
42
50
|
type: String,
|
|
43
51
|
default: ""
|
|
44
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* Error message to display below the toggle.
|
|
55
|
+
* When provided, the toggle will show error styling.
|
|
56
|
+
*/
|
|
45
57
|
errorMsg: {
|
|
46
58
|
type: String,
|
|
47
59
|
default: ""
|
|
48
60
|
},
|
|
61
|
+
/**
|
|
62
|
+
* Whether the toggle is required.
|
|
63
|
+
* Adds required attribute and visual indicator.
|
|
64
|
+
*/
|
|
49
65
|
required: {
|
|
50
66
|
type: Boolean,
|
|
51
67
|
default: false
|
|
52
68
|
},
|
|
69
|
+
/**
|
|
70
|
+
* The size of the toggle switch.
|
|
71
|
+
* Valid values: 'sm', 'md', 'lg'
|
|
72
|
+
* @values sm, md, lg
|
|
73
|
+
*/
|
|
53
74
|
size: {
|
|
54
75
|
type: String,
|
|
55
76
|
default: "md",
|
|
@@ -122,7 +143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
143
|
};
|
|
123
144
|
}
|
|
124
145
|
});
|
|
125
|
-
const pToggle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
146
|
+
const pToggle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-af725f56"]]);
|
|
126
147
|
export {
|
|
127
148
|
pToggle as default
|
|
128
149
|
};
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import { type PActionBarAction } from './p-action-bar.types';
|
|
2
2
|
type Props = {
|
|
3
|
+
/**
|
|
4
|
+
* Controls visibility of the action bar.
|
|
5
|
+
* When true, the action bar is displayed at the bottom of the screen.
|
|
6
|
+
*/
|
|
3
7
|
show: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The main text displayed in the action bar.
|
|
10
|
+
* Provides context for the available actions.
|
|
11
|
+
*/
|
|
4
12
|
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* Array of action objects to be rendered as buttons or dropdowns.
|
|
15
|
+
* Each action can have an icon, label, and optional sub-actions.
|
|
16
|
+
*/
|
|
5
17
|
actions: PActionBarAction[];
|
|
6
18
|
};
|
|
7
19
|
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
20
|
"click:dismiss": () => any;
|
|
9
|
-
"click:action": (
|
|
21
|
+
"click:action": (name: string | undefined) => any;
|
|
10
22
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
11
23
|
"onClick:dismiss"?: (() => any) | undefined;
|
|
12
|
-
"onClick:action"?: ((
|
|
24
|
+
"onClick:action"?: ((name: string | undefined) => any) | undefined;
|
|
13
25
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
26
|
export default _default;
|
|
@@ -18,12 +18,18 @@ declare const ALERT_TYPES: {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
21
|
+
/**
|
|
22
|
+
* The type of the alert which determines its appearance and icon
|
|
23
|
+
*/
|
|
21
24
|
type: {
|
|
22
25
|
type: PropType<keyof typeof ALERT_TYPES>;
|
|
23
26
|
default: string;
|
|
24
27
|
validator(value: keyof typeof ALERT_TYPES): boolean;
|
|
25
28
|
};
|
|
26
29
|
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
/**
|
|
31
|
+
* The type of the alert which determines its appearance and icon
|
|
32
|
+
*/
|
|
27
33
|
type: {
|
|
28
34
|
type: PropType<keyof typeof ALERT_TYPES>;
|
|
29
35
|
default: string;
|
|
@@ -32,9 +38,16 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
32
38
|
}>> & Readonly<{}>, {
|
|
33
39
|
type: "info" | "error" | "success" | "warning";
|
|
34
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Custom icon slot - use this to override the default alert type icon.
|
|
43
|
+
* If not provided, a default icon will be shown based on the alert type.
|
|
44
|
+
*/
|
|
45
|
+
icon?: () => unknown;
|
|
46
|
+
/**
|
|
47
|
+
* Default slot - the main content of the alert message.
|
|
48
|
+
* This should contain the text or HTML to display in the alert.
|
|
49
|
+
*/
|
|
50
|
+
default?: () => unknown;
|
|
38
51
|
}>;
|
|
39
52
|
export default _default;
|
|
40
53
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,46 +1,81 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Available avatar shapes
|
|
4
|
+
*/
|
|
2
5
|
declare const SHAPES: readonly ["rectangle", "circle"];
|
|
3
6
|
type Shape = (typeof SHAPES)[number];
|
|
4
7
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
/**
|
|
9
|
+
* The shape of the avatar
|
|
10
|
+
*/
|
|
5
11
|
shape: {
|
|
6
12
|
type: PropType<Shape>;
|
|
7
13
|
default: string;
|
|
8
14
|
validator: (value: Shape) => boolean;
|
|
9
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* URL of the image to display
|
|
18
|
+
*/
|
|
10
19
|
imageSrc: {
|
|
11
20
|
type: StringConstructor;
|
|
12
21
|
default: string;
|
|
13
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Text to display when image is not available
|
|
25
|
+
* Also used as the alt text for the image
|
|
26
|
+
*/
|
|
14
27
|
label: {
|
|
15
28
|
type: StringConstructor;
|
|
16
29
|
required: true;
|
|
17
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Additional CSS classes to apply to the image
|
|
33
|
+
*/
|
|
18
34
|
imageClass: {
|
|
19
35
|
type: StringConstructor;
|
|
20
36
|
default: string;
|
|
21
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* Additional CSS classes to apply to the label container
|
|
40
|
+
*/
|
|
22
41
|
labelClass: {
|
|
23
42
|
type: StringConstructor;
|
|
24
43
|
default: string;
|
|
25
44
|
};
|
|
26
45
|
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
/**
|
|
47
|
+
* The shape of the avatar
|
|
48
|
+
*/
|
|
27
49
|
shape: {
|
|
28
50
|
type: PropType<Shape>;
|
|
29
51
|
default: string;
|
|
30
52
|
validator: (value: Shape) => boolean;
|
|
31
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* URL of the image to display
|
|
56
|
+
*/
|
|
32
57
|
imageSrc: {
|
|
33
58
|
type: StringConstructor;
|
|
34
59
|
default: string;
|
|
35
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* Text to display when image is not available
|
|
63
|
+
* Also used as the alt text for the image
|
|
64
|
+
*/
|
|
36
65
|
label: {
|
|
37
66
|
type: StringConstructor;
|
|
38
67
|
required: true;
|
|
39
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* Additional CSS classes to apply to the image
|
|
71
|
+
*/
|
|
40
72
|
imageClass: {
|
|
41
73
|
type: StringConstructor;
|
|
42
74
|
default: string;
|
|
43
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* Additional CSS classes to apply to the label container
|
|
78
|
+
*/
|
|
44
79
|
labelClass: {
|
|
45
80
|
type: StringConstructor;
|
|
46
81
|
default: string;
|