@frollo/frollo-web-ui 3.0.2 → 4.0.0
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 +277 -210
- package/esm/fw-animations.js +2 -2
- package/esm/{fw-button-0401f207.js → fw-button-e8b1bd62.js} +1 -1
- package/esm/fw-button.js +3 -3
- package/esm/fw-dropdown.js +1 -1
- package/esm/{fw-image-03f85465.js → fw-image-3fa960e1.js} +1 -1
- package/esm/fw-image.js +2 -2
- package/esm/{fw-loading-spinner-164d8df0.js → fw-loading-spinner-304e2f95.js} +1 -1
- package/esm/fw-modal.js +3 -3
- package/esm/fw-navigation-menu.js +3 -3
- package/esm/fw-sidebar-menu.js +3 -3
- package/esm/fw-table.js +91 -46
- package/esm/fw-toast.js +1 -1
- package/esm/fw-transactions-card.js +2 -2
- package/esm/{index-692e4d19.js → index-c6458115.js} +120 -92
- package/esm/index.js +32 -32
- package/frollo-web-ui.esm.js +314 -241
- package/icons/arrow-down.svg +3 -0
- package/icons/arrow-sort.svg +3 -0
- package/icons/index.ts +5 -1
- package/index.d.ts +30 -16
- package/package.json +1 -1
- package/types/components/fw-table/fw-table.vue.d.ts +18 -5
- package/types/components/fw-table/index.types.d.ts +1 -0
- package/types/icons/index.d.ts +3 -1
- package/web-components/index.js +317 -244
package/esm/fw-animations.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './es.number.constructor-1249bd78.js';
|
|
2
2
|
import { defineComponent, useCssVars, pushScopeId, popScopeId, createElementVNode, openBlock, createElementBlock, createStaticVNode } from 'vue';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
4
|
-
export { s as FwLoadingSpinner } from './fw-loading-spinner-
|
|
4
|
+
export { s as FwLoadingSpinner } from './fw-loading-spinner-304e2f95.js';
|
|
5
5
|
import './is-forced-752b5893.js';
|
|
6
6
|
import './to-string-12728fd2.js';
|
|
7
7
|
import './classof-39c30bd5.js';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-c6458115.js';
|
|
9
9
|
import './check-94a5917a.js';
|
|
10
10
|
|
|
11
11
|
var __default__$1 = defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './es.array.includes-91be7771.js';
|
|
2
2
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementBlock, createElementVNode, renderSlot, createVNode, createCommentVNode } from 'vue';
|
|
3
|
-
import { s as script$1 } from './fw-loading-spinner-
|
|
3
|
+
import { s as script$1 } from './fw-loading-spinner-304e2f95.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
5
5
|
|
|
6
6
|
var script = defineComponent({
|
package/esm/fw-button.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as FwButton } from './fw-button-
|
|
1
|
+
export { s as FwButton } from './fw-button-e8b1bd62.js';
|
|
2
2
|
import './es.array.includes-91be7771.js';
|
|
3
3
|
import './is-forced-752b5893.js';
|
|
4
4
|
import './export-a37ba078.js';
|
|
@@ -6,7 +6,7 @@ import './add-to-unscopables-2400f45b.js';
|
|
|
6
6
|
import './object-create-f6f3a673.js';
|
|
7
7
|
import './object-keys-4f5bf4e7.js';
|
|
8
8
|
import 'vue';
|
|
9
|
-
import './fw-loading-spinner-
|
|
10
|
-
import './index-
|
|
9
|
+
import './fw-loading-spinner-304e2f95.js';
|
|
10
|
+
import './index-c6458115.js';
|
|
11
11
|
import './check-94a5917a.js';
|
|
12
12
|
import './style-inject.es-1f59c1d0.js';
|
package/esm/fw-dropdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './es.array.find-dfa1f42f.js';
|
|
2
2
|
import { defineComponent, toRef, ref, computed, onMounted, onBeforeUnmount, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, normalizeClass, createVNode, Transition, withCtx, Fragment, renderList } from 'vue';
|
|
3
3
|
import { u as useField } from './vee-validate.esm-a17a23c3.js';
|
|
4
|
-
import { a as render$1 } from './index-
|
|
4
|
+
import { a as render$1 } from './index-c6458115.js';
|
|
5
5
|
import './es.function.name-557cb1f9.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
import './is-forced-752b5893.js';
|
|
@@ -9,7 +9,7 @@ import { _ as _export } from './export-a37ba078.js';
|
|
|
9
9
|
import { a as arrayIteration } from './array-iteration-107f927f.js';
|
|
10
10
|
import { a as arrayMethodIsStrict$1 } from './array-method-is-strict-055b1830.js';
|
|
11
11
|
import { s as script$1 } from './fw-loading-bar-f5ca605c.js';
|
|
12
|
-
import { r as render$1 } from './index-
|
|
12
|
+
import { r as render$1 } from './index-c6458115.js';
|
|
13
13
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
14
14
|
|
|
15
15
|
var es_array_forEach = {};
|
package/esm/fw-image.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as FwImage } from './fw-image-
|
|
1
|
+
export { s as FwImage } from './fw-image-3fa960e1.js';
|
|
2
2
|
import './es.array.includes-91be7771.js';
|
|
3
3
|
import './is-forced-752b5893.js';
|
|
4
4
|
import './export-a37ba078.js';
|
|
@@ -19,5 +19,5 @@ import './function-apply-ce251590.js';
|
|
|
19
19
|
import './array-method-is-strict-055b1830.js';
|
|
20
20
|
import './fw-loading-bar-f5ca605c.js';
|
|
21
21
|
import './style-inject.es-1f59c1d0.js';
|
|
22
|
-
import './index-
|
|
22
|
+
import './index-c6458115.js';
|
|
23
23
|
import './check-94a5917a.js';
|
package/esm/fw-modal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './es.array.includes-91be7771.js';
|
|
2
2
|
import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, createElementBlock, createElementVNode, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from 'vue';
|
|
3
|
-
import { s as script$1 } from './fw-button-
|
|
3
|
+
import { s as script$1 } from './fw-button-e8b1bd62.js';
|
|
4
4
|
import { u as uniqueId } from './uniqueId-fe08534a.js';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
import './is-forced-752b5893.js';
|
|
@@ -8,8 +8,8 @@ import './export-a37ba078.js';
|
|
|
8
8
|
import './add-to-unscopables-2400f45b.js';
|
|
9
9
|
import './object-create-f6f3a673.js';
|
|
10
10
|
import './object-keys-4f5bf4e7.js';
|
|
11
|
-
import './fw-loading-spinner-
|
|
12
|
-
import './index-
|
|
11
|
+
import './fw-loading-spinner-304e2f95.js';
|
|
12
|
+
import './index-c6458115.js';
|
|
13
13
|
import './check-94a5917a.js';
|
|
14
14
|
|
|
15
15
|
var script = defineComponent({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, createElementVNode, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
2
|
+
import { s as script$1 } from './fw-button-e8b1bd62.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
4
4
|
import './es.array.includes-91be7771.js';
|
|
5
5
|
import './is-forced-752b5893.js';
|
|
@@ -7,8 +7,8 @@ import './export-a37ba078.js';
|
|
|
7
7
|
import './add-to-unscopables-2400f45b.js';
|
|
8
8
|
import './object-create-f6f3a673.js';
|
|
9
9
|
import './object-keys-4f5bf4e7.js';
|
|
10
|
-
import './fw-loading-spinner-
|
|
11
|
-
import './index-
|
|
10
|
+
import './fw-loading-spinner-304e2f95.js';
|
|
11
|
+
import './index-c6458115.js';
|
|
12
12
|
import './check-94a5917a.js';
|
|
13
13
|
|
|
14
14
|
var script = defineComponent({
|
package/esm/fw-sidebar-menu.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Transition, renderSlot, createCommentVNode, createElementVNode, Fragment, renderList, createBlock, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
3
|
-
import {
|
|
2
|
+
import { s as script$1 } from './fw-button-e8b1bd62.js';
|
|
3
|
+
import { g as render$1 } from './index-c6458115.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
5
5
|
import './es.array.includes-91be7771.js';
|
|
6
6
|
import './is-forced-752b5893.js';
|
|
@@ -8,7 +8,7 @@ import './export-a37ba078.js';
|
|
|
8
8
|
import './add-to-unscopables-2400f45b.js';
|
|
9
9
|
import './object-create-f6f3a673.js';
|
|
10
10
|
import './object-keys-4f5bf4e7.js';
|
|
11
|
-
import './fw-loading-spinner-
|
|
11
|
+
import './fw-loading-spinner-304e2f95.js';
|
|
12
12
|
import './check-94a5917a.js';
|
|
13
13
|
|
|
14
14
|
var script = defineComponent({
|
package/esm/fw-table.js
CHANGED
|
@@ -4,13 +4,13 @@ import { _ as _export } from './export-a37ba078.js';
|
|
|
4
4
|
import { t as toString$1 } from './to-string-12728fd2.js';
|
|
5
5
|
import { c as createProperty$1 } from './create-property-534611fd.js';
|
|
6
6
|
import { a as arrayMethodIsStrict$1 } from './array-method-is-strict-055b1830.js';
|
|
7
|
-
import { b as render$3 } from './index-
|
|
8
|
-
import { defineComponent, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, withKeys, toDisplayString,
|
|
9
|
-
import { s as script$
|
|
7
|
+
import { b as render$3, c as render$4 } from './index-c6458115.js';
|
|
8
|
+
import { defineComponent, computed, ref, useCssVars, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, withKeys, toDisplayString, createBlock, createCommentVNode, renderSlot, createVNode } from 'vue';
|
|
9
|
+
import { s as script$2 } from './fw-loading-bar-f5ca605c.js';
|
|
10
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
10
11
|
import './object-keys-4f5bf4e7.js';
|
|
11
12
|
import './classof-39c30bd5.js';
|
|
12
13
|
import './check-94a5917a.js';
|
|
13
|
-
import './style-inject.es-1f59c1d0.js';
|
|
14
14
|
|
|
15
15
|
var es_array_sort = {};
|
|
16
16
|
|
|
@@ -199,12 +199,14 @@ $({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
199
199
|
}
|
|
200
200
|
});
|
|
201
201
|
|
|
202
|
-
var
|
|
202
|
+
var __default__ = defineComponent({
|
|
203
203
|
name: 'FwTable',
|
|
204
204
|
components: {
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
ArrowSortSvg: render$3,
|
|
206
|
+
ArrowDownSvg: render$4,
|
|
207
|
+
FwLoadingBar: script$2
|
|
207
208
|
},
|
|
209
|
+
emits: ['rowClicked'],
|
|
208
210
|
props: {
|
|
209
211
|
items: {
|
|
210
212
|
type: Array,
|
|
@@ -217,15 +219,22 @@ var script$2 = defineComponent({
|
|
|
217
219
|
loading: {
|
|
218
220
|
type: Boolean,
|
|
219
221
|
"default": false
|
|
222
|
+
},
|
|
223
|
+
clickableRows: {
|
|
224
|
+
type: Boolean,
|
|
225
|
+
"default": false
|
|
220
226
|
}
|
|
221
227
|
},
|
|
222
|
-
setup: function setup(props) {
|
|
228
|
+
setup: function setup(props, ctx) {
|
|
223
229
|
var columns = computed(function () {
|
|
224
230
|
return Object.keys(props.items[0]);
|
|
225
231
|
});
|
|
226
232
|
var sortBy = ref('');
|
|
227
233
|
var sortDirection = ref('asc');
|
|
228
234
|
var currentSortedColumn = ref('');
|
|
235
|
+
var style = getComputedStyle(document.body);
|
|
236
|
+
var colorPrimary = style.getPropertyValue('--colorPrimary');
|
|
237
|
+
var bgHoverColor = "".concat(colorPrimary, "0d"); // Adds 5% transparency
|
|
229
238
|
var sortColumn = function sortColumn(column) {
|
|
230
239
|
if (!isColumnSortable(column)) return;
|
|
231
240
|
currentSortedColumn.value = column;
|
|
@@ -261,10 +270,10 @@ var script$2 = defineComponent({
|
|
|
261
270
|
var sortedIcon = function sortedIcon(sortDir, column) {
|
|
262
271
|
if (currentSortedColumn.value === column) {
|
|
263
272
|
if (sortDirection.value === sortDir) {
|
|
264
|
-
return
|
|
273
|
+
return true;
|
|
265
274
|
}
|
|
266
275
|
}
|
|
267
|
-
return
|
|
276
|
+
return false;
|
|
268
277
|
};
|
|
269
278
|
var isColumnSortable = function isColumnSortable(column) {
|
|
270
279
|
if (props.options && props.options[column]) {
|
|
@@ -280,6 +289,9 @@ var script$2 = defineComponent({
|
|
|
280
289
|
}
|
|
281
290
|
return false;
|
|
282
291
|
};
|
|
292
|
+
var rowClicked = function rowClicked(row) {
|
|
293
|
+
if (props.clickableRows) ctx.emit('rowClicked', row);
|
|
294
|
+
};
|
|
283
295
|
return {
|
|
284
296
|
columns: columns,
|
|
285
297
|
sortBy: sortBy,
|
|
@@ -290,65 +302,86 @@ var script$2 = defineComponent({
|
|
|
290
302
|
sortedIcon: sortedIcon,
|
|
291
303
|
formattedText: formattedText,
|
|
292
304
|
isColumnSortable: isColumnSortable,
|
|
293
|
-
isDisabled: isDisabled
|
|
305
|
+
isDisabled: isDisabled,
|
|
306
|
+
rowClicked: rowClicked,
|
|
307
|
+
bgHoverColor: bgHoverColor
|
|
294
308
|
};
|
|
295
309
|
}
|
|
296
310
|
});
|
|
297
|
-
|
|
311
|
+
var __injectCSSVars__ = function __injectCSSVars__() {
|
|
312
|
+
useCssVars(function (_ctx) {
|
|
313
|
+
return {
|
|
314
|
+
"1172a117": _ctx.bgHoverColor
|
|
315
|
+
};
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
var __setup__ = __default__.setup;
|
|
319
|
+
__default__.setup = __setup__ ? function (props, ctx) {
|
|
320
|
+
__injectCSSVars__();
|
|
321
|
+
return __setup__(props, ctx);
|
|
322
|
+
} : __injectCSSVars__;
|
|
323
|
+
|
|
324
|
+
var _withScopeId = function _withScopeId(n) {
|
|
325
|
+
return pushScopeId("data-v-1f477224"), n = n(), popScopeId(), n;
|
|
326
|
+
};
|
|
298
327
|
var _hoisted_1$2 = {
|
|
299
|
-
"class": "text-
|
|
328
|
+
"class": "text-p2 border-b border-grey-40"
|
|
300
329
|
};
|
|
301
330
|
var _hoisted_2$1 = ["tabindex", "onKeydown", "onClick"];
|
|
302
331
|
var _hoisted_3$1 = {
|
|
303
|
-
"class": "flex flex-row items-center
|
|
332
|
+
"class": "flex flex-row items-center"
|
|
304
333
|
};
|
|
305
334
|
var _hoisted_4 = {
|
|
306
|
-
|
|
335
|
+
key: 0,
|
|
336
|
+
"class": "ml-1 flex items-center justify-center w-5"
|
|
307
337
|
};
|
|
308
338
|
var _hoisted_5 = {
|
|
309
|
-
|
|
339
|
+
"class": "text-p2 bg-white font-light"
|
|
310
340
|
};
|
|
311
341
|
var _hoisted_6 = {
|
|
312
|
-
"class": "flex flex-col"
|
|
313
|
-
};
|
|
314
|
-
var _hoisted_7 = {
|
|
315
|
-
"class": "text-p-small bg-white font-light"
|
|
316
|
-
};
|
|
317
|
-
var _hoisted_8 = {
|
|
318
342
|
key: 0,
|
|
319
|
-
"class": "py-
|
|
343
|
+
"class": "py-4 px-5 text-left whitespace-nowrap"
|
|
320
344
|
};
|
|
321
|
-
var
|
|
345
|
+
var _hoisted_7 = {
|
|
322
346
|
key: 0,
|
|
323
|
-
"class": "py-
|
|
347
|
+
"class": "py-4 px-5 text-left whitespace-nowrap"
|
|
324
348
|
};
|
|
325
|
-
var
|
|
349
|
+
var _hoisted_8 = ["onClick", "tabindex", "onKeydown"];
|
|
350
|
+
var _hoisted_9 = ["innerHTML"];
|
|
326
351
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
327
|
-
var
|
|
352
|
+
var _component_ArrowSortSvg = resolveComponent("ArrowSortSvg");
|
|
353
|
+
var _component_ArrowDownSvg = resolveComponent("ArrowDownSvg");
|
|
328
354
|
var _component_FwLoadingBar = resolveComponent("FwLoadingBar");
|
|
329
355
|
return openBlock(), createElementBlock("table", {
|
|
330
|
-
"class": normalizeClass(["table-auto table-responsive rounded
|
|
356
|
+
"class": normalizeClass(["fw-table table-auto table-responsive rounded-md shadow-card", _ctx.loading ? 'cursor-wait' : ''])
|
|
331
357
|
}, [createElementVNode("thead", _hoisted_1$2, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, function (column, thKey) {
|
|
332
358
|
return openBlock(), createElementBlock(Fragment, {
|
|
333
359
|
key: thKey
|
|
334
360
|
}, [!_ctx.isDisabled(column) ? (openBlock(), createElementBlock("th", {
|
|
335
361
|
key: 0,
|
|
336
|
-
"class": normalizeClass(["py-
|
|
337
|
-
tabindex: _ctx.isColumnSortable(column) ?
|
|
362
|
+
"class": normalizeClass(["fw-table-head py-6 px-5 text-left font-medium", _ctx.isColumnSortable(column) ? 'cursor-pointer fw-table-head--sortable' : '']),
|
|
363
|
+
tabindex: _ctx.isColumnSortable(column) ? 0 : -1,
|
|
338
364
|
onKeydown: withKeys(function ($event) {
|
|
339
365
|
return _ctx.sortColumn(column);
|
|
340
366
|
}, ["enter", "space"]),
|
|
341
367
|
onClick: function onClick($event) {
|
|
342
368
|
return _ctx.sortColumn(column);
|
|
343
369
|
}
|
|
344
|
-
}, [createElementVNode("div", _hoisted_3$1, [createElementVNode("span",
|
|
345
|
-
"class": normalizeClass(
|
|
346
|
-
},
|
|
347
|
-
|
|
348
|
-
|
|
370
|
+
}, [createElementVNode("div", _hoisted_3$1, [createElementVNode("span", {
|
|
371
|
+
"class": normalizeClass(_ctx.sortedIcon('asc', column) || _ctx.sortedIcon('desc', column) ? 'text-primary' : '')
|
|
372
|
+
}, toDisplayString(column), 3), _ctx.isColumnSortable(column) ? (openBlock(), createElementBlock("span", _hoisted_4, [!_ctx.sortedIcon('asc', column) && !_ctx.sortedIcon('desc', column) ? (openBlock(), createBlock(_component_ArrowSortSvg, {
|
|
373
|
+
key: 0,
|
|
374
|
+
"class": "inline-block w-full text-grey-base"
|
|
375
|
+
})) : createCommentVNode("", true), _ctx.sortedIcon('desc', column) ? (openBlock(), createBlock(_component_ArrowDownSvg, {
|
|
376
|
+
key: 1,
|
|
377
|
+
"class": "inline-block w-4 text-primary rotate-180"
|
|
378
|
+
})) : createCommentVNode("", true), _ctx.sortedIcon('asc', column) ? (openBlock(), createBlock(_component_ArrowDownSvg, {
|
|
379
|
+
key: 2,
|
|
380
|
+
"class": "inline-block w-4 text-primary"
|
|
381
|
+
})) : createCommentVNode("", true)])) : createCommentVNode("", true)])], 42, _hoisted_2$1)) : createCommentVNode("", true)], 64);
|
|
349
382
|
}), 128)), _ctx.$slots.head ? renderSlot(_ctx.$slots, "head", {
|
|
350
383
|
key: 0
|
|
351
|
-
}) : createCommentVNode("", true)])]), createElementVNode("tbody",
|
|
384
|
+
}) : createCommentVNode("", true)])]), createElementVNode("tbody", _hoisted_5, [_ctx.loading ? (openBlock(true), createElementBlock(Fragment, {
|
|
352
385
|
key: 0
|
|
353
386
|
}, renderList(_ctx.sortedData, function (row, trKey) {
|
|
354
387
|
return openBlock(), createElementBlock("tr", {
|
|
@@ -356,44 +389,56 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
356
389
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, function (column, colKey) {
|
|
357
390
|
return openBlock(), createElementBlock(Fragment, {
|
|
358
391
|
key: colKey
|
|
359
|
-
}, [!_ctx.isDisabled(column) ? (openBlock(), createElementBlock("td",
|
|
392
|
+
}, [!_ctx.isDisabled(column) ? (openBlock(), createElementBlock("td", _hoisted_6, [createVNode(_component_FwLoadingBar, {
|
|
360
393
|
"class": "w-full h-7"
|
|
361
394
|
})])) : createCommentVNode("", true)], 64);
|
|
362
|
-
}), 128)), _ctx.$slots.row ? (openBlock(), createElementBlock("td",
|
|
395
|
+
}), 128)), _ctx.$slots.row ? (openBlock(), createElementBlock("td", _hoisted_7, [createVNode(_component_FwLoadingBar, {
|
|
363
396
|
"class": "w-full h-7"
|
|
364
397
|
})])) : createCommentVNode("", true)]);
|
|
365
398
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, {
|
|
366
399
|
key: 1
|
|
367
400
|
}, renderList(_ctx.sortedData, function (row, trKey) {
|
|
368
401
|
return openBlock(), createElementBlock("tr", {
|
|
369
|
-
"class": "border-b border-grey-40
|
|
402
|
+
"class": normalizeClass(["fw-table-row border-b border-grey-40", _ctx.clickableRows ? 'cursor-pointer' : '']),
|
|
403
|
+
onClick: function onClick($event) {
|
|
404
|
+
return _ctx.rowClicked(row);
|
|
405
|
+
},
|
|
406
|
+
tabindex: _ctx.clickableRows ? 0 : -1,
|
|
407
|
+
onKeydown: withKeys(function ($event) {
|
|
408
|
+
return _ctx.rowClicked(row);
|
|
409
|
+
}, ["enter", "space"]),
|
|
370
410
|
key: trKey
|
|
371
411
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, function (column, colKey) {
|
|
372
412
|
return openBlock(), createElementBlock(Fragment, {
|
|
373
413
|
key: colKey
|
|
374
414
|
}, [!_ctx.isDisabled(column) ? (openBlock(), createElementBlock("td", {
|
|
375
415
|
key: 0,
|
|
376
|
-
"class": "py-
|
|
416
|
+
"class": "py-4 px-5 text-left whitespace-nowrap",
|
|
377
417
|
innerHTML: _ctx.formattedText(row, column)
|
|
378
|
-
}, null, 8,
|
|
418
|
+
}, null, 8, _hoisted_9)) : createCommentVNode("", true)], 64);
|
|
379
419
|
}), 128)), _ctx.$slots.row ? renderSlot(_ctx.$slots, "row", {
|
|
380
420
|
key: 0,
|
|
381
421
|
row: row
|
|
382
|
-
}) : createCommentVNode("", true)]);
|
|
422
|
+
}) : createCommentVNode("", true)], 42, _hoisted_8);
|
|
383
423
|
}), 128))])], 2);
|
|
384
424
|
}
|
|
385
425
|
|
|
386
|
-
|
|
426
|
+
var css_248z = ".fw-table-head--sortable[data-v-1f477224]:hover{background-color:var(--1172a117)}.fw-table-row[data-v-1f477224]:hover{background-color:var(--1172a117)}";
|
|
427
|
+
var stylesheet = ".fw-table-head--sortable[data-v-1f477224]:hover{background-color:var(--1172a117)}.fw-table-row[data-v-1f477224]:hover{background-color:var(--1172a117)}";
|
|
428
|
+
styleInject(css_248z);
|
|
429
|
+
|
|
430
|
+
__default__.render = render$2;
|
|
431
|
+
__default__.__scopeId = "data-v-1f477224";
|
|
387
432
|
|
|
388
433
|
var script$1 = defineComponent({
|
|
389
434
|
name: 'FwTableHead'
|
|
390
435
|
});
|
|
391
436
|
|
|
392
437
|
var _hoisted_1$1 = {
|
|
393
|
-
"class": "py-
|
|
438
|
+
"class": "py-6 px-5 text-left font-medium"
|
|
394
439
|
};
|
|
395
440
|
var _hoisted_2 = {
|
|
396
|
-
"class": "flex flex-row
|
|
441
|
+
"class": "flex flex-row"
|
|
397
442
|
};
|
|
398
443
|
var _hoisted_3 = {
|
|
399
444
|
key: 0,
|
|
@@ -420,4 +465,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
420
465
|
|
|
421
466
|
script.render = render;
|
|
422
467
|
|
|
423
|
-
export {
|
|
468
|
+
export { __default__ as FwTable, script$1 as FwTableHead, script as FwTableRow };
|
package/esm/fw-toast.js
CHANGED
|
@@ -7,7 +7,7 @@ import './es.array.concat-987938be.js';
|
|
|
7
7
|
import './web.timers-0f117224.js';
|
|
8
8
|
import { defineComponent, ref, computed, onMounted, watchEffect, openBlock, createElementBlock, Fragment, createBlock, Teleport, createVNode, TransitionGroup, createCommentVNode, Transition, withCtx, normalizeClass, createElementVNode, resolveDynamicComponent, toDisplayString, renderSlot } from 'vue';
|
|
9
9
|
import { u as uniqueId } from './uniqueId-fe08534a.js';
|
|
10
|
-
import {
|
|
10
|
+
import { d as render$1, e as render$2, f as render$3 } from './index-c6458115.js';
|
|
11
11
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
12
12
|
import './add-to-unscopables-2400f45b.js';
|
|
13
13
|
import './object-create-f6f3a673.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createElementVNode, resolveComponent, openBlock, createBlock, withCtx, createCommentVNode, toDisplayString, createElementBlock } from 'vue';
|
|
2
2
|
import { s as script$1 } from './fw-card-1b6a67fe.js';
|
|
3
|
-
import { s as script$2 } from './fw-image-
|
|
3
|
+
import { s as script$2 } from './fw-image-3fa960e1.js';
|
|
4
4
|
import './es.array.includes-91be7771.js';
|
|
5
5
|
import './is-forced-752b5893.js';
|
|
6
6
|
import './export-a37ba078.js';
|
|
@@ -20,7 +20,7 @@ import './function-apply-ce251590.js';
|
|
|
20
20
|
import './array-method-is-strict-055b1830.js';
|
|
21
21
|
import './fw-loading-bar-f5ca605c.js';
|
|
22
22
|
import './style-inject.es-1f59c1d0.js';
|
|
23
|
-
import './index-
|
|
23
|
+
import './index-c6458115.js';
|
|
24
24
|
import './check-94a5917a.js';
|
|
25
25
|
|
|
26
26
|
var script = defineComponent({
|