@cuby-ui/core 0.0.609 → 0.0.611
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/components/select/select.component.d.ts +4 -1
- package/esm2022/components/select/select.component.mjs +36 -27
- package/esm2022/widgets/ui/checklist-block/checklist-block.component.mjs +34 -3
- package/esm2022/widgets/ui/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.component.mjs +25 -3
- package/esm2022/widgets/ui/checklist-block/services/checklist-block.service.mjs +35 -2
- package/fesm2022/cuby-ui-core.mjs +124 -29
- package/fesm2022/cuby-ui-core.mjs.map +1 -1
- package/package.json +4 -4
- package/widgets/ui/checklist-block/checklist-block.component.d.ts +15 -3
- package/widgets/ui/checklist-block/components/checklist-block-list-item-container/checklist-block-list-item-container.component.d.ts +9 -2
- package/widgets/ui/checklist-block/services/checklist-block.service.d.ts +15 -0
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuby-ui/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.611",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": ">=18.0.0",
|
|
6
6
|
"@angular/common": ">=18.0.0",
|
|
7
7
|
"@angular/core": ">=18.0.0",
|
|
8
8
|
"@angular/elements": ">=18.0.0",
|
|
9
9
|
"@angular/forms": ">=18.0.0",
|
|
10
|
-
"@cuby-ui/api": "^0.0.
|
|
11
|
-
"@cuby-ui/cdk": "^0.0.
|
|
12
|
-
"@cuby-ui/icons": "^0.0.
|
|
10
|
+
"@cuby-ui/api": "^0.0.611",
|
|
11
|
+
"@cuby-ui/cdk": "^0.0.611",
|
|
12
|
+
"@cuby-ui/icons": "^0.0.611",
|
|
13
13
|
"@editorjs/editorjs": "2.29.1",
|
|
14
14
|
"@editorjs/header": "^2.8.1",
|
|
15
15
|
"@editorjs/list": "^1.9.0",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { OutputEmitterRef, Signal, WritableSignal } from '@angular/core';
|
|
1
2
|
import { NodeCheckListItem, NodeCheckListItemContentType } from '@cuby-ui/api';
|
|
2
3
|
import { CuiContextMenuItem } from '../../../interfaces';
|
|
3
4
|
import { CuiEditorConfig } from '../../../editor/interfaces';
|
|
@@ -8,14 +9,25 @@ export declare class CuiChecklistBlockComponent {
|
|
|
8
9
|
private readonly translocoService;
|
|
9
10
|
private readonly nodeCheckListApiService;
|
|
10
11
|
private readonly checkListBlockService;
|
|
12
|
+
private readonly isTitleVerdictEmitted;
|
|
13
|
+
private readonly isDescriptionVerdictEmitted;
|
|
14
|
+
private readonly isVerdictPending;
|
|
11
15
|
protected readonly CHECKLIST_BLOCK_SELECT_OPTIONS: CuiContextMenuItem[];
|
|
12
|
-
protected readonly checkListItems:
|
|
13
|
-
protected readonly isLoading:
|
|
16
|
+
protected readonly checkListItems: Signal<import("@cuby-ui/cdk").CuiNullable<NodeCheckListItem<NodeCheckListItemContentType>[]>>;
|
|
17
|
+
protected readonly isLoading: WritableSignal<boolean>;
|
|
14
18
|
readonly componentId: import("@angular/core").InputSignal<string>;
|
|
15
19
|
readonly config: import("@angular/core").InputSignal<CuiEditorConfig>;
|
|
20
|
+
readonly isDescriptionRequired: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
readonly loadingChanged: OutputEmitterRef<boolean>;
|
|
22
|
+
readonly titleValidationChanged: OutputEmitterRef<boolean>;
|
|
23
|
+
readonly descriptionValidationChanged: OutputEmitterRef<boolean>;
|
|
16
24
|
constructor();
|
|
25
|
+
private initDescriptionRequirementEffect;
|
|
26
|
+
private initLoadingEffect;
|
|
27
|
+
private initValidationEffects;
|
|
28
|
+
private initVerdictEffect;
|
|
17
29
|
private initNodeCheckListBlock;
|
|
18
30
|
private addCheckListItem;
|
|
19
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<CuiChecklistBlockComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiChecklistBlockComponent, "cui-checklist-block, [cuiCheckListBlock]", never, { "componentId": { "alias": "componentId"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CuiChecklistBlockComponent, "cui-checklist-block, [cuiCheckListBlock]", never, { "componentId": { "alias": "componentId"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "isDescriptionRequired": { "alias": "isDescriptionRequired"; "required": false; "isSignal": true; }; }, { "loadingChanged": "loadingChanged"; "titleValidationChanged": "titleValidationChanged"; "descriptionValidationChanged": "descriptionValidationChanged"; }, never, never, true, never>;
|
|
21
33
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { OnInit, Type } from '@angular/core';
|
|
1
|
+
import type { OnDestroy, OnInit, Type } from '@angular/core';
|
|
2
2
|
import { NodeCheckListItem, NodeCheckListItemContentType } from '@cuby-ui/api';
|
|
3
3
|
import type { CuiCheckListBlockItem } from '../../checklist-block.options';
|
|
4
4
|
import { CuiNodeCheckListItemWithOption } from './checklist-block-list-item-container.options';
|
|
5
5
|
import { CuiEditorConfig } from '../../../../../editor';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class CuiChecklistBlockListItemContainerComponent implements OnInit {
|
|
7
|
+
export declare class CuiChecklistBlockListItemContainerComponent implements OnInit, OnDestroy {
|
|
8
8
|
private readonly destroyRef;
|
|
9
9
|
private readonly nonNullableFormBuilder;
|
|
10
10
|
private readonly translocoService;
|
|
@@ -14,10 +14,12 @@ export declare class CuiChecklistBlockListItemContainerComponent implements OnIn
|
|
|
14
14
|
private readonly nodeCheckListApiService;
|
|
15
15
|
protected readonly DEFAULT_CONTROL_DELAY = 700;
|
|
16
16
|
protected readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
+
protected readonly isDescriptionEmpty: import("@angular/core").WritableSignal<boolean>;
|
|
17
18
|
readonly checkListBlockItem: import("@angular/core").InputSignal<CuiCheckListBlockItem>;
|
|
18
19
|
readonly config: import("@angular/core").InputSignal<CuiEditorConfig>;
|
|
19
20
|
readonly index: import("@angular/core").InputSignal<number>;
|
|
20
21
|
protected readonly componentId: import("@angular/core").Signal<import("@cuby-ui/cdk").CuiNullable<string>>;
|
|
22
|
+
protected readonly isDescriptionRequired: import("@angular/core").Signal<boolean>;
|
|
21
23
|
protected readonly rotate: import("@angular/core").Signal<string>;
|
|
22
24
|
protected readonly headerText: import("@angular/core").Signal<string>;
|
|
23
25
|
protected readonly checkListItem: import("@angular/core").Signal<NodeCheckListItem<NodeCheckListItemContentType>>;
|
|
@@ -29,12 +31,17 @@ export declare class CuiChecklistBlockListItemContainerComponent implements OnIn
|
|
|
29
31
|
protected get isTitleEmpty(): boolean;
|
|
30
32
|
protected get isTitleError(): boolean;
|
|
31
33
|
ngOnInit(): void;
|
|
34
|
+
ngOnDestroy(): void;
|
|
32
35
|
protected onRowToggle(): void;
|
|
33
36
|
protected onAllowDrag(): void;
|
|
34
37
|
protected onProhibitDrag(): void;
|
|
38
|
+
protected onDescriptionEmpty(isEmpty: boolean): void;
|
|
35
39
|
private initControls;
|
|
36
40
|
private initTitleControlValue;
|
|
41
|
+
private initTitleControlValidity;
|
|
37
42
|
private initTitleControlSubscription;
|
|
43
|
+
private destroyItemValidity;
|
|
44
|
+
private reportTitleValidity;
|
|
38
45
|
private openDeleteChecklistNodeModal;
|
|
39
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<CuiChecklistBlockListItemContainerComponent, never>;
|
|
40
47
|
static ɵcmp: i0.ɵɵComponentDeclaration<CuiChecklistBlockListItemContainerComponent, "cui-checklist-block-list-item-container", never, { "checkListBlockItem": { "alias": "checkListBlockItem"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -5,15 +5,30 @@ export declare class CuiCheckListBlockService {
|
|
|
5
5
|
private readonly checkListItemsSignal;
|
|
6
6
|
private readonly componentIdSignal;
|
|
7
7
|
private readonly isDragAvailableSignal;
|
|
8
|
+
private readonly titleInvalidityByIdSignal;
|
|
9
|
+
private readonly descriptionInvalidityByIdSignal;
|
|
10
|
+
private readonly isDescriptionRequiredSignal;
|
|
8
11
|
readonly checkListItems: import("@angular/core").Signal<CuiNullable<NodeCheckListItem<NodeCheckListItemContentType>[]>>;
|
|
9
12
|
readonly componentId: import("@angular/core").Signal<CuiNullable<string>>;
|
|
10
13
|
readonly isDragAvailable: import("@angular/core").Signal<boolean>;
|
|
14
|
+
readonly isDescriptionRequired: import("@angular/core").Signal<boolean>;
|
|
15
|
+
readonly isTitleReady: import("@angular/core").Signal<boolean>;
|
|
16
|
+
readonly isTitleValid: import("@angular/core").Signal<boolean>;
|
|
17
|
+
readonly isDescriptionReady: import("@angular/core").Signal<boolean>;
|
|
18
|
+
readonly isDescriptionValid: import("@angular/core").Signal<boolean>;
|
|
11
19
|
setCheckListItems(checkListItems: NodeCheckListItem<NodeCheckListItemContentType>[]): void;
|
|
12
20
|
addCheckListItem(checkListItem: NodeCheckListItem<NodeCheckListItemContentType>): void;
|
|
13
21
|
updateCheckListItem(updatedCheckListItem: NodeCheckListItem<NodeCheckListItemContentType>): void;
|
|
14
22
|
deleteCheckListItem(id: string): void;
|
|
15
23
|
setComponentId(id: string): void;
|
|
16
24
|
toggleDragPermission(isDragButtonVisible: boolean): void;
|
|
25
|
+
setDescriptionRequired(isRequired: boolean): void;
|
|
26
|
+
setItemTitleInvalidity(id: string, isInvalid: boolean): void;
|
|
27
|
+
setItemDescriptionInvalidity(id: string, isInvalid: boolean): void;
|
|
28
|
+
removeItemValidity(id: string): void;
|
|
29
|
+
private hasEveryItemReported;
|
|
30
|
+
private hasInvalidItem;
|
|
31
|
+
private omitItem;
|
|
17
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<CuiCheckListBlockService, never>;
|
|
18
33
|
static ɵprov: i0.ɵɵInjectableDeclaration<CuiCheckListBlockService>;
|
|
19
34
|
}
|