@maggioli-design-system/mds-table-row 2.0.1 → 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.
Files changed (50) hide show
  1. package/dist/cjs/{index-2159a30d.js → index-516d954b.js} +376 -213
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-table-row.cjs.entry.js +2 -1
  4. package/dist/cjs/mds-table-row.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/common/aria.js +19 -0
  7. package/dist/collection/components/mds-table-row/mds-table-row.js +45 -35
  8. package/dist/collection/dictionary/typography.js +3 -3
  9. package/dist/components/mds-table-row.js +1 -0
  10. package/dist/esm/{index-1e8e95d7.js → index-e2bb9874.js} +376 -213
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/esm/mds-table-row.entry.js +2 -1
  13. package/dist/esm/mds-table-row.js +2 -2
  14. package/dist/esm/polyfills/css-shim.js +1 -1
  15. package/dist/esm-es5/index-e2bb9874.js +2 -0
  16. package/dist/esm-es5/loader.js +1 -1
  17. package/dist/esm-es5/mds-table-row.entry.js +1 -1
  18. package/dist/esm-es5/mds-table-row.js +1 -1
  19. package/dist/mds-table-row/mds-table-row.esm.js +1 -1
  20. package/dist/mds-table-row/mds-table-row.js +2 -1
  21. package/dist/mds-table-row/p-2689570a.system.js +2 -0
  22. package/dist/mds-table-row/{p-c8145b7b.system.entry.js → p-2a317845.system.entry.js} +1 -1
  23. package/{www/build/p-703c309f.system.js → dist/mds-table-row/p-2ca79ad0.system.js} +1 -1
  24. package/dist/mds-table-row/p-a14f9222.js +2 -0
  25. package/dist/mds-table-row/p-c9a97ed3.entry.js +1 -0
  26. package/dist/stats.json +36 -34
  27. package/dist/types/common/aria.d.ts +4 -0
  28. package/dist/types/stencil-public-runtime.d.ts +20 -4
  29. package/dist/types/types/typography.d.ts +3 -3
  30. package/loader/package.json +1 -0
  31. package/package.json +4 -4
  32. package/src/common/aria.ts +27 -0
  33. package/src/components/mds-table-row/.gitlab-ci.yml +2 -2
  34. package/src/dictionary/typography.ts +3 -3
  35. package/src/fixtures/icons.json +2 -2
  36. package/src/types/typography.ts +3 -3
  37. package/www/build/mds-table-row.esm.js +1 -1
  38. package/www/build/mds-table-row.js +2 -1
  39. package/www/build/p-2689570a.system.js +2 -0
  40. package/www/build/{p-c8145b7b.system.entry.js → p-2a317845.system.entry.js} +1 -1
  41. package/{dist/mds-table-row/p-703c309f.system.js → www/build/p-2ca79ad0.system.js} +1 -1
  42. package/www/build/p-a14f9222.js +2 -0
  43. package/www/build/p-c9a97ed3.entry.js +1 -0
  44. package/dist/esm-es5/index-1e8e95d7.js +0 -2
  45. package/dist/mds-table-row/p-c6fbd532.system.js +0 -2
  46. package/dist/mds-table-row/p-ca70a50c.entry.js +0 -1
  47. package/dist/mds-table-row/p-f5a4be35.js +0 -2
  48. package/www/build/p-c6fbd532.system.js +0 -2
  49. package/www/build/p-ca70a50c.entry.js +0 -1
  50. package/www/build/p-f5a4be35.js +0 -2
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2159a30d.js');
5
+ const index = require('./index-516d954b.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
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-2159a30d.js');
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-2159a30d.js');
3
+ const index = require('./index-516d954b.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
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));
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.17.0",
8
- "typescriptVersion": "4.5.4"
7
+ "version": "2.19.3",
8
+ "typescriptVersion": "4.7.4"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []
@@ -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 { Component, Host, h, Listen, Prop } from '@stencil/core';
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() { return {
13
- "$": ["mds-table-row.css"]
14
- }; }
15
- static get styleUrls() { return {
16
- "$": ["mds-table-row.css"]
17
- }; }
18
- static get properties() { return {
19
- "interactive": {
20
- "type": "boolean",
21
- "mutable": true,
22
- "complexType": {
23
- "original": "boolean",
24
- "resolved": "boolean",
25
- "references": {}
26
- },
27
- "required": false,
28
- "optional": false,
29
- "docs": {
30
- "tags": [],
31
- "text": ""
32
- },
33
- "attribute": "interactive",
34
- "reflect": true
35
- }
36
- }; }
37
- static get listeners() { return [{
38
- "name": "tableInteractive",
39
- "method": "tableInteractiveHandler",
40
- "target": "body",
41
- "capture": false,
42
- "passive": false
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
- 'code',
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
- 'mono',
22
+ 'code',
23
23
  ];
24
24
  const typographyMonoDictionary = [
25
- 'code',
25
+ 'snippet',
26
26
  'hack',
27
27
  ];
28
28
  const typographyTitleDictionary = [
@@ -7,6 +7,7 @@ const MdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
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;