@sinequa/atomic-angular 1.17.0 → 2.0.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 (77) hide show
  1. package/README.md +23 -18
  2. package/components/navbar-tabs/i18n/de.json +4 -2
  3. package/components/navbar-tabs/i18n/en.json +4 -2
  4. package/components/navbar-tabs/i18n/fr.json +5 -3
  5. package/components/preview/i18n/de.json +12 -0
  6. package/components/preview/i18n/en.json +12 -0
  7. package/components/preview/i18n/fr.json +12 -0
  8. package/components/sort-selector/i18n/de.json +1 -0
  9. package/components/sort-selector/i18n/en.json +1 -0
  10. package/components/sort-selector/i18n/fr.json +1 -0
  11. package/components/sponsored-results/i18n/de.json +3 -0
  12. package/components/sponsored-results/i18n/en.json +3 -0
  13. package/components/sponsored-results/i18n/fr.json +3 -0
  14. package/document-workspaces/i18n/de.json +2 -0
  15. package/document-workspaces/i18n/en.json +2 -0
  16. package/document-workspaces/i18n/fr.json +2 -0
  17. package/document-workspaces/i18n/ja.json +2 -0
  18. package/features/{drawer → advanced-search}/i18n/de.json +12 -1
  19. package/features/{drawer → advanced-search}/i18n/en.json +12 -1
  20. package/features/{drawer → advanced-search}/i18n/fr.json +13 -2
  21. package/features/alerts/i18n/de.json +7 -1
  22. package/features/alerts/i18n/en.json +7 -1
  23. package/features/alerts/i18n/fr.json +7 -1
  24. package/features/auth/i18n/de.json +6 -0
  25. package/features/auth/i18n/en.json +6 -0
  26. package/features/auth/i18n/fr.json +6 -1
  27. package/features/collections/i18n/de.json +4 -1
  28. package/features/collections/i18n/en.json +4 -1
  29. package/features/collections/i18n/fr.json +4 -1
  30. package/features/dialogs/i18n/de.json +11 -1
  31. package/features/dialogs/i18n/en.json +11 -1
  32. package/features/dialogs/i18n/fr.json +11 -1
  33. package/features/export/i18n/de.json +5 -1
  34. package/features/export/i18n/en.json +5 -1
  35. package/features/export/i18n/fr.json +5 -1
  36. package/features/feedback/i18n/de.json +2 -1
  37. package/features/feedback/i18n/en.json +2 -1
  38. package/features/feedback/i18n/fr.json +2 -1
  39. package/features/filters/i18n/de.json +10 -3
  40. package/features/filters/i18n/en.json +10 -3
  41. package/features/filters/i18n/fr.json +11 -4
  42. package/features/labels/i18n/de.json +5 -1
  43. package/features/labels/i18n/en.json +5 -1
  44. package/features/labels/i18n/fr.json +5 -1
  45. package/features/list-panel/i18n/de.json +4 -0
  46. package/features/list-panel/i18n/en.json +4 -0
  47. package/features/list-panel/i18n/fr.json +4 -0
  48. package/features/searches/i18n/de.json +2 -1
  49. package/features/searches/i18n/en.json +2 -1
  50. package/features/searches/i18n/fr.json +3 -2
  51. package/features/sheet/i18n/de.json +3 -0
  52. package/features/sheet/i18n/en.json +3 -0
  53. package/features/sheet/i18n/fr.json +3 -0
  54. package/features/user-profile/i18n/de.json +22 -1
  55. package/features/user-profile/i18n/en.json +22 -1
  56. package/features/user-profile/i18n/fr.json +22 -1
  57. package/fesm2022/sinequa-atomic-angular-charts-heatmap.mjs +294 -0
  58. package/fesm2022/sinequa-atomic-angular-charts-heatmap.mjs.map +1 -0
  59. package/fesm2022/sinequa-atomic-angular-charts.mjs +969 -0
  60. package/fesm2022/sinequa-atomic-angular-charts.mjs.map +1 -0
  61. package/fesm2022/sinequa-atomic-angular-document-workspaces.mjs +11197 -7899
  62. package/fesm2022/sinequa-atomic-angular-document-workspaces.mjs.map +1 -1
  63. package/fesm2022/sinequa-atomic-angular-workspace-elements.mjs +85 -152
  64. package/fesm2022/sinequa-atomic-angular-workspace-elements.mjs.map +1 -1
  65. package/fesm2022/sinequa-atomic-angular.mjs +30683 -17302
  66. package/fesm2022/sinequa-atomic-angular.mjs.map +1 -1
  67. package/package.json +60 -19
  68. package/styles/calendar.css +88 -0
  69. package/types/sinequa-atomic-angular-charts-heatmap.d.ts +154 -0
  70. package/types/sinequa-atomic-angular-charts.d.ts +462 -0
  71. package/types/sinequa-atomic-angular-document-workspaces.d.ts +2527 -0
  72. package/types/sinequa-atomic-angular-workspace-elements.d.ts +49 -0
  73. package/types/sinequa-atomic-angular.d.ts +19918 -0
  74. package/workspace-elements/styles/lexiq-workspaces.css +7310 -4010
  75. package/document-workspaces/index.d.ts +0 -2159
  76. package/index.d.ts +0 -16119
  77. package/workspace-elements/index.d.ts +0 -37
