@maggioli-design-system/mds-table-row 2.0.1 → 3.0.0
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/{index-2159a30d.js → index-516d954b.js} +376 -213
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +3 -2
- package/dist/cjs/mds-table-row.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/common/aria.js +19 -0
- package/dist/collection/components/mds-table-row/mds-table-row.css +1 -26
- package/dist/collection/components/mds-table-row/mds-table-row.js +45 -35
- package/dist/collection/dictionary/typography.js +3 -3
- package/dist/components/mds-table-row.js +2 -1
- package/dist/esm/{index-1e8e95d7.js → index-e2bb9874.js} +376 -213
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-table-row.entry.js +3 -2
- package/dist/esm/mds-table-row.js +2 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm-es5/index-e2bb9874.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table-row.js +1 -1
- package/dist/mds-table-row/mds-table-row.esm.js +1 -1
- package/dist/mds-table-row/mds-table-row.js +2 -1
- package/dist/mds-table-row/p-02435eb4.entry.js +1 -0
- package/dist/mds-table-row/p-2689570a.system.js +2 -0
- package/{www/build/p-703c309f.system.js → dist/mds-table-row/p-76031000.system.js} +1 -1
- package/dist/mds-table-row/p-a14f9222.js +2 -0
- package/dist/mds-table-row/p-c7a8ce4b.system.entry.js +1 -0
- package/dist/stats.json +37 -56
- package/dist/types/common/aria.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/dist/types/types/typography.d.ts +3 -3
- package/loader/package.json +1 -0
- package/package.json +5 -5
- package/readme.md +0 -10
- package/src/common/aria.ts +27 -0
- package/src/components/mds-table-row/.gitlab-ci.yml +2 -2
- package/src/components/mds-table-row/mds-table-row.css +2 -26
- package/src/components/mds-table-row/readme.md +0 -10
- package/src/dictionary/typography.ts +3 -3
- package/src/fixtures/icons.json +5 -2
- package/src/types/typography.ts +3 -3
- package/www/build/mds-table-row.esm.js +1 -1
- package/www/build/mds-table-row.js +2 -1
- package/www/build/p-02435eb4.entry.js +1 -0
- package/www/build/p-2689570a.system.js +2 -0
- package/{dist/mds-table-row/p-703c309f.system.js → www/build/p-76031000.system.js} +1 -1
- package/www/build/p-a14f9222.js +2 -0
- package/www/build/p-c7a8ce4b.system.entry.js +1 -0
- package/dist/esm-es5/index-1e8e95d7.js +0 -2
- package/dist/mds-table-row/p-c6fbd532.system.js +0 -2
- package/dist/mds-table-row/p-c8145b7b.system.entry.js +0 -1
- package/dist/mds-table-row/p-ca70a50c.entry.js +0 -1
- package/dist/mds-table-row/p-f5a4be35.js +0 -2
- package/www/build/p-c6fbd532.system.js +0 -2
- package/www/build/p-c8145b7b.system.entry.js +0 -1
- package/www/build/p-ca70a50c.entry.js +0 -1
- package/www/build/p-f5a4be35.js +0 -2
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-516d954b.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.20.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-516d954b.js');
|
|
6
6
|
|
|
7
|
-
const mdsTableRowCss = ".fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{display:table-row
|
|
7
|
+
const mdsTableRowCss = ".fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{display:table-row}:host([interactive]:hover){--mds-table-cell-background:var(--mds-table-cell-background-hover, rgb(var(--tone-neutral)))}";
|
|
8
8
|
|
|
9
9
|
const MdsTableRow = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
+
this.interactive = undefined;
|
|
12
13
|
}
|
|
13
14
|
tableInteractiveHandler(event) {
|
|
14
15
|
this.interactive = event.detail;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-516d954b.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
6
|
+
Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
9
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-table-row.cjs.js', document.baseURI).href));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const hash = (s) => {
|
|
2
|
+
let i, h;
|
|
3
|
+
for (i = 0, h = 0; i < s.length; i++) {
|
|
4
|
+
h = Math.imul(31, h) + s.charCodeAt(i) | 0;
|
|
5
|
+
}
|
|
6
|
+
return h.toString();
|
|
7
|
+
};
|
|
8
|
+
const unslugName = (name) => {
|
|
9
|
+
return name.split('/').slice(-1).pop().replace(/-/g, ' ');
|
|
10
|
+
};
|
|
11
|
+
const setAttributeIfEmpty = (element, attribute, value) => {
|
|
12
|
+
if (element.hasAttribute(attribute)) {
|
|
13
|
+
return element.getAttribute(attribute);
|
|
14
|
+
}
|
|
15
|
+
element.setAttribute(attribute, value);
|
|
16
|
+
return value;
|
|
17
|
+
};
|
|
18
|
+
const hashValue = (value) => `${value}-${hash(value)}`;
|
|
19
|
+
export { unslugName, setAttributeIfEmpty, hashValue, };
|
|
@@ -22,37 +22,12 @@
|
|
|
22
22
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
/**
|
|
26
|
-
* @prop --background-row-hover: The cell background-color when the mouse go over the table row element
|
|
27
|
-
* @prop --border-color: The border color between table rows
|
|
28
|
-
* @prop --border-width: The border width between table rows
|
|
29
|
-
* @prop --radius: The radius of the table (header and footer excluded)
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
25
|
:host {
|
|
33
26
|
|
|
34
27
|
display: table-row;
|
|
35
|
-
|
|
36
|
-
border-bottom-width: 1px;
|
|
37
|
-
|
|
38
|
-
border-bottom: var(--border-width, 2px) solid var(--border-color, rgb(var(--tone-neutral-09)));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host ( :first-child ) {
|
|
42
|
-
|
|
43
|
-
--radius-top-left: var(--radius, 0.5rem);
|
|
44
|
-
--radius-top-right: var(--radius, 0.5rem);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
:host ( :last-child ) {
|
|
48
|
-
|
|
49
|
-
border-color: transparent;
|
|
50
|
-
|
|
51
|
-
--radius-bottom-left: var(--radius, 0.5rem);
|
|
52
|
-
--radius-bottom-right: var(--radius, 0.5rem);
|
|
53
28
|
}
|
|
54
29
|
|
|
55
30
|
:host ( [interactive]:hover ) {
|
|
56
31
|
|
|
57
|
-
--background: var(--background-
|
|
32
|
+
--mds-table-cell-background: var(--mds-table-cell-background-hover, rgb(var(--tone-neutral)));
|
|
58
33
|
}
|
|
@@ -1,44 +1,54 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class MdsTableRow {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.interactive = undefined;
|
|
5
|
+
}
|
|
3
6
|
tableInteractiveHandler(event) {
|
|
4
7
|
this.interactive = event.detail;
|
|
5
8
|
}
|
|
6
9
|
render() {
|
|
7
|
-
return (h(Host, { role: "row" },
|
|
8
|
-
h("slot", null)));
|
|
10
|
+
return (h(Host, { role: "row" }, h("slot", null)));
|
|
9
11
|
}
|
|
10
12
|
static get is() { return "mds-table-row"; }
|
|
11
13
|
static get encapsulation() { return "shadow"; }
|
|
12
|
-
static get originalStyleUrls() {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
14
|
+
static get originalStyleUrls() {
|
|
15
|
+
return {
|
|
16
|
+
"$": ["mds-table-row.css"]
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
static get styleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["mds-table-row.css"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get properties() {
|
|
25
|
+
return {
|
|
26
|
+
"interactive": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"mutable": true,
|
|
29
|
+
"complexType": {
|
|
30
|
+
"original": "boolean",
|
|
31
|
+
"resolved": "boolean",
|
|
32
|
+
"references": {}
|
|
33
|
+
},
|
|
34
|
+
"required": false,
|
|
35
|
+
"optional": false,
|
|
36
|
+
"docs": {
|
|
37
|
+
"tags": [],
|
|
38
|
+
"text": ""
|
|
39
|
+
},
|
|
40
|
+
"attribute": "interactive",
|
|
41
|
+
"reflect": true
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get listeners() {
|
|
46
|
+
return [{
|
|
47
|
+
"name": "tableInteractive",
|
|
48
|
+
"method": "tableInteractiveHandler",
|
|
49
|
+
"target": "body",
|
|
50
|
+
"capture": false,
|
|
51
|
+
"passive": false
|
|
52
|
+
}];
|
|
53
|
+
}
|
|
44
54
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const typographyDictionary = [
|
|
2
2
|
'action',
|
|
3
3
|
'caption',
|
|
4
|
-
'
|
|
4
|
+
'snippet',
|
|
5
5
|
'detail',
|
|
6
6
|
'h1',
|
|
7
7
|
'h2',
|
|
@@ -19,10 +19,10 @@ const typographyVariationsDictionary = [
|
|
|
19
19
|
'title',
|
|
20
20
|
'info',
|
|
21
21
|
'read',
|
|
22
|
-
'
|
|
22
|
+
'code',
|
|
23
23
|
];
|
|
24
24
|
const typographyMonoDictionary = [
|
|
25
|
-
'
|
|
25
|
+
'snippet',
|
|
26
26
|
'hack',
|
|
27
27
|
];
|
|
28
28
|
const typographyTitleDictionary = [
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const mdsTableRowCss = ".fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{display:table-row
|
|
3
|
+
const mdsTableRowCss = ".fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{display:table-row}:host([interactive]:hover){--mds-table-cell-background:var(--mds-table-cell-background-hover, rgb(var(--tone-neutral)))}";
|
|
4
4
|
|
|
5
5
|
const MdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
8
|
this.__registerHost();
|
|
9
9
|
this.__attachShadow();
|
|
10
|
+
this.interactive = undefined;
|
|
10
11
|
}
|
|
11
12
|
tableInteractiveHandler(event) {
|
|
12
13
|
this.interactive = event.detail;
|