@design.estate/dees-catalog 1.0.189 → 1.0.190
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_bundle/bundle.js +67 -67
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts_web/elements/dees-table.d.ts +4 -3
- package/dist_ts_web/elements/dees-table.demo.d.ts +1 -0
- package/dist_ts_web/elements/dees-table.demo.js +113 -0
- package/dist_ts_web/elements/dees-table.js +34 -126
- package/dist_watch/bundle.js +148 -132
- package/dist_watch/bundle.js.map +4 -4
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/dees-table.demo.ts +113 -0
- package/ts_web/elements/dees-table.ts +39 -130
package/dist_watch/bundle.js
CHANGED
|
@@ -8492,7 +8492,7 @@ var require_core = __commonJS({
|
|
|
8492
8492
|
var HLJS = function(hljs) {
|
|
8493
8493
|
const languages = /* @__PURE__ */ Object.create(null);
|
|
8494
8494
|
const aliases = /* @__PURE__ */ Object.create(null);
|
|
8495
|
-
const
|
|
8495
|
+
const plugins8 = [];
|
|
8496
8496
|
let SAFE_MODE = true;
|
|
8497
8497
|
const LANGUAGE_NOT_FOUND = "Could not find the language '{}', did you forget to load/include a language module?";
|
|
8498
8498
|
const PLAINTEXT_LANGUAGE = { disableAutodetect: true, name: "Plain text", contains: [] };
|
|
@@ -9061,17 +9061,17 @@ var require_core = __commonJS({
|
|
|
9061
9061
|
}
|
|
9062
9062
|
function addPlugin(plugin) {
|
|
9063
9063
|
upgradePluginAPI(plugin);
|
|
9064
|
-
|
|
9064
|
+
plugins8.push(plugin);
|
|
9065
9065
|
}
|
|
9066
9066
|
function removePlugin(plugin) {
|
|
9067
|
-
const index =
|
|
9067
|
+
const index = plugins8.indexOf(plugin);
|
|
9068
9068
|
if (index !== -1) {
|
|
9069
|
-
|
|
9069
|
+
plugins8.splice(index, 1);
|
|
9070
9070
|
}
|
|
9071
9071
|
}
|
|
9072
9072
|
function fire(event, args) {
|
|
9073
9073
|
const cb = event;
|
|
9074
|
-
|
|
9074
|
+
plugins8.forEach(function(plugin) {
|
|
9075
9075
|
if (plugin[cb]) {
|
|
9076
9076
|
plugin[cb](args);
|
|
9077
9077
|
}
|
|
@@ -76564,6 +76564,120 @@ DeesStepper = __decorateClass([
|
|
|
76564
76564
|
e7("dees-stepper")
|
|
76565
76565
|
], DeesStepper);
|
|
76566
76566
|
|
|
76567
|
+
// ts_web/elements/dees-table.demo.ts
|
|
76568
|
+
var demoFunc6 = () => x`
|
|
76569
|
+
<style>
|
|
76570
|
+
.demoWrapper {
|
|
76571
|
+
box-sizing: border-box;
|
|
76572
|
+
position: absolute;
|
|
76573
|
+
width: 100%;
|
|
76574
|
+
height: 100%;
|
|
76575
|
+
padding: 20px;
|
|
76576
|
+
background: #000000;
|
|
76577
|
+
}
|
|
76578
|
+
</style>
|
|
76579
|
+
<div class="demoWrapper">
|
|
76580
|
+
<dees-table
|
|
76581
|
+
heading1="Current Account Statement"
|
|
76582
|
+
heading2="Bunq - Payment Account 2 - April 2021"
|
|
76583
|
+
.data=${[
|
|
76584
|
+
{
|
|
76585
|
+
date: "2021-04-01",
|
|
76586
|
+
amount: "2464.65 \u20AC",
|
|
76587
|
+
description: "Printing Paper (Office Supplies) - STAPLES BREMEN"
|
|
76588
|
+
},
|
|
76589
|
+
{
|
|
76590
|
+
date: "2021-04-02",
|
|
76591
|
+
amount: "165.65 \u20AC",
|
|
76592
|
+
description: "Logitech Mouse (Hardware) - logi.com OnlineShop"
|
|
76593
|
+
},
|
|
76594
|
+
{
|
|
76595
|
+
date: "2021-04-03",
|
|
76596
|
+
amount: "2999,00 \u20AC",
|
|
76597
|
+
description: "Macbook Pro 16inch (Hardware) - Apple.de OnlineShop"
|
|
76598
|
+
},
|
|
76599
|
+
{
|
|
76600
|
+
date: "2021-04-01",
|
|
76601
|
+
amount: "2464.65 \u20AC",
|
|
76602
|
+
description: "Office-Supplies - STAPLES BREMEN"
|
|
76603
|
+
},
|
|
76604
|
+
{
|
|
76605
|
+
date: "2021-04-01",
|
|
76606
|
+
amount: "2464.65 \u20AC",
|
|
76607
|
+
description: "Office-Supplies - STAPLES BREMEN"
|
|
76608
|
+
}
|
|
76609
|
+
]}
|
|
76610
|
+
dataName="transactions"
|
|
76611
|
+
.dataActions="${[
|
|
76612
|
+
{
|
|
76613
|
+
name: "upload",
|
|
76614
|
+
iconName: "bell",
|
|
76615
|
+
useTableBehaviour: "upload",
|
|
76616
|
+
type: ["inRow"],
|
|
76617
|
+
actionFunc: async (itemArg) => {
|
|
76618
|
+
alert(itemArg.amount);
|
|
76619
|
+
}
|
|
76620
|
+
},
|
|
76621
|
+
{
|
|
76622
|
+
name: "visibility",
|
|
76623
|
+
iconName: "copy",
|
|
76624
|
+
type: ["inRow"],
|
|
76625
|
+
useTableBehaviour: "preview",
|
|
76626
|
+
actionFunc: async (itemArg) => {
|
|
76627
|
+
}
|
|
76628
|
+
},
|
|
76629
|
+
{
|
|
76630
|
+
name: "create new",
|
|
76631
|
+
iconName: "instagram",
|
|
76632
|
+
type: ["header"],
|
|
76633
|
+
useTableBehaviour: "preview",
|
|
76634
|
+
actionFunc: async (itemArg) => {
|
|
76635
|
+
}
|
|
76636
|
+
},
|
|
76637
|
+
{
|
|
76638
|
+
name: "to gallery",
|
|
76639
|
+
iconName: "message",
|
|
76640
|
+
type: ["footer"],
|
|
76641
|
+
useTableBehaviour: "preview",
|
|
76642
|
+
actionFunc: async (itemArg) => {
|
|
76643
|
+
}
|
|
76644
|
+
},
|
|
76645
|
+
{
|
|
76646
|
+
name: "copy",
|
|
76647
|
+
iconName: "copySolid",
|
|
76648
|
+
type: ["contextmenu", "inRow"],
|
|
76649
|
+
action: async () => {
|
|
76650
|
+
return null;
|
|
76651
|
+
}
|
|
76652
|
+
},
|
|
76653
|
+
{
|
|
76654
|
+
name: "edit (from demo)",
|
|
76655
|
+
iconName: "penToSquare",
|
|
76656
|
+
type: ["contextmenu"],
|
|
76657
|
+
action: async () => {
|
|
76658
|
+
return null;
|
|
76659
|
+
}
|
|
76660
|
+
},
|
|
76661
|
+
{
|
|
76662
|
+
name: "paste",
|
|
76663
|
+
iconName: "pasteSolid",
|
|
76664
|
+
type: ["contextmenu"],
|
|
76665
|
+
action: async () => {
|
|
76666
|
+
return null;
|
|
76667
|
+
}
|
|
76668
|
+
}
|
|
76669
|
+
]}"
|
|
76670
|
+
.displayFunction=${(itemArg) => {
|
|
76671
|
+
return {
|
|
76672
|
+
...itemArg,
|
|
76673
|
+
onlyDisplayProp: "onlyDisplay"
|
|
76674
|
+
};
|
|
76675
|
+
}}
|
|
76676
|
+
>This is a slotted Text</dees-table
|
|
76677
|
+
>
|
|
76678
|
+
</div>
|
|
76679
|
+
`;
|
|
76680
|
+
|
|
76567
76681
|
// ts_web/elements/dees-table.ts
|
|
76568
76682
|
var DeesTable = class extends DeesElement {
|
|
76569
76683
|
constructor() {
|
|
@@ -76589,7 +76703,7 @@ var DeesTable = class extends DeesElement {
|
|
|
76589
76703
|
${resolveExec(async () => {
|
|
76590
76704
|
const resultArray = [];
|
|
76591
76705
|
for (const action of this.dataActions) {
|
|
76592
|
-
if (action.type
|
|
76706
|
+
if (!action.type.includes("header"))
|
|
76593
76707
|
continue;
|
|
76594
76708
|
resultArray.push(
|
|
76595
76709
|
x`<div
|
|
@@ -76683,29 +76797,17 @@ var DeesTable = class extends DeesElement {
|
|
|
76683
76797
|
}
|
|
76684
76798
|
}}
|
|
76685
76799
|
@contextmenu=${async (eventArg) => {
|
|
76686
|
-
DeesContextmenu.openContextMenuWithOptions(eventArg,
|
|
76687
|
-
{
|
|
76688
|
-
name:
|
|
76689
|
-
iconName:
|
|
76800
|
+
DeesContextmenu.openContextMenuWithOptions(eventArg, this.getActionsForType("contextmenu").map((action) => {
|
|
76801
|
+
const menuItem = {
|
|
76802
|
+
name: action.name,
|
|
76803
|
+
iconName: action.iconName,
|
|
76690
76804
|
action: async () => {
|
|
76805
|
+
await action.actionFunc(itemArg);
|
|
76691
76806
|
return null;
|
|
76692
76807
|
}
|
|
76693
|
-
}
|
|
76694
|
-
|
|
76695
|
-
|
|
76696
|
-
iconName: "penToSquare",
|
|
76697
|
-
action: async () => {
|
|
76698
|
-
return null;
|
|
76699
|
-
}
|
|
76700
|
-
},
|
|
76701
|
-
{
|
|
76702
|
-
name: "paste",
|
|
76703
|
-
iconName: "pasteSolid",
|
|
76704
|
-
action: async () => {
|
|
76705
|
-
return null;
|
|
76706
|
-
}
|
|
76707
|
-
}
|
|
76708
|
-
]);
|
|
76808
|
+
};
|
|
76809
|
+
return menuItem;
|
|
76810
|
+
}));
|
|
76709
76811
|
}}
|
|
76710
76812
|
class="${itemArg === this.selectedDataRow ? "selected" : ""}"
|
|
76711
76813
|
>
|
|
@@ -76721,24 +76823,16 @@ var DeesTable = class extends DeesElement {
|
|
|
76721
76823
|
return x`
|
|
76722
76824
|
<td>
|
|
76723
76825
|
<div class="innerCellContainer">
|
|
76724
|
-
${((
|
|
76725
|
-
|
|
76726
|
-
|
|
76727
|
-
|
|
76728
|
-
|
|
76729
|
-
|
|
76730
|
-
|
|
76731
|
-
|
|
76732
|
-
|
|
76733
|
-
|
|
76734
|
-
${action.iconName ? x`
|
|
76735
|
-
<dees-icon .iconFA=${action.iconName}></dees-icon>
|
|
76736
|
-
` : action.name}
|
|
76737
|
-
</div>`
|
|
76738
|
-
);
|
|
76739
|
-
}
|
|
76740
|
-
return actions;
|
|
76741
|
-
})()}
|
|
76826
|
+
${this.getActionsForType("inRow").map(
|
|
76827
|
+
(actionArg) => x`<div
|
|
76828
|
+
class="action"
|
|
76829
|
+
@click=${() => actionArg.actionFunc(itemArg)}
|
|
76830
|
+
>
|
|
76831
|
+
${actionArg.iconName ? x`
|
|
76832
|
+
<dees-icon .iconFA=${actionArg.iconName}></dees-icon>
|
|
76833
|
+
` : actionArg.name}
|
|
76834
|
+
</div>`
|
|
76835
|
+
)}
|
|
76742
76836
|
</div>
|
|
76743
76837
|
</td>
|
|
76744
76838
|
`;
|
|
@@ -76760,7 +76854,7 @@ var DeesTable = class extends DeesElement {
|
|
|
76760
76854
|
${resolveExec(async () => {
|
|
76761
76855
|
const resultArray = [];
|
|
76762
76856
|
for (const action of this.dataActions) {
|
|
76763
|
-
if (action.type
|
|
76857
|
+
if (!action.type.includes("footer"))
|
|
76764
76858
|
continue;
|
|
76765
76859
|
resultArray.push(
|
|
76766
76860
|
x`<div
|
|
@@ -76783,95 +76877,17 @@ var DeesTable = class extends DeesElement {
|
|
|
76783
76877
|
}
|
|
76784
76878
|
async firstUpdated() {
|
|
76785
76879
|
}
|
|
76786
|
-
|
|
76787
|
-
|
|
76788
|
-
|
|
76789
|
-
.
|
|
76790
|
-
|
|
76791
|
-
|
|
76792
|
-
width: 100%;
|
|
76793
|
-
height: 100%;
|
|
76794
|
-
padding: 20px;
|
|
76795
|
-
background: #000000;
|
|
76796
|
-
}
|
|
76797
|
-
</style>
|
|
76798
|
-
<div class="demoWrapper">
|
|
76799
|
-
<dees-table
|
|
76800
|
-
heading1="Current Account Statement"
|
|
76801
|
-
heading2="Bunq - Payment Account 2 - April 2021"
|
|
76802
|
-
.data=${[
|
|
76803
|
-
{
|
|
76804
|
-
date: "2021-04-01",
|
|
76805
|
-
amount: "2464.65 \u20AC",
|
|
76806
|
-
description: "Printing Paper (Office Supplies) - STAPLES BREMEN"
|
|
76807
|
-
},
|
|
76808
|
-
{
|
|
76809
|
-
date: "2021-04-02",
|
|
76810
|
-
amount: "165.65 \u20AC",
|
|
76811
|
-
description: "Logitech Mouse (Hardware) - logi.com OnlineShop"
|
|
76812
|
-
},
|
|
76813
|
-
{
|
|
76814
|
-
date: "2021-04-03",
|
|
76815
|
-
amount: "2999,00 \u20AC",
|
|
76816
|
-
description: "Macbook Pro 16inch (Hardware) - Apple.de OnlineShop"
|
|
76817
|
-
},
|
|
76818
|
-
{
|
|
76819
|
-
date: "2021-04-01",
|
|
76820
|
-
amount: "2464.65 \u20AC",
|
|
76821
|
-
description: "Office-Supplies - STAPLES BREMEN"
|
|
76822
|
-
},
|
|
76823
|
-
{
|
|
76824
|
-
date: "2021-04-01",
|
|
76825
|
-
amount: "2464.65 \u20AC",
|
|
76826
|
-
description: "Office-Supplies - STAPLES BREMEN"
|
|
76827
|
-
}
|
|
76828
|
-
]}
|
|
76829
|
-
dataName="transactions"
|
|
76830
|
-
.dataActions="${[
|
|
76831
|
-
{
|
|
76832
|
-
name: "upload",
|
|
76833
|
-
iconName: "bell",
|
|
76834
|
-
useTableBehaviour: "upload",
|
|
76835
|
-
type: "inRow",
|
|
76836
|
-
actionFunc: async (itemArg) => {
|
|
76837
|
-
alert(itemArg.amount);
|
|
76838
|
-
}
|
|
76839
|
-
},
|
|
76840
|
-
{
|
|
76841
|
-
name: "visibility",
|
|
76842
|
-
iconName: "copy",
|
|
76843
|
-
type: "inRow",
|
|
76844
|
-
useTableBehaviour: "preview",
|
|
76845
|
-
actionFunc: async (itemArg) => {
|
|
76846
|
-
}
|
|
76847
|
-
},
|
|
76848
|
-
{
|
|
76849
|
-
name: "create new",
|
|
76850
|
-
iconName: "instagram",
|
|
76851
|
-
type: "header",
|
|
76852
|
-
useTableBehaviour: "preview",
|
|
76853
|
-
actionFunc: async (itemArg) => {
|
|
76854
|
-
}
|
|
76855
|
-
},
|
|
76856
|
-
{
|
|
76857
|
-
name: "to gallery",
|
|
76858
|
-
iconName: "message",
|
|
76859
|
-
type: "footer",
|
|
76860
|
-
useTableBehaviour: "preview",
|
|
76861
|
-
actionFunc: async (itemArg) => {
|
|
76880
|
+
getActionsForType(typeArg) {
|
|
76881
|
+
const actions = [];
|
|
76882
|
+
for (const action of this.dataActions) {
|
|
76883
|
+
if (!action.type.includes(typeArg))
|
|
76884
|
+
continue;
|
|
76885
|
+
actions.push(action);
|
|
76862
76886
|
}
|
|
76887
|
+
return actions;
|
|
76863
76888
|
}
|
|
76864
|
-
|
|
76865
|
-
|
|
76866
|
-
return {
|
|
76867
|
-
...itemArg,
|
|
76868
|
-
onlyDisplayProp: "onlyDisplay"
|
|
76869
|
-
};
|
|
76870
|
-
}}
|
|
76871
|
-
>This is a slotted Text</dees-table
|
|
76872
|
-
>
|
|
76873
|
-
</div>
|
|
76874
|
-
`;
|
|
76889
|
+
};
|
|
76890
|
+
DeesTable.demo = demoFunc6;
|
|
76875
76891
|
DeesTable.styles = [
|
|
76876
76892
|
cssManager.defaultStyles,
|
|
76877
76893
|
i`
|