quang 19.2.3 → 19.2.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.
Files changed (115) hide show
  1. package/auth/auth-providers.d.ts +39 -0
  2. package/auth/auth.service.d.ts +52 -0
  3. package/auth/directives/has-at-least-one-role.directive.d.ts +26 -0
  4. package/auth/directives/has-every-role.directive.d.ts +26 -0
  5. package/auth/directives/is-authenticated.directive.d.ts +14 -0
  6. package/auth/directives/is-not-authenticated.directive.d.ts +14 -0
  7. package/auth/guards/index.d.ts +2 -0
  8. package/auth/guards/is-allowed.guard.d.ts +2 -0
  9. package/auth/guards/is-authenticated.guard.d.ts +2 -0
  10. package/auth/index.d.ts +9 -195
  11. package/auth/logout-on-error.interceptor.d.ts +9 -0
  12. package/auth/mobile/index.d.ts +1 -5
  13. package/auth/mobile/mobile-auth-feature.d.ts +2 -0
  14. package/auth/token-storage/index.d.ts +3 -0
  15. package/auth/token-storage/local-storage-feature.d.ts +2 -0
  16. package/auth/token-storage/memory-storage-feature.d.ts +12 -0
  17. package/auth/token-storage/session-storage-feature.d.ts +2 -0
  18. package/components/autocomplete/autocomplete.component.d.ts +64 -0
  19. package/components/autocomplete/index.d.ts +1 -67
  20. package/components/checkbox/checkbox.component.d.ts +11 -0
  21. package/components/checkbox/index.d.ts +1 -15
  22. package/components/date/date.component.d.ts +85 -0
  23. package/components/date/index.d.ts +1 -89
  24. package/components/input/index.d.ts +1 -19
  25. package/components/input/input.component.d.ts +15 -0
  26. package/components/paginator/index.d.ts +5 -68
  27. package/components/paginator/paginator-language.service.d.ts +10 -0
  28. package/components/paginator/paginator.component.d.ts +30 -0
  29. package/components/paginator/paginator.module.d.ts +7 -0
  30. package/components/paginator/paginator.service.d.ts +6 -0
  31. package/components/paginator/paginatorIntl.d.ts +12 -0
  32. package/components/select/index.d.ts +1 -34
  33. package/components/select/select.component.d.ts +31 -0
  34. package/components/shared/ErrorData.d.ts +4 -0
  35. package/components/shared/index.d.ts +4 -112
  36. package/components/shared/makeId.d.ts +1 -0
  37. package/components/shared/option-list/option-list.component.d.ts +53 -0
  38. package/components/shared/quang-base-component.directive.d.ts +50 -0
  39. package/components/table/index.d.ts +1 -70
  40. package/components/table/table.component.d.ts +66 -0
  41. package/components/wysiwyg/index.d.ts +1 -51
  42. package/components/wysiwyg/wysiwyg.component.d.ts +46 -0
  43. package/data-handling/conversion.d.ts +3 -0
  44. package/data-handling/download.d.ts +3 -0
  45. package/data-handling/index.d.ts +2 -10
  46. package/device/index.d.ts +1 -14
  47. package/device/resize-observable.service.d.ts +11 -0
  48. package/fesm2022/quang-auth.mjs +18 -18
  49. package/fesm2022/quang-auth.mjs.map +1 -1
  50. package/fesm2022/quang-components-autocomplete.mjs +3 -3
  51. package/fesm2022/quang-components-autocomplete.mjs.map +1 -1
  52. package/fesm2022/quang-components-checkbox.mjs +3 -3
  53. package/fesm2022/quang-components-checkbox.mjs.map +1 -1
  54. package/fesm2022/quang-components-date.mjs +3 -3
  55. package/fesm2022/quang-components-date.mjs.map +1 -1
  56. package/fesm2022/quang-components-input.mjs +3 -3
  57. package/fesm2022/quang-components-input.mjs.map +1 -1
  58. package/fesm2022/quang-components-paginator.mjs +13 -13
  59. package/fesm2022/quang-components-paginator.mjs.map +1 -1
  60. package/fesm2022/quang-components-select.mjs +3 -5
  61. package/fesm2022/quang-components-select.mjs.map +1 -1
  62. package/fesm2022/quang-components-shared.mjs +6 -6
  63. package/fesm2022/quang-components-shared.mjs.map +1 -1
  64. package/fesm2022/quang-components-table.mjs +3 -3
  65. package/fesm2022/quang-components-table.mjs.map +1 -1
  66. package/fesm2022/quang-components-wysiwyg.mjs +3 -3
  67. package/fesm2022/quang-components-wysiwyg.mjs.map +1 -1
  68. package/fesm2022/quang-device.mjs +3 -3
  69. package/fesm2022/quang-device.mjs.map +1 -1
  70. package/fesm2022/quang-loader.mjs +6 -6
  71. package/fesm2022/quang-loader.mjs.map +1 -1
  72. package/fesm2022/quang-overlay-modal.mjs +3 -3
  73. package/fesm2022/quang-overlay-modal.mjs.map +1 -1
  74. package/fesm2022/quang-overlay-popover.mjs +7 -7
  75. package/fesm2022/quang-overlay-popover.mjs.map +1 -1
  76. package/fesm2022/quang-overlay-shared.mjs +9 -9
  77. package/fesm2022/quang-overlay-shared.mjs.map +1 -1
  78. package/fesm2022/quang-overlay-toast.mjs +6 -6
  79. package/fesm2022/quang-overlay-toast.mjs.map +1 -1
  80. package/fesm2022/quang-overlay-tooltip.mjs +6 -6
  81. package/fesm2022/quang-overlay-tooltip.mjs.map +1 -1
  82. package/fesm2022/quang-translation.mjs +6 -6
  83. package/fesm2022/quang-translation.mjs.map +1 -1
  84. package/forms/form-group-model.d.ts +18 -0
  85. package/forms/index.d.ts +2 -51
  86. package/forms/validators.d.ts +43 -0
  87. package/index.d.ts +9 -13
  88. package/loader/index.d.ts +4 -69
  89. package/loader/loader-providers.d.ts +23 -0
  90. package/loader/loader.component.d.ts +23 -0
  91. package/loader/loader.interceptor.d.ts +10 -0
  92. package/loader/loader.service.d.ts +9 -0
  93. package/overlay/modal/index.d.ts +1 -34
  94. package/overlay/modal/modal.component.d.ts +29 -0
  95. package/overlay/popover/index.d.ts +1 -25
  96. package/overlay/popover/popover.component.d.ts +13 -0
  97. package/overlay/popover/popover.directive.d.ts +11 -0
  98. package/overlay/shared/CustomViewportRuler.d.ts +63 -0
  99. package/overlay/shared/index.d.ts +3 -116
  100. package/overlay/shared/quang-base-overlay.component.d.ts +9 -0
  101. package/overlay/shared/quang-base-overlay.directive.d.ts +44 -0
  102. package/overlay/toast/index.d.ts +2 -44
  103. package/overlay/toast/toast.component.d.ts +13 -0
  104. package/overlay/toast/toast.service.d.ts +27 -0
  105. package/overlay/tooltip/index.d.ts +2 -23
  106. package/overlay/tooltip/tooltip.component.d.ts +11 -0
  107. package/overlay/tooltip/tooltip.directive.d.ts +11 -0
  108. package/package.json +8 -8
  109. package/shared/index.d.ts +1 -16
  110. package/shared/intercept-utils.d.ts +13 -0
  111. package/translation/index.d.ts +4 -62
  112. package/translation/translation-loader.service.d.ts +10 -0
  113. package/translation/translation-providers.d.ts +28 -0
  114. package/translation/translation.service.d.ts +15 -0
  115. package/translation/translations.tokens.d.ts +5 -0
