@loafacto/ui 0.8.1 → 0.8.2
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.
|
@@ -6,6 +6,11 @@ type __VLS_Props = {
|
|
|
6
6
|
iconPath?: string;
|
|
7
7
|
/** muted — 그냥 비어 있음 / good — 비어 있는 것이 정상인 상태 */
|
|
8
8
|
tone?: 'muted' | 'good';
|
|
9
|
+
/**
|
|
10
|
+
* 여백을 줄인다. 패널 **안**의 빈 자리에 쓴다 — 기본 크기로 두면 상자보다
|
|
11
|
+
* 안내가 커 보여서, 목록이 비었다는 사실보다 그 안내가 화면의 주인이 된다.
|
|
12
|
+
*/
|
|
13
|
+
dense?: boolean;
|
|
9
14
|
};
|
|
10
15
|
declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {};
|
|
11
16
|
type __VLS_Slots = {} & {
|
package/dist/index.js
CHANGED
|
@@ -2169,12 +2169,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2169
2169
|
description: {},
|
|
2170
2170
|
icon: {},
|
|
2171
2171
|
iconPath: {},
|
|
2172
|
-
tone: { default: "muted" }
|
|
2172
|
+
tone: { default: "muted" },
|
|
2173
|
+
dense: { type: Boolean }
|
|
2173
2174
|
},
|
|
2174
2175
|
setup(__props) {
|
|
2175
2176
|
return (_ctx, _cache) => {
|
|
2176
2177
|
return openBlock(), createElementBlock("div", {
|
|
2177
|
-
class: normalizeClass(["lf-empty", `lf-empty--${__props.tone}
|
|
2178
|
+
class: normalizeClass(["lf-empty", [`lf-empty--${__props.tone}`, { "lf-empty--dense": __props.dense }]])
|
|
2178
2179
|
}, [
|
|
2179
2180
|
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$5, [
|
|
2180
2181
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
@@ -2202,7 +2203,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2202
2203
|
};
|
|
2203
2204
|
}
|
|
2204
2205
|
});
|
|
2205
|
-
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
2206
|
+
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b0e021c9"]]);
|
|
2206
2207
|
const _hoisted_1$4 = {
|
|
2207
2208
|
key: 0,
|
|
2208
2209
|
class: "lf-skeleton-group",
|
|
@@ -2512,6 +2513,7 @@ function createApiClient(options) {
|
|
|
2512
2513
|
const {
|
|
2513
2514
|
baseUrl,
|
|
2514
2515
|
refreshPath = DEFAULT_REFRESH_PATH,
|
|
2516
|
+
refreshUrl = `${baseUrl}${refreshPath}`,
|
|
2515
2517
|
isAuthPath = (url) => url.includes("/api/v1/auth/"),
|
|
2516
2518
|
onUnauthorized,
|
|
2517
2519
|
onActivity
|
|
@@ -2520,7 +2522,7 @@ function createApiClient(options) {
|
|
|
2520
2522
|
let refreshing = null;
|
|
2521
2523
|
let notified = false;
|
|
2522
2524
|
function tryRefresh() {
|
|
2523
|
-
refreshing ?? (refreshing = baseFetch(
|
|
2525
|
+
refreshing ?? (refreshing = baseFetch(refreshUrl, {
|
|
2524
2526
|
method: "POST",
|
|
2525
2527
|
credentials: "include"
|
|
2526
2528
|
}).then((r) => r.ok).catch(() => false).finally(() => {
|