@maggioli-design-system/mds-table-row 5.3.0 → 5.3.1
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/cjs/mds-table-row.cjs.entry.js +16 -7
- package/dist/collection/common/browser.js +7 -0
- package/dist/collection/components/mds-table-row/mds-table-row.css +10 -2
- package/dist/collection/components/mds-table-row/mds-table-row.js +11 -6
- package/dist/components/mds-table-row.js +16 -7
- package/dist/documentation.json +9 -1
- package/dist/esm/mds-table-row.entry.js +16 -7
- package/dist/esm-es5/mds-table-row.entry.js +2 -2
- package/dist/mds-table-row/mds-table-row.esm.js +1 -1
- package/dist/mds-table-row/p-4727e0b3.system.entry.js +6 -0
- package/dist/mds-table-row/p-869d0b15.entry.js +6 -0
- package/dist/mds-table-row/p-e71445fa.system.js +1 -1
- package/dist/stats.json +29 -19
- package/dist/types/common/browser.d.ts +2 -0
- package/dist/types/common/locale.d.ts +1 -1
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +1 -0
- package/documentation.json +9 -1
- package/package.json +1 -1
- package/readme.md +4 -3
- package/src/common/browser.ts +10 -0
- package/src/common/locale.ts +2 -2
- package/src/components/mds-table-row/css/mds-table-row-actions.css +10 -2
- package/src/components/mds-table-row/mds-table-row.tsx +14 -3
- package/src/components/mds-table-row/readme.md +4 -3
- package/src/fixtures/icons.json +2 -0
- package/src/fixtures/iconsauce.json +1 -0
- package/www/build/mds-table-row.esm.js +1 -1
- package/www/build/p-4727e0b3.system.entry.js +6 -0
- package/www/build/p-869d0b15.entry.js +6 -0
- package/www/build/p-e71445fa.system.js +1 -1
- package/dist/mds-table-row/p-dea08b0f.system.entry.js +0 -6
- package/dist/mds-table-row/p-f83384f1.entry.js +0 -6
- package/www/build/p-dea08b0f.system.entry.js +0 -6
- package/www/build/p-f83384f1.entry.js +0 -6
|
@@ -874,12 +874,20 @@ const localeIt = {
|
|
|
874
874
|
unselectRow: unselectRow
|
|
875
875
|
};
|
|
876
876
|
|
|
877
|
-
const
|
|
877
|
+
const isSafari = () => {
|
|
878
|
+
if (navigator) {
|
|
879
|
+
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
880
|
+
}
|
|
881
|
+
return false;
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
const mdsTableRowCss = ":host{--mds-table-row-color-hover:var(--mds-table-color, rgb(var(--tone-neutral-02)));--mds-table-row-color-alt:var(--mds-table-color-alt, rgb(var(--tone-neutral-02)));--mds-table-row-background-hover:var(--mds-table-background, rgb(var(--tone-neutral)));--mds-table-row-background-alt:var(--mds-table-background-alt, rgb(var(--tone-neutral)));--mds-table-row-actions-gap:var(--mds-table-actions-gap, 1rem);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);color:var(--mds-table-row-color);display:table-row;position:relative;-webkit-transition-property:color;transition-property:color}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:-ms-flexbox;display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover);--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}.actions-view{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;inset:0;-ms-flex-pack:end;justify-content:end;pointer-events:none;position:absolute}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);-ms-flex-align:center;align-items:center;background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);border-top-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);display:-ms-inline-flexbox;display:inline-flex;gap:var(--mds-table-row-actions-gap);inset:0;margin-right:100%;padding:calc(var(--mds-table-border-width) * 2);padding-right:0;pointer-events:auto;position:-webkit-sticky;position:sticky;right:0;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-property:background-color, padding-right, -webkit-transform;transition-property:background-color, padding-right, -webkit-transform;transition-property:transform, background-color, padding-right;transition-property:transform, background-color, padding-right, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}:host(:hover) .actions{-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);-webkit-transform:translateX(0);transform:translateX(0)}:host-context(mds-table[interactive=\"false\"]):host(:hover) .actions,:host-context(mds-table:not([interactive])):host(:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover)}:host-context(mds-table[selection]:not([interactive])):host(:not([selected]):hover) .actions,:host-context(mds-table[selection][interactive=\"false\"]):host(:not([selected]):hover) .actions,:host-context(mds-table[selection]:not([interactive])):host([selected=\"false\"]:hover) .actions,:host-context(mds-table[selection][interactive=\"false\"]):host([selected=\"false\"]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static !important}.actions-cell--disable .actions{margin-right:0 !important;-webkit-transform:translateX(0) !important;transform:translateX(0) !important}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
|
|
878
885
|
const MdsTableRowStyle0 = mdsTableRowCss;
|
|
879
886
|
|
|
880
887
|
const MdsTableRow = class {
|
|
881
888
|
constructor(hostRef) {
|
|
882
889
|
index.registerInstance(this, hostRef);
|
|
890
|
+
this.hasActions = true;
|
|
883
891
|
this.t = new Locale({
|
|
884
892
|
el: localeEl,
|
|
885
893
|
en: localeEn,
|
|
@@ -899,7 +907,7 @@ const MdsTableRow = class {
|
|
|
899
907
|
}
|
|
900
908
|
componentWillLoad() {
|
|
901
909
|
this.language = this.t.lang(this.host);
|
|
902
|
-
this.hasActions = this.host.querySelector('[slot="action"]') !== null;
|
|
910
|
+
this.hasActions = this.host.querySelector(':scope > [slot="action"]') !== null;
|
|
903
911
|
}
|
|
904
912
|
componentDidLoad() {
|
|
905
913
|
var _a;
|
|
@@ -909,15 +917,16 @@ const MdsTableRow = class {
|
|
|
909
917
|
}
|
|
910
918
|
}
|
|
911
919
|
render() {
|
|
912
|
-
return (index.h(index.Host, { key: '
|
|
913
|
-
index.h("mds-table-cell", { key: '
|
|
914
|
-
index.h("mds-table-cell", { key: '
|
|
920
|
+
return (index.h(index.Host, { key: 'ddc3467a490c2bd90fe51e21a5fe67268a09cabd', role: "row" }, this.selectable &&
|
|
921
|
+
index.h("mds-table-cell", { key: 'e0aae0041d28b4a39e2cdfef98f8ceb34703613b', class: "selection-cell" }, index.h("div", { key: 'daf5de2fcfdb0f1863109feb96b533f9bdec1e43', class: "checkbox-wrapper" }, index.h("mds-input-switch", { key: 'd27bd2000b73115b7c9c2ad7705fcda40d134c04', title: this.t.get(this.selected ? 'unselectRow' : 'selectRow'), lang: this.language, type: "checkbox", checked: this.selected, onMdsInputSwitchChange: this.handleSelectionChange }))), index.h("slot", { key: '2eb2218ac36175a75569199cb837c00ab56ef3d0' }), this.hasActions && isSafari() &&
|
|
922
|
+
index.h("mds-table-cell", { key: '0c74ae109c1112d79fc9a65412d032105fb1cdef', class: "actions-cell actions-cell--disable" }, index.h("div", { key: '969b05e04cb68ec781ba5227de80a8b0357e299c', class: "actions" }, index.h("slot", { key: '04ee8a48cf0ac01a0bc25b7e819e57767a6443a7', name: "action" }))), this.hasActions && !isSafari() &&
|
|
923
|
+
index.h("mds-table-cell", { key: '39dba4bf1fc6c2892705608bca1f68e70ce47c7c', class: "actions-cell" }, index.h("div", { key: '2cab6097ba0bfe85f258ee9f569d92f75fd58208', class: "actions-sizer", style: {
|
|
915
924
|
minHeight: '1px',
|
|
916
925
|
maxWidth: this.sizerWidth,
|
|
917
926
|
minWidth: this.sizerWidth,
|
|
918
|
-
} }), index.h("div", { key: '
|
|
927
|
+
} }), index.h("div", { key: '1c77e27a925fe8fc003fcdd17f760f35a306027b', class: "actions-view" }, index.h("div", { key: '962a79184fa4cb6de61d443a65d9481b24cbb603', class: "actions", style: {
|
|
919
928
|
marginRight: `calc(${this.sizerWidth} + var(--mds-table-cell-padding))`,
|
|
920
|
-
} }, index.h("slot", { key: '
|
|
929
|
+
} }, index.h("slot", { key: 'fde4f3d477475c8dfdb3346e84e3125f964b7676', name: "action" }))))));
|
|
921
930
|
}
|
|
922
931
|
get host() { return index.getElement(this); }
|
|
923
932
|
};
|
|
@@ -75,8 +75,6 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
:host(:hover) .actions {
|
|
78
|
-
|
|
79
|
-
/* :host-context(:not(.safari)) */
|
|
80
78
|
transform: translateX(100%);
|
|
81
79
|
}
|
|
82
80
|
|
|
@@ -103,6 +101,16 @@
|
|
|
103
101
|
--mds-table-row-actions-background: var(--mds-table-row-background-alt);
|
|
104
102
|
}
|
|
105
103
|
|
|
104
|
+
.actions-cell--disable,
|
|
105
|
+
.actions-cell--disable .actions {
|
|
106
|
+
position: static !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.actions-cell--disable .actions {
|
|
110
|
+
margin-right: 0 !important;
|
|
111
|
+
transform: translateX(0) !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
106
114
|
:host-context(.pref-animation-reduce) {
|
|
107
115
|
transition-duration: 0s;
|
|
108
116
|
}
|
|
@@ -4,11 +4,15 @@ import localeEl from "./meta/locale.el.json";
|
|
|
4
4
|
import localeEn from "./meta/locale.en.json";
|
|
5
5
|
import localeEs from "./meta/locale.es.json";
|
|
6
6
|
import localeIt from "./meta/locale.it.json";
|
|
7
|
+
import { isSafari } from "../../common/browser";
|
|
7
8
|
/**
|
|
8
9
|
* @slot default - Put `mds-table-cell` element/s.
|
|
10
|
+
* @slot action - Put `mds-button` element/s or other kind of actions as aside menu for the single row.
|
|
9
11
|
*/
|
|
12
|
+
// TODO [bug, style]: on Safari actions menu is visually broken
|
|
10
13
|
export class MdsTableRow {
|
|
11
14
|
constructor() {
|
|
15
|
+
this.hasActions = true;
|
|
12
16
|
this.t = new Locale({
|
|
13
17
|
el: localeEl,
|
|
14
18
|
en: localeEn,
|
|
@@ -28,7 +32,7 @@ export class MdsTableRow {
|
|
|
28
32
|
}
|
|
29
33
|
componentWillLoad() {
|
|
30
34
|
this.language = this.t.lang(this.host);
|
|
31
|
-
this.hasActions = this.host.querySelector('[slot="action"]') !== null;
|
|
35
|
+
this.hasActions = this.host.querySelector(':scope > [slot="action"]') !== null;
|
|
32
36
|
}
|
|
33
37
|
componentDidLoad() {
|
|
34
38
|
var _a;
|
|
@@ -38,15 +42,16 @@ export class MdsTableRow {
|
|
|
38
42
|
}
|
|
39
43
|
}
|
|
40
44
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
42
|
-
h("mds-table-cell", { key: '
|
|
43
|
-
h("mds-table-cell", { key: '
|
|
45
|
+
return (h(Host, { key: 'ddc3467a490c2bd90fe51e21a5fe67268a09cabd', role: "row" }, this.selectable &&
|
|
46
|
+
h("mds-table-cell", { key: 'e0aae0041d28b4a39e2cdfef98f8ceb34703613b', class: "selection-cell" }, h("div", { key: 'daf5de2fcfdb0f1863109feb96b533f9bdec1e43', class: "checkbox-wrapper" }, h("mds-input-switch", { key: 'd27bd2000b73115b7c9c2ad7705fcda40d134c04', title: this.t.get(this.selected ? 'unselectRow' : 'selectRow'), lang: this.language, type: "checkbox", checked: this.selected, onMdsInputSwitchChange: this.handleSelectionChange }))), h("slot", { key: '2eb2218ac36175a75569199cb837c00ab56ef3d0' }), this.hasActions && isSafari() &&
|
|
47
|
+
h("mds-table-cell", { key: '0c74ae109c1112d79fc9a65412d032105fb1cdef', class: "actions-cell actions-cell--disable" }, h("div", { key: '969b05e04cb68ec781ba5227de80a8b0357e299c', class: "actions" }, h("slot", { key: '04ee8a48cf0ac01a0bc25b7e819e57767a6443a7', name: "action" }))), this.hasActions && !isSafari() &&
|
|
48
|
+
h("mds-table-cell", { key: '39dba4bf1fc6c2892705608bca1f68e70ce47c7c', class: "actions-cell" }, h("div", { key: '2cab6097ba0bfe85f258ee9f569d92f75fd58208', class: "actions-sizer", style: {
|
|
44
49
|
minHeight: '1px',
|
|
45
50
|
maxWidth: this.sizerWidth,
|
|
46
51
|
minWidth: this.sizerWidth,
|
|
47
|
-
} }), h("div", { key: '
|
|
52
|
+
} }), h("div", { key: '1c77e27a925fe8fc003fcdd17f760f35a306027b', class: "actions-view" }, h("div", { key: '962a79184fa4cb6de61d443a65d9481b24cbb603', class: "actions", style: {
|
|
48
53
|
marginRight: `calc(${this.sizerWidth} + var(--mds-table-cell-padding))`,
|
|
49
|
-
} }, h("slot", { key: '
|
|
54
|
+
} }, h("slot", { key: 'fde4f3d477475c8dfdb3346e84e3125f964b7676', name: "action" }))))));
|
|
50
55
|
}
|
|
51
56
|
static get is() { return "mds-table-row"; }
|
|
52
57
|
static get encapsulation() { return "shadow"; }
|
|
@@ -870,7 +870,14 @@ const localeIt = {
|
|
|
870
870
|
unselectRow: unselectRow
|
|
871
871
|
};
|
|
872
872
|
|
|
873
|
-
const
|
|
873
|
+
const isSafari = () => {
|
|
874
|
+
if (navigator) {
|
|
875
|
+
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
876
|
+
}
|
|
877
|
+
return false;
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
const mdsTableRowCss = ":host{--mds-table-row-color-hover:var(--mds-table-color, rgb(var(--tone-neutral-02)));--mds-table-row-color-alt:var(--mds-table-color-alt, rgb(var(--tone-neutral-02)));--mds-table-row-background-hover:var(--mds-table-background, rgb(var(--tone-neutral)));--mds-table-row-background-alt:var(--mds-table-background-alt, rgb(var(--tone-neutral)));--mds-table-row-actions-gap:var(--mds-table-actions-gap, 1rem);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);color:var(--mds-table-row-color);display:table-row;position:relative;-webkit-transition-property:color;transition-property:color}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:-ms-flexbox;display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover);--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}.actions-view{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;inset:0;-ms-flex-pack:end;justify-content:end;pointer-events:none;position:absolute}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);-ms-flex-align:center;align-items:center;background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);border-top-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);display:-ms-inline-flexbox;display:inline-flex;gap:var(--mds-table-row-actions-gap);inset:0;margin-right:100%;padding:calc(var(--mds-table-border-width) * 2);padding-right:0;pointer-events:auto;position:-webkit-sticky;position:sticky;right:0;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-property:background-color, padding-right, -webkit-transform;transition-property:background-color, padding-right, -webkit-transform;transition-property:transform, background-color, padding-right;transition-property:transform, background-color, padding-right, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}:host(:hover) .actions{-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);-webkit-transform:translateX(0);transform:translateX(0)}:host-context(mds-table[interactive=\"false\"]):host(:hover) .actions,:host-context(mds-table:not([interactive])):host(:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover)}:host-context(mds-table[selection]:not([interactive])):host(:not([selected]):hover) .actions,:host-context(mds-table[selection][interactive=\"false\"]):host(:not([selected]):hover) .actions,:host-context(mds-table[selection]:not([interactive])):host([selected=\"false\"]:hover) .actions,:host-context(mds-table[selection][interactive=\"false\"]):host([selected=\"false\"]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static !important}.actions-cell--disable .actions{margin-right:0 !important;-webkit-transform:translateX(0) !important;transform:translateX(0) !important}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
|
|
874
881
|
const MdsTableRowStyle0 = mdsTableRowCss;
|
|
875
882
|
|
|
876
883
|
const MdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class MdsTableRow extends HTMLElement {
|
|
@@ -878,6 +885,7 @@ const MdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class MdsTableRow extends
|
|
|
878
885
|
super();
|
|
879
886
|
this.__registerHost();
|
|
880
887
|
this.__attachShadow();
|
|
888
|
+
this.hasActions = true;
|
|
881
889
|
this.t = new Locale({
|
|
882
890
|
el: localeEl,
|
|
883
891
|
en: localeEn,
|
|
@@ -897,7 +905,7 @@ const MdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class MdsTableRow extends
|
|
|
897
905
|
}
|
|
898
906
|
componentWillLoad() {
|
|
899
907
|
this.language = this.t.lang(this.host);
|
|
900
|
-
this.hasActions = this.host.querySelector('[slot="action"]') !== null;
|
|
908
|
+
this.hasActions = this.host.querySelector(':scope > [slot="action"]') !== null;
|
|
901
909
|
}
|
|
902
910
|
componentDidLoad() {
|
|
903
911
|
var _a;
|
|
@@ -907,15 +915,16 @@ const MdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class MdsTableRow extends
|
|
|
907
915
|
}
|
|
908
916
|
}
|
|
909
917
|
render() {
|
|
910
|
-
return (h(Host, { key: '
|
|
911
|
-
h("mds-table-cell", { key: '
|
|
912
|
-
h("mds-table-cell", { key: '
|
|
918
|
+
return (h(Host, { key: 'ddc3467a490c2bd90fe51e21a5fe67268a09cabd', role: "row" }, this.selectable &&
|
|
919
|
+
h("mds-table-cell", { key: 'e0aae0041d28b4a39e2cdfef98f8ceb34703613b', class: "selection-cell" }, h("div", { key: 'daf5de2fcfdb0f1863109feb96b533f9bdec1e43', class: "checkbox-wrapper" }, h("mds-input-switch", { key: 'd27bd2000b73115b7c9c2ad7705fcda40d134c04', title: this.t.get(this.selected ? 'unselectRow' : 'selectRow'), lang: this.language, type: "checkbox", checked: this.selected, onMdsInputSwitchChange: this.handleSelectionChange }))), h("slot", { key: '2eb2218ac36175a75569199cb837c00ab56ef3d0' }), this.hasActions && isSafari() &&
|
|
920
|
+
h("mds-table-cell", { key: '0c74ae109c1112d79fc9a65412d032105fb1cdef', class: "actions-cell actions-cell--disable" }, h("div", { key: '969b05e04cb68ec781ba5227de80a8b0357e299c', class: "actions" }, h("slot", { key: '04ee8a48cf0ac01a0bc25b7e819e57767a6443a7', name: "action" }))), this.hasActions && !isSafari() &&
|
|
921
|
+
h("mds-table-cell", { key: '39dba4bf1fc6c2892705608bca1f68e70ce47c7c', class: "actions-cell" }, h("div", { key: '2cab6097ba0bfe85f258ee9f569d92f75fd58208', class: "actions-sizer", style: {
|
|
913
922
|
minHeight: '1px',
|
|
914
923
|
maxWidth: this.sizerWidth,
|
|
915
924
|
minWidth: this.sizerWidth,
|
|
916
|
-
} }), h("div", { key: '
|
|
925
|
+
} }), h("div", { key: '1c77e27a925fe8fc003fcdd17f760f35a306027b', class: "actions-view" }, h("div", { key: '962a79184fa4cb6de61d443a65d9481b24cbb603', class: "actions", style: {
|
|
917
926
|
marginRight: `calc(${this.sizerWidth} + var(--mds-table-cell-padding))`,
|
|
918
|
-
} }, h("slot", { key: '
|
|
927
|
+
} }, h("slot", { key: 'fde4f3d477475c8dfdb3346e84e3125f964b7676', name: "action" }))))));
|
|
919
928
|
}
|
|
920
929
|
get host() { return this; }
|
|
921
930
|
static get style() { return MdsTableRowStyle0; }
|
package/dist/documentation.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-03-
|
|
2
|
+
"timestamp": "2025-03-10T12:58:27",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.27.2",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
{
|
|
16
16
|
"name": "slot",
|
|
17
17
|
"text": "default - Put `mds-table-cell` element/s."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "slot",
|
|
21
|
+
"text": "action - Put `mds-button` element/s or other kind of actions as aside menu for the single row."
|
|
18
22
|
}
|
|
19
23
|
],
|
|
20
24
|
"usage": {},
|
|
@@ -179,6 +183,10 @@
|
|
|
179
183
|
"listeners": [],
|
|
180
184
|
"styles": [],
|
|
181
185
|
"slots": [
|
|
186
|
+
{
|
|
187
|
+
"name": "action",
|
|
188
|
+
"docs": "Put `mds-button` element/s or other kind of actions as aside menu for the single row."
|
|
189
|
+
},
|
|
182
190
|
{
|
|
183
191
|
"name": "default",
|
|
184
192
|
"docs": "Put `mds-table-cell` element/s."
|
|
@@ -870,12 +870,20 @@ const localeIt = {
|
|
|
870
870
|
unselectRow: unselectRow
|
|
871
871
|
};
|
|
872
872
|
|
|
873
|
-
const
|
|
873
|
+
const isSafari = () => {
|
|
874
|
+
if (navigator) {
|
|
875
|
+
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
876
|
+
}
|
|
877
|
+
return false;
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
const mdsTableRowCss = ":host{--mds-table-row-color-hover:var(--mds-table-color, rgb(var(--tone-neutral-02)));--mds-table-row-color-alt:var(--mds-table-color-alt, rgb(var(--tone-neutral-02)));--mds-table-row-background-hover:var(--mds-table-background, rgb(var(--tone-neutral)));--mds-table-row-background-alt:var(--mds-table-background-alt, rgb(var(--tone-neutral)));--mds-table-row-actions-gap:var(--mds-table-actions-gap, 1rem);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);color:var(--mds-table-row-color);display:table-row;position:relative;-webkit-transition-property:color;transition-property:color}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:-ms-flexbox;display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover);--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}.actions-view{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;inset:0;-ms-flex-pack:end;justify-content:end;pointer-events:none;position:absolute}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);-ms-flex-align:center;align-items:center;background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);border-top-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);display:-ms-inline-flexbox;display:inline-flex;gap:var(--mds-table-row-actions-gap);inset:0;margin-right:100%;padding:calc(var(--mds-table-border-width) * 2);padding-right:0;pointer-events:auto;position:-webkit-sticky;position:sticky;right:0;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-property:background-color, padding-right, -webkit-transform;transition-property:background-color, padding-right, -webkit-transform;transition-property:transform, background-color, padding-right;transition-property:transform, background-color, padding-right, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}:host(:hover) .actions{-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);-webkit-transform:translateX(0);transform:translateX(0)}:host-context(mds-table[interactive=\"false\"]):host(:hover) .actions,:host-context(mds-table:not([interactive])):host(:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover)}:host-context(mds-table[selection]:not([interactive])):host(:not([selected]):hover) .actions,:host-context(mds-table[selection][interactive=\"false\"]):host(:not([selected]):hover) .actions,:host-context(mds-table[selection]:not([interactive])):host([selected=\"false\"]:hover) .actions,:host-context(mds-table[selection][interactive=\"false\"]):host([selected=\"false\"]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static !important}.actions-cell--disable .actions{margin-right:0 !important;-webkit-transform:translateX(0) !important;transform:translateX(0) !important}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
|
|
874
881
|
const MdsTableRowStyle0 = mdsTableRowCss;
|
|
875
882
|
|
|
876
883
|
const MdsTableRow = class {
|
|
877
884
|
constructor(hostRef) {
|
|
878
885
|
registerInstance(this, hostRef);
|
|
886
|
+
this.hasActions = true;
|
|
879
887
|
this.t = new Locale({
|
|
880
888
|
el: localeEl,
|
|
881
889
|
en: localeEn,
|
|
@@ -895,7 +903,7 @@ const MdsTableRow = class {
|
|
|
895
903
|
}
|
|
896
904
|
componentWillLoad() {
|
|
897
905
|
this.language = this.t.lang(this.host);
|
|
898
|
-
this.hasActions = this.host.querySelector('[slot="action"]') !== null;
|
|
906
|
+
this.hasActions = this.host.querySelector(':scope > [slot="action"]') !== null;
|
|
899
907
|
}
|
|
900
908
|
componentDidLoad() {
|
|
901
909
|
var _a;
|
|
@@ -905,15 +913,16 @@ const MdsTableRow = class {
|
|
|
905
913
|
}
|
|
906
914
|
}
|
|
907
915
|
render() {
|
|
908
|
-
return (h(Host, { key: '
|
|
909
|
-
h("mds-table-cell", { key: '
|
|
910
|
-
h("mds-table-cell", { key: '
|
|
916
|
+
return (h(Host, { key: 'ddc3467a490c2bd90fe51e21a5fe67268a09cabd', role: "row" }, this.selectable &&
|
|
917
|
+
h("mds-table-cell", { key: 'e0aae0041d28b4a39e2cdfef98f8ceb34703613b', class: "selection-cell" }, h("div", { key: 'daf5de2fcfdb0f1863109feb96b533f9bdec1e43', class: "checkbox-wrapper" }, h("mds-input-switch", { key: 'd27bd2000b73115b7c9c2ad7705fcda40d134c04', title: this.t.get(this.selected ? 'unselectRow' : 'selectRow'), lang: this.language, type: "checkbox", checked: this.selected, onMdsInputSwitchChange: this.handleSelectionChange }))), h("slot", { key: '2eb2218ac36175a75569199cb837c00ab56ef3d0' }), this.hasActions && isSafari() &&
|
|
918
|
+
h("mds-table-cell", { key: '0c74ae109c1112d79fc9a65412d032105fb1cdef', class: "actions-cell actions-cell--disable" }, h("div", { key: '969b05e04cb68ec781ba5227de80a8b0357e299c', class: "actions" }, h("slot", { key: '04ee8a48cf0ac01a0bc25b7e819e57767a6443a7', name: "action" }))), this.hasActions && !isSafari() &&
|
|
919
|
+
h("mds-table-cell", { key: '39dba4bf1fc6c2892705608bca1f68e70ce47c7c', class: "actions-cell" }, h("div", { key: '2cab6097ba0bfe85f258ee9f569d92f75fd58208', class: "actions-sizer", style: {
|
|
911
920
|
minHeight: '1px',
|
|
912
921
|
maxWidth: this.sizerWidth,
|
|
913
922
|
minWidth: this.sizerWidth,
|
|
914
|
-
} }), h("div", { key: '
|
|
923
|
+
} }), h("div", { key: '1c77e27a925fe8fc003fcdd17f760f35a306027b', class: "actions-view" }, h("div", { key: '962a79184fa4cb6de61d443a65d9481b24cbb603', class: "actions", style: {
|
|
915
924
|
marginRight: `calc(${this.sizerWidth} + var(--mds-table-cell-padding))`,
|
|
916
|
-
} }, h("slot", { key: '
|
|
925
|
+
} }, h("slot", { key: 'fde4f3d477475c8dfdb3346e84e3125f964b7676', name: "action" }))))));
|
|
917
926
|
}
|
|
918
927
|
get host() { return getElement(this); }
|
|
919
928
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,r,a){function n(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,r,a){function n(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function d(t){try{o(a.next(t))}catch(t){i(t)}}function s(t){try{o(a["throw"](t))}catch(t){i(t)}}function o(t){t.done?r(t.value):n(t.value).then(d,s)}o((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,d;return d={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function s(t){return function(e){return o([t,e])}}function o(s){if(a)throw new TypeError("Generator is already executing.");while(d&&(d=0,s[0]&&(r=0)),r)try{if(a=1,n&&(i=s[0]&2?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;if(n=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];n=0}finally{a=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-81f966aa.js";var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var mustache={exports:{}};(function(t,e){(function(e,r){t.exports=r()})(commonjsGlobal,(function(){
|
|
2
2
|
/*!
|
|
3
3
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
4
4
|
* http://github.com/janl/mustache.js
|
|
5
5
|
*/
|
|
6
|
-
var t=Object.prototype.toString;var e=Array.isArray||function e(r){return t.call(r)==="[object Array]"};function r(t){return typeof t==="function"}function a(t){return e(t)?"array":typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function d(t,e){return t!=null&&typeof t==="object"&&e in t}function i(t,e){return t!=null&&typeof t!=="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var s=RegExp.prototype.test;function o(t,e){return s.call(t,e)}var h=/\S/;function c(t){return!o(h,t)}var l={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function u(t){return String(t).replace(/[&<>"'`=\/]/g,(function t(e){return l[e]}))}var f=/\s*/;var y=/\s+/;var m=/\s*=/;var b=/\s*\}/;var v=/#|\^|\/|>|\{|&|=|!/;function w(t,r){if(!t)return[];var a=false;var d=[];var i=[];var s=[];var o=false;var h=false;var l="";var u=0;function w(){if(o&&!h){while(s.length)delete i[s.pop()]}else{s=[]}o=false;h=false}var x,R,j;function $(t){if(typeof t==="string")t=t.split(y,2);if(!e(t)||t.length!==2)throw new Error("Invalid tags: "+t);x=new RegExp(n(t[0])+"\\s*");R=new RegExp("\\s*"+n(t[1]));j=new RegExp("\\s*"+n("}"+t[1]))}$(r||E.tags);var S=new k(t);var T,_,z,C,X,I;while(!S.eos()){T=S.pos;z=S.scanUntil(x);if(z){for(var M=0,D=z.length;M<D;++M){C=z.charAt(M);if(c(C)){s.push(i.length);l+=C}else{h=true;a=true;l+=" "}i.push(["text",C,T,T+1]);T+=1;if(C==="\n"){w();l="";u=0;a=false}}}if(!S.scan(x))break;o=true;_=S.scan(v)||"name";S.scan(f);if(_==="="){z=S.scanUntil(m);S.scan(m);S.scanUntil(R)}else if(_==="{"){z=S.scanUntil(j);S.scan(b);S.scanUntil(R);_="&"}else{z=S.scanUntil(R)}if(!S.scan(R))throw new Error("Unclosed tag at "+S.pos);if(_==">"){X=[_,z,T,S.pos,l,u,a]}else{X=[_,z,T,S.pos]}u++;i.push(X);if(_==="#"||_==="^"){d.push(X)}else if(_==="/"){I=d.pop();if(!I)throw new Error('Unopened section "'+z+'" at '+T);if(I[1]!==z)throw new Error('Unclosed section "'+I[1]+'" at '+T)}else if(_==="name"||_==="{"||_==="&"){h=true}else if(_==="="){$(z)}}w();I=d.pop();if(I)throw new Error('Unclosed section "'+I[1]+'" at '+S.pos);return g(p(i))}function p(t){var e=[];var r,a;for(var n=0,d=t.length;n<d;++n){r=t[n];if(r){if(r[0]==="text"&&a&&a[0]==="text"){a[1]+=r[1];a[3]=r[3]}else{e.push(r);a=r}}}return e}function g(t){var e=[];var r=e;var a=[];var n,d;for(var i=0,s=t.length;i<s;++i){n=t[i];switch(n[0]){case"#":case"^":r.push(n);a.push(n);r=n[4]=[];break;case"/":d=a.pop();d[5]=n[2];r=a.length>0?a[a.length-1][4]:e;break;default:r.push(n)}}return e}function k(t){this.string=t;this.tail=t;this.pos=0}k.prototype.eos=function t(){return this.tail===""};k.prototype.scan=function t(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var a=r[0];this.tail=this.tail.substring(a.length);this.pos+=a.length;return a};k.prototype.scanUntil=function t(e){var r=this.tail.search(e),a;switch(r){case-1:a=this.tail;this.tail="";break;case 0:a="";break;default:a=this.tail.substring(0,r);this.tail=this.tail.substring(r)}this.pos+=a.length;return a};function x(t,e){this.view=t;this.cache={".":this.view};this.parent=e}x.prototype.push=function t(e){return new x(e,this)};x.prototype.lookup=function t(e){var a=this.cache;var n;if(a.hasOwnProperty(e)){n=a[e]}else{var s=this,o,h,c,l=false;while(s){if(e.indexOf(".")>0){o=s.view;h=e.split(".");c=0;while(o!=null&&c<h.length){if(c===h.length-1)l=d(o,h[c])||i(o,h[c]);o=o[h[c++]]}}else{o=s.view[e];l=d(s.view,e)}if(l){n=o;break}s=s.parent}a[e]=n}if(r(n))n=n.call(this.view);return n};function R(){this.templateCache={_cache:{},set:function t(e,r){this._cache[e]=r},get:function t(e){return this._cache[e]},clear:function t(){this._cache={}}}}R.prototype.clearCache=function t(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};R.prototype.parse=function t(e,r){var a=this.templateCache;var n=e+":"+(r||E.tags).join(":");var d=typeof a!=="undefined";var i=d?a.get(n):undefined;if(i==undefined){i=w(e,r);d&&a.set(n,i)}return i};R.prototype.render=function t(e,r,a,n){var d=this.getConfigTags(n);var i=this.parse(e,d);var s=r instanceof x?r:new x(r,undefined);return this.renderTokens(i,s,a,e,n)};R.prototype.renderTokens=function t(e,r,a,n,d){var i="";var s,o,h;for(var c=0,l=e.length;c<l;++c){h=undefined;s=e[c];o=s[0];if(o==="#")h=this.renderSection(s,r,a,n,d);else if(o==="^")h=this.renderInverted(s,r,a,n,d);else if(o===">")h=this.renderPartial(s,r,a,d);else if(o==="&")h=this.unescapedValue(s,r);else if(o==="name")h=this.escapedValue(s,r,d);else if(o==="text")h=this.rawValue(s);if(h!==undefined)i+=h}return i};R.prototype.renderSection=function t(a,n,d,i,s){var o=this;var h="";var c=n.lookup(a[1]);function l(t){return o.render(t,n,d,s)}if(!c)return;if(e(c)){for(var u=0,f=c.length;u<f;++u){h+=this.renderTokens(a[4],n.push(c[u]),d,i,s)}}else if(typeof c==="object"||typeof c==="string"||typeof c==="number"){h+=this.renderTokens(a[4],n.push(c),d,i,s)}else if(r(c)){if(typeof i!=="string")throw new Error("Cannot use higher-order sections without the original template");c=c.call(n.view,i.slice(a[3],a[5]),l);if(c!=null)h+=c}else{h+=this.renderTokens(a[4],n,d,i,s)}return h};R.prototype.renderInverted=function t(r,a,n,d,i){var s=a.lookup(r[1]);if(!s||e(s)&&s.length===0)return this.renderTokens(r[4],a,n,d,i)};R.prototype.indentPartial=function t(e,r,a){var n=r.replace(/[^ \t]/g,"");var d=e.split("\n");for(var i=0;i<d.length;i++){if(d[i].length&&(i>0||!a)){d[i]=n+d[i]}}return d.join("\n")};R.prototype.renderPartial=function t(e,a,n,d){if(!n)return;var i=this.getConfigTags(d);var s=r(n)?n(e[1]):n[e[1]];if(s!=null){var o=e[6];var h=e[5];var c=e[4];var l=s;if(h==0&&c){l=this.indentPartial(s,c,o)}var u=this.parse(l,i);return this.renderTokens(u,a,n,l,d)}};R.prototype.unescapedValue=function t(e,r){var a=r.lookup(e[1]);if(a!=null)return a};R.prototype.escapedValue=function t(e,r,a){var n=this.getConfigEscape(a)||E.escape;var d=r.lookup(e[1]);if(d!=null)return typeof d==="number"&&n===E.escape?String(d):n(d)};R.prototype.rawValue=function t(e){return e[1]};R.prototype.getConfigTags=function t(r){if(e(r)){return r}else if(r&&typeof r==="object"){return r.tags}else{return undefined}};R.prototype.getConfigEscape=function t(r){if(r&&typeof r==="object"&&!e(r)){return r.escape}else{return undefined}};var E={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(t){j.templateCache=t},get templateCache(){return j.templateCache}};var j=new R;E.clearCache=function t(){return j.clearCache()};E.parse=function t(e,r){return j.parse(e,r)};E.render=function t(e,r,n,d){if(typeof e!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+a(e)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return j.render(e,r,n,d)};E.escape=u;E.Scanner=k;E.Context=x;E.Writer=R;return E}))})(mustache);var Locale=function(){function t(t){var e=this;this.rollbackLanguage="en";this.set=function(t){e.config=t};this.lang=function(t){e.element=t;e.closestElement=e.element.closest("[lang]");if(e.closestElement){if(e.closestElement.lang){e.language=e.closestElement.lang;return e.language}}e.language=e.rollbackLanguage;return e.language};this.update=function(t){var r=t!==null&&t!==void 0?t:e.element.shadowRoot;r&&r.querySelectorAll("*").forEach((function(t){if(t.tagName.toLowerCase().startsWith("mds-")){if(t&&"updateLang"in t){t.updateLang()}}}))};this.pluralize=function(t,r){var a=e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t];var n=[];if(Array.isArray(a)){n.push(a[0]);n.push(a[1])}else{n.push(a);n.push(a)}var d=n[0];var i=d;var s=Object.keys(r);if(s.length>0){var o=s[0];if(typeof r[o]==="number"){if(r[o]!==1){i=n[1]}}}return mustache.exports.render(i,r)};this.get=function(t,r){if(r){return e.pluralize(t,r)}return e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t]};if(t){this.set(t)}}return t}();var selectRow$3="Επιλογή γραμμής";var unselectRow$3="Αποεπιλογή γραμμής";var localeEl={selectRow:selectRow$3,unselectRow:unselectRow$3};var selectRow$2="Select row";var unselectRow$2="Deselect row";var localeEn={selectRow:selectRow$2,unselectRow:unselectRow$2};var selectRow$1="Seleccionar fila";var unselectRow$1="Deseleccionar fila";var localeEs={selectRow:selectRow$1,unselectRow:unselectRow$1};var selectRow="Seleziona riga";var unselectRow="Deseleziona riga";var localeIt={selectRow:selectRow,unselectRow:unselectRow};var mdsTableRowCss=':host{--mds-table-row-color-hover:var(--mds-table-color, rgb(var(--tone-neutral-02)));--mds-table-row-color-alt:var(--mds-table-color-alt, rgb(var(--tone-neutral-02)));--mds-table-row-background-hover:var(--mds-table-background, rgb(var(--tone-neutral)));--mds-table-row-background-alt:var(--mds-table-background-alt, rgb(var(--tone-neutral)));--mds-table-row-actions-gap:var(--mds-table-actions-gap, 1rem);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);color:var(--mds-table-row-color);display:table-row;position:relative;-webkit-transition-property:color;transition-property:color}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:-ms-flexbox;display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover);--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}.actions-view{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;inset:0;-ms-flex-pack:end;justify-content:end;pointer-events:none;position:absolute}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);-ms-flex-align:center;align-items:center;background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);border-top-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);display:-ms-inline-flexbox;display:inline-flex;gap:var(--mds-table-row-actions-gap);inset:0;margin-right:100%;padding:calc(var(--mds-table-border-width) * 2);padding-right:0;pointer-events:auto;position:-webkit-sticky;position:sticky;right:0;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-property:background-color, padding-right, -webkit-transform;transition-property:background-color, padding-right, -webkit-transform;transition-property:transform, background-color, padding-right;transition-property:transform, background-color, padding-right, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}:host(:hover) .actions{-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);-webkit-transform:translateX(0);transform:translateX(0)}:host-context(mds-table[interactive="false"]):host(:hover) .actions,:host-context(mds-table:not([interactive])):host(:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover)}:host-context(mds-table[selection]:not([interactive])):host(:not([selected]):hover) .actions,:host-context(mds-table[selection][interactive="false"]):host(:not([selected]):hover) .actions,:host-context(mds-table[selection]:not([interactive])):host([selected="false"]:hover) .actions,:host-context(mds-table[selection][interactive="false"]):host([selected="false"]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var MdsTableRowStyle0=mdsTableRowCss;var MdsTableRow=function(){function t(t){var e=this;registerInstance(this,t);this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.selectable=undefined;this.handleSelectionChange=function(t){var r;e.selected=t.detail.checked;(r=e.host.closest("mds-table"))===null||r===void 0?void 0:r.updateSelection()}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.host);this.t.update();return[2]}))}))};t.prototype.componentWillLoad=function(){this.language=this.t.lang(this.host);this.hasActions=this.host.querySelector('[slot="action"]')!==null};t.prototype.componentDidLoad=function(){var t;if(this.hasActions){this.actions=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".actions");this.sizerWidth="".concat(this.actions.offsetWidth.toString(),"px")}};t.prototype.render=function(){return h(Host,{key:"4905591b94a0af846d25e3cf55fe5805ecec76be",role:"row"},this.selectable&&h("mds-table-cell",{key:"07f8596969f20148250cc42fde0a806435825274",class:"selection-cell"},h("div",{key:"2d0bb74f3f5edaf6180c68a60457b374dcd7a4bd",class:"checkbox-wrapper"},h("mds-input-switch",{key:"e04fafd6a53ed1c6a4208b0317419fe21d08f28e",title:this.t.get(this.selected?"unselectRow":"selectRow"),lang:this.language,type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),h("slot",{key:"d71c2ec9e675fd8190eeeb7d816a5e2566c6afc4"}),this.hasActions&&h("mds-table-cell",{key:"0ede2c5f98d7541920c4170d70c21f9f61ac93cb",class:"actions-cell"},h("div",{key:"8a097d4b04bd594778f51bedfe438fe1fd3479b3",class:"actions-sizer",style:{minHeight:"1px",maxWidth:this.sizerWidth,minWidth:this.sizerWidth}}),h("div",{key:"31f1fe8d7e4ee01f33f1c6a5b76e23fd875dfd82",class:"actions-view"},h("div",{key:"762785e31a306ba3c1e7654218bdf8cb33044cd3",class:"actions",style:{marginRight:"calc(".concat(this.sizerWidth," + var(--mds-table-cell-padding))")}},h("slot",{key:"05ea2b5edc71e58859e55e52c1ab65ca0c5354f8",name:"action"})))))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();MdsTableRow.style=MdsTableRowStyle0;export{MdsTableRow as mds_table_row};
|
|
6
|
+
var t=Object.prototype.toString;var e=Array.isArray||function e(r){return t.call(r)==="[object Array]"};function r(t){return typeof t==="function"}function a(t){return e(t)?"array":typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function i(t,e){return t!=null&&typeof t==="object"&&e in t}function d(t,e){return t!=null&&typeof t!=="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var s=RegExp.prototype.test;function o(t,e){return s.call(t,e)}var c=/\S/;function h(t){return!o(c,t)}var l={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function f(t){return String(t).replace(/[&<>"'`=\/]/g,(function t(e){return l[e]}))}var u=/\s*/;var y=/\s+/;var m=/\s*=/;var b=/\s*\}/;var v=/#|\^|\/|>|\{|&|=|!/;function w(t,r){if(!t)return[];var a=false;var i=[];var d=[];var s=[];var o=false;var c=false;var l="";var f=0;function w(){if(o&&!c){while(s.length)delete d[s.pop()]}else{s=[]}o=false;c=false}var x,R,S;function j(t){if(typeof t==="string")t=t.split(y,2);if(!e(t)||t.length!==2)throw new Error("Invalid tags: "+t);x=new RegExp(n(t[0])+"\\s*");R=new RegExp("\\s*"+n(t[1]));S=new RegExp("\\s*"+n("}"+t[1]))}j(r||E.tags);var $=new k(t);var T,_,X,z,C,I;while(!$.eos()){T=$.pos;X=$.scanUntil(x);if(X){for(var M=0,D=X.length;M<D;++M){z=X.charAt(M);if(h(z)){s.push(d.length);l+=z}else{c=true;a=true;l+=" "}d.push(["text",z,T,T+1]);T+=1;if(z==="\n"){w();l="";f=0;a=false}}}if(!$.scan(x))break;o=true;_=$.scan(v)||"name";$.scan(u);if(_==="="){X=$.scanUntil(m);$.scan(m);$.scanUntil(R)}else if(_==="{"){X=$.scanUntil(S);$.scan(b);$.scanUntil(R);_="&"}else{X=$.scanUntil(R)}if(!$.scan(R))throw new Error("Unclosed tag at "+$.pos);if(_==">"){C=[_,X,T,$.pos,l,f,a]}else{C=[_,X,T,$.pos]}f++;d.push(C);if(_==="#"||_==="^"){i.push(C)}else if(_==="/"){I=i.pop();if(!I)throw new Error('Unopened section "'+X+'" at '+T);if(I[1]!==X)throw new Error('Unclosed section "'+I[1]+'" at '+T)}else if(_==="name"||_==="{"||_==="&"){c=true}else if(_==="="){j(X)}}w();I=i.pop();if(I)throw new Error('Unclosed section "'+I[1]+'" at '+$.pos);return g(p(d))}function p(t){var e=[];var r,a;for(var n=0,i=t.length;n<i;++n){r=t[n];if(r){if(r[0]==="text"&&a&&a[0]==="text"){a[1]+=r[1];a[3]=r[3]}else{e.push(r);a=r}}}return e}function g(t){var e=[];var r=e;var a=[];var n,i;for(var d=0,s=t.length;d<s;++d){n=t[d];switch(n[0]){case"#":case"^":r.push(n);a.push(n);r=n[4]=[];break;case"/":i=a.pop();i[5]=n[2];r=a.length>0?a[a.length-1][4]:e;break;default:r.push(n)}}return e}function k(t){this.string=t;this.tail=t;this.pos=0}k.prototype.eos=function t(){return this.tail===""};k.prototype.scan=function t(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var a=r[0];this.tail=this.tail.substring(a.length);this.pos+=a.length;return a};k.prototype.scanUntil=function t(e){var r=this.tail.search(e),a;switch(r){case-1:a=this.tail;this.tail="";break;case 0:a="";break;default:a=this.tail.substring(0,r);this.tail=this.tail.substring(r)}this.pos+=a.length;return a};function x(t,e){this.view=t;this.cache={".":this.view};this.parent=e}x.prototype.push=function t(e){return new x(e,this)};x.prototype.lookup=function t(e){var a=this.cache;var n;if(a.hasOwnProperty(e)){n=a[e]}else{var s=this,o,c,h,l=false;while(s){if(e.indexOf(".")>0){o=s.view;c=e.split(".");h=0;while(o!=null&&h<c.length){if(h===c.length-1)l=i(o,c[h])||d(o,c[h]);o=o[c[h++]]}}else{o=s.view[e];l=i(s.view,e)}if(l){n=o;break}s=s.parent}a[e]=n}if(r(n))n=n.call(this.view);return n};function R(){this.templateCache={_cache:{},set:function t(e,r){this._cache[e]=r},get:function t(e){return this._cache[e]},clear:function t(){this._cache={}}}}R.prototype.clearCache=function t(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};R.prototype.parse=function t(e,r){var a=this.templateCache;var n=e+":"+(r||E.tags).join(":");var i=typeof a!=="undefined";var d=i?a.get(n):undefined;if(d==undefined){d=w(e,r);i&&a.set(n,d)}return d};R.prototype.render=function t(e,r,a,n){var i=this.getConfigTags(n);var d=this.parse(e,i);var s=r instanceof x?r:new x(r,undefined);return this.renderTokens(d,s,a,e,n)};R.prototype.renderTokens=function t(e,r,a,n,i){var d="";var s,o,c;for(var h=0,l=e.length;h<l;++h){c=undefined;s=e[h];o=s[0];if(o==="#")c=this.renderSection(s,r,a,n,i);else if(o==="^")c=this.renderInverted(s,r,a,n,i);else if(o===">")c=this.renderPartial(s,r,a,i);else if(o==="&")c=this.unescapedValue(s,r);else if(o==="name")c=this.escapedValue(s,r,i);else if(o==="text")c=this.rawValue(s);if(c!==undefined)d+=c}return d};R.prototype.renderSection=function t(a,n,i,d,s){var o=this;var c="";var h=n.lookup(a[1]);function l(t){return o.render(t,n,i,s)}if(!h)return;if(e(h)){for(var f=0,u=h.length;f<u;++f){c+=this.renderTokens(a[4],n.push(h[f]),i,d,s)}}else if(typeof h==="object"||typeof h==="string"||typeof h==="number"){c+=this.renderTokens(a[4],n.push(h),i,d,s)}else if(r(h)){if(typeof d!=="string")throw new Error("Cannot use higher-order sections without the original template");h=h.call(n.view,d.slice(a[3],a[5]),l);if(h!=null)c+=h}else{c+=this.renderTokens(a[4],n,i,d,s)}return c};R.prototype.renderInverted=function t(r,a,n,i,d){var s=a.lookup(r[1]);if(!s||e(s)&&s.length===0)return this.renderTokens(r[4],a,n,i,d)};R.prototype.indentPartial=function t(e,r,a){var n=r.replace(/[^ \t]/g,"");var i=e.split("\n");for(var d=0;d<i.length;d++){if(i[d].length&&(d>0||!a)){i[d]=n+i[d]}}return i.join("\n")};R.prototype.renderPartial=function t(e,a,n,i){if(!n)return;var d=this.getConfigTags(i);var s=r(n)?n(e[1]):n[e[1]];if(s!=null){var o=e[6];var c=e[5];var h=e[4];var l=s;if(c==0&&h){l=this.indentPartial(s,h,o)}var f=this.parse(l,d);return this.renderTokens(f,a,n,l,i)}};R.prototype.unescapedValue=function t(e,r){var a=r.lookup(e[1]);if(a!=null)return a};R.prototype.escapedValue=function t(e,r,a){var n=this.getConfigEscape(a)||E.escape;var i=r.lookup(e[1]);if(i!=null)return typeof i==="number"&&n===E.escape?String(i):n(i)};R.prototype.rawValue=function t(e){return e[1]};R.prototype.getConfigTags=function t(r){if(e(r)){return r}else if(r&&typeof r==="object"){return r.tags}else{return undefined}};R.prototype.getConfigEscape=function t(r){if(r&&typeof r==="object"&&!e(r)){return r.escape}else{return undefined}};var E={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(t){S.templateCache=t},get templateCache(){return S.templateCache}};var S=new R;E.clearCache=function t(){return S.clearCache()};E.parse=function t(e,r){return S.parse(e,r)};E.render=function t(e,r,n,i){if(typeof e!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+a(e)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return S.render(e,r,n,i)};E.escape=f;E.Scanner=k;E.Context=x;E.Writer=R;return E}))})(mustache);var Locale=function(){function t(t){var e=this;this.rollbackLanguage="en";this.set=function(t){e.config=t};this.lang=function(t){e.element=t;e.closestElement=e.element.closest("[lang]");if(e.closestElement){if(e.closestElement.lang){e.language=e.closestElement.lang;return e.language}}e.language=e.rollbackLanguage;return e.language};this.update=function(t){var r=t!==null&&t!==void 0?t:e.element.shadowRoot;r&&r.querySelectorAll("*").forEach((function(t){if(t.tagName.toLowerCase().startsWith("mds-")){if(t&&"updateLang"in t){t.updateLang()}}}))};this.pluralize=function(t,r){var a=e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t];var n=[];if(Array.isArray(a)){n.push(a[0]);n.push(a[1])}else{n.push(a);n.push(a)}var i=n[0];var d=i;var s=Object.keys(r);if(s.length>0){var o=s[0];if(typeof r[o]==="number"){if(r[o]!==1){d=n[1]}}}return mustache.exports.render(d,r)};this.get=function(t,r){if(r){return e.pluralize(t,r)}return e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t]};if(t){this.set(t)}}return t}();var selectRow$3="Επιλογή γραμμής";var unselectRow$3="Αποεπιλογή γραμμής";var localeEl={selectRow:selectRow$3,unselectRow:unselectRow$3};var selectRow$2="Select row";var unselectRow$2="Deselect row";var localeEn={selectRow:selectRow$2,unselectRow:unselectRow$2};var selectRow$1="Seleccionar fila";var unselectRow$1="Deseleccionar fila";var localeEs={selectRow:selectRow$1,unselectRow:unselectRow$1};var selectRow="Seleziona riga";var unselectRow="Deseleziona riga";var localeIt={selectRow:selectRow,unselectRow:unselectRow};var isSafari=function(){if(navigator){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}return false};var mdsTableRowCss=':host{--mds-table-row-color-hover:var(--mds-table-color, rgb(var(--tone-neutral-02)));--mds-table-row-color-alt:var(--mds-table-color-alt, rgb(var(--tone-neutral-02)));--mds-table-row-background-hover:var(--mds-table-background, rgb(var(--tone-neutral)));--mds-table-row-background-alt:var(--mds-table-background-alt, rgb(var(--tone-neutral)));--mds-table-row-actions-gap:var(--mds-table-actions-gap, 1rem);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);color:var(--mds-table-row-color);display:table-row;position:relative;-webkit-transition-property:color;transition-property:color}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:-ms-flexbox;display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover);--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}.actions-view{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;inset:0;-ms-flex-pack:end;justify-content:end;pointer-events:none;position:absolute}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);-ms-flex-align:center;align-items:center;background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);border-top-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);display:-ms-inline-flexbox;display:inline-flex;gap:var(--mds-table-row-actions-gap);inset:0;margin-right:100%;padding:calc(var(--mds-table-border-width) * 2);padding-right:0;pointer-events:auto;position:-webkit-sticky;position:sticky;right:0;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-property:background-color, padding-right, -webkit-transform;transition-property:background-color, padding-right, -webkit-transform;transition-property:transform, background-color, padding-right;transition-property:transform, background-color, padding-right, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}:host(:hover) .actions{-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);-webkit-transform:translateX(0);transform:translateX(0)}:host-context(mds-table[interactive="false"]):host(:hover) .actions,:host-context(mds-table:not([interactive])):host(:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover)}:host-context(mds-table[selection]:not([interactive])):host(:not([selected]):hover) .actions,:host-context(mds-table[selection][interactive="false"]):host(:not([selected]):hover) .actions,:host-context(mds-table[selection]:not([interactive])):host([selected="false"]:hover) .actions,:host-context(mds-table[selection][interactive="false"]):host([selected="false"]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static !important}.actions-cell--disable .actions{margin-right:0 !important;-webkit-transform:translateX(0) !important;transform:translateX(0) !important}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var MdsTableRowStyle0=mdsTableRowCss;var MdsTableRow=function(){function t(t){var e=this;registerInstance(this,t);this.hasActions=true;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.selectable=undefined;this.handleSelectionChange=function(t){var r;e.selected=t.detail.checked;(r=e.host.closest("mds-table"))===null||r===void 0?void 0:r.updateSelection()}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.host);this.t.update();return[2]}))}))};t.prototype.componentWillLoad=function(){this.language=this.t.lang(this.host);this.hasActions=this.host.querySelector(':scope > [slot="action"]')!==null};t.prototype.componentDidLoad=function(){var t;if(this.hasActions){this.actions=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".actions");this.sizerWidth="".concat(this.actions.offsetWidth.toString(),"px")}};t.prototype.render=function(){return h(Host,{key:"ddc3467a490c2bd90fe51e21a5fe67268a09cabd",role:"row"},this.selectable&&h("mds-table-cell",{key:"e0aae0041d28b4a39e2cdfef98f8ceb34703613b",class:"selection-cell"},h("div",{key:"daf5de2fcfdb0f1863109feb96b533f9bdec1e43",class:"checkbox-wrapper"},h("mds-input-switch",{key:"d27bd2000b73115b7c9c2ad7705fcda40d134c04",title:this.t.get(this.selected?"unselectRow":"selectRow"),lang:this.language,type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),h("slot",{key:"2eb2218ac36175a75569199cb837c00ab56ef3d0"}),this.hasActions&&isSafari()&&h("mds-table-cell",{key:"0c74ae109c1112d79fc9a65412d032105fb1cdef",class:"actions-cell actions-cell--disable"},h("div",{key:"969b05e04cb68ec781ba5227de80a8b0357e299c",class:"actions"},h("slot",{key:"04ee8a48cf0ac01a0bc25b7e819e57767a6443a7",name:"action"}))),this.hasActions&&!isSafari()&&h("mds-table-cell",{key:"39dba4bf1fc6c2892705608bca1f68e70ce47c7c",class:"actions-cell"},h("div",{key:"2cab6097ba0bfe85f258ee9f569d92f75fd58208",class:"actions-sizer",style:{minHeight:"1px",maxWidth:this.sizerWidth,minWidth:this.sizerWidth}}),h("div",{key:"1c77e27a925fe8fc003fcdd17f760f35a306027b",class:"actions-view"},h("div",{key:"962a79184fa4cb6de61d443a65d9481b24cbb603",class:"actions",style:{marginRight:"calc(".concat(this.sizerWidth," + var(--mds-table-cell-padding))")}},h("slot",{key:"fde4f3d477475c8dfdb3346e84e3125f964b7676",name:"action"})))))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();MdsTableRow.style=MdsTableRowStyle0;export{MdsTableRow as mds_table_row};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-25b773c1.js";export{s as setNonce}from"./p-25b773c1.js";import{g as t}from"./p-e1255160.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a([["p-
|
|
1
|
+
import{p as e,b as a}from"./p-25b773c1.js";export{s as setNonce}from"./p-25b773c1.js";import{g as t}from"./p-e1255160.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a([["p-869d0b15",[[1,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],value:[520],language:[32],updateLang:[64]}]]]],e))));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,r,a){function n(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function d(t){try{o(a.next(t))}catch(t){i(t)}}function s(t){try{o(a["throw"](t))}catch(t){i(t)}}function o(t){t.done?r(t.value):n(t.value).then(d,s)}o((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,d;return d={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function s(t){return function(e){return o([t,e])}}function o(s){if(a)throw new TypeError("Generator is already executing.");while(d&&(d=0,s[0]&&(r=0)),r)try{if(a=1,n&&(i=s[0]&2?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;if(n=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];n=0}finally{a=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-133f1581.system.js"],(function(t){"use strict";var e,r,a,n;return{setters:[function(t){e=t.r;r=t.h;a=t.H;n=t.g}],execute:function(){var i=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var d={exports:{}};(function(t,e){(function(e,r){t.exports=r()})(i,(function(){
|
|
2
|
+
/*!
|
|
3
|
+
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
4
|
+
* http://github.com/janl/mustache.js
|
|
5
|
+
*/
|
|
6
|
+
var t=Object.prototype.toString;var e=Array.isArray||function e(r){return t.call(r)==="[object Array]"};function r(t){return typeof t==="function"}function a(t){return e(t)?"array":typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function i(t,e){return t!=null&&typeof t==="object"&&e in t}function d(t,e){return t!=null&&typeof t!=="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var s=RegExp.prototype.test;function o(t,e){return s.call(t,e)}var c=/\S/;function h(t){return!o(c,t)}var l={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function f(t){return String(t).replace(/[&<>"'`=\/]/g,(function t(e){return l[e]}))}var u=/\s*/;var y=/\s+/;var m=/\s*=/;var b=/\s*\}/;var v=/#|\^|\/|>|\{|&|=|!/;function p(t,r){if(!t)return[];var a=false;var i=[];var d=[];var s=[];var o=false;var c=false;var l="";var f=0;function p(){if(o&&!c){while(s.length)delete d[s.pop()]}else{s=[]}o=false;c=false}var x,R,E;function S(t){if(typeof t==="string")t=t.split(y,2);if(!e(t)||t.length!==2)throw new Error("Invalid tags: "+t);x=new RegExp(n(t[0])+"\\s*");R=new RegExp("\\s*"+n(t[1]));E=new RegExp("\\s*"+n("}"+t[1]))}S(r||j.tags);var _=new k(t);var X,z,C,T,D,U;while(!_.eos()){X=_.pos;C=_.scanUntil(x);if(C){for(var A=0,I=C.length;A<I;++A){T=C.charAt(A);if(h(T)){s.push(d.length);l+=T}else{c=true;a=true;l+=" "}d.push(["text",T,X,X+1]);X+=1;if(T==="\n"){p();l="";f=0;a=false}}}if(!_.scan(x))break;o=true;z=_.scan(v)||"name";_.scan(u);if(z==="="){C=_.scanUntil(m);_.scan(m);_.scanUntil(R)}else if(z==="{"){C=_.scanUntil(E);_.scan(b);_.scanUntil(R);z="&"}else{C=_.scanUntil(R)}if(!_.scan(R))throw new Error("Unclosed tag at "+_.pos);if(z==">"){D=[z,C,X,_.pos,l,f,a]}else{D=[z,C,X,_.pos]}f++;d.push(D);if(z==="#"||z==="^"){i.push(D)}else if(z==="/"){U=i.pop();if(!U)throw new Error('Unopened section "'+C+'" at '+X);if(U[1]!==C)throw new Error('Unclosed section "'+U[1]+'" at '+X)}else if(z==="name"||z==="{"||z==="&"){c=true}else if(z==="="){S(C)}}p();U=i.pop();if(U)throw new Error('Unclosed section "'+U[1]+'" at '+_.pos);return g(w(d))}function w(t){var e=[];var r,a;for(var n=0,i=t.length;n<i;++n){r=t[n];if(r){if(r[0]==="text"&&a&&a[0]==="text"){a[1]+=r[1];a[3]=r[3]}else{e.push(r);a=r}}}return e}function g(t){var e=[];var r=e;var a=[];var n,i;for(var d=0,s=t.length;d<s;++d){n=t[d];switch(n[0]){case"#":case"^":r.push(n);a.push(n);r=n[4]=[];break;case"/":i=a.pop();i[5]=n[2];r=a.length>0?a[a.length-1][4]:e;break;default:r.push(n)}}return e}function k(t){this.string=t;this.tail=t;this.pos=0}k.prototype.eos=function t(){return this.tail===""};k.prototype.scan=function t(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var a=r[0];this.tail=this.tail.substring(a.length);this.pos+=a.length;return a};k.prototype.scanUntil=function t(e){var r=this.tail.search(e),a;switch(r){case-1:a=this.tail;this.tail="";break;case 0:a="";break;default:a=this.tail.substring(0,r);this.tail=this.tail.substring(r)}this.pos+=a.length;return a};function x(t,e){this.view=t;this.cache={".":this.view};this.parent=e}x.prototype.push=function t(e){return new x(e,this)};x.prototype.lookup=function t(e){var a=this.cache;var n;if(a.hasOwnProperty(e)){n=a[e]}else{var s=this,o,c,h,l=false;while(s){if(e.indexOf(".")>0){o=s.view;c=e.split(".");h=0;while(o!=null&&h<c.length){if(h===c.length-1)l=i(o,c[h])||d(o,c[h]);o=o[c[h++]]}}else{o=s.view[e];l=i(s.view,e)}if(l){n=o;break}s=s.parent}a[e]=n}if(r(n))n=n.call(this.view);return n};function R(){this.templateCache={_cache:{},set:function t(e,r){this._cache[e]=r},get:function t(e){return this._cache[e]},clear:function t(){this._cache={}}}}R.prototype.clearCache=function t(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};R.prototype.parse=function t(e,r){var a=this.templateCache;var n=e+":"+(r||j.tags).join(":");var i=typeof a!=="undefined";var d=i?a.get(n):undefined;if(d==undefined){d=p(e,r);i&&a.set(n,d)}return d};R.prototype.render=function t(e,r,a,n){var i=this.getConfigTags(n);var d=this.parse(e,i);var s=r instanceof x?r:new x(r,undefined);return this.renderTokens(d,s,a,e,n)};R.prototype.renderTokens=function t(e,r,a,n,i){var d="";var s,o,c;for(var h=0,l=e.length;h<l;++h){c=undefined;s=e[h];o=s[0];if(o==="#")c=this.renderSection(s,r,a,n,i);else if(o==="^")c=this.renderInverted(s,r,a,n,i);else if(o===">")c=this.renderPartial(s,r,a,i);else if(o==="&")c=this.unescapedValue(s,r);else if(o==="name")c=this.escapedValue(s,r,i);else if(o==="text")c=this.rawValue(s);if(c!==undefined)d+=c}return d};R.prototype.renderSection=function t(a,n,i,d,s){var o=this;var c="";var h=n.lookup(a[1]);function l(t){return o.render(t,n,i,s)}if(!h)return;if(e(h)){for(var f=0,u=h.length;f<u;++f){c+=this.renderTokens(a[4],n.push(h[f]),i,d,s)}}else if(typeof h==="object"||typeof h==="string"||typeof h==="number"){c+=this.renderTokens(a[4],n.push(h),i,d,s)}else if(r(h)){if(typeof d!=="string")throw new Error("Cannot use higher-order sections without the original template");h=h.call(n.view,d.slice(a[3],a[5]),l);if(h!=null)c+=h}else{c+=this.renderTokens(a[4],n,i,d,s)}return c};R.prototype.renderInverted=function t(r,a,n,i,d){var s=a.lookup(r[1]);if(!s||e(s)&&s.length===0)return this.renderTokens(r[4],a,n,i,d)};R.prototype.indentPartial=function t(e,r,a){var n=r.replace(/[^ \t]/g,"");var i=e.split("\n");for(var d=0;d<i.length;d++){if(i[d].length&&(d>0||!a)){i[d]=n+i[d]}}return i.join("\n")};R.prototype.renderPartial=function t(e,a,n,i){if(!n)return;var d=this.getConfigTags(i);var s=r(n)?n(e[1]):n[e[1]];if(s!=null){var o=e[6];var c=e[5];var h=e[4];var l=s;if(c==0&&h){l=this.indentPartial(s,h,o)}var f=this.parse(l,d);return this.renderTokens(f,a,n,l,i)}};R.prototype.unescapedValue=function t(e,r){var a=r.lookup(e[1]);if(a!=null)return a};R.prototype.escapedValue=function t(e,r,a){var n=this.getConfigEscape(a)||j.escape;var i=r.lookup(e[1]);if(i!=null)return typeof i==="number"&&n===j.escape?String(i):n(i)};R.prototype.rawValue=function t(e){return e[1]};R.prototype.getConfigTags=function t(r){if(e(r)){return r}else if(r&&typeof r==="object"){return r.tags}else{return undefined}};R.prototype.getConfigEscape=function t(r){if(r&&typeof r==="object"&&!e(r)){return r.escape}else{return undefined}};var j={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(t){E.templateCache=t},get templateCache(){return E.templateCache}};var E=new R;j.clearCache=function t(){return E.clearCache()};j.parse=function t(e,r){return E.parse(e,r)};j.render=function t(e,r,n,i){if(typeof e!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+a(e)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return E.render(e,r,n,i)};j.escape=f;j.Scanner=k;j.Context=x;j.Writer=R;return j}))})(d);var s=function(){function t(t){var e=this;this.rollbackLanguage="en";this.set=function(t){e.config=t};this.lang=function(t){e.element=t;e.closestElement=e.element.closest("[lang]");if(e.closestElement){if(e.closestElement.lang){e.language=e.closestElement.lang;return e.language}}e.language=e.rollbackLanguage;return e.language};this.update=function(t){var r=t!==null&&t!==void 0?t:e.element.shadowRoot;r&&r.querySelectorAll("*").forEach((function(t){if(t.tagName.toLowerCase().startsWith("mds-")){if(t&&"updateLang"in t){t.updateLang()}}}))};this.pluralize=function(t,r){var a=e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t];var n=[];if(Array.isArray(a)){n.push(a[0]);n.push(a[1])}else{n.push(a);n.push(a)}var i=n[0];var s=i;var o=Object.keys(r);if(o.length>0){var c=o[0];if(typeof r[c]==="number"){if(r[c]!==1){s=n[1]}}}return d.exports.render(s,r)};this.get=function(t,r){if(r){return e.pluralize(t,r)}return e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t]};if(t){this.set(t)}}return t}();var o="Επιλογή γραμμής";var c="Αποεπιλογή γραμμής";var h={selectRow:o,unselectRow:c};var l="Select row";var f="Deselect row";var u={selectRow:l,unselectRow:f};var y="Seleccionar fila";var m="Deseleccionar fila";var b={selectRow:y,unselectRow:m};var v="Seleziona riga";var p="Deseleziona riga";var w={selectRow:v,unselectRow:p};var g=function(){if(navigator){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}return false};var k=':host{--mds-table-row-color-hover:var(--mds-table-color, rgb(var(--tone-neutral-02)));--mds-table-row-color-alt:var(--mds-table-color-alt, rgb(var(--tone-neutral-02)));--mds-table-row-background-hover:var(--mds-table-background, rgb(var(--tone-neutral)));--mds-table-row-background-alt:var(--mds-table-background-alt, rgb(var(--tone-neutral)));--mds-table-row-actions-gap:var(--mds-table-actions-gap, 1rem);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);color:var(--mds-table-row-color);display:table-row;position:relative;-webkit-transition-property:color;transition-property:color}.selection-cell{vertical-align:middle}.checkbox-wrapper{display:-ms-flexbox;display:flex}:host([interactive]:hover){--mds-table-row-actions-background:var(--mds-table-row-background-hover);--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}:host([sorted]){--mds-table-row-background:var(--mds-table-row-background-alt);--mds-table-row-color:var(--mds-table-row-color-alt)}:host([sorted][selected]){--mds-table-row-background:var(--mds-table-row-background-hover);--mds-table-row-color:var(--mds-table-row-color-hover)}.actions-view{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;inset:0;-ms-flex-pack:end;justify-content:end;pointer-events:none;position:absolute}.actions{--mds-table-row-actions-background:var(--mds-table-row-background);-ms-flex-align:center;align-items:center;background-color:var(--mds-table-row-actions-background);border-bottom-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);border-top-left-radius:calc(0.5rem + var(--mds-table-border-width) * 2);display:-ms-inline-flexbox;display:inline-flex;gap:var(--mds-table-row-actions-gap);inset:0;margin-right:100%;padding:calc(var(--mds-table-border-width) * 2);padding-right:0;pointer-events:auto;position:-webkit-sticky;position:sticky;right:0;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-property:background-color, padding-right, -webkit-transform;transition-property:background-color, padding-right, -webkit-transform;transition-property:transform, background-color, padding-right;transition-property:transform, background-color, padding-right, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}:host(:hover) .actions{-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]) .actions{padding-right:var(--mds-table-cell-padding);-webkit-transform:translateX(100%);transform:translateX(100%)}:host([overlay-actions]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background);-webkit-transform:translateX(0);transform:translateX(0)}:host-context(mds-table[interactive="false"]):host(:hover) .actions,:host-context(mds-table:not([interactive])):host(:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-hover)}:host-context(mds-table[selection]:not([interactive])):host(:not([selected]):hover) .actions,:host-context(mds-table[selection][interactive="false"]):host(:not([selected]):hover) .actions,:host-context(mds-table[selection]:not([interactive])):host([selected="false"]:hover) .actions,:host-context(mds-table[selection][interactive="false"]):host([selected="false"]:hover) .actions{--mds-table-row-actions-background:var(--mds-table-row-background-alt)}.actions-cell--disable,.actions-cell--disable .actions{position:static !important}.actions-cell--disable .actions{margin-right:0 !important;-webkit-transform:translateX(0) !important;transform:translateX(0) !important}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var x=k;var R=t("mds_table_row",function(){function t(t){var r=this;e(this,t);this.hasActions=true;this.t=new s({el:h,en:u,es:b,it:w});this.selectable=undefined;this.handleSelectionChange=function(t){var e;r.selected=t.detail.checked;(e=r.host.closest("mds-table"))===null||e===void 0?void 0:e.updateSelection()}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.host);this.t.update();return[2]}))}))};t.prototype.componentWillLoad=function(){this.language=this.t.lang(this.host);this.hasActions=this.host.querySelector(':scope > [slot="action"]')!==null};t.prototype.componentDidLoad=function(){var t;if(this.hasActions){this.actions=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".actions");this.sizerWidth="".concat(this.actions.offsetWidth.toString(),"px")}};t.prototype.render=function(){return r(a,{key:"ddc3467a490c2bd90fe51e21a5fe67268a09cabd",role:"row"},this.selectable&&r("mds-table-cell",{key:"e0aae0041d28b4a39e2cdfef98f8ceb34703613b",class:"selection-cell"},r("div",{key:"daf5de2fcfdb0f1863109feb96b533f9bdec1e43",class:"checkbox-wrapper"},r("mds-input-switch",{key:"d27bd2000b73115b7c9c2ad7705fcda40d134c04",title:this.t.get(this.selected?"unselectRow":"selectRow"),lang:this.language,type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),r("slot",{key:"2eb2218ac36175a75569199cb837c00ab56ef3d0"}),this.hasActions&&g()&&r("mds-table-cell",{key:"0c74ae109c1112d79fc9a65412d032105fb1cdef",class:"actions-cell actions-cell--disable"},r("div",{key:"969b05e04cb68ec781ba5227de80a8b0357e299c",class:"actions"},r("slot",{key:"04ee8a48cf0ac01a0bc25b7e819e57767a6443a7",name:"action"}))),this.hasActions&&!g()&&r("mds-table-cell",{key:"39dba4bf1fc6c2892705608bca1f68e70ce47c7c",class:"actions-cell"},r("div",{key:"2cab6097ba0bfe85f258ee9f569d92f75fd58208",class:"actions-sizer",style:{minHeight:"1px",maxWidth:this.sizerWidth,minWidth:this.sizerWidth}}),r("div",{key:"1c77e27a925fe8fc003fcdd17f760f35a306027b",class:"actions-view"},r("div",{key:"962a79184fa4cb6de61d443a65d9481b24cbb603",class:"actions",style:{marginRight:"calc(".concat(this.sizerWidth," + var(--mds-table-cell-padding))")}},r("slot",{key:"fde4f3d477475c8dfdb3346e84e3125f964b7676",name:"action"})))))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());R.style=x}}}));
|