@cuby-ui/core 0.0.324 → 0.0.327

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 (35) hide show
  1. package/esm2022/widgets/index.mjs +3 -1
  2. package/esm2022/widgets/select-modal/components/index.mjs +3 -0
  3. package/esm2022/widgets/select-modal/components/select-modal-folder/index.mjs +2 -0
  4. package/esm2022/widgets/select-modal/components/select-modal-folder/select-modal-folder.component.mjs +21 -0
  5. package/esm2022/widgets/select-modal/components/select-modal-search/index.mjs +2 -0
  6. package/esm2022/widgets/select-modal/components/select-modal-search/select-modal-search.component.mjs +22 -0
  7. package/esm2022/widgets/select-modal/index.mjs +4 -0
  8. package/esm2022/widgets/select-modal/select-modal.component.mjs +35 -0
  9. package/esm2022/widgets/select-modal/select-modal.interfaces.mjs +2 -0
  10. package/esm2022/widgets/select-modal/select-modal.service.mjs +23 -0
  11. package/esm2022/widgets/storage-list/components/index.mjs +2 -0
  12. package/esm2022/widgets/storage-list/components/storage-list-item/index.mjs +2 -0
  13. package/esm2022/widgets/storage-list/components/storage-list-item/storage-list-item.component.mjs +70 -0
  14. package/esm2022/widgets/storage-list/index.mjs +3 -0
  15. package/esm2022/widgets/storage-list/storage-list.component.mjs +17 -0
  16. package/esm2022/widgets/storage-list/storage-list.options.mjs +3 -0
  17. package/fesm2022/cuby-ui-core.mjs +152 -1
  18. package/fesm2022/cuby-ui-core.mjs.map +1 -1
  19. package/package.json +4 -4
  20. package/widgets/index.d.ts +2 -0
  21. package/widgets/select-modal/components/index.d.ts +2 -0
  22. package/widgets/select-modal/components/select-modal-folder/index.d.ts +1 -0
  23. package/widgets/select-modal/components/select-modal-folder/select-modal-folder.component.d.ts +10 -0
  24. package/widgets/select-modal/components/select-modal-search/index.d.ts +1 -0
  25. package/widgets/select-modal/components/select-modal-search/select-modal-search.component.d.ts +7 -0
  26. package/widgets/select-modal/index.d.ts +3 -0
  27. package/widgets/select-modal/select-modal.component.d.ts +13 -0
  28. package/widgets/select-modal/select-modal.interfaces.d.ts +15 -0
  29. package/widgets/select-modal/select-modal.service.d.ts +13 -0
  30. package/widgets/storage-list/components/index.d.ts +1 -0
  31. package/widgets/storage-list/components/storage-list-item/index.d.ts +1 -0
  32. package/widgets/storage-list/components/storage-list-item/storage-list-item.component.d.ts +24 -0
  33. package/widgets/storage-list/index.d.ts +2 -0
  34. package/widgets/storage-list/storage-list.component.d.ts +10 -0
  35. package/widgets/storage-list/storage-list.options.d.ts +16 -0
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@cuby-ui/core",
3
- "version": "0.0.324",
3
+ "version": "0.0.327",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
7
7
  "@angular/elements": ">=18.0.0",
8
8
  "@angular/forms": ">=18.0.0",
9
- "@cuby-ui/api": "^0.0.324",
10
- "@cuby-ui/cdk": "^0.0.324",
11
- "@cuby-ui/icons": "^0.0.324",
9
+ "@cuby-ui/api": "^0.0.327",
10
+ "@cuby-ui/cdk": "^0.0.327",
11
+ "@cuby-ui/icons": "^0.0.327",
12
12
  "@editorjs/editorjs": "2.29.1",
13
13
  "@editorjs/header": "^2.8.1",
14
14
  "@editorjs/list": "^1.9.0",
@@ -7,4 +7,6 @@ export { CuiCriterionReadonlyInfoComponent } from './criterion-readonly-info';
7
7
  export { CuiCriterionInfoComponent } from './criterion-info';
8
8
  export { CuiInstructionInfoComponent } from './instruction-info';
9
9
  export { CuiGeneralControlErrorHintComponent } from './general-control-error-hint';
10
+ export * from './select-modal';
11
+ export * from './storage-list';
10
12
  export * from './utility-modal';
