@pacem/pacem 1.0.0-abel → 1.0.0-amaldi
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 +3 -3
- package/dist/browser/pacem-2d.js.map +0 -5
- package/dist/browser/pacem-2d.min.js +3 -3
- package/dist/browser/pacem-2d.min.js.map +0 -5
- package/dist/browser/pacem-3d.js +341 -341
- package/dist/browser/pacem-3d.js.map +1 -6
- package/dist/browser/pacem-3d.min.js +3 -3
- package/dist/browser/pacem-3d.min.js.map +1 -6
- package/dist/browser/pacem-charts.js +3 -3
- package/dist/browser/pacem-charts.js.map +0 -5
- package/dist/browser/pacem-charts.min.js +3 -3
- package/dist/browser/pacem-charts.min.js.map +0 -5
- package/dist/browser/pacem-cms.js +107 -107
- package/dist/browser/pacem-cms.js.map +1 -6
- package/dist/browser/pacem-cms.min.js +3 -3
- package/dist/browser/pacem-cms.min.js.map +1 -6
- package/dist/browser/pacem-core.js +21 -7
- package/dist/browser/pacem-core.js.map +1 -6
- package/dist/browser/pacem-core.min.js +4 -4
- package/dist/browser/pacem-core.min.js.map +1 -6
- package/dist/browser/pacem-foundation.js +3 -3
- package/dist/browser/pacem-foundation.js.map +0 -5
- package/dist/browser/pacem-foundation.min.js +3 -3
- package/dist/browser/pacem-foundation.min.js.map +0 -5
- package/dist/browser/pacem-fx.js +19 -19
- package/dist/browser/pacem-fx.js.map +1 -6
- package/dist/browser/pacem-fx.min.js +3 -3
- package/dist/browser/pacem-fx.min.js.map +1 -6
- package/dist/browser/pacem-logging.js +3 -3
- package/dist/browser/pacem-logging.js.map +0 -5
- package/dist/browser/pacem-logging.min.js +3 -3
- package/dist/browser/pacem-logging.min.js.map +0 -5
- package/dist/browser/pacem-maps.js +3 -3
- package/dist/browser/pacem-maps.js.map +0 -5
- package/dist/browser/pacem-maps.min.js +3 -3
- package/dist/browser/pacem-maps.min.js.map +0 -5
- package/dist/browser/pacem-media.js +3 -3
- package/dist/browser/pacem-media.js.map +0 -5
- package/dist/browser/pacem-media.min.js +3 -3
- package/dist/browser/pacem-media.min.js.map +0 -5
- package/dist/browser/pacem-networking.js +3 -3
- package/dist/browser/pacem-networking.js.map +0 -5
- package/dist/browser/pacem-networking.min.js +3 -3
- package/dist/browser/pacem-networking.min.js.map +0 -5
- package/dist/browser/pacem-numerical.js +3 -3
- package/dist/browser/pacem-numerical.js.map +0 -5
- package/dist/browser/pacem-numerical.min.js +3 -3
- package/dist/browser/pacem-numerical.min.js.map +0 -5
- package/dist/browser/pacem-plus.js +77 -77
- package/dist/browser/pacem-plus.js.map +1 -6
- package/dist/browser/pacem-plus.min.js +3 -3
- package/dist/browser/pacem-plus.min.js.map +1 -6
- package/dist/browser/pacem-scaffolding.js +11 -8
- package/dist/browser/pacem-scaffolding.js.map +1 -6
- package/dist/browser/pacem-scaffolding.min.js +4 -4
- package/dist/browser/pacem-scaffolding.min.js.map +1 -6
- package/dist/browser/pacem-ui.js +37 -26
- package/dist/browser/pacem-ui.js.map +1 -6
- package/dist/browser/pacem-ui.min.js +4 -4
- package/dist/browser/pacem-ui.min.js.map +1 -6
- package/dist/bundle/pacem.min.mjs +40 -38
- package/dist/bundle/pacem.mjs +58 -32
- package/dist/bundle/pacem.mjs.map +2 -7
- package/dist/typings/index.d.ts +5 -3
- package/dist/vscode.html-custom.json +4834 -0
- package/package.json +9 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @pacem/pacem v1.0.0-
|
|
3
|
-
*
|
|
1
|
+
/*!
|
|
2
|
+
* @pacem/pacem v1.0.0-amaldi (https://js.pacem.it)
|
|
3
|
+
* Pacem (https://pacem.it)
|
|
4
4
|
* Licensed under Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
(function (pacemFoundation, pacemCore, pacemUi, pacemScaffolding) {
|
|
@@ -139,26 +139,26 @@
|
|
|
139
139
|
PacemCarouselElement = __decorate$9([
|
|
140
140
|
pacemCore.CustomElement({
|
|
141
141
|
tagName: pacemCore.P + '-carousel', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
142
|
-
template: `<${pacemCore.P}-repeater datasource="{{ :host.datasource }}">
|
|
143
|
-
<${pacemCore.P}-slideshow class="${pacemCore.PCSS}-carousel" adapter="{{ ::adapter }}" index="{{ :host.index, twoway }}" on-load="this.focus()">
|
|
144
|
-
|
|
145
|
-
<template>
|
|
146
|
-
|
|
147
|
-
<${pacemCore.P}-slide class="${pacemCore.PCSS}-carousel-item" css-class="{{ { '${pacemCore.PCSS}-carousel-previous': :host.isPrevious(^index, ::slideshow.index), '${pacemCore.PCSS}-carousel-next': :host.isNext(^index, ::slideshow.index), '${pacemCore.PCSS}-carousel-focus': ^index === ::slideshow.index } }}">
|
|
148
|
-
<${pacemCore.P}-a href="{{ ^item.url }}">
|
|
149
|
-
<${pacemCore.P}-img disabled="{{ !:host.isCloseTo(^index, ::slideshow.index) }}" class="${pacemCore.PCSS}-carousel-splash" adapt="cover" src="{{ ^item.image }}"></${pacemCore.P}-img>
|
|
150
|
-
<div class="${pacemCore.PCSS}-carousel-content">
|
|
151
|
-
<div class="${pacemCore.PCSS}-carousel-caption">
|
|
152
|
-
<h3><${pacemCore.P}-text text="{{ ^item.title }}"></${pacemCore.P}-text></h3>
|
|
153
|
-
<${pacemCore.P}-panel class="paragraph" content="{{ ^item.content }}"></${pacemCore.P}-panel>
|
|
154
|
-
</div>
|
|
155
|
-
</div>
|
|
156
|
-
</${pacemCore.P}-a>
|
|
157
|
-
</${pacemCore.P}-slide>
|
|
158
|
-
|
|
159
|
-
</template>
|
|
160
|
-
</${pacemCore.P}-slideshow>
|
|
161
|
-
|
|
142
|
+
template: `<${pacemCore.P}-repeater datasource="{{ :host.datasource }}">
|
|
143
|
+
<${pacemCore.P}-slideshow class="${pacemCore.PCSS}-carousel" adapter="{{ ::adapter }}" index="{{ :host.index, twoway }}" on-load="this.focus()">
|
|
144
|
+
|
|
145
|
+
<template>
|
|
146
|
+
|
|
147
|
+
<${pacemCore.P}-slide class="${pacemCore.PCSS}-carousel-item" css-class="{{ { '${pacemCore.PCSS}-carousel-previous': :host.isPrevious(^index, ::slideshow.index), '${pacemCore.PCSS}-carousel-next': :host.isNext(^index, ::slideshow.index), '${pacemCore.PCSS}-carousel-focus': ^index === ::slideshow.index } }}">
|
|
148
|
+
<${pacemCore.P}-a href="{{ ^item.url }}">
|
|
149
|
+
<${pacemCore.P}-img disabled="{{ !:host.isCloseTo(^index, ::slideshow.index) }}" class="${pacemCore.PCSS}-carousel-splash" adapt="cover" src="{{ ^item.image }}"></${pacemCore.P}-img>
|
|
150
|
+
<div class="${pacemCore.PCSS}-carousel-content">
|
|
151
|
+
<div class="${pacemCore.PCSS}-carousel-caption">
|
|
152
|
+
<h3><${pacemCore.P}-text text="{{ ^item.title }}"></${pacemCore.P}-text></h3>
|
|
153
|
+
<${pacemCore.P}-panel class="paragraph" content="{{ ^item.content }}"></${pacemCore.P}-panel>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</${pacemCore.P}-a>
|
|
157
|
+
</${pacemCore.P}-slide>
|
|
158
|
+
|
|
159
|
+
</template>
|
|
160
|
+
</${pacemCore.P}-slideshow>
|
|
161
|
+
|
|
162
162
|
</${pacemCore.P}-repeater><${pacemCore.P}-adapter pausable="{{ :host.pausable }}" class="${pacemCore.PCSS}-carousel-adapter" interval="{{ :host.interval }}"></${pacemCore.P}-adapter>`
|
|
163
163
|
})
|
|
164
164
|
], PacemCarouselElement);
|
|
@@ -792,19 +792,19 @@
|
|
|
792
792
|
};
|
|
793
793
|
const UI$2 = pacemUi.Components.UI;
|
|
794
794
|
function getGallerySlideShowTemplate(captionTemplate = getDefaultCaptionTemplate(), imageProperty = 'image') {
|
|
795
|
-
return `<${pacemCore.P}-slide class="${pacemCore.PCSS}-gallery-item"
|
|
796
|
-
css-class="{{ { '${pacemCore.PCSS}-gallery-previous': :host.isPrevious(^index, ::_slideshow.index), '${pacemCore.PCSS}-gallery-next': :host.isNext(^index, ::_slideshow.index), '${pacemCore.PCSS}-gallery-focus': ^index === ::_slideshow.index } }}"
|
|
797
|
-
>
|
|
798
|
-
<${pacemCore.P}-img src="{{ ^item.${imageProperty} }}" disabled="{{ !::_lightbox.show || !(:host.isCloseTo(^index, ::_slideshow.index) || ^index === ::_slideshow.index) }}"
|
|
799
|
-
css="{{ {'visibility': (:host._poppingUp ? 'hidden' : ''), 'transition': (:host._poppingUp ? 'none' : '')} }}" class="${pacemCore.PCSS}-gallery-splash" adapt="contain"></${pacemCore.P}-img>
|
|
800
|
-
|
|
801
|
-
${captionTemplate}
|
|
802
|
-
|
|
795
|
+
return `<${pacemCore.P}-slide class="${pacemCore.PCSS}-gallery-item"
|
|
796
|
+
css-class="{{ { '${pacemCore.PCSS}-gallery-previous': :host.isPrevious(^index, ::_slideshow.index), '${pacemCore.PCSS}-gallery-next': :host.isNext(^index, ::_slideshow.index), '${pacemCore.PCSS}-gallery-focus': ^index === ::_slideshow.index } }}"
|
|
797
|
+
>
|
|
798
|
+
<${pacemCore.P}-img src="{{ ^item.${imageProperty} }}" disabled="{{ !::_lightbox.show || !(:host.isCloseTo(^index, ::_slideshow.index) || ^index === ::_slideshow.index) }}"
|
|
799
|
+
css="{{ {'visibility': (:host._poppingUp ? 'hidden' : ''), 'transition': (:host._poppingUp ? 'none' : '')} }}" class="${pacemCore.PCSS}-gallery-splash" adapt="contain"></${pacemCore.P}-img>
|
|
800
|
+
|
|
801
|
+
${captionTemplate}
|
|
802
|
+
|
|
803
803
|
</${pacemCore.P}-slide>`;
|
|
804
804
|
}
|
|
805
805
|
function getDefaultCaptionTemplate(captionProperty = 'caption') {
|
|
806
|
-
return `<${pacemCore.P}-panel hide="{{ $pacem.isNullOrEmpty(^item.${captionProperty}) }}" class="${pacemCore.PCSS}-gallery-caption gallery-caption-default">
|
|
807
|
-
<${pacemCore.P}-span class="paragraph" text="{{ ^item.${captionProperty} }}"></${pacemCore.P}-span>
|
|
806
|
+
return `<${pacemCore.P}-panel hide="{{ $pacem.isNullOrEmpty(^item.${captionProperty}) }}" class="${pacemCore.PCSS}-gallery-caption gallery-caption-default">
|
|
807
|
+
<${pacemCore.P}-span class="paragraph" text="{{ ^item.${captionProperty} }}"></${pacemCore.P}-span>
|
|
808
808
|
</${pacemCore.P}-panel>`;
|
|
809
809
|
}
|
|
810
810
|
let PacemGalleryElement = class PacemGalleryElement extends UI$2.PacemAdaptedIterativeElement {
|
|
@@ -955,14 +955,14 @@ ${captionTemplate}
|
|
|
955
955
|
PacemGalleryElement = __decorate$6([
|
|
956
956
|
pacemCore.CustomElement({
|
|
957
957
|
tagName: pacemCore.P + '-gallery', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
958
|
-
template: `<${pacemCore.P}-lightbox class="${pacemCore.PCSS}-gallery">
|
|
959
|
-
<${pacemCore.P}-repeater>
|
|
960
|
-
<${pacemCore.P}-slideshow adapter="{{ ::_adapter }}" index="{{ :host.index, twoway }}" hide="{{ !::_lightbox.show }}">
|
|
961
|
-
<${pacemCore.P}-template-proxy></${pacemCore.P}-template-proxy>
|
|
962
|
-
</${pacemCore.P}-slideshow>
|
|
963
|
-
</${pacemCore.P}-repeater>
|
|
964
|
-
<${pacemCore.P}-adapter class="${pacemCore.PCSS}-gallery-adapter"></${pacemCore.P}-adapter>
|
|
965
|
-
</${pacemCore.P}-lightbox>
|
|
958
|
+
template: `<${pacemCore.P}-lightbox class="${pacemCore.PCSS}-gallery">
|
|
959
|
+
<${pacemCore.P}-repeater>
|
|
960
|
+
<${pacemCore.P}-slideshow adapter="{{ ::_adapter }}" index="{{ :host.index, twoway }}" hide="{{ !::_lightbox.show }}">
|
|
961
|
+
<${pacemCore.P}-template-proxy></${pacemCore.P}-template-proxy>
|
|
962
|
+
</${pacemCore.P}-slideshow>
|
|
963
|
+
</${pacemCore.P}-repeater>
|
|
964
|
+
<${pacemCore.P}-adapter class="${pacemCore.PCSS}-gallery-adapter"></${pacemCore.P}-adapter>
|
|
965
|
+
</${pacemCore.P}-lightbox>
|
|
966
966
|
<${pacemCore.P}-shell-proxy><div class="${pacemCore.PCSS}-gallery-hero-target"></div></${pacemCore.P}-shell-proxy>`
|
|
967
967
|
})
|
|
968
968
|
], PacemGalleryElement);
|
|
@@ -1133,28 +1133,28 @@ ${captionTemplate}
|
|
|
1133
1133
|
PacemModalFormElement = PacemModalFormElement_1 = __decorate$5([
|
|
1134
1134
|
pacemCore.CustomElement({
|
|
1135
1135
|
tagName: pacemCore.P + '-modal-form', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
1136
|
-
template: `<${pacemCore.P}-lightbox modal="true" logger="{{ :host.logger }}">
|
|
1137
|
-
<${pacemCore.P}-form wrapper>
|
|
1138
|
-
<${pacemCore.P}-form logger="{{ :host.logger }}" on-submit=":host._onSubmit($event)" readonly="{{ :host.readonly }}" entity="{{ :host.state, twoway }}" on-success=":host._broadcast($event)"
|
|
1139
|
-
on-fail=":host._broadcast($event)" success="{{ :host.success, twoway }}" fail="{{ :host.fail, twoway }}" autogenerate="{{ !$pacem.isNull($this.entity) }}" metadata="{{ :host.metadata }}"
|
|
1140
|
-
fetch-headers="{{ :host.fetchHeaders }}" fetch-credentials="{{ :host.fetchCredentials }}" sudden-validation="{{ :host.suddenValidation }}"></${pacemCore.P}-form>
|
|
1141
|
-
</${pacemCore.P}-form>
|
|
1142
|
-
<${pacemCore.P}-fetch logger="{{ :host.logger }}" method="{{ :host.method }}" headers="{{ :host.fetchHeaders }}" credentials="{{ :host.fetchCredentials }}" autofetch="false" url="{{ :host.action }}"></${pacemCore.P}-fetch>
|
|
1143
|
-
<div class="${pacemCore.PCSS}-dialog-buttons ${pacemCore.PCSS}-buttonset buttons" slot="bottom">
|
|
1144
|
-
<div class="buttonset-left">
|
|
1145
|
-
<${pacemCore.P}-button on-click=":host._submit($event)" css-class="{{ {'buttonset-last': :host.readonly} }}" type="submit"
|
|
1146
|
-
class="button primary button-size size-small" disabled="{{ (:host.suddenValidation && !:host.readonly && !(::_form.valid && ::_form.dirty)) || ::_fetcher.fetching }}">
|
|
1147
|
-
<${pacemCore.P}-panel class="submit-spinner ${pacemCore.PCSS}-anim anim-pop" hide="{{ !::_form.fetching }}"><i class="${pacemCore.PCSS}-icon ${pacemCore.PCSS}-anim anim-rotate rotate-uniform display-block">refresh</i></${pacemCore.P}-panel>
|
|
1148
|
-
<${pacemCore.P}-text text="{{ :host.okCaption || 'OK' }}"></${pacemCore.P}-text>
|
|
1149
|
-
</${pacemCore.P}-button>
|
|
1150
|
-
<${pacemCore.P}-button on-click=":host._cancel($event)" hide="{{ :host.readonly }}" class="button button-size size-small" disabled="{{ ::_fetcher.fetching }}"><${pacemCore.P}-text text="{{ :host.cancelCaption || 'Cancel' }}"></${pacemCore.P}-text></${pacemCore.P}-button>
|
|
1151
|
-
</div></div>
|
|
1152
|
-
<div class="${pacemCore.PCSS}-dialog-heading" slot="top">
|
|
1153
|
-
<${pacemCore.P}-content></${pacemCore.P}-content>
|
|
1154
|
-
</div>
|
|
1155
|
-
<div class="pos-absolute absolute-top absolute-right absolute-left absolute-bottom overflow-hidden ${pacemCore.PCSS}-inert display-flex flex-center flex-middle">
|
|
1156
|
-
<${pacemCore.P}-loader type="{{ :host.loaderType }}" class="loader-primary loader-smaller ${pacemCore.PCSS}-anim anim-pop" active="{{ ::_fetcher.fetching }}"></${pacemCore.P}-loader>
|
|
1157
|
-
</div>
|
|
1136
|
+
template: `<${pacemCore.P}-lightbox modal="true" logger="{{ :host.logger }}">
|
|
1137
|
+
<${pacemCore.P}-form wrapper>
|
|
1138
|
+
<${pacemCore.P}-form logger="{{ :host.logger }}" on-submit=":host._onSubmit($event)" readonly="{{ :host.readonly }}" entity="{{ :host.state, twoway }}" on-success=":host._broadcast($event)"
|
|
1139
|
+
on-fail=":host._broadcast($event)" success="{{ :host.success, twoway }}" fail="{{ :host.fail, twoway }}" autogenerate="{{ !$pacem.isNull($this.entity) }}" metadata="{{ :host.metadata }}"
|
|
1140
|
+
fetch-headers="{{ :host.fetchHeaders }}" fetch-credentials="{{ :host.fetchCredentials }}" sudden-validation="{{ :host.suddenValidation }}"></${pacemCore.P}-form>
|
|
1141
|
+
</${pacemCore.P}-form>
|
|
1142
|
+
<${pacemCore.P}-fetch logger="{{ :host.logger }}" method="{{ :host.method }}" headers="{{ :host.fetchHeaders }}" credentials="{{ :host.fetchCredentials }}" autofetch="false" url="{{ :host.action }}"></${pacemCore.P}-fetch>
|
|
1143
|
+
<div class="${pacemCore.PCSS}-dialog-buttons ${pacemCore.PCSS}-buttonset buttons" slot="bottom">
|
|
1144
|
+
<div class="buttonset-left">
|
|
1145
|
+
<${pacemCore.P}-button on-click=":host._submit($event)" css-class="{{ {'buttonset-last': :host.readonly} }}" type="submit"
|
|
1146
|
+
class="button primary button-size size-small" disabled="{{ (:host.suddenValidation && !:host.readonly && !(::_form.valid && ::_form.dirty)) || ::_fetcher.fetching }}">
|
|
1147
|
+
<${pacemCore.P}-panel class="submit-spinner ${pacemCore.PCSS}-anim anim-pop" hide="{{ !::_form.fetching }}"><i class="${pacemCore.PCSS}-icon ${pacemCore.PCSS}-anim anim-rotate rotate-uniform display-block">refresh</i></${pacemCore.P}-panel>
|
|
1148
|
+
<${pacemCore.P}-text text="{{ :host.okCaption || 'OK' }}"></${pacemCore.P}-text>
|
|
1149
|
+
</${pacemCore.P}-button>
|
|
1150
|
+
<${pacemCore.P}-button on-click=":host._cancel($event)" hide="{{ :host.readonly }}" class="button button-size size-small" disabled="{{ ::_fetcher.fetching }}"><${pacemCore.P}-text text="{{ :host.cancelCaption || 'Cancel' }}"></${pacemCore.P}-text></${pacemCore.P}-button>
|
|
1151
|
+
</div></div>
|
|
1152
|
+
<div class="${pacemCore.PCSS}-dialog-heading" slot="top">
|
|
1153
|
+
<${pacemCore.P}-content></${pacemCore.P}-content>
|
|
1154
|
+
</div>
|
|
1155
|
+
<div class="pos-absolute absolute-top absolute-right absolute-left absolute-bottom overflow-hidden ${pacemCore.PCSS}-inert display-flex flex-center flex-middle">
|
|
1156
|
+
<${pacemCore.P}-loader type="{{ :host.loaderType }}" class="loader-primary loader-smaller ${pacemCore.PCSS}-anim anim-pop" active="{{ ::_fetcher.fetching }}"></${pacemCore.P}-loader>
|
|
1157
|
+
</div>
|
|
1158
1158
|
</${pacemCore.P}-lightbox>`
|
|
1159
1159
|
})
|
|
1160
1160
|
], PacemModalFormElement);
|
|
@@ -1460,10 +1460,10 @@ ${captionTemplate}
|
|
|
1460
1460
|
PacemSearchElement = __decorate$3([
|
|
1461
1461
|
pacemCore.CustomElement({
|
|
1462
1462
|
tagName: pacemCore.P + '-search', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
1463
|
-
template: `<${pacemCore.P}-fetch debounce="800" url="{{ :host.url }}" method="{{ :host.method }}">
|
|
1464
|
-
</${pacemCore.P}-fetch><${pacemCore.P}-input-search value="{{ :host.hint, twoway }}"></${pacemCore.P}-input-search>
|
|
1465
|
-
<${pacemCore.P}-repeater datasource="{{ ::_fetch.result }}">
|
|
1466
|
-
<${pacemCore.P}-content></${pacemCore.P}-content>
|
|
1463
|
+
template: `<${pacemCore.P}-fetch debounce="800" url="{{ :host.url }}" method="{{ :host.method }}">
|
|
1464
|
+
</${pacemCore.P}-fetch><${pacemCore.P}-input-search value="{{ :host.hint, twoway }}"></${pacemCore.P}-input-search>
|
|
1465
|
+
<${pacemCore.P}-repeater datasource="{{ ::_fetch.result }}">
|
|
1466
|
+
<${pacemCore.P}-content></${pacemCore.P}-content>
|
|
1467
1467
|
</${pacemCore.P}-repeater>`
|
|
1468
1468
|
})
|
|
1469
1469
|
], PacemSearchElement);
|
|
@@ -1993,12 +1993,12 @@ ${captionTemplate}
|
|
|
1993
1993
|
pacemCore.CustomElement({ tagName: pacemCore.P + '-datacolumn' })
|
|
1994
1994
|
], PacemDataColumnElement);
|
|
1995
1995
|
function headColumnHtml(c) {
|
|
1996
|
-
return `<${pacemCore.P}-headcell metadata="{{ :host._getColumnMetadata('${c.prop}') }}" state="{{ :host._columnState.${c.prop} }}" grid-state="{{ :host._gridState }}"
|
|
1997
|
-
on-${DataColumnSortEventName}=":host._broadcastSortCommand($event)"
|
|
1996
|
+
return `<${pacemCore.P}-headcell metadata="{{ :host._getColumnMetadata('${c.prop}') }}" state="{{ :host._columnState.${c.prop} }}" grid-state="{{ :host._gridState }}"
|
|
1997
|
+
on-${DataColumnSortEventName}=":host._broadcastSortCommand($event)"
|
|
1998
1998
|
on-${DataColumnRescaleEventName}=":host._broadcastRescaleCommand($event)"></${pacemCore.P}-headcell>`;
|
|
1999
1999
|
}
|
|
2000
2000
|
function dataColumnHtml(c, extra) {
|
|
2001
|
-
return `<${pacemCore.P}-datacell metadata="{{ :host._getColumnMetadata('${c.prop}') }}" state="{{ :host._columnState.${c.prop} }}" grid-state="{{ :host._gridState }}"
|
|
2001
|
+
return `<${pacemCore.P}-datacell metadata="{{ :host._getColumnMetadata('${c.prop}') }}" state="{{ :host._columnState.${c.prop} }}" grid-state="{{ :host._gridState }}"
|
|
2002
2002
|
dataitem="{{ ^item }}" rowindex="{{ ^index }}" ${extra}></${pacemCore.P}-datacell>`;
|
|
2003
2003
|
}
|
|
2004
2004
|
let PacemDataGridElement = class PacemDataGridElement extends pacemCore.Components.PacemItemsContainerElement {
|
|
@@ -2167,13 +2167,13 @@ dataitem="{{ ^item }}" rowindex="{{ ^index }}" ${extra}></${pacemCore.P}-datacel
|
|
|
2167
2167
|
datacells += dataColumnHtml(c, extraUi);
|
|
2168
2168
|
}
|
|
2169
2169
|
datacells += `<${pacemCore.P}-panel class="${pacemCore.PCSS}-datarow" css-class="{{ {'datarow-alt': ^index % 2 === 1, 'datarow-first': ^index === 0, 'datarow-last': ^index === (:host.datasource.length - 1), 'datarow-selected': :host._gridState.selectedRows.indexOf(^index) >= 0 } }}" style="grid-column: 1 /span ${colCount};" css="{{ {'grid-row': ^index+2} }}"></${pacemCore.P}-panel>`;
|
|
2170
|
-
const html = `<${pacemCore.P}-repeater datasource="{{ :host.datasource }}">
|
|
2171
|
-
<${pacemCore.P}-panel class="${pacemCore.PCSS}-datatable" css="{{ {'grid-template-columns': :host._getColumnSizes(:host._columnState, '${css.trimEnd()}', :host._gridState) } }}">
|
|
2172
|
-
${headcells}
|
|
2173
|
-
<template>
|
|
2174
|
-
${datacells}
|
|
2175
|
-
</template>
|
|
2176
|
-
${footcells}
|
|
2170
|
+
const html = `<${pacemCore.P}-repeater datasource="{{ :host.datasource }}">
|
|
2171
|
+
<${pacemCore.P}-panel class="${pacemCore.PCSS}-datatable" css="{{ {'grid-template-columns': :host._getColumnSizes(:host._columnState, '${css.trimEnd()}', :host._gridState) } }}">
|
|
2172
|
+
${headcells}
|
|
2173
|
+
<template>
|
|
2174
|
+
${datacells}
|
|
2175
|
+
</template>
|
|
2176
|
+
${footcells}
|
|
2177
2177
|
</${pacemCore.P}-panel>`;
|
|
2178
2178
|
container.innerHTML = html;
|
|
2179
2179
|
}
|