@agorapulse/ui-components 22.10.3-beta.1 → 22.10.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agorapulse/ui-components",
3
3
  "description": "Agorapulse UI Components Library",
4
- "version": "22.10.3-beta.1",
4
+ "version": "22.10.5",
5
5
  "author": "Benoit Hediard",
6
6
  "repository": {
7
7
  "type": "git",
@@ -287,9 +287,9 @@ declare class FilterDropdownComponent implements DropdownOverlay {
287
287
  href: string | undefined;
288
288
  label: string | undefined;
289
289
  } | undefined;
290
+ title: string | undefined;
290
291
  message: string | undefined;
291
292
  type: _agorapulse_ui_components_infobox.InfoboxType;
292
- titleRequest: _agorapulse_ui_components_i18n.TranslationRequest | undefined;
293
293
  } | null>;
294
294
  /**
295
295
  * The filter groups to display: STRUCTURE only (keys, titles, options, locks, display type, and the
@@ -1,23 +1,17 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { TranslationRequest } from '@agorapulse/ui-components/i18n';
3
2
 
4
3
  type MessageType = 'error' | 'success';
5
4
  declare class FormMessageComponent {
6
5
  set messageType(messageType: MessageType);
7
- /** The message shown next to the status symbol: a translation key, a key with params, or a raw text. Rendered as text. */
8
- readonly message: _angular_core.InputSignal<TranslationRequest>;
9
- protected readonly texts: _angular_core.Signal<{
10
- readonly message: string | undefined;
11
- }>;
6
+ message: string;
12
7
  messageTypeSignal: _angular_core.WritableSignal<MessageType>;
13
8
  symbolIdSignal: _angular_core.Signal<"error_fill" | "rounded-check_fill">;
14
9
  /** The id this message is referenced by. A bound `[id]` would land after construction and leave the reference dangling. */
15
10
  readonly messageId: string;
16
11
  private symbolRegistry;
17
- private readonly resolveTexts;
18
12
  constructor();
19
13
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormMessageComponent, never>;
20
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormMessageComponent, "ap-form-message", never, { "messageType": { "alias": "messageType"; "required": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormMessageComponent, "ap-form-message", never, { "messageType": { "alias": "messageType"; "required": true; }; "message": { "alias": "message"; "required": true; }; }, {}, never, never, true, never>;
21
15
  }
22
16
 
23
17
  export { FormMessageComponent };
@@ -1,40 +1,31 @@
1
- import * as _angular_core from '@angular/core';
2
- import { I18nOf } from '@agorapulse/ui-components/i18n';
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter } from '@angular/core';
3
3
  import { agorapulseSymbol } from '@agorapulse/ui-symbol';
4
4
 
5
5
  type InfoboxType = 'info' | 'warning' | 'error' | 'success' | 'feature-lock';
6
6
  declare class InfoboxComponent {
7
7
  private readonly symbolRegistry;
8
8
  private readonly elementRef;
9
- private readonly resolveTexts;
10
- /** `title` is shown above the projected text; `action` is the label of the button, which is shown only when set. Rendered as text. */
11
- readonly i18n: _angular_core.InputSignal<I18nOf<never, "title" | "action">>;
12
- /** Not a way to pass the title: use `i18n.title`. Typed `never` so that a `title` left on `<ap-infobox>` fails to compile instead of becoming the native tooltip. */
13
- readonly title: _angular_core.InputSignal<undefined>;
14
- protected readonly texts: _angular_core.Signal<{
15
- readonly title: string | undefined;
16
- readonly action: string | undefined;
17
- }>;
18
- /** Id of the action button; defaults to a generated `infobox-button-N`. */
19
- readonly actionId: _angular_core.InputSignal<string | null>;
20
- /** `data-track` attribute of the action button. */
21
- readonly actionDataTrack: _angular_core.InputSignal<string | null>;
22
- /** Symbol shown on the left of the action button. */
23
- readonly actionSymbolId: _angular_core.InputSignal<string | undefined>;
24
- readonly closable: _angular_core.InputSignalWithTransform<boolean, unknown>;
25
- readonly type: _angular_core.InputSignal<InfoboxType>;
26
- /** Emits when the action button, labelled by `i18n.action`, is clicked. */
27
- readonly actionClick: _angular_core.OutputEmitterRef<void>;
28
- readonly closed: _angular_core.OutputEmitterRef<void>;
29
- protected readonly defaultButtonId: string;
9
+ buttonId: string | null;
10
+ buttonLabel: string | undefined;
11
+ buttonDataTrack: string | null;
12
+ buttonSymbolId: i0.InputSignal<string | undefined>;
13
+ closable: boolean;
14
+ title?: string;
15
+ type: InfoboxType;
16
+ buttonClicked: EventEmitter<void>;
17
+ closed: EventEmitter<void>;
18
+ displayDirection: 'horizontal' | 'vertical';
19
+ defaultButtonId: string;
30
20
  readonly symbolIds: {
31
21
  [k: string]: agorapulseSymbol;
32
22
  };
33
23
  constructor();
34
- onActionClick(): void;
24
+ onClickButton(): void;
35
25
  onCloseInfobox(): void;
36
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<InfoboxComponent, never>;
37
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<InfoboxComponent, "ap-infobox", never, { "i18n": { "alias": "i18n"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "actionId": { "alias": "actionId"; "required": false; "isSignal": true; }; "actionDataTrack": { "alias": "actionDataTrack"; "required": false; "isSignal": true; }; "actionSymbolId": { "alias": "actionSymbolId"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, { "actionClick": "actionClick"; "closed": "closed"; }, never, ["*"], true, never>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<InfoboxComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<InfoboxComponent, "ap-infobox", never, { "buttonId": { "alias": "buttonId"; "required": false; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "buttonDataTrack": { "alias": "buttonDataTrack"; "required": false; }; "buttonSymbolId": { "alias": "buttonSymbolId"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; }; "title": { "alias": "title"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "buttonClicked": "buttonClicked"; "closed": "closed"; }, never, ["*"], true, never>;
28
+ static ngAcceptInputType_closable: unknown;
38
29
  }
39
30
 
40
31
  export { InfoboxComponent };