@xsmusices/ui 2.0.21 → 2.0.23
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/fesm2022/xsmusices-ui.mjs +15 -14
- package/fesm2022/xsmusices-ui.mjs.map +1 -1
- package/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4340,10 +4340,8 @@ class XSImageComponent {
|
|
|
4340
4340
|
(config.typeItem === 'user'
|
|
4341
4341
|
? 'Usuario'
|
|
4342
4342
|
: config.typeItem) ||
|
|
4343
|
-
'
|
|
4344
|
-
|
|
4345
|
-
return this.avatarService.generateAvatar(fallbackName);
|
|
4346
|
-
}
|
|
4343
|
+
'Usuario';
|
|
4344
|
+
return this.avatarService.generateAvatar(fallbackName);
|
|
4347
4345
|
}
|
|
4348
4346
|
return config.fallbackSrc || this.defaultImagePath;
|
|
4349
4347
|
}
|
|
@@ -4478,9 +4476,10 @@ class XSImageComponent {
|
|
|
4478
4476
|
if (!name && t) {
|
|
4479
4477
|
name = t;
|
|
4480
4478
|
}
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4479
|
+
if (!name) {
|
|
4480
|
+
name = 'Usuario';
|
|
4481
|
+
}
|
|
4482
|
+
this.processedSrc.set(this.avatarService.generateAvatar(name));
|
|
4484
4483
|
}
|
|
4485
4484
|
this.onError.emit({
|
|
4486
4485
|
event,
|
|
@@ -14360,7 +14359,7 @@ class XSChatListComponent {
|
|
|
14360
14359
|
if (uid &&
|
|
14361
14360
|
(chat.sender._id === uid || chat.receiver._id === uid))
|
|
14362
14361
|
return 'user';
|
|
14363
|
-
return chat.type;
|
|
14362
|
+
return chat.type || 'user';
|
|
14364
14363
|
}
|
|
14365
14364
|
userId = input('', ...(ngDevMode ? [{ debugName: "userId" }] : []));
|
|
14366
14365
|
searchPlaceholder = input('', ...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : []));
|
|
@@ -14423,6 +14422,7 @@ class XSChatListComponent {
|
|
|
14423
14422
|
}
|
|
14424
14423
|
}
|
|
14425
14424
|
selectChat = output();
|
|
14425
|
+
rightClick = output();
|
|
14426
14426
|
clickDropdownItem = output();
|
|
14427
14427
|
searchQuery = signal('', ...(ngDevMode ? [{ debugName: "searchQuery" }] : []));
|
|
14428
14428
|
menuChatId = signal(null, ...(ngDevMode ? [{ debugName: "menuChatId" }] : []));
|
|
@@ -14437,6 +14437,7 @@ class XSChatListComponent {
|
|
|
14437
14437
|
}
|
|
14438
14438
|
onRightClick(event, chat) {
|
|
14439
14439
|
event.preventDefault();
|
|
14440
|
+
this.rightClick.emit(chat);
|
|
14440
14441
|
this.menuChatId.set(chat.chatId);
|
|
14441
14442
|
const mw = 160;
|
|
14442
14443
|
const ww = isPlatformBrowser(this.platformId)
|
|
@@ -14481,7 +14482,7 @@ class XSChatListComponent {
|
|
|
14481
14482
|
this.clickDropdownItem.emit({ action, chatId: chat.chatId });
|
|
14482
14483
|
}
|
|
14483
14484
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSChatListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14484
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSChatListComponent, isStandalone: true, selector: "xs-chat-list", inputs: { chats: { classPropertyName: "chats", publicName: "chats", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, dropdownItems: { classPropertyName: "dropdownItems", publicName: "dropdownItems", isSignal: true, isRequired: false, transformFunction: null }, userId: { classPropertyName: "userId", publicName: "userId", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, noResultsLabel: { classPropertyName: "noResultsLabel", publicName: "noResultsLabel", isSignal: true, isRequired: false, transformFunction: null }, noChatsLabel: { classPropertyName: "noChatsLabel", publicName: "noChatsLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeBlockLabel: { classPropertyName: "swipeBlockLabel", publicName: "swipeBlockLabel", isSignal: true, isRequired: false, transformFunction: null }, swipePinLabel: { classPropertyName: "swipePinLabel", publicName: "swipePinLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeDeleteLabel: { classPropertyName: "swipeDeleteLabel", publicName: "swipeDeleteLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeCancelLabel: { classPropertyName: "swipeCancelLabel", publicName: "swipeCancelLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchQueryChange: "searchQueryChange", selectChat: "selectChat", clickDropdownItem: "clickDropdownItem" }, host: { attributes: { "xs-chat-list-host": "" } }, ngImport: i0, template: "<div class=\"flex flex-col h-full\">\n @if (showSearch()) {\n <div class=\"relative mb-2 px-2 pt-2\">\n <div class=\"relative\">\n <svg\n class=\"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-500 pointer-events-none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n >\n <path\n d=\"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\"\n />\n </svg>\n <input\n type=\"text\"\n [ngModel]=\"searchQuery()\"\n (ngModelChange)=\"onSearchInput($event)\"\n [placeholder]=\"searchPlaceholderText\"\n class=\"input-small rounded-xl !pl-10\"\n />\n </div>\n @if (searchQuery()) {\n <button\n class=\"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-zinc-300\"\n (click)=\"clearSearch()\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n />\n </svg>\n </button>\n }\n </div>\n }\n\n <div class=\"flex-1 overflow-y-auto\">\n @if (loading()) {\n <div class=\"space-y-2 p-4\">\n @for (_ of [1, 2, 3, 4, 5]; track _) {\n <div class=\"flex items-center gap-3 animate-pulse\">\n <div\n class=\"w-12 h-12 rounded-full bg-zinc-800 shrink-0\"\n ></div>\n <div class=\"flex-1 space-y-2\">\n <div class=\"h-3 w-32 bg-zinc-800 rounded\"></div>\n <div class=\"h-2 w-24 bg-zinc-800 rounded\"></div>\n </div>\n </div>\n }\n </div>\n } @else {\n @for (chat of chats(); track chat.chatId; let i = $index) {\n <div class=\"relative overflow-hidden\">\n @if (swipedChatId() === chat.chatId) {\n <div\n class=\"absolute inset-y-0 right-0 flex items-center gap-1 px-2 bg-zinc-900 z-10\"\n >\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-600 rounded-lg hover:bg-red-700\"\n (click)=\"swipeAction(chat, 'block')\"\n >\n {{ swipeBlockText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-yellow-600 rounded-lg hover:bg-yellow-700\"\n (click)=\"swipeAction(chat, 'pin')\"\n >\n {{ swipePinText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-800 rounded-lg hover:bg-red-900\"\n (click)=\"swipeAction(chat, 'delete')\"\n >\n {{ swipeDeleteText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-zinc-600 rounded-lg hover:bg-zinc-700\"\n (click)=\"swipedChatId.set(null)\"\n >\n {{ swipeCancelText }}\n </button>\n </div>\n }\n <button\n (click)=\"onSelectChat(chat)\"\n (contextmenu)=\"onRightClick($event, chat)\"\n (touchstart)=\"onTouchStart($event, chat)\"\n (touchend)=\"onTouchEnd($event, chat)\"\n class=\"flex items-center justify-between w-full gap-2 px-4 py-3 overflow-hidden hover:bg-zinc-900/50 transition-colors\"\n [class.border-b]=\"i < chats().length - 1\"\n [class.border-b-zinc-900]=\"i < chats().length - 1\"\n [class.-translate-x-32]=\"\n swipedChatId() === chat.chatId\n \"\n [class.transition-transform]=\"true\"\n [class.duration-200]=\"true\"\n >\n <div class=\"flex items-center min-w-0 gap-3\">\n <div class=\"relative shrink-0 w-12 h-12\">\n <div\n class=\"overflow-hidden rounded-full w-12 h-12\"\n >\n <xs-image\n [item]=\"displayChatItem(chat)\"\n [typeItem]=\"displayChatType(chat)\"\n imageType=\"small\"\n [objectFit]=\"'cover'\"\n customClass=\"object-cover w-full h-full\"\n [alt]=\"displayChatItem(chat).name ?? ''\"\n ></xs-image>\n </div>\n @if (\n displayChatType(chat) === 'user' &&\n (chat.online?.sender || chat.online?.receiver)\n ) {\n <span\n class=\"absolute -bottom-0.5 -right-0.5 w-3.5 h-3.5 rounded-full border-2 border-zinc-900 bg-green-500\"\n ></span>\n }\n </div>\n <div class=\"flex flex-col items-start min-w-0\">\n <p\n class=\"text-sm font-semibold text-white truncate w-full text-left\"\n >\n {{\n displayChatItem(chat).name ||\n chat.sender.name ||\n chat.receiver.name\n }}\n </p>\n @if (chat.lastMessage && chat.lastMessage.text) {\n <p\n class=\"text-xs text-zinc-400 truncate max-w-[12rem] text-left\"\n >\n {{ chat.lastMessage.text }}\n </p>\n }\n </div>\n </div>\n <div class=\"flex flex-col items-end shrink-0\">\n @if (\n chat.lastMessage && chat.lastMessage.created\n ) {\n <span class=\"text-[10px] text-zinc-600\">{{\n chat.lastMessage.created | dateChat\n }}</span>\n }\n <div class=\"flex items-center gap-1 mt-1\">\n @if (chat.blockedBy?.length) {\n <span class=\"text-red-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'ban'\"\n ></xs-icon\n ></span>\n }\n @if (chat.pinnedBy?.length) {\n <span class=\"text-yellow-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'thumb-tack'\"\n ></xs-icon\n ></span>\n }\n @if (chat.unreadCount && chat.unreadCount > 0) {\n <span\n class=\"flex items-center justify-center min-w-[18px] h-[18px] px-1 text-[10px] font-bold text-white bg-green-500 rounded-full\"\n >\n {{\n chat.unreadCount > 99\n ? '99+'\n : chat.unreadCount\n }}\n </span>\n }\n </div>\n </div>\n </button>\n </div>\n } @empty {\n <div\n class=\"flex items-center justify-center h-32 text-zinc-500 text-sm\"\n >\n {{ searchQuery() ? noResultsText : noChatsText }}\n </div>\n }\n }\n </div>\n\n @if (menuChatId() && !loading()) {\n <div\n class=\"fixed inset-0 z-50\"\n (click)=\"closeMenu()\"\n (contextmenu)=\"closeMenu()\"\n ></div>\n <div\n class=\"absolute z-50 w-40 p-2 rounded-md shadow-lg bg-zinc-900/95 backdrop-blur-xl border border-zinc-800\"\n [style.top.px]=\"menuPosition().y\"\n [style.left.px]=\"menuPosition().x\"\n >\n @for (item of dropdownItems(); track item.action) {\n <button\n (click)=\"onDropdownItemClick(item.action)\"\n class=\"flex items-center gap-2 w-full px-3 py-2 text-sm text-zinc-300 hover:text-white hover:bg-zinc-800 rounded-md transition-colors text-left\"\n >\n @if (item.icon) {\n <xs-icon [icon]=\"item.icon\" size=\"sm\"></xs-icon>\n }\n {{ item.name }}\n </button>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "pipe", type: DateChatPipe, name: "dateChat" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14485
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSChatListComponent, isStandalone: true, selector: "xs-chat-list", inputs: { chats: { classPropertyName: "chats", publicName: "chats", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, dropdownItems: { classPropertyName: "dropdownItems", publicName: "dropdownItems", isSignal: true, isRequired: false, transformFunction: null }, userId: { classPropertyName: "userId", publicName: "userId", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, noResultsLabel: { classPropertyName: "noResultsLabel", publicName: "noResultsLabel", isSignal: true, isRequired: false, transformFunction: null }, noChatsLabel: { classPropertyName: "noChatsLabel", publicName: "noChatsLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeBlockLabel: { classPropertyName: "swipeBlockLabel", publicName: "swipeBlockLabel", isSignal: true, isRequired: false, transformFunction: null }, swipePinLabel: { classPropertyName: "swipePinLabel", publicName: "swipePinLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeDeleteLabel: { classPropertyName: "swipeDeleteLabel", publicName: "swipeDeleteLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeCancelLabel: { classPropertyName: "swipeCancelLabel", publicName: "swipeCancelLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchQueryChange: "searchQueryChange", selectChat: "selectChat", rightClick: "rightClick", clickDropdownItem: "clickDropdownItem" }, host: { attributes: { "xs-chat-list-host": "" } }, ngImport: i0, template: "<div class=\"flex flex-col h-full bg-zinc-900/50\">\n @if (showSearch()) {\n <div class=\"relative mb-2 px-2 pt-2\">\n <div class=\"relative\">\n <svg\n class=\"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-500 pointer-events-none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n >\n <path\n d=\"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\"\n />\n </svg>\n <input\n type=\"text\"\n [ngModel]=\"searchQuery()\"\n (ngModelChange)=\"onSearchInput($event)\"\n [placeholder]=\"searchPlaceholderText\"\n class=\"input-small rounded-xl !pl-10\"\n />\n </div>\n @if (searchQuery()) {\n <button\n class=\"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-zinc-300\"\n (click)=\"clearSearch()\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n />\n </svg>\n </button>\n }\n </div>\n }\n\n <div class=\"flex-1 overflow-y-auto\">\n @if (loading()) {\n <div class=\"space-y-2 p-4\">\n @for (_ of [1, 2, 3, 4, 5]; track _) {\n <div class=\"flex items-center gap-3 animate-pulse\">\n <div\n class=\"w-12 h-12 rounded-full bg-zinc-800 shrink-0\"\n ></div>\n <div class=\"flex-1 space-y-2\">\n <div class=\"h-3 w-32 bg-zinc-800 rounded\"></div>\n <div class=\"h-2 w-24 bg-zinc-800 rounded\"></div>\n </div>\n </div>\n }\n </div>\n } @else {\n @for (chat of chats(); track chat.chatId; let i = $index) {\n <div class=\"relative overflow-hidden\">\n @if (swipedChatId() === chat.chatId) {\n <div\n class=\"absolute inset-y-0 right-0 flex items-center gap-1 px-2 bg-zinc-900 z-10\"\n >\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-600 rounded-lg hover:bg-red-700\"\n (click)=\"swipeAction(chat, 'block')\"\n >\n {{ swipeBlockText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-yellow-600 rounded-lg hover:bg-yellow-700\"\n (click)=\"swipeAction(chat, 'pin')\"\n >\n {{ swipePinText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-800 rounded-lg hover:bg-red-900\"\n (click)=\"swipeAction(chat, 'delete')\"\n >\n {{ swipeDeleteText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-zinc-600 rounded-lg hover:bg-zinc-700\"\n (click)=\"swipedChatId.set(null)\"\n >\n {{ swipeCancelText }}\n </button>\n </div>\n }\n <button\n (click)=\"onSelectChat(chat)\"\n (contextmenu)=\"onRightClick($event, chat)\"\n (touchstart)=\"onTouchStart($event, chat)\"\n (touchend)=\"onTouchEnd($event, chat)\"\n class=\"flex items-center justify-between w-full gap-2 px-4 py-3 overflow-hidden hover:bg-zinc-900/50 transition-colors\"\n [class.border-b]=\"i < chats().length - 1\"\n [class.border-b-zinc-900]=\"i < chats().length - 1\"\n [class.-translate-x-32]=\"\n swipedChatId() === chat.chatId\n \"\n [class.transition-transform]=\"true\"\n [class.duration-200]=\"true\"\n >\n <div class=\"flex items-center min-w-0 gap-3\">\n <div class=\"relative shrink-0 w-12 h-12\">\n <div\n class=\"overflow-hidden rounded-full w-12 h-12\"\n >\n <xs-image\n [item]=\"displayChatItem(chat)\"\n [typeItem]=\"displayChatType(chat)\"\n imageType=\"small\"\n [objectFit]=\"'cover'\"\n customClass=\"object-cover w-full h-full\"\n [alt]=\"displayChatItem(chat).name ?? ''\"\n ></xs-image>\n </div>\n @if (\n displayChatType(chat) === 'user' &&\n (chat.online?.sender || chat.online?.receiver)\n ) {\n <span\n class=\"absolute -bottom-0.5 -right-0.5 w-3.5 h-3.5 rounded-full border-2 border-zinc-900 bg-green-500\"\n ></span>\n }\n </div>\n <div class=\"flex flex-col items-start min-w-0\">\n <p\n class=\"text-sm font-semibold text-white truncate w-full text-left\"\n >\n {{\n displayChatItem(chat).name ||\n chat.sender.name ||\n chat.receiver.name\n }}\n </p>\n @if (chat.lastMessage && chat.lastMessage.text) {\n <p\n class=\"text-xs text-zinc-400 truncate max-w-[12rem] text-left\"\n >\n {{ chat.lastMessage.text }}\n </p>\n }\n </div>\n </div>\n <div class=\"flex flex-col items-end shrink-0\">\n @if (\n chat.lastMessage && chat.lastMessage.created\n ) {\n <span class=\"text-[10px] text-zinc-600\">{{\n chat.lastMessage.created | dateChat\n }}</span>\n }\n <div class=\"flex items-center gap-1 mt-1\">\n @if (chat.blockedBy?.length) {\n <span class=\"text-red-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'ban'\"\n ></xs-icon\n ></span>\n }\n @if (chat.pinnedBy?.length) {\n <span class=\"text-yellow-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'thumb-tack'\"\n ></xs-icon\n ></span>\n }\n @if (chat.unreadCount && chat.unreadCount > 0) {\n <span\n class=\"flex items-center justify-center min-w-[18px] h-[18px] px-1 text-[10px] font-bold text-white bg-green-500 rounded-full\"\n >\n {{\n chat.unreadCount > 99\n ? '99+'\n : chat.unreadCount\n }}\n </span>\n }\n </div>\n </div>\n </button>\n </div>\n } @empty {\n <div\n class=\"flex items-center justify-center h-32 text-zinc-500 text-sm\"\n >\n {{ searchQuery() ? noResultsText : noChatsText }}\n </div>\n }\n }\n </div>\n\n @if (menuChatId() && !loading()) {\n <div\n class=\"fixed inset-0 z-50\"\n (click)=\"closeMenu()\"\n (contextmenu)=\"closeMenu()\"\n ></div>\n <div\n class=\"absolute z-50 w-40 p-2 rounded-md shadow-lg bg-zinc-900/95 backdrop-blur-xl border border-zinc-800\"\n [style.top.px]=\"menuPosition().y\"\n [style.left.px]=\"menuPosition().x\"\n >\n @for (item of dropdownItems(); track item.action) {\n <button\n (click)=\"onDropdownItemClick(item.action)\"\n class=\"flex items-center gap-2 w-full px-3 py-2 text-sm text-zinc-300 hover:text-white hover:bg-zinc-800 rounded-md transition-colors text-left\"\n >\n @if (item.icon) {\n <xs-icon [icon]=\"item.icon\" size=\"sm\"></xs-icon>\n }\n {{ item.name }}\n </button>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XSIconComponent, selector: "xs-icon", inputs: ["icon", "size", "class"] }, { kind: "component", type: XSImageComponent, selector: "xs-image", inputs: ["config", "viewTransitionName", "src", "alt", "width", "height", "size", "rounded", "objectFit", "clickable", "item", "typeItem", "imageType", "fallbackSrc", "loading", "priority", "customClass", "generateAvatar"], outputs: ["onClick", "onLoad", "onError"] }, { kind: "pipe", type: DateChatPipe, name: "dateChat" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14485
14486
|
}
|
|
14486
14487
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSChatListComponent, decorators: [{
|
|
14487
14488
|
type: Component,
|
|
@@ -14491,8 +14492,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
|
|
|
14491
14492
|
XSIconComponent,
|
|
14492
14493
|
XSImageComponent,
|
|
14493
14494
|
DateChatPipe,
|
|
14494
|
-
], host: { 'xs-chat-list-host': '' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex flex-col h-full\">\n @if (showSearch()) {\n <div class=\"relative mb-2 px-2 pt-2\">\n <div class=\"relative\">\n <svg\n class=\"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-500 pointer-events-none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n >\n <path\n d=\"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\"\n />\n </svg>\n <input\n type=\"text\"\n [ngModel]=\"searchQuery()\"\n (ngModelChange)=\"onSearchInput($event)\"\n [placeholder]=\"searchPlaceholderText\"\n class=\"input-small rounded-xl !pl-10\"\n />\n </div>\n @if (searchQuery()) {\n <button\n class=\"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-zinc-300\"\n (click)=\"clearSearch()\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n />\n </svg>\n </button>\n }\n </div>\n }\n\n <div class=\"flex-1 overflow-y-auto\">\n @if (loading()) {\n <div class=\"space-y-2 p-4\">\n @for (_ of [1, 2, 3, 4, 5]; track _) {\n <div class=\"flex items-center gap-3 animate-pulse\">\n <div\n class=\"w-12 h-12 rounded-full bg-zinc-800 shrink-0\"\n ></div>\n <div class=\"flex-1 space-y-2\">\n <div class=\"h-3 w-32 bg-zinc-800 rounded\"></div>\n <div class=\"h-2 w-24 bg-zinc-800 rounded\"></div>\n </div>\n </div>\n }\n </div>\n } @else {\n @for (chat of chats(); track chat.chatId; let i = $index) {\n <div class=\"relative overflow-hidden\">\n @if (swipedChatId() === chat.chatId) {\n <div\n class=\"absolute inset-y-0 right-0 flex items-center gap-1 px-2 bg-zinc-900 z-10\"\n >\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-600 rounded-lg hover:bg-red-700\"\n (click)=\"swipeAction(chat, 'block')\"\n >\n {{ swipeBlockText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-yellow-600 rounded-lg hover:bg-yellow-700\"\n (click)=\"swipeAction(chat, 'pin')\"\n >\n {{ swipePinText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-800 rounded-lg hover:bg-red-900\"\n (click)=\"swipeAction(chat, 'delete')\"\n >\n {{ swipeDeleteText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-zinc-600 rounded-lg hover:bg-zinc-700\"\n (click)=\"swipedChatId.set(null)\"\n >\n {{ swipeCancelText }}\n </button>\n </div>\n }\n <button\n (click)=\"onSelectChat(chat)\"\n (contextmenu)=\"onRightClick($event, chat)\"\n (touchstart)=\"onTouchStart($event, chat)\"\n (touchend)=\"onTouchEnd($event, chat)\"\n class=\"flex items-center justify-between w-full gap-2 px-4 py-3 overflow-hidden hover:bg-zinc-900/50 transition-colors\"\n [class.border-b]=\"i < chats().length - 1\"\n [class.border-b-zinc-900]=\"i < chats().length - 1\"\n [class.-translate-x-32]=\"\n swipedChatId() === chat.chatId\n \"\n [class.transition-transform]=\"true\"\n [class.duration-200]=\"true\"\n >\n <div class=\"flex items-center min-w-0 gap-3\">\n <div class=\"relative shrink-0 w-12 h-12\">\n <div\n class=\"overflow-hidden rounded-full w-12 h-12\"\n >\n <xs-image\n [item]=\"displayChatItem(chat)\"\n [typeItem]=\"displayChatType(chat)\"\n imageType=\"small\"\n [objectFit]=\"'cover'\"\n customClass=\"object-cover w-full h-full\"\n [alt]=\"displayChatItem(chat).name ?? ''\"\n ></xs-image>\n </div>\n @if (\n displayChatType(chat) === 'user' &&\n (chat.online?.sender || chat.online?.receiver)\n ) {\n <span\n class=\"absolute -bottom-0.5 -right-0.5 w-3.5 h-3.5 rounded-full border-2 border-zinc-900 bg-green-500\"\n ></span>\n }\n </div>\n <div class=\"flex flex-col items-start min-w-0\">\n <p\n class=\"text-sm font-semibold text-white truncate w-full text-left\"\n >\n {{\n displayChatItem(chat).name ||\n chat.sender.name ||\n chat.receiver.name\n }}\n </p>\n @if (chat.lastMessage && chat.lastMessage.text) {\n <p\n class=\"text-xs text-zinc-400 truncate max-w-[12rem] text-left\"\n >\n {{ chat.lastMessage.text }}\n </p>\n }\n </div>\n </div>\n <div class=\"flex flex-col items-end shrink-0\">\n @if (\n chat.lastMessage && chat.lastMessage.created\n ) {\n <span class=\"text-[10px] text-zinc-600\">{{\n chat.lastMessage.created | dateChat\n }}</span>\n }\n <div class=\"flex items-center gap-1 mt-1\">\n @if (chat.blockedBy?.length) {\n <span class=\"text-red-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'ban'\"\n ></xs-icon\n ></span>\n }\n @if (chat.pinnedBy?.length) {\n <span class=\"text-yellow-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'thumb-tack'\"\n ></xs-icon\n ></span>\n }\n @if (chat.unreadCount && chat.unreadCount > 0) {\n <span\n class=\"flex items-center justify-center min-w-[18px] h-[18px] px-1 text-[10px] font-bold text-white bg-green-500 rounded-full\"\n >\n {{\n chat.unreadCount > 99\n ? '99+'\n : chat.unreadCount\n }}\n </span>\n }\n </div>\n </div>\n </button>\n </div>\n } @empty {\n <div\n class=\"flex items-center justify-center h-32 text-zinc-500 text-sm\"\n >\n {{ searchQuery() ? noResultsText : noChatsText }}\n </div>\n }\n }\n </div>\n\n @if (menuChatId() && !loading()) {\n <div\n class=\"fixed inset-0 z-50\"\n (click)=\"closeMenu()\"\n (contextmenu)=\"closeMenu()\"\n ></div>\n <div\n class=\"absolute z-50 w-40 p-2 rounded-md shadow-lg bg-zinc-900/95 backdrop-blur-xl border border-zinc-800\"\n [style.top.px]=\"menuPosition().y\"\n [style.left.px]=\"menuPosition().x\"\n >\n @for (item of dropdownItems(); track item.action) {\n <button\n (click)=\"onDropdownItemClick(item.action)\"\n class=\"flex items-center gap-2 w-full px-3 py-2 text-sm text-zinc-300 hover:text-white hover:bg-zinc-800 rounded-md transition-colors text-left\"\n >\n @if (item.icon) {\n <xs-icon [icon]=\"item.icon\" size=\"sm\"></xs-icon>\n }\n {{ item.name }}\n </button>\n }\n </div>\n }\n</div>\n" }]
|
|
14495
|
-
}], ctorParameters: () => [], propDecorators: { chats: [{ type: i0.Input, args: [{ isSignal: true, alias: "chats", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], dropdownItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownItems", required: false }] }], searchQueryChange: [{ type: i0.Output, args: ["searchQueryChange"] }], userId: [{ type: i0.Input, args: [{ isSignal: true, alias: "userId", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], noResultsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsLabel", required: false }] }], noChatsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "noChatsLabel", required: false }] }], swipeBlockLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeBlockLabel", required: false }] }], swipePinLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipePinLabel", required: false }] }], swipeDeleteLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeDeleteLabel", required: false }] }], swipeCancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeCancelLabel", required: false }] }], selectChat: [{ type: i0.Output, args: ["selectChat"] }], clickDropdownItem: [{ type: i0.Output, args: ["clickDropdownItem"] }] } });
|
|
14495
|
+
], host: { 'xs-chat-list-host': '' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex flex-col h-full bg-zinc-900/50\">\n @if (showSearch()) {\n <div class=\"relative mb-2 px-2 pt-2\">\n <div class=\"relative\">\n <svg\n class=\"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-500 pointer-events-none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n >\n <path\n d=\"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\"\n />\n </svg>\n <input\n type=\"text\"\n [ngModel]=\"searchQuery()\"\n (ngModelChange)=\"onSearchInput($event)\"\n [placeholder]=\"searchPlaceholderText\"\n class=\"input-small rounded-xl !pl-10\"\n />\n </div>\n @if (searchQuery()) {\n <button\n class=\"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-zinc-300\"\n (click)=\"clearSearch()\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n />\n </svg>\n </button>\n }\n </div>\n }\n\n <div class=\"flex-1 overflow-y-auto\">\n @if (loading()) {\n <div class=\"space-y-2 p-4\">\n @for (_ of [1, 2, 3, 4, 5]; track _) {\n <div class=\"flex items-center gap-3 animate-pulse\">\n <div\n class=\"w-12 h-12 rounded-full bg-zinc-800 shrink-0\"\n ></div>\n <div class=\"flex-1 space-y-2\">\n <div class=\"h-3 w-32 bg-zinc-800 rounded\"></div>\n <div class=\"h-2 w-24 bg-zinc-800 rounded\"></div>\n </div>\n </div>\n }\n </div>\n } @else {\n @for (chat of chats(); track chat.chatId; let i = $index) {\n <div class=\"relative overflow-hidden\">\n @if (swipedChatId() === chat.chatId) {\n <div\n class=\"absolute inset-y-0 right-0 flex items-center gap-1 px-2 bg-zinc-900 z-10\"\n >\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-600 rounded-lg hover:bg-red-700\"\n (click)=\"swipeAction(chat, 'block')\"\n >\n {{ swipeBlockText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-yellow-600 rounded-lg hover:bg-yellow-700\"\n (click)=\"swipeAction(chat, 'pin')\"\n >\n {{ swipePinText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-red-800 rounded-lg hover:bg-red-900\"\n (click)=\"swipeAction(chat, 'delete')\"\n >\n {{ swipeDeleteText }}\n </button>\n <button\n class=\"px-3 py-2 text-xs font-semibold text-white bg-zinc-600 rounded-lg hover:bg-zinc-700\"\n (click)=\"swipedChatId.set(null)\"\n >\n {{ swipeCancelText }}\n </button>\n </div>\n }\n <button\n (click)=\"onSelectChat(chat)\"\n (contextmenu)=\"onRightClick($event, chat)\"\n (touchstart)=\"onTouchStart($event, chat)\"\n (touchend)=\"onTouchEnd($event, chat)\"\n class=\"flex items-center justify-between w-full gap-2 px-4 py-3 overflow-hidden hover:bg-zinc-900/50 transition-colors\"\n [class.border-b]=\"i < chats().length - 1\"\n [class.border-b-zinc-900]=\"i < chats().length - 1\"\n [class.-translate-x-32]=\"\n swipedChatId() === chat.chatId\n \"\n [class.transition-transform]=\"true\"\n [class.duration-200]=\"true\"\n >\n <div class=\"flex items-center min-w-0 gap-3\">\n <div class=\"relative shrink-0 w-12 h-12\">\n <div\n class=\"overflow-hidden rounded-full w-12 h-12\"\n >\n <xs-image\n [item]=\"displayChatItem(chat)\"\n [typeItem]=\"displayChatType(chat)\"\n imageType=\"small\"\n [objectFit]=\"'cover'\"\n customClass=\"object-cover w-full h-full\"\n [alt]=\"displayChatItem(chat).name ?? ''\"\n ></xs-image>\n </div>\n @if (\n displayChatType(chat) === 'user' &&\n (chat.online?.sender || chat.online?.receiver)\n ) {\n <span\n class=\"absolute -bottom-0.5 -right-0.5 w-3.5 h-3.5 rounded-full border-2 border-zinc-900 bg-green-500\"\n ></span>\n }\n </div>\n <div class=\"flex flex-col items-start min-w-0\">\n <p\n class=\"text-sm font-semibold text-white truncate w-full text-left\"\n >\n {{\n displayChatItem(chat).name ||\n chat.sender.name ||\n chat.receiver.name\n }}\n </p>\n @if (chat.lastMessage && chat.lastMessage.text) {\n <p\n class=\"text-xs text-zinc-400 truncate max-w-[12rem] text-left\"\n >\n {{ chat.lastMessage.text }}\n </p>\n }\n </div>\n </div>\n <div class=\"flex flex-col items-end shrink-0\">\n @if (\n chat.lastMessage && chat.lastMessage.created\n ) {\n <span class=\"text-[10px] text-zinc-600\">{{\n chat.lastMessage.created | dateChat\n }}</span>\n }\n <div class=\"flex items-center gap-1 mt-1\">\n @if (chat.blockedBy?.length) {\n <span class=\"text-red-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'ban'\"\n ></xs-icon\n ></span>\n }\n @if (chat.pinnedBy?.length) {\n <span class=\"text-yellow-500\"\n ><xs-icon\n [size]=\"'sm'\"\n [icon]=\"'thumb-tack'\"\n ></xs-icon\n ></span>\n }\n @if (chat.unreadCount && chat.unreadCount > 0) {\n <span\n class=\"flex items-center justify-center min-w-[18px] h-[18px] px-1 text-[10px] font-bold text-white bg-green-500 rounded-full\"\n >\n {{\n chat.unreadCount > 99\n ? '99+'\n : chat.unreadCount\n }}\n </span>\n }\n </div>\n </div>\n </button>\n </div>\n } @empty {\n <div\n class=\"flex items-center justify-center h-32 text-zinc-500 text-sm\"\n >\n {{ searchQuery() ? noResultsText : noChatsText }}\n </div>\n }\n }\n </div>\n\n @if (menuChatId() && !loading()) {\n <div\n class=\"fixed inset-0 z-50\"\n (click)=\"closeMenu()\"\n (contextmenu)=\"closeMenu()\"\n ></div>\n <div\n class=\"absolute z-50 w-40 p-2 rounded-md shadow-lg bg-zinc-900/95 backdrop-blur-xl border border-zinc-800\"\n [style.top.px]=\"menuPosition().y\"\n [style.left.px]=\"menuPosition().x\"\n >\n @for (item of dropdownItems(); track item.action) {\n <button\n (click)=\"onDropdownItemClick(item.action)\"\n class=\"flex items-center gap-2 w-full px-3 py-2 text-sm text-zinc-300 hover:text-white hover:bg-zinc-800 rounded-md transition-colors text-left\"\n >\n @if (item.icon) {\n <xs-icon [icon]=\"item.icon\" size=\"sm\"></xs-icon>\n }\n {{ item.name }}\n </button>\n }\n </div>\n }\n</div>\n" }]
|
|
14496
|
+
}], ctorParameters: () => [], propDecorators: { chats: [{ type: i0.Input, args: [{ isSignal: true, alias: "chats", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], dropdownItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownItems", required: false }] }], searchQueryChange: [{ type: i0.Output, args: ["searchQueryChange"] }], userId: [{ type: i0.Input, args: [{ isSignal: true, alias: "userId", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], noResultsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsLabel", required: false }] }], noChatsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "noChatsLabel", required: false }] }], swipeBlockLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeBlockLabel", required: false }] }], swipePinLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipePinLabel", required: false }] }], swipeDeleteLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeDeleteLabel", required: false }] }], swipeCancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "swipeCancelLabel", required: false }] }], selectChat: [{ type: i0.Output, args: ["selectChat"] }], rightClick: [{ type: i0.Output, args: ["rightClick"] }], clickDropdownItem: [{ type: i0.Output, args: ["clickDropdownItem"] }] } });
|
|
14496
14497
|
|
|
14497
14498
|
const EMOJIS = [
|
|
14498
14499
|
'😀',
|
|
@@ -15387,7 +15388,7 @@ class XSChatFloatingPanelComponent {
|
|
|
15387
15388
|
this.clickDropdownItem.emit(event);
|
|
15388
15389
|
}
|
|
15389
15390
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSChatFloatingPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15390
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSChatFloatingPanelComponent, isStandalone: true, selector: "xs-chat-floating-panel", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, chats: { classPropertyName: "chats", publicName: "chats", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, currentChatInfo: { classPropertyName: "currentChatInfo", publicName: "currentChatInfo", isSignal: true, isRequired: false, transformFunction: null }, userId: { classPropertyName: "userId", publicName: "userId", isSignal: true, isRequired: false, transformFunction: null }, selectedChatId: { classPropertyName: "selectedChatId", publicName: "selectedChatId", isSignal: true, isRequired: false, transformFunction: null }, typingUserId: { classPropertyName: "typingUserId", publicName: "typingUserId", isSignal: true, isRequired: false, transformFunction: null }, dropdownItems: { classPropertyName: "dropdownItems", publicName: "dropdownItems", isSignal: true, isRequired: false, transformFunction: null }, typingLabel: { classPropertyName: "typingLabel", publicName: "typingLabel", isSignal: true, isRequired: false, transformFunction: null }, onlineLabel: { classPropertyName: "onlineLabel", publicName: "onlineLabel", isSignal: true, isRequired: false, transformFunction: null }, offlineLabel: { classPropertyName: "offlineLabel", publicName: "offlineLabel", isSignal: true, isRequired: false, transformFunction: null }, roleLabel: { classPropertyName: "roleLabel", publicName: "roleLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessagesLabel: { classPropertyName: "emptyMessagesLabel", publicName: "emptyMessagesLabel", isSignal: true, isRequired: false, transformFunction: null }, textareaPlaceholder: { classPropertyName: "textareaPlaceholder", publicName: "textareaPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, todayLabel: { classPropertyName: "todayLabel", publicName: "todayLabel", isSignal: true, isRequired: false, transformFunction: null }, yesterdayLabel: { classPropertyName: "yesterdayLabel", publicName: "yesterdayLabel", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, noResultsLabel: { classPropertyName: "noResultsLabel", publicName: "noResultsLabel", isSignal: true, isRequired: false, transformFunction: null }, noChatsLabel: { classPropertyName: "noChatsLabel", publicName: "noChatsLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeBlockLabel: { classPropertyName: "swipeBlockLabel", publicName: "swipeBlockLabel", isSignal: true, isRequired: false, transformFunction: null }, swipePinLabel: { classPropertyName: "swipePinLabel", publicName: "swipePinLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeDeleteLabel: { classPropertyName: "swipeDeleteLabel", publicName: "swipeDeleteLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeCancelLabel: { classPropertyName: "swipeCancelLabel", publicName: "swipeCancelLabel", isSignal: true, isRequired: false, transformFunction: null }, infoButtons: { classPropertyName: "infoButtons", publicName: "infoButtons", isSignal: true, isRequired: false, transformFunction: null }, alertType: { classPropertyName: "alertType", publicName: "alertType", isSignal: true, isRequired: false, transformFunction: null }, alertMessage: { classPropertyName: "alertMessage", publicName: "alertMessage", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, attachEnabled: { classPropertyName: "attachEnabled", publicName: "attachEnabled", isSignal: true, isRequired: false, transformFunction: null }, uploading: { classPropertyName: "uploading", publicName: "uploading", isSignal: true, isRequired: false, transformFunction: null }, uploadProgress: { classPropertyName: "uploadProgress", publicName: "uploadProgress", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectChat: "selectChat", sendMessage: "sendMessage", sendError: "sendError", typing: "typing", retryMessage: "retryMessage", replyToMessage: "replyToMessage", closePanel: "closePanel", goToList: "goToList", clickDropdownItem: "clickDropdownItem", clickInfoButton: "clickInfoButton" }, host: { attributes: { "xs-chat-floating-panel-host": "" } }, ngImport: i0, template: "\n @if (isOpen()) {\n <div\n class=\"fixed inset-0 z-[300] hidden lg:block\"\n (click)=\"closePanel.emit()\"\n ></div>\n\n <div\n class=\"fixed bottom-20 right-4 z-[301] hidden lg:flex flex-col bg-zinc-900/95 backdrop-blur-2xl border border-white/10 rounded-2xl shadow-2xl w-[380px] h-[560px]\"\n (click)=\"$event.stopPropagation()\"\n >\n <div\n class=\"flex items-center justify-between px-4 py-3 border-b border-white/10 shrink-0\"\n >\n <div class=\"flex items-center gap-2 min-w-0\">\n @if (selectedChatId()) {\n <button\n (click)=\"goToList.emit()\"\n class=\"text-zinc-400 hover:text-white shrink-0 transition-colors\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z\"\n />\n </svg>\n </button>\n }\n <span\n class=\"text-sm font-semibold text-white truncate\"\n >{{ title() }}</span\n >\n </div>\n <button\n (click)=\"closePanel.emit()\"\n class=\"flex items-center justify-center w-7 h-7 text-zinc-400 hover:text-white hover:bg-zinc-800 rounded-full transition-colors shrink-0\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n />\n </svg>\n </button>\n </div>\n\n <div class=\"flex-1 min-h-0 flex flex-col\">\n @if (!selectedChatId()) {\n <xs-chat-list\n [chats]=\"filteredChats()\"\n [loading]=\"loading()\"\n [dropdownItems]=\"dropdownItems()\"\n [userId]=\"userId()\"\n [searchPlaceholder]=\"searchPlaceholderText\"\n [noResultsLabel]=\"noResultsText\"\n [noChatsLabel]=\"noChatsText\"\n [swipeBlockLabel]=\"swipeBlockText\"\n [swipePinLabel]=\"swipePinText\"\n [swipeDeleteLabel]=\"swipeDeleteText\"\n [swipeCancelLabel]=\"swipeCancelText\"\n (selectChat)=\"onSelectChat($event)\"\n (searchQueryChange)=\"onSearchQueryChange($event)\"\n (clickDropdownItem)=\"onDropdownItemClick($event)\"\n />\n } @else {\n <div class=\"flex-1 min-h-0 flex flex-col\">\n <xs-chat-conversation\n [messages]=\"messages()\"\n [currentChatInfo]=\"currentChatInfo()\"\n [userId]=\"userId()\"\n [typingUserId]=\"typingUserId()\"\n [typingLabel]=\"typingText\"\n [onlineLabel]=\"onlineText\"\n [offlineLabel]=\"offlineText\"\n [roleLabel]=\"roleLabel()\"\n [emptyMessagesLabel]=\"emptyMessagesText\"\n [textareaPlaceholder]=\"textareaPlaceholderText\"\n [todayLabel]=\"todayText\"\n [yesterdayLabel]=\"yesterdayText\"\n [infoButtons]=\"infoButtons()\"\n [alertType]=\"alertType()\"\n [alertMessage]=\"alertMessage()\"\n [attachEnabled]=\"attachEnabled()\"\n [uploading]=\"uploading()\"\n [uploadProgress]=\"uploadProgress()\"\n (sendMessage)=\"onSendMessage($event)\"\n (sendError)=\"sendError.emit($event)\"\n (typing)=\"onTyping()\"\n (retryMessage)=\"onRetryMessage($event)\"\n (replyToMessage)=\"onReplyToMessage($event)\"\n (goToList)=\"onGoToList()\"\n (clickInfoButton)=\"onClickInfoButton($event)\"\n />\n </div>\n }\n </div>\n\n @if (selectedChatId() && showFooter()) {\n <div\n class=\"flex items-center justify-between px-3 py-1 border-t border-white/10 shrink-0\"\n >\n <ng-content select=\"[footerLeft]\" />\n <ng-content select=\"[footerRight]\" />\n </div>\n }\n </div>\n }\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: XSChatListComponent, selector: "xs-chat-list", inputs: ["chats", "loading", "showSearch", "dropdownItems", "userId", "searchPlaceholder", "noResultsLabel", "noChatsLabel", "swipeBlockLabel", "swipePinLabel", "swipeDeleteLabel", "swipeCancelLabel"], outputs: ["searchQueryChange", "selectChat", "clickDropdownItem"] }, { kind: "component", type: XSChatConversationComponent, selector: "xs-chat-conversation", inputs: ["messages", "currentChatInfo", "userId", "disabled", "typingUserId", "typingLabel", "onlineLabel", "offlineLabel", "roleLabel", "emptyMessagesLabel", "textareaPlaceholder", "todayLabel", "yesterdayLabel", "attachEnabled", "uploading", "uploadProgress", "infoButtons", "alertType", "alertMessage"], outputs: ["sendError", "typing", "sendMessage", "goToList", "loadMoreMessages", "clickInfoButton", "retryMessage", "replyToMessage"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15391
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSChatFloatingPanelComponent, isStandalone: true, selector: "xs-chat-floating-panel", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, chats: { classPropertyName: "chats", publicName: "chats", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, currentChatInfo: { classPropertyName: "currentChatInfo", publicName: "currentChatInfo", isSignal: true, isRequired: false, transformFunction: null }, userId: { classPropertyName: "userId", publicName: "userId", isSignal: true, isRequired: false, transformFunction: null }, selectedChatId: { classPropertyName: "selectedChatId", publicName: "selectedChatId", isSignal: true, isRequired: false, transformFunction: null }, typingUserId: { classPropertyName: "typingUserId", publicName: "typingUserId", isSignal: true, isRequired: false, transformFunction: null }, dropdownItems: { classPropertyName: "dropdownItems", publicName: "dropdownItems", isSignal: true, isRequired: false, transformFunction: null }, typingLabel: { classPropertyName: "typingLabel", publicName: "typingLabel", isSignal: true, isRequired: false, transformFunction: null }, onlineLabel: { classPropertyName: "onlineLabel", publicName: "onlineLabel", isSignal: true, isRequired: false, transformFunction: null }, offlineLabel: { classPropertyName: "offlineLabel", publicName: "offlineLabel", isSignal: true, isRequired: false, transformFunction: null }, roleLabel: { classPropertyName: "roleLabel", publicName: "roleLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessagesLabel: { classPropertyName: "emptyMessagesLabel", publicName: "emptyMessagesLabel", isSignal: true, isRequired: false, transformFunction: null }, textareaPlaceholder: { classPropertyName: "textareaPlaceholder", publicName: "textareaPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, todayLabel: { classPropertyName: "todayLabel", publicName: "todayLabel", isSignal: true, isRequired: false, transformFunction: null }, yesterdayLabel: { classPropertyName: "yesterdayLabel", publicName: "yesterdayLabel", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, noResultsLabel: { classPropertyName: "noResultsLabel", publicName: "noResultsLabel", isSignal: true, isRequired: false, transformFunction: null }, noChatsLabel: { classPropertyName: "noChatsLabel", publicName: "noChatsLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeBlockLabel: { classPropertyName: "swipeBlockLabel", publicName: "swipeBlockLabel", isSignal: true, isRequired: false, transformFunction: null }, swipePinLabel: { classPropertyName: "swipePinLabel", publicName: "swipePinLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeDeleteLabel: { classPropertyName: "swipeDeleteLabel", publicName: "swipeDeleteLabel", isSignal: true, isRequired: false, transformFunction: null }, swipeCancelLabel: { classPropertyName: "swipeCancelLabel", publicName: "swipeCancelLabel", isSignal: true, isRequired: false, transformFunction: null }, infoButtons: { classPropertyName: "infoButtons", publicName: "infoButtons", isSignal: true, isRequired: false, transformFunction: null }, alertType: { classPropertyName: "alertType", publicName: "alertType", isSignal: true, isRequired: false, transformFunction: null }, alertMessage: { classPropertyName: "alertMessage", publicName: "alertMessage", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, attachEnabled: { classPropertyName: "attachEnabled", publicName: "attachEnabled", isSignal: true, isRequired: false, transformFunction: null }, uploading: { classPropertyName: "uploading", publicName: "uploading", isSignal: true, isRequired: false, transformFunction: null }, uploadProgress: { classPropertyName: "uploadProgress", publicName: "uploadProgress", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectChat: "selectChat", sendMessage: "sendMessage", sendError: "sendError", typing: "typing", retryMessage: "retryMessage", replyToMessage: "replyToMessage", closePanel: "closePanel", goToList: "goToList", clickDropdownItem: "clickDropdownItem", clickInfoButton: "clickInfoButton" }, host: { attributes: { "xs-chat-floating-panel-host": "" } }, ngImport: i0, template: "\n @if (isOpen()) {\n <div\n class=\"fixed inset-0 z-[300] hidden lg:block\"\n (click)=\"closePanel.emit()\"\n ></div>\n\n <div\n class=\"fixed bottom-20 right-4 z-[301] hidden lg:flex flex-col bg-zinc-900/95 backdrop-blur-2xl border border-white/10 rounded-2xl shadow-2xl w-[380px] h-[560px]\"\n (click)=\"$event.stopPropagation()\"\n >\n <div\n class=\"flex items-center justify-between px-4 py-3 border-b border-white/10 shrink-0\"\n >\n <div class=\"flex items-center gap-2 min-w-0\">\n @if (selectedChatId()) {\n <button\n (click)=\"goToList.emit()\"\n class=\"text-zinc-400 hover:text-white shrink-0 transition-colors\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z\"\n />\n </svg>\n </button>\n }\n <span\n class=\"text-sm font-semibold text-white truncate\"\n >{{ title() }}</span\n >\n </div>\n <button\n (click)=\"closePanel.emit()\"\n class=\"flex items-center justify-center w-7 h-7 text-zinc-400 hover:text-white hover:bg-zinc-800 rounded-full transition-colors shrink-0\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"w-4 h-4\"\n >\n <path\n d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n />\n </svg>\n </button>\n </div>\n\n <div class=\"flex-1 min-h-0 flex flex-col\">\n @if (!selectedChatId()) {\n <xs-chat-list\n [chats]=\"filteredChats()\"\n [loading]=\"loading()\"\n [dropdownItems]=\"dropdownItems()\"\n [userId]=\"userId()\"\n [searchPlaceholder]=\"searchPlaceholderText\"\n [noResultsLabel]=\"noResultsText\"\n [noChatsLabel]=\"noChatsText\"\n [swipeBlockLabel]=\"swipeBlockText\"\n [swipePinLabel]=\"swipePinText\"\n [swipeDeleteLabel]=\"swipeDeleteText\"\n [swipeCancelLabel]=\"swipeCancelText\"\n (selectChat)=\"onSelectChat($event)\"\n (searchQueryChange)=\"onSearchQueryChange($event)\"\n (clickDropdownItem)=\"onDropdownItemClick($event)\"\n />\n } @else {\n <div class=\"flex-1 min-h-0 flex flex-col\">\n <xs-chat-conversation\n [messages]=\"messages()\"\n [currentChatInfo]=\"currentChatInfo()\"\n [userId]=\"userId()\"\n [typingUserId]=\"typingUserId()\"\n [typingLabel]=\"typingText\"\n [onlineLabel]=\"onlineText\"\n [offlineLabel]=\"offlineText\"\n [roleLabel]=\"roleLabel()\"\n [emptyMessagesLabel]=\"emptyMessagesText\"\n [textareaPlaceholder]=\"textareaPlaceholderText\"\n [todayLabel]=\"todayText\"\n [yesterdayLabel]=\"yesterdayText\"\n [infoButtons]=\"infoButtons()\"\n [alertType]=\"alertType()\"\n [alertMessage]=\"alertMessage()\"\n [attachEnabled]=\"attachEnabled()\"\n [uploading]=\"uploading()\"\n [uploadProgress]=\"uploadProgress()\"\n (sendMessage)=\"onSendMessage($event)\"\n (sendError)=\"sendError.emit($event)\"\n (typing)=\"onTyping()\"\n (retryMessage)=\"onRetryMessage($event)\"\n (replyToMessage)=\"onReplyToMessage($event)\"\n (goToList)=\"onGoToList()\"\n (clickInfoButton)=\"onClickInfoButton($event)\"\n />\n </div>\n }\n </div>\n\n @if (selectedChatId() && showFooter()) {\n <div\n class=\"flex items-center justify-between px-3 py-1 border-t border-white/10 shrink-0\"\n >\n <ng-content select=\"[footerLeft]\" />\n <ng-content select=\"[footerRight]\" />\n </div>\n }\n </div>\n }\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: XSChatListComponent, selector: "xs-chat-list", inputs: ["chats", "loading", "showSearch", "dropdownItems", "userId", "searchPlaceholder", "noResultsLabel", "noChatsLabel", "swipeBlockLabel", "swipePinLabel", "swipeDeleteLabel", "swipeCancelLabel"], outputs: ["searchQueryChange", "selectChat", "rightClick", "clickDropdownItem"] }, { kind: "component", type: XSChatConversationComponent, selector: "xs-chat-conversation", inputs: ["messages", "currentChatInfo", "userId", "disabled", "typingUserId", "typingLabel", "onlineLabel", "offlineLabel", "roleLabel", "emptyMessagesLabel", "textareaPlaceholder", "todayLabel", "yesterdayLabel", "attachEnabled", "uploading", "uploadProgress", "infoButtons", "alertType", "alertMessage"], outputs: ["sendError", "typing", "sendMessage", "goToList", "loadMoreMessages", "clickInfoButton", "retryMessage", "replyToMessage"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15391
15392
|
}
|
|
15392
15393
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSChatFloatingPanelComponent, decorators: [{
|
|
15393
15394
|
type: Component,
|
|
@@ -15964,7 +15965,7 @@ class XSNavbarComponent {
|
|
|
15964
15965
|
this.translateService.setLanguage(newLang);
|
|
15965
15966
|
}
|
|
15966
15967
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSNavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15967
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSNavbarComponent, isStandalone: true, selector: "xs-navbar", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, mobileTitle: { classPropertyName: "mobileTitle", publicName: "mobileTitle", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, mobileSubtitle: { classPropertyName: "mobileSubtitle", publicName: "mobileSubtitle", isSignal: true, isRequired: false, transformFunction: null }, showBorder: { classPropertyName: "showBorder", publicName: "showBorder", isSignal: true, isRequired: false, transformFunction: null }, transparent: { classPropertyName: "transparent", publicName: "transparent", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, showBack: { classPropertyName: "showBack", publicName: "showBack", isSignal: true, isRequired: false, transformFunction: null }, showMenu: { classPropertyName: "showMenu", publicName: "showMenu", isSignal: true, isRequired: false, transformFunction: null }, menuIcon: { classPropertyName: "menuIcon", publicName: "menuIcon", isSignal: true, isRequired: false, transformFunction: null }, contextual: { classPropertyName: "contextual", publicName: "contextual", isSignal: true, isRequired: false, transformFunction: null }, showLanguage: { classPropertyName: "showLanguage", publicName: "showLanguage", isSignal: true, isRequired: false, transformFunction: null }, showNotifications: { classPropertyName: "showNotifications", publicName: "showNotifications", isSignal: true, isRequired: false, transformFunction: null }, showHelp: { classPropertyName: "showHelp", publicName: "showHelp", isSignal: true, isRequired: false, transformFunction: null }, showChat: { classPropertyName: "showChat", publicName: "showChat", isSignal: true, isRequired: false, transformFunction: null }, showImpersonation: { classPropertyName: "showImpersonation", publicName: "showImpersonation", isSignal: true, isRequired: false, transformFunction: null }, unreadChatMessages: { classPropertyName: "unreadChatMessages", publicName: "unreadChatMessages", isSignal: true, isRequired: false, transformFunction: null }, unreadNotifications: { classPropertyName: "unreadNotifications", publicName: "unreadNotifications", isSignal: true, isRequired: false, transformFunction: null }, homeRoute: { classPropertyName: "homeRoute", publicName: "homeRoute", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, hideEnvBadge: { classPropertyName: "hideEnvBadge", publicName: "hideEnvBadge", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { back: "back", menuToggle: "menuToggle", titleClick: "titleClick", notificationsClick: "notificationsClick", helpClick: "helpClick", chatClick: "chatClick", impersonationClick: "impersonationClick" }, host: { attributes: { "role": "banner" }, properties: { "class.sticky": "sticky()", "class.top-0": "sticky()", "class.z-50": "sticky()", "class.navbar-contextual": "contextual()" } }, queries: [{ propertyName: "bottomContent", first: true, predicate: ["[bottom]"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "@if (!hidden()) {\n<header\n [class.bg-black/80]=\"!transparent()\"\n [class.backdrop-blur-xl]=\"!transparent()\"\n class=\"ease-in-out transition-all duration-300\"\n [attr.aria-label]=\"ariaLabel() || title()\"\n>\n <div\n class=\"mx-auto px-4 pt-3 pb-2\"\n [class.border-b]=\"showBorder()\"\n [class.border-white/5]=\"showBorder()\"\n [style.max-width]=\"maxWidth()\"\n >\n <div class=\"flex items-center justify-between gap-4 w-full\">\n <div class=\"navbar-left flex items-center min-w-0 flex-1\">\n @if (showLeftButton) {\n <xs-button\n (onClick)=\"showBack() ? back.emit() : menuToggle.emit()\"\n [icon]=\"{ name: showBack() ? 'arrow-left' : (menuIcon()) }\"\n layout=\"iconOnlyHeader\"\n variant=\"custom\"\n customClass=\"flex-none p-2 -ml-2 text-zinc-400 hover:text-white active:scale-90 rounded-xl hover:bg-zinc-900/50\"\n [title]=\"showBack() ? t('GO_BACK') : t('OPEN_MENU')\"\n />\n }\n\n <div class=\"navbar-leading flex-none\">\n <ng-content select=\"[leading]\"></ng-content>\n </div>\n\n <div class=\"navbar-title-wrap flex flex-col min-w-0 flex-1\">\n <a\n [routerLink]=\"homeRoute()\"\n (click)=\"titleClick.emit()\"\n class=\"navbar-default-title inline-block text-2xl sm:text-3xl font-black tracking-[0.01em] text-white uppercase leading-none truncate transition-[letter-spacing_0.5s_ease-out,color_0.2s_ease] hover:tracking-[0.05em] hover:text-zinc-300 will-change-[letter-spacing] no-underline\"\n [attr.aria-label]=\"t('GO_TO') + ' ' + (homeRoute() || t('HOME'))\"\n >\n @if (mobileTitle()) {\n <span class=\"lg:hidden\">{{ mobileTitle() }}</span>\n <span class=\"hidden lg:inline\">{{ title() }}</span>\n } @else {\n {{ title() }}\n }\n </a>\n\n @if (subtitle()) {\n <div\n class=\"navbar-default-subtitle flex items-center gap-2 mt-1 animate-in fade-in slide-in-from-left-2 duration-500 min-w-0\"\n >\n <div\n class=\"text-zinc-400 text-[10px] font-black tracking-[0.2em] uppercase leading-none truncate\"\n >\n @if (mobileSubtitle()) {\n <span class=\"lg:hidden\">{{ mobileSubtitle() }}</span>\n <span class=\"hidden lg:inline\">{{ subtitle() }}</span>\n } @else {\n {{ subtitle() }}\n }\n </div>\n </div>\n }\n </div>\n </div>\n\n <div class=\"navbar-right flex items-center justify-end gap-3 min-w-0\">\n <ng-content select=\"[actions]\"></ng-content>\n\n @if (envName !== 'prod' && !hideEnvBadge() && !isCapacitorNative) {\n <span\n class=\"hidden sm:flex flex-none items-center justify-center w-9 h-9 rounded-xl border text-[9px] font-black tracking-[0.1em] select-none\"\n [class.bg-amber-500/10]=\"envName === 'dev'\"\n [class.border-amber-500/20]=\"envName === 'dev'\"\n [class.text-amber-500]=\"envName === 'dev'\"\n [class.bg-orange-500/10]=\"envName === 'uat'\"\n [class.border-orange-500/20]=\"envName === 'uat'\"\n [class.text-orange-500]=\"envName === 'uat'\"\n [title]=\"envName\"\n >{{ envName }}</span>\n }\n\n @if (showChat()) {\n <button\n (click)=\"chatClick.emit()\"\n class=\"relative flex-none flex items-center justify-center w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('CHAT')\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" class=\"w-4 h-4\">\n <path d=\"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12z\"/>\n </svg>\n @if (unreadChatMessages() > 0) {\n <span\n class=\"absolute -top-1 -right-1 min-w-[16px] h-4 px-1 bg-green-500 rounded-full text-[8px] font-bold text-white flex items-center justify-center\"\n [attr.aria-label]=\"unreadChatMessages() + ' ' + t('UNREAD_MESSAGES')\"\n >\n {{ unreadChatMessages() > 9 ? '9+' : unreadChatMessages() }}\n </span>\n }\n </button>\n }\n\n @if (showNotifications()) {\n <xs-button\n (onClick)=\"notificationsClick.emit()\"\n icon=\"bell\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('NOTIFICATIONS')\"\n [badgeCount]=\"unreadNotifications()\"\n />\n }\n\n @if (showHelp()) {\n <xs-button\n (onClick)=\"helpClick.emit()\"\n icon=\"circle-question\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('GUIDED_TOUR')\"\n />\n }\n\n @if (showImpersonation()) {\n <button\n (click)=\"impersonationClick.emit()\"\n class=\"flex-none flex items-center justify-center w-9 h-9 bg-amber-500/10 rounded-xl border border-amber-500/20 hover:bg-amber-500/20 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('BACK_TO_ADMIN')\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" class=\"w-4 h-4 text-amber-500\">\n <path d=\"M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z\"/>\n </svg>\n </button>\n }\n\n @if (showLanguage()) {\n <button\n (click)=\"onToggleLang()\"\n class=\"navbar-lang flex-none flex items-center justify-center w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('SWITCH_LANG_TO') + ' ' + (langSignal() === 'es' ? t('ENGLISH') : t('SPANISH'))\"\n >\n <img\n [src]=\"\n langSignal() === 'es'\n ? ('es' | countryFlag)\n : ('us' | countryFlag)\n \"\n class=\"w-4 h-3 object-cover rounded-[1px] shadow-sm\"\n [alt]=\"langSignal() === 'es' ? t('SPANISH') : t('ENGLISH')\"\n />\n </button>\n }\n </div>\n </div>\n\n @if (hasBottom) {\n <div\n class=\"mt-6 animate-in fade-in slide-in-from-top-2 duration-700\"\n >\n <ng-content select=\"[bottom]\"></ng-content>\n </div>\n }\n </div>\n</header>\n}\n", styles: [":host{display:block;width:100%}:host(.sticky){position:sticky}header{-webkit-backdrop-filter:blur(20px)}button:focus-visible{outline:2px solid rgb(113 113 122);outline-offset:2px}.navbar-leading:has(>*){margin-left:4px}:host(.navbar-contextual) .navbar-title-wrap{display:none}:host(.navbar-contextual) .navbar-lang{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "pipe", type: CountryFlagPipe, name: "countryFlag" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15968
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSNavbarComponent, isStandalone: true, selector: "xs-navbar", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, mobileTitle: { classPropertyName: "mobileTitle", publicName: "mobileTitle", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, mobileSubtitle: { classPropertyName: "mobileSubtitle", publicName: "mobileSubtitle", isSignal: true, isRequired: false, transformFunction: null }, showBorder: { classPropertyName: "showBorder", publicName: "showBorder", isSignal: true, isRequired: false, transformFunction: null }, transparent: { classPropertyName: "transparent", publicName: "transparent", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, showBack: { classPropertyName: "showBack", publicName: "showBack", isSignal: true, isRequired: false, transformFunction: null }, showMenu: { classPropertyName: "showMenu", publicName: "showMenu", isSignal: true, isRequired: false, transformFunction: null }, menuIcon: { classPropertyName: "menuIcon", publicName: "menuIcon", isSignal: true, isRequired: false, transformFunction: null }, contextual: { classPropertyName: "contextual", publicName: "contextual", isSignal: true, isRequired: false, transformFunction: null }, showLanguage: { classPropertyName: "showLanguage", publicName: "showLanguage", isSignal: true, isRequired: false, transformFunction: null }, showNotifications: { classPropertyName: "showNotifications", publicName: "showNotifications", isSignal: true, isRequired: false, transformFunction: null }, showHelp: { classPropertyName: "showHelp", publicName: "showHelp", isSignal: true, isRequired: false, transformFunction: null }, showChat: { classPropertyName: "showChat", publicName: "showChat", isSignal: true, isRequired: false, transformFunction: null }, showImpersonation: { classPropertyName: "showImpersonation", publicName: "showImpersonation", isSignal: true, isRequired: false, transformFunction: null }, unreadChatMessages: { classPropertyName: "unreadChatMessages", publicName: "unreadChatMessages", isSignal: true, isRequired: false, transformFunction: null }, unreadNotifications: { classPropertyName: "unreadNotifications", publicName: "unreadNotifications", isSignal: true, isRequired: false, transformFunction: null }, homeRoute: { classPropertyName: "homeRoute", publicName: "homeRoute", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, hideEnvBadge: { classPropertyName: "hideEnvBadge", publicName: "hideEnvBadge", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { back: "back", menuToggle: "menuToggle", titleClick: "titleClick", notificationsClick: "notificationsClick", helpClick: "helpClick", chatClick: "chatClick", impersonationClick: "impersonationClick" }, host: { attributes: { "role": "banner" }, properties: { "class.sticky": "sticky()", "class.top-0": "sticky()", "class.z-50": "sticky()", "class.navbar-contextual": "contextual()" } }, queries: [{ propertyName: "bottomContent", first: true, predicate: ["[bottom]"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "@if (!hidden()) {\n<header\n [class.bg-black/80]=\"!transparent()\"\n [class.backdrop-blur-xl]=\"!transparent()\"\n class=\"ease-in-out transition-all duration-300\"\n [attr.aria-label]=\"ariaLabel() || title()\"\n>\n <div\n class=\"mx-auto px-4 pt-3 pb-2\"\n [class.border-b]=\"showBorder()\"\n [class.border-white/5]=\"showBorder()\"\n [style.max-width]=\"maxWidth()\"\n >\n <div class=\"flex items-center justify-between gap-4 w-full\">\n <div class=\"navbar-left flex items-center min-w-0 flex-1\">\n @if (showLeftButton) {\n <xs-button\n (onClick)=\"showBack() ? back.emit() : menuToggle.emit()\"\n [icon]=\"{ name: showBack() ? 'arrow-left' : (menuIcon()) }\"\n layout=\"iconOnlyHeader\"\n variant=\"custom\"\n customClass=\"flex-none p-2 -ml-2 text-zinc-400 hover:text-white active:scale-90 rounded-xl hover:bg-zinc-900/50\"\n [title]=\"showBack() ? t('GO_BACK') : t('OPEN_MENU')\"\n />\n }\n\n <div class=\"navbar-leading flex-none\">\n <ng-content select=\"[leading]\"></ng-content>\n </div>\n\n <div class=\"navbar-title-wrap flex flex-col min-w-0 flex-1\">\n <a\n [routerLink]=\"homeRoute()\"\n (click)=\"titleClick.emit()\"\n class=\"navbar-default-title inline-block text-2xl sm:text-3xl font-black tracking-[0.01em] text-white uppercase leading-none truncate transition-[letter-spacing_0.5s_ease-out,color_0.2s_ease] hover:tracking-[0.05em] hover:text-zinc-300 will-change-[letter-spacing] no-underline\"\n [attr.aria-label]=\"t('GO_TO') + ' ' + (homeRoute() || t('HOME'))\"\n >\n @if (mobileTitle()) {\n <span class=\"lg:hidden\">{{ mobileTitle() }}</span>\n <span class=\"hidden lg:inline\">{{ title() }}</span>\n } @else {\n {{ title() }}\n }\n </a>\n\n @if (subtitle()) {\n <div\n class=\"navbar-default-subtitle flex items-center gap-2 mt-1 animate-in fade-in slide-in-from-left-2 duration-500 min-w-0\"\n >\n <div\n class=\"text-zinc-400 text-[10px] font-black tracking-[0.2em] uppercase leading-none truncate\"\n >\n @if (mobileSubtitle()) {\n <span class=\"lg:hidden\">{{ mobileSubtitle() }}</span>\n <span class=\"hidden lg:inline\">{{ subtitle() }}</span>\n } @else {\n {{ subtitle() }}\n }\n </div>\n </div>\n }\n </div>\n </div>\n\n <div class=\"navbar-right flex items-center justify-end gap-3 min-w-0\">\n <ng-content select=\"[actions]\"></ng-content>\n\n @if (envName !== 'prod' && !hideEnvBadge() && !isCapacitorNative) {\n <span\n class=\"hidden sm:flex flex-none items-center justify-center w-9 h-9 rounded-xl border text-[9px] font-black tracking-[0.1em] select-none\"\n [class.bg-amber-500/10]=\"envName === 'dev'\"\n [class.border-amber-500/20]=\"envName === 'dev'\"\n [class.text-amber-500]=\"envName === 'dev'\"\n [class.bg-orange-500/10]=\"envName === 'uat'\"\n [class.border-orange-500/20]=\"envName === 'uat'\"\n [class.text-orange-500]=\"envName === 'uat'\"\n [title]=\"envName\"\n >{{ envName }}</span>\n }\n\n @if (showChat()) {\n <xs-button\n (onClick)=\"chatClick.emit()\"\n icon=\"comment\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('CHAT')\"\n [badgeCount]=\"unreadChatMessages()\"\n />\n }\n\n @if (showNotifications()) {\n <xs-button\n (onClick)=\"notificationsClick.emit()\"\n icon=\"bell\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('NOTIFICATIONS')\"\n [badgeCount]=\"unreadNotifications()\"\n />\n }\n\n @if (showHelp()) {\n <xs-button\n (onClick)=\"helpClick.emit()\"\n icon=\"circle-question\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('GUIDED_TOUR')\"\n />\n }\n\n @if (showImpersonation()) {\n <button\n (click)=\"impersonationClick.emit()\"\n class=\"flex-none flex items-center justify-center w-9 h-9 bg-amber-500/10 rounded-xl border border-amber-500/20 hover:bg-amber-500/20 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('BACK_TO_ADMIN')\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" class=\"w-4 h-4 text-amber-500\">\n <path d=\"M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z\"/>\n </svg>\n </button>\n }\n\n @if (showLanguage()) {\n <button\n (click)=\"onToggleLang()\"\n class=\"navbar-lang flex-none flex items-center justify-center w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('SWITCH_LANG_TO') + ' ' + (langSignal() === 'es' ? t('ENGLISH') : t('SPANISH'))\"\n >\n <img\n [src]=\"\n langSignal() === 'es'\n ? ('es' | countryFlag)\n : ('us' | countryFlag)\n \"\n class=\"w-4 h-3 object-cover rounded-[1px] shadow-sm\"\n [alt]=\"langSignal() === 'es' ? t('SPANISH') : t('ENGLISH')\"\n />\n </button>\n }\n </div>\n </div>\n\n @if (hasBottom) {\n <div\n class=\"mt-6 animate-in fade-in slide-in-from-top-2 duration-700\"\n >\n <ng-content select=\"[bottom]\"></ng-content>\n </div>\n }\n </div>\n</header>\n}\n", styles: [":host{display:block;width:100%}:host(.sticky){position:sticky}header{-webkit-backdrop-filter:blur(20px)}button:focus-visible{outline:2px solid rgb(113 113 122);outline-offset:2px}.navbar-leading:has(>*){margin-left:4px}:host(.navbar-contextual) .navbar-title-wrap{display:none}:host(.navbar-contextual) .navbar-lang{display:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "pipe", type: CountryFlagPipe, name: "countryFlag" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15968
15969
|
}
|
|
15969
15970
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSNavbarComponent, decorators: [{
|
|
15970
15971
|
type: Component,
|
|
@@ -15979,7 +15980,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
|
|
|
15979
15980
|
'[class.top-0]': 'sticky()',
|
|
15980
15981
|
'[class.z-50]': 'sticky()',
|
|
15981
15982
|
'[class.navbar-contextual]': 'contextual()',
|
|
15982
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!hidden()) {\n<header\n [class.bg-black/80]=\"!transparent()\"\n [class.backdrop-blur-xl]=\"!transparent()\"\n class=\"ease-in-out transition-all duration-300\"\n [attr.aria-label]=\"ariaLabel() || title()\"\n>\n <div\n class=\"mx-auto px-4 pt-3 pb-2\"\n [class.border-b]=\"showBorder()\"\n [class.border-white/5]=\"showBorder()\"\n [style.max-width]=\"maxWidth()\"\n >\n <div class=\"flex items-center justify-between gap-4 w-full\">\n <div class=\"navbar-left flex items-center min-w-0 flex-1\">\n @if (showLeftButton) {\n <xs-button\n (onClick)=\"showBack() ? back.emit() : menuToggle.emit()\"\n [icon]=\"{ name: showBack() ? 'arrow-left' : (menuIcon()) }\"\n layout=\"iconOnlyHeader\"\n variant=\"custom\"\n customClass=\"flex-none p-2 -ml-2 text-zinc-400 hover:text-white active:scale-90 rounded-xl hover:bg-zinc-900/50\"\n [title]=\"showBack() ? t('GO_BACK') : t('OPEN_MENU')\"\n />\n }\n\n <div class=\"navbar-leading flex-none\">\n <ng-content select=\"[leading]\"></ng-content>\n </div>\n\n <div class=\"navbar-title-wrap flex flex-col min-w-0 flex-1\">\n <a\n [routerLink]=\"homeRoute()\"\n (click)=\"titleClick.emit()\"\n class=\"navbar-default-title inline-block text-2xl sm:text-3xl font-black tracking-[0.01em] text-white uppercase leading-none truncate transition-[letter-spacing_0.5s_ease-out,color_0.2s_ease] hover:tracking-[0.05em] hover:text-zinc-300 will-change-[letter-spacing] no-underline\"\n [attr.aria-label]=\"t('GO_TO') + ' ' + (homeRoute() || t('HOME'))\"\n >\n @if (mobileTitle()) {\n <span class=\"lg:hidden\">{{ mobileTitle() }}</span>\n <span class=\"hidden lg:inline\">{{ title() }}</span>\n } @else {\n {{ title() }}\n }\n </a>\n\n @if (subtitle()) {\n <div\n class=\"navbar-default-subtitle flex items-center gap-2 mt-1 animate-in fade-in slide-in-from-left-2 duration-500 min-w-0\"\n >\n <div\n class=\"text-zinc-400 text-[10px] font-black tracking-[0.2em] uppercase leading-none truncate\"\n >\n @if (mobileSubtitle()) {\n <span class=\"lg:hidden\">{{ mobileSubtitle() }}</span>\n <span class=\"hidden lg:inline\">{{ subtitle() }}</span>\n } @else {\n {{ subtitle() }}\n }\n </div>\n </div>\n }\n </div>\n </div>\n\n <div class=\"navbar-right flex items-center justify-end gap-3 min-w-0\">\n <ng-content select=\"[actions]\"></ng-content>\n\n @if (envName !== 'prod' && !hideEnvBadge() && !isCapacitorNative) {\n <span\n class=\"hidden sm:flex flex-none items-center justify-center w-9 h-9 rounded-xl border text-[9px] font-black tracking-[0.1em] select-none\"\n [class.bg-amber-500/10]=\"envName === 'dev'\"\n [class.border-amber-500/20]=\"envName === 'dev'\"\n [class.text-amber-500]=\"envName === 'dev'\"\n [class.bg-orange-500/10]=\"envName === 'uat'\"\n [class.border-orange-500/20]=\"envName === 'uat'\"\n [class.text-orange-500]=\"envName === 'uat'\"\n [title]=\"envName\"\n >{{ envName }}</span>\n }\n\n @if (showChat()) {\n <button\n (
|
|
15983
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!hidden()) {\n<header\n [class.bg-black/80]=\"!transparent()\"\n [class.backdrop-blur-xl]=\"!transparent()\"\n class=\"ease-in-out transition-all duration-300\"\n [attr.aria-label]=\"ariaLabel() || title()\"\n>\n <div\n class=\"mx-auto px-4 pt-3 pb-2\"\n [class.border-b]=\"showBorder()\"\n [class.border-white/5]=\"showBorder()\"\n [style.max-width]=\"maxWidth()\"\n >\n <div class=\"flex items-center justify-between gap-4 w-full\">\n <div class=\"navbar-left flex items-center min-w-0 flex-1\">\n @if (showLeftButton) {\n <xs-button\n (onClick)=\"showBack() ? back.emit() : menuToggle.emit()\"\n [icon]=\"{ name: showBack() ? 'arrow-left' : (menuIcon()) }\"\n layout=\"iconOnlyHeader\"\n variant=\"custom\"\n customClass=\"flex-none p-2 -ml-2 text-zinc-400 hover:text-white active:scale-90 rounded-xl hover:bg-zinc-900/50\"\n [title]=\"showBack() ? t('GO_BACK') : t('OPEN_MENU')\"\n />\n }\n\n <div class=\"navbar-leading flex-none\">\n <ng-content select=\"[leading]\"></ng-content>\n </div>\n\n <div class=\"navbar-title-wrap flex flex-col min-w-0 flex-1\">\n <a\n [routerLink]=\"homeRoute()\"\n (click)=\"titleClick.emit()\"\n class=\"navbar-default-title inline-block text-2xl sm:text-3xl font-black tracking-[0.01em] text-white uppercase leading-none truncate transition-[letter-spacing_0.5s_ease-out,color_0.2s_ease] hover:tracking-[0.05em] hover:text-zinc-300 will-change-[letter-spacing] no-underline\"\n [attr.aria-label]=\"t('GO_TO') + ' ' + (homeRoute() || t('HOME'))\"\n >\n @if (mobileTitle()) {\n <span class=\"lg:hidden\">{{ mobileTitle() }}</span>\n <span class=\"hidden lg:inline\">{{ title() }}</span>\n } @else {\n {{ title() }}\n }\n </a>\n\n @if (subtitle()) {\n <div\n class=\"navbar-default-subtitle flex items-center gap-2 mt-1 animate-in fade-in slide-in-from-left-2 duration-500 min-w-0\"\n >\n <div\n class=\"text-zinc-400 text-[10px] font-black tracking-[0.2em] uppercase leading-none truncate\"\n >\n @if (mobileSubtitle()) {\n <span class=\"lg:hidden\">{{ mobileSubtitle() }}</span>\n <span class=\"hidden lg:inline\">{{ subtitle() }}</span>\n } @else {\n {{ subtitle() }}\n }\n </div>\n </div>\n }\n </div>\n </div>\n\n <div class=\"navbar-right flex items-center justify-end gap-3 min-w-0\">\n <ng-content select=\"[actions]\"></ng-content>\n\n @if (envName !== 'prod' && !hideEnvBadge() && !isCapacitorNative) {\n <span\n class=\"hidden sm:flex flex-none items-center justify-center w-9 h-9 rounded-xl border text-[9px] font-black tracking-[0.1em] select-none\"\n [class.bg-amber-500/10]=\"envName === 'dev'\"\n [class.border-amber-500/20]=\"envName === 'dev'\"\n [class.text-amber-500]=\"envName === 'dev'\"\n [class.bg-orange-500/10]=\"envName === 'uat'\"\n [class.border-orange-500/20]=\"envName === 'uat'\"\n [class.text-orange-500]=\"envName === 'uat'\"\n [title]=\"envName\"\n >{{ envName }}</span>\n }\n\n @if (showChat()) {\n <xs-button\n (onClick)=\"chatClick.emit()\"\n icon=\"comment\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('CHAT')\"\n [badgeCount]=\"unreadChatMessages()\"\n />\n }\n\n @if (showNotifications()) {\n <xs-button\n (onClick)=\"notificationsClick.emit()\"\n icon=\"bell\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('NOTIFICATIONS')\"\n [badgeCount]=\"unreadNotifications()\"\n />\n }\n\n @if (showHelp()) {\n <xs-button\n (onClick)=\"helpClick.emit()\"\n icon=\"circle-question\"\n layout=\"iconOnly\"\n variant=\"custom\"\n customClass=\"w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95\"\n [title]=\"t('GUIDED_TOUR')\"\n />\n }\n\n @if (showImpersonation()) {\n <button\n (click)=\"impersonationClick.emit()\"\n class=\"flex-none flex items-center justify-center w-9 h-9 bg-amber-500/10 rounded-xl border border-amber-500/20 hover:bg-amber-500/20 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('BACK_TO_ADMIN')\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" class=\"w-4 h-4 text-amber-500\">\n <path d=\"M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z\"/>\n </svg>\n </button>\n }\n\n @if (showLanguage()) {\n <button\n (click)=\"onToggleLang()\"\n class=\"navbar-lang flex-none flex items-center justify-center w-9 h-9 bg-zinc-900/40 rounded-xl border border-white/5 hover:bg-zinc-800 active:scale-95 transition-all\"\n type=\"button\"\n [attr.aria-label]=\"t('SWITCH_LANG_TO') + ' ' + (langSignal() === 'es' ? t('ENGLISH') : t('SPANISH'))\"\n >\n <img\n [src]=\"\n langSignal() === 'es'\n ? ('es' | countryFlag)\n : ('us' | countryFlag)\n \"\n class=\"w-4 h-3 object-cover rounded-[1px] shadow-sm\"\n [alt]=\"langSignal() === 'es' ? t('SPANISH') : t('ENGLISH')\"\n />\n </button>\n }\n </div>\n </div>\n\n @if (hasBottom) {\n <div\n class=\"mt-6 animate-in fade-in slide-in-from-top-2 duration-700\"\n >\n <ng-content select=\"[bottom]\"></ng-content>\n </div>\n }\n </div>\n</header>\n}\n", styles: [":host{display:block;width:100%}:host(.sticky){position:sticky}header{-webkit-backdrop-filter:blur(20px)}button:focus-visible{outline:2px solid rgb(113 113 122);outline-offset:2px}.navbar-leading:has(>*){margin-left:4px}:host(.navbar-contextual) .navbar-title-wrap{display:none}:host(.navbar-contextual) .navbar-lang{display:none}\n"] }]
|
|
15983
15984
|
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], mobileTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileTitle", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], mobileSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileSubtitle", required: false }] }], showBorder: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBorder", required: false }] }], transparent: [{ type: i0.Input, args: [{ isSignal: true, alias: "transparent", required: false }] }], sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }], showBack: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBack", required: false }] }], showMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMenu", required: false }] }], menuIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuIcon", required: false }] }], contextual: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextual", required: false }] }], showLanguage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLanguage", required: false }] }], showNotifications: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNotifications", required: false }] }], showHelp: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHelp", required: false }] }], showChat: [{ type: i0.Input, args: [{ isSignal: true, alias: "showChat", required: false }] }], showImpersonation: [{ type: i0.Input, args: [{ isSignal: true, alias: "showImpersonation", required: false }] }], unreadChatMessages: [{ type: i0.Input, args: [{ isSignal: true, alias: "unreadChatMessages", required: false }] }], unreadNotifications: [{ type: i0.Input, args: [{ isSignal: true, alias: "unreadNotifications", required: false }] }], homeRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "homeRoute", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], hideEnvBadge: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideEnvBadge", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], back: [{ type: i0.Output, args: ["back"] }], menuToggle: [{ type: i0.Output, args: ["menuToggle"] }], titleClick: [{ type: i0.Output, args: ["titleClick"] }], notificationsClick: [{ type: i0.Output, args: ["notificationsClick"] }], helpClick: [{ type: i0.Output, args: ["helpClick"] }], chatClick: [{ type: i0.Output, args: ["chatClick"] }], impersonationClick: [{ type: i0.Output, args: ["impersonationClick"] }], bottomContent: [{ type: i0.ContentChild, args: ['[bottom]', { ...{
|
|
15984
15985
|
read: ElementRef,
|
|
15985
15986
|
}, isSignal: true }] }] } });
|