fds-vue-core 2.0.88 → 2.0.89
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/README.md +1 -0
- package/dist/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.vue.d.ts.map +1 -1
- package/dist/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue.d.ts.map +1 -1
- package/dist/fds-vue-core.cjs.js +24 -22
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +24 -22
- package/dist/fds-vue-core.es.js.map +1 -1
- package/package.json +1 -1
package/dist/fds-vue-core.es.js
CHANGED
|
@@ -413,7 +413,7 @@ function useHasSlot(name = "default") {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
const _hoisted_1$q = ["for"];
|
|
416
|
-
const _hoisted_2$
|
|
416
|
+
const _hoisted_2$k = ["id", "name", "value", "disabled", "required"];
|
|
417
417
|
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
418
418
|
__name: "FdsCheckbox",
|
|
419
419
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -529,7 +529,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
529
529
|
required: _ctx.required,
|
|
530
530
|
type: "checkbox",
|
|
531
531
|
class: normalizeClass([checkboxClasses.value])
|
|
532
|
-
}, null, 10, _hoisted_2$
|
|
532
|
+
}, null, 10, _hoisted_2$k), [
|
|
533
533
|
[vModelCheckbox, internalChecked.value]
|
|
534
534
|
]),
|
|
535
535
|
unref(hasLabelSlot) || _ctx.label ? (openBlock(), createElementBlock("span", {
|
|
@@ -1142,7 +1142,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1142
1142
|
}
|
|
1143
1143
|
});
|
|
1144
1144
|
const _hoisted_1$n = ["for"];
|
|
1145
|
-
const _hoisted_2$
|
|
1145
|
+
const _hoisted_2$j = ["id", "name", "value", "disabled", "required"];
|
|
1146
1146
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1147
1147
|
__name: "FdsRadio",
|
|
1148
1148
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1206,7 +1206,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1206
1206
|
required: _ctx.required,
|
|
1207
1207
|
type: "radio",
|
|
1208
1208
|
class: normalizeClass([inputClasses.value, "m-[2px]"])
|
|
1209
|
-
}, null, 10, _hoisted_2$
|
|
1209
|
+
}, null, 10, _hoisted_2$j), [
|
|
1210
1210
|
[vModelRadio, radioModel.value]
|
|
1211
1211
|
]),
|
|
1212
1212
|
unref(hasLabelSlot) || _ctx.label ? (openBlock(), createElementBlock("span", {
|
|
@@ -1223,7 +1223,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1223
1223
|
}
|
|
1224
1224
|
});
|
|
1225
1225
|
const _hoisted_1$m = { class: "flex items-start" };
|
|
1226
|
-
const _hoisted_2$
|
|
1226
|
+
const _hoisted_2$i = { class: "flex-1 flex" };
|
|
1227
1227
|
const _hoisted_3$b = ["innerHTML"];
|
|
1228
1228
|
const _hoisted_4$a = { key: 1 };
|
|
1229
1229
|
const _hoisted_5$8 = { key: 0 };
|
|
@@ -1453,7 +1453,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1453
1453
|
key: 1,
|
|
1454
1454
|
style: normalizeStyle({ minWidth: `${_ctx.indentation}px` })
|
|
1455
1455
|
}, null, 4)) : createCommentVNode("", true),
|
|
1456
|
-
createElementVNode("div", _hoisted_2$
|
|
1456
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
1457
1457
|
createVNode(_sfc_main$w, {
|
|
1458
1458
|
id: `checkbox-${props.nodeId}`,
|
|
1459
1459
|
checked: unref(treeState)?.isNodeSelected(props.nodeId),
|
|
@@ -4847,7 +4847,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
4847
4847
|
}
|
|
4848
4848
|
});
|
|
4849
4849
|
const _hoisted_1$k = ["aria-disabled"];
|
|
4850
|
-
const _hoisted_2$
|
|
4850
|
+
const _hoisted_2$h = { class: "pt-0.5" };
|
|
4851
4851
|
const elBase$2 = "box-border appearance-none inline-flex items-start justify-center w-fit cursor-pointer shadow-none p-0.5 text-base select-none m-0 rounded-md text-left align-start no-underline transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
4852
4852
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
4853
4853
|
...{
|
|
@@ -4941,7 +4941,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
4941
4941
|
size: 24
|
|
4942
4942
|
}, null, 8, ["class", "name"])
|
|
4943
4943
|
], 2)) : createCommentVNode("", true),
|
|
4944
|
-
createElementVNode("span", _hoisted_2$
|
|
4944
|
+
createElementVNode("span", _hoisted_2$h, toDisplayString(_ctx.text), 1)
|
|
4945
4945
|
]),
|
|
4946
4946
|
_: 1
|
|
4947
4947
|
}, 16, ["type", "disabled", "target", "rel", "class"]))
|
|
@@ -4950,7 +4950,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
4950
4950
|
}
|
|
4951
4951
|
});
|
|
4952
4952
|
const _hoisted_1$j = { class: "w-full mb-4" };
|
|
4953
|
-
const _hoisted_2$
|
|
4953
|
+
const _hoisted_2$g = ["for"];
|
|
4954
4954
|
const _hoisted_3$a = { class: "relative" };
|
|
4955
4955
|
const _hoisted_4$9 = ["id", "name", "type", "disabled", "required", "size", "maxlength", "aria-invalid"];
|
|
4956
4956
|
const _hoisted_5$7 = {
|
|
@@ -5089,7 +5089,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5089
5089
|
key: 0,
|
|
5090
5090
|
for: inputId.value,
|
|
5091
5091
|
class: normalizeClass(["block font-bold text-gray-900 cursor-pointer", { "mb-0": _ctx.meta, "mb-1": !_ctx.meta }])
|
|
5092
|
-
}, toDisplayString(_ctx.label), 11, _hoisted_2$
|
|
5092
|
+
}, toDisplayString(_ctx.label), 11, _hoisted_2$g)) : createCommentVNode("", true),
|
|
5093
5093
|
_ctx.meta ? (openBlock(), createElementBlock("div", {
|
|
5094
5094
|
key: 1,
|
|
5095
5095
|
class: normalizeClass(["font-thin", { "mb-1": !_ctx.labelLeft }])
|
|
@@ -5151,7 +5151,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5151
5151
|
}
|
|
5152
5152
|
});
|
|
5153
5153
|
const _hoisted_1$i = ["id"];
|
|
5154
|
-
const _hoisted_2$
|
|
5154
|
+
const _hoisted_2$f = {
|
|
5155
5155
|
key: 0,
|
|
5156
5156
|
class: "flex items-start justify-between gap-4"
|
|
5157
5157
|
};
|
|
@@ -5197,7 +5197,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5197
5197
|
class: normalizeClass(contentClasses.value),
|
|
5198
5198
|
style: normalizeStyle(borderLeftStyle.value)
|
|
5199
5199
|
}, [
|
|
5200
|
-
_ctx.heading ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
5200
|
+
_ctx.heading ? (openBlock(), createElementBlock("header", _hoisted_2$f, [
|
|
5201
5201
|
createElementVNode("div", _hoisted_3$9, [
|
|
5202
5202
|
createElementVNode("h3", {
|
|
5203
5203
|
class: normalizeClass(headerClasses.value)
|
|
@@ -5241,7 +5241,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
5241
5241
|
}
|
|
5242
5242
|
});
|
|
5243
5243
|
const _hoisted_1$h = { key: 0 };
|
|
5244
|
-
const _hoisted_2$
|
|
5244
|
+
const _hoisted_2$e = {
|
|
5245
5245
|
key: 0,
|
|
5246
5246
|
class: "text-xl"
|
|
5247
5247
|
};
|
|
@@ -5344,7 +5344,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
5344
5344
|
_: 1
|
|
5345
5345
|
}, 8, ["value", "label"]),
|
|
5346
5346
|
props.searchCountTemplate || props.searchCountTemplateUnfiltered ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
5347
|
-
props.searchCountTemplate && unref(treeState)?.searchTerm?.value && String(unref(treeState)?.searchTerm?.value || "").trim().length >= (unref(treeState)?.triggerLength ?? 1) ? (openBlock(), createElementBlock("h2", _hoisted_2$
|
|
5347
|
+
props.searchCountTemplate && unref(treeState)?.searchTerm?.value && String(unref(treeState)?.searchTerm?.value || "").trim().length >= (unref(treeState)?.triggerLength ?? 1) ? (openBlock(), createElementBlock("h2", _hoisted_2$e, toDisplayString(props.searchCountTemplate.replace("[[filteredNodes]]", unref(treeState)?.filteredMatchCount.value.toString()).replace("[[totalNodes]]", totalNodeCount.value.toString())), 1)) : (openBlock(), createElementBlock("h2", _hoisted_3$8, toDisplayString(props.searchCountTemplateUnfiltered?.replace("[[totalNodes]]", totalNodeCount.value.toString()).replace("[[totalNodes]]", totalNodeCount.value.toString())), 1))
|
|
5348
5348
|
])) : createCommentVNode("", true)
|
|
5349
5349
|
], 512)) : createCommentVNode("", true),
|
|
5350
5350
|
unref(treeState)?.isEmptySearchResult?.value ? (openBlock(), createBlock(_sfc_main$o, {
|
|
@@ -5399,6 +5399,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
5399
5399
|
}
|
|
5400
5400
|
});
|
|
5401
5401
|
const _hoisted_1$g = ["aria-disabled"];
|
|
5402
|
+
const _hoisted_2$d = { key: 2 };
|
|
5402
5403
|
const elBase$1 = "box-border appearance-none inline-flex items-center justify-center cursor-pointer select-none w-full min-h-0 min-w-12 m-0 rounded-lg text-center align-middle whitespace-nowrap no-underline shadow-[0_2px_4px_rgba(12,72,153,0.12)] transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
5403
5404
|
const variantClasses$1 = "bg-red-600 border border-red-700 text-white hover:bg-red-700 active:bg-red-800 active:border-red-800";
|
|
5404
5405
|
const iconFillClass$1 = "fill-white";
|
|
@@ -5436,14 +5437,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
5436
5437
|
};
|
|
5437
5438
|
const blockElClasses = computed(() => props.block && "w-full justify-center");
|
|
5438
5439
|
const iconOrderClasses = computed(
|
|
5439
|
-
() => props.icon && props.iconPos === "right" ? "order-2
|
|
5440
|
+
() => props.icon && props.iconPos === "right" ? "order-2" : ""
|
|
5440
5441
|
);
|
|
5441
5442
|
const buttonClasses = computed(() => [
|
|
5442
5443
|
elBase$1,
|
|
5443
5444
|
sizeClasses[props.size || "m"],
|
|
5444
5445
|
variantClasses$1,
|
|
5445
5446
|
blockElClasses.value,
|
|
5446
|
-
props.textSelection && "select-text"
|
|
5447
|
+
props.textSelection && "select-text",
|
|
5448
|
+
(props.icon || props.text) && "gap-2"
|
|
5447
5449
|
]);
|
|
5448
5450
|
function onClick(ev) {
|
|
5449
5451
|
if (props.disabled || props.loading) {
|
|
@@ -5471,7 +5473,6 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
5471
5473
|
default: withCtx(() => [
|
|
5472
5474
|
_ctx.loading ? (openBlock(), createBlock(_sfc_main$r, {
|
|
5473
5475
|
key: 0,
|
|
5474
|
-
class: "mr-2",
|
|
5475
5476
|
size: "24px",
|
|
5476
5477
|
color: "inherit"
|
|
5477
5478
|
})) : _ctx.icon ? (openBlock(), createElementBlock("span", {
|
|
@@ -5485,7 +5486,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
5485
5486
|
size: 24
|
|
5486
5487
|
}, null, 8, ["name"])
|
|
5487
5488
|
], 2)) : createCommentVNode("", true),
|
|
5488
|
-
|
|
5489
|
+
_ctx.text ? (openBlock(), createElementBlock("span", _hoisted_2$d, toDisplayString(_ctx.text), 1)) : createCommentVNode("", true)
|
|
5489
5490
|
]),
|
|
5490
5491
|
_: 1
|
|
5491
5492
|
}, 16, ["type", "disabled", "class"]))
|
|
@@ -5494,6 +5495,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
5494
5495
|
}
|
|
5495
5496
|
});
|
|
5496
5497
|
const _hoisted_1$f = ["aria-disabled"];
|
|
5498
|
+
const _hoisted_2$c = { key: 2 };
|
|
5497
5499
|
const elBase = "box-border appearance-none inline-flex items-center justify-center cursor-pointer select-none w-full min-h-0 min-w-12 m-0 rounded-lg text-center align-middle whitespace-nowrap no-underline shadow-[0_2px_4px_rgba(12,72,153,0.12)] transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
5498
5500
|
const variantClasses = "bg-white border-2 border-blue-500 text-blue-600 hover:border-blue-600 active:bg-blue-600 active:border-blue-600 active:text-white";
|
|
5499
5501
|
const iconFillClass = "fill-blue-500";
|
|
@@ -5531,14 +5533,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5531
5533
|
};
|
|
5532
5534
|
const blockElClasses = computed(() => props.block && "w-full justify-center");
|
|
5533
5535
|
const iconOrderClasses = computed(
|
|
5534
|
-
() => props.icon && props.iconPos === "right" ? "order-2
|
|
5536
|
+
() => props.icon && props.iconPos === "right" ? "order-2" : ""
|
|
5535
5537
|
);
|
|
5536
5538
|
const buttonClasses = computed(() => [
|
|
5537
5539
|
elBase,
|
|
5538
5540
|
sizeClasses[props.size || "m"],
|
|
5539
5541
|
variantClasses,
|
|
5540
5542
|
blockElClasses.value,
|
|
5541
|
-
props.textSelection && "select-text"
|
|
5543
|
+
props.textSelection && "select-text",
|
|
5544
|
+
(props.icon || props.text) && "gap-2"
|
|
5542
5545
|
]);
|
|
5543
5546
|
function onClick(ev) {
|
|
5544
5547
|
if (props.disabled || props.loading) {
|
|
@@ -5566,7 +5569,6 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5566
5569
|
default: withCtx(() => [
|
|
5567
5570
|
_ctx.loading ? (openBlock(), createBlock(_sfc_main$r, {
|
|
5568
5571
|
key: 0,
|
|
5569
|
-
class: "mr-2",
|
|
5570
5572
|
size: "24px",
|
|
5571
5573
|
color: "inherit"
|
|
5572
5574
|
})) : _ctx.icon ? (openBlock(), createElementBlock("span", {
|
|
@@ -5580,7 +5582,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
5580
5582
|
size: 24
|
|
5581
5583
|
}, null, 8, ["name"])
|
|
5582
5584
|
], 2)) : createCommentVNode("", true),
|
|
5583
|
-
|
|
5585
|
+
_ctx.text ? (openBlock(), createElementBlock("span", _hoisted_2$c, toDisplayString(_ctx.text), 1)) : createCommentVNode("", true)
|
|
5584
5586
|
]),
|
|
5585
5587
|
_: 1
|
|
5586
5588
|
}, 16, ["type", "disabled", "class"]))
|