@acorex/modules 19.3.2 → 19.3.3-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/common/index.d.ts +1 -0
  2. package/common/lib/common.module.d.ts +3 -2
  3. package/common/lib/features/global-search/index.d.ts +3 -0
  4. package/common/lib/features/global-search/search-popup.component.d.ts +22 -0
  5. package/common/lib/features/global-search/search-slot.component.d.ts +9 -0
  6. package/common/lib/features/global-search/search.config.d.ts +5 -0
  7. package/common/lib/features/global-search/search.module.d.ts +11 -0
  8. package/common/lib/features/global-search/search.viewmodel.d.ts +34 -0
  9. package/common/lib/features/global-search/workflows/search.workflow.d.ts +11 -0
  10. package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +1 -0
  11. package/document-management/lib/features/document-explorer/document-explorer.viewmodel.d.ts +1 -0
  12. package/document-management/lib/features/document-explorer/views/detail-panel/detail-panel.component.d.ts +1 -0
  13. package/document-management/lib/features/document-explorer/views/details/details-view.component.d.ts +1 -0
  14. package/document-management/lib/features/document-explorer/views/large-icons/large-icons-view.component.d.ts +1 -0
  15. package/document-management/lib/features/document-explorer/views/large-tiles/large-tiles-view.component.d.ts +1 -0
  16. package/document-management/lib/features/document-explorer/views/list/list-view.component.d.ts +1 -0
  17. package/document-management/lib/features/document-explorer/views/small-icons/small-icons-view.component.d.ts +1 -0
  18. package/document-management/lib/features/document-explorer/views/small-tiles/small-tiles-view.component.d.ts +1 -0
  19. package/document-management/lib/features/drive/drive.component.d.ts +1 -0
  20. package/document-management/lib/features/drive-choose/drive-choose.component.d.ts +1 -0
  21. package/document-management/lib/features/shared/components/folder-path-breadcrumbs/folder-path-breadcrumbs.component.d.ts +1 -0
  22. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +4 -3
  23. package/document-management/lib/permission-definition.provider.d.ts +4 -0
  24. package/document-management/lib/permission.keys.d.ts +19 -0
  25. package/fesm2022/acorex-modules-common-search-popup.component-C3XUb6pF.mjs +128 -0
  26. package/fesm2022/acorex-modules-common-search-popup.component-C3XUb6pF.mjs.map +1 -0
  27. package/fesm2022/acorex-modules-common.mjs +289 -7
  28. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  29. package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-VORBD1g-.mjs → acorex-modules-dashboard-management-acorex-modules-dashboard-management-Ccj2AaJ1.mjs} +3 -3
  30. package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-VORBD1g-.mjs.map → acorex-modules-dashboard-management-acorex-modules-dashboard-management-Ccj2AaJ1.mjs.map} +1 -1
  31. package/fesm2022/{acorex-modules-dashboard-management-home-dashboard-DiPn_RhH.mjs → acorex-modules-dashboard-management-home-dashboard-BXD0g_tp.mjs} +2 -2
  32. package/fesm2022/{acorex-modules-dashboard-management-home-dashboard-DiPn_RhH.mjs.map → acorex-modules-dashboard-management-home-dashboard-BXD0g_tp.mjs.map} +1 -1
  33. package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
  34. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-vYaqbxKs.mjs → acorex-modules-document-management-acorex-modules-document-management-Dw7YKb_h.mjs} +59 -41
  35. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-Dw7YKb_h.mjs.map +1 -0
  36. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-Bc_IX3gT.mjs → acorex-modules-document-management-create-folder-dialog.component-Ty5V60Tu.mjs} +2 -2
  37. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-Bc_IX3gT.mjs.map → acorex-modules-document-management-create-folder-dialog.component-Ty5V60Tu.mjs.map} +1 -1
  38. package/fesm2022/{acorex-modules-document-management-details-view.component-_9f5TQJi.mjs → acorex-modules-document-management-details-view.component-BuUJq8WU.mjs} +2 -2
  39. package/fesm2022/{acorex-modules-document-management-details-view.component-_9f5TQJi.mjs.map → acorex-modules-document-management-details-view.component-BuUJq8WU.mjs.map} +1 -1
  40. package/fesm2022/{acorex-modules-document-management-drive-choose.component-CFOb0_MF.mjs → acorex-modules-document-management-drive-choose.component-DSCIj1X_.mjs} +2 -2
  41. package/fesm2022/{acorex-modules-document-management-drive-choose.component-CFOb0_MF.mjs.map → acorex-modules-document-management-drive-choose.component-DSCIj1X_.mjs.map} +1 -1
  42. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-D9es4CBl.mjs → acorex-modules-document-management-large-icons-view.component-DvrdSkIZ.mjs} +2 -2
  43. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-D9es4CBl.mjs.map → acorex-modules-document-management-large-icons-view.component-DvrdSkIZ.mjs.map} +1 -1
  44. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Q1Sjg47F.mjs → acorex-modules-document-management-large-tiles-view.component-rIxsD8sE.mjs} +2 -2
  45. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Q1Sjg47F.mjs.map → acorex-modules-document-management-large-tiles-view.component-rIxsD8sE.mjs.map} +1 -1
  46. package/fesm2022/{acorex-modules-document-management-list-view.component-BUu5vrul.mjs → acorex-modules-document-management-list-view.component-BrutZLAU.mjs} +2 -2
  47. package/fesm2022/{acorex-modules-document-management-list-view.component-BUu5vrul.mjs.map → acorex-modules-document-management-list-view.component-BrutZLAU.mjs.map} +1 -1
  48. package/fesm2022/acorex-modules-document-management-permission-definition.provider-CQOLEctF.mjs +31 -0
  49. package/fesm2022/acorex-modules-document-management-permission-definition.provider-CQOLEctF.mjs.map +1 -0
  50. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-BMRmdslE.mjs → acorex-modules-document-management-rename-node-dialog.component-zSY0PShA.mjs} +2 -2
  51. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-BMRmdslE.mjs.map → acorex-modules-document-management-rename-node-dialog.component-zSY0PShA.mjs.map} +1 -1
  52. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-ChSS7z9z.mjs → acorex-modules-document-management-small-icons-view.component-CFB6g5r6.mjs} +2 -2
  53. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-ChSS7z9z.mjs.map → acorex-modules-document-management-small-icons-view.component-CFB6g5r6.mjs.map} +1 -1
  54. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-Ci33qbBY.mjs → acorex-modules-document-management-small-tiles-view.component-Dp2Lnb3c.mjs} +2 -2
  55. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-Ci33qbBY.mjs.map → acorex-modules-document-management-small-tiles-view.component-Dp2Lnb3c.mjs.map} +1 -1
  56. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  57. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-Cv92x_9Z.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-CJ2Qoott.mjs} +33 -15
  58. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-CJ2Qoott.mjs.map +1 -0
  59. package/fesm2022/{acorex-modules-form-template-management-category.entity-DPVwQW4X.mjs → acorex-modules-form-template-management-category.entity-BjNsUAZq.mjs} +2 -2
  60. package/fesm2022/{acorex-modules-form-template-management-category.entity-DPVwQW4X.mjs.map → acorex-modules-form-template-management-category.entity-BjNsUAZq.mjs.map} +1 -1
  61. package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-BrWbwKTK.mjs → acorex-modules-form-template-management-permission-definition.provider-CqZ8ytjA.mjs} +2 -21
  62. package/fesm2022/acorex-modules-form-template-management-permission-definition.provider-CqZ8ytjA.mjs.map +1 -0
  63. package/fesm2022/{acorex-modules-form-template-management-settings.provider-iwOUp0iw.mjs → acorex-modules-form-template-management-settings.provider-LrzsYkiL.mjs} +2 -2
  64. package/fesm2022/{acorex-modules-form-template-management-settings.provider-iwOUp0iw.mjs.map → acorex-modules-form-template-management-settings.provider-LrzsYkiL.mjs.map} +1 -1
  65. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BkR3x74p.mjs → acorex-modules-form-template-management-template-widget-edit.component-BP75i9zU.mjs} +2 -2
  66. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BkR3x74p.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-BP75i9zU.mjs.map} +1 -1
  67. package/fesm2022/{acorex-modules-form-template-management-template.entity-NgmH7r8R.mjs → acorex-modules-form-template-management-template.entity-CCaHPkWq.mjs} +2 -2
  68. package/fesm2022/{acorex-modules-form-template-management-template.entity-NgmH7r8R.mjs.map → acorex-modules-form-template-management-template.entity-CCaHPkWq.mjs.map} +1 -1
  69. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-Cq33xA62.mjs → acorex-modules-form-template-management-viewer-popup.component-CUOsh6e5.mjs} +2 -2
  70. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-Cq33xA62.mjs.map → acorex-modules-form-template-management-viewer-popup.component-CUOsh6e5.mjs.map} +1 -1
  71. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  72. package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-U5EJyG5e.mjs → acorex-modules-issue-management-acorex-modules-issue-management-DcmAnBue.mjs} +2 -3
  73. package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-U5EJyG5e.mjs.map → acorex-modules-issue-management-acorex-modules-issue-management-DcmAnBue.mjs.map} +1 -1
  74. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-3ZAOJBfn.mjs → acorex-modules-issue-management-capture-screen.component-BMpafdHr.mjs} +2 -2
  75. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-3ZAOJBfn.mjs.map → acorex-modules-issue-management-capture-screen.component-BMpafdHr.mjs.map} +1 -1
  76. package/fesm2022/acorex-modules-issue-management.mjs +1 -1
  77. package/fesm2022/acorex-modules-log-management.mjs +3 -8
  78. package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
  79. package/fesm2022/{acorex-modules-organization-management-add-item.component-DW0TneoX.mjs → acorex-modules-organization-management-add-item.component-DE0Ek0dk.mjs} +3 -3
  80. package/fesm2022/{acorex-modules-organization-management-add-item.component-DW0TneoX.mjs.map → acorex-modules-organization-management-add-item.component-DE0Ek0dk.mjs.map} +1 -1
  81. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-RuvkSheN.mjs +124 -0
  82. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-RuvkSheN.mjs.map +1 -0
  83. package/fesm2022/{acorex-modules-organization-management-org-chart.page-DnRbGIWN.mjs → acorex-modules-organization-management-org-chart.page-C2qYJxpY.mjs} +59 -19
  84. package/fesm2022/acorex-modules-organization-management-org-chart.page-C2qYJxpY.mjs.map +1 -0
  85. package/fesm2022/acorex-modules-organization-management.mjs +7 -7
  86. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  87. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-5lToZD6T.mjs → acorex-modules-platform-management-acorex-modules-platform-management-BaYlXX3M.mjs} +44 -51
  88. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-BaYlXX3M.mjs.map +1 -0
  89. package/fesm2022/{acorex-modules-platform-management-list-version.component-BElZjmXr.mjs → acorex-modules-platform-management-list-version.component-DB8pe9so.mjs} +2 -2
  90. package/fesm2022/{acorex-modules-platform-management-list-version.component-BElZjmXr.mjs.map → acorex-modules-platform-management-list-version.component-DB8pe9so.mjs.map} +1 -1
  91. package/fesm2022/{acorex-modules-platform-management-settings.provider-CemrvnbH.mjs → acorex-modules-platform-management-settings.provider-BQzM-lyt.mjs} +2 -2
  92. package/fesm2022/{acorex-modules-platform-management-settings.provider-CemrvnbH.mjs.map → acorex-modules-platform-management-settings.provider-BQzM-lyt.mjs.map} +1 -1
  93. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  94. package/fesm2022/acorex-modules-settings-management-setting-page.component-XDFtTqft.mjs +219 -0
  95. package/fesm2022/acorex-modules-settings-management-setting-page.component-XDFtTqft.mjs.map +1 -0
  96. package/fesm2022/acorex-modules-settings-management-setting-view.component-B_6RIU9e.mjs +103 -0
  97. package/fesm2022/acorex-modules-settings-management-setting-view.component-B_6RIU9e.mjs.map +1 -0
  98. package/fesm2022/acorex-modules-settings-management.mjs +442 -0
  99. package/fesm2022/acorex-modules-settings-management.mjs.map +1 -0
  100. package/fesm2022/acorex-modules-training-management.mjs +0 -2
  101. package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
  102. package/organization-management/lib/features/organization-chart/org-chart-configuration.page.d.ts +7 -61
  103. package/organization-management/lib/features/organization-chart/org-chart.page.d.ts +8 -61
  104. package/package.json +5 -1
  105. package/platform-management/lib/const.d.ts +2 -6
  106. package/platform-management/lib/features/app-terms/pages/list/list-terms.component.d.ts +11 -13
  107. package/settings-management/README.md +3 -0
  108. package/settings-management/index.d.ts +2 -0
  109. package/settings-management/lib/features/settings/convert-setting-data.d.ts +2 -0
  110. package/settings-management/lib/features/settings/search-definition.provider.d.ts +4 -0
  111. package/settings-management/lib/features/settings/search.provider.d.ts +9 -0
  112. package/settings-management/lib/features/settings/setting-page/setting-page.component.d.ts +65 -0
  113. package/settings-management/lib/features/settings/setting-view/setting-view.component.d.ts +135 -0
  114. package/settings-management/lib/features/settings/settings.viewmodel.d.ts +46 -0
  115. package/settings-management/lib/settings-management.module.d.ts +9 -0
  116. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-vYaqbxKs.mjs.map +0 -1
  117. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-Cv92x_9Z.mjs.map +0 -1
  118. package/fesm2022/acorex-modules-form-template-management-permission-definition.provider-BrWbwKTK.mjs.map +0 -1
  119. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-DFqOS0So.mjs +0 -92
  120. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-DFqOS0So.mjs.map +0 -1
  121. package/fesm2022/acorex-modules-organization-management-org-chart.page-DnRbGIWN.mjs.map +0 -1
  122. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-5lToZD6T.mjs.map +0 -1
