@pacem/pacem 1.0.0-bernoulli → 1.0.0-bessel
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/README.md +3 -3
- package/dist/browser/pacem-2d.js +1 -1
- package/dist/browser/pacem-2d.min.js +1 -2
- package/dist/browser/pacem-3d.js +1 -1
- package/dist/browser/pacem-3d.min.js +1 -2
- package/dist/browser/pacem-charts.js +1 -1
- package/dist/browser/pacem-charts.min.js +1 -2
- package/dist/browser/pacem-cms.js +1 -1
- package/dist/browser/pacem-cms.min.js +1 -2
- package/dist/browser/pacem-core.js +50 -24
- package/dist/browser/pacem-core.js.map +1 -1
- package/dist/browser/pacem-core.min.js +2 -3
- package/dist/browser/pacem-foundation.js +1 -1
- package/dist/browser/pacem-foundation.min.js +1 -2
- package/dist/browser/pacem-fx.js +1 -1
- package/dist/browser/pacem-fx.min.js +1 -2
- package/dist/browser/pacem-logging.js +1 -1
- package/dist/browser/pacem-logging.min.js +1 -2
- package/dist/browser/pacem-maps.js +1 -1
- package/dist/browser/pacem-maps.min.js +1 -2
- package/dist/browser/pacem-media.js +1 -1
- package/dist/browser/pacem-media.min.js +1 -2
- package/dist/browser/pacem-networking.js +1 -1
- package/dist/browser/pacem-networking.min.js +1 -2
- package/dist/browser/pacem-numerical.js +1 -1
- package/dist/browser/pacem-numerical.min.js +1 -2
- package/dist/browser/pacem-plus.js +188 -74
- package/dist/browser/pacem-plus.js.map +1 -1
- package/dist/browser/pacem-plus.min.js +2 -3
- package/dist/browser/pacem-scaffolding.js +1 -1
- package/dist/browser/pacem-scaffolding.min.js +1 -2
- package/dist/browser/pacem-ui.js +24 -2
- package/dist/browser/pacem-ui.js.map +1 -1
- package/dist/browser/pacem-ui.min.js +2 -3
- package/dist/bundle/pacem.min.mjs +184 -184
- package/dist/bundle/pacem.mjs +359 -215
- package/dist/bundle/pacem.mjs.map +4 -4
- package/dist/typings/index.d.ts +64 -11
- package/dist/vscode.html-custom.json +33 -0
- package/package.json +1 -1
- package/dist/browser/pacem-2d.min.js.map +0 -1
- package/dist/browser/pacem-3d.min.js.map +0 -1
- package/dist/browser/pacem-charts.min.js.map +0 -1
- package/dist/browser/pacem-cms.min.js.map +0 -1
- package/dist/browser/pacem-core.min.js.map +0 -1
- package/dist/browser/pacem-foundation.min.js.map +0 -1
- package/dist/browser/pacem-fx.min.js.map +0 -1
- package/dist/browser/pacem-logging.min.js.map +0 -1
- package/dist/browser/pacem-maps.min.js.map +0 -1
- package/dist/browser/pacem-media.min.js.map +0 -1
- package/dist/browser/pacem-networking.min.js.map +0 -1
- package/dist/browser/pacem-numerical.min.js.map +0 -1
- package/dist/browser/pacem-plus.min.js.map +0 -1
- package/dist/browser/pacem-scaffolding.min.js.map +0 -1
- package/dist/browser/pacem-ui.min.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @pacem/pacem v1.0.0-
|
|
2
|
+
* @pacem/pacem v1.0.0-bessel (https://js.pacem.it)
|
|
3
3
|
* Pacem (https://pacem.it)
|
|
4
4
|
* Licensed under Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
(function (pacemFoundation, pacemCore, pacemUi, pacemScaffolding) {
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var __decorate$
|
|
9
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10
10
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11
11
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12
12
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
__decorate$
|
|
44
|
+
__decorate$c([
|
|
45
45
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Json })
|
|
46
46
|
], PacemBaseCellElement.prototype, "metadata", void 0);
|
|
47
|
-
__decorate$
|
|
47
|
+
__decorate$c([
|
|
48
48
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Json })
|
|
49
49
|
], PacemBaseCellElement.prototype, "state", void 0);
|
|
50
|
-
__decorate$
|
|
50
|
+
__decorate$c([
|
|
51
51
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Json })
|
|
52
52
|
], PacemBaseCellElement.prototype, "gridState", void 0);
|
|
53
53
|
|
|
54
|
-
var __decorate$
|
|
54
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
55
55
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
56
56
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
57
57
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
return metadata;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
__decorate$
|
|
98
|
+
__decorate$b([
|
|
99
99
|
pacemCore.Transformer('datagrids.localizeMetadata')
|
|
100
100
|
], DataGrids, "localizeMetadata", null);
|
|
101
101
|
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
PacemBaseCellElement: PacemBaseCellElement
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
-
var __decorate$
|
|
113
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
114
114
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
115
115
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
116
116
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -124,19 +124,19 @@
|
|
|
124
124
|
this.interval = 4000;
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
|
-
__decorate$
|
|
127
|
+
__decorate$a([
|
|
128
128
|
pacemCore.ViewChild(pacemCore.P + '-adapter')
|
|
129
129
|
], PacemCarouselElement.prototype, "adapter", void 0);
|
|
130
|
-
__decorate$
|
|
130
|
+
__decorate$a([
|
|
131
131
|
pacemCore.ViewChild(pacemCore.P + '-slideshow')
|
|
132
132
|
], PacemCarouselElement.prototype, "slideshow", void 0);
|
|
133
|
-
__decorate$
|
|
133
|
+
__decorate$a([
|
|
134
134
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Number })
|
|
135
135
|
], PacemCarouselElement.prototype, "interval", void 0);
|
|
136
|
-
__decorate$
|
|
136
|
+
__decorate$a([
|
|
137
137
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Boolean })
|
|
138
138
|
], PacemCarouselElement.prototype, "pausable", void 0);
|
|
139
|
-
PacemCarouselElement = __decorate$
|
|
139
|
+
PacemCarouselElement = __decorate$a([
|
|
140
140
|
pacemCore.CustomElement({
|
|
141
141
|
tagName: pacemCore.P + '-carousel', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
142
142
|
template: `<${pacemCore.P}-repeater datasource="{{ :host.datasource }}">
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
})
|
|
164
164
|
], PacemCarouselElement);
|
|
165
165
|
|
|
166
|
-
var __decorate$
|
|
166
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
167
167
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
168
168
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
169
169
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -199,31 +199,31 @@
|
|
|
199
199
|
return retval;
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
|
-
__decorate$
|
|
202
|
+
__decorate$9([
|
|
203
203
|
pacemCore.Watch({ emit: false, /* important */ reflectBack: true, converter: pacemCore.PropertyConverters.String })
|
|
204
204
|
], PacemContextMenuItemCommandElement.prototype, "commandName", void 0);
|
|
205
|
-
__decorate$
|
|
205
|
+
__decorate$9([
|
|
206
206
|
pacemCore.Watch({ emit: false, /* important */ reflectBack: true, converter: pacemCore.PropertyConverters.String })
|
|
207
207
|
], PacemContextMenuItemCommandElement.prototype, "caption", void 0);
|
|
208
|
-
__decorate$
|
|
208
|
+
__decorate$9([
|
|
209
209
|
pacemCore.Watch({ emit: false, /* important */ reflectBack: true, converter: pacemCore.PropertyConverters.String })
|
|
210
210
|
], PacemContextMenuItemCommandElement.prototype, "tooltip", void 0);
|
|
211
|
-
__decorate$
|
|
211
|
+
__decorate$9([
|
|
212
212
|
pacemCore.Watch({ emit: false, /* important */ reflectBack: true, converter: pacemCore.PropertyConverters.String })
|
|
213
213
|
], PacemContextMenuItemCommandElement.prototype, "iconGlyph", void 0);
|
|
214
|
-
__decorate$
|
|
214
|
+
__decorate$9([
|
|
215
215
|
pacemCore.Watch({ emit: false, /* important */ reflectBack: true, converter: pacemCore.PropertyConverters.StringArray })
|
|
216
216
|
], PacemContextMenuItemCommandElement.prototype, "buttonCssClass", void 0);
|
|
217
|
-
__decorate$
|
|
217
|
+
__decorate$9([
|
|
218
218
|
pacemCore.Watch({ emit: false, /* important */ reflectBack: true, converter: pacemCore.PropertyConverters.String })
|
|
219
219
|
], PacemContextMenuItemCommandElement.prototype, "confirmationMessage", void 0);
|
|
220
|
-
__decorate$
|
|
220
|
+
__decorate$9([
|
|
221
221
|
pacemCore.Watch({ emit: false, /* important */ reflectBack: true, converter: pacemCore.PropertyConverters.Element })
|
|
222
222
|
], PacemContextMenuItemCommandElement.prototype, "confirmationDialog", void 0);
|
|
223
|
-
__decorate$
|
|
223
|
+
__decorate$9([
|
|
224
224
|
pacemCore.Watch({ emit: false, /* important */ reflectBack: true, converter: pacemCore.PropertyConverters.Json })
|
|
225
225
|
], PacemContextMenuItemCommandElement.prototype, "commandArgument", void 0);
|
|
226
|
-
PacemContextMenuItemCommandElement = __decorate$
|
|
226
|
+
PacemContextMenuItemCommandElement = __decorate$9([
|
|
227
227
|
pacemCore.CustomElement({ tagName: pacemCore.P + '-context-menuitem-command' })
|
|
228
228
|
], PacemContextMenuItemCommandElement);
|
|
229
229
|
let PacemContextMenuItemSeparatorElement = class PacemContextMenuItemSeparatorElement extends PacemContextMenuItemElement {
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
return retval;
|
|
234
234
|
}
|
|
235
235
|
};
|
|
236
|
-
PacemContextMenuItemSeparatorElement = __decorate$
|
|
236
|
+
PacemContextMenuItemSeparatorElement = __decorate$9([
|
|
237
237
|
pacemCore.CustomElement({ tagName: pacemCore.P + '-context-menuitem-separator' })
|
|
238
238
|
], PacemContextMenuItemSeparatorElement);
|
|
239
239
|
// <${P}-button class="button-flat ${PCSS}-margin margin-0"><${P}-icon icon="{{ :host.icon || 'more_horiz' }}"></${P}-icon></${P}-button>
|
|
@@ -431,26 +431,26 @@
|
|
|
431
431
|
this._disposeBalloonChildren(cursor);
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
|
-
__decorate$
|
|
434
|
+
__decorate$9([
|
|
435
435
|
pacemCore.ViewChild('slot[name=button]')
|
|
436
436
|
], PacemContextMenuElement.prototype, "_slot", void 0);
|
|
437
|
-
__decorate$
|
|
437
|
+
__decorate$9([
|
|
438
438
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Json })
|
|
439
439
|
], PacemContextMenuElement.prototype, "commandArgument", void 0);
|
|
440
|
-
__decorate$
|
|
440
|
+
__decorate$9([
|
|
441
441
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.String })
|
|
442
442
|
], PacemContextMenuElement.prototype, "icon", void 0);
|
|
443
|
-
__decorate$
|
|
443
|
+
__decorate$9([
|
|
444
444
|
pacemCore.Debounce(true)
|
|
445
445
|
], PacemContextMenuElement.prototype, "_refreshMenuItems", null);
|
|
446
|
-
PacemContextMenuElement = __decorate$
|
|
446
|
+
PacemContextMenuElement = __decorate$9([
|
|
447
447
|
pacemCore.CustomElement({
|
|
448
448
|
tagName: pacemCore.P + '-context-menu', shadow: true,
|
|
449
449
|
template: `<slot name="button"></slot><slot></slot>`
|
|
450
450
|
})
|
|
451
451
|
], PacemContextMenuElement);
|
|
452
452
|
|
|
453
|
-
var __decorate$
|
|
453
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
454
454
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
455
455
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
456
456
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -754,37 +754,37 @@
|
|
|
754
754
|
});
|
|
755
755
|
}
|
|
756
756
|
};
|
|
757
|
-
__decorate$
|
|
757
|
+
__decorate$8([
|
|
758
758
|
pacemCore.Watch({ emit: false, converter: pacemCore.PropertyConverters.String })
|
|
759
759
|
], PacemEditElement.prototype, "key", void 0);
|
|
760
|
-
__decorate$
|
|
760
|
+
__decorate$8([
|
|
761
761
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.String })
|
|
762
762
|
], PacemEditElement.prototype, "type", void 0);
|
|
763
|
-
__decorate$
|
|
763
|
+
__decorate$8([
|
|
764
764
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Element })
|
|
765
765
|
], PacemEditElement.prototype, "target", void 0);
|
|
766
|
-
__decorate$
|
|
766
|
+
__decorate$8([
|
|
767
767
|
pacemCore.Watch({ emit: false, converter: pacemCore.PropertyConverters.String })
|
|
768
768
|
], PacemEditElement.prototype, "imageUploadUrl", void 0);
|
|
769
|
-
__decorate$
|
|
769
|
+
__decorate$8([
|
|
770
770
|
pacemCore.Watch({ emit: false })
|
|
771
771
|
], PacemEditElement.prototype, "imageSet", void 0);
|
|
772
|
-
__decorate$
|
|
772
|
+
__decorate$8([
|
|
773
773
|
pacemCore.Watch({ emit: false, converter: pacemCore.PropertyConverters.Number })
|
|
774
774
|
], PacemEditElement.prototype, "maxImageWidth", void 0);
|
|
775
|
-
__decorate$
|
|
775
|
+
__decorate$8([
|
|
776
776
|
pacemCore.Watch({ emit: false, converter: pacemCore.PropertyConverters.Number })
|
|
777
777
|
], PacemEditElement.prototype, "maxImageHeight", void 0);
|
|
778
|
-
__decorate$
|
|
778
|
+
__decorate$8([
|
|
779
779
|
pacemCore.Watch({ emit: false, converter: pacemCore.PropertyConverters.Boolean })
|
|
780
780
|
], PacemEditElement.prototype, "allowSnapshot", void 0);
|
|
781
|
-
PacemEditElement = __decorate$
|
|
781
|
+
PacemEditElement = __decorate$8([
|
|
782
782
|
pacemCore.CustomElement({
|
|
783
783
|
tagName: pacemCore.P + '-edit'
|
|
784
784
|
})
|
|
785
785
|
], PacemEditElement);
|
|
786
786
|
|
|
787
|
-
var __decorate$
|
|
787
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
788
788
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
789
789
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
790
790
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -922,37 +922,37 @@ ${captionTemplate}
|
|
|
922
922
|
});
|
|
923
923
|
}
|
|
924
924
|
};
|
|
925
|
-
__decorate$
|
|
925
|
+
__decorate$7([
|
|
926
926
|
pacemCore.ViewChild(pacemCore.P + '-adapter')
|
|
927
927
|
], PacemGalleryElement.prototype, "_adapter", void 0);
|
|
928
|
-
__decorate$
|
|
928
|
+
__decorate$7([
|
|
929
929
|
pacemCore.ViewChild(pacemCore.P + '-lightbox')
|
|
930
930
|
], PacemGalleryElement.prototype, "_lightbox", void 0);
|
|
931
|
-
__decorate$
|
|
931
|
+
__decorate$7([
|
|
932
932
|
pacemCore.ViewChild(pacemCore.P + '-slideshow')
|
|
933
933
|
], PacemGalleryElement.prototype, "_slideshow", void 0);
|
|
934
|
-
__decorate$
|
|
934
|
+
__decorate$7([
|
|
935
935
|
pacemCore.ViewChild(pacemCore.P + '-repeater')
|
|
936
936
|
], PacemGalleryElement.prototype, "_repeater", void 0);
|
|
937
|
-
__decorate$
|
|
937
|
+
__decorate$7([
|
|
938
938
|
pacemCore.ViewChild(pacemCore.P + '-template-proxy')
|
|
939
939
|
], PacemGalleryElement.prototype, "_templateProxy", void 0);
|
|
940
|
-
__decorate$
|
|
940
|
+
__decorate$7([
|
|
941
941
|
pacemCore.ViewChild(pacemCore.P + '-shell-proxy')
|
|
942
942
|
], PacemGalleryElement.prototype, "_heroPlaceholderProxy", void 0);
|
|
943
|
-
__decorate$
|
|
943
|
+
__decorate$7([
|
|
944
944
|
pacemCore.Watch()
|
|
945
945
|
], PacemGalleryElement.prototype, "_poppingUp", void 0);
|
|
946
|
-
__decorate$
|
|
946
|
+
__decorate$7([
|
|
947
947
|
pacemCore.Watch({ emit: false, converter: pacemCore.PropertyConverters.Element })
|
|
948
948
|
], PacemGalleryElement.prototype, "captionTemplate", void 0);
|
|
949
|
-
__decorate$
|
|
949
|
+
__decorate$7([
|
|
950
950
|
pacemCore.Watch({ emit: false, converter: pacemCore.PropertyConverters.String })
|
|
951
951
|
], PacemGalleryElement.prototype, "captionProperty", void 0);
|
|
952
|
-
__decorate$
|
|
952
|
+
__decorate$7([
|
|
953
953
|
pacemCore.Watch({ emit: false, converter: pacemCore.PropertyConverters.String })
|
|
954
954
|
], PacemGalleryElement.prototype, "imageProperty", void 0);
|
|
955
|
-
PacemGalleryElement = __decorate$
|
|
955
|
+
PacemGalleryElement = __decorate$7([
|
|
956
956
|
pacemCore.CustomElement({
|
|
957
957
|
tagName: pacemCore.P + '-gallery', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
958
958
|
template: `<${pacemCore.P}-lightbox class="${pacemCore.PCSS}-gallery">
|
|
@@ -967,7 +967,7 @@ ${captionTemplate}
|
|
|
967
967
|
})
|
|
968
968
|
], PacemGalleryElement);
|
|
969
969
|
|
|
970
|
-
var __decorate$
|
|
970
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
971
971
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
972
972
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
973
973
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1085,52 +1085,52 @@ ${captionTemplate}
|
|
|
1085
1085
|
};
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
1088
|
-
__decorate$
|
|
1088
|
+
__decorate$6([
|
|
1089
1089
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Boolean })
|
|
1090
1090
|
], PacemModalFormElement.prototype, "suddenValidation", void 0);
|
|
1091
|
-
__decorate$
|
|
1091
|
+
__decorate$6([
|
|
1092
1092
|
pacemCore.Watch({ reflectBack: true, converter: pacemCore.PropertyConverters.String })
|
|
1093
1093
|
], PacemModalFormElement.prototype, "okCaption", void 0);
|
|
1094
|
-
__decorate$
|
|
1094
|
+
__decorate$6([
|
|
1095
1095
|
pacemCore.Watch({ reflectBack: true, converter: pacemCore.PropertyConverters.String })
|
|
1096
1096
|
], PacemModalFormElement.prototype, "cancelCaption", void 0);
|
|
1097
|
-
__decorate$
|
|
1097
|
+
__decorate$6([
|
|
1098
1098
|
pacemCore.Watch({ reflectBack: true, converter: pacemCore.PropertyConverters.String })
|
|
1099
1099
|
], PacemModalFormElement.prototype, "method", void 0);
|
|
1100
|
-
__decorate$
|
|
1100
|
+
__decorate$6([
|
|
1101
1101
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Json })
|
|
1102
1102
|
], PacemModalFormElement.prototype, "metadata", void 0);
|
|
1103
|
-
__decorate$
|
|
1103
|
+
__decorate$6([
|
|
1104
1104
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.String })
|
|
1105
1105
|
], PacemModalFormElement.prototype, "action", void 0);
|
|
1106
|
-
__decorate$
|
|
1106
|
+
__decorate$6([
|
|
1107
1107
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.String })
|
|
1108
1108
|
], PacemModalFormElement.prototype, "loaderType", void 0);
|
|
1109
|
-
__decorate$
|
|
1109
|
+
__decorate$6([
|
|
1110
1110
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Boolean })
|
|
1111
1111
|
], PacemModalFormElement.prototype, "success", void 0);
|
|
1112
|
-
__decorate$
|
|
1112
|
+
__decorate$6([
|
|
1113
1113
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Boolean })
|
|
1114
1114
|
], PacemModalFormElement.prototype, "fail", void 0);
|
|
1115
|
-
__decorate$
|
|
1115
|
+
__decorate$6([
|
|
1116
1116
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Boolean })
|
|
1117
1117
|
], PacemModalFormElement.prototype, "readonly", void 0);
|
|
1118
|
-
__decorate$
|
|
1118
|
+
__decorate$6([
|
|
1119
1119
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Json })
|
|
1120
1120
|
], PacemModalFormElement.prototype, "fetchHeaders", void 0);
|
|
1121
|
-
__decorate$
|
|
1121
|
+
__decorate$6([
|
|
1122
1122
|
pacemCore.Watch({ converter: pacemCore.PropertyConverters.String })
|
|
1123
1123
|
], PacemModalFormElement.prototype, "fetchCredentials", void 0);
|
|
1124
|
-
__decorate$
|
|
1124
|
+
__decorate$6([
|
|
1125
1125
|
pacemCore.ViewChild(pacemCore.P + '-lightbox')
|
|
1126
1126
|
], PacemModalFormElement.prototype, "lightbox", void 0);
|
|
1127
|
-
__decorate$
|
|
1127
|
+
__decorate$6([
|
|
1128
1128
|
pacemCore.ViewChild(pacemCore.P + '-form[entity]')
|
|
1129
1129
|
], PacemModalFormElement.prototype, "_form", void 0);
|
|
1130
|
-
__decorate$
|
|
1130
|
+
__decorate$6([
|
|
1131
1131
|
pacemCore.ViewChild(pacemCore.P + '-fetch')
|
|
1132
1132
|
], PacemModalFormElement.prototype, "_fetcher", void 0);
|
|
1133
|
-
PacemModalFormElement = PacemModalFormElement_1 = __decorate$
|
|
1133
|
+
PacemModalFormElement = PacemModalFormElement_1 = __decorate$6([
|
|
1134
1134
|
pacemCore.CustomElement({
|
|
1135
1135
|
tagName: pacemCore.P + '-modal-form', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
1136
1136
|
template: `<${pacemCore.P}-lightbox modal="true" logger="{{ :host.logger }}">
|
|
@@ -1159,7 +1159,7 @@ ${captionTemplate}
|
|
|
1159
1159
|
})
|
|
1160
1160
|
], PacemModalFormElement);
|
|
1161
1161
|
|
|
1162
|
-
var __decorate$
|
|
1162
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1163
1163
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1164
1164
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1165
1165
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1402,22 +1402,135 @@ ${captionTemplate}
|
|
|
1402
1402
|
this.state = pacemCore.Utils.extend({}, this.state || {}, obj);
|
|
1403
1403
|
}
|
|
1404
1404
|
};
|
|
1405
|
-
__decorate$
|
|
1405
|
+
__decorate$5([
|
|
1406
1406
|
pacemCore.Watch({ emit: false, converter: pacemCore.PropertyConverters.Element })
|
|
1407
1407
|
], PacemRouterHashStateElement.prototype, "router", void 0);
|
|
1408
|
-
__decorate$
|
|
1408
|
+
__decorate$5([
|
|
1409
1409
|
pacemCore.Watch({ emit: false, converter: pacemCore.PropertyConverters.Json })
|
|
1410
1410
|
], PacemRouterHashStateElement.prototype, "default", void 0);
|
|
1411
|
-
__decorate$
|
|
1411
|
+
__decorate$5([
|
|
1412
1412
|
pacemCore.Watch()
|
|
1413
1413
|
], PacemRouterHashStateElement.prototype, "state", void 0);
|
|
1414
|
-
__decorate$
|
|
1414
|
+
__decorate$5([
|
|
1415
1415
|
pacemCore.Watch()
|
|
1416
1416
|
], PacemRouterHashStateElement.prototype, "normalizedState", void 0);
|
|
1417
|
-
PacemRouterHashStateElement = __decorate$
|
|
1417
|
+
PacemRouterHashStateElement = __decorate$5([
|
|
1418
1418
|
pacemCore.CustomElement({ tagName: pacemCore.P + '-router-hash-state' })
|
|
1419
1419
|
], PacemRouterHashStateElement);
|
|
1420
1420
|
|
|
1421
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1422
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1423
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1424
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1425
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1426
|
+
};
|
|
1427
|
+
/**
|
|
1428
|
+
* Bridges a {@link Components.PacemRouterElement}'s persisted scroll position (`state.$scrollY`, populated
|
|
1429
|
+
* when `PacemRouterElement.scrollRestoration` is enabled) with a {@link ComponentsUI.UI.PacemViewElement}'s
|
|
1430
|
+
* content lifecycle: navigating to a new page starts at the top, navigating back restores where the user
|
|
1431
|
+
* left off - without either the router or the view needing to know about the other.
|
|
1432
|
+
*
|
|
1433
|
+
* This listens to the *view*'s `prerender`/`render` events rather than the router's own navigation events,
|
|
1434
|
+
* because `render` only fires once the view's content has stopped resizing (it's debounced against the
|
|
1435
|
+
* view's own resize detection, not just "content was inserted"). That mitigates - though doesn't fully
|
|
1436
|
+
* eliminate - restoring to a scrollTop the page isn't tall enough to reach yet (e.g. images or async
|
|
1437
|
+
* content still loading in): content changes that don't affect the view's own box size won't retrigger it.
|
|
1438
|
+
*/
|
|
1439
|
+
let PacemRouterViewScrollElement = class PacemRouterViewScrollElement extends pacemCore.PacemEventTarget {
|
|
1440
|
+
constructor() {
|
|
1441
|
+
super(...arguments);
|
|
1442
|
+
/** The old content is already gone and the new content hasn't landed yet - jump to the top now, instantly, so the transition never shows a scrolled-down blank/stale view. */
|
|
1443
|
+
this._prerenderHandler = (_) => {
|
|
1444
|
+
pacemCore.Utils.scrollTo(0, false);
|
|
1445
|
+
};
|
|
1446
|
+
/**
|
|
1447
|
+
* New content has landed and its size has settled (see class remarks on `render`'s debounce). Restores the
|
|
1448
|
+
* router's persisted scroll position for this entry, if any: `$scrollY` is `undefined` (or `0`) for a
|
|
1449
|
+
* freshly-pushed page - never explicitly set on push, only captured when *leaving* a page - so this
|
|
1450
|
+
* correctly leaves new pages at the top without any special-casing.
|
|
1451
|
+
*/
|
|
1452
|
+
this._renderHandler = (_) => {
|
|
1453
|
+
const state = this.router?.state;
|
|
1454
|
+
if (state.$scrollY > 0) {
|
|
1455
|
+
const smooth = this.scrollBehavior != 'instant';
|
|
1456
|
+
pacemCore.Utils.scrollTo(state.$scrollY, smooth);
|
|
1457
|
+
}
|
|
1458
|
+
};
|
|
1459
|
+
}
|
|
1460
|
+
viewActivatedCallback() {
|
|
1461
|
+
super.viewActivatedCallback();
|
|
1462
|
+
this._setupRouter();
|
|
1463
|
+
this._setupView();
|
|
1464
|
+
}
|
|
1465
|
+
propertyChangedCallback(name, old, val, first) {
|
|
1466
|
+
super.propertyChangedCallback(name, old, val, first);
|
|
1467
|
+
if (first) {
|
|
1468
|
+
return;
|
|
1469
|
+
}
|
|
1470
|
+
switch (name) {
|
|
1471
|
+
case 'router':
|
|
1472
|
+
// re-wire if the `router` reference itself is swapped out at runtime, not just on first assignment
|
|
1473
|
+
if (!pacemCore.Utils.isNull(old)) {
|
|
1474
|
+
this._disposeRouter(old);
|
|
1475
|
+
}
|
|
1476
|
+
if (!pacemCore.Utils.isNull(val)) {
|
|
1477
|
+
this._setupRouter(val);
|
|
1478
|
+
}
|
|
1479
|
+
break;
|
|
1480
|
+
case 'view':
|
|
1481
|
+
if (!pacemCore.Utils.isNull(old)) {
|
|
1482
|
+
this._disposeView(old);
|
|
1483
|
+
}
|
|
1484
|
+
if (!pacemCore.Utils.isNull(val)) {
|
|
1485
|
+
this._setupView(val);
|
|
1486
|
+
}
|
|
1487
|
+
break;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
disconnectedCallback() {
|
|
1491
|
+
this._disposeRouter();
|
|
1492
|
+
this._disposeView();
|
|
1493
|
+
super.disconnectedCallback();
|
|
1494
|
+
}
|
|
1495
|
+
/** Turns on the router's own scroll-position bookkeeping (capturing `state.$scrollY` per history entry); see `PacemRouterElement.scrollRestoration`. */
|
|
1496
|
+
_setupRouter(router = this.router) {
|
|
1497
|
+
if (pacemCore.Utils.isNull(router)) {
|
|
1498
|
+
return;
|
|
1499
|
+
}
|
|
1500
|
+
router.scrollRestoration = true;
|
|
1501
|
+
}
|
|
1502
|
+
/** No-op: `_setupRouter` only flips a flag on the router, there's no subscription to tear down. Kept for symmetry with `_disposeView`, and in case this grows one later. */
|
|
1503
|
+
_disposeRouter(router = this.router) {
|
|
1504
|
+
// do nothing
|
|
1505
|
+
}
|
|
1506
|
+
_setupView(view = this.view) {
|
|
1507
|
+
if (pacemCore.Utils.isNull(view)) {
|
|
1508
|
+
return;
|
|
1509
|
+
}
|
|
1510
|
+
view.addEventListener('prerender', this._prerenderHandler, false);
|
|
1511
|
+
view.addEventListener('render', this._renderHandler, false);
|
|
1512
|
+
}
|
|
1513
|
+
_disposeView(view = this.view) {
|
|
1514
|
+
if (pacemCore.Utils.isNull(view)) {
|
|
1515
|
+
return;
|
|
1516
|
+
}
|
|
1517
|
+
view.removeEventListener('prerender', this._prerenderHandler);
|
|
1518
|
+
view.removeEventListener('render', this._renderHandler);
|
|
1519
|
+
}
|
|
1520
|
+
};
|
|
1521
|
+
__decorate$4([
|
|
1522
|
+
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Element, emit: false })
|
|
1523
|
+
], PacemRouterViewScrollElement.prototype, "router", void 0);
|
|
1524
|
+
__decorate$4([
|
|
1525
|
+
pacemCore.Watch({ converter: pacemCore.PropertyConverters.Element, emit: false })
|
|
1526
|
+
], PacemRouterViewScrollElement.prototype, "view", void 0);
|
|
1527
|
+
__decorate$4([
|
|
1528
|
+
pacemCore.Watch({ converter: pacemCore.PropertyConverters.String, emit: false })
|
|
1529
|
+
], PacemRouterViewScrollElement.prototype, "scrollBehavior", void 0);
|
|
1530
|
+
PacemRouterViewScrollElement = __decorate$4([
|
|
1531
|
+
pacemCore.CustomElement({ tagName: pacemCore.P + '-router-view-scroll' })
|
|
1532
|
+
], PacemRouterViewScrollElement);
|
|
1533
|
+
|
|
1421
1534
|
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1422
1535
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1423
1536
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2358,6 +2471,7 @@ dataitem="{{ ^item }}" rowindex="{{ ^index }}" ${extra}></${pacemCore.P}-datacel
|
|
|
2358
2471
|
get PacemHeadCellElement () { return PacemHeadCellElement; },
|
|
2359
2472
|
get PacemModalFormElement () { return PacemModalFormElement; },
|
|
2360
2473
|
get PacemRouterHashStateElement () { return PacemRouterHashStateElement; },
|
|
2474
|
+
get PacemRouterViewScrollElement () { return PacemRouterViewScrollElement; },
|
|
2361
2475
|
get PacemSearchElement () { return PacemSearchElement; }
|
|
2362
2476
|
});
|
|
2363
2477
|
|