@frollo/frollo-web-ui 8.4.2 → 8.4.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 +69 -33
- package/esm/{fw-button-LhSQ6Fx_.js → fw-button-NJeYig99.js} +25 -5
- package/esm/fw-button.js +1 -1
- package/esm/fw-drawer.js +1 -1
- package/esm/fw-media-picker.js +1 -1
- package/esm/fw-modal.js +1 -1
- package/esm/fw-navigation-menu.js +1 -1
- package/esm/fw-period-selector.js +15 -10
- package/esm/fw-provider-list.js +3 -3
- package/esm/fw-sidebar-menu.js +1 -1
- package/esm/{fw-table-row-suFSeIN3.js → fw-table-row-D5RqIgec.js} +25 -14
- package/esm/fw-table.js +2 -2
- package/esm/{fw-tag-CziUTbtg.js → fw-tag-D-U6RKuG.js} +1 -1
- package/esm/fw-tag.js +2 -2
- package/esm/index.js +3 -3
- package/frollo-web-ui.esm.js +68 -32
- package/index.d.ts +47 -3
- package/package.json +1 -1
- package/styles/tailwind.scss +3 -4
- package/tailwind.config.js +4 -0
- package/types/components/fw-button/fw-button.vue.d.ts +30 -0
- package/types/components/fw-button/index.types.d.ts +3 -1
- package/types/components/fw-period-selector/fw-period-selector.vue.d.ts +9 -0
- package/types/components/fw-table/fw-table.vue.d.ts +1 -1
- package/types/components/fw-table/index.types.d.ts +3 -0
- package/web-components/index.js +70 -34
package/cjs/index.js
CHANGED
|
@@ -8469,6 +8469,20 @@ function render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8469
8469
|
*/
|
|
8470
8470
|
external: {
|
|
8471
8471
|
type: Boolean
|
|
8472
|
+
},
|
|
8473
|
+
/**
|
|
8474
|
+
* Whether the button is disabled or not
|
|
8475
|
+
*/
|
|
8476
|
+
disabled: {
|
|
8477
|
+
type: Boolean,
|
|
8478
|
+
"default": false
|
|
8479
|
+
},
|
|
8480
|
+
/**
|
|
8481
|
+
* Whether the button is preselected or not
|
|
8482
|
+
*/
|
|
8483
|
+
active: {
|
|
8484
|
+
type: Boolean,
|
|
8485
|
+
"default": false
|
|
8472
8486
|
}
|
|
8473
8487
|
},
|
|
8474
8488
|
setup: function setup(props, ctx) {
|
|
@@ -8513,6 +8527,11 @@ function render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8513
8527
|
text: 'text-grey-base hover:text-primary active:text-primary',
|
|
8514
8528
|
background: 'bg-none hover:bg-white focus:bg-white active:bg-white',
|
|
8515
8529
|
border: 'border-transparent focus-visible:ring-1 focus-visible:ring-primary'
|
|
8530
|
+
},
|
|
8531
|
+
disabled: {
|
|
8532
|
+
text: 'text-white',
|
|
8533
|
+
background: 'bg-grey-base bg-opacity-60',
|
|
8534
|
+
border: ''
|
|
8516
8535
|
}
|
|
8517
8536
|
});
|
|
8518
8537
|
var sizes = vue.ref({
|
|
@@ -8601,13 +8620,14 @@ function render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8601
8620
|
function render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8602
8621
|
var _component_FwLoadingSpinner = vue.resolveComponent("FwLoadingSpinner");
|
|
8603
8622
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tagName), {
|
|
8604
|
-
"class": vue.normalizeClass(["fw-button", [_ctx.baseClass, _ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass, _ctx.rounded && _ctx.variant !== 'link' ? 'rounded-full' : 'rounded', _ctx.variant === 'link' ? 'pl-0 pr-0 pt-0 pb-0 font-normal rounded-1' : 'font-semibold', _ctx.animation === 'fade' ? 'animation--fade' : 'animation--alternate', _ctx.loading === true ? 'fw-button--loading cursor-progress' : 'cursor-pointer']]),
|
|
8623
|
+
"class": vue.normalizeClass(["fw-button", [_ctx.baseClass, _ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass, _ctx.rounded && _ctx.variant !== 'link' ? 'rounded-full' : 'rounded', _ctx.variant === 'link' ? 'pl-0 pr-0 pt-0 pb-0 font-normal rounded-1' : 'font-semibold', _ctx.animation === 'fade' ? 'animation--fade' : 'animation--alternate', _ctx.loading === true ? 'fw-button--loading cursor-progress' : 'cursor-pointer', _ctx.disabled && !_ctx.loading ? 'pointer-events-none text-grey-light' : '', _ctx.disabled && _ctx.active ? 'fw-button--disabled-active' : '']]),
|
|
8605
8624
|
type: _ctx.tagName === 'button' ? _ctx.buttonType : null,
|
|
8606
8625
|
to: _ctx.to ? _ctx.to : null,
|
|
8607
8626
|
href: _ctx.href ? _ctx.href : null,
|
|
8608
8627
|
tabindex: _ctx.to ? 0 : null,
|
|
8609
|
-
disabled: _ctx.loading,
|
|
8628
|
+
disabled: _ctx.loading || _ctx.disabled,
|
|
8610
8629
|
target: !!_ctx.external ? '_blank' : null,
|
|
8630
|
+
active: _ctx.active,
|
|
8611
8631
|
onClick: _ctx.onClick,
|
|
8612
8632
|
onFocusin: _ctx.onFocusin,
|
|
8613
8633
|
onFocusout: _ctx.onFocusout,
|
|
@@ -8629,9 +8649,9 @@ function render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8629
8649
|
})], 2)) : vue.createCommentVNode("", true)])) : vue.createCommentVNode("", true)];
|
|
8630
8650
|
}),
|
|
8631
8651
|
_: 3
|
|
8632
|
-
}, 40, ["class", "type", "to", "href", "tabindex", "disabled", "target", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
8633
|
-
}var css_248z$f = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-moz-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-moz-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}";
|
|
8634
|
-
var stylesheet$f = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-moz-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-moz-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}";
|
|
8652
|
+
}, 40, ["class", "type", "to", "href", "tabindex", "disabled", "target", "active", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
8653
|
+
}var css_248z$f = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-moz-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-moz-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--disabled-active{background:var(--colorButtonDisabled)!important;color:rgb(from var(--colorButtonDisabledText) r g b/.6)!important}";
|
|
8654
|
+
var stylesheet$f = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-moz-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-moz-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--disabled-active{background:var(--colorButtonDisabled)!important;color:rgb(from var(--colorButtonDisabledText) r g b/.6)!important}";
|
|
8635
8655
|
styleInject(css_248z$f);script$h.render = render$o;var script$g = vue.defineComponent({
|
|
8636
8656
|
name: 'FwNavigationMenu',
|
|
8637
8657
|
emits: ['action'],
|
|
@@ -9440,7 +9460,9 @@ styleInject(css_248z$c);__default__$7.render = render$i;var __default__$6 = vue.
|
|
|
9440
9460
|
type: Number
|
|
9441
9461
|
}
|
|
9442
9462
|
},
|
|
9443
|
-
setup: function setup(props,
|
|
9463
|
+
setup: function setup(props, _ref) {
|
|
9464
|
+
var emit = _ref.emit,
|
|
9465
|
+
expose = _ref.expose;
|
|
9444
9466
|
var columns = vue.computed(function () {
|
|
9445
9467
|
return Object.keys(props.items[0]);
|
|
9446
9468
|
});
|
|
@@ -9448,14 +9470,16 @@ styleInject(css_248z$c);__default__$7.render = render$i;var __default__$6 = vue.
|
|
|
9448
9470
|
var sortDirection = vue.ref('asc');
|
|
9449
9471
|
var currentSortedColumn = vue.ref('');
|
|
9450
9472
|
var currentPage = vue.ref(1);
|
|
9451
|
-
var maxPageAmount = vue.
|
|
9473
|
+
var maxPageAmount = vue.computed(function () {
|
|
9474
|
+
if (props.totalAmount && props.pageSize) {
|
|
9475
|
+
return Math.ceil(props.totalAmount / props.pageSize);
|
|
9476
|
+
}
|
|
9477
|
+
return undefined;
|
|
9478
|
+
});
|
|
9452
9479
|
vue.onMounted(function () {
|
|
9453
9480
|
if (Number(props.autoSortColumn) >= 0) {
|
|
9454
9481
|
sortColumn(columns.value[Number(props.autoSortColumn)], false);
|
|
9455
9482
|
}
|
|
9456
|
-
if (props.totalAmount && props.pageSize) {
|
|
9457
|
-
maxPageAmount.value = Math.ceil(props.totalAmount / props.pageSize);
|
|
9458
|
-
}
|
|
9459
9483
|
});
|
|
9460
9484
|
var _useColours = useColours(),
|
|
9461
9485
|
bgHoverColor = _useColours.primaryFade5;
|
|
@@ -9469,7 +9493,7 @@ styleInject(css_248z$c);__default__$7.render = render$i;var __default__$6 = vue.
|
|
|
9469
9493
|
sortBy.value = column;
|
|
9470
9494
|
sortDirection.value = columnInitSort(column);
|
|
9471
9495
|
}
|
|
9472
|
-
if (isAction)
|
|
9496
|
+
if (isAction) emit('columnSorted', column, sortDirection.value);
|
|
9473
9497
|
};
|
|
9474
9498
|
var sortedData = vue.computed(function () {
|
|
9475
9499
|
if (!sortBy.value) {
|
|
@@ -9523,12 +9547,19 @@ styleInject(css_248z$c);__default__$7.render = render$i;var __default__$6 = vue.
|
|
|
9523
9547
|
return false;
|
|
9524
9548
|
};
|
|
9525
9549
|
var rowClicked = function rowClicked(row) {
|
|
9526
|
-
if (props.clickableRows)
|
|
9550
|
+
if (props.clickableRows) emit('rowClicked', row);
|
|
9527
9551
|
};
|
|
9528
9552
|
var pageArrowClick = function pageArrowClick(next) {
|
|
9529
9553
|
currentPage.value = currentPage.value + (next ? 1 : -1);
|
|
9530
|
-
|
|
9554
|
+
emit('pageChanged', next);
|
|
9555
|
+
};
|
|
9556
|
+
var resetPage = function resetPage() {
|
|
9557
|
+
currentPage.value = 1;
|
|
9558
|
+
};
|
|
9559
|
+
var exposeApi = {
|
|
9560
|
+
resetPage: resetPage
|
|
9531
9561
|
};
|
|
9562
|
+
expose(exposeApi);
|
|
9532
9563
|
return {
|
|
9533
9564
|
columns: columns,
|
|
9534
9565
|
sortBy: sortBy,
|
|
@@ -9551,7 +9582,7 @@ styleInject(css_248z$c);__default__$7.render = render$i;var __default__$6 = vue.
|
|
|
9551
9582
|
var __injectCSSVars__$5 = function __injectCSSVars__() {
|
|
9552
9583
|
vue.useCssVars(function (_ctx) {
|
|
9553
9584
|
return {
|
|
9554
|
-
"
|
|
9585
|
+
"59fbcffe": _ctx.bgHoverColor
|
|
9555
9586
|
};
|
|
9556
9587
|
});
|
|
9557
9588
|
};
|
|
@@ -9560,7 +9591,7 @@ __default__$6.setup = __setup__$5 ? function (props, ctx) {
|
|
|
9560
9591
|
__injectCSSVars__$5();
|
|
9561
9592
|
return __setup__$5(props, ctx);
|
|
9562
9593
|
} : __injectCSSVars__$5;var _withScopeId$4 = function _withScopeId(n) {
|
|
9563
|
-
return vue.pushScopeId("data-v-
|
|
9594
|
+
return vue.pushScopeId("data-v-a1dc6c66"), n = n(), vue.popScopeId(), n;
|
|
9564
9595
|
};
|
|
9565
9596
|
var _hoisted_1$p = {
|
|
9566
9597
|
"class": "flex flex-col"
|
|
@@ -9708,10 +9739,10 @@ function render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9708
9739
|
}),
|
|
9709
9740
|
_: 1
|
|
9710
9741
|
}, 8, ["disabled"])])) : vue.createCommentVNode("", true)]);
|
|
9711
|
-
}var css_248z$b = ".fw-table-head--sortable[data-v-
|
|
9712
|
-
var stylesheet$b = ".fw-table-head--sortable[data-v-
|
|
9742
|
+
}var css_248z$b = ".fw-table-head--sortable[data-v-a1dc6c66]:hover{background-color:var(--59fbcffe)}.fw-table-row[data-v-a1dc6c66]:hover{background-color:var(--59fbcffe)}";
|
|
9743
|
+
var stylesheet$b = ".fw-table-head--sortable[data-v-a1dc6c66]:hover{background-color:var(--59fbcffe)}.fw-table-row[data-v-a1dc6c66]:hover{background-color:var(--59fbcffe)}";
|
|
9713
9744
|
styleInject(css_248z$b);__default__$6.render = render$h;
|
|
9714
|
-
__default__$6.__scopeId = "data-v-
|
|
9745
|
+
__default__$6.__scopeId = "data-v-a1dc6c66";var script$b = vue.defineComponent({
|
|
9715
9746
|
name: 'FwTableHead'
|
|
9716
9747
|
});var _hoisted_1$o = {
|
|
9717
9748
|
"class": "py-6 px-5 text-left font-medium"
|
|
@@ -34242,7 +34273,7 @@ function usePage() {
|
|
|
34242
34273
|
"Page context missing. Please verify this component is nested within a valid context provider."
|
|
34243
34274
|
);
|
|
34244
34275
|
}
|
|
34245
|
-
const _hoisted_1$5
|
|
34276
|
+
const _hoisted_1$5 = { class: "vc-nav-header" };
|
|
34246
34277
|
const _hoisted_2$4$1 = ["disabled"];
|
|
34247
34278
|
const _hoisted_3$3 = ["disabled"];
|
|
34248
34279
|
const _hoisted_4$2$1 = { class: "vc-nav-items" };
|
|
@@ -34392,7 +34423,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
34392
34423
|
ref_key: "navContainer",
|
|
34393
34424
|
ref: navContainer
|
|
34394
34425
|
}, [
|
|
34395
|
-
vue.createElementVNode("div", _hoisted_1$5
|
|
34426
|
+
vue.createElementVNode("div", _hoisted_1$5, [
|
|
34396
34427
|
vue.createElementVNode("button", {
|
|
34397
34428
|
type: "button",
|
|
34398
34429
|
class: "vc-nav-arrow is-left vc-focus",
|
|
@@ -36228,7 +36259,7 @@ var __setup__$3 = __default__$3.setup;
|
|
|
36228
36259
|
__default__$3.setup = __setup__$3 ? function (props, ctx) {
|
|
36229
36260
|
__injectCSSVars__$3();
|
|
36230
36261
|
return __setup__$3(props, ctx);
|
|
36231
|
-
} : __injectCSSVars__$3;var _hoisted_1$
|
|
36262
|
+
} : __injectCSSVars__$3;var _hoisted_1$4 = {
|
|
36232
36263
|
"class": "fw-date-picker w-full"
|
|
36233
36264
|
};
|
|
36234
36265
|
var _hoisted_2$4 = {
|
|
@@ -36277,7 +36308,7 @@ var _hoisted_18 = {
|
|
|
36277
36308
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36278
36309
|
var _component_CalendarDaySvg = vue.resolveComponent("CalendarDaySvg");
|
|
36279
36310
|
var _component_DatePicker = vue.resolveComponent("DatePicker");
|
|
36280
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
36311
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [vue.createVNode(_component_DatePicker, {
|
|
36281
36312
|
modelValue: _ctx.dateModel,
|
|
36282
36313
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
|
|
36283
36314
|
return _ctx.dateModel = $event;
|
|
@@ -36602,7 +36633,7 @@ __default__$2.setup = __setup__$2 ? function (props, ctx) {
|
|
|
36602
36633
|
} : __injectCSSVars__$2;var _withScopeId$2 = function _withScopeId(n) {
|
|
36603
36634
|
return vue.pushScopeId("data-v-6df01fae"), n = n(), vue.popScopeId(), n;
|
|
36604
36635
|
};
|
|
36605
|
-
var _hoisted_1$
|
|
36636
|
+
var _hoisted_1$3 = ["id", "aria-hidden"];
|
|
36606
36637
|
var _hoisted_2$3 = {
|
|
36607
36638
|
key: 0,
|
|
36608
36639
|
"data-popper-arrow": "",
|
|
@@ -36642,7 +36673,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36642
36673
|
})
|
|
36643
36674
|
}, [vue.renderSlot(_ctx.$slots, "content", {}, function () {
|
|
36644
36675
|
return [vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)];
|
|
36645
|
-
}), _ctx.showArrow ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$3)) : vue.createCommentVNode("", true)], 10, _hoisted_1$
|
|
36676
|
+
}), _ctx.showArrow ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$3)) : vue.createCommentVNode("", true)], 10, _hoisted_1$3)], 2);
|
|
36646
36677
|
}var css_248z$3 = ".fw-popover__content[data-v-6df01fae]{opacity:0;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease;white-space:normal;z-index:9999}.fw-popover__content--center[data-v-6df01fae]{text-align:center}.fw-popover__content--left[data-v-6df01fae]{text-align:left}.fw-popover__content--right[data-v-6df01fae]{text-align:right}.fw-popover--visible .fw-popover__content[data-v-6df01fae]{opacity:1;pointer-events:all}.fw-popover__arrow[data-v-6df01fae]:after{height:var(--bf2f5546);left:0;top:0;-webkit-transform:translate(-50%,-50%) rotate(45deg);-moz-transform:translate(-50%,-50%) rotate(45deg);-ms-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg);width:var(--bf2f5546)}.fw-popover__content[data-popper-placement^=top][data-v-6df01fae]{margin-bottom:var(--bf2f5546)!important}.fw-popover__content[data-popper-placement^=right][data-v-6df01fae]{margin-left:var(--bf2f5546)!important}.fw-popover__content[data-popper-placement^=bottom][data-v-6df01fae]{margin-top:var(--bf2f5546)!important}.fw-popover__content[data-popper-placement^=left][data-v-6df01fae]{margin-right:var(--bf2f5546)!important}.fw-popover__content[data-popper-placement^=top] .fw-popover__arrow[data-v-6df01fae]{bottom:0}.fw-popover__content[data-popper-placement^=right] .fw-popover__arrow[data-v-6df01fae]{left:0}.fw-popover__content[data-popper-placement^=bottom] .fw-popover__arrow[data-v-6df01fae]{top:0}.fw-popover__content[data-popper-placement^=left] .fw-popover__arrow[data-v-6df01fae]{right:0}.fw-popover__content[data-popper-placement^=top] .fw-popover__arrow[data-v-6df01fae]{bottom:-1px}.fw-popover__content[data-popper-placement^=top] .fw-popover__arrow[data-v-6df01fae]:after{border-left:none;border-top:none}.fw-popover__content[data-popper-placement^=right] .fw-popover__arrow[data-v-6df01fae]{left:-1px}.fw-popover__content[data-popper-placement^=right] .fw-popover__arrow[data-v-6df01fae]:after{border-right:none;border-top:none}.fw-popover__content[data-popper-placement^=bottom] .fw-popover__arrow[data-v-6df01fae]{top:-1px}.fw-popover__content[data-popper-placement^=bottom] .fw-popover__arrow[data-v-6df01fae]:after{border-bottom:none;border-right:none}.fw-popover__content[data-popper-placement^=left] .fw-popover__arrow[data-v-6df01fae]{right:-1px}.fw-popover__content[data-popper-placement^=left] .fw-popover__arrow[data-v-6df01fae]:after{border-bottom:none;border-left:none}";
|
|
36647
36678
|
var stylesheet$3 = ".fw-popover__content[data-v-6df01fae]{opacity:0;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease;white-space:normal;z-index:9999}.fw-popover__content--center[data-v-6df01fae]{text-align:center}.fw-popover__content--left[data-v-6df01fae]{text-align:left}.fw-popover__content--right[data-v-6df01fae]{text-align:right}.fw-popover--visible .fw-popover__content[data-v-6df01fae]{opacity:1;pointer-events:all}.fw-popover__arrow[data-v-6df01fae]:after{height:var(--bf2f5546);left:0;top:0;-webkit-transform:translate(-50%,-50%) rotate(45deg);-moz-transform:translate(-50%,-50%) rotate(45deg);-ms-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg);width:var(--bf2f5546)}.fw-popover__content[data-popper-placement^=top][data-v-6df01fae]{margin-bottom:var(--bf2f5546)!important}.fw-popover__content[data-popper-placement^=right][data-v-6df01fae]{margin-left:var(--bf2f5546)!important}.fw-popover__content[data-popper-placement^=bottom][data-v-6df01fae]{margin-top:var(--bf2f5546)!important}.fw-popover__content[data-popper-placement^=left][data-v-6df01fae]{margin-right:var(--bf2f5546)!important}.fw-popover__content[data-popper-placement^=top] .fw-popover__arrow[data-v-6df01fae]{bottom:0}.fw-popover__content[data-popper-placement^=right] .fw-popover__arrow[data-v-6df01fae]{left:0}.fw-popover__content[data-popper-placement^=bottom] .fw-popover__arrow[data-v-6df01fae]{top:0}.fw-popover__content[data-popper-placement^=left] .fw-popover__arrow[data-v-6df01fae]{right:0}.fw-popover__content[data-popper-placement^=top] .fw-popover__arrow[data-v-6df01fae]{bottom:-1px}.fw-popover__content[data-popper-placement^=top] .fw-popover__arrow[data-v-6df01fae]:after{border-left:none;border-top:none}.fw-popover__content[data-popper-placement^=right] .fw-popover__arrow[data-v-6df01fae]{left:-1px}.fw-popover__content[data-popper-placement^=right] .fw-popover__arrow[data-v-6df01fae]:after{border-right:none;border-top:none}.fw-popover__content[data-popper-placement^=bottom] .fw-popover__arrow[data-v-6df01fae]{top:-1px}.fw-popover__content[data-popper-placement^=bottom] .fw-popover__arrow[data-v-6df01fae]:after{border-bottom:none;border-right:none}.fw-popover__content[data-popper-placement^=left] .fw-popover__arrow[data-v-6df01fae]{right:-1px}.fw-popover__content[data-popper-placement^=left] .fw-popover__arrow[data-v-6df01fae]:after{border-bottom:none;border-left:none}";
|
|
36648
36679
|
styleInject(css_248z$3);__default__$2.render = render$4;
|
|
@@ -36672,6 +36703,10 @@ __default__$2.__scopeId = "data-v-6df01fae";var script$1 = vue.defineComponent({
|
|
|
36672
36703
|
validator: function validator(value) {
|
|
36673
36704
|
return ['sm', 'md', 'lg', 'xl', '2xl'].includes(value);
|
|
36674
36705
|
}
|
|
36706
|
+
},
|
|
36707
|
+
disabled: {
|
|
36708
|
+
type: Boolean,
|
|
36709
|
+
"default": false
|
|
36675
36710
|
}
|
|
36676
36711
|
},
|
|
36677
36712
|
setup: function setup(props, ctx) {
|
|
@@ -36691,27 +36726,28 @@ __default__$2.__scopeId = "data-v-6df01fae";var script$1 = vue.defineComponent({
|
|
|
36691
36726
|
selectedPeriod: selectedPeriod
|
|
36692
36727
|
};
|
|
36693
36728
|
}
|
|
36694
|
-
});
|
|
36695
|
-
"class": "fw-period-selector w-fit bg-grey-light bg-opacity-10 border-grey-light border-2 border-opacity-40 gap-x-1"
|
|
36696
|
-
};
|
|
36697
|
-
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36729
|
+
});function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36698
36730
|
var _component_FwButton = vue.resolveComponent("FwButton");
|
|
36699
|
-
return vue.openBlock(), vue.createElementBlock("div",
|
|
36731
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
36732
|
+
"class": vue.normalizeClass(["fw-period-selector w-fit bg-grey-light bg-opacity-10 border-grey-light border-2 border-opacity-40 gap-x-1", _ctx.disabled === true ? 'hover:none cursor:none pointer-events-none' : ''])
|
|
36733
|
+
}, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.periodOptions, function (period) {
|
|
36700
36734
|
return vue.openBlock(), vue.createBlock(_component_FwButton, {
|
|
36701
36735
|
key: period,
|
|
36702
|
-
variant: _ctx.selectedPeriod === period ? 'tertiary' : 'transparent',
|
|
36736
|
+
variant: _ctx.selectedPeriod === period ? _ctx.disabled ? 'disabled' : 'tertiary' : 'transparent',
|
|
36703
36737
|
"class": "hover:!border-button-primary-bg -m-[2px] flex-1",
|
|
36704
36738
|
size: _ctx.size,
|
|
36705
36739
|
onClick: function onClick($event) {
|
|
36706
36740
|
return _ctx.selectedPeriod = period;
|
|
36707
|
-
}
|
|
36741
|
+
},
|
|
36742
|
+
disabled: _ctx.disabled,
|
|
36743
|
+
active: _ctx.disabled && _ctx.selectedPeriod === period
|
|
36708
36744
|
}, {
|
|
36709
36745
|
"default": vue.withCtx(function () {
|
|
36710
36746
|
return [vue.createTextVNode(vue.toDisplayString(_ctx.generateButtonLabel(period)), 1)];
|
|
36711
36747
|
}),
|
|
36712
36748
|
_: 2
|
|
36713
|
-
}, 1032, ["variant", "size", "onClick"]);
|
|
36714
|
-
}), 128))]);
|
|
36749
|
+
}, 1032, ["variant", "size", "onClick", "disabled", "active"]);
|
|
36750
|
+
}), 128))], 2);
|
|
36715
36751
|
}var css_248z$2 = ".fw-period-selector{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-moz-box-orient:horizontal;-moz-box-direction:normal;border-radius:9999px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}";
|
|
36716
36752
|
var stylesheet$2 = ".fw-period-selector{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-moz-box-orient:horizontal;-moz-box-direction:normal;border-radius:9999px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}";
|
|
36717
36753
|
styleInject(css_248z$2);script$1.render = render$3;var script = vue.defineComponent({
|
|
@@ -92,6 +92,20 @@ var script = defineComponent({
|
|
|
92
92
|
*/
|
|
93
93
|
external: {
|
|
94
94
|
type: Boolean
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
* Whether the button is disabled or not
|
|
98
|
+
*/
|
|
99
|
+
disabled: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
"default": false
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* Whether the button is preselected or not
|
|
105
|
+
*/
|
|
106
|
+
active: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
"default": false
|
|
95
109
|
}
|
|
96
110
|
},
|
|
97
111
|
setup: function setup(props, ctx) {
|
|
@@ -136,6 +150,11 @@ var script = defineComponent({
|
|
|
136
150
|
text: 'text-grey-base hover:text-primary active:text-primary',
|
|
137
151
|
background: 'bg-none hover:bg-white focus:bg-white active:bg-white',
|
|
138
152
|
border: 'border-transparent focus-visible:ring-1 focus-visible:ring-primary'
|
|
153
|
+
},
|
|
154
|
+
disabled: {
|
|
155
|
+
text: 'text-white',
|
|
156
|
+
background: 'bg-grey-base bg-opacity-60',
|
|
157
|
+
border: ''
|
|
139
158
|
}
|
|
140
159
|
});
|
|
141
160
|
var sizes = ref({
|
|
@@ -226,13 +245,14 @@ var _hoisted_1 = {
|
|
|
226
245
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
227
246
|
var _component_FwLoadingSpinner = resolveComponent("FwLoadingSpinner");
|
|
228
247
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tagName), {
|
|
229
|
-
"class": normalizeClass(["fw-button", [_ctx.baseClass, _ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass, _ctx.rounded && _ctx.variant !== 'link' ? 'rounded-full' : 'rounded', _ctx.variant === 'link' ? 'pl-0 pr-0 pt-0 pb-0 font-normal rounded-1' : 'font-semibold', _ctx.animation === 'fade' ? 'animation--fade' : 'animation--alternate', _ctx.loading === true ? 'fw-button--loading cursor-progress' : 'cursor-pointer']]),
|
|
248
|
+
"class": normalizeClass(["fw-button", [_ctx.baseClass, _ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass, _ctx.rounded && _ctx.variant !== 'link' ? 'rounded-full' : 'rounded', _ctx.variant === 'link' ? 'pl-0 pr-0 pt-0 pb-0 font-normal rounded-1' : 'font-semibold', _ctx.animation === 'fade' ? 'animation--fade' : 'animation--alternate', _ctx.loading === true ? 'fw-button--loading cursor-progress' : 'cursor-pointer', _ctx.disabled && !_ctx.loading ? 'pointer-events-none text-grey-light' : '', _ctx.disabled && _ctx.active ? 'fw-button--disabled-active' : '']]),
|
|
230
249
|
type: _ctx.tagName === 'button' ? _ctx.buttonType : null,
|
|
231
250
|
to: _ctx.to ? _ctx.to : null,
|
|
232
251
|
href: _ctx.href ? _ctx.href : null,
|
|
233
252
|
tabindex: _ctx.to ? 0 : null,
|
|
234
|
-
disabled: _ctx.loading,
|
|
253
|
+
disabled: _ctx.loading || _ctx.disabled,
|
|
235
254
|
target: !!_ctx.external ? '_blank' : null,
|
|
255
|
+
active: _ctx.active,
|
|
236
256
|
onClick: _ctx.onClick,
|
|
237
257
|
onFocusin: _ctx.onFocusin,
|
|
238
258
|
onFocusout: _ctx.onFocusout,
|
|
@@ -254,11 +274,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
254
274
|
})], 2)) : createCommentVNode("", true)])) : createCommentVNode("", true)];
|
|
255
275
|
}),
|
|
256
276
|
_: 3
|
|
257
|
-
}, 40, ["class", "type", "to", "href", "tabindex", "disabled", "target", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
277
|
+
}, 40, ["class", "type", "to", "href", "tabindex", "disabled", "target", "active", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
258
278
|
}
|
|
259
279
|
|
|
260
|
-
var css_248z = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-moz-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-moz-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}";
|
|
261
|
-
var stylesheet = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-moz-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-moz-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}";
|
|
280
|
+
var css_248z = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-moz-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-moz-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--disabled-active{background:var(--colorButtonDisabled)!important;color:rgb(from var(--colorButtonDisabledText) r g b/.6)!important}";
|
|
281
|
+
var stylesheet = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-moz-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-moz-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--disabled-active{background:var(--colorButtonDisabled)!important;color:rgb(from var(--colorButtonDisabledText) r g b/.6)!important}";
|
|
262
282
|
styleInject(css_248z);
|
|
263
283
|
|
|
264
284
|
script.render = render;
|
package/esm/fw-button.js
CHANGED
package/esm/fw-drawer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, createElementBlock, renderSlot, createCommentVNode, createVNode, createTextVNode, toDisplayString, vShow } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
2
|
+
import { s as script$1 } from './fw-button-NJeYig99.js';
|
|
3
3
|
import { u as uniqueId } from './uniqueId-DK6xzFd8.js';
|
|
4
4
|
import { b as render$1 } from './index-CUeOOfIp.js';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
package/esm/fw-media-picker.js
CHANGED
|
@@ -3,7 +3,7 @@ import { defineComponent, ref, computed, watch, createElementVNode, resolveCompo
|
|
|
3
3
|
import { c as render$1, d as render$2, e as render$3, f as render$4, g as render$5, h as render$6 } from './index-CUeOOfIp.js';
|
|
4
4
|
import { FwModal as script$1 } from './fw-modal.js';
|
|
5
5
|
import './fw-button.js';
|
|
6
|
-
import { s as script$2 } from './fw-button-
|
|
6
|
+
import { s as script$2 } from './fw-button-NJeYig99.js';
|
|
7
7
|
import './check--YD4Ts6g.js';
|
|
8
8
|
import './uniqueId-DK6xzFd8.js';
|
|
9
9
|
import './style-inject.es-tgCJW-Cu.js';
|
package/esm/fw-modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, createCommentVNode, createElementBlock, renderSlot, createTextVNode, toDisplayString, vShow } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
2
|
+
import { s as script$1 } from './fw-button-NJeYig99.js';
|
|
3
3
|
import { u as uniqueId } from './uniqueId-DK6xzFd8.js';
|
|
4
4
|
import { b as render$1 } from './index-CUeOOfIp.js';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
@@ -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-NJeYig99.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
4
4
|
import './fw-loading-spinner-CfcmqMwb.js';
|
|
5
5
|
import './index-CUeOOfIp.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import './fw-button.js';
|
|
3
|
-
import { s as script$1 } from './fw-button-
|
|
3
|
+
import { s as script$1 } from './fw-button-NJeYig99.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
5
5
|
import './fw-loading-spinner-CfcmqMwb.js';
|
|
6
6
|
import './index-CUeOOfIp.js';
|
|
@@ -32,6 +32,10 @@ var script = defineComponent({
|
|
|
32
32
|
validator: function validator(value) {
|
|
33
33
|
return ['sm', 'md', 'lg', 'xl', '2xl'].includes(value);
|
|
34
34
|
}
|
|
35
|
+
},
|
|
36
|
+
disabled: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
"default": false
|
|
35
39
|
}
|
|
36
40
|
},
|
|
37
41
|
setup: function setup(props, ctx) {
|
|
@@ -53,27 +57,28 @@ var script = defineComponent({
|
|
|
53
57
|
}
|
|
54
58
|
});
|
|
55
59
|
|
|
56
|
-
var _hoisted_1 = {
|
|
57
|
-
"class": "fw-period-selector w-fit bg-grey-light bg-opacity-10 border-grey-light border-2 border-opacity-40 gap-x-1"
|
|
58
|
-
};
|
|
59
60
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
60
61
|
var _component_FwButton = resolveComponent("FwButton");
|
|
61
|
-
return openBlock(), createElementBlock("div",
|
|
62
|
+
return openBlock(), createElementBlock("div", {
|
|
63
|
+
"class": normalizeClass(["fw-period-selector w-fit bg-grey-light bg-opacity-10 border-grey-light border-2 border-opacity-40 gap-x-1", _ctx.disabled === true ? 'hover:none cursor:none pointer-events-none' : ''])
|
|
64
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.periodOptions, function (period) {
|
|
62
65
|
return openBlock(), createBlock(_component_FwButton, {
|
|
63
66
|
key: period,
|
|
64
|
-
variant: _ctx.selectedPeriod === period ? 'tertiary' : 'transparent',
|
|
67
|
+
variant: _ctx.selectedPeriod === period ? _ctx.disabled ? 'disabled' : 'tertiary' : 'transparent',
|
|
65
68
|
"class": "hover:!border-button-primary-bg -m-[2px] flex-1",
|
|
66
69
|
size: _ctx.size,
|
|
67
70
|
onClick: function onClick($event) {
|
|
68
71
|
return _ctx.selectedPeriod = period;
|
|
69
|
-
}
|
|
72
|
+
},
|
|
73
|
+
disabled: _ctx.disabled,
|
|
74
|
+
active: _ctx.disabled && _ctx.selectedPeriod === period
|
|
70
75
|
}, {
|
|
71
76
|
"default": withCtx(function () {
|
|
72
77
|
return [createTextVNode(toDisplayString(_ctx.generateButtonLabel(period)), 1)];
|
|
73
78
|
}),
|
|
74
79
|
_: 2
|
|
75
|
-
}, 1032, ["variant", "size", "onClick"]);
|
|
76
|
-
}), 128))]);
|
|
80
|
+
}, 1032, ["variant", "size", "onClick", "disabled", "active"]);
|
|
81
|
+
}), 128))], 2);
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
var css_248z = ".fw-period-selector{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-moz-box-orient:horizontal;-moz-box-direction:normal;border-radius:9999px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}";
|
package/esm/fw-provider-list.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { e as _defineProperty } from './_rollupPluginBabelHelpers-DpC_oIQV.js';
|
|
2
2
|
import { defineComponent, ref, computed, createElementVNode, resolveComponent, openBlock, createElementBlock, toDisplayString, createVNode, withCtx, createBlock, createCommentVNode, createTextVNode } from 'vue';
|
|
3
|
-
import { _ as __default__, s as script$4, a as script$5 } from './fw-table-row-
|
|
3
|
+
import { _ as __default__, s as script$4, a as script$5 } from './fw-table-row-D5RqIgec.js';
|
|
4
4
|
import { s as script$1 } from './fw-input-XeI-IKly.js';
|
|
5
|
-
import { _ as __default__$1 } from './fw-tag-
|
|
6
|
-
import { s as script$3 } from './fw-button-
|
|
5
|
+
import { _ as __default__$1 } from './fw-tag-D-U6RKuG.js';
|
|
6
|
+
import { s as script$3 } from './fw-button-NJeYig99.js';
|
|
7
7
|
import { s as script$2 } from './fw-dropdown-b1b7d7BF.js';
|
|
8
8
|
import { i as render$1, j as render$2, k as render$3 } from './index-CUeOOfIp.js';
|
|
9
9
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
package/esm/fw-sidebar-menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Transition, withDirectives, createElementVNode, renderSlot, createCommentVNode, Fragment, renderList, createBlock, createTextVNode, toDisplayString, vShow } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
2
|
+
import { s as script$1 } from './fw-button-NJeYig99.js';
|
|
3
3
|
import { l as render$1 } from './index-CUeOOfIp.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
5
5
|
import './fw-loading-spinner-CfcmqMwb.js';
|
|
@@ -2,7 +2,7 @@ import { m as render$3, n as render$4, o as render$5, l as render$6 } from './in
|
|
|
2
2
|
import { defineComponent, computed, ref, onMounted, useCssVars, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createElementVNode, mergeProps, renderSlot, createCommentVNode, Fragment, renderList, normalizeClass, withKeys, toDisplayString, createBlock, createVNode, withCtx } from 'vue';
|
|
3
3
|
import { u as useColours } from './get-root-colours-DYEoJPEb.js';
|
|
4
4
|
import { s as script$2 } from './fw-loading-bar-DThRjdw1.js';
|
|
5
|
-
import { s as script$3 } from './fw-button-
|
|
5
|
+
import { s as script$3 } from './fw-button-NJeYig99.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
7
7
|
|
|
8
8
|
var __default__ = defineComponent({
|
|
@@ -54,7 +54,9 @@ var __default__ = defineComponent({
|
|
|
54
54
|
type: Number
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
setup: function setup(props,
|
|
57
|
+
setup: function setup(props, _ref) {
|
|
58
|
+
var emit = _ref.emit,
|
|
59
|
+
expose = _ref.expose;
|
|
58
60
|
var columns = computed(function () {
|
|
59
61
|
return Object.keys(props.items[0]);
|
|
60
62
|
});
|
|
@@ -62,14 +64,16 @@ var __default__ = defineComponent({
|
|
|
62
64
|
var sortDirection = ref('asc');
|
|
63
65
|
var currentSortedColumn = ref('');
|
|
64
66
|
var currentPage = ref(1);
|
|
65
|
-
var maxPageAmount =
|
|
67
|
+
var maxPageAmount = computed(function () {
|
|
68
|
+
if (props.totalAmount && props.pageSize) {
|
|
69
|
+
return Math.ceil(props.totalAmount / props.pageSize);
|
|
70
|
+
}
|
|
71
|
+
return undefined;
|
|
72
|
+
});
|
|
66
73
|
onMounted(function () {
|
|
67
74
|
if (Number(props.autoSortColumn) >= 0) {
|
|
68
75
|
sortColumn(columns.value[Number(props.autoSortColumn)], false);
|
|
69
76
|
}
|
|
70
|
-
if (props.totalAmount && props.pageSize) {
|
|
71
|
-
maxPageAmount.value = Math.ceil(props.totalAmount / props.pageSize);
|
|
72
|
-
}
|
|
73
77
|
});
|
|
74
78
|
var _useColours = useColours(),
|
|
75
79
|
bgHoverColor = _useColours.primaryFade5;
|
|
@@ -83,7 +87,7 @@ var __default__ = defineComponent({
|
|
|
83
87
|
sortBy.value = column;
|
|
84
88
|
sortDirection.value = columnInitSort(column);
|
|
85
89
|
}
|
|
86
|
-
if (isAction)
|
|
90
|
+
if (isAction) emit('columnSorted', column, sortDirection.value);
|
|
87
91
|
};
|
|
88
92
|
var sortedData = computed(function () {
|
|
89
93
|
if (!sortBy.value) {
|
|
@@ -137,12 +141,19 @@ var __default__ = defineComponent({
|
|
|
137
141
|
return false;
|
|
138
142
|
};
|
|
139
143
|
var rowClicked = function rowClicked(row) {
|
|
140
|
-
if (props.clickableRows)
|
|
144
|
+
if (props.clickableRows) emit('rowClicked', row);
|
|
141
145
|
};
|
|
142
146
|
var pageArrowClick = function pageArrowClick(next) {
|
|
143
147
|
currentPage.value = currentPage.value + (next ? 1 : -1);
|
|
144
|
-
|
|
148
|
+
emit('pageChanged', next);
|
|
149
|
+
};
|
|
150
|
+
var resetPage = function resetPage() {
|
|
151
|
+
currentPage.value = 1;
|
|
152
|
+
};
|
|
153
|
+
var exposeApi = {
|
|
154
|
+
resetPage: resetPage
|
|
145
155
|
};
|
|
156
|
+
expose(exposeApi);
|
|
146
157
|
return {
|
|
147
158
|
columns: columns,
|
|
148
159
|
sortBy: sortBy,
|
|
@@ -165,7 +176,7 @@ var __default__ = defineComponent({
|
|
|
165
176
|
var __injectCSSVars__ = function __injectCSSVars__() {
|
|
166
177
|
useCssVars(function (_ctx) {
|
|
167
178
|
return {
|
|
168
|
-
"
|
|
179
|
+
"59fbcffe": _ctx.bgHoverColor
|
|
169
180
|
};
|
|
170
181
|
});
|
|
171
182
|
};
|
|
@@ -176,7 +187,7 @@ __default__.setup = __setup__ ? function (props, ctx) {
|
|
|
176
187
|
} : __injectCSSVars__;
|
|
177
188
|
|
|
178
189
|
var _withScopeId = function _withScopeId(n) {
|
|
179
|
-
return pushScopeId("data-v-
|
|
190
|
+
return pushScopeId("data-v-a1dc6c66"), n = n(), popScopeId(), n;
|
|
180
191
|
};
|
|
181
192
|
var _hoisted_1$2 = {
|
|
182
193
|
"class": "flex flex-col"
|
|
@@ -326,12 +337,12 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
326
337
|
}, 8, ["disabled"])])) : createCommentVNode("", true)]);
|
|
327
338
|
}
|
|
328
339
|
|
|
329
|
-
var css_248z = ".fw-table-head--sortable[data-v-
|
|
330
|
-
var stylesheet = ".fw-table-head--sortable[data-v-
|
|
340
|
+
var css_248z = ".fw-table-head--sortable[data-v-a1dc6c66]:hover{background-color:var(--59fbcffe)}.fw-table-row[data-v-a1dc6c66]:hover{background-color:var(--59fbcffe)}";
|
|
341
|
+
var stylesheet = ".fw-table-head--sortable[data-v-a1dc6c66]:hover{background-color:var(--59fbcffe)}.fw-table-row[data-v-a1dc6c66]:hover{background-color:var(--59fbcffe)}";
|
|
331
342
|
styleInject(css_248z);
|
|
332
343
|
|
|
333
344
|
__default__.render = render$2;
|
|
334
|
-
__default__.__scopeId = "data-v-
|
|
345
|
+
__default__.__scopeId = "data-v-a1dc6c66";
|
|
335
346
|
|
|
336
347
|
var script$1 = defineComponent({
|
|
337
348
|
name: 'FwTableHead'
|
package/esm/fw-table.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { _ as FwTable, s as FwTableHead, a as FwTableRow } from './fw-table-row-
|
|
1
|
+
export { _ as FwTable, s as FwTableHead, a as FwTableRow } from './fw-table-row-D5RqIgec.js';
|
|
2
2
|
import './index-CUeOOfIp.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import './check--YD4Ts6g.js';
|
|
5
5
|
import './get-root-colours-DYEoJPEb.js';
|
|
6
6
|
import './fw-loading-bar-DThRjdw1.js';
|
|
7
7
|
import './style-inject.es-tgCJW-Cu.js';
|
|
8
|
-
import './fw-button-
|
|
8
|
+
import './fw-button-NJeYig99.js';
|
|
9
9
|
import './fw-loading-spinner-CfcmqMwb.js';
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, useCssVars, resolveComponent, openBlock
|
|
|
2
2
|
import './fw-button.js';
|
|
3
3
|
import { b as render$1 } from './index-CUeOOfIp.js';
|
|
4
4
|
import { u as useColours } from './get-root-colours-DYEoJPEb.js';
|
|
5
|
-
import { s as script } from './fw-button-
|
|
5
|
+
import { s as script } from './fw-button-NJeYig99.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
7
7
|
|
|
8
8
|
var __default__ = defineComponent({
|
package/esm/fw-tag.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { _ as FwTag } from './fw-tag-
|
|
1
|
+
export { _ as FwTag } from './fw-tag-D-U6RKuG.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import './fw-button.js';
|
|
4
|
-
import './fw-button-
|
|
4
|
+
import './fw-button-NJeYig99.js';
|
|
5
5
|
import './fw-loading-spinner-CfcmqMwb.js';
|
|
6
6
|
import './index-CUeOOfIp.js';
|
|
7
7
|
import './check--YD4Ts6g.js';
|
package/esm/index.js
CHANGED
|
@@ -29,9 +29,9 @@ import { F as Form } from './vee-validate.esm-3ptvCDR1.js';
|
|
|
29
29
|
import { s as script$7 } from './fw-input-XeI-IKly.js';
|
|
30
30
|
import { s as script$5 } from './fw-dropdown-b1b7d7BF.js';
|
|
31
31
|
import { s as script$2 } from './fw-card-bsYbpPmW.js';
|
|
32
|
-
import { s as script$1 } from './fw-button-
|
|
33
|
-
import { _ as __default__$6 } from './fw-tag-
|
|
34
|
-
import { _ as __default__$5, s as script$k, a as script$l } from './fw-table-row-
|
|
32
|
+
import { s as script$1 } from './fw-button-NJeYig99.js';
|
|
33
|
+
import { _ as __default__$6 } from './fw-tag-D-U6RKuG.js';
|
|
34
|
+
import { _ as __default__$5, s as script$k, a as script$l } from './fw-table-row-D5RqIgec.js';
|
|
35
35
|
import { s as script$6 } from './fw-image-Dlb_dFZf.js';
|
|
36
36
|
import { s as script$8 } from './fw-loading-bar-DThRjdw1.js';
|
|
37
37
|
import { s as script$a } from './fw-loading-spinner-CfcmqMwb.js';
|