@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.1
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/exhaustive-ui-core-accordion.mjs +51 -78
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
- package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
- package/schematics/migrations/renamed-inputs/migration.js +97 -0
- package/schematics/migrations/styleclass-to-class/migration.js +92 -1
- package/schematics/migrations.json +7 -2
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +175 -0
- package/schematics/utils/styleclass.js +24 -8
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +8 -24
- package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
- package/types/exhaustive-ui-core-api.d.ts +2 -3
- package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
- package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
- package/types/exhaustive-ui-core-avatar.d.ts +18 -25
- package/types/exhaustive-ui-core-badge.d.ts +13 -27
- package/types/exhaustive-ui-core-blockui.d.ts +18 -30
- package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
- package/types/exhaustive-ui-core-button.d.ts +57 -89
- package/types/exhaustive-ui-core-carousel.d.ts +56 -82
- package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
- package/types/exhaustive-ui-core-chart.d.ts +21 -29
- package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
- package/types/exhaustive-ui-core-chip.d.ts +31 -38
- package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
- package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
- package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
- package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
- package/types/exhaustive-ui-core-dataview.d.ts +42 -65
- package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
- package/types/exhaustive-ui-core-dialog.d.ts +73 -123
- package/types/exhaustive-ui-core-dock.d.ts +16 -25
- package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
- package/types/exhaustive-ui-core-drawer.d.ts +32 -64
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
- package/types/exhaustive-ui-core-editor.d.ts +15 -25
- package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
- package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
- package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
- package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
- package/types/exhaustive-ui-core-galleria.d.ts +124 -194
- package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
- package/types/exhaustive-ui-core-image.d.ts +35 -68
- package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
- package/types/exhaustive-ui-core-inplace.d.ts +30 -42
- package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
- package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
- package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
- package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
- package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
- package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
- package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
- package/types/exhaustive-ui-core-knob.d.ts +45 -60
- package/types/exhaustive-ui-core-listbox.d.ts +90 -126
- package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
- package/types/exhaustive-ui-core-menu.d.ts +33 -53
- package/types/exhaustive-ui-core-menubar.d.ts +38 -85
- package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
- package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
- package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
- package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
- package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
- package/types/exhaustive-ui-core-paginator.d.ts +41 -69
- package/types/exhaustive-ui-core-panel.d.ts +18 -45
- package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
- package/types/exhaustive-ui-core-password.d.ts +56 -93
- package/types/exhaustive-ui-core-picklist.d.ts +107 -121
- package/types/exhaustive-ui-core-popover.d.ts +23 -47
- package/types/exhaustive-ui-core-rating.d.ts +18 -26
- package/types/exhaustive-ui-core-scroller.d.ts +90 -120
- package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
- package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
- package/types/exhaustive-ui-core-select.d.ts +137 -188
- package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
- package/types/exhaustive-ui-core-slider.d.ts +52 -67
- package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
- package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
- package/types/exhaustive-ui-core-splitter.d.ts +47 -59
- package/types/exhaustive-ui-core-steps.d.ts +24 -31
- package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
- package/types/exhaustive-ui-core-table.d.ts +349 -453
- package/types/exhaustive-ui-core-terminal.d.ts +10 -22
- package/types/exhaustive-ui-core-textarea.d.ts +7 -10
- package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
- package/types/exhaustive-ui-core-timeline.d.ts +20 -28
- package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
- package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
- package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
- package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
- package/types/exhaustive-ui-core-tree.d.ts +82 -119
- package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
- package/types/exhaustive-ui-core-treetable.d.ts +203 -280
- package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
|
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/image';
|
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable,
|
|
5
|
+
import { Injectable, inject, afterEveryRender, input, booleanAttribute, computed, output, viewChild, contentChild, signal, contentChildren, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import { focus, appendChild } from '@exhaustive-ui/utils';
|
|
7
7
|
import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
|
|
8
8
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
@@ -21,7 +21,7 @@ const classes = {
|
|
|
21
21
|
root: ({ instance }) => [
|
|
22
22
|
'p-image p-component',
|
|
23
23
|
{
|
|
24
|
-
'p-image-preview': instance.preview
|
|
24
|
+
'p-image-preview': instance.preview()
|
|
25
25
|
}
|
|
26
26
|
],
|
|
27
27
|
previewMask: 'p-image-preview-mask',
|
|
@@ -33,13 +33,13 @@ const classes = {
|
|
|
33
33
|
zoomOutButton: ({ instance }) => [
|
|
34
34
|
'p-image-action p-image-zoom-out-button',
|
|
35
35
|
{
|
|
36
|
-
'p-disabled': instance.isZoomOutDisabled
|
|
36
|
+
'p-disabled': instance.isZoomOutDisabled()
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
zoomInButton: ({ instance }) => [
|
|
40
40
|
'p-image-action p-image-zoom-in-button',
|
|
41
41
|
{
|
|
42
|
-
'p-disabled': instance.isZoomInDisabled
|
|
42
|
+
'p-disabled': instance.isZoomInDisabled()
|
|
43
43
|
}
|
|
44
44
|
],
|
|
45
45
|
closeButton: 'p-image-action p-image-close-button',
|
|
@@ -112,112 +112,94 @@ var ImageClasses;
|
|
|
112
112
|
ImageClasses["original"] = "p-image-original";
|
|
113
113
|
})(ImageClasses || (ImageClasses = {}));
|
|
114
114
|
|
|
115
|
-
const IMAGE_INSTANCE = new InjectionToken('IMAGE_INSTANCE');
|
|
116
115
|
/**
|
|
117
116
|
* Displays an image with preview and tranformation options. For multiple image, see Galleria.
|
|
118
117
|
* @group Components
|
|
119
118
|
*/
|
|
120
119
|
class Image extends BaseComponent {
|
|
121
120
|
componentName = 'Image';
|
|
122
|
-
$pcImage = inject(IMAGE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
123
121
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
122
|
+
constructor() {
|
|
123
|
+
super();
|
|
124
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
|
|
125
|
+
}
|
|
124
126
|
/**
|
|
125
127
|
* Style class of the image element.
|
|
126
128
|
* @group Props
|
|
127
129
|
*/
|
|
128
|
-
imageClass
|
|
130
|
+
imageClass = input(undefined, /* @ts-ignore */
|
|
131
|
+
...(ngDevMode ? [{ debugName: "imageClass" }] : /* istanbul ignore next */ []));
|
|
129
132
|
/**
|
|
130
133
|
* Inline style of the image element.
|
|
131
134
|
* @group Props
|
|
132
135
|
*/
|
|
133
|
-
imageStyle
|
|
134
|
-
|
|
135
|
-
* Class of the element.
|
|
136
|
-
* @deprecated since v20.0.0, use `class` instead.
|
|
137
|
-
* @group Props
|
|
138
|
-
*/
|
|
139
|
-
styleClass;
|
|
136
|
+
imageStyle = input(undefined, /* @ts-ignore */
|
|
137
|
+
...(ngDevMode ? [{ debugName: "imageStyle" }] : /* istanbul ignore next */ []));
|
|
140
138
|
/**
|
|
141
139
|
* The source path for the main image.
|
|
142
140
|
* @group Props
|
|
143
141
|
*/
|
|
144
|
-
src
|
|
142
|
+
src = input(undefined, /* @ts-ignore */
|
|
143
|
+
...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
|
|
145
144
|
/**
|
|
146
145
|
* The srcset definition for the main image.
|
|
147
146
|
* @group Props
|
|
148
147
|
*/
|
|
149
|
-
srcSet
|
|
148
|
+
srcSet = input(undefined, /* @ts-ignore */
|
|
149
|
+
...(ngDevMode ? [{ debugName: "srcSet" }] : /* istanbul ignore next */ []));
|
|
150
150
|
/**
|
|
151
151
|
* The sizes definition for the main image.
|
|
152
152
|
* @group Props
|
|
153
153
|
*/
|
|
154
|
-
sizes
|
|
154
|
+
sizes = input(undefined, /* @ts-ignore */
|
|
155
|
+
...(ngDevMode ? [{ debugName: "sizes" }] : /* istanbul ignore next */ []));
|
|
155
156
|
/**
|
|
156
157
|
* The source path for the preview image.
|
|
157
158
|
* @group Props
|
|
158
159
|
*/
|
|
159
|
-
previewImageSrc
|
|
160
|
+
previewImageSrc = input(undefined, /* @ts-ignore */
|
|
161
|
+
...(ngDevMode ? [{ debugName: "previewImageSrc" }] : /* istanbul ignore next */ []));
|
|
160
162
|
/**
|
|
161
163
|
* The srcset definition for the preview image.
|
|
162
164
|
* @group Props
|
|
163
165
|
*/
|
|
164
|
-
previewImageSrcSet
|
|
166
|
+
previewImageSrcSet = input(undefined, /* @ts-ignore */
|
|
167
|
+
...(ngDevMode ? [{ debugName: "previewImageSrcSet" }] : /* istanbul ignore next */ []));
|
|
165
168
|
/**
|
|
166
169
|
* The sizes definition for the preview image.
|
|
167
170
|
* @group Props
|
|
168
171
|
*/
|
|
169
|
-
previewImageSizes
|
|
172
|
+
previewImageSizes = input(undefined, /* @ts-ignore */
|
|
173
|
+
...(ngDevMode ? [{ debugName: "previewImageSizes" }] : /* istanbul ignore next */ []));
|
|
170
174
|
/**
|
|
171
175
|
* Attribute of the preview image element.
|
|
172
176
|
* @group Props
|
|
173
177
|
*/
|
|
174
|
-
alt
|
|
178
|
+
alt = input(undefined, /* @ts-ignore */
|
|
179
|
+
...(ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []));
|
|
175
180
|
/**
|
|
176
181
|
* Attribute of the image element.
|
|
177
182
|
* @group Props
|
|
178
183
|
*/
|
|
179
|
-
width
|
|
184
|
+
width = input(undefined, /* @ts-ignore */
|
|
185
|
+
...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
180
186
|
/**
|
|
181
187
|
* Attribute of the image element.
|
|
182
188
|
* @group Props
|
|
183
189
|
*/
|
|
184
|
-
height
|
|
190
|
+
height = input(undefined, /* @ts-ignore */
|
|
191
|
+
...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
185
192
|
/**
|
|
186
193
|
* Attribute of the image element.
|
|
187
194
|
* @group Props
|
|
188
195
|
*/
|
|
189
|
-
loading
|
|
196
|
+
loading = input(undefined, /* @ts-ignore */
|
|
197
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
190
198
|
/**
|
|
191
199
|
* Controls the preview functionality.
|
|
192
200
|
* @group Props
|
|
193
201
|
*/
|
|
194
|
-
preview = false;
|
|
195
|
-
/**
|
|
196
|
-
* Transition options of the show animation
|
|
197
|
-
* @group Props
|
|
198
|
-
* @deprecated since v21.0.0. Use `motionOptions` instead.
|
|
199
|
-
*/
|
|
200
|
-
showTransitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
|
|
201
|
-
/**
|
|
202
|
-
* Transition options of the hide animation
|
|
203
|
-
* @group Props
|
|
204
|
-
* @deprecated since v21.0.0. Use `motionOptions` instead.
|
|
205
|
-
*/
|
|
206
|
-
hideTransitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
|
|
207
|
-
/**
|
|
208
|
-
* Enter animation class name of modal.
|
|
209
|
-
* @defaultValue 'p-modal-enter'
|
|
210
|
-
* @group Props
|
|
211
|
-
*/
|
|
212
|
-
modalEnterAnimation = input('p-modal-enter', /* @ts-ignore */
|
|
213
|
-
...(ngDevMode ? [{ debugName: "modalEnterAnimation" }] : /* istanbul ignore next */ []));
|
|
214
|
-
/**
|
|
215
|
-
* Leave animation class name of modal.
|
|
216
|
-
* @defaultValue 'p-modal-leave'
|
|
217
|
-
* @group Props
|
|
218
|
-
*/
|
|
219
|
-
modalLeaveAnimation = input('p-modal-leave', /* @ts-ignore */
|
|
220
|
-
...(ngDevMode ? [{ debugName: "modalLeaveAnimation" }] : /* istanbul ignore next */ []));
|
|
202
|
+
preview = input(false, { ...(ngDevMode ? { debugName: "preview" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
221
203
|
/**
|
|
222
204
|
* Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
|
223
205
|
* @defaultValue 'self'
|
|
@@ -315,22 +297,27 @@ class Image extends BaseComponent {
|
|
|
315
297
|
...(ngDevMode ? [{ debugName: "renderMask" }] : /* istanbul ignore next */ []));
|
|
316
298
|
renderPreview = signal(false, /* @ts-ignore */
|
|
317
299
|
...(ngDevMode ? [{ debugName: "renderPreview" }] : /* istanbul ignore next */ []));
|
|
318
|
-
maskVisible = false
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
300
|
+
maskVisible = signal(false, /* @ts-ignore */
|
|
301
|
+
...(ngDevMode ? [{ debugName: "maskVisible" }] : /* istanbul ignore next */ []));
|
|
302
|
+
previewVisible = signal(false, /* @ts-ignore */
|
|
303
|
+
...(ngDevMode ? [{ debugName: "previewVisible" }] : /* istanbul ignore next */ []));
|
|
304
|
+
rotate = signal(0, /* @ts-ignore */
|
|
305
|
+
...(ngDevMode ? [{ debugName: "rotate" }] : /* istanbul ignore next */ []));
|
|
306
|
+
scale = signal(1, /* @ts-ignore */
|
|
307
|
+
...(ngDevMode ? [{ debugName: "scale" }] : /* istanbul ignore next */ []));
|
|
308
|
+
previewClick = signal(false, /* @ts-ignore */
|
|
309
|
+
...(ngDevMode ? [{ debugName: "previewClick" }] : /* istanbul ignore next */ []));
|
|
310
|
+
container = signal(undefined, /* @ts-ignore */
|
|
311
|
+
...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
|
|
312
|
+
wrapper = signal(undefined, /* @ts-ignore */
|
|
313
|
+
...(ngDevMode ? [{ debugName: "wrapper" }] : /* istanbul ignore next */ []));
|
|
325
314
|
_componentStyle = inject(ImageStyle);
|
|
326
315
|
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
|
|
327
316
|
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
return this.scale + this.zoomSettings.step >= this.zoomSettings.max;
|
|
333
|
-
}
|
|
317
|
+
isZoomOutDisabled = computed(() => this.scale() - this.zoomSettings.step <= this.zoomSettings.min, /* @ts-ignore */
|
|
318
|
+
...(ngDevMode ? [{ debugName: "isZoomOutDisabled" }] : /* istanbul ignore next */ []));
|
|
319
|
+
isZoomInDisabled = computed(() => this.scale() + this.zoomSettings.step >= this.zoomSettings.max, /* @ts-ignore */
|
|
320
|
+
...(ngDevMode ? [{ debugName: "isZoomInDisabled" }] : /* istanbul ignore next */ []));
|
|
334
321
|
zoomSettings = {
|
|
335
322
|
default: 1,
|
|
336
323
|
step: 0.1,
|
|
@@ -339,64 +326,52 @@ class Image extends BaseComponent {
|
|
|
339
326
|
};
|
|
340
327
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
341
328
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
342
|
-
_indicatorTemplate
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
case 'image':
|
|
375
|
-
this._imageTemplate = item.template;
|
|
376
|
-
break;
|
|
377
|
-
case 'preview':
|
|
378
|
-
this._previewTemplate = item.template;
|
|
379
|
-
break;
|
|
380
|
-
default:
|
|
381
|
-
this._indicatorTemplate = item.template;
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
});
|
|
385
|
-
}
|
|
329
|
+
_indicatorTemplate = computed(() => this.templates()
|
|
330
|
+
.filter((item) => !['rotaterighticon', 'rotatelefticon', 'zoomouticon', 'zoominicon', 'closeicon', 'image', 'preview'].includes(item.getType()))
|
|
331
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
332
|
+
...(ngDevMode ? [{ debugName: "_indicatorTemplate" }] : /* istanbul ignore next */ []));
|
|
333
|
+
_rotateRightIconTemplate = computed(() => this.templates()
|
|
334
|
+
.filter((item) => item.getType() === 'rotaterighticon')
|
|
335
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
336
|
+
...(ngDevMode ? [{ debugName: "_rotateRightIconTemplate" }] : /* istanbul ignore next */ []));
|
|
337
|
+
_rotateLeftIconTemplate = computed(() => this.templates()
|
|
338
|
+
.filter((item) => item.getType() === 'rotatelefticon')
|
|
339
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
340
|
+
...(ngDevMode ? [{ debugName: "_rotateLeftIconTemplate" }] : /* istanbul ignore next */ []));
|
|
341
|
+
_zoomOutIconTemplate = computed(() => this.templates()
|
|
342
|
+
.filter((item) => item.getType() === 'zoomouticon')
|
|
343
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
344
|
+
...(ngDevMode ? [{ debugName: "_zoomOutIconTemplate" }] : /* istanbul ignore next */ []));
|
|
345
|
+
_zoomInIconTemplate = computed(() => this.templates()
|
|
346
|
+
.filter((item) => item.getType() === 'zoominicon')
|
|
347
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
348
|
+
...(ngDevMode ? [{ debugName: "_zoomInIconTemplate" }] : /* istanbul ignore next */ []));
|
|
349
|
+
_closeIconTemplate = computed(() => this.templates()
|
|
350
|
+
.filter((item) => item.getType() === 'closeicon')
|
|
351
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
352
|
+
...(ngDevMode ? [{ debugName: "_closeIconTemplate" }] : /* istanbul ignore next */ []));
|
|
353
|
+
_imageTemplate = computed(() => this.templates()
|
|
354
|
+
.filter((item) => item.getType() === 'image')
|
|
355
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
356
|
+
...(ngDevMode ? [{ debugName: "_imageTemplate" }] : /* istanbul ignore next */ []));
|
|
357
|
+
_previewTemplate = computed(() => this.templates()
|
|
358
|
+
.filter((item) => item.getType() === 'preview')
|
|
359
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
360
|
+
...(ngDevMode ? [{ debugName: "_previewTemplate" }] : /* istanbul ignore next */ []));
|
|
386
361
|
onImageClick() {
|
|
387
|
-
if (this.preview) {
|
|
388
|
-
this.maskVisible
|
|
389
|
-
this.previewVisible
|
|
362
|
+
if (this.preview()) {
|
|
363
|
+
this.maskVisible.set(true);
|
|
364
|
+
this.previewVisible.set(true);
|
|
390
365
|
this.renderMask.set(true);
|
|
391
366
|
this.renderPreview.set(true);
|
|
392
367
|
blockBodyScroll();
|
|
393
368
|
}
|
|
394
369
|
}
|
|
395
370
|
onMaskClick() {
|
|
396
|
-
if (!this.previewClick) {
|
|
371
|
+
if (!this.previewClick()) {
|
|
397
372
|
this.closePreview();
|
|
398
373
|
}
|
|
399
|
-
this.previewClick
|
|
374
|
+
this.previewClick.set(false);
|
|
400
375
|
}
|
|
401
376
|
onMaskKeydown(event) {
|
|
402
377
|
switch (event.code) {
|
|
@@ -412,28 +387,28 @@ class Image extends BaseComponent {
|
|
|
412
387
|
}
|
|
413
388
|
}
|
|
414
389
|
onPreviewImageClick() {
|
|
415
|
-
this.previewClick
|
|
390
|
+
this.previewClick.set(true);
|
|
416
391
|
}
|
|
417
392
|
rotateRight() {
|
|
418
|
-
this.rotate
|
|
419
|
-
this.previewClick
|
|
393
|
+
this.rotate.update((rotate) => rotate + 90);
|
|
394
|
+
this.previewClick.set(true);
|
|
420
395
|
}
|
|
421
396
|
rotateLeft() {
|
|
422
|
-
this.rotate
|
|
423
|
-
this.previewClick
|
|
397
|
+
this.rotate.update((rotate) => rotate - 90);
|
|
398
|
+
this.previewClick.set(true);
|
|
424
399
|
}
|
|
425
400
|
zoomIn() {
|
|
426
|
-
this.scale
|
|
427
|
-
this.previewClick
|
|
401
|
+
this.scale.update((scale) => scale + this.zoomSettings.step);
|
|
402
|
+
this.previewClick.set(true);
|
|
428
403
|
}
|
|
429
404
|
zoomOut() {
|
|
430
|
-
this.scale
|
|
431
|
-
this.previewClick
|
|
405
|
+
this.scale.update((scale) => scale - this.zoomSettings.step);
|
|
406
|
+
this.previewClick.set(true);
|
|
432
407
|
}
|
|
433
408
|
onAnimationStart(event) {
|
|
434
|
-
this.container
|
|
435
|
-
this.wrapper
|
|
436
|
-
this.$attrSelector && this.wrapper?.setAttribute(this.$attrSelector, '');
|
|
409
|
+
this.container.set(event.element);
|
|
410
|
+
this.wrapper.set(this.container()?.parentElement);
|
|
411
|
+
this.$attrSelector && this.wrapper()?.setAttribute(this.$attrSelector, '');
|
|
437
412
|
this.appendContainer();
|
|
438
413
|
this.moveOnTop();
|
|
439
414
|
this.onShow.emit({});
|
|
@@ -442,7 +417,7 @@ class Image extends BaseComponent {
|
|
|
442
417
|
}, 25);
|
|
443
418
|
}
|
|
444
419
|
onBeforeLeave() {
|
|
445
|
-
this.maskVisible
|
|
420
|
+
this.maskVisible.set(false);
|
|
446
421
|
}
|
|
447
422
|
onAnimationEnd() {
|
|
448
423
|
this.renderPreview.set(false);
|
|
@@ -451,31 +426,32 @@ class Image extends BaseComponent {
|
|
|
451
426
|
if (!this.renderPreview()) {
|
|
452
427
|
this.renderMask.set(false);
|
|
453
428
|
}
|
|
454
|
-
ZIndexUtils.clear(this.wrapper);
|
|
455
|
-
this.container
|
|
456
|
-
this.wrapper
|
|
457
|
-
this.rotate
|
|
458
|
-
this.scale
|
|
429
|
+
ZIndexUtils.clear(this.wrapper());
|
|
430
|
+
this.container.set(null);
|
|
431
|
+
this.wrapper.set(null);
|
|
432
|
+
this.rotate.set(0);
|
|
433
|
+
this.scale.set(this.zoomSettings.default);
|
|
459
434
|
unblockBodyScroll();
|
|
460
435
|
this.onHide.emit({});
|
|
461
|
-
this.cd.markForCheck();
|
|
462
436
|
}
|
|
463
437
|
moveOnTop() {
|
|
464
|
-
ZIndexUtils.set('modal', this.wrapper, this.config.zIndex.modal);
|
|
438
|
+
ZIndexUtils.set('modal', this.wrapper(), this.config.zIndex.modal);
|
|
465
439
|
}
|
|
466
440
|
appendContainer() {
|
|
441
|
+
const wrapper = this.wrapper();
|
|
467
442
|
if (this.$appendTo() && this.$appendTo() !== 'self') {
|
|
468
|
-
if (this.$appendTo() === 'body' &&
|
|
469
|
-
this.document.body.appendChild(
|
|
443
|
+
if (this.$appendTo() === 'body' && wrapper) {
|
|
444
|
+
this.document.body.appendChild(wrapper);
|
|
470
445
|
}
|
|
471
|
-
else if (
|
|
472
|
-
appendChild(this.$appendTo(),
|
|
446
|
+
else if (wrapper) {
|
|
447
|
+
appendChild(this.$appendTo(), wrapper);
|
|
473
448
|
}
|
|
474
449
|
}
|
|
475
450
|
}
|
|
476
|
-
imagePreviewStyle() {
|
|
477
|
-
return { transform: 'rotate(' + this.rotate + 'deg) scale(' + this.scale + ')' };
|
|
478
|
-
}
|
|
451
|
+
imagePreviewStyle = computed(() => {
|
|
452
|
+
return { transform: 'rotate(' + this.rotate() + 'deg) scale(' + this.scale() + ')' };
|
|
453
|
+
}, /* @ts-ignore */
|
|
454
|
+
...(ngDevMode ? [{ debugName: "imagePreviewStyle" }] : /* istanbul ignore next */ []));
|
|
479
455
|
get zoomImageAriaLabel() {
|
|
480
456
|
return this.config.translation.aria ? this.config.translation.aria.zoomImage : undefined;
|
|
481
457
|
}
|
|
@@ -483,7 +459,7 @@ class Image extends BaseComponent {
|
|
|
483
459
|
event.stopPropagation();
|
|
484
460
|
}
|
|
485
461
|
closePreview() {
|
|
486
|
-
this.previewVisible
|
|
462
|
+
this.previewVisible.set(false);
|
|
487
463
|
}
|
|
488
464
|
imageError(event) {
|
|
489
465
|
this.onImageError.emit(event);
|
|
@@ -504,34 +480,34 @@ class Image extends BaseComponent {
|
|
|
504
480
|
return this.config.translation.aria ? this.config.translation.aria.close : undefined;
|
|
505
481
|
}
|
|
506
482
|
onKeydownHandler() {
|
|
507
|
-
if (this.previewVisible) {
|
|
483
|
+
if (this.previewVisible()) {
|
|
508
484
|
this.closePreview();
|
|
509
485
|
}
|
|
510
486
|
}
|
|
511
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Image, deps:
|
|
512
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Image, isStandalone: true, selector: "p-image", inputs: { imageClass: { classPropertyName: "imageClass", publicName: "imageClass", isSignal:
|
|
513
|
-
@if (!imageTemplate() && !_imageTemplate) {
|
|
487
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Image, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
488
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Image, isStandalone: true, selector: "p-image", inputs: { imageClass: { classPropertyName: "imageClass", publicName: "imageClass", isSignal: true, isRequired: false, transformFunction: null }, imageStyle: { classPropertyName: "imageStyle", publicName: "imageStyle", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, srcSet: { classPropertyName: "srcSet", publicName: "srcSet", isSignal: true, isRequired: false, transformFunction: null }, sizes: { classPropertyName: "sizes", publicName: "sizes", isSignal: true, isRequired: false, transformFunction: null }, previewImageSrc: { classPropertyName: "previewImageSrc", publicName: "previewImageSrc", isSignal: true, isRequired: false, transformFunction: null }, previewImageSrcSet: { classPropertyName: "previewImageSrcSet", publicName: "previewImageSrcSet", isSignal: true, isRequired: false, transformFunction: null }, previewImageSizes: { classPropertyName: "previewImageSizes", publicName: "previewImageSizes", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, preview: { classPropertyName: "preview", publicName: "preview", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, maskMotionOptions: { classPropertyName: "maskMotionOptions", publicName: "maskMotionOptions", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide", onImageError: "onImageError" }, host: { listeners: { "document:keydown.escape": "onKeydownHandler()" }, properties: { "class": "cx('root')" } }, providers: [ImageStyle, { provide: PARENT_INSTANCE, useExisting: Image }], queries: [{ propertyName: "indicatorTemplate", first: true, predicate: ["indicator"], isSignal: true }, { propertyName: "rotateRightIconTemplate", first: true, predicate: ["rotaterighticon"], isSignal: true }, { propertyName: "rotateLeftIconTemplate", first: true, predicate: ["rotatelefticon"], isSignal: true }, { propertyName: "zoomOutIconTemplate", first: true, predicate: ["zoomouticon"], isSignal: true }, { propertyName: "zoomInIconTemplate", first: true, predicate: ["zoominicon"], isSignal: true }, { propertyName: "closeIconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "previewTemplate", first: true, predicate: ["preview"], isSignal: true }, { propertyName: "imageTemplate", first: true, predicate: ["image"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "previewButton", first: true, predicate: ["previewButton"], descendants: true, isSignal: true }, { propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
489
|
+
@if (!imageTemplate() && !_imageTemplate()) {
|
|
514
490
|
<img
|
|
515
|
-
[attr.src]="src"
|
|
516
|
-
[attr.srcset]="srcSet"
|
|
517
|
-
[attr.sizes]="sizes"
|
|
518
|
-
[attr.alt]="alt"
|
|
519
|
-
[attr.width]="width"
|
|
520
|
-
[attr.height]="height"
|
|
521
|
-
[attr.loading]="loading"
|
|
522
|
-
[ngStyle]="imageStyle"
|
|
523
|
-
[class]="imageClass"
|
|
491
|
+
[attr.src]="src()"
|
|
492
|
+
[attr.srcset]="srcSet()"
|
|
493
|
+
[attr.sizes]="sizes()"
|
|
494
|
+
[attr.alt]="alt()"
|
|
495
|
+
[attr.width]="width()"
|
|
496
|
+
[attr.height]="height()"
|
|
497
|
+
[attr.loading]="loading()"
|
|
498
|
+
[ngStyle]="imageStyle()"
|
|
499
|
+
[class]="imageClass()"
|
|
524
500
|
(error)="imageError($event)"
|
|
525
501
|
[pBind]="ptm('image')"
|
|
526
502
|
/>
|
|
527
503
|
}
|
|
528
504
|
|
|
529
|
-
<ng-container *ngTemplateOutlet="imageTemplate() || _imageTemplate; context: { errorCallback: imageError.bind(this) }"></ng-container>
|
|
505
|
+
<ng-container *ngTemplateOutlet="imageTemplate() || _imageTemplate(); context: { errorCallback: imageError.bind(this) }"></ng-container>
|
|
530
506
|
|
|
531
|
-
@if (preview) {
|
|
532
|
-
<button [attr.aria-label]="zoomImageAriaLabel" type="button" [class]="cx('previewMask')" (click)="onImageClick()" #previewButton [ngStyle]="{ height: height + 'px', width: width + 'px' }" [pBind]="ptm('previewMask')">
|
|
533
|
-
@if (indicatorTemplate() || _indicatorTemplate) {
|
|
534
|
-
<ng-container *ngTemplateOutlet="indicatorTemplate() || _indicatorTemplate"></ng-container>
|
|
507
|
+
@if (preview()) {
|
|
508
|
+
<button [attr.aria-label]="zoomImageAriaLabel" type="button" [class]="cx('previewMask')" (click)="onImageClick()" #previewButton [ngStyle]="{ height: height() + 'px', width: width() + 'px' }" [pBind]="ptm('previewMask')">
|
|
509
|
+
@if (indicatorTemplate() || _indicatorTemplate()) {
|
|
510
|
+
<ng-container *ngTemplateOutlet="indicatorTemplate() || _indicatorTemplate()"></ng-container>
|
|
535
511
|
} @else {
|
|
536
512
|
<svg data-p-icon="eye" [class]="cx('previewIcon')" [pBind]="ptm('previewIcon')" />
|
|
537
513
|
}
|
|
@@ -541,13 +517,13 @@ class Image extends BaseComponent {
|
|
|
541
517
|
<div
|
|
542
518
|
#mask
|
|
543
519
|
[class]="cx('mask')"
|
|
544
|
-
[attr.aria-modal]="maskVisible"
|
|
520
|
+
[attr.aria-modal]="maskVisible()"
|
|
545
521
|
role="dialog"
|
|
546
522
|
(click)="onMaskClick()"
|
|
547
523
|
(keydown)="onMaskKeydown($event)"
|
|
548
524
|
pFocusTrap
|
|
549
525
|
[pBind]="ptm('mask')"
|
|
550
|
-
[pMotion]="maskVisible"
|
|
526
|
+
[pMotion]="maskVisible()"
|
|
551
527
|
[pMotionAppear]="true"
|
|
552
528
|
[pMotionEnterActiveClass]="'p-overlay-mask-enter-active'"
|
|
553
529
|
[pMotionLeaveActiveClass]="'p-overlay-mask-leave-active'"
|
|
@@ -556,43 +532,51 @@ class Image extends BaseComponent {
|
|
|
556
532
|
>
|
|
557
533
|
<div [class]="cx('toolbar')" (click)="handleToolbarClick($event)" [pBind]="ptm('toolbar')">
|
|
558
534
|
<button [class]="cx('rotateRightButton')" (click)="rotateRight()" type="button" [attr.aria-label]="rightAriaLabel()" [pBind]="ptm('rotateRightButton')">
|
|
559
|
-
@if (!rotateRightIconTemplate() && !_rotateRightIconTemplate) {
|
|
535
|
+
@if (!rotateRightIconTemplate() && !_rotateRightIconTemplate()) {
|
|
560
536
|
<svg data-p-icon="refresh" />
|
|
561
537
|
}
|
|
562
|
-
<ng-template *ngTemplateOutlet="rotateRightIconTemplate() || _rotateRightIconTemplate"></ng-template>
|
|
538
|
+
<ng-template *ngTemplateOutlet="rotateRightIconTemplate() || _rotateRightIconTemplate()"></ng-template>
|
|
563
539
|
</button>
|
|
564
540
|
<button [class]="cx('rotateLeftButton')" (click)="rotateLeft()" type="button" [attr.aria-label]="leftAriaLabel()" [pBind]="ptm('rotateLeftButton')">
|
|
565
|
-
@if (!rotateLeftIconTemplate() && !_rotateLeftIconTemplate) {
|
|
541
|
+
@if (!rotateLeftIconTemplate() && !_rotateLeftIconTemplate()) {
|
|
566
542
|
<svg data-p-icon="undo" />
|
|
567
543
|
}
|
|
568
|
-
<ng-template *ngTemplateOutlet="rotateLeftIconTemplate() || _rotateLeftIconTemplate"></ng-template>
|
|
544
|
+
<ng-template *ngTemplateOutlet="rotateLeftIconTemplate() || _rotateLeftIconTemplate()"></ng-template>
|
|
569
545
|
</button>
|
|
570
|
-
<button [class]="cx('zoomOutButton')" (click)="zoomOut()" type="button" [disabled]="isZoomOutDisabled" [attr.aria-label]="zoomOutAriaLabel()" [pBind]="ptm('zoomOutButton')">
|
|
571
|
-
@if (!zoomOutIconTemplate() && !_zoomOutIconTemplate) {
|
|
546
|
+
<button [class]="cx('zoomOutButton')" (click)="zoomOut()" type="button" [disabled]="isZoomOutDisabled()" [attr.aria-label]="zoomOutAriaLabel()" [pBind]="ptm('zoomOutButton')">
|
|
547
|
+
@if (!zoomOutIconTemplate() && !_zoomOutIconTemplate()) {
|
|
572
548
|
<svg data-p-icon="search-minus" />
|
|
573
549
|
}
|
|
574
|
-
<ng-template *ngTemplateOutlet="zoomOutIconTemplate() || _zoomOutIconTemplate"></ng-template>
|
|
550
|
+
<ng-template *ngTemplateOutlet="zoomOutIconTemplate() || _zoomOutIconTemplate()"></ng-template>
|
|
575
551
|
</button>
|
|
576
|
-
<button [class]="cx('zoomInButton')" (click)="zoomIn()" type="button" [disabled]="isZoomInDisabled" [attr.aria-label]="zoomInAriaLabel()" [pBind]="ptm('zoomInButton')">
|
|
577
|
-
@if (!zoomInIconTemplate() && !_zoomInIconTemplate) {
|
|
552
|
+
<button [class]="cx('zoomInButton')" (click)="zoomIn()" type="button" [disabled]="isZoomInDisabled()" [attr.aria-label]="zoomInAriaLabel()" [pBind]="ptm('zoomInButton')">
|
|
553
|
+
@if (!zoomInIconTemplate() && !_zoomInIconTemplate()) {
|
|
578
554
|
<svg data-p-icon="search-plus" />
|
|
579
555
|
}
|
|
580
|
-
<ng-template *ngTemplateOutlet="zoomInIconTemplate() || _zoomInIconTemplate"></ng-template>
|
|
556
|
+
<ng-template *ngTemplateOutlet="zoomInIconTemplate() || _zoomInIconTemplate()"></ng-template>
|
|
581
557
|
</button>
|
|
582
558
|
<button [class]="cx('closeButton')" type="button" (click)="closePreview()" [attr.aria-label]="closeAriaLabel()" #closeButton [pBind]="ptm('closeButton')">
|
|
583
|
-
@if (!closeIconTemplate() && !_closeIconTemplate) {
|
|
559
|
+
@if (!closeIconTemplate() && !_closeIconTemplate()) {
|
|
584
560
|
<svg data-p-icon="times" />
|
|
585
561
|
}
|
|
586
|
-
<ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate"></ng-template>
|
|
562
|
+
<ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate()"></ng-template>
|
|
587
563
|
</button>
|
|
588
564
|
</div>
|
|
589
565
|
@if (renderPreview()) {
|
|
590
|
-
<p-motion
|
|
591
|
-
|
|
566
|
+
<p-motion
|
|
567
|
+
[visible]="previewVisible()"
|
|
568
|
+
name="p-image-original"
|
|
569
|
+
[appear]="true"
|
|
570
|
+
[options]="computedMotionOptions()"
|
|
571
|
+
(onBeforeEnter)="onAnimationStart($event)"
|
|
572
|
+
(onBeforeLeave)="onBeforeLeave()"
|
|
573
|
+
(onAfterLeave)="onAnimationEnd($event)"
|
|
574
|
+
>
|
|
575
|
+
@if (!previewTemplate() && !_previewTemplate()) {
|
|
592
576
|
<img
|
|
593
|
-
[attr.src]="previewImageSrc ? previewImageSrc : src"
|
|
594
|
-
[attr.srcset]="previewImageSrcSet"
|
|
595
|
-
[attr.sizes]="previewImageSizes"
|
|
577
|
+
[attr.src]="previewImageSrc() ? previewImageSrc() : src()"
|
|
578
|
+
[attr.srcset]="previewImageSrcSet()"
|
|
579
|
+
[attr.sizes]="previewImageSizes()"
|
|
596
580
|
[class]="cx('original')"
|
|
597
581
|
[ngStyle]="imagePreviewStyle()"
|
|
598
582
|
(click)="onPreviewImageClick()"
|
|
@@ -601,7 +585,7 @@ class Image extends BaseComponent {
|
|
|
601
585
|
}
|
|
602
586
|
<ng-container
|
|
603
587
|
*ngTemplateOutlet="
|
|
604
|
-
previewTemplate() || _previewTemplate;
|
|
588
|
+
previewTemplate() || _previewTemplate();
|
|
605
589
|
context: {
|
|
606
590
|
class: cx('original'),
|
|
607
591
|
style: imagePreviewStyle(),
|
|
@@ -620,31 +604,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
620
604
|
type: Component,
|
|
621
605
|
args: [{
|
|
622
606
|
selector: 'p-image',
|
|
623
|
-
standalone: true,
|
|
624
607
|
imports: [CommonModule, RefreshIcon, EyeIcon, UndoIcon, SearchMinusIcon, SearchPlusIcon, TimesIcon, FocusTrap, SharedModule, BindModule, MotionModule],
|
|
625
608
|
template: `
|
|
626
|
-
@if (!imageTemplate() && !_imageTemplate) {
|
|
609
|
+
@if (!imageTemplate() && !_imageTemplate()) {
|
|
627
610
|
<img
|
|
628
|
-
[attr.src]="src"
|
|
629
|
-
[attr.srcset]="srcSet"
|
|
630
|
-
[attr.sizes]="sizes"
|
|
631
|
-
[attr.alt]="alt"
|
|
632
|
-
[attr.width]="width"
|
|
633
|
-
[attr.height]="height"
|
|
634
|
-
[attr.loading]="loading"
|
|
635
|
-
[ngStyle]="imageStyle"
|
|
636
|
-
[class]="imageClass"
|
|
611
|
+
[attr.src]="src()"
|
|
612
|
+
[attr.srcset]="srcSet()"
|
|
613
|
+
[attr.sizes]="sizes()"
|
|
614
|
+
[attr.alt]="alt()"
|
|
615
|
+
[attr.width]="width()"
|
|
616
|
+
[attr.height]="height()"
|
|
617
|
+
[attr.loading]="loading()"
|
|
618
|
+
[ngStyle]="imageStyle()"
|
|
619
|
+
[class]="imageClass()"
|
|
637
620
|
(error)="imageError($event)"
|
|
638
621
|
[pBind]="ptm('image')"
|
|
639
622
|
/>
|
|
640
623
|
}
|
|
641
624
|
|
|
642
|
-
<ng-container *ngTemplateOutlet="imageTemplate() || _imageTemplate; context: { errorCallback: imageError.bind(this) }"></ng-container>
|
|
625
|
+
<ng-container *ngTemplateOutlet="imageTemplate() || _imageTemplate(); context: { errorCallback: imageError.bind(this) }"></ng-container>
|
|
643
626
|
|
|
644
|
-
@if (preview) {
|
|
645
|
-
<button [attr.aria-label]="zoomImageAriaLabel" type="button" [class]="cx('previewMask')" (click)="onImageClick()" #previewButton [ngStyle]="{ height: height + 'px', width: width + 'px' }" [pBind]="ptm('previewMask')">
|
|
646
|
-
@if (indicatorTemplate() || _indicatorTemplate) {
|
|
647
|
-
<ng-container *ngTemplateOutlet="indicatorTemplate() || _indicatorTemplate"></ng-container>
|
|
627
|
+
@if (preview()) {
|
|
628
|
+
<button [attr.aria-label]="zoomImageAriaLabel" type="button" [class]="cx('previewMask')" (click)="onImageClick()" #previewButton [ngStyle]="{ height: height() + 'px', width: width() + 'px' }" [pBind]="ptm('previewMask')">
|
|
629
|
+
@if (indicatorTemplate() || _indicatorTemplate()) {
|
|
630
|
+
<ng-container *ngTemplateOutlet="indicatorTemplate() || _indicatorTemplate()"></ng-container>
|
|
648
631
|
} @else {
|
|
649
632
|
<svg data-p-icon="eye" [class]="cx('previewIcon')" [pBind]="ptm('previewIcon')" />
|
|
650
633
|
}
|
|
@@ -654,13 +637,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
654
637
|
<div
|
|
655
638
|
#mask
|
|
656
639
|
[class]="cx('mask')"
|
|
657
|
-
[attr.aria-modal]="maskVisible"
|
|
640
|
+
[attr.aria-modal]="maskVisible()"
|
|
658
641
|
role="dialog"
|
|
659
642
|
(click)="onMaskClick()"
|
|
660
643
|
(keydown)="onMaskKeydown($event)"
|
|
661
644
|
pFocusTrap
|
|
662
645
|
[pBind]="ptm('mask')"
|
|
663
|
-
[pMotion]="maskVisible"
|
|
646
|
+
[pMotion]="maskVisible()"
|
|
664
647
|
[pMotionAppear]="true"
|
|
665
648
|
[pMotionEnterActiveClass]="'p-overlay-mask-enter-active'"
|
|
666
649
|
[pMotionLeaveActiveClass]="'p-overlay-mask-leave-active'"
|
|
@@ -669,43 +652,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
669
652
|
>
|
|
670
653
|
<div [class]="cx('toolbar')" (click)="handleToolbarClick($event)" [pBind]="ptm('toolbar')">
|
|
671
654
|
<button [class]="cx('rotateRightButton')" (click)="rotateRight()" type="button" [attr.aria-label]="rightAriaLabel()" [pBind]="ptm('rotateRightButton')">
|
|
672
|
-
@if (!rotateRightIconTemplate() && !_rotateRightIconTemplate) {
|
|
655
|
+
@if (!rotateRightIconTemplate() && !_rotateRightIconTemplate()) {
|
|
673
656
|
<svg data-p-icon="refresh" />
|
|
674
657
|
}
|
|
675
|
-
<ng-template *ngTemplateOutlet="rotateRightIconTemplate() || _rotateRightIconTemplate"></ng-template>
|
|
658
|
+
<ng-template *ngTemplateOutlet="rotateRightIconTemplate() || _rotateRightIconTemplate()"></ng-template>
|
|
676
659
|
</button>
|
|
677
660
|
<button [class]="cx('rotateLeftButton')" (click)="rotateLeft()" type="button" [attr.aria-label]="leftAriaLabel()" [pBind]="ptm('rotateLeftButton')">
|
|
678
|
-
@if (!rotateLeftIconTemplate() && !_rotateLeftIconTemplate) {
|
|
661
|
+
@if (!rotateLeftIconTemplate() && !_rotateLeftIconTemplate()) {
|
|
679
662
|
<svg data-p-icon="undo" />
|
|
680
663
|
}
|
|
681
|
-
<ng-template *ngTemplateOutlet="rotateLeftIconTemplate() || _rotateLeftIconTemplate"></ng-template>
|
|
664
|
+
<ng-template *ngTemplateOutlet="rotateLeftIconTemplate() || _rotateLeftIconTemplate()"></ng-template>
|
|
682
665
|
</button>
|
|
683
|
-
<button [class]="cx('zoomOutButton')" (click)="zoomOut()" type="button" [disabled]="isZoomOutDisabled" [attr.aria-label]="zoomOutAriaLabel()" [pBind]="ptm('zoomOutButton')">
|
|
684
|
-
@if (!zoomOutIconTemplate() && !_zoomOutIconTemplate) {
|
|
666
|
+
<button [class]="cx('zoomOutButton')" (click)="zoomOut()" type="button" [disabled]="isZoomOutDisabled()" [attr.aria-label]="zoomOutAriaLabel()" [pBind]="ptm('zoomOutButton')">
|
|
667
|
+
@if (!zoomOutIconTemplate() && !_zoomOutIconTemplate()) {
|
|
685
668
|
<svg data-p-icon="search-minus" />
|
|
686
669
|
}
|
|
687
|
-
<ng-template *ngTemplateOutlet="zoomOutIconTemplate() || _zoomOutIconTemplate"></ng-template>
|
|
670
|
+
<ng-template *ngTemplateOutlet="zoomOutIconTemplate() || _zoomOutIconTemplate()"></ng-template>
|
|
688
671
|
</button>
|
|
689
|
-
<button [class]="cx('zoomInButton')" (click)="zoomIn()" type="button" [disabled]="isZoomInDisabled" [attr.aria-label]="zoomInAriaLabel()" [pBind]="ptm('zoomInButton')">
|
|
690
|
-
@if (!zoomInIconTemplate() && !_zoomInIconTemplate) {
|
|
672
|
+
<button [class]="cx('zoomInButton')" (click)="zoomIn()" type="button" [disabled]="isZoomInDisabled()" [attr.aria-label]="zoomInAriaLabel()" [pBind]="ptm('zoomInButton')">
|
|
673
|
+
@if (!zoomInIconTemplate() && !_zoomInIconTemplate()) {
|
|
691
674
|
<svg data-p-icon="search-plus" />
|
|
692
675
|
}
|
|
693
|
-
<ng-template *ngTemplateOutlet="zoomInIconTemplate() || _zoomInIconTemplate"></ng-template>
|
|
676
|
+
<ng-template *ngTemplateOutlet="zoomInIconTemplate() || _zoomInIconTemplate()"></ng-template>
|
|
694
677
|
</button>
|
|
695
678
|
<button [class]="cx('closeButton')" type="button" (click)="closePreview()" [attr.aria-label]="closeAriaLabel()" #closeButton [pBind]="ptm('closeButton')">
|
|
696
|
-
@if (!closeIconTemplate() && !_closeIconTemplate) {
|
|
679
|
+
@if (!closeIconTemplate() && !_closeIconTemplate()) {
|
|
697
680
|
<svg data-p-icon="times" />
|
|
698
681
|
}
|
|
699
|
-
<ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate"></ng-template>
|
|
682
|
+
<ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate()"></ng-template>
|
|
700
683
|
</button>
|
|
701
684
|
</div>
|
|
702
685
|
@if (renderPreview()) {
|
|
703
|
-
<p-motion
|
|
704
|
-
|
|
686
|
+
<p-motion
|
|
687
|
+
[visible]="previewVisible()"
|
|
688
|
+
name="p-image-original"
|
|
689
|
+
[appear]="true"
|
|
690
|
+
[options]="computedMotionOptions()"
|
|
691
|
+
(onBeforeEnter)="onAnimationStart($event)"
|
|
692
|
+
(onBeforeLeave)="onBeforeLeave()"
|
|
693
|
+
(onAfterLeave)="onAnimationEnd($event)"
|
|
694
|
+
>
|
|
695
|
+
@if (!previewTemplate() && !_previewTemplate()) {
|
|
705
696
|
<img
|
|
706
|
-
[attr.src]="previewImageSrc ? previewImageSrc : src"
|
|
707
|
-
[attr.srcset]="previewImageSrcSet"
|
|
708
|
-
[attr.sizes]="previewImageSizes"
|
|
697
|
+
[attr.src]="previewImageSrc() ? previewImageSrc() : src()"
|
|
698
|
+
[attr.srcset]="previewImageSrcSet()"
|
|
699
|
+
[attr.sizes]="previewImageSizes()"
|
|
709
700
|
[class]="cx('original')"
|
|
710
701
|
[ngStyle]="imagePreviewStyle()"
|
|
711
702
|
(click)="onPreviewImageClick()"
|
|
@@ -714,7 +705,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
714
705
|
}
|
|
715
706
|
<ng-container
|
|
716
707
|
*ngTemplateOutlet="
|
|
717
|
-
previewTemplate() || _previewTemplate;
|
|
708
|
+
previewTemplate() || _previewTemplate();
|
|
718
709
|
context: {
|
|
719
710
|
class: cx('original'),
|
|
720
711
|
style: imagePreviewStyle(),
|
|
@@ -730,46 +721,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
730
721
|
`,
|
|
731
722
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
732
723
|
encapsulation: ViewEncapsulation.None,
|
|
733
|
-
providers: [ImageStyle, { provide:
|
|
724
|
+
providers: [ImageStyle, { provide: PARENT_INSTANCE, useExisting: Image }],
|
|
734
725
|
host: {
|
|
735
|
-
'[class]': "
|
|
726
|
+
'[class]': "cx('root')"
|
|
736
727
|
},
|
|
737
728
|
hostDirectives: [Bind]
|
|
738
729
|
}]
|
|
739
|
-
}], propDecorators: { imageClass: [{
|
|
740
|
-
type: Input
|
|
741
|
-
}], imageStyle: [{
|
|
742
|
-
type: Input
|
|
743
|
-
}], styleClass: [{
|
|
744
|
-
type: Input
|
|
745
|
-
}], src: [{
|
|
746
|
-
type: Input
|
|
747
|
-
}], srcSet: [{
|
|
748
|
-
type: Input
|
|
749
|
-
}], sizes: [{
|
|
750
|
-
type: Input
|
|
751
|
-
}], previewImageSrc: [{
|
|
752
|
-
type: Input
|
|
753
|
-
}], previewImageSrcSet: [{
|
|
754
|
-
type: Input
|
|
755
|
-
}], previewImageSizes: [{
|
|
756
|
-
type: Input
|
|
757
|
-
}], alt: [{
|
|
758
|
-
type: Input
|
|
759
|
-
}], width: [{
|
|
760
|
-
type: Input
|
|
761
|
-
}], height: [{
|
|
762
|
-
type: Input
|
|
763
|
-
}], loading: [{
|
|
764
|
-
type: Input
|
|
765
|
-
}], preview: [{
|
|
766
|
-
type: Input,
|
|
767
|
-
args: [{ transform: booleanAttribute }]
|
|
768
|
-
}], showTransitionOptions: [{
|
|
769
|
-
type: Input
|
|
770
|
-
}], hideTransitionOptions: [{
|
|
771
|
-
type: Input
|
|
772
|
-
}], modalEnterAnimation: [{ type: i0.Input, args: [{ isSignal: true, alias: "modalEnterAnimation", required: false }] }], modalLeaveAnimation: [{ type: i0.Input, args: [{ isSignal: true, alias: "modalLeaveAnimation", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], maskMotionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskMotionOptions", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], onImageError: [{ type: i0.Output, args: ["onImageError"] }], previewButton: [{ type: i0.ViewChild, args: ['previewButton', { isSignal: true }] }], closeButton: [{ type: i0.ViewChild, args: ['closeButton', { isSignal: true }] }], indicatorTemplate: [{ type: i0.ContentChild, args: ['indicator', { ...{ descendants: false }, isSignal: true }] }], rotateRightIconTemplate: [{ type: i0.ContentChild, args: ['rotaterighticon', { ...{ descendants: false }, isSignal: true }] }], rotateLeftIconTemplate: [{ type: i0.ContentChild, args: ['rotatelefticon', { ...{ descendants: false }, isSignal: true }] }], zoomOutIconTemplate: [{ type: i0.ContentChild, args: ['zoomouticon', { ...{ descendants: false }, isSignal: true }] }], zoomInIconTemplate: [{ type: i0.ContentChild, args: ['zoominicon', { ...{ descendants: false }, isSignal: true }] }], closeIconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], previewTemplate: [{ type: i0.ContentChild, args: ['preview', { ...{ descendants: false }, isSignal: true }] }], imageTemplate: [{ type: i0.ContentChild, args: ['image', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onKeydownHandler: [{
|
|
730
|
+
}], ctorParameters: () => [], propDecorators: { imageClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageClass", required: false }] }], imageStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageStyle", required: false }] }], src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], srcSet: [{ type: i0.Input, args: [{ isSignal: true, alias: "srcSet", required: false }] }], sizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "sizes", required: false }] }], previewImageSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewImageSrc", required: false }] }], previewImageSrcSet: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewImageSrcSet", required: false }] }], previewImageSizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewImageSizes", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], preview: [{ type: i0.Input, args: [{ isSignal: true, alias: "preview", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], maskMotionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskMotionOptions", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], onImageError: [{ type: i0.Output, args: ["onImageError"] }], previewButton: [{ type: i0.ViewChild, args: ['previewButton', { isSignal: true }] }], closeButton: [{ type: i0.ViewChild, args: ['closeButton', { isSignal: true }] }], indicatorTemplate: [{ type: i0.ContentChild, args: ['indicator', { ...{ descendants: false }, isSignal: true }] }], rotateRightIconTemplate: [{ type: i0.ContentChild, args: ['rotaterighticon', { ...{ descendants: false }, isSignal: true }] }], rotateLeftIconTemplate: [{ type: i0.ContentChild, args: ['rotatelefticon', { ...{ descendants: false }, isSignal: true }] }], zoomOutIconTemplate: [{ type: i0.ContentChild, args: ['zoomouticon', { ...{ descendants: false }, isSignal: true }] }], zoomInIconTemplate: [{ type: i0.ContentChild, args: ['zoominicon', { ...{ descendants: false }, isSignal: true }] }], closeIconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], previewTemplate: [{ type: i0.ContentChild, args: ['preview', { ...{ descendants: false }, isSignal: true }] }], imageTemplate: [{ type: i0.ContentChild, args: ['image', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onKeydownHandler: [{
|
|
773
731
|
type: HostListener,
|
|
774
732
|
args: ['document:keydown.escape']
|
|
775
733
|
}] } });
|