@shival99/z-ui 2.1.33 → 2.2.0
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-accordion.mjs +41 -25
- package/fesm2022/shival99-z-ui-components-z-accordion.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs +176 -97
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-avatar.mjs +71 -40
- package/fesm2022/shival99-z-ui-components-z-avatar.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-breadcrumb.mjs +26 -15
- package/fesm2022/shival99-z-ui-components-z-breadcrumb.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-button-group.mjs +33 -21
- package/fesm2022/shival99-z-ui-components-z-button-group.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-button.mjs +32 -19
- package/fesm2022/shival99-z-ui-components-z-button.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs +289 -172
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-card.mjs +34 -24
- package/fesm2022/shival99-z-ui-components-z-card.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-chat.mjs +85 -47
- package/fesm2022/shival99-z-ui-components-z-chat.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-checkbox.mjs +56 -31
- package/fesm2022/shival99-z-ui-components-z-checkbox.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-code.mjs +29 -16
- package/fesm2022/shival99-z-ui-components-z-code.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-command.mjs +34 -19
- package/fesm2022/shival99-z-ui-components-z-command.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs +190 -92
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs +32 -18
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-editor.mjs +118 -62
- package/fesm2022/shival99-z-ui-components-z-editor.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-empty.mjs +31 -17
- package/fesm2022/shival99-z-ui-components-z-empty.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-filter.mjs +81 -54
- package/fesm2022/shival99-z-ui-components-z-filter.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs +240 -132
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-icon.mjs +39 -21
- package/fesm2022/shival99-z-ui-components-z-icon.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-input.mjs +173 -95
- package/fesm2022/shival99-z-ui-components-z-input.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-kanban.mjs +88 -47
- package/fesm2022/shival99-z-ui-components-z-kanban.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-loading.mjs +31 -19
- package/fesm2022/shival99-z-ui-components-z-loading.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-marquee.mjs +42 -23
- package/fesm2022/shival99-z-ui-components-z-marquee.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-media-player.mjs +87 -45
- package/fesm2022/shival99-z-ui-components-z-media-player.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-menu.mjs +126 -67
- package/fesm2022/shival99-z-ui-components-z-menu.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-metric-card.mjs +42 -23
- package/fesm2022/shival99-z-ui-components-z-metric-card.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-modal.mjs +144 -80
- package/fesm2022/shival99-z-ui-components-z-modal.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs +45 -24
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-popover.mjs +90 -57
- package/fesm2022/shival99-z-ui-components-z-popover.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-qrcode.mjs +51 -29
- package/fesm2022/shival99-z-ui-components-z-qrcode.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-radio.mjs +36 -20
- package/fesm2022/shival99-z-ui-components-z-radio.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-scrollarea.mjs +27 -15
- package/fesm2022/shival99-z-ui-components-z-scrollarea.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-select.mjs +239 -138
- package/fesm2022/shival99-z-ui-components-z-select.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-show-more.mjs +38 -21
- package/fesm2022/shival99-z-ui-components-z-show-more.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-skeleton-auto.mjs +42 -23
- package/fesm2022/shival99-z-ui-components-z-skeleton-auto.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-skeleton.mjs +35 -19
- package/fesm2022/shival99-z-ui-components-z-skeleton.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-steps.mjs +55 -31
- package/fesm2022/shival99-z-ui-components-z-steps.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-switch.mjs +60 -33
- package/fesm2022/shival99-z-ui-components-z-switch.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +896 -536
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs +60 -33
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-tags.mjs +72 -46
- package/fesm2022/shival99-z-ui-components-z-tags.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs +38 -21
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-toast.mjs +53 -31
- package/fesm2022/shival99-z-ui-components-z-toast.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-tooltip.mjs +133 -56
- package/fesm2022/shival99-z-ui-components-z-tooltip.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-upload.mjs +63 -36
- package/fesm2022/shival99-z-ui-components-z-upload.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-pipes.mjs +18 -18
- package/fesm2022/shival99-z-ui-services.mjs +35 -31
- package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
- package/package.json +16 -16
- package/types/shival99-z-ui-components-z-autocomplete.d.ts +2 -2
- package/types/shival99-z-ui-components-z-card.d.ts +1 -2
- package/types/shival99-z-ui-components-z-drawer.d.ts +3 -1
- package/types/shival99-z-ui-components-z-gallery.d.ts +1 -2
- package/types/shival99-z-ui-components-z-select.d.ts +2 -2
- package/types/shival99-z-ui-components-z-table.d.ts +405 -38
|
@@ -119,15 +119,24 @@ const zTooltipExitVariants = cva('z-animate-out z-fade-out', {
|
|
|
119
119
|
});
|
|
120
120
|
|
|
121
121
|
class ZTooltipContentComponent {
|
|
122
|
-
content = signal('',
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
122
|
+
content = signal('', /* @ts-ignore */
|
|
123
|
+
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
124
|
+
position = signal('top', /* @ts-ignore */
|
|
125
|
+
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
126
|
+
tooltipType = signal('default', /* @ts-ignore */
|
|
127
|
+
...(ngDevMode ? [{ debugName: "tooltipType" }] : /* istanbul ignore next */ []));
|
|
128
|
+
tooltipSize = signal('default', /* @ts-ignore */
|
|
129
|
+
...(ngDevMode ? [{ debugName: "tooltipSize" }] : /* istanbul ignore next */ []));
|
|
130
|
+
tooltipClass = signal('', /* @ts-ignore */
|
|
131
|
+
...(ngDevMode ? [{ debugName: "tooltipClass" }] : /* istanbul ignore next */ []));
|
|
132
|
+
showArrow = signal(true, /* @ts-ignore */
|
|
133
|
+
...(ngDevMode ? [{ debugName: "showArrow" }] : /* istanbul ignore next */ []));
|
|
134
|
+
maxWidth = signal('250px', /* @ts-ignore */
|
|
135
|
+
...(ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []));
|
|
136
|
+
state = signal('open', /* @ts-ignore */
|
|
137
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
138
|
+
arrowOffset = signal(0, /* @ts-ignore */
|
|
139
|
+
...(ngDevMode ? [{ debugName: "arrowOffset" }] : /* istanbul ignore next */ []));
|
|
131
140
|
classes = computed(() => {
|
|
132
141
|
const baseClasses = zTooltipVariants({
|
|
133
142
|
zType: this.tooltipType(),
|
|
@@ -136,15 +145,18 @@ class ZTooltipContentComponent {
|
|
|
136
145
|
});
|
|
137
146
|
const exitClasses = this.state() === 'closed' ? this._getExitAnimationClasses() : '';
|
|
138
147
|
return zMergeClasses(baseClasses, exitClasses, this.tooltipClass());
|
|
139
|
-
},
|
|
148
|
+
}, /* @ts-ignore */
|
|
149
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
140
150
|
_getExitAnimationClasses() {
|
|
141
151
|
return zTooltipExitVariants({ zPosition: this.position() });
|
|
142
152
|
}
|
|
143
|
-
contentClasses = computed(() => zMergeClasses(zTooltipContentVariants({ zType: this.tooltipType() })),
|
|
153
|
+
contentClasses = computed(() => zMergeClasses(zTooltipContentVariants({ zType: this.tooltipType() })), /* @ts-ignore */
|
|
154
|
+
...(ngDevMode ? [{ debugName: "contentClasses" }] : /* istanbul ignore next */ []));
|
|
144
155
|
arrowClasses = computed(() => zMergeClasses(zTooltipArrowVariants({
|
|
145
156
|
position: this.position(),
|
|
146
157
|
zType: this.tooltipType(),
|
|
147
|
-
})),
|
|
158
|
+
})), /* @ts-ignore */
|
|
159
|
+
...(ngDevMode ? [{ debugName: "arrowClasses" }] : /* istanbul ignore next */ []));
|
|
148
160
|
arrowStyle = computed(() => {
|
|
149
161
|
const pos = this.position();
|
|
150
162
|
const offset = this.arrowOffset();
|
|
@@ -166,22 +178,26 @@ class ZTooltipContentComponent {
|
|
|
166
178
|
};
|
|
167
179
|
}
|
|
168
180
|
return {};
|
|
169
|
-
},
|
|
181
|
+
}, /* @ts-ignore */
|
|
182
|
+
...(ngDevMode ? [{ debugName: "arrowStyle" }] : /* istanbul ignore next */ []));
|
|
170
183
|
isTemplateContent = computed(() => {
|
|
171
184
|
const c = this.content();
|
|
172
185
|
return c && typeof c !== 'string';
|
|
173
|
-
},
|
|
186
|
+
}, /* @ts-ignore */
|
|
187
|
+
...(ngDevMode ? [{ debugName: "isTemplateContent" }] : /* istanbul ignore next */ []));
|
|
174
188
|
isHtmlContent = computed(() => {
|
|
175
189
|
const c = this.content();
|
|
176
190
|
return typeof c === 'string' && c.includes('<');
|
|
177
|
-
},
|
|
191
|
+
}, /* @ts-ignore */
|
|
192
|
+
...(ngDevMode ? [{ debugName: "isHtmlContent" }] : /* istanbul ignore next */ []));
|
|
178
193
|
textOnlyContent = computed(() => {
|
|
179
194
|
const c = this.content();
|
|
180
195
|
if (typeof c === 'string' && c.includes('<')) {
|
|
181
196
|
return this._stripHtmlTags(c);
|
|
182
197
|
}
|
|
183
198
|
return c;
|
|
184
|
-
},
|
|
199
|
+
}, /* @ts-ignore */
|
|
200
|
+
...(ngDevMode ? [{ debugName: "textOnlyContent" }] : /* istanbul ignore next */ []));
|
|
185
201
|
_stripHtmlTags(html) {
|
|
186
202
|
const tempDiv = document.createElement('div');
|
|
187
203
|
tempDiv.innerHTML = html;
|
|
@@ -206,8 +222,8 @@ class ZTooltipContentComponent {
|
|
|
206
222
|
this.maxWidth.set(config.maxWidth);
|
|
207
223
|
}
|
|
208
224
|
}
|
|
209
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
210
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
225
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: ZTooltipContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
226
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: ZTooltipContentComponent, isStandalone: true, selector: "z-tooltip-content", host: { attributes: { "role": "tooltip" }, properties: { "class": "classes()", "style.maxWidth": "maxWidth()", "attr.data-state": "state()", "attr.data-position": "position()" } }, ngImport: i0, template: `
|
|
211
227
|
<!-- Arrow layer - rotated square, partial border -->
|
|
212
228
|
@if (showArrow()) {
|
|
213
229
|
<div [class]="arrowClasses()" [style]="arrowStyle()"></div>
|
|
@@ -225,7 +241,7 @@ class ZTooltipContentComponent {
|
|
|
225
241
|
</div>
|
|
226
242
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
227
243
|
}
|
|
228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: ZTooltipContentComponent, decorators: [{
|
|
229
245
|
type: Component,
|
|
230
246
|
args: [{
|
|
231
247
|
selector: 'z-tooltip-content',
|
|
@@ -366,11 +382,46 @@ function getTooltipFallbackPositions(position, offset) {
|
|
|
366
382
|
const orderedPositions = fallbackOrder[position] ?? [position];
|
|
367
383
|
return orderedPositions.map(pos => createTooltipPosition(pos, offset));
|
|
368
384
|
}
|
|
385
|
+
function getTooltipPreferredSidePositions(position, offset) {
|
|
386
|
+
const preferredOrder = {
|
|
387
|
+
top: ['top', 'top-left', 'top-right'],
|
|
388
|
+
'top-left': ['top-left', 'top', 'top-right'],
|
|
389
|
+
'top-right': ['top-right', 'top', 'top-left'],
|
|
390
|
+
bottom: ['bottom', 'bottom-left', 'bottom-right'],
|
|
391
|
+
'bottom-left': ['bottom-left', 'bottom', 'bottom-right'],
|
|
392
|
+
'bottom-right': ['bottom-right', 'bottom', 'bottom-left'],
|
|
393
|
+
left: ['left', 'left-top', 'left-bottom'],
|
|
394
|
+
'left-top': ['left-top', 'left', 'left-bottom'],
|
|
395
|
+
'left-bottom': ['left-bottom', 'left', 'left-top'],
|
|
396
|
+
right: ['right', 'right-top', 'right-bottom'],
|
|
397
|
+
'right-top': ['right-top', 'right', 'right-bottom'],
|
|
398
|
+
'right-bottom': ['right-bottom', 'right', 'right-top'],
|
|
399
|
+
};
|
|
400
|
+
return preferredOrder[position].map(pos => createTooltipPosition(pos, offset));
|
|
401
|
+
}
|
|
402
|
+
function getTooltipStrategyPositions(origin, position, offset) {
|
|
403
|
+
const originElement = 'nativeElement' in origin ? origin.nativeElement : origin;
|
|
404
|
+
const rect = originElement.getBoundingClientRect();
|
|
405
|
+
const viewportWidth = globalThis.visualViewport?.width ?? globalThis.innerWidth;
|
|
406
|
+
const viewportHeight = globalThis.visualViewport?.height ?? globalThis.innerHeight;
|
|
407
|
+
const availableSpace = {
|
|
408
|
+
top: rect.top,
|
|
409
|
+
bottom: viewportHeight - rect.bottom,
|
|
410
|
+
left: rect.left,
|
|
411
|
+
right: viewportWidth - rect.right,
|
|
412
|
+
};
|
|
413
|
+
const side = position.split('-')[0];
|
|
414
|
+
const minimumSideSpace = Math.max(40, offset + 32);
|
|
415
|
+
if (availableSpace[side] >= minimumSideSpace) {
|
|
416
|
+
return getTooltipPreferredSidePositions(position, offset);
|
|
417
|
+
}
|
|
418
|
+
return getTooltipFallbackPositions(position, offset);
|
|
419
|
+
}
|
|
369
420
|
function createTooltipPositionStrategy(overlayPositionBuilder, origin, position, offset) {
|
|
370
421
|
return overlayPositionBuilder
|
|
371
422
|
.flexibleConnectedTo(origin)
|
|
372
|
-
.withPositions(
|
|
373
|
-
.withFlexibleDimensions(
|
|
423
|
+
.withPositions(getTooltipStrategyPositions(origin, position, offset))
|
|
424
|
+
.withFlexibleDimensions(true)
|
|
374
425
|
.withPush(true)
|
|
375
426
|
.withViewportMargin(8);
|
|
376
427
|
}
|
|
@@ -418,37 +469,62 @@ function getActualPosition(change) {
|
|
|
418
469
|
const Z_TOOLTIP_ANIMATION_DURATION = 150;
|
|
419
470
|
|
|
420
471
|
class ZTooltipDirective {
|
|
421
|
-
zContent = input('',
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
472
|
+
zContent = input('', /* @ts-ignore */
|
|
473
|
+
...(ngDevMode ? [{ debugName: "zContent" }] : /* istanbul ignore next */ []));
|
|
474
|
+
zPosition = input('top', /* @ts-ignore */
|
|
475
|
+
...(ngDevMode ? [{ debugName: "zPosition" }] : /* istanbul ignore next */ []));
|
|
476
|
+
zTooltipPosition = input(/* @ts-ignore */
|
|
477
|
+
...(ngDevMode ? [undefined, { debugName: "zTooltipPosition" }] : /* istanbul ignore next */ []));
|
|
478
|
+
zTrigger = input('hover', /* @ts-ignore */
|
|
479
|
+
...(ngDevMode ? [{ debugName: "zTrigger" }] : /* istanbul ignore next */ []));
|
|
480
|
+
zTooltipTrigger = input(/* @ts-ignore */
|
|
481
|
+
...(ngDevMode ? [undefined, { debugName: "zTooltipTrigger" }] : /* istanbul ignore next */ []));
|
|
482
|
+
zType = input('default', { ...(ngDevMode ? { debugName: "zType" } : /* istanbul ignore next */ {}), alias: 'zTooltipType' });
|
|
483
|
+
zSize = input('default', { ...(ngDevMode ? { debugName: "zSize" } : /* istanbul ignore next */ {}), alias: 'zTooltipSize' });
|
|
484
|
+
zClass = input('', /* @ts-ignore */
|
|
485
|
+
...(ngDevMode ? [{ debugName: "zClass" }] : /* istanbul ignore next */ []));
|
|
486
|
+
zTooltipClass = input(/* @ts-ignore */
|
|
487
|
+
...(ngDevMode ? [undefined, { debugName: "zTooltipClass" }] : /* istanbul ignore next */ []));
|
|
488
|
+
zShowDelay = input(100, /* @ts-ignore */
|
|
489
|
+
...(ngDevMode ? [{ debugName: "zShowDelay" }] : /* istanbul ignore next */ []));
|
|
490
|
+
zTooltipShowDelay = input(/* @ts-ignore */
|
|
491
|
+
...(ngDevMode ? [undefined, { debugName: "zTooltipShowDelay" }] : /* istanbul ignore next */ []));
|
|
492
|
+
zHideDelay = input(0, /* @ts-ignore */
|
|
493
|
+
...(ngDevMode ? [{ debugName: "zHideDelay" }] : /* istanbul ignore next */ []));
|
|
494
|
+
zTooltipHideDelay = input(/* @ts-ignore */
|
|
495
|
+
...(ngDevMode ? [undefined, { debugName: "zTooltipHideDelay" }] : /* istanbul ignore next */ []));
|
|
496
|
+
zArrow = input(true, { ...(ngDevMode ? { debugName: "zArrow" } : /* istanbul ignore next */ {}), transform: zTransform });
|
|
497
|
+
zTooltipArrow = input(undefined, /* @ts-ignore */
|
|
498
|
+
...(ngDevMode ? [{ debugName: "zTooltipArrow" }] : /* istanbul ignore next */ []));
|
|
499
|
+
zDisabled = input(false, { ...(ngDevMode ? { debugName: "zDisabled" } : /* istanbul ignore next */ {}), transform: zTransform });
|
|
500
|
+
zTooltipDisabled = input(undefined, /* @ts-ignore */
|
|
501
|
+
...(ngDevMode ? [{ debugName: "zTooltipDisabled" }] : /* istanbul ignore next */ []));
|
|
502
|
+
zOffset = input(8, /* @ts-ignore */
|
|
503
|
+
...(ngDevMode ? [{ debugName: "zOffset" }] : /* istanbul ignore next */ []));
|
|
504
|
+
zTooltipOffset = input(/* @ts-ignore */
|
|
505
|
+
...(ngDevMode ? [undefined, { debugName: "zTooltipOffset" }] : /* istanbul ignore next */ []));
|
|
506
|
+
zAutoDetect = input(true, { ...(ngDevMode ? { debugName: "zAutoDetect" } : /* istanbul ignore next */ {}), transform: zTransform });
|
|
507
|
+
zTriggerElement = input(null, /* @ts-ignore */
|
|
508
|
+
...(ngDevMode ? [{ debugName: "zTriggerElement" }] : /* istanbul ignore next */ []));
|
|
509
|
+
zAlwaysShow = input(false, { ...(ngDevMode ? { debugName: "zAlwaysShow" } : /* istanbul ignore next */ {}), transform: zTransform });
|
|
510
|
+
zMaxWidth = input('250px', /* @ts-ignore */
|
|
511
|
+
...(ngDevMode ? [{ debugName: "zMaxWidth" }] : /* istanbul ignore next */ []));
|
|
512
|
+
_position = computed(() => this.zTooltipPosition() ?? this.zPosition(), /* @ts-ignore */
|
|
513
|
+
...(ngDevMode ? [{ debugName: "_position" }] : /* istanbul ignore next */ []));
|
|
514
|
+
_trigger = computed(() => this.zTooltipTrigger() ?? this.zTrigger(), /* @ts-ignore */
|
|
515
|
+
...(ngDevMode ? [{ debugName: "_trigger" }] : /* istanbul ignore next */ []));
|
|
516
|
+
_class = computed(() => this.zTooltipClass() ?? this.zClass(), /* @ts-ignore */
|
|
517
|
+
...(ngDevMode ? [{ debugName: "_class" }] : /* istanbul ignore next */ []));
|
|
518
|
+
_showDelay = computed(() => this.zTooltipShowDelay() ?? this.zShowDelay(), /* @ts-ignore */
|
|
519
|
+
...(ngDevMode ? [{ debugName: "_showDelay" }] : /* istanbul ignore next */ []));
|
|
520
|
+
_hideDelay = computed(() => this.zTooltipHideDelay() ?? this.zHideDelay(), /* @ts-ignore */
|
|
521
|
+
...(ngDevMode ? [{ debugName: "_hideDelay" }] : /* istanbul ignore next */ []));
|
|
522
|
+
_arrow = computed(() => this.zTooltipArrow() ?? this.zArrow(), /* @ts-ignore */
|
|
523
|
+
...(ngDevMode ? [{ debugName: "_arrow" }] : /* istanbul ignore next */ []));
|
|
524
|
+
_disabled = computed(() => this.zTooltipDisabled() ?? this.zDisabled(), /* @ts-ignore */
|
|
525
|
+
...(ngDevMode ? [{ debugName: "_disabled" }] : /* istanbul ignore next */ []));
|
|
526
|
+
_offset = computed(() => this.zTooltipOffset() ?? this.zOffset(), /* @ts-ignore */
|
|
527
|
+
...(ngDevMode ? [{ debugName: "_offset" }] : /* istanbul ignore next */ []));
|
|
452
528
|
zShow = output();
|
|
453
529
|
zHide = output();
|
|
454
530
|
_overlay = inject(Overlay);
|
|
@@ -464,7 +540,8 @@ class ZTooltipDirective {
|
|
|
464
540
|
_listenerCleanups = [];
|
|
465
541
|
_positionSubscription = null;
|
|
466
542
|
_hideTimeout = null;
|
|
467
|
-
_isVisible = signal(false,
|
|
543
|
+
_isVisible = signal(false, /* @ts-ignore */
|
|
544
|
+
...(ngDevMode ? [{ debugName: "_isVisible" }] : /* istanbul ignore next */ []));
|
|
468
545
|
constructor() {
|
|
469
546
|
effect(() => {
|
|
470
547
|
if (this._disabled() || !this.zContent()) {
|
|
@@ -760,10 +837,10 @@ class ZTooltipDirective {
|
|
|
760
837
|
}
|
|
761
838
|
this._componentRef.instance.arrowOffset.set(0);
|
|
762
839
|
}
|
|
763
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
764
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
840
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: ZTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
841
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.2", type: ZTooltipDirective, isStandalone: true, selector: "[z-tooltip], [zTooltip]", inputs: { zContent: { classPropertyName: "zContent", publicName: "zContent", isSignal: true, isRequired: false, transformFunction: null }, zPosition: { classPropertyName: "zPosition", publicName: "zPosition", isSignal: true, isRequired: false, transformFunction: null }, zTooltipPosition: { classPropertyName: "zTooltipPosition", publicName: "zTooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, zTrigger: { classPropertyName: "zTrigger", publicName: "zTrigger", isSignal: true, isRequired: false, transformFunction: null }, zTooltipTrigger: { classPropertyName: "zTooltipTrigger", publicName: "zTooltipTrigger", isSignal: true, isRequired: false, transformFunction: null }, zType: { classPropertyName: "zType", publicName: "zTooltipType", isSignal: true, isRequired: false, transformFunction: null }, zSize: { classPropertyName: "zSize", publicName: "zTooltipSize", isSignal: true, isRequired: false, transformFunction: null }, zClass: { classPropertyName: "zClass", publicName: "zClass", isSignal: true, isRequired: false, transformFunction: null }, zTooltipClass: { classPropertyName: "zTooltipClass", publicName: "zTooltipClass", isSignal: true, isRequired: false, transformFunction: null }, zShowDelay: { classPropertyName: "zShowDelay", publicName: "zShowDelay", isSignal: true, isRequired: false, transformFunction: null }, zTooltipShowDelay: { classPropertyName: "zTooltipShowDelay", publicName: "zTooltipShowDelay", isSignal: true, isRequired: false, transformFunction: null }, zHideDelay: { classPropertyName: "zHideDelay", publicName: "zHideDelay", isSignal: true, isRequired: false, transformFunction: null }, zTooltipHideDelay: { classPropertyName: "zTooltipHideDelay", publicName: "zTooltipHideDelay", isSignal: true, isRequired: false, transformFunction: null }, zArrow: { classPropertyName: "zArrow", publicName: "zArrow", isSignal: true, isRequired: false, transformFunction: null }, zTooltipArrow: { classPropertyName: "zTooltipArrow", publicName: "zTooltipArrow", isSignal: true, isRequired: false, transformFunction: null }, zDisabled: { classPropertyName: "zDisabled", publicName: "zDisabled", isSignal: true, isRequired: false, transformFunction: null }, zTooltipDisabled: { classPropertyName: "zTooltipDisabled", publicName: "zTooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, zOffset: { classPropertyName: "zOffset", publicName: "zOffset", isSignal: true, isRequired: false, transformFunction: null }, zTooltipOffset: { classPropertyName: "zTooltipOffset", publicName: "zTooltipOffset", isSignal: true, isRequired: false, transformFunction: null }, zAutoDetect: { classPropertyName: "zAutoDetect", publicName: "zAutoDetect", isSignal: true, isRequired: false, transformFunction: null }, zTriggerElement: { classPropertyName: "zTriggerElement", publicName: "zTriggerElement", isSignal: true, isRequired: false, transformFunction: null }, zAlwaysShow: { classPropertyName: "zAlwaysShow", publicName: "zAlwaysShow", isSignal: true, isRequired: false, transformFunction: null }, zMaxWidth: { classPropertyName: "zMaxWidth", publicName: "zMaxWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { zShow: "zShow", zHide: "zHide" }, exportAs: ["zTooltip"], ngImport: i0 });
|
|
765
842
|
}
|
|
766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: ZTooltipDirective, decorators: [{
|
|
767
844
|
type: Directive,
|
|
768
845
|
args: [{
|
|
769
846
|
selector: '[z-tooltip], [zTooltip]',
|