@@ -0,0 +1,53 @@
1
+ import { DestroyRef, ElementRef } from '@angular/core';
2
+ import { Subscription } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export interface SelectOption {
5
+ label: string;
6
+ value: string | number | null;
7
+ }
8
+ export declare enum OptionListParentType {
9
+ SELECT = "select",
10
+ AUTOCOMPLETE = "autocomplete"
11
+ }
12
+ export declare class QuangOptionListComponent {
13
+ logLevel: "normal" | "verbose" | null;
14
+ selectionMode: import("@angular/core").InputSignal<"single" | "multiple">;
15
+ optionListMaxHeight: import("@angular/core").InputSignal<string>;
16
+ selectOptions: import("@angular/core").InputSignal<SelectOption[]>;
17
+ selectButtonRef: import("@angular/core").InputSignal<HTMLInputElement | HTMLButtonElement | HTMLDivElement>;
18
+ _value: import("@angular/core").InputSignal<any>;
19
+ _isDisabled: import("@angular/core").InputSignal<boolean | undefined>;
20
+ componentClass: import("@angular/core").InputSignal<string | string[]>;
21
+ componentLabel: import("@angular/core").InputSignal<string>;
22
+ componentTabIndex: import("@angular/core").InputSignal<number>;
23
+ translateValue: import("@angular/core").InputSignal<boolean>;
24
+ nullOption: import("@angular/core").InputSignal<boolean>;
25
+ elementWidth: import("@angular/core").WritableSignal<string>;
26
+ elementTop: import("@angular/core").WritableSignal<string>;
27
+ elementBottom: import("@angular/core").WritableSignal<string>;
28
+ scrollBehaviorOnOpen: import("@angular/core").InputSignal<ScrollBehavior>;
29
+ changedHandler: import("@angular/core").OutputEmitterRef<any>;
30
+ blurHandler: import("@angular/core").OutputEmitterRef<any>;
31
+ optionListContainer: import("@angular/core").Signal<ElementRef<HTMLDivElement> | undefined>;
32
+ destroyRef: DestroyRef;
33
+ parentType: import("@angular/core").InputSignal<OptionListParentType>;
34
+ parentID: import("@angular/core").InputSignal<string>;
35
+ searchString: import("@angular/core").WritableSignal<string>;
36
+ searchResetTimer: ReturnType<typeof setTimeout> | null;
37
+ selectButtonRef$: Subscription;
38
+ selectOptionsList: import("@angular/core").Signal<SelectOption[]>;
39
+ onKeyDown: Subscription | null;
40
+ selectedElementIndex: import("@angular/core").Signal<number>;
41
+ optionList$: import("@angular/core").EffectRef;
42
+ handleSearch(key: string, listItems: HTMLLIElement[], currentIndex: number): number;
43
+ changePosition(): void;
44
+ isScrollable(ele: Element): boolean;
45
+ getScrollParent(node: unknown): Element;
46
+ onSelectItem(item: SelectOption | null): void;
47
+ getSelected(item: SelectOption): boolean;
48
+ onBlurHandler(e: Event): void;
49
+ getOptionListWidth(): void;
50
+ getOptionListTop(): void;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuangOptionListComponent, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<QuangOptionListComponent, "quang-option-list", never, { "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "optionListMaxHeight": { "alias": "optionListMaxHeight"; "required": false; "isSignal": true; }; "selectOptions": { "alias": "selectOptions"; "required": false; "isSignal": true; }; "selectButtonRef": { "alias": "selectButtonRef"; "required": true; "isSignal": true; }; "_value": { "alias": "_value"; "required": false; "isSignal": true; }; "_isDisabled": { "alias": "_isDisabled"; "required": false; "isSignal": true; }; "componentClass": { "alias": "componentClass"; "required": false; "isSignal": true; }; "componentLabel": { "alias": "componentLabel"; "required": false; "isSignal": true; }; "componentTabIndex": { "alias": "componentTabIndex"; "required": false; "isSignal": true; }; "translateValue": { "alias": "translateValue"; "required": false; "isSignal": true; }; "nullOption": { "alias": "nullOption"; "required": false; "isSignal": true; }; "scrollBehaviorOnOpen": { "alias": "scrollBehaviorOnOpen"; "required": false; "isSignal": true; }; "parentType": { "alias": "parentType"; "required": true; "isSignal": true; }; "parentID": { "alias": "parentID"; "required": false; "isSignal": true; }; }, { "changedHandler": "changedHandler"; "blurHandler": "blurHandler"; }, never, never, true, never>;
53
+ }
@@ -0,0 +1,50 @@
1
+ import { AfterViewInit, DestroyRef, Injector } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
3
+ import { Subscription } from 'rxjs';
4
+ import { ErrorData } from './ErrorData';
5
+ import * as i0 from "@angular/core";
6
+ export declare abstract class QuangBaseComponent<T = any> implements ControlValueAccessor, AfterViewInit {
7
+ componentId: import("@angular/core").InputSignal<string>;
8
+ isReadonly: import("@angular/core").InputSignal<boolean>;
9
+ isReadonly$: import("rxjs").Observable<boolean>;
10
+ componentTabIndex: import("@angular/core").InputSignal<number>;
11
+ componentClass: import("@angular/core").InputSignal<string | string[]>;
12
+ componentLabel: import("@angular/core").InputSignal<string>;
13
+ componentPlaceholder: import("@angular/core").InputSignal<string>;
14
+ errorMap: import("@angular/core").InputSignal<ErrorData[]>;
15
+ _errorMessagesByKey: import("@angular/core").Signal<Map<string, string>>;
16
+ successMessage: import("@angular/core").InputSignal<string>;
17
+ helpMessage: import("@angular/core").InputSignal<string>;
18
+ formControl: import("@angular/core").InputSignal<FormControl<any> | undefined>;
19
+ componentBlur: import("@angular/core").OutputEmitterRef<void>;
20
+ _value: import("@angular/core").WritableSignal<T | null>;
21
+ _isRequired: import("@angular/core").WritableSignal<boolean>;
22
+ _isDisabled: import("@angular/core").WritableSignal<boolean>;
23
+ _isTouched: import("@angular/core").WritableSignal<boolean>;
24
+ _isValid: import("@angular/core").WritableSignal<boolean>;
25
+ _showSuccess: import("@angular/core").Signal<boolean | "">;
26
+ _showErrors: import("@angular/core").Signal<boolean>;
27
+ _currentErrorMessage: import("@angular/core").WritableSignal<string>;
28
+ _currentErrorMessageExtraData: import("@angular/core").WritableSignal<Record<string, any>>;
29
+ _ngControl: import("@angular/core").WritableSignal<NgControl | null>;
30
+ _injector: import("@angular/core").WritableSignal<Injector>;
31
+ _statusChange$?: Subscription;
32
+ getIsRequiredControl: import("@angular/core").Signal<boolean>;
33
+ onChange?: (value: T) => void;
34
+ onTouched?: () => void;
35
+ destroyRef: DestroyRef;
36
+ constructor();
37
+ registerOnChange(fn: (value: T) => void): void;
38
+ writeValue(val: T): void;
39
+ registerOnTouched(fn: () => void): void;
40
+ onChangedEventHandler($event: Event): void;
41
+ onChangedHandler(value: T): void;
42
+ onBlurHandler(): void;
43
+ setupFormControl(): void;
44
+ onChangeIsReadonly: Subscription;
45
+ setDisabledState(isDisabled: boolean): void;
46
+ checkFormErrors(): void;
47
+ ngAfterViewInit(): void;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuangBaseComponent<any>, never>;
49
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QuangBaseComponent<any>, never, never, { "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "isReadonly": { "alias": "isReadonly"; "required": false; "isSignal": true; }; "componentTabIndex": { "alias": "componentTabIndex"; "required": false; "isSignal": true; }; "componentClass": { "alias": "componentClass"; "required": false; "isSignal": true; }; "componentLabel": { "alias": "componentLabel"; "required": false; "isSignal": true; }; "componentPlaceholder": { "alias": "componentPlaceholder"; "required": false; "isSignal": true; }; "errorMap": { "alias": "errorMap"; "required": false; "isSignal": true; }; "successMessage": { "alias": "successMessage"; "required": false; "isSignal": true; }; "helpMessage": { "alias": "helpMessage"; "required": false; "isSignal": true; }; "formControl": { "alias": "formControl"; "required": false; "isSignal": true; }; }, { "componentBlur": "componentBlur"; }, never, never, true, never>;
50
+ }
@@ -1,70 +1 @@
1
- import * as _angular_core from '@angular/core';
2
- import { TemplateRef, DestroyRef, ElementRef } from '@angular/core';
3
- import { ResizeObservableService } from 'quang/device';
4
- import { Subscription } from 'rxjs';
5
-
6
- interface TableHeader {
7
- text?: string;
8
- sort?: SortCol;
9
- css?: string[];
10
- renderer?: TemplateRef<any>;
11
- payload?: any;
12
- }
13
- interface TableConfiguration<T> {
14
- headers: TableHeader[];
15
- rows: TableRow<T>[];
16
- }
17
- interface TableCell {
18
- renderer?: TemplateRef<any>;
19
- payload?: any;
20
- text?: string;
21
- css?: string[];
22
- fullWidth?: boolean;
23
- }
24
- interface TableRow<T> {
25
- payload?: T;
26
- rowId?: string | number;
27
- css?: string[];
28
- cellData: TableCell[];
29
- }
30
- declare enum SortTable {
31
- DEFAULT = "DEFAULT",
32
- ASC = "ASC",
33
- DESC = "DESC"
34
- }
35
- interface SortCol {
36
- key: string;
37
- sort: SortTable;
38
- }
39
- declare class QuangTableComponent<T> {
40
- clickableRow: _angular_core.InputSignal<boolean>;
41
- selectedRows: _angular_core.InputSignal<string[] | number[] | undefined>;
42
- stickyTable: _angular_core.InputSignal<boolean>;
43
- selectedRow: _angular_core.OutputEmitterRef<TableRow<T>>;
44
- sortChanged: _angular_core.OutputEmitterRef<SortCol[]>;
45
- SortTable: typeof SortTable;
46
- destroyRef: DestroyRef;
47
- _resizeObservableService: ResizeObservableService;
48
- _tableHeader: _angular_core.Signal<ElementRef<any> | undefined>;
49
- _tableHeaderElement: _angular_core.Signal<Element | undefined>;
50
- noResultsText: _angular_core.InputSignal<string>;
51
- _tableHeaderEffect: _angular_core.EffectRef;
52
- _tableHeaderElementEffect: _angular_core.EffectRef;
53
- _fakeTableHeader: _angular_core.Signal<ElementRef<any> | undefined>;
54
- _fakeTableHeaderEffect: _angular_core.EffectRef;
55
- tableConfigurations: _angular_core.InputSignal<TableConfiguration<T>>;
56
- _tableConfigurations: _angular_core.WritableSignal<TableConfiguration<T>>;
57
- tableConfigurations$: Subscription;
58
- effectTableConfigurations: _angular_core.EffectRef;
59
- hiddenColumnsObservable?: Subscription;
60
- onClickRow(row: TableRow<T>): void;
61
- isSelected(rowId: string | number): boolean;
62
- lastWidth: number;
63
- fixTableHeaderWidth(): void;
64
- onSortColumn(sort: SortCol): void;
65
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangTableComponent<any>, never>;
66
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuangTableComponent<any>, "quang-table", never, { "clickableRow": { "alias": "clickableRow"; "required": false; "isSignal": true; }; "selectedRows": { "alias": "selectedRows"; "required": false; "isSignal": true; }; "stickyTable": { "alias": "stickyTable"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "tableConfigurations": { "alias": "tableConfigurations"; "required": true; "isSignal": true; }; }, { "selectedRow": "selectedRow"; "sortChanged": "sortChanged"; }, never, never, true, never>;
67
- }
68
-
69
- export { QuangTableComponent, SortTable };
70
- export type { SortCol, TableCell, TableConfiguration, TableHeader, TableRow };
1
+ export * from './table.component';
@@ -0,0 +1,66 @@
1
+ import { DestroyRef, ElementRef, TemplateRef } from '@angular/core';
2
+ import { ResizeObservableService } from 'quang/device';
3
+ import { Subscription } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export interface TableHeader {
6
+ text?: string;
7
+ sort?: SortCol;
8
+ css?: string[];
9
+ renderer?: TemplateRef<any>;
10
+ payload?: any;
11
+ }
12
+ export interface TableConfiguration<T> {
13
+ headers: TableHeader[];
14
+ rows: TableRow<T>[];
15
+ }
16
+ export interface TableCell {
17
+ renderer?: TemplateRef<any>;
18
+ payload?: any;
19
+ text?: string;
20
+ css?: string[];
21
+ fullWidth?: boolean;
22
+ }
23
+ export interface TableRow<T> {
24
+ payload?: T;
25
+ rowId?: string | number;
26
+ css?: string[];
27
+ cellData: TableCell[];
28
+ }
29
+ export declare enum SortTable {
30
+ DEFAULT = "DEFAULT",
31
+ ASC = "ASC",
32
+ DESC = "DESC"
33
+ }
34
+ export interface SortCol {
35
+ key: string;
36
+ sort: SortTable;
37
+ }
38
+ export declare class QuangTableComponent<T> {
39
+ clickableRow: import("@angular/core").InputSignal<boolean>;
40
+ selectedRows: import("@angular/core").InputSignal<string[] | number[] | undefined>;
41
+ stickyTable: import("@angular/core").InputSignal<boolean>;
42
+ selectedRow: import("@angular/core").OutputEmitterRef<TableRow<T>>;
43
+ sortChanged: import("@angular/core").OutputEmitterRef<SortCol[]>;
44
+ SortTable: typeof SortTable;
45
+ destroyRef: DestroyRef;
46
+ _resizeObservableService: ResizeObservableService;
47
+ _tableHeader: import("@angular/core").Signal<ElementRef<any> | undefined>;
48
+ _tableHeaderElement: import("@angular/core").Signal<Element | undefined>;
49
+ noResultsText: import("@angular/core").InputSignal<string>;
50
+ _tableHeaderEffect: import("@angular/core").EffectRef;
51
+ _tableHeaderElementEffect: import("@angular/core").EffectRef;
52
+ _fakeTableHeader: import("@angular/core").Signal<ElementRef<any> | undefined>;
53
+ _fakeTableHeaderEffect: import("@angular/core").EffectRef;
54
+ tableConfigurations: import("@angular/core").InputSignal<TableConfiguration<T>>;
55
+ _tableConfigurations: import("@angular/core").WritableSignal<TableConfiguration<T>>;
56
+ tableConfigurations$: Subscription;
57
+ effectTableConfigurations: import("@angular/core").EffectRef;
58
+ hiddenColumnsObservable?: Subscription;
59
+ onClickRow(row: TableRow<T>): void;
60
+ isSelected(rowId: string | number): boolean;
61
+ lastWidth: number;
62
+ fixTableHeaderWidth(): void;
63
+ onSortColumn(sort: SortCol): void;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuangTableComponent<any>, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<QuangTableComponent<any>, "quang-table", never, { "clickableRow": { "alias": "clickableRow"; "required": false; "isSignal": true; }; "selectedRows": { "alias": "selectedRows"; "required": false; "isSignal": true; }; "stickyTable": { "alias": "stickyTable"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "tableConfigurations": { "alias": "tableConfigurations"; "required": true; "isSignal": true; }; }, { "selectedRow": "selectedRow"; "sortChanged": "sortChanged"; }, never, never, true, never>;
66
+ }
@@ -1,51 +1 @@
1
- import * as rxjs from 'rxjs';
2
- import * as _angular_core from '@angular/core';
3
- import { AfterViewInit, ElementRef, ChangeDetectorRef } from '@angular/core';
4
- import { AbstractControl, ValidationErrors } from '@angular/forms';
5
- import SunEditorCore from 'suneditor/src/lib/core';
6
- import { SunEditorOptions } from 'suneditor/src/options';
7
- import { QuangBaseComponent } from 'quang/components/shared';
8
-
9
- type QuangWysiwygOptions = SunEditorOptions;
10
- declare class QuangWysiwygComponent extends QuangBaseComponent<string> implements AfterViewInit {
11
- _inputForWysiwyg: _angular_core.Signal<ElementRef<any> | undefined>;
12
- minHeight: _angular_core.InputSignal<string | undefined>;
13
- font: _angular_core.InputSignal<boolean>;
14
- fontSize: _angular_core.InputSignal<boolean>;
15
- formatBlock: _angular_core.InputSignal<boolean>;
16
- paragraphStyle: _angular_core.InputSignal<boolean>;
17
- blockquote: _angular_core.InputSignal<boolean>;
18
- bold: _angular_core.InputSignal<boolean>;
19
- underline: _angular_core.InputSignal<boolean>;
20
- italic: _angular_core.InputSignal<boolean>;
21
- strike: _angular_core.InputSignal<boolean>;
22
- fontColor: _angular_core.InputSignal<boolean>;
23
- highlightColor: _angular_core.InputSignal<boolean>;
24
- textStyle: _angular_core.InputSignal<boolean>;
25
- removeFormat: _angular_core.InputSignal<boolean>;
26
- align: _angular_core.InputSignal<boolean>;
27
- list: _angular_core.InputSignal<boolean>;
28
- table: _angular_core.InputSignal<boolean>;
29
- link: _angular_core.InputSignal<boolean>;
30
- image: _angular_core.InputSignal<boolean>;
31
- fullScreen: _angular_core.InputSignal<boolean>;
32
- showBlocks: _angular_core.InputSignal<boolean>;
33
- onImageUploadError: _angular_core.InputSignal<((errorMessage: any, result: any, core: any) => boolean) | undefined>;
34
- onFileDrop: _angular_core.InputSignal<((e: any, cleanData: any, maxCharCount: any, core: any) => boolean) | undefined>;
35
- wysiwygOptions: _angular_core.InputSignal<SunEditorOptions | undefined>;
36
- _sunEditorWysiwygInstance: _angular_core.WritableSignal<SunEditorCore | undefined>;
37
- _sunEditorWysiwygInstance$: rxjs.Observable<SunEditorCore | undefined>;
38
- changeDetectorRef: _angular_core.WritableSignal<ChangeDetectorRef>;
39
- _generateSunEditorWysiwygEffect: _angular_core.EffectRef;
40
- STRIP_HTML_REGEX: RegExp;
41
- registerEvents(): void;
42
- writeValue(val: string): void;
43
- validate(control: AbstractControl): ValidationErrors | null;
44
- onChangedHandler(value: string): void;
45
- getButtonList(): string[];
46
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuangWysiwygComponent, never>;
47
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuangWysiwygComponent, "quang-wysiwyg", never, { "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "font": { "alias": "font"; "required": false; "isSignal": true; }; "fontSize": { "alias": "fontSize"; "required": false; "isSignal": true; }; "formatBlock": { "alias": "formatBlock"; "required": false; "isSignal": true; }; "paragraphStyle": { "alias": "paragraphStyle"; "required": false; "isSignal": true; }; "blockquote": { "alias": "blockquote"; "required": false; "isSignal": true; }; "bold": { "alias": "bold"; "required": false; "isSignal": true; }; "underline": { "alias": "underline"; "required": false; "isSignal": true; }; "italic": { "alias": "italic"; "required": false; "isSignal": true; }; "strike": { "alias": "strike"; "required": false; "isSignal": true; }; "fontColor": { "alias": "fontColor"; "required": false; "isSignal": true; }; "highlightColor": { "alias": "highlightColor"; "required": false; "isSignal": true; }; "textStyle": { "alias": "textStyle"; "required": false; "isSignal": true; }; "removeFormat": { "alias": "removeFormat"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "list": { "alias": "list"; "required": false; "isSignal": true; }; "table": { "alias": "table"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "fullScreen": { "alias": "fullScreen"; "required": false; "isSignal": true; }; "showBlocks": { "alias": "showBlocks"; "required": false; "isSignal": true; }; "onImageUploadError": { "alias": "onImageUploadError"; "required": false; "isSignal": true; }; "onFileDrop": { "alias": "onFileDrop"; "required": false; "isSignal": true; }; "wysiwygOptions": { "alias": "wysiwygOptions"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
48
- }
49
-
50
- export { QuangWysiwygComponent };
51
- export type { QuangWysiwygOptions };
1
+ export * from './wysiwyg.component';
@@ -0,0 +1,46 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { AbstractControl, ValidationErrors } from '@angular/forms';
3
+ import SunEditorCore from 'suneditor/src/lib/core';
4
+ import { SunEditorOptions } from 'suneditor/src/options';
5
+ import { QuangBaseComponent } from 'quang/components/shared';
6
+ import * as i0 from "@angular/core";
7
+ export type QuangWysiwygOptions = SunEditorOptions;
8
+ export declare class QuangWysiwygComponent extends QuangBaseComponent<string> implements AfterViewInit {
9
+ _inputForWysiwyg: import("@angular/core").Signal<ElementRef<any> | undefined>;
10
+ minHeight: import("@angular/core").InputSignal<string | undefined>;
11
+ font: import("@angular/core").InputSignal<boolean>;
12
+ fontSize: import("@angular/core").InputSignal<boolean>;
13
+ formatBlock: import("@angular/core").InputSignal<boolean>;
14
+ paragraphStyle: import("@angular/core").InputSignal<boolean>;
15
+ blockquote: import("@angular/core").InputSignal<boolean>;
16
+ bold: import("@angular/core").InputSignal<boolean>;
17
+ underline: import("@angular/core").InputSignal<boolean>;
18
+ italic: import("@angular/core").InputSignal<boolean>;
19
+ strike: import("@angular/core").InputSignal<boolean>;
20
+ fontColor: import("@angular/core").InputSignal<boolean>;
21
+ highlightColor: import("@angular/core").InputSignal<boolean>;
22
+ textStyle: import("@angular/core").InputSignal<boolean>;
23
+ removeFormat: import("@angular/core").InputSignal<boolean>;
24
+ align: import("@angular/core").InputSignal<boolean>;
25
+ list: import("@angular/core").InputSignal<boolean>;
26
+ table: import("@angular/core").InputSignal<boolean>;
27
+ link: import("@angular/core").InputSignal<boolean>;
28
+ image: import("@angular/core").InputSignal<boolean>;
29
+ fullScreen: import("@angular/core").InputSignal<boolean>;
30
+ showBlocks: import("@angular/core").InputSignal<boolean>;
31
+ onImageUploadError: import("@angular/core").InputSignal<((errorMessage: any, result: any, core: any) => boolean) | undefined>;
32
+ onFileDrop: import("@angular/core").InputSignal<((e: any, cleanData: any, maxCharCount: any, core: any) => boolean) | undefined>;
33
+ wysiwygOptions: import("@angular/core").InputSignal<SunEditorOptions | undefined>;
34
+ _sunEditorWysiwygInstance: import("@angular/core").WritableSignal<SunEditorCore | undefined>;
35
+ _sunEditorWysiwygInstance$: import("rxjs").Observable<SunEditorCore | undefined>;
36
+ changeDetectorRef: import("@angular/core").WritableSignal<ChangeDetectorRef>;
37
+ _generateSunEditorWysiwygEffect: import("@angular/core").EffectRef;
38
+ STRIP_HTML_REGEX: RegExp;
39
+ registerEvents(): void;
40
+ writeValue(val: string): void;
41
+ validate(control: AbstractControl): ValidationErrors | null;
42
+ onChangedHandler(value: string): void;
43
+ getButtonList(): string[];
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuangWysiwygComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<QuangWysiwygComponent, "quang-wysiwyg", never, { "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "font": { "alias": "font"; "required": false; "isSignal": true; }; "fontSize": { "alias": "fontSize"; "required": false; "isSignal": true; }; "formatBlock": { "alias": "formatBlock"; "required": false; "isSignal": true; }; "paragraphStyle": { "alias": "paragraphStyle"; "required": false; "isSignal": true; }; "blockquote": { "alias": "blockquote"; "required": false; "isSignal": true; }; "bold": { "alias": "bold"; "required": false; "isSignal": true; }; "underline": { "alias": "underline"; "required": false; "isSignal": true; }; "italic": { "alias": "italic"; "required": false; "isSignal": true; }; "strike": { "alias": "strike"; "required": false; "isSignal": true; }; "fontColor": { "alias": "fontColor"; "required": false; "isSignal": true; }; "highlightColor": { "alias": "highlightColor"; "required": false; "isSignal": true; }; "textStyle": { "alias": "textStyle"; "required": false; "isSignal": true; }; "removeFormat": { "alias": "removeFormat"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "list": { "alias": "list"; "required": false; "isSignal": true; }; "table": { "alias": "table"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "fullScreen": { "alias": "fullScreen"; "required": false; "isSignal": true; }; "showBlocks": { "alias": "showBlocks"; "required": false; "isSignal": true; }; "onImageUploadError": { "alias": "onImageUploadError"; "required": false; "isSignal": true; }; "onFileDrop": { "alias": "onFileDrop"; "required": false; "isSignal": true; }; "wysiwygOptions": { "alias": "wysiwygOptions"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
46
+ }
@@ -0,0 +1,3 @@
1
+ export declare function blobToBase64(blob: Blob): Promise<string | ArrayBuffer | null>;
2
+ export declare function base64ToDataUri(base64: string, type?: string): Promise<string>;
3
+ export declare function dataUriToBlob(dataUri: string): Promise<Blob>;
@@ -0,0 +1,3 @@
1
+ import { HttpResponse } from '@angular/common/http';
2
+ export declare function downloadFile(file: File, filename: string): void;
3
+ export declare function handleDownload(response: HttpResponse<Blob>, defaultExtension?: string): void;
@@ -1,10 +1,2 @@
1
- import { HttpResponse } from '@angular/common/http';
2
-
3
- declare function blobToBase64(blob: Blob): Promise<string | ArrayBuffer | null>;
4
- declare function base64ToDataUri(base64: string, type?: string): Promise<string>;
5
- declare function dataUriToBlob(dataUri: string): Promise<Blob>;
6
-
7
- declare function downloadFile(file: File, filename: string): void;
8
- declare function handleDownload(response: HttpResponse<Blob>, defaultExtension?: string): void;
9
-
10
- export { base64ToDataUri, blobToBase64, dataUriToBlob, downloadFile, handleDownload };
1
+ export * from './conversion';
2
+ export * from './download';
package/device/index.d.ts CHANGED
@@ -1,14 +1 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from '@angular/core';
3
-
4
- declare class ResizeObservableService {
5
- private resizeObserver;
6
- private notifiers;
7
- constructor();
8
- resizeObservable(elem: Element): Observable<ResizeObserverEntry>;
9
- widthResizeObservable(elem: Element): Observable<number>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ResizeObservableService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<ResizeObservableService>;
12
- }
13
-
14
- export { ResizeObservableService };
1
+ export * from './resize-observable.service';
@@ -0,0 +1,11 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ResizeObservableService {
4
+ private resizeObserver;
5
+ private notifiers;
6
+ constructor();
7
+ resizeObservable(elem: Element): Observable<ResizeObserverEntry>;
8
+ widthResizeObservable(elem: Element): Observable<number>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResizeObservableService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<ResizeObservableService>;
11
+ }
@@ -173,10 +173,10 @@ class QuangAuthService {
173
173
  hasAtLeastOneRole(roles) {
174
174
  return roles.some((role) => this.roles().has(role));
175
175
  }
176
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: QuangAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
177
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: QuangAuthService, providedIn: 'root' }); }
176
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QuangAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
177
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QuangAuthService, providedIn: 'root' }); }
178
178
  }
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: QuangAuthService, decorators: [{
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QuangAuthService, decorators: [{
180
180
  type: Injectable,
181
181
  args: [{
182
182
  providedIn: 'root',
@@ -247,10 +247,10 @@ class QuangHasAtLeastOneRoleDirective {
247
247
  this.changeDetectorRef.markForCheck();
248
248
  });
249
249
  }
250
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: QuangHasAtLeastOneRoleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
251
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0", type: QuangHasAtLeastOneRoleDirective, isStandalone: true, selector: "[quangHasAtLeastOneRole]", inputs: { targetRoles: { classPropertyName: "targetRoles", publicName: "quangHasAtLeastOneRole", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
250
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QuangHasAtLeastOneRoleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
251
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.14", type: QuangHasAtLeastOneRoleDirective, isStandalone: true, selector: "[quangHasAtLeastOneRole]", inputs: { targetRoles: { classPropertyName: "targetRoles", publicName: "quangHasAtLeastOneRole", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
252
252
  }
253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: QuangHasAtLeastOneRoleDirective, decorators: [{
253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QuangHasAtLeastOneRoleDirective, decorators: [{
254
254
  type: Directive,
255
255
  args: [{
256
256
  selector: '[quangHasAtLeastOneRole]',
@@ -292,10 +292,10 @@ class QuangHasEveryRoleDirective {
292
292
  this.changeDetectorRef.markForCheck();
293
293
  });
294
294
  }
295
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: QuangHasEveryRoleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
296
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0", type: QuangHasEveryRoleDirective, isStandalone: true, selector: "[quangHasEveryRole]", inputs: { targetRoles: { classPropertyName: "targetRoles", publicName: "quangHasEveryRole", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
295
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QuangHasEveryRoleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
296
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.14", type: QuangHasEveryRoleDirective, isStandalone: true, selector: "[quangHasEveryRole]", inputs: { targetRoles: { classPropertyName: "targetRoles", publicName: "quangHasEveryRole", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
297
297
  }
298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: QuangHasEveryRoleDirective, decorators: [{
298
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QuangHasEveryRoleDirective, decorators: [{
299
299
  type: Directive,
300
300
  args: [{
301
301
  selector: '[quangHasEveryRole]',
@@ -322,10 +322,10 @@ class QuangIsAuthenticatedDirective {
322
322
  this.changeDetectorRef.markForCheck();
323
323
  });
324
324
  }
325
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: QuangIsAuthenticatedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
326
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0", type: QuangIsAuthenticatedDirective, isStandalone: true, selector: "[quangIsAuthenticated]", ngImport: i0 }); }
325
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QuangIsAuthenticatedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
326
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.14", type: QuangIsAuthenticatedDirective, isStandalone: true, selector: "[quangIsAuthenticated]", ngImport: i0 }); }
327
327
  }
328
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: QuangIsAuthenticatedDirective, decorators: [{
328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QuangIsAuthenticatedDirective, decorators: [{
329
329
  type: Directive,
330
330
  args: [{
331
331
  selector: '[quangIsAuthenticated]',
@@ -351,10 +351,10 @@ class QuangIsNotAuthenticatedDirective {
351
351
  this.changeDetectorRef.markForCheck();
352
352
  });
353
353
  }
354
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: QuangIsNotAuthenticatedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
355
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0", type: QuangIsNotAuthenticatedDirective, isStandalone: true, selector: "[quangIsNotAuthenticated]", ngImport: i0 }); }
354
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QuangIsNotAuthenticatedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
355
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.14", type: QuangIsNotAuthenticatedDirective, isStandalone: true, selector: "[quangIsNotAuthenticated]", ngImport: i0 }); }
356
356
  }
357
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: QuangIsNotAuthenticatedDirective, decorators: [{
357
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QuangIsNotAuthenticatedDirective, decorators: [{
358
358
  type: Directive,
359
359
  args: [{
360
360
  selector: '[quangIsNotAuthenticated]',
@@ -439,10 +439,10 @@ class MemoryStorage {
439
439
  setItem(key, data) {
440
440
  this.data.set(key, data);
441
441
  }
442
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MemoryStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
443
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MemoryStorage }); }
442
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MemoryStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
443
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MemoryStorage }); }
444
444
  }
445
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MemoryStorage, decorators: [{
445
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MemoryStorage, decorators: [{
446
446
  type: Injectable
447
447
  }] });
448
448
  function withMemoryStorage() {