@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/blockui';
|
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
3
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable,
|
|
5
|
+
import { Injectable, inject, afterEveryRender, effect, untracked, input, booleanAttribute, numberAttribute, contentChild, signal, contentChildren, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import { blockBodyScroll, unblockBodyScroll } 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';
|
|
@@ -16,7 +16,7 @@ const classes = {
|
|
|
16
16
|
root: ({ instance }) => [
|
|
17
17
|
'p-blockui p-blockui-mask',
|
|
18
18
|
{
|
|
19
|
-
'p-blockui-mask-document': !instance.target
|
|
19
|
+
'p-blockui-mask-document': !instance.target()
|
|
20
20
|
}
|
|
21
21
|
]
|
|
22
22
|
};
|
|
@@ -47,149 +47,130 @@ var BlockUIClasses;
|
|
|
47
47
|
BlockUIClasses["root"] = "p-blockui";
|
|
48
48
|
})(BlockUIClasses || (BlockUIClasses = {}));
|
|
49
49
|
|
|
50
|
-
const BLOCKUI_INSTANCE = new InjectionToken('BLOCKUI_INSTANCE');
|
|
51
50
|
/**
|
|
52
51
|
* BlockUI can either block other components or the whole page.
|
|
53
52
|
* @group Components
|
|
54
53
|
*/
|
|
55
54
|
class BlockUI extends BaseComponent {
|
|
56
55
|
componentName = 'BlockUI';
|
|
57
|
-
$pcBlockUI = inject(BLOCKUI_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
58
56
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
constructor() {
|
|
58
|
+
super();
|
|
59
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
|
|
60
|
+
effect(() => {
|
|
61
|
+
const blocked = this.blocked();
|
|
62
|
+
untracked(() => {
|
|
63
|
+
if (blocked) {
|
|
64
|
+
this.block();
|
|
65
|
+
}
|
|
66
|
+
else if (this._blocked()) {
|
|
67
|
+
// Only unblock if currently blocked
|
|
68
|
+
this.unblock();
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
61
72
|
}
|
|
62
73
|
/**
|
|
63
74
|
* Name of the local ng-template variable referring to another component.
|
|
64
75
|
* @group Props
|
|
65
76
|
*/
|
|
66
|
-
target
|
|
77
|
+
target = input(/* @ts-ignore */
|
|
78
|
+
...(ngDevMode ? [undefined, { debugName: "target" }] : /* istanbul ignore next */ []));
|
|
67
79
|
/**
|
|
68
80
|
* Whether to automatically manage layering.
|
|
69
81
|
* @group Props
|
|
70
82
|
*/
|
|
71
|
-
autoZIndex = true;
|
|
83
|
+
autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
72
84
|
/**
|
|
73
85
|
* Base zIndex value to use in layering.
|
|
74
86
|
* @group Props
|
|
75
87
|
*/
|
|
76
|
-
baseZIndex = 0;
|
|
77
|
-
/**
|
|
78
|
-
* Class of the element.
|
|
79
|
-
* @deprecated since v20.0.0, use `class` instead.
|
|
80
|
-
* @group Props
|
|
81
|
-
*/
|
|
82
|
-
styleClass;
|
|
88
|
+
baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
83
89
|
/**
|
|
84
90
|
* Current blocked state as a boolean.
|
|
85
91
|
* @group Props
|
|
86
92
|
*/
|
|
87
|
-
|
|
88
|
-
return this._blocked;
|
|
89
|
-
}
|
|
90
|
-
set blocked(val) {
|
|
91
|
-
if (this.el && this.el.nativeElement) {
|
|
92
|
-
if (val) {
|
|
93
|
-
this.block();
|
|
94
|
-
}
|
|
95
|
-
else if (this._blocked) {
|
|
96
|
-
// Only unblock if currently blocked
|
|
97
|
-
this.unblock();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
this._blocked = val;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
93
|
+
blocked = input(false, { ...(ngDevMode ? { debugName: "blocked" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
104
94
|
/**
|
|
105
95
|
* template of the content
|
|
106
96
|
* @group Templates
|
|
107
97
|
*/
|
|
108
98
|
contentTemplate = contentChild('content', { ...(ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
109
|
-
_blocked = false
|
|
110
|
-
|
|
99
|
+
_blocked = signal(false, /* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [{ debugName: "_blocked" }] : /* istanbul ignore next */ []));
|
|
101
|
+
animationEndListener = signal(undefined, /* @ts-ignore */
|
|
102
|
+
...(ngDevMode ? [{ debugName: "animationEndListener" }] : /* istanbul ignore next */ []));
|
|
111
103
|
_componentStyle = inject(BlockUiStyle);
|
|
112
104
|
onAfterViewInit() {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
if (this.target && !this.target.getBlockableElement) {
|
|
105
|
+
const target = this.target();
|
|
106
|
+
if (target && !target.getBlockableElement) {
|
|
116
107
|
throw 'Target of BlockUI must implement BlockableUI interface';
|
|
117
108
|
}
|
|
118
109
|
}
|
|
119
|
-
_contentTemplate;
|
|
120
110
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
121
111
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
switch (item.getType()) {
|
|
125
|
-
case 'content':
|
|
126
|
-
this._contentTemplate = item.template;
|
|
127
|
-
break;
|
|
128
|
-
default:
|
|
129
|
-
this._contentTemplate = item.template;
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
}
|
|
112
|
+
_contentTemplate = computed(() => this.templates().at(-1)?.template, /* @ts-ignore */
|
|
113
|
+
...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
|
|
134
114
|
block() {
|
|
135
115
|
if (isPlatformBrowser(this.platformId)) {
|
|
136
|
-
this._blocked
|
|
116
|
+
this._blocked.set(true);
|
|
137
117
|
this.el.nativeElement.style.display = 'flex';
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
118
|
+
const target = this.target();
|
|
119
|
+
if (target) {
|
|
120
|
+
target.getBlockableElement().appendChild(this.el.nativeElement);
|
|
121
|
+
target.getBlockableElement().style.position = 'relative';
|
|
141
122
|
}
|
|
142
123
|
else {
|
|
143
124
|
this.renderer.appendChild(this.document.body, this.el.nativeElement);
|
|
144
125
|
//@ts-ignore
|
|
145
126
|
blockBodyScroll();
|
|
146
127
|
}
|
|
147
|
-
if (this.autoZIndex) {
|
|
148
|
-
ZIndexUtils.set('modal', this.el.nativeElement, this.baseZIndex + this.config.zIndex.modal);
|
|
128
|
+
if (this.autoZIndex()) {
|
|
129
|
+
ZIndexUtils.set('modal', this.el.nativeElement, this.baseZIndex() + this.config.zIndex.modal);
|
|
149
130
|
}
|
|
150
131
|
this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask');
|
|
151
132
|
this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask-enter-active');
|
|
152
133
|
}
|
|
153
134
|
}
|
|
154
135
|
unblock() {
|
|
155
|
-
if (isPlatformBrowser(this.platformId) && this.el && this._blocked) {
|
|
156
|
-
this._blocked
|
|
157
|
-
if (!this.animationEndListener) {
|
|
158
|
-
this.animationEndListener
|
|
136
|
+
if (isPlatformBrowser(this.platformId) && this.el && this._blocked()) {
|
|
137
|
+
this._blocked.set(false);
|
|
138
|
+
if (!this.animationEndListener()) {
|
|
139
|
+
this.animationEndListener.set(this.renderer.listen(this.el.nativeElement, 'animationend', this.destroyModal.bind(this)));
|
|
159
140
|
}
|
|
160
141
|
this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-enter-active');
|
|
161
142
|
this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask-leave-active');
|
|
162
143
|
}
|
|
163
144
|
}
|
|
164
145
|
destroyModal() {
|
|
165
|
-
this._blocked
|
|
146
|
+
this._blocked.set(false);
|
|
166
147
|
if (this.el && isPlatformBrowser(this.platformId)) {
|
|
167
148
|
this.el.nativeElement.style.display = 'none';
|
|
168
149
|
this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask');
|
|
169
150
|
this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-leave-active');
|
|
170
151
|
ZIndexUtils.clear(this.el.nativeElement);
|
|
171
|
-
if (!this.target) {
|
|
152
|
+
if (!this.target()) {
|
|
172
153
|
this.document.body.removeChild(this.el.nativeElement);
|
|
173
154
|
//@ts-ignore
|
|
174
155
|
unblockBodyScroll();
|
|
175
156
|
}
|
|
176
157
|
}
|
|
177
158
|
this.unbindAnimationEndListener();
|
|
178
|
-
this.cd.markForCheck();
|
|
179
159
|
}
|
|
180
160
|
unbindAnimationEndListener() {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
161
|
+
const animationEndListener = this.animationEndListener();
|
|
162
|
+
if (animationEndListener && this.el) {
|
|
163
|
+
animationEndListener();
|
|
164
|
+
this.animationEndListener.set(null);
|
|
184
165
|
}
|
|
185
166
|
}
|
|
186
167
|
onDestroy() {
|
|
187
|
-
if (this._blocked) {
|
|
168
|
+
if (this._blocked()) {
|
|
188
169
|
// Skip animation on destroy, just cleanup
|
|
189
|
-
this._blocked
|
|
170
|
+
this._blocked.set(false);
|
|
190
171
|
if (this.el && isPlatformBrowser(this.platformId)) {
|
|
191
172
|
ZIndexUtils.clear(this.el.nativeElement);
|
|
192
|
-
if (!this.target) {
|
|
173
|
+
if (!this.target()) {
|
|
193
174
|
//@ts-ignore
|
|
194
175
|
unblockBodyScroll();
|
|
195
176
|
}
|
|
@@ -197,45 +178,31 @@ class BlockUI extends BaseComponent {
|
|
|
197
178
|
this.unbindAnimationEndListener();
|
|
198
179
|
}
|
|
199
180
|
}
|
|
200
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: BlockUI, deps:
|
|
201
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.1", type: BlockUI, isStandalone: true, selector: "p-blockUI, p-blockui, p-block-ui", inputs: { target: "target", autoZIndex:
|
|
181
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: BlockUI, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
182
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.1", type: BlockUI, isStandalone: true, selector: "p-blockUI, p-blockui, p-block-ui", inputs: { target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, blocked: { classPropertyName: "blocked", publicName: "blocked", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-busy": "_blocked()", "class": "cx('root')" } }, providers: [BlockUiStyle, { provide: PARENT_INSTANCE, useExisting: BlockUI }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
202
183
|
<ng-content></ng-content>
|
|
203
|
-
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
|
|
184
|
+
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
|
|
204
185
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
205
186
|
}
|
|
206
187
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: BlockUI, decorators: [{
|
|
207
188
|
type: Component,
|
|
208
189
|
args: [{
|
|
209
190
|
selector: 'p-blockUI, p-blockui, p-block-ui',
|
|
210
|
-
standalone: true,
|
|
211
191
|
imports: [CommonModule, SharedModule],
|
|
212
192
|
template: `
|
|
213
193
|
<ng-content></ng-content>
|
|
214
|
-
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
|
|
194
|
+
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
|
|
215
195
|
`,
|
|
216
196
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
217
197
|
encapsulation: ViewEncapsulation.None,
|
|
218
|
-
providers: [BlockUiStyle, { provide:
|
|
198
|
+
providers: [BlockUiStyle, { provide: PARENT_INSTANCE, useExisting: BlockUI }],
|
|
219
199
|
host: {
|
|
220
|
-
'[attr.aria-busy]': '
|
|
221
|
-
'[class]': "
|
|
200
|
+
'[attr.aria-busy]': '_blocked()',
|
|
201
|
+
'[class]': "cx('root')"
|
|
222
202
|
},
|
|
223
203
|
hostDirectives: [Bind]
|
|
224
204
|
}]
|
|
225
|
-
}], propDecorators: { target: [{
|
|
226
|
-
type: Input
|
|
227
|
-
}], autoZIndex: [{
|
|
228
|
-
type: Input,
|
|
229
|
-
args: [{ transform: booleanAttribute }]
|
|
230
|
-
}], baseZIndex: [{
|
|
231
|
-
type: Input,
|
|
232
|
-
args: [{ transform: numberAttribute }]
|
|
233
|
-
}], styleClass: [{
|
|
234
|
-
type: Input
|
|
235
|
-
}], blocked: [{
|
|
236
|
-
type: Input,
|
|
237
|
-
args: [{ transform: booleanAttribute }]
|
|
238
|
-
}], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
205
|
+
}], ctorParameters: () => [], propDecorators: { target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], blocked: [{ type: i0.Input, args: [{ isSignal: true, alias: "blocked", required: false }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
239
206
|
class BlockUIModule {
|
|
240
207
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: BlockUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
241
208
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: BlockUIModule, imports: [BlockUI, SharedModule], exports: [BlockUI, SharedModule] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exhaustive-ui-core-blockui.mjs","sources":["../../src/blockui/style/blockuistyle.ts","../../src/blockui/blockui.ts","../../src/blockui/exhaustive-ui-core-blockui.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/blockui';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: ({ instance }) => [\n 'p-blockui p-blockui-mask',\n {\n 'p-blockui-mask-document': !instance.target\n }\n ]\n};\n\n@Injectable()\nexport class BlockUiStyle extends BaseStyle {\n name = 'blockui';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * BlockUI represents people using icons, labels and images.\n *\n * [Live Demo](https://exhaustive-ui.e-xiste.com/blockui)\n *\n * @module blockuistyle\n *\n */\nexport enum BlockUIClasses {\n /**\n * Class name of the root element\n */\n root = 'p-blockui'\n}\n\nexport interface BlockUIStyle extends BaseStyle {}\n","import { CommonModule, isPlatformBrowser } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, ElementRef, inject, InjectionToken, Input, NgModule, numberAttribute, TemplateRef, ViewEncapsulation, contentChild, contentChildren } from '@angular/core';\nimport { blockBodyScroll, unblockBodyScroll } from '@exhaustive-ui/utils';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { BlockUIPassThrough } from '@exhaustive-ui/core/types/blockui';\nimport { ZIndexUtils } from '@exhaustive-ui/core/utils';\nimport { BlockUiStyle } from './style/blockuistyle';\n\nconst BLOCKUI_INSTANCE = new InjectionToken<BlockUI>('BLOCKUI_INSTANCE');\n\n/**\n * BlockUI can either block other components or the whole page.\n * @group Components\n */\n@Component({\n selector: 'p-blockUI, p-blockui, p-block-ui',\n standalone: true,\n imports: [CommonModule, SharedModule],\n template: `\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate() || _contentTemplate\"></ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [BlockUiStyle, { provide: BLOCKUI_INSTANCE, useExisting: BlockUI }, { provide: PARENT_INSTANCE, useExisting: BlockUI }],\n host: {\n '[attr.aria-busy]': 'blocked',\n '[class]': \"cn(cx('root'), styleClass)\"\n },\n hostDirectives: [Bind]\n})\nexport class BlockUI extends BaseComponent<BlockUIPassThrough> {\n componentName = 'BlockUI';\n\n $pcBlockUI: BlockUI | undefined = inject(BLOCKUI_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n onAfterViewChecked(): void {\n this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));\n }\n /**\n * Name of the local ng-template variable referring to another component.\n * @group Props\n */\n @Input() target: any;\n /**\n * Whether to automatically manage layering.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) autoZIndex: boolean = true;\n /**\n * Base zIndex value to use in layering.\n * @group Props\n */\n @Input({ transform: numberAttribute }) baseZIndex: number = 0;\n /**\n * Class of the element.\n * @deprecated since v20.0.0, use `class` instead.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Current blocked state as a boolean.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) get blocked(): boolean {\n return this._blocked;\n }\n set blocked(val: boolean) {\n if (this.el && this.el.nativeElement) {\n if (val) {\n this.block();\n } else if (this._blocked) {\n // Only unblock if currently blocked\n this.unblock();\n }\n } else {\n this._blocked = val;\n }\n }\n /**\n * template of the content\n * @group Templates\n */\n readonly contentTemplate = contentChild<TemplateRef<any>>('content', { descendants: false });\n\n _blocked: boolean = false;\n\n animationEndListener: VoidFunction | null | undefined;\n\n _componentStyle = inject(BlockUiStyle);\n\n onAfterViewInit() {\n if (this._blocked) this.block();\n\n if (this.target && !this.target.getBlockableElement) {\n throw 'Target of BlockUI must implement BlockableUI interface';\n }\n }\n\n _contentTemplate: TemplateRef<any> | undefined;\n\n readonly templates = contentChildren(PrimeTemplate);\n\n onAfterContentInit() {\n this.templates().forEach((item) => {\n switch (item.getType()) {\n case 'content':\n this._contentTemplate = item.template;\n break;\n\n default:\n this._contentTemplate = item.template;\n break;\n }\n });\n }\n\n block() {\n if (isPlatformBrowser(this.platformId)) {\n this._blocked = true;\n (this.el as ElementRef).nativeElement.style.display = 'flex';\n\n if (this.target) {\n this.target.getBlockableElement().appendChild((this.el as ElementRef).nativeElement);\n this.target.getBlockableElement().style.position = 'relative';\n } else {\n this.renderer.appendChild(this.document.body, (this.el as ElementRef).nativeElement);\n //@ts-ignore\n blockBodyScroll();\n }\n\n if (this.autoZIndex) {\n ZIndexUtils.set('modal', (this.el as ElementRef).nativeElement, this.baseZIndex + this.config.zIndex.modal);\n }\n\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask');\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask-enter-active');\n }\n }\n\n unblock() {\n if (isPlatformBrowser(this.platformId) && this.el && this._blocked) {\n this._blocked = false;\n if (!this.animationEndListener) {\n this.animationEndListener = this.renderer.listen(this.el.nativeElement, 'animationend', this.destroyModal.bind(this));\n }\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-enter-active');\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask-leave-active');\n }\n }\n\n destroyModal() {\n this._blocked = false;\n if (this.el && isPlatformBrowser(this.platformId)) {\n this.el.nativeElement.style.display = 'none';\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask');\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-leave-active');\n ZIndexUtils.clear(this.el.nativeElement);\n\n if (!this.target) {\n this.document.body.removeChild(this.el.nativeElement);\n //@ts-ignore\n unblockBodyScroll();\n }\n }\n this.unbindAnimationEndListener();\n this.cd.markForCheck();\n }\n\n unbindAnimationEndListener() {\n if (this.animationEndListener && this.el) {\n this.animationEndListener();\n this.animationEndListener = null;\n }\n }\n\n onDestroy() {\n if (this._blocked) {\n // Skip animation on destroy, just cleanup\n this._blocked = false;\n if (this.el && isPlatformBrowser(this.platformId)) {\n ZIndexUtils.clear(this.el.nativeElement);\n if (!this.target) {\n //@ts-ignore\n unblockBodyScroll();\n }\n }\n this.unbindAnimationEndListener();\n }\n }\n}\n\n@NgModule({\n imports: [BlockUI, SharedModule],\n exports: [BlockUI, SharedModule]\n})\nexport class BlockUIModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,0BAA0B;AAC1B,QAAA;AACI,YAAA,yBAAyB,EAAE,CAAC,QAAQ,CAAC;AACxC;AACJ;CACJ;AAGK,MAAO,YAAa,SAAQ,SAAS,CAAA;IACvC,IAAI,GAAG,SAAS;IAEhB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAZ,YAAY,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C,aAAa,CAAA;uGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAvKb,OAAO,EAoKG,YAAY,CAAA,EAAA,OAAA,EAAA,CApKtB,OAAO,EAqKG,YAAY,CAAA,EAAA,CAAA;AAEtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAAA,OAAA,EAAA,CAHZ,OAAO,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEtB,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;AAChC,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY;AAClC,iBAAA;;;ACvMD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"exhaustive-ui-core-blockui.mjs","sources":["../../src/blockui/style/blockuistyle.ts","../../src/blockui/blockui.ts","../../src/blockui/exhaustive-ui-core-blockui.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/blockui';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: ({ instance }) => [\n 'p-blockui p-blockui-mask',\n {\n 'p-blockui-mask-document': !instance.target()\n }\n ]\n};\n\n@Injectable()\nexport class BlockUiStyle extends BaseStyle {\n name = 'blockui';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * BlockUI represents people using icons, labels and images.\n *\n * [Live Demo](https://exhaustive-ui.e-xiste.com/blockui)\n *\n * @module blockuistyle\n *\n */\nexport enum BlockUIClasses {\n /**\n * Class name of the root element\n */\n root = 'p-blockui'\n}\n\nexport interface BlockUIStyle extends BaseStyle {}\n","import { CommonModule, isPlatformBrowser } from '@angular/common';\nimport {\n afterEveryRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n NgModule,\n numberAttribute,\n signal,\n TemplateRef,\n untracked,\n ViewEncapsulation,\n contentChild,\n contentChildren\n} from '@angular/core';\nimport { blockBodyScroll, unblockBodyScroll } from '@exhaustive-ui/utils';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { BlockUIPassThrough } from '@exhaustive-ui/core/types/blockui';\nimport { ZIndexUtils } from '@exhaustive-ui/core/utils';\nimport { BlockUiStyle } from './style/blockuistyle';\n\n/**\n * BlockUI can either block other components or the whole page.\n * @group Components\n */\n@Component({\n selector: 'p-blockUI, p-blockui, p-block-ui',\n imports: [CommonModule, SharedModule],\n template: `\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate() || _contentTemplate()\"></ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [BlockUiStyle, { provide: PARENT_INSTANCE, useExisting: BlockUI }],\n host: {\n '[attr.aria-busy]': '_blocked()',\n '[class]': \"cx('root')\"\n },\n hostDirectives: [Bind]\n})\nexport class BlockUI extends BaseComponent<BlockUIPassThrough> {\n componentName = 'BlockUI';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));\n effect(() => {\n const blocked = this.blocked();\n untracked(() => {\n if (blocked) {\n this.block();\n } else if (this._blocked()) {\n // Only unblock if currently blocked\n this.unblock();\n }\n });\n });\n }\n /**\n * Name of the local ng-template variable referring to another component.\n * @group Props\n */\n readonly target = input<any>();\n /**\n * Whether to automatically manage layering.\n * @group Props\n */\n readonly autoZIndex = input<boolean, unknown>(true, { transform: booleanAttribute });\n /**\n * Base zIndex value to use in layering.\n * @group Props\n */\n readonly baseZIndex = input<number, unknown>(0, { transform: numberAttribute });\n /**\n * Current blocked state as a boolean.\n * @group Props\n */\n readonly blocked = input<boolean, unknown>(false, { transform: booleanAttribute });\n /**\n * template of the content\n * @group Templates\n */\n readonly contentTemplate = contentChild<TemplateRef<any>>('content', { descendants: false });\n\n _blocked = signal<boolean>(false);\n\n animationEndListener = signal<VoidFunction | null | undefined>(undefined);\n\n _componentStyle = inject(BlockUiStyle);\n\n onAfterViewInit() {\n const target = this.target();\n if (target && !target.getBlockableElement) {\n throw 'Target of BlockUI must implement BlockableUI interface';\n }\n }\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly _contentTemplate = computed<TemplateRef<any> | undefined>(() => this.templates().at(-1)?.template);\n\n block() {\n if (isPlatformBrowser(this.platformId)) {\n this._blocked.set(true);\n (this.el as ElementRef).nativeElement.style.display = 'flex';\n\n const target = this.target();\n if (target) {\n target.getBlockableElement().appendChild((this.el as ElementRef).nativeElement);\n target.getBlockableElement().style.position = 'relative';\n } else {\n this.renderer.appendChild(this.document.body, (this.el as ElementRef).nativeElement);\n //@ts-ignore\n blockBodyScroll();\n }\n\n if (this.autoZIndex()) {\n ZIndexUtils.set('modal', (this.el as ElementRef).nativeElement, this.baseZIndex() + this.config.zIndex.modal);\n }\n\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask');\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask-enter-active');\n }\n }\n\n unblock() {\n if (isPlatformBrowser(this.platformId) && this.el && this._blocked()) {\n this._blocked.set(false);\n if (!this.animationEndListener()) {\n this.animationEndListener.set(this.renderer.listen(this.el.nativeElement, 'animationend', this.destroyModal.bind(this)));\n }\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-enter-active');\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask-leave-active');\n }\n }\n\n destroyModal() {\n this._blocked.set(false);\n if (this.el && isPlatformBrowser(this.platformId)) {\n this.el.nativeElement.style.display = 'none';\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask');\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-leave-active');\n ZIndexUtils.clear(this.el.nativeElement);\n\n if (!this.target()) {\n this.document.body.removeChild(this.el.nativeElement);\n //@ts-ignore\n unblockBodyScroll();\n }\n }\n this.unbindAnimationEndListener();\n }\n\n unbindAnimationEndListener() {\n const animationEndListener = this.animationEndListener();\n if (animationEndListener && this.el) {\n animationEndListener();\n this.animationEndListener.set(null);\n }\n }\n\n onDestroy() {\n if (this._blocked()) {\n // Skip animation on destroy, just cleanup\n this._blocked.set(false);\n if (this.el && isPlatformBrowser(this.platformId)) {\n ZIndexUtils.clear(this.el.nativeElement);\n if (!this.target()) {\n //@ts-ignore\n unblockBodyScroll();\n }\n }\n this.unbindAnimationEndListener();\n }\n }\n}\n\n@NgModule({\n imports: [BlockUI, SharedModule],\n exports: [BlockUI, SharedModule]\n})\nexport class BlockUIModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,0BAA0B;AAC1B,QAAA;AACI,YAAA,yBAAyB,EAAE,CAAC,QAAQ,CAAC,MAAM;AAC9C;AACJ;CACJ;AAGK,MAAO,YAAa,SAAQ,SAAS,CAAA;IACvC,IAAI,GAAG,SAAS;IAEhB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,C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