@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.
Files changed (53) 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 +16 -5
  9. package/dist/components/index.d.ts +1 -5
  10. package/dist/components/index.js +1 -0
  11. package/dist/components/mds-table-row.js +1 -0
  12. package/dist/esm/{index-1e8e95d7.js → index-e2bb9874.js} +376 -213
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/esm/mds-table-row.entry.js +2 -1
  15. package/dist/esm/mds-table-row.js +2 -2
  16. package/dist/esm/polyfills/css-shim.js +1 -1
  17. package/dist/esm-es5/index-e2bb9874.js +2 -0
  18. package/dist/esm-es5/loader.js +1 -1
  19. package/dist/esm-es5/mds-table-row.entry.js +1 -1
  20. package/dist/esm-es5/mds-table-row.js +1 -1
  21. package/dist/mds-table-row/mds-table-row.esm.js +1 -1
  22. package/dist/mds-table-row/mds-table-row.js +2 -1
  23. package/dist/mds-table-row/p-2689570a.system.js +2 -0
  24. package/dist/mds-table-row/{p-c8145b7b.system.entry.js → p-2a317845.system.entry.js} +1 -1
  25. package/dist/mds-table-row/{p-caab8e1e.system.js → p-2ca79ad0.system.js} +1 -1
  26. package/dist/mds-table-row/p-a14f9222.js +2 -0
  27. package/dist/mds-table-row/p-c9a97ed3.entry.js +1 -0
  28. package/dist/stats.json +36 -34
  29. package/dist/types/common/aria.d.ts +4 -0
  30. package/dist/types/dictionary/typography.d.ts +5 -3
  31. package/dist/types/stencil-public-runtime.d.ts +20 -4
  32. package/dist/types/types/typography.d.ts +6 -4
  33. package/loader/package.json +1 -0
  34. package/package.json +4 -4
  35. package/src/common/aria.ts +27 -0
  36. package/src/components/mds-table-row/.gitlab-ci.yml +2 -2
  37. package/src/dictionary/typography.ts +21 -6
  38. package/src/fixtures/icons.json +2 -2
  39. package/src/types/typography.ts +15 -4
  40. package/www/build/mds-table-row.esm.js +1 -1
  41. package/www/build/mds-table-row.js +2 -1
  42. package/www/build/p-2689570a.system.js +2 -0
  43. package/www/build/{p-c8145b7b.system.entry.js → p-2a317845.system.entry.js} +1 -1
  44. package/www/build/{p-caab8e1e.system.js → p-2ca79ad0.system.js} +1 -1
  45. package/www/build/p-a14f9222.js +2 -0
  46. package/www/build/p-c9a97ed3.entry.js +1 -0
  47. package/dist/esm-es5/index-1e8e95d7.js +0 -2
  48. package/dist/mds-table-row/p-c6fbd532.system.js +0 -2
  49. package/dist/mds-table-row/p-ca70a50c.entry.js +0 -1
  50. package/dist/mds-table-row/p-f5a4be35.js +0 -2
  51. package/www/build/p-c6fbd532.system.js +0 -2
  52. package/www/build/p-ca70a50c.entry.js +0 -1
  53. 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.16.1 | 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.16.1 | 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.16.1",
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',
@@ -15,11 +15,17 @@ const typographyDictionary = [
15
15
  'paragraph',
16
16
  'tip',
17
17
  ];
18
- const typographyMonoDictionary = [
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 typographyPrimaryDictionary = [
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 typographySecondaryDictionary = [
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, typographyPrimaryDictionary, typographySecondaryDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
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';
@@ -1 +1,2 @@
1
1
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
2
+ export { MdsTableRow, defineCustomElement as defineCustomElementMdsTableRow } from './mds-table-row.js';
@@ -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;