@frollo/frollo-web-ui 6.0.2 → 6.0.4
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 +28 -19
- package/esm/{add-to-unscopables-cfb87985.js → add-to-unscopables-ee05b58f.js} +2 -2
- package/esm/{array-iteration-2181d2bd.js → array-iteration-8267bf22.js} +2 -2
- package/esm/{array-method-has-species-support-dfbd0c7f.js → array-method-has-species-support-6c675094.js} +1 -1
- package/esm/{array-method-is-strict-7dac83d7.js → array-method-is-strict-d313436f.js} +1 -1
- package/esm/{array-species-create-ff1f78e1.js → array-species-create-1c67e297.js} +2 -2
- package/esm/{classof-7ba4c6c3.js → classof-d44bf093.js} +1 -1
- package/esm/{create-property-1bf185fa.js → create-property-eb329361.js} +1 -1
- package/esm/{does-not-exceed-safe-integer-b66f7ee2.js → does-not-exceed-safe-integer-de37ce28.js} +1 -1
- package/esm/{es.array.concat-d9281ad1.js → es.array.concat-99b85557.js} +6 -6
- package/esm/{es.array.find-ee91a966.js → es.array.find-1ded15d5.js} +4 -4
- package/esm/{es.array.includes-d57031df.js → es.array.includes-08e25019.js} +3 -3
- package/esm/{es.array.map-582a2b69.js → es.array.map-c56ebffd.js} +4 -4
- package/esm/{es.date.to-string-dc67483a.js → es.date.to-string-15eb9936.js} +1 -1
- package/esm/{es.function.name-14d69869.js → es.function.name-6cafd747.js} +1 -1
- package/esm/{es.number.constructor-bed13ae4.js → es.number.constructor-fb16fe05.js} +2 -2
- package/esm/{es.object.to-string-31ad45ad.js → es.object.to-string-4b07c4d1.js} +2 -2
- package/esm/{es.string.includes-01e4d90f.js → es.string.includes-061e8272.js} +3 -3
- package/esm/{es.string.iterator-27b735a3.js → es.string.iterator-25db8cd2.js} +8 -8
- package/esm/{export-44690f0d.js → export-10c4adbc.js} +1 -1
- package/esm/{function-apply-5580128b.js → function-apply-e17cf65b.js} +1 -1
- package/esm/fw-accordion.js +11 -7
- package/esm/fw-animations.js +3 -3
- package/esm/fw-bar-chart.js +16 -16
- package/esm/{fw-button-cbaedd16.js → fw-button-c8502414.js} +1 -1
- package/esm/fw-button.js +6 -6
- package/esm/fw-checkbox.js +9 -9
- package/esm/fw-date-picker.js +10 -10
- package/esm/fw-drawer.js +6 -6
- package/esm/{fw-dropdown-3f1ae8ee.js → fw-dropdown-6856e66e.js} +3 -3
- package/esm/fw-dropdown.js +11 -11
- package/esm/{fw-image-9c1032f2.js → fw-image-aca2c61d.js} +10 -10
- package/esm/fw-image.js +17 -17
- package/esm/{fw-input-8fa201f7.js → fw-input-259e2e18.js} +4 -4
- package/esm/fw-input.js +14 -14
- package/esm/fw-loading.js +3 -3
- package/esm/fw-modal.js +6 -6
- package/esm/fw-navigation-menu.js +12 -10
- package/esm/fw-popover.js +7 -7
- package/esm/fw-progress-bar.js +3 -3
- package/esm/fw-provider-list.js +26 -26
- package/esm/fw-sidebar-menu.js +9 -8
- package/esm/{fw-table-row-cfbd796c.js → fw-table-row-23f78218.js} +18 -16
- package/esm/fw-table.js +11 -11
- package/esm/fw-tabs.js +9 -9
- package/esm/{fw-tag-749b4fc6.js → fw-tag-ac28200a.js} +2 -2
- package/esm/fw-tag.js +7 -7
- package/esm/fw-toast.js +15 -15
- package/esm/fw-transactions-card.js +17 -17
- package/esm/{index-95659c75.js → index-6758f755.js} +13 -13
- package/esm/index.js +38 -38
- package/esm/{object-create-200e3764.js → object-create-51bf02dc.js} +1 -1
- package/esm/{regexp-flags-8d5e20e1.js → regexp-flags-c09864e5.js} +3 -3
- package/esm/{web.timers-991ce9a8.js → web.timers-e406c8e6.js} +3 -3
- package/frollo-web-ui.esm.js +28 -19
- package/index.d.ts +9 -4
- package/package.json +1 -1
- package/types/components/fw-accordion/fw-accordion.vue.d.ts +4 -2
- package/types/components/fw-navigation-menu/index.types.d.ts +1 -0
- package/types/components/fw-sidebar-menu/index.types.d.ts +1 -0
- package/types/components/fw-table/fw-table.vue.d.ts +3 -2
- package/web-components/index.js +28 -19
- /package/esm/{is-forced-b8806e4b.js → is-forced-7cb3ee8f.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
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-
|
|
4
|
-
import './es.array.includes-
|
|
5
|
-
import './is-forced-
|
|
6
|
-
import './export-
|
|
7
|
-
import './add-to-unscopables-
|
|
8
|
-
import './object-create-
|
|
9
|
-
import './es.number.constructor-
|
|
10
|
-
import './classof-
|
|
11
|
-
import './array-iteration-
|
|
12
|
-
import './array-species-create-
|
|
13
|
-
import './array-method-is-strict-
|
|
14
|
-
import './es.object.to-string-
|
|
15
|
-
import './es.array.find-
|
|
16
|
-
import './es.string.iterator-
|
|
17
|
-
import './create-property-
|
|
18
|
-
import './web.timers-
|
|
19
|
-
import './function-apply-
|
|
3
|
+
import { s as script$2 } from './fw-image-aca2c61d.js';
|
|
4
|
+
import './es.array.includes-08e25019.js';
|
|
5
|
+
import './is-forced-7cb3ee8f.js';
|
|
6
|
+
import './export-10c4adbc.js';
|
|
7
|
+
import './add-to-unscopables-ee05b58f.js';
|
|
8
|
+
import './object-create-51bf02dc.js';
|
|
9
|
+
import './es.number.constructor-fb16fe05.js';
|
|
10
|
+
import './classof-d44bf093.js';
|
|
11
|
+
import './array-iteration-8267bf22.js';
|
|
12
|
+
import './array-species-create-1c67e297.js';
|
|
13
|
+
import './array-method-is-strict-d313436f.js';
|
|
14
|
+
import './es.object.to-string-4b07c4d1.js';
|
|
15
|
+
import './es.array.find-1ded15d5.js';
|
|
16
|
+
import './es.string.iterator-25db8cd2.js';
|
|
17
|
+
import './create-property-eb329361.js';
|
|
18
|
+
import './web.timers-e406c8e6.js';
|
|
19
|
+
import './function-apply-e17cf65b.js';
|
|
20
20
|
import './fw-loading-bar-f5ca605c.js';
|
|
21
21
|
import './style-inject.es-1f59c1d0.js';
|
|
22
22
|
import './index-bced3b35.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as toString$2 } from './es.number.constructor-
|
|
2
|
-
import { h as fails$5, g as global$3, p as functionCall, f as functionUncurryThis, u as shared$1, v as internalState, b as defineBuiltIn$1, w as wellKnownSymbol$2, c as createNonEnumerableProperty$1, e as toObject$2, n as anObject$2, x as isCallable$2, y as classofRaw, z as toIntegerOrInfinity$2, A as toLength$1, B as requireObjectCoercible$1, C as getMethod$1, i as toAbsoluteIndex$1, l as lengthOfArrayLike$1 } from './is-forced-
|
|
3
|
-
import { _ as _export } from './export-
|
|
4
|
-
import { r as regexpFlags$1, d as deletePropertyOrThrow$1 } from './regexp-flags-
|
|
5
|
-
import { a as objectCreate } from './object-create-
|
|
6
|
-
import { f as functionApply } from './function-apply-
|
|
7
|
-
import { s as stringMultibyte } from './es.string.iterator-
|
|
8
|
-
import './es.array.map-
|
|
9
|
-
import './es.function.name-
|
|
10
|
-
import { d as doesNotExceedSafeInteger$1 } from './does-not-exceed-safe-integer-
|
|
11
|
-
import { a as arraySpeciesCreate$1 } from './array-species-create-
|
|
12
|
-
import { c as createProperty$1 } from './create-property-
|
|
13
|
-
import { a as arrayMethodHasSpeciesSupport$1 } from './array-method-has-species-support-
|
|
1
|
+
import { t as toString$2 } from './es.number.constructor-fb16fe05.js';
|
|
2
|
+
import { h as fails$5, g as global$3, p as functionCall, f as functionUncurryThis, u as shared$1, v as internalState, b as defineBuiltIn$1, w as wellKnownSymbol$2, c as createNonEnumerableProperty$1, e as toObject$2, n as anObject$2, x as isCallable$2, y as classofRaw, z as toIntegerOrInfinity$2, A as toLength$1, B as requireObjectCoercible$1, C as getMethod$1, i as toAbsoluteIndex$1, l as lengthOfArrayLike$1 } from './is-forced-7cb3ee8f.js';
|
|
3
|
+
import { _ as _export } from './export-10c4adbc.js';
|
|
4
|
+
import { r as regexpFlags$1, d as deletePropertyOrThrow$1 } from './regexp-flags-c09864e5.js';
|
|
5
|
+
import { a as objectCreate } from './object-create-51bf02dc.js';
|
|
6
|
+
import { f as functionApply } from './function-apply-e17cf65b.js';
|
|
7
|
+
import { s as stringMultibyte } from './es.string.iterator-25db8cd2.js';
|
|
8
|
+
import './es.array.map-c56ebffd.js';
|
|
9
|
+
import './es.function.name-6cafd747.js';
|
|
10
|
+
import { d as doesNotExceedSafeInteger$1 } from './does-not-exceed-safe-integer-de37ce28.js';
|
|
11
|
+
import { a as arraySpeciesCreate$1 } from './array-species-create-1c67e297.js';
|
|
12
|
+
import { c as createProperty$1 } from './create-property-eb329361.js';
|
|
13
|
+
import { a as arrayMethodHasSpeciesSupport$1 } from './array-method-has-species-support-6c675094.js';
|
|
14
14
|
import { version as version$1, isProxy, toRaw, defineComponent, ref, shallowRef, onMounted, onBeforeUnmount, watch, h, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, toDisplayString, createCommentVNode, createVNode } from 'vue';
|
|
15
15
|
import { u as useColours } from './get-root-colours-865a52ba.js';
|
|
16
16
|
import { u as uniqueId } from './uniqueId-fe08534a.js';
|
package/esm/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as _unsupportedIterableToArray, s as script$i } from './index-
|
|
2
|
-
export { s as FwBarChart } from './index-
|
|
3
|
-
import { s as script$c } from './fw-image-
|
|
4
|
-
export { s as FwImage } from './fw-image-
|
|
5
|
-
import './es.object.to-string-
|
|
6
|
-
import { d as descriptors, f as functionUncurryThis, t as toIndexedObject$1, o as objectPropertyIsEnumerable } from './is-forced-
|
|
7
|
-
import { _ as _export } from './export-
|
|
8
|
-
import { o as objectKeys$1 } from './object-create-
|
|
1
|
+
import { _ as _unsupportedIterableToArray, s as script$i } from './index-6758f755.js';
|
|
2
|
+
export { s as FwBarChart } from './index-6758f755.js';
|
|
3
|
+
import { s as script$c } from './fw-image-aca2c61d.js';
|
|
4
|
+
export { s as FwImage } from './fw-image-aca2c61d.js';
|
|
5
|
+
import './es.object.to-string-4b07c4d1.js';
|
|
6
|
+
import { d as descriptors, f as functionUncurryThis, t as toIndexedObject$1, o as objectPropertyIsEnumerable } from './is-forced-7cb3ee8f.js';
|
|
7
|
+
import { _ as _export } from './export-10c4adbc.js';
|
|
8
|
+
import { o as objectKeys$1 } from './object-create-51bf02dc.js';
|
|
9
9
|
import './fw-form.js';
|
|
10
10
|
import './fw-input.js';
|
|
11
11
|
import { FwCheckbox as script$1 } from './fw-checkbox.js';
|
|
@@ -46,49 +46,49 @@ import { FwEmailPulse as __default__$5, FwSuccessPulse as __default__$6 } from '
|
|
|
46
46
|
export { FwEmailPulse, FwSuccessPulse } from './fw-animations.js';
|
|
47
47
|
import { F as Form } from './vee-validate.esm-a17a23c3.js';
|
|
48
48
|
export { F as FwForm } from './vee-validate.esm-a17a23c3.js';
|
|
49
|
-
import { s as script } from './fw-input-
|
|
50
|
-
export { s as FwInput } from './fw-input-
|
|
51
|
-
import { s as script$2 } from './fw-dropdown-
|
|
52
|
-
export { s as FwDropdown } from './fw-dropdown-
|
|
49
|
+
import { s as script } from './fw-input-259e2e18.js';
|
|
50
|
+
export { s as FwInput } from './fw-input-259e2e18.js';
|
|
51
|
+
import { s as script$2 } from './fw-dropdown-6856e66e.js';
|
|
52
|
+
export { s as FwDropdown } from './fw-dropdown-6856e66e.js';
|
|
53
53
|
import { s as script$3 } from './fw-card-1b6a67fe.js';
|
|
54
54
|
export { s as FwCard } from './fw-card-1b6a67fe.js';
|
|
55
|
-
import { s as script$4 } from './fw-button-
|
|
56
|
-
export { s as FwButton } from './fw-button-
|
|
57
|
-
import { _ as __default__ } from './fw-tag-
|
|
58
|
-
export { _ as FwTag } from './fw-tag-
|
|
59
|
-
import { _ as __default__$1, s as script$a, a as script$b } from './fw-table-row-
|
|
60
|
-
export { _ as FwTable, s as FwTableHead, a as FwTableRow } from './fw-table-row-
|
|
55
|
+
import { s as script$4 } from './fw-button-c8502414.js';
|
|
56
|
+
export { s as FwButton } from './fw-button-c8502414.js';
|
|
57
|
+
import { _ as __default__ } from './fw-tag-ac28200a.js';
|
|
58
|
+
export { _ as FwTag } from './fw-tag-ac28200a.js';
|
|
59
|
+
import { _ as __default__$1, s as script$a, a as script$b } from './fw-table-row-23f78218.js';
|
|
60
|
+
export { _ as FwTable, s as FwTableHead, a as FwTableRow } from './fw-table-row-23f78218.js';
|
|
61
61
|
import { s as script$d } from './fw-loading-bar-f5ca605c.js';
|
|
62
62
|
export { s as FwLoadingBar } from './fw-loading-bar-f5ca605c.js';
|
|
63
63
|
import { s as script$m } from './fw-loading-spinner-72d70258.js';
|
|
64
64
|
export { s as FwLoadingSpinner } from './fw-loading-spinner-72d70258.js';
|
|
65
65
|
import { _ as _defineProperty } from './defineProperty-b85f2e0f.js';
|
|
66
66
|
import { reactive, createApp, h } from 'vue';
|
|
67
|
-
import './es.number.constructor-
|
|
68
|
-
import './classof-
|
|
69
|
-
import './regexp-flags-
|
|
70
|
-
import './function-apply-
|
|
71
|
-
import './es.string.iterator-
|
|
72
|
-
import './array-iteration-
|
|
73
|
-
import './array-species-create-
|
|
74
|
-
import './create-property-
|
|
75
|
-
import './es.array.map-
|
|
76
|
-
import './array-method-has-species-support-
|
|
77
|
-
import './es.function.name-
|
|
78
|
-
import './does-not-exceed-safe-integer-
|
|
67
|
+
import './es.number.constructor-fb16fe05.js';
|
|
68
|
+
import './classof-d44bf093.js';
|
|
69
|
+
import './regexp-flags-c09864e5.js';
|
|
70
|
+
import './function-apply-e17cf65b.js';
|
|
71
|
+
import './es.string.iterator-25db8cd2.js';
|
|
72
|
+
import './array-iteration-8267bf22.js';
|
|
73
|
+
import './array-species-create-1c67e297.js';
|
|
74
|
+
import './create-property-eb329361.js';
|
|
75
|
+
import './es.array.map-c56ebffd.js';
|
|
76
|
+
import './array-method-has-species-support-6c675094.js';
|
|
77
|
+
import './es.function.name-6cafd747.js';
|
|
78
|
+
import './does-not-exceed-safe-integer-de37ce28.js';
|
|
79
79
|
import './get-root-colours-865a52ba.js';
|
|
80
80
|
import './uniqueId-fe08534a.js';
|
|
81
|
-
import './es.array.includes-
|
|
82
|
-
import './add-to-unscopables-
|
|
83
|
-
import './array-method-is-strict-
|
|
84
|
-
import './es.array.find-
|
|
85
|
-
import './web.timers-
|
|
81
|
+
import './es.array.includes-08e25019.js';
|
|
82
|
+
import './add-to-unscopables-ee05b58f.js';
|
|
83
|
+
import './array-method-is-strict-d313436f.js';
|
|
84
|
+
import './es.array.find-1ded15d5.js';
|
|
85
|
+
import './web.timers-e406c8e6.js';
|
|
86
86
|
import './index-bced3b35.js';
|
|
87
87
|
import './check-94a5917a.js';
|
|
88
88
|
import './style-inject.es-1f59c1d0.js';
|
|
89
|
-
import './es.array.concat-
|
|
90
|
-
import './es.string.includes-
|
|
91
|
-
import './es.date.to-string-
|
|
89
|
+
import './es.array.concat-99b85557.js';
|
|
90
|
+
import './es.string.includes-061e8272.js';
|
|
91
|
+
import './es.date.to-string-15eb9936.js';
|
|
92
92
|
import './index-0c5cae4f.js';
|
|
93
93
|
|
|
94
94
|
function _arrayWithHoles(arr) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as objectKeysInternal, U as enumBugKeys$2, d as descriptors, V as v8PrototypeDefineBug, G as objectDefineProperty, n as anObject$2, t as toIndexedObject$1, D as getBuiltIn$1, W as hiddenKeys$1, a as documentCreateElement$1, O as sharedKey$1 } from './is-forced-
|
|
1
|
+
import { T as objectKeysInternal, U as enumBugKeys$2, d as descriptors, V as v8PrototypeDefineBug, G as objectDefineProperty, n as anObject$2, t as toIndexedObject$1, D as getBuiltIn$1, W as hiddenKeys$1, a as documentCreateElement$1, O as sharedKey$1 } from './is-forced-7cb3ee8f.js';
|
|
2
2
|
|
|
3
3
|
var internalObjectKeys = objectKeysInternal;
|
|
4
4
|
var enumBugKeys$1 = enumBugKeys$2;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as toObject$1, h as fails$1, N as tryToString$1, n as anObject$1 } from './is-forced-
|
|
2
|
-
import { _ as _export } from './export-
|
|
3
|
-
import { o as objectKeys } from './object-create-
|
|
1
|
+
import { e as toObject$1, h as fails$1, N as tryToString$1, n as anObject$1 } from './is-forced-7cb3ee8f.js';
|
|
2
|
+
import { _ as _export } from './export-10c4adbc.js';
|
|
3
|
+
import { o as objectKeys } from './object-create-51bf02dc.js';
|
|
4
4
|
|
|
5
5
|
var es_object_keys = {};
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as functionUncurryThis, g as global$3, x as isCallable$1, j as engineUserAgent } from './is-forced-
|
|
2
|
-
import { _ as _export } from './export-
|
|
3
|
-
import { f as functionApply } from './function-apply-
|
|
1
|
+
import { f as functionUncurryThis, g as global$3, x as isCallable$1, j as engineUserAgent } from './is-forced-7cb3ee8f.js';
|
|
2
|
+
import { _ as _export } from './export-10c4adbc.js';
|
|
3
|
+
import { f as functionApply } from './function-apply-e17cf65b.js';
|
|
4
4
|
|
|
5
5
|
var web_timers = {};
|
|
6
6
|
|
package/frollo-web-ui.esm.js
CHANGED
|
@@ -7101,13 +7101,14 @@ function render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7101
7101
|
to: item.to,
|
|
7102
7102
|
external: item.external,
|
|
7103
7103
|
size: "md",
|
|
7104
|
-
"aria-current": "page"
|
|
7104
|
+
"aria-current": "page",
|
|
7105
|
+
onClick: item.onClick
|
|
7105
7106
|
}, {
|
|
7106
7107
|
"default": withCtx(function () {
|
|
7107
7108
|
return [createTextVNode(toDisplayString(item.label), 1)];
|
|
7108
7109
|
}),
|
|
7109
7110
|
_: 2
|
|
7110
|
-
}, 1032, ["href", "to", "external"]);
|
|
7111
|
+
}, 1032, ["href", "to", "external", "onClick"]);
|
|
7111
7112
|
}), 128))])])) : createCommentVNode("", true), _ctx.actionLabel ? (openBlock(), createElementBlock("div", _hoisted_5$a, [createVNode(_component_FwButton, {
|
|
7112
7113
|
onClick: _ctx.actionClicked,
|
|
7113
7114
|
size: "md",
|
|
@@ -7147,13 +7148,14 @@ function render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7147
7148
|
to: item.to,
|
|
7148
7149
|
external: item.external,
|
|
7149
7150
|
size: "md",
|
|
7150
|
-
"aria-current": "page"
|
|
7151
|
+
"aria-current": "page",
|
|
7152
|
+
onClick: item.onClick
|
|
7151
7153
|
}, {
|
|
7152
7154
|
"default": withCtx(function () {
|
|
7153
7155
|
return [createTextVNode(toDisplayString(item.label), 1)];
|
|
7154
7156
|
}),
|
|
7155
7157
|
_: 2
|
|
7156
|
-
}, 1032, ["href", "to", "external"]);
|
|
7158
|
+
}, 1032, ["href", "to", "external", "onClick"]);
|
|
7157
7159
|
}), 128))]), _ctx.actionLabel ? (openBlock(), createBlock(_component_FwButton, {
|
|
7158
7160
|
key: 0,
|
|
7159
7161
|
"class": "w-full rounded-md",
|
|
@@ -8198,7 +8200,7 @@ var __default__$6 = defineComponent({
|
|
|
8198
8200
|
ArrowDownSvg: render$A,
|
|
8199
8201
|
FwLoadingBar: script$b
|
|
8200
8202
|
},
|
|
8201
|
-
emits: ['rowClicked'],
|
|
8203
|
+
emits: ['rowClicked', 'columnSorted'],
|
|
8202
8204
|
props: {
|
|
8203
8205
|
items: {
|
|
8204
8206
|
type: Array,
|
|
@@ -8233,12 +8235,13 @@ var __default__$6 = defineComponent({
|
|
|
8233
8235
|
var currentSortedColumn = ref('');
|
|
8234
8236
|
onMounted(function () {
|
|
8235
8237
|
if (Number(props.autoSortColumn) >= 0) {
|
|
8236
|
-
sortColumn(columns.value[Number(props.autoSortColumn)]);
|
|
8238
|
+
sortColumn(columns.value[Number(props.autoSortColumn)], false);
|
|
8237
8239
|
}
|
|
8238
8240
|
});
|
|
8239
8241
|
var _useColours = useColours(),
|
|
8240
8242
|
bgHoverColor = _useColours.primaryFade5;
|
|
8241
8243
|
var sortColumn = function sortColumn(column) {
|
|
8244
|
+
var isAction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
8242
8245
|
if (!isColumnSortable(column)) return;
|
|
8243
8246
|
currentSortedColumn.value = column;
|
|
8244
8247
|
if (sortBy.value === column) {
|
|
@@ -8247,6 +8250,7 @@ var __default__$6 = defineComponent({
|
|
|
8247
8250
|
sortBy.value = column;
|
|
8248
8251
|
sortDirection.value = columnInitSort(column);
|
|
8249
8252
|
}
|
|
8253
|
+
if (isAction) ctx.emit('columnSorted', column, sortDirection.value);
|
|
8250
8254
|
};
|
|
8251
8255
|
var sortedData = computed(function () {
|
|
8252
8256
|
if (!sortBy.value) {
|
|
@@ -8321,7 +8325,7 @@ var __default__$6 = defineComponent({
|
|
|
8321
8325
|
var __injectCSSVars__$5 = function __injectCSSVars__() {
|
|
8322
8326
|
useCssVars(function (_ctx) {
|
|
8323
8327
|
return {
|
|
8324
|
-
"
|
|
8328
|
+
"1f1e2224": _ctx.bgHoverColor
|
|
8325
8329
|
};
|
|
8326
8330
|
});
|
|
8327
8331
|
};
|
|
@@ -8332,7 +8336,7 @@ __default__$6.setup = __setup__$5 ? function (props, ctx) {
|
|
|
8332
8336
|
} : __injectCSSVars__$5;
|
|
8333
8337
|
|
|
8334
8338
|
var _withScopeId$4 = function _withScopeId(n) {
|
|
8335
|
-
return pushScopeId("data-v-
|
|
8339
|
+
return pushScopeId("data-v-2b5e0ff2"), n = n(), popScopeId(), n;
|
|
8336
8340
|
};
|
|
8337
8341
|
var _hoisted_1$q = ["aria-busy"];
|
|
8338
8342
|
var _hoisted_2$o = {
|
|
@@ -8441,12 +8445,12 @@ function render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8441
8445
|
}), 128))])], 10, _hoisted_1$q);
|
|
8442
8446
|
}
|
|
8443
8447
|
|
|
8444
|
-
var css_248z$b = ".fw-table-head--sortable[data-v-
|
|
8445
|
-
var stylesheet$b = ".fw-table-head--sortable[data-v-
|
|
8448
|
+
var css_248z$b = ".fw-table-head--sortable[data-v-2b5e0ff2]:hover{background-color:var(--1f1e2224)}.fw-table-row[data-v-2b5e0ff2]:hover{background-color:var(--1f1e2224)}";
|
|
8449
|
+
var stylesheet$b = ".fw-table-head--sortable[data-v-2b5e0ff2]:hover{background-color:var(--1f1e2224)}.fw-table-row[data-v-2b5e0ff2]:hover{background-color:var(--1f1e2224)}";
|
|
8446
8450
|
styleInject(css_248z$b);
|
|
8447
8451
|
|
|
8448
8452
|
__default__$6.render = render$g;
|
|
8449
|
-
__default__$6.__scopeId = "data-v-
|
|
8453
|
+
__default__$6.__scopeId = "data-v-2b5e0ff2";
|
|
8450
8454
|
|
|
8451
8455
|
var script$a = defineComponent({
|
|
8452
8456
|
name: 'FwTableHead'
|
|
@@ -8485,6 +8489,7 @@ script$9.render = render$e;
|
|
|
8485
8489
|
|
|
8486
8490
|
var __default__$5 = defineComponent({
|
|
8487
8491
|
name: 'FwAccordion',
|
|
8492
|
+
emits: ['toggled'],
|
|
8488
8493
|
props: {
|
|
8489
8494
|
/**
|
|
8490
8495
|
* The header title of the accordion
|
|
@@ -8513,8 +8518,11 @@ var __default__$5 = defineComponent({
|
|
|
8513
8518
|
"default": true
|
|
8514
8519
|
}
|
|
8515
8520
|
},
|
|
8516
|
-
setup: function setup(props) {
|
|
8521
|
+
setup: function setup(props, ctx) {
|
|
8517
8522
|
var isOpen = ref(props.isOpened);
|
|
8523
|
+
watch(isOpen, function (newValue) {
|
|
8524
|
+
ctx.emit('toggled', newValue);
|
|
8525
|
+
});
|
|
8518
8526
|
var _useColours = useColours(),
|
|
8519
8527
|
bgHoverColor = _useColours.primaryFade5;
|
|
8520
8528
|
var beforeEnter = function beforeEnter(el) {
|
|
@@ -8542,7 +8550,7 @@ var __default__$5 = defineComponent({
|
|
|
8542
8550
|
var __injectCSSVars__$4 = function __injectCSSVars__() {
|
|
8543
8551
|
useCssVars(function (_ctx) {
|
|
8544
8552
|
return {
|
|
8545
|
-
"
|
|
8553
|
+
"5f2b9a00": _ctx.bgHoverColor
|
|
8546
8554
|
};
|
|
8547
8555
|
});
|
|
8548
8556
|
};
|
|
@@ -8553,7 +8561,7 @@ __default__$5.setup = __setup__$4 ? function (props, ctx) {
|
|
|
8553
8561
|
} : __injectCSSVars__$4;
|
|
8554
8562
|
|
|
8555
8563
|
var _withScopeId$3 = function _withScopeId(n) {
|
|
8556
|
-
return pushScopeId("data-v-
|
|
8564
|
+
return pushScopeId("data-v-a62b48c8"), n = n(), popScopeId(), n;
|
|
8557
8565
|
};
|
|
8558
8566
|
var _hoisted_1$n = {
|
|
8559
8567
|
"class": "fw-accordion rounded-sm border border-grey-40"
|
|
@@ -8598,12 +8606,12 @@ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8598
8606
|
}, 8, ["onBeforeEnter", "onEnter", "onBeforeLeave", "onLeave"])]);
|
|
8599
8607
|
}
|
|
8600
8608
|
|
|
8601
|
-
var css_248z$a = ".fw-accordion--header-open[data-v-
|
|
8602
|
-
var stylesheet$a = ".fw-accordion--header-open[data-v-
|
|
8609
|
+
var css_248z$a = ".fw-accordion--header-open[data-v-a62b48c8],.fw-accordion--header[data-v-a62b48c8]:focus-visible,.fw-accordion--header[data-v-a62b48c8]:hover{background-color:var(--5f2b9a00)}.fw-accordion--icon[data-v-a62b48c8]{position:relative}.fw-accordion--icon[data-v-a62b48c8]:after,.fw-accordion--icon[data-v-a62b48c8]:before{background:var(--colorBody);border-radius:3px;content:\"\";height:.2rem;left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out;width:1rem}.fw-accordion--icon[data-v-a62b48c8]:after{-webkit-transform:translate(-50%,-50%) rotate(90deg);-ms-transform:translate(-50%,-50%) rotate(90deg);transform:translate(-50%,-50%) rotate(90deg)}.fw-accordion--icon-open[data-v-a62b48c8]:after{width:0}";
|
|
8610
|
+
var stylesheet$a = ".fw-accordion--header-open[data-v-a62b48c8],.fw-accordion--header[data-v-a62b48c8]:focus-visible,.fw-accordion--header[data-v-a62b48c8]:hover{background-color:var(--5f2b9a00)}.fw-accordion--icon[data-v-a62b48c8]{position:relative}.fw-accordion--icon[data-v-a62b48c8]:after,.fw-accordion--icon[data-v-a62b48c8]:before{background:var(--colorBody);border-radius:3px;content:\"\";height:.2rem;left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out;width:1rem}.fw-accordion--icon[data-v-a62b48c8]:after{-webkit-transform:translate(-50%,-50%) rotate(90deg);-ms-transform:translate(-50%,-50%) rotate(90deg);transform:translate(-50%,-50%) rotate(90deg)}.fw-accordion--icon-open[data-v-a62b48c8]:after{width:0}";
|
|
8603
8611
|
styleInject(css_248z$a);
|
|
8604
8612
|
|
|
8605
8613
|
__default__$5.render = render$d;
|
|
8606
|
-
__default__$5.__scopeId = "data-v-
|
|
8614
|
+
__default__$5.__scopeId = "data-v-a62b48c8";
|
|
8607
8615
|
|
|
8608
8616
|
var es_array_from = {};
|
|
8609
8617
|
|
|
@@ -25640,13 +25648,14 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25640
25648
|
to: item.to,
|
|
25641
25649
|
external: item.external,
|
|
25642
25650
|
size: "lg",
|
|
25643
|
-
"aria-current": "page"
|
|
25651
|
+
"aria-current": "page",
|
|
25652
|
+
onClick: item.onClick
|
|
25644
25653
|
}, {
|
|
25645
25654
|
"default": withCtx(function () {
|
|
25646
25655
|
return [createTextVNode(toDisplayString(item.label), 1)];
|
|
25647
25656
|
}),
|
|
25648
25657
|
_: 2
|
|
25649
|
-
}, 1032, ["href", "to", "external"])) : createCommentVNode("", true)], 64);
|
|
25658
|
+
}, 1032, ["href", "to", "external", "onClick"])) : createCommentVNode("", true)], 64);
|
|
25650
25659
|
}), 128))])])) : createCommentVNode("", true)];
|
|
25651
25660
|
}),
|
|
25652
25661
|
_: 3
|
package/index.d.ts
CHANGED
|
@@ -755,6 +755,7 @@ declare interface NavMenuItem {
|
|
|
755
755
|
href?: string;
|
|
756
756
|
label: string;
|
|
757
757
|
external?: boolean;
|
|
758
|
+
onClick?: () => void;
|
|
758
759
|
}
|
|
759
760
|
|
|
760
761
|
declare const _default$h: vue.DefineComponent<{
|
|
@@ -1220,6 +1221,7 @@ declare interface FwSidebarMenuItem {
|
|
|
1220
1221
|
label: string;
|
|
1221
1222
|
external?: boolean;
|
|
1222
1223
|
disabled?: boolean;
|
|
1224
|
+
onClick?: () => void;
|
|
1223
1225
|
}
|
|
1224
1226
|
|
|
1225
1227
|
declare interface FwDrawerProps {
|
|
@@ -1373,7 +1375,7 @@ declare const __default__$5: vue.DefineComponent<{
|
|
|
1373
1375
|
columns: vue.ComputedRef<string[]>;
|
|
1374
1376
|
sortBy: vue.Ref<string>;
|
|
1375
1377
|
sortDirection: vue.Ref<FwTableSort>;
|
|
1376
|
-
sortColumn: (column: string) => void;
|
|
1378
|
+
sortColumn: (column: string, isAction?: boolean) => void;
|
|
1377
1379
|
sortedData: vue.ComputedRef<FwTableItem[]>;
|
|
1378
1380
|
currentSortedColumn: vue.Ref<string>;
|
|
1379
1381
|
sortedIcon: (sortDir: string, column: string) => boolean;
|
|
@@ -1382,7 +1384,7 @@ declare const __default__$5: vue.DefineComponent<{
|
|
|
1382
1384
|
isDisabled: (column: string) => boolean;
|
|
1383
1385
|
rowClicked: (row: FwTableItem) => void;
|
|
1384
1386
|
bgHoverColor: string;
|
|
1385
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "rowClicked"[], "rowClicked", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
1387
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("rowClicked" | "columnSorted")[], "rowClicked" | "columnSorted", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
1386
1388
|
items: {
|
|
1387
1389
|
type: PropType<FwTableItem[]>;
|
|
1388
1390
|
required: true;
|
|
@@ -1408,6 +1410,7 @@ declare const __default__$5: vue.DefineComponent<{
|
|
|
1408
1410
|
};
|
|
1409
1411
|
}>> & {
|
|
1410
1412
|
onRowClicked?: ((...args: any[]) => any) | undefined;
|
|
1413
|
+
onColumnSorted?: ((...args: any[]) => any) | undefined;
|
|
1411
1414
|
}, {
|
|
1412
1415
|
loading: boolean;
|
|
1413
1416
|
clickableRows: boolean;
|
|
@@ -1451,7 +1454,7 @@ declare const __default__$4: vue.DefineComponent<{
|
|
|
1451
1454
|
beforeLeave: (el: Element) => void;
|
|
1452
1455
|
leave: (el: Element) => void;
|
|
1453
1456
|
bgHoverColor: string;
|
|
1454
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin,
|
|
1457
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "toggled"[], "toggled", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
1455
1458
|
/**
|
|
1456
1459
|
* The header title of the accordion
|
|
1457
1460
|
*/
|
|
@@ -1478,7 +1481,9 @@ declare const __default__$4: vue.DefineComponent<{
|
|
|
1478
1481
|
type: BooleanConstructor;
|
|
1479
1482
|
default: boolean;
|
|
1480
1483
|
};
|
|
1481
|
-
}
|
|
1484
|
+
}>> & {
|
|
1485
|
+
onToggled?: ((...args: any[]) => any) | undefined;
|
|
1486
|
+
}, {
|
|
1482
1487
|
isOpened: boolean;
|
|
1483
1488
|
iconPositionStart: boolean;
|
|
1484
1489
|
}>;
|
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
32
32
|
beforeLeave: (el: Element) => void;
|
|
33
33
|
leave: (el: Element) => void;
|
|
34
34
|
bgHoverColor: string;
|
|
35
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggled"[], "toggled", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
36
|
/**
|
|
37
37
|
* The header title of the accordion
|
|
38
38
|
*/
|
|
@@ -59,7 +59,9 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
59
59
|
type: BooleanConstructor;
|
|
60
60
|
default: boolean;
|
|
61
61
|
};
|
|
62
|
-
}
|
|
62
|
+
}>> & {
|
|
63
|
+
onToggled?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
}, {
|
|
63
65
|
isOpened: boolean;
|
|
64
66
|
iconPositionStart: boolean;
|
|
65
67
|
}>;
|
|
@@ -28,7 +28,7 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
28
28
|
columns: import("vue").ComputedRef<string[]>;
|
|
29
29
|
sortBy: import("vue").Ref<string>;
|
|
30
30
|
sortDirection: import("vue").Ref<FwTableSort>;
|
|
31
|
-
sortColumn: (column: string) => void;
|
|
31
|
+
sortColumn: (column: string, isAction?: boolean) => void;
|
|
32
32
|
sortedData: import("vue").ComputedRef<FwTableItem[]>;
|
|
33
33
|
currentSortedColumn: import("vue").Ref<string>;
|
|
34
34
|
sortedIcon: (sortDir: string, column: string) => boolean;
|
|
@@ -37,7 +37,7 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
37
37
|
isDisabled: (column: string) => boolean;
|
|
38
38
|
rowClicked: (row: FwTableItem) => void;
|
|
39
39
|
bgHoverColor: string;
|
|
40
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "rowClicked"[], "rowClicked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("rowClicked" | "columnSorted")[], "rowClicked" | "columnSorted", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
41
|
items: {
|
|
42
42
|
type: PropType<FwTableItem[]>;
|
|
43
43
|
required: true;
|
|
@@ -63,6 +63,7 @@ declare const __default__: import("vue").DefineComponent<{
|
|
|
63
63
|
};
|
|
64
64
|
}>> & {
|
|
65
65
|
onRowClicked?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
onColumnSorted?: ((...args: any[]) => any) | undefined;
|
|
66
67
|
}, {
|
|
67
68
|
loading: boolean;
|
|
68
69
|
clickableRows: boolean;
|