@kong/kongponents 9.26.2 → 9.26.3-pr.2679.3bb191ed8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/kongponents.es.js
CHANGED
|
@@ -6328,35 +6328,17 @@ const Ny = ["id", "aria-labelledby", "x-placement"], Ly = ["tabindex"], By = {
|
|
|
6328
6328
|
}, Pb = /* @__PURE__ */ oe({
|
|
6329
6329
|
__name: "KEmptyState",
|
|
6330
6330
|
props: {
|
|
6331
|
-
title: {
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
},
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
default: ""
|
|
6338
|
-
},
|
|
6339
|
-
actionButtonVisible: {
|
|
6340
|
-
type: Boolean,
|
|
6341
|
-
default: !0
|
|
6342
|
-
},
|
|
6343
|
-
actionButtonText: {
|
|
6344
|
-
type: String,
|
|
6345
|
-
default: ""
|
|
6346
|
-
},
|
|
6347
|
-
actionButtonDisabled: {
|
|
6348
|
-
type: Boolean,
|
|
6349
|
-
default: !1
|
|
6350
|
-
},
|
|
6351
|
-
iconVariant: {
|
|
6352
|
-
type: String,
|
|
6353
|
-
default: ma.Default
|
|
6354
|
-
}
|
|
6331
|
+
title: { default: "" },
|
|
6332
|
+
message: { default: "" },
|
|
6333
|
+
actionButtonVisible: { type: Boolean, default: !0 },
|
|
6334
|
+
actionButtonText: { default: "" },
|
|
6335
|
+
actionButtonDisabled: { type: Boolean, default: !1 },
|
|
6336
|
+
iconVariant: { default: () => ma.Default }
|
|
6355
6337
|
},
|
|
6356
6338
|
emits: ["click-action"],
|
|
6357
|
-
setup(e) {
|
|
6358
|
-
const
|
|
6359
|
-
switch (
|
|
6339
|
+
setup(e, { emit: t }) {
|
|
6340
|
+
const a = t, n = g(() => {
|
|
6341
|
+
switch (e.iconVariant) {
|
|
6360
6342
|
case ma.Default:
|
|
6361
6343
|
return Ku;
|
|
6362
6344
|
case ma.Error:
|
|
@@ -6368,47 +6350,47 @@ const Ny = ["id", "aria-labelledby", "x-placement"], Ly = ["tabindex"], By = {
|
|
|
6368
6350
|
default:
|
|
6369
6351
|
return Ku;
|
|
6370
6352
|
}
|
|
6371
|
-
}),
|
|
6372
|
-
switch (
|
|
6353
|
+
}), r = g(() => {
|
|
6354
|
+
switch (e.iconVariant) {
|
|
6373
6355
|
case ma.Error:
|
|
6374
6356
|
return d1;
|
|
6375
6357
|
default:
|
|
6376
6358
|
return Oa;
|
|
6377
6359
|
}
|
|
6378
6360
|
});
|
|
6379
|
-
return (
|
|
6380
|
-
class: ue(["k-empty-state", [
|
|
6361
|
+
return (i, l) => (h(), x("div", {
|
|
6362
|
+
class: ue(["k-empty-state", [i.iconVariant]])
|
|
6381
6363
|
}, [
|
|
6382
6364
|
W("div", Ib, [
|
|
6383
6365
|
W("div", Ab, [
|
|
6384
|
-
Q(
|
|
6385
|
-
(h(), J(Fe(
|
|
6386
|
-
color:
|
|
6366
|
+
Q(i.$slots, "icon", {}, () => [
|
|
6367
|
+
(h(), J(Fe(n.value), {
|
|
6368
|
+
color: r.value,
|
|
6387
6369
|
decorative: "",
|
|
6388
6370
|
size: I(f1)
|
|
6389
6371
|
}, null, 8, ["color", "size"]))
|
|
6390
6372
|
], !0)
|
|
6391
6373
|
]),
|
|
6392
|
-
|
|
6393
|
-
Q(
|
|
6394
|
-
ge(re(
|
|
6374
|
+
i.title || i.$slots.title ? (h(), x("div", Eb, [
|
|
6375
|
+
Q(i.$slots, "title", {}, () => [
|
|
6376
|
+
ge(re(i.title), 1)
|
|
6395
6377
|
], !0)
|
|
6396
6378
|
])) : G("", !0),
|
|
6397
|
-
|
|
6398
|
-
Q(
|
|
6399
|
-
W("p", null, re(
|
|
6379
|
+
i.message || i.$slots.default ? (h(), x("div", Mb, [
|
|
6380
|
+
Q(i.$slots, "default", {}, () => [
|
|
6381
|
+
W("p", null, re(i.message), 1)
|
|
6400
6382
|
], !0)
|
|
6401
6383
|
])) : G("", !0)
|
|
6402
6384
|
]),
|
|
6403
|
-
|
|
6404
|
-
Q(
|
|
6385
|
+
i.actionButtonVisible && i.actionButtonText || i.$slots.action ? (h(), x("div", Ob, [
|
|
6386
|
+
Q(i.$slots, "action", {}, () => [
|
|
6405
6387
|
Z(rt, {
|
|
6406
|
-
disabled:
|
|
6388
|
+
disabled: i.actionButtonDisabled,
|
|
6407
6389
|
type: "button",
|
|
6408
|
-
onClick:
|
|
6390
|
+
onClick: l[0] || (l[0] = (s) => a("click-action"))
|
|
6409
6391
|
}, {
|
|
6410
6392
|
default: B(() => [
|
|
6411
|
-
ge(re(
|
|
6393
|
+
ge(re(i.actionButtonText), 1)
|
|
6412
6394
|
]),
|
|
6413
6395
|
_: 1
|
|
6414
6396
|
}, 8, ["disabled"])
|
|
@@ -6416,7 +6398,7 @@ const Ny = ["id", "aria-labelledby", "x-placement"], Ly = ["tabindex"], By = {
|
|
|
6416
6398
|
])) : G("", !0)
|
|
6417
6399
|
], 2));
|
|
6418
6400
|
}
|
|
6419
|
-
}), Nn = /* @__PURE__ */ Ee(Pb, [["__scopeId", "data-v-
|
|
6401
|
+
}), Nn = /* @__PURE__ */ Ee(Pb, [["__scopeId", "data-v-a4f5b851"]]), Nb = { class: "dropdown-item-trigger-label" }, Ci = "dropdown-item-trigger", Lb = /* @__PURE__ */ oe({
|
|
6420
6402
|
inheritAttrs: !1,
|
|
6421
6403
|
__name: "KDropdownItem",
|
|
6422
6404
|
props: {
|