@melodicdev/components 1.6.7 → 1.6.9
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/assets/melodic-components.js +6 -3
- package/assets/melodic-components.js.map +1 -1
- package/assets/melodic-components.min.js +6 -4
- package/lib/components/data-display/table/table.component.d.ts +17 -0
- package/lib/components/data-display/table/table.component.d.ts.map +1 -1
- package/lib/components/data-display/table/table.component.js +19 -2
- package/lib/components/overlays/dialog/dialog.styles.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog.styles.js +2 -1
- package/package.json +1 -1
|
@@ -14134,6 +14134,7 @@ var TableComponent = class TableComponent$1 {
|
|
|
14134
14134
|
this.tableTitle = "";
|
|
14135
14135
|
this.description = "";
|
|
14136
14136
|
this.virtual = false;
|
|
14137
|
+
this.manualSort = false;
|
|
14137
14138
|
this.columns = [];
|
|
14138
14139
|
this.rows = [];
|
|
14139
14140
|
this.sortKey = "";
|
|
@@ -14239,7 +14240,7 @@ var TableComponent = class TableComponent$1 {
|
|
|
14239
14240
|
});
|
|
14240
14241
|
}
|
|
14241
14242
|
get sortedRows() {
|
|
14242
|
-
if (!this.sortKey) return this.rows;
|
|
14243
|
+
if (this.manualSort || !this.sortKey) return this.rows;
|
|
14243
14244
|
const key = this.sortKey;
|
|
14244
14245
|
const dir = this.sortDirection === "asc" ? 1 : -1;
|
|
14245
14246
|
return [...this.rows].sort((a, b) => {
|
|
@@ -14294,7 +14295,8 @@ TableComponent = __decorate([MelodicComponent({
|
|
|
14294
14295
|
"table-title",
|
|
14295
14296
|
"description",
|
|
14296
14297
|
"sticky-header",
|
|
14297
|
-
"virtual"
|
|
14298
|
+
"virtual",
|
|
14299
|
+
"manual-sort"
|
|
14298
14300
|
]
|
|
14299
14301
|
})], TableComponent);
|
|
14300
14302
|
function renderCell(col, row, index) {
|
|
@@ -22599,7 +22601,7 @@ const dialogStyles = () => css`
|
|
|
22599
22601
|
/* Dialog base */
|
|
22600
22602
|
dialog.ml-dialog {
|
|
22601
22603
|
position: fixed;
|
|
22602
|
-
display:
|
|
22604
|
+
display: none;
|
|
22603
22605
|
flex-direction: column;
|
|
22604
22606
|
width: 100%;
|
|
22605
22607
|
max-width: var(--ml-dialog-max-width);
|
|
@@ -22622,6 +22624,7 @@ const dialogStyles = () => css`
|
|
|
22622
22624
|
}
|
|
22623
22625
|
|
|
22624
22626
|
dialog.ml-dialog[open] {
|
|
22627
|
+
display: flex;
|
|
22625
22628
|
transform: scale(1) translateY(0);
|
|
22626
22629
|
opacity: 1;
|
|
22627
22630
|
}
|