@ni/nimble-components 18.8.0 → 18.8.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/all-components-bundle.js +6 -9
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +6 -9
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/components/header/styles.js +0 -1
- package/dist/esm/table/components/header/styles.js.map +1 -1
- package/dist/esm/table/components/header/template.js +6 -8
- package/dist/esm/table/components/header/template.js.map +1 -1
- package/package.json +1 -1
|
@@ -5332,20 +5332,17 @@ return!this.duplicateSortIndex}}const Rb=ft`
|
|
|
5332
5332
|
|
|
5333
5333
|
.sort-indicator {
|
|
5334
5334
|
padding: 0px calc(${oa} / 2);
|
|
5335
|
-
width: ${oa};
|
|
5336
5335
|
}
|
|
5337
5336
|
`,Ob=G`
|
|
5338
5337
|
<template role="columnheader" aria-sort="${t=>t.ariaSort}">
|
|
5339
5338
|
<slot></slot>
|
|
5340
5339
|
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
`)}
|
|
5348
|
-
</span>
|
|
5340
|
+
${It((t=>t.sortDirection===kb.ascending),G`
|
|
5341
|
+
<${bg} class="sort-indicator" aria-hidden="true"></${bg}>
|
|
5342
|
+
`)}
|
|
5343
|
+
${It((t=>t.sortDirection===kb.descending),G`
|
|
5344
|
+
<${ag} class="sort-indicator" aria-hidden="true"></${ag}>
|
|
5345
|
+
`)}
|
|
5349
5346
|
</template>
|
|
5350
5347
|
`
|
|
5351
5348
|
class Eb extends _e{constructor(){super(...arguments),this.sortDirection=kb.none,this.firstSortedColumn=!1}sortDirectionChanged(t,e){this.updateAriaSort()}firstSortedColumnChanged(t,e){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==kb.none?this.sortDirection===kb.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}t([nt({attribute:"sort-direction"})],Eb.prototype,"sortDirection",void 0),t([nt({attribute:"first-sorted-column",mode:"boolean"})],Eb.prototype,"firstSortedColumn",void 0)
|