package/common/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from './lib/menu.provider';
5
5
  export * from './lib/search-command.provider';
6
6
  export * from './lib/settings.provider';
7
7
  export * from './lib/widgets-names-list';
8
+ export * from './lib/features/global-search';
@@ -1,7 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "@acorex/platform/widgets";
2
+ import * as i1 from "./features/global-search/search.module";
3
+ import * as i2 from "@acorex/platform/widgets";
3
4
  export declare class AXMCommonModule {
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMCommonModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMCommonModule, never, [typeof i1.AXPWidgetsModule], never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMCommonModule, never, [typeof i1.AXPGlobalSearchModule, typeof i2.AXPWidgetsModule], never>;
6
7
  static ɵinj: i0.ɵɵInjectorDeclaration<AXMCommonModule>;
7
8
  }
@@ -0,0 +1,3 @@
1
+ export * from './search.config';
2
+ export * from './search.module';
3
+ export * from './search.viewmodel';
@@ -0,0 +1,22 @@
1
+ import { AXClickEvent, AXHtmlEvent, AXValueChangedEvent } from '@acorex/components/common';
2
+ import { AXBasePageComponent } from '@acorex/components/page';
3
+ import { AXPSearchDisplayResult } from '@acorex/platform/common';
4
+ import { AXPGlobalSearchViewModel } from './search.viewmodel';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AXPGlobalSearchPopupComponent extends AXBasePageComponent {
7
+ protected i18nScope: string;
8
+ protected vm: AXPGlobalSearchViewModel;
9
+ protected text: string | null;
10
+ private list;
11
+ private searchBox;
12
+ private items;
13
+ handleTextChanged(e: AXValueChangedEvent<string>): Promise<void>;
14
+ protected ngOnInit(): void;
15
+ protected handleSearchKeyDown(e: AXHtmlEvent<KeyboardEvent>): void;
16
+ protected handleClearClick($event: AXClickEvent): void;
17
+ protected handleListKeyDown(e: KeyboardEvent): void;
18
+ protected handleItemKeyDown(e: KeyboardEvent, item: AXPSearchDisplayResult): void;
19
+ protected handlePinClick(e: Event, item: any): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPGlobalSearchPopupComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPGlobalSearchPopupComponent, "ng-component", never, {}, {}, never, never, true, never>;
22
+ }
@@ -0,0 +1,9 @@
1
+ import { AXPWorkflowService } from '@acorex/platform/workflow';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXPGlobalSearchSlotComponent {
4
+ protected workflow: AXPWorkflowService;
5
+ protected startSearch(): Promise<void>;
6
+ private handleKeyboardEvent;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPGlobalSearchSlotComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPGlobalSearchSlotComponent, "ng-component", never, {}, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,5 @@
1
+ import { InjectionToken, Type } from "@angular/core";
2
+ export interface AXPGlobalSearchConfigs {
3
+ window: () => Type<any>;
4
+ }
5
+ export declare const AXP_GLOBAL_SEARCH_CONFIG_TOKEN: InjectionToken<AXPGlobalSearchConfigs>;
@@ -0,0 +1,11 @@
1
+ import { Injector } from '@angular/core';
2
+ import { AXPAppStartUpService } from '@acorex/platform/core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@acorex/platform/common";
5
+ import * as i2 from "@acorex/platform/workflow";
6
+ export declare class AXPGlobalSearchModule {
7
+ constructor(appInitService: AXPAppStartUpService, injector: Injector);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPGlobalSearchModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXPGlobalSearchModule, never, [typeof i1.AXPComponentSlotModule, typeof i2.AXPWorkflowModule], never>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXPGlobalSearchModule>;
11
+ }
@@ -0,0 +1,34 @@
1
+ import { AXPSearchDisplayGroupResult, AXPSearchDisplayResult } from "@acorex/platform/common";
2
+ import { Subject } from "rxjs";
3
+ export declare class AXPGlobalSearchViewModel {
4
+ private settingKeys;
5
+ private searchService;
6
+ private settingService;
7
+ private _text;
8
+ text: import("@angular/core").Signal<string | null>;
9
+ private _results;
10
+ results: import("@angular/core").Signal<AXPSearchDisplayGroupResult[]>;
11
+ private _isBusy;
12
+ isBusy: import("@angular/core").Signal<boolean>;
13
+ isEmpty: import("@angular/core").Signal<boolean | "" | null>;
14
+ isValid: import("@angular/core").Signal<boolean>;
15
+ isStart: import("@angular/core").Signal<boolean>;
16
+ isWelcome: import("@angular/core").Signal<boolean>;
17
+ private _recentItems;
18
+ private _pinnedItems;
19
+ pinnedItems: import("@angular/core").Signal<AXPSearchDisplayResult[]>;
20
+ recentItems: import("@angular/core").Signal<AXPSearchDisplayResult[]>;
21
+ readonly onItemSelected: Subject<AXPSearchDisplayResult>;
22
+ constructor();
23
+ search(text: string): Promise<void>;
24
+ execute(item: AXPSearchDisplayResult): Promise<void>;
25
+ pin(item: AXPSearchDisplayResult): Promise<void>;
26
+ unpin(item: AXPSearchDisplayResult): Promise<void>;
27
+ togglePin(item: AXPSearchDisplayResult): Promise<void>;
28
+ isPinned(item: AXPSearchDisplayResult): boolean;
29
+ private updateSelectionHistory;
30
+ private getTopRecentItems;
31
+ clearRecentItems(): Promise<void>;
32
+ private loadSettings;
33
+ private saveSettings;
34
+ }
@@ -0,0 +1,11 @@
1
+ import { AXPWorkflow, AXPWorkflowAction, AXPWorkflowContext } from '@acorex/platform/workflow';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXPGlobalSearchStartAction extends AXPWorkflowAction {
4
+ private popupService;
5
+ private workflow;
6
+ private config;
7
+ execute(context: AXPWorkflowContext): Promise<void>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPGlobalSearchStartAction, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPGlobalSearchStartAction>;
10
+ }
11
+ export declare const AXPGlobalSearchWorkflow: AXPWorkflow;
@@ -55,6 +55,7 @@ export declare class AXMDocumentExplorerComponent {
55
55
  initialize: (options?: {
56
56
  scope?: AXPPlatformScope;
57
57
  browseMode?: AXMDocumentExplorerBrowseMode;
58
+ filter?: any;
58
59
  }) => Promise<void>;
59
60
  navigateToFolder: (folderId: string) => void;
60
61
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -49,6 +49,7 @@ export declare const AXPDocumentExplorerViewModel: import("@angular/core").Type<
49
49
  initialize: (options?: {
50
50
  scope?: AXPPlatformScope;
51
51
  browseMode?: AXMDocumentExplorerBrowseMode;
52
+ filter?: any;
52
53
  }) => Promise<void>;
53
54
  navigateToFolder: (folderId: string) => void;
54
55
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -48,6 +48,7 @@ export declare class AXMDocumentExplorerDetailPanelComponent {
48
48
  initialize: (options?: {
49
49
  scope?: import("@acorex/platform/core").AXPPlatformScope;
50
50
  browseMode?: import("../../../drive").AXMDocumentExplorerBrowseMode;
51
+ filter?: any;
51
52
  }) => Promise<void>;
52
53
  navigateToFolder: (folderId: string) => void;
53
54
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -48,6 +48,7 @@ export declare class AXMDocumentExplorerDetailsViewComponent {
48
48
  initialize: (options?: {
49
49
  scope?: import("@acorex/platform/core").AXPPlatformScope;
50
50
  browseMode?: import("../../../drive").AXMDocumentExplorerBrowseMode;
51
+ filter?: any;
51
52
  }) => Promise<void>;
52
53
  navigateToFolder: (folderId: string) => void;
53
54
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -48,6 +48,7 @@ export declare class AXMDocumentExplorerLargeIconsViewComponent {
48
48
  initialize: (options?: {
49
49
  scope?: import("@acorex/platform/core").AXPPlatformScope;
50
50
  browseMode?: import("../../../drive").AXMDocumentExplorerBrowseMode;
51
+ filter?: any;
51
52
  }) => Promise<void>;
52
53
  navigateToFolder: (folderId: string) => void;
53
54
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -48,6 +48,7 @@ export declare class AXMDocumentExplorerLargeTilesViewComponent {
48
48
  initialize: (options?: {
49
49
  scope?: import("@acorex/platform/core").AXPPlatformScope;
50
50
  browseMode?: import("../../../drive").AXMDocumentExplorerBrowseMode;
51
+ filter?: any;
51
52
  }) => Promise<void>;
52
53
  navigateToFolder: (folderId: string) => void;
53
54
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -48,6 +48,7 @@ export declare class AXMDocumentExplorerListViewComponent {
48
48
  initialize: (options?: {
49
49
  scope?: import("@acorex/platform/core").AXPPlatformScope;
50
50
  browseMode?: import("../../../drive").AXMDocumentExplorerBrowseMode;
51
+ filter?: any;
51
52
  }) => Promise<void>;
52
53
  navigateToFolder: (folderId: string) => void;
53
54
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -48,6 +48,7 @@ export declare class AXMDocumentExplorerSmallIconsViewComponent {
48
48
  initialize: (options?: {
49
49
  scope?: import("@acorex/platform/core").AXPPlatformScope;
50
50
  browseMode?: import("../../../drive").AXMDocumentExplorerBrowseMode;
51
+ filter?: any;
51
52
  }) => Promise<void>;
52
53
  navigateToFolder: (folderId: string) => void;
53
54
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -48,6 +48,7 @@ export declare class AXMDocumentExplorerSmallTilesViewComponent {
48
48
  initialize: (options?: {
49
49
  scope?: import("@acorex/platform/core").AXPPlatformScope;
50
50
  browseMode?: import("../../../drive").AXMDocumentExplorerBrowseMode;
51
+ filter?: any;
51
52
  }) => Promise<void>;
52
53
  navigateToFolder: (folderId: string) => void;
53
54
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -106,6 +106,7 @@ export declare class AXMDocumentDriveComponent extends AXPBasePageComponent impl
106
106
  initialize: (options?: {
107
107
  scope?: AXPPlatformScope;
108
108
  browseMode?: import("../shared/document-manager.types").AXMDocumentExplorerBrowseMode;
109
+ filter?: any;
109
110
  }) => Promise<void>;
110
111
  navigateToFolder: (folderId: string) => void;
111
112
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -167,6 +167,7 @@ export declare class AXMDocumentDriveChooseComponent extends AXBasePageComponent
167
167
  initialize: (options?: {
168
168
  scope?: AXPPlatformScope;
169
169
  browseMode?: AXMDocumentExplorerBrowseMode;
170
+ filter?: any;
170
171
  }) => Promise<void>;
171
172
  navigateToFolder: (folderId: string) => void;
172
173
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -49,6 +49,7 @@ export declare class AXMFolderPathBreadcrumbsComponent {
49
49
  initialize: (options?: {
50
50
  scope?: import("@acorex/platform/core").AXPPlatformScope;
51
51
  browseMode?: import("../../document-manager.types").AXMDocumentExplorerBrowseMode;
52
+ filter?: any;
52
53
  }) => Promise<void>;
53
54
  navigateToFolder: (folderId: string) => void;
54
55
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -5,6 +5,7 @@ import { AXPPlatformScope } from '@acorex/platform/core';
5
5
  import { AXPValueWidgetComponent } from '@acorex/platform/layout/builder';
6
6
  import { AXMDocumentExplorerComponent } from '../../document-explorer';
7
7
  import { AXMDocumentExplorerNode, AXMDocumentManagerService } from '../../drive';
8
+ import { AXMDocumentManagementDocumentTypeEntityModel } from '../../../entities';
8
9
  import * as i0 from "@angular/core";
9
10
  export interface AXMDocumentAttachment {
10
11
  fileId: string;
@@ -18,7 +19,7 @@ export interface AXMDocumentAction {
18
19
  title: string;
19
20
  callback: () => Promise<File | undefined>;
20
21
  }
21
- export declare class AXMDocumentAttachmentWidgetEditComponent extends AXPValueWidgetComponent<void> {
22
+ export declare class AXMDocumentAttachmentWidgetEditComponent extends AXPValueWidgetComponent<AXMDocumentExplorerNode[]> {
22
23
  protected readonly vm: {
23
24
  viewMode: import("@angular/core").Signal<import("../../drive").AXPDocumentExplorerViewMode>;
24
25
  isLoading: import("@angular/core").Signal<boolean>;
@@ -67,6 +68,7 @@ export declare class AXMDocumentAttachmentWidgetEditComponent extends AXPValueWi
67
68
  initialize: (options?: {
68
69
  scope?: AXPPlatformScope;
69
70
  browseMode?: import("../../drive").AXMDocumentExplorerBrowseMode;
71
+ filter?: any;
70
72
  }) => Promise<void>;
71
73
  navigateToFolder: (folderId: string) => void;
72
74
  loadFolderContents: (folderId: string) => Promise<void>;
@@ -196,8 +198,7 @@ export declare class AXMDocumentAttachmentWidgetEditComponent extends AXPValueWi
196
198
  protected multiple: import("@angular/core").Signal<boolean>;
197
199
  protected entity: import("@angular/core").Signal<string>;
198
200
  protected entityRecordId: import("@angular/core").Signal<string>;
199
- protected initFiles: import("@angular/core").Signal<AXMDocumentExplorerNode[]>;
200
- protected onChange: import("@angular/core").Signal<((files: AXMDocumentExplorerNode[]) => void) | undefined>;
201
+ protected documentTypes: import("@angular/core").Signal<AXMDocumentManagementDocumentTypeEntityModel[]>;
201
202
  ngOnDestroy(): Promise<void>;
202
203
  ngOnInit(): Promise<void>;
203
204
  protected chooseFromDrive(scope: AXPPlatformScope): Promise<void>;
@@ -1,4 +1,8 @@
1
1
  import { AXPPermissionDefinitionProvider, AXPPermissionDefinitionProviderContext } from '@acorex/platform/auth';
2
+ import { Injector } from '@angular/core';
2
3
  export declare class AXMPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {
4
+ private injector;
5
+ private readonly translateService;
6
+ constructor(injector: Injector);
3
7
  define(context: AXPPermissionDefinitionProviderContext): Promise<void>;
4
8
  }
@@ -0,0 +1,19 @@
1
+ export declare const AXMPermissionsKeys: {
2
+ DocumentManagement: {
3
+ Management: string;
4
+ DocumentType: {
5
+ Management: string;
6
+ View: string;
7
+ Edit: string;
8
+ Delete: string;
9
+ Create: string;
10
+ };
11
+ Driver: {
12
+ Management: string;
13
+ View: string;
14
+ Edit: string;
15
+ Delete: string;
16
+ Create: string;
17
+ };
18
+ };
19
+ };
@@ -0,0 +1,128 @@
1
+ import * as i7 from '@acorex/cdk/list-navigation';
2
+ import { AXListNavigationDirective, AXListNavigationItemDirective, AXListNavigationModule } from '@acorex/cdk/list-navigation';
3
+ import * as i2$1 from '@acorex/components/button';
4
+ import { AXButtonModule } from '@acorex/components/button';
5
+ import { AXChipsModule } from '@acorex/components/chips';
6
+ import * as i4 from '@acorex/components/common';
7
+ import { AXCommonModule } from '@acorex/components/common';
8
+ import * as i3$1 from '@acorex/components/decorators';
9
+ import { AXDecoratorModule } from '@acorex/components/decorators';
10
+ import { AXBasePageComponent } from '@acorex/components/page';
11
+ import * as i3 from '@acorex/components/search-box';
12
+ import { AXSearchBoxComponent, AXSearchBoxModule } from '@acorex/components/search-box';
13
+ import * as i9 from '@acorex/components/skeleton';
14
+ import { AXSkeletonModule } from '@acorex/components/skeleton';
15
+ import * as i4$1 from '@acorex/core/translation';
16
+ import { AXTranslationModule } from '@acorex/core/translation';
17
+ import { AXPThemeLayoutBlockComponent, AXPThemeLayoutListComponent, AXPThemeLayoutListItemComponent, AXPThemeLayoutListItemsGroupComponent, AXPThemeLayoutHeaderComponent } from '@acorex/platform/themes/shared';
18
+ import * as i1 from '@angular/common';
19
+ import { CommonModule } from '@angular/common';
20
+ import * as i0 from '@angular/core';
21
+ import { inject, viewChild, viewChildren, ChangeDetectionStrategy, Component } from '@angular/core';
22
+ import * as i2 from '@angular/forms';
23
+ import { FormsModule } from '@angular/forms';
24
+ import { first } from 'rxjs';
25
+ import { AXPGlobalSearchViewModel } from './acorex-modules-common.mjs';
26
+
27
+ class AXPGlobalSearchPopupComponent extends AXBasePageComponent {
28
+ constructor() {
29
+ super(...arguments);
30
+ this.i18nScope = 'global-search';
31
+ this.vm = inject(AXPGlobalSearchViewModel);
32
+ this.text = null;
33
+ this.list = viewChild(AXListNavigationDirective);
34
+ this.searchBox = viewChild(AXSearchBoxComponent);
35
+ this.items = viewChildren(AXListNavigationItemDirective);
36
+ }
37
+ async handleTextChanged(e) {
38
+ if (e.isUserInteraction) {
39
+ await this.vm.search(e.value);
40
+ }
41
+ }
42
+ ngOnInit() {
43
+ super.ngOnInit();
44
+ //
45
+ this.vm.onItemSelected.pipe(first()).subscribe((item) => {
46
+ this.close(item);
47
+ });
48
+ }
49
+ handleSearchKeyDown(e) {
50
+ const event = e.nativeEvent;
51
+ switch (event.code) {
52
+ case 'ArrowDown':
53
+ const item = this.items()[0];
54
+ if (item && this.list()) {
55
+ this.list()?.navigateTo(item);
56
+ }
57
+ event.preventDefault();
58
+ event.stopPropagation();
59
+ break;
60
+ }
61
+ }
62
+ handleClearClick($event) {
63
+ this.vm.clearRecentItems();
64
+ }
65
+ handleListKeyDown(e) {
66
+ switch (e.code) {
67
+ case 'ArrowUp': {
68
+ const item = this.items()[0];
69
+ if (item && this.list() && item.isActive()) {
70
+ this.searchBox()?.focus();
71
+ }
72
+ break;
73
+ }
74
+ case 'Escape': {
75
+ this.searchBox()?.focus();
76
+ e.preventDefault();
77
+ e.stopPropagation();
78
+ break;
79
+ }
80
+ }
81
+ }
82
+ handleItemKeyDown(e, item) {
83
+ switch (e.code) {
84
+ case 'Enter':
85
+ case 'Space': {
86
+ e.preventDefault();
87
+ e.stopPropagation();
88
+ this.vm.execute(item);
89
+ break;
90
+ }
91
+ }
92
+ }
93
+ handlePinClick(e, item) {
94
+ e.stopPropagation();
95
+ this.vm.togglePin(item);
96
+ }
97
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPGlobalSearchPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
98
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPGlobalSearchPopupComponent, isStandalone: true, selector: "ng-component", providers: [AXPGlobalSearchViewModel], viewQueries: [{ propertyName: "list", first: true, predicate: AXListNavigationDirective, descendants: true, isSignal: true }, { propertyName: "searchBox", first: true, predicate: AXSearchBoxComponent, descendants: true, isSignal: true }, { propertyName: "items", predicate: AXListNavigationItemDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<axp-layout-content *translate=\"let t\">\n <axp-layout-header class=\"ax-lg\">\n <ax-search-box\n [axAutoFocus]\n [look]=\"'none'\"\n [ngModel]=\"vm.text()\"\n (onValueChanged)=\"handleTextChanged($event)\"\n [placeholder]=\"t('search-anything', { scope: i18nScope }) | async\"\n (onKeyDown)=\"handleSearchKeyDown($event)\"\n ></ax-search-box>\n <div class=\"__close-button\">\n <ax-button [look]=\"'blank'\" class=\"ax-rounded-full\" (onClick)=\"close()\">\n <ax-icon icon=\"fa-light fa-xmark fa-sm\"></ax-icon>\n </ax-button>\n </div>\n </axp-layout-header>\n\n <!-- Results Area -->\n <axp-layout-body>\n @if(vm.isBusy()) {\n <ng-container *ngTemplateOutlet=\"skeleton\"></ng-container>\n } @else if(vm.isEmpty()) {\n <ng-container *ngTemplateOutlet=\"empty\"></ng-container>\n } @else if(vm.isWelcome()) {\n <ng-container *ngTemplateOutlet=\"welcome\"></ng-container>\n } @else if(vm.isStart()) {\n <ng-container *ngTemplateOutlet=\"start\"></ng-container>\n } @else {\n <ng-container *ngTemplateOutlet=\"result\"></ng-container>\n }\n </axp-layout-body>\n\n <!-- Skeleton Template -->\n <ng-template #skeleton>\n <div class=\"ax-flex ax-flex-col ax-gap-10 ax-p-8\">\n @for (item of [1,2,3,4,5]; track $index) {\n <div class=\"ax-flex ax-items-center ax-gap-4\">\n <ax-skeleton [animated]=\"true\" class=\"ax-w-4 ax-h-4 ax-rounded-full\"></ax-skeleton>\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-flex-1\">\n <ax-skeleton [animated]=\"true\" class=\"ax-w-1/4 ax-h-2 ax-rounded\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"ax-w-1/2 ax-h-2 ax-rounded\"></ax-skeleton>\n </div>\n </div>\n }\n </div>\n </ng-template>\n\n <!-- Empty Template -->\n <ng-template #empty>\n <div class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-h-full ax-rounded-md ax-p-8\">\n <!-- Icon -->\n <div class=\"ax-mb-4\">\n <i class=\"fas fa-search ax-text-gray-400 ax-text-4xl\"></i>\n </div>\n <!-- Message -->\n <div class=\"ax-text-center\">\n <h2 class=\"ax-text-lg ax-font-semibold\">{{ t('no-result.title', { scope: i18nScope }) | async }}</h2>\n <p class=\"ax-mt-2 ax-leading-relaxed\">\n {{ t('no-result.message', { scope: i18nScope }) | async }}\n </p>\n </div>\n </div>\n </ng-template>\n\n <!-- Welcome Template -->\n <ng-template #welcome>\n <div class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-h-full ax-rounded-md ax-p-8\">\n <!-- Icon -->\n <div class=\"ax-mb-4\">\n <i class=\"fas fa-search ax-text-gray-400 ax-text-4xl\"></i>\n </div>\n <!-- Message -->\n <div class=\"ax-text-center\">\n <h2 class=\"ax-text-lg ax-font-semibold\">{{ t('start.title', { scope: i18nScope }) | async }}</h2>\n <p class=\"ax-mt-2\">{{ t('start.message', { scope: i18nScope }) | async }}</p>\n </div>\n </div>\n </ng-template>\n\n <!-- Start Template -->\n <ng-template #start>\n <!-- Pinned Items -->\n <axp-layout-list\n *translate=\"let t\"\n class=\"ax-p-4 ax-divide-none\"\n (keydown)=\"handleListKeyDown($event)\"\n axListNavigation\n #list=\"axListNavigation\"\n >\n @if(vm.pinnedItems().length>0) {\n <axp-layout-list-group>\n <axp-layout-title>{{ t('pinned', { scope: i18nScope }) | async }}</axp-layout-title>\n @for (item of vm.pinnedItems(); track $index) {\n <axp-layout-list-item\n (click)=\"vm.execute(item)\"\n (keydown)=\"handleItemKeyDown($event, item)\"\n class=\"ax-group\"\n axListNavigationItem\n #i=\"axListNavigationItem\"\n [class.axp-state-focused]=\"i.isActive()\"\n >\n <ng-container [ngTemplateOutlet]=\"listItem\" [ngTemplateOutletContext]=\"{item}\"></ng-container>\n </axp-layout-list-item>\n }\n </axp-layout-list-group>\n }\n <!-- Recent Items -->\n @if(vm.recentItems().length>0) {\n <axp-layout-list-group>\n <axp-layout-header>\n <axp-layout-prefix>\n <axp-layout-title>{{ t('recent', { scope: i18nScope }) | async }}</axp-layout-title>\n </axp-layout-prefix>\n <axp-layout-prefix class=\"ax-xs\">\n <ax-button\n [text]=\"t('clear', { scope: i18nScope }) | async\"\n look=\"blank\"\n [color]=\"'default'\"\n (onClick)=\"handleClearClick($event)\"\n ></ax-button>\n </axp-layout-prefix>\n </axp-layout-header>\n @for (item of vm.recentItems(); track $index) {\n <axp-layout-list-item\n (click)=\"vm.execute(item)\"\n (keydown)=\"handleItemKeyDown($event, item)\"\n class=\"ax-group\"\n axListNavigationItem\n #i=\"axListNavigationItem\"\n [class.axp-state-focused]=\"i.isActive()\"\n >\n <ng-container [ngTemplateOutlet]=\"listItem\" [ngTemplateOutletContext]=\"{item}\"></ng-container>\n </axp-layout-list-item>\n }\n </axp-layout-list-group>\n }\n </axp-layout-list>\n </ng-template>\n\n <!-- Result Template -->\n <ng-template #result>\n <axp-layout-list\n class=\"ax-p-4 ax-divide-none\"\n (keydown)=\"handleListKeyDown($event)\"\n axListNavigation\n #list=\"axListNavigation\"\n >\n @for (group of vm.results(); track $index) {\n <axp-layout-list-group>\n <axp-layout-title> {{ t(group.title) | async }}</axp-layout-title>\n @for (item of group.children; track $index) {\n <axp-layout-list-item\n (click)=\"vm.execute(item)\"\n (keydown)=\"handleItemKeyDown($event, item)\"\n class=\"ax-group\"\n axListNavigationItem\n #i=\"axListNavigationItem\"\n [class.axp-state-focused]=\"i.isActive()\"\n >\n <ng-container [ngTemplateOutlet]=\"listItem\" [ngTemplateOutletContext]=\"{item}\"></ng-container>\n </axp-layout-list-item>\n }\n </axp-layout-list-group>\n }\n </axp-layout-list>\n </ng-template>\n\n <ng-template #listItem let-item=\"item\">\n <axp-layout-prefix>\n <ax-icon icon=\"fal {{ item.icon }}\"></ax-icon>\n </axp-layout-prefix>\n <axp-layout-content>\n <axp-layout-title class=\"ax-group\">\n <span>{{ t(item.title) | async }}</span>\n <span class=\"ax-ms-3\" (click)=\"handlePinClick($event, item)\">\n <i\n [class.ax-invisible]=\"!vm.isPinned(item)\"\n class=\"fa-light fa-thumbtack ax-rotate-45 group-hover:!ax-visible\"\n [class.fa-solid]=\"vm.isPinned(item)\"\n ></i>\n </span>\n </axp-layout-title>\n @if(item.parent) {\n <axp-layout-description>\n {{ t(item.parent.title) | async }}\n </axp-layout-description>\n }@else if (item.description) {\n <axp-layout-description>\n {{ t(item.description) | async }}\n </axp-layout-description>\n }\n </axp-layout-content>\n <axp-layout-suffix>\n <i class=\"far fa-chevron-right rtl:ax-rotate-180\"></i>\n </axp-layout-suffix>\n </ng-template>\n</axp-layout-content>\n", styles: [":host .ax-editor-container:focus-within{outline-style:none}:host>axp-layout-content{display:flex;flex-direction:column;background-color:rgb(var(--ax-sys-color-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface));border-color:rgb(var(--ax-sys-color-border-lightest-surface));width:90vw;max-width:36rem}@media (min-width: 640px){:host>axp-layout-content{width:80vw}}@media (min-width: 768px){:host>axp-layout-content{width:60vw}}@media (min-width: 1024px){:host>axp-layout-content{width:40vw}}@media (min-width: 1280px){:host>axp-layout-content{width:30vw}}:host>axp-layout-content>axp-layout-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom-width:1px;background-color:rgb(var(--ax-sys-color-lighter-surface));color:rgb(var(--ax-sys-color-on-lighter-surface));border-color:rgb(var(--ax-sys-color-border-lighter-surface))}:host>axp-layout-content>axp-layout-header>.__close-button{position:absolute;inset-inline-end:1rem;top:1rem;--ax-sys-size-base: 2rem}:host>axp-layout-content>axp-layout-body{display:flex;flex-direction:column}:host>axp-layout-content>axp-layout-body>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}:host>axp-layout-content>axp-layout-body{overflow-y:auto;border-radius:.375rem;max-height:50vh;min-height:30vh}@media (min-width: 640px){:host>axp-layout-content>axp-layout-body{max-height:60vh;min-height:40vh}}@media (min-width: 768px){:host>axp-layout-content>axp-layout-body{max-height:70vh;min-height:50vh}}@media (min-width: 1024px){:host>axp-layout-content>axp-layout-body{max-height:80vh;min-height:40vh}}:host>axp-layout-content>axp-layout-body .axp-search-recent{display:flex;flex-direction:column;padding:1rem}:host>axp-layout-content>axp-layout-body .axp-search-recent>axp-layout-header{margin-bottom:.5rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:.875rem;line-height:1.25rem;font-weight:600}:host>axp-layout-content>axp-layout-body .axp-search-recent>axp-layout-body{display:flex;flex-direction:row;flex-wrap:wrap;gap:.5rem;border-radius:.375rem}:host>axp-layout-content axp-layout-list-item axp-layout-prefix ax-icon{display:flex;height:2.25rem;width:2.25rem;align-items:center;justify-content:center;border-radius:.375rem;background-color:rgb(var(--ax-sys-color-dark-surface));color:rgb(var(--ax-sys-color-on-dark-surface));border-color:rgb(var(--ax-sys-color-border-dark-surface))}:host>axp-layout-content axp-layout-list-item axp-layout-prefix ax-icon:is(.ax-dark *){background-color:rgb(var(--ax-sys-color-darker-surface));color:rgb(var(--ax-sys-color-on-darker-surface));border-color:rgb(var(--ax-sys-color-border-darker-surface))}:host>axp-layout-content axp-layout-list-item axp-layout-prefix ax-icon{font-size:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type:
99
+ //
100
+ AXSearchBoxModule }, { kind: "component", type: i3.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXCommonModule }, { kind: "directive", type: i4.AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "axAutoFocusTime"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i4$1.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXListNavigationModule }, { kind: "directive", type: i7.AXListNavigationDirective, selector: "[axListNavigation]", inputs: ["orientation"], outputs: ["onNavigationChanged", "onPressEnterOrSpace"], exportAs: ["axListNavigation"] }, { kind: "directive", type: i7.AXListNavigationItemDirective, selector: "[axListNavigationItem]", exportAs: ["axListNavigationItem"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type:
101
+ //
102
+ AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer, axp-page-header, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-container, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i9.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXChipsModule }, { kind: "component", type: AXPThemeLayoutListComponent, selector: "axp-layout-list" }, { kind: "component", type: AXPThemeLayoutListItemComponent, selector: "axp-layout-list-item" }, { kind: "component", type: AXPThemeLayoutListItemsGroupComponent, selector: "axp-layout-list-group" }, { kind: "component", type: AXPThemeLayoutHeaderComponent, selector: "axp-layout-header" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
103
+ }
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPGlobalSearchPopupComponent, decorators: [{
105
+ type: Component,
106
+ args: [{ imports: [
107
+ CommonModule,
108
+ FormsModule,
109
+ //
110
+ AXSearchBoxModule,
111
+ AXCommonModule,
112
+ AXDecoratorModule,
113
+ AXTranslationModule,
114
+ AXListNavigationModule,
115
+ AXButtonModule,
116
+ //
117
+ AXPThemeLayoutBlockComponent,
118
+ AXSkeletonModule,
119
+ AXChipsModule,
120
+ AXPThemeLayoutListComponent,
121
+ AXPThemeLayoutListItemComponent,
122
+ AXPThemeLayoutListItemsGroupComponent,
123
+ AXPThemeLayoutHeaderComponent,
124
+ ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [AXPGlobalSearchViewModel], template: "<axp-layout-content *translate=\"let t\">\n <axp-layout-header class=\"ax-lg\">\n <ax-search-box\n [axAutoFocus]\n [look]=\"'none'\"\n [ngModel]=\"vm.text()\"\n (onValueChanged)=\"handleTextChanged($event)\"\n [placeholder]=\"t('search-anything', { scope: i18nScope }) | async\"\n (onKeyDown)=\"handleSearchKeyDown($event)\"\n ></ax-search-box>\n <div class=\"__close-button\">\n <ax-button [look]=\"'blank'\" class=\"ax-rounded-full\" (onClick)=\"close()\">\n <ax-icon icon=\"fa-light fa-xmark fa-sm\"></ax-icon>\n </ax-button>\n </div>\n </axp-layout-header>\n\n <!-- Results Area -->\n <axp-layout-body>\n @if(vm.isBusy()) {\n <ng-container *ngTemplateOutlet=\"skeleton\"></ng-container>\n } @else if(vm.isEmpty()) {\n <ng-container *ngTemplateOutlet=\"empty\"></ng-container>\n } @else if(vm.isWelcome()) {\n <ng-container *ngTemplateOutlet=\"welcome\"></ng-container>\n } @else if(vm.isStart()) {\n <ng-container *ngTemplateOutlet=\"start\"></ng-container>\n } @else {\n <ng-container *ngTemplateOutlet=\"result\"></ng-container>\n }\n </axp-layout-body>\n\n <!-- Skeleton Template -->\n <ng-template #skeleton>\n <div class=\"ax-flex ax-flex-col ax-gap-10 ax-p-8\">\n @for (item of [1,2,3,4,5]; track $index) {\n <div class=\"ax-flex ax-items-center ax-gap-4\">\n <ax-skeleton [animated]=\"true\" class=\"ax-w-4 ax-h-4 ax-rounded-full\"></ax-skeleton>\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-flex-1\">\n <ax-skeleton [animated]=\"true\" class=\"ax-w-1/4 ax-h-2 ax-rounded\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"ax-w-1/2 ax-h-2 ax-rounded\"></ax-skeleton>\n </div>\n </div>\n }\n </div>\n </ng-template>\n\n <!-- Empty Template -->\n <ng-template #empty>\n <div class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-h-full ax-rounded-md ax-p-8\">\n <!-- Icon -->\n <div class=\"ax-mb-4\">\n <i class=\"fas fa-search ax-text-gray-400 ax-text-4xl\"></i>\n </div>\n <!-- Message -->\n <div class=\"ax-text-center\">\n <h2 class=\"ax-text-lg ax-font-semibold\">{{ t('no-result.title', { scope: i18nScope }) | async }}</h2>\n <p class=\"ax-mt-2 ax-leading-relaxed\">\n {{ t('no-result.message', { scope: i18nScope }) | async }}\n </p>\n </div>\n </div>\n </ng-template>\n\n <!-- Welcome Template -->\n <ng-template #welcome>\n <div class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-h-full ax-rounded-md ax-p-8\">\n <!-- Icon -->\n <div class=\"ax-mb-4\">\n <i class=\"fas fa-search ax-text-gray-400 ax-text-4xl\"></i>\n </div>\n <!-- Message -->\n <div class=\"ax-text-center\">\n <h2 class=\"ax-text-lg ax-font-semibold\">{{ t('start.title', { scope: i18nScope }) | async }}</h2>\n <p class=\"ax-mt-2\">{{ t('start.message', { scope: i18nScope }) | async }}</p>\n </div>\n </div>\n </ng-template>\n\n <!-- Start Template -->\n <ng-template #start>\n <!-- Pinned Items -->\n <axp-layout-list\n *translate=\"let t\"\n class=\"ax-p-4 ax-divide-none\"\n (keydown)=\"handleListKeyDown($event)\"\n axListNavigation\n #list=\"axListNavigation\"\n >\n @if(vm.pinnedItems().length>0) {\n <axp-layout-list-group>\n <axp-layout-title>{{ t('pinned', { scope: i18nScope }) | async }}</axp-layout-title>\n @for (item of vm.pinnedItems(); track $index) {\n <axp-layout-list-item\n (click)=\"vm.execute(item)\"\n (keydown)=\"handleItemKeyDown($event, item)\"\n class=\"ax-group\"\n axListNavigationItem\n #i=\"axListNavigationItem\"\n [class.axp-state-focused]=\"i.isActive()\"\n >\n <ng-container [ngTemplateOutlet]=\"listItem\" [ngTemplateOutletContext]=\"{item}\"></ng-container>\n </axp-layout-list-item>\n }\n </axp-layout-list-group>\n }\n <!-- Recent Items -->\n @if(vm.recentItems().length>0) {\n <axp-layout-list-group>\n <axp-layout-header>\n <axp-layout-prefix>\n <axp-layout-title>{{ t('recent', { scope: i18nScope }) | async }}</axp-layout-title>\n </axp-layout-prefix>\n <axp-layout-prefix class=\"ax-xs\">\n <ax-button\n [text]=\"t('clear', { scope: i18nScope }) | async\"\n look=\"blank\"\n [color]=\"'default'\"\n (onClick)=\"handleClearClick($event)\"\n ></ax-button>\n </axp-layout-prefix>\n </axp-layout-header>\n @for (item of vm.recentItems(); track $index) {\n <axp-layout-list-item\n (click)=\"vm.execute(item)\"\n (keydown)=\"handleItemKeyDown($event, item)\"\n class=\"ax-group\"\n axListNavigationItem\n #i=\"axListNavigationItem\"\n [class.axp-state-focused]=\"i.isActive()\"\n >\n <ng-container [ngTemplateOutlet]=\"listItem\" [ngTemplateOutletContext]=\"{item}\"></ng-container>\n </axp-layout-list-item>\n }\n </axp-layout-list-group>\n }\n </axp-layout-list>\n </ng-template>\n\n <!-- Result Template -->\n <ng-template #result>\n <axp-layout-list\n class=\"ax-p-4 ax-divide-none\"\n (keydown)=\"handleListKeyDown($event)\"\n axListNavigation\n #list=\"axListNavigation\"\n >\n @for (group of vm.results(); track $index) {\n <axp-layout-list-group>\n <axp-layout-title> {{ t(group.title) | async }}</axp-layout-title>\n @for (item of group.children; track $index) {\n <axp-layout-list-item\n (click)=\"vm.execute(item)\"\n (keydown)=\"handleItemKeyDown($event, item)\"\n class=\"ax-group\"\n axListNavigationItem\n #i=\"axListNavigationItem\"\n [class.axp-state-focused]=\"i.isActive()\"\n >\n <ng-container [ngTemplateOutlet]=\"listItem\" [ngTemplateOutletContext]=\"{item}\"></ng-container>\n </axp-layout-list-item>\n }\n </axp-layout-list-group>\n }\n </axp-layout-list>\n </ng-template>\n\n <ng-template #listItem let-item=\"item\">\n <axp-layout-prefix>\n <ax-icon icon=\"fal {{ item.icon }}\"></ax-icon>\n </axp-layout-prefix>\n <axp-layout-content>\n <axp-layout-title class=\"ax-group\">\n <span>{{ t(item.title) | async }}</span>\n <span class=\"ax-ms-3\" (click)=\"handlePinClick($event, item)\">\n <i\n [class.ax-invisible]=\"!vm.isPinned(item)\"\n class=\"fa-light fa-thumbtack ax-rotate-45 group-hover:!ax-visible\"\n [class.fa-solid]=\"vm.isPinned(item)\"\n ></i>\n </span>\n </axp-layout-title>\n @if(item.parent) {\n <axp-layout-description>\n {{ t(item.parent.title) | async }}\n </axp-layout-description>\n }@else if (item.description) {\n <axp-layout-description>\n {{ t(item.description) | async }}\n </axp-layout-description>\n }\n </axp-layout-content>\n <axp-layout-suffix>\n <i class=\"far fa-chevron-right rtl:ax-rotate-180\"></i>\n </axp-layout-suffix>\n </ng-template>\n</axp-layout-content>\n", styles: [":host .ax-editor-container:focus-within{outline-style:none}:host>axp-layout-content{display:flex;flex-direction:column;background-color:rgb(var(--ax-sys-color-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface));border-color:rgb(var(--ax-sys-color-border-lightest-surface));width:90vw;max-width:36rem}@media (min-width: 640px){:host>axp-layout-content{width:80vw}}@media (min-width: 768px){:host>axp-layout-content{width:60vw}}@media (min-width: 1024px){:host>axp-layout-content{width:40vw}}@media (min-width: 1280px){:host>axp-layout-content{width:30vw}}:host>axp-layout-content>axp-layout-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom-width:1px;background-color:rgb(var(--ax-sys-color-lighter-surface));color:rgb(var(--ax-sys-color-on-lighter-surface));border-color:rgb(var(--ax-sys-color-border-lighter-surface))}:host>axp-layout-content>axp-layout-header>.__close-button{position:absolute;inset-inline-end:1rem;top:1rem;--ax-sys-size-base: 2rem}:host>axp-layout-content>axp-layout-body{display:flex;flex-direction:column}:host>axp-layout-content>axp-layout-body>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}:host>axp-layout-content>axp-layout-body{overflow-y:auto;border-radius:.375rem;max-height:50vh;min-height:30vh}@media (min-width: 640px){:host>axp-layout-content>axp-layout-body{max-height:60vh;min-height:40vh}}@media (min-width: 768px){:host>axp-layout-content>axp-layout-body{max-height:70vh;min-height:50vh}}@media (min-width: 1024px){:host>axp-layout-content>axp-layout-body{max-height:80vh;min-height:40vh}}:host>axp-layout-content>axp-layout-body .axp-search-recent{display:flex;flex-direction:column;padding:1rem}:host>axp-layout-content>axp-layout-body .axp-search-recent>axp-layout-header{margin-bottom:.5rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:.875rem;line-height:1.25rem;font-weight:600}:host>axp-layout-content>axp-layout-body .axp-search-recent>axp-layout-body{display:flex;flex-direction:row;flex-wrap:wrap;gap:.5rem;border-radius:.375rem}:host>axp-layout-content axp-layout-list-item axp-layout-prefix ax-icon{display:flex;height:2.25rem;width:2.25rem;align-items:center;justify-content:center;border-radius:.375rem;background-color:rgb(var(--ax-sys-color-dark-surface));color:rgb(var(--ax-sys-color-on-dark-surface));border-color:rgb(var(--ax-sys-color-border-dark-surface))}:host>axp-layout-content axp-layout-list-item axp-layout-prefix ax-icon:is(.ax-dark *){background-color:rgb(var(--ax-sys-color-darker-surface));color:rgb(var(--ax-sys-color-on-darker-surface));border-color:rgb(var(--ax-sys-color-border-darker-surface))}:host>axp-layout-content axp-layout-list-item axp-layout-prefix ax-icon{font-size:1rem}\n"] }]
125
+ }] });
126
+
127
+ export { AXPGlobalSearchPopupComponent };
128
+ //# sourceMappingURL=acorex-modules-common-search-popup.component-C3XUb6pF.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-common-search-popup.component-C3XUb6pF.mjs","sources":["../../../../libs/modules/common/src/lib/features/global-search/search-popup.component.ts","../../../../libs/modules/common/src/lib/features/global-search/search-popup.component.html"],"sourcesContent":["import {\n AXListNavigationDirective,\n AXListNavigationItemDirective,\n AXListNavigationModule,\n} from '@acorex/cdk/list-navigation';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXChipsModule } from '@acorex/components/chips';\nimport { AXClickEvent, AXCommonModule, AXHtmlEvent, AXValueChangedEvent } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXSearchBoxComponent, AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSearchDisplayResult } from '@acorex/platform/common';\nimport {\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutHeaderComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPThemeLayoutListItemsGroupComponent,\n} from '@acorex/platform/themes/shared';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, viewChild, viewChildren } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { first } from 'rxjs';\nimport { AXPGlobalSearchViewModel } from './search.viewmodel';\n\n@Component({\n templateUrl: 'search-popup.component.html',\n styleUrl: 'search-popup.component.scss',\n imports: [\n CommonModule,\n FormsModule,\n //\n AXSearchBoxModule,\n AXCommonModule,\n AXDecoratorModule,\n AXTranslationModule,\n AXListNavigationModule,\n AXButtonModule,\n //\n AXPThemeLayoutBlockComponent,\n AXSkeletonModule,\n AXChipsModule,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPThemeLayoutListItemsGroupComponent,\n AXPThemeLayoutHeaderComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [AXPGlobalSearchViewModel],\n})\nexport class AXPGlobalSearchPopupComponent extends AXBasePageComponent {\n\n\n protected i18nScope = 'global-search';\n\n protected vm = inject(AXPGlobalSearchViewModel);\n\n protected text: string | null = null;\n\n private list = viewChild(AXListNavigationDirective);\n private searchBox = viewChild(AXSearchBoxComponent);\n private items = viewChildren(AXListNavigationItemDirective);\n\n async handleTextChanged(e: AXValueChangedEvent<string>) {\n if (e.isUserInteraction) {\n await this.vm.search(e.value!);\n }\n }\n\n protected override ngOnInit() {\n super.ngOnInit();\n //\n this.vm.onItemSelected.pipe(first()).subscribe((item) => {\n this.close(item);\n });\n }\n\n protected handleSearchKeyDown(e: AXHtmlEvent<KeyboardEvent>) {\n const event = e.nativeEvent!;\n switch (event.code) {\n case 'ArrowDown':\n const item = this.items()[0];\n if (item && this.list()) {\n this.list()?.navigateTo(item);\n }\n event.preventDefault();\n event.stopPropagation();\n break;\n }\n }\n\n protected handleClearClick($event: AXClickEvent) {\n this.vm.clearRecentItems();\n }\n\n protected handleListKeyDown(e: KeyboardEvent) {\n switch (e.code) {\n case 'ArrowUp': {\n const item = this.items()[0];\n if (item && this.list() && item.isActive()) {\n this.searchBox()?.focus();\n }\n break;\n }\n case 'Escape': {\n this.searchBox()?.focus();\n e.preventDefault();\n e.stopPropagation();\n break;\n }\n }\n }\n\n protected handleItemKeyDown(e: KeyboardEvent, item: AXPSearchDisplayResult) {\n switch (e.code) {\n case 'Enter':\n case 'Space': {\n e.preventDefault();\n e.stopPropagation();\n this.vm.execute(item);\n break;\n }\n }\n }\n\n protected handlePinClick(e: Event, item: any) {\n e.stopPropagation();\n this.vm.togglePin(item);\n }\n}\n","<axp-layout-content *translate=\"let t\">\n <axp-layout-header class=\"ax-lg\">\n <ax-search-box\n [axAutoFocus]\n [look]=\"'none'\"\n [ngModel]=\"vm.text()\"\n (onValueChanged)=\"handleTextChanged($event)\"\n [placeholder]=\"t('search-anything', { scope: i18nScope }) | async\"\n (onKeyDown)=\"handleSearchKeyDown($event)\"\n ></ax-search-box>\n <div class=\"__close-button\">\n <ax-button [look]=\"'blank'\" class=\"ax-rounded-full\" (onClick)=\"close()\">\n <ax-icon icon=\"fa-light fa-xmark fa-sm\"></ax-icon>\n </ax-button>\n </div>\n </axp-layout-header>\n\n <!-- Results Area -->\n <axp-layout-body>\n @if(vm.isBusy()) {\n <ng-container *ngTemplateOutlet=\"skeleton\"></ng-container>\n } @else if(vm.isEmpty()) {\n <ng-container *ngTemplateOutlet=\"empty\"></ng-container>\n } @else if(vm.isWelcome()) {\n <ng-container *ngTemplateOutlet=\"welcome\"></ng-container>\n } @else if(vm.isStart()) {\n <ng-container *ngTemplateOutlet=\"start\"></ng-container>\n } @else {\n <ng-container *ngTemplateOutlet=\"result\"></ng-container>\n }\n </axp-layout-body>\n\n <!-- Skeleton Template -->\n <ng-template #skeleton>\n <div class=\"ax-flex ax-flex-col ax-gap-10 ax-p-8\">\n @for (item of [1,2,3,4,5]; track $index) {\n <div class=\"ax-flex ax-items-center ax-gap-4\">\n <ax-skeleton [animated]=\"true\" class=\"ax-w-4 ax-h-4 ax-rounded-full\"></ax-skeleton>\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-flex-1\">\n <ax-skeleton [animated]=\"true\" class=\"ax-w-1/4 ax-h-2 ax-rounded\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"ax-w-1/2 ax-h-2 ax-rounded\"></ax-skeleton>\n </div>\n </div>\n }\n </div>\n </ng-template>\n\n <!-- Empty Template -->\n <ng-template #empty>\n <div class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-h-full ax-rounded-md ax-p-8\">\n <!-- Icon -->\n <div class=\"ax-mb-4\">\n <i class=\"fas fa-search ax-text-gray-400 ax-text-4xl\"></i>\n </div>\n <!-- Message -->\n <div class=\"ax-text-center\">\n <h2 class=\"ax-text-lg ax-font-semibold\">{{ t('no-result.title', { scope: i18nScope }) | async }}</h2>\n <p class=\"ax-mt-2 ax-leading-relaxed\">\n {{ t('no-result.message', { scope: i18nScope }) | async }}\n </p>\n </div>\n </div>\n </ng-template>\n\n <!-- Welcome Template -->\n <ng-template #welcome>\n <div class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-h-full ax-rounded-md ax-p-8\">\n <!-- Icon -->\n <div class=\"ax-mb-4\">\n <i class=\"fas fa-search ax-text-gray-400 ax-text-4xl\"></i>\n </div>\n <!-- Message -->\n <div class=\"ax-text-center\">\n <h2 class=\"ax-text-lg ax-font-semibold\">{{ t('start.title', { scope: i18nScope }) | async }}</h2>\n <p class=\"ax-mt-2\">{{ t('start.message', { scope: i18nScope }) | async }}</p>\n </div>\n </div>\n </ng-template>\n\n <!-- Start Template -->\n <ng-template #start>\n <!-- Pinned Items -->\n <axp-layout-list\n *translate=\"let t\"\n class=\"ax-p-4 ax-divide-none\"\n (keydown)=\"handleListKeyDown($event)\"\n axListNavigation\n #list=\"axListNavigation\"\n >\n @if(vm.pinnedItems().length>0) {\n <axp-layout-list-group>\n <axp-layout-title>{{ t('pinned', { scope: i18nScope }) | async }}</axp-layout-title>\n @for (item of vm.pinnedItems(); track $index) {\n <axp-layout-list-item\n (click)=\"vm.execute(item)\"\n (keydown)=\"handleItemKeyDown($event, item)\"\n class=\"ax-group\"\n axListNavigationItem\n #i=\"axListNavigationItem\"\n [class.axp-state-focused]=\"i.isActive()\"\n >\n <ng-container [ngTemplateOutlet]=\"listItem\" [ngTemplateOutletContext]=\"{item}\"></ng-container>\n </axp-layout-list-item>\n }\n </axp-layout-list-group>\n }\n <!-- Recent Items -->\n @if(vm.recentItems().length>0) {\n <axp-layout-list-group>\n <axp-layout-header>\n <axp-layout-prefix>\n <axp-layout-title>{{ t('recent', { scope: i18nScope }) | async }}</axp-layout-title>\n </axp-layout-prefix>\n <axp-layout-prefix class=\"ax-xs\">\n <ax-button\n [text]=\"t('clear', { scope: i18nScope }) | async\"\n look=\"blank\"\n [color]=\"'default'\"\n (onClick)=\"handleClearClick($event)\"\n ></ax-button>\n </axp-layout-prefix>\n </axp-layout-header>\n @for (item of vm.recentItems(); track $index) {\n <axp-layout-list-item\n (click)=\"vm.execute(item)\"\n (keydown)=\"handleItemKeyDown($event, item)\"\n class=\"ax-group\"\n axListNavigationItem\n #i=\"axListNavigationItem\"\n [class.axp-state-focused]=\"i.isActive()\"\n >\n <ng-container [ngTemplateOutlet]=\"listItem\" [ngTemplateOutletContext]=\"{item}\"></ng-container>\n </axp-layout-list-item>\n }\n </axp-layout-list-group>\n }\n </axp-layout-list>\n </ng-template>\n\n <!-- Result Template -->\n <ng-template #result>\n <axp-layout-list\n class=\"ax-p-4 ax-divide-none\"\n (keydown)=\"handleListKeyDown($event)\"\n axListNavigation\n #list=\"axListNavigation\"\n >\n @for (group of vm.results(); track $index) {\n <axp-layout-list-group>\n <axp-layout-title> {{ t(group.title) | async }}</axp-layout-title>\n @for (item of group.children; track $index) {\n <axp-layout-list-item\n (click)=\"vm.execute(item)\"\n (keydown)=\"handleItemKeyDown($event, item)\"\n class=\"ax-group\"\n axListNavigationItem\n #i=\"axListNavigationItem\"\n [class.axp-state-focused]=\"i.isActive()\"\n >\n <ng-container [ngTemplateOutlet]=\"listItem\" [ngTemplateOutletContext]=\"{item}\"></ng-container>\n </axp-layout-list-item>\n }\n </axp-layout-list-group>\n }\n </axp-layout-list>\n </ng-template>\n\n <ng-template #listItem let-item=\"item\">\n <axp-layout-prefix>\n <ax-icon icon=\"fal {{ item.icon }}\"></ax-icon>\n </axp-layout-prefix>\n <axp-layout-content>\n <axp-layout-title class=\"ax-group\">\n <span>{{ t(item.title) | async }}</span>\n <span class=\"ax-ms-3\" (click)=\"handlePinClick($event, item)\">\n <i\n [class.ax-invisible]=\"!vm.isPinned(item)\"\n class=\"fa-light fa-thumbtack ax-rotate-45 group-hover:!ax-visible\"\n [class.fa-solid]=\"vm.isPinned(item)\"\n ></i>\n </span>\n </axp-layout-title>\n @if(item.parent) {\n <axp-layout-description>\n {{ t(item.parent.title) | async }}\n </axp-layout-description>\n }@else if (item.description) {\n <axp-layout-description>\n {{ t(item.description) | async }}\n </axp-layout-description>\n }\n </axp-layout-content>\n <axp-layout-suffix>\n <i class=\"far fa-chevron-right rtl:ax-rotate-180\"></i>\n </axp-layout-suffix>\n </ng-template>\n</axp-layout-content>\n"],"names":["i6","i8"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoDM,MAAO,6BAA8B,SAAQ,mBAAmB,CAAA;AAzBtE,IAAA,WAAA,GAAA;;QA4BY,IAAS,CAAA,SAAA,GAAG,eAAe;AAE3B,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,wBAAwB,CAAC;QAErC,IAAI,CAAA,IAAA,GAAkB,IAAI;AAE5B,QAAA,IAAA,CAAA,IAAI,GAAG,SAAS,CAAC,yBAAyB,CAAC;AAC3C,QAAA,IAAA,CAAA,SAAS,GAAG,SAAS,CAAC,oBAAoB,CAAC;AAC3C,QAAA,IAAA,CAAA,KAAK,GAAG,YAAY,CAAC,6BAA6B,CAAC;AAoE5D;IAlEC,MAAM,iBAAiB,CAAC,CAA8B,EAAA;AACpD,QAAA,IAAI,CAAC,CAAC,iBAAiB,EAAE;YACvB,MAAM,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAM,CAAC;;;IAIf,QAAQ,GAAA;QACzB,KAAK,CAAC,QAAQ,EAAE;;AAEhB,QAAA,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,KAAI;AACtD,YAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;AAClB,SA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