ngx-tethys 19.0.10 → 19.0.12

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 (38) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/action/action.component.d.ts +12 -20
  3. package/action/actions.component.d.ts +5 -7
  4. package/affix/affix.component.d.ts +7 -10
  5. package/avatar/avatar-list/avatar-list.component.d.ts +8 -14
  6. package/avatar/avatar.component.d.ts +25 -39
  7. package/fesm2022/ngx-tethys-action.mjs +54 -91
  8. package/fesm2022/ngx-tethys-action.mjs.map +1 -1
  9. package/fesm2022/ngx-tethys-affix.mjs +29 -26
  10. package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
  11. package/fesm2022/ngx-tethys-avatar.mjs +117 -162
  12. package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
  13. package/fesm2022/ngx-tethys-comment.mjs +1 -1
  14. package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
  15. package/fesm2022/ngx-tethys-i18n.mjs +35 -5
  16. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
  17. package/fesm2022/ngx-tethys-image.mjs +4 -4
  18. package/fesm2022/ngx-tethys-image.mjs.map +1 -1
  19. package/fesm2022/ngx-tethys-list.mjs +1 -1
  20. package/fesm2022/ngx-tethys-list.mjs.map +1 -1
  21. package/fesm2022/ngx-tethys-mention.mjs +51 -73
  22. package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
  23. package/fesm2022/ngx-tethys-shared.mjs +7 -4
  24. package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
  25. package/fesm2022/ngx-tethys.mjs +1 -1
  26. package/fesm2022/ngx-tethys.mjs.map +1 -1
  27. package/i18n/i18n.d.ts +6 -0
  28. package/i18n/locales/de-de.d.ts +6 -0
  29. package/i18n/locales/en-us.d.ts +6 -0
  30. package/i18n/locales/ja-jp.d.ts +6 -0
  31. package/i18n/locales/zh-hans.d.ts +6 -0
  32. package/i18n/locales/zh-hant.d.ts +6 -0
  33. package/image/preview/image-preview.component.d.ts +3 -2
  34. package/mention/mention.directive.d.ts +6 -7
  35. package/mention/suggestions/suggestions.component.d.ts +8 -9
  36. package/package.json +1 -1
  37. package/schematics/version.d.ts +1 -1
  38. package/schematics/version.js +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ThyPopoverConfig, ThyPopoverRef } from 'ngx-tethys/popover';
2
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { OnDestroy, OnInit } from '@angular/core';
3
3
  import { Mention, MentionSuggestionSelectEvent } from './interfaces';
4
4
  import { ThyMentionSuggestions } from './suggestions/suggestions.component';
5
5
  import * as i0 from "@angular/core";
@@ -13,22 +13,21 @@ export declare class ThyMentionDirective implements OnInit, OnDestroy {
13
13
  private ngControl;
14
14
  private adapter;
15
15
  openedSuggestionsRef: ThyPopoverRef<ThyMentionSuggestions>;
16
- private _mentions;
17
- get mentions(): Mention<any>[];
18
16
  /**
19
17
  * 提及输入配置参数,同时支持多个提及规则
20
18
  * @type Mention<any>[]
21
19
  */
22
- set mentions(value: Mention<any>[]);
20
+ readonly thyMention: import("@angular/core").InputSignal<Mention<any>[]>;
23
21
  /**
24
22
  * Popover 弹出层参数配置
25
23
  */
26
- popoverConfig: ThyPopoverConfig;
24
+ readonly thyPopoverConfig: import("@angular/core").InputSignal<ThyPopoverConfig<unknown>>;
27
25
  /**
28
26
  * 选择后的回调函数
29
27
  */
30
- select: EventEmitter<MentionSuggestionSelectEvent<any>>;
28
+ readonly select: import("@angular/core").OutputEmitterRef<MentionSuggestionSelectEvent<any>>;
31
29
  get isOpened(): boolean;
30
+ mentions: import("@angular/core").Signal<(Partial<Mention<unknown>> & Mention<any>)[]>;
32
31
  private destroy$;
33
32
  private openedSuggestionsRef$;
34
33
  constructor();
@@ -40,5 +39,5 @@ export declare class ThyMentionDirective implements OnInit, OnDestroy {
40
39
  private openSuggestions;
41
40
  private closeSuggestions;
42
41
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyMentionDirective, never>;
43
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyMentionDirective, "[thyMention]", never, { "mentions": { "alias": "thyMention"; "required": false; }; "popoverConfig": { "alias": "thyPopoverConfig"; "required": false; }; }, { "select": "thySelectSuggestion"; }, never, never, true, never>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyMentionDirective, "[thyMention]", never, { "thyMention": { "alias": "thyMention"; "required": false; "isSignal": true; }; "thyPopoverConfig": { "alias": "thyPopoverConfig"; "required": false; "isSignal": true; }; }, { "select": "select"; }, never, never, true, never>;
44
43
  }
@@ -1,6 +1,6 @@
1
1
  import { ThySelectionListChange } from 'ngx-tethys/list';
2
2
  import { Subject } from 'rxjs';
3
- import { ElementRef, OnDestroy, OnInit } from '@angular/core';
3
+ import { OnDestroy, OnInit } from '@angular/core';
4
4
  import { SeekQueryResult } from '../adapter/adapter';
5
5
  import { Mention, MentionDefaultDataItem, MentionSuggestionSelectEvent } from '../interfaces';
6
6
  import * as i0 from "@angular/core";
@@ -8,16 +8,15 @@ import * as i0 from "@angular/core";
8
8
  * @private
9
9
  */
10
10
  export declare class ThyMentionSuggestions<TItem = MentionDefaultDataItem> implements OnInit, OnDestroy {
11
- elementRef: ElementRef<HTMLElement>;
12
- private ngZone;
13
- private popoverRef;
14
- data: TItem[];
15
- mention: Mention<TItem>;
11
+ readonly mention: import("@angular/core").InputSignal<Mention<TItem>>;
12
+ data: import("@angular/core").WritableSignal<TItem[]>;
16
13
  suggestionSelect$: Subject<MentionSuggestionSelectEvent<any>>;
17
14
  debounce: number;
18
- loadingDone: boolean;
15
+ loadingDone: import("@angular/core").WritableSignal<boolean>;
19
16
  private search$;
20
- suggestionsClass: boolean;
17
+ private elementRef;
18
+ private ngZone;
19
+ private popoverRef;
21
20
  constructor();
22
21
  ngOnInit(): void;
23
22
  search(query: SeekQueryResult): void;
@@ -25,5 +24,5 @@ export declare class ThyMentionSuggestions<TItem = MentionDefaultDataItem> imple
25
24
  selectionChange(event: ThySelectionListChange<TItem>): void;
26
25
  ngOnDestroy(): void;
27
26
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyMentionSuggestions<any>, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<ThyMentionSuggestions<any>, "thy-mention-suggestions", never, {}, {}, never, never, true, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThyMentionSuggestions<any>, "thy-mention-suggestions", never, { "mention": { "alias": "mention"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
29
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-tethys",
3
- "version": "19.0.10",
3
+ "version": "19.0.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/atinc/ngx-tethys.git"
@@ -1 +1 @@
1
- export declare const VERSION = "19.0.10";
1
+ export declare const VERSION = "19.0.12";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '19.0.10';
4
+ exports.VERSION = '19.0.12';