@vlalg-nimbus/nb-inputs 4.0.0 → 4.0.1
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/dist/nb-inputs.js +59 -59
- package/dist/nb-inputs.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/nb-inputs.js
CHANGED
|
@@ -115,14 +115,14 @@ const me = (e, o) => {
|
|
|
115
115
|
emits: ["current-value", "changed"],
|
|
116
116
|
setup(e, { emit: o }) {
|
|
117
117
|
se((a) => ({
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
"
|
|
125
|
-
|
|
118
|
+
"4bff2277": K.value,
|
|
119
|
+
"04b4b91c": Z.value,
|
|
120
|
+
"365e2102": Y.value,
|
|
121
|
+
d2bce8a6: Q.value,
|
|
122
|
+
"086ce05a": X.value,
|
|
123
|
+
c134ab3a: te.value,
|
|
124
|
+
"4e3de6e0": ee.value,
|
|
125
|
+
"4396e6b3": j.value
|
|
126
126
|
})), ce(() => {
|
|
127
127
|
B();
|
|
128
128
|
});
|
|
@@ -145,19 +145,19 @@ const me = (e, o) => {
|
|
|
145
145
|
fontSize: R,
|
|
146
146
|
fontWeight: _
|
|
147
147
|
} = de(d), c = l(() => {
|
|
148
|
-
const a = x.value ? "component-disabled" : "",
|
|
148
|
+
const a = x.value ? "component-disabled" : "", u = F.value !== "b" ? "inline-block" : "block", b = A.value ? A.value : "'Lato', sans-serif", k = R.value ? R.value : "1.6em", t = !_.value || _.value < 0 ? 200 : _.value, n = N.value ? N.value : "left", m = G.value ? G.value : "black", z = V.value ? V.value : "#767676", L = [!1, !0].includes($.value) ? $.value : !1, ae = [!1, !0].includes(I.value) ? I.value : !1, le = O.value ? O.value : "#a6a6a6", oe = !h.value || h.value < 0 ? 15 : h.value, ne = !p.value || p.value < 0 ? 6 : p.value, ue = !y.value || y.value < 0 ? 1 : y.value;
|
|
149
149
|
return {
|
|
150
150
|
disabled: a,
|
|
151
|
-
display:
|
|
152
|
-
direction:
|
|
151
|
+
display: u,
|
|
152
|
+
direction: n,
|
|
153
153
|
textColor: m,
|
|
154
154
|
color: z,
|
|
155
155
|
hoverEffect: L,
|
|
156
156
|
activeHoverEffect: ae,
|
|
157
157
|
colorHover: le,
|
|
158
158
|
itemGap: oe,
|
|
159
|
-
internalGap:
|
|
160
|
-
scale:
|
|
159
|
+
internalGap: ne,
|
|
160
|
+
scale: ue,
|
|
161
161
|
font: b,
|
|
162
162
|
fontSize: k,
|
|
163
163
|
fontWeight: t
|
|
@@ -168,33 +168,33 @@ const me = (e, o) => {
|
|
|
168
168
|
display: a.display,
|
|
169
169
|
transform: `scale(${a.scale})`
|
|
170
170
|
};
|
|
171
|
-
}), M = l(() => c.value.display === "inline-block" ? "
|
|
171
|
+
}), M = l(() => c.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), U = l(() => {
|
|
172
172
|
const a = c.value;
|
|
173
173
|
return {
|
|
174
174
|
fontSize: a.fontSize,
|
|
175
175
|
fontWeight: a.fontWeight
|
|
176
176
|
};
|
|
177
|
-
}), P = l(() => Array.isArray(v.value) && v.value.constructor === Array && v.value.length > 0), J = l(() => c.value.direction === "right" ? "
|
|
177
|
+
}), P = l(() => Array.isArray(v.value) && v.value.constructor === Array && v.value.length > 0), J = l(() => c.value.direction === "right" ? "component-radio__item--direction-right" : "component-radio__item--direction-left"), K = l(() => c.value.font), Q = l(() => c.value.textColor), X = l(() => c.value.color), Y = l(() => {
|
|
178
178
|
const a = c.value;
|
|
179
179
|
return a.hoverEffect ? a.colorHover : a.color;
|
|
180
180
|
}), Z = l(() => {
|
|
181
181
|
const a = c.value;
|
|
182
182
|
return a.activeHoverEffect ? a.color : a.colorHover;
|
|
183
183
|
}), w = l(() => {
|
|
184
|
-
const
|
|
185
|
-
return !
|
|
184
|
+
const u = c.value.internalGap;
|
|
185
|
+
return !u || u < 0 ? 0 : u;
|
|
186
186
|
}), ee = l(() => `0 0 0 2${w.value}px`), j = l(() => `0 2${w.value}px 0 0`), te = l(() => {
|
|
187
|
-
const
|
|
188
|
-
return !
|
|
187
|
+
const u = c.value.itemGap;
|
|
188
|
+
return !u || u < 0 ? 0 : `${u}px`;
|
|
189
189
|
}), B = () => {
|
|
190
190
|
const a = f.value;
|
|
191
191
|
a && (["string"].includes(W.value) ? i.value = a.toString().toLowerCase() : i.value = a);
|
|
192
192
|
};
|
|
193
|
-
return D(f, (a,
|
|
194
|
-
a !==
|
|
195
|
-
}), D(i, (a,
|
|
196
|
-
a !==
|
|
197
|
-
}), (a,
|
|
193
|
+
return D(f, (a, u) => {
|
|
194
|
+
a !== u && B();
|
|
195
|
+
}), D(i, (a, u) => {
|
|
196
|
+
a !== u && (s("current-value", a), s("changed", a));
|
|
197
|
+
}), (a, u) => e.nbId && P.value ? (C(), H("div", {
|
|
198
198
|
key: 0,
|
|
199
199
|
class: g(["nb-wrapper", S.value]),
|
|
200
200
|
style: q([r.value])
|
|
@@ -206,13 +206,13 @@ const me = (e, o) => {
|
|
|
206
206
|
}, [
|
|
207
207
|
(C(!0), H(fe, null, ve(T(v), (b, k) => (C(), H("div", {
|
|
208
208
|
key: k,
|
|
209
|
-
class: g(["
|
|
209
|
+
class: g(["component-radio__item", [M.value, J.value]])
|
|
210
210
|
}, [
|
|
211
211
|
pe(E("input", {
|
|
212
212
|
id: `${e.nbId}-${b.value}`,
|
|
213
|
-
"onUpdate:modelValue":
|
|
213
|
+
"onUpdate:modelValue": u[0] || (u[0] = (t) => i.value = t),
|
|
214
214
|
type: "radio",
|
|
215
|
-
class: "
|
|
215
|
+
class: "component-radio__item--input",
|
|
216
216
|
disabled: T(x),
|
|
217
217
|
value: b.value,
|
|
218
218
|
name: e.groupName
|
|
@@ -221,13 +221,13 @@ const me = (e, o) => {
|
|
|
221
221
|
]),
|
|
222
222
|
E("label", {
|
|
223
223
|
for: `${e.nbId}-${b.value}`,
|
|
224
|
-
class: "
|
|
224
|
+
class: "component-radio__item--label"
|
|
225
225
|
}, ye(b.text), 9, Ne)
|
|
226
226
|
], 2))), 128))
|
|
227
227
|
], 12, He)
|
|
228
228
|
], 6)) : be("", !0);
|
|
229
229
|
}
|
|
230
|
-
}), $e = /* @__PURE__ */ me(Ge, [["__scopeId", "data-v-
|
|
230
|
+
}), $e = /* @__PURE__ */ me(Ge, [["__scopeId", "data-v-8567670c"]]);
|
|
231
231
|
const Ie = ["id"], Oe = ["id", "disabled", "value", "name"], Ae = ["for"], Re = /* @__PURE__ */ Object.assign({
|
|
232
232
|
name: "NbInputCheckbox",
|
|
233
233
|
inheritAttrs: !1
|
|
@@ -348,15 +348,15 @@ const Ie = ["id"], Oe = ["id", "disabled", "value", "name"], Ae = ["for"], Re =
|
|
|
348
348
|
emits: ["current-value", "changed"],
|
|
349
349
|
setup(e, { emit: o }) {
|
|
350
350
|
se((t) => ({
|
|
351
|
-
|
|
352
|
-
"
|
|
353
|
-
"
|
|
354
|
-
"
|
|
355
|
-
"
|
|
356
|
-
|
|
357
|
-
"
|
|
358
|
-
|
|
359
|
-
|
|
351
|
+
f3a8072a: X.value,
|
|
352
|
+
"287ef4b0": ee.value,
|
|
353
|
+
"0af30ffa": a.value,
|
|
354
|
+
"1331468e": w.value,
|
|
355
|
+
"6164f6be": Y.value,
|
|
356
|
+
f5791964: Z.value,
|
|
357
|
+
"3a272b52": u.value,
|
|
358
|
+
"12464fc8": te.value,
|
|
359
|
+
"35d6e6b2": B.value
|
|
360
360
|
})), ce(() => {
|
|
361
361
|
k();
|
|
362
362
|
});
|
|
@@ -381,15 +381,15 @@ const Ie = ["id"], Oe = ["id", "disabled", "value", "name"], Ae = ["for"], Re =
|
|
|
381
381
|
fontSize: c,
|
|
382
382
|
fontWeight: S
|
|
383
383
|
} = de(d), r = l(() => {
|
|
384
|
-
const t = R.value ? "component-disabled" : "",
|
|
384
|
+
const t = R.value ? "component-disabled" : "", n = F.value !== "b" ? "inline-block" : "block", m = _.value ? _.value : "'Lato', sans-serif", z = c.value ? c.value : "1.6em", L = S.value !== 0 && !S.value || S.value < 0 ? 200 : S.value, ae = N.value ? N.value : "left", le = G.value ? G.value : "black", oe = V.value !== 0 && !V.value || V.value < 0 ? 0 : V.value, ne = $.value ? $.value : "#767676", ue = [!1, !0].includes(I.value) ? I.value : !1, Ve = [!1, !0].includes(O.value) ? O.value : !1, ge = h.value ? h.value : "#a6a6a6", he = p.value !== 0 && !p.value || p.value < 0 ? 15 : p.value, xe = y.value !== 0 && !y.value || y.value < 0 ? 6 : y.value, _e = ["box", "circle"].includes(A.value) ? A.value : "box", Se = !x.value || x.value < 0 ? 1 : x.value;
|
|
385
385
|
return {
|
|
386
386
|
disabled: t,
|
|
387
|
-
display:
|
|
387
|
+
display: n,
|
|
388
388
|
direction: ae,
|
|
389
389
|
textColor: le,
|
|
390
390
|
boxRadius: oe,
|
|
391
|
-
color:
|
|
392
|
-
hoverEffect:
|
|
391
|
+
color: ne,
|
|
392
|
+
hoverEffect: ue,
|
|
393
393
|
activeHoverEffect: Ve,
|
|
394
394
|
colorHover: ge,
|
|
395
395
|
itemGap: he,
|
|
@@ -406,35 +406,35 @@ const Ie = ["id"], Oe = ["id", "disabled", "value", "name"], Ae = ["for"], Re =
|
|
|
406
406
|
display: t.display,
|
|
407
407
|
transform: `scale(${t.scale})`
|
|
408
408
|
};
|
|
409
|
-
}), P = l(() => r.value.display === "inline-block" ? "
|
|
409
|
+
}), P = l(() => r.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), J = l(() => {
|
|
410
410
|
const t = r.value;
|
|
411
411
|
return {
|
|
412
412
|
fontSize: t.fontSize,
|
|
413
413
|
fontWeight: t.fontWeight
|
|
414
414
|
};
|
|
415
|
-
}), K = l(() => Array.isArray(v.value) && v.value.constructor === Array && v.value.length > 0), Q = l(() => r.value.direction === "right" ? "
|
|
415
|
+
}), K = l(() => Array.isArray(v.value) && v.value.constructor === Array && v.value.length > 0), Q = l(() => r.value.direction === "right" ? "component-checkbox__item--direction-right" : "component-checkbox__item--direction-left"), X = l(() => r.value.font), Y = l(() => r.value.textColor), Z = l(() => r.value.color), w = l(() => {
|
|
416
416
|
const t = r.value;
|
|
417
417
|
return t.hoverEffect ? t.colorHover : t.color;
|
|
418
418
|
}), ee = l(() => {
|
|
419
419
|
const t = r.value;
|
|
420
420
|
return t.activeHoverEffect ? t.color : t.colorHover;
|
|
421
421
|
}), j = l(() => {
|
|
422
|
-
const
|
|
423
|
-
return !
|
|
422
|
+
const n = r.value.internalGap;
|
|
423
|
+
return !n || n < 0 ? 0 : n;
|
|
424
424
|
}), te = l(() => `0 0 0 2${j.value}px`), B = l(() => `0 2${j.value}px 0 0`), a = l(() => {
|
|
425
425
|
const t = r.value;
|
|
426
426
|
return `${t.borderRadius > 7 ? 7 : t.borderRadius}px`;
|
|
427
|
-
}),
|
|
428
|
-
const
|
|
429
|
-
return !
|
|
427
|
+
}), u = l(() => {
|
|
428
|
+
const n = r.value.itemGap;
|
|
429
|
+
return !n || n < 0 ? 0 : `${n}px`;
|
|
430
430
|
}), b = l(() => r.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), k = () => {
|
|
431
431
|
i.value = f.value;
|
|
432
432
|
};
|
|
433
|
-
return D(f, (t,
|
|
434
|
-
t !==
|
|
435
|
-
}), D(i, (t,
|
|
436
|
-
t !==
|
|
437
|
-
}), (t,
|
|
433
|
+
return D(f, (t, n) => {
|
|
434
|
+
t !== n && k();
|
|
435
|
+
}), D(i, (t, n) => {
|
|
436
|
+
t !== n && (s("current-value", t), s("changed", t));
|
|
437
|
+
}), (t, n) => e.nbId && K.value ? (C(), H("div", {
|
|
438
438
|
key: 0,
|
|
439
439
|
class: g(["nb-wrapper", M.value]),
|
|
440
440
|
style: q([U.value])
|
|
@@ -446,13 +446,13 @@ const Ie = ["id"], Oe = ["id", "disabled", "value", "name"], Ae = ["for"], Re =
|
|
|
446
446
|
}, [
|
|
447
447
|
(C(!0), H(fe, null, ve(T(v), (m, z) => (C(), H("div", {
|
|
448
448
|
key: z,
|
|
449
|
-
class: g(["
|
|
449
|
+
class: g(["component-checkbox__item", [P.value, Q.value]])
|
|
450
450
|
}, [
|
|
451
451
|
pe(E("input", {
|
|
452
452
|
id: `${e.nbId}-${m.value}`,
|
|
453
|
-
"onUpdate:modelValue":
|
|
453
|
+
"onUpdate:modelValue": n[0] || (n[0] = (L) => i.value = L),
|
|
454
454
|
type: "checkbox",
|
|
455
|
-
class: "
|
|
455
|
+
class: "component-checkbox__item--input",
|
|
456
456
|
disabled: T(R),
|
|
457
457
|
value: m.value,
|
|
458
458
|
name: e.groupName
|
|
@@ -461,13 +461,13 @@ const Ie = ["id"], Oe = ["id", "disabled", "value", "name"], Ae = ["for"], Re =
|
|
|
461
461
|
]),
|
|
462
462
|
E("label", {
|
|
463
463
|
for: `${e.nbId}-${m.value}`,
|
|
464
|
-
class: g([[b.value], "
|
|
464
|
+
class: g([[b.value], "component-checkbox__item--label"])
|
|
465
465
|
}, ye(m.text), 11, Ae)
|
|
466
466
|
], 2))), 128))
|
|
467
467
|
], 12, Ie)
|
|
468
468
|
], 6)) : be("", !0);
|
|
469
469
|
}
|
|
470
|
-
}), ze = /* @__PURE__ */ me(Re, [["__scopeId", "data-v-
|
|
470
|
+
}), ze = /* @__PURE__ */ me(Re, [["__scopeId", "data-v-ef298842"]]), re = {
|
|
471
471
|
NbInputRadio: $e,
|
|
472
472
|
NbInputCheckbox: ze
|
|
473
473
|
}, We = {
|
package/dist/nb-inputs.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,O){typeof exports=="object"&&typeof module<"u"?module.exports=O(require("vue")):typeof define=="function"&&define.amd?define(["vue"],O):(e=typeof globalThis<"u"?globalThis:e||self,e.NbInputs=O(e.Vue))})(this,function(e){"use strict";const O="",ae=(t,o)=>{const s=t.__vccOpts||t;for(const[d,i]of o)s[d]=i;return s},le=["id"],oe=["id","disabled","value","name"],ne=["for"],re=ae(Object.assign({name:"NbInputRadio",inheritAttrs:!1},{__name:"NbInputRadio",props:{nbId:{type:String,required:!0},display:{type:String,default:"b",validator:(t="b")=>{const o=t?t.toLowerCase():"";return["b","ib"].includes(o)}},groupName:{type:String,default:"",required:!0,validator:t=>t.toString().toLowerCase()},options:{type:Array,required:!0,default:()=>[],validator:t=>{if(!t.length)return!1;let o=!1;for(const s of t){const d=Object.keys(s);d.length!==2&&(o=!0),d.every(f=>["value","text"].includes(f))||(o=!0)}if(!o)return t}},currentOption:{type:[String,Number,Boolean],default:null},valueType:{type:String,default:"boolean",validator:t=>["boolean","string","number"].indexOf(t)!==-1},direction:{type:String,default:"left",validator:t=>["left","right"].indexOf(t)!==-1},textColor:{type:String,default:"black"},color:{type:String,default:"#767676"},hoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},activeHoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},colorHover:{type:String,default:"#a6a6a6"},itemGap:{type:Number,default:15},internalGap:{type:Number,default:6},scale:{type:Number,default:1},disabled:{type:Boolean,default:!1,validator:t=>typeof t=="boolean"&&[!0,!1].includes(t)},fontFamily:{type:String,default:"'Lato', sans-serif"},fontSize:{type:String,default:"1.6em",validator:t=>t||"1.6em"},fontWeight:{type:Number,default:400,validator:t=>t||200}},emits:["current-value","changed"],setup(t,{emit:o}){e.useCssVars(l=>({"526a690d":F.value,"52f8b146":J.value,b73bfea8:P.value,cba3e27a:M.value,"45b25e70":U.value,"5affb5f9":Q.value,"444b513a":K.value,45753749:R.value})),e.onMounted(()=>{L()});const s=o,d=t,i=e.ref(null),{currentOption:f,valueType:B,display:W,options:p,direction:S,textColor:C,color:V,hoverEffect:E,activeHoverEffect:N,colorHover:H,itemGap:g,internalGap:v,scale:m,disabled:h,fontFamily:z,fontSize:G,fontWeight:x}=e.toRefs(d),c=e.computed(()=>{const l=h.value?"component-disabled":"",r=W.value!=="b"?"inline-block":"block",y=z.value?z.value:"'Lato', sans-serif",k=G.value?G.value:"1.6em",a=!x.value||x.value<0?200:x.value,n=S.value?S.value:"left",b=C.value?C.value:"black",I=V.value?V.value:"#767676",$=[!1,!0].includes(E.value)?E.value:!1,X=[!1,!0].includes(N.value)?N.value:!1,Y=H.value?H.value:"#a6a6a6",Z=!g.value||g.value<0?15:g.value,ee=!v.value||v.value<0?6:v.value,te=!m.value||m.value<0?1:m.value;return{disabled:l,display:r,direction:n,textColor:b,color:I,hoverEffect:$,activeHoverEffect:X,colorHover:Y,itemGap:Z,internalGap:ee,scale:te,font:y,fontSize:k,fontWeight:a}}),_=e.computed(()=>c.value.disabled),u=e.computed(()=>{const l=c.value;return{display:l.display,transform:`scale(${l.scale})`}}),j=e.computed(()=>c.value.display==="inline-block"?"custom-radio__item--display-inline":"custom-radio__item--display-block"),D=e.computed(()=>{const l=c.value;return{fontSize:l.fontSize,fontWeight:l.fontWeight}}),T=e.computed(()=>Array.isArray(p.value)&&p.value.constructor===Array&&p.value.length>0),q=e.computed(()=>c.value.direction==="right"?"custom-radio__item--direction-right":"custom-radio__item--direction-left"),F=e.computed(()=>c.value.font),M=e.computed(()=>c.value.textColor),U=e.computed(()=>c.value.color),P=e.computed(()=>{const l=c.value;return l.hoverEffect?l.colorHover:l.color}),J=e.computed(()=>{const l=c.value;return l.activeHoverEffect?l.color:l.colorHover}),A=e.computed(()=>{const r=c.value.internalGap;return!r||r<0?0:r}),K=e.computed(()=>`0 0 0 2${A.value}px`),R=e.computed(()=>`0 2${A.value}px 0 0`),Q=e.computed(()=>{const r=c.value.itemGap;return!r||r<0?0:`${r}px`}),L=()=>{const l=f.value;l&&(["string"].includes(B.value)?i.value=l.toString().toLowerCase():i.value=l)};return e.watch(f,(l,r)=>{l!==r&&L()}),e.watch(i,(l,r)=>{l!==r&&(s("current-value",l),s("changed",l))}),(l,r)=>t.nbId&&T.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nb-wrapper",_.value]),style:e.normalizeStyle([u.value])},[e.createElementVNode("div",{id:t.nbId,class:e.normalizeClass(["nb-reset","component"]),style:e.normalizeStyle([D.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(y,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:e.normalizeClass(["custom-radio__item",[j.value,q.value]])},[e.withDirectives(e.createElementVNode("input",{id:`${t.nbId}-${y.value}`,"onUpdate:modelValue":r[0]||(r[0]=a=>i.value=a),type:"radio",class:"custom-radio__item--input",disabled:e.unref(h),value:y.value,name:t.groupName},null,8,oe),[[e.vModelRadio,i.value]]),e.createElementVNode("label",{for:`${t.nbId}-${y.value}`,class:"custom-radio__item--label"},e.toDisplayString(y.text),9,ne)],2))),128))],12,le)],6)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-92654a69"]]),be="",ue=["id"],se=["id","disabled","value","name"],ce=["for"],w={NbInputRadio:re,NbInputCheckbox:ae(Object.assign({name:"NbInputCheckbox",inheritAttrs:!1},{__name:"NbInputCheckbox",props:{nbId:{type:String,required:!0},display:{type:String,default:"b",validator:(t="b")=>{const o=t?t.toLowerCase():"";return["b","ib"].includes(o)}},groupName:{type:String,default:"",required:!0,validator:t=>t.toString().toLowerCase()},options:{type:Array,required:!0,default:()=>[],validator:t=>{if(!t.length)return!1;let o=!1;for(const s of t){const d=Object.keys(s);d.length!==2&&(o=!0),d.every(f=>["value","text"].includes(f))||(o=!0)}if(!o)return t}},currentOption:{type:Array,default:()=>[]},valueType:{type:String,default:"boolean",validator:t=>["boolean","string","number"].indexOf(t)!==-1},direction:{type:String,default:"left",validator:t=>["left","right"].indexOf(t)!==-1},textColor:{type:String,default:"black"},boxRadius:{type:Number,default:0},color:{type:String,default:"#767676"},hoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},activeHoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},colorHover:{type:String,default:"#a6a6a6"},itemGap:{type:Number,default:15},internalGap:{type:Number,default:6},scale:{type:Number,default:1},type:{type:String,default:"box",validator:t=>["box","circle"].indexOf(t)!==-1},disabled:{type:Boolean,default:!1,validator:t=>typeof t=="boolean"&&[!0,!1].includes(t)},fontFamily:{type:String,default:"'Lato', sans-serif"},fontSize:{type:String,default:"1.6em",validator:t=>t||"1.6em"},fontWeight:{type:Number,default:400,validator:t=>t||200}},emits:["current-value","changed"],setup(t,{emit:o}){e.useCssVars(a=>({c30edaa8:U.value,"587d1987":K.value,"54ac558a":l.value,"1e65edad":A.value,"713004bc":P.value,ec86d662:J.value,"3a91f818":r.value,fcf0328a:Q.value,a0695c30:L.value})),e.onMounted(()=>{k()});const s=o,d=t,i=e.ref(null),{currentOption:f,valueType:B,display:W,options:p,direction:S,textColor:C,boxRadius:V,color:E,hoverEffect:N,activeHoverEffect:H,colorHover:g,itemGap:v,internalGap:m,scale:h,type:z,disabled:G,fontFamily:x,fontSize:c,fontWeight:_}=e.toRefs(d),u=e.computed(()=>{const a=G.value?"component-disabled":"",n=W.value!=="b"?"inline-block":"block",b=x.value?x.value:"'Lato', sans-serif",I=c.value?c.value:"1.6em",$=_.value!==0&&!_.value||_.value<0?200:_.value,X=S.value?S.value:"left",Y=C.value?C.value:"black",Z=V.value!==0&&!V.value||V.value<0?0:V.value,ee=E.value?E.value:"#767676",te=[!1,!0].includes(N.value)?N.value:!1,ie=[!1,!0].includes(H.value)?H.value:!1,de=g.value?g.value:"#a6a6a6",fe=v.value!==0&&!v.value||v.value<0?15:v.value,pe=m.value!==0&&!m.value||m.value<0?6:m.value,ve=["box","circle"].includes(z.value)?z.value:"box",me=!h.value||h.value<0?1:h.value;return{disabled:a,display:n,direction:X,textColor:Y,boxRadius:Z,color:ee,hoverEffect:te,activeHoverEffect:ie,colorHover:de,itemGap:fe,internalGap:pe,scale:me,type:ve,font:b,fontSize:I,fontWeight:$}}),j=e.computed(()=>u.value.disabled),D=e.computed(()=>{const a=u.value;return{display:a.display,transform:`scale(${a.scale})`}}),T=e.computed(()=>u.value.display==="inline-block"?"custom-checkbox__item--display-inline":"custom-checkbox__item--display-block"),q=e.computed(()=>{const a=u.value;return{fontSize:a.fontSize,fontWeight:a.fontWeight}}),F=e.computed(()=>Array.isArray(p.value)&&p.value.constructor===Array&&p.value.length>0),M=e.computed(()=>u.value.direction==="right"?"custom-checkbox__item--direction-right":"custom-checkbox__item--direction-left"),U=e.computed(()=>u.value.font),P=e.computed(()=>u.value.textColor),J=e.computed(()=>u.value.color),A=e.computed(()=>{const a=u.value;return a.hoverEffect?a.colorHover:a.color}),K=e.computed(()=>{const a=u.value;return a.activeHoverEffect?a.color:a.colorHover}),R=e.computed(()=>{const n=u.value.internalGap;return!n||n<0?0:n}),Q=e.computed(()=>`0 0 0 2${R.value}px`),L=e.computed(()=>`0 2${R.value}px 0 0`),l=e.computed(()=>{const a=u.value;return`${a.borderRadius>7?7:a.borderRadius}px`}),r=e.computed(()=>{const n=u.value.itemGap;return!n||n<0?0:`${n}px`}),y=e.computed(()=>u.value.type==="circle"?"custom-checkbox__input--type-circle":""),k=()=>{i.value=f.value};return e.watch(f,(a,n)=>{a!==n&&k()}),e.watch(i,(a,n)=>{a!==n&&(s("current-value",a),s("changed",a))}),(a,n)=>t.nbId&&F.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nb-wrapper",j.value]),style:e.normalizeStyle([D.value])},[e.createElementVNode("div",{id:t.nbId,class:e.normalizeClass(["nb-reset","component"]),style:e.normalizeStyle([q.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(b,I)=>(e.openBlock(),e.createElementBlock("div",{key:I,class:e.normalizeClass(["custom-checkbox__item",[T.value,M.value]])},[e.withDirectives(e.createElementVNode("input",{id:`${t.nbId}-${b.value}`,"onUpdate:modelValue":n[0]||(n[0]=$=>i.value=$),type:"checkbox",class:"custom-checkbox__item--input",disabled:e.unref(G),value:b.value,name:t.groupName},null,8,se),[[e.vModelCheckbox,i.value]]),e.createElementVNode("label",{for:`${t.nbId}-${b.value}`,class:e.normalizeClass([[y.value],"custom-checkbox__item--label"])},e.toDisplayString(b.text),11,ce)],2))),128))],12,ue)],6)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-704e1020"]])};return{install(t){for(const o in w)if(Object.prototype.hasOwnProperty.call(w,o)){const s=w[o];t.component(s.name,s)}}}});
|
|
1
|
+
(function(e,O){typeof exports=="object"&&typeof module<"u"?module.exports=O(require("vue")):typeof define=="function"&&define.amd?define(["vue"],O):(e=typeof globalThis<"u"?globalThis:e||self,e.NbInputs=O(e.Vue))})(this,function(e){"use strict";const O="",ae=(t,o)=>{const s=t.__vccOpts||t;for(const[d,i]of o)s[d]=i;return s},le=["id"],oe=["id","disabled","value","name"],ne=["for"],re=ae(Object.assign({name:"NbInputRadio",inheritAttrs:!1},{__name:"NbInputRadio",props:{nbId:{type:String,required:!0},display:{type:String,default:"b",validator:(t="b")=>{const o=t?t.toLowerCase():"";return["b","ib"].includes(o)}},groupName:{type:String,default:"",required:!0,validator:t=>t.toString().toLowerCase()},options:{type:Array,required:!0,default:()=>[],validator:t=>{if(!t.length)return!1;let o=!1;for(const s of t){const d=Object.keys(s);d.length!==2&&(o=!0),d.every(f=>["value","text"].includes(f))||(o=!0)}if(!o)return t}},currentOption:{type:[String,Number,Boolean],default:null},valueType:{type:String,default:"boolean",validator:t=>["boolean","string","number"].indexOf(t)!==-1},direction:{type:String,default:"left",validator:t=>["left","right"].indexOf(t)!==-1},textColor:{type:String,default:"black"},color:{type:String,default:"#767676"},hoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},activeHoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},colorHover:{type:String,default:"#a6a6a6"},itemGap:{type:Number,default:15},internalGap:{type:Number,default:6},scale:{type:Number,default:1},disabled:{type:Boolean,default:!1,validator:t=>typeof t=="boolean"&&[!0,!1].includes(t)},fontFamily:{type:String,default:"'Lato', sans-serif"},fontSize:{type:String,default:"1.6em",validator:t=>t||"1.6em"},fontWeight:{type:Number,default:400,validator:t=>t||200}},emits:["current-value","changed"],setup(t,{emit:o}){e.useCssVars(l=>({"4bff2277":F.value,"04b4b91c":J.value,"365e2102":P.value,d2bce8a6:M.value,"086ce05a":U.value,c134ab3a:Q.value,"4e3de6e0":K.value,"4396e6b3":R.value})),e.onMounted(()=>{L()});const s=o,d=t,i=e.ref(null),{currentOption:f,valueType:B,display:W,options:p,direction:S,textColor:C,color:V,hoverEffect:E,activeHoverEffect:N,colorHover:H,itemGap:g,internalGap:v,scale:m,disabled:h,fontFamily:z,fontSize:G,fontWeight:x}=e.toRefs(d),c=e.computed(()=>{const l=h.value?"component-disabled":"",r=W.value!=="b"?"inline-block":"block",y=z.value?z.value:"'Lato', sans-serif",k=G.value?G.value:"1.6em",a=!x.value||x.value<0?200:x.value,n=S.value?S.value:"left",b=C.value?C.value:"black",I=V.value?V.value:"#767676",$=[!1,!0].includes(E.value)?E.value:!1,X=[!1,!0].includes(N.value)?N.value:!1,Y=H.value?H.value:"#a6a6a6",Z=!g.value||g.value<0?15:g.value,ee=!v.value||v.value<0?6:v.value,te=!m.value||m.value<0?1:m.value;return{disabled:l,display:r,direction:n,textColor:b,color:I,hoverEffect:$,activeHoverEffect:X,colorHover:Y,itemGap:Z,internalGap:ee,scale:te,font:y,fontSize:k,fontWeight:a}}),_=e.computed(()=>c.value.disabled),u=e.computed(()=>{const l=c.value;return{display:l.display,transform:`scale(${l.scale})`}}),j=e.computed(()=>c.value.display==="inline-block"?"component-radio__item--display-inline":"component-radio__item--display-block"),D=e.computed(()=>{const l=c.value;return{fontSize:l.fontSize,fontWeight:l.fontWeight}}),T=e.computed(()=>Array.isArray(p.value)&&p.value.constructor===Array&&p.value.length>0),q=e.computed(()=>c.value.direction==="right"?"component-radio__item--direction-right":"component-radio__item--direction-left"),F=e.computed(()=>c.value.font),M=e.computed(()=>c.value.textColor),U=e.computed(()=>c.value.color),P=e.computed(()=>{const l=c.value;return l.hoverEffect?l.colorHover:l.color}),J=e.computed(()=>{const l=c.value;return l.activeHoverEffect?l.color:l.colorHover}),A=e.computed(()=>{const r=c.value.internalGap;return!r||r<0?0:r}),K=e.computed(()=>`0 0 0 2${A.value}px`),R=e.computed(()=>`0 2${A.value}px 0 0`),Q=e.computed(()=>{const r=c.value.itemGap;return!r||r<0?0:`${r}px`}),L=()=>{const l=f.value;l&&(["string"].includes(B.value)?i.value=l.toString().toLowerCase():i.value=l)};return e.watch(f,(l,r)=>{l!==r&&L()}),e.watch(i,(l,r)=>{l!==r&&(s("current-value",l),s("changed",l))}),(l,r)=>t.nbId&&T.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nb-wrapper",_.value]),style:e.normalizeStyle([u.value])},[e.createElementVNode("div",{id:t.nbId,class:e.normalizeClass(["nb-reset","component"]),style:e.normalizeStyle([D.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(y,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:e.normalizeClass(["component-radio__item",[j.value,q.value]])},[e.withDirectives(e.createElementVNode("input",{id:`${t.nbId}-${y.value}`,"onUpdate:modelValue":r[0]||(r[0]=a=>i.value=a),type:"radio",class:"component-radio__item--input",disabled:e.unref(h),value:y.value,name:t.groupName},null,8,oe),[[e.vModelRadio,i.value]]),e.createElementVNode("label",{for:`${t.nbId}-${y.value}`,class:"component-radio__item--label"},e.toDisplayString(y.text),9,ne)],2))),128))],12,le)],6)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-8567670c"]]),be="",ue=["id"],se=["id","disabled","value","name"],ce=["for"],w={NbInputRadio:re,NbInputCheckbox:ae(Object.assign({name:"NbInputCheckbox",inheritAttrs:!1},{__name:"NbInputCheckbox",props:{nbId:{type:String,required:!0},display:{type:String,default:"b",validator:(t="b")=>{const o=t?t.toLowerCase():"";return["b","ib"].includes(o)}},groupName:{type:String,default:"",required:!0,validator:t=>t.toString().toLowerCase()},options:{type:Array,required:!0,default:()=>[],validator:t=>{if(!t.length)return!1;let o=!1;for(const s of t){const d=Object.keys(s);d.length!==2&&(o=!0),d.every(f=>["value","text"].includes(f))||(o=!0)}if(!o)return t}},currentOption:{type:Array,default:()=>[]},valueType:{type:String,default:"boolean",validator:t=>["boolean","string","number"].indexOf(t)!==-1},direction:{type:String,default:"left",validator:t=>["left","right"].indexOf(t)!==-1},textColor:{type:String,default:"black"},boxRadius:{type:Number,default:0},color:{type:String,default:"#767676"},hoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},activeHoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},colorHover:{type:String,default:"#a6a6a6"},itemGap:{type:Number,default:15},internalGap:{type:Number,default:6},scale:{type:Number,default:1},type:{type:String,default:"box",validator:t=>["box","circle"].indexOf(t)!==-1},disabled:{type:Boolean,default:!1,validator:t=>typeof t=="boolean"&&[!0,!1].includes(t)},fontFamily:{type:String,default:"'Lato', sans-serif"},fontSize:{type:String,default:"1.6em",validator:t=>t||"1.6em"},fontWeight:{type:Number,default:400,validator:t=>t||200}},emits:["current-value","changed"],setup(t,{emit:o}){e.useCssVars(a=>({f3a8072a:U.value,"287ef4b0":K.value,"0af30ffa":l.value,"1331468e":A.value,"6164f6be":P.value,f5791964:J.value,"3a272b52":r.value,"12464fc8":Q.value,"35d6e6b2":L.value})),e.onMounted(()=>{k()});const s=o,d=t,i=e.ref(null),{currentOption:f,valueType:B,display:W,options:p,direction:S,textColor:C,boxRadius:V,color:E,hoverEffect:N,activeHoverEffect:H,colorHover:g,itemGap:v,internalGap:m,scale:h,type:z,disabled:G,fontFamily:x,fontSize:c,fontWeight:_}=e.toRefs(d),u=e.computed(()=>{const a=G.value?"component-disabled":"",n=W.value!=="b"?"inline-block":"block",b=x.value?x.value:"'Lato', sans-serif",I=c.value?c.value:"1.6em",$=_.value!==0&&!_.value||_.value<0?200:_.value,X=S.value?S.value:"left",Y=C.value?C.value:"black",Z=V.value!==0&&!V.value||V.value<0?0:V.value,ee=E.value?E.value:"#767676",te=[!1,!0].includes(N.value)?N.value:!1,ie=[!1,!0].includes(H.value)?H.value:!1,de=g.value?g.value:"#a6a6a6",fe=v.value!==0&&!v.value||v.value<0?15:v.value,pe=m.value!==0&&!m.value||m.value<0?6:m.value,ve=["box","circle"].includes(z.value)?z.value:"box",me=!h.value||h.value<0?1:h.value;return{disabled:a,display:n,direction:X,textColor:Y,boxRadius:Z,color:ee,hoverEffect:te,activeHoverEffect:ie,colorHover:de,itemGap:fe,internalGap:pe,scale:me,type:ve,font:b,fontSize:I,fontWeight:$}}),j=e.computed(()=>u.value.disabled),D=e.computed(()=>{const a=u.value;return{display:a.display,transform:`scale(${a.scale})`}}),T=e.computed(()=>u.value.display==="inline-block"?"component-checkbox__item--display-inline":"component-checkbox__item--display-block"),q=e.computed(()=>{const a=u.value;return{fontSize:a.fontSize,fontWeight:a.fontWeight}}),F=e.computed(()=>Array.isArray(p.value)&&p.value.constructor===Array&&p.value.length>0),M=e.computed(()=>u.value.direction==="right"?"component-checkbox__item--direction-right":"component-checkbox__item--direction-left"),U=e.computed(()=>u.value.font),P=e.computed(()=>u.value.textColor),J=e.computed(()=>u.value.color),A=e.computed(()=>{const a=u.value;return a.hoverEffect?a.colorHover:a.color}),K=e.computed(()=>{const a=u.value;return a.activeHoverEffect?a.color:a.colorHover}),R=e.computed(()=>{const n=u.value.internalGap;return!n||n<0?0:n}),Q=e.computed(()=>`0 0 0 2${R.value}px`),L=e.computed(()=>`0 2${R.value}px 0 0`),l=e.computed(()=>{const a=u.value;return`${a.borderRadius>7?7:a.borderRadius}px`}),r=e.computed(()=>{const n=u.value.itemGap;return!n||n<0?0:`${n}px`}),y=e.computed(()=>u.value.type==="circle"?"custom-checkbox__input--type-circle":""),k=()=>{i.value=f.value};return e.watch(f,(a,n)=>{a!==n&&k()}),e.watch(i,(a,n)=>{a!==n&&(s("current-value",a),s("changed",a))}),(a,n)=>t.nbId&&F.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nb-wrapper",j.value]),style:e.normalizeStyle([D.value])},[e.createElementVNode("div",{id:t.nbId,class:e.normalizeClass(["nb-reset","component"]),style:e.normalizeStyle([q.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(b,I)=>(e.openBlock(),e.createElementBlock("div",{key:I,class:e.normalizeClass(["component-checkbox__item",[T.value,M.value]])},[e.withDirectives(e.createElementVNode("input",{id:`${t.nbId}-${b.value}`,"onUpdate:modelValue":n[0]||(n[0]=$=>i.value=$),type:"checkbox",class:"component-checkbox__item--input",disabled:e.unref(G),value:b.value,name:t.groupName},null,8,se),[[e.vModelCheckbox,i.value]]),e.createElementVNode("label",{for:`${t.nbId}-${b.value}`,class:e.normalizeClass([[y.value],"component-checkbox__item--label"])},e.toDisplayString(b.text),11,ce)],2))),128))],12,ue)],6)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-ef298842"]])};return{install(t){for(const o in w)if(Object.prototype.hasOwnProperty.call(w,o)){const s=w[o];t.component(s.name,s)}}}});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap";.nb-wrapper[data-v-92654a69]{margin:0;padding:0;font-size:62.5%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:bottom;transform-origin:top left}.nb-reset[data-v-92654a69]{font-family:Lato,sans-serif;font-style:normal;font-weight:light;line-height:1.42857143}.nb-reset[data-v-92654a69] *{margin:0;padding:0}.nb-reset[data-v-92654a69] *,.nb-reset[data-v-92654a69] *:before,.nb-reset[data-v-92654a69] *:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.component[data-v-92654a69]{margin:0;box-sizing:border-box;line-height:16px;font-family:Lato,sans-serif;font-family:var(--526a690d);-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;-webkit-text-decoration-line:none;text-decoration-line:none;white-space:nowrap;outline:0;position:relative;overflow:hidden}.component .custom-radio__item .custom-radio__item--input[data-v-92654a69]{display:none}.component .custom-radio__item .custom-radio__item--input:checked+.custom-radio__item--label[data-v-92654a69]:hover:before{border:2px solid var(--52f8b146);color:var(--52f8b146)}.component .custom-radio__item .custom-radio__item--input:checked+.custom-radio__item--label[data-v-92654a69]:before{content:"⏺";font-size:.8em;text-shadow:0;display:flex;align-items:center;text-align:center;justify-content:center;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:2px solid var(--b73bfea8);color:var(--b73bfea8);line-height:.7em}.component .custom-radio__item .custom-radio__item--label[data-v-92654a69]{--disabled-color: var(--cba3e27a);color:var(--disabled-color)!important}.component .custom-radio__item .custom-radio__item--label[data-v-92654a69]:hover{cursor:pointer}.component .custom-radio__item .custom-radio__item--label[data-v-92654a69]:hover:before{border:2px solid var(--b73bfea8)}.component .custom-radio__item .custom-radio__item--label[data-v-92654a69]:before{content:"";width:19px;height:19px;position:absolute;bottom:0;border:0;border-radius:50%;text-shadow:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:2px solid var(--45b25e70)}.component .custom-radio__item.custom-radio__item--display-block[data-v-92654a69]{display:block}.component .custom-radio__item.custom-radio__item--display-block[data-v-92654a69]:not(:first-child){margin-top:var(--5affb5f9)}.component .custom-radio__item.custom-radio__item--display-block .custom-radio__item--label[data-v-92654a69]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-radio__item.custom-radio__item--display-inline[data-v-92654a69]{display:inline-block}.component .custom-radio__item.custom-radio__item--display-inline[data-v-92654a69]:not(:first-child){margin-left:var(--5affb5f9)}.component .custom-radio__item.custom-radio__item--display-inline .custom-radio__item--label[data-v-92654a69]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-left .custom-radio__item--label[data-v-92654a69]{display:inline-block;padding:var(--444b513a)}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-left .custom-radio__item--label[data-v-92654a69]:before{left:0}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-right .custom-radio__item--label[data-v-92654a69]{padding:var(--45753749)}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-right .custom-radio__item--label[data-v-92654a69]:before{right:0}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-left .custom-radio__item--label[data-v-92654a69]{display:inline-block;padding:var(--444b513a)}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-left .custom-radio__item--label[data-v-92654a69]:before{left:0}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-right .custom-radio__item--label[data-v-92654a69]{padding:var(--45753749)}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-right .custom-radio__item--label[data-v-92654a69]:before{right:0}.component-disabled[data-v-92654a69]{cursor:not-allowed;pointer-events:none;-webkit-user-select:none;user-select:none}.component-disabled .component[data-v-92654a69]{--disabled-color: var(--cba3e27a);color:var(--disabled-color)!important;opacity:.7;border-radius:inherit}.nb-wrapper[data-v-704e1020]{margin:0;padding:0;font-size:62.5%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:bottom;transform-origin:top left}.nb-reset[data-v-704e1020]{font-family:Lato,sans-serif;font-style:normal;font-weight:light;line-height:1.42857143}.nb-reset[data-v-704e1020] *{margin:0;padding:0}.nb-reset[data-v-704e1020] *,.nb-reset[data-v-704e1020] *:before,.nb-reset[data-v-704e1020] *:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.component[data-v-704e1020]{margin:0;box-sizing:border-box;line-height:16px;font-family:Lato,sans-serif;font-family:var(--c30edaa8);-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;-webkit-text-decoration-line:none;text-decoration-line:none;white-space:nowrap;outline:0;position:relative;overflow:hidden}.component .custom-checkbox__item .custom-checkbox__item--input[data-v-704e1020]{display:none}.component .custom-checkbox__item .custom-checkbox__item--input:checked+.custom-checkbox__item--label[data-v-704e1020]:hover:before{border:2px solid var(--587d1987);color:var(--587d1987)}.component .custom-checkbox__item .custom-checkbox__item--input:checked+.custom-checkbox__item--label[data-v-704e1020]:before{content:"✓";font-size:.7em;text-shadow:0;display:flex;align-items:center;text-align:center;justify-content:center;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:var(--54ac558a);border:2px solid var(--1e65edad);color:var(--1e65edad);line-height:.7em}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-704e1020]{--disabled-color: var(--713004bc);color:var(--disabled-color)!important}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-704e1020]:hover{cursor:pointer}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-704e1020]:hover:before{border:2px solid var(--1e65edad)}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-704e1020]:before{content:"";width:19px;height:19px;position:absolute;bottom:0;border:0;text-shadow:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:var(--54ac558a);border:2px solid var(--ec86d662);color:var(--ec86d662)}.component .custom-checkbox__item .custom-checkbox__item--label.custom-checkbox__input--type-circle[data-v-704e1020]:before{border-radius:50%!important}.component .custom-checkbox__item.custom-checkbox__item--display-block[data-v-704e1020]{display:block}.component .custom-checkbox__item.custom-checkbox__item--display-block[data-v-704e1020]:not(:first-child){margin-top:var(--3a91f818)}.component .custom-checkbox__item.custom-checkbox__item--display-block .custom-checkbox__item--label[data-v-704e1020]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-checkbox__item.custom-checkbox__item--display-inline[data-v-704e1020]{display:inline-block}.component .custom-checkbox__item.custom-checkbox__item--display-inline[data-v-704e1020]:not(:first-child){margin-left:var(--3a91f818)}.component .custom-checkbox__item.custom-checkbox__item--display-inline .custom-checkbox__item--label[data-v-704e1020]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-704e1020]{display:inline-block;padding:var(--fcf0328a)}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-704e1020]:before{left:0}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-704e1020]{padding:var(--a0695c30)}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-704e1020]:before{right:0}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-704e1020]{display:inline-block;padding:var(--fcf0328a)}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-704e1020]:before{left:0}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-704e1020]{padding:var(--a0695c30)}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-704e1020]:before{right:0}.component-disabled[data-v-704e1020]{cursor:not-allowed;pointer-events:none;-webkit-user-select:none;user-select:none}.component-disabled .component[data-v-704e1020]{--disabled-color: var(--713004bc);color:var(--disabled-color)!important;opacity:.7;border-radius:inherit}
|
|
1
|
+
@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap";.nb-wrapper[data-v-8567670c]{margin:0;padding:0;font-size:62.5%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:bottom;transform-origin:top left}.nb-reset[data-v-8567670c]{font-family:Lato,sans-serif;font-style:normal;font-weight:light;line-height:1.42857143}.nb-reset[data-v-8567670c] *{margin:0;padding:0}.nb-reset[data-v-8567670c] *,.nb-reset[data-v-8567670c] *:before,.nb-reset[data-v-8567670c] *:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.component[data-v-8567670c]{margin:0;box-sizing:border-box;line-height:16px;font-family:Lato,sans-serif;font-family:var(--4bff2277);-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;-webkit-text-decoration-line:none;text-decoration-line:none;white-space:nowrap;outline:0;position:relative;overflow:hidden}.component .component-radio__item .component-radio__item--input[data-v-8567670c]{display:none}.component .component-radio__item .component-radio__item--input:checked+.component-radio__item--label[data-v-8567670c]:hover:before{border:2px solid var(--04b4b91c);color:var(--04b4b91c)}.component .component-radio__item .component-radio__item--input:checked+.component-radio__item--label[data-v-8567670c]:before{content:"⏺";font-size:.8em;text-shadow:0;display:flex;align-items:center;text-align:center;justify-content:center;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:2px solid var(--365e2102);color:var(--365e2102);line-height:.7em}.component .component-radio__item .component-radio__item--label[data-v-8567670c]{--disabled-color: var(--d2bce8a6);color:var(--disabled-color)!important}.component .component-radio__item .component-radio__item--label[data-v-8567670c]:hover{cursor:pointer}.component .component-radio__item .component-radio__item--label[data-v-8567670c]:hover:before{border:2px solid var(--365e2102)}.component .component-radio__item .component-radio__item--label[data-v-8567670c]:before{content:"";width:19px;height:19px;position:absolute;bottom:0;border:0;border-radius:50%;text-shadow:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:2px solid var(--086ce05a)}.component .component-radio__item.component-radio__item--display-block[data-v-8567670c]{display:block}.component .component-radio__item.component-radio__item--display-block[data-v-8567670c]:not(:first-child){margin-top:var(--c134ab3a)}.component .component-radio__item.component-radio__item--display-block .component-radio__item--label[data-v-8567670c]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .component-radio__item.component-radio__item--display-inline[data-v-8567670c]{display:inline-block}.component .component-radio__item.component-radio__item--display-inline[data-v-8567670c]:not(:first-child){margin-left:var(--c134ab3a)}.component .component-radio__item.component-radio__item--display-inline .component-radio__item--label[data-v-8567670c]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .component-radio__item.component-radio__item--display-block.component-radio__item--direction-left .component-radio__item--label[data-v-8567670c]{display:inline-block;padding:var(--4e3de6e0)}.component .component-radio__item.component-radio__item--display-block.component-radio__item--direction-left .component-radio__item--label[data-v-8567670c]:before{left:0}.component .component-radio__item.component-radio__item--display-block.component-radio__item--direction-right .component-radio__item--label[data-v-8567670c]{padding:var(--4396e6b3)}.component .component-radio__item.component-radio__item--display-block.component-radio__item--direction-right .component-radio__item--label[data-v-8567670c]:before{right:0}.component .component-radio__item.component-radio__item--display-inline.component-radio__item--direction-left .component-radio__item--label[data-v-8567670c]{display:inline-block;padding:var(--4e3de6e0)}.component .component-radio__item.component-radio__item--display-inline.component-radio__item--direction-left .component-radio__item--label[data-v-8567670c]:before{left:0}.component .component-radio__item.component-radio__item--display-inline.component-radio__item--direction-right .component-radio__item--label[data-v-8567670c]{padding:var(--4396e6b3)}.component .component-radio__item.component-radio__item--display-inline.component-radio__item--direction-right .component-radio__item--label[data-v-8567670c]:before{right:0}.component-disabled[data-v-8567670c]{cursor:not-allowed;pointer-events:none;-webkit-user-select:none;user-select:none}.component-disabled .component[data-v-8567670c]{--disabled-color: var(--d2bce8a6);color:var(--disabled-color)!important;opacity:.7;border-radius:inherit}.nb-wrapper[data-v-ef298842]{margin:0;padding:0;font-size:62.5%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:bottom;transform-origin:top left}.nb-reset[data-v-ef298842]{font-family:Lato,sans-serif;font-style:normal;font-weight:light;line-height:1.42857143}.nb-reset[data-v-ef298842] *{margin:0;padding:0}.nb-reset[data-v-ef298842] *,.nb-reset[data-v-ef298842] *:before,.nb-reset[data-v-ef298842] *:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.component[data-v-ef298842]{margin:0;box-sizing:border-box;line-height:16px;font-family:Lato,sans-serif;font-family:var(--f3a8072a);-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;-webkit-text-decoration-line:none;text-decoration-line:none;white-space:nowrap;outline:0;position:relative;overflow:hidden}.component .component-checkbox__item .component-checkbox__item--input[data-v-ef298842]{display:none}.component .component-checkbox__item .component-checkbox__item--input:checked+.component-checkbox__item--label[data-v-ef298842]:hover:before{border:2px solid var(--287ef4b0);color:var(--287ef4b0)}.component .component-checkbox__item .component-checkbox__item--input:checked+.component-checkbox__item--label[data-v-ef298842]:before{content:"✓";font-size:.7em;text-shadow:0;display:flex;align-items:center;text-align:center;justify-content:center;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:var(--0af30ffa);border:2px solid var(--1331468e);color:var(--1331468e);line-height:.7em}.component .component-checkbox__item .component-checkbox__item--label[data-v-ef298842]{--disabled-color: var(--6164f6be);color:var(--disabled-color)!important}.component .component-checkbox__item .component-checkbox__item--label[data-v-ef298842]:hover{cursor:pointer}.component .component-checkbox__item .component-checkbox__item--label[data-v-ef298842]:hover:before{border:2px solid var(--1331468e)}.component .component-checkbox__item .component-checkbox__item--label[data-v-ef298842]:before{content:"";width:19px;height:19px;position:absolute;bottom:0;border:0;text-shadow:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:var(--0af30ffa);border:2px solid var(--f5791964);color:var(--f5791964)}.component .component-checkbox__item .component-checkbox__item--label.custom-checkbox__input--type-circle[data-v-ef298842]:before{border-radius:50%!important}.component .component-checkbox__item.component-checkbox__item--display-block[data-v-ef298842]{display:block}.component .component-checkbox__item.component-checkbox__item--display-block[data-v-ef298842]:not(:first-child){margin-top:var(--3a272b52)}.component .component-checkbox__item.component-checkbox__item--display-block .component-checkbox__item--label[data-v-ef298842]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .component-checkbox__item.component-checkbox__item--display-inline[data-v-ef298842]{display:inline-block}.component .component-checkbox__item.component-checkbox__item--display-inline[data-v-ef298842]:not(:first-child){margin-left:var(--3a272b52)}.component .component-checkbox__item.component-checkbox__item--display-inline .component-checkbox__item--label[data-v-ef298842]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .component-checkbox__item.component-checkbox__item--display-block.component-checkbox__item--direction-left .component-checkbox__item--label[data-v-ef298842]{display:inline-block;padding:var(--12464fc8)}.component .component-checkbox__item.component-checkbox__item--display-block.component-checkbox__item--direction-left .component-checkbox__item--label[data-v-ef298842]:before{left:0}.component .component-checkbox__item.component-checkbox__item--display-block.component-checkbox__item--direction-right .component-checkbox__item--label[data-v-ef298842]{padding:var(--35d6e6b2)}.component .component-checkbox__item.component-checkbox__item--display-block.component-checkbox__item--direction-right .component-checkbox__item--label[data-v-ef298842]:before{right:0}.component .component-checkbox__item.component-checkbox__item--display-inline.component-checkbox__item--direction-left .component-checkbox__item--label[data-v-ef298842]{display:inline-block;padding:var(--12464fc8)}.component .component-checkbox__item.component-checkbox__item--display-inline.component-checkbox__item--direction-left .component-checkbox__item--label[data-v-ef298842]:before{left:0}.component .component-checkbox__item.component-checkbox__item--display-inline.component-checkbox__item--direction-right .component-checkbox__item--label[data-v-ef298842]{padding:var(--35d6e6b2)}.component .component-checkbox__item.component-checkbox__item--display-inline.component-checkbox__item--direction-right .component-checkbox__item--label[data-v-ef298842]:before{right:0}.component-disabled[data-v-ef298842]{cursor:not-allowed;pointer-events:none;-webkit-user-select:none;user-select:none}.component-disabled .component[data-v-ef298842]{--disabled-color: var(--6164f6be);color:var(--disabled-color)!important;opacity:.7;border-radius:inherit}
|