@frollo/frollo-web-ui 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +571 -402
- package/esm/{add-to-unscopables-874257d1.js → add-to-unscopables-81c17489.js} +139 -99
- package/esm/{es.array.includes-ef2f18f4.js → es.array.includes-debcb50f.js} +9 -3
- package/esm/{es.function.name-43e1ffbd.js → es.function.name-e746680f.js} +1 -1
- package/esm/{function-name-a620492a.js → function-name-f0c1223e.js} +52 -61
- package/esm/{fw-button-93be6218.js → fw-button-ab906734.js} +12 -4
- package/esm/fw-button.js +4 -4
- package/esm/fw-card.js +6 -3
- package/esm/fw-checkbox.js +13 -8
- package/esm/fw-form.js +1 -1
- package/esm/fw-input.js +21 -11
- package/esm/fw-modal.js +7 -475
- package/esm/fw-navigation-menu.js +17 -17
- package/esm/fw-tabs.js +3 -3
- package/esm/{index-5430e7a3.js → index-0e14da44.js} +18 -22
- package/esm/index-963039a3.js +475 -0
- package/esm/index.js +124 -45
- package/esm/{vee-validate.esm-028c6424.js → vee-validate.esm-b64acab1.js} +62 -9
- package/frollo-web-ui.esm.js +592 -399
- package/index.d.ts +29 -24
- package/package.json +20 -17
- package/tailwind.config.js +8 -8
- package/types/components/fw-button/fw-button.vue.d.ts +1 -0
- package/types/components/fw-button/index.types.d.ts +1 -9
- package/types/components/fw-card/fw-card.vue.d.ts +1 -0
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +5 -4
- package/types/components/fw-checkbox/index.types.d.ts +1 -1
- package/types/components/fw-input/fw-input.vue.d.ts +17 -4
- package/types/components/fw-input/index.types.d.ts +2 -5
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +1 -0
- package/types/services/modal.d.ts +1 -1
package/esm/fw-modal.js
CHANGED
|
@@ -1,475 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import '
|
|
6
|
-
import './
|
|
7
|
-
|
|
8
|
-
/** Detect free variable `global` from Node.js. */
|
|
9
|
-
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
10
|
-
|
|
11
|
-
/** Detect free variable `self`. */
|
|
12
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
13
|
-
|
|
14
|
-
/** Used as a reference to the global object. */
|
|
15
|
-
var root = freeGlobal || freeSelf || Function('return this')();
|
|
16
|
-
|
|
17
|
-
/** Built-in value references. */
|
|
18
|
-
var Symbol = root.Symbol;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
22
|
-
* shorthands.
|
|
23
|
-
*
|
|
24
|
-
* @private
|
|
25
|
-
* @param {Array} [array] The array to iterate over.
|
|
26
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
27
|
-
* @returns {Array} Returns the new mapped array.
|
|
28
|
-
*/
|
|
29
|
-
function arrayMap(array, iteratee) {
|
|
30
|
-
var index = -1,
|
|
31
|
-
length = array == null ? 0 : array.length,
|
|
32
|
-
result = Array(length);
|
|
33
|
-
|
|
34
|
-
while (++index < length) {
|
|
35
|
-
result[index] = iteratee(array[index], index, array);
|
|
36
|
-
}
|
|
37
|
-
return result;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Checks if `value` is classified as an `Array` object.
|
|
42
|
-
*
|
|
43
|
-
* @static
|
|
44
|
-
* @memberOf _
|
|
45
|
-
* @since 0.1.0
|
|
46
|
-
* @category Lang
|
|
47
|
-
* @param {*} value The value to check.
|
|
48
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
49
|
-
* @example
|
|
50
|
-
*
|
|
51
|
-
* _.isArray([1, 2, 3]);
|
|
52
|
-
* // => true
|
|
53
|
-
*
|
|
54
|
-
* _.isArray(document.body.children);
|
|
55
|
-
* // => false
|
|
56
|
-
*
|
|
57
|
-
* _.isArray('abc');
|
|
58
|
-
* // => false
|
|
59
|
-
*
|
|
60
|
-
* _.isArray(_.noop);
|
|
61
|
-
* // => false
|
|
62
|
-
*/
|
|
63
|
-
var isArray = Array.isArray;
|
|
64
|
-
|
|
65
|
-
/** Used for built-in method references. */
|
|
66
|
-
var objectProto$1 = Object.prototype;
|
|
67
|
-
|
|
68
|
-
/** Used to check objects for own properties. */
|
|
69
|
-
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Used to resolve the
|
|
73
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
74
|
-
* of values.
|
|
75
|
-
*/
|
|
76
|
-
var nativeObjectToString$1 = objectProto$1.toString;
|
|
77
|
-
|
|
78
|
-
/** Built-in value references. */
|
|
79
|
-
var symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
83
|
-
*
|
|
84
|
-
* @private
|
|
85
|
-
* @param {*} value The value to query.
|
|
86
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
87
|
-
*/
|
|
88
|
-
function getRawTag(value) {
|
|
89
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag$1),
|
|
90
|
-
tag = value[symToStringTag$1];
|
|
91
|
-
|
|
92
|
-
try {
|
|
93
|
-
value[symToStringTag$1] = undefined;
|
|
94
|
-
var unmasked = true;
|
|
95
|
-
} catch (e) {}
|
|
96
|
-
|
|
97
|
-
var result = nativeObjectToString$1.call(value);
|
|
98
|
-
if (unmasked) {
|
|
99
|
-
if (isOwn) {
|
|
100
|
-
value[symToStringTag$1] = tag;
|
|
101
|
-
} else {
|
|
102
|
-
delete value[symToStringTag$1];
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return result;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/** Used for built-in method references. */
|
|
109
|
-
var objectProto = Object.prototype;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Used to resolve the
|
|
113
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
114
|
-
* of values.
|
|
115
|
-
*/
|
|
116
|
-
var nativeObjectToString = objectProto.toString;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
120
|
-
*
|
|
121
|
-
* @private
|
|
122
|
-
* @param {*} value The value to convert.
|
|
123
|
-
* @returns {string} Returns the converted string.
|
|
124
|
-
*/
|
|
125
|
-
function objectToString(value) {
|
|
126
|
-
return nativeObjectToString.call(value);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/** `Object#toString` result references. */
|
|
130
|
-
var nullTag = '[object Null]',
|
|
131
|
-
undefinedTag = '[object Undefined]';
|
|
132
|
-
|
|
133
|
-
/** Built-in value references. */
|
|
134
|
-
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
138
|
-
*
|
|
139
|
-
* @private
|
|
140
|
-
* @param {*} value The value to query.
|
|
141
|
-
* @returns {string} Returns the `toStringTag`.
|
|
142
|
-
*/
|
|
143
|
-
function baseGetTag(value) {
|
|
144
|
-
if (value == null) {
|
|
145
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
146
|
-
}
|
|
147
|
-
return (symToStringTag && symToStringTag in Object(value))
|
|
148
|
-
? getRawTag(value)
|
|
149
|
-
: objectToString(value);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
154
|
-
* and has a `typeof` result of "object".
|
|
155
|
-
*
|
|
156
|
-
* @static
|
|
157
|
-
* @memberOf _
|
|
158
|
-
* @since 4.0.0
|
|
159
|
-
* @category Lang
|
|
160
|
-
* @param {*} value The value to check.
|
|
161
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
162
|
-
* @example
|
|
163
|
-
*
|
|
164
|
-
* _.isObjectLike({});
|
|
165
|
-
* // => true
|
|
166
|
-
*
|
|
167
|
-
* _.isObjectLike([1, 2, 3]);
|
|
168
|
-
* // => true
|
|
169
|
-
*
|
|
170
|
-
* _.isObjectLike(_.noop);
|
|
171
|
-
* // => false
|
|
172
|
-
*
|
|
173
|
-
* _.isObjectLike(null);
|
|
174
|
-
* // => false
|
|
175
|
-
*/
|
|
176
|
-
function isObjectLike(value) {
|
|
177
|
-
return value != null && typeof value == 'object';
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/** `Object#toString` result references. */
|
|
181
|
-
var symbolTag = '[object Symbol]';
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
185
|
-
*
|
|
186
|
-
* @static
|
|
187
|
-
* @memberOf _
|
|
188
|
-
* @since 4.0.0
|
|
189
|
-
* @category Lang
|
|
190
|
-
* @param {*} value The value to check.
|
|
191
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
192
|
-
* @example
|
|
193
|
-
*
|
|
194
|
-
* _.isSymbol(Symbol.iterator);
|
|
195
|
-
* // => true
|
|
196
|
-
*
|
|
197
|
-
* _.isSymbol('abc');
|
|
198
|
-
* // => false
|
|
199
|
-
*/
|
|
200
|
-
function isSymbol(value) {
|
|
201
|
-
return typeof value == 'symbol' ||
|
|
202
|
-
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/** Used as references for various `Number` constants. */
|
|
206
|
-
var INFINITY = 1 / 0;
|
|
207
|
-
|
|
208
|
-
/** Used to convert symbols to primitives and strings. */
|
|
209
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
210
|
-
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
214
|
-
* values to empty strings.
|
|
215
|
-
*
|
|
216
|
-
* @private
|
|
217
|
-
* @param {*} value The value to process.
|
|
218
|
-
* @returns {string} Returns the string.
|
|
219
|
-
*/
|
|
220
|
-
function baseToString(value) {
|
|
221
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
222
|
-
if (typeof value == 'string') {
|
|
223
|
-
return value;
|
|
224
|
-
}
|
|
225
|
-
if (isArray(value)) {
|
|
226
|
-
// Recursively convert values (susceptible to call stack limits).
|
|
227
|
-
return arrayMap(value, baseToString) + '';
|
|
228
|
-
}
|
|
229
|
-
if (isSymbol(value)) {
|
|
230
|
-
return symbolToString ? symbolToString.call(value) : '';
|
|
231
|
-
}
|
|
232
|
-
var result = (value + '');
|
|
233
|
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
238
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
239
|
-
*
|
|
240
|
-
* @static
|
|
241
|
-
* @memberOf _
|
|
242
|
-
* @since 4.0.0
|
|
243
|
-
* @category Lang
|
|
244
|
-
* @param {*} value The value to convert.
|
|
245
|
-
* @returns {string} Returns the converted string.
|
|
246
|
-
* @example
|
|
247
|
-
*
|
|
248
|
-
* _.toString(null);
|
|
249
|
-
* // => ''
|
|
250
|
-
*
|
|
251
|
-
* _.toString(-0);
|
|
252
|
-
* // => '-0'
|
|
253
|
-
*
|
|
254
|
-
* _.toString([1, 2, 3]);
|
|
255
|
-
* // => '1,2,3'
|
|
256
|
-
*/
|
|
257
|
-
function toString(value) {
|
|
258
|
-
return value == null ? '' : baseToString(value);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/** Used to generate unique IDs. */
|
|
262
|
-
var idCounter = 0;
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Generates a unique ID. If `prefix` is given, the ID is appended to it.
|
|
266
|
-
*
|
|
267
|
-
* @static
|
|
268
|
-
* @since 0.1.0
|
|
269
|
-
* @memberOf _
|
|
270
|
-
* @category Util
|
|
271
|
-
* @param {string} [prefix=''] The value to prefix the ID with.
|
|
272
|
-
* @returns {string} Returns the unique ID.
|
|
273
|
-
* @example
|
|
274
|
-
*
|
|
275
|
-
* _.uniqueId('contact_');
|
|
276
|
-
* // => 'contact_104'
|
|
277
|
-
*
|
|
278
|
-
* _.uniqueId();
|
|
279
|
-
* // => '105'
|
|
280
|
-
*/
|
|
281
|
-
function uniqueId(prefix) {
|
|
282
|
-
var id = ++idCounter;
|
|
283
|
-
return toString(prefix) + id;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
var script = defineComponent({
|
|
287
|
-
name: 'FwModal',
|
|
288
|
-
components: {
|
|
289
|
-
FwButton: script$1
|
|
290
|
-
},
|
|
291
|
-
emits: ['cancel', 'confirm'],
|
|
292
|
-
props: {
|
|
293
|
-
/**
|
|
294
|
-
* The header title of the modal
|
|
295
|
-
*/
|
|
296
|
-
header: {
|
|
297
|
-
type: String
|
|
298
|
-
},
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* The body description of the modal
|
|
302
|
-
*/
|
|
303
|
-
body: {
|
|
304
|
-
type: String
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* The aria role of the modal container. Defaults to `dialog`
|
|
309
|
-
*/
|
|
310
|
-
role: {
|
|
311
|
-
type: String,
|
|
312
|
-
"default": 'dialog'
|
|
313
|
-
},
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Whether to show the cancel button
|
|
317
|
-
*/
|
|
318
|
-
showCancel: {
|
|
319
|
-
type: Boolean,
|
|
320
|
-
"default": false
|
|
321
|
-
},
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Whether to show the confirm button
|
|
325
|
-
*/
|
|
326
|
-
showConfirm: {
|
|
327
|
-
type: Boolean,
|
|
328
|
-
"default": true
|
|
329
|
-
},
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Custom text for the cancel button
|
|
333
|
-
*/
|
|
334
|
-
cancelButtonText: {
|
|
335
|
-
type: String,
|
|
336
|
-
"default": 'Cancel'
|
|
337
|
-
},
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Button variant for the cancel button
|
|
341
|
-
*/
|
|
342
|
-
cancelButtonType: {
|
|
343
|
-
type: String,
|
|
344
|
-
"default": 'secondary',
|
|
345
|
-
validator: function validator(value) {
|
|
346
|
-
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text'].includes(value);
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Custom text for the confirm button
|
|
352
|
-
*/
|
|
353
|
-
confirmButtonText: {
|
|
354
|
-
type: String,
|
|
355
|
-
"default": 'Confirm'
|
|
356
|
-
},
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* Button variant for the confirm button
|
|
360
|
-
*/
|
|
361
|
-
confirmButtonType: {
|
|
362
|
-
type: String,
|
|
363
|
-
"default": 'primary',
|
|
364
|
-
validator: function validator(value) {
|
|
365
|
-
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text'].includes(value);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
setup: function setup() {
|
|
370
|
-
var uuid = uniqueId();
|
|
371
|
-
return {
|
|
372
|
-
uuid: uuid
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
|
|
377
|
-
var _withScopeId = function _withScopeId(n) {
|
|
378
|
-
return pushScopeId("data-v-d1d6dbae"), n = n(), popScopeId(), n;
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
var _hoisted_1 = {
|
|
382
|
-
"class": "fw-modal"
|
|
383
|
-
};
|
|
384
|
-
var _hoisted_2 = {
|
|
385
|
-
"class": "fw-modal--mask fixed z-[9999] top-0 left-0 w-full h-full bg-black bg-opacity-50"
|
|
386
|
-
};
|
|
387
|
-
var _hoisted_3 = {
|
|
388
|
-
"class": "fw-modal--wrapper text-center overflow-auto flex justify-center items-center h-full"
|
|
389
|
-
};
|
|
390
|
-
var _hoisted_4 = ["role", "aria-labelledby", "aria-describedby"];
|
|
391
|
-
var _hoisted_5 = {
|
|
392
|
-
key: 0,
|
|
393
|
-
"class": "fw-modal--header text-center"
|
|
394
|
-
};
|
|
395
|
-
var _hoisted_6 = {
|
|
396
|
-
key: 0,
|
|
397
|
-
id: "modal-logo",
|
|
398
|
-
"class": "flex justify-center"
|
|
399
|
-
};
|
|
400
|
-
var _hoisted_7 = ["id"];
|
|
401
|
-
var _hoisted_8 = ["id", "innerHTML"];
|
|
402
|
-
var _hoisted_9 = ["id"];
|
|
403
|
-
var _hoisted_10 = ["innerHTML", "id"];
|
|
404
|
-
var _hoisted_11 = {
|
|
405
|
-
key: 3,
|
|
406
|
-
"class": "modal-footer flex space-x-4 pt-4 justify-center"
|
|
407
|
-
};
|
|
408
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
409
|
-
var _component_FwButton = resolveComponent("FwButton");
|
|
410
|
-
|
|
411
|
-
return openBlock(), createBlock(Transition, {
|
|
412
|
-
name: "modalFadeIn"
|
|
413
|
-
}, {
|
|
414
|
-
"default": withCtx(function () {
|
|
415
|
-
return [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", {
|
|
416
|
-
role: _ctx.role,
|
|
417
|
-
"class": "fw-modal--container p-12 m-8 inline-block w-full max-w-[540px] bg-white rounded-2xl shadow",
|
|
418
|
-
"aria-labelledby": _ctx.$slots.header || _ctx.header ? "modal_".concat(_ctx.uuid, "_header") : null,
|
|
419
|
-
"aria-describedby": _ctx.$slots.body ? "modal_".concat(_ctx.uuid, "_body") : null
|
|
420
|
-
}, [_ctx.$slots.icon || _ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock("div", _hoisted_5, [_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true), _ctx.$slots.header ? (openBlock(), createElementBlock("h2", {
|
|
421
|
-
key: 1,
|
|
422
|
-
id: "modal_".concat(_ctx.uuid, "_header")
|
|
423
|
-
}, [renderSlot(_ctx.$slots, "header")], 8, _hoisted_7)) : _ctx.header ? (openBlock(), createElementBlock("h2", {
|
|
424
|
-
key: 2,
|
|
425
|
-
id: "modal_".concat(_ctx.uuid, "_header"),
|
|
426
|
-
innerHTML: _ctx.header
|
|
427
|
-
}, null, 8, _hoisted_8)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots.body ? (openBlock(), createElementBlock("div", {
|
|
428
|
-
key: 1,
|
|
429
|
-
"class": "modal-body mt-4",
|
|
430
|
-
id: "modal_".concat(_ctx.uuid, "_body")
|
|
431
|
-
}, [renderSlot(_ctx.$slots, "body")], 8, _hoisted_9)) : _ctx.body ? (openBlock(), createElementBlock("div", {
|
|
432
|
-
key: 2,
|
|
433
|
-
innerHTML: _ctx.body,
|
|
434
|
-
"class": "modal-body mt-4",
|
|
435
|
-
id: "modal_".concat(_ctx.uuid, "_body")
|
|
436
|
-
}, null, 8, _hoisted_10)) : createCommentVNode("", true), _ctx.showConfirm || _ctx.showCancel ? (openBlock(), createElementBlock("div", _hoisted_11, [_ctx.showCancel ? (openBlock(), createBlock(_component_FwButton, {
|
|
437
|
-
key: 0,
|
|
438
|
-
"class": "basis-1/2",
|
|
439
|
-
variant: _ctx.cancelButtonType,
|
|
440
|
-
"aria-label": _ctx.cancelButtonText,
|
|
441
|
-
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
442
|
-
return _ctx.$emit('cancel');
|
|
443
|
-
})
|
|
444
|
-
}, {
|
|
445
|
-
"default": withCtx(function () {
|
|
446
|
-
return [createTextVNode(toDisplayString(_ctx.cancelButtonText), 1)];
|
|
447
|
-
}),
|
|
448
|
-
_: 1
|
|
449
|
-
}, 8, ["variant", "aria-label"])) : createCommentVNode("", true), _ctx.showConfirm ? (openBlock(), createBlock(_component_FwButton, {
|
|
450
|
-
key: 1,
|
|
451
|
-
"class": "basis-1/2",
|
|
452
|
-
variant: _ctx.confirmButtonType,
|
|
453
|
-
"aria-label": _ctx.confirmButtonText,
|
|
454
|
-
onClick: _cache[1] || (_cache[1] = function ($event) {
|
|
455
|
-
return _ctx.$emit('confirm');
|
|
456
|
-
})
|
|
457
|
-
}, {
|
|
458
|
-
"default": withCtx(function () {
|
|
459
|
-
return [createTextVNode(toDisplayString(_ctx.confirmButtonText), 1)];
|
|
460
|
-
}),
|
|
461
|
-
_: 1
|
|
462
|
-
}, 8, ["variant", "aria-label"])) : createCommentVNode("", true)])) : createCommentVNode("", true)], 8, _hoisted_4)])])])];
|
|
463
|
-
}),
|
|
464
|
-
_: 3
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
var css_248z = ".modalFadeIn-enter-active[data-v-d1d6dbae]{-webkit-animation:modalFadeIn-d1d6dbae .4s;animation:modalFadeIn-d1d6dbae .4s;-webkit-transition:opacity .4s ease-in;-o-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active[data-v-d1d6dbae]{animation:modalFadeIn-d1d6dbae .4s reverse;-webkit-transition:opacity .4s ease-out;-o-transition:opacity .4s ease-out;transition:opacity .4s ease-out}@-webkit-keyframes modalFadeIn-d1d6dbae{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn-d1d6dbae{0%{opacity:0}to{opacity:1}}";
|
|
469
|
-
var stylesheet = ".modalFadeIn-enter-active[data-v-d1d6dbae]{-webkit-animation:modalFadeIn-d1d6dbae .4s;animation:modalFadeIn-d1d6dbae .4s;-webkit-transition:opacity .4s ease-in;-o-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active[data-v-d1d6dbae]{animation:modalFadeIn-d1d6dbae .4s reverse;-webkit-transition:opacity .4s ease-out;-o-transition:opacity .4s ease-out;transition:opacity .4s ease-out}@-webkit-keyframes modalFadeIn-d1d6dbae{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn-d1d6dbae{0%{opacity:0}to{opacity:1}}";
|
|
470
|
-
styleInject(css_248z);
|
|
471
|
-
|
|
472
|
-
script.render = render;
|
|
473
|
-
script.__scopeId = "data-v-d1d6dbae";
|
|
474
|
-
|
|
475
|
-
export { script as FwModal };
|
|
1
|
+
export { s as FwModal } from './index-963039a3.js';
|
|
2
|
+
import './es.array.includes-debcb50f.js';
|
|
3
|
+
import './function-name-f0c1223e.js';
|
|
4
|
+
import './add-to-unscopables-81c17489.js';
|
|
5
|
+
import 'vue';
|
|
6
|
+
import './fw-button-ab906734.js';
|
|
7
|
+
import './style-inject.es-1f59c1d0.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, ref, createElementVNode, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
1
|
+
import { defineComponent, ref, createElementVNode, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition, normalizeClass } from 'vue';
|
|
2
|
+
import { s as script$1 } from './fw-button-ab906734.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
4
|
-
import './es.array.includes-
|
|
5
|
-
import './function-name-
|
|
6
|
-
import './add-to-unscopables-
|
|
4
|
+
import './es.array.includes-debcb50f.js';
|
|
5
|
+
import './function-name-f0c1223e.js';
|
|
6
|
+
import './add-to-unscopables-81c17489.js';
|
|
7
7
|
|
|
8
8
|
var script = defineComponent({
|
|
9
9
|
name: 'FwNavigationMenu',
|
|
@@ -29,6 +29,8 @@ var script = defineComponent({
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup: function setup(_props, ctx) {
|
|
32
|
+
var mobileMenuClass = ref( // eslint-disable-next-line max-len
|
|
33
|
+
"min-h-screen top-0 left-0 pt-20 absolute w-full flex flex-col justify-between px-2 bg-white shadow-md pb-3 space-y-1");
|
|
32
34
|
var isMobileMenuOpen = ref(false);
|
|
33
35
|
|
|
34
36
|
var toggleMobileMenu = function toggleMobileMenu() {
|
|
@@ -40,6 +42,7 @@ var script = defineComponent({
|
|
|
40
42
|
};
|
|
41
43
|
|
|
42
44
|
return {
|
|
45
|
+
mobileMenuClass: mobileMenuClass,
|
|
43
46
|
isMobileMenuOpen: isMobileMenuOpen,
|
|
44
47
|
toggleMobileMenu: toggleMobileMenu,
|
|
45
48
|
actionClicked: actionClicked
|
|
@@ -51,7 +54,7 @@ var _hoisted_1 = {
|
|
|
51
54
|
"class": "fw-nav-menu relative z-50 h-20 shadow-md"
|
|
52
55
|
};
|
|
53
56
|
var _hoisted_2 = {
|
|
54
|
-
"class": "px-6 flex-1 h-full flex bg-white items-stretch justify-between"
|
|
57
|
+
"class": "px-6 flex-1 h-full flex bg-white items-stretch justify-between max-w-6xl mx-auto"
|
|
55
58
|
};
|
|
56
59
|
var _hoisted_3 = {
|
|
57
60
|
key: 0,
|
|
@@ -59,7 +62,7 @@ var _hoisted_3 = {
|
|
|
59
62
|
};
|
|
60
63
|
var _hoisted_4 = {
|
|
61
64
|
key: 1,
|
|
62
|
-
"class": "container hidden sm:flex items-center justify-start
|
|
65
|
+
"class": "container hidden sm:flex items-center justify-start sm:ml-6"
|
|
63
66
|
};
|
|
64
67
|
var _hoisted_5 = {
|
|
65
68
|
"class": "flex space-x-2"
|
|
@@ -86,10 +89,6 @@ var _hoisted_9 = {
|
|
|
86
89
|
};
|
|
87
90
|
var _hoisted_10 = ["d"];
|
|
88
91
|
var _hoisted_11 = {
|
|
89
|
-
key: 0,
|
|
90
|
-
"class": "fw-nav-menu--mobile min-h-screen top-0 left-0 pt-20 absolute w-full flex flex-col justify-between px-2 bg-white shadow-md pb-3 space-y-1"
|
|
91
|
-
};
|
|
92
|
-
var _hoisted_12 = {
|
|
93
92
|
"class": "w-full flex flex-col"
|
|
94
93
|
};
|
|
95
94
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -97,7 +96,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
97
96
|
|
|
98
97
|
var _component_FwButton = resolveComponent("FwButton");
|
|
99
98
|
|
|
100
|
-
return openBlock(), createElementBlock("nav", _hoisted_1, [createElementVNode("div", _hoisted_2, [_ctx.$slots.logo ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(_ctx.$slots, "logo")])) : createCommentVNode("", true), ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
99
|
+
return openBlock(), createElementBlock("nav", _hoisted_1, [createElementVNode("div", _hoisted_2, [_ctx.$slots.logo ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(_ctx.$slots, "logo")])) : createCommentVNode("", true), _ctx.menuItems && ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
101
100
|
return openBlock(), createBlock(_component_FwButton, {
|
|
102
101
|
key: i,
|
|
103
102
|
variant: "text",
|
|
@@ -138,9 +137,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
138
137
|
name: "slideInLeft"
|
|
139
138
|
}, {
|
|
140
139
|
"default": withCtx(function () {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
return [_ctx.menuItems && _ctx.menuItems.length > 0 && _ctx.isMobileMenuOpen ? (openBlock(), createElementBlock("div", {
|
|
141
|
+
key: 0,
|
|
142
|
+
"class": normalizeClass(["fw-nav-menu--mobile", _ctx.mobileMenuClass])
|
|
143
|
+
}, [createElementVNode("div", _hoisted_11, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
144
144
|
return openBlock(), createBlock(_component_FwButton, {
|
|
145
145
|
key: i,
|
|
146
146
|
"class": "w-full rounded-md",
|
|
@@ -157,14 +157,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
157
157
|
}, 1032, ["href", "to"]);
|
|
158
158
|
}), 128))]), _ctx.actionLabel ? (openBlock(), createBlock(_component_FwButton, {
|
|
159
159
|
key: 0,
|
|
160
|
-
"class": "w-full rounded-md
|
|
160
|
+
"class": "w-full rounded-md",
|
|
161
161
|
onClick: _ctx.actionClicked
|
|
162
162
|
}, {
|
|
163
163
|
"default": withCtx(function () {
|
|
164
164
|
return [createTextVNode(toDisplayString(_ctx.actionLabel), 1)];
|
|
165
165
|
}),
|
|
166
166
|
_: 1
|
|
167
|
-
}, 8, ["onClick"])) : createCommentVNode("", true)])) : createCommentVNode("", true)];
|
|
167
|
+
}, 8, ["onClick"])) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)];
|
|
168
168
|
}),
|
|
169
169
|
_: 1
|
|
170
170
|
})]);
|
package/esm/fw-tabs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as FwTab, s as FwTabs } from './index-
|
|
2
|
-
import './function-name-
|
|
3
|
-
import './add-to-unscopables-
|
|
1
|
+
export { b as FwTab, s as FwTabs } from './index-0e14da44.js';
|
|
2
|
+
import './function-name-f0c1223e.js';
|
|
3
|
+
import './add-to-unscopables-81c17489.js';
|
|
4
4
|
import 'vue';
|