@shival99/z-ui 2.1.28 → 2.1.29
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 +1 -1
- package/types/shival99-z-ui-components-z-select.d.ts +1 -1
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs +0 -1079
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs +0 -742
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs +0 -58
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-editor.mjs +0 -1750
- package/fesm2022/shival99-z-ui-components-z-editor.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs +0 -2419
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-kanban.mjs +0 -981
- package/fesm2022/shival99-z-ui-components-z-kanban.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-marquee.mjs +0 -70
- package/fesm2022/shival99-z-ui-components-z-marquee.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-media-player.mjs +0 -668
- package/fesm2022/shival99-z-ui-components-z-media-player.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-menu.mjs +0 -843
- package/fesm2022/shival99-z-ui-components-z-menu.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-metric-card.mjs +0 -128
- package/fesm2022/shival99-z-ui-components-z-metric-card.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs +0 -158
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-qrcode.mjs +0 -383
- package/fesm2022/shival99-z-ui-components-z-qrcode.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-radio.mjs +0 -167
- package/fesm2022/shival99-z-ui-components-z-radio.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-scrollarea.mjs +0 -131
- package/fesm2022/shival99-z-ui-components-z-scrollarea.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-show-more.mjs +0 -121
- package/fesm2022/shival99-z-ui-components-z-show-more.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-skeleton-auto.mjs +0 -61
- package/fesm2022/shival99-z-ui-components-z-skeleton-auto.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-steps.mjs +0 -396
- package/fesm2022/shival99-z-ui-components-z-steps.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +0 -10508
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs +0 -507
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-tags.mjs +0 -349
- package/fesm2022/shival99-z-ui-components-z-tags.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs +0 -237
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs.map +0 -1
- package/fesm2022/shival99-z-ui-components-z-upload.mjs +0 -523
- package/fesm2022/shival99-z-ui-components-z-upload.mjs.map +0 -1
- package/types/shival99-z-ui-components-z-autocomplete.d.ts +0 -290
- package/types/shival99-z-ui-components-z-drawer.d.ts +0 -266
- package/types/shival99-z-ui-components-z-dropdown-menu.d.ts +0 -54
- package/types/shival99-z-ui-components-z-editor.d.ts +0 -337
- package/types/shival99-z-ui-components-z-gallery.d.ts +0 -402
- package/types/shival99-z-ui-components-z-kanban.d.ts +0 -237
- package/types/shival99-z-ui-components-z-marquee.d.ts +0 -35
- package/types/shival99-z-ui-components-z-media-player.d.ts +0 -124
- package/types/shival99-z-ui-components-z-menu.d.ts +0 -222
- package/types/shival99-z-ui-components-z-metric-card.d.ts +0 -67
- package/types/shival99-z-ui-components-z-pagination.d.ts +0 -55
- package/types/shival99-z-ui-components-z-qrcode.d.ts +0 -76
- package/types/shival99-z-ui-components-z-radio.d.ts +0 -69
- package/types/shival99-z-ui-components-z-scrollarea.d.ts +0 -46
- package/types/shival99-z-ui-components-z-show-more.d.ts +0 -36
- package/types/shival99-z-ui-components-z-skeleton-auto.d.ts +0 -35
- package/types/shival99-z-ui-components-z-steps.d.ts +0 -106
- package/types/shival99-z-ui-components-z-table.d.ts +0 -1924
- package/types/shival99-z-ui-components-z-tabs.d.ts +0 -92
- package/types/shival99-z-ui-components-z-tags.d.ts +0 -128
- package/types/shival99-z-ui-components-z-timeline.d.ts +0 -71
- package/types/shival99-z-ui-components-z-upload.d.ts +0 -153
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
3
|
-
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
4
|
-
import { ClassValue } from 'clsx';
|
|
5
|
-
import { LayoutConfig, ThemeConfig, ControlVisibilityConfig, GroupVisibilityConfig, AutoActionConfig, ViewerConfig, PdfJsViewerComponent } from 'ng2-pdfjs-viewer';
|
|
6
|
-
import * as _shival99_z_ui_components_z_gallery from '@shival99/z-ui/components/z-gallery';
|
|
7
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
8
|
-
import { OverlayRef } from '@angular/cdk/overlay';
|
|
9
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
10
|
-
import { VariantProps } from 'class-variance-authority';
|
|
11
|
-
|
|
12
|
-
type ZGalleryMode = 'grid' | 'list';
|
|
13
|
-
type ZGallerySize = 'sm' | 'default' | 'lg';
|
|
14
|
-
type ZGalleryToggleSize = 'xs' | 'sm' | 'default' | 'lg';
|
|
15
|
-
type ZGalleryPdfViewerZoom = 'auto' | 'page-fit' | 'page-width' | 'page-actual' | `${number}%`;
|
|
16
|
-
type ZGalleryPdfViewerCursor = 'select' | 'hand' | 'zoom';
|
|
17
|
-
type ZGalleryPdfViewerScroll = 'vertical' | 'horizontal' | 'wrapped' | 'page';
|
|
18
|
-
type ZGalleryPdfViewerSpread = 'none' | 'odd' | 'even';
|
|
19
|
-
type ZGalleryPdfViewerPageMode = 'none' | 'thumbs' | 'bookmarks' | 'attachments';
|
|
20
|
-
interface ZGalleryPdfViewerConfig {
|
|
21
|
-
viewerFolder?: string;
|
|
22
|
-
locale?: string;
|
|
23
|
-
showSpinner?: boolean;
|
|
24
|
-
useOnlyCssZoom?: boolean;
|
|
25
|
-
diagnosticLogs?: boolean;
|
|
26
|
-
showOpenFile?: boolean;
|
|
27
|
-
showAnnotations?: boolean;
|
|
28
|
-
showDownload?: boolean;
|
|
29
|
-
showViewBookmark?: boolean;
|
|
30
|
-
showPrint?: boolean;
|
|
31
|
-
showFullScreen?: boolean;
|
|
32
|
-
showFind?: boolean;
|
|
33
|
-
downloadOnLoad?: boolean;
|
|
34
|
-
printOnLoad?: boolean;
|
|
35
|
-
rotateCW?: boolean;
|
|
36
|
-
rotateCCW?: boolean;
|
|
37
|
-
showLastPageOnLoad?: boolean;
|
|
38
|
-
showToolbarLeft?: boolean;
|
|
39
|
-
showToolbarMiddle?: boolean;
|
|
40
|
-
showToolbarRight?: boolean;
|
|
41
|
-
showSecondaryToolbarToggle?: boolean;
|
|
42
|
-
showSidebar?: boolean;
|
|
43
|
-
showSidebarLeft?: boolean;
|
|
44
|
-
showSidebarRight?: boolean;
|
|
45
|
-
toolbarDensity?: LayoutConfig['toolbarDensity'];
|
|
46
|
-
sidebarWidth?: string;
|
|
47
|
-
toolbarPosition?: LayoutConfig['toolbarPosition'];
|
|
48
|
-
sidebarPosition?: LayoutConfig['sidebarPosition'];
|
|
49
|
-
responsiveBreakpoint?: string | number;
|
|
50
|
-
zoom?: ZGalleryPdfViewerZoom;
|
|
51
|
-
rotation?: 0 | 90 | 180 | 270;
|
|
52
|
-
cursor?: ZGalleryPdfViewerCursor;
|
|
53
|
-
scroll?: ZGalleryPdfViewerScroll;
|
|
54
|
-
spread?: ZGalleryPdfViewerSpread;
|
|
55
|
-
pageMode?: ZGalleryPdfViewerPageMode;
|
|
56
|
-
page?: number;
|
|
57
|
-
iframeBorder?: string | number;
|
|
58
|
-
theme?: ThemeConfig['theme'];
|
|
59
|
-
primaryColor?: string;
|
|
60
|
-
backgroundColor?: string;
|
|
61
|
-
pageBorderColor?: string;
|
|
62
|
-
pageSpacing?: ThemeConfig['pageSpacing'];
|
|
63
|
-
toolbarColor?: string;
|
|
64
|
-
textColor?: string;
|
|
65
|
-
borderRadius?: string;
|
|
66
|
-
customCSS?: string;
|
|
67
|
-
cspNonce?: string;
|
|
68
|
-
iframeTitle?: string;
|
|
69
|
-
urlValidation?: boolean;
|
|
70
|
-
controlVisibility?: ControlVisibilityConfig;
|
|
71
|
-
groupVisibility?: GroupVisibilityConfig;
|
|
72
|
-
autoActions?: AutoActionConfig;
|
|
73
|
-
viewerConfig?: ViewerConfig;
|
|
74
|
-
themeConfig?: ThemeConfig;
|
|
75
|
-
layoutConfig?: LayoutConfig;
|
|
76
|
-
}
|
|
77
|
-
interface ZGalleryFile {
|
|
78
|
-
id: string;
|
|
79
|
-
name: string;
|
|
80
|
-
size: number;
|
|
81
|
-
type: string;
|
|
82
|
-
url?: string;
|
|
83
|
-
downloadUrl?: string;
|
|
84
|
-
thumbnailUrl?: string;
|
|
85
|
-
createdAt?: Date;
|
|
86
|
-
updatedAt?: Date;
|
|
87
|
-
}
|
|
88
|
-
type ZFileCategory = 'image' | 'pdf' | 'word' | 'excel' | 'powerpoint' | 'video' | 'audio' | 'archive' | 'code' | 'text' | 'unknown';
|
|
89
|
-
interface ZFileCategoryStyle {
|
|
90
|
-
bg: string;
|
|
91
|
-
text: string;
|
|
92
|
-
label: string;
|
|
93
|
-
icon: string;
|
|
94
|
-
}
|
|
95
|
-
declare const FILE_CATEGORY_STYLES: Record<ZFileCategory, ZFileCategoryStyle>;
|
|
96
|
-
interface ZGalleryControl {
|
|
97
|
-
setMode: (mode: ZGalleryMode) => void;
|
|
98
|
-
getMode: () => ZGalleryMode;
|
|
99
|
-
getFiles: () => ZGalleryFile[];
|
|
100
|
-
openPreview: (file: ZGalleryFile) => void;
|
|
101
|
-
closePreview: () => void;
|
|
102
|
-
selectAll: () => void;
|
|
103
|
-
deselectAll: () => void;
|
|
104
|
-
toggleSelection: (file: ZGalleryFile) => void;
|
|
105
|
-
getSelectedFiles: () => ZGalleryFile[];
|
|
106
|
-
isSelected: (file: ZGalleryFile) => boolean;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Action types emitted by gallery events
|
|
110
|
-
*/
|
|
111
|
-
type ZGalleryActionType = 'select' | 'deselect' | 'select-all' | 'deselect-all' | 'delete' | 'download' | 'preview';
|
|
112
|
-
/**
|
|
113
|
-
* Event payload for zOnAction output
|
|
114
|
-
*/
|
|
115
|
-
interface ZGalleryActionEvent {
|
|
116
|
-
type: ZGalleryActionType;
|
|
117
|
-
file?: ZGalleryFile;
|
|
118
|
-
files?: ZGalleryFile[];
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Selection change event
|
|
122
|
-
*/
|
|
123
|
-
interface ZGallerySelectionChange {
|
|
124
|
-
selectedFiles: ZGalleryFile[];
|
|
125
|
-
addedFiles?: ZGalleryFile[];
|
|
126
|
-
removedFiles?: ZGalleryFile[];
|
|
127
|
-
}
|
|
128
|
-
interface ZGalleryPreviewOptions {
|
|
129
|
-
file: ZGalleryFile;
|
|
130
|
-
files?: ZGalleryFile[];
|
|
131
|
-
zDownload?: boolean;
|
|
132
|
-
zShowRemove?: boolean;
|
|
133
|
-
zPdfViewerConfig?: ZGalleryPdfViewerConfig;
|
|
134
|
-
zTrustedResourceOrigins?: string[];
|
|
135
|
-
zOnClose?: () => void;
|
|
136
|
-
zOnDownload?: (file: ZGalleryFile) => void;
|
|
137
|
-
zOnNavigate?: (file: ZGalleryFile) => void;
|
|
138
|
-
zOnRemove?: (file: ZGalleryFile) => void;
|
|
139
|
-
}
|
|
140
|
-
type ZGalleryPreviewItemOptions = Omit<ZGalleryPreviewOptions, 'file' | 'files'>;
|
|
141
|
-
|
|
142
|
-
declare class ZGalleryComponent implements AfterViewInit {
|
|
143
|
-
private readonly _destroyRef;
|
|
144
|
-
private readonly _previewService;
|
|
145
|
-
private _previewRef;
|
|
146
|
-
readonly zFiles: _angular_core.InputSignal<ZGalleryFile[]>;
|
|
147
|
-
readonly zMode: _angular_core.ModelSignal<ZGalleryMode>;
|
|
148
|
-
readonly zSize: _angular_core.InputSignal<ZGallerySize>;
|
|
149
|
-
readonly zColumns: _angular_core.InputSignal<number>;
|
|
150
|
-
readonly zItemWidth: _angular_core.InputSignal<string | null>;
|
|
151
|
-
readonly zLoading: _angular_core.InputSignal<boolean>;
|
|
152
|
-
readonly zSkeletonRows: _angular_core.InputSignal<number>;
|
|
153
|
-
readonly zSkeletonItems: _angular_core.InputSignal<number | null>;
|
|
154
|
-
readonly zShowDownload: _angular_core.InputSignal<boolean>;
|
|
155
|
-
readonly zShowPreview: _angular_core.InputSignal<boolean>;
|
|
156
|
-
readonly zShowRemove: _angular_core.InputSignal<boolean>;
|
|
157
|
-
readonly zPdfViewerConfig: _angular_core.InputSignal<ZGalleryPdfViewerConfig>;
|
|
158
|
-
readonly zTrustedResourceOrigins: _angular_core.InputSignal<string[]>;
|
|
159
|
-
readonly zShowModeToggle: _angular_core.InputSignal<boolean>;
|
|
160
|
-
readonly zShowSearch: _angular_core.InputSignal<boolean>;
|
|
161
|
-
readonly zServerSearch: _angular_core.InputSignal<boolean>;
|
|
162
|
-
readonly zSearchDebounce: _angular_core.InputSignal<number>;
|
|
163
|
-
readonly zSearchPlaceholder: _angular_core.InputSignal<string>;
|
|
164
|
-
readonly zToggleSize: _angular_core.InputSignal<ZGalleryToggleSize>;
|
|
165
|
-
readonly zTitle: _angular_core.InputSignal<string>;
|
|
166
|
-
readonly zEmptyText: _angular_core.InputSignal<string>;
|
|
167
|
-
readonly zEmptyIcon: _angular_core.InputSignal<ZIcon>;
|
|
168
|
-
readonly zClass: _angular_core.InputSignal<ClassValue>;
|
|
169
|
-
readonly zSelectable: _angular_core.InputSignal<boolean>;
|
|
170
|
-
readonly zSelectedFiles: _angular_core.ModelSignal<ZGalleryFile[]>;
|
|
171
|
-
readonly zOnDownload: _angular_core.OutputEmitterRef<ZGalleryFile>;
|
|
172
|
-
readonly zOnPreview: _angular_core.OutputEmitterRef<ZGalleryFile>;
|
|
173
|
-
readonly zOnRemove: _angular_core.OutputEmitterRef<ZGalleryFile>;
|
|
174
|
-
readonly zModeChange: _angular_core.OutputEmitterRef<ZGalleryMode>;
|
|
175
|
-
readonly zSearchChange: _angular_core.OutputEmitterRef<string>;
|
|
176
|
-
readonly zControl: _angular_core.OutputEmitterRef<ZGalleryControl>;
|
|
177
|
-
readonly zSelectionChange: _angular_core.OutputEmitterRef<ZGallerySelectionChange>;
|
|
178
|
-
readonly zOnAction: _angular_core.OutputEmitterRef<ZGalleryActionEvent>;
|
|
179
|
-
protected readonly modeIndex: _angular_core.WritableSignal<number | null>;
|
|
180
|
-
protected readonly searchInputQuery: _angular_core.WritableSignal<string>;
|
|
181
|
-
protected readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
182
|
-
protected readonly skeletonItems: _angular_core.Signal<number[]>;
|
|
183
|
-
protected readonly currentMode: _angular_core.Signal<ZGalleryMode>;
|
|
184
|
-
protected readonly gridColumnsClass: _angular_core.Signal<string>;
|
|
185
|
-
protected readonly gridTemplateColumns: _angular_core.Signal<string | null>;
|
|
186
|
-
protected readonly containerClasses: _angular_core.Signal<string>;
|
|
187
|
-
protected readonly showHeader: _angular_core.Signal<string | boolean>;
|
|
188
|
-
protected readonly headerControlHeight: _angular_core.Signal<"1.75rem" | "2rem" | "2.5rem" | "2.25rem">;
|
|
189
|
-
protected readonly skeletonMediaHeight: _angular_core.Signal<"9rem" | "14rem" | "11rem">;
|
|
190
|
-
protected readonly toggleIconSize: _angular_core.Signal<"14" | "16" | "20" | "18">;
|
|
191
|
-
protected readonly searchInputSize: _angular_core.Signal<"sm" | "default" | "lg">;
|
|
192
|
-
protected readonly filteredFiles: _angular_core.Signal<ZGalleryFile[]>;
|
|
193
|
-
protected readonly selectedIds: _angular_core.Signal<Set<string>>;
|
|
194
|
-
protected readonly isAllSelected: _angular_core.Signal<boolean>;
|
|
195
|
-
protected readonly isIndeterminate: _angular_core.Signal<boolean>;
|
|
196
|
-
protected readonly selectedCount: _angular_core.Signal<number>;
|
|
197
|
-
ngAfterViewInit(): void;
|
|
198
|
-
protected onSearchChange(query: string | number | null): void;
|
|
199
|
-
protected onDownload(file: ZGalleryFile): void;
|
|
200
|
-
protected onPreview(file: ZGalleryFile): void;
|
|
201
|
-
protected onRemove(file: ZGalleryFile): void;
|
|
202
|
-
protected closePreview(): void;
|
|
203
|
-
protected onRemoveFromPreview(file: ZGalleryFile): void;
|
|
204
|
-
private _openPreview;
|
|
205
|
-
protected isFileSelected(file: ZGalleryFile): boolean;
|
|
206
|
-
protected toggleSelection(file: ZGalleryFile): void;
|
|
207
|
-
protected selectAll(): void;
|
|
208
|
-
protected deselectAll(): void;
|
|
209
|
-
protected toggleSelectAll(): void;
|
|
210
|
-
protected onBulkDelete(): void;
|
|
211
|
-
protected onBulkDownload(): void;
|
|
212
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZGalleryComponent, never>;
|
|
213
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZGalleryComponent, "z-gallery", ["zGallery"], { "zFiles": { "alias": "zFiles"; "required": false; "isSignal": true; }; "zMode": { "alias": "zMode"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zColumns": { "alias": "zColumns"; "required": false; "isSignal": true; }; "zItemWidth": { "alias": "zItemWidth"; "required": false; "isSignal": true; }; "zLoading": { "alias": "zLoading"; "required": false; "isSignal": true; }; "zSkeletonRows": { "alias": "zSkeletonRows"; "required": false; "isSignal": true; }; "zSkeletonItems": { "alias": "zSkeletonItems"; "required": false; "isSignal": true; }; "zShowDownload": { "alias": "zShowDownload"; "required": false; "isSignal": true; }; "zShowPreview": { "alias": "zShowPreview"; "required": false; "isSignal": true; }; "zShowRemove": { "alias": "zShowRemove"; "required": false; "isSignal": true; }; "zPdfViewerConfig": { "alias": "zPdfViewerConfig"; "required": false; "isSignal": true; }; "zTrustedResourceOrigins": { "alias": "zTrustedResourceOrigins"; "required": false; "isSignal": true; }; "zShowModeToggle": { "alias": "zShowModeToggle"; "required": false; "isSignal": true; }; "zShowSearch": { "alias": "zShowSearch"; "required": false; "isSignal": true; }; "zServerSearch": { "alias": "zServerSearch"; "required": false; "isSignal": true; }; "zSearchDebounce": { "alias": "zSearchDebounce"; "required": false; "isSignal": true; }; "zSearchPlaceholder": { "alias": "zSearchPlaceholder"; "required": false; "isSignal": true; }; "zToggleSize": { "alias": "zToggleSize"; "required": false; "isSignal": true; }; "zTitle": { "alias": "zTitle"; "required": false; "isSignal": true; }; "zEmptyText": { "alias": "zEmptyText"; "required": false; "isSignal": true; }; "zEmptyIcon": { "alias": "zEmptyIcon"; "required": false; "isSignal": true; }; "zClass": { "alias": "zClass"; "required": false; "isSignal": true; }; "zSelectable": { "alias": "zSelectable"; "required": false; "isSignal": true; }; "zSelectedFiles": { "alias": "zSelectedFiles"; "required": false; "isSignal": true; }; }, { "zMode": "zModeChange"; "zSelectedFiles": "zSelectedFilesChange"; "zOnDownload": "zOnDownload"; "zOnPreview": "zOnPreview"; "zOnRemove": "zOnRemove"; "zModeChange": "zModeChange"; "zSearchChange": "zSearchChange"; "zControl": "zControl"; "zSelectionChange": "zSelectionChange"; "zOnAction": "zOnAction"; }, never, never, true, never>;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
declare class ZGalleryItemComponent {
|
|
217
|
-
readonly file: _angular_core.InputSignal<ZGalleryFile>;
|
|
218
|
-
readonly zMode: _angular_core.InputSignal<ZGalleryMode>;
|
|
219
|
-
readonly zSize: _angular_core.InputSignal<ZGallerySize>;
|
|
220
|
-
readonly zShowDownload: _angular_core.InputSignal<boolean>;
|
|
221
|
-
readonly zShowPreview: _angular_core.InputSignal<boolean>;
|
|
222
|
-
readonly zShowRemove: _angular_core.InputSignal<boolean>;
|
|
223
|
-
readonly zSelectable: _angular_core.InputSignal<boolean>;
|
|
224
|
-
readonly zSelected: _angular_core.InputSignal<boolean>;
|
|
225
|
-
readonly zOnDownload: _angular_core.OutputEmitterRef<ZGalleryFile>;
|
|
226
|
-
readonly zOnPreview: _angular_core.OutputEmitterRef<ZGalleryFile>;
|
|
227
|
-
readonly zOnRemove: _angular_core.OutputEmitterRef<ZGalleryFile>;
|
|
228
|
-
readonly zOnSelect: _angular_core.OutputEmitterRef<ZGalleryFile>;
|
|
229
|
-
protected readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
230
|
-
protected readonly formattedSize: _angular_core.Signal<string>;
|
|
231
|
-
protected readonly category: _angular_core.Signal<_shival99_z_ui_components_z_gallery.ZFileCategory>;
|
|
232
|
-
protected readonly isImage: _angular_core.Signal<boolean>;
|
|
233
|
-
protected readonly isVideo: _angular_core.Signal<boolean>;
|
|
234
|
-
protected readonly hasVideoPreview: _angular_core.Signal<boolean>;
|
|
235
|
-
protected readonly fileExtension: _angular_core.Signal<string>;
|
|
236
|
-
protected readonly mediaHeightClass: _angular_core.Signal<"h-36" | "h-56" | "h-44">;
|
|
237
|
-
protected readonly formattedDate: _angular_core.Signal<string | null>;
|
|
238
|
-
protected readonly categoryStyle: _angular_core.Signal<ZFileCategoryStyle & {
|
|
239
|
-
icon: ZIcon;
|
|
240
|
-
}>;
|
|
241
|
-
protected readonly fileTypeClasses: _angular_core.Signal<string>;
|
|
242
|
-
protected readonly canPreview: _angular_core.Signal<boolean>;
|
|
243
|
-
protected onImageLoad(): void;
|
|
244
|
-
protected onImageError(): void;
|
|
245
|
-
protected onDownload(event: Event): void;
|
|
246
|
-
protected onPreviewClick(event: Event): void;
|
|
247
|
-
protected onPreview(): void;
|
|
248
|
-
protected onItemClick(): void;
|
|
249
|
-
protected onRemove(event: Event): void;
|
|
250
|
-
protected onSelectClick(event: Event): void;
|
|
251
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZGalleryItemComponent, never>;
|
|
252
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZGalleryItemComponent, "z-gallery-item", never, { "file": { "alias": "file"; "required": true; "isSignal": true; }; "zMode": { "alias": "zMode"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zShowDownload": { "alias": "zShowDownload"; "required": false; "isSignal": true; }; "zShowPreview": { "alias": "zShowPreview"; "required": false; "isSignal": true; }; "zShowRemove": { "alias": "zShowRemove"; "required": false; "isSignal": true; }; "zSelectable": { "alias": "zSelectable"; "required": false; "isSignal": true; }; "zSelected": { "alias": "zSelected"; "required": false; "isSignal": true; }; }, { "zOnDownload": "zOnDownload"; "zOnPreview": "zOnPreview"; "zOnRemove": "zOnRemove"; "zOnSelect": "zOnSelect"; }, never, never, true, never>;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
declare class ZGalleryFileIconComponent {
|
|
256
|
-
readonly file: _angular_core.InputSignal<ZGalleryFile>;
|
|
257
|
-
readonly zSize: _angular_core.InputSignal<ZGallerySize>;
|
|
258
|
-
readonly zMode: _angular_core.InputSignal<ZGalleryMode>;
|
|
259
|
-
protected readonly imageError: _angular_core.WritableSignal<boolean>;
|
|
260
|
-
protected readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
261
|
-
protected readonly category: _angular_core.Signal<ZFileCategory>;
|
|
262
|
-
protected readonly style: _angular_core.Signal<_shival99_z_ui_components_z_gallery.ZFileCategoryStyle>;
|
|
263
|
-
protected readonly showThumbnail: _angular_core.Signal<boolean | "" | undefined>;
|
|
264
|
-
protected readonly containerClasses: _angular_core.Signal<string>;
|
|
265
|
-
protected onImageLoad(): void;
|
|
266
|
-
protected onImageError(event: Event): void;
|
|
267
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZGalleryFileIconComponent, never>;
|
|
268
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZGalleryFileIconComponent, "z-gallery-file-icon", never, { "file": { "alias": "file"; "required": true; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zMode": { "alias": "zMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
declare class ZGalleryPreviewItemDirective {
|
|
272
|
-
readonly zGalleryPreviewItem: _angular_core.InputSignal<ZGalleryFile>;
|
|
273
|
-
readonly zGalleryPreviewFiles: _angular_core.InputSignal<ZGalleryFile[] | null>;
|
|
274
|
-
readonly zGalleryPreviewOptions: _angular_core.InputSignal<ZGalleryPreviewItemOptions>;
|
|
275
|
-
readonly zDisabled: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
276
|
-
readonly zOnPreview: _angular_core.OutputEmitterRef<ZGalleryFile>;
|
|
277
|
-
private readonly _elementRef;
|
|
278
|
-
private readonly _previewService;
|
|
279
|
-
protected readonly hostRole: _angular_core.Signal<"button" | null>;
|
|
280
|
-
protected readonly hostTabIndex: _angular_core.Signal<0 | -1 | null>;
|
|
281
|
-
protected readonly hostAriaDisabled: _angular_core.Signal<true | null>;
|
|
282
|
-
protected openPreview(event?: Event): void;
|
|
283
|
-
private _isNativeInteractive;
|
|
284
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZGalleryPreviewItemDirective, never>;
|
|
285
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZGalleryPreviewItemDirective, "[zGalleryPreviewItem], [z-gallery-preview-item]", ["zGalleryPreviewItem"], { "zGalleryPreviewItem": { "alias": "zGalleryPreviewItem"; "required": true; "isSignal": true; }; "zGalleryPreviewFiles": { "alias": "zGalleryPreviewFiles"; "required": false; "isSignal": true; }; "zGalleryPreviewOptions": { "alias": "zGalleryPreviewOptions"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; }, { "zOnPreview": "zOnPreview"; }, never, never, true, never>;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
declare class ZGalleryPreviewComponent {
|
|
289
|
-
private readonly _document;
|
|
290
|
-
private readonly _sanitizer;
|
|
291
|
-
readonly file: _angular_core.InputSignal<ZGalleryFile>;
|
|
292
|
-
readonly files: _angular_core.InputSignal<ZGalleryFile[]>;
|
|
293
|
-
readonly zShowRemove: _angular_core.InputSignal<boolean>;
|
|
294
|
-
readonly zPdfViewerConfig: _angular_core.InputSignal<ZGalleryPdfViewerConfig>;
|
|
295
|
-
readonly zTrustedResourceOrigins: _angular_core.InputSignal<string[]>;
|
|
296
|
-
readonly zOnClose: _angular_core.OutputEmitterRef<void>;
|
|
297
|
-
readonly zOnDownload: _angular_core.OutputEmitterRef<ZGalleryFile>;
|
|
298
|
-
readonly zOnNavigate: _angular_core.OutputEmitterRef<ZGalleryFile>;
|
|
299
|
-
readonly zOnRemove: _angular_core.OutputEmitterRef<ZGalleryFile>;
|
|
300
|
-
protected readonly zoomed: _angular_core.WritableSignal<boolean>;
|
|
301
|
-
protected readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
302
|
-
protected readonly rotation: _angular_core.WritableSignal<number>;
|
|
303
|
-
protected readonly isConverting: _angular_core.WritableSignal<boolean>;
|
|
304
|
-
protected readonly conversionError: _angular_core.WritableSignal<string | null>;
|
|
305
|
-
protected readonly previewError: _angular_core.WritableSignal<boolean>;
|
|
306
|
-
protected readonly docHtmlContent: _angular_core.WritableSignal<SafeHtml | null>;
|
|
307
|
-
protected readonly textContent: _angular_core.WritableSignal<string>;
|
|
308
|
-
protected readonly pdfViewer: _angular_core.Signal<PdfJsViewerComponent | undefined>;
|
|
309
|
-
private readonly _mediaLoaded;
|
|
310
|
-
private _loadingStartTime;
|
|
311
|
-
private readonly _minLoadingTime;
|
|
312
|
-
constructor();
|
|
313
|
-
private _loadFileContent;
|
|
314
|
-
private _loadDocx;
|
|
315
|
-
private _loadExcel;
|
|
316
|
-
private _loadText;
|
|
317
|
-
private _assertSuccessfulResponse;
|
|
318
|
-
private _completeLoading;
|
|
319
|
-
protected readonly currentIndex: _angular_core.Signal<number>;
|
|
320
|
-
protected readonly hasPrev: _angular_core.Signal<boolean>;
|
|
321
|
-
protected readonly hasNext: _angular_core.Signal<boolean>;
|
|
322
|
-
protected readonly isImageFile: _angular_core.Signal<boolean>;
|
|
323
|
-
protected readonly isPdf: _angular_core.Signal<boolean>;
|
|
324
|
-
protected readonly pdfUrl: _angular_core.Signal<string | null>;
|
|
325
|
-
protected readonly pdfViewerId: _angular_core.Signal<string>;
|
|
326
|
-
protected readonly pdfViewerConfig: _angular_core.Signal<ZGalleryPdfViewerConfig>;
|
|
327
|
-
private _mergePdfViewerCss;
|
|
328
|
-
protected readonly isVideo: _angular_core.Signal<boolean>;
|
|
329
|
-
protected readonly isWordFile: _angular_core.Signal<boolean>;
|
|
330
|
-
protected readonly isExcelFile: _angular_core.Signal<boolean>;
|
|
331
|
-
protected readonly isTextFile: _angular_core.Signal<boolean>;
|
|
332
|
-
protected readonly canPreview: _angular_core.Signal<boolean>;
|
|
333
|
-
protected readonly formattedSize: _angular_core.Signal<string>;
|
|
334
|
-
protected readonly imageTransform: _angular_core.Signal<string>;
|
|
335
|
-
private _isAllowedResourceUrl;
|
|
336
|
-
private readonly _trustedOrigins;
|
|
337
|
-
private _normalizeOrigin;
|
|
338
|
-
protected readonly fileIcon: _angular_core.Signal<ZIcon>;
|
|
339
|
-
protected onKeyDown(event: KeyboardEvent): void;
|
|
340
|
-
protected close(): void;
|
|
341
|
-
protected navigate(direction: -1 | 1): void;
|
|
342
|
-
protected toggleZoom(): void;
|
|
343
|
-
protected rotateLeft(): void;
|
|
344
|
-
protected rotateRight(): void;
|
|
345
|
-
protected onImageLoad(): void;
|
|
346
|
-
protected onVideoLoad(): void;
|
|
347
|
-
protected onPdfLoad(): void;
|
|
348
|
-
protected onMediaError(): void;
|
|
349
|
-
protected download(): void;
|
|
350
|
-
protected remove(): void;
|
|
351
|
-
protected onBackdropClick(event: Event): void;
|
|
352
|
-
private _queueMobilePdfFit;
|
|
353
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZGalleryPreviewComponent, never>;
|
|
354
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZGalleryPreviewComponent, "z-gallery-preview", never, { "file": { "alias": "file"; "required": true; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; "zShowRemove": { "alias": "zShowRemove"; "required": false; "isSignal": true; }; "zPdfViewerConfig": { "alias": "zPdfViewerConfig"; "required": false; "isSignal": true; }; "zTrustedResourceOrigins": { "alias": "zTrustedResourceOrigins"; "required": false; "isSignal": true; }; }, { "zOnClose": "zOnClose"; "zOnDownload": "zOnDownload"; "zOnNavigate": "zOnNavigate"; "zOnRemove": "zOnRemove"; }, never, never, true, never>;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
declare class ZGalleryPreviewRef {
|
|
358
|
-
private readonly _overlayRef;
|
|
359
|
-
private _closed;
|
|
360
|
-
componentInstance: ZGalleryPreviewComponent | null;
|
|
361
|
-
readonly zAfterClose: EventEmitter<void>;
|
|
362
|
-
constructor(_overlayRef: OverlayRef | null);
|
|
363
|
-
close(): void;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
declare class ZGalleryPreviewService {
|
|
367
|
-
private readonly _document;
|
|
368
|
-
private readonly _injector;
|
|
369
|
-
private readonly _overlay;
|
|
370
|
-
private readonly _platformId;
|
|
371
|
-
private readonly _zIndexService;
|
|
372
|
-
open(file: ZGalleryFile, options?: Omit<ZGalleryPreviewOptions, 'file'>): ZGalleryPreviewRef;
|
|
373
|
-
open(options: ZGalleryPreviewOptions): ZGalleryPreviewRef;
|
|
374
|
-
private _createOverlay;
|
|
375
|
-
private _normalizeOptions;
|
|
376
|
-
private _handleDownload;
|
|
377
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZGalleryPreviewService, never>;
|
|
378
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ZGalleryPreviewService>;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
declare const getFileCategory: (file: ZGalleryFile) => ZFileCategory;
|
|
382
|
-
declare const formatFileSize: (bytes: number) => string;
|
|
383
|
-
declare const isPreviewable: (file: ZGalleryFile) => boolean;
|
|
384
|
-
declare const isImage: (file: ZGalleryFile) => boolean;
|
|
385
|
-
|
|
386
|
-
declare const zGalleryVariants: (props?: ({
|
|
387
|
-
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
388
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
389
|
-
type ZGalleryVariants = VariantProps<typeof zGalleryVariants>;
|
|
390
|
-
declare const zGalleryItemVariants: (props?: ({
|
|
391
|
-
zMode?: "grid" | "list" | null | undefined;
|
|
392
|
-
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
393
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
394
|
-
type ZGalleryItemVariants = VariantProps<typeof zGalleryItemVariants>;
|
|
395
|
-
declare const zGalleryFileIconVariants: (props?: ({
|
|
396
|
-
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
397
|
-
zMode?: "grid" | "list" | null | undefined;
|
|
398
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
399
|
-
type ZGalleryFileIconVariants = VariantProps<typeof zGalleryFileIconVariants>;
|
|
400
|
-
|
|
401
|
-
export { FILE_CATEGORY_STYLES, ZGalleryComponent, ZGalleryFileIconComponent, ZGalleryItemComponent, ZGalleryPreviewComponent, ZGalleryPreviewItemDirective, ZGalleryPreviewRef, ZGalleryPreviewService, formatFileSize, getFileCategory, isImage, isPreviewable, zGalleryFileIconVariants, zGalleryItemVariants, zGalleryVariants };
|
|
402
|
-
export type { ZFileCategory, ZFileCategoryStyle, ZGalleryActionEvent, ZGalleryActionType, ZGalleryControl, ZGalleryFile, ZGalleryFileIconVariants, ZGalleryItemVariants, ZGalleryMode, ZGalleryPdfViewerConfig, ZGalleryPdfViewerCursor, ZGalleryPdfViewerPageMode, ZGalleryPdfViewerScroll, ZGalleryPdfViewerSpread, ZGalleryPdfViewerZoom, ZGalleryPreviewItemOptions, ZGalleryPreviewOptions, ZGallerySelectionChange, ZGallerySize, ZGalleryToggleSize, ZGalleryVariants };
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import * as _shival99_z_ui_components_z_kanban from '@shival99/z-ui/components/z-kanban';
|
|
2
|
-
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OnDestroy, ElementRef } from '@angular/core';
|
|
4
|
-
import { CdkDragMove, CdkDragEnd, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
5
|
-
import { ZSelectOption } from '@shival99/z-ui/components/z-select';
|
|
6
|
-
import { ZUploadFile } from '@shival99/z-ui/components/z-upload';
|
|
7
|
-
import { ClassValue } from 'clsx';
|
|
8
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
9
|
-
|
|
10
|
-
type ZKanbanPriority = 'risk' | 'high' | 'medium' | 'low';
|
|
11
|
-
type ZKanbanCardDensity = 'compact' | 'comfortable';
|
|
12
|
-
interface ZKanbanPriorityOption {
|
|
13
|
-
value: ZKanbanPriority;
|
|
14
|
-
labelKey: string;
|
|
15
|
-
}
|
|
16
|
-
interface ZKanbanChecklistItem {
|
|
17
|
-
id: string;
|
|
18
|
-
label: string;
|
|
19
|
-
done: boolean;
|
|
20
|
-
}
|
|
21
|
-
interface ZKanbanActivityItem {
|
|
22
|
-
id: string;
|
|
23
|
-
actor: string;
|
|
24
|
-
action: string;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
}
|
|
27
|
-
interface ZKanbanTask {
|
|
28
|
-
id: string;
|
|
29
|
-
code?: string;
|
|
30
|
-
title: string;
|
|
31
|
-
description?: string;
|
|
32
|
-
status: string;
|
|
33
|
-
priority: ZKanbanPriority;
|
|
34
|
-
assignees: string[];
|
|
35
|
-
startDate?: string;
|
|
36
|
-
endDate?: string;
|
|
37
|
-
dueDate?: string;
|
|
38
|
-
commentsCount?: number;
|
|
39
|
-
attachmentsCount?: number;
|
|
40
|
-
attachments?: ZUploadFile[];
|
|
41
|
-
checklist?: ZKanbanChecklistItem[];
|
|
42
|
-
activity?: ZKanbanActivityItem[];
|
|
43
|
-
completed?: boolean;
|
|
44
|
-
}
|
|
45
|
-
interface ZKanbanColumn {
|
|
46
|
-
id: string;
|
|
47
|
-
title: string;
|
|
48
|
-
tasks: ZKanbanTask[];
|
|
49
|
-
}
|
|
50
|
-
interface ZKanbanDragData {
|
|
51
|
-
taskId: string;
|
|
52
|
-
columnId: string;
|
|
53
|
-
}
|
|
54
|
-
interface ZKanbanTaskDropEvent {
|
|
55
|
-
taskId: string;
|
|
56
|
-
fromColumnId: string;
|
|
57
|
-
toColumnId: string;
|
|
58
|
-
previousIndex: number;
|
|
59
|
-
currentIndex: number;
|
|
60
|
-
}
|
|
61
|
-
interface ZKanbanTaskSaveEvent {
|
|
62
|
-
task: ZKanbanTask;
|
|
63
|
-
columnId: string;
|
|
64
|
-
previousTask: ZKanbanTask;
|
|
65
|
-
}
|
|
66
|
-
interface ZKanbanTaskCreateEvent {
|
|
67
|
-
task: ZKanbanTask;
|
|
68
|
-
columnId: string;
|
|
69
|
-
}
|
|
70
|
-
declare const Z_KANBAN_PRIORITY_OPTIONS: readonly ZKanbanPriorityOption[];
|
|
71
|
-
|
|
72
|
-
declare class ZKanbanComponent implements OnDestroy {
|
|
73
|
-
private readonly _zTranslate;
|
|
74
|
-
private readonly _priorityLabelByValue;
|
|
75
|
-
private readonly _priorityIconByValue;
|
|
76
|
-
private readonly _priorityIconClassByValue;
|
|
77
|
-
readonly zTaskDrop: _angular_core.OutputEmitterRef<ZKanbanTaskDropEvent>;
|
|
78
|
-
readonly zTaskSave: _angular_core.OutputEmitterRef<ZKanbanTaskSaveEvent>;
|
|
79
|
-
readonly zTaskClick: _angular_core.OutputEmitterRef<ZKanbanTask>;
|
|
80
|
-
readonly zTaskCreate: _angular_core.OutputEmitterRef<ZKanbanTaskCreateEvent>;
|
|
81
|
-
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
82
|
-
readonly zColumns: _angular_core.ModelSignal<ZKanbanColumn[]>;
|
|
83
|
-
readonly zTitle: _angular_core.InputSignal<string>;
|
|
84
|
-
readonly zSubtitle: _angular_core.InputSignal<string>;
|
|
85
|
-
readonly zSearch: _angular_core.ModelSignal<string>;
|
|
86
|
-
readonly zShowToolbar: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
87
|
-
readonly zAllowCreateTask: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
88
|
-
readonly zDisabled: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
89
|
-
readonly zDensity: _angular_core.InputSignal<ZKanbanCardDensity>;
|
|
90
|
-
protected readonly boardViewportRef: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
91
|
-
protected readonly editorVisible: _angular_core.WritableSignal<boolean>;
|
|
92
|
-
protected readonly editingColumnId: _angular_core.WritableSignal<string | null>;
|
|
93
|
-
protected readonly editingTaskId: _angular_core.WritableSignal<string | null>;
|
|
94
|
-
protected readonly draftTitle: _angular_core.WritableSignal<string>;
|
|
95
|
-
protected readonly draftDescription: _angular_core.WritableSignal<string>;
|
|
96
|
-
protected readonly draftStatus: _angular_core.WritableSignal<string>;
|
|
97
|
-
protected readonly draftPriority: _angular_core.WritableSignal<ZKanbanPriority>;
|
|
98
|
-
protected readonly draftAssignees: _angular_core.WritableSignal<string[]>;
|
|
99
|
-
protected readonly draftStartDate: _angular_core.WritableSignal<Date | null>;
|
|
100
|
-
protected readonly draftEndDate: _angular_core.WritableSignal<Date | null>;
|
|
101
|
-
protected readonly draftChecklist: _angular_core.WritableSignal<ZKanbanChecklistItem[]>;
|
|
102
|
-
protected readonly draftChecklistItemLabel: _angular_core.WritableSignal<string>;
|
|
103
|
-
protected readonly draftAttachments: _angular_core.WritableSignal<ZUploadFile[]>;
|
|
104
|
-
protected readonly draftComment: _angular_core.WritableSignal<string>;
|
|
105
|
-
protected readonly isDraggingTask: _angular_core.WritableSignal<boolean>;
|
|
106
|
-
private _dragAutoScrollRafId;
|
|
107
|
-
private _dragAutoScrollVelocity;
|
|
108
|
-
private _lastDragFinishedAt;
|
|
109
|
-
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
110
|
-
protected readonly connectedDropListIds: _angular_core.Signal<string[]>;
|
|
111
|
-
protected readonly isSearchActive: _angular_core.Signal<boolean>;
|
|
112
|
-
protected readonly filteredColumns: _angular_core.Signal<ZKanbanColumn[]>;
|
|
113
|
-
protected readonly activeTask: _angular_core.Signal<ZKanbanTask | null>;
|
|
114
|
-
protected readonly editorMeta: _angular_core.Signal<string>;
|
|
115
|
-
protected readonly checklistProgress: _angular_core.Signal<number>;
|
|
116
|
-
protected readonly checklistDoneCount: _angular_core.Signal<number>;
|
|
117
|
-
protected readonly isEditorSaveDisabled: _angular_core.Signal<boolean>;
|
|
118
|
-
protected readonly isCommentSubmitDisabled: _angular_core.Signal<boolean>;
|
|
119
|
-
protected readonly checklistDoneRowClass: string;
|
|
120
|
-
protected readonly checklistPendingRowClass: string;
|
|
121
|
-
protected readonly statusOptions: _angular_core.Signal<ZSelectOption<string>[]>;
|
|
122
|
-
protected readonly priorityOptions: readonly _shival99_z_ui_components_z_kanban.ZKanbanPriorityOption[];
|
|
123
|
-
protected readonly prioritySelectOptions: _angular_core.Signal<ZSelectOption<ZKanbanPriority>[]>;
|
|
124
|
-
protected readonly assigneeOptions: _angular_core.Signal<ZSelectOption<string>[]>;
|
|
125
|
-
protected readonly columnClass: _angular_core.Signal<string>;
|
|
126
|
-
protected readonly taskCardClassByPriority: _angular_core.Signal<Record<ZKanbanPriority, string>>;
|
|
127
|
-
protected readonly priorityBadgeClassByPriority: _angular_core.Signal<Record<ZKanbanPriority, string>>;
|
|
128
|
-
protected readonly statusIconClassByValue: _angular_core.Signal<Record<string, string>>;
|
|
129
|
-
protected readonly priorityIconClassByValue: Record<string, string>;
|
|
130
|
-
protected readonly boardColumnsView: _angular_core.Signal<{
|
|
131
|
-
id: string;
|
|
132
|
-
title: string;
|
|
133
|
-
taskCount: number;
|
|
134
|
-
rawTasks: ZKanbanTask[];
|
|
135
|
-
tasks: {
|
|
136
|
-
id: string;
|
|
137
|
-
columnId: string;
|
|
138
|
-
code: string | undefined;
|
|
139
|
-
title: string;
|
|
140
|
-
descriptionPreview: string;
|
|
141
|
-
priority: ZKanbanPriority;
|
|
142
|
-
priorityLabelKey: string;
|
|
143
|
-
priorityBadgeClass: string;
|
|
144
|
-
taskCardClass: string;
|
|
145
|
-
dueDateLabel: string;
|
|
146
|
-
commentsCount: number;
|
|
147
|
-
attachmentCount: number;
|
|
148
|
-
checklistCount: number;
|
|
149
|
-
checklistDoneCount: number;
|
|
150
|
-
completed: boolean;
|
|
151
|
-
visibleAssignees: {
|
|
152
|
-
name: string;
|
|
153
|
-
initials: string;
|
|
154
|
-
className: string;
|
|
155
|
-
zIndex: number;
|
|
156
|
-
}[];
|
|
157
|
-
hiddenAssigneesCount: number;
|
|
158
|
-
hiddenAssigneesLabel: string;
|
|
159
|
-
}[];
|
|
160
|
-
}[]>;
|
|
161
|
-
protected readonly activeTaskActivityView: _angular_core.Signal<{
|
|
162
|
-
id: string;
|
|
163
|
-
actor: string;
|
|
164
|
-
action: string;
|
|
165
|
-
createdAtLabel: string;
|
|
166
|
-
}[]>;
|
|
167
|
-
createTaskInFirstColumn(): void;
|
|
168
|
-
onBoardSearchChange(value: string | number | null): void;
|
|
169
|
-
onTaskHandleClick(event: MouseEvent): void;
|
|
170
|
-
onTaskCardClick(columnId: string, taskId: string): void;
|
|
171
|
-
onTaskDragStarted(): void;
|
|
172
|
-
onTaskDragMoved(event: CdkDragMove<ZKanbanDragData>): void;
|
|
173
|
-
onTaskDragEnded(event: CdkDragEnd<ZKanbanDragData>): void;
|
|
174
|
-
onTaskDrop(event: CdkDragDrop<ZKanbanTask[]>, toColumnId: string): void;
|
|
175
|
-
createTask(columnId: string): void;
|
|
176
|
-
openTaskEditor(columnId: string, taskId: string): void;
|
|
177
|
-
closeEditor(): void;
|
|
178
|
-
saveTaskChanges(): void;
|
|
179
|
-
addChecklistItem(): void;
|
|
180
|
-
toggleChecklistItem(itemId: string, checked: boolean): void;
|
|
181
|
-
removeChecklistItem(itemId: string): void;
|
|
182
|
-
onEditorStatusChange(value: string | null): void;
|
|
183
|
-
onEditorPriorityChange(value: ZKanbanPriority | null): void;
|
|
184
|
-
onEditorAssigneesChange(value: string[] | null): void;
|
|
185
|
-
onEditorStartDateChange(value: Date | null): void;
|
|
186
|
-
onEditorEndDateChange(value: Date | null): void;
|
|
187
|
-
onDraftAttachmentsChange(files: ZUploadFile[] | null): void;
|
|
188
|
-
submitTaskComment(): void;
|
|
189
|
-
onEditorVisibleChange(visible: boolean): void;
|
|
190
|
-
onEditorAfterClose(): void;
|
|
191
|
-
ngOnDestroy(): void;
|
|
192
|
-
private _getStatusIcon;
|
|
193
|
-
private _getStatusIconClass;
|
|
194
|
-
private _getAssigneeInitials;
|
|
195
|
-
private _getAssigneeAvatarClasses;
|
|
196
|
-
private _formatDueDate;
|
|
197
|
-
private _formatDateTime;
|
|
198
|
-
private _resetEditorState;
|
|
199
|
-
private _taskMatchesQuery;
|
|
200
|
-
private _findTask;
|
|
201
|
-
private _findTaskByIndex;
|
|
202
|
-
private _reorderTasksWithinColumn;
|
|
203
|
-
private _moveTaskAcrossColumns;
|
|
204
|
-
private _replaceTaskAcrossColumns;
|
|
205
|
-
private _hasColumnId;
|
|
206
|
-
private _sanitizeAssignees;
|
|
207
|
-
private _appendCommentActivity;
|
|
208
|
-
private _normalizeEditorContent;
|
|
209
|
-
private _stripHtml;
|
|
210
|
-
private _toDate;
|
|
211
|
-
private _toDateOnlyString;
|
|
212
|
-
private _normalizeDateRange;
|
|
213
|
-
private _updateHorizontalAutoScroll;
|
|
214
|
-
private _startHorizontalAutoScroll;
|
|
215
|
-
private _stopHorizontalAutoScroll;
|
|
216
|
-
private _createId;
|
|
217
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZKanbanComponent, never>;
|
|
218
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZKanbanComponent, "z-kanban", ["zKanban"], { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zColumns": { "alias": "zColumns"; "required": false; "isSignal": true; }; "zTitle": { "alias": "zTitle"; "required": false; "isSignal": true; }; "zSubtitle": { "alias": "zSubtitle"; "required": false; "isSignal": true; }; "zSearch": { "alias": "zSearch"; "required": false; "isSignal": true; }; "zShowToolbar": { "alias": "zShowToolbar"; "required": false; "isSignal": true; }; "zAllowCreateTask": { "alias": "zAllowCreateTask"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zDensity": { "alias": "zDensity"; "required": false; "isSignal": true; }; }, { "zTaskDrop": "zTaskDrop"; "zTaskSave": "zTaskSave"; "zTaskClick": "zTaskClick"; "zTaskCreate": "zTaskCreate"; "zColumns": "zColumnsChange"; "zSearch": "zSearchChange"; }, never, never, true, never>;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
declare const zKanbanColumnVariants: (props?: ({
|
|
222
|
-
zDensity?: "compact" | "comfortable" | null | undefined;
|
|
223
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
224
|
-
declare const zKanbanTaskCardVariants: (props?: ({
|
|
225
|
-
zDensity?: "compact" | "comfortable" | null | undefined;
|
|
226
|
-
zPriority?: "risk" | "high" | "medium" | "low" | null | undefined;
|
|
227
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
228
|
-
declare const zKanbanPriorityBadgeVariants: (props?: ({
|
|
229
|
-
zPriority?: "risk" | "high" | "medium" | "low" | null | undefined;
|
|
230
|
-
zActive?: boolean | null | undefined;
|
|
231
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
232
|
-
declare const zKanbanChecklistRowVariants: (props?: ({
|
|
233
|
-
zDone?: boolean | null | undefined;
|
|
234
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
235
|
-
|
|
236
|
-
export { ZKanbanComponent, Z_KANBAN_PRIORITY_OPTIONS, zKanbanChecklistRowVariants, zKanbanColumnVariants, zKanbanPriorityBadgeVariants, zKanbanTaskCardVariants };
|
|
237
|
-
export type { ZKanbanActivityItem, ZKanbanCardDensity, ZKanbanChecklistItem, ZKanbanColumn, ZKanbanDragData, ZKanbanPriority, ZKanbanPriorityOption, ZKanbanTask, ZKanbanTaskCreateEvent, ZKanbanTaskDropEvent, ZKanbanTaskSaveEvent };
|