@frollo/frollo-web-ui 8.0.4 → 8.1.1
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/cjs/index.js +111 -38
- package/esm/fw-accordion.js +1 -1
- package/esm/fw-animations.js +2 -2
- package/esm/{fw-button-D8GUq_wg.js → fw-button-DdxvSBFa.js} +1 -1
- package/esm/fw-button.js +3 -3
- package/esm/fw-date-picker.js +1 -1
- package/esm/fw-drawer.js +3 -3
- package/esm/{fw-dropdown-YXj5yyty.js → fw-dropdown-BcnKbaW1.js} +2 -2
- package/esm/fw-dropdown.js +3 -3
- package/esm/{fw-image-DAUZLkf4.js → fw-image-DedhILQL.js} +1 -1
- package/esm/fw-image.js +2 -2
- package/esm/{fw-input-CPU_C8IU.js → fw-input-BPFFMpc2.js} +7 -1
- package/esm/fw-input.js +1 -1
- package/esm/{fw-loading-spinner-AsWqai_A.js → fw-loading-spinner-BEzZf1xe.js} +1 -1
- package/esm/fw-modal.js +3 -3
- package/esm/fw-navigation-menu.js +3 -3
- package/esm/fw-provider-list.js +8 -8
- package/esm/fw-sidebar-menu.js +3 -3
- package/esm/{fw-table-row-7vke3KXB.js → fw-table-row-Cianlk0N.js} +100 -32
- package/esm/fw-table.js +4 -2
- package/esm/{fw-tag-BVEv8PMh.js → fw-tag-508OLlZR.js} +2 -2
- package/esm/fw-tag.js +4 -4
- package/esm/fw-toast.js +1 -1
- package/esm/fw-transactions-card.js +2 -2
- package/esm/{index-B-9TSbb0.js → index-svDiDkSU.js} +1 -1
- package/esm/index.js +8 -8
- package/frollo-web-ui.esm.js +111 -38
- package/index.d.ts +38 -1
- package/package.json +1 -1
- package/types/components/fw-input/fw-input.vue.d.ts +9 -0
- package/types/components/fw-table/fw-table.vue.d.ts +26 -1
- package/types/components/fw-table/index.types.d.ts +3 -0
- package/web-components/index.js +113 -40
package/frollo-web-ui.esm.js
CHANGED
|
@@ -7016,6 +7016,10 @@ var script$m = defineComponent({
|
|
|
7016
7016
|
required: {
|
|
7017
7017
|
type: Boolean,
|
|
7018
7018
|
"default": false
|
|
7019
|
+
},
|
|
7020
|
+
centerAlignInput: {
|
|
7021
|
+
type: Boolean,
|
|
7022
|
+
"default": false
|
|
7019
7023
|
}
|
|
7020
7024
|
},
|
|
7021
7025
|
setup: function setup(props, ctx) {
|
|
@@ -7066,11 +7070,11 @@ var _hoisted_10$5 = {
|
|
|
7066
7070
|
key: 0,
|
|
7067
7071
|
"class": "text-left text-sm font-medium mt-2 min-h-[21px]"
|
|
7068
7072
|
};
|
|
7069
|
-
var _hoisted_11$
|
|
7073
|
+
var _hoisted_11$3 = {
|
|
7070
7074
|
key: 0,
|
|
7071
7075
|
"class": "text-error"
|
|
7072
7076
|
};
|
|
7073
|
-
var _hoisted_12$
|
|
7077
|
+
var _hoisted_12$3 = {
|
|
7074
7078
|
key: 1
|
|
7075
7079
|
};
|
|
7076
7080
|
function render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -7110,7 +7114,9 @@ function render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7110
7114
|
"class": ["border-blue-500", [{
|
|
7111
7115
|
'pl-10': !!_ctx.$slots.prefix,
|
|
7112
7116
|
'pr-20': !!_ctx.$slots.suffix
|
|
7113
|
-
}, (errorMessage || errors[0]) && meta.touched ? 'border-error text-error' : 'border-grey-40', _ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded'
|
|
7117
|
+
}, (errorMessage || errors[0]) && meta.touched ? 'border-error text-error' : 'border-grey-40', _ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded', {
|
|
7118
|
+
'text-center': _ctx.centerAlignInput
|
|
7119
|
+
}]]
|
|
7114
7120
|
}), null, 16, _hoisted_8$9), _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_9$8, [renderSlot(_ctx.$slots, "suffix", {
|
|
7115
7121
|
"class": "h-full"
|
|
7116
7122
|
})])) : createCommentVNode("", true)]), _ctx.enableErrors ? (openBlock(), createElementBlock("div", _hoisted_10$5, [createVNode(Transition, {
|
|
@@ -7118,7 +7124,7 @@ function render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7118
7124
|
mode: "out-in"
|
|
7119
7125
|
}, {
|
|
7120
7126
|
"default": withCtx(function () {
|
|
7121
|
-
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_11$
|
|
7127
|
+
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_11$3, toDisplayString(errorMessage || errors[0]), 1)) : _ctx.hint ? (openBlock(), createElementBlock("span", _hoisted_12$3, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true)];
|
|
7122
7128
|
}),
|
|
7123
7129
|
_: 2
|
|
7124
7130
|
}, 1024)])) : createCommentVNode("", true)])];
|
|
@@ -8294,8 +8300,8 @@ var _hoisted_9$6 = {
|
|
|
8294
8300
|
var _hoisted_10$4 = {
|
|
8295
8301
|
"class": ""
|
|
8296
8302
|
};
|
|
8297
|
-
var _hoisted_11$
|
|
8298
|
-
var _hoisted_12$
|
|
8303
|
+
var _hoisted_11$2 = ["aria-labelledby"];
|
|
8304
|
+
var _hoisted_12$2 = ["onClick"];
|
|
8299
8305
|
var _hoisted_13$1 = {
|
|
8300
8306
|
"class": "flex items-center gap-x-2"
|
|
8301
8307
|
};
|
|
@@ -8362,8 +8368,8 @@ function render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8362
8368
|
key: 0,
|
|
8363
8369
|
src: option.image_url,
|
|
8364
8370
|
"class": "w-[20px] h-[20px]"
|
|
8365
|
-
}, null, 8, ["src"])) : createCommentVNode("", true), createElementVNode("div", _hoisted_14$1, [createElementVNode("span", null, toDisplayString(option.label), 1), option.description ? (openBlock(), createElementBlock("span", _hoisted_15$1, toDisplayString(option.description), 1)) : createCommentVNode("", true)])])], 10, _hoisted_12$
|
|
8366
|
-
}), 128))], 10, _hoisted_11$
|
|
8371
|
+
}, null, 8, ["src"])) : createCommentVNode("", true), createElementVNode("div", _hoisted_14$1, [createElementVNode("span", null, toDisplayString(option.label), 1), option.description ? (openBlock(), createElementBlock("span", _hoisted_15$1, toDisplayString(option.description), 1)) : createCommentVNode("", true)])])], 10, _hoisted_12$2);
|
|
8372
|
+
}), 128))], 10, _hoisted_11$2), [[vShow, _ctx.isOpen]])];
|
|
8367
8373
|
}),
|
|
8368
8374
|
_: 1
|
|
8369
8375
|
}), _ctx.enableErrors ? (openBlock(), createElementBlock("div", _hoisted_16$1, [createVNode(Transition, {
|
|
@@ -9556,11 +9562,15 @@ var __default__$6 = defineComponent({
|
|
|
9556
9562
|
components: {
|
|
9557
9563
|
ArrowSortSvg: render$B,
|
|
9558
9564
|
ArrowDownSvg: render$A,
|
|
9559
|
-
|
|
9565
|
+
ChevronLeftSvg: render$O,
|
|
9566
|
+
ChevronRightSvg: render$P,
|
|
9567
|
+
FwLoadingBar: script$k,
|
|
9568
|
+
FwButton: script$f
|
|
9560
9569
|
},
|
|
9561
9570
|
emits: [/** Fired when a row is clicked with row data */
|
|
9562
9571
|
'rowClicked', /** Fired when a column is sorted */
|
|
9563
|
-
'columnSorted'
|
|
9572
|
+
'columnSorted', /** Fired when a page number or arrow is clicked */
|
|
9573
|
+
'pageChanged'],
|
|
9564
9574
|
props: {
|
|
9565
9575
|
items: {
|
|
9566
9576
|
type: Array,
|
|
@@ -9584,6 +9594,16 @@ var __default__$6 = defineComponent({
|
|
|
9584
9594
|
},
|
|
9585
9595
|
autoSortColumn: {
|
|
9586
9596
|
type: Number
|
|
9597
|
+
},
|
|
9598
|
+
enablePagination: {
|
|
9599
|
+
type: Boolean,
|
|
9600
|
+
"default": false
|
|
9601
|
+
},
|
|
9602
|
+
totalAmount: {
|
|
9603
|
+
type: Number
|
|
9604
|
+
},
|
|
9605
|
+
pageSize: {
|
|
9606
|
+
type: Number
|
|
9587
9607
|
}
|
|
9588
9608
|
},
|
|
9589
9609
|
setup: function setup(props, ctx) {
|
|
@@ -9593,10 +9613,15 @@ var __default__$6 = defineComponent({
|
|
|
9593
9613
|
var sortBy = ref('');
|
|
9594
9614
|
var sortDirection = ref('asc');
|
|
9595
9615
|
var currentSortedColumn = ref('');
|
|
9616
|
+
var currentPage = ref(1);
|
|
9617
|
+
var maxPageAmount = ref();
|
|
9596
9618
|
onMounted(function () {
|
|
9597
9619
|
if (Number(props.autoSortColumn) >= 0) {
|
|
9598
9620
|
sortColumn(columns.value[Number(props.autoSortColumn)], false);
|
|
9599
9621
|
}
|
|
9622
|
+
if (props.totalAmount && props.pageSize) {
|
|
9623
|
+
maxPageAmount.value = Math.ceil(props.totalAmount / props.pageSize);
|
|
9624
|
+
}
|
|
9600
9625
|
});
|
|
9601
9626
|
var _useColours = useColours(),
|
|
9602
9627
|
bgHoverColor = _useColours.primaryFade5;
|
|
@@ -9666,6 +9691,10 @@ var __default__$6 = defineComponent({
|
|
|
9666
9691
|
var rowClicked = function rowClicked(row) {
|
|
9667
9692
|
if (props.clickableRows) ctx.emit('rowClicked', row);
|
|
9668
9693
|
};
|
|
9694
|
+
var pageArrowClick = function pageArrowClick(next) {
|
|
9695
|
+
currentPage.value = currentPage.value + (next ? 1 : -1);
|
|
9696
|
+
ctx.emit('pageChanged', next);
|
|
9697
|
+
};
|
|
9669
9698
|
return {
|
|
9670
9699
|
columns: columns,
|
|
9671
9700
|
sortBy: sortBy,
|
|
@@ -9678,14 +9707,17 @@ var __default__$6 = defineComponent({
|
|
|
9678
9707
|
isColumnSortable: isColumnSortable,
|
|
9679
9708
|
isDisabled: isDisabled,
|
|
9680
9709
|
rowClicked: rowClicked,
|
|
9681
|
-
bgHoverColor: bgHoverColor
|
|
9710
|
+
bgHoverColor: bgHoverColor,
|
|
9711
|
+
currentPage: currentPage,
|
|
9712
|
+
maxPageAmount: maxPageAmount,
|
|
9713
|
+
pageArrowClick: pageArrowClick
|
|
9682
9714
|
};
|
|
9683
9715
|
}
|
|
9684
9716
|
});
|
|
9685
9717
|
var __injectCSSVars__$5 = function __injectCSSVars__() {
|
|
9686
9718
|
useCssVars(function (_ctx) {
|
|
9687
9719
|
return {
|
|
9688
|
-
"
|
|
9720
|
+
"11c7ec1c": _ctx.bgHoverColor
|
|
9689
9721
|
};
|
|
9690
9722
|
});
|
|
9691
9723
|
};
|
|
@@ -9696,42 +9728,52 @@ __default__$6.setup = __setup__$5 ? function (props, ctx) {
|
|
|
9696
9728
|
} : __injectCSSVars__$5;
|
|
9697
9729
|
|
|
9698
9730
|
var _withScopeId$4 = function _withScopeId(n) {
|
|
9699
|
-
return pushScopeId("data-v-
|
|
9731
|
+
return pushScopeId("data-v-b7ffd9d4"), n = n(), popScopeId(), n;
|
|
9732
|
+
};
|
|
9733
|
+
var _hoisted_1$p = {
|
|
9734
|
+
"class": "flex flex-col"
|
|
9700
9735
|
};
|
|
9701
|
-
var
|
|
9702
|
-
var
|
|
9736
|
+
var _hoisted_2$n = ["aria-busy"];
|
|
9737
|
+
var _hoisted_3$j = {
|
|
9703
9738
|
"class": "text-p2 border-b border-grey-40"
|
|
9704
9739
|
};
|
|
9705
|
-
var
|
|
9706
|
-
var
|
|
9740
|
+
var _hoisted_4$a = ["tabindex", "onKeydown", "onClick"];
|
|
9741
|
+
var _hoisted_5$8 = {
|
|
9707
9742
|
"class": "flex flex-row items-center"
|
|
9708
9743
|
};
|
|
9709
|
-
var
|
|
9744
|
+
var _hoisted_6$6 = {
|
|
9710
9745
|
key: 0,
|
|
9711
9746
|
"class": "ml-1 flex items-center justify-center w-5"
|
|
9712
9747
|
};
|
|
9713
|
-
var
|
|
9748
|
+
var _hoisted_7$5 = {
|
|
9714
9749
|
"class": "text-p2 bg-white font-light"
|
|
9715
9750
|
};
|
|
9716
|
-
var
|
|
9751
|
+
var _hoisted_8$4 = {
|
|
9717
9752
|
key: 0,
|
|
9718
9753
|
"class": "py-4 pl-5 pr-3 text-left"
|
|
9719
9754
|
};
|
|
9720
|
-
var
|
|
9755
|
+
var _hoisted_9$3 = {
|
|
9721
9756
|
key: 0,
|
|
9722
9757
|
"class": "py-4 pl-5 pr-3 text-left"
|
|
9723
9758
|
};
|
|
9724
|
-
var
|
|
9725
|
-
var
|
|
9759
|
+
var _hoisted_10$1 = ["onClick", "tabindex", "onKeydown"];
|
|
9760
|
+
var _hoisted_11$1 = ["innerHTML"];
|
|
9761
|
+
var _hoisted_12$1 = {
|
|
9762
|
+
key: 0,
|
|
9763
|
+
"class": "flex flex-row justify-center h-[44px] mt-8 space-x-2 mb-[40px]"
|
|
9764
|
+
};
|
|
9726
9765
|
function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9727
9766
|
var _component_ArrowSortSvg = resolveComponent("ArrowSortSvg");
|
|
9728
9767
|
var _component_ArrowDownSvg = resolveComponent("ArrowDownSvg");
|
|
9729
9768
|
var _component_FwLoadingBar = resolveComponent("FwLoadingBar");
|
|
9730
|
-
|
|
9731
|
-
|
|
9769
|
+
var _component_ChevronLeftSvg = resolveComponent("ChevronLeftSvg");
|
|
9770
|
+
var _component_FwButton = resolveComponent("FwButton");
|
|
9771
|
+
var _component_ChevronRightSvg = resolveComponent("ChevronRightSvg");
|
|
9772
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [createElementVNode("table", {
|
|
9773
|
+
"class": normalizeClass(["fw-table table-auto table-responsive rounded-md shadow-card flex-1", _ctx.loading ? 'cursor-wait' : '']),
|
|
9732
9774
|
"aria-live": "polite",
|
|
9733
9775
|
"aria-busy": _ctx.loading
|
|
9734
|
-
}, [createElementVNode("thead",
|
|
9776
|
+
}, [createElementVNode("thead", _hoisted_3$j, [createElementVNode("tr", null, [_ctx.$slots.preHead ? renderSlot(_ctx.$slots, "preHead", {
|
|
9735
9777
|
key: 0
|
|
9736
9778
|
}) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, function (column, thKey) {
|
|
9737
9779
|
return openBlock(), createElementBlock(Fragment, {
|
|
@@ -9746,9 +9788,9 @@ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9746
9788
|
onClick: function onClick($event) {
|
|
9747
9789
|
return _ctx.sortColumn(column);
|
|
9748
9790
|
}
|
|
9749
|
-
}, [createElementVNode("div",
|
|
9791
|
+
}, [createElementVNode("div", _hoisted_5$8, [createElementVNode("span", {
|
|
9750
9792
|
"class": normalizeClass(_ctx.sortedIcon('asc', column) || _ctx.sortedIcon('desc', column) ? 'text-primary' : '')
|
|
9751
|
-
}, toDisplayString(column), 3), _ctx.isColumnSortable(column) ? (openBlock(), createElementBlock("span",
|
|
9793
|
+
}, toDisplayString(column), 3), _ctx.isColumnSortable(column) ? (openBlock(), createElementBlock("span", _hoisted_6$6, [!_ctx.sortedIcon('asc', column) && !_ctx.sortedIcon('desc', column) ? (openBlock(), createBlock(_component_ArrowSortSvg, {
|
|
9752
9794
|
key: 0,
|
|
9753
9795
|
"class": "inline-block w-full text-grey-base"
|
|
9754
9796
|
})) : createCommentVNode("", true), _ctx.sortedIcon('asc', column) ? (openBlock(), createBlock(_component_ArrowDownSvg, {
|
|
@@ -9757,10 +9799,10 @@ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9757
9799
|
})) : createCommentVNode("", true), _ctx.sortedIcon('desc', column) ? (openBlock(), createBlock(_component_ArrowDownSvg, {
|
|
9758
9800
|
key: 2,
|
|
9759
9801
|
"class": "inline-block w-4 text-primary"
|
|
9760
|
-
})) : createCommentVNode("", true)])) : createCommentVNode("", true)])], 42,
|
|
9802
|
+
})) : createCommentVNode("", true)])) : createCommentVNode("", true)])], 42, _hoisted_4$a)) : createCommentVNode("", true)], 64);
|
|
9761
9803
|
}), 128)), _ctx.$slots.head ? renderSlot(_ctx.$slots, "head", {
|
|
9762
9804
|
key: 1
|
|
9763
|
-
}) : createCommentVNode("", true)])]), createElementVNode("tbody",
|
|
9805
|
+
}) : createCommentVNode("", true)])]), createElementVNode("tbody", _hoisted_7$5, [_ctx.loading ? (openBlock(true), createElementBlock(Fragment, {
|
|
9764
9806
|
key: 0
|
|
9765
9807
|
}, renderList(_ctx.sortedData, function (row, trKey) {
|
|
9766
9808
|
return openBlock(), createElementBlock("tr", {
|
|
@@ -9768,10 +9810,10 @@ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9768
9810
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, function (column, colKey) {
|
|
9769
9811
|
return openBlock(), createElementBlock(Fragment, {
|
|
9770
9812
|
key: colKey
|
|
9771
|
-
}, [!_ctx.isDisabled(column) ? (openBlock(), createElementBlock("td",
|
|
9813
|
+
}, [!_ctx.isDisabled(column) ? (openBlock(), createElementBlock("td", _hoisted_8$4, [createVNode(_component_FwLoadingBar, {
|
|
9772
9814
|
"class": "w-full h-7"
|
|
9773
9815
|
})])) : createCommentVNode("", true)], 64);
|
|
9774
|
-
}), 128)), _ctx.$slots.row ? (openBlock(), createElementBlock("td",
|
|
9816
|
+
}), 128)), _ctx.$slots.row ? (openBlock(), createElementBlock("td", _hoisted_9$3, [createVNode(_component_FwLoadingBar, {
|
|
9775
9817
|
"class": "w-full h-7"
|
|
9776
9818
|
})])) : createCommentVNode("", true)]);
|
|
9777
9819
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, {
|
|
@@ -9797,20 +9839,51 @@ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9797
9839
|
key: 0,
|
|
9798
9840
|
"class": "py-2 pl-5 pr-3 text-left",
|
|
9799
9841
|
innerHTML: _ctx.formattedText(row, column)
|
|
9800
|
-
}, null, 8,
|
|
9842
|
+
}, null, 8, _hoisted_11$1)) : createCommentVNode("", true)], 64);
|
|
9801
9843
|
}), 128)), _ctx.$slots.row ? renderSlot(_ctx.$slots, "row", {
|
|
9802
9844
|
key: 1,
|
|
9803
9845
|
row: row
|
|
9804
|
-
}) : createCommentVNode("", true)], 42,
|
|
9805
|
-
}), 128))])], 10,
|
|
9846
|
+
}) : createCommentVNode("", true)], 42, _hoisted_10$1);
|
|
9847
|
+
}), 128))])], 10, _hoisted_2$n), _ctx.enablePagination ? (openBlock(), createElementBlock("div", _hoisted_12$1, [createVNode(_component_FwButton, {
|
|
9848
|
+
variant: 'tertiary',
|
|
9849
|
+
disabled: _ctx.currentPage === 1,
|
|
9850
|
+
size: "sm",
|
|
9851
|
+
"class": "border-grey-40",
|
|
9852
|
+
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
9853
|
+
return _ctx.pageArrowClick(false);
|
|
9854
|
+
})
|
|
9855
|
+
}, {
|
|
9856
|
+
"default": withCtx(function () {
|
|
9857
|
+
return [createVNode(_component_ChevronLeftSvg, {
|
|
9858
|
+
"class": "h-4 w-4",
|
|
9859
|
+
"stroke-width": "3"
|
|
9860
|
+
})];
|
|
9861
|
+
}),
|
|
9862
|
+
_: 1
|
|
9863
|
+
}, 8, ["disabled"]), renderSlot(_ctx.$slots, "page"), createVNode(_component_FwButton, {
|
|
9864
|
+
variant: 'tertiary',
|
|
9865
|
+
disabled: _ctx.currentPage === _ctx.maxPageAmount,
|
|
9866
|
+
size: "sm",
|
|
9867
|
+
"class": "border-grey-40",
|
|
9868
|
+
onClick: _cache[1] || (_cache[1] = function ($event) {
|
|
9869
|
+
return _ctx.pageArrowClick(true);
|
|
9870
|
+
})
|
|
9871
|
+
}, {
|
|
9872
|
+
"default": withCtx(function () {
|
|
9873
|
+
return [createVNode(_component_ChevronRightSvg, {
|
|
9874
|
+
"class": "h-4 w-4"
|
|
9875
|
+
})];
|
|
9876
|
+
}),
|
|
9877
|
+
_: 1
|
|
9878
|
+
}, 8, ["disabled"])])) : createCommentVNode("", true)]);
|
|
9806
9879
|
}
|
|
9807
9880
|
|
|
9808
|
-
var css_248z$a = ".fw-table-head--sortable[data-v-
|
|
9809
|
-
var stylesheet$a = ".fw-table-head--sortable[data-v-
|
|
9881
|
+
var css_248z$a = ".fw-table-head--sortable[data-v-b7ffd9d4]:hover{background-color:var(--11c7ec1c)}.fw-table-row[data-v-b7ffd9d4]:hover{background-color:var(--11c7ec1c)}";
|
|
9882
|
+
var stylesheet$a = ".fw-table-head--sortable[data-v-b7ffd9d4]:hover{background-color:var(--11c7ec1c)}.fw-table-row[data-v-b7ffd9d4]:hover{background-color:var(--11c7ec1c)}";
|
|
9810
9883
|
styleInject(css_248z$a);
|
|
9811
9884
|
|
|
9812
9885
|
__default__$6.render = render$f;
|
|
9813
|
-
__default__$6.__scopeId = "data-v-
|
|
9886
|
+
__default__$6.__scopeId = "data-v-b7ffd9d4";
|
|
9814
9887
|
|
|
9815
9888
|
var script$9 = defineComponent({
|
|
9816
9889
|
name: 'FwTableHead'
|
package/index.d.ts
CHANGED
|
@@ -123,6 +123,10 @@ declare const _default$m: vue.DefineComponent<{
|
|
|
123
123
|
type: BooleanConstructor;
|
|
124
124
|
default: boolean;
|
|
125
125
|
};
|
|
126
|
+
centerAlignInput: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
126
130
|
}, {
|
|
127
131
|
uuid: string;
|
|
128
132
|
inputBaseClass: vue.Ref<string>;
|
|
@@ -225,6 +229,10 @@ declare const _default$m: vue.DefineComponent<{
|
|
|
225
229
|
type: BooleanConstructor;
|
|
226
230
|
default: boolean;
|
|
227
231
|
};
|
|
232
|
+
centerAlignInput: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: boolean;
|
|
235
|
+
};
|
|
228
236
|
}>> & {
|
|
229
237
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
230
238
|
}, {
|
|
@@ -235,6 +243,7 @@ declare const _default$m: vue.DefineComponent<{
|
|
|
235
243
|
tabindex: string;
|
|
236
244
|
rounded: boolean;
|
|
237
245
|
enableErrors: boolean;
|
|
246
|
+
centerAlignInput: boolean;
|
|
238
247
|
}, {}>;
|
|
239
248
|
|
|
240
249
|
declare const _default$l: vue.DefineComponent<{
|
|
@@ -1282,6 +1291,9 @@ declare interface FwTableProps {
|
|
|
1282
1291
|
loading?: boolean;
|
|
1283
1292
|
clickableRows?: boolean;
|
|
1284
1293
|
autoSortColumn?: number;
|
|
1294
|
+
enablePagination?: boolean;
|
|
1295
|
+
totalAmount?: number;
|
|
1296
|
+
pageSize?: number;
|
|
1285
1297
|
}
|
|
1286
1298
|
|
|
1287
1299
|
declare interface FwAccordionProps {
|
|
@@ -1509,6 +1521,16 @@ declare const __default__$5: vue.DefineComponent<{
|
|
|
1509
1521
|
autoSortColumn: {
|
|
1510
1522
|
type: NumberConstructor;
|
|
1511
1523
|
};
|
|
1524
|
+
enablePagination: {
|
|
1525
|
+
type: BooleanConstructor;
|
|
1526
|
+
default: boolean;
|
|
1527
|
+
};
|
|
1528
|
+
totalAmount: {
|
|
1529
|
+
type: NumberConstructor;
|
|
1530
|
+
};
|
|
1531
|
+
pageSize: {
|
|
1532
|
+
type: NumberConstructor;
|
|
1533
|
+
};
|
|
1512
1534
|
}, {
|
|
1513
1535
|
columns: vue.ComputedRef<string[]>;
|
|
1514
1536
|
sortBy: vue.Ref<string>;
|
|
@@ -1522,7 +1544,10 @@ declare const __default__$5: vue.DefineComponent<{
|
|
|
1522
1544
|
isDisabled: (column: string) => boolean;
|
|
1523
1545
|
rowClicked: (row: FwTableItem) => void;
|
|
1524
1546
|
bgHoverColor: string;
|
|
1525
|
-
|
|
1547
|
+
currentPage: vue.Ref<number>;
|
|
1548
|
+
maxPageAmount: vue.Ref<number | undefined>;
|
|
1549
|
+
pageArrowClick: (next: boolean) => void;
|
|
1550
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("rowClicked" | "columnSorted" | "pageChanged")[], "rowClicked" | "columnSorted" | "pageChanged", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
1526
1551
|
items: {
|
|
1527
1552
|
type: PropType<FwTableItem[]>;
|
|
1528
1553
|
required: true;
|
|
@@ -1546,12 +1571,24 @@ declare const __default__$5: vue.DefineComponent<{
|
|
|
1546
1571
|
autoSortColumn: {
|
|
1547
1572
|
type: NumberConstructor;
|
|
1548
1573
|
};
|
|
1574
|
+
enablePagination: {
|
|
1575
|
+
type: BooleanConstructor;
|
|
1576
|
+
default: boolean;
|
|
1577
|
+
};
|
|
1578
|
+
totalAmount: {
|
|
1579
|
+
type: NumberConstructor;
|
|
1580
|
+
};
|
|
1581
|
+
pageSize: {
|
|
1582
|
+
type: NumberConstructor;
|
|
1583
|
+
};
|
|
1549
1584
|
}>> & {
|
|
1550
1585
|
onRowClicked?: ((...args: any[]) => any) | undefined;
|
|
1551
1586
|
onColumnSorted?: ((...args: any[]) => any) | undefined;
|
|
1587
|
+
onPageChanged?: ((...args: any[]) => any) | undefined;
|
|
1552
1588
|
}, {
|
|
1553
1589
|
loading: boolean;
|
|
1554
1590
|
clickableRows: boolean;
|
|
1591
|
+
enablePagination: boolean;
|
|
1555
1592
|
}, {}>;
|
|
1556
1593
|
|
|
1557
1594
|
declare const _default$c: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{}>>, {}, {}>;
|
package/package.json
CHANGED
|
@@ -98,6 +98,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
98
98
|
type: BooleanConstructor;
|
|
99
99
|
default: boolean;
|
|
100
100
|
};
|
|
101
|
+
centerAlignInput: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
101
105
|
}, {
|
|
102
106
|
uuid: string;
|
|
103
107
|
inputBaseClass: import("vue").Ref<string>;
|
|
@@ -200,6 +204,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
200
204
|
type: BooleanConstructor;
|
|
201
205
|
default: boolean;
|
|
202
206
|
};
|
|
207
|
+
centerAlignInput: {
|
|
208
|
+
type: BooleanConstructor;
|
|
209
|
+
default: boolean;
|
|
210
|
+
};
|
|
203
211
|
}>> & {
|
|
204
212
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
205
213
|
}, {
|
|
@@ -210,5 +218,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
218
|
tabindex: string;
|
|
211
219
|
rounded: boolean;
|
|
212
220
|
enableErrors: boolean;
|
|
221
|
+
centerAlignInput: boolean;
|
|
213
222
|
}, {}>;
|
|
214
223
|
export default _default;
|
|
@@ -24,6 +24,16 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
24
24
|
autoSortColumn: {
|
|
25
25
|
type: NumberConstructor;
|
|
26
26
|
};
|
|
27
|
+
enablePagination: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
totalAmount: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
};
|
|
34
|
+
pageSize: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
};
|
|
27
37
|
}, {
|
|
28
38
|
columns: import("vue").ComputedRef<string[]>;
|
|
29
39
|
sortBy: import("vue").Ref<string>;
|
|
@@ -37,7 +47,10 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
37
47
|
isDisabled: (column: string) => boolean;
|
|
38
48
|
rowClicked: (row: FwTableItem) => void;
|
|
39
49
|
bgHoverColor: string;
|
|
40
|
-
|
|
50
|
+
currentPage: import("vue").Ref<number>;
|
|
51
|
+
maxPageAmount: import("vue").Ref<number | undefined>;
|
|
52
|
+
pageArrowClick: (next: boolean) => void;
|
|
53
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("rowClicked" | "columnSorted" | "pageChanged")[], "rowClicked" | "columnSorted" | "pageChanged", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
54
|
items: {
|
|
42
55
|
type: PropType<FwTableItem[]>;
|
|
43
56
|
required: true;
|
|
@@ -61,11 +74,23 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
61
74
|
autoSortColumn: {
|
|
62
75
|
type: NumberConstructor;
|
|
63
76
|
};
|
|
77
|
+
enablePagination: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
totalAmount: {
|
|
82
|
+
type: NumberConstructor;
|
|
83
|
+
};
|
|
84
|
+
pageSize: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
};
|
|
64
87
|
}>> & {
|
|
65
88
|
onRowClicked?: ((...args: any[]) => any) | undefined;
|
|
66
89
|
onColumnSorted?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
onPageChanged?: ((...args: any[]) => any) | undefined;
|
|
67
91
|
}, {
|
|
68
92
|
loading: boolean;
|
|
69
93
|
clickableRows: boolean;
|
|
94
|
+
enablePagination: boolean;
|
|
70
95
|
}, {}>;
|
|
71
96
|
export default __default__;
|