@frollo/frollo-web-ui 5.0.2 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +11887 -1279
- package/esm/{add-to-unscopables-2400f45b.js → add-to-unscopables-31609885.js} +2 -2
- package/esm/{array-iteration-107f927f.js → array-iteration-ec356eb3.js} +2 -2
- package/esm/{array-method-has-species-support-3d413468.js → array-method-has-species-support-8a4b1310.js} +1 -1
- package/esm/{array-method-is-strict-055b1830.js → array-method-is-strict-fc2e0d8d.js} +1 -1
- package/esm/{array-species-create-a5f5503b.js → array-species-create-b125f4a4.js} +2 -2
- package/esm/{classof-39c30bd5.js → classof-ee4b3b5b.js} +1 -1
- package/esm/{create-property-534611fd.js → create-property-c70ecc08.js} +1 -1
- package/esm/{delete-property-or-throw-8032646c.js → delete-property-or-throw-cd4c57d6.js} +3 -3
- package/esm/{does-not-exceed-safe-integer-31d08811.js → does-not-exceed-safe-integer-8e0042ec.js} +1 -1
- package/esm/{es.array.concat-987938be.js → es.array.concat-fe990345.js} +6 -6
- package/esm/{es.array.find-dfa1f42f.js → es.array.find-67b3b514.js} +5 -5
- package/esm/{es.array.includes-91be7771.js → es.array.includes-a06445a5.js} +3 -3
- package/esm/es.array.map-ae6c9437.js +43 -0
- package/esm/es.date.to-string-1ffba857.js +23 -0
- package/esm/{es.function.name-557cb1f9.js → es.function.name-6daefaeb.js} +1 -1
- package/esm/{es.number.constructor-d6ff8874.js → es.number.constructor-98bae04f.js} +2 -2
- package/esm/es.string.includes-ade04f96.js +66 -0
- package/esm/{es.string.iterator-590198a8.js → es.string.iterator-0992bb28.js} +8 -8
- package/esm/{export-a37ba078.js → export-8a363004.js} +1 -1
- package/esm/{function-apply-ce251590.js → function-apply-b908d7e6.js} +1 -1
- package/esm/fw-accordion.js +1 -1
- package/esm/fw-animations.js +5 -5
- package/esm/fw-bar-chart.js +18 -17
- package/esm/{fw-button-8d131219.js → fw-button-99dba2bc.js} +2 -2
- package/esm/fw-button.js +9 -9
- package/esm/fw-checkbox.js +9 -9
- package/esm/fw-date-picker.js +10336 -0
- package/esm/fw-drawer.js +9 -9
- package/esm/fw-dropdown-b476e015.js +223 -0
- package/esm/fw-dropdown.js +15 -222
- package/esm/{fw-image-4787a8bd.js → fw-image-ae643123.js} +10 -10
- package/esm/fw-image.js +18 -18
- package/esm/fw-input-fdc8fe1b.js +235 -0
- package/esm/fw-input.js +20 -245
- package/esm/{fw-loading-spinner-c394fafc.js → fw-loading-spinner-cc1ca2fa.js} +1 -1
- package/esm/fw-loading.js +3 -3
- package/esm/fw-modal.js +9 -9
- package/esm/fw-navigation-menu.js +9 -9
- package/esm/fw-progress-bar.js +3 -3
- package/esm/fw-provider-list.js +37 -0
- package/esm/fw-sidebar-menu.js +9 -9
- package/esm/fw-table-row-e8520a1d.js +492 -0
- package/esm/fw-table.js +14 -494
- package/esm/fw-tabs.js +10 -10
- package/esm/fw-tag-a8a83c0a.js +157 -0
- package/esm/fw-tag.js +13 -162
- package/esm/fw-toast.js +24 -85
- package/esm/fw-transactions-card.js +18 -18
- package/esm/get-root-colours-865a52ba.js +37 -0
- package/esm/{index-e4a2f8b0.js → index-0a63f2c3.js} +130 -102
- package/esm/index-6423a6ab.js +422 -0
- package/esm/{index-2766bfe4.js → index-be5b4afa.js} +20 -61
- package/esm/index.js +93 -101
- package/esm/{is-forced-752b5893.js → is-forced-fc680e39.js} +1 -1
- package/esm/{object-create-f6f3a673.js → object-create-bc771493.js} +2 -2
- package/esm/{object-keys-4f5bf4e7.js → object-keys-17f3b440.js} +1 -1
- package/esm/{web.timers-0f117224.js → web.timers-c5316125.js} +3 -3
- package/frollo-web-ui.esm.js +12181 -1412
- package/icons/calendar-day.svg +3 -0
- package/icons/calendar.svg +3 -0
- package/icons/index.ts +5 -1
- package/index.d.ts +313 -25
- package/package.json +3 -1
- package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +177 -0
- package/types/components/fw-date-picker/index.d.ts +2 -0
- package/types/components/fw-date-picker/index.types.d.ts +16 -0
- package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +17 -0
- package/types/components/fw-dropdown/index.types.d.ts +1 -0
- package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +68 -0
- package/types/components/fw-provider-list/index.d.ts +2 -0
- package/types/components/fw-provider-list/index.types.d.ts +11 -0
- package/types/components/index.d.ts +2 -0
- package/types/components/index.types.d.ts +2 -0
- package/types/helpers/get-root-colours.d.ts +8 -0
- package/types/icons/index.d.ts +3 -1
- package/web-components/index.js +12300 -1512
- package/esm/get-root-colours-e2a1cb28.js +0 -21
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import './es.array.includes-a06445a5.js';
|
|
2
|
+
import './es.number.constructor-98bae04f.js';
|
|
3
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, renderSlot, mergeProps, createBlock, Transition, normalizeClass } from 'vue';
|
|
4
|
+
import { a as render$1 } from './index-0a63f2c3.js';
|
|
5
|
+
import { a as Field } from './vee-validate.esm-a17a23c3.js';
|
|
6
|
+
import { u as uniqueId } from './uniqueId-fe08534a.js';
|
|
7
|
+
import './es.function.name-6daefaeb.js';
|
|
8
|
+
import './es.array.concat-fe990345.js';
|
|
9
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
10
|
+
|
|
11
|
+
var script = defineComponent({
|
|
12
|
+
name: 'FwInput',
|
|
13
|
+
emits: ['update:modelValue'],
|
|
14
|
+
components: {
|
|
15
|
+
InputField: Field,
|
|
16
|
+
ErrorFilledSvg: render$1
|
|
17
|
+
},
|
|
18
|
+
props: {
|
|
19
|
+
/**
|
|
20
|
+
* The input v-model
|
|
21
|
+
*/
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: String,
|
|
24
|
+
"default": ''
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* The name of the input field. Must be unique per form.
|
|
28
|
+
*/
|
|
29
|
+
name: {
|
|
30
|
+
type: String,
|
|
31
|
+
required: true
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* The input type. Accepts `text` | `password`
|
|
35
|
+
*/
|
|
36
|
+
type: {
|
|
37
|
+
type: String,
|
|
38
|
+
"default": 'text',
|
|
39
|
+
validator: function validator(value) {
|
|
40
|
+
return ['text', 'password', 'email', 'tel', 'time', 'url', 'week', 'month'].includes(value);
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* Label for the input. Also renders to an aria-label attribute
|
|
45
|
+
*/
|
|
46
|
+
label: {
|
|
47
|
+
type: String
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* The placeholder text of the input
|
|
51
|
+
*/
|
|
52
|
+
placeholder: {
|
|
53
|
+
type: String
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Validation rules. Accepts an object, string schema or validation function.
|
|
57
|
+
*/
|
|
58
|
+
rules: {
|
|
59
|
+
type: [Object, String, Function]
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* Converts the input into a readonly disabled field
|
|
63
|
+
*/
|
|
64
|
+
readonly: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
"default": false
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* The hint text shown below the input
|
|
70
|
+
*/
|
|
71
|
+
hint: {
|
|
72
|
+
type: String
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* The autocomplete input attribute
|
|
76
|
+
*/
|
|
77
|
+
autocomplete: {
|
|
78
|
+
type: String
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* The logical tab order of the input.
|
|
82
|
+
* Defaults to 0
|
|
83
|
+
*/
|
|
84
|
+
tabindex: {
|
|
85
|
+
type: String,
|
|
86
|
+
"default": '0'
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* Whether the input is rounded.
|
|
90
|
+
* Defaults to false
|
|
91
|
+
*/
|
|
92
|
+
rounded: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
"default": false
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
* Enable the error section UI.
|
|
98
|
+
* Defaults to true
|
|
99
|
+
*/
|
|
100
|
+
enableErrors: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
"default": true
|
|
103
|
+
},
|
|
104
|
+
/**
|
|
105
|
+
* The inputs `maxlength` attribute.
|
|
106
|
+
*/
|
|
107
|
+
maxLength: {
|
|
108
|
+
type: Number
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
setup: function setup(props, ctx) {
|
|
112
|
+
var uuid = uniqueId();
|
|
113
|
+
var inputBaseClass = ref("border-2 border-grey-40 focus:outline-none focus:ring-2 focus:ring-primary block w-full p-2.5");
|
|
114
|
+
var inputValue = computed({
|
|
115
|
+
get: function get() {
|
|
116
|
+
return props.modelValue;
|
|
117
|
+
},
|
|
118
|
+
set: function set(state) {
|
|
119
|
+
return ctx.emit('update:modelValue', state);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
return {
|
|
123
|
+
uuid: uuid,
|
|
124
|
+
inputBaseClass: inputBaseClass,
|
|
125
|
+
inputValue: inputValue
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
var _hoisted_1 = {
|
|
131
|
+
"class": "fw-input w-full"
|
|
132
|
+
};
|
|
133
|
+
var _hoisted_2 = {
|
|
134
|
+
"class": "flex flex-col"
|
|
135
|
+
};
|
|
136
|
+
var _hoisted_3 = {
|
|
137
|
+
"class": "flex flex-row justify-between"
|
|
138
|
+
};
|
|
139
|
+
var _hoisted_4 = ["for"];
|
|
140
|
+
var _hoisted_5 = {
|
|
141
|
+
key: 1
|
|
142
|
+
};
|
|
143
|
+
var _hoisted_6 = {
|
|
144
|
+
"class": "relative"
|
|
145
|
+
};
|
|
146
|
+
var _hoisted_7 = {
|
|
147
|
+
key: 0,
|
|
148
|
+
"class": "flex text-black absolute w-9 h-full inset-y-0 left-0 items-center pl-3 pointer-events-none"
|
|
149
|
+
};
|
|
150
|
+
var _hoisted_8 = ["id", "placeholder", "type", "readonly", "tabindex", "disabled", "autocomplete", "maxlength"];
|
|
151
|
+
var _hoisted_9 = {
|
|
152
|
+
key: 2,
|
|
153
|
+
"class": "flex text-black absolute w-10 h-full inset-y-0 right-0 items-center pr-3"
|
|
154
|
+
};
|
|
155
|
+
var _hoisted_10 = {
|
|
156
|
+
key: 0,
|
|
157
|
+
"class": "italic text-right text-sm font-medium mt-2 min-h-[21px]"
|
|
158
|
+
};
|
|
159
|
+
var _hoisted_11 = {
|
|
160
|
+
key: 0,
|
|
161
|
+
"class": "text-error"
|
|
162
|
+
};
|
|
163
|
+
var _hoisted_12 = {
|
|
164
|
+
key: 1
|
|
165
|
+
};
|
|
166
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
167
|
+
var _component_ErrorFilledSvg = resolveComponent("ErrorFilledSvg");
|
|
168
|
+
var _component_InputField = resolveComponent("InputField");
|
|
169
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_InputField, {
|
|
170
|
+
modelValue: _ctx.inputValue,
|
|
171
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
|
|
172
|
+
return _ctx.inputValue = $event;
|
|
173
|
+
}),
|
|
174
|
+
name: _ctx.name,
|
|
175
|
+
rules: _ctx.rules,
|
|
176
|
+
"validate-on-input": true
|
|
177
|
+
}, {
|
|
178
|
+
"default": withCtx(function (_ref) {
|
|
179
|
+
var field = _ref.field,
|
|
180
|
+
errors = _ref.errors,
|
|
181
|
+
errorMessage = _ref.errorMessage,
|
|
182
|
+
meta = _ref.meta;
|
|
183
|
+
return [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
184
|
+
key: 0,
|
|
185
|
+
"for": "fw-input-".concat(_ctx.name, "-").concat(_ctx.uuid),
|
|
186
|
+
"class": "block mb-2 font-medium"
|
|
187
|
+
}, toDisplayString(_ctx.label), 9, _hoisted_4)) : createCommentVNode("", true), _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "action")])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_6, [_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_7, [renderSlot(_ctx.$slots, "prefix")])) : createCommentVNode("", true), createElementVNode("input", mergeProps(field, {
|
|
188
|
+
id: "fw-input-".concat(_ctx.name, "-").concat(_ctx.uuid),
|
|
189
|
+
placeholder: _ctx.placeholder,
|
|
190
|
+
type: _ctx.type,
|
|
191
|
+
readonly: _ctx.readonly,
|
|
192
|
+
tabindex: _ctx.tabindex,
|
|
193
|
+
disabled: _ctx.readonly,
|
|
194
|
+
autocomplete: _ctx.autocomplete,
|
|
195
|
+
maxlength: _ctx.maxLength,
|
|
196
|
+
"class": [{
|
|
197
|
+
'pl-10': !!_ctx.$slots.prefix,
|
|
198
|
+
'pr-20': !!_ctx.$slots.suffix
|
|
199
|
+
}, _ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded']
|
|
200
|
+
}), null, 16, _hoisted_8), _ctx.enableErrors ? (openBlock(), createBlock(Transition, {
|
|
201
|
+
key: 1,
|
|
202
|
+
name: "fwFadeIn"
|
|
203
|
+
}, {
|
|
204
|
+
"default": withCtx(function () {
|
|
205
|
+
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("div", {
|
|
206
|
+
key: 0,
|
|
207
|
+
"class": normalizeClass(["flex text-error absolute w-9 h-full inset-y-0 right-0 items-center pr-3 pointer-events-none", _ctx.$slots.suffix ? 'mr-8' : ''])
|
|
208
|
+
}, [createVNode(_component_ErrorFilledSvg, {
|
|
209
|
+
"aria-hidden": "true",
|
|
210
|
+
focusable: "false",
|
|
211
|
+
role: "img"
|
|
212
|
+
})], 2)) : createCommentVNode("", true)];
|
|
213
|
+
}),
|
|
214
|
+
_: 2
|
|
215
|
+
}, 1024)) : createCommentVNode("", true), _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_9, [renderSlot(_ctx.$slots, "suffix")])) : createCommentVNode("", true)]), _ctx.enableErrors ? (openBlock(), createElementBlock("div", _hoisted_10, [createVNode(Transition, {
|
|
216
|
+
name: "fwFadeIn",
|
|
217
|
+
mode: "out-in"
|
|
218
|
+
}, {
|
|
219
|
+
"default": withCtx(function () {
|
|
220
|
+
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(errorMessage || errors[0]), 1)) : _ctx.hint ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true)];
|
|
221
|
+
}),
|
|
222
|
+
_: 2
|
|
223
|
+
}, 1024)])) : createCommentVNode("", true)])];
|
|
224
|
+
}),
|
|
225
|
+
_: 3
|
|
226
|
+
}, 8, ["modelValue", "name", "rules"])]);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
var css_248z = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}";
|
|
230
|
+
var stylesheet = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}";
|
|
231
|
+
styleInject(css_248z);
|
|
232
|
+
|
|
233
|
+
script.render = render;
|
|
234
|
+
|
|
235
|
+
export { script as s };
|
package/esm/fw-input.js
CHANGED
|
@@ -1,246 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import './es.
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import './
|
|
8
|
-
import './es.
|
|
9
|
-
import
|
|
10
|
-
import '
|
|
11
|
-
import './
|
|
12
|
-
import './add-to-unscopables-2400f45b.js';
|
|
13
|
-
import './object-create-f6f3a673.js';
|
|
14
|
-
import './object-keys-4f5bf4e7.js';
|
|
15
|
-
import './classof-39c30bd5.js';
|
|
1
|
+
export { s as FwInput } from './fw-input-fdc8fe1b.js';
|
|
2
|
+
import './es.array.includes-a06445a5.js';
|
|
3
|
+
import './is-forced-fc680e39.js';
|
|
4
|
+
import './export-8a363004.js';
|
|
5
|
+
import './add-to-unscopables-31609885.js';
|
|
6
|
+
import './object-create-bc771493.js';
|
|
7
|
+
import './object-keys-17f3b440.js';
|
|
8
|
+
import './es.number.constructor-98bae04f.js';
|
|
9
|
+
import './classof-ee4b3b5b.js';
|
|
10
|
+
import 'vue';
|
|
11
|
+
import './index-0a63f2c3.js';
|
|
16
12
|
import './check-94a5917a.js';
|
|
17
|
-
import './
|
|
18
|
-
import './
|
|
19
|
-
import './
|
|
20
|
-
import './array-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
InputField: Field,
|
|
27
|
-
ErrorFilledSvg: render$1
|
|
28
|
-
},
|
|
29
|
-
props: {
|
|
30
|
-
/**
|
|
31
|
-
* The input v-model
|
|
32
|
-
*/
|
|
33
|
-
modelValue: {
|
|
34
|
-
type: String,
|
|
35
|
-
"default": ''
|
|
36
|
-
},
|
|
37
|
-
/**
|
|
38
|
-
* The name of the input field. Must be unique per form.
|
|
39
|
-
*/
|
|
40
|
-
name: {
|
|
41
|
-
type: String,
|
|
42
|
-
required: true
|
|
43
|
-
},
|
|
44
|
-
/**
|
|
45
|
-
* The input type. Accepts `text` | `password`
|
|
46
|
-
*/
|
|
47
|
-
type: {
|
|
48
|
-
type: String,
|
|
49
|
-
"default": 'text',
|
|
50
|
-
validator: function validator(value) {
|
|
51
|
-
return ['text', 'password', 'email', 'tel', 'time', 'url', 'week', 'month'].includes(value);
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
/**
|
|
55
|
-
* Label for the input. Also renders to an aria-label attribute
|
|
56
|
-
*/
|
|
57
|
-
label: {
|
|
58
|
-
type: String
|
|
59
|
-
},
|
|
60
|
-
/**
|
|
61
|
-
* The placeholder text of the input
|
|
62
|
-
*/
|
|
63
|
-
placeholder: {
|
|
64
|
-
type: String
|
|
65
|
-
},
|
|
66
|
-
/**
|
|
67
|
-
* Validation rules. Accepts an object, string schema or validation function.
|
|
68
|
-
*/
|
|
69
|
-
rules: {
|
|
70
|
-
type: [Object, String, Function]
|
|
71
|
-
},
|
|
72
|
-
/**
|
|
73
|
-
* Converts the input into a readonly disabled field
|
|
74
|
-
*/
|
|
75
|
-
readonly: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
"default": false
|
|
78
|
-
},
|
|
79
|
-
/**
|
|
80
|
-
* The hint text shown below the input
|
|
81
|
-
*/
|
|
82
|
-
hint: {
|
|
83
|
-
type: String
|
|
84
|
-
},
|
|
85
|
-
/**
|
|
86
|
-
* The autocomplete input attribute
|
|
87
|
-
*/
|
|
88
|
-
autocomplete: {
|
|
89
|
-
type: String
|
|
90
|
-
},
|
|
91
|
-
/**
|
|
92
|
-
* The logical tab order of the input.
|
|
93
|
-
* Defaults to 0
|
|
94
|
-
*/
|
|
95
|
-
tabindex: {
|
|
96
|
-
type: String,
|
|
97
|
-
"default": '0'
|
|
98
|
-
},
|
|
99
|
-
/**
|
|
100
|
-
* Whether the input is rounded.
|
|
101
|
-
* Defaults to false
|
|
102
|
-
*/
|
|
103
|
-
rounded: {
|
|
104
|
-
type: Boolean,
|
|
105
|
-
"default": false
|
|
106
|
-
},
|
|
107
|
-
/**
|
|
108
|
-
* Enable the error section UI.
|
|
109
|
-
* Defaults to true
|
|
110
|
-
*/
|
|
111
|
-
enableErrors: {
|
|
112
|
-
type: Boolean,
|
|
113
|
-
"default": true
|
|
114
|
-
},
|
|
115
|
-
/**
|
|
116
|
-
* The inputs `maxlength` attribute.
|
|
117
|
-
*/
|
|
118
|
-
maxLength: {
|
|
119
|
-
type: Number
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
setup: function setup(props, ctx) {
|
|
123
|
-
var uuid = uniqueId();
|
|
124
|
-
var inputBaseClass = ref("border-2 border-grey-40 focus:outline-none focus:ring-2 focus:ring-primary block w-full p-2.5");
|
|
125
|
-
var inputValue = computed({
|
|
126
|
-
get: function get() {
|
|
127
|
-
return props.modelValue;
|
|
128
|
-
},
|
|
129
|
-
set: function set(state) {
|
|
130
|
-
return ctx.emit('update:modelValue', state);
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
return {
|
|
134
|
-
uuid: uuid,
|
|
135
|
-
inputBaseClass: inputBaseClass,
|
|
136
|
-
inputValue: inputValue
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
var _hoisted_1 = {
|
|
142
|
-
"class": "fw-input w-full"
|
|
143
|
-
};
|
|
144
|
-
var _hoisted_2 = {
|
|
145
|
-
"class": "flex flex-col"
|
|
146
|
-
};
|
|
147
|
-
var _hoisted_3 = {
|
|
148
|
-
"class": "flex flex-row justify-between"
|
|
149
|
-
};
|
|
150
|
-
var _hoisted_4 = ["for"];
|
|
151
|
-
var _hoisted_5 = {
|
|
152
|
-
key: 1
|
|
153
|
-
};
|
|
154
|
-
var _hoisted_6 = {
|
|
155
|
-
"class": "relative"
|
|
156
|
-
};
|
|
157
|
-
var _hoisted_7 = {
|
|
158
|
-
key: 0,
|
|
159
|
-
"class": "flex text-black absolute w-9 h-full inset-y-0 left-0 items-center pl-3 pointer-events-none"
|
|
160
|
-
};
|
|
161
|
-
var _hoisted_8 = ["id", "placeholder", "type", "readonly", "tabindex", "disabled", "autocomplete", "maxlength"];
|
|
162
|
-
var _hoisted_9 = {
|
|
163
|
-
key: 2,
|
|
164
|
-
"class": "flex text-black absolute w-10 h-full inset-y-0 right-0 items-center pr-3"
|
|
165
|
-
};
|
|
166
|
-
var _hoisted_10 = {
|
|
167
|
-
key: 0,
|
|
168
|
-
"class": "italic text-right text-sm font-medium mt-2 min-h-[21px]"
|
|
169
|
-
};
|
|
170
|
-
var _hoisted_11 = {
|
|
171
|
-
key: 0,
|
|
172
|
-
"class": "text-error"
|
|
173
|
-
};
|
|
174
|
-
var _hoisted_12 = {
|
|
175
|
-
key: 1
|
|
176
|
-
};
|
|
177
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
178
|
-
var _component_ErrorFilledSvg = resolveComponent("ErrorFilledSvg");
|
|
179
|
-
var _component_InputField = resolveComponent("InputField");
|
|
180
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_InputField, {
|
|
181
|
-
modelValue: _ctx.inputValue,
|
|
182
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
|
|
183
|
-
return _ctx.inputValue = $event;
|
|
184
|
-
}),
|
|
185
|
-
name: _ctx.name,
|
|
186
|
-
rules: _ctx.rules,
|
|
187
|
-
"validate-on-input": true
|
|
188
|
-
}, {
|
|
189
|
-
"default": withCtx(function (_ref) {
|
|
190
|
-
var field = _ref.field,
|
|
191
|
-
errors = _ref.errors,
|
|
192
|
-
errorMessage = _ref.errorMessage,
|
|
193
|
-
meta = _ref.meta;
|
|
194
|
-
return [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
195
|
-
key: 0,
|
|
196
|
-
"for": "fw-input-".concat(_ctx.name, "-").concat(_ctx.uuid),
|
|
197
|
-
"class": "block mb-2 font-medium"
|
|
198
|
-
}, toDisplayString(_ctx.label), 9, _hoisted_4)) : createCommentVNode("", true), _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "action")])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_6, [_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_7, [renderSlot(_ctx.$slots, "prefix")])) : createCommentVNode("", true), createElementVNode("input", mergeProps(field, {
|
|
199
|
-
id: "fw-input-".concat(_ctx.name, "-").concat(_ctx.uuid),
|
|
200
|
-
placeholder: _ctx.placeholder,
|
|
201
|
-
type: _ctx.type,
|
|
202
|
-
readonly: _ctx.readonly,
|
|
203
|
-
tabindex: _ctx.tabindex,
|
|
204
|
-
disabled: _ctx.readonly,
|
|
205
|
-
autocomplete: _ctx.autocomplete,
|
|
206
|
-
maxlength: _ctx.maxLength,
|
|
207
|
-
"class": [{
|
|
208
|
-
'pl-10': !!_ctx.$slots.prefix,
|
|
209
|
-
'pr-20': !!_ctx.$slots.suffix
|
|
210
|
-
}, _ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded']
|
|
211
|
-
}), null, 16, _hoisted_8), _ctx.enableErrors ? (openBlock(), createBlock(Transition, {
|
|
212
|
-
key: 1,
|
|
213
|
-
name: "fwFadeIn"
|
|
214
|
-
}, {
|
|
215
|
-
"default": withCtx(function () {
|
|
216
|
-
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("div", {
|
|
217
|
-
key: 0,
|
|
218
|
-
"class": normalizeClass(["flex text-error absolute w-9 h-full inset-y-0 right-0 items-center pr-3 pointer-events-none", _ctx.$slots.suffix ? 'mr-8' : ''])
|
|
219
|
-
}, [createVNode(_component_ErrorFilledSvg, {
|
|
220
|
-
"aria-hidden": "true",
|
|
221
|
-
focusable: "false",
|
|
222
|
-
role: "img"
|
|
223
|
-
})], 2)) : createCommentVNode("", true)];
|
|
224
|
-
}),
|
|
225
|
-
_: 2
|
|
226
|
-
}, 1024)) : createCommentVNode("", true), _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_9, [renderSlot(_ctx.$slots, "suffix")])) : createCommentVNode("", true)]), _ctx.enableErrors ? (openBlock(), createElementBlock("div", _hoisted_10, [createVNode(Transition, {
|
|
227
|
-
name: "fwFadeIn",
|
|
228
|
-
mode: "out-in"
|
|
229
|
-
}, {
|
|
230
|
-
"default": withCtx(function () {
|
|
231
|
-
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(errorMessage || errors[0]), 1)) : _ctx.hint ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true)];
|
|
232
|
-
}),
|
|
233
|
-
_: 2
|
|
234
|
-
}, 1024)])) : createCommentVNode("", true)])];
|
|
235
|
-
}),
|
|
236
|
-
_: 3
|
|
237
|
-
}, 8, ["modelValue", "name", "rules"])]);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
var css_248z = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}";
|
|
241
|
-
var stylesheet = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}";
|
|
242
|
-
styleInject(css_248z);
|
|
243
|
-
|
|
244
|
-
script.render = render;
|
|
245
|
-
|
|
246
|
-
export { script as FwInput };
|
|
13
|
+
import './vee-validate.esm-a17a23c3.js';
|
|
14
|
+
import './uniqueId-fe08534a.js';
|
|
15
|
+
import './es.function.name-6daefaeb.js';
|
|
16
|
+
import './es.array.concat-fe990345.js';
|
|
17
|
+
import './array-species-create-b125f4a4.js';
|
|
18
|
+
import './does-not-exceed-safe-integer-8e0042ec.js';
|
|
19
|
+
import './create-property-c70ecc08.js';
|
|
20
|
+
import './array-method-has-species-support-8a4b1310.js';
|
|
21
|
+
import './style-inject.es-1f59c1d0.js';
|
package/esm/fw-loading.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { s as script$2 } from './fw-loading-bar-f5ca605c.js';
|
|
2
2
|
export { s as FwLoadingBar } from './fw-loading-bar-f5ca605c.js';
|
|
3
3
|
import { defineComponent, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, normalizeClass, normalizeStyle, Fragment, renderList } from 'vue';
|
|
4
|
-
import './es.number.constructor-
|
|
4
|
+
import './es.number.constructor-98bae04f.js';
|
|
5
5
|
import './style-inject.es-1f59c1d0.js';
|
|
6
|
-
import './is-forced-
|
|
7
|
-
import './classof-
|
|
6
|
+
import './is-forced-fc680e39.js';
|
|
7
|
+
import './classof-ee4b3b5b.js';
|
|
8
8
|
|
|
9
9
|
var script$1 = defineComponent({
|
|
10
10
|
name: 'FwLoadingCard',
|
package/esm/fw-modal.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import './es.array.includes-
|
|
1
|
+
import './es.array.includes-a06445a5.js';
|
|
2
2
|
import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, createElementBlock, createElementVNode, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from 'vue';
|
|
3
|
-
import { s as script$1 } from './fw-button-
|
|
3
|
+
import { s as script$1 } from './fw-button-99dba2bc.js';
|
|
4
4
|
import { u as uniqueId } from './uniqueId-fe08534a.js';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
|
-
import './is-forced-
|
|
7
|
-
import './export-
|
|
8
|
-
import './add-to-unscopables-
|
|
9
|
-
import './object-create-
|
|
10
|
-
import './object-keys-
|
|
11
|
-
import './fw-loading-spinner-
|
|
12
|
-
import './index-
|
|
6
|
+
import './is-forced-fc680e39.js';
|
|
7
|
+
import './export-8a363004.js';
|
|
8
|
+
import './add-to-unscopables-31609885.js';
|
|
9
|
+
import './object-create-bc771493.js';
|
|
10
|
+
import './object-keys-17f3b440.js';
|
|
11
|
+
import './fw-loading-spinner-cc1ca2fa.js';
|
|
12
|
+
import './index-0a63f2c3.js';
|
|
13
13
|
import './check-94a5917a.js';
|
|
14
14
|
|
|
15
15
|
var script = defineComponent({
|
|
@@ -1,14 +1,14 @@
|
|
|
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-99dba2bc.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
4
|
-
import './es.array.includes-
|
|
5
|
-
import './is-forced-
|
|
6
|
-
import './export-
|
|
7
|
-
import './add-to-unscopables-
|
|
8
|
-
import './object-create-
|
|
9
|
-
import './object-keys-
|
|
10
|
-
import './fw-loading-spinner-
|
|
11
|
-
import './index-
|
|
4
|
+
import './es.array.includes-a06445a5.js';
|
|
5
|
+
import './is-forced-fc680e39.js';
|
|
6
|
+
import './export-8a363004.js';
|
|
7
|
+
import './add-to-unscopables-31609885.js';
|
|
8
|
+
import './object-create-bc771493.js';
|
|
9
|
+
import './object-keys-17f3b440.js';
|
|
10
|
+
import './fw-loading-spinner-cc1ca2fa.js';
|
|
11
|
+
import './index-0a63f2c3.js';
|
|
12
12
|
import './check-94a5917a.js';
|
|
13
13
|
|
|
14
14
|
var script = defineComponent({
|
package/esm/fw-progress-bar.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './es.number.constructor-
|
|
1
|
+
import './es.number.constructor-98bae04f.js';
|
|
2
2
|
import { defineComponent, resolveComponent, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, createBlock, toDisplayString, normalizeStyle, createCommentVNode } from 'vue';
|
|
3
3
|
import { r as render$1 } from './check-94a5917a.js';
|
|
4
|
-
import './is-forced-
|
|
5
|
-
import './classof-
|
|
4
|
+
import './is-forced-fc680e39.js';
|
|
5
|
+
import './classof-ee4b3b5b.js';
|
|
6
6
|
|
|
7
7
|
var script = defineComponent({
|
|
8
8
|
name: 'FwProgressBar',
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export { s as FwProviderList } from './index-6423a6ab.js';
|
|
2
|
+
import './delete-property-or-throw-cd4c57d6.js';
|
|
3
|
+
import './is-forced-fc680e39.js';
|
|
4
|
+
import './export-8a363004.js';
|
|
5
|
+
import './object-keys-17f3b440.js';
|
|
6
|
+
import './array-iteration-ec356eb3.js';
|
|
7
|
+
import './array-species-create-b125f4a4.js';
|
|
8
|
+
import './classof-ee4b3b5b.js';
|
|
9
|
+
import './array-method-has-species-support-8a4b1310.js';
|
|
10
|
+
import './es.array.find-67b3b514.js';
|
|
11
|
+
import './add-to-unscopables-31609885.js';
|
|
12
|
+
import './object-create-bc771493.js';
|
|
13
|
+
import './es.array.includes-a06445a5.js';
|
|
14
|
+
import './es.string.includes-ade04f96.js';
|
|
15
|
+
import './es.number.constructor-98bae04f.js';
|
|
16
|
+
import './es.date.to-string-1ffba857.js';
|
|
17
|
+
import './es.array.map-ae6c9437.js';
|
|
18
|
+
import './es.function.name-6daefaeb.js';
|
|
19
|
+
import './es.array.concat-fe990345.js';
|
|
20
|
+
import './does-not-exceed-safe-integer-8e0042ec.js';
|
|
21
|
+
import './create-property-c70ecc08.js';
|
|
22
|
+
import './fw-table-row-e8520a1d.js';
|
|
23
|
+
import './array-method-is-strict-fc2e0d8d.js';
|
|
24
|
+
import './index-0a63f2c3.js';
|
|
25
|
+
import 'vue';
|
|
26
|
+
import './check-94a5917a.js';
|
|
27
|
+
import './get-root-colours-865a52ba.js';
|
|
28
|
+
import './fw-loading-bar-f5ca605c.js';
|
|
29
|
+
import './style-inject.es-1f59c1d0.js';
|
|
30
|
+
import './fw-input-fdc8fe1b.js';
|
|
31
|
+
import './vee-validate.esm-a17a23c3.js';
|
|
32
|
+
import './uniqueId-fe08534a.js';
|
|
33
|
+
import './fw-tag-a8a83c0a.js';
|
|
34
|
+
import './fw-button.js';
|
|
35
|
+
import './fw-button-99dba2bc.js';
|
|
36
|
+
import './fw-loading-spinner-cc1ca2fa.js';
|
|
37
|
+
import './fw-dropdown-b476e015.js';
|
package/esm/fw-sidebar-menu.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Transition, renderSlot, createCommentVNode, createElementVNode, Fragment, renderList, createBlock, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
3
|
-
import { h as render$1 } from './index-
|
|
2
|
+
import { s as script$1 } from './fw-button-99dba2bc.js';
|
|
3
|
+
import { h as render$1 } from './index-0a63f2c3.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
5
|
-
import './es.array.includes-
|
|
6
|
-
import './is-forced-
|
|
7
|
-
import './export-
|
|
8
|
-
import './add-to-unscopables-
|
|
9
|
-
import './object-create-
|
|
10
|
-
import './object-keys-
|
|
11
|
-
import './fw-loading-spinner-
|
|
5
|
+
import './es.array.includes-a06445a5.js';
|
|
6
|
+
import './is-forced-fc680e39.js';
|
|
7
|
+
import './export-8a363004.js';
|
|
8
|
+
import './add-to-unscopables-31609885.js';
|
|
9
|
+
import './object-create-bc771493.js';
|
|
10
|
+
import './object-keys-17f3b440.js';
|
|
11
|
+
import './fw-loading-spinner-cc1ca2fa.js';
|
|
12
12
|
import './check-94a5917a.js';
|
|
13
13
|
|
|
14
14
|
var script = defineComponent({
|