@aurodesignsystem-dev/auro-table 0.0.0-pr129.0 → 0.0.0-pr129.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/index.d.ts +11 -35
- package/package.json +7 -58
package/dist/index.d.ts
CHANGED
|
@@ -1,38 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { css, LitElement, html } from 'lit';
|
|
2
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
4
3
|
|
|
5
|
-
declare class n extends LitElement {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
nowrap: {
|
|
16
|
-
type: BooleanConstructor;
|
|
17
|
-
reflect: boolean;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
static get styles(): lit.CSSResult[];
|
|
21
|
-
static register(e?: string): void;
|
|
22
|
-
nowrap: boolean;
|
|
23
|
-
runtimeUtils: i;
|
|
24
|
-
updated(e: any): void;
|
|
25
|
-
firstUpdated(): void;
|
|
26
|
-
extractHeaders(): void;
|
|
27
|
-
extractRows(): void;
|
|
28
|
-
render(): lit_html.TemplateResult<1>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare class i {
|
|
32
|
-
registerComponent(e: any, s: any): void;
|
|
33
|
-
closestElement(e: any, s?: this, a?: (s: any, t?: any) => any): any;
|
|
34
|
-
handleComponentTagRename(e: any, s: any): void;
|
|
35
|
-
elementMatch(e: any, s: any): any;
|
|
36
|
-
}
|
|
4
|
+
class i{registerComponent(e,s){customElements.get(e)||customElements.define(e,class extends s{});}closestElement(e,s=this,a=(s,t=s&&s.closest(e))=>s&&s!==document&&s!==window?t||a(s.getRootNode().host):null){return a(s)}handleComponentTagRename(e,s){const a=s.toLowerCase();e.tagName.toLowerCase()!==a&&e.setAttribute(a,true);}elementMatch(e,s){const a=s.toLowerCase();return e.tagName.toLowerCase()===a||e.hasAttribute(a)}}var l=css`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{display:block;overflow:scroll}@media screen and (min-width: 576px){:host{overflow:initial}}table{overflow:scroll;width:100%;margin-bottom:var(--ds-size-400, 2rem);border-collapse:collapse;border-spacing:var(--ds-size-100, .5rem)}thead{border-bottom:1px solid var(--ds-auro-table-border-color);border-collapse:collapse}tr:nth-child(2n){background-color:var(--ds-auro-table-alt-row-container-color)}th,td{padding:var(--ds-size-200, 1rem)}th{text-align:left}.nowrap{white-space:nowrap}
|
|
5
|
+
`,c=css`:host{--ds-auro-table-alt-row-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7);--ds-auro-table-border-color: var(--ds-basic-color-border-subtle, #dddddd)}
|
|
6
|
+
`;class n extends LitElement{constructor(){super(),this.nowrap=false,this.runtimeUtils=new i;}static get properties(){return {columnHeaders:{type:Array,reflect:true},componentData:{type:Array,reflect:true},nowrap:{type:Boolean,reflect:true}}}static get styles(){return [l,c]}static register(e="auro-table"){i.prototype.registerComponent(e,n);}updated(e){e.has("columnHeaders")&&this.extractHeaders(),e.has("componentData")&&this.extractRows();}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-table");}extractHeaders(){if(this.columnHeaders){const e=this.shadowRoot.querySelector("thead tr");e.innerHTML="",this.columnHeaders.forEach(s=>{const a=document.createElement("th");a.className="heading-2xs",a.innerHTML=s,e.appendChild(a);});}}extractRows(){const e=this.shadowRoot.querySelector("tbody");e.innerHTML="",this.componentData&&this.columnHeaders&&this.componentData.forEach(s=>{const a=document.createElement("tr");this.columnHeaders.forEach(e=>{const t=document.createElement("td"),i=s[e]||"";t.innerHTML=i,a.appendChild(t);}),e.appendChild(a);});}render(){const e={nowrap:this.nowrap};return html`
|
|
7
|
+
<table class="body-default">
|
|
8
|
+
<thead><tr></tr></thead>
|
|
9
|
+
<tbody class="${classMap(e)}">
|
|
10
|
+
</tbody>
|
|
11
|
+
</table>
|
|
12
|
+
`}}
|
|
37
13
|
|
|
38
14
|
export { n as AuroTable };
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"================================================================================"
|
|
8
8
|
],
|
|
9
9
|
"name": "@aurodesignsystem-dev/auro-table",
|
|
10
|
-
"version": "0.0.0-pr129.
|
|
10
|
+
"version": "0.0.0-pr129.1",
|
|
11
11
|
"description": "auro-table HTML custom element",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -24,56 +24,13 @@
|
|
|
24
24
|
"lit": "^3.3.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@aurodesignsystem/auro-cli": "^3.0.
|
|
28
|
-
"@aurodesignsystem/auro-config": "^1.
|
|
29
|
-
"@aurodesignsystem/auro-library": "^5.
|
|
30
|
-
"@aurodesignsystem/design-tokens": "^8.4.
|
|
27
|
+
"@aurodesignsystem/auro-cli": "^3.0.3",
|
|
28
|
+
"@aurodesignsystem/auro-config": "^1.3.0",
|
|
29
|
+
"@aurodesignsystem/auro-library": "^5.5.3",
|
|
30
|
+
"@aurodesignsystem/design-tokens": "^8.4.4",
|
|
31
31
|
"@aurodesignsystem/eslint-config": "1.3.5",
|
|
32
|
-
"@aurodesignsystem/webcorestylesheets": "10.0.
|
|
33
|
-
"
|
|
34
|
-
"@commitlint/cli": "^19.8.1",
|
|
35
|
-
"@commitlint/config-conventional": "^19.8.1",
|
|
36
|
-
"@open-wc/testing": "^4.0.0",
|
|
37
|
-
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
38
|
-
"@semantic-release/changelog": "^6.0.3",
|
|
39
|
-
"@semantic-release/git": "^10.0.1",
|
|
40
|
-
"@semantic-release/npm": "^12.0.2",
|
|
41
|
-
"@web/dev-server": "^0.4.6",
|
|
42
|
-
"@web/test-runner": "^0.20.2",
|
|
43
|
-
"autoprefixer": "^10.4.21",
|
|
44
|
-
"compression": "^1.8.0",
|
|
45
|
-
"concat": "^1.0.3",
|
|
46
|
-
"concurrently": "^9.2.0",
|
|
47
|
-
"copyfiles": "^2.4.1",
|
|
48
|
-
"core-js": "^3.44.0",
|
|
49
|
-
"husky": "^9.1.7",
|
|
50
|
-
"lodash": "^4.17.21",
|
|
51
|
-
"markdown-magic": "^3.7.0",
|
|
52
|
-
"nodemon": "^3.1.10",
|
|
53
|
-
"npm-run-all": "^4.1.5",
|
|
54
|
-
"postcss": "^8.5.6",
|
|
55
|
-
"postcss-discard-comments": "^7.0.4",
|
|
56
|
-
"postcss-selector-replace": "^1.0.2",
|
|
57
|
-
"rollup": "^4.45.1",
|
|
58
|
-
"rollup-plugin-serve": "^3.0.0",
|
|
59
|
-
"sass": "^1.89.2",
|
|
60
|
-
"semantic-release": "^24.2.7",
|
|
61
|
-
"stylelint": "^16.21.1",
|
|
62
|
-
"stylelint-config-idiomatic-order": "^10.0.0",
|
|
63
|
-
"stylelint-config-standard": "^38.0.0",
|
|
64
|
-
"stylelint-config-standard-scss": "^15.0.1",
|
|
65
|
-
"stylelint-order": "^7.0.0",
|
|
66
|
-
"stylelint-scss": "^6.12.1",
|
|
67
|
-
"typescript": "^5.8.3",
|
|
68
|
-
"wc-sass-render": "^1.4.0",
|
|
69
|
-
"web-component-analyzer": "^2.0.0",
|
|
70
|
-
"whatwg-fetch": "^3.6.20",
|
|
71
|
-
"yaml-lint": "^1.7.0"
|
|
72
|
-
},
|
|
73
|
-
"overrides": {
|
|
74
|
-
"wc-sass-render": {
|
|
75
|
-
"sass": "$sass"
|
|
76
|
-
}
|
|
32
|
+
"@aurodesignsystem/webcorestylesheets": "10.0.4",
|
|
33
|
+
"husky": "^9.1.7"
|
|
77
34
|
},
|
|
78
35
|
"browserslist": [
|
|
79
36
|
"last 2 Chrome versions",
|
|
@@ -101,14 +58,6 @@
|
|
|
101
58
|
"test:watch": "auro test --watch",
|
|
102
59
|
"prepare": "husky"
|
|
103
60
|
},
|
|
104
|
-
"lint-staged": {
|
|
105
|
-
"*": [
|
|
106
|
-
"biome check --fix --no-errors-on-unmatched"
|
|
107
|
-
],
|
|
108
|
-
"*.{scss,css}": [
|
|
109
|
-
"stylelint --fix"
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
61
|
"exports": {
|
|
113
62
|
"./package.json": "./package.json",
|
|
114
63
|
"./readme.md": "./README.md",
|