@frollo/frollo-web-ui 9.0.14 → 9.0.15
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 +124 -144
- package/esm/{_rollupPluginBabelHelpers-BKlDnZ7n.js → _rollupPluginBabelHelpers-BLtav7L4.js} +19 -32
- package/esm/fw-bar-chart.js +1 -1
- package/esm/{fw-button-DKiBN2Lc.js → fw-button-CeUZjl-m.js} +2 -2
- package/esm/fw-button.js +1 -1
- package/esm/fw-date-picker.js +2 -2
- package/esm/fw-drawer.js +1 -1
- package/esm/{fw-dropdown-uz0ktInj.js → fw-dropdown-Cn-AOd9J.js} +1 -1
- package/esm/fw-dropdown.js +4 -4
- package/esm/fw-icons.js +1 -1
- package/esm/{fw-image-WvgrN2xD.js → fw-image-DSZYmjep.js} +2 -2
- package/esm/fw-image.js +3 -3
- package/esm/fw-input.js +1 -1
- package/esm/fw-loading-bar-CMt4O4Ys.js +37 -0
- package/esm/fw-loading.js +1 -1
- package/esm/fw-media-picker.js +5 -5
- package/esm/fw-modal.js +9 -9
- package/esm/fw-navigation-menu.js +3 -3
- package/esm/{fw-popover-BFiv7Ich.js → fw-popover-Dv8DodUb.js} +19 -21
- package/esm/fw-popover.js +2 -2
- package/esm/fw-provider-list.js +6 -6
- package/esm/fw-sidebar-menu.js +1 -1
- package/esm/{fw-table-row-Dxzao2a-.js → fw-table-row-CLb3Xliv.js} +2 -2
- package/esm/fw-table.js +3 -3
- package/esm/fw-tabs.js +1 -1
- package/esm/fw-tag.js +1 -1
- package/esm/fw-transactions-card.js +3 -3
- package/esm/{index-BDOYAgsu.js → index-vXNG2AyR.js} +79 -84
- package/esm/index.js +9 -9
- package/frollo-web-ui.esm.js +124 -144
- package/package.json +20 -19
- package/web-components/index.js +850 -603
- package/esm/fw-loading-bar-CPzE92BH.js +0 -37
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle } from 'vue';
|
|
2
|
+
import { u as useColours } from './get-root-colours-DCCAnRF4.js';
|
|
3
|
+
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
4
|
+
|
|
5
|
+
var script = defineComponent({
|
|
6
|
+
name: 'FwLoadingBar',
|
|
7
|
+
setup: function setup() {
|
|
8
|
+
var _useColours = useColours(),
|
|
9
|
+
primaryFade10 = _useColours.primaryFade10,
|
|
10
|
+
primaryFade20 = _useColours.primaryFade20;
|
|
11
|
+
var barVars = computed(function () {
|
|
12
|
+
return {
|
|
13
|
+
'--fw-bar-light': primaryFade10,
|
|
14
|
+
'--fw-bar-dark': primaryFade20
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
return {
|
|
18
|
+
barVars: barVars
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24
|
+
return openBlock(), createElementBlock("div", {
|
|
25
|
+
"class": "fw-loading-bar rounded",
|
|
26
|
+
"aria-hidden": "true",
|
|
27
|
+
style: normalizeStyle(_ctx.barVars)
|
|
28
|
+
}, null, 4);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
var css_248z = ".fw-loading-bar{background:var(--fw-bar-dark);contain:paint;overflow:hidden;position:relative}.fw-loading-bar:before{-webkit-animation:fwShimmer 1.1s ease-in-out infinite;-moz-animation:fwShimmer 1.1s ease-in-out infinite;animation:fwShimmer 1.1s ease-in-out infinite;background-image:-moz-linear-gradient(350deg,transparent 0,var(--fw-bar-light) 50%,transparent 100%);background-image:linear-gradient(100deg,transparent 0,var(--fw-bar-light) 50%,transparent 100%);background-repeat:no-repeat;background-size:60% 100%;content:\"\";inset:0;position:absolute;-webkit-transform:translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);will-change:transform}@-webkit-keyframes fwShimmer{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-moz-keyframes fwShimmer{to{-moz-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fwShimmer{to{-webkit-transform:translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@media (prefers-reduced-motion:reduce){.fw-loading-bar:before{-webkit-animation-duration:4s!important;-moz-animation-duration:4s!important;animation-duration:4s!important}}";
|
|
32
|
+
var stylesheet = ".fw-loading-bar{background:var(--fw-bar-dark);contain:paint;overflow:hidden;position:relative}.fw-loading-bar:before{-webkit-animation:fwShimmer 1.1s ease-in-out infinite;-moz-animation:fwShimmer 1.1s ease-in-out infinite;animation:fwShimmer 1.1s ease-in-out infinite;background-image:-moz-linear-gradient(350deg,transparent 0,var(--fw-bar-light) 50%,transparent 100%);background-image:linear-gradient(100deg,transparent 0,var(--fw-bar-light) 50%,transparent 100%);background-repeat:no-repeat;background-size:60% 100%;content:\"\";inset:0;position:absolute;-webkit-transform:translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);will-change:transform}@-webkit-keyframes fwShimmer{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-moz-keyframes fwShimmer{to{-moz-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fwShimmer{to{-webkit-transform:translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@media (prefers-reduced-motion:reduce){.fw-loading-bar:before{-webkit-animation-duration:4s!important;-moz-animation-duration:4s!important;animation-duration:4s!important}}";
|
|
33
|
+
styleInject(css_248z);
|
|
34
|
+
|
|
35
|
+
script.render = render;
|
|
36
|
+
|
|
37
|
+
export { script as s };
|
package/esm/fw-loading.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as script$3 } from './fw-loading-bar-
|
|
1
|
+
import { s as script$3 } from './fw-loading-bar-CMt4O4Ys.js';
|
|
2
2
|
import { defineComponent, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, computed, normalizeClass, Fragment, renderList, normalizeStyle, createBlock } from 'vue';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
4
4
|
import { u as useColours } from './get-root-colours-DCCAnRF4.js';
|
package/esm/fw-media-picker.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { s as FwMediaPicker } from './index-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { s as FwMediaPicker } from './index-vXNG2AyR.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-BLtav7L4.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import './index-BdZ_WcnP.js';
|
|
5
5
|
import './fw-modal.js';
|
|
6
|
-
import './fw-button-
|
|
6
|
+
import './fw-button-CeUZjl-m.js';
|
|
7
7
|
import './style-inject.es-tgCJW-Cu.js';
|
|
8
|
-
import './fw-image-
|
|
9
|
-
import './fw-loading-bar-
|
|
8
|
+
import './fw-image-DSZYmjep.js';
|
|
9
|
+
import './fw-loading-bar-CMt4O4Ys.js';
|
|
10
10
|
import './get-root-colours-DCCAnRF4.js';
|
|
11
11
|
import './fw-button.js';
|
package/esm/fw-modal.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, useCssVars, resolveComponent, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, createTextVNode, renderSlot, toDisplayString, vShow } from 'vue';
|
|
2
|
-
import { s as script } from './fw-button-
|
|
3
|
-
import { _ as __default__$1 } from './fw-image-
|
|
2
|
+
import { s as script } from './fw-button-CeUZjl-m.js';
|
|
3
|
+
import { _ as __default__$1 } from './fw-image-DSZYmjep.js';
|
|
4
4
|
import { u as useColours } from './get-root-colours-DCCAnRF4.js';
|
|
5
5
|
import { d as render$1 } from './index-BdZ_WcnP.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
7
|
-
import './_rollupPluginBabelHelpers-
|
|
8
|
-
import './fw-loading-bar-
|
|
7
|
+
import './_rollupPluginBabelHelpers-BLtav7L4.js';
|
|
8
|
+
import './fw-loading-bar-CMt4O4Ys.js';
|
|
9
9
|
|
|
10
10
|
var __default__ = defineComponent({
|
|
11
11
|
name: 'FwModal',
|
|
@@ -164,7 +164,7 @@ var __default__ = defineComponent({
|
|
|
164
164
|
var __injectCSSVars__ = function __injectCSSVars__() {
|
|
165
165
|
useCssVars(function (_ctx) {
|
|
166
166
|
return {
|
|
167
|
-
"
|
|
167
|
+
"fe9bda52": _ctx.modalBgColour
|
|
168
168
|
};
|
|
169
169
|
});
|
|
170
170
|
};
|
|
@@ -179,7 +179,7 @@ var _hoisted_2 = {
|
|
|
179
179
|
"class": "fw-modal--mask fixed z-[9999] top-0 left-0 w-full h-full"
|
|
180
180
|
};
|
|
181
181
|
var _hoisted_3 = {
|
|
182
|
-
"class": "fw-modal--wrapper overflow-
|
|
182
|
+
"class": "fw-modal--wrapper overflow-hidden flex justify-center items-center h-full"
|
|
183
183
|
};
|
|
184
184
|
var _hoisted_4 = ["role", "aria-labelledby", "aria-describedby"];
|
|
185
185
|
var _hoisted_5 = {
|
|
@@ -211,7 +211,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
211
211
|
}, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", {
|
|
212
212
|
role: _ctx.role,
|
|
213
213
|
"aria-modal": "true",
|
|
214
|
-
"class": normalizeClass([[_ctx.containerClass && !_ctx.bannerUrl ? _ctx.containerClass : '', _ctx.padding && !_ctx.bannerUrl ? 'inline-block p-8 md:p-12' : 'flex flex-col md:flex-row', _ctx.bannerUrl ? 'max-w-[800px]' : 'max-w-[750px]'], "fw-modal--container m-8 w-full bg-brand-appBg rounded-lg shadow relative max-h-screen"]),
|
|
214
|
+
"class": normalizeClass([[_ctx.containerClass && !_ctx.bannerUrl ? _ctx.containerClass : '', _ctx.padding && !_ctx.bannerUrl ? 'inline-block p-8 md:p-12' : 'flex flex-col md:flex-row', _ctx.bannerUrl ? 'max-w-[800px]' : 'max-w-[750px]'], "fw-modal--container m-8 w-full bg-brand-appBg rounded-lg shadow relative max-h-screen overflow-y-auto"]),
|
|
215
215
|
"aria-labelledby": _ctx.$slots.header || _ctx.header ? "modal_".concat(_ctx.uuid, "_header") : undefined,
|
|
216
216
|
"aria-describedby": _ctx.$slots.body ? "modal_".concat(_ctx.uuid, "_body") : undefined
|
|
217
217
|
}, [_ctx.bannerUrl ? (openBlock(), createElementBlock("div", {
|
|
@@ -300,8 +300,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
300
300
|
})], 8, ["to"])) : createCommentVNode("", true);
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
var css_248z = ".modalFadeIn-enter-active,.modalFadeIn-leave-active{-webkit-transition:opacity .25s cubic-bezier(.16,1,.3,1);-moz-transition:opacity .25s cubic-bezier(.16,1,.3,1);transition:opacity .25s cubic-bezier(.16,1,.3,1)}.modalFadeIn-enter-from,.modalFadeIn-leave-to{opacity:0}.modalFadeIn-enter-to,.modalFadeIn-leave-from{opacity:1}.fw-modal--mask{background-color:var(--
|
|
304
|
-
var stylesheet = ".modalFadeIn-enter-active,.modalFadeIn-leave-active{-webkit-transition:opacity .25s cubic-bezier(.16,1,.3,1);-moz-transition:opacity .25s cubic-bezier(.16,1,.3,1);transition:opacity .25s cubic-bezier(.16,1,.3,1)}.modalFadeIn-enter-from,.modalFadeIn-leave-to{opacity:0}.modalFadeIn-enter-to,.modalFadeIn-leave-from{opacity:1}.fw-modal--mask{background-color:var(--
|
|
303
|
+
var css_248z = ".modalFadeIn-enter-active,.modalFadeIn-leave-active{-webkit-transition:opacity .25s cubic-bezier(.16,1,.3,1);-moz-transition:opacity .25s cubic-bezier(.16,1,.3,1);transition:opacity .25s cubic-bezier(.16,1,.3,1)}.modalFadeIn-enter-from,.modalFadeIn-leave-to{opacity:0}.modalFadeIn-enter-to,.modalFadeIn-leave-from{opacity:1}.fw-modal--mask{background-color:var(--fe9bda52);will-change:opacity}";
|
|
304
|
+
var stylesheet = ".modalFadeIn-enter-active,.modalFadeIn-leave-active{-webkit-transition:opacity .25s cubic-bezier(.16,1,.3,1);-moz-transition:opacity .25s cubic-bezier(.16,1,.3,1);transition:opacity .25s cubic-bezier(.16,1,.3,1)}.modalFadeIn-enter-from,.modalFadeIn-leave-to{opacity:0}.modalFadeIn-enter-to,.modalFadeIn-leave-from{opacity:1}.fw-modal--mask{background-color:var(--fe9bda52);will-change:opacity}";
|
|
305
305
|
styleInject(css_248z);
|
|
306
306
|
|
|
307
307
|
__default__.render = render;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, shallowRef, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
3
|
-
import { _ as __default__ } from './fw-popover-
|
|
2
|
+
import { s as script$1 } from './fw-button-CeUZjl-m.js';
|
|
3
|
+
import { _ as __default__ } from './fw-popover-Dv8DodUb.js';
|
|
4
4
|
import { k as render$1 } from './index-BdZ_WcnP.js';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
6
|
-
import './_rollupPluginBabelHelpers-
|
|
6
|
+
import './_rollupPluginBabelHelpers-BLtav7L4.js';
|
|
7
7
|
import './index-BVcOAKar.js';
|
|
8
8
|
|
|
9
9
|
var script = defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as _asyncToGenerator, d as
|
|
1
|
+
import { c as _asyncToGenerator, d as _regenerator, e as _defineProperty } from './_rollupPluginBabelHelpers-BLtav7L4.js';
|
|
2
2
|
import { defineComponent, ref, computed, nextTick, watch, onBeforeUnmount, onMounted, useCssVars, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, withDirectives, createTextVNode, toDisplayString, createCommentVNode, vShow } from 'vue';
|
|
3
3
|
import { c as createPopper } from './index-BVcOAKar.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
@@ -104,19 +104,19 @@ var __default__ = defineComponent({
|
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
var ensurePopper = /*#__PURE__*/function () {
|
|
107
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
108
|
-
return
|
|
109
|
-
while (1) switch (_context.
|
|
107
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
108
|
+
return _regenerator().w(function (_context) {
|
|
109
|
+
while (1) switch (_context.n) {
|
|
110
110
|
case 0:
|
|
111
111
|
if (!(popper.value || !targetElement.value || !contentElement.value)) {
|
|
112
|
-
_context.
|
|
112
|
+
_context.n = 1;
|
|
113
113
|
break;
|
|
114
114
|
}
|
|
115
|
-
return _context.
|
|
116
|
-
case
|
|
117
|
-
_context.
|
|
115
|
+
return _context.a(2);
|
|
116
|
+
case 1:
|
|
117
|
+
_context.n = 2;
|
|
118
118
|
return nextTick();
|
|
119
|
-
case
|
|
119
|
+
case 2:
|
|
120
120
|
// ensure content is in DOM (esp. with Transition/Teleport)
|
|
121
121
|
popper.value = createPopper(targetElement.value, contentElement.value, {
|
|
122
122
|
placement: props.placement,
|
|
@@ -133,9 +133,8 @@ var __default__ = defineComponent({
|
|
|
133
133
|
}
|
|
134
134
|
}]
|
|
135
135
|
});
|
|
136
|
-
case
|
|
137
|
-
|
|
138
|
-
return _context.stop();
|
|
136
|
+
case 3:
|
|
137
|
+
return _context.a(2);
|
|
139
138
|
}
|
|
140
139
|
}, _callee);
|
|
141
140
|
}));
|
|
@@ -156,23 +155,22 @@ var __default__ = defineComponent({
|
|
|
156
155
|
});
|
|
157
156
|
};
|
|
158
157
|
var open = /*#__PURE__*/function () {
|
|
159
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
160
|
-
return
|
|
161
|
-
while (1) switch (_context2.
|
|
158
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
159
|
+
return _regenerator().w(function (_context2) {
|
|
160
|
+
while (1) switch (_context2.n) {
|
|
162
161
|
case 0:
|
|
163
162
|
clearHideTimer();
|
|
164
163
|
if (!(props.trigger === 'hover' || props.trigger === 'focus' || props.trigger === 'click')) {
|
|
165
|
-
_context2.
|
|
164
|
+
_context2.n = 2;
|
|
166
165
|
break;
|
|
167
166
|
}
|
|
168
167
|
visible.value = true;
|
|
169
|
-
_context2.
|
|
168
|
+
_context2.n = 1;
|
|
170
169
|
return ensurePopper();
|
|
171
|
-
case
|
|
170
|
+
case 1:
|
|
172
171
|
scheduleUpdate();
|
|
173
|
-
case
|
|
174
|
-
|
|
175
|
-
return _context2.stop();
|
|
172
|
+
case 2:
|
|
173
|
+
return _context2.a(2);
|
|
176
174
|
}
|
|
177
175
|
}, _callee2);
|
|
178
176
|
}));
|
package/esm/fw-popover.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { _ as FwPopover } from './fw-popover-
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
1
|
+
export { _ as FwPopover } from './fw-popover-Dv8DodUb.js';
|
|
2
|
+
import './_rollupPluginBabelHelpers-BLtav7L4.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import './index-BVcOAKar.js';
|
|
5
5
|
import './style-inject.es-tgCJW-Cu.js';
|
package/esm/fw-provider-list.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { f as _createForOfIteratorHelper, e as _defineProperty, b as _toConsumableArray } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { f as _createForOfIteratorHelper, e as _defineProperty, b as _toConsumableArray } from './_rollupPluginBabelHelpers-BLtav7L4.js';
|
|
2
2
|
import { ref, watch, defineComponent, shallowRef, computed, useCssVars, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, withCtx, createBlock, createCommentVNode, createTextVNode } from 'vue';
|
|
3
|
-
import { a as script, s as script$1, _ as __default__$4 } from './fw-table-row-
|
|
3
|
+
import { a as script, s as script$1, _ as __default__$4 } from './fw-table-row-CLb3Xliv.js';
|
|
4
4
|
import { _ as __default__$3 } from './fw-input-HqJer3qu.js';
|
|
5
5
|
import { FwTag as __default__$1 } from './fw-tag.js';
|
|
6
|
-
import { s as script$2 } from './fw-button-
|
|
7
|
-
import { _ as __default__$2 } from './fw-dropdown-
|
|
6
|
+
import { s as script$2 } from './fw-button-CeUZjl-m.js';
|
|
7
|
+
import { _ as __default__$2 } from './fw-dropdown-Cn-AOd9J.js';
|
|
8
8
|
import { l as render$1, m as render$2, n as render$3 } from './index-BdZ_WcnP.js';
|
|
9
9
|
import { u as useColours } from './get-root-colours-DCCAnRF4.js';
|
|
10
10
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
11
11
|
import './fw-button.js';
|
|
12
12
|
import './fw-loading.js';
|
|
13
|
-
import './fw-loading-bar-
|
|
13
|
+
import './fw-loading-bar-CMt4O4Ys.js';
|
|
14
14
|
import './vee-validate-0dtT5GSQ.js';
|
|
15
|
-
import './fw-image-
|
|
15
|
+
import './fw-image-DSZYmjep.js';
|
|
16
16
|
|
|
17
17
|
// tiny debounce helper (no deps)
|
|
18
18
|
var useDebouncedRef = function useDebouncedRef(initial) {
|
package/esm/fw-sidebar-menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, 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-CeUZjl-m.js';
|
|
3
3
|
import { o as render$1 } from './index-BdZ_WcnP.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
5
5
|
|
|
@@ -3,8 +3,8 @@ import { u as useColours } from './get-root-colours-DCCAnRF4.js';
|
|
|
3
3
|
import './fw-button.js';
|
|
4
4
|
import { o as render$3, p as render$4, q as render$5, s as render$6 } from './index-BdZ_WcnP.js';
|
|
5
5
|
import './fw-loading.js';
|
|
6
|
-
import { s as script$2 } from './fw-button-
|
|
7
|
-
import { s as script$3 } from './fw-loading-bar-
|
|
6
|
+
import { s as script$2 } from './fw-button-CeUZjl-m.js';
|
|
7
|
+
import { s as script$3 } from './fw-loading-bar-CMt4O4Ys.js';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
9
9
|
|
|
10
10
|
var __default__ = defineComponent({
|
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-CLb3Xliv.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import './get-root-colours-DCCAnRF4.js';
|
|
4
4
|
import './fw-button.js';
|
|
5
|
-
import './fw-button-
|
|
5
|
+
import './fw-button-CeUZjl-m.js';
|
|
6
6
|
import './index-BdZ_WcnP.js';
|
|
7
7
|
import './style-inject.es-tgCJW-Cu.js';
|
|
8
8
|
import './fw-loading.js';
|
|
9
|
-
import './fw-loading-bar-
|
|
9
|
+
import './fw-loading-bar-CMt4O4Ys.js';
|
package/esm/fw-tabs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, shallowReactive, shallowRef, computed, provide, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createVNode, normalizeClass, withCtx, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, renderSlot, inject, getCurrentInstance, ref, onMounted, onBeforeUnmount, createBlock, Transition, withDirectives, vShow } from 'vue';
|
|
2
|
-
import { s as script$2 } from './fw-button-
|
|
2
|
+
import { s as script$2 } from './fw-button-CeUZjl-m.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
4
4
|
import './index-BdZ_WcnP.js';
|
|
5
5
|
|
package/esm/fw-tag.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, useCssVars, resolveComponent, openBlock
|
|
|
2
2
|
import './fw-button.js';
|
|
3
3
|
import { d as render$1 } from './index-BdZ_WcnP.js';
|
|
4
4
|
import { u as useColours } from './get-root-colours-DCCAnRF4.js';
|
|
5
|
-
import { s as script } from './fw-button-
|
|
5
|
+
import { s as script } from './fw-button-CeUZjl-m.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
7
7
|
|
|
8
8
|
var TAG_CLASSES = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createCommentVNode, toDisplayString, createElementBlock } from 'vue';
|
|
2
2
|
import { _ as __default__$1 } from './fw-card-DJXjRPUR.js';
|
|
3
|
-
import { _ as __default__ } from './fw-image-
|
|
3
|
+
import { _ as __default__ } from './fw-image-DSZYmjep.js';
|
|
4
4
|
import './get-root-colours-DCCAnRF4.js';
|
|
5
5
|
import './style-inject.es-tgCJW-Cu.js';
|
|
6
|
-
import './_rollupPluginBabelHelpers-
|
|
7
|
-
import './fw-loading-bar-
|
|
6
|
+
import './_rollupPluginBabelHelpers-BLtav7L4.js';
|
|
7
|
+
import './fw-loading-bar-CMt4O4Ys.js';
|
|
8
8
|
import './index-BdZ_WcnP.js';
|
|
9
9
|
|
|
10
10
|
var script = defineComponent({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as _asyncToGenerator, d as
|
|
1
|
+
import { c as _asyncToGenerator, d as _regenerator, a as _slicedToArray, b as _toConsumableArray } from './_rollupPluginBabelHelpers-BLtav7L4.js';
|
|
2
2
|
import { h, render as render$1, defineComponent, ref, shallowRef, onBeforeUnmount, computed, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, createVNode, toDisplayString, withCtx, withModifiers, normalizeClass, createTextVNode, createCommentVNode } from 'vue';
|
|
3
3
|
import { e as render$2, f as render$3, g as render$4, h as render$5, i as render$6, j as render$7 } from './index-BdZ_WcnP.js';
|
|
4
4
|
import { FwModal as __default__ } from './fw-modal.js';
|
|
5
5
|
import './fw-button.js';
|
|
6
6
|
import { u as useColours } from './get-root-colours-DCCAnRF4.js';
|
|
7
|
-
import { s as script$1 } from './fw-button-
|
|
7
|
+
import { s as script$1 } from './fw-button-CeUZjl-m.js';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
9
9
|
|
|
10
10
|
var getVueComponentHtml = function getVueComponentHtml(component, props) {
|
|
@@ -145,58 +145,57 @@ var script = defineComponent({
|
|
|
145
145
|
watch(function () {
|
|
146
146
|
return props.imageUrl;
|
|
147
147
|
}, /*#__PURE__*/function () {
|
|
148
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
149
|
-
var _bitmap$value2, _bitmap$value2$close, myToken, res, blob, mimeType, file;
|
|
150
|
-
return
|
|
151
|
-
while (1) switch (_context.
|
|
148
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(url) {
|
|
149
|
+
var _bitmap$value2, _bitmap$value2$close, myToken, res, blob, mimeType, file, _t;
|
|
150
|
+
return _regenerator().w(function (_context) {
|
|
151
|
+
while (1) switch (_context.p = _context.n) {
|
|
152
152
|
case 0:
|
|
153
153
|
if (url) {
|
|
154
|
-
_context.
|
|
154
|
+
_context.n = 1;
|
|
155
155
|
break;
|
|
156
156
|
}
|
|
157
157
|
setFile(null);
|
|
158
158
|
(_bitmap$value2 = bitmap.value) === null || _bitmap$value2 === void 0 || (_bitmap$value2$close = _bitmap$value2.close) === null || _bitmap$value2$close === void 0 || _bitmap$value2$close.call(_bitmap$value2);
|
|
159
159
|
bitmap.value = null;
|
|
160
|
-
return _context.
|
|
161
|
-
case
|
|
160
|
+
return _context.a(2);
|
|
161
|
+
case 1:
|
|
162
162
|
myToken = ++fetchToken;
|
|
163
163
|
loading.value = true;
|
|
164
|
-
_context.
|
|
165
|
-
_context.
|
|
164
|
+
_context.p = 2;
|
|
165
|
+
_context.n = 3;
|
|
166
166
|
return fetch(url);
|
|
167
|
-
case
|
|
168
|
-
res = _context.
|
|
169
|
-
_context.
|
|
167
|
+
case 3:
|
|
168
|
+
res = _context.v;
|
|
169
|
+
_context.n = 4;
|
|
170
170
|
return res.blob();
|
|
171
|
-
case
|
|
172
|
-
blob = _context.
|
|
171
|
+
case 4:
|
|
172
|
+
blob = _context.v;
|
|
173
173
|
mimeType = res.headers.get('Content-Type') || blob.type;
|
|
174
174
|
file = new File([blob], 'image', {
|
|
175
175
|
type: mimeType
|
|
176
176
|
});
|
|
177
177
|
if (!(myToken !== fetchToken)) {
|
|
178
|
-
_context.
|
|
178
|
+
_context.n = 5;
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
|
-
return _context.
|
|
182
|
-
case
|
|
181
|
+
return _context.a(2);
|
|
182
|
+
case 5:
|
|
183
183
|
// stale fetch
|
|
184
184
|
setFile(file);
|
|
185
|
-
_context.
|
|
185
|
+
_context.n = 7;
|
|
186
186
|
break;
|
|
187
|
-
case
|
|
188
|
-
_context.
|
|
189
|
-
|
|
190
|
-
console.error('Error fetching image:',
|
|
191
|
-
case
|
|
192
|
-
_context.
|
|
187
|
+
case 6:
|
|
188
|
+
_context.p = 6;
|
|
189
|
+
_t = _context.v;
|
|
190
|
+
console.error('Error fetching image:', _t);
|
|
191
|
+
case 7:
|
|
192
|
+
_context.p = 7;
|
|
193
193
|
if (myToken === fetchToken) loading.value = false;
|
|
194
|
-
return _context.
|
|
195
|
-
case
|
|
196
|
-
|
|
197
|
-
return _context.stop();
|
|
194
|
+
return _context.f(7);
|
|
195
|
+
case 8:
|
|
196
|
+
return _context.a(2);
|
|
198
197
|
}
|
|
199
|
-
}, _callee, null, [[
|
|
198
|
+
}, _callee, null, [[2, 6, 7, 8]]);
|
|
200
199
|
}));
|
|
201
200
|
return function (_x) {
|
|
202
201
|
return _ref2.apply(this, arguments);
|
|
@@ -207,46 +206,45 @@ var script = defineComponent({
|
|
|
207
206
|
// Decode bitmap once per file
|
|
208
207
|
var decodeToken = 0;
|
|
209
208
|
watch(selectedFile, /*#__PURE__*/function () {
|
|
210
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
209
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file) {
|
|
211
210
|
var _bitmap$value3, _bitmap$value3$close;
|
|
212
|
-
var myToken, bm, _bm$close;
|
|
213
|
-
return
|
|
214
|
-
while (1) switch (_context2.
|
|
211
|
+
var myToken, bm, _bm$close, _t2;
|
|
212
|
+
return _regenerator().w(function (_context2) {
|
|
213
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
215
214
|
case 0:
|
|
216
215
|
(_bitmap$value3 = bitmap.value) === null || _bitmap$value3 === void 0 || (_bitmap$value3$close = _bitmap$value3.close) === null || _bitmap$value3$close === void 0 || _bitmap$value3$close.call(_bitmap$value3);
|
|
217
216
|
bitmap.value = null;
|
|
218
217
|
if (file) {
|
|
219
|
-
_context2.
|
|
218
|
+
_context2.n = 1;
|
|
220
219
|
break;
|
|
221
220
|
}
|
|
222
|
-
return _context2.
|
|
223
|
-
case
|
|
221
|
+
return _context2.a(2);
|
|
222
|
+
case 1:
|
|
224
223
|
myToken = ++decodeToken;
|
|
225
|
-
_context2.
|
|
226
|
-
_context2.
|
|
224
|
+
_context2.p = 2;
|
|
225
|
+
_context2.n = 3;
|
|
227
226
|
return createImageBitmap(file);
|
|
228
|
-
case
|
|
229
|
-
bm = _context2.
|
|
227
|
+
case 3:
|
|
228
|
+
bm = _context2.v;
|
|
230
229
|
if (!(myToken !== decodeToken)) {
|
|
231
|
-
_context2.
|
|
230
|
+
_context2.n = 4;
|
|
232
231
|
break;
|
|
233
232
|
}
|
|
234
233
|
(_bm$close = bm.close) === null || _bm$close === void 0 || _bm$close.call(bm);
|
|
235
|
-
return _context2.
|
|
236
|
-
case
|
|
234
|
+
return _context2.a(2);
|
|
235
|
+
case 4:
|
|
237
236
|
bitmap.value = bm;
|
|
238
237
|
if (isEditMediaModalOpen.value) scheduleDraw();
|
|
239
|
-
_context2.
|
|
238
|
+
_context2.n = 6;
|
|
240
239
|
break;
|
|
241
|
-
case
|
|
242
|
-
_context2.
|
|
243
|
-
|
|
244
|
-
console.error('Error decoding bitmap:',
|
|
245
|
-
case
|
|
246
|
-
|
|
247
|
-
return _context2.stop();
|
|
240
|
+
case 5:
|
|
241
|
+
_context2.p = 5;
|
|
242
|
+
_t2 = _context2.v;
|
|
243
|
+
console.error('Error decoding bitmap:', _t2);
|
|
244
|
+
case 6:
|
|
245
|
+
return _context2.a(2);
|
|
248
246
|
}
|
|
249
|
-
}, _callee2, null, [[
|
|
247
|
+
}, _callee2, null, [[2, 5]]);
|
|
250
248
|
}));
|
|
251
249
|
return function (_x2) {
|
|
252
250
|
return _ref3.apply(this, arguments);
|
|
@@ -296,22 +294,21 @@ var script = defineComponent({
|
|
|
296
294
|
var scheduleDraw = function scheduleDraw() {
|
|
297
295
|
var save = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
298
296
|
if (rafId != null) return;
|
|
299
|
-
rafId = requestAnimationFrame(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
300
|
-
return
|
|
301
|
-
while (1) switch (_context3.
|
|
297
|
+
rafId = requestAnimationFrame(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
298
|
+
return _regenerator().w(function (_context3) {
|
|
299
|
+
while (1) switch (_context3.n) {
|
|
302
300
|
case 0:
|
|
303
301
|
rafId = null;
|
|
304
|
-
_context3.
|
|
302
|
+
_context3.n = 1;
|
|
305
303
|
return drawImageOnCanvas(save);
|
|
306
|
-
case
|
|
307
|
-
|
|
308
|
-
return _context3.stop();
|
|
304
|
+
case 1:
|
|
305
|
+
return _context3.a(2);
|
|
309
306
|
}
|
|
310
307
|
}, _callee3);
|
|
311
308
|
})));
|
|
312
309
|
};
|
|
313
310
|
var drawImageOnCanvas = /*#__PURE__*/function () {
|
|
314
|
-
var _ref5 = _asyncToGenerator(/*#__PURE__*/
|
|
311
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
315
312
|
var save,
|
|
316
313
|
canvas,
|
|
317
314
|
bm,
|
|
@@ -330,25 +327,25 @@ var script = defineComponent({
|
|
|
330
327
|
cx,
|
|
331
328
|
cy,
|
|
332
329
|
_args4 = arguments;
|
|
333
|
-
return
|
|
334
|
-
while (1) switch (_context4.
|
|
330
|
+
return _regenerator().w(function (_context4) {
|
|
331
|
+
while (1) switch (_context4.n) {
|
|
335
332
|
case 0:
|
|
336
333
|
save = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : false;
|
|
337
334
|
canvas = editorCanvas.value;
|
|
338
335
|
bm = bitmap.value;
|
|
339
336
|
if (!(!canvas || !bm)) {
|
|
340
|
-
_context4.
|
|
337
|
+
_context4.n = 1;
|
|
341
338
|
break;
|
|
342
339
|
}
|
|
343
|
-
return _context4.
|
|
344
|
-
case
|
|
340
|
+
return _context4.a(2);
|
|
341
|
+
case 1:
|
|
345
342
|
ctx = canvas.getContext('2d');
|
|
346
343
|
if (ctx) {
|
|
347
|
-
_context4.
|
|
344
|
+
_context4.n = 2;
|
|
348
345
|
break;
|
|
349
346
|
}
|
|
350
|
-
return _context4.
|
|
351
|
-
case
|
|
347
|
+
return _context4.a(2);
|
|
348
|
+
case 2:
|
|
352
349
|
imgW = bm.width, imgH = bm.height;
|
|
353
350
|
cW = canvas.width, cH = canvas.height;
|
|
354
351
|
ctx.clearRect(0, 0, cW, cH);
|
|
@@ -374,9 +371,8 @@ var script = defineComponent({
|
|
|
374
371
|
ctx.fillRect(cx, cy, squareSize, squareSize);
|
|
375
372
|
}
|
|
376
373
|
}
|
|
377
|
-
case
|
|
378
|
-
|
|
379
|
-
return _context4.stop();
|
|
374
|
+
case 3:
|
|
375
|
+
return _context4.a(2);
|
|
380
376
|
}
|
|
381
377
|
}, _callee4);
|
|
382
378
|
}));
|
|
@@ -480,21 +476,21 @@ var script = defineComponent({
|
|
|
480
476
|
scheduleDraw();
|
|
481
477
|
};
|
|
482
478
|
var save = /*#__PURE__*/function () {
|
|
483
|
-
var _ref6 = _asyncToGenerator(/*#__PURE__*/
|
|
479
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
|
|
484
480
|
var canvas;
|
|
485
|
-
return
|
|
486
|
-
while (1) switch (_context5.
|
|
481
|
+
return _regenerator().w(function (_context5) {
|
|
482
|
+
while (1) switch (_context5.n) {
|
|
487
483
|
case 0:
|
|
488
484
|
canvas = editorCanvas.value;
|
|
489
485
|
if (canvas) {
|
|
490
|
-
_context5.
|
|
486
|
+
_context5.n = 1;
|
|
491
487
|
break;
|
|
492
488
|
}
|
|
493
|
-
return _context5.
|
|
494
|
-
case
|
|
495
|
-
_context5.
|
|
489
|
+
return _context5.a(2);
|
|
490
|
+
case 1:
|
|
491
|
+
_context5.n = 2;
|
|
496
492
|
return drawImageOnCanvas(true);
|
|
497
|
-
case
|
|
493
|
+
case 2:
|
|
498
494
|
canvas.toBlob(function (blob) {
|
|
499
495
|
if (!blob) return;
|
|
500
496
|
var file = new File([blob], 'edited-image.png', {
|
|
@@ -505,9 +501,8 @@ var script = defineComponent({
|
|
|
505
501
|
isEditMediaModalOpen.value = false;
|
|
506
502
|
clearEdits();
|
|
507
503
|
}, 'image/png');
|
|
508
|
-
case
|
|
509
|
-
|
|
510
|
-
return _context5.stop();
|
|
504
|
+
case 3:
|
|
505
|
+
return _context5.a(2);
|
|
511
506
|
}
|
|
512
507
|
}, _callee5);
|
|
513
508
|
}));
|