@maggioli-design-system/mds-table-row 2.0.0 → 2.0.2
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 +2 -1
- 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.js +45 -35
- package/dist/collection/dictionary/typography.js +16 -5
- package/dist/components/index.d.ts +1 -5
- package/dist/components/index.js +1 -0
- package/dist/components/mds-table-row.js +1 -0
- 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 +2 -1
- 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-2689570a.system.js +2 -0
- package/dist/mds-table-row/{p-c8145b7b.system.entry.js → p-2a317845.system.entry.js} +1 -1
- package/dist/mds-table-row/{p-caab8e1e.system.js → p-2ca79ad0.system.js} +1 -1
- package/dist/mds-table-row/p-a14f9222.js +2 -0
- package/dist/mds-table-row/p-c9a97ed3.entry.js +1 -0
- package/dist/stats.json +36 -34
- package/dist/types/common/aria.d.ts +4 -0
- package/dist/types/dictionary/typography.d.ts +5 -3
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/dist/types/types/typography.d.ts +6 -4
- package/loader/package.json +1 -0
- package/package.json +4 -4
- package/src/common/aria.ts +27 -0
- package/src/components/mds-table-row/.gitlab-ci.yml +2 -2
- package/src/dictionary/typography.ts +21 -6
- package/src/fixtures/icons.json +2 -2
- package/src/types/typography.ts +15 -4
- package/www/build/mds-table-row.esm.js +1 -1
- package/www/build/mds-table-row.js +2 -1
- package/www/build/p-2689570a.system.js +2 -0
- package/www/build/{p-c8145b7b.system.entry.js → p-2a317845.system.entry.js} +1 -1
- package/www/build/{p-caab8e1e.system.js → p-2ca79ad0.system.js} +1 -1
- package/www/build/p-a14f9222.js +2 -0
- package/www/build/p-c9a97ed3.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-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-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.19.3 | 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
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;border-bottom-width:1px;border-bottom:var(--border-width, 2px) solid var(--border-color, rgb(var(--tone-neutral-09)))}:host(:first-child){--radius-top-left:var(--radius, 0.5rem);--radius-top-right:var(--radius, 0.5rem)}:host(:last-child){border-color:transparent;--radius-bottom-left:var(--radius, 0.5rem);--radius-bottom-right:var(--radius, 0.5rem)}:host([interactive]:hover){--background:var(--background-row-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.19.3 | 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, };
|
|
@@ -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',
|
|
@@ -15,11 +15,17 @@ const typographyDictionary = [
|
|
|
15
15
|
'paragraph',
|
|
16
16
|
'tip',
|
|
17
17
|
];
|
|
18
|
-
const
|
|
18
|
+
const typographyVariationsDictionary = [
|
|
19
|
+
'title',
|
|
20
|
+
'info',
|
|
21
|
+
'read',
|
|
19
22
|
'code',
|
|
23
|
+
];
|
|
24
|
+
const typographyMonoDictionary = [
|
|
25
|
+
'snippet',
|
|
20
26
|
'hack',
|
|
21
27
|
];
|
|
22
|
-
const
|
|
28
|
+
const typographyTitleDictionary = [
|
|
23
29
|
'action',
|
|
24
30
|
'h1',
|
|
25
31
|
'h2',
|
|
@@ -28,7 +34,7 @@ const typographyPrimaryDictionary = [
|
|
|
28
34
|
'h5',
|
|
29
35
|
'h6',
|
|
30
36
|
];
|
|
31
|
-
const
|
|
37
|
+
const typographyInfoDictionary = [
|
|
32
38
|
'caption',
|
|
33
39
|
'detail',
|
|
34
40
|
'label',
|
|
@@ -36,6 +42,11 @@ const typographySecondaryDictionary = [
|
|
|
36
42
|
'paragraph',
|
|
37
43
|
'tip',
|
|
38
44
|
];
|
|
45
|
+
const typographyReadDictionary = [
|
|
46
|
+
'caption',
|
|
47
|
+
'detail',
|
|
48
|
+
'paragraph',
|
|
49
|
+
];
|
|
39
50
|
const typographySmallerDictionary = [
|
|
40
51
|
'option',
|
|
41
52
|
'tip',
|
|
@@ -45,4 +56,4 @@ const typographyTooltipDictionary = [
|
|
|
45
56
|
'detail',
|
|
46
57
|
'tip',
|
|
47
58
|
];
|
|
48
|
-
export { typographyDictionary, typographyMonoDictionary,
|
|
59
|
+
export { typographyDictionary, typographyVariationsDictionary, typographyMonoDictionary, typographyTitleDictionary, typographyInfoDictionary, typographyReadDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* MdsTableRow custom elements */
|
|
2
|
-
|
|
3
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
+
export { MdsTableRow as MdsTableRow } from '../types/components/mds-table-row/mds-table-row';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* Used to manually set the base path where assets can be found.
|
|
@@ -20,7 +19,4 @@ export interface SetPlatformOptions {
|
|
|
20
19
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
21
20
|
}
|
|
22
21
|
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
23
|
-
|
|
24
|
-
export type { Components, JSX };
|
|
25
|
-
|
|
26
22
|
export * from '../types/components';
|
package/dist/components/index.js
CHANGED