@pacem/pacem-cms 1.0.0-abel → 1.0.0-ampere
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-cms.js +109 -104
- package/dist/browser/pacem-cms.js.map +1 -1
- package/dist/browser/pacem-cms.min.js +5 -0
- package/dist/browser/pacem-cms.min.js.map +1 -1
- package/dist/bundle/pacem-cms.min.mjs +5 -0
- package/dist/bundle/pacem-cms.mjs +5 -0
- package/dist/bundle/pacem-cms.mjs.map +1 -1
- package/dist/esm/index-iife.js +5 -0
- package/dist/esm/index.cms.js +5 -0
- package/dist/esm/index.components.js +5 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/types.js +5 -0
- package/package.json +1 -1
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @pacem/pacem-cms v1.0.0-ampere (https://js.pacem.it)
|
|
3
|
+
* Pacem (https://pacem.it)
|
|
4
|
+
* Licensed under Apache-2.0
|
|
5
|
+
*/
|
|
1
6
|
(function (pacemFoundation, pacemCore, pacemScaffolding, pacemUi) {
|
|
2
7
|
'use strict';
|
|
3
8
|
|
|
@@ -306,41 +311,41 @@
|
|
|
306
311
|
PacemExpressionElement = __decorate$d([
|
|
307
312
|
pacemCore.CustomElement({
|
|
308
313
|
tagName: pacemCore.P + '-expression', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
309
|
-
template: `<${pacemCore.P}-collapse class="${pacemCore.PCSS}-expression" collapse="{{ !:host._editing }}">
|
|
310
|
-
<div class="expression-builder ${pacemCore.PCSS}-grid grid-tiny-rowgap grid-tiny-colgap ${pacemCore.PCSS}-pad pad-bottom-2">
|
|
311
|
-
<div class="${pacemCore.PCSS}-cell">
|
|
312
|
-
<${pacemCore.P}-select value="{{ :host._source, twoway }}" class="display-block">
|
|
313
|
-
<${pacemCore.P}-data-item value="${ExpressionSource.Constant}" label="constant value"></${pacemCore.P}-data-item>
|
|
314
|
-
<${pacemCore.P}-data-item value="${ExpressionSource.PropertyReference}" label="property reference"></${pacemCore.P}-data-item>
|
|
315
|
-
<${pacemCore.P}-data-item value="${ExpressionSource.Expression}" label="complex expression"></${pacemCore.P}-data-item>
|
|
316
|
-
</${pacemCore.P}-select>
|
|
317
|
-
</div>
|
|
318
|
-
|
|
319
|
-
<${pacemCore.P}-panel class="${pacemCore.PCSS}-cell cols-hd-6" hide="{{ :host._source !== '${ExpressionSource.PropertyReference}' }}">
|
|
320
|
-
<${pacemCore.P}-element-picker value="{{ :host._sourceRef, twoway }}" selector="{{ :host.selector }}" filter="{{ :host.filter }}" labeler="{{ :host.labeler }}" class="display-block"></${pacemCore.P}-element-picker>
|
|
321
|
-
</${pacemCore.P}-panel>
|
|
322
|
-
<${pacemCore.P}-panel class="${pacemCore.PCSS}-cell cols-hd-6" hide="{{ :host._source !== '${ExpressionSource.PropertyReference}' }}">
|
|
323
|
-
<${pacemCore.P}-property-picker value="{{ :host._propRef, twoway }}" disabled="{{ !:host._sourceRef }}" target="{{ :host._sourceRef }}" on-change="::_editor.focus()" class="display-block"></${pacemCore.P}-property-picker>
|
|
324
|
-
</${pacemCore.P}-panel>
|
|
325
|
-
|
|
326
|
-
<${pacemCore.P}-panel class="${pacemCore.PCSS}-cell">
|
|
327
|
-
<${pacemCore.P}-textarea class="display-block" placeholder="{{ '{{ '+ (:host._source || '') +'... }}' }}" change-policy="${pacemScaffolding.Components.Scaffolding.ChangePolicy.Blur}"></${pacemCore.P}-textarea>
|
|
328
|
-
</${pacemCore.P}-panel>
|
|
329
|
-
</div>
|
|
330
|
-
</${pacemCore.P}-collapse>
|
|
331
|
-
<div class="${pacemCore.PCSS}-fieldset">
|
|
332
|
-
<div class="fieldset-left">
|
|
333
|
-
<div class="${pacemCore.PCSS}-fieldgroup ${pacemCore.PCSS}-viewfinder">
|
|
334
|
-
<div class="text-truncate ${pacemCore.PCSS}-pad pad-x-1"><span class="${pacemCore.PCSS}-viewfinder text-tech">{{ :host.value || '...' }}</span></div>
|
|
335
|
-
<${pacemCore.P}-panel class="fieldgroup-prepend">
|
|
336
|
-
<${pacemCore.P}-button class="flat edit ${pacemCore.PCSS}-pad pad-left-1" on-click=":host._editing = !:host._editing" hide="{{ :host.readonly }}"></${pacemCore.P}-button>
|
|
337
|
-
</${pacemCore.P}-panel>
|
|
338
|
-
<${pacemCore.P}-panel class="fieldgroup-append text-tech display-flex flex-middle flex-nowrap" hide="{{ $pacem.isNullOrEmpty(:host.value) }}">
|
|
339
|
-
<i class="${pacemCore.PCSS}-icon text-primary">keyboard_arrow_right</i>
|
|
340
|
-
<${pacemCore.P}-text text="?" class="bg-primary ${pacemCore.PCSS}-pad pad-left-1 pad-right-1 ${pacemCore.PCSS}-margin margin-right-1 text-truncate" eval></${pacemCore.P}-text>
|
|
341
|
-
</${pacemCore.P}-panel>
|
|
342
|
-
</div>
|
|
343
|
-
</div>
|
|
314
|
+
template: `<${pacemCore.P}-collapse class="${pacemCore.PCSS}-expression" collapse="{{ !:host._editing }}">
|
|
315
|
+
<div class="expression-builder ${pacemCore.PCSS}-grid grid-tiny-rowgap grid-tiny-colgap ${pacemCore.PCSS}-pad pad-bottom-2">
|
|
316
|
+
<div class="${pacemCore.PCSS}-cell">
|
|
317
|
+
<${pacemCore.P}-select value="{{ :host._source, twoway }}" class="display-block">
|
|
318
|
+
<${pacemCore.P}-data-item value="${ExpressionSource.Constant}" label="constant value"></${pacemCore.P}-data-item>
|
|
319
|
+
<${pacemCore.P}-data-item value="${ExpressionSource.PropertyReference}" label="property reference"></${pacemCore.P}-data-item>
|
|
320
|
+
<${pacemCore.P}-data-item value="${ExpressionSource.Expression}" label="complex expression"></${pacemCore.P}-data-item>
|
|
321
|
+
</${pacemCore.P}-select>
|
|
322
|
+
</div>
|
|
323
|
+
|
|
324
|
+
<${pacemCore.P}-panel class="${pacemCore.PCSS}-cell cols-hd-6" hide="{{ :host._source !== '${ExpressionSource.PropertyReference}' }}">
|
|
325
|
+
<${pacemCore.P}-element-picker value="{{ :host._sourceRef, twoway }}" selector="{{ :host.selector }}" filter="{{ :host.filter }}" labeler="{{ :host.labeler }}" class="display-block"></${pacemCore.P}-element-picker>
|
|
326
|
+
</${pacemCore.P}-panel>
|
|
327
|
+
<${pacemCore.P}-panel class="${pacemCore.PCSS}-cell cols-hd-6" hide="{{ :host._source !== '${ExpressionSource.PropertyReference}' }}">
|
|
328
|
+
<${pacemCore.P}-property-picker value="{{ :host._propRef, twoway }}" disabled="{{ !:host._sourceRef }}" target="{{ :host._sourceRef }}" on-change="::_editor.focus()" class="display-block"></${pacemCore.P}-property-picker>
|
|
329
|
+
</${pacemCore.P}-panel>
|
|
330
|
+
|
|
331
|
+
<${pacemCore.P}-panel class="${pacemCore.PCSS}-cell">
|
|
332
|
+
<${pacemCore.P}-textarea class="display-block" placeholder="{{ '{{ '+ (:host._source || '') +'... }}' }}" change-policy="${pacemScaffolding.Components.Scaffolding.ChangePolicy.Blur}"></${pacemCore.P}-textarea>
|
|
333
|
+
</${pacemCore.P}-panel>
|
|
334
|
+
</div>
|
|
335
|
+
</${pacemCore.P}-collapse>
|
|
336
|
+
<div class="${pacemCore.PCSS}-fieldset">
|
|
337
|
+
<div class="fieldset-left">
|
|
338
|
+
<div class="${pacemCore.PCSS}-fieldgroup ${pacemCore.PCSS}-viewfinder">
|
|
339
|
+
<div class="text-truncate ${pacemCore.PCSS}-pad pad-x-1"><span class="${pacemCore.PCSS}-viewfinder text-tech">{{ :host.value || '...' }}</span></div>
|
|
340
|
+
<${pacemCore.P}-panel class="fieldgroup-prepend">
|
|
341
|
+
<${pacemCore.P}-button class="flat edit ${pacemCore.PCSS}-pad pad-left-1" on-click=":host._editing = !:host._editing" hide="{{ :host.readonly }}"></${pacemCore.P}-button>
|
|
342
|
+
</${pacemCore.P}-panel>
|
|
343
|
+
<${pacemCore.P}-panel class="fieldgroup-append text-tech display-flex flex-middle flex-nowrap" hide="{{ $pacem.isNullOrEmpty(:host.value) }}">
|
|
344
|
+
<i class="${pacemCore.PCSS}-icon text-primary">keyboard_arrow_right</i>
|
|
345
|
+
<${pacemCore.P}-text text="?" class="bg-primary ${pacemCore.PCSS}-pad pad-left-1 pad-right-1 ${pacemCore.PCSS}-margin margin-right-1 text-truncate" eval></${pacemCore.P}-text>
|
|
346
|
+
</${pacemCore.P}-panel>
|
|
347
|
+
</div>
|
|
348
|
+
</div>
|
|
344
349
|
</div>`
|
|
345
350
|
})
|
|
346
351
|
], PacemExpressionElement);
|
|
@@ -493,17 +498,17 @@
|
|
|
493
498
|
PacemWidgetToolbarElement = __decorate$c([
|
|
494
499
|
pacemCore.CustomElement({
|
|
495
500
|
tagName: pacemCore.P + '-widget-toolbar', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
496
|
-
template: `<${pacemCore.P}-span class="toolbar-text" content="{{ '<i class="${pacemCore.PCSS}-icon">'+ (::target.metadata && ::target.metadata.display && ::target.metadata.display.icon || 'widgets') +'</i> '+ (::target.tag || (::target.metadata && ::target.metadata.display && ::target.metadata.display.name || ::target.localName) +'#'+ ::target.id) }}"></${pacemCore.P}-span>
|
|
497
|
-
<div class="buttons ${pacemCore.PCSS}-buttonset ${pacemCore.PCSS}-pad ${pacemCore.PCSS}-margin pad-0 margin-left-2">
|
|
498
|
-
<div class="buttonset-left">
|
|
499
|
-
<${pacemCore.P}-button edit class="button edit" on-click=":host._edit($event)"></${pacemCore.P}-button>
|
|
500
|
-
<${pacemCore.P}-button permissions class="button" on-click=":host._editPermissions($event)" css-class="{{ {'button-success': ::target.permissions.length > 0} }}" icon-glyph="verified_user"></${pacemCore.P}-button>
|
|
501
|
-
<${pacemCore.P}-button remove class="button button-danger delete"></${pacemCore.P}-button>
|
|
502
|
-
</div>
|
|
503
|
-
<div>
|
|
504
|
-
<${pacemCore.P}-shell-proxy>
|
|
505
|
-
<${pacemCore.P}-modal-form core></${pacemCore.P}-modal-form>
|
|
506
|
-
<${pacemCore.P}-modal-form permissions></${pacemCore.P}-modal-form>
|
|
501
|
+
template: `<${pacemCore.P}-span class="toolbar-text" content="{{ '<i class="${pacemCore.PCSS}-icon">'+ (::target.metadata && ::target.metadata.display && ::target.metadata.display.icon || 'widgets') +'</i> '+ (::target.tag || (::target.metadata && ::target.metadata.display && ::target.metadata.display.name || ::target.localName) +'#'+ ::target.id) }}"></${pacemCore.P}-span>
|
|
502
|
+
<div class="buttons ${pacemCore.PCSS}-buttonset ${pacemCore.PCSS}-pad ${pacemCore.PCSS}-margin pad-0 margin-left-2">
|
|
503
|
+
<div class="buttonset-left">
|
|
504
|
+
<${pacemCore.P}-button edit class="button edit" on-click=":host._edit($event)"></${pacemCore.P}-button>
|
|
505
|
+
<${pacemCore.P}-button permissions class="button" on-click=":host._editPermissions($event)" css-class="{{ {'button-success': ::target.permissions.length > 0} }}" icon-glyph="verified_user"></${pacemCore.P}-button>
|
|
506
|
+
<${pacemCore.P}-button remove class="button button-danger delete"></${pacemCore.P}-button>
|
|
507
|
+
</div>
|
|
508
|
+
<div>
|
|
509
|
+
<${pacemCore.P}-shell-proxy>
|
|
510
|
+
<${pacemCore.P}-modal-form core></${pacemCore.P}-modal-form>
|
|
511
|
+
<${pacemCore.P}-modal-form permissions></${pacemCore.P}-modal-form>
|
|
507
512
|
</${pacemCore.P}-shell-proxy>`
|
|
508
513
|
})
|
|
509
514
|
], PacemWidgetToolbarElement);
|
|
@@ -834,7 +839,7 @@
|
|
|
834
839
|
PacemWidgetFetchElement = __decorate$a([
|
|
835
840
|
pacemCore.CustomElement({
|
|
836
841
|
tagName: pacemCore.P + '-widget-fetch', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
837
|
-
template: `<${pacemCore.P}-fetch autofetch="false" fetching="{{ :host.fetching, twoway }}" debounce="100"
|
|
842
|
+
template: `<${pacemCore.P}-fetch autofetch="false" fetching="{{ :host.fetching, twoway }}" debounce="100"
|
|
838
843
|
on-${pacemCore.Net.FetchResultEventName}=":host._onresult($event)" on-${pacemCore.Net.FetchErrorEventName}=":host._onerror($event)" on-${pacemCore.Net.FetchSuccessEventName}=":host._onsuccess($event)"></${pacemCore.P}-fetch><div hidden><${pacemCore.P}-content></${pacemCore.P}-content></div>`
|
|
839
844
|
})
|
|
840
845
|
], PacemWidgetFetchElement);
|
|
@@ -1354,16 +1359,16 @@ on-${pacemCore.Net.FetchResultEventName}=":host._onresult($event)" on-${pacemCor
|
|
|
1354
1359
|
PacemWidgetPickerElement = __decorate$3([
|
|
1355
1360
|
pacemCore.CustomElement({
|
|
1356
1361
|
tagName: pacemCore.P + '-widget-picker', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
1357
|
-
template: `<${pacemCore.P}-repeater datasource="{{ :host.items }}">
|
|
1358
|
-
<template>
|
|
1359
|
-
<${pacemCore.P}-panel behaviors="{{ [::_dragDrop] }}" class="${pacemCore.PCSS}-widget-itempicker display-flex flex-fill flex-middle flex-nowrap">
|
|
1360
|
-
<i class="${pacemCore.PCSS}-icon flex-auto" dragger>drag_indicator</i>
|
|
1361
|
-
<${pacemCore.P}-icon icon="{{ ^item.metadata.display.icon }}" class="flex-auto ${pacemCore.PCSS}-margin margin-x-1"></${pacemCore.P}-icon>
|
|
1362
|
-
<${pacemCore.P}-text text="{{ ^item.metadata.display.name }}"></${pacemCore.P}-text>
|
|
1363
|
-
</${pacemCore.P}-panel>
|
|
1364
|
-
</template>
|
|
1365
|
-
</${pacemCore.P}-repeater>
|
|
1366
|
-
<${pacemCore.P}-drag-drop handle-selector="i.${pacemCore.PCSS}-icon[dragger]"></${pacemCore.P}-drag-drop>
|
|
1362
|
+
template: `<${pacemCore.P}-repeater datasource="{{ :host.items }}">
|
|
1363
|
+
<template>
|
|
1364
|
+
<${pacemCore.P}-panel behaviors="{{ [::_dragDrop] }}" class="${pacemCore.PCSS}-widget-itempicker display-flex flex-fill flex-middle flex-nowrap">
|
|
1365
|
+
<i class="${pacemCore.PCSS}-icon flex-auto" dragger>drag_indicator</i>
|
|
1366
|
+
<${pacemCore.P}-icon icon="{{ ^item.metadata.display.icon }}" class="flex-auto ${pacemCore.PCSS}-margin margin-x-1"></${pacemCore.P}-icon>
|
|
1367
|
+
<${pacemCore.P}-text text="{{ ^item.metadata.display.name }}"></${pacemCore.P}-text>
|
|
1368
|
+
</${pacemCore.P}-panel>
|
|
1369
|
+
</template>
|
|
1370
|
+
</${pacemCore.P}-repeater>
|
|
1371
|
+
<${pacemCore.P}-drag-drop handle-selector="i.${pacemCore.PCSS}-icon[dragger]"></${pacemCore.P}-drag-drop>
|
|
1367
1372
|
<${pacemCore.P}-content></${pacemCore.P}-content>`
|
|
1368
1373
|
})
|
|
1369
1374
|
], PacemWidgetPickerElement);
|
|
@@ -1895,49 +1900,49 @@ on-${pacemCore.Net.FetchResultEventName}=":host._onresult($event)" on-${pacemCor
|
|
|
1895
1900
|
PacemDataColumnsElement = __decorate$1([
|
|
1896
1901
|
pacemCore.CustomElement({
|
|
1897
1902
|
tagName: pacemCore.P + '-widget-datacolumns', shadow: pacemCore.Defaults.USE_SHADOW_ROOT,
|
|
1898
|
-
template: `<div class="${pacemCore.PCSS}-datacolumns">
|
|
1899
|
-
<div class="datacolumns-main display-flex flex-fill">
|
|
1900
|
-
|
|
1901
|
-
<${pacemCore.P}-drag-drop mode="${pacemCore.UI.DragDataMode.Alias}" disabled="{{ :host.readonly }}" handle-selector="*[handle]"
|
|
1902
|
-
drop-behavior="${pacemCore.UI.DropBehavior.InsertChild}" drop-targets="{{ [::_dropTarget] }}" columns></${pacemCore.P}-drag-drop>
|
|
1903
|
-
<${pacemCore.P}-repeater class="display-flex flex-fill" columns>
|
|
1904
|
-
<!-- columns -->
|
|
1905
|
-
<div class="display-flex flex-nowrap" drop-target>
|
|
1906
|
-
<template>
|
|
1907
|
-
<${pacemCore.P}-panel behaviors="{{ [::_colDragger] }}">
|
|
1908
|
-
<div class="${pacemCore.PCSS}-panel panel-side-left side-auto">
|
|
1909
|
-
<div class="panel-side">
|
|
1910
|
-
<${pacemCore.P}-button class="display-block button-flat icon-glyph-small" icon-glyph="drag_indicator" handle></${pacemCore.P}-button>
|
|
1911
|
-
<${pacemCore.P}-button class="display-block button-flat icon-glyph-small" on-click=":host.value.splice(^index, 1)" icon-glyph="clear"></${pacemCore.P}-button>
|
|
1912
|
-
</div>
|
|
1913
|
-
<div class="panel-heading">
|
|
1914
|
-
<${pacemCore.P}-text text="{{ ^item.header }}"></${pacemCore.P}-text>
|
|
1915
|
-
</div>
|
|
1916
|
-
<${pacemCore.P}-widget-datacolumn class="panel-body" header="{{ ^item.header, twoway }}" content-expression="{{ ^item.content, twoway }}"></${pacemCore.P}-widget-datacolumn>
|
|
1917
|
-
</div>
|
|
1918
|
-
</${pacemCore.P}-panel>
|
|
1919
|
-
</template>
|
|
1920
|
-
</div>
|
|
1921
|
-
</${pacemCore.P}-repeater>
|
|
1922
|
-
|
|
1923
|
-
</div>
|
|
1924
|
-
<${pacemCore.P}-panel class="datacolumns-props" hide="{{ :host.readonly }}">
|
|
1925
|
-
<${pacemCore.P}-drag-drop mode="${pacemCore.UI.DragDataMode.Copy}" disabled="{{ :host.readonly }}" handle-selector="*[handle]"
|
|
1926
|
-
drop-behavior="${pacemCore.UI.DropBehavior.InsertChild}" drop-targets="{{ [::_dropTarget] }}" properties></${pacemCore.P}-drag-drop>
|
|
1927
|
-
<${pacemCore.P}-repeater datasource="{{ :host._columnifyMetadata(:host.properties) }}">
|
|
1928
|
-
<!-- properties -->
|
|
1929
|
-
<template>
|
|
1930
|
-
<${pacemCore.P}-panel behaviors="{{ [::_propDragger] }}" class="${pacemCore.PCSS}-panel panel-side-left side-auto panel-primary panel-filled ${pacemCore.PCSS}-margin margin-bottom-1">
|
|
1931
|
-
<div class="panel-side">
|
|
1932
|
-
<${pacemCore.P}-button class="display-block button-flat icon-glyph-small" icon-glyph="drag_indicator" handle></${pacemCore.P}-button>
|
|
1933
|
-
</div>
|
|
1934
|
-
<div class="text-truncate panel-body">
|
|
1935
|
-
<${pacemCore.P}-span text="{{ ^item.header }}"></${pacemCore.P}-span>
|
|
1936
|
-
</div>
|
|
1937
|
-
</${pacemCore.P}-panel>
|
|
1938
|
-
</template>
|
|
1939
|
-
</${pacemCore.P}-repeater>
|
|
1940
|
-
</${pacemCore.P}-panel>
|
|
1903
|
+
template: `<div class="${pacemCore.PCSS}-datacolumns">
|
|
1904
|
+
<div class="datacolumns-main display-flex flex-fill">
|
|
1905
|
+
|
|
1906
|
+
<${pacemCore.P}-drag-drop mode="${pacemCore.UI.DragDataMode.Alias}" disabled="{{ :host.readonly }}" handle-selector="*[handle]"
|
|
1907
|
+
drop-behavior="${pacemCore.UI.DropBehavior.InsertChild}" drop-targets="{{ [::_dropTarget] }}" columns></${pacemCore.P}-drag-drop>
|
|
1908
|
+
<${pacemCore.P}-repeater class="display-flex flex-fill" columns>
|
|
1909
|
+
<!-- columns -->
|
|
1910
|
+
<div class="display-flex flex-nowrap" drop-target>
|
|
1911
|
+
<template>
|
|
1912
|
+
<${pacemCore.P}-panel behaviors="{{ [::_colDragger] }}">
|
|
1913
|
+
<div class="${pacemCore.PCSS}-panel panel-side-left side-auto">
|
|
1914
|
+
<div class="panel-side">
|
|
1915
|
+
<${pacemCore.P}-button class="display-block button-flat icon-glyph-small" icon-glyph="drag_indicator" handle></${pacemCore.P}-button>
|
|
1916
|
+
<${pacemCore.P}-button class="display-block button-flat icon-glyph-small" on-click=":host.value.splice(^index, 1)" icon-glyph="clear"></${pacemCore.P}-button>
|
|
1917
|
+
</div>
|
|
1918
|
+
<div class="panel-heading">
|
|
1919
|
+
<${pacemCore.P}-text text="{{ ^item.header }}"></${pacemCore.P}-text>
|
|
1920
|
+
</div>
|
|
1921
|
+
<${pacemCore.P}-widget-datacolumn class="panel-body" header="{{ ^item.header, twoway }}" content-expression="{{ ^item.content, twoway }}"></${pacemCore.P}-widget-datacolumn>
|
|
1922
|
+
</div>
|
|
1923
|
+
</${pacemCore.P}-panel>
|
|
1924
|
+
</template>
|
|
1925
|
+
</div>
|
|
1926
|
+
</${pacemCore.P}-repeater>
|
|
1927
|
+
|
|
1928
|
+
</div>
|
|
1929
|
+
<${pacemCore.P}-panel class="datacolumns-props" hide="{{ :host.readonly }}">
|
|
1930
|
+
<${pacemCore.P}-drag-drop mode="${pacemCore.UI.DragDataMode.Copy}" disabled="{{ :host.readonly }}" handle-selector="*[handle]"
|
|
1931
|
+
drop-behavior="${pacemCore.UI.DropBehavior.InsertChild}" drop-targets="{{ [::_dropTarget] }}" properties></${pacemCore.P}-drag-drop>
|
|
1932
|
+
<${pacemCore.P}-repeater datasource="{{ :host._columnifyMetadata(:host.properties) }}">
|
|
1933
|
+
<!-- properties -->
|
|
1934
|
+
<template>
|
|
1935
|
+
<${pacemCore.P}-panel behaviors="{{ [::_propDragger] }}" class="${pacemCore.PCSS}-panel panel-side-left side-auto panel-primary panel-filled ${pacemCore.PCSS}-margin margin-bottom-1">
|
|
1936
|
+
<div class="panel-side">
|
|
1937
|
+
<${pacemCore.P}-button class="display-block button-flat icon-glyph-small" icon-glyph="drag_indicator" handle></${pacemCore.P}-button>
|
|
1938
|
+
</div>
|
|
1939
|
+
<div class="text-truncate panel-body">
|
|
1940
|
+
<${pacemCore.P}-span text="{{ ^item.header }}"></${pacemCore.P}-span>
|
|
1941
|
+
</div>
|
|
1942
|
+
</${pacemCore.P}-panel>
|
|
1943
|
+
</template>
|
|
1944
|
+
</${pacemCore.P}-repeater>
|
|
1945
|
+
</${pacemCore.P}-panel>
|
|
1941
1946
|
</div>`
|
|
1942
1947
|
})
|
|
1943
1948
|
], PacemDataColumnsElement);
|
|
@@ -2015,10 +2020,10 @@ on-${pacemCore.Net.FetchResultEventName}=":host._onresult($event)" on-${pacemCor
|
|
|
2015
2020
|
head0.appendChild(head);
|
|
2016
2021
|
const body0 = document.createElement('div');
|
|
2017
2022
|
body0.appendChild(body);
|
|
2018
|
-
return `<${pacemCore.P}-repeater datasource="{{ #${id}.datasource }}">
|
|
2019
|
-
<div class="${pacemCore.PCSS}-datatable" style="grid-template-columns: ${gridify(columns)}">
|
|
2020
|
-
${head0.innerHTML}
|
|
2021
|
-
<template>${body0.innerHTML}</template>
|
|
2023
|
+
return `<${pacemCore.P}-repeater datasource="{{ #${id}.datasource }}">
|
|
2024
|
+
<div class="${pacemCore.PCSS}-datatable" style="grid-template-columns: ${gridify(columns)}">
|
|
2025
|
+
${head0.innerHTML}
|
|
2026
|
+
<template>${body0.innerHTML}</template>
|
|
2022
2027
|
</div></${pacemCore.P}-repeater>`;
|
|
2023
2028
|
}
|
|
2024
2029
|
let PacemWidgetDataGridElement = class PacemWidgetDataGridElement extends PacemUiWidgetElement {
|