@tectra-ng/ui 0.1.4 → 0.1.6
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/carousel/README.md +53 -0
- package/datepicker/README.md +1 -1
- package/fesm2022/tectra-ng-ui-button.mjs +9 -3
- package/fesm2022/tectra-ng-ui-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-carousel.mjs +939 -0
- package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-galleria.mjs +1140 -0
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-icon-field.mjs +24 -8
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-image.mjs +759 -0
- package/fesm2022/tectra-ng-ui-image.mjs.map +1 -0
- package/galleria/README.md +62 -0
- package/image/README.md +54 -0
- package/package.json +55 -8
- package/types/tectra-ng-ui-button.d.ts +4 -2
- package/types/tectra-ng-ui-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-carousel.d.ts +263 -0
- package/types/tectra-ng-ui-carousel.d.ts.map +1 -0
- package/types/tectra-ng-ui-galleria.d.ts +407 -0
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -0
- package/types/tectra-ng-ui-icon-field.d.ts +9 -4
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-image.d.ts +259 -0
- package/types/tectra-ng-ui-image.d.ts.map +1 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Injector, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
3
|
+
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
4
|
+
import { TxIconName } from "@tectra-ng/icons";
|
|
5
|
+
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
6
|
+
export type TxImageLoading = 'lazy' | 'eager';
|
|
7
|
+
export type TxImagePart = 'root' | 'image' | 'previewButton' | 'previewIcon' | 'mask' | 'toolbar' | 'action' | 'original';
|
|
8
|
+
export interface TxImagePreviewContext {
|
|
9
|
+
$implicit: string;
|
|
10
|
+
src: string;
|
|
11
|
+
alt: string;
|
|
12
|
+
style: Record<string, string>;
|
|
13
|
+
close: () => void;
|
|
14
|
+
}
|
|
15
|
+
export interface TxImageIndicatorContext {
|
|
16
|
+
$implicit: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class TxImageIndicatorTemplate {
|
|
19
|
+
readonly template: TemplateRef<TxImageIndicatorContext>;
|
|
20
|
+
static ngTemplateContextGuard(_directive: TxImageIndicatorTemplate, context: unknown): context is TxImageIndicatorContext;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxImageIndicatorTemplate, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxImageIndicatorTemplate, "ng-template[txImageIndicator]", never, {}, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
24
|
+
export declare class TxImagePreviewTemplate {
|
|
25
|
+
readonly template: TemplateRef<TxImagePreviewContext>;
|
|
26
|
+
static ngTemplateContextGuard(_directive: TxImagePreviewTemplate, context: unknown): context is TxImagePreviewContext;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxImagePreviewTemplate, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxImagePreviewTemplate, "ng-template[txImagePreview]", never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
export interface TxImageLayerOptions {
|
|
31
|
+
injector: Injector;
|
|
32
|
+
viewContainerRef: ViewContainerRef;
|
|
33
|
+
focus?: string;
|
|
34
|
+
onEscape?: () => void;
|
|
35
|
+
onDetach?: () => void;
|
|
36
|
+
}
|
|
37
|
+
export interface TxImageLayer {
|
|
38
|
+
readonly element: HTMLElement;
|
|
39
|
+
close(): Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
export declare function openImageLayer(template: TemplateRef<unknown>, options: TxImageLayerOptions): TxImageLayer;
|
|
42
|
+
export declare class TxImage {
|
|
43
|
+
private injector;
|
|
44
|
+
private viewContainerRef;
|
|
45
|
+
private document;
|
|
46
|
+
private layer;
|
|
47
|
+
private pan;
|
|
48
|
+
readonly src: import("@angular/core").InputSignal<string | undefined>;
|
|
49
|
+
readonly srcSet: import("@angular/core").InputSignal<string | undefined>;
|
|
50
|
+
readonly sizes: import("@angular/core").InputSignal<string | undefined>;
|
|
51
|
+
readonly previewSrc: import("@angular/core").InputSignal<string | undefined>;
|
|
52
|
+
readonly previewSrcSet: import("@angular/core").InputSignal<string | undefined>;
|
|
53
|
+
readonly previewSizes: import("@angular/core").InputSignal<string | undefined>;
|
|
54
|
+
readonly alt: import("@angular/core").InputSignal<string | undefined>;
|
|
55
|
+
readonly width: import("@angular/core").InputSignal<string | number | undefined>;
|
|
56
|
+
readonly height: import("@angular/core").InputSignal<string | number | undefined>;
|
|
57
|
+
readonly loading: import("@angular/core").InputSignal<TxImageLoading | undefined>;
|
|
58
|
+
readonly preview: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
59
|
+
readonly previewIcon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
|
|
60
|
+
readonly zoomStep: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
61
|
+
readonly minZoom: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
62
|
+
readonly maxZoom: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
63
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
64
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
|
|
65
|
+
root: {
|
|
66
|
+
transitionDuration: string;
|
|
67
|
+
easing: string;
|
|
68
|
+
};
|
|
69
|
+
preview: {
|
|
70
|
+
iconSize: string;
|
|
71
|
+
maskBackground: string;
|
|
72
|
+
maskColor: string;
|
|
73
|
+
background: string;
|
|
74
|
+
};
|
|
75
|
+
toolbar: {
|
|
76
|
+
top: string;
|
|
77
|
+
right: string;
|
|
78
|
+
blur: string;
|
|
79
|
+
background: string;
|
|
80
|
+
borderColor: string;
|
|
81
|
+
borderWidth: string;
|
|
82
|
+
borderRadius: string;
|
|
83
|
+
padding: string;
|
|
84
|
+
gap: string;
|
|
85
|
+
};
|
|
86
|
+
action: {
|
|
87
|
+
size: string;
|
|
88
|
+
iconSize: string;
|
|
89
|
+
borderRadius: string;
|
|
90
|
+
color: string;
|
|
91
|
+
hoverColor: string;
|
|
92
|
+
hoverBackground: string;
|
|
93
|
+
disabledOpacity: string;
|
|
94
|
+
focusRingWidth: string;
|
|
95
|
+
focusRingColor: string;
|
|
96
|
+
focusRingOffset: string;
|
|
97
|
+
};
|
|
98
|
+
}> | undefined>;
|
|
99
|
+
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxImagePart, import("@tectra-ng/core/config").TxPassThroughValue<TxImage>>> | undefined>;
|
|
100
|
+
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
101
|
+
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
102
|
+
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
103
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
104
|
+
readonly imageError: import("@angular/core").OutputEmitterRef<Event>;
|
|
105
|
+
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
106
|
+
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
107
|
+
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxImagePart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
108
|
+
readonly hostStyle: import("@angular/core").Signal<{
|
|
109
|
+
[x: string]: string;
|
|
110
|
+
}>;
|
|
111
|
+
readonly layerStyle: import("@angular/core").Signal<{
|
|
112
|
+
[x: string]: string;
|
|
113
|
+
}>;
|
|
114
|
+
protected readonly indicatorTemplate: import("@angular/core").Signal<TxImageIndicatorTemplate | undefined>;
|
|
115
|
+
protected readonly previewTemplate: import("@angular/core").Signal<TxImagePreviewTemplate | undefined>;
|
|
116
|
+
private readonly layerTemplate;
|
|
117
|
+
readonly visible: import("@angular/core").WritableSignal<boolean>;
|
|
118
|
+
readonly rotation: import("@angular/core").WritableSignal<number>;
|
|
119
|
+
readonly scale: import("@angular/core").WritableSignal<number>;
|
|
120
|
+
readonly offset: import("@angular/core").WritableSignal<{
|
|
121
|
+
x: number;
|
|
122
|
+
y: number;
|
|
123
|
+
}>;
|
|
124
|
+
readonly panning: import("@angular/core").WritableSignal<boolean>;
|
|
125
|
+
readonly fullSrc: import("@angular/core").Signal<string>;
|
|
126
|
+
readonly fullSrcSet: import("@angular/core").Signal<string | undefined>;
|
|
127
|
+
readonly fullSizes: import("@angular/core").Signal<string | undefined>;
|
|
128
|
+
readonly previewLabel: import("@angular/core").Signal<string>;
|
|
129
|
+
readonly canZoomIn: import("@angular/core").Signal<boolean>;
|
|
130
|
+
readonly canZoomOut: import("@angular/core").Signal<boolean>;
|
|
131
|
+
readonly transform: import("@angular/core").Signal<string>;
|
|
132
|
+
readonly previewContext: import("@angular/core").Signal<TxImagePreviewContext>;
|
|
133
|
+
constructor();
|
|
134
|
+
open(): void;
|
|
135
|
+
close(): void;
|
|
136
|
+
rotateRight(): void;
|
|
137
|
+
rotateLeft(): void;
|
|
138
|
+
zoomIn(): void;
|
|
139
|
+
zoomOut(): void;
|
|
140
|
+
resetZoom(): void;
|
|
141
|
+
protected onMaskClick(event: MouseEvent): void;
|
|
142
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
143
|
+
protected onWheel(event: WheelEvent): void;
|
|
144
|
+
protected onDoubleClick(): void;
|
|
145
|
+
protected startPan(event: PointerEvent): void;
|
|
146
|
+
protected imageFailed(event: Event): void;
|
|
147
|
+
private readonly movePan;
|
|
148
|
+
private readonly endPan;
|
|
149
|
+
private stopPan;
|
|
150
|
+
private zoomTo;
|
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxImage, never>;
|
|
152
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxImage, "tx-image", never, {
|
|
153
|
+
"src": {
|
|
154
|
+
"alias": "src";
|
|
155
|
+
"required": false;
|
|
156
|
+
"isSignal": true;
|
|
157
|
+
};
|
|
158
|
+
"srcSet": {
|
|
159
|
+
"alias": "srcSet";
|
|
160
|
+
"required": false;
|
|
161
|
+
"isSignal": true;
|
|
162
|
+
};
|
|
163
|
+
"sizes": {
|
|
164
|
+
"alias": "sizes";
|
|
165
|
+
"required": false;
|
|
166
|
+
"isSignal": true;
|
|
167
|
+
};
|
|
168
|
+
"previewSrc": {
|
|
169
|
+
"alias": "previewSrc";
|
|
170
|
+
"required": false;
|
|
171
|
+
"isSignal": true;
|
|
172
|
+
};
|
|
173
|
+
"previewSrcSet": {
|
|
174
|
+
"alias": "previewSrcSet";
|
|
175
|
+
"required": false;
|
|
176
|
+
"isSignal": true;
|
|
177
|
+
};
|
|
178
|
+
"previewSizes": {
|
|
179
|
+
"alias": "previewSizes";
|
|
180
|
+
"required": false;
|
|
181
|
+
"isSignal": true;
|
|
182
|
+
};
|
|
183
|
+
"alt": {
|
|
184
|
+
"alias": "alt";
|
|
185
|
+
"required": false;
|
|
186
|
+
"isSignal": true;
|
|
187
|
+
};
|
|
188
|
+
"width": {
|
|
189
|
+
"alias": "width";
|
|
190
|
+
"required": false;
|
|
191
|
+
"isSignal": true;
|
|
192
|
+
};
|
|
193
|
+
"height": {
|
|
194
|
+
"alias": "height";
|
|
195
|
+
"required": false;
|
|
196
|
+
"isSignal": true;
|
|
197
|
+
};
|
|
198
|
+
"loading": {
|
|
199
|
+
"alias": "loading";
|
|
200
|
+
"required": false;
|
|
201
|
+
"isSignal": true;
|
|
202
|
+
};
|
|
203
|
+
"preview": {
|
|
204
|
+
"alias": "preview";
|
|
205
|
+
"required": false;
|
|
206
|
+
"isSignal": true;
|
|
207
|
+
};
|
|
208
|
+
"previewIcon": {
|
|
209
|
+
"alias": "previewIcon";
|
|
210
|
+
"required": false;
|
|
211
|
+
"isSignal": true;
|
|
212
|
+
};
|
|
213
|
+
"zoomStep": {
|
|
214
|
+
"alias": "zoomStep";
|
|
215
|
+
"required": false;
|
|
216
|
+
"isSignal": true;
|
|
217
|
+
};
|
|
218
|
+
"minZoom": {
|
|
219
|
+
"alias": "minZoom";
|
|
220
|
+
"required": false;
|
|
221
|
+
"isSignal": true;
|
|
222
|
+
};
|
|
223
|
+
"maxZoom": {
|
|
224
|
+
"alias": "maxZoom";
|
|
225
|
+
"required": false;
|
|
226
|
+
"isSignal": true;
|
|
227
|
+
};
|
|
228
|
+
"ariaLabel": {
|
|
229
|
+
"alias": "ariaLabel";
|
|
230
|
+
"required": false;
|
|
231
|
+
"isSignal": true;
|
|
232
|
+
};
|
|
233
|
+
"dt": {
|
|
234
|
+
"alias": "dt";
|
|
235
|
+
"required": false;
|
|
236
|
+
"isSignal": true;
|
|
237
|
+
};
|
|
238
|
+
"pt": {
|
|
239
|
+
"alias": "pt";
|
|
240
|
+
"required": false;
|
|
241
|
+
"isSignal": true;
|
|
242
|
+
};
|
|
243
|
+
"ptOptions": {
|
|
244
|
+
"alias": "ptOptions";
|
|
245
|
+
"required": false;
|
|
246
|
+
"isSignal": true;
|
|
247
|
+
};
|
|
248
|
+
"unstyled": {
|
|
249
|
+
"alias": "unstyled";
|
|
250
|
+
"required": false;
|
|
251
|
+
"isSignal": true;
|
|
252
|
+
};
|
|
253
|
+
}, {
|
|
254
|
+
"opened": "opened";
|
|
255
|
+
"closed": "closed";
|
|
256
|
+
"imageError": "imageError";
|
|
257
|
+
}, ["indicatorTemplate", "previewTemplate"], never, true, never>;
|
|
258
|
+
}
|
|
259
|
+
//# sourceMappingURL=tectra-ng-ui-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-image.d.ts","names":[],"sources":["../../../../packages/ui/image/src/image.types.ts","../../../../packages/ui/image/src/image.templates.ts","../../../../packages/ui/image/src/image-layer.ts","../../../../packages/ui/image/src/image.component.ts"],"mappings":";;;;;YAAY;YAEA;iBAEK;EACf;EACA;EACA;EACA,OAAO;EACP;;iBAGe;EACf;;qBCTW;WACF,UAAQ,YAAA;SAEV,uBAAuB,YAAY,0BAA0B,mBAAmB,WAAW;SAHvF,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBASA;WACF,UAAQ,YAAA;SAEV,uBAAuB,YAAY,wBAAwB,mBAAmB,WAAW;SAHrF,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;iBCNI;EACf,UAAU;EACV,kBAAkB;EAClB;EACA;EACA;;iBAGe;WACN,SAAS;EAClB,SAAS;;wBAOK,eAAe,UAAU,sBAAsB,SAAS,sBAAsB;qBCqBjF;UACH;UACA;UACA;UACA;UACA;WAEC,6BAAG;WACH,gCAAM;WACN,+BAAK;WACL,oCAAU;WACV,uCAAa;WACb,sCAAY;WACZ,6BAAG;WACH,+BAAK;WACL,gCAAM;WACN,iCAAO,YAAA;WACP,iCAAO;WACP,qCAAW,YAAA;WACX,kCAAQ;WACR,iCAAO;WACP,iCAAO;WACP,mCAAS;WACT,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,8CAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,gCAAM;WACN,gCAAM;WACN,oCAAU,iBAAA;WAEV,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,8CAAA;WACX,mCAAS;;;WACT,oCAAU;;;qBAEA,2CAAiB,OAAA;qBACjB,yCAAe,OAAA;mBACjB;WAER,iCAAO;WACP,kCAAQ;WACR,+BAAK;WACL,gCAAM;;;;WACN,iCAAO;WAEP,iCAAO;WACP,oCAAU;WACV,mCAAS;WACT,sCAAY;WACZ,mCAAS;WACT,oCAAU;WACV,mCAAS;WAIT,wCAAc,OAAA;;EAiBvB;EAkBA;EAaA;EAIA;EAIA;EAIA;EAIA;YAIU,YAAY,OAAO;YAOnB,UAAU,OAAO;YAiBjB,QAAQ,OAAO;YAYf;YAIA,SAAS,OAAO;YAYhB,YAAY,OAAO;mBAIZ;mBAeA;UAIT;UAQA;SAjNG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAO;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA"}
|