| 2022 | } |
| 2023 | |
| 2024 | private renderEmptyState(): void { |
| 2025 | // Use correct document for pop-out window support |
| 2026 | const doc = this.containerEl.ownerDocument; |
| 2027 | const emptyEl = doc.createElement("div"); |
| 2028 | emptyEl.className = "tn-bases-empty"; |
| 2029 | emptyEl.classList.remove( |
| 2030 | "tn-static-color-var-color-accent-d2cad743", |
| 2031 | "tn-static-color-var-text-accent-65b47ee3", |
| 2032 | "tn-static-color-var-text-muted-5872de20", |
| 2033 | "tn-static-color-var-text-on-accent-f3e1679d", |
| 2034 | "tn-static-color-var-text-warning-783d5f03", |
| 2035 | "tn-static-color-var-tn-text-muted-a90fb6f3", |
| 2036 | "tn-static-color-white-0a43e56a", |
| 2037 | "tn-static-cursor-pointer-2723efcc", |
| 2038 | "tn-static-font-size-12px-65574819", |
| 2039 | "tn-static-font-weight-bold-0fe8c30d", |
| 2040 | "tn-static-font-weight-bold-e0b452bd", |
| 2041 | "tn-static-margin-2px-0-edce9b14", |
| 2042 | "tn-static-margin-8px-0-0-0-a2eb8382", |
| 2043 | "tn-static-padding-0-16px-16px-16px-f1aa998c", |
| 2044 | "tn-static-padding-0-41d7d7e2", |
| 2045 | "tn-static-padding-12px-43bef435", |
| 2046 | "tn-static-padding-16px-287f770e", |
| 2047 | "tn-static-padding-20px-769fed37", |
| 2048 | "tn-static-padding-20px-ebe8e48c", |
| 2049 | "tn-static-padding-2px-8px-c8eea84a", |
| 2050 | "tn-static-padding-2rem-42aa6d9c", |
| 2051 | "tn-static-text-align-center-91a87015" |
| 2052 | ); |
| 2053 | emptyEl.classList.add("tn-static-padding-20px-7a035d95"); |
| 2054 | emptyEl.textContent = "No tasknotes tasks found for this base."; |
| 2055 | this.itemsContainer!.appendChild(emptyEl); |
| 2056 | } |
| 2057 | |
| 2058 | renderError(error: Error): void { |
| 2059 | // Use correct document for pop-out window support |