@@ -0,0 +1,2 @@
1
+ export { CuiSelectModalFolderComponent } from './select-modal-folder';
2
+ export { CuiSelectModalSearchComponent } from './select-modal-search';
@@ -0,0 +1 @@
1
+ export { CuiSelectModalFolderComponent } from './select-modal-folder.component';
@@ -0,0 +1,10 @@
1
+ import type { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CuiSelectModalFolderComponent {
4
+ protected readonly icon: import("@angular/core").Signal<"cuiIconFolderOpen" | "cuiIconFolder">;
5
+ readonly title: import("@angular/core").InputSignal<string>;
6
+ readonly buttonSlot: import("@angular/core").InputSignal<TemplateRef<unknown>>;
7
+ readonly isOpen: import("@angular/core").InputSignal<boolean>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiSelectModalFolderComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<CuiSelectModalFolderComponent, "cui-select-modal-folder", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "buttonSlot": { "alias": "buttonSlot"; "required": true; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1 @@
1
+ export { CuiSelectModalSearchComponent } from './select-modal-search.component';
@@ -0,0 +1,7 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CuiSelectModalSearchComponent {
4
+ protected readonly searchControl: FormControl<string | null>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiSelectModalSearchComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<CuiSelectModalSearchComponent, "cui-select-modal-search", never, {}, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,3 @@
1
+ export * from './components';
2
+ export { CuiSelectModalComponent } from './select-modal.component';
3
+ export { CuiSelectModalService } from './select-modal.service';
@@ -0,0 +1,13 @@
1
+ import type { CuiSelectModalDialogData } from './select-modal.interfaces';
2
+ import type { CuiDialogContext } from '../../components/dialog';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CuiSelectModalComponent {
5
+ protected readonly context: CuiDialogContext<CuiSelectModalDialogData>;
6
+ private readonly data;
7
+ protected readonly heading: string;
8
+ protected readonly leftData: import("./select-modal.interfaces").CuiSelectModalComponentData;
9
+ protected readonly rightData: import("./select-modal.interfaces").CuiSelectModalComponentData;
10
+ protected onCancel(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiSelectModalComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<CuiSelectModalComponent, "ng-component", never, {}, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,15 @@
1
+ import type { Type } from '@angular/core';
2
+ export interface CuiSelectModalDialogData {
3
+ readonly heading: string;
4
+ readonly leftData: CuiSelectModalComponentData;
5
+ readonly rightData: CuiSelectModalComponentData;
6
+ }
7
+ export interface CuiSelectModalComponentData {
8
+ readonly component: Type<unknown>;
9
+ readonly inputs?: {
10
+ [key: string]: unknown;
11
+ };
12
+ }
13
+ export type CuiSelectModalElement = {
14
+ id: string;
15
+ };
@@ -0,0 +1,13 @@
1
+ import type { Signal } from '@angular/core';
2
+ import type { CuiNullable } from '@cuby-ui/cdk';
3
+ import type { CuiSelectModalElement } from './select-modal.interfaces';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CuiSelectModalService {
6
+ private readonly selectedElementSignal;
7
+ readonly selectedElement: Signal<CuiNullable<CuiSelectModalElement>>;
8
+ getSelectedData<T>(): Signal<CuiNullable<T>>;
9
+ set(element: CuiSelectModalElement): void;
10
+ delete(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiSelectModalService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<CuiSelectModalService>;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './storage-list-item';
@@ -0,0 +1 @@
1
+ export { CuiStorageListItemComponent } from './storage-list-item.component';
@@ -0,0 +1,24 @@
1
+ import type { TemplateRef } from '@angular/core';
2
+ import type { CuiStorage, CuiStorageBase } from '../../storage-list.options';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CuiStorageListItemComponent<T = CuiStorageBase> {
5
+ private readonly storageListService;
6
+ private isLoadingChildren;
7
+ private isLoadingElements;
8
+ protected readonly storageChildren: import("@angular/core").WritableSignal<CuiStorage<CuiStorageBase>[]>;
9
+ protected readonly storageElements: import("@angular/core").WritableSignal<CuiStorageBase[]>;
10
+ protected readonly areContentOpened: import("@angular/core").WritableSignal<boolean>;
11
+ protected readonly openCloseButtonIcon: import("@angular/core").Signal<"cuiIconStarOutlined" | "cuiIconSlashSm" | "cuiIconSlash" | "cuiIconLoading" | "cuiIconCheck" | "cuiIconCheckSm" | "cuiIconCheckCircle" | "cuiIconCheckCircleSm" | "cuiIconCheckCircleV2" | "cuiIconMoreVertical" | "cuiIconMoreVerticalSm" | "cuiIconTrash" | "cuiIconTrashSm" | "cuiIconEdit" | "cuiIconEditSm" | "cuiIconArrowSortSm" | "cuiIconX" | "cuiIconXSm" | "cuiIconXCircle" | "cuiIconXCircleSm" | "cuiIconClear" | "cuiIconClearSm" | "cuiIconEye" | "cuiIconEyeSm" | "cuiIconEyeOff" | "cuiIconEyeOffSm" | "cuiIconChevronUp" | "cuiIconChevronUpSm" | "cuiIconChevronRight" | "cuiIconChevronRightSm" | "cuiIconChevronDown" | "cuiIconChevronDownSm" | "cuiIconChevronLeft" | "cuiIconChevronLeftSm" | "cuiIconChevronsRight" | "cuiIconChevronsRightSm" | "cuiIconChevronsLeft" | "cuiIconChevronsLeftSm" | "cuiIconChevronsSwitch" | "cuiIconDatabase" | "cuiIconDatabaseSm" | "cuiIconHome" | "cuiIconHomeSm" | "cuiIconUser" | "cuiIconUserSm" | "cuiIconUsers" | "cuiIconUsersBg" | "cuiIconUsersSm" | "cuiIconUserPlus" | "cuiIconUserPlusSm" | "cuiIconFormula" | "cuiIconSettings" | "cuiIconSettingsSm" | "cuiIconSettingsBold" | "cuiIconCopy" | "cuiIconCopySm" | "cuiIconSidebar" | "cuiIconSidebarSm" | "cuiIconChart" | "cuiIconFolder" | "cuiIconFolderSm" | "cuiIconFolderOpen" | "cuiIconFolderOpenSm" | "cuiIconPlus" | "cuiIconPlusSm" | "cuiIconPlusCircle" | "cuiIconFiltersLines" | "cuiIconFiltersLinesSm" | "cuiIconSearch" | "cuiIconSearchSm" | "cuiIconGrid" | "cuiIconGridSm" | "cuiIconList" | "cuiIconListSm" | "cuiIconProgress" | "cuiIconSortAZSm" | "cuiIconFlagBold" | "cuiIconFileText" | "cuiIconFileTextSm" | "cuiIconLink" | "cuiIconExternalLinkSm" | "cuiIconLinkBroken" | "cuiIconLinkBrokenSm" | "cuiIconClock" | "cuiIconClockSm" | "cuiIconInfo" | "cuiIconInfoSm" | "cuiIconInfoCircle" | "cuiIconInfoCircleBg" | "cuiIconAlertTriangle" | "cuiIconAlertTriangleSm" | "cuiIconAlertCircle" | "cuiIcon2Layers" | "cuiIcon2LayersSm" | "cuiIcon3Layers" | "cuiIcon3LayersSm" | "cuiIconLearningSm" | "cuiIconBellSm" | "cuiIconMessageCircle" | "cuiIconMessageCircleSm" | "cuiIconSlashDivider" | "cuiIconCaretDownFillXxs" | "cuiIconCaretDownFill" | "cuiIconDragHandleDots" | "cuiIconPlayCircle" | "cuiIconPlayCircleSm" | "cuiIconClipBoard" | "cuiIconClipBoardSm" | "cuiIconUpload" | "cuiIconUploadSm" | "cuiIconMaximize" | "cuiIconMaximizeSm" | "cuiIconArrowUpRight" | "cuiIconArrowUpRightSm" | "cuiIconAddBranchSm" | "cuiIconBranch" | "cuiIconBranchSm" | "cuiIconPaperclip" | "cuiIconPaperclipSm" | "cuiIconToolsSm" | "cuiIconPartsSm" | "cuiIconEquipmentSm" | "cuiIconPrimitive" | "cuiIconPrimitiveSm" | "cuiIconSpool" | "cuiIconSpoolSm" | "cuiIconTank" | "cuiIconTankSm" | "cuiIconAssembly" | "cuiIconAssemblySm" | "cuiIconVariant" | "cuiIconVariantSm" | "cuiIconRichText" | "cuiIconRichTextSm" | "cuiIconChecklist" | "cuiIconRefreshCcwSm" | "cuiIconRefreshCcw" | "cuiIconBarChartSm" | "cuiIconBarChart" | "cuiIconCurvedArrow" | "cuiIconBulletFillSm" | "cuiIconBulletSm" | "cuiIconArrowRight" | "cuiIconArrowRightSm" | "cuiIconImage" | "cuiIconCutLinearSm" | "cuiIconCutLinear" | "cuiIconForkLift" | "cuiIconForkLiftSm" | "cuiIconPartPrimitive" | "cuiIconPartPrimitiveSm" | "cuiIconChecklistsSm" | "cuiIconViewInAr" | "cuiIconViewInArSm" | "cuiIconFloorplanSolid" | "cuiIconFloorplanSolidSm" | "cuiIconMoon" | "cuiIconMoonSm" | "cuiIconSunSm" | "cuiIconTool" | "cuiIconToolSm" | "cuiIconCamera" | "cuiIconPanModeSm" | "cuiIconCrane" | "cuiIconCraneSm" | "cuiIconBin" | "cuiIconBinSm" | "cuiIconAuxSm" | "cuiIcon5sSm" | "cuiIconRackSm" | "cuiIconComputerChipSm" | "cuiIconRack" | "cuiIconAccessories" | "cuiIconAccessoriesSm" | "cuiIconLogisticVehicle" | "cuiIconLogisticVehicleSm" | "cuiIconCollapseSm" | "cuiIconBookOpenSm" | "cuiIconBriefcaseSm" | "cuiIconCreditCardSm" | "cuiIconTrelloSm" | "cuiIconBookOpen" | "cuiIconBriefcase" | "cuiIconCreditCard" | "cuiIconTrello" | "cuiIconLogOut" | "cuiIconOrderSm" | "cuiIconCalendarSm" | "cuiIconMapPin" | "cuiIconBuildingSm" | "cuiIconStopCircleSm" | "cuiIconPauseCircleSm" | "cuiIconPlayCircleFilledSm" | "cuiIconMenuSm" | "cuiIconTeaCupSm" | "cuiIconSubstageInstructionSm" | "cuiIconTaskInstructionSm" | "cuiIconToolsInstructionSm" | "cuiIconApprovalInstructionSm">;
12
+ protected readonly hasContent: import("@angular/core").Signal<number>;
13
+ readonly storage: import("@angular/core").InputSignal<CuiStorage<T>>;
14
+ readonly elementSlot: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
15
+ readonly itemSlot: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
16
+ constructor();
17
+ protected onToggleChildren(event: MouseEvent): void;
18
+ private initStorageChildrenEffect;
19
+ private initStorageElementsEffect;
20
+ private setChildren;
21
+ private setElements;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiStorageListItemComponent<any>, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<CuiStorageListItemComponent<any>, "li[cuiStorageListItem]", never, { "storage": { "alias": "storage"; "required": true; "isSignal": true; }; "elementSlot": { "alias": "elementSlot"; "required": false; "isSignal": true; }; "itemSlot": { "alias": "itemSlot"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
24
+ }
@@ -0,0 +1,2 @@
1
+ export { CuiStorageListComponent } from './storage-list.component';
2
+ export * from './storage-list.options';
@@ -0,0 +1,10 @@
1
+ import type { TemplateRef } from '@angular/core';
2
+ import type { CuiStorage } from './storage-list.options';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CuiStorageListComponent<T> {
5
+ readonly storages: import("@angular/core").InputSignal<CuiStorage<T>[]>;
6
+ readonly elementSlot: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
7
+ readonly itemSlot: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiStorageListComponent<any>, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<CuiStorageListComponent<any>, "cui-storage-list", never, { "storages": { "alias": "storages"; "required": true; "isSignal": true; }; "elementSlot": { "alias": "elementSlot"; "required": false; "isSignal": true; }; "itemSlot": { "alias": "itemSlot"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,16 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import type { Observable } from 'rxjs';
3
+ export declare const CUI_STORAGE_LIST_SERVICE_TOKEN: InjectionToken<CuiStorageListService<CuiStorageBase>>;
4
+ export interface CuiStorageListService<T = CuiStorageBase> {
5
+ getChildren?(children: CuiStorage<T>, prevChildrens: CuiStorage<T>[]): Observable<CuiStorage<T>[]>;
6
+ getElements?(element: CuiStorage<T>, prevElements: T[]): Observable<T[]>;
7
+ }
8
+ export interface CuiStorageBase {
9
+ readonly id: string;
10
+ readonly name?: string;
11
+ readonly title?: string;
12
+ }
13
+ export interface CuiStorage<T = CuiStorageBase> extends CuiStorageBase {
14
+ readonly elements?: T[];
15
+ readonly children: CuiStorage<T>[] | string[];
16
+ }