@pacem/pacem 1.0.0-fermat → 1.0.0-gauss
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/dist/browser/pacem-2d.js +1 -1
- package/dist/browser/pacem-2d.min.js +1 -1
- package/dist/browser/pacem-3d.js +1 -1
- package/dist/browser/pacem-3d.min.js +1 -1
- package/dist/browser/pacem-charts.js +1 -1
- package/dist/browser/pacem-charts.min.js +1 -1
- package/dist/browser/pacem-cms.js +1 -1
- package/dist/browser/pacem-cms.min.js +1 -1
- package/dist/browser/pacem-core.js +1 -1
- package/dist/browser/pacem-core.min.js +1 -1
- package/dist/browser/pacem-foundation.js +1 -1
- package/dist/browser/pacem-foundation.min.js +1 -1
- package/dist/browser/pacem-fx.js +1 -1
- package/dist/browser/pacem-fx.min.js +1 -1
- package/dist/browser/pacem-logging.js +1 -1
- package/dist/browser/pacem-logging.min.js +1 -1
- package/dist/browser/pacem-maps.js +1 -1
- package/dist/browser/pacem-maps.min.js +1 -1
- package/dist/browser/pacem-media.js +1 -1
- package/dist/browser/pacem-media.min.js +1 -1
- package/dist/browser/pacem-networking.js +1 -1
- package/dist/browser/pacem-networking.min.js +1 -1
- package/dist/browser/pacem-numerical.js +1 -1
- package/dist/browser/pacem-numerical.min.js +1 -1
- package/dist/browser/pacem-plus.js +2 -2
- package/dist/browser/pacem-plus.js.map +1 -1
- package/dist/browser/pacem-plus.min.js +2 -2
- package/dist/browser/pacem-scaffolding.js +66 -23
- package/dist/browser/pacem-scaffolding.js.map +1 -1
- package/dist/browser/pacem-scaffolding.min.js +2 -2
- package/dist/browser/pacem-ui.js +71 -42
- package/dist/browser/pacem-ui.js.map +1 -1
- package/dist/browser/pacem-ui.min.js +2 -2
- package/dist/bundle/pacem.min.mjs +190 -190
- package/dist/bundle/pacem.mjs +210 -141
- package/dist/bundle/pacem.mjs.map +4 -4
- package/dist/docs/pacem-ui.json +127 -0
- package/dist/typings/index.d.ts +9 -2
- package/dist/vscode.html-custom.json +4 -0
- package/package.json +1 -1
package/dist/bundle/pacem.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @pacem/pacem v1.0.0-
|
|
2
|
+
* @pacem/pacem v1.0.0-gauss (https://js.pacem.it)
|
|
3
3
|
* Pacem (https://pacem.it)
|
|
4
4
|
* Licensed under Apache-2.0
|
|
5
5
|
*/
|
|
@@ -17508,7 +17508,16 @@ PacemBladeElement = __decorateClass([
|
|
|
17508
17508
|
], PacemBladeElement);
|
|
17509
17509
|
|
|
17510
17510
|
// packages/ui/src/bottom-sheet.ts
|
|
17511
|
-
import { P as P11, PCSS as PCSS8, CustomElement as CustomElement11, Watch as Watch13, Utils as Utils22, PropertyConverters as PropertyConverters13, Components as Components9, preventDefaultHandler as preventDefaultHandler3, ViewChild as ViewChild5, CustomElementUtils as CustomElementUtils5, UI as UI3 } from "@pacem/pacem-core";
|
|
17511
|
+
import { P as P11, PCSS as PCSS8, CustomElement as CustomElement11, Watch as Watch13, Utils as Utils22, PropertyConverters as PropertyConverters13, Components as Components9, preventDefaultHandler as preventDefaultHandler3, ViewChild as ViewChild5, CustomElementUtils as CustomElementUtils5, UI as UI3, stopPropagationHandler as stopPropagationHandler3, avoidHandler as avoidHandler3 } from "@pacem/pacem-core";
|
|
17512
|
+
|
|
17513
|
+
// packages/ui/src/lightbox-abstractions.ts
|
|
17514
|
+
var LightboxBehavior = /* @__PURE__ */ ((LightboxBehavior2) => {
|
|
17515
|
+
LightboxBehavior2["ClickOutsideClose"] = "clickOutsideClose";
|
|
17516
|
+
LightboxBehavior2["ExplicitClose"] = "explicitClose";
|
|
17517
|
+
return LightboxBehavior2;
|
|
17518
|
+
})(LightboxBehavior || {});
|
|
17519
|
+
|
|
17520
|
+
// packages/ui/src/bottom-sheet.ts
|
|
17512
17521
|
var OPEN_CSSCLASS2 = "bottom-sheet-open";
|
|
17513
17522
|
var _bottomSheet;
|
|
17514
17523
|
var PacemBottomSheetHandleElement = class extends Components9.PacemElement {
|
|
@@ -17621,6 +17630,12 @@ var PacemBottomSheetElement = class extends Components9.PacemElement {
|
|
|
17621
17630
|
}
|
|
17622
17631
|
this._setPosition();
|
|
17623
17632
|
};
|
|
17633
|
+
this._softReleaseHandler = (e) => {
|
|
17634
|
+
avoidHandler3(e);
|
|
17635
|
+
if (this.behavior !== "explicitClose" /* ExplicitClose */) {
|
|
17636
|
+
this.open = false;
|
|
17637
|
+
}
|
|
17638
|
+
};
|
|
17624
17639
|
}
|
|
17625
17640
|
propertyChangedCallback(name, old, val, first) {
|
|
17626
17641
|
super.propertyChangedCallback(name, old, val, first);
|
|
@@ -17676,6 +17691,8 @@ var PacemBottomSheetElement = class extends Components9.PacemElement {
|
|
|
17676
17691
|
this._toggle();
|
|
17677
17692
|
this._rebuildSwiperSnaps();
|
|
17678
17693
|
this._toggleSwiper();
|
|
17694
|
+
this._sheet.addEventListener("pointerdown", stopPropagationHandler3, false);
|
|
17695
|
+
this.addEventListener("pointerdown", this._softReleaseHandler, false);
|
|
17679
17696
|
}
|
|
17680
17697
|
disconnectedCallback() {
|
|
17681
17698
|
const resizer = this._resizer;
|
|
@@ -17693,6 +17710,11 @@ var PacemBottomSheetElement = class extends Components9.PacemElement {
|
|
|
17693
17710
|
swiper.removeEventListener(UI3.SwipeEventType.SwipeUpAnimationEnd, this._swipeHandler);
|
|
17694
17711
|
swiper.removeEventListener(UI3.SwipeEventType.SwipeDownAnimationEnd, this._swipeHandler);
|
|
17695
17712
|
}
|
|
17713
|
+
const sheet = this._sheet;
|
|
17714
|
+
if (!Utils22.isNull(sheet)) {
|
|
17715
|
+
sheet.removeEventListener("pointerdown", stopPropagationHandler3);
|
|
17716
|
+
}
|
|
17717
|
+
this.removeEventListener("pointerdown", this._softReleaseHandler);
|
|
17696
17718
|
super.disconnectedCallback();
|
|
17697
17719
|
}
|
|
17698
17720
|
/**
|
|
@@ -17765,6 +17787,9 @@ __decorateClass([
|
|
|
17765
17787
|
__decorateClass([
|
|
17766
17788
|
Watch13({ emit: false, converter: PropertyConverters13.Boolean })
|
|
17767
17789
|
], PacemBottomSheetElement.prototype, "open", 2);
|
|
17790
|
+
__decorateClass([
|
|
17791
|
+
Watch13({ emit: false, converter: PropertyConverters13.String })
|
|
17792
|
+
], PacemBottomSheetElement.prototype, "behavior", 2);
|
|
17768
17793
|
PacemBottomSheetElement = __decorateClass([
|
|
17769
17794
|
CustomElement11({
|
|
17770
17795
|
tagName: P11 + "-bottom-sheet",
|
|
@@ -17783,7 +17808,7 @@ PacemBottomSheetElement = __decorateClass([
|
|
|
17783
17808
|
import { P as P12, PCSS as PCSS9, CustomElement as CustomElement12, Watch as Watch15, Utils as Utils24, PropertyConverters as PropertyConverters14, Components as Components11, CommandEvent as CommandEvent3 } from "@pacem/pacem-core";
|
|
17784
17809
|
|
|
17785
17810
|
// packages/ui/src/dialog-abstractions.ts
|
|
17786
|
-
import { Watch as Watch14, Utils as Utils23, Components as Components10, CustomTypedEvent as CustomTypedEvent3, Logging as Logging4, avoidHandler as
|
|
17811
|
+
import { Watch as Watch14, Utils as Utils23, Components as Components10, CustomTypedEvent as CustomTypedEvent3, Logging as Logging4, avoidHandler as avoidHandler4 } from "@pacem/pacem-core";
|
|
17787
17812
|
var DialogButtons = /* @__PURE__ */ ((DialogButtons2) => {
|
|
17788
17813
|
DialogButtons2["YesNo"] = "yesno";
|
|
17789
17814
|
DialogButtons2["YesNoCancel"] = "yesnocancel";
|
|
@@ -17825,7 +17850,7 @@ var PacemDialogBase = class extends Components10.PacemElement {
|
|
|
17825
17850
|
}
|
|
17826
17851
|
/** Closes the dialog with the given button outcome, resolving the pending `open()` promise and dispatching a {@link DialogResultEvent}. */
|
|
17827
17852
|
commit(btn, evt) {
|
|
17828
|
-
|
|
17853
|
+
avoidHandler4(evt);
|
|
17829
17854
|
this.log(Logging4.LogLevel.Debug, `Committing dialog by clicking '${btn}'.`);
|
|
17830
17855
|
const state = this.state;
|
|
17831
17856
|
var drevt = new DialogResultEvent({ button: btn, state });
|
|
@@ -19223,15 +19248,8 @@ __decorateClass([
|
|
|
19223
19248
|
Watch23()
|
|
19224
19249
|
], PacemAdaptedIterativeElement.prototype, "datasource", 2);
|
|
19225
19250
|
|
|
19226
|
-
// packages/ui/src/lightbox-abstractions.ts
|
|
19227
|
-
var LightboxBehavior = /* @__PURE__ */ ((LightboxBehavior2) => {
|
|
19228
|
-
LightboxBehavior2["ClickOutsideClose"] = "clickOutsideClose";
|
|
19229
|
-
LightboxBehavior2["ExplicitClose"] = "explicitClose";
|
|
19230
|
-
return LightboxBehavior2;
|
|
19231
|
-
})(LightboxBehavior || {});
|
|
19232
|
-
|
|
19233
19251
|
// packages/ui/src/lightbox.ts
|
|
19234
|
-
import { P as P21, PCSS as PCSS15, CustomElement as CustomElement21, Watch as Watch24, Utils as Utils32, PropertyConverters as PropertyConverters23, Components as Components20, stopPropagationHandler as
|
|
19252
|
+
import { P as P21, PCSS as PCSS15, CustomElement as CustomElement21, Watch as Watch24, Utils as Utils32, PropertyConverters as PropertyConverters23, Components as Components20, stopPropagationHandler as stopPropagationHandler4, ViewChild as ViewChild9, avoidHandler as avoidHandler5 } from "@pacem/pacem-core";
|
|
19235
19253
|
var _btn;
|
|
19236
19254
|
var PacemLightboxElement = class extends Components20.PacemElement {
|
|
19237
19255
|
constructor() {
|
|
@@ -19243,7 +19261,7 @@ var PacemLightboxElement = class extends Components20.PacemElement {
|
|
|
19243
19261
|
};
|
|
19244
19262
|
this._wrapperMousedownHandler = (evt) => {
|
|
19245
19263
|
if (this.modal || this.behavior === "explicitClose" /* ExplicitClose */) {
|
|
19246
|
-
|
|
19264
|
+
stopPropagationHandler4(evt);
|
|
19247
19265
|
} else {
|
|
19248
19266
|
this.show = false;
|
|
19249
19267
|
}
|
|
@@ -19275,8 +19293,8 @@ var PacemLightboxElement = class extends Components20.PacemElement {
|
|
|
19275
19293
|
var wrapper = this._wrapperElement;
|
|
19276
19294
|
var container = this._container;
|
|
19277
19295
|
wrapper.addEventListener("mousedown", this._wrapperMousedownHandler, false);
|
|
19278
|
-
container.addEventListener("mousedown",
|
|
19279
|
-
document.body.removeEventListener("scroll",
|
|
19296
|
+
container.addEventListener("mousedown", stopPropagationHandler4, false);
|
|
19297
|
+
document.body.removeEventListener("scroll", avoidHandler5, true);
|
|
19280
19298
|
window.addEventListener("keyup", this._keyupHandler, false);
|
|
19281
19299
|
this._resetLayout();
|
|
19282
19300
|
this._slot.addEventListener("slotchange", this._slotchangeHandler, false);
|
|
@@ -19335,12 +19353,12 @@ var PacemLightboxElement = class extends Components20.PacemElement {
|
|
|
19335
19353
|
}
|
|
19336
19354
|
var wrapper = this._wrapperElement;
|
|
19337
19355
|
var container = this._container;
|
|
19338
|
-
document.body.removeEventListener("scroll",
|
|
19356
|
+
document.body.removeEventListener("scroll", avoidHandler5, true);
|
|
19339
19357
|
if (!Utils32.isNull(wrapper)) {
|
|
19340
19358
|
wrapper.removeEventListener("mousedown", this._wrapperMousedownHandler, false);
|
|
19341
19359
|
}
|
|
19342
19360
|
if (!Utils32.isNull(container)) {
|
|
19343
|
-
container.removeEventListener("mousedown",
|
|
19361
|
+
container.removeEventListener("mousedown", stopPropagationHandler4, false);
|
|
19344
19362
|
}
|
|
19345
19363
|
window.removeEventListener("keyup", this._keyupHandler, false);
|
|
19346
19364
|
this._disposeButton();
|
|
@@ -19356,7 +19374,7 @@ var PacemLightboxElement = class extends Components20.PacemElement {
|
|
|
19356
19374
|
}
|
|
19357
19375
|
_close(evt) {
|
|
19358
19376
|
if (!Utils32.isNull(evt)) {
|
|
19359
|
-
|
|
19377
|
+
avoidHandler5(evt);
|
|
19360
19378
|
}
|
|
19361
19379
|
this.show = false;
|
|
19362
19380
|
}
|
|
@@ -20026,7 +20044,7 @@ PacemMediaQueryElement = __decorateClass([
|
|
|
20026
20044
|
], PacemMediaQueryElement);
|
|
20027
20045
|
|
|
20028
20046
|
// packages/ui/src/menu.ts
|
|
20029
|
-
import { P as P27, PCSS as PCSS19, Utils as Utils36, CustomElement as CustomElement26, Watch as Watch29, ViewChild as ViewChild12, PropertyConverters as PropertyConverters28, Components as Components24, Defaults as Defaults8, avoidHandler as
|
|
20047
|
+
import { P as P27, PCSS as PCSS19, Utils as Utils36, CustomElement as CustomElement26, Watch as Watch29, ViewChild as ViewChild12, PropertyConverters as PropertyConverters28, Components as Components24, Defaults as Defaults8, avoidHandler as avoidHandler6, stopPropagationHandler as stopPropagationHandler5, CustomElementUtils as CustomElementUtils8, Logging as Logging5 } from "@pacem/pacem-core";
|
|
20030
20048
|
var PacemMenuElement = class extends Components24.PacemElement {
|
|
20031
20049
|
constructor() {
|
|
20032
20050
|
super(...arguments);
|
|
@@ -20043,15 +20061,15 @@ var PacemMenuElement = class extends Components24.PacemElement {
|
|
|
20043
20061
|
}
|
|
20044
20062
|
viewActivatedCallback() {
|
|
20045
20063
|
super.viewActivatedCallback();
|
|
20046
|
-
this._container.addEventListener("click",
|
|
20047
|
-
this._container.addEventListener("scroll",
|
|
20064
|
+
this._container.addEventListener("click", stopPropagationHandler5, false);
|
|
20065
|
+
this._container.addEventListener("scroll", stopPropagationHandler5, false);
|
|
20048
20066
|
this._sync();
|
|
20049
20067
|
}
|
|
20050
20068
|
disconnectedCallback() {
|
|
20051
20069
|
window.removeEventListener("navigate", this._stopPropagationHandlerConditional, false);
|
|
20052
20070
|
if (!Utils36.isNull(this._container)) {
|
|
20053
|
-
this._container.removeEventListener("click",
|
|
20054
|
-
this._container.removeEventListener("scroll",
|
|
20071
|
+
this._container.removeEventListener("click", stopPropagationHandler5, false);
|
|
20072
|
+
this._container.removeEventListener("scroll", stopPropagationHandler5, false);
|
|
20055
20073
|
}
|
|
20056
20074
|
this._sync(false);
|
|
20057
20075
|
super.disconnectedCallback();
|
|
@@ -20062,7 +20080,7 @@ var PacemMenuElement = class extends Components24.PacemElement {
|
|
|
20062
20080
|
this._shell = CustomElementUtils8.findAncestorShell(this);
|
|
20063
20081
|
}
|
|
20064
20082
|
_toggle(evt) {
|
|
20065
|
-
|
|
20083
|
+
avoidHandler6(evt);
|
|
20066
20084
|
this.open = !this.open;
|
|
20067
20085
|
this.dispatchEvent(new Event("toggle"));
|
|
20068
20086
|
}
|
|
@@ -20125,40 +20143,14 @@ var PacemMenuCursorElement = class extends Components24.PacemElement {
|
|
|
20125
20143
|
constructor() {
|
|
20126
20144
|
super(...arguments);
|
|
20127
20145
|
this._onPathChange = (evt) => {
|
|
20128
|
-
const
|
|
20129
|
-
|
|
20130
|
-
this.log(Logging5.LogLevel.Warn, `Couldn't find a ${PacemMenuElement} ancestor for this ${PacemMenuCursorElement}.`);
|
|
20131
|
-
return;
|
|
20132
|
-
}
|
|
20133
|
-
var anchors = menu.querySelectorAll(P27 + "-a");
|
|
20134
|
-
var tget = null;
|
|
20135
|
-
for (let j = 0; j < anchors.length; j++) {
|
|
20136
|
-
let a = anchors.item(j);
|
|
20137
|
-
if (a.href === path) {
|
|
20138
|
-
tget = a;
|
|
20139
|
-
break;
|
|
20140
|
-
}
|
|
20141
|
-
}
|
|
20142
|
-
if (Utils36.isNull(tget)) {
|
|
20143
|
-
tget = menu.querySelector(`a[href='${path}']`);
|
|
20144
|
-
}
|
|
20145
|
-
if (!Utils36.isNull(tget)) {
|
|
20146
|
-
const rect = Utils36.offset(tget);
|
|
20147
|
-
const rectMenu = Utils36.offset(menu);
|
|
20148
|
-
this.style.top = rect.top + "px";
|
|
20149
|
-
this.style.left = rectMenu.left + "px";
|
|
20150
|
-
this.style.width = "0";
|
|
20151
|
-
this.style.height = rect.height + "px";
|
|
20152
|
-
Utils36.addAnimationEndCallback(this, () => {
|
|
20153
|
-
this.style.width = rect.width + rect.left - rectMenu.left + "px";
|
|
20154
|
-
}, 500);
|
|
20155
|
-
}
|
|
20146
|
+
const path = evt?.detail.path;
|
|
20147
|
+
this._findAnchorAndScrollItIntoView(path);
|
|
20156
20148
|
};
|
|
20157
20149
|
}
|
|
20158
20150
|
viewActivatedCallback() {
|
|
20159
20151
|
super.viewActivatedCallback();
|
|
20160
20152
|
this._menu = CustomElementUtils8.findAncestorOfType(this, PacemMenuElement);
|
|
20161
|
-
this.
|
|
20153
|
+
this._findAnchorAndScrollItIntoView();
|
|
20162
20154
|
}
|
|
20163
20155
|
connectedCallback() {
|
|
20164
20156
|
super.connectedCallback();
|
|
@@ -20169,6 +20161,47 @@ var PacemMenuCursorElement = class extends Components24.PacemElement {
|
|
|
20169
20161
|
window.removeEventListener("navigate", this._onPathChange, false);
|
|
20170
20162
|
super.disconnectedCallback();
|
|
20171
20163
|
}
|
|
20164
|
+
propertyChangedCallback(name, old, val, first) {
|
|
20165
|
+
super.propertyChangedCallback(name, old, val, first);
|
|
20166
|
+
if (first) {
|
|
20167
|
+
return;
|
|
20168
|
+
}
|
|
20169
|
+
switch (name) {
|
|
20170
|
+
case "disabled":
|
|
20171
|
+
this._findAnchorAndScrollItIntoView();
|
|
20172
|
+
break;
|
|
20173
|
+
}
|
|
20174
|
+
}
|
|
20175
|
+
_findAnchorAndScrollItIntoView(path = window.location.pathname) {
|
|
20176
|
+
if (this.disabled) {
|
|
20177
|
+
return;
|
|
20178
|
+
}
|
|
20179
|
+
const menu = this._menu;
|
|
20180
|
+
if (Utils36.isNull(menu)) {
|
|
20181
|
+
this.log(Logging5.LogLevel.Warn, `Couldn't find a ${PacemMenuElement} ancestor for this ${PacemMenuCursorElement}.`);
|
|
20182
|
+
return;
|
|
20183
|
+
}
|
|
20184
|
+
const anchors = menu.querySelectorAll(P27 + "-a");
|
|
20185
|
+
let tget = null;
|
|
20186
|
+
for (let j = 0; j < anchors.length; j++) {
|
|
20187
|
+
const a = anchors.item(j);
|
|
20188
|
+
const router = a.router;
|
|
20189
|
+
let href = Utils36.isNull(router) ? a.href : (
|
|
20190
|
+
/* build fully formatted href, it might contain placeholders */
|
|
20191
|
+
Utils36.URIs.format(a.href, router.state)
|
|
20192
|
+
);
|
|
20193
|
+
if (href === path) {
|
|
20194
|
+
tget = a;
|
|
20195
|
+
break;
|
|
20196
|
+
}
|
|
20197
|
+
}
|
|
20198
|
+
if (Utils36.isNull(tget)) {
|
|
20199
|
+
tget = menu.querySelector(`a[href='${path}']`);
|
|
20200
|
+
}
|
|
20201
|
+
if (!Utils36.isNull(tget)) {
|
|
20202
|
+
tget.scrollIntoView({ behavior: "smooth" });
|
|
20203
|
+
}
|
|
20204
|
+
}
|
|
20172
20205
|
};
|
|
20173
20206
|
PacemMenuCursorElement = __decorateClass([
|
|
20174
20207
|
CustomElement26({
|
|
@@ -21103,7 +21136,7 @@ PacemToastElement = __decorateClass([
|
|
|
21103
21136
|
], PacemToastElement);
|
|
21104
21137
|
|
|
21105
21138
|
// packages/ui/src/toc.ts
|
|
21106
|
-
import { P as P38, PCSS as PCSS26, CustomElement as CustomElement37, Watch as Watch38, ViewChild as ViewChild18, Components as Components35, Utils as Utils45, PropertyConverters as PropertyConverters37, Defaults as Defaults11, Animations as Animations3, Debounce as Debounce6, avoidHandler as
|
|
21139
|
+
import { P as P38, PCSS as PCSS26, CustomElement as CustomElement37, Watch as Watch38, ViewChild as ViewChild18, Components as Components35, Utils as Utils45, PropertyConverters as PropertyConverters37, Defaults as Defaults11, Animations as Animations3, Debounce as Debounce6, avoidHandler as avoidHandler7 } from "@pacem/pacem-core";
|
|
21107
21140
|
var PacemTocElement = class extends Components35.PacemElement {
|
|
21108
21141
|
constructor(_tweener = new Animations3.TweenService()) {
|
|
21109
21142
|
super();
|
|
@@ -21173,7 +21206,7 @@ var PacemTocElement = class extends Components35.PacemElement {
|
|
|
21173
21206
|
}
|
|
21174
21207
|
}
|
|
21175
21208
|
_startScrollTo(item, evt) {
|
|
21176
|
-
|
|
21209
|
+
avoidHandler7(evt);
|
|
21177
21210
|
this._scrollTo(item.url);
|
|
21178
21211
|
}
|
|
21179
21212
|
_update(top) {
|
|
@@ -21959,10 +21992,10 @@ import { CustomTypedEvent as CustomTypedEvent7, CustomEventUtils as CustomEventU
|
|
|
21959
21992
|
import { HistoryService as HistoryService3 } from "@pacem/pacem-foundation";
|
|
21960
21993
|
|
|
21961
21994
|
// packages/scaffolding/src/types-components.ts
|
|
21962
|
-
import { P as P44, PCSS as PCSS30, CustomElementUtils as CustomElementUtils16, Utils as Utils51, Components as Components40, PropertyConverters as PropertyConverters42, CustomElement as CustomElement43, Watch as Watch44, stopPropagationHandler as
|
|
21995
|
+
import { P as P44, PCSS as PCSS30, CustomElementUtils as CustomElementUtils16, Utils as Utils51, Components as Components40, PropertyConverters as PropertyConverters42, CustomElement as CustomElement43, Watch as Watch44, stopPropagationHandler as stopPropagationHandler6, DefaultComparer as DefaultComparer2, PropertyChangeEventName as PropertyChangeEventName6, Debounce as Debounce8 } from "@pacem/pacem-core";
|
|
21963
21996
|
|
|
21964
21997
|
// packages/scaffolding/src/form.ts
|
|
21965
|
-
import { P as P43, PCSS as PCSS29, CustomElement as CustomElement42, Watch as Watch43, Utils as Utils50, PropertyConverters as PropertyConverters41, CustomTypedEvent as CustomTypedEvent6, CommandEventName as CommandEventName2, Components as Components39, Net as Net5, Debounce as Debounce7, avoidHandler as
|
|
21998
|
+
import { P as P43, PCSS as PCSS29, CustomElement as CustomElement42, Watch as Watch43, Utils as Utils50, PropertyConverters as PropertyConverters41, CustomTypedEvent as CustomTypedEvent6, CommandEventName as CommandEventName2, Components as Components39, Net as Net5, Debounce as Debounce7, avoidHandler as avoidHandler8, PropertyChangeEvent as PropertyChangeEvent9, PropertyChangeEventName as PropertyChangeEventName5, DeferPromise as DeferPromise2, Logging as Logging8, CustomElementUtils as CustomElementUtils15 } from "@pacem/pacem-core";
|
|
21966
21999
|
var FormSubmitEventName = "submit";
|
|
21967
22000
|
var FormResetEventName = "reset";
|
|
21968
22001
|
var FormSubmitEvent = class extends CustomTypedEvent6 {
|
|
@@ -22025,7 +22058,7 @@ var PacemFormElement = class extends PacemFormRelevantElement {
|
|
|
22025
22058
|
};
|
|
22026
22059
|
this._submit = (fetcher, evt) => {
|
|
22027
22060
|
if (!Utils50.isNull(evt)) {
|
|
22028
|
-
|
|
22061
|
+
avoidHandler8(evt);
|
|
22029
22062
|
}
|
|
22030
22063
|
Promise.all(this._validateAllFields()).then((p) => {
|
|
22031
22064
|
if (p.findIndex((f) => f === false) === -1) {
|
|
@@ -22041,7 +22074,7 @@ var PacemFormElement = class extends PacemFormRelevantElement {
|
|
|
22041
22074
|
};
|
|
22042
22075
|
this._reset = (evt) => {
|
|
22043
22076
|
if (!Utils50.isNull(evt))
|
|
22044
|
-
|
|
22077
|
+
avoidHandler8(evt);
|
|
22045
22078
|
var resetEvt = new FormResetEvent();
|
|
22046
22079
|
this.dispatchEvent(resetEvt);
|
|
22047
22080
|
if (resetEvt.defaultPrevented) {
|
|
@@ -22148,7 +22181,7 @@ disabled="{{ (#${uid}.suddenValidation && (!(#${uid}.valid && #${uid}.dirty))) |
|
|
|
22148
22181
|
form.innerHTML = html;
|
|
22149
22182
|
this.innerHTML = "";
|
|
22150
22183
|
this.appendChild(form);
|
|
22151
|
-
form.addEventListener("submit",
|
|
22184
|
+
form.addEventListener("submit", avoidHandler8, false);
|
|
22152
22185
|
const old = this._buttons;
|
|
22153
22186
|
const val = this._buttons = {
|
|
22154
22187
|
submit: form.lastElementChild.firstElementChild.firstElementChild,
|
|
@@ -22738,13 +22771,13 @@ var PacemBaseElement = class extends PacemModelElement {
|
|
|
22738
22771
|
});
|
|
22739
22772
|
};
|
|
22740
22773
|
this.keydownHandler = (evt) => {
|
|
22741
|
-
|
|
22774
|
+
stopPropagationHandler6(evt);
|
|
22742
22775
|
};
|
|
22743
22776
|
this.keyupHandler = (evt) => {
|
|
22744
22777
|
switch (evt.keyCode) {
|
|
22745
22778
|
case /* Esc */
|
|
22746
22779
|
27:
|
|
22747
|
-
|
|
22780
|
+
stopPropagationHandler6(evt);
|
|
22748
22781
|
if (this.compareValuePropertyValues(this.originalValue, this._preFocusValue)) {
|
|
22749
22782
|
this.reset();
|
|
22750
22783
|
} else {
|
|
@@ -22755,7 +22788,7 @@ var PacemBaseElement = class extends PacemModelElement {
|
|
|
22755
22788
|
case /* Enter */
|
|
22756
22789
|
13:
|
|
22757
22790
|
if (this.preventKeyboardSubmit) {
|
|
22758
|
-
|
|
22791
|
+
stopPropagationHandler6(evt);
|
|
22759
22792
|
}
|
|
22760
22793
|
break;
|
|
22761
22794
|
}
|
|
@@ -22812,8 +22845,8 @@ var PacemBaseElement = class extends PacemModelElement {
|
|
|
22812
22845
|
inputField.addEventListener("change", this.changeHandler, false);
|
|
22813
22846
|
inputField.addEventListener("keydown", this.keydownHandler, false);
|
|
22814
22847
|
inputField.addEventListener("keyup", this.keyupHandler, false);
|
|
22815
|
-
inputField.addEventListener("mousedown",
|
|
22816
|
-
inputField.addEventListener("touchstart",
|
|
22848
|
+
inputField.addEventListener("mousedown", stopPropagationHandler6, false);
|
|
22849
|
+
inputField.addEventListener("touchstart", stopPropagationHandler6, { passive: false, capture: false });
|
|
22817
22850
|
}
|
|
22818
22851
|
}
|
|
22819
22852
|
unregisterInputFields(inputFields = this.inputFields) {
|
|
@@ -22822,10 +22855,10 @@ var PacemBaseElement = class extends PacemModelElement {
|
|
|
22822
22855
|
}
|
|
22823
22856
|
for (let inputField of inputFields) {
|
|
22824
22857
|
if (Utils51.isNull(inputField)) continue;
|
|
22825
|
-
inputField.removeEventListener("touchstart",
|
|
22858
|
+
inputField.removeEventListener("touchstart", stopPropagationHandler6, { capture: false });
|
|
22826
22859
|
inputField.removeEventListener("keydown", this.keydownHandler, false);
|
|
22827
22860
|
inputField.removeEventListener("keyup", this.keyupHandler, false);
|
|
22828
|
-
inputField.removeEventListener("mousedown",
|
|
22861
|
+
inputField.removeEventListener("mousedown", stopPropagationHandler6, false);
|
|
22829
22862
|
inputField.removeEventListener("change", this.changeHandler, false);
|
|
22830
22863
|
inputField.removeEventListener("focus", this.focusHandler, false);
|
|
22831
22864
|
inputField.removeEventListener("blur", this.focusHandler, false);
|
|
@@ -24497,7 +24530,7 @@ PacemContenteditableWrapCommandElement = __decorateClass([
|
|
|
24497
24530
|
], PacemContenteditableWrapCommandElement);
|
|
24498
24531
|
|
|
24499
24532
|
// packages/scaffolding/src/calendar-picker.ts
|
|
24500
|
-
import { Components as Components43, CustomElement as CustomElement53, CustomElementUtils as CustomElementUtils18, CustomEventUtils as CustomEventUtils4, Defaults as Defaults22, P as P55, PCSS as PCSS36, PropertyConverters as PropertyConverters51, stopPropagationHandler as
|
|
24533
|
+
import { Components as Components43, CustomElement as CustomElement53, CustomElementUtils as CustomElementUtils18, CustomEventUtils as CustomEventUtils4, Defaults as Defaults22, P as P55, PCSS as PCSS36, PropertyConverters as PropertyConverters51, stopPropagationHandler as stopPropagationHandler8, Utils as Utils63, ViewChild as ViewChild24, Watch as Watch54 } from "@pacem/pacem-core";
|
|
24501
24534
|
import { Components as ComponentsUI } from "@pacem/pacem-ui";
|
|
24502
24535
|
var JsonOrStringConverter = {
|
|
24503
24536
|
convert: (attr, el) => {
|
|
@@ -24721,7 +24754,7 @@ var PacemCalendarPickerElement = class extends PacemBaseElement {
|
|
|
24721
24754
|
const input = this._input;
|
|
24722
24755
|
input.addEventListener("focus", this._popCalendarHandler, false);
|
|
24723
24756
|
input.addEventListener("mousedown", this._popCalendarHandler, false);
|
|
24724
|
-
dropdown.addEventListener("mousedown",
|
|
24757
|
+
dropdown.addEventListener("mousedown", stopPropagationHandler8, false);
|
|
24725
24758
|
window.document.body.addEventListener("mousedown", this._hideCalendarHandler, true);
|
|
24726
24759
|
this._clearButton.addEventListener("mousedown", this._clearBtnHandler, false);
|
|
24727
24760
|
const swiper = new Components43.PacemSwipeElement();
|
|
@@ -24738,7 +24771,7 @@ var PacemCalendarPickerElement = class extends PacemBaseElement {
|
|
|
24738
24771
|
this._clearButton.removeEventListener("mousedown", this._clearBtnHandler, false);
|
|
24739
24772
|
input.removeEventListener("focus", this._popCalendarHandler, false);
|
|
24740
24773
|
input.removeEventListener("mousedown", this._popCalendarHandler, false);
|
|
24741
|
-
this._dropdown.removeEventListener("mousedown",
|
|
24774
|
+
this._dropdown.removeEventListener("mousedown", stopPropagationHandler8, false);
|
|
24742
24775
|
window.document.body.removeEventListener("mousedown", this._hideCalendarHandler, true);
|
|
24743
24776
|
this._calendar.removeEventListener("viewdatechange", this._viewDateChangeHandler, false);
|
|
24744
24777
|
this._monthPicker.removeEventListener("viewyearchange", this._viewDateChangeHandler, false);
|
|
@@ -25129,7 +25162,7 @@ on-${PropertyChangeEventName8}=":host._selectionChanged($event, ^index, ^item)"
|
|
|
25129
25162
|
], PacemCheckboxListElement);
|
|
25130
25163
|
|
|
25131
25164
|
// packages/scaffolding/src/childform.ts
|
|
25132
|
-
import { CustomElement as CustomElement56, Defaults as Defaults25, P as P58, PCSS as PCSS39, PacemEventTarget as PacemEventTarget13, PropertyChangeEventName as PropertyChangeEventName9, Components as Components45, PropertyConverters as PropertyConverters53, Utils as Utils66, ViewChild as ViewChild27, Watch as Watch56, UI as UI9, avoidHandler as
|
|
25165
|
+
import { CustomElement as CustomElement56, Defaults as Defaults25, P as P58, PCSS as PCSS39, PacemEventTarget as PacemEventTarget13, PropertyChangeEventName as PropertyChangeEventName9, Components as Components45, PropertyConverters as PropertyConverters53, Utils as Utils66, ViewChild as ViewChild27, Watch as Watch56, UI as UI9, avoidHandler as avoidHandler9 } from "@pacem/pacem-core";
|
|
25133
25166
|
var PacemChildFormPropagatorElement = class extends PacemEventTarget13 {
|
|
25134
25167
|
propertyChangedCallback(name, old, val, first) {
|
|
25135
25168
|
super.propertyChangedCallback(name, old, val, first);
|
|
@@ -25241,7 +25274,7 @@ var PacemChildFormElement = class extends PacemBaseElement {
|
|
|
25241
25274
|
}
|
|
25242
25275
|
}
|
|
25243
25276
|
_deleteAt(evt) {
|
|
25244
|
-
|
|
25277
|
+
avoidHandler9(evt.srcEvent);
|
|
25245
25278
|
const model = this._model;
|
|
25246
25279
|
if (this.mode === "array") {
|
|
25247
25280
|
model.splice(evt.detail, 1);
|
|
@@ -27150,7 +27183,7 @@ PacemGeolocateElement = __decorateClass([
|
|
|
27150
27183
|
], PacemGeolocateElement);
|
|
27151
27184
|
|
|
27152
27185
|
// packages/scaffolding/src/hierarchy.ts
|
|
27153
|
-
import { Components as Components49, PropertyConverters as PropertyConverters58, Utils as Utils71, P as P63, PCSS as PCSS43, CustomElement as CustomElement61, Watch as Watch61, Defaults as Defaults28, ViewChild as ViewChild32, CustomEventUtils as CustomEventUtils5, CustomElementUtils as CustomElementUtils20, avoidHandler as
|
|
27186
|
+
import { Components as Components49, PropertyConverters as PropertyConverters58, Utils as Utils71, P as P63, PCSS as PCSS43, CustomElement as CustomElement61, Watch as Watch61, Defaults as Defaults28, ViewChild as ViewChild32, CustomEventUtils as CustomEventUtils5, CustomElementUtils as CustomElementUtils20, avoidHandler as avoidHandler10, UI as UI10 } from "@pacem/pacem-core";
|
|
27154
27187
|
import { Components as ComponentsUI3 } from "@pacem/pacem-ui";
|
|
27155
27188
|
var HierarchyChangeEvent = class extends CustomEvent {
|
|
27156
27189
|
constructor(v) {
|
|
@@ -27182,11 +27215,11 @@ var PacemHierarchyElement = class extends PacemBaseElement {
|
|
|
27182
27215
|
this._binderClickHandler = (evt) => {
|
|
27183
27216
|
const origType = evt.originalEvent.type;
|
|
27184
27217
|
if (origType === "mousedown" && evt.originalEvent.button === 1) {
|
|
27185
|
-
|
|
27218
|
+
avoidHandler10(evt.originalEvent);
|
|
27186
27219
|
const binder = evt.srcElement;
|
|
27187
27220
|
this._unlink(binder);
|
|
27188
27221
|
} else if (origType === "click" || origType === "contextmenu") {
|
|
27189
|
-
|
|
27222
|
+
avoidHandler10(evt.originalEvent);
|
|
27190
27223
|
__privateSet(this, _unlinkingBinder, evt.srcElement);
|
|
27191
27224
|
const balloon = this._balloon;
|
|
27192
27225
|
balloon.target = { x: evt.pageX, y: evt.pageY };
|
|
@@ -27257,8 +27290,9 @@ var PacemHierarchyElement = class extends PacemBaseElement {
|
|
|
27257
27290
|
return new Promise((resolve, reject) => {
|
|
27258
27291
|
if (CustomEventUtils5.isInstanceOf(evt, HierarchyChangeEvent)) {
|
|
27259
27292
|
resolve(this.value = evt.detail);
|
|
27293
|
+
} else {
|
|
27294
|
+
resolve(this.value);
|
|
27260
27295
|
}
|
|
27261
|
-
resolve(this.value);
|
|
27262
27296
|
});
|
|
27263
27297
|
}
|
|
27264
27298
|
acceptValue(val) {
|
|
@@ -27297,6 +27331,7 @@ var PacemHierarchyElement = class extends PacemBaseElement {
|
|
|
27297
27331
|
}
|
|
27298
27332
|
}
|
|
27299
27333
|
disconnectedCallback() {
|
|
27334
|
+
this._disposeBindersAndTargets();
|
|
27300
27335
|
this._disposeDragger();
|
|
27301
27336
|
this._disposeBalloon();
|
|
27302
27337
|
super.disconnectedCallback();
|
|
@@ -27355,36 +27390,71 @@ var PacemHierarchyElement = class extends PacemBaseElement {
|
|
|
27355
27390
|
} else {
|
|
27356
27391
|
item.setAttribute("behaviors", "{{ [#" + this._dragger.id + ", #" + this._dragger2.id + "] }}");
|
|
27357
27392
|
}
|
|
27393
|
+
const bindings = __privateGet(this, _bindings);
|
|
27394
|
+
const bindingKey = hierarchyItem.value;
|
|
27395
|
+
let binders;
|
|
27396
|
+
if (!bindings.has(bindingKey)) {
|
|
27397
|
+
bindings.set(bindingKey, binders = /* @__PURE__ */ new Map());
|
|
27398
|
+
} else {
|
|
27399
|
+
binders = bindings.get(bindingKey);
|
|
27400
|
+
}
|
|
27358
27401
|
for (let parent of hierarchyItem.parents || []) {
|
|
27359
|
-
const
|
|
27360
|
-
|
|
27402
|
+
const binderKey = parent.value;
|
|
27403
|
+
const newBinder = !binders.has(binderKey);
|
|
27404
|
+
const binder = newBinder ? new ComponentsUI3.UI.PacemBinderElement() : binders.get(binderKey);
|
|
27405
|
+
binder.fromAnchor = ComponentsUI3.UI.BinderAnchor.Bottom;
|
|
27361
27406
|
binder.toAnchor = ComponentsUI3.UI.BinderAnchor.Top;
|
|
27362
27407
|
binder.toEnd = ComponentsUI3.UI.BinderEnd.Arrow;
|
|
27363
27408
|
binder.setAttribute("from", "{{ #" + this._buildHierarchyItemDomId(parent.value) + " }}");
|
|
27364
|
-
binder.
|
|
27409
|
+
binder.setAttribute("to", "{{ #" + item.id + " }}");
|
|
27365
27410
|
binder.cssClass = ["hierarchy-binder"];
|
|
27366
|
-
binder.interactive = !this.readonly && !hierarchyItem.disabled && !parent.disabled;
|
|
27367
|
-
binder.addEventListener(ComponentsUI3.UI.BinderInteractionEventName, this._binderClickHandler, false);
|
|
27368
27411
|
binder.dataset[BINDER_HIERARCHYDATAKEY] = JSON.stringify({ parent: parent.value, child: hierarchyItem.value });
|
|
27369
|
-
|
|
27370
|
-
|
|
27412
|
+
binder.interactive = !this.readonly && !hierarchyItem.disabled && !parent.disabled;
|
|
27413
|
+
if (newBinder) {
|
|
27414
|
+
binder.addEventListener(ComponentsUI3.UI.BinderInteractionEventName, this._binderClickHandler, false);
|
|
27415
|
+
__privateGet(this, _shell4).appendChild(binder);
|
|
27416
|
+
binders.set(binderKey, binder);
|
|
27417
|
+
}
|
|
27418
|
+
}
|
|
27419
|
+
for (let binderKey of binders.keys()) {
|
|
27420
|
+
const found = hierarchyItem.parents.find((p) => p.value === binderKey);
|
|
27421
|
+
if (!Utils71.isNull(found)) {
|
|
27422
|
+
continue;
|
|
27423
|
+
}
|
|
27424
|
+
const binder = binders.get(binderKey);
|
|
27425
|
+
binder.removeEventListener(ComponentsUI3.UI.BinderInteractionEventName, this._binderClickHandler);
|
|
27426
|
+
binder.remove();
|
|
27427
|
+
binders.delete(binderKey);
|
|
27371
27428
|
}
|
|
27372
27429
|
if (!__privateGet(this, _dropTargets).has(item)) {
|
|
27373
27430
|
__privateGet(this, _dropTargets).set(item, hierarchyItem);
|
|
27374
27431
|
}
|
|
27375
27432
|
}
|
|
27376
27433
|
_itemRemove(evt) {
|
|
27377
|
-
const item = evt.detail.dom.find((i) => i instanceof HTMLElement && i.classList.contains(HIERARCHYITEM_CSSCLASS)), hierarchyItem = evt.detail.item
|
|
27378
|
-
|
|
27379
|
-
const binder = bindings.get(hierarchyItem.value);
|
|
27380
|
-
binder.removeEventListener(ComponentsUI3.UI.BinderInteractionEventName, this._binderClickHandler, false);
|
|
27381
|
-
binder.remove();
|
|
27382
|
-
bindings.delete(hierarchyItem.value);
|
|
27383
|
-
}
|
|
27434
|
+
const item = evt.detail.dom.find((i) => i instanceof HTMLElement && i.classList.contains(HIERARCHYITEM_CSSCLASS)), hierarchyItem = evt.detail.item;
|
|
27435
|
+
this._disposeBinders(hierarchyItem.value);
|
|
27384
27436
|
if (__privateGet(this, _dropTargets).has(item)) {
|
|
27385
27437
|
__privateGet(this, _dropTargets).delete(item);
|
|
27386
27438
|
}
|
|
27387
27439
|
}
|
|
27440
|
+
_disposeBinders(bindingKey) {
|
|
27441
|
+
const bindings = __privateGet(this, _bindings);
|
|
27442
|
+
if (bindings.has(bindingKey)) {
|
|
27443
|
+
const binders = bindings.get(bindingKey);
|
|
27444
|
+
for (let binderKey of binders.keys()) {
|
|
27445
|
+
const binder = binders.get(binderKey);
|
|
27446
|
+
binder.removeEventListener(ComponentsUI3.UI.BinderInteractionEventName, this._binderClickHandler, false);
|
|
27447
|
+
binder.remove();
|
|
27448
|
+
}
|
|
27449
|
+
bindings.delete(bindingKey);
|
|
27450
|
+
}
|
|
27451
|
+
}
|
|
27452
|
+
_disposeBindersAndTargets() {
|
|
27453
|
+
for (let bindingKey of __privateGet(this, _bindings).keys()) {
|
|
27454
|
+
this._disposeBinders(bindingKey);
|
|
27455
|
+
}
|
|
27456
|
+
__privateGet(this, _dropTargets).clear();
|
|
27457
|
+
}
|
|
27388
27458
|
_setupItemTemplate() {
|
|
27389
27459
|
if (this.itemtemplate instanceof HTMLTemplateElement) {
|
|
27390
27460
|
const frag = this.itemtemplate.cloneNode(true).content;
|
|
@@ -27434,10 +27504,10 @@ var PacemHierarchyElement = class extends PacemBaseElement {
|
|
|
27434
27504
|
}
|
|
27435
27505
|
found[parentsProperty].push(newParent);
|
|
27436
27506
|
}
|
|
27437
|
-
this.
|
|
27507
|
+
this._tidyUpHierarchy(value2);
|
|
27438
27508
|
this.changeHandler(new HierarchyChangeEvent(value2));
|
|
27439
27509
|
}
|
|
27440
|
-
|
|
27510
|
+
_tidyUpHierarchy(value2 = []) {
|
|
27441
27511
|
const valueProperty = this.valueProperty, parentsProperty = this.parentsProperty || DEFAULT_PARENTSPROPERTY;
|
|
27442
27512
|
const isInAncestors = (sourceId, targetId) => {
|
|
27443
27513
|
const target = value2.find((i) => i[valueProperty] == targetId);
|
|
@@ -27518,7 +27588,6 @@ var PacemHierarchyElement = class extends PacemBaseElement {
|
|
|
27518
27588
|
return this._isInAncestors(target, source);
|
|
27519
27589
|
}
|
|
27520
27590
|
_databind() {
|
|
27521
|
-
this._repeater.datasource = [];
|
|
27522
27591
|
const valueProperty = this.valueProperty;
|
|
27523
27592
|
if (Utils71.isNullOrEmpty(valueProperty)) {
|
|
27524
27593
|
throw new Error("Missing valueProperty.");
|
|
@@ -27627,7 +27696,7 @@ PacemHierarchyElement = __decorateClass([
|
|
|
27627
27696
|
</${P63}-panel>
|
|
27628
27697
|
</template>
|
|
27629
27698
|
<${P63}-shell-proxy>
|
|
27630
|
-
<${P63}-balloon options="{{ { behavior:
|
|
27699
|
+
<${P63}-balloon options="{{ { behavior: '${ComponentsUI3.UI.BalloonBehavior.Inert}' } }}">
|
|
27631
27700
|
<${P63}-button icon-glyph="link_off" class="${PCSS43}-margin margin-0 button-flat display-flex flex-middle icon-rotate rotate-135"
|
|
27632
27701
|
on-click=":host._unlink($event)"
|
|
27633
27702
|
on-mousedown="$event.stopPropagation()"
|
|
@@ -28116,7 +28185,7 @@ PacemEmailInputElement = __decorateClass([
|
|
|
28116
28185
|
], PacemEmailInputElement);
|
|
28117
28186
|
|
|
28118
28187
|
// packages/scaffolding/src/input-file.ts
|
|
28119
|
-
import { P as P67, PCSS as PCSS47, CustomElement as CustomElement65, Watch as Watch64, Defaults as Defaults32, ViewChild as ViewChild36, CustomTypedEvent as CustomTypedEvent8, CustomEventUtils as CustomEventUtils6, PropertyConverters as PropertyConverters61, Animations as Animations5, Utils as Utils76, stopPropagationHandler as
|
|
28188
|
+
import { P as P67, PCSS as PCSS47, CustomElement as CustomElement65, Watch as Watch64, Defaults as Defaults32, ViewChild as ViewChild36, CustomTypedEvent as CustomTypedEvent8, CustomEventUtils as CustomEventUtils6, PropertyConverters as PropertyConverters61, Animations as Animations5, Utils as Utils76, stopPropagationHandler as stopPropagationHandler9, avoidHandler as avoidHandler11 } from "@pacem/pacem-core";
|
|
28120
28189
|
var FileUploadEventName = "fileupload";
|
|
28121
28190
|
var FileChangeEventName = "filechange";
|
|
28122
28191
|
var StoragePickEvent = class extends CustomTypedEvent8 {
|
|
@@ -28261,7 +28330,7 @@ var PacemUploadElement = class extends PacemBaseElement {
|
|
|
28261
28330
|
viewActivatedCallback() {
|
|
28262
28331
|
super.viewActivatedCallback();
|
|
28263
28332
|
this._setupInputElement();
|
|
28264
|
-
this._fileupload.addEventListener("click",
|
|
28333
|
+
this._fileupload.addEventListener("click", stopPropagationHandler9, false);
|
|
28265
28334
|
}
|
|
28266
28335
|
propertyChangedCallback(name, old, val, first) {
|
|
28267
28336
|
super.propertyChangedCallback(name, old, val, first);
|
|
@@ -28274,7 +28343,7 @@ var PacemUploadElement = class extends PacemBaseElement {
|
|
|
28274
28343
|
}
|
|
28275
28344
|
disconnectedCallback() {
|
|
28276
28345
|
if (this._fileupload) {
|
|
28277
|
-
this._fileupload.removeEventListener("click",
|
|
28346
|
+
this._fileupload.removeEventListener("click", stopPropagationHandler9, false);
|
|
28278
28347
|
}
|
|
28279
28348
|
super.disconnectedCallback();
|
|
28280
28349
|
}
|
|
@@ -28301,7 +28370,7 @@ var PacemUploadElement = class extends PacemBaseElement {
|
|
|
28301
28370
|
* Triggered from the component's template.
|
|
28302
28371
|
*/
|
|
28303
28372
|
_dispatchDownload(evt) {
|
|
28304
|
-
|
|
28373
|
+
avoidHandler11(evt);
|
|
28305
28374
|
const value2 = (
|
|
28306
28375
|
/* download the file being currently precessed, if available */
|
|
28307
28376
|
this._localValue || this.value
|
|
@@ -28505,7 +28574,7 @@ var PacemUploadElement = class extends PacemBaseElement {
|
|
|
28505
28574
|
* @param evt
|
|
28506
28575
|
*/
|
|
28507
28576
|
_clickHandler(evt) {
|
|
28508
|
-
|
|
28577
|
+
avoidHandler11(evt);
|
|
28509
28578
|
if (this.readonly) {
|
|
28510
28579
|
return;
|
|
28511
28580
|
}
|
|
@@ -28777,11 +28846,11 @@ PacemHiddenInputElement = __decorateClass([
|
|
|
28777
28846
|
], PacemHiddenInputElement);
|
|
28778
28847
|
|
|
28779
28848
|
// packages/scaffolding/src/input-image.ts
|
|
28780
|
-
import { P as P70, PCSS as PCSS49, CustomElement as CustomElement68, Watch as Watch66, Defaults as Defaults35, ViewChild as ViewChild39, CustomTypedEvent as CustomTypedEvent9, Components as Components54, CustomEventUtils as CustomEventUtils8, PropertyConverters as PropertyConverters63, PropertyChangeEventName as PropertyChangeEventName11, Utils as Utils79, Debounce as Debounce11, avoidHandler as
|
|
28849
|
+
import { P as P70, PCSS as PCSS49, CustomElement as CustomElement68, Watch as Watch66, Defaults as Defaults35, ViewChild as ViewChild39, CustomTypedEvent as CustomTypedEvent9, Components as Components54, CustomEventUtils as CustomEventUtils8, PropertyConverters as PropertyConverters63, PropertyChangeEventName as PropertyChangeEventName11, Utils as Utils79, Debounce as Debounce11, avoidHandler as avoidHandler13 } from "@pacem/pacem-core";
|
|
28781
28850
|
import { Components as ComponentsUI4 } from "@pacem/pacem-ui";
|
|
28782
28851
|
|
|
28783
28852
|
// packages/scaffolding/src/snapshot.ts
|
|
28784
|
-
import { P as P69, PCSS as PCSS48, CustomElement as CustomElement67, Watch as Watch65, Defaults as Defaults34, ViewChild as ViewChild38, CustomEventUtils as CustomEventUtils7, PropertyConverters as PropertyConverters62, Utils as Utils78, CustomUIEvent as CustomUIEvent5, avoidHandler as
|
|
28853
|
+
import { P as P69, PCSS as PCSS48, CustomElement as CustomElement67, Watch as Watch65, Defaults as Defaults34, ViewChild as ViewChild38, CustomEventUtils as CustomEventUtils7, PropertyConverters as PropertyConverters62, Utils as Utils78, CustomUIEvent as CustomUIEvent5, avoidHandler as avoidHandler12, Logging as Logging11 } from "@pacem/pacem-core";
|
|
28785
28854
|
var getUserMediaFunctions = Utils78.getUserMediaFunctions();
|
|
28786
28855
|
var SnapshotStep = /* @__PURE__ */ ((SnapshotStep2) => {
|
|
28787
28856
|
SnapshotStep2["Start"] = "start";
|
|
@@ -28816,25 +28885,25 @@ var PacemSnapshotElement = class extends PacemBaseElement {
|
|
|
28816
28885
|
}
|
|
28817
28886
|
};
|
|
28818
28887
|
this._snapshooterClickHandler = (e) => {
|
|
28819
|
-
|
|
28888
|
+
avoidHandler12(e);
|
|
28820
28889
|
this.step = "taking" /* Taking */;
|
|
28821
28890
|
};
|
|
28822
28891
|
this._pickerClickHandler = (e) => {
|
|
28823
|
-
|
|
28892
|
+
avoidHandler12(e);
|
|
28824
28893
|
this._grabber.click();
|
|
28825
28894
|
};
|
|
28826
28895
|
this._takerClickHandler = (e) => {
|
|
28827
|
-
|
|
28896
|
+
avoidHandler12(e);
|
|
28828
28897
|
this._countdown = 0;
|
|
28829
28898
|
this._shutter();
|
|
28830
28899
|
};
|
|
28831
28900
|
this._timerClickHandler = (e) => {
|
|
28832
|
-
|
|
28901
|
+
avoidHandler12(e);
|
|
28833
28902
|
this._countdown = 3;
|
|
28834
28903
|
this._shutter();
|
|
28835
28904
|
};
|
|
28836
28905
|
this._confirmerClickHandler = (e) => {
|
|
28837
|
-
|
|
28906
|
+
avoidHandler12(e);
|
|
28838
28907
|
this.changeHandler(new ConfirmSnapshotEvent(this._buffer));
|
|
28839
28908
|
};
|
|
28840
28909
|
}
|
|
@@ -29406,7 +29475,7 @@ var PacemImageInputElement = class extends PacemBaseElement {
|
|
|
29406
29475
|
return this.value;
|
|
29407
29476
|
}
|
|
29408
29477
|
_edit(evt) {
|
|
29409
|
-
|
|
29478
|
+
avoidHandler13(evt);
|
|
29410
29479
|
var editImage = this._editImage, state = this.value;
|
|
29411
29480
|
editImage.disabled = false;
|
|
29412
29481
|
editImage.reset();
|
|
@@ -29528,13 +29597,13 @@ PacemNumberInputElement = __decorateClass([
|
|
|
29528
29597
|
], PacemNumberInputElement);
|
|
29529
29598
|
|
|
29530
29599
|
// packages/scaffolding/src/input-password.ts
|
|
29531
|
-
import { P as P72, PCSS as PCSS51, CustomElement as CustomElement70, avoidHandler as
|
|
29600
|
+
import { P as P72, PCSS as PCSS51, CustomElement as CustomElement70, avoidHandler as avoidHandler14, Defaults as Defaults37, ViewChild as ViewChild41, Utils as Utils81 } from "@pacem/pacem-core";
|
|
29532
29601
|
var PacemPasswordInputElement = class extends PacemTextualInputElement {
|
|
29533
29602
|
constructor() {
|
|
29534
29603
|
super();
|
|
29535
29604
|
this._togglerMousedownHandler = (evt) => {
|
|
29536
29605
|
if (evt.button == 0) {
|
|
29537
|
-
|
|
29606
|
+
avoidHandler14(evt);
|
|
29538
29607
|
this.toggleVisibility();
|
|
29539
29608
|
}
|
|
29540
29609
|
};
|
|
@@ -30305,7 +30374,7 @@ PacemSelectElement = __decorateClass([
|
|
|
30305
30374
|
|
|
30306
30375
|
// packages/scaffolding/src/slider.ts
|
|
30307
30376
|
import { Components as ComponentsUI5 } from "@pacem/pacem-ui";
|
|
30308
|
-
import { P as P83, PCSS as PCSS61, ViewChild as ViewChild51, CustomElement as CustomElement81, Watch as Watch73, Utils as Utils92, PropertyConverters as PropertyConverters70, Defaults as Defaults48, avoidHandler as
|
|
30377
|
+
import { P as P83, PCSS as PCSS61, ViewChild as ViewChild51, CustomElement as CustomElement81, Watch as Watch73, Utils as Utils92, PropertyConverters as PropertyConverters70, Defaults as Defaults48, avoidHandler as avoidHandler15, Components as Components59, UI as UI11 } from "@pacem/pacem-core";
|
|
30309
30378
|
var PacemSliderElement = class extends PacemBaseElement {
|
|
30310
30379
|
constructor() {
|
|
30311
30380
|
super(...arguments);
|
|
@@ -30332,7 +30401,7 @@ var PacemSliderElement = class extends PacemBaseElement {
|
|
|
30332
30401
|
case 39:
|
|
30333
30402
|
// right
|
|
30334
30403
|
case 37:
|
|
30335
|
-
|
|
30404
|
+
avoidHandler15(evt);
|
|
30336
30405
|
let forward = evt.keyCode === 39;
|
|
30337
30406
|
let step = (typeof this.step !== "number" ? 1 : this.step) * (forward ? 1 : -1);
|
|
30338
30407
|
let cease = false;
|
|
@@ -30575,7 +30644,7 @@ PacemSliderElement = __decorateClass([
|
|
|
30575
30644
|
], PacemSliderElement);
|
|
30576
30645
|
|
|
30577
30646
|
// packages/scaffolding/src/suggest.ts
|
|
30578
|
-
import { CustomTypedEvent as CustomTypedEvent10, CustomElement as CustomElement82, Watch as Watch74, ViewChild as ViewChild52, Defaults as Defaults49, PCSS as PCSS62, P as P84, Components as Components60, PropertyConverters as PropertyConverters71, Utils as Utils93, avoidHandler as
|
|
30647
|
+
import { CustomTypedEvent as CustomTypedEvent10, CustomElement as CustomElement82, Watch as Watch74, ViewChild as ViewChild52, Defaults as Defaults49, PCSS as PCSS62, P as P84, Components as Components60, PropertyConverters as PropertyConverters71, Utils as Utils93, avoidHandler as avoidHandler16, Logging as Logging12, CustomElementUtils as CustomElementUtils23 } from "@pacem/pacem-core";
|
|
30579
30648
|
import { Components as ComponentsUI6 } from "@pacem/pacem-ui";
|
|
30580
30649
|
var SuggestionSelectEvent = class extends CustomTypedEvent10 {
|
|
30581
30650
|
constructor(value2) {
|
|
@@ -30622,7 +30691,7 @@ var PacemSuggestElement = class extends PacemDataSourceElement {
|
|
|
30622
30691
|
};
|
|
30623
30692
|
this._keyupHandler = (evt) => {
|
|
30624
30693
|
if (__privateGet(this, _keyupManaged)) {
|
|
30625
|
-
|
|
30694
|
+
avoidHandler16(evt);
|
|
30626
30695
|
__privateSet(this, _keyupManaged, false);
|
|
30627
30696
|
}
|
|
30628
30697
|
};
|
|
@@ -30652,11 +30721,11 @@ var PacemSuggestElement = class extends PacemDataSourceElement {
|
|
|
30652
30721
|
if (!Utils93.isNull(el)) {
|
|
30653
30722
|
switch (evt.keyCode) {
|
|
30654
30723
|
case 40:
|
|
30655
|
-
|
|
30724
|
+
avoidHandler16(evt);
|
|
30656
30725
|
this._focus(el);
|
|
30657
30726
|
break;
|
|
30658
30727
|
case 13:
|
|
30659
|
-
|
|
30728
|
+
avoidHandler16(evt);
|
|
30660
30729
|
managed = true;
|
|
30661
30730
|
if (__privateGet(this, _datasource).length === 1) {
|
|
30662
30731
|
this._select(el);
|
|
@@ -30671,7 +30740,7 @@ var PacemSuggestElement = class extends PacemDataSourceElement {
|
|
|
30671
30740
|
const skipPredicate = (e) => !Utils93.isNull(e) && e.localName === "li" && e.dataset["pacemDisabled"] === "true", matchPredicate = (e) => !Utils93.isNull(e) && e.localName === "li" && e.dataset["pacemDisabled"] !== "true";
|
|
30672
30741
|
switch (evt.keyCode) {
|
|
30673
30742
|
case 38:
|
|
30674
|
-
|
|
30743
|
+
avoidHandler16(evt);
|
|
30675
30744
|
do {
|
|
30676
30745
|
cursor = cursor.previousElementSibling;
|
|
30677
30746
|
if (matchPredicate(cursor)) {
|
|
@@ -30682,7 +30751,7 @@ var PacemSuggestElement = class extends PacemDataSourceElement {
|
|
|
30682
30751
|
target ??= li;
|
|
30683
30752
|
break;
|
|
30684
30753
|
case 40:
|
|
30685
|
-
|
|
30754
|
+
avoidHandler16(evt);
|
|
30686
30755
|
do {
|
|
30687
30756
|
cursor = cursor.nextElementSibling;
|
|
30688
30757
|
if (matchPredicate(cursor)) {
|
|
@@ -30693,13 +30762,13 @@ var PacemSuggestElement = class extends PacemDataSourceElement {
|
|
|
30693
30762
|
target ??= li;
|
|
30694
30763
|
break;
|
|
30695
30764
|
case 27:
|
|
30696
|
-
|
|
30765
|
+
avoidHandler16(evt);
|
|
30697
30766
|
this._undo();
|
|
30698
30767
|
this.popout();
|
|
30699
30768
|
break;
|
|
30700
30769
|
case 9:
|
|
30701
30770
|
case 13:
|
|
30702
|
-
|
|
30771
|
+
avoidHandler16(evt);
|
|
30703
30772
|
managed = true;
|
|
30704
30773
|
this._select();
|
|
30705
30774
|
break;
|
|
@@ -30709,7 +30778,7 @@ var PacemSuggestElement = class extends PacemDataSourceElement {
|
|
|
30709
30778
|
}
|
|
30710
30779
|
};
|
|
30711
30780
|
this._selectHandler = (evt) => {
|
|
30712
|
-
|
|
30781
|
+
avoidHandler16(evt);
|
|
30713
30782
|
this._select(evt.currentTarget);
|
|
30714
30783
|
};
|
|
30715
30784
|
__privateAdd(this, _selectedItem);
|
|
@@ -37614,7 +37683,7 @@ __export(index_components_drawing_exports, {
|
|
|
37614
37683
|
import { Components as Components71, CustomElementUtils as CustomElementUtils32, PropertyConverters as PropertyConverters93, Watch as Watch96 } from "@pacem/pacem-core";
|
|
37615
37684
|
|
|
37616
37685
|
// packages/2d/src/stage.ts
|
|
37617
|
-
import { CustomElement as CustomElement105, Watch as Watch95, ViewChild as ViewChild58, Debounce as Debounce19, PCSS as PCSS75, P as P107, Utils as Utils115, PropertyConverters as PropertyConverters92, PropertyChangeEvent as PropertyChangeEvent23, CustomEventUtils as CustomEventUtils9, avoidHandler as
|
|
37686
|
+
import { CustomElement as CustomElement105, Watch as Watch95, ViewChild as ViewChild58, Debounce as Debounce19, PCSS as PCSS75, P as P107, Utils as Utils115, PropertyConverters as PropertyConverters92, PropertyChangeEvent as PropertyChangeEvent23, CustomEventUtils as CustomEventUtils9, avoidHandler as avoidHandler17, EventKeyModifier as EventKeyModifier2, Components as Components70 } from "@pacem/pacem-core";
|
|
37618
37687
|
import { Rect as Rect8, Matrix2D as Matrix2D9 } from "@pacem/pacem-foundation";
|
|
37619
37688
|
|
|
37620
37689
|
// packages/2d/src/constants.ts
|
|
@@ -37674,7 +37743,7 @@ var Pacem2DElement = class extends Components70.PacemItemsContainerElement {
|
|
|
37674
37743
|
}
|
|
37675
37744
|
const opts = __privateGet(this, _options2);
|
|
37676
37745
|
if (opts.zoomControl && CustomEventUtils9.matchModifiers(evt, opts.zoomModifiers)) {
|
|
37677
|
-
|
|
37746
|
+
avoidHandler17(evt);
|
|
37678
37747
|
const zoomingOut = evt.deltaY < 0;
|
|
37679
37748
|
const factor = 0.1, sign = zoomingOut ? -1 : 1, factorWSign = factor * sign, scale = 1 + factorWSign;
|
|
37680
37749
|
const stageRect = Utils115.offsetRect(evt.currentTarget), pt = { x: evt.clientX, y: evt.clientY };
|
|
@@ -37684,7 +37753,7 @@ var Pacem2DElement = class extends Components70.PacemItemsContainerElement {
|
|
|
37684
37753
|
this._panHandler = (evt) => {
|
|
37685
37754
|
const state = __privateGet(this, _panningStart), actual = this._getPanPoint(evt);
|
|
37686
37755
|
if (!Utils115.isNullOrEmpty(state && state.point) && !Utils115.isNull(actual)) {
|
|
37687
|
-
|
|
37756
|
+
avoidHandler17(evt);
|
|
37688
37757
|
const factor = state.factor, vbox = state.box, start = state.point;
|
|
37689
37758
|
this.viewbox = {
|
|
37690
37759
|
x: vbox.x - factor * (actual.x - start.x),
|
|
@@ -37705,7 +37774,7 @@ var Pacem2DElement = class extends Components70.PacemItemsContainerElement {
|
|
|
37705
37774
|
}
|
|
37706
37775
|
const size = __privateGet(this, _size2), vbox = this.viewbox || { x: 0, y: 0, width: size.width, height: size.height }, start = this._getPanPoint(evt);
|
|
37707
37776
|
if (start) {
|
|
37708
|
-
|
|
37777
|
+
avoidHandler17(evt);
|
|
37709
37778
|
this._stage.style.pointerEvents = "none";
|
|
37710
37779
|
const aspectRatio = this._getActualAspectRatio();
|
|
37711
37780
|
const wBased = vbox.width / size.width, hBased = vbox.height / size.height, factor = aspectRatio.slice ? Math.min(wBased, hBased) : Math.max(wBased, hBased);
|
|
@@ -38889,7 +38958,7 @@ var AdapterUtils = class {
|
|
|
38889
38958
|
};
|
|
38890
38959
|
|
|
38891
38960
|
// packages/2d/src/adapters/canvasadapter.ts
|
|
38892
|
-
import { CustomElement as CustomElement115, P as P117, CustomElementUtils as CustomElementUtils33, Utils as Utils126, Logging as Logging15, CustomEventUtils as CustomEventUtils10, UI as UI13, avoidHandler as
|
|
38961
|
+
import { CustomElement as CustomElement115, P as P117, CustomElementUtils as CustomElementUtils33, Utils as Utils126, Logging as Logging15, CustomEventUtils as CustomEventUtils10, UI as UI13, avoidHandler as avoidHandler18 } from "@pacem/pacem-core";
|
|
38893
38962
|
import { Matrix2D as Matrix2D11, Rect as Rect12 } from "@pacem/pacem-foundation";
|
|
38894
38963
|
|
|
38895
38964
|
// packages/2d/src/adapter.ts
|
|
@@ -38960,7 +39029,7 @@ var PacemCanvasAdapterElement = class extends Pacem2DAdapterElement {
|
|
|
38960
39029
|
}
|
|
38961
39030
|
};
|
|
38962
39031
|
this._draggingHandler = (evt) => {
|
|
38963
|
-
|
|
39032
|
+
avoidHandler18(evt);
|
|
38964
39033
|
this._dragging = true;
|
|
38965
39034
|
const args = evt.detail;
|
|
38966
39035
|
const data = args.data;
|
|
@@ -39472,7 +39541,7 @@ PacemCanvasAdapterElement = __decorateClass([
|
|
|
39472
39541
|
], PacemCanvasAdapterElement);
|
|
39473
39542
|
|
|
39474
39543
|
// packages/2d/src/adapters/svgadapter.ts
|
|
39475
|
-
import { CustomElement as CustomElement116, P as P118, CustomElementUtils as CustomElementUtils34, CustomEventUtils as CustomEventUtils11, Utils as Utils127, UI as UI14, avoidHandler as
|
|
39544
|
+
import { CustomElement as CustomElement116, P as P118, CustomElementUtils as CustomElementUtils34, CustomEventUtils as CustomEventUtils11, Utils as Utils127, UI as UI14, avoidHandler as avoidHandler19 } from "@pacem/pacem-core";
|
|
39476
39545
|
import { Matrix2D as Matrix2D12 } from "@pacem/pacem-foundation";
|
|
39477
39546
|
var SVG_NS5 = "http://www.w3.org/2000/svg";
|
|
39478
39547
|
var DRAWABLE_VAR = "pacem:2-svg-drawable";
|
|
@@ -39511,7 +39580,7 @@ var PacemSvgAdapterElement = class extends Pacem2DAdapterElement {
|
|
|
39511
39580
|
}
|
|
39512
39581
|
};
|
|
39513
39582
|
this._draggingHandler = (evt) => {
|
|
39514
|
-
|
|
39583
|
+
avoidHandler19(evt);
|
|
39515
39584
|
__privateSet(this, _dragging, true);
|
|
39516
39585
|
const el = evt.detail.element;
|
|
39517
39586
|
const data = evt.detail.data;
|
|
@@ -46393,7 +46462,7 @@ import {
|
|
|
46393
46462
|
PropertyConverters as PropertyConverters118,
|
|
46394
46463
|
Utils as Utils149,
|
|
46395
46464
|
CustomEventUtils as CustomEventUtils13,
|
|
46396
|
-
avoidHandler as
|
|
46465
|
+
avoidHandler as avoidHandler20,
|
|
46397
46466
|
Behaviors as Behaviors2,
|
|
46398
46467
|
PropertyChangeEventName as PropertyChangeEventName18
|
|
46399
46468
|
} from "@pacem/pacem-core";
|
|
@@ -46460,15 +46529,15 @@ var OrbitCameraBehavior = class _OrbitCameraBehavior {
|
|
|
46460
46529
|
Utils149.extend(this._input, Vector3D14.zero());
|
|
46461
46530
|
this._progress.x = this._progress.y = 0;
|
|
46462
46531
|
}
|
|
46463
|
-
|
|
46532
|
+
avoidHandler20(evt);
|
|
46464
46533
|
window.clearTimeout(this.#handle);
|
|
46465
46534
|
window.addEventListener("pointerup", this._endHandler, false);
|
|
46466
46535
|
window.addEventListener("pointermove", this._moveHandler, false);
|
|
46467
46536
|
window.addEventListener("contextmenu", this._avoidHandler, false);
|
|
46468
46537
|
};
|
|
46469
|
-
this._avoidHandler = (evt) =>
|
|
46538
|
+
this._avoidHandler = (evt) => avoidHandler20(evt);
|
|
46470
46539
|
this._endHandler = (evt) => {
|
|
46471
|
-
|
|
46540
|
+
avoidHandler20(evt);
|
|
46472
46541
|
this.#handle = window.setTimeout(() => {
|
|
46473
46542
|
window.removeEventListener("pointerup", this._endHandler);
|
|
46474
46543
|
window.removeEventListener("pointermove", this._moveHandler);
|
|
@@ -46481,12 +46550,12 @@ var OrbitCameraBehavior = class _OrbitCameraBehavior {
|
|
|
46481
46550
|
if (!zooming) {
|
|
46482
46551
|
return;
|
|
46483
46552
|
}
|
|
46484
|
-
|
|
46553
|
+
avoidHandler20(evt);
|
|
46485
46554
|
const coords = this._input;
|
|
46486
46555
|
coords.rho -= Math.sign(evt.deltaY);
|
|
46487
46556
|
};
|
|
46488
46557
|
this._moveHandler = (evt) => {
|
|
46489
|
-
|
|
46558
|
+
avoidHandler20(evt);
|
|
46490
46559
|
const { height, width } = this._scene.size;
|
|
46491
46560
|
const coords = this._input;
|
|
46492
46561
|
const size = Math.min(height, width);
|
|
@@ -46811,7 +46880,7 @@ import {
|
|
|
46811
46880
|
PropertyConverters as PropertyConverters120,
|
|
46812
46881
|
Utils as Utils150,
|
|
46813
46882
|
CustomElementUtils as CustomElementUtils37,
|
|
46814
|
-
avoidHandler as
|
|
46883
|
+
avoidHandler as avoidHandler21,
|
|
46815
46884
|
Debounce as Debounce21,
|
|
46816
46885
|
ViewChild as ViewChild60,
|
|
46817
46886
|
Components as Components75,
|
|
@@ -46931,7 +47000,7 @@ var PacemContextMenuElement = class extends Components75.PacemItemsContainerElem
|
|
|
46931
47000
|
constructor() {
|
|
46932
47001
|
super(...arguments);
|
|
46933
47002
|
this._dispatchCommand = (e) => {
|
|
46934
|
-
|
|
47003
|
+
avoidHandler21(e);
|
|
46935
47004
|
this._onCommand(new CommandEvent5({ commandName: e.detail.commandName, commandArgument: e.detail.commandArgument ?? this.commandArgument }));
|
|
46936
47005
|
};
|
|
46937
47006
|
__privateAdd(this, _btn2);
|
|
@@ -47155,7 +47224,7 @@ import {
|
|
|
47155
47224
|
Utils as Utils151,
|
|
47156
47225
|
PropertyChangeEventName as PropertyChangeEventName19,
|
|
47157
47226
|
Components as Components76,
|
|
47158
|
-
avoidHandler as
|
|
47227
|
+
avoidHandler as avoidHandler22
|
|
47159
47228
|
} from "@pacem/pacem-core";
|
|
47160
47229
|
import { Components as UIComponents3 } from "@pacem/pacem-ui";
|
|
47161
47230
|
import { Components as ScaffoldingComponents } from "@pacem/pacem-scaffolding";
|
|
@@ -47410,7 +47479,7 @@ var PacemEditElement = class extends Components76.PacemElement {
|
|
|
47410
47479
|
* is restored.
|
|
47411
47480
|
*/
|
|
47412
47481
|
edit(evt) {
|
|
47413
|
-
|
|
47482
|
+
avoidHandler22(evt);
|
|
47414
47483
|
var cnt = this._target;
|
|
47415
47484
|
if (Utils151.isNull(cnt))
|
|
47416
47485
|
return;
|
|
@@ -47657,7 +47726,7 @@ PacemGalleryElement = __decorateClass([
|
|
|
47657
47726
|
], PacemGalleryElement);
|
|
47658
47727
|
|
|
47659
47728
|
// packages/plus/src/modal-form.ts
|
|
47660
|
-
import { CustomElement as CustomElement137, Defaults as Defaults57, P as P140, PCSS as PCSS80, Watch as Watch127, PropertyConverters as PropertyConverters123, ViewChild as ViewChild62, Utils as Utils153, Net as Net11, avoidHandler as
|
|
47729
|
+
import { CustomElement as CustomElement137, Defaults as Defaults57, P as P140, PCSS as PCSS80, Watch as Watch127, PropertyConverters as PropertyConverters123, ViewChild as ViewChild62, Utils as Utils153, Net as Net11, avoidHandler as avoidHandler23 } from "@pacem/pacem-core";
|
|
47661
47730
|
import { Components as UIComponents5 } from "@pacem/pacem-ui";
|
|
47662
47731
|
import { Components as ScaffoldingComponents2 } from "@pacem/pacem-scaffolding";
|
|
47663
47732
|
var UI19 = UIComponents5.UI;
|
|
@@ -47697,7 +47766,7 @@ var PacemModalFormElement = class extends UI19.PacemDialogBase {
|
|
|
47697
47766
|
if (this.readonly) {
|
|
47698
47767
|
this.commit(UI19.DialogButton.Ok, evt);
|
|
47699
47768
|
} else {
|
|
47700
|
-
|
|
47769
|
+
avoidHandler23(evt);
|
|
47701
47770
|
this._form.validate().then((valid) => {
|
|
47702
47771
|
if (valid) {
|
|
47703
47772
|
if (Utils153.isNullOrEmpty(this.action)) {
|
|
@@ -48278,7 +48347,7 @@ var PacemDataCellElement = class extends PacemBaseCellElement {
|
|
|
48278
48347
|
const culture = Utils156.lang(this);
|
|
48279
48348
|
switch (metadata.dataType) {
|
|
48280
48349
|
case "boolean":
|
|
48281
|
-
return `<${P144}-icon icon="
|
|
48350
|
+
return `<${P144}-icon icon="${!plainValue ? "radio_button_unchecked icon-outline" : "check_circle_outline icon-fill"} icon-size icon-size-2"></${P144}-icon>`;
|
|
48282
48351
|
case "time":
|
|
48283
48352
|
case "date":
|
|
48284
48353
|
case "datetime":
|