@isaiahiroko/tilmart-ngx-apps-admin 0.2.14 → 0.2.16

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isaiahiroko-tilmart-ngx-apps-admin-homepage.module-BkQRWlm4.mjs","sources":["../../../projects/admin/src/lib/pages/homepage/homepage.component.ts","../../../projects/admin/src/lib/pages/homepage/homepage.component.html","../../../projects/admin/src/lib/pages/homepage/homepage.module.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { BaseDirective, notify, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, forkJoin, of, takeUntil } from 'rxjs';\n\ninterface ModuleVm {\n id: string;\n page: string;\n type: string;\n title?: string;\n position: number;\n config: Record<string, any>;\n channelIds?: string[];\n segmentIds?: string[];\n startsAt?: string;\n endsAt?: string;\n enabled: boolean;\n}\n\ninterface TypeDef {\n value: string;\n label: string;\n // Config fields this type carries. `ids` = comma-separated id list,\n // `id` = single id, `num` = number, `text` = free text / html.\n fields: { key: string; label: string; kind: 'ids' | 'id' | 'num' | 'text' }[];\n}\n\n// P6.7, PROMO-06 / TRD §9.2 — the homepage composer. A drag-ordered list\n// of `MerchandisingModule` rows for a page, each with a type-aware config\n// editor, schedule and targeting, plus a resolved preview line (ids →\n// names) and a page-shape preview mode. The storefront renderer is P6.8.\nconst TYPES: TypeDef[] = [\n {\n value: 'hero_carousel',\n label: 'Hero carousel',\n fields: [{ key: 'bannerIds', label: 'Banner IDs', kind: 'ids' }],\n },\n {\n value: 'promo_banner',\n label: 'Promo banner',\n fields: [{ key: 'bannerIds', label: 'Banner IDs', kind: 'ids' }],\n },\n {\n value: 'product_rail',\n label: 'Product rail',\n fields: [\n { key: 'categoryId', label: 'From category ID', kind: 'id' },\n { key: 'productIds', label: 'Hand-picked products (in order)', kind: 'ids' },\n { key: 'limit', label: 'Max items', kind: 'num' },\n ],\n },\n {\n value: 'category_grid',\n label: 'Category grid',\n fields: [{ key: 'categoryIds', label: 'Category IDs', kind: 'ids' }],\n },\n {\n value: 'brand_strip',\n label: 'Brand strip',\n fields: [{ key: 'brandIds', label: 'Brand IDs', kind: 'ids' }],\n },\n {\n value: 'flash_sale_rail',\n label: 'Flash sale rail',\n fields: [{ key: 'flashSaleId', label: 'Flash sale ID (blank = all live)', kind: 'id' }],\n },\n {\n value: 'article_rail',\n label: 'Article rail',\n fields: [\n { key: 'articleIds', label: 'Article IDs', kind: 'ids' },\n { key: 'limit', label: 'Max items', kind: 'num' },\n ],\n },\n {\n value: 'rich_text',\n label: 'Rich text',\n fields: [{ key: 'html', label: 'HTML', kind: 'text' }],\n },\n { value: 'newsletter', label: 'Newsletter signup', fields: [] },\n { value: 'trust_bar', label: 'Trust bar', fields: [] },\n];\n\n@Component({\n standalone: false,\n selector: 'x-homepage',\n templateUrl: './homepage.component.html',\n})\nexport class HomepageComponent extends BaseDirective {\n private readonly source = this.apiService.on('apps/commerce/merchandising-module');\n\n readonly types = TYPES;\n\n page = 'home';\n loading = true;\n modules: ModuleVm[] = [];\n previewMode = false;\n\n newType = TYPES[0].value;\n\n editing?: ModuleVm;\n editModel: {\n title: string;\n startsAt: string;\n endsAt: string;\n channelIds: string;\n segmentIds: string;\n config: Record<string, string>;\n } = this.blankEditModel();\n\n private dragIndex: number | null = null;\n\n // ── id pickers (products / categories / brands / banners) ─────────\n pickerQuery: Record<string, string> = {};\n\n lookupFor(key: string): Map<string, string> | undefined {\n switch (key) {\n case 'productIds': return this.productName;\n case 'categoryIds': return this.categoryName;\n case 'brandIds': return this.brandName;\n case 'bannerIds': return this.bannerName;\n default: return undefined;\n }\n }\n\n selectedIds(key: string): string[] {\n return (this.editModel.config[key] ?? '').split(',').map((s) => s.trim()).filter(Boolean);\n }\n\n // Products are searched server-side (the catalogue can exceed one page of\n // lookups); the other lists are small enough to filter from the preloaded maps.\n private productHits: { id: string; name: string }[] = [];\n private pickerTimer?: ReturnType<typeof setTimeout>;\n\n onPickerInput(key: string, value: string): void {\n this.pickerQuery[key] = value;\n if (key !== 'productIds') return;\n clearTimeout(this.pickerTimer);\n const q = value.trim();\n if (!q) {\n this.productHits = [];\n return;\n }\n this.pickerTimer = setTimeout(async () => {\n // SKUs are unique, so an exact SKU resolves to exactly one product and\n // is listed first; the text search covers names, brands and partial SKUs.\n const [bySku, byText] = await Promise.all([\n this.findBySku(q),\n firstValueFrom(\n this.apiService.on('apps/commerce/search').create({ q, page: 1, perPage: 8 }),\n ).catch(() => null) as Promise<any>,\n ]);\n const hits: { id: string; name: string }[] = [...bySku];\n for (const i of byText?.data?.items ?? []) {\n this.productName.set(i.productId, i.name);\n if (!hits.some((h) => h.id === i.productId)) hits.push({ id: i.productId, name: i.name });\n }\n this.productHits = hits;\n }, 250);\n }\n\n private async findBySku(sku: string): Promise<{ id: string; name: string }[]> {\n try {\n const res: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/product-variant')\n .getMany({ sku, page: 1, perPage: 5 } as any),\n );\n return (res?.data ?? [])\n // The list filter may be loose; only an exact SKU counts as a SKU match.\n .filter((v: any) => String(v.sku).toLowerCase() === sku.toLowerCase() && v.productId)\n .map((v: any) => ({\n id: v.productId as string,\n name: `${this.productName.get(v.productId) ?? v.name ?? 'Product'} · SKU ${v.sku}`,\n }));\n } catch {\n return [];\n }\n }\n\n /** Enter in the picker adds the top match (an exact SKU is always on top). */\n addFirstMatch(key: string): void {\n const first = this.pickerMatches(key)[0];\n if (first) this.addId(key, first.id);\n }\n\n pickerMatches(key: string): { id: string; name: string }[] {\n if (key === 'productIds') {\n const taken = new Set(this.selectedIds(key));\n return (this.pickerQuery[key] ?? '').trim()\n ? this.productHits.filter((h) => !taken.has(h.id))\n : [];\n }\n const q = (this.pickerQuery[key] ?? '').trim().toLowerCase();\n const map = this.lookupFor(key);\n if (!q || !map) return [];\n const taken = new Set(this.selectedIds(key));\n return [...map.entries()]\n .filter(([id, name]) => !taken.has(id) && String(name).toLowerCase().includes(q))\n .slice(0, 8)\n .map(([id, name]) => ({ id, name }));\n }\n\n addId(key: string, id: string): void {\n this.editModel.config[key] = [...this.selectedIds(key), id].join(', ');\n this.pickerQuery[key] = '';\n }\n\n removeId(key: string, id: string): void {\n this.editModel.config[key] = this.selectedIds(key).filter((x) => x !== id).join(', ');\n }\n\n // id → name lookups for the preview line.\n private productName = new Map<string, string>();\n private categoryName = new Map<string, string>();\n private brandName = new Map<string, string>();\n private bannerName = new Map<string, string>();\n private flashSaleName = new Map<string, string>();\n\n override init = () => {\n this.loadLookups();\n this.load();\n };\n\n typeLabel(value: string): string {\n return TYPES.find((t) => t.value === value)?.label ?? value;\n }\n\n typeDef(value: string): TypeDef | undefined {\n return TYPES.find((t) => t.value === value);\n }\n\n get orderedModules(): ModuleVm[] {\n return [...this.modules].sort((a, b) => a.position - b.position);\n }\n\n get previewModules(): ModuleVm[] {\n const now = Date.now();\n return this.orderedModules.filter(\n (m) =>\n m.enabled &&\n (!m.startsAt || Date.parse(m.startsAt) <= now) &&\n (!m.endsAt || Date.parse(m.endsAt) >= now),\n );\n }\n\n load(): void {\n this.loading = true;\n this.source\n .getMany({ page: this.page, perPage: 200 } as any)\n .pipe(takeUntil(this.$))\n .subscribe(\n using((res: any) => {\n this.modules = ((res?.data ?? []) as ModuleVm[])\n .filter((m) => m.page === this.page)\n .map((m) => ({ ...m, config: m.config ?? {} }))\n .sort((a, b) => a.position - b.position);\n this.loading = false;\n }),\n );\n }\n\n changePage(page: string): void {\n this.page = page.trim() || 'home';\n this.cancelEdit();\n this.load();\n }\n\n private loadLookups(): void {\n forkJoin({\n products: this.apiService\n .on('apps/commerce/product')\n .getMany({ perPage: 500 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n categories: this.apiService\n .on('apps/commerce/category')\n .getMany({ perPage: 500 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n brands: this.apiService\n .on('apps/commerce/brand')\n .getMany({ perPage: 500 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n banners: this.apiService\n .on('apps/commerce/banner')\n .getMany({ perPage: 500 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n flashSales: this.apiService\n .on('apps/commerce/flash-sale')\n .getMany({ perPage: 500 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n })\n .pipe(takeUntil(this.$))\n .subscribe(\n using((res: any) => {\n for (const p of res?.products?.data ?? []) this.productName.set(p.id, p.name);\n for (const c of res?.categories?.data ?? []) this.categoryName.set(c.id, c.name);\n for (const b of res?.brands?.data ?? []) this.brandName.set(b.id, b.name);\n for (const b of res?.banners?.data ?? [])\n this.bannerName.set(b.id, b.title || b.slot || b.id);\n for (const f of res?.flashSales?.data ?? []) this.flashSaleName.set(f.id, f.name);\n }),\n );\n }\n\n previewLine(m: ModuleVm): string {\n const c: any = m.config ?? {};\n const names = (ids: any, map: Map<string, string>) =>\n (Array.isArray(ids) ? ids : [])\n .map((id: string) => map.get(id) ?? id)\n .filter(Boolean);\n\n switch (m.type) {\n case 'hero_carousel':\n case 'promo_banner': {\n const list = names(c.bannerIds, this.bannerName);\n return list.length ? `${list.length} banner(s): ${list.join(', ')}` : 'No banners set';\n }\n case 'product_rail': {\n if (c.categoryId) {\n const cat = this.categoryName.get(c.categoryId) ?? c.categoryId;\n return `Top ${c.limit || 12} from ${cat}`;\n }\n const list = names(c.productIds, this.productName);\n return list.length ? `${list.length} product(s): ${list.join(', ')}` : 'No products set';\n }\n case 'category_grid': {\n const list = names(c.categoryIds, this.categoryName);\n return list.length ? list.join(', ') : 'No categories set';\n }\n case 'brand_strip': {\n const list = names(c.brandIds, this.brandName);\n return list.length ? list.join(', ') : 'No brands set';\n }\n case 'flash_sale_rail':\n return c.flashSaleId\n ? this.flashSaleName.get(c.flashSaleId) ?? c.flashSaleId\n : 'All live flash sales';\n case 'article_rail': {\n const n = Array.isArray(c.articleIds) ? c.articleIds.length : 0;\n return n ? `${n} article(s)` : `Latest ${c.limit || 6} articles`;\n }\n case 'rich_text':\n return (c.html ? String(c.html).replace(/<[^>]+>/g, ' ').trim().slice(0, 80) : '') || 'Empty';\n default:\n return '—';\n }\n }\n\n scheduleLine(m: ModuleVm): string {\n if (!m.startsAt && !m.endsAt) return '';\n const fmt = (v?: string) => (v ? new Date(v).toLocaleDateString() : '…');\n return `${fmt(m.startsAt)} → ${fmt(m.endsAt)}`;\n }\n\n // ── ordering ──────────────────────────────────────────────────────\n\n onDragStart(index: number): void {\n this.dragIndex = index;\n }\n\n onDragOver(event: DragEvent): void {\n event.preventDefault();\n }\n\n onDrop(targetIndex: number): void {\n if (this.dragIndex === null || this.dragIndex === targetIndex) return;\n const ordered = this.orderedModules;\n const [moved] = ordered.splice(this.dragIndex, 1);\n ordered.splice(targetIndex, 0, moved);\n this.dragIndex = null;\n void this.persistOrder(ordered);\n }\n\n moveUp(index: number): void {\n if (index <= 0) return;\n const ordered = this.orderedModules;\n [ordered[index - 1], ordered[index]] = [ordered[index], ordered[index - 1]];\n void this.persistOrder(ordered);\n }\n\n moveDown(index: number): void {\n const ordered = this.orderedModules;\n if (index >= ordered.length - 1) return;\n [ordered[index + 1], ordered[index]] = [ordered[index], ordered[index + 1]];\n void this.persistOrder(ordered);\n }\n\n private async persistOrder(ordered: ModuleVm[]): Promise<void> {\n const changed: ModuleVm[] = [];\n ordered.forEach((m, i) => {\n if (m.position !== i) {\n m.position = i;\n changed.push(m);\n }\n });\n this.modules = ordered;\n try {\n await Promise.all(\n changed.map((m) =>\n firstValueFrom(this.source.update(m.id, { position: m.position } as any)),\n ),\n );\n } catch {\n notify('Could not save the new order.', undefined, 'error');\n this.load();\n }\n }\n\n // ── add / toggle / delete ─────────────────────────────────────────\n\n async addModule(): Promise<void> {\n try {\n await firstValueFrom(\n this.source.create({\n page: this.page,\n type: this.newType,\n position: this.modules.length,\n config: {},\n enabled: false,\n } as any),\n );\n notify('Module added.', undefined, 'success');\n this.load();\n } catch {\n notify('Could not add the module.', undefined, 'error');\n }\n }\n\n async toggleEnabled(m: ModuleVm): Promise<void> {\n const next = !m.enabled;\n try {\n await firstValueFrom(this.source.update(m.id, { enabled: next } as any));\n m.enabled = next;\n } catch {\n notify('Could not update the module.', undefined, 'error');\n }\n }\n\n async removeModule(m: ModuleVm): Promise<void> {\n try {\n await firstValueFrom(this.source.remove(m.id));\n this.modules = this.modules.filter((x) => x.id !== m.id);\n if (this.editing?.id === m.id) this.cancelEdit();\n notify('Module removed.', undefined, 'success');\n } catch {\n notify('Could not remove the module.', undefined, 'error');\n }\n }\n\n // ── edit ──────────────────────────────────────────────────────────\n\n editModule(m: ModuleVm): void {\n this.editing = m;\n const config: Record<string, string> = {};\n for (const field of this.typeDef(m.type)?.fields ?? []) {\n const value = (m.config ?? {})[field.key];\n config[field.key] = Array.isArray(value) ? value.join(', ') : value != null ? String(value) : '';\n }\n this.editModel = {\n title: m.title ?? '',\n startsAt: this.toLocalInput(m.startsAt),\n endsAt: this.toLocalInput(m.endsAt),\n channelIds: (m.channelIds ?? []).join(', '),\n segmentIds: (m.segmentIds ?? []).join(', '),\n config,\n };\n }\n\n cancelEdit(): void {\n this.editing = undefined;\n this.editModel = this.blankEditModel();\n }\n\n async saveEdit(): Promise<void> {\n if (!this.editing) return;\n const def = this.typeDef(this.editing.type);\n const config: Record<string, any> = { ...(this.editing.config ?? {}) };\n for (const field of def?.fields ?? []) {\n const raw = (this.editModel.config[field.key] ?? '').trim();\n if (field.kind === 'ids') {\n config[field.key] = raw ? raw.split(',').map((s) => s.trim()).filter(Boolean) : [];\n } else if (field.kind === 'num') {\n config[field.key] = raw ? Number(raw) : undefined;\n } else {\n config[field.key] = raw || undefined;\n }\n }\n const csv = (s: string) => s.split(',').map((x) => x.trim()).filter(Boolean);\n const body = {\n title: this.editModel.title.trim() || undefined,\n startsAt: this.editModel.startsAt ? new Date(this.editModel.startsAt).toISOString() : null,\n endsAt: this.editModel.endsAt ? new Date(this.editModel.endsAt).toISOString() : null,\n channelIds: csv(this.editModel.channelIds),\n segmentIds: csv(this.editModel.segmentIds),\n config,\n };\n try {\n await firstValueFrom(this.source.update(this.editing.id, body as any));\n Object.assign(this.editing, {\n title: body.title,\n startsAt: body.startsAt ?? undefined,\n endsAt: body.endsAt ?? undefined,\n channelIds: body.channelIds,\n segmentIds: body.segmentIds,\n config,\n });\n notify('Module saved.', undefined, 'success');\n this.cancelEdit();\n } catch {\n notify('Could not save the module.', undefined, 'error');\n }\n }\n\n private blankEditModel() {\n return {\n title: '',\n startsAt: '',\n endsAt: '',\n channelIds: '',\n segmentIds: '',\n config: {} as Record<string, string>,\n };\n }\n\n private toLocalInput(iso?: string): string {\n if (!iso) return '';\n const d = new Date(iso);\n if (Number.isNaN(d.getTime())) return '';\n const pad = (n: number) => String(n).padStart(2, '0');\n return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}T${pad(d.getHours())}:${pad(d.getMinutes())}`;\n }\n}\n","<div class=\"x-hc-head\">\n <div>\n <div class=\"x-hc-title\">Homepage composer</div>\n <div class=\"x-hc-sub\">Drag to reorder the modules that build a storefront page.</div>\n @if (page === 'home') {\n <div class=\"x-hc-sub\">\n The home hero (“Size my system”) and “Shop by category” always show above these modules.\n A Category grid module replaces the built-in categories; a Product rail titled “New in”\n fills the New in row.\n </div>\n }\n </div>\n <div class=\"x-hc-head-controls\">\n <label class=\"x-hc-page-field\">\n Page\n <input\n type=\"text\"\n [ngModel]=\"page\"\n (ngModelChange)=\"changePage($event)\"\n placeholder=\"home\"\n />\n </label>\n <button\n type=\"button\"\n class=\"x-hc-btn\"\n [class.x-hc-btn-active]=\"previewMode\"\n (click)=\"previewMode = !previewMode\"\n >\n {{ previewMode ? 'Exit preview' : 'Preview' }}\n </button>\n </div>\n</div>\n\n@if (loading) {\n <x-element-loader></x-element-loader>\n} @else {\n @if (!previewMode) {\n <div class=\"x-hc-add\">\n <select [(ngModel)]=\"newType\">\n @for (t of types; track t.value) {\n <option [value]=\"t.value\">{{ t.label }}</option>\n }\n </select>\n <button type=\"button\" class=\"x-hc-btn x-hc-btn-primary\" (click)=\"addModule()\">\n Add module\n </button>\n </div>\n }\n\n @if (!orderedModules.length) {\n <div class=\"x-hc-empty\">No modules on this page yet.</div>\n }\n\n @if (previewMode) {\n <div class=\"x-hc-preview\">\n @for (m of previewModules; track m.id) {\n <div class=\"x-hc-preview-block\">\n <span class=\"x-hc-preview-type\">{{ typeLabel(m.type) }}</span>\n <span class=\"x-hc-preview-title\">{{ m.title || previewLine(m) }}</span>\n </div>\n } @empty {\n <div class=\"x-hc-empty\">Nothing live on this page right now.</div>\n }\n </div>\n } @else {\n <div class=\"x-hc-list\">\n @for (m of orderedModules; track m.id; let i = $index) {\n <div\n class=\"x-hc-item\"\n [class.x-hc-item-off]=\"!m.enabled\"\n draggable=\"true\"\n (dragstart)=\"onDragStart(i)\"\n (dragover)=\"onDragOver($event)\"\n (drop)=\"onDrop(i)\"\n >\n <div class=\"x-hc-item-main\">\n <span class=\"x-hc-grip\" title=\"Drag to reorder\">⠿</span>\n <div class=\"x-hc-order\">\n <button type=\"button\" (click)=\"moveUp(i)\" [disabled]=\"i === 0\">▲</button>\n <button type=\"button\" (click)=\"moveDown(i)\" [disabled]=\"i === orderedModules.length - 1\">▼</button>\n </div>\n <div class=\"x-hc-item-body\">\n <div class=\"x-hc-item-row\">\n <span class=\"x-hc-type\">{{ typeLabel(m.type) }}</span>\n @if (m.title) {\n <span class=\"x-hc-item-title\">{{ m.title }}</span>\n }\n @if (scheduleLine(m)) {\n <span class=\"x-hc-sched\">{{ scheduleLine(m) }}</span>\n }\n </div>\n <div class=\"x-hc-item-preview\">{{ previewLine(m) }}</div>\n </div>\n <div class=\"x-hc-item-actions\">\n <button type=\"button\" class=\"x-hc-toggle\" (click)=\"toggleEnabled(m)\">\n {{ m.enabled ? 'On' : 'Off' }}\n </button>\n <button type=\"button\" class=\"x-hc-link\" (click)=\"editModule(m)\">Edit</button>\n <button type=\"button\" class=\"x-hc-link x-hc-danger\" (click)=\"removeModule(m)\">Delete</button>\n </div>\n </div>\n\n @if (editing?.id === m.id) {\n <div class=\"x-hc-edit\">\n <label class=\"x-hc-f\">\n Title\n <input type=\"text\" [(ngModel)]=\"editModel.title\" />\n </label>\n @for (field of typeDef(m.type)?.fields ?? []; track field.key) {\n <label class=\"x-hc-f\">\n {{ field.label }}\n @if (field.kind === 'ids' && lookupFor(field.key)) {\n <div class=\"x-hc-picked\">\n @for (id of selectedIds(field.key); track id) {\n <span class=\"x-hc-chip\">\n {{ lookupFor(field.key)!.get(id) || id }}\n <button type=\"button\" (click)=\"removeId(field.key, id)\" aria-label=\"Remove\">×</button>\n </span>\n }\n </div>\n <input\n type=\"search\"\n [placeholder]=\"field.key === 'productIds' ? 'Type a SKU or a name to add…' : 'Search by name to add…'\"\n [ngModel]=\"pickerQuery[field.key] || ''\"\n (ngModelChange)=\"onPickerInput(field.key, $event)\"\n (keydown.enter)=\"$event.preventDefault(); addFirstMatch(field.key)\"\n />\n @for (opt of pickerMatches(field.key); track opt.id) {\n <button type=\"button\" class=\"x-hc-opt\" (click)=\"addId(field.key, opt.id)\">\n + {{ opt.name }}\n </button>\n }\n } @else if (field.kind === 'text') {\n <textarea rows=\"3\" [(ngModel)]=\"editModel.config[field.key]\"></textarea>\n } @else {\n <input\n [type]=\"field.kind === 'num' ? 'number' : 'text'\"\n [(ngModel)]=\"editModel.config[field.key]\"\n />\n }\n </label>\n }\n <div class=\"x-hc-f-row\">\n <label class=\"x-hc-f\">\n Starts\n <input type=\"datetime-local\" [(ngModel)]=\"editModel.startsAt\" />\n </label>\n <label class=\"x-hc-f\">\n Ends\n <input type=\"datetime-local\" [(ngModel)]=\"editModel.endsAt\" />\n </label>\n </div>\n <div class=\"x-hc-f-row\">\n <label class=\"x-hc-f\">\n Channel IDs\n <input type=\"text\" [(ngModel)]=\"editModel.channelIds\" placeholder=\"blank = all\" />\n </label>\n <label class=\"x-hc-f\">\n Segment IDs\n <input type=\"text\" [(ngModel)]=\"editModel.segmentIds\" placeholder=\"blank = all\" />\n </label>\n </div>\n <div class=\"x-hc-edit-actions\">\n <button type=\"button\" class=\"x-hc-btn x-hc-btn-primary\" (click)=\"saveEdit()\">Save</button>\n <button type=\"button\" class=\"x-hc-btn\" (click)=\"cancelEdit()\">Cancel</button>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n}\n\n<style>\n .x-hc-picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }\n /* Theme tokens, not hard-coded light greys: a bare <button> otherwise\n takes the browser's own button text colour, which in dark mode is\n near-white on the composer's light card (text only showed when\n highlighted). */\n .x-hc-chip {\n background: var(--color-bg);\n border: 1px solid var(--color-border);\n border-radius: 12px;\n padding: 2px 8px;\n font-size: 12px;\n color: var(--color-text);\n }\n .x-hc-chip button { border: 0; background: none; cursor: pointer; margin-left: 4px; color: var(--color-text-muted); }\n .x-hc-opt {\n display: block;\n width: 100%;\n text-align: left;\n border: 0;\n border-bottom: 1px solid var(--color-border);\n background: none;\n color: var(--color-text);\n padding: 6px 4px;\n font: inherit;\n font-size: 13px;\n cursor: pointer;\n }\n .x-hc-opt:hover,\n .x-hc-opt:focus-visible { background: var(--color-bg); color: var(--color-brand); }\n .x-hc-head {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 16px;\n margin-bottom: 20px;\n flex-wrap: wrap;\n }\n .x-hc-title { font-size: 24px; font-weight: 800; color: var(--color-text); }\n .x-hc-sub { font-size: 13.5px; color: var(--color-text-muted); margin-top: 2px; }\n .x-hc-head-controls { display: flex; gap: 10px; align-items: flex-end; }\n .x-hc-page-field {\n display: flex; flex-direction: column; gap: 4px;\n font-size: 11.5px; color: var(--color-text-muted); font-weight: 700;\n text-transform: uppercase; letter-spacing: 0.4px;\n }\n .x-hc-page-field input, .x-hc-add select, .x-hc-f input, .x-hc-f textarea {\n border: 1px solid var(--color-border);\n border-radius: var(--radius-md);\n padding: 6px 10px;\n font-size: 13px;\n background: var(--color-surface);\n color: var(--color-text);\n }\n .x-hc-add { display: flex; gap: 10px; margin-bottom: 16px; }\n .x-hc-btn {\n border: 1px solid var(--color-border);\n background: transparent;\n border-radius: var(--radius-md);\n padding: 6px 14px;\n font-size: 12.5px;\n font-weight: 700;\n cursor: pointer;\n color: var(--color-text-muted);\n }\n .x-hc-btn-primary { border-color: var(--color-accent); color: var(--color-accent-hover); }\n .x-hc-btn-active { border-color: var(--color-accent); color: var(--color-accent-hover); }\n .x-hc-empty { font-size: 14px; color: var(--color-text-muted); }\n .x-hc-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }\n .x-hc-item {\n background: var(--color-surface);\n border: 1px solid var(--color-border);\n border-radius: var(--radius-lg);\n padding: 12px 14px;\n }\n .x-hc-item-off { opacity: 0.55; }\n .x-hc-item-main { display: flex; align-items: center; gap: 12px; }\n .x-hc-grip { cursor: grab; color: var(--color-text-muted); font-size: 16px; }\n .x-hc-order { display: flex; flex-direction: column; }\n .x-hc-order button {\n border: 0; background: transparent; cursor: pointer;\n color: var(--color-text-muted); font-size: 10px; line-height: 1.1; padding: 1px 3px;\n }\n .x-hc-order button:disabled { opacity: 0.3; cursor: default; }\n .x-hc-item-body { flex: 1; min-width: 0; }\n .x-hc-item-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }\n .x-hc-type {\n font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;\n font-size: 11px; color: var(--color-accent-hover);\n }\n .x-hc-item-title { font-size: 13.5px; font-weight: 600; color: var(--color-text); }\n .x-hc-sched { font-size: 11px; color: var(--color-text-muted); }\n .x-hc-item-preview { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }\n .x-hc-item-actions { display: flex; gap: 8px; align-items: center; }\n .x-hc-toggle {\n border: 1px solid var(--color-border); border-radius: var(--radius-sm);\n background: transparent; padding: 3px 10px; font-size: 11.5px; font-weight: 700;\n cursor: pointer; color: var(--color-text-muted);\n }\n .x-hc-link {\n border: 0; background: transparent; cursor: pointer;\n font-size: 12px; font-weight: 700; color: var(--color-accent-hover);\n }\n .x-hc-danger { color: var(--color-danger, #c0362c); }\n .x-hc-edit {\n margin-top: 12px; padding-top: 12px;\n border-top: 1px solid var(--color-border);\n display: flex; flex-direction: column; gap: 10px;\n }\n .x-hc-f {\n display: flex; flex-direction: column; gap: 4px; flex: 1;\n font-size: 11.5px; color: var(--color-text-muted); font-weight: 700;\n }\n .x-hc-f-row { display: flex; gap: 10px; }\n .x-hc-edit-actions { display: flex; gap: 8px; }\n .x-hc-preview { display: flex; flex-direction: column; gap: 6px; max-width: 860px; }\n .x-hc-preview-block {\n border: 1px dashed var(--color-border-strong);\n border-radius: var(--radius-md);\n padding: 18px 16px;\n display: flex; flex-direction: column; gap: 4px;\n background: var(--color-surface);\n }\n .x-hc-preview-type {\n font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;\n color: var(--color-accent-hover);\n }\n .x-hc-preview-title { font-size: 14px; color: var(--color-text); }\n</style>\n","import { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { SharedModule } from '@thescaffold/ngx-core';\nimport { ElementsModule } from '@thescaffold/ngx-ui';\nimport { HomepageComponent } from './homepage.component';\n\n@NgModule({\n declarations: [HomepageComponent],\n imports: [\n SharedModule,\n ElementsModule,\n RouterModule.forChild([{ path: '', component: HomepageComponent }]),\n ],\n})\nexport class HomepageModule {}\n"],"names":["i1"],"mappings":";;;;;;;;;;AA0BA;AACA;AACA;AACA;AACA,MAAM,KAAK,GAAc;AACvB,IAAA;AACE,QAAA,KAAK,EAAE,eAAe;AACtB,QAAA,KAAK,EAAE,eAAe;AACtB,QAAA,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACjE,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,cAAc;AACrB,QAAA,KAAK,EAAE,cAAc;AACrB,QAAA,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,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A,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YALvB,YAAY;YACZ,cAAc;AACd,YAAA,YAAY,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAG1D,cAAc,EAAA,UAAA,EAAA,CAAA;kBAR1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,cAAc;AACd,wBAAA,YAAY,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC,CAAC;AACpE,qBAAA;AACF,iBAAA;;;;;"}
@@ -0,0 +1,200 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Output, Input, Component, NgModule } from '@angular/core';
3
+ import '@thescaffold/editor-core/define';
4
+ import { SchemaAddon, CommandsAddon, HistoryAddon, KeymapAddon, InputRulesAddon, HeadingsAddon, BoldAddon, ItalicAddon, UnderlineAddon, StrikethroughAddon, BulletListAddon, OrderedListAddon, BlockquoteAddon, LinkAddon, DividerAddon, ClearFormattingAddon, PlaceholderAddon, ToolbarAddon } from '@thescaffold/editor-addons';
5
+
6
+ // Toolbar icons for <x-rich-editor>. `@thescaffold/editor-core` ships an
7
+ // empty icon registry, so without these every toolbar button showed its
8
+ // raw icon name ("bold", "bullet-list", …) as overlapping text.
9
+ // 24×24 stroke icons in the Lucide style; `currentColor` follows the
10
+ // editor's light/dark toolbar colour.
11
+ const svg = (body) => `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${body}</svg>`;
12
+ const text = (label) => `<svg xmlns="http://www.w3.org/2000/svg" width="22" height="18" viewBox="0 0 26 20" aria-hidden="true"><text x="13" y="15" text-anchor="middle" font-family="system-ui, sans-serif" font-size="13" font-weight="700" fill="currentColor">${label}</text></svg>`;
13
+ const RICH_EDITOR_ICONS = {
14
+ undo: svg('<path d="M9 14 4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H11"/>'),
15
+ redo: svg('<path d="m15 14 5-5-5-5"/><path d="M20 9H9.5a5.5 5.5 0 0 0 0 11H13"/>'),
16
+ paragraph: text('Aa'),
17
+ h2: text('H2'),
18
+ h3: text('H3'),
19
+ h4: text('H4'),
20
+ bold: svg('<path d="M6 12h9a4 4 0 0 1 0 8H6V4h8a4 4 0 0 1 0 8"/>'),
21
+ italic: svg('<line x1="19" x2="10" y1="4" y2="4"/><line x1="14" x2="5" y1="20" y2="20"/><line x1="15" x2="9" y1="4" y2="20"/>'),
22
+ underline: svg('<path d="M6 4v6a6 6 0 0 0 12 0V4"/><line x1="4" x2="20" y1="20" y2="20"/>'),
23
+ strikethrough: svg('<path d="M16 4H9a3 3 0 0 0-2.83 4"/><path d="M14 12a4 4 0 0 1 0 8H6"/><line x1="4" x2="20" y1="12" y2="12"/>'),
24
+ 'bullet-list': svg('<line x1="8" x2="21" y1="6" y2="6"/><line x1="8" x2="21" y1="12" y2="12"/><line x1="8" x2="21" y1="18" y2="18"/><circle cx="3.5" cy="6" r="1"/><circle cx="3.5" cy="12" r="1"/><circle cx="3.5" cy="18" r="1"/>'),
25
+ 'ordered-list': svg('<line x1="10" x2="21" y1="6" y2="6"/><line x1="10" x2="21" y1="12" y2="12"/><line x1="10" x2="21" y1="18" y2="18"/><path d="M4 6h1v4"/><path d="M4 10h2"/><path d="M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"/>'),
26
+ blockquote: svg('<path d="M3 21c3 0 7-1 7-8V5c0-1.25-.76-2-2-2H4c-1.25 0-2 .75-2 1.97V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .01-1 1.03V20c0 1 0 1 1 1z"/><path d="M15 21c3 0 7-1 7-8V5c0-1.25-.76-2-2-2h-4c-1.25 0-2 .75-2 1.97V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z"/>'),
27
+ link: svg('<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>'),
28
+ divider: svg('<line x1="3" x2="21" y1="12" y2="12"/><path d="M8 7h8"/><path d="M8 17h8"/>'),
29
+ 'clear-formatting': svg('<path d="M4 7V4h16v3"/><path d="M5 20h6"/><path d="M13 4 8 20"/><path d="m15 15 5 5"/><path d="m20 15-5 5"/>'),
30
+ };
31
+
32
+ // Registers the toolbar icons plus a "Normal text" button (the headings
33
+ // addon's own `paragraph` command has no icon, so it can't sit in the
34
+ // toolbar). Listed first so the icons exist before the toolbar renders.
35
+ const TilmartEditorUiAddon = {
36
+ id: 'tilmart/editor-ui',
37
+ impl: {
38
+ id: 'tilmart/editor-ui',
39
+ init(ctx) {
40
+ for (const [name, icon] of Object.entries(RICH_EDITOR_ICONS))
41
+ ctx.icons.register(name, icon);
42
+ ctx.commands.register({
43
+ id: 'normalText',
44
+ label: 'Normal text',
45
+ icon: 'paragraph',
46
+ isEnabled: () => true,
47
+ isActive: () => false,
48
+ execute: () => ctx.execCommand('paragraph'),
49
+ });
50
+ return {};
51
+ },
52
+ },
53
+ };
54
+ const TOOLBAR_GROUPS = [
55
+ { label: 'History', commands: ['undo', 'redo'] },
56
+ { label: 'Text style', commands: ['normalText', 'heading2', 'heading3', 'heading4'] },
57
+ { label: 'Format', commands: ['bold', 'italic', 'underline', 'strikethrough'] },
58
+ { label: 'Blocks', commands: ['bulletList', 'orderedList', 'blockquote'] },
59
+ { label: 'Insert', commands: ['insertLink', 'insertDivider', 'clearFormatting'] },
60
+ ];
61
+ // The editing toolset for CMS pages and Learn articles: headings, the usual
62
+ // inline marks, lists, quotes, links and dividers, with undo/redo and
63
+ // markdown-style shortcuts ("## " → heading, "- " → list).
64
+ function editorAddons() {
65
+ return [
66
+ TilmartEditorUiAddon,
67
+ SchemaAddon(),
68
+ CommandsAddon(),
69
+ HistoryAddon(),
70
+ KeymapAddon(),
71
+ InputRulesAddon(),
72
+ HeadingsAddon(),
73
+ BoldAddon(),
74
+ ItalicAddon(),
75
+ UnderlineAddon(),
76
+ StrikethroughAddon(),
77
+ BulletListAddon(),
78
+ OrderedListAddon(),
79
+ BlockquoteAddon(),
80
+ LinkAddon(),
81
+ DividerAddon(),
82
+ ClearFormattingAddon(),
83
+ PlaceholderAddon({ text: 'Start writing…' }),
84
+ ToolbarAddon({ position: 'sticky', overflow: 'scroll', showTooltips: true, groups: TOOLBAR_GROUPS }),
85
+ ];
86
+ }
87
+ // The admin's light/dark choice lives on <body data-bs-theme> (ngx-common's
88
+ // x-theme). The editor's own "auto" follows the *operating system* instead,
89
+ // which painted a dark-navy, empty-looking box on a light admin page.
90
+ function adminTheme() {
91
+ return document.body?.getAttribute('data-bs-theme') === 'dark' ? 'dark' : 'light';
92
+ }
93
+
94
+ // P6.10 — a thin Angular host for `@thescaffold/editor-core`'s
95
+ // `<x-editor>` custom element. `@thescaffold/editor-angular` ships
96
+ // source-only (no build) so it can't be consumed as a package; this is
97
+ // the same handful of lines its `EditorComponent` uses. `content` is
98
+ // HTML in, HTML out via `contentChange`.
99
+ //
100
+ // Client review 25 Nov 2026: the editor was started with no addons — no
101
+ // document schema, no toolbar — so it rendered as a blank box that could
102
+ // not be typed into and did not show an article's saved body.
103
+ class RichEditorComponent {
104
+ constructor(host, zone) {
105
+ this.host = host;
106
+ this.zone = zone;
107
+ this.content = '';
108
+ this.contentChange = new EventEmitter();
109
+ this.el = null;
110
+ this.ctx = null;
111
+ this.themeObserver = null;
112
+ // The HTML the editor last emitted — when the parent feeds it straight
113
+ // back through `[content]`, re-setting it would reset the cursor.
114
+ this.lastEmitted = null;
115
+ }
116
+ ngAfterViewInit() {
117
+ this.zone.runOutsideAngular(() => {
118
+ const editor = document.createElement('x-editor');
119
+ editor.style.height = '100%';
120
+ this.host.nativeElement.appendChild(editor);
121
+ this.el = editor;
122
+ editor.addEventListener('xe:ready', (event) => {
123
+ this.ctx = event.detail?.editor ?? null;
124
+ if (this.content)
125
+ this.ctx?.setContent(this.content, 'html');
126
+ });
127
+ editor.addEventListener('xe:change', (event) => {
128
+ // The event's `content` is the document as *plain text*; the CMS
129
+ // stores HTML, so read HTML back from the editor (otherwise saving
130
+ // stripped every heading, list and bold).
131
+ const next = this.ctx?.getContent('html') ??
132
+ event.detail?.content ??
133
+ '';
134
+ this.lastEmitted = next;
135
+ this.zone.run(() => this.contentChange.emit(next));
136
+ });
137
+ // No `content` here: the element parses a string as Markdown. The HTML
138
+ // is loaded on `xe:ready` above.
139
+ editor.config = {
140
+ mode: 'doc',
141
+ editable: true,
142
+ theme: adminTheme(),
143
+ addons: editorAddons(),
144
+ };
145
+ // Follow the admin's theme toggle while the editor is open.
146
+ this.themeObserver = new MutationObserver(() => {
147
+ if (this.el)
148
+ this.el.dataset['theme'] = adminTheme();
149
+ });
150
+ this.themeObserver.observe(document.body, {
151
+ attributes: true,
152
+ attributeFilter: ['data-bs-theme'],
153
+ });
154
+ });
155
+ }
156
+ ngOnChanges(changes) {
157
+ if (changes['content'] && !changes['content'].firstChange && this.ctx) {
158
+ const next = this.content ?? '';
159
+ if (next === this.lastEmitted)
160
+ return;
161
+ this.lastEmitted = null;
162
+ this.ctx.setContent(next, 'html');
163
+ }
164
+ }
165
+ ngOnDestroy() {
166
+ this.themeObserver?.disconnect();
167
+ this.themeObserver = null;
168
+ this.el?.remove();
169
+ this.el = null;
170
+ this.ctx = null;
171
+ }
172
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: RichEditorComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
173
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.16", type: RichEditorComponent, isStandalone: false, selector: "x-rich-editor", inputs: { content: "content" }, outputs: { contentChange: "contentChange" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:block;min-height:160px}\n"] }); }
174
+ }
175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: RichEditorComponent, decorators: [{
176
+ type: Component,
177
+ args: [{ standalone: false, selector: 'x-rich-editor', template: '', styles: [":host{display:block;min-height:160px}\n"] }]
178
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { content: [{
179
+ type: Input
180
+ }], contentChange: [{
181
+ type: Output
182
+ }] } });
183
+
184
+ // P6.10 — shared WYSIWYG host, used by the CMS page builder (`content`)
185
+ // and the Learn-hub article editor (`articles`).
186
+ class RichEditorModule {
187
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: RichEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
188
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.16", ngImport: i0, type: RichEditorModule, declarations: [RichEditorComponent], exports: [RichEditorComponent] }); }
189
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: RichEditorModule }); }
190
+ }
191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: RichEditorModule, decorators: [{
192
+ type: NgModule,
193
+ args: [{
194
+ declarations: [RichEditorComponent],
195
+ exports: [RichEditorComponent],
196
+ }]
197
+ }] });
198
+
199
+ export { RichEditorComponent as R, RichEditorModule as a };
200
+ //# sourceMappingURL=isaiahiroko-tilmart-ngx-apps-admin-rich-editor.module-BTQViB-Z.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isaiahiroko-tilmart-ngx-apps-admin-rich-editor.module-BTQViB-Z.mjs","sources":["../../../projects/admin/src/lib/pages/_shared/rich-editor/rich-editor.icons.ts","../../../projects/admin/src/lib/pages/_shared/rich-editor/rich-editor.config.ts","../../../projects/admin/src/lib/pages/_shared/rich-editor/rich-editor.component.ts","../../../projects/admin/src/lib/pages/_shared/rich-editor/rich-editor.module.ts"],"sourcesContent":["// Toolbar icons for <x-rich-editor>. `@thescaffold/editor-core` ships an\n// empty icon registry, so without these every toolbar button showed its\n// raw icon name (\"bold\", \"bullet-list\", …) as overlapping text.\n// 24×24 stroke icons in the Lucide style; `currentColor` follows the\n// editor's light/dark toolbar colour.\n\nconst svg = (body: string) =>\n `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">${body}</svg>`;\n\nconst text = (label: string) =>\n `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"22\" height=\"18\" viewBox=\"0 0 26 20\" aria-hidden=\"true\"><text x=\"13\" y=\"15\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"13\" font-weight=\"700\" fill=\"currentColor\">${label}</text></svg>`;\n\nexport const RICH_EDITOR_ICONS: Record<string, string> = {\n undo: svg('<path d=\"M9 14 4 9l5-5\"/><path d=\"M4 9h10.5a5.5 5.5 0 0 1 0 11H11\"/>'),\n redo: svg('<path d=\"m15 14 5-5-5-5\"/><path d=\"M20 9H9.5a5.5 5.5 0 0 0 0 11H13\"/>'),\n paragraph: text('Aa'),\n h2: text('H2'),\n h3: text('H3'),\n h4: text('H4'),\n bold: svg('<path d=\"M6 12h9a4 4 0 0 1 0 8H6V4h8a4 4 0 0 1 0 8\"/>'),\n italic: svg('<line x1=\"19\" x2=\"10\" y1=\"4\" y2=\"4\"/><line x1=\"14\" x2=\"5\" y1=\"20\" y2=\"20\"/><line x1=\"15\" x2=\"9\" y1=\"4\" y2=\"20\"/>'),\n underline: svg('<path d=\"M6 4v6a6 6 0 0 0 12 0V4\"/><line x1=\"4\" x2=\"20\" y1=\"20\" y2=\"20\"/>'),\n strikethrough: svg('<path d=\"M16 4H9a3 3 0 0 0-2.83 4\"/><path d=\"M14 12a4 4 0 0 1 0 8H6\"/><line x1=\"4\" x2=\"20\" y1=\"12\" y2=\"12\"/>'),\n 'bullet-list': svg('<line x1=\"8\" x2=\"21\" y1=\"6\" y2=\"6\"/><line x1=\"8\" x2=\"21\" y1=\"12\" y2=\"12\"/><line x1=\"8\" x2=\"21\" y1=\"18\" y2=\"18\"/><circle cx=\"3.5\" cy=\"6\" r=\"1\"/><circle cx=\"3.5\" cy=\"12\" r=\"1\"/><circle cx=\"3.5\" cy=\"18\" r=\"1\"/>'),\n 'ordered-list': svg('<line x1=\"10\" x2=\"21\" y1=\"6\" y2=\"6\"/><line x1=\"10\" x2=\"21\" y1=\"12\" y2=\"12\"/><line x1=\"10\" x2=\"21\" y1=\"18\" y2=\"18\"/><path d=\"M4 6h1v4\"/><path d=\"M4 10h2\"/><path d=\"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1\"/>'),\n blockquote: svg('<path d=\"M3 21c3 0 7-1 7-8V5c0-1.25-.76-2-2-2H4c-1.25 0-2 .75-2 1.97V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .01-1 1.03V20c0 1 0 1 1 1z\"/><path d=\"M15 21c3 0 7-1 7-8V5c0-1.25-.76-2-2-2h-4c-1.25 0-2 .75-2 1.97V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z\"/>'),\n link: svg('<path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"/><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"/>'),\n divider: svg('<line x1=\"3\" x2=\"21\" y1=\"12\" y2=\"12\"/><path d=\"M8 7h8\"/><path d=\"M8 17h8\"/>'),\n 'clear-formatting': svg('<path d=\"M4 7V4h16v3\"/><path d=\"M5 20h6\"/><path d=\"M13 4 8 20\"/><path d=\"m15 15 5 5\"/><path d=\"m20 15-5 5\"/>'),\n};\n","import {\n BlockquoteAddon,\n BoldAddon,\n BulletListAddon,\n ClearFormattingAddon,\n CommandsAddon,\n DividerAddon,\n HeadingsAddon,\n HistoryAddon,\n InputRulesAddon,\n ItalicAddon,\n KeymapAddon,\n LinkAddon,\n OrderedListAddon,\n PlaceholderAddon,\n SchemaAddon,\n StrikethroughAddon,\n ToolbarAddon,\n UnderlineAddon,\n} from '@thescaffold/editor-addons';\nimport { RICH_EDITOR_ICONS } from './rich-editor.icons';\n\n// Registers the toolbar icons plus a \"Normal text\" button (the headings\n// addon's own `paragraph` command has no icon, so it can't sit in the\n// toolbar). Listed first so the icons exist before the toolbar renders.\nconst TilmartEditorUiAddon = {\n id: 'tilmart/editor-ui',\n impl: {\n id: 'tilmart/editor-ui',\n init(ctx: any) {\n for (const [name, icon] of Object.entries(RICH_EDITOR_ICONS)) ctx.icons.register(name, icon);\n ctx.commands.register({\n id: 'normalText',\n label: 'Normal text',\n icon: 'paragraph',\n isEnabled: () => true,\n isActive: () => false,\n execute: () => ctx.execCommand('paragraph'),\n });\n return {};\n },\n },\n};\n\nconst TOOLBAR_GROUPS = [\n { label: 'History', commands: ['undo', 'redo'] },\n { label: 'Text style', commands: ['normalText', 'heading2', 'heading3', 'heading4'] },\n { label: 'Format', commands: ['bold', 'italic', 'underline', 'strikethrough'] },\n { label: 'Blocks', commands: ['bulletList', 'orderedList', 'blockquote'] },\n { label: 'Insert', commands: ['insertLink', 'insertDivider', 'clearFormatting'] },\n];\n\n// The editing toolset for CMS pages and Learn articles: headings, the usual\n// inline marks, lists, quotes, links and dividers, with undo/redo and\n// markdown-style shortcuts (\"## \" → heading, \"- \" → list).\nexport function editorAddons() {\n return [\n TilmartEditorUiAddon,\n SchemaAddon(),\n CommandsAddon(),\n HistoryAddon(),\n KeymapAddon(),\n InputRulesAddon(),\n HeadingsAddon(),\n BoldAddon(),\n ItalicAddon(),\n UnderlineAddon(),\n StrikethroughAddon(),\n BulletListAddon(),\n OrderedListAddon(),\n BlockquoteAddon(),\n LinkAddon(),\n DividerAddon(),\n ClearFormattingAddon(),\n PlaceholderAddon({ text: 'Start writing…' }),\n ToolbarAddon({ position: 'sticky', overflow: 'scroll', showTooltips: true, groups: TOOLBAR_GROUPS }),\n ];\n}\n\n// The admin's light/dark choice lives on <body data-bs-theme> (ngx-common's\n// x-theme). The editor's own \"auto\" follows the *operating system* instead,\n// which painted a dark-navy, empty-looking box on a light admin page.\nexport function adminTheme(): 'light' | 'dark' {\n return document.body?.getAttribute('data-bs-theme') === 'dark' ? 'dark' : 'light';\n}\n","import '@thescaffold/editor-core/define';\n\nimport {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n Output,\n SimpleChanges,\n} from '@angular/core';\nimport { adminTheme, editorAddons } from './rich-editor.config';\n\n// P6.10 — a thin Angular host for `@thescaffold/editor-core`'s\n// `<x-editor>` custom element. `@thescaffold/editor-angular` ships\n// source-only (no build) so it can't be consumed as a package; this is\n// the same handful of lines its `EditorComponent` uses. `content` is\n// HTML in, HTML out via `contentChange`.\n//\n// Client review 25 Nov 2026: the editor was started with no addons — no\n// document schema, no toolbar — so it rendered as a blank box that could\n// not be typed into and did not show an article's saved body.\n@Component({\n standalone: false,\n selector: 'x-rich-editor',\n template: '',\n styles: [':host { display: block; min-height: 160px; }'],\n})\nexport class RichEditorComponent implements AfterViewInit, OnChanges, OnDestroy {\n @Input() content = '';\n @Output() contentChange = new EventEmitter<string>();\n\n private el: (HTMLElement & { config?: Record<string, unknown>; theme?: string }) | null = null;\n private ctx: {\n setContent(c: string, format?: string): void;\n getContent(format: string): string;\n } | null = null;\n private themeObserver: MutationObserver | null = null;\n // The HTML the editor last emitted — when the parent feeds it straight\n // back through `[content]`, re-setting it would reset the cursor.\n private lastEmitted: string | null = null;\n\n constructor(\n private readonly host: ElementRef<HTMLElement>,\n private readonly zone: NgZone,\n ) {}\n\n ngAfterViewInit(): void {\n this.zone.runOutsideAngular(() => {\n const editor = document.createElement('x-editor') as HTMLElement & {\n config?: Record<string, unknown>;\n theme?: string;\n };\n editor.style.height = '100%';\n this.host.nativeElement.appendChild(editor);\n this.el = editor;\n\n editor.addEventListener('xe:ready', (event: Event) => {\n this.ctx = (event as CustomEvent<{ editor: any }>).detail?.editor ?? null;\n if (this.content) this.ctx?.setContent(this.content, 'html');\n });\n editor.addEventListener('xe:change', (event: Event) => {\n // The event's `content` is the document as *plain text*; the CMS\n // stores HTML, so read HTML back from the editor (otherwise saving\n // stripped every heading, list and bold).\n const next =\n this.ctx?.getContent('html') ??\n (event as CustomEvent<{ content: string }>).detail?.content ??\n '';\n this.lastEmitted = next;\n this.zone.run(() => this.contentChange.emit(next));\n });\n\n // No `content` here: the element parses a string as Markdown. The HTML\n // is loaded on `xe:ready` above.\n editor.config = {\n mode: 'doc',\n editable: true,\n theme: adminTheme(),\n addons: editorAddons(),\n };\n\n // Follow the admin's theme toggle while the editor is open.\n this.themeObserver = new MutationObserver(() => {\n if (this.el) this.el.dataset['theme'] = adminTheme();\n });\n this.themeObserver.observe(document.body, {\n attributes: true,\n attributeFilter: ['data-bs-theme'],\n });\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['content'] && !changes['content'].firstChange && this.ctx) {\n const next = this.content ?? '';\n if (next === this.lastEmitted) return;\n this.lastEmitted = null;\n this.ctx.setContent(next, 'html');\n }\n }\n\n ngOnDestroy(): void {\n this.themeObserver?.disconnect();\n this.themeObserver = null;\n this.el?.remove();\n this.el = null;\n this.ctx = null;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { RichEditorComponent } from './rich-editor.component';\n\n// P6.10 — shared WYSIWYG host, used by the CMS page builder (`content`)\n// and the Learn-hub article editor (`articles`).\n@NgModule({\n declarations: [RichEditorComponent],\n exports: [RichEditorComponent],\n})\nexport class RichEditorModule {}\n"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AAEA,MAAM,GAAG,GAAG,CAAC,IAAY,KACvB,CAAA,wMAAA,EAA2M,IAAI,CAAA,MAAA,CAAQ;AAEzN,MAAM,IAAI,GAAG,CAAC,KAAa,KACzB,CAAA,wOAAA,EAA2O,KAAK,CAAA,aAAA,CAAe;AAE1P,MAAM,iBAAiB,GAA2B;AACvD,IAAA,IAAI,EAAE,GAAG,CAAC,sEAAsE,CAAC;AACjF,IAAA,IAAI,EAAE,GAAG,CAAC,uEAAuE,CAAC;AAClF,IAAA,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC;AACrB,IAAA,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;AACd,IAAA,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;AACd,IAAA,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;AACd,IAAA,IAAI,EAAE,GAAG,CAAC,uDAAuD,CAAC;AAClE,IAAA,MAAM,EAAE,GAAG,CAAC,kHAAkH,CAAC;AAC/H,IAAA,SAAS,EAAE,GAAG,CAAC,2EAA2E,CAAC;AAC3F,IAAA,aAAa,EAAE,GAAG,CAAC,8GAA8G,CAAC;AAClI,IAAA,aAAa,EAAE,GAAG,CAAC,iNAAiN,CAAC;AACrO,IAAA,cAAc,EAAE,GAAG,CAAC,sMAAsM,CAAC;AAC3N,IAAA,UAAU,EAAE,GAAG,CAAC,sRAAsR,CAAC;AACvS,IAAA,IAAI,EAAE,GAAG,CAAC,iJAAiJ,CAAC;AAC5J,IAAA,OAAO,EAAE,GAAG,CAAC,6E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EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,4KAHpB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,yCAAA,CAAA,EAAA,CAAA,CAAA;;4FAGD,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;iCACI,KAAK,EAAA,QAAA,EACP,eAAe,EAAA,QAAA,EACf,EAAE,EAAA,MAAA,EAAA,CAAA,yCAAA,CAAA,EAAA;;sBAIX;;sBACA;;;AC9BH;AACA;MAKa,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAhB,gBAAgB,EAAA,YAAA,EAAA,CAHZ,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACxB,mBAAmB,CAAA,EAAA,CAAA,CAAA;gHAElB,gBAAgB,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC/B,iBAAA;;;;;"}
@@ -185,7 +185,7 @@ class PagesModule {
185
185
  {
186
186
  // P6.7 — PROMO-06 homepage composer.
187
187
  path: 'homepage',
188
- loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-homepage.module-BHgvPIY1.mjs').then((m) => m.HomepageModule),
188
+ loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-homepage.module-BkQRWlm4.mjs').then((m) => m.HomepageModule),
189
189
  },
190
190
  {
191
191
  path: 'banners',
@@ -198,12 +198,12 @@ class PagesModule {
198
198
  {
199
199
  // P6.10 — CMS-01 page builder.
200
200
  path: 'content',
201
- loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-content.module-Bx6Zj0WX.mjs').then((m) => m.ContentModule),
201
+ loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-content.module-G8Vf6ect.mjs').then((m) => m.ContentModule),
202
202
  },
203
203
  {
204
204
  // P6.11 — CMS-02 Learn-hub article editor.
205
205
  path: 'articles',
206
- loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-articles.module-Cpx9BZcg.mjs').then((m) => m.ArticlesModule),
206
+ loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-articles.module-BoUSE4QS.mjs').then((m) => m.ArticlesModule),
207
207
  },
208
208
  {
209
209
  // P6.12 — CMS-03 navigation menu editor.
@@ -405,7 +405,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
405
405
  {
406
406
  // P6.7 — PROMO-06 homepage composer.
407
407
  path: 'homepage',
408
- loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-homepage.module-BHgvPIY1.mjs').then((m) => m.HomepageModule),
408
+ loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-homepage.module-BkQRWlm4.mjs').then((m) => m.HomepageModule),
409
409
  },
410
410
  {
411
411
  path: 'banners',
@@ -418,12 +418,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
418
418
  {
419
419
  // P6.10 — CMS-01 page builder.
420
420
  path: 'content',
421
- loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-content.module-Bx6Zj0WX.mjs').then((m) => m.ContentModule),
421
+ loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-content.module-G8Vf6ect.mjs').then((m) => m.ContentModule),
422
422
  },
423
423
  {
424
424
  // P6.11 — CMS-02 Learn-hub article editor.
425
425
  path: 'articles',
426
- loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-articles.module-Cpx9BZcg.mjs').then((m) => m.ArticlesModule),
426
+ loadChildren: () => import('./isaiahiroko-tilmart-ngx-apps-admin-articles.module-BoUSE4QS.mjs').then((m) => m.ArticlesModule),
427
427
  },
428
428
  {
429
429
  // P6.12 — CMS-03 navigation menu editor.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isaiahiroko/tilmart-ngx-apps-admin",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^21.1.3",
6
6
  "@angular/common": "^21.1.3",