@pequity/squirrel 6.0.11 → 6.0.12
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-info-icon.js +37 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/p-icon.js +6 -1
- package/dist/cjs/p-info-icon.js +2 -33
- package/dist/cjs/p-input-number.js +2 -2
- package/dist/cjs/p-table-header-cell.js +2 -2
- package/dist/es/chunks/p-info-icon.js +38 -0
- package/dist/es/index.js +46 -46
- package/dist/es/p-icon.js +6 -1
- package/dist/es/p-info-icon.js +2 -33
- package/dist/es/p-input-number.js +2 -2
- package/dist/es/p-table-header-cell.js +2 -2
- package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +1 -1
- package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +5 -5
- package/dist/squirrel/components/p-icon/p-icon.types.d.ts +5 -0
- package/dist/squirrel.css +10 -10
- package/package.json +15 -15
- package/squirrel/components/p-dropdown/p-dropdown.vue +2 -2
- package/squirrel/components/p-icon/p-icon.types.ts +5 -0
- package/squirrel/components/p-info-icon/p-info-icon.spec.js +3 -2
- package/squirrel/components/p-info-icon/p-info-icon.vue +3 -7
- package/squirrel/components/p-table-header-cell/p-table-header-cell.spec.js +6 -4
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const pIcon_vue_vue_type_script_setup_true_lang = require("./p-icon.js");
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
5
|
+
...{
|
|
6
|
+
name: "PInfoIcon"
|
|
7
|
+
},
|
|
8
|
+
__name: "p-info-icon",
|
|
9
|
+
props: {
|
|
10
|
+
text: { default: null }
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
const _component_VTooltip = vue.resolveComponent("VTooltip");
|
|
15
|
+
return vue.openBlock(), vue.createBlock(_component_VTooltip, {
|
|
16
|
+
"popper-triggers": ["hover"],
|
|
17
|
+
delay: { show: 750, hide: 0 },
|
|
18
|
+
disabled: !_ctx.$slots.default && !_ctx.text
|
|
19
|
+
}, {
|
|
20
|
+
popper: vue.withCtx(() => [
|
|
21
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
22
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.text), 1)
|
|
23
|
+
])
|
|
24
|
+
]),
|
|
25
|
+
default: vue.withCtx(() => [
|
|
26
|
+
vue.createVNode(pIcon_vue_vue_type_script_setup_true_lang._sfc_main, {
|
|
27
|
+
icon: "info",
|
|
28
|
+
class: "block h-3 w-3",
|
|
29
|
+
width: "12"
|
|
30
|
+
})
|
|
31
|
+
]),
|
|
32
|
+
_: 3
|
|
33
|
+
}, 8, ["disabled"]);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
exports._sfc_main = _sfc_main;
|
package/dist/cjs/index.js
CHANGED
|
@@ -20,7 +20,7 @@ const vueToastification = require("vue-toastification");
|
|
|
20
20
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
21
21
|
const pIcon = require("./p-icon.js");
|
|
22
22
|
const pIcon_vue_vue_type_script_setup_true_lang = require("./chunks/p-icon.js");
|
|
23
|
-
const
|
|
23
|
+
const pInfoIcon_vue_vue_type_script_setup_true_lang = require("./chunks/p-info-icon.js");
|
|
24
24
|
const pInlineDatePicker_vue_vue_type_script_setup_true_lang = require("./chunks/p-inline-date-picker.js");
|
|
25
25
|
const pInput = require("./p-input.js");
|
|
26
26
|
const pInputNumber = require("./p-input-number.js");
|
|
@@ -968,7 +968,7 @@ exports.PDropdownSelect = pDropdownSelect_vue_vue_type_script_setup_true_lang._s
|
|
|
968
968
|
exports.useInputClasses = useInputClasses.useInputClasses;
|
|
969
969
|
exports.P_ICON_ALIASES = pIcon.P_ICON_ALIASES;
|
|
970
970
|
exports.PIcon = pIcon_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
971
|
-
exports.PInfoIcon =
|
|
971
|
+
exports.PInfoIcon = pInfoIcon_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
972
972
|
exports.PInlineDatePicker = pInlineDatePicker_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
973
973
|
exports.PInput = pInput;
|
|
974
974
|
exports.PInputNumber = pInputNumber;
|
package/dist/cjs/p-icon.js
CHANGED
|
@@ -29,6 +29,11 @@ const P_ICON_ALIASES = {
|
|
|
29
29
|
more: "lineicons:more-alt",
|
|
30
30
|
filters: "mage:filter",
|
|
31
31
|
"bar-chart": "material-symbols:bar-chart-4-bars-rounded",
|
|
32
|
-
list: "material-symbols:format-list-bulleted"
|
|
32
|
+
list: "material-symbols:format-list-bulleted",
|
|
33
|
+
formula: "fluent:math-formula-20-filled",
|
|
34
|
+
refresh: "ri:loop-left-line",
|
|
35
|
+
download: "tdesign:download",
|
|
36
|
+
upload: "tdesign:upload",
|
|
37
|
+
info: "streamline:information-circle"
|
|
33
38
|
};
|
|
34
39
|
exports.P_ICON_ALIASES = P_ICON_ALIASES;
|
package/dist/cjs/p-info-icon.js
CHANGED
|
@@ -1,34 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
5
|
-
...{
|
|
6
|
-
name: "PInfoIcon"
|
|
7
|
-
},
|
|
8
|
-
__name: "p-info-icon",
|
|
9
|
-
props: {
|
|
10
|
-
text: { default: null }
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
return (_ctx, _cache) => {
|
|
14
|
-
const _component_VTooltip = vue.resolveComponent("VTooltip");
|
|
15
|
-
return vue.openBlock(), vue.createBlock(_component_VTooltip, {
|
|
16
|
-
"popper-triggers": ["hover"],
|
|
17
|
-
delay: { show: 750, hide: 0 },
|
|
18
|
-
disabled: !_ctx.$slots.default && !_ctx.text
|
|
19
|
-
}, {
|
|
20
|
-
popper: vue.withCtx(() => [
|
|
21
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
22
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.text), 1)
|
|
23
|
-
], true)
|
|
24
|
-
]),
|
|
25
|
-
default: vue.withCtx(() => [
|
|
26
|
-
_cache[0] || (_cache[0] = vue.createElementVNode("i", { class: "bg-info-circle-icon block h-3 w-3" }, null, -1))
|
|
27
|
-
]),
|
|
28
|
-
_: 3
|
|
29
|
-
}, 8, ["disabled"]);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const PInfoIcon = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-804e74f5"]]);
|
|
34
|
-
module.exports = PInfoIcon;
|
|
2
|
+
const pInfoIcon_vue_vue_type_script_setup_true_lang = require("./chunks/p-info-icon.js");
|
|
3
|
+
module.exports = pInfoIcon_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const pInfoIcon_vue_vue_type_script_setup_true_lang = require("./chunks/p-info-icon.js");
|
|
3
3
|
const inputClassesMixin = require("./inputClassesMixin.js");
|
|
4
4
|
const number = require("./number.js");
|
|
5
5
|
const lodashEs = require("lodash-es");
|
|
@@ -22,7 +22,7 @@ const ALL_OPTIONS = [
|
|
|
22
22
|
const _sfc_main = vue.defineComponent({
|
|
23
23
|
name: "PInputNumber",
|
|
24
24
|
components: {
|
|
25
|
-
PInfoIcon:
|
|
25
|
+
PInfoIcon: pInfoIcon_vue_vue_type_script_setup_true_lang._sfc_main
|
|
26
26
|
},
|
|
27
27
|
mixins: [inputClassesMixin],
|
|
28
28
|
inheritAttrs: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const pInfoIcon_vue_vue_type_script_setup_true_lang = require("./chunks/p-info-icon.js");
|
|
3
3
|
const pTableFilterIcon = require("./p-table-filter-icon.js");
|
|
4
4
|
const vue = require("vue");
|
|
5
5
|
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
@@ -8,7 +8,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
8
8
|
name: "PTableHeaderCell",
|
|
9
9
|
components: {
|
|
10
10
|
PTableFilterIcon: pTableFilterIcon,
|
|
11
|
-
PInfoIcon:
|
|
11
|
+
PInfoIcon: pInfoIcon_vue_vue_type_script_setup_true_lang._sfc_main
|
|
12
12
|
},
|
|
13
13
|
props: {
|
|
14
14
|
text: {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, createBlock, openBlock, withCtx, createVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./p-icon.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
...{
|
|
5
|
+
name: "PInfoIcon"
|
|
6
|
+
},
|
|
7
|
+
__name: "p-info-icon",
|
|
8
|
+
props: {
|
|
9
|
+
text: { default: null }
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
const _component_VTooltip = resolveComponent("VTooltip");
|
|
14
|
+
return openBlock(), createBlock(_component_VTooltip, {
|
|
15
|
+
"popper-triggers": ["hover"],
|
|
16
|
+
delay: { show: 750, hide: 0 },
|
|
17
|
+
disabled: !_ctx.$slots.default && !_ctx.text
|
|
18
|
+
}, {
|
|
19
|
+
popper: withCtx(() => [
|
|
20
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
21
|
+
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
22
|
+
])
|
|
23
|
+
]),
|
|
24
|
+
default: withCtx(() => [
|
|
25
|
+
createVNode(_sfc_main$1, {
|
|
26
|
+
icon: "info",
|
|
27
|
+
class: "block h-3 w-3",
|
|
28
|
+
width: "12"
|
|
29
|
+
})
|
|
30
|
+
]),
|
|
31
|
+
_: 3
|
|
32
|
+
}, 8, ["disabled"]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
_sfc_main as _
|
|
38
|
+
};
|
package/dist/es/index.js
CHANGED
|
@@ -19,45 +19,45 @@ import { useToast } from "vue-toastification";
|
|
|
19
19
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
20
20
|
import { P_ICON_ALIASES } from "./p-icon.js";
|
|
21
21
|
import { _ as _4 } from "./chunks/p-icon.js";
|
|
22
|
-
import {
|
|
23
|
-
import { _ as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { _ as
|
|
22
|
+
import { _ as _5 } from "./chunks/p-info-icon.js";
|
|
23
|
+
import { _ as _6 } from "./chunks/p-inline-date-picker.js";
|
|
24
|
+
import { default as default10 } from "./p-input.js";
|
|
25
|
+
import { default as default11 } from "./p-input-number.js";
|
|
26
|
+
import { _ as _7 } from "./chunks/p-input-percent.js";
|
|
27
27
|
import PInputSearch from "./p-input-search.js";
|
|
28
|
-
import { _ as
|
|
29
|
-
import { default as
|
|
28
|
+
import { _ as _8 } from "./chunks/p-link.js";
|
|
29
|
+
import { default as default12 } from "./p-loading.js";
|
|
30
30
|
import { usePLoading } from "./usePLoading.js";
|
|
31
|
-
import { default as
|
|
31
|
+
import { default as default13 } from "./p-modal.js";
|
|
32
32
|
import { usePModal } from "./usePModal.js";
|
|
33
|
-
import { _ as
|
|
34
|
-
import { _ as
|
|
35
|
-
import { default as
|
|
36
|
-
import { _ as
|
|
37
|
-
import { _ as
|
|
38
|
-
import { _ as
|
|
33
|
+
import { _ as _9 } from "./chunks/p-pagination.js";
|
|
34
|
+
import { _ as _10 } from "./chunks/p-pagination-info.js";
|
|
35
|
+
import { default as default14 } from "./p-progress-bar.js";
|
|
36
|
+
import { _ as _11 } from "./chunks/p-ring-loader.js";
|
|
37
|
+
import { _ as _12 } from "./chunks/p-select.js";
|
|
38
|
+
import { _ as _13 } from "./chunks/p-select-btn.js";
|
|
39
39
|
import { SIZES } from "./p-select-list.js";
|
|
40
40
|
import { useSelectList } from "./useSelectList.js";
|
|
41
41
|
import { toString } from "./string.js";
|
|
42
42
|
import { splitStringForHighlight } from "./text.js";
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
43
|
+
import { default as default15 } from "./p-select-pill.js";
|
|
44
|
+
import { default as default16 } from "./p-skeleton-loader.js";
|
|
45
45
|
import { colsInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey, isColsResizableInjectionKey } from "./p-table.js";
|
|
46
46
|
import { MIN_WIDTH_COL_RESIZE } from "./p-table.js";
|
|
47
47
|
import { usePTableColResize } from "./usePTableColResize.js";
|
|
48
48
|
import PTableHeaderCell from "./p-table-header-cell.js";
|
|
49
49
|
import { usePTableRowVirtualizer } from "./usePTableRowVirtualizer.js";
|
|
50
|
-
import { default as
|
|
51
|
-
import { _ as
|
|
50
|
+
import { default as default17 } from "./p-table-filter-icon.js";
|
|
51
|
+
import { _ as _14 } from "./chunks/p-table-loader.js";
|
|
52
52
|
import { SORTING_TYPES } from "./p-table-sort.js";
|
|
53
|
-
import { default as
|
|
54
|
-
import { _ as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
53
|
+
import { default as default18 } from "./p-table-td.js";
|
|
54
|
+
import { _ as _15 } from "./chunks/p-tabs.js";
|
|
55
|
+
import { default as default19 } from "./p-textarea.js";
|
|
56
|
+
import { default as default20 } from "./p-toggle.js";
|
|
57
57
|
import { squirrelTailwindConfig } from "./config.js";
|
|
58
58
|
import { CURRENCY_INPUT_DEFAULTS } from "./currency.js";
|
|
59
59
|
import { getNextActiveElement, isElement, isVisible } from "./dom.js";
|
|
60
|
-
import { default as
|
|
60
|
+
import { default as default21 } from "./inputClassesMixin.js";
|
|
61
61
|
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";
|
|
62
62
|
import { setupListKeyboardNavigation } from "./listKeyboardNavigation.js";
|
|
63
63
|
import { toNumberOrNull } from "./number.js";
|
|
@@ -977,34 +977,34 @@ export {
|
|
|
977
977
|
default9 as PDropdown,
|
|
978
978
|
a as PDropdownSelect,
|
|
979
979
|
pFileUpload as PFileUpload,
|
|
980
|
-
|
|
980
|
+
default17 as PFilterIcon,
|
|
981
981
|
_4 as PIcon,
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
982
|
+
_5 as PInfoIcon,
|
|
983
|
+
_6 as PInlineDatePicker,
|
|
984
|
+
default10 as PInput,
|
|
985
|
+
default11 as PInputNumber,
|
|
986
|
+
_7 as PInputPercent,
|
|
987
987
|
PInputSearch,
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
988
|
+
_8 as PLink,
|
|
989
|
+
default12 as PLoading,
|
|
990
|
+
default13 as PModal,
|
|
991
|
+
_9 as PPagination,
|
|
992
|
+
_10 as PPaginationInfo,
|
|
993
|
+
default14 as PProgressBar,
|
|
994
|
+
_11 as PRingLoader,
|
|
995
|
+
_12 as PSelect,
|
|
996
|
+
_13 as PSelectBtn,
|
|
997
997
|
_sfc_main$2 as PSelectList,
|
|
998
|
-
|
|
999
|
-
|
|
998
|
+
default15 as PSelectPill,
|
|
999
|
+
default16 as PSkeletonLoader,
|
|
1000
1000
|
pTable as PTable,
|
|
1001
1001
|
PTableHeaderCell,
|
|
1002
|
-
|
|
1002
|
+
_14 as PTableLoader,
|
|
1003
1003
|
pTableSort as PTableSort,
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1004
|
+
default18 as PTableTd,
|
|
1005
|
+
_15 as PTabs,
|
|
1006
|
+
default19 as PTextarea,
|
|
1007
|
+
default20 as PToggle,
|
|
1008
1008
|
P_ICON_ALIASES,
|
|
1009
1009
|
SELECT_ARROW,
|
|
1010
1010
|
SELECT_BASE,
|
|
@@ -1021,7 +1021,7 @@ export {
|
|
|
1021
1021
|
getColorDeep,
|
|
1022
1022
|
getNextActiveElement,
|
|
1023
1023
|
getScreen,
|
|
1024
|
-
|
|
1024
|
+
default21 as inputClassesMixin,
|
|
1025
1025
|
isColsResizableInjectionKey,
|
|
1026
1026
|
isElement,
|
|
1027
1027
|
isFirstColFixedInjectionKey,
|
package/dist/es/p-icon.js
CHANGED
|
@@ -27,7 +27,12 @@ const P_ICON_ALIASES = {
|
|
|
27
27
|
more: "lineicons:more-alt",
|
|
28
28
|
filters: "mage:filter",
|
|
29
29
|
"bar-chart": "material-symbols:bar-chart-4-bars-rounded",
|
|
30
|
-
list: "material-symbols:format-list-bulleted"
|
|
30
|
+
list: "material-symbols:format-list-bulleted",
|
|
31
|
+
formula: "fluent:math-formula-20-filled",
|
|
32
|
+
refresh: "ri:loop-left-line",
|
|
33
|
+
download: "tdesign:download",
|
|
34
|
+
upload: "tdesign:upload",
|
|
35
|
+
info: "streamline:information-circle"
|
|
31
36
|
};
|
|
32
37
|
export {
|
|
33
38
|
P_ICON_ALIASES
|
package/dist/es/p-info-icon.js
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
...{
|
|
5
|
-
name: "PInfoIcon"
|
|
6
|
-
},
|
|
7
|
-
__name: "p-info-icon",
|
|
8
|
-
props: {
|
|
9
|
-
text: { default: null }
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
return (_ctx, _cache) => {
|
|
13
|
-
const _component_VTooltip = resolveComponent("VTooltip");
|
|
14
|
-
return openBlock(), createBlock(_component_VTooltip, {
|
|
15
|
-
"popper-triggers": ["hover"],
|
|
16
|
-
delay: { show: 750, hide: 0 },
|
|
17
|
-
disabled: !_ctx.$slots.default && !_ctx.text
|
|
18
|
-
}, {
|
|
19
|
-
popper: withCtx(() => [
|
|
20
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
21
|
-
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
22
|
-
], true)
|
|
23
|
-
]),
|
|
24
|
-
default: withCtx(() => [
|
|
25
|
-
_cache[0] || (_cache[0] = createElementVNode("i", { class: "bg-info-circle-icon block h-3 w-3" }, null, -1))
|
|
26
|
-
]),
|
|
27
|
-
_: 3
|
|
28
|
-
}, 8, ["disabled"]);
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
const PInfoIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-804e74f5"]]);
|
|
1
|
+
import { _ as _sfc_main } from "./chunks/p-info-icon.js";
|
|
33
2
|
export {
|
|
34
|
-
|
|
3
|
+
_sfc_main as default
|
|
35
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { _ as _sfc_main$1 } from "./chunks/p-info-icon.js";
|
|
2
2
|
import inputClassesMixin from "./inputClassesMixin.js";
|
|
3
3
|
import { toNumberOrNull } from "./number.js";
|
|
4
4
|
import { kebabCase } from "lodash-es";
|
|
@@ -21,7 +21,7 @@ const ALL_OPTIONS = [
|
|
|
21
21
|
const _sfc_main = defineComponent({
|
|
22
22
|
name: "PInputNumber",
|
|
23
23
|
components: {
|
|
24
|
-
PInfoIcon
|
|
24
|
+
PInfoIcon: _sfc_main$1
|
|
25
25
|
},
|
|
26
26
|
mixins: [inputClassesMixin],
|
|
27
27
|
inheritAttrs: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { _ as _sfc_main$1 } from "./chunks/p-info-icon.js";
|
|
2
2
|
import PTableFilterIcon from "./p-table-filter-icon.js";
|
|
3
3
|
import { defineComponent, resolveComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, createVNode, normalizeStyle, normalizeClass, toDisplayString, createBlock } from "vue";
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
@@ -7,7 +7,7 @@ const _sfc_main = defineComponent({
|
|
|
7
7
|
name: "PTableHeaderCell",
|
|
8
8
|
components: {
|
|
9
9
|
PTableFilterIcon,
|
|
10
|
-
PInfoIcon
|
|
10
|
+
PInfoIcon: _sfc_main$1
|
|
11
11
|
},
|
|
12
12
|
props: {
|
|
13
13
|
text: {
|
|
@@ -21,6 +21,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
21
|
validator(value: keyof typeof ALERT_TYPES): boolean;
|
|
22
22
|
};
|
|
23
23
|
}>> & Readonly<{}>, {
|
|
24
|
-
type: "
|
|
24
|
+
type: "info" | "error" | "success" | "warning";
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
26
|
export default _default;
|
|
@@ -173,21 +173,21 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
173
173
|
}, {}, {
|
|
174
174
|
PAlert: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
175
175
|
type: {
|
|
176
|
-
type: import("vue").PropType<"
|
|
176
|
+
type: import("vue").PropType<"info" | "error" | "success" | "warning">;
|
|
177
177
|
default: string;
|
|
178
|
-
validator(value: "
|
|
178
|
+
validator(value: "info" | "error" | "success" | "warning"): boolean;
|
|
179
179
|
};
|
|
180
180
|
}>, {}, {}, {
|
|
181
181
|
classes(): string;
|
|
182
182
|
svgColor(): undefined;
|
|
183
183
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
184
184
|
type: {
|
|
185
|
-
type: import("vue").PropType<"
|
|
185
|
+
type: import("vue").PropType<"info" | "error" | "success" | "warning">;
|
|
186
186
|
default: string;
|
|
187
|
-
validator(value: "
|
|
187
|
+
validator(value: "info" | "error" | "success" | "warning"): boolean;
|
|
188
188
|
};
|
|
189
189
|
}>> & Readonly<{}>, {
|
|
190
|
-
type: "
|
|
190
|
+
type: "info" | "error" | "success" | "warning";
|
|
191
191
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
192
192
|
PCloseBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
193
193
|
variant: {
|
|
@@ -28,5 +28,10 @@ export declare const P_ICON_ALIASES: {
|
|
|
28
28
|
readonly filters: "mage:filter";
|
|
29
29
|
readonly 'bar-chart': "material-symbols:bar-chart-4-bars-rounded";
|
|
30
30
|
readonly list: "material-symbols:format-list-bulleted";
|
|
31
|
+
readonly formula: "fluent:math-formula-20-filled";
|
|
32
|
+
readonly refresh: "ri:loop-left-line";
|
|
33
|
+
readonly download: "tdesign:download";
|
|
34
|
+
readonly upload: "tdesign:upload";
|
|
35
|
+
readonly info: "streamline:information-circle";
|
|
31
36
|
};
|
|
32
37
|
export type PIconAlias = keyof typeof P_ICON_ALIASES;
|
package/dist/squirrel.css
CHANGED
|
@@ -49,9 +49,9 @@ div[id^=popper_].dropdown .v-popper__inner .dropdown-menu .dropdown-header {
|
|
|
49
49
|
|
|
50
50
|
padding-right: 1rem;
|
|
51
51
|
|
|
52
|
-
padding-top: 0.
|
|
52
|
+
padding-top: 0.5rem;
|
|
53
53
|
|
|
54
|
-
padding-bottom: 0.
|
|
54
|
+
padding-bottom: 0.5rem;
|
|
55
55
|
|
|
56
56
|
font-size: 0.75rem;
|
|
57
57
|
|
|
@@ -59,6 +59,8 @@ div[id^=popper_].dropdown .v-popper__inner .dropdown-menu .dropdown-header {
|
|
|
59
59
|
|
|
60
60
|
text-transform: uppercase;
|
|
61
61
|
|
|
62
|
+
line-height: 1.25rem;
|
|
63
|
+
|
|
62
64
|
color: rgb(var(--color-p-gray-40))
|
|
63
65
|
}
|
|
64
66
|
div[id^=popper_].dropdown .v-popper__inner .dropdown-menu .dropdown-item {
|
|
@@ -77,15 +79,17 @@ div[id^=popper_].dropdown .v-popper__inner .dropdown-menu .dropdown-item {
|
|
|
77
79
|
|
|
78
80
|
padding-right: 1rem;
|
|
79
81
|
|
|
80
|
-
padding-top: 0.
|
|
82
|
+
padding-top: 0.5rem;
|
|
81
83
|
|
|
82
|
-
padding-bottom: 0.
|
|
84
|
+
padding-bottom: 0.5rem;
|
|
83
85
|
|
|
84
86
|
text-align: left;
|
|
85
87
|
|
|
86
88
|
font-size: 0.875rem;
|
|
87
89
|
|
|
88
|
-
font-weight: 500
|
|
90
|
+
font-weight: 500;
|
|
91
|
+
|
|
92
|
+
line-height: 1.25rem
|
|
89
93
|
}
|
|
90
94
|
div[id^=popper_].dropdown .v-popper__inner .dropdown-menu .dropdown-item:active,
|
|
91
95
|
div[id^=popper_].dropdown .v-popper__inner .dropdown-menu .dropdown-item.active {
|
|
@@ -335,11 +339,7 @@ to {
|
|
|
335
339
|
height: 1.5rem;
|
|
336
340
|
right: 2.5rem;
|
|
337
341
|
bottom: 0.75rem;
|
|
338
|
-
}
|
|
339
|
-
.bg-info-circle-icon[data-v-804e74f5] {
|
|
340
|
-
background-image: url("data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_4002_33291)'%3e%3cpath%20d='M0.5%206C0.5%207.45869%201.07946%208.85764%202.11091%209.88909C3.14236%2010.9205%204.54131%2011.5%206%2011.5C7.45869%2011.5%208.85764%2010.9205%209.88909%209.88909C10.9205%208.85764%2011.5%207.45869%2011.5%206C11.5%204.54131%2010.9205%203.14236%209.88909%202.11091C8.85764%201.07946%207.45869%200.5%206%200.5C4.54131%200.5%203.14236%201.07946%202.11091%202.11091C1.07946%203.14236%200.5%204.54131%200.5%206Z'%20stroke='%231A123B'%20stroke-miterlimit='10'/%3e%3cpath%20d='M6.5%203.5H5.5V2.5H6.5V3.5Z'%20fill='%231A123B'/%3e%3cpath%20d='M4.5%205H6V9M4.5%208.5H7.5'%20stroke='%231A123B'%20stroke-miterlimit='10'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4002_33291'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");
|
|
341
|
-
}
|
|
342
|
-
.fadeInDown[data-v-9ad56d4f] {
|
|
342
|
+
}.fadeInDown[data-v-9ad56d4f] {
|
|
343
343
|
animation-duration: 0.4s;
|
|
344
344
|
animation-fill-mode: both;
|
|
345
345
|
animation-name: fadeInDown-9ad56d4f;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pequity/squirrel",
|
|
3
3
|
"description": "Squirrel component library",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.12",
|
|
5
5
|
"packageManager": "pnpm@9.15.5",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
@@ -53,22 +53,22 @@
|
|
|
53
53
|
"@playwright/test": "^1.50.1",
|
|
54
54
|
"@semantic-release/changelog": "^6.0.3",
|
|
55
55
|
"@semantic-release/git": "^10.0.1",
|
|
56
|
-
"@storybook/addon-a11y": "^8.5.
|
|
57
|
-
"@storybook/addon-actions": "^8.5.
|
|
58
|
-
"@storybook/addon-essentials": "^8.5.
|
|
59
|
-
"@storybook/addon-interactions": "^8.5.
|
|
60
|
-
"@storybook/addon-links": "^8.5.
|
|
61
|
-
"@storybook/blocks": "^8.5.
|
|
62
|
-
"@storybook/manager-api": "^8.5.
|
|
63
|
-
"@storybook/test": "^8.5.
|
|
56
|
+
"@storybook/addon-a11y": "^8.5.6",
|
|
57
|
+
"@storybook/addon-actions": "^8.5.6",
|
|
58
|
+
"@storybook/addon-essentials": "^8.5.6",
|
|
59
|
+
"@storybook/addon-interactions": "^8.5.6",
|
|
60
|
+
"@storybook/addon-links": "^8.5.6",
|
|
61
|
+
"@storybook/blocks": "^8.5.6",
|
|
62
|
+
"@storybook/manager-api": "^8.5.6",
|
|
63
|
+
"@storybook/test": "^8.5.6",
|
|
64
64
|
"@storybook/test-runner": "^0.21.0",
|
|
65
|
-
"@storybook/theming": "^8.5.
|
|
66
|
-
"@storybook/vue3": "^8.5.
|
|
67
|
-
"@storybook/vue3-vite": "^8.5.
|
|
65
|
+
"@storybook/theming": "^8.5.6",
|
|
66
|
+
"@storybook/vue3": "^8.5.6",
|
|
67
|
+
"@storybook/vue3-vite": "^8.5.6",
|
|
68
68
|
"@tanstack/vue-virtual": "3.13.0",
|
|
69
69
|
"@types/jsdom": "^21.1.7",
|
|
70
70
|
"@types/lodash-es": "^4.17.12",
|
|
71
|
-
"@types/node": "^22.13.
|
|
71
|
+
"@types/node": "^22.13.4",
|
|
72
72
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
73
73
|
"@vitest/coverage-v8": "^3.0.5",
|
|
74
74
|
"@vue/compiler-sfc": "3.5.13",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
92
92
|
"resolve-tspaths": "^0.8.23",
|
|
93
93
|
"rimraf": "^6.0.1",
|
|
94
|
-
"sass": "^1.
|
|
94
|
+
"sass": "^1.85.0",
|
|
95
95
|
"semantic-release": "^24.2.2",
|
|
96
|
-
"storybook": "^8.5.
|
|
96
|
+
"storybook": "^8.5.6",
|
|
97
97
|
"svgo": "^3.3.2",
|
|
98
98
|
"tailwindcss": "^3.4.17",
|
|
99
99
|
"typescript": "5.7.3",
|
|
@@ -243,10 +243,10 @@ div[id^='popper_'].dropdown .v-popper__inner .dropdown-menu {
|
|
|
243
243
|
@apply py-2;
|
|
244
244
|
}
|
|
245
245
|
div[id^='popper_'].dropdown .v-popper__inner .dropdown-menu .dropdown-header {
|
|
246
|
-
@apply block whitespace-nowrap px-4 py-
|
|
246
|
+
@apply block whitespace-nowrap px-4 py-2 text-xs font-semibold uppercase leading-5 text-p-gray-40;
|
|
247
247
|
}
|
|
248
248
|
div[id^='popper_'].dropdown .v-popper__inner .dropdown-menu .dropdown-item {
|
|
249
|
-
@apply clear-both block w-full cursor-pointer whitespace-nowrap px-4 py-
|
|
249
|
+
@apply clear-both block w-full cursor-pointer whitespace-nowrap px-4 py-2 text-left text-sm font-medium leading-5;
|
|
250
250
|
}
|
|
251
251
|
div[id^='popper_'].dropdown .v-popper__inner .dropdown-menu .dropdown-item:active,
|
|
252
252
|
div[id^='popper_'].dropdown .v-popper__inner .dropdown-menu .dropdown-item.active {
|
|
@@ -28,6 +28,11 @@ export const P_ICON_ALIASES = {
|
|
|
28
28
|
filters: 'mage:filter',
|
|
29
29
|
'bar-chart': 'material-symbols:bar-chart-4-bars-rounded',
|
|
30
30
|
list: 'material-symbols:format-list-bulleted',
|
|
31
|
+
formula: 'fluent:math-formula-20-filled',
|
|
32
|
+
refresh: 'ri:loop-left-line',
|
|
33
|
+
download: 'tdesign:download',
|
|
34
|
+
upload: 'tdesign:upload',
|
|
35
|
+
info: 'streamline:information-circle',
|
|
31
36
|
} as const;
|
|
32
37
|
|
|
33
38
|
export type PIconAlias = keyof typeof P_ICON_ALIASES;
|
|
@@ -5,12 +5,13 @@ describe('PInfoIcon.vue', () => {
|
|
|
5
5
|
it('renders an info icon', async () => {
|
|
6
6
|
const wrapper = createWrapperFor(PInfoIcon, {
|
|
7
7
|
props: { text: 'Lorem ipsum dolor sit amet.' },
|
|
8
|
+
global: { PIcon: true },
|
|
8
9
|
});
|
|
9
10
|
|
|
10
|
-
const iClasses = ['
|
|
11
|
+
const iClasses = ['block', 'h-3', 'w-3'];
|
|
11
12
|
const divClasses = ['v-popper', 'v-popper--theme-tooltip'];
|
|
12
13
|
|
|
13
|
-
const i = wrapper.
|
|
14
|
+
const i = wrapper.findComponent({ name: 'PIcon' });
|
|
14
15
|
|
|
15
16
|
expect(divClasses.every((c) => wrapper.classes().includes(c))).toBe(true);
|
|
16
17
|
expect(i.exists()).toBe(true);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<VTooltip :popper-triggers="['hover']" :delay="{ show: 750, hide: 0 }" :disabled="!$slots.default && !text">
|
|
3
|
-
<
|
|
3
|
+
<PIcon icon="info" class="block h-3 w-3" width="12" />
|
|
4
4
|
<template #popper>
|
|
5
5
|
<slot>{{ text }}</slot>
|
|
6
6
|
</template>
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script setup lang="ts">
|
|
11
|
+
import PIcon from '@squirrel/components/p-icon/p-icon.vue';
|
|
12
|
+
|
|
11
13
|
defineOptions({
|
|
12
14
|
name: 'PInfoIcon',
|
|
13
15
|
});
|
|
@@ -20,9 +22,3 @@ withDefaults(defineProps<Props>(), {
|
|
|
20
22
|
text: null,
|
|
21
23
|
});
|
|
22
24
|
</script>
|
|
23
|
-
|
|
24
|
-
<style scoped>
|
|
25
|
-
.bg-info-circle-icon {
|
|
26
|
-
background-image: url('@squirrel/assets/info-circle-icon.svg');
|
|
27
|
-
}
|
|
28
|
-
</style>
|
|
@@ -9,11 +9,12 @@ describe('PTableHeaderCell.vue', () => {
|
|
|
9
9
|
text: 'Test text',
|
|
10
10
|
textClass: 'test-class',
|
|
11
11
|
},
|
|
12
|
+
global: { stubs: { PInfoIcon: true } },
|
|
12
13
|
});
|
|
13
14
|
|
|
14
15
|
const div = await wrapper.find('div.test-class');
|
|
15
16
|
const icon = wrapper.findComponent(PFilterIcon);
|
|
16
|
-
const tooltipIcon = await wrapper.
|
|
17
|
+
const tooltipIcon = await wrapper.findComponent({ name: 'PInfoIcon' });
|
|
17
18
|
|
|
18
19
|
expect(wrapper.classes()).toEqual(['flex', 'items-center', 'overflow-hidden']);
|
|
19
20
|
expect(icon.exists()).toBe(true);
|
|
@@ -52,17 +53,18 @@ describe('PTableHeaderCell.vue', () => {
|
|
|
52
53
|
expect(div.classes()).toContain('text-active-blue');
|
|
53
54
|
});
|
|
54
55
|
|
|
55
|
-
it('when tooltip text is provided', async () => {
|
|
56
|
+
it('displays a tooltip when tooltip text is provided', async () => {
|
|
56
57
|
const wrapper = createWrapperFor(PTableHeaderCell, {
|
|
57
58
|
props: {
|
|
58
59
|
text: 'Test text',
|
|
59
60
|
textClass: 'test-class',
|
|
60
61
|
tooltipText: 'This is a tooltip',
|
|
61
62
|
},
|
|
63
|
+
global: { stubs: { PInfoIcon: true } },
|
|
62
64
|
});
|
|
63
65
|
|
|
64
|
-
const tooltipIcon = wrapper.
|
|
65
|
-
const tooltipIconDivElClasses = [...
|
|
66
|
+
const tooltipIcon = await wrapper.findComponent({ name: 'PInfoIcon' });
|
|
67
|
+
const tooltipIconDivElClasses = [...wrapper.find('p-info-icon-stub').element.parentNode.classList];
|
|
66
68
|
|
|
67
69
|
expect(tooltipIconDivElClasses).toEqual(['relative', 'ml-1', 'mr-auto', 'h-3', 'w-3', 'shrink-0']);
|
|
68
70
|
expect(tooltipIcon.exists()).toBe(true);
|