@shival99/z-ui 1.2.1 → 1.2.9
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/fesm2022/shival99-z-ui-components-z-calendar.mjs +14 -14
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-checkbox.mjs +4 -7
- package/fesm2022/shival99-z-ui-components-z-checkbox.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-code.mjs +3 -4
- package/fesm2022/shival99-z-ui-components-z-code.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-editor.mjs +11 -12
- package/fesm2022/shival99-z-ui-components-z-editor.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-input.mjs +6 -8
- package/fesm2022/shival99-z-ui-components-z-input.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-modal.mjs +7 -8
- package/fesm2022/shival99-z-ui-components-z-modal.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs +11 -13
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +60 -50
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-upload.mjs +10 -10
- package/fesm2022/shival99-z-ui-components-z-upload.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-pipes.mjs +5 -1
- package/fesm2022/shival99-z-ui-pipes.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/types/shival99-z-ui-components-z-calendar.d.ts +3 -4
- package/types/shival99-z-ui-components-z-checkbox.d.ts +2 -3
- package/types/shival99-z-ui-components-z-code.d.ts +1 -1
- package/types/shival99-z-ui-components-z-editor.d.ts +3 -4
- package/types/shival99-z-ui-components-z-input.d.ts +2 -3
- package/types/shival99-z-ui-components-z-modal.d.ts +1 -2
- package/types/shival99-z-ui-components-z-pagination.d.ts +4 -5
- package/types/shival99-z-ui-components-z-table.d.ts +23 -12
- package/types/shival99-z-ui-components-z-upload.d.ts +1 -2
- package/types/shival99-z-ui-pipes.d.ts +1 -0
- package/types/shival99-z-ui-utils.d.ts +1 -1
|
@@ -35,8 +35,7 @@ declare class ZCheckboxComponent implements ControlValueAccessor, AfterViewInit
|
|
|
35
35
|
readonly zOrientation: _angular_core.InputSignal<ZCheckboxOrientation>;
|
|
36
36
|
readonly zCheckAll: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
37
37
|
readonly zCheckAllText: _angular_core.InputSignal<string>;
|
|
38
|
-
private readonly
|
|
39
|
-
private readonly _currentLang;
|
|
38
|
+
private readonly _zTranslate;
|
|
40
39
|
readonly zChecked: _angular_core.ModelSignal<boolean>;
|
|
41
40
|
readonly zGroupValue: _angular_core.ModelSignal<(string | number)[]>;
|
|
42
41
|
readonly zChange: _angular_core.OutputEmitterRef<boolean>;
|
|
@@ -44,7 +43,7 @@ declare class ZCheckboxComponent implements ControlValueAccessor, AfterViewInit
|
|
|
44
43
|
readonly zControl: _angular_core.OutputEmitterRef<ZCheckboxControl>;
|
|
45
44
|
private readonly _disabled;
|
|
46
45
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
47
|
-
protected readonly effectiveCheckAllText: _angular_core.Signal<
|
|
46
|
+
protected readonly effectiveCheckAllText: _angular_core.Signal<string>;
|
|
48
47
|
protected readonly enabledOptions: _angular_core.Signal<ZCheckboxOption[]>;
|
|
49
48
|
protected readonly isAllChecked: _angular_core.Signal<boolean>;
|
|
50
49
|
protected readonly isNoneChecked: _angular_core.Signal<boolean>;
|
|
@@ -20,7 +20,7 @@ declare class ZCodeComponent implements AfterViewInit {
|
|
|
20
20
|
private readonly _toast;
|
|
21
21
|
private readonly _sanitizer;
|
|
22
22
|
private readonly _themeService;
|
|
23
|
-
private readonly
|
|
23
|
+
private readonly _zTranslate;
|
|
24
24
|
private _rawCode;
|
|
25
25
|
private readonly _effectiveTheme;
|
|
26
26
|
protected readonly wrapperClasses: _angular_core.Signal<string>;
|
|
@@ -62,21 +62,20 @@ declare class ZEditorComponent implements OnInit, ControlValueAccessor {
|
|
|
62
62
|
private readonly _isNgModel;
|
|
63
63
|
private readonly _injector;
|
|
64
64
|
private readonly _destroyRef;
|
|
65
|
-
private readonly
|
|
66
|
-
private readonly _currentLang;
|
|
65
|
+
private readonly _zTranslate;
|
|
67
66
|
private _onChange;
|
|
68
67
|
private _onTouched;
|
|
69
68
|
private _ngControl;
|
|
70
69
|
private _editorInstance;
|
|
71
70
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
72
71
|
protected readonly internalValue: _angular_core.Signal<string>;
|
|
73
|
-
protected readonly effectivePlaceholder: _angular_core.Signal<
|
|
72
|
+
protected readonly effectivePlaceholder: _angular_core.Signal<string>;
|
|
74
73
|
protected readonly effectiveModules: _angular_core.Signal<QuillModules>;
|
|
75
74
|
private readonly _shouldShowValidation;
|
|
76
75
|
private _getValidationErrors;
|
|
77
76
|
protected readonly hasError: _angular_core.Signal<boolean>;
|
|
78
77
|
protected readonly showError: _angular_core.Signal<boolean>;
|
|
79
|
-
protected readonly errorMessage: _angular_core.Signal<
|
|
78
|
+
protected readonly errorMessage: _angular_core.Signal<string>;
|
|
80
79
|
protected readonly currentStatus: _angular_core.Signal<"default" | "disabled" | "readonly" | "error">;
|
|
81
80
|
protected readonly wrapperClasses: _angular_core.Signal<string>;
|
|
82
81
|
protected readonly labelClasses: _angular_core.Signal<string>;
|
|
@@ -95,8 +95,7 @@ declare class ZInputComponent implements OnInit, ControlValueAccessor {
|
|
|
95
95
|
private readonly _injector;
|
|
96
96
|
private readonly _destroyRef;
|
|
97
97
|
private readonly _toastService;
|
|
98
|
-
private readonly
|
|
99
|
-
private readonly _currentLang;
|
|
98
|
+
private readonly _zTranslate;
|
|
100
99
|
private readonly _searchSubject;
|
|
101
100
|
private readonly _changeSubject;
|
|
102
101
|
private readonly _asyncValidationSubject;
|
|
@@ -123,7 +122,7 @@ declare class ZInputComponent implements OnInit, ControlValueAccessor {
|
|
|
123
122
|
private readonly _shouldShowValidation;
|
|
124
123
|
protected readonly hasError: _angular_core.Signal<boolean>;
|
|
125
124
|
protected readonly showError: _angular_core.Signal<boolean>;
|
|
126
|
-
protected readonly errorMessage: _angular_core.Signal<
|
|
125
|
+
protected readonly errorMessage: _angular_core.Signal<string>;
|
|
127
126
|
protected readonly hasPrefix: _angular_core.Signal<boolean>;
|
|
128
127
|
protected readonly hasSuffix: _angular_core.Signal<boolean>;
|
|
129
128
|
protected readonly isTextPrefix: _angular_core.Signal<boolean>;
|
|
@@ -249,8 +249,7 @@ declare class ZModalService {
|
|
|
249
249
|
private readonly _overlay;
|
|
250
250
|
private readonly _injector;
|
|
251
251
|
private readonly _platformId;
|
|
252
|
-
private readonly
|
|
253
|
-
private readonly _currentLang;
|
|
252
|
+
private readonly _zTranslate;
|
|
254
253
|
create<T, U>(config: ZModalOptions<T, U>): ZModalRef<T>;
|
|
255
254
|
show<U = unknown>(options: ZModalConfirmOptions<U>): ZModalRef<unknown>;
|
|
256
255
|
info<U = unknown>(options: ZModalConfirmOptions<U>): ZModalRef<unknown>;
|
|
@@ -29,11 +29,10 @@ declare class ZPaginationComponent {
|
|
|
29
29
|
readonly zPerPageLabel: _angular_core.InputSignal<string | null>;
|
|
30
30
|
readonly zGoToLabel: _angular_core.InputSignal<string | null>;
|
|
31
31
|
readonly zOnPageChange: _angular_core.OutputEmitterRef<ZPageChangeEvent>;
|
|
32
|
-
private readonly
|
|
33
|
-
|
|
34
|
-
protected readonly
|
|
35
|
-
protected readonly
|
|
36
|
-
protected readonly goToLabelText: _angular_core.Signal<any>;
|
|
32
|
+
private readonly _zTranslate;
|
|
33
|
+
protected readonly totalLabelText: _angular_core.Signal<string>;
|
|
34
|
+
protected readonly perPageLabelText: _angular_core.Signal<string>;
|
|
35
|
+
protected readonly goToLabelText: _angular_core.Signal<string>;
|
|
37
36
|
protected readonly totalPages: _angular_core.Signal<number>;
|
|
38
37
|
protected readonly pageSizeOptions: _angular_core.Signal<{
|
|
39
38
|
label: string;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as _shival99_angular_virtual from '@shival99/angular-virtual';
|
|
2
2
|
import * as _tanstack_angular_table from '@tanstack/angular-table';
|
|
3
3
|
import { RowData, HeaderContext, CellContext, Row, ColumnPinningState, RowPinningState, SortingState, ColumnFiltersState, ExpandedState, RowSelectionState, VisibilityState, PaginationState, ColumnOrderState, createAngularTable, Column, Table, ColumnDef } from '@tanstack/angular-table';
|
|
4
|
+
import * as _shival99_z_ui_components_z_input from '@shival99/z-ui/components/z-input';
|
|
5
|
+
import { ZInputSize } from '@shival99/z-ui/components/z-input';
|
|
4
6
|
import * as _angular_core from '@angular/core';
|
|
5
7
|
import { TemplateRef, Type, AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
6
8
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
7
9
|
import { NgScrollbar } from 'ngx-scrollbar';
|
|
8
10
|
import { ZButtonVariants } from '@shival99/z-ui/components/z-button';
|
|
9
11
|
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
12
|
+
import * as _shival99_z_ui_components_z_select from '@shival99/z-ui/components/z-select';
|
|
10
13
|
import { ZSelectOption } from '@shival99/z-ui/components/z-select';
|
|
11
14
|
import * as _shival99_z_ui_components_z_tooltip from '@shival99/z-ui/components/z-tooltip';
|
|
12
15
|
import { ZTooltipConfig } from '@shival99/z-ui/components/z-tooltip';
|
|
@@ -273,6 +276,13 @@ interface ZTableVirtualConfig {
|
|
|
273
276
|
overscan?: number;
|
|
274
277
|
groupSize?: number;
|
|
275
278
|
}
|
|
279
|
+
interface ZTableSearchConfig {
|
|
280
|
+
enabled?: boolean;
|
|
281
|
+
placeholder?: string;
|
|
282
|
+
debounceTime?: number;
|
|
283
|
+
width?: string;
|
|
284
|
+
size?: ZInputSize;
|
|
285
|
+
}
|
|
276
286
|
interface ZTableConfig<T> {
|
|
277
287
|
mode?: ZTableMode;
|
|
278
288
|
data: T[];
|
|
@@ -289,7 +299,7 @@ interface ZTableConfig<T> {
|
|
|
289
299
|
enableSettings?: boolean;
|
|
290
300
|
enableColumnResizing?: boolean;
|
|
291
301
|
enableMultiSort?: boolean;
|
|
292
|
-
|
|
302
|
+
search?: ZTableSearchConfig | boolean;
|
|
293
303
|
enablePagination?: boolean;
|
|
294
304
|
enableRowPinning?: boolean;
|
|
295
305
|
enableColumnPinning?: boolean;
|
|
@@ -356,6 +366,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
356
366
|
protected readonly hasScrollRight: _angular_core.WritableSignal<boolean>;
|
|
357
367
|
private readonly _columnPinVersion;
|
|
358
368
|
private readonly _dataForceUpdate;
|
|
369
|
+
private readonly _configLoadedFromCache;
|
|
359
370
|
protected readonly pinnedColumnIds: _angular_core.Signal<string[]>;
|
|
360
371
|
protected readonly pendingVisibleColumns: _angular_core.WritableSignal<string[]>;
|
|
361
372
|
protected readonly pendingColumnOrder: _angular_core.WritableSignal<string[]>;
|
|
@@ -371,6 +382,14 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
371
382
|
protected readonly hasActionColumn: _angular_core.Signal<boolean>;
|
|
372
383
|
protected readonly hasFiltering: _angular_core.Signal<boolean>;
|
|
373
384
|
protected readonly hasSorting: _angular_core.Signal<boolean>;
|
|
385
|
+
protected readonly searchConfig: _angular_core.Signal<{
|
|
386
|
+
enabled: boolean;
|
|
387
|
+
placeholder: string;
|
|
388
|
+
debounceTime: number;
|
|
389
|
+
width: string;
|
|
390
|
+
size: _shival99_z_ui_components_z_input.ZInputSize;
|
|
391
|
+
} | null>;
|
|
392
|
+
protected readonly isSearchEnabled: _angular_core.Signal<boolean>;
|
|
374
393
|
private readonly _data;
|
|
375
394
|
private readonly _columns;
|
|
376
395
|
protected readonly isVirtual: _angular_core.Signal<boolean>;
|
|
@@ -450,8 +469,6 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
450
469
|
declare class ZTableFilterComponent<T> implements OnDestroy {
|
|
451
470
|
readonly zColumn: _angular_core.InputSignal<Column<unknown, unknown>>;
|
|
452
471
|
readonly zTable: _angular_core.InputSignal<Table<T>>;
|
|
453
|
-
private readonly _translate;
|
|
454
|
-
private readonly _currentLang;
|
|
455
472
|
private _debounceTimeout;
|
|
456
473
|
private readonly _debounceMs;
|
|
457
474
|
private readonly _columnDef;
|
|
@@ -461,18 +478,12 @@ declare class ZTableFilterComponent<T> implements OnDestroy {
|
|
|
461
478
|
readonly maxValue: _angular_core.Signal<number | "">;
|
|
462
479
|
readonly rangeMinValue: _angular_core.Signal<any>;
|
|
463
480
|
readonly rangeMaxValue: _angular_core.Signal<any>;
|
|
464
|
-
protected readonly minPlaceholder: _angular_core.Signal<any>;
|
|
465
|
-
protected readonly maxPlaceholder: _angular_core.Signal<any>;
|
|
466
|
-
protected readonly searchPlaceholder: _angular_core.Signal<any>;
|
|
467
|
-
protected readonly allLabel: _angular_core.Signal<any>;
|
|
468
|
-
protected readonly datePlaceholder: _angular_core.Signal<any>;
|
|
469
|
-
protected readonly dateRangePlaceholder: _angular_core.Signal<any>;
|
|
470
481
|
readonly dateValue: _angular_core.Signal<Date | null>;
|
|
471
482
|
readonly dateRangeValue: _angular_core.Signal<ZDateRange | null>;
|
|
472
|
-
readonly selectOptions: _angular_core.Signal<
|
|
483
|
+
readonly selectOptions: _angular_core.Signal<_shival99_z_ui_components_z_select.ZSelectOption<unknown>[] | {
|
|
473
484
|
label: string;
|
|
474
485
|
value: string;
|
|
475
|
-
}
|
|
486
|
+
}[]>;
|
|
476
487
|
ngOnDestroy(): void;
|
|
477
488
|
onMinChangeDebounced(value: string | number | null): void;
|
|
478
489
|
onMaxChangeDebounced(value: string | number | null): void;
|
|
@@ -588,4 +599,4 @@ declare const findColumnConfig: <T>(columnId: string, columns: ZTableColumnConfi
|
|
|
588
599
|
declare function columnConfigToColumnDef<T>(config: ZTableColumnConfig<T>): ColumnDef<T>;
|
|
589
600
|
|
|
590
601
|
export { ZTableActionsComponent, ZTableComponent, ZTableFilterComponent, ZTableIconTextComponent, columnConfigToColumnDef, findColumnConfig, getBodyConfig, getFooterConfig, getHeaderConfig, isBodyConfig, isFooterConfig, isHeaderConfig };
|
|
591
|
-
export type { ZTableActionClickEvent, ZTableActionColumnConfig, ZTableActionItem, ZTableChangeEvent, ZTableColumn, ZTableColumnConfig, ZTableConfig, ZTableControl, ZTableFilterChangeEvent, ZTableFilterConfig, ZTableFilterType, ZTablePageChangeEvent, ZTablePaginationConfig, ZTableRowExpandEvent, ZTableRowSelectEvent, ZTableSavedConfig, ZTableSearchChangeEvent, ZTableSortChangeEvent, ZTableSortConfig };
|
|
602
|
+
export type { ZTableActionClickEvent, ZTableActionColumnConfig, ZTableActionItem, ZTableChangeEvent, ZTableColumn, ZTableColumnConfig, ZTableConfig, ZTableControl, ZTableFilterChangeEvent, ZTableFilterConfig, ZTableFilterType, ZTablePageChangeEvent, ZTablePaginationConfig, ZTableRowExpandEvent, ZTableRowSelectEvent, ZTableSavedConfig, ZTableSearchChangeEvent, ZTableSearchConfig, ZTableSortChangeEvent, ZTableSortConfig };
|
|
@@ -76,8 +76,7 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
|
76
76
|
private readonly _isNgModel;
|
|
77
77
|
private readonly _injector;
|
|
78
78
|
private readonly _destroyRef;
|
|
79
|
-
private readonly
|
|
80
|
-
private readonly _currentLang;
|
|
79
|
+
private readonly _zTranslate;
|
|
81
80
|
private _onChange;
|
|
82
81
|
private _onTouched;
|
|
83
82
|
private _ngControl;
|
|
@@ -21,6 +21,7 @@ declare class ZContentTypePipe implements PipeTransform {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
declare class ZFormatNumPipe implements PipeTransform {
|
|
24
|
+
private _zTranslateService;
|
|
24
25
|
transform(value: unknown, options?: ZFormatNumOptions): string;
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZFormatNumPipe, never>;
|
|
26
27
|
static ɵpipe: i0.ɵɵPipeDeclaration<ZFormatNumPipe, "zFormatNum", true>;
|