@@ -0,0 +1,49 @@
1
+ import { ApplicationConfig, ApplicationRef, EnvironmentProviders, Injector } from "@angular/core";
2
+ import { AskFollowUp, MentionSelection, Workspace, WorkspaceDocument } from "@sinequa/atomic-angular/document-workspaces";
3
+ /**
4
+ * The component of an element, for what `@angular/elements` does not expose: its methods.
5
+ * `NgElement` keeps the component behind its strategy; this is the one place that reaches for it.
6
+ */
7
+ declare function instanceOf<T>(element: HTMLElement): T;
8
+ /**
9
+ * Re-dispatches an output of the component under the name the page knows it by — the
10
+ * events of this package have always been `lexiq-workspaces:…` or plain names — and so
11
+ * that it crosses a shadow boundary: `@angular/elements` dispatches with neither `bubbles`
12
+ * nor `composed`.
13
+ */
14
+ declare function bridgeEvents(element: HTMLElement, events: Record<string, {
15
+ name: string;
16
+ detail?: (payload: unknown) => unknown;
17
+ }>): void;
18
+ export declare function defineLexiqWorkspaces(injector: Injector, tagName?: string): void;
19
+ export declare function defineLexiqWorkspacePicker(injector: Injector, tagName?: string): void;
20
+ export declare function defineLexiqWorkspaceMentionList(injector: Injector, tagName?: string): void;
21
+ export declare function registerLexiqWorkspacesElements(injector: Injector): void;
22
+ /**
23
+ * For a page that is not an Angular application: starts one — zoneless, with the
24
+ * providers the page gives it (Transloco and the `@sinequa/atomic` configuration are the page's
25
+ * to provide) — and registers the three elements on it.
26
+ *
27
+ * ```ts
28
+ * await bootstrapLexiqWorkspacesElements({ providers: [provideTransloco({ … })] });
29
+ * ```
30
+ */
31
+ export declare function bootstrapLexiqWorkspacesElements(config?: Partial<ApplicationConfig>): Promise<ApplicationRef>;
32
+ /**
33
+ * Registers the `lexiq-workspaces`, `lexiq-workspace-picker` and
34
+ * `lexiq-workspace-mention-list` custom elements when the application starts. Add it to
35
+ * the `providers` of the app (or of a route):
36
+ *
37
+ * ```ts
38
+ * export const appConfig: ApplicationConfig = {
39
+ * providers: [provideTransloco({ … }), provideLexiqWorkspacesElements()]
40
+ * };
41
+ * ```
42
+ *
43
+ * The elements render through this application's injector, so they share its Transloco
44
+ * configuration, its `@sinequa/atomic` setup and its `WorkspacesStore` with the rest of the app.
45
+ * A component that uses the tags in a template needs `schemas: [CUSTOM_ELEMENTS_SCHEMA]` — or,
46
+ * in Angular, the components themselves (`WorkspacesShell`…).
47
+ */
48
+ export declare function provideLexiqWorkspacesElements(): EnvironmentProviders;
49
+ export type { AskFollowUp, MentionSelection, Workspace, WorkspaceDocument };