@shival99/z-ui 1.0.1 → 1.0.3
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/README.md +50 -77
- package/assets/css/animations.css +207 -0
- package/assets/css/base.css +76 -0
- package/assets/css/tailwind.css +53 -0
- package/assets/css/themes/gray.css +73 -0
- package/assets/css/themes/green.css +75 -0
- package/assets/css/themes/hospital.css +79 -0
- package/assets/css/themes/neutral.css +73 -0
- package/assets/css/themes/orange.css +73 -0
- package/assets/css/themes/slate.css +73 -0
- package/assets/css/themes/stone.css +73 -0
- package/assets/css/themes/violet.css +73 -0
- package/assets/css/themes/zinc.css +73 -0
- package/assets/images/avatar.svg +6 -0
- package/assets/images/logo.svg +6 -0
- package/fesm2022/shival99-z-ui-components-z-accordion.mjs +148 -0
- package/fesm2022/shival99-z-ui-components-z-accordion.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-breadcrumb.mjs +74 -0
- package/fesm2022/shival99-z-ui-components-z-breadcrumb.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-button.mjs +155 -0
- package/fesm2022/shival99-z-ui-components-z-button.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs +2335 -0
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-checkbox.mjs +240 -0
- package/fesm2022/shival99-z-ui-components-z-checkbox.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-code.mjs +139 -0
- package/fesm2022/shival99-z-ui-components-z-code.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs +664 -0
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs +55 -0
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-editor.mjs +411 -0
- package/fesm2022/shival99-z-ui-components-z-editor.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-filter.mjs +794 -0
- package/fesm2022/shival99-z-ui-components-z-filter.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-icon.mjs +451 -0
- package/fesm2022/shival99-z-ui-components-z-icon.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-input.mjs +804 -0
- package/fesm2022/shival99-z-ui-components-z-input.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-loading.mjs +105 -0
- package/fesm2022/shival99-z-ui-components-z-loading.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-menu.mjs +351 -0
- package/fesm2022/shival99-z-ui-components-z-menu.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-modal.mjs +722 -0
- package/fesm2022/shival99-z-ui-components-z-modal.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs +131 -0
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-popover.mjs +917 -0
- package/fesm2022/shival99-z-ui-components-z-popover.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-radio.mjs +154 -0
- package/fesm2022/shival99-z-ui-components-z-radio.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-select.mjs +998 -0
- package/fesm2022/shival99-z-ui-components-z-select.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-skeleton.mjs +139 -0
- package/fesm2022/shival99-z-ui-components-z-skeleton.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-switch.mjs +127 -0
- package/fesm2022/shival99-z-ui-components-z-switch.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-table.mjs +2628 -0
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs +259 -0
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs +335 -0
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-toast.mjs +93 -0
- package/fesm2022/shival99-z-ui-components-z-toast.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-tooltip.mjs +660 -0
- package/fesm2022/shival99-z-ui-components-z-tooltip.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-upload.mjs +504 -0
- package/fesm2022/shival99-z-ui-components-z-upload.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-i18n.mjs +258 -0
- package/fesm2022/shival99-z-ui-i18n.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-pipes.mjs +116 -0
- package/fesm2022/shival99-z-ui-pipes.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-providers.mjs +203 -0
- package/fesm2022/shival99-z-ui-providers.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-services.mjs +919 -0
- package/fesm2022/shival99-z-ui-services.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-utils.mjs +591 -0
- package/fesm2022/shival99-z-ui-utils.mjs.map +1 -0
- package/fesm2022/z-ui.mjs +3 -19924
- package/fesm2022/z-ui.mjs.map +1 -1
- package/package.json +132 -4
- package/types/shival99-z-ui-components-z-accordion.d.ts +55 -0
- package/types/shival99-z-ui-components-z-breadcrumb.d.ts +36 -0
- package/types/shival99-z-ui-components-z-button.d.ts +41 -0
- package/types/shival99-z-ui-components-z-calendar.d.ts +300 -0
- package/types/shival99-z-ui-components-z-checkbox.d.ts +84 -0
- package/types/shival99-z-ui-components-z-code.d.ts +35 -0
- package/types/shival99-z-ui-components-z-drawer.d.ts +232 -0
- package/types/shival99-z-ui-components-z-dropdown-menu.d.ts +50 -0
- package/types/shival99-z-ui-components-z-editor.d.ts +115 -0
- package/types/shival99-z-ui-components-z-filter.d.ts +268 -0
- package/types/shival99-z-ui-components-z-icon.d.ts +291 -0
- package/types/shival99-z-ui-components-z-input.d.ts +188 -0
- package/types/shival99-z-ui-components-z-loading.d.ts +46 -0
- package/types/shival99-z-ui-components-z-menu.d.ts +116 -0
- package/types/shival99-z-ui-components-z-modal.d.ts +270 -0
- package/types/shival99-z-ui-components-z-pagination.d.ts +52 -0
- package/types/shival99-z-ui-components-z-popover.d.ts +134 -0
- package/types/shival99-z-ui-components-z-radio.d.ts +63 -0
- package/types/shival99-z-ui-components-z-select.d.ts +268 -0
- package/types/shival99-z-ui-components-z-skeleton.d.ts +55 -0
- package/types/shival99-z-ui-components-z-switch.d.ts +48 -0
- package/types/shival99-z-ui-components-z-table.d.ts +482 -0
- package/types/shival99-z-ui-components-z-tabs.d.ts +75 -0
- package/types/shival99-z-ui-components-z-timeline.d.ts +98 -0
- package/types/shival99-z-ui-components-z-toast.d.ts +61 -0
- package/types/shival99-z-ui-components-z-tooltip.d.ts +85 -0
- package/types/shival99-z-ui-components-z-upload.d.ts +136 -0
- package/types/shival99-z-ui-i18n.d.ts +50 -0
- package/types/shival99-z-ui-pipes.d.ts +36 -0
- package/types/shival99-z-ui-providers.d.ts +132 -0
- package/types/shival99-z-ui-services.d.ts +364 -0
- package/types/shival99-z-ui-utils.d.ts +145 -0
- package/types/z-ui.d.ts +3 -4977
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, ElementRef, PipeTransform } from '@angular/core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
type ZFilterSize = 'sm' | 'md' | 'lg';
|
|
8
|
+
type ZFilterFieldType = 'select' | 'multiselect' | 'date' | 'daterange' | 'text' | 'number' | 'numberrange' | 'boolean' | 'email' | 'url' | 'tel' | 'time' | 'datetime' | 'custom' | 'separator';
|
|
9
|
+
interface ZFilterOption<T = unknown> {
|
|
10
|
+
value: T;
|
|
11
|
+
label: string;
|
|
12
|
+
icon?: ZIcon;
|
|
13
|
+
metadata?: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
interface ZFilterOperator {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
supportsMultiple?: boolean;
|
|
19
|
+
}
|
|
20
|
+
interface ZFilterCustomRendererContext<T = unknown> {
|
|
21
|
+
field: ZFilterFieldConfig<T>;
|
|
22
|
+
values: T[];
|
|
23
|
+
operator: string;
|
|
24
|
+
onChange: (values: T[]) => void;
|
|
25
|
+
}
|
|
26
|
+
interface ZFilterFieldConfig<T = unknown> {
|
|
27
|
+
key?: string;
|
|
28
|
+
label?: string;
|
|
29
|
+
icon?: ZIcon;
|
|
30
|
+
type?: ZFilterFieldType;
|
|
31
|
+
group?: string;
|
|
32
|
+
fields?: ZFilterFieldConfig<T>[];
|
|
33
|
+
options?: ZFilterOption<T>[];
|
|
34
|
+
operators?: ZFilterOperator[];
|
|
35
|
+
customRenderer?: TemplateRef<ZFilterCustomRendererContext<T>>;
|
|
36
|
+
customValueRenderer?: TemplateRef<{
|
|
37
|
+
values: T[];
|
|
38
|
+
options: ZFilterOption<T>[];
|
|
39
|
+
}>;
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
searchable?: boolean;
|
|
42
|
+
maxSelections?: number;
|
|
43
|
+
min?: number;
|
|
44
|
+
max?: number;
|
|
45
|
+
step?: number;
|
|
46
|
+
prefix?: string;
|
|
47
|
+
suffix?: string;
|
|
48
|
+
pattern?: string;
|
|
49
|
+
validation?: (value: unknown) => boolean;
|
|
50
|
+
allowCustomValues?: boolean;
|
|
51
|
+
className?: string;
|
|
52
|
+
popoverContentClassName?: string;
|
|
53
|
+
selectedOptionsClassName?: string;
|
|
54
|
+
onLabel?: string;
|
|
55
|
+
offLabel?: string;
|
|
56
|
+
defaultOperator?: string;
|
|
57
|
+
}
|
|
58
|
+
interface ZFilterFieldGroup<T = unknown> {
|
|
59
|
+
group?: string;
|
|
60
|
+
fields: ZFilterFieldConfig<T>[];
|
|
61
|
+
}
|
|
62
|
+
type ZFilterFieldsConfig<T = unknown> = ZFilterFieldConfig<T>[] | ZFilterFieldGroup<T>[];
|
|
63
|
+
interface ZFilter<T = unknown> {
|
|
64
|
+
id: string;
|
|
65
|
+
field: string;
|
|
66
|
+
operator: string;
|
|
67
|
+
values: T[];
|
|
68
|
+
}
|
|
69
|
+
interface ZFilterI18nConfig {
|
|
70
|
+
addFilter: string;
|
|
71
|
+
searchFields: string;
|
|
72
|
+
noFieldsFound: string;
|
|
73
|
+
noResultsFound: string;
|
|
74
|
+
select: string;
|
|
75
|
+
true: string;
|
|
76
|
+
false: string;
|
|
77
|
+
min: string;
|
|
78
|
+
max: string;
|
|
79
|
+
to: string;
|
|
80
|
+
selected: string;
|
|
81
|
+
selectedCount: string;
|
|
82
|
+
addFilterTitle: string;
|
|
83
|
+
operators: {
|
|
84
|
+
is: string;
|
|
85
|
+
isNot: string;
|
|
86
|
+
isAnyOf: string;
|
|
87
|
+
isNotAnyOf: string;
|
|
88
|
+
includesAll: string;
|
|
89
|
+
excludesAll: string;
|
|
90
|
+
before: string;
|
|
91
|
+
after: string;
|
|
92
|
+
between: string;
|
|
93
|
+
notBetween: string;
|
|
94
|
+
contains: string;
|
|
95
|
+
notContains: string;
|
|
96
|
+
startsWith: string;
|
|
97
|
+
endsWith: string;
|
|
98
|
+
isExactly: string;
|
|
99
|
+
equals: string;
|
|
100
|
+
notEquals: string;
|
|
101
|
+
greaterThan: string;
|
|
102
|
+
lessThan: string;
|
|
103
|
+
overlaps: string;
|
|
104
|
+
includes: string;
|
|
105
|
+
excludes: string;
|
|
106
|
+
includesAllOf: string;
|
|
107
|
+
includesAnyOf: string;
|
|
108
|
+
empty: string;
|
|
109
|
+
notEmpty: string;
|
|
110
|
+
};
|
|
111
|
+
placeholders: {
|
|
112
|
+
enterField: string;
|
|
113
|
+
selectField: string;
|
|
114
|
+
searchField: string;
|
|
115
|
+
enterKey: string;
|
|
116
|
+
enterValue: string;
|
|
117
|
+
};
|
|
118
|
+
validation: {
|
|
119
|
+
invalidEmail: string;
|
|
120
|
+
invalidUrl: string;
|
|
121
|
+
invalidTel: string;
|
|
122
|
+
invalid: string;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
declare const DEFAULT_FILTER_I18N: ZFilterI18nConfig;
|
|
126
|
+
|
|
127
|
+
declare class ZFilterComponent<T = unknown> {
|
|
128
|
+
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
129
|
+
readonly zFilters: _angular_core.InputSignal<ZFilter<T>[]>;
|
|
130
|
+
readonly zFields: _angular_core.InputSignal<ZFilterFieldsConfig<T>>;
|
|
131
|
+
readonly zSize: _angular_core.InputSignal<ZFilterSize>;
|
|
132
|
+
readonly zI18n: _angular_core.InputSignal<Partial<ZFilterI18nConfig>>;
|
|
133
|
+
readonly zShowAddButton: _angular_core.InputSignal<boolean>;
|
|
134
|
+
readonly zAllowMultiple: _angular_core.InputSignal<boolean>;
|
|
135
|
+
readonly zAddButtonIcon: _angular_core.InputSignal<"lucideLayers2" | "lucideStore" | "lucideChartBarStacked" | "lucideBookCheck" | "lucideAlarmClock" | "lucideClipboardPlus" | "lucideSave" | "lucideSaveAll" | "lucideFlag" | "lucideFlagTriangleRight" | "lucideMessageSquareDot" | "lucideCheckCheck" | "lucideTriangleAlert" | "lucideMessageSquareWarning" | "lucideCheck" | "lucidePencil" | "lucideMail" | "lucideLayoutGrid" | "lucideArrowLeft" | "lucideArrowRight" | "lucideMenu" | "lucideLock" | "lucideLogOut" | "lucideUser" | "lucideSettings" | "lucidePill" | "lucideCalendarFold" | "lucideSettings2" | "lucideChevronLeft" | "lucideChevronRight" | "lucideChevronDown" | "lucidePlus" | "lucideSearch" | "lucideUsers" | "lucideEye" | "lucideEyeOff" | "lucideEllipsis" | "lucidePanelLeftClose" | "lucidePanelLeftOpen" | "lucideLayoutDashboard" | "lucideChartColumn" | "lucideUsersRound" | "lucideLogs" | "lucideChevronUp" | "lucideTrendingUp" | "lucidePackage" | "lucideShoppingCart" | "lucideUserCheck" | "lucideActivity" | "lucideZap" | "lucideMousePointer" | "lucideInfo" | "lucideLayers" | "lucideBriefcase" | "lucideTarget" | "lucideWorkflow" | "lucideWarehouse" | "lucideLoaderCircle" | "lucideChevronsLeft" | "lucideChevronsRight" | "lucideBellRing" | "lucideSlidersHorizontal" | "lucideTrash2" | "lucideFileDown" | "lucideFunnel" | "lucideAlignJustify" | "lucideX" | "lucideFiles" | "lucideCrown" | "lucideBadgeInfo" | "lucideMinus" | "lucideBox" | "lucideCog" | "lucideBellMinus" | "lucidePackageOpen" | "lucideInbox" | "lucideClock" | "lucideBookOpen" | "lucideCalendar" | "lucideCalculator" | "lucideClipboardList" | "lucideDatabase" | "lucideDollarSign" | "lucideFileText" | "lucideGraduationCap" | "lucideHeart" | "lucideHospital" | "lucideMapPin" | "lucideMonitor" | "lucidePhone" | "lucideShield" | "lucideStar" | "lucideStethoscope" | "lucideTimer" | "lucideTrendingDown" | "lucideUserPlus" | "lucideVideo" | "lucideWallet" | "lucideWrench" | "lucideBuilding2" | "lucideCar" | "lucideCreditCard" | "lucideFileSpreadsheet" | "lucideGlobe" | "lucideHeadphones" | "lucideKey" | "lucideLightbulb" | "lucideMailCheck" | "lucideNetwork" | "lucidePalette" | "lucidePhoneCall" | "lucidePrinter" | "lucideRadio" | "lucideServer" | "lucideSmartphone" | "lucideTablet" | "lucideTerminal" | "lucideTruck" | "lucideWifi" | "lucideRefreshCcw" | "lucideLockKeyhole" | "lucideArrowDown" | "lucideArrowUp" | "lucideUserLock" | "lucideCircleCheck" | "lucideHouse" | "lucideChartBar" | "lucideChartPie" | "lucideChartLine" | "lucideCalendarRange" | "lucideCalendar1" | "lucideCalendarCheck" | "lucideNotepadText" | "lucideFileUp" | "lucideTableOfContents" | "lucideBot" | "lucideSend" | "lucidePause" | "lucidePaperclip" | "saxPauseBold" | "lucideCopy" | "lucideUserRoundPen" | "lucideFilePenLine" | "lucideArrowDownUp" | "lucideCircleX" | "lucideCheckLine" | "lucideBadgeCheck" | "lucideShieldCheck" | "lucideCircleCheckBig" | "lucideBadgeX" | "lucideLockKeyholeOpen" | "lucideFileSymlink" | "lucideWifiZero" | "lucideCloudCheck" | "lucideMailPlus" | "lucideHardDriveDownload" | "saxCloudChangeBold" | "saxRefreshBold" | "lucideBarcode" | "lucideCode" | "lucideScanQrCode" | "lucideQrCode" | "lucideScanLine" | "lucideListPlus" | "lucideFilePlus" | "lucideFilePlus2" | "lucideBookUp2" | "lucideFileClock" | "lucideRefreshCwOff" | "lucideListChecks" | "lucideFastForward" | "lucideBrushCleaning" | "lucideChartColumnIncreasing" | "lucideBell" | "lucideCheckCircle2" | "lucideAlertCircle" | "lucideXCircle" | "lucideLink" | "lucideDatabaseBackup" | "lucideFileCheck" | "lucideListChevronsDownUp" | "lucideListChevronsUpDown" | "lucideSun" | "lucideMoon" | "lucideLoader" | "lucideAlertOctagon" | "lucideMessageCircle" | "lucideCircleAlert" | "lucideMessageCircleQuestion" | "lucideComponent" | "lucidePanelRightOpen" | "lucideLoader2" | "lucideGithub" | "lucideLifeBuoy" | "lucideCloud" | "lucideBarChart" | "lucideHome" | "lucideFolderOpen" | "lucideSquarePen" | "lucideLayoutTemplate" | "lucideFileOutput" | "lucideCircleHelp" | "lucideGripHorizontal" | "lucideImage" | "lucideList" | "lucideHash" | "lucideMegaphone" | "lucidePenTool" | "lucideSquare" | "lucideRocket" | "lucideBarChart3" | "lucideUsers2" | "lucideGrid3x3" | "lucideFolderTree" | "lucideCheckCircle" | "lucideSliders" | "lucideFileEdit" | "lucideNavigation" | "lucideListFilter" | "lucideTextCursor" | "lucidePieChart" | "lucideUserSearch" | "lucideFolders" | "lucideSparkles" | "lucideSquareCheck" | "lucideCircleDot" | "lucideToggleLeft" | "lucideUpload" | "lucideUploadCloud" | "lucideDownload" | "lucideFile" | "lucideMusic" | "lucideFileCode" | "lucideFileJson" | "lucideFileArchive" | "lucideTable2" | "lucideGripVertical" | "lucidePin" | "lucideSearchX" | "lucideMoreVertical" | "lucideGitBranch" | "lucideAlertTriangle" | "lucideFilter" | "lucideFunnelX" | "lucideBan" | "lucideBuilding" | "lucideType">;
|
|
136
|
+
readonly zAddButtonText: _angular_core.InputSignal<string | undefined>;
|
|
137
|
+
readonly zFiltersChange: _angular_core.OutputEmitterRef<ZFilter<T>[]>;
|
|
138
|
+
readonly zFilterAdd: _angular_core.OutputEmitterRef<ZFilter<T>>;
|
|
139
|
+
readonly zFilterRemove: _angular_core.OutputEmitterRef<ZFilter<T>>;
|
|
140
|
+
readonly zFilterUpdate: _angular_core.OutputEmitterRef<{
|
|
141
|
+
filter: ZFilter<T>;
|
|
142
|
+
updates: Partial<ZFilter<T>>;
|
|
143
|
+
}>;
|
|
144
|
+
readonly addButtonTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
145
|
+
protected readonly addFilterOpen: _angular_core.WritableSignal<boolean>;
|
|
146
|
+
protected readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
147
|
+
protected readonly operatorPopoverOpen: _angular_core.WritableSignal<string | null>;
|
|
148
|
+
protected readonly valuePopoverOpen: _angular_core.WritableSignal<string | null>;
|
|
149
|
+
protected readonly addFilterSearchInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
150
|
+
protected focusSearchInput(): void;
|
|
151
|
+
protected focusSelectSearch(filterId: string): void;
|
|
152
|
+
protected readonly i18n: _angular_core.Signal<ZFilterI18nConfig>;
|
|
153
|
+
protected readonly fieldsMap: _angular_core.Signal<Record<string, ZFilterFieldConfig<T>>>;
|
|
154
|
+
protected readonly selectableFields: _angular_core.Signal<ZFilterFieldConfig<T>[]>;
|
|
155
|
+
protected readonly filteredFields: _angular_core.Signal<ZFilterFieldConfig<T>[]>;
|
|
156
|
+
protected readonly groupedFields: _angular_core.Signal<{
|
|
157
|
+
group: string;
|
|
158
|
+
fields: ZFilterFieldConfig<T>[];
|
|
159
|
+
}[]>;
|
|
160
|
+
protected readonly buttonSize: _angular_core.Signal<"sm" | "lg" | "default">;
|
|
161
|
+
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
162
|
+
protected getItemClasses(): string;
|
|
163
|
+
protected getLabelClasses(): string;
|
|
164
|
+
protected getInputClasses(): string;
|
|
165
|
+
protected getRemoveButtonClasses(): string;
|
|
166
|
+
protected getBetweenClasses(): string;
|
|
167
|
+
protected getFieldForFilter(filter: ZFilter<T>): ZFilterFieldConfig<T> | undefined;
|
|
168
|
+
protected getOperatorsForFilter(filter: ZFilter<T>): ZFilterOperator[];
|
|
169
|
+
protected getOperatorLabel(filter: ZFilter<T>): string;
|
|
170
|
+
protected getSelectedOptions(filter: ZFilter<T>): ZFilterOption<T>[];
|
|
171
|
+
protected getUnselectedOptions(filter: ZFilter<T>): ZFilterOption<T>[];
|
|
172
|
+
protected isValueHidden(filter: ZFilter<T>): boolean;
|
|
173
|
+
protected isBetweenOperator(filter: ZFilter<T>): boolean;
|
|
174
|
+
protected getInputPattern(field: ZFilterFieldConfig<T>): string | undefined;
|
|
175
|
+
protected onFieldSelect(field: ZFilterFieldConfig<T>): void;
|
|
176
|
+
protected updateFilterOperator(filter: ZFilter<T>, operator: string): void;
|
|
177
|
+
protected onSelectValueChange(filter: ZFilter<T>, option: ZFilterOption<T>): void;
|
|
178
|
+
protected removeFilter(filter: ZFilter<T>): void;
|
|
179
|
+
protected onInputChange(filter: ZFilter<T>, event: Event, index?: number): void;
|
|
180
|
+
protected onBooleanChange(filter: ZFilter<T>, checked: boolean): void;
|
|
181
|
+
protected onSearchInput(event: Event): void;
|
|
182
|
+
protected trackByFilterId(index: number, filter: ZFilter<T>): string;
|
|
183
|
+
protected trackByOptionValue(index: number, option: ZFilterOption<T>): unknown;
|
|
184
|
+
protected trackByFieldKey(index: number, field: ZFilterFieldConfig<T>): string;
|
|
185
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterComponent<any>, never>;
|
|
186
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZFilterComponent<any>, "z-filter", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zFilters": { "alias": "zFilters"; "required": true; "isSignal": true; }; "zFields": { "alias": "zFields"; "required": true; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zI18n": { "alias": "zI18n"; "required": false; "isSignal": true; }; "zShowAddButton": { "alias": "zShowAddButton"; "required": false; "isSignal": true; }; "zAllowMultiple": { "alias": "zAllowMultiple"; "required": false; "isSignal": true; }; "zAddButtonIcon": { "alias": "zAddButtonIcon"; "required": false; "isSignal": true; }; "zAddButtonText": { "alias": "zAddButtonText"; "required": false; "isSignal": true; }; }, { "zFiltersChange": "zFiltersChange"; "zFilterAdd": "zFilterAdd"; "zFilterRemove": "zFilterRemove"; "zFilterUpdate": "zFilterUpdate"; }, ["addButtonTemplate"], never, true, never>;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
declare class ZFilterFieldPipe implements PipeTransform {
|
|
190
|
+
transform(filter: ZFilter, fields: ZFilterFieldsConfig): ZFilterFieldConfig | undefined;
|
|
191
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterFieldPipe, never>;
|
|
192
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterFieldPipe, "zFilterField", true>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
declare class ZFilterOperatorLabelPipe implements PipeTransform {
|
|
196
|
+
transform(filter: ZFilter, fields: ZFilterFieldsConfig, i18n: ZFilterI18nConfig): string;
|
|
197
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterOperatorLabelPipe, never>;
|
|
198
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterOperatorLabelPipe, "zFilterOperatorLabel", true>;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
declare class ZFilterOperatorsPipe implements PipeTransform {
|
|
202
|
+
transform(filter: ZFilter, fields: ZFilterFieldsConfig, i18n: ZFilterI18nConfig): ZFilterOperator[];
|
|
203
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterOperatorsPipe, never>;
|
|
204
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterOperatorsPipe, "zFilterOperators", true>;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare class ZFilterSelectedOptionsPipe implements PipeTransform {
|
|
208
|
+
transform(filter: ZFilter, fields: ZFilterFieldsConfig): ZFilterOption[];
|
|
209
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterSelectedOptionsPipe, never>;
|
|
210
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterSelectedOptionsPipe, "zFilterSelectedOptions", true>;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare class ZFilterUnselectedOptionsPipe implements PipeTransform {
|
|
214
|
+
transform(filter: ZFilter, fields: ZFilterFieldsConfig): ZFilterOption[];
|
|
215
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterUnselectedOptionsPipe, never>;
|
|
216
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterUnselectedOptionsPipe, "zFilterUnselectedOptions", true>;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare class ZFilterInputPatternPipe implements PipeTransform {
|
|
220
|
+
transform(field: ZFilterFieldConfig): string;
|
|
221
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterInputPatternPipe, never>;
|
|
222
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterInputPatternPipe, "zFilterInputPattern", true>;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare class ZFilterIsValueHiddenPipe implements PipeTransform {
|
|
226
|
+
transform(filter: ZFilter): boolean;
|
|
227
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterIsValueHiddenPipe, never>;
|
|
228
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterIsValueHiddenPipe, "zFilterIsValueHidden", true>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare class ZFilterIsBetweenOperatorPipe implements PipeTransform {
|
|
232
|
+
transform(filter: ZFilter): boolean;
|
|
233
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterIsBetweenOperatorPipe, never>;
|
|
234
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterIsBetweenOperatorPipe, "zFilterIsBetweenOperator", true>;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
declare const Z_FILTER_PIPES: readonly [typeof ZFilterFieldPipe, typeof ZFilterOperatorLabelPipe, typeof ZFilterOperatorsPipe, typeof ZFilterSelectedOptionsPipe, typeof ZFilterUnselectedOptionsPipe, typeof ZFilterInputPatternPipe, typeof ZFilterIsValueHiddenPipe, typeof ZFilterIsBetweenOperatorPipe];
|
|
238
|
+
|
|
239
|
+
declare function createFilter<T = unknown>(field: string, operator?: string, values?: T[]): ZFilter<T>;
|
|
240
|
+
declare function flattenFields<T = unknown>(fields: ZFilterFieldsConfig<T>): ZFilterFieldConfig<T>[];
|
|
241
|
+
declare function getFieldsMap<T = unknown>(fields: ZFilterFieldsConfig<T>): Record<string, ZFilterFieldConfig<T>>;
|
|
242
|
+
declare function getOperatorsForField<T = unknown>(field: ZFilterFieldConfig<T>, values: T[], i18n: ZFilterI18nConfig): ZFilterOperator[];
|
|
243
|
+
declare function formatOperator(operator: string): string;
|
|
244
|
+
declare function getDefaultOperator(fieldType: string): string;
|
|
245
|
+
declare function getDefaultValues<T = unknown>(fieldType: string, field: ZFilterFieldConfig<T>): unknown[];
|
|
246
|
+
declare function getInputPattern(fieldType: string): string | undefined;
|
|
247
|
+
|
|
248
|
+
declare const zFilterContainerVariants: (props?: ({
|
|
249
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
250
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
251
|
+
declare const zFilterItemVariants: (props?: ({
|
|
252
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
253
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
254
|
+
declare const zFilterFieldLabelVariants: (props?: ({
|
|
255
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
256
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
257
|
+
declare const zFilterInputVariants: (props?: ({
|
|
258
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
259
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
260
|
+
declare const zFilterRemoveButtonVariants: (props?: ({
|
|
261
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
262
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
263
|
+
declare const zFilterBetweenVariants: (props?: ({
|
|
264
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
265
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
266
|
+
|
|
267
|
+
export { DEFAULT_FILTER_I18N, ZFilterComponent, ZFilterFieldPipe, ZFilterInputPatternPipe, ZFilterIsBetweenOperatorPipe, ZFilterIsValueHiddenPipe, ZFilterOperatorLabelPipe, ZFilterOperatorsPipe, ZFilterSelectedOptionsPipe, ZFilterUnselectedOptionsPipe, Z_FILTER_PIPES, createFilter, flattenFields, formatOperator, getDefaultOperator, getDefaultValues, getFieldsMap, getInputPattern, getOperatorsForField, zFilterBetweenVariants, zFilterContainerVariants, zFilterFieldLabelVariants, zFilterInputVariants, zFilterItemVariants, zFilterRemoveButtonVariants };
|
|
268
|
+
export type { ZFilter, ZFilterCustomRendererContext, ZFilterFieldConfig, ZFilterFieldGroup, ZFilterFieldType, ZFilterFieldsConfig, ZFilterI18nConfig, ZFilterOperator, ZFilterOption, ZFilterSize };
|