@webitel/ui-sdk 25.10.7 → 25.10.8
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/ui-sdk.js
CHANGED
|
@@ -79253,275 +79253,6 @@ function _X(o, i, a, r, l, d) {
|
|
|
79253
79253
|
}
|
|
79254
79254
|
S9.render = _X;
|
|
79255
79255
|
var IX = so`
|
|
79256
|
-
.p-toggleswitch {
|
|
79257
|
-
display: inline-block;
|
|
79258
|
-
width: dt('toggleswitch.width');
|
|
79259
|
-
height: dt('toggleswitch.height');
|
|
79260
|
-
}
|
|
79261
|
-
|
|
79262
|
-
.p-toggleswitch-input {
|
|
79263
|
-
cursor: pointer;
|
|
79264
|
-
appearance: none;
|
|
79265
|
-
position: absolute;
|
|
79266
|
-
top: 0;
|
|
79267
|
-
inset-inline-start: 0;
|
|
79268
|
-
width: 100%;
|
|
79269
|
-
height: 100%;
|
|
79270
|
-
padding: 0;
|
|
79271
|
-
margin: 0;
|
|
79272
|
-
opacity: 0;
|
|
79273
|
-
z-index: 1;
|
|
79274
|
-
outline: 0 none;
|
|
79275
|
-
border-radius: dt('toggleswitch.border.radius');
|
|
79276
|
-
}
|
|
79277
|
-
|
|
79278
|
-
.p-toggleswitch-slider {
|
|
79279
|
-
cursor: pointer;
|
|
79280
|
-
width: 100%;
|
|
79281
|
-
height: 100%;
|
|
79282
|
-
border-width: dt('toggleswitch.border.width');
|
|
79283
|
-
border-style: solid;
|
|
79284
|
-
border-color: dt('toggleswitch.border.color');
|
|
79285
|
-
background: dt('toggleswitch.background');
|
|
79286
|
-
transition:
|
|
79287
|
-
background dt('toggleswitch.transition.duration'),
|
|
79288
|
-
color dt('toggleswitch.transition.duration'),
|
|
79289
|
-
border-color dt('toggleswitch.transition.duration'),
|
|
79290
|
-
outline-color dt('toggleswitch.transition.duration'),
|
|
79291
|
-
box-shadow dt('toggleswitch.transition.duration');
|
|
79292
|
-
border-radius: dt('toggleswitch.border.radius');
|
|
79293
|
-
outline-color: transparent;
|
|
79294
|
-
box-shadow: dt('toggleswitch.shadow');
|
|
79295
|
-
}
|
|
79296
|
-
|
|
79297
|
-
.p-toggleswitch-handle {
|
|
79298
|
-
position: absolute;
|
|
79299
|
-
top: 50%;
|
|
79300
|
-
display: flex;
|
|
79301
|
-
justify-content: center;
|
|
79302
|
-
align-items: center;
|
|
79303
|
-
background: dt('toggleswitch.handle.background');
|
|
79304
|
-
color: dt('toggleswitch.handle.color');
|
|
79305
|
-
width: dt('toggleswitch.handle.size');
|
|
79306
|
-
height: dt('toggleswitch.handle.size');
|
|
79307
|
-
inset-inline-start: dt('toggleswitch.gap');
|
|
79308
|
-
margin-block-start: calc(-1 * calc(dt('toggleswitch.handle.size') / 2));
|
|
79309
|
-
border-radius: dt('toggleswitch.handle.border.radius');
|
|
79310
|
-
transition:
|
|
79311
|
-
background dt('toggleswitch.transition.duration'),
|
|
79312
|
-
color dt('toggleswitch.transition.duration'),
|
|
79313
|
-
inset-inline-start dt('toggleswitch.slide.duration'),
|
|
79314
|
-
box-shadow dt('toggleswitch.slide.duration');
|
|
79315
|
-
}
|
|
79316
|
-
|
|
79317
|
-
.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider {
|
|
79318
|
-
background: dt('toggleswitch.checked.background');
|
|
79319
|
-
border-color: dt('toggleswitch.checked.border.color');
|
|
79320
|
-
}
|
|
79321
|
-
|
|
79322
|
-
.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-handle {
|
|
79323
|
-
background: dt('toggleswitch.handle.checked.background');
|
|
79324
|
-
color: dt('toggleswitch.handle.checked.color');
|
|
79325
|
-
inset-inline-start: calc(dt('toggleswitch.width') - calc(dt('toggleswitch.handle.size') + dt('toggleswitch.gap')));
|
|
79326
|
-
}
|
|
79327
|
-
|
|
79328
|
-
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider {
|
|
79329
|
-
background: dt('toggleswitch.hover.background');
|
|
79330
|
-
border-color: dt('toggleswitch.hover.border.color');
|
|
79331
|
-
}
|
|
79332
|
-
|
|
79333
|
-
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle {
|
|
79334
|
-
background: dt('toggleswitch.handle.hover.background');
|
|
79335
|
-
color: dt('toggleswitch.handle.hover.color');
|
|
79336
|
-
}
|
|
79337
|
-
|
|
79338
|
-
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider {
|
|
79339
|
-
background: dt('toggleswitch.checked.hover.background');
|
|
79340
|
-
border-color: dt('toggleswitch.checked.hover.border.color');
|
|
79341
|
-
}
|
|
79342
|
-
|
|
79343
|
-
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle {
|
|
79344
|
-
background: dt('toggleswitch.handle.checked.hover.background');
|
|
79345
|
-
color: dt('toggleswitch.handle.checked.hover.color');
|
|
79346
|
-
}
|
|
79347
|
-
|
|
79348
|
-
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider {
|
|
79349
|
-
box-shadow: dt('toggleswitch.focus.ring.shadow');
|
|
79350
|
-
outline: dt('toggleswitch.focus.ring.width') dt('toggleswitch.focus.ring.style') dt('toggleswitch.focus.ring.color');
|
|
79351
|
-
outline-offset: dt('toggleswitch.focus.ring.offset');
|
|
79352
|
-
}
|
|
79353
|
-
|
|
79354
|
-
.p-toggleswitch.p-invalid > .p-toggleswitch-slider {
|
|
79355
|
-
border-color: dt('toggleswitch.invalid.border.color');
|
|
79356
|
-
}
|
|
79357
|
-
|
|
79358
|
-
.p-toggleswitch.p-disabled {
|
|
79359
|
-
opacity: 1;
|
|
79360
|
-
}
|
|
79361
|
-
|
|
79362
|
-
.p-toggleswitch.p-disabled .p-toggleswitch-slider {
|
|
79363
|
-
background: dt('toggleswitch.disabled.background');
|
|
79364
|
-
}
|
|
79365
|
-
|
|
79366
|
-
.p-toggleswitch.p-disabled .p-toggleswitch-handle {
|
|
79367
|
-
background: dt('toggleswitch.handle.disabled.background');
|
|
79368
|
-
}
|
|
79369
|
-
`, AX = {
|
|
79370
|
-
root: {
|
|
79371
|
-
position: "relative"
|
|
79372
|
-
}
|
|
79373
|
-
}, SX = {
|
|
79374
|
-
root: function(i) {
|
|
79375
|
-
var a = i.instance, r = i.props;
|
|
79376
|
-
return ["p-toggleswitch p-component", {
|
|
79377
|
-
"p-toggleswitch-checked": a.checked,
|
|
79378
|
-
"p-disabled": r.disabled,
|
|
79379
|
-
"p-invalid": a.$invalid
|
|
79380
|
-
}];
|
|
79381
|
-
},
|
|
79382
|
-
input: "p-toggleswitch-input",
|
|
79383
|
-
slider: "p-toggleswitch-slider",
|
|
79384
|
-
handle: "p-toggleswitch-handle"
|
|
79385
|
-
}, OX = yt.extend({
|
|
79386
|
-
name: "toggleswitch",
|
|
79387
|
-
style: IX,
|
|
79388
|
-
classes: SX,
|
|
79389
|
-
inlineStyles: AX
|
|
79390
|
-
}), TX = {
|
|
79391
|
-
name: "BaseToggleSwitch",
|
|
79392
|
-
extends: v2,
|
|
79393
|
-
props: {
|
|
79394
|
-
trueValue: {
|
|
79395
|
-
type: null,
|
|
79396
|
-
default: !0
|
|
79397
|
-
},
|
|
79398
|
-
falseValue: {
|
|
79399
|
-
type: null,
|
|
79400
|
-
default: !1
|
|
79401
|
-
},
|
|
79402
|
-
readonly: {
|
|
79403
|
-
type: Boolean,
|
|
79404
|
-
default: !1
|
|
79405
|
-
},
|
|
79406
|
-
tabindex: {
|
|
79407
|
-
type: Number,
|
|
79408
|
-
default: null
|
|
79409
|
-
},
|
|
79410
|
-
inputId: {
|
|
79411
|
-
type: String,
|
|
79412
|
-
default: null
|
|
79413
|
-
},
|
|
79414
|
-
inputClass: {
|
|
79415
|
-
type: [String, Object],
|
|
79416
|
-
default: null
|
|
79417
|
-
},
|
|
79418
|
-
inputStyle: {
|
|
79419
|
-
type: Object,
|
|
79420
|
-
default: null
|
|
79421
|
-
},
|
|
79422
|
-
ariaLabelledby: {
|
|
79423
|
-
type: String,
|
|
79424
|
-
default: null
|
|
79425
|
-
},
|
|
79426
|
-
ariaLabel: {
|
|
79427
|
-
type: String,
|
|
79428
|
-
default: null
|
|
79429
|
-
}
|
|
79430
|
-
},
|
|
79431
|
-
style: OX,
|
|
79432
|
-
provide: function() {
|
|
79433
|
-
return {
|
|
79434
|
-
$pcToggleSwitch: this,
|
|
79435
|
-
$parentInstance: this
|
|
79436
|
-
};
|
|
79437
|
-
}
|
|
79438
|
-
}, O9 = {
|
|
79439
|
-
name: "ToggleSwitch",
|
|
79440
|
-
extends: TX,
|
|
79441
|
-
inheritAttrs: !1,
|
|
79442
|
-
emits: ["change", "focus", "blur"],
|
|
79443
|
-
methods: {
|
|
79444
|
-
getPTOptions: function(i) {
|
|
79445
|
-
var a = i === "root" ? this.ptmi : this.ptm;
|
|
79446
|
-
return a(i, {
|
|
79447
|
-
context: {
|
|
79448
|
-
checked: this.checked,
|
|
79449
|
-
disabled: this.disabled
|
|
79450
|
-
}
|
|
79451
|
-
});
|
|
79452
|
-
},
|
|
79453
|
-
onChange: function(i) {
|
|
79454
|
-
if (!this.disabled && !this.readonly) {
|
|
79455
|
-
var a = this.checked ? this.falseValue : this.trueValue;
|
|
79456
|
-
this.writeValue(a, i), this.$emit("change", i);
|
|
79457
|
-
}
|
|
79458
|
-
},
|
|
79459
|
-
onFocus: function(i) {
|
|
79460
|
-
this.$emit("focus", i);
|
|
79461
|
-
},
|
|
79462
|
-
onBlur: function(i) {
|
|
79463
|
-
var a, r;
|
|
79464
|
-
this.$emit("blur", i), (a = (r = this.formField).onBlur) === null || a === void 0 || a.call(r, i);
|
|
79465
|
-
}
|
|
79466
|
-
},
|
|
79467
|
-
computed: {
|
|
79468
|
-
checked: function() {
|
|
79469
|
-
return this.d_value === this.trueValue;
|
|
79470
|
-
},
|
|
79471
|
-
dataP: function() {
|
|
79472
|
-
return Ao({
|
|
79473
|
-
checked: this.checked,
|
|
79474
|
-
disabled: this.disabled,
|
|
79475
|
-
invalid: this.$invalid
|
|
79476
|
-
});
|
|
79477
|
-
}
|
|
79478
|
-
}
|
|
79479
|
-
}, DX = ["data-p-checked", "data-p-disabled", "data-p"], EX = ["id", "checked", "tabindex", "disabled", "readonly", "aria-checked", "aria-labelledby", "aria-label", "aria-invalid"], RX = ["data-p"], LX = ["data-p"];
|
|
79480
|
-
function BX(o, i, a, r, l, d) {
|
|
79481
|
-
return D(), j("div", pe({
|
|
79482
|
-
class: o.cx("root"),
|
|
79483
|
-
style: o.sx("root")
|
|
79484
|
-
}, d.getPTOptions("root"), {
|
|
79485
|
-
"data-p-checked": d.checked,
|
|
79486
|
-
"data-p-disabled": o.disabled,
|
|
79487
|
-
"data-p": d.dataP
|
|
79488
|
-
}), [K("input", pe({
|
|
79489
|
-
id: o.inputId,
|
|
79490
|
-
type: "checkbox",
|
|
79491
|
-
role: "switch",
|
|
79492
|
-
class: [o.cx("input"), o.inputClass],
|
|
79493
|
-
style: o.inputStyle,
|
|
79494
|
-
checked: d.checked,
|
|
79495
|
-
tabindex: o.tabindex,
|
|
79496
|
-
disabled: o.disabled,
|
|
79497
|
-
readonly: o.readonly,
|
|
79498
|
-
"aria-checked": d.checked,
|
|
79499
|
-
"aria-labelledby": o.ariaLabelledby,
|
|
79500
|
-
"aria-label": o.ariaLabel,
|
|
79501
|
-
"aria-invalid": o.invalid || void 0,
|
|
79502
|
-
onFocus: i[0] || (i[0] = function() {
|
|
79503
|
-
return d.onFocus && d.onFocus.apply(d, arguments);
|
|
79504
|
-
}),
|
|
79505
|
-
onBlur: i[1] || (i[1] = function() {
|
|
79506
|
-
return d.onBlur && d.onBlur.apply(d, arguments);
|
|
79507
|
-
}),
|
|
79508
|
-
onChange: i[2] || (i[2] = function() {
|
|
79509
|
-
return d.onChange && d.onChange.apply(d, arguments);
|
|
79510
|
-
})
|
|
79511
|
-
}, d.getPTOptions("input")), null, 16, EX), K("div", pe({
|
|
79512
|
-
class: o.cx("slider")
|
|
79513
|
-
}, d.getPTOptions("slider"), {
|
|
79514
|
-
"data-p": d.dataP
|
|
79515
|
-
}), [K("div", pe({
|
|
79516
|
-
class: o.cx("handle")
|
|
79517
|
-
}, d.getPTOptions("handle"), {
|
|
79518
|
-
"data-p": d.dataP
|
|
79519
|
-
}), [ee(o.$slots, "handle", {
|
|
79520
|
-
checked: d.checked
|
|
79521
|
-
})], 16, LX)], 16, RX)], 16, DX);
|
|
79522
|
-
}
|
|
79523
|
-
O9.render = BX;
|
|
79524
|
-
var qX = so`
|
|
79525
79256
|
.p-radiobutton {
|
|
79526
79257
|
position: relative;
|
|
79527
79258
|
display: inline-flex;
|
|
@@ -79665,7 +79396,7 @@ var qX = so`
|
|
|
79665
79396
|
width: dt('radiobutton.icon.lg.size');
|
|
79666
79397
|
height: dt('radiobutton.icon.lg.size');
|
|
79667
79398
|
}
|
|
79668
|
-
`,
|
|
79399
|
+
`, AX = {
|
|
79669
79400
|
root: function(i) {
|
|
79670
79401
|
var a = i.instance, r = i.props;
|
|
79671
79402
|
return ["p-radiobutton p-component", {
|
|
@@ -79680,11 +79411,11 @@ var qX = so`
|
|
|
79680
79411
|
box: "p-radiobutton-box",
|
|
79681
79412
|
input: "p-radiobutton-input",
|
|
79682
79413
|
icon: "p-radiobutton-icon"
|
|
79683
|
-
},
|
|
79414
|
+
}, SX = yt.extend({
|
|
79684
79415
|
name: "radiobutton",
|
|
79685
|
-
style:
|
|
79686
|
-
classes:
|
|
79687
|
-
}),
|
|
79416
|
+
style: IX,
|
|
79417
|
+
classes: AX
|
|
79418
|
+
}), OX = {
|
|
79688
79419
|
name: "BaseRadioButton",
|
|
79689
79420
|
extends: ss,
|
|
79690
79421
|
props: {
|
|
@@ -79719,7 +79450,7 @@ var qX = so`
|
|
|
79719
79450
|
default: null
|
|
79720
79451
|
}
|
|
79721
79452
|
},
|
|
79722
|
-
style:
|
|
79453
|
+
style: SX,
|
|
79723
79454
|
provide: function() {
|
|
79724
79455
|
return {
|
|
79725
79456
|
$pcRadioButton: this,
|
|
@@ -79735,14 +79466,14 @@ function Cr(o) {
|
|
|
79735
79466
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
|
79736
79467
|
}, Cr(o);
|
|
79737
79468
|
}
|
|
79738
|
-
function
|
|
79739
|
-
return (i =
|
|
79469
|
+
function TX(o, i, a) {
|
|
79470
|
+
return (i = DX(i)) in o ? Object.defineProperty(o, i, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : o[i] = a, o;
|
|
79740
79471
|
}
|
|
79741
|
-
function
|
|
79742
|
-
var i =
|
|
79472
|
+
function DX(o) {
|
|
79473
|
+
var i = EX(o, "string");
|
|
79743
79474
|
return Cr(i) == "symbol" ? i : i + "";
|
|
79744
79475
|
}
|
|
79745
|
-
function
|
|
79476
|
+
function EX(o, i) {
|
|
79746
79477
|
if (Cr(o) != "object" || !o) return o;
|
|
79747
79478
|
var a = o[Symbol.toPrimitive];
|
|
79748
79479
|
if (a !== void 0) {
|
|
@@ -79752,9 +79483,9 @@ function FX(o, i) {
|
|
|
79752
79483
|
}
|
|
79753
79484
|
return (i === "string" ? String : Number)(o);
|
|
79754
79485
|
}
|
|
79755
|
-
var
|
|
79486
|
+
var O9 = {
|
|
79756
79487
|
name: "RadioButton",
|
|
79757
|
-
extends:
|
|
79488
|
+
extends: OX,
|
|
79758
79489
|
inheritAttrs: !1,
|
|
79759
79490
|
emits: ["change", "focus", "blur"],
|
|
79760
79491
|
inject: {
|
|
@@ -79795,7 +79526,7 @@ var T9 = {
|
|
|
79795
79526
|
return i != null && (this.binary ? !!i : as(i, this.value));
|
|
79796
79527
|
},
|
|
79797
79528
|
dataP: function() {
|
|
79798
|
-
return Ao(
|
|
79529
|
+
return Ao(TX({
|
|
79799
79530
|
invalid: this.$invalid,
|
|
79800
79531
|
checked: this.checked,
|
|
79801
79532
|
disabled: this.disabled,
|
|
@@ -79803,8 +79534,8 @@ var T9 = {
|
|
|
79803
79534
|
}, this.size, this.size));
|
|
79804
79535
|
}
|
|
79805
79536
|
}
|
|
79806
|
-
},
|
|
79807
|
-
function
|
|
79537
|
+
}, RX = ["data-p-checked", "data-p-disabled", "data-p"], LX = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "aria-labelledby", "aria-label", "aria-invalid"], BX = ["data-p"], qX = ["data-p"];
|
|
79538
|
+
function jX(o, i, a, r, l, d) {
|
|
79808
79539
|
return D(), j("div", pe({
|
|
79809
79540
|
class: o.cx("root")
|
|
79810
79541
|
}, d.getPTOptions("root"), {
|
|
@@ -79834,7 +79565,7 @@ function WX(o, i, a, r, l, d) {
|
|
|
79834
79565
|
onChange: i[2] || (i[2] = function() {
|
|
79835
79566
|
return d.onChange && d.onChange.apply(d, arguments);
|
|
79836
79567
|
})
|
|
79837
|
-
}, d.getPTOptions("input")), null, 16,
|
|
79568
|
+
}, d.getPTOptions("input")), null, 16, LX), K("div", pe({
|
|
79838
79569
|
class: o.cx("box")
|
|
79839
79570
|
}, d.getPTOptions("box"), {
|
|
79840
79571
|
"data-p": d.dataP
|
|
@@ -79842,10 +79573,10 @@ function WX(o, i, a, r, l, d) {
|
|
|
79842
79573
|
class: o.cx("icon")
|
|
79843
79574
|
}, d.getPTOptions("icon"), {
|
|
79844
79575
|
"data-p": d.dataP
|
|
79845
|
-
}), null, 16,
|
|
79576
|
+
}), null, 16, qX)], 16, BX)], 16, RX);
|
|
79846
79577
|
}
|
|
79847
|
-
|
|
79848
|
-
var
|
|
79578
|
+
O9.render = jX;
|
|
79579
|
+
var $X = so`
|
|
79849
79580
|
.p-slider {
|
|
79850
79581
|
position: relative;
|
|
79851
79582
|
background: dt('slider.track.background');
|
|
@@ -79935,14 +79666,14 @@ var ZX = so`
|
|
|
79935
79666
|
inset-inline-start: 0;
|
|
79936
79667
|
width: 100%;
|
|
79937
79668
|
}
|
|
79938
|
-
`,
|
|
79669
|
+
`, PX = {
|
|
79939
79670
|
handle: {
|
|
79940
79671
|
position: "absolute"
|
|
79941
79672
|
},
|
|
79942
79673
|
range: {
|
|
79943
79674
|
position: "absolute"
|
|
79944
79675
|
}
|
|
79945
|
-
},
|
|
79676
|
+
}, MX = {
|
|
79946
79677
|
root: function(i) {
|
|
79947
79678
|
var a = i.instance, r = i.props;
|
|
79948
79679
|
return ["p-slider p-component", {
|
|
@@ -79954,12 +79685,12 @@ var ZX = so`
|
|
|
79954
79685
|
},
|
|
79955
79686
|
range: "p-slider-range",
|
|
79956
79687
|
handle: "p-slider-handle"
|
|
79957
|
-
},
|
|
79688
|
+
}, NX = yt.extend({
|
|
79958
79689
|
name: "slider",
|
|
79959
|
-
style:
|
|
79960
|
-
classes:
|
|
79961
|
-
inlineStyles:
|
|
79962
|
-
}),
|
|
79690
|
+
style: $X,
|
|
79691
|
+
classes: MX,
|
|
79692
|
+
inlineStyles: PX
|
|
79693
|
+
}), FX = {
|
|
79963
79694
|
name: "BaseSlider",
|
|
79964
79695
|
extends: v2,
|
|
79965
79696
|
props: {
|
|
@@ -79996,7 +79727,7 @@ var ZX = so`
|
|
|
79996
79727
|
default: null
|
|
79997
79728
|
}
|
|
79998
79729
|
},
|
|
79999
|
-
style:
|
|
79730
|
+
style: NX,
|
|
80000
79731
|
provide: function() {
|
|
80001
79732
|
return {
|
|
80002
79733
|
$pcSlider: this,
|
|
@@ -80012,14 +79743,14 @@ function xr(o) {
|
|
|
80012
79743
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
|
80013
79744
|
}, xr(o);
|
|
80014
79745
|
}
|
|
80015
|
-
function
|
|
80016
|
-
return (i =
|
|
79746
|
+
function UX(o, i, a) {
|
|
79747
|
+
return (i = zX(i)) in o ? Object.defineProperty(o, i, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : o[i] = a, o;
|
|
80017
79748
|
}
|
|
80018
|
-
function
|
|
80019
|
-
var i =
|
|
79749
|
+
function zX(o) {
|
|
79750
|
+
var i = VX(o, "string");
|
|
80020
79751
|
return xr(i) == "symbol" ? i : i + "";
|
|
80021
79752
|
}
|
|
80022
|
-
function
|
|
79753
|
+
function VX(o, i) {
|
|
80023
79754
|
if (xr(o) != "object" || !o) return o;
|
|
80024
79755
|
var a = o[Symbol.toPrimitive];
|
|
80025
79756
|
if (a !== void 0) {
|
|
@@ -80029,24 +79760,24 @@ function eQ(o, i) {
|
|
|
80029
79760
|
}
|
|
80030
79761
|
return (i === "string" ? String : Number)(o);
|
|
80031
79762
|
}
|
|
80032
|
-
function
|
|
80033
|
-
return
|
|
79763
|
+
function HX(o) {
|
|
79764
|
+
return GX(o) || YX(o) || ZX(o) || WX();
|
|
80034
79765
|
}
|
|
80035
|
-
function
|
|
79766
|
+
function WX() {
|
|
80036
79767
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
80037
79768
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
80038
79769
|
}
|
|
80039
|
-
function
|
|
79770
|
+
function ZX(o, i) {
|
|
80040
79771
|
if (o) {
|
|
80041
79772
|
if (typeof o == "string") return Qc(o, i);
|
|
80042
79773
|
var a = {}.toString.call(o).slice(8, -1);
|
|
80043
79774
|
return a === "Object" && o.constructor && (a = o.constructor.name), a === "Map" || a === "Set" ? Array.from(o) : a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a) ? Qc(o, i) : void 0;
|
|
80044
79775
|
}
|
|
80045
79776
|
}
|
|
80046
|
-
function
|
|
79777
|
+
function YX(o) {
|
|
80047
79778
|
if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null) return Array.from(o);
|
|
80048
79779
|
}
|
|
80049
|
-
function
|
|
79780
|
+
function GX(o) {
|
|
80050
79781
|
if (Array.isArray(o)) return Qc(o);
|
|
80051
79782
|
}
|
|
80052
79783
|
function Qc(o, i) {
|
|
@@ -80054,9 +79785,9 @@ function Qc(o, i) {
|
|
|
80054
79785
|
for (var a = 0, r = Array(i); a < i; a++) r[a] = o[a];
|
|
80055
79786
|
return r;
|
|
80056
79787
|
}
|
|
80057
|
-
var
|
|
79788
|
+
var T9 = {
|
|
80058
79789
|
name: "Slider",
|
|
80059
|
-
extends:
|
|
79790
|
+
extends: FX,
|
|
80060
79791
|
inheritAttrs: !1,
|
|
80061
79792
|
emits: ["change", "slideend"],
|
|
80062
79793
|
dragging: !1,
|
|
@@ -80088,7 +79819,7 @@ var D9 = {
|
|
|
80088
79819
|
},
|
|
80089
79820
|
updateModel: function(i, a) {
|
|
80090
79821
|
var r = Math.round(a * 100) / 100, l;
|
|
80091
|
-
this.range ? (l = this.value ?
|
|
79822
|
+
this.range ? (l = this.value ? HX(this.value) : [], this.handleIndex == 0 ? (r < this.min ? r = this.min : r >= this.max && (r = this.max), l[0] = r) : (r > this.max ? r = this.max : r <= this.min && (r = this.min), l[1] = r)) : (r < this.min ? r = this.min : r > this.max && (r = this.max), l = r), this.writeValue(l, i), this.$emit("change", l);
|
|
80092
79823
|
},
|
|
80093
79824
|
onDragStart: function(i, a) {
|
|
80094
79825
|
this.disabled || (this.$el.setAttribute("data-p-sliding", !0), this.dragging = !0, this.updateDomData(), this.range && this.value[0] === this.max ? this.handleIndex = 0 : this.handleIndex = a, i.currentTarget.focus());
|
|
@@ -80140,195 +79871,464 @@ var D9 = {
|
|
|
80140
79871
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, l;
|
|
80141
79872
|
this.range ? this.step ? l = this.value[a] - this.step : l = this.value[a] - 1 : this.step ? l = this.value - this.step : !this.step && r ? l = this.value - 10 : l = this.value - 1, this.updateModel(i, l), i.preventDefault();
|
|
80142
79873
|
},
|
|
80143
|
-
incrementValue: function(i, a) {
|
|
80144
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, l;
|
|
80145
|
-
this.range ? this.step ? l = this.value[a] + this.step : l = this.value[a] + 1 : this.step ? l = this.value + this.step : !this.step && r ? l = this.value + 10 : l = this.value + 1, this.updateModel(i, l), i.preventDefault();
|
|
79874
|
+
incrementValue: function(i, a) {
|
|
79875
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, l;
|
|
79876
|
+
this.range ? this.step ? l = this.value[a] + this.step : l = this.value[a] + 1 : this.step ? l = this.value + this.step : !this.step && r ? l = this.value + 10 : l = this.value + 1, this.updateModel(i, l), i.preventDefault();
|
|
79877
|
+
},
|
|
79878
|
+
bindDragListeners: function() {
|
|
79879
|
+
this.dragListener || (this.dragListener = this.onDrag.bind(this), document.addEventListener("mousemove", this.dragListener)), this.dragEndListener || (this.dragEndListener = this.onDragEnd.bind(this), document.addEventListener("mouseup", this.dragEndListener));
|
|
79880
|
+
},
|
|
79881
|
+
unbindDragListeners: function() {
|
|
79882
|
+
this.dragListener && (document.removeEventListener("mousemove", this.dragListener), this.dragListener = null), this.dragEndListener && (document.removeEventListener("mouseup", this.dragEndListener), this.dragEndListener = null);
|
|
79883
|
+
},
|
|
79884
|
+
rangeStyle: function() {
|
|
79885
|
+
if (this.range) {
|
|
79886
|
+
var i = this.rangeEndPosition > this.rangeStartPosition ? this.rangeEndPosition - this.rangeStartPosition : this.rangeStartPosition - this.rangeEndPosition, a = this.rangeEndPosition > this.rangeStartPosition ? this.rangeStartPosition : this.rangeEndPosition;
|
|
79887
|
+
return this.horizontal ? {
|
|
79888
|
+
"inset-inline-start": a + "%",
|
|
79889
|
+
width: i + "%"
|
|
79890
|
+
} : {
|
|
79891
|
+
bottom: a + "%",
|
|
79892
|
+
height: i + "%"
|
|
79893
|
+
};
|
|
79894
|
+
} else
|
|
79895
|
+
return this.horizontal ? {
|
|
79896
|
+
width: this.handlePosition + "%"
|
|
79897
|
+
} : {
|
|
79898
|
+
height: this.handlePosition + "%"
|
|
79899
|
+
};
|
|
79900
|
+
},
|
|
79901
|
+
handleStyle: function() {
|
|
79902
|
+
return this.horizontal ? {
|
|
79903
|
+
"inset-inline-start": this.handlePosition + "%"
|
|
79904
|
+
} : {
|
|
79905
|
+
bottom: this.handlePosition + "%"
|
|
79906
|
+
};
|
|
79907
|
+
},
|
|
79908
|
+
rangeStartHandleStyle: function() {
|
|
79909
|
+
return this.horizontal ? {
|
|
79910
|
+
"inset-inline-start": this.rangeStartPosition + "%"
|
|
79911
|
+
} : {
|
|
79912
|
+
bottom: this.rangeStartPosition + "%"
|
|
79913
|
+
};
|
|
79914
|
+
},
|
|
79915
|
+
rangeEndHandleStyle: function() {
|
|
79916
|
+
return this.horizontal ? {
|
|
79917
|
+
"inset-inline-start": this.rangeEndPosition + "%"
|
|
79918
|
+
} : {
|
|
79919
|
+
bottom: this.rangeEndPosition + "%"
|
|
79920
|
+
};
|
|
79921
|
+
}
|
|
79922
|
+
},
|
|
79923
|
+
computed: {
|
|
79924
|
+
value: function() {
|
|
79925
|
+
var i;
|
|
79926
|
+
if (this.range) {
|
|
79927
|
+
var a, r, l, d;
|
|
79928
|
+
return [(a = (r = this.d_value) === null || r === void 0 ? void 0 : r[0]) !== null && a !== void 0 ? a : this.min, (l = (d = this.d_value) === null || d === void 0 ? void 0 : d[1]) !== null && l !== void 0 ? l : this.max];
|
|
79929
|
+
}
|
|
79930
|
+
return (i = this.d_value) !== null && i !== void 0 ? i : this.min;
|
|
79931
|
+
},
|
|
79932
|
+
horizontal: function() {
|
|
79933
|
+
return this.orientation === "horizontal";
|
|
79934
|
+
},
|
|
79935
|
+
vertical: function() {
|
|
79936
|
+
return this.orientation === "vertical";
|
|
79937
|
+
},
|
|
79938
|
+
handlePosition: function() {
|
|
79939
|
+
return this.value < this.min ? 0 : this.value > this.max ? 100 : (this.value - this.min) * 100 / (this.max - this.min);
|
|
79940
|
+
},
|
|
79941
|
+
rangeStartPosition: function() {
|
|
79942
|
+
return this.value && this.value[0] !== void 0 ? this.value[0] < this.min ? 0 : (this.value[0] - this.min) * 100 / (this.max - this.min) : 0;
|
|
79943
|
+
},
|
|
79944
|
+
rangeEndPosition: function() {
|
|
79945
|
+
return this.value && this.value.length === 2 && this.value[1] !== void 0 ? this.value[1] > this.max ? 100 : (this.value[1] - this.min) * 100 / (this.max - this.min) : 100;
|
|
79946
|
+
},
|
|
79947
|
+
dataP: function() {
|
|
79948
|
+
return Ao(UX({}, this.orientation, this.orientation));
|
|
79949
|
+
}
|
|
79950
|
+
}
|
|
79951
|
+
}, KX = ["data-p"], XX = ["data-p"], QX = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby", "aria-label", "aria-orientation", "data-p"], JX = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby", "aria-label", "aria-orientation", "data-p"], eQ = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "aria-labelledby", "aria-label", "aria-orientation", "data-p"];
|
|
79952
|
+
function tQ(o, i, a, r, l, d) {
|
|
79953
|
+
return D(), j("div", pe({
|
|
79954
|
+
class: o.cx("root"),
|
|
79955
|
+
onClick: i[18] || (i[18] = function() {
|
|
79956
|
+
return d.onBarClick && d.onBarClick.apply(d, arguments);
|
|
79957
|
+
})
|
|
79958
|
+
}, o.ptmi("root"), {
|
|
79959
|
+
"data-p-sliding": !1,
|
|
79960
|
+
"data-p": d.dataP
|
|
79961
|
+
}), [K("span", pe({
|
|
79962
|
+
class: o.cx("range"),
|
|
79963
|
+
style: [o.sx("range"), d.rangeStyle()]
|
|
79964
|
+
}, o.ptm("range"), {
|
|
79965
|
+
"data-p": d.dataP
|
|
79966
|
+
}), null, 16, XX), o.range ? Y("", !0) : (D(), j("span", pe({
|
|
79967
|
+
key: 0,
|
|
79968
|
+
class: o.cx("handle"),
|
|
79969
|
+
style: [o.sx("handle"), d.handleStyle()],
|
|
79970
|
+
onTouchstartPassive: i[0] || (i[0] = function(p) {
|
|
79971
|
+
return d.onDragStart(p);
|
|
79972
|
+
}),
|
|
79973
|
+
onTouchmovePassive: i[1] || (i[1] = function(p) {
|
|
79974
|
+
return d.onDrag(p);
|
|
79975
|
+
}),
|
|
79976
|
+
onTouchend: i[2] || (i[2] = function(p) {
|
|
79977
|
+
return d.onDragEnd(p);
|
|
79978
|
+
}),
|
|
79979
|
+
onMousedown: i[3] || (i[3] = function(p) {
|
|
79980
|
+
return d.onMouseDown(p);
|
|
79981
|
+
}),
|
|
79982
|
+
onKeydown: i[4] || (i[4] = function(p) {
|
|
79983
|
+
return d.onKeyDown(p);
|
|
79984
|
+
}),
|
|
79985
|
+
onBlur: i[5] || (i[5] = function(p) {
|
|
79986
|
+
return d.onBlur(p);
|
|
79987
|
+
}),
|
|
79988
|
+
tabindex: o.tabindex,
|
|
79989
|
+
role: "slider",
|
|
79990
|
+
"aria-valuemin": o.min,
|
|
79991
|
+
"aria-valuenow": o.d_value,
|
|
79992
|
+
"aria-valuemax": o.max,
|
|
79993
|
+
"aria-labelledby": o.ariaLabelledby,
|
|
79994
|
+
"aria-label": o.ariaLabel,
|
|
79995
|
+
"aria-orientation": o.orientation
|
|
79996
|
+
}, o.ptm("handle"), {
|
|
79997
|
+
"data-p": d.dataP
|
|
79998
|
+
}), null, 16, QX)), o.range ? (D(), j("span", pe({
|
|
79999
|
+
key: 1,
|
|
80000
|
+
class: o.cx("handle"),
|
|
80001
|
+
style: [o.sx("handle"), d.rangeStartHandleStyle()],
|
|
80002
|
+
onTouchstartPassive: i[6] || (i[6] = function(p) {
|
|
80003
|
+
return d.onDragStart(p, 0);
|
|
80004
|
+
}),
|
|
80005
|
+
onTouchmovePassive: i[7] || (i[7] = function(p) {
|
|
80006
|
+
return d.onDrag(p);
|
|
80007
|
+
}),
|
|
80008
|
+
onTouchend: i[8] || (i[8] = function(p) {
|
|
80009
|
+
return d.onDragEnd(p);
|
|
80010
|
+
}),
|
|
80011
|
+
onMousedown: i[9] || (i[9] = function(p) {
|
|
80012
|
+
return d.onMouseDown(p, 0);
|
|
80013
|
+
}),
|
|
80014
|
+
onKeydown: i[10] || (i[10] = function(p) {
|
|
80015
|
+
return d.onKeyDown(p, 0);
|
|
80016
|
+
}),
|
|
80017
|
+
onBlur: i[11] || (i[11] = function(p) {
|
|
80018
|
+
return d.onBlur(p, 0);
|
|
80019
|
+
}),
|
|
80020
|
+
tabindex: o.tabindex,
|
|
80021
|
+
role: "slider",
|
|
80022
|
+
"aria-valuemin": o.min,
|
|
80023
|
+
"aria-valuenow": o.d_value ? o.d_value[0] : null,
|
|
80024
|
+
"aria-valuemax": o.max,
|
|
80025
|
+
"aria-labelledby": o.ariaLabelledby,
|
|
80026
|
+
"aria-label": o.ariaLabel,
|
|
80027
|
+
"aria-orientation": o.orientation
|
|
80028
|
+
}, o.ptm("startHandler"), {
|
|
80029
|
+
"data-p": d.dataP
|
|
80030
|
+
}), null, 16, JX)) : Y("", !0), o.range ? (D(), j("span", pe({
|
|
80031
|
+
key: 2,
|
|
80032
|
+
class: o.cx("handle"),
|
|
80033
|
+
style: [o.sx("handle"), d.rangeEndHandleStyle()],
|
|
80034
|
+
onTouchstartPassive: i[12] || (i[12] = function(p) {
|
|
80035
|
+
return d.onDragStart(p, 1);
|
|
80036
|
+
}),
|
|
80037
|
+
onTouchmovePassive: i[13] || (i[13] = function(p) {
|
|
80038
|
+
return d.onDrag(p);
|
|
80039
|
+
}),
|
|
80040
|
+
onTouchend: i[14] || (i[14] = function(p) {
|
|
80041
|
+
return d.onDragEnd(p);
|
|
80042
|
+
}),
|
|
80043
|
+
onMousedown: i[15] || (i[15] = function(p) {
|
|
80044
|
+
return d.onMouseDown(p, 1);
|
|
80045
|
+
}),
|
|
80046
|
+
onKeydown: i[16] || (i[16] = function(p) {
|
|
80047
|
+
return d.onKeyDown(p, 1);
|
|
80048
|
+
}),
|
|
80049
|
+
onBlur: i[17] || (i[17] = function(p) {
|
|
80050
|
+
return d.onBlur(p, 1);
|
|
80051
|
+
}),
|
|
80052
|
+
tabindex: o.tabindex,
|
|
80053
|
+
role: "slider",
|
|
80054
|
+
"aria-valuemin": o.min,
|
|
80055
|
+
"aria-valuenow": o.d_value ? o.d_value[1] : null,
|
|
80056
|
+
"aria-valuemax": o.max,
|
|
80057
|
+
"aria-labelledby": o.ariaLabelledby,
|
|
80058
|
+
"aria-label": o.ariaLabel,
|
|
80059
|
+
"aria-orientation": o.orientation
|
|
80060
|
+
}, o.ptm("endHandler"), {
|
|
80061
|
+
"data-p": d.dataP
|
|
80062
|
+
}), null, 16, eQ)) : Y("", !0)], 16, KX);
|
|
80063
|
+
}
|
|
80064
|
+
T9.render = tQ;
|
|
80065
|
+
var oQ = so`
|
|
80066
|
+
.p-toggleswitch {
|
|
80067
|
+
display: inline-block;
|
|
80068
|
+
width: dt('toggleswitch.width');
|
|
80069
|
+
height: dt('toggleswitch.height');
|
|
80070
|
+
}
|
|
80071
|
+
|
|
80072
|
+
.p-toggleswitch-input {
|
|
80073
|
+
cursor: pointer;
|
|
80074
|
+
appearance: none;
|
|
80075
|
+
position: absolute;
|
|
80076
|
+
top: 0;
|
|
80077
|
+
inset-inline-start: 0;
|
|
80078
|
+
width: 100%;
|
|
80079
|
+
height: 100%;
|
|
80080
|
+
padding: 0;
|
|
80081
|
+
margin: 0;
|
|
80082
|
+
opacity: 0;
|
|
80083
|
+
z-index: 1;
|
|
80084
|
+
outline: 0 none;
|
|
80085
|
+
border-radius: dt('toggleswitch.border.radius');
|
|
80086
|
+
}
|
|
80087
|
+
|
|
80088
|
+
.p-toggleswitch-slider {
|
|
80089
|
+
cursor: pointer;
|
|
80090
|
+
width: 100%;
|
|
80091
|
+
height: 100%;
|
|
80092
|
+
border-width: dt('toggleswitch.border.width');
|
|
80093
|
+
border-style: solid;
|
|
80094
|
+
border-color: dt('toggleswitch.border.color');
|
|
80095
|
+
background: dt('toggleswitch.background');
|
|
80096
|
+
transition:
|
|
80097
|
+
background dt('toggleswitch.transition.duration'),
|
|
80098
|
+
color dt('toggleswitch.transition.duration'),
|
|
80099
|
+
border-color dt('toggleswitch.transition.duration'),
|
|
80100
|
+
outline-color dt('toggleswitch.transition.duration'),
|
|
80101
|
+
box-shadow dt('toggleswitch.transition.duration');
|
|
80102
|
+
border-radius: dt('toggleswitch.border.radius');
|
|
80103
|
+
outline-color: transparent;
|
|
80104
|
+
box-shadow: dt('toggleswitch.shadow');
|
|
80105
|
+
}
|
|
80106
|
+
|
|
80107
|
+
.p-toggleswitch-handle {
|
|
80108
|
+
position: absolute;
|
|
80109
|
+
top: 50%;
|
|
80110
|
+
display: flex;
|
|
80111
|
+
justify-content: center;
|
|
80112
|
+
align-items: center;
|
|
80113
|
+
background: dt('toggleswitch.handle.background');
|
|
80114
|
+
color: dt('toggleswitch.handle.color');
|
|
80115
|
+
width: dt('toggleswitch.handle.size');
|
|
80116
|
+
height: dt('toggleswitch.handle.size');
|
|
80117
|
+
inset-inline-start: dt('toggleswitch.gap');
|
|
80118
|
+
margin-block-start: calc(-1 * calc(dt('toggleswitch.handle.size') / 2));
|
|
80119
|
+
border-radius: dt('toggleswitch.handle.border.radius');
|
|
80120
|
+
transition:
|
|
80121
|
+
background dt('toggleswitch.transition.duration'),
|
|
80122
|
+
color dt('toggleswitch.transition.duration'),
|
|
80123
|
+
inset-inline-start dt('toggleswitch.slide.duration'),
|
|
80124
|
+
box-shadow dt('toggleswitch.slide.duration');
|
|
80125
|
+
}
|
|
80126
|
+
|
|
80127
|
+
.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider {
|
|
80128
|
+
background: dt('toggleswitch.checked.background');
|
|
80129
|
+
border-color: dt('toggleswitch.checked.border.color');
|
|
80130
|
+
}
|
|
80131
|
+
|
|
80132
|
+
.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-handle {
|
|
80133
|
+
background: dt('toggleswitch.handle.checked.background');
|
|
80134
|
+
color: dt('toggleswitch.handle.checked.color');
|
|
80135
|
+
inset-inline-start: calc(dt('toggleswitch.width') - calc(dt('toggleswitch.handle.size') + dt('toggleswitch.gap')));
|
|
80136
|
+
}
|
|
80137
|
+
|
|
80138
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider {
|
|
80139
|
+
background: dt('toggleswitch.hover.background');
|
|
80140
|
+
border-color: dt('toggleswitch.hover.border.color');
|
|
80141
|
+
}
|
|
80142
|
+
|
|
80143
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle {
|
|
80144
|
+
background: dt('toggleswitch.handle.hover.background');
|
|
80145
|
+
color: dt('toggleswitch.handle.hover.color');
|
|
80146
|
+
}
|
|
80147
|
+
|
|
80148
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider {
|
|
80149
|
+
background: dt('toggleswitch.checked.hover.background');
|
|
80150
|
+
border-color: dt('toggleswitch.checked.hover.border.color');
|
|
80151
|
+
}
|
|
80152
|
+
|
|
80153
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle {
|
|
80154
|
+
background: dt('toggleswitch.handle.checked.hover.background');
|
|
80155
|
+
color: dt('toggleswitch.handle.checked.hover.color');
|
|
80156
|
+
}
|
|
80157
|
+
|
|
80158
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider {
|
|
80159
|
+
box-shadow: dt('toggleswitch.focus.ring.shadow');
|
|
80160
|
+
outline: dt('toggleswitch.focus.ring.width') dt('toggleswitch.focus.ring.style') dt('toggleswitch.focus.ring.color');
|
|
80161
|
+
outline-offset: dt('toggleswitch.focus.ring.offset');
|
|
80162
|
+
}
|
|
80163
|
+
|
|
80164
|
+
.p-toggleswitch.p-invalid > .p-toggleswitch-slider {
|
|
80165
|
+
border-color: dt('toggleswitch.invalid.border.color');
|
|
80166
|
+
}
|
|
80167
|
+
|
|
80168
|
+
.p-toggleswitch.p-disabled {
|
|
80169
|
+
opacity: 1;
|
|
80170
|
+
}
|
|
80171
|
+
|
|
80172
|
+
.p-toggleswitch.p-disabled .p-toggleswitch-slider {
|
|
80173
|
+
background: dt('toggleswitch.disabled.background');
|
|
80174
|
+
}
|
|
80175
|
+
|
|
80176
|
+
.p-toggleswitch.p-disabled .p-toggleswitch-handle {
|
|
80177
|
+
background: dt('toggleswitch.handle.disabled.background');
|
|
80178
|
+
}
|
|
80179
|
+
`, iQ = {
|
|
80180
|
+
root: {
|
|
80181
|
+
position: "relative"
|
|
80182
|
+
}
|
|
80183
|
+
}, nQ = {
|
|
80184
|
+
root: function(i) {
|
|
80185
|
+
var a = i.instance, r = i.props;
|
|
80186
|
+
return ["p-toggleswitch p-component", {
|
|
80187
|
+
"p-toggleswitch-checked": a.checked,
|
|
80188
|
+
"p-disabled": r.disabled,
|
|
80189
|
+
"p-invalid": a.$invalid
|
|
80190
|
+
}];
|
|
80191
|
+
},
|
|
80192
|
+
input: "p-toggleswitch-input",
|
|
80193
|
+
slider: "p-toggleswitch-slider",
|
|
80194
|
+
handle: "p-toggleswitch-handle"
|
|
80195
|
+
}, aQ = yt.extend({
|
|
80196
|
+
name: "toggleswitch",
|
|
80197
|
+
style: oQ,
|
|
80198
|
+
classes: nQ,
|
|
80199
|
+
inlineStyles: iQ
|
|
80200
|
+
}), rQ = {
|
|
80201
|
+
name: "BaseToggleSwitch",
|
|
80202
|
+
extends: v2,
|
|
80203
|
+
props: {
|
|
80204
|
+
trueValue: {
|
|
80205
|
+
type: null,
|
|
80206
|
+
default: !0
|
|
80207
|
+
},
|
|
80208
|
+
falseValue: {
|
|
80209
|
+
type: null,
|
|
80210
|
+
default: !1
|
|
80211
|
+
},
|
|
80212
|
+
readonly: {
|
|
80213
|
+
type: Boolean,
|
|
80214
|
+
default: !1
|
|
80146
80215
|
},
|
|
80147
|
-
|
|
80148
|
-
|
|
80216
|
+
tabindex: {
|
|
80217
|
+
type: Number,
|
|
80218
|
+
default: null
|
|
80149
80219
|
},
|
|
80150
|
-
|
|
80151
|
-
|
|
80220
|
+
inputId: {
|
|
80221
|
+
type: String,
|
|
80222
|
+
default: null
|
|
80152
80223
|
},
|
|
80153
|
-
|
|
80154
|
-
|
|
80155
|
-
|
|
80156
|
-
return this.horizontal ? {
|
|
80157
|
-
"inset-inline-start": a + "%",
|
|
80158
|
-
width: i + "%"
|
|
80159
|
-
} : {
|
|
80160
|
-
bottom: a + "%",
|
|
80161
|
-
height: i + "%"
|
|
80162
|
-
};
|
|
80163
|
-
} else
|
|
80164
|
-
return this.horizontal ? {
|
|
80165
|
-
width: this.handlePosition + "%"
|
|
80166
|
-
} : {
|
|
80167
|
-
height: this.handlePosition + "%"
|
|
80168
|
-
};
|
|
80224
|
+
inputClass: {
|
|
80225
|
+
type: [String, Object],
|
|
80226
|
+
default: null
|
|
80169
80227
|
},
|
|
80170
|
-
|
|
80171
|
-
|
|
80172
|
-
|
|
80173
|
-
} : {
|
|
80174
|
-
bottom: this.handlePosition + "%"
|
|
80175
|
-
};
|
|
80228
|
+
inputStyle: {
|
|
80229
|
+
type: Object,
|
|
80230
|
+
default: null
|
|
80176
80231
|
},
|
|
80177
|
-
|
|
80178
|
-
|
|
80179
|
-
|
|
80180
|
-
} : {
|
|
80181
|
-
bottom: this.rangeStartPosition + "%"
|
|
80182
|
-
};
|
|
80232
|
+
ariaLabelledby: {
|
|
80233
|
+
type: String,
|
|
80234
|
+
default: null
|
|
80183
80235
|
},
|
|
80184
|
-
|
|
80185
|
-
|
|
80186
|
-
|
|
80187
|
-
} : {
|
|
80188
|
-
bottom: this.rangeEndPosition + "%"
|
|
80189
|
-
};
|
|
80236
|
+
ariaLabel: {
|
|
80237
|
+
type: String,
|
|
80238
|
+
default: null
|
|
80190
80239
|
}
|
|
80191
80240
|
},
|
|
80192
|
-
|
|
80193
|
-
|
|
80194
|
-
|
|
80195
|
-
|
|
80196
|
-
|
|
80197
|
-
|
|
80198
|
-
|
|
80199
|
-
|
|
80200
|
-
|
|
80201
|
-
|
|
80202
|
-
|
|
80203
|
-
|
|
80204
|
-
|
|
80205
|
-
|
|
80241
|
+
style: aQ,
|
|
80242
|
+
provide: function() {
|
|
80243
|
+
return {
|
|
80244
|
+
$pcToggleSwitch: this,
|
|
80245
|
+
$parentInstance: this
|
|
80246
|
+
};
|
|
80247
|
+
}
|
|
80248
|
+
}, D9 = {
|
|
80249
|
+
name: "ToggleSwitch",
|
|
80250
|
+
extends: rQ,
|
|
80251
|
+
inheritAttrs: !1,
|
|
80252
|
+
emits: ["change", "focus", "blur"],
|
|
80253
|
+
methods: {
|
|
80254
|
+
getPTOptions: function(i) {
|
|
80255
|
+
var a = i === "root" ? this.ptmi : this.ptm;
|
|
80256
|
+
return a(i, {
|
|
80257
|
+
context: {
|
|
80258
|
+
checked: this.checked,
|
|
80259
|
+
disabled: this.disabled
|
|
80260
|
+
}
|
|
80261
|
+
});
|
|
80206
80262
|
},
|
|
80207
|
-
|
|
80208
|
-
|
|
80263
|
+
onChange: function(i) {
|
|
80264
|
+
if (!this.disabled && !this.readonly) {
|
|
80265
|
+
var a = this.checked ? this.falseValue : this.trueValue;
|
|
80266
|
+
this.writeValue(a, i), this.$emit("change", i);
|
|
80267
|
+
}
|
|
80209
80268
|
},
|
|
80210
|
-
|
|
80211
|
-
|
|
80269
|
+
onFocus: function(i) {
|
|
80270
|
+
this.$emit("focus", i);
|
|
80212
80271
|
},
|
|
80213
|
-
|
|
80214
|
-
|
|
80272
|
+
onBlur: function(i) {
|
|
80273
|
+
var a, r;
|
|
80274
|
+
this.$emit("blur", i), (a = (r = this.formField).onBlur) === null || a === void 0 || a.call(r, i);
|
|
80275
|
+
}
|
|
80276
|
+
},
|
|
80277
|
+
computed: {
|
|
80278
|
+
checked: function() {
|
|
80279
|
+
return this.d_value === this.trueValue;
|
|
80215
80280
|
},
|
|
80216
80281
|
dataP: function() {
|
|
80217
|
-
return Ao(
|
|
80282
|
+
return Ao({
|
|
80283
|
+
checked: this.checked,
|
|
80284
|
+
disabled: this.disabled,
|
|
80285
|
+
invalid: this.$invalid
|
|
80286
|
+
});
|
|
80218
80287
|
}
|
|
80219
80288
|
}
|
|
80220
|
-
},
|
|
80289
|
+
}, lQ = ["data-p-checked", "data-p-disabled", "data-p"], sQ = ["id", "checked", "tabindex", "disabled", "readonly", "aria-checked", "aria-labelledby", "aria-label", "aria-invalid"], dQ = ["data-p"], cQ = ["data-p"];
|
|
80221
80290
|
function pQ(o, i, a, r, l, d) {
|
|
80222
80291
|
return D(), j("div", pe({
|
|
80223
80292
|
class: o.cx("root"),
|
|
80224
|
-
|
|
80225
|
-
|
|
80226
|
-
|
|
80227
|
-
|
|
80228
|
-
"data-p-sliding": !1,
|
|
80229
|
-
"data-p": d.dataP
|
|
80230
|
-
}), [K("span", pe({
|
|
80231
|
-
class: o.cx("range"),
|
|
80232
|
-
style: [o.sx("range"), d.rangeStyle()]
|
|
80233
|
-
}, o.ptm("range"), {
|
|
80293
|
+
style: o.sx("root")
|
|
80294
|
+
}, d.getPTOptions("root"), {
|
|
80295
|
+
"data-p-checked": d.checked,
|
|
80296
|
+
"data-p-disabled": o.disabled,
|
|
80234
80297
|
"data-p": d.dataP
|
|
80235
|
-
}),
|
|
80236
|
-
|
|
80237
|
-
|
|
80238
|
-
|
|
80239
|
-
|
|
80240
|
-
|
|
80241
|
-
|
|
80242
|
-
onTouchmovePassive: i[1] || (i[1] = function(p) {
|
|
80243
|
-
return d.onDrag(p);
|
|
80244
|
-
}),
|
|
80245
|
-
onTouchend: i[2] || (i[2] = function(p) {
|
|
80246
|
-
return d.onDragEnd(p);
|
|
80247
|
-
}),
|
|
80248
|
-
onMousedown: i[3] || (i[3] = function(p) {
|
|
80249
|
-
return d.onMouseDown(p);
|
|
80250
|
-
}),
|
|
80251
|
-
onKeydown: i[4] || (i[4] = function(p) {
|
|
80252
|
-
return d.onKeyDown(p);
|
|
80253
|
-
}),
|
|
80254
|
-
onBlur: i[5] || (i[5] = function(p) {
|
|
80255
|
-
return d.onBlur(p);
|
|
80256
|
-
}),
|
|
80298
|
+
}), [K("input", pe({
|
|
80299
|
+
id: o.inputId,
|
|
80300
|
+
type: "checkbox",
|
|
80301
|
+
role: "switch",
|
|
80302
|
+
class: [o.cx("input"), o.inputClass],
|
|
80303
|
+
style: o.inputStyle,
|
|
80304
|
+
checked: d.checked,
|
|
80257
80305
|
tabindex: o.tabindex,
|
|
80258
|
-
|
|
80259
|
-
|
|
80260
|
-
"aria-
|
|
80261
|
-
"aria-valuemax": o.max,
|
|
80306
|
+
disabled: o.disabled,
|
|
80307
|
+
readonly: o.readonly,
|
|
80308
|
+
"aria-checked": d.checked,
|
|
80262
80309
|
"aria-labelledby": o.ariaLabelledby,
|
|
80263
80310
|
"aria-label": o.ariaLabel,
|
|
80264
|
-
"aria-
|
|
80265
|
-
|
|
80266
|
-
|
|
80267
|
-
}), null, 16, sQ)), o.range ? (D(), j("span", pe({
|
|
80268
|
-
key: 1,
|
|
80269
|
-
class: o.cx("handle"),
|
|
80270
|
-
style: [o.sx("handle"), d.rangeStartHandleStyle()],
|
|
80271
|
-
onTouchstartPassive: i[6] || (i[6] = function(p) {
|
|
80272
|
-
return d.onDragStart(p, 0);
|
|
80273
|
-
}),
|
|
80274
|
-
onTouchmovePassive: i[7] || (i[7] = function(p) {
|
|
80275
|
-
return d.onDrag(p);
|
|
80276
|
-
}),
|
|
80277
|
-
onTouchend: i[8] || (i[8] = function(p) {
|
|
80278
|
-
return d.onDragEnd(p);
|
|
80279
|
-
}),
|
|
80280
|
-
onMousedown: i[9] || (i[9] = function(p) {
|
|
80281
|
-
return d.onMouseDown(p, 0);
|
|
80282
|
-
}),
|
|
80283
|
-
onKeydown: i[10] || (i[10] = function(p) {
|
|
80284
|
-
return d.onKeyDown(p, 0);
|
|
80311
|
+
"aria-invalid": o.invalid || void 0,
|
|
80312
|
+
onFocus: i[0] || (i[0] = function() {
|
|
80313
|
+
return d.onFocus && d.onFocus.apply(d, arguments);
|
|
80285
80314
|
}),
|
|
80286
|
-
onBlur: i[
|
|
80287
|
-
return d.onBlur(
|
|
80315
|
+
onBlur: i[1] || (i[1] = function() {
|
|
80316
|
+
return d.onBlur && d.onBlur.apply(d, arguments);
|
|
80288
80317
|
}),
|
|
80289
|
-
|
|
80290
|
-
|
|
80291
|
-
|
|
80292
|
-
|
|
80293
|
-
|
|
80294
|
-
|
|
80295
|
-
"aria-label": o.ariaLabel,
|
|
80296
|
-
"aria-orientation": o.orientation
|
|
80297
|
-
}, o.ptm("startHandler"), {
|
|
80318
|
+
onChange: i[2] || (i[2] = function() {
|
|
80319
|
+
return d.onChange && d.onChange.apply(d, arguments);
|
|
80320
|
+
})
|
|
80321
|
+
}, d.getPTOptions("input")), null, 16, sQ), K("div", pe({
|
|
80322
|
+
class: o.cx("slider")
|
|
80323
|
+
}, d.getPTOptions("slider"), {
|
|
80298
80324
|
"data-p": d.dataP
|
|
80299
|
-
}),
|
|
80300
|
-
|
|
80301
|
-
|
|
80302
|
-
style: [o.sx("handle"), d.rangeEndHandleStyle()],
|
|
80303
|
-
onTouchstartPassive: i[12] || (i[12] = function(p) {
|
|
80304
|
-
return d.onDragStart(p, 1);
|
|
80305
|
-
}),
|
|
80306
|
-
onTouchmovePassive: i[13] || (i[13] = function(p) {
|
|
80307
|
-
return d.onDrag(p);
|
|
80308
|
-
}),
|
|
80309
|
-
onTouchend: i[14] || (i[14] = function(p) {
|
|
80310
|
-
return d.onDragEnd(p);
|
|
80311
|
-
}),
|
|
80312
|
-
onMousedown: i[15] || (i[15] = function(p) {
|
|
80313
|
-
return d.onMouseDown(p, 1);
|
|
80314
|
-
}),
|
|
80315
|
-
onKeydown: i[16] || (i[16] = function(p) {
|
|
80316
|
-
return d.onKeyDown(p, 1);
|
|
80317
|
-
}),
|
|
80318
|
-
onBlur: i[17] || (i[17] = function(p) {
|
|
80319
|
-
return d.onBlur(p, 1);
|
|
80320
|
-
}),
|
|
80321
|
-
tabindex: o.tabindex,
|
|
80322
|
-
role: "slider",
|
|
80323
|
-
"aria-valuemin": o.min,
|
|
80324
|
-
"aria-valuenow": o.d_value ? o.d_value[1] : null,
|
|
80325
|
-
"aria-valuemax": o.max,
|
|
80326
|
-
"aria-labelledby": o.ariaLabelledby,
|
|
80327
|
-
"aria-label": o.ariaLabel,
|
|
80328
|
-
"aria-orientation": o.orientation
|
|
80329
|
-
}, o.ptm("endHandler"), {
|
|
80325
|
+
}), [K("div", pe({
|
|
80326
|
+
class: o.cx("handle")
|
|
80327
|
+
}, d.getPTOptions("handle"), {
|
|
80330
80328
|
"data-p": d.dataP
|
|
80331
|
-
}),
|
|
80329
|
+
}), [ee(o.$slots, "handle", {
|
|
80330
|
+
checked: d.checked
|
|
80331
|
+
})], 16, cQ)], 16, dQ)], 16, lQ);
|
|
80332
80332
|
}
|
|
80333
80333
|
D9.render = pQ;
|
|
80334
80334
|
var uQ = so`
|
|
@@ -82975,9 +82975,6 @@ const zle = {
|
|
|
82975
82975
|
...im.sizes,
|
|
82976
82976
|
colorScheme: im.colorScheme
|
|
82977
82977
|
}, u0e = {
|
|
82978
|
-
...lm.sizes,
|
|
82979
|
-
colorScheme: lm.colorScheme
|
|
82980
|
-
}, f0e = {
|
|
82981
82978
|
...pm.sizes,
|
|
82982
82979
|
colorScheme: pm.colorScheme,
|
|
82983
82980
|
css: ({ dt: o }) => `
|
|
@@ -82988,9 +82985,12 @@ const zle = {
|
|
|
82988
82985
|
justify-content: center;
|
|
82989
82986
|
}
|
|
82990
82987
|
`
|
|
82991
|
-
},
|
|
82988
|
+
}, f0e = {
|
|
82992
82989
|
...dm.sizes,
|
|
82993
82990
|
colorScheme: dm.colorScheme
|
|
82991
|
+
}, m0e = {
|
|
82992
|
+
...lm.sizes,
|
|
82993
|
+
colorScheme: lm.colorScheme
|
|
82994
82994
|
}, h0e = {
|
|
82995
82995
|
...nm.sizes,
|
|
82996
82996
|
colorScheme: nm.colorScheme,
|
|
@@ -83012,11 +83012,11 @@ const zle = {
|
|
|
83012
83012
|
tooltip: h0e,
|
|
83013
83013
|
chip: d0e,
|
|
83014
83014
|
checkbox: s0e,
|
|
83015
|
-
toggleswitch:
|
|
83015
|
+
toggleswitch: m0e,
|
|
83016
83016
|
breadcrumb: r0e,
|
|
83017
|
-
slider:
|
|
83017
|
+
slider: f0e,
|
|
83018
83018
|
divider: c0e,
|
|
83019
|
-
radiobutton:
|
|
83019
|
+
radiobutton: u0e
|
|
83020
83020
|
}, y0e = {
|
|
83021
83021
|
multiplicator: "8px",
|
|
83022
83022
|
"3xs": "calc({spacings.multiplicator} / 4)",
|
|
@@ -83042,7 +83042,7 @@ const zle = {
|
|
|
83042
83042
|
darkModeSelector: ".theme--dark"
|
|
83043
83043
|
}
|
|
83044
83044
|
}
|
|
83045
|
-
}), o.component("PButton", Wo(x9)), o.component("PAutoComplete", Wo(y9)), o.component("PInputText", Wo(w2)), o.component("PPopover", Wo(S9)), o.component("PCheckbox", Wo(I9)), o.component("PRadio", Wo(
|
|
83045
|
+
}), o.component("PButton", Wo(x9)), o.component("PAutoComplete", Wo(y9)), o.component("PInputText", Wo(w2)), o.component("PPopover", Wo(S9)), o.component("PCheckbox", Wo(I9)), o.component("PRadio", Wo(O9)), o.component("PChip", Wo(g2)), o.component("PToggleSwitch", Wo(D9)), o.component("PBreadcrumb", Wo(w9)), o.component("PSlider", Wo(T9)), o.component("PDivider", Wo(A9)), o.directive("tooltip", kQ);
|
|
83046
83046
|
}, z0e = {
|
|
83047
83047
|
install(o, { eventBus: i, router: a, globals: r = {} }) {
|
|
83048
83048
|
Object.keys(l4).forEach((l) => {
|