@ni/spright-components 4.1.12 → 4.1.14
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.
|
@@ -16035,6 +16035,7 @@
|
|
|
16035
16035
|
const PowerGreen = "#32eb96";
|
|
16036
16036
|
const PowerGreen10 = "#364941";
|
|
16037
16037
|
const PowerGreen30 = "#356d54";
|
|
16038
|
+
const PowerGreenDark50 = "#98f5ca";
|
|
16038
16039
|
const Black22 = "#e6e6e6";
|
|
16039
16040
|
const Black82 = "#434445";
|
|
16040
16041
|
const NiHoneyLight = "#ffe76b";
|
|
@@ -16658,7 +16659,7 @@
|
|
|
16658
16659
|
DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventBackgroundTransientColor)).withDefault((element) => getColorForTheme(element, DigitalGreenDark105, DigitalGreenDark, DigitalGreenDark));
|
|
16659
16660
|
DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventBorderStaticColor)).withDefault((element) => getColorForTheme(element, DigitalGreenLight, DigitalGreenLight, DigitalGreenLight));
|
|
16660
16661
|
DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventBorderTransientColor)).withDefault((element) => getColorForTheme(element, DigitalGreenLight, hexToRgbaCssColor(PowerGreen, 0.85), hexToRgbaCssColor(PowerGreen, 0.85)));
|
|
16661
|
-
DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventStaticFontColor)).withDefault((element) => getColorForTheme(element, DigitalGreenDark110,
|
|
16662
|
+
DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventStaticFontColor)).withDefault((element) => getColorForTheme(element, DigitalGreenDark110, PowerGreenDark50, PowerGreenDark50));
|
|
16662
16663
|
DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventDynamicFontColor)).withDefault((element) => getColorForTheme(element, White, White, White));
|
|
16663
16664
|
DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventTransientFontColor)).withDefault((element) => getColorForTheme(element, White, White, White));
|
|
16664
16665
|
DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventBackgroundHoverStaticColor)).withDefault((element) => getColorForTheme(element, DigitalGreenLight30, PowerGreen30, PowerGreen30));
|
|
@@ -65776,13 +65777,6 @@ focus outline in that case.
|
|
|
65776
65777
|
cursor: var(--ni-private-table-cursor-override);
|
|
65777
65778
|
}
|
|
65778
65779
|
|
|
65779
|
-
.glass-overlay {
|
|
65780
|
-
width: 100%;
|
|
65781
|
-
height: 100%;
|
|
65782
|
-
display: contents;
|
|
65783
|
-
pointer-events: var(--ni-private-glass-overlay-pointer-events);
|
|
65784
|
-
}
|
|
65785
|
-
|
|
65786
65780
|
.header-row-container {
|
|
65787
65781
|
position: sticky;
|
|
65788
65782
|
top: 0;
|
|
@@ -65860,6 +65854,7 @@ focus outline in that case.
|
|
|
65860
65854
|
cursor: col-resize;
|
|
65861
65855
|
position: absolute;
|
|
65862
65856
|
z-index: ${ZIndexLevels.zIndex1};
|
|
65857
|
+
touch-action: pan-y;
|
|
65863
65858
|
}
|
|
65864
65859
|
|
|
65865
65860
|
.column-divider:hover,
|
|
@@ -67102,159 +67097,156 @@ focus outline in that case.
|
|
|
67102
67097
|
--ni-private-table-row-grid-columns: ${x => (x.rowGridColumns ? x.rowGridColumns : '')};
|
|
67103
67098
|
--ni-private-table-cursor-override: ${x => (x.layoutManager.isColumnBeingSized ? 'col-resize' : 'default')};
|
|
67104
67099
|
--ni-private-table-scrollable-min-width: ${x => x.tableScrollableMinWidth}px;
|
|
67105
|
-
--ni-private-glass-overlay-pointer-events: ${x => (x.layoutManager.isColumnBeingSized ? 'none' : 'default')};
|
|
67106
67100
|
">
|
|
67107
|
-
<div class="
|
|
67108
|
-
<div
|
|
67109
|
-
<
|
|
67110
|
-
|
|
67111
|
-
|
|
67112
|
-
|
|
67113
|
-
|
|
67114
|
-
|
|
67115
|
-
|
|
67116
|
-
|
|
67117
|
-
|
|
67118
|
-
|
|
67119
|
-
${ref('selectionCheckbox')}
|
|
67120
|
-
${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
|
|
67121
|
-
tabindex="-1"
|
|
67122
|
-
class="selection-checkbox"
|
|
67123
|
-
@change="${(x, c) => x.onAllRowsSelectionChange(c.event)}"
|
|
67124
|
-
title="${x => tableSelectAllLabel.getValueFor(x)}"
|
|
67125
|
-
aria-label="${x => tableSelectAllLabel.getValueFor(x)}"
|
|
67126
|
-
>
|
|
67127
|
-
</${checkboxTag}>
|
|
67128
|
-
</span>
|
|
67129
|
-
`)}
|
|
67130
|
-
<span class="collapse-all-button-container">
|
|
67131
|
-
<${buttonTag}
|
|
67132
|
-
${ref('collapseAllButton')}
|
|
67101
|
+
<div role="rowgroup" class="header-row-container">
|
|
67102
|
+
<div class="header-row" role="row">
|
|
67103
|
+
<span role="${x => (x.showRowOperationColumn ? 'columnheader' : '')}" class="header-row-action-container" ${ref('headerRowActionContainer')}>
|
|
67104
|
+
${when(x => x.showRowOperationColumn, html `
|
|
67105
|
+
<span class="accessibly-hidden">
|
|
67106
|
+
${x => tableRowOperationColumnLabel.getValueFor(x)}
|
|
67107
|
+
</span>
|
|
67108
|
+
`)}
|
|
67109
|
+
${when(x => x.selectionMode === TableRowSelectionMode.multiple, html `
|
|
67110
|
+
<span class="checkbox-container">
|
|
67111
|
+
<${checkboxTag}
|
|
67112
|
+
${ref('selectionCheckbox')}
|
|
67133
67113
|
${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
|
|
67134
67114
|
tabindex="-1"
|
|
67135
|
-
class="
|
|
67136
|
-
|
|
67137
|
-
|
|
67138
|
-
|
|
67139
|
-
@click="${x => x.handleCollapseAllRows()}"
|
|
67115
|
+
class="selection-checkbox"
|
|
67116
|
+
@change="${(x, c) => x.onAllRowsSelectionChange(c.event)}"
|
|
67117
|
+
title="${x => tableSelectAllLabel.getValueFor(x)}"
|
|
67118
|
+
aria-label="${x => tableSelectAllLabel.getValueFor(x)}"
|
|
67140
67119
|
>
|
|
67141
|
-
|
|
67142
|
-
${x => tableCollapseAllLabel.getValueFor(x)}
|
|
67143
|
-
</${buttonTag}>
|
|
67120
|
+
</${checkboxTag}>
|
|
67144
67121
|
</span>
|
|
67122
|
+
`)}
|
|
67123
|
+
<span class="collapse-all-button-container">
|
|
67124
|
+
<${buttonTag}
|
|
67125
|
+
${ref('collapseAllButton')}
|
|
67126
|
+
${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
|
|
67127
|
+
tabindex="-1"
|
|
67128
|
+
class="collapse-all-button ${x => x.collapseButtonVisibility}"
|
|
67129
|
+
content-hidden
|
|
67130
|
+
appearance="${ButtonAppearance.ghost}"
|
|
67131
|
+
title="${x => tableCollapseAllLabel.getValueFor(x)}"
|
|
67132
|
+
@click="${x => x.handleCollapseAllRows()}"
|
|
67133
|
+
>
|
|
67134
|
+
<${iconTriangleTwoLinesHorizontalTag} slot="start"></${iconTriangleTwoLinesHorizontalTag}>
|
|
67135
|
+
${x => tableCollapseAllLabel.getValueFor(x)}
|
|
67136
|
+
</${buttonTag}>
|
|
67145
67137
|
</span>
|
|
67146
|
-
|
|
67147
|
-
|
|
67148
|
-
|
|
67149
|
-
|
|
67150
|
-
|
|
67151
|
-
|
|
67152
|
-
|
|
67153
|
-
|
|
67154
|
-
|
|
67155
|
-
|
|
67156
|
-
|
|
67157
|
-
|
|
67158
|
-
|
|
67159
|
-
|
|
67160
|
-
|
|
67161
|
-
<${tableHeaderTag}
|
|
67162
|
-
class="header"
|
|
67163
|
-
${'' /* tabindex managed dynamically by KeyboardNavigationManager (if column sorting not disabled) */}
|
|
67164
|
-
sort-direction="${x => (typeof x.columnInternals.currentSortIndex === 'number' ? x.columnInternals.currentSortDirection : TableColumnSortDirection.none)}"
|
|
67165
|
-
?first-sorted-column="${(x, c) => x === c.parent.firstSortedColumn}"
|
|
67166
|
-
?indicators-hidden="${x => x.columnInternals.hideHeaderIndicators}"
|
|
67167
|
-
@keydown="${(x, c) => c.parent.onHeaderKeyDown(x, c.event)}"
|
|
67168
|
-
@click="${(x, c) => c.parent.toggleColumnSort(x, c.event.shiftKey)}"
|
|
67169
|
-
:alignment="${x => x.columnInternals.headerAlignment}"
|
|
67170
|
-
:isGrouped=${x => (typeof x.columnInternals.groupIndex === 'number' && !x.columnInternals.groupingDisabled)}
|
|
67171
|
-
>
|
|
67172
|
-
<slot name="${x => x.slot}"></slot>
|
|
67173
|
-
</${tableHeaderTag}>
|
|
67174
|
-
${when((_, c) => c.index < c.length - 1, html `
|
|
67175
|
-
<div
|
|
67176
|
-
class="
|
|
67177
|
-
column-divider
|
|
67178
|
-
right
|
|
67179
|
-
${(_, c) => `${c.parent.layoutManager.activeColumnIndex === c.index ? 'column-active' : ''}`}
|
|
67180
|
-
${(_, c) => `${c.parent.layoutManager.activeColumnDivider === c.parent.getRightDividerIndex(c.index) ? 'divider-active' : ''}`}
|
|
67181
|
-
${(_, c) => `${c.parent.layoutManager.hasResizableColumnToLeft(c.index) ? 'draggable' : ''}`}
|
|
67182
|
-
"
|
|
67183
|
-
@mousedown="${(_, c) => c.parent.onRightDividerMouseDown(c.event, c.index)}">
|
|
67184
|
-
</div>
|
|
67185
|
-
`)}
|
|
67186
|
-
</div>
|
|
67187
|
-
`, { positioning: true })}
|
|
67188
|
-
<div class="header-scrollbar-spacer"></div>
|
|
67189
|
-
</span>
|
|
67190
|
-
</div>
|
|
67191
|
-
</div>
|
|
67192
|
-
<div class="table-viewport" tabindex="-1" ${ref('viewport')}>
|
|
67193
|
-
<div class="table-scroll"></div>
|
|
67194
|
-
<div class="table-row-container ${x => `${x.showCollapseAll ? 'collapse-all-visible' : ''}`}" ${children$1({ property: 'rowElements', filter: elements(`${tableRowTag}, ${tableGroupRowTag}`) })}
|
|
67195
|
-
role="rowgroup">
|
|
67196
|
-
${when(x => x.columns.length > 0 && x.canRenderRows, html `
|
|
67197
|
-
${repeat(x => x.virtualizer.visibleItems, html `
|
|
67198
|
-
${when((x, c) => c.parent.tableData[x.index]?.isGroupRow, html `
|
|
67199
|
-
<${tableGroupRowTag}
|
|
67200
|
-
class="group-row"
|
|
67201
|
-
${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
|
|
67202
|
-
tabindex="-1"
|
|
67203
|
-
:groupRowValue="${(x, c) => c.parent.tableData[x.index]?.groupRowValue}"
|
|
67204
|
-
?expanded="${(x, c) => c.parent.tableData[x.index]?.isExpanded}"
|
|
67205
|
-
:nestingLevel="${(x, c) => c.parent.tableData[x.index]?.nestingLevel}"
|
|
67206
|
-
:immediateChildCount="${(x, c) => c.parent.tableData[x.index]?.immediateChildCount}"
|
|
67207
|
-
:groupColumn="${(x, c) => c.parent.tableData[x.index]?.groupColumn}"
|
|
67208
|
-
?selectable="${(_, c) => c.parent.selectionMode === TableRowSelectionMode.multiple}"
|
|
67209
|
-
selection-state="${(x, c) => c.parent.tableData[x.index]?.selectionState}"
|
|
67210
|
-
:resolvedRowIndex="${x => x.index}"
|
|
67211
|
-
?allow-hover="${(_, c) => !c.parent.virtualizer.isScrolling}"
|
|
67212
|
-
@focusin="${(_, c) => c.parent.onRowFocusIn(c.event)}"
|
|
67213
|
-
@blur="${(_, c) => c.parent.onRowBlur(c.event)}"
|
|
67214
|
-
@group-selection-toggle="${(x, c) => c.parent.onRowSelectionToggle(x.index, c.event)}"
|
|
67215
|
-
@group-expand-toggle="${(x, c) => c.parent.handleGroupRowExpanded(x.index, c.event)}"
|
|
67216
|
-
>
|
|
67217
|
-
</${tableGroupRowTag}>
|
|
67138
|
+
</span>
|
|
67139
|
+
<span class="column-headers-container" ${ref('columnHeadersContainer')}>
|
|
67140
|
+
${repeat(x => x.visibleColumns, html `
|
|
67141
|
+
<div class="header-container">
|
|
67142
|
+
${when((_, c) => c.index > 0, html `
|
|
67143
|
+
<div
|
|
67144
|
+
class="
|
|
67145
|
+
column-divider
|
|
67146
|
+
left
|
|
67147
|
+
${(_, c) => `${c.parent.layoutManager.activeColumnIndex === c.index ? 'column-active' : ''}`}
|
|
67148
|
+
${(_, c) => `${c.parent.layoutManager.activeColumnDivider === c.parent.getLeftDividerIndex(c.index) ? 'divider-active' : ''}`}
|
|
67149
|
+
${(_, c) => `${c.parent.layoutManager.hasResizableColumnToLeft(c.index - 1) ? 'draggable' : ''}`}
|
|
67150
|
+
"
|
|
67151
|
+
@pointerdown="${(_, c) => c.parent.onLeftDividerPointerDown(c.event, c.index)}">
|
|
67152
|
+
</div>
|
|
67218
67153
|
`)}
|
|
67219
|
-
|
|
67220
|
-
|
|
67221
|
-
|
|
67222
|
-
${
|
|
67223
|
-
|
|
67224
|
-
|
|
67225
|
-
|
|
67226
|
-
|
|
67227
|
-
|
|
67228
|
-
|
|
67229
|
-
?reserve-collapse-space="${(_, c) => c.parent.canHaveCollapsibleRows}"
|
|
67230
|
-
:dataRecord="${(x, c) => c.parent.tableData[x.index]?.record}"
|
|
67231
|
-
:columns="${(_, c) => c.parent.columns}"
|
|
67232
|
-
:isParentRow="${(x, c) => c.parent.tableData[x.index]?.isParentRow}"
|
|
67233
|
-
:nestingLevel="${(x, c) => c.parent.tableData[x.index]?.nestingLevel}"
|
|
67234
|
-
?row-operation-grid-cell-hidden="${(_, c) => !c.parent.showRowOperationColumn}"
|
|
67235
|
-
?loading="${(x, c) => c.parent.tableData[x.index]?.isLoadingChildren}"
|
|
67236
|
-
:resolvedRowIndex="${x => x.index}"
|
|
67237
|
-
?allow-hover="${(_, c) => !c.parent.virtualizer.isScrolling}"
|
|
67238
|
-
@click="${(x, c) => c.parent.onRowClick(x.index, c.event)}"
|
|
67239
|
-
@focusin="${(_, c) => c.parent.onRowFocusIn(c.event)}"
|
|
67240
|
-
@blur="${(_, c) => c.parent.onRowBlur(c.event)}"
|
|
67241
|
-
@row-selection-toggle="${(x, c) => c.parent.onRowSelectionToggle(x.index, c.event)}"
|
|
67242
|
-
@row-action-menu-beforetoggle="${(x, c) => c.parent.onRowActionMenuBeforeToggle(x.index, c.event)}"
|
|
67243
|
-
@row-action-menu-toggle="${(_, c) => c.parent.onRowActionMenuToggle(c.event)}"
|
|
67244
|
-
@row-slots-request="${(_, c) => c.parent.onRowSlotsRequest(c.event)}"
|
|
67245
|
-
@row-expand-toggle="${(x, c) => c.parent.handleRowExpanded(x.index)}"
|
|
67154
|
+
<${tableHeaderTag}
|
|
67155
|
+
class="header"
|
|
67156
|
+
${'' /* tabindex managed dynamically by KeyboardNavigationManager (if column sorting not disabled) */}
|
|
67157
|
+
sort-direction="${x => (typeof x.columnInternals.currentSortIndex === 'number' ? x.columnInternals.currentSortDirection : TableColumnSortDirection.none)}"
|
|
67158
|
+
?first-sorted-column="${(x, c) => x === c.parent.firstSortedColumn}"
|
|
67159
|
+
?indicators-hidden="${x => x.columnInternals.hideHeaderIndicators}"
|
|
67160
|
+
@keydown="${(x, c) => c.parent.onHeaderKeyDown(x, c.event)}"
|
|
67161
|
+
@click="${(x, c) => c.parent.toggleColumnSort(x, c.event.shiftKey)}"
|
|
67162
|
+
:alignment="${x => x.columnInternals.headerAlignment}"
|
|
67163
|
+
:isGrouped=${x => (typeof x.columnInternals.groupIndex === 'number' && !x.columnInternals.groupingDisabled)}
|
|
67246
67164
|
>
|
|
67247
|
-
|
|
67248
|
-
|
|
67249
|
-
|
|
67250
|
-
|
|
67251
|
-
|
|
67252
|
-
|
|
67253
|
-
|
|
67165
|
+
<slot name="${x => x.slot}"></slot>
|
|
67166
|
+
</${tableHeaderTag}>
|
|
67167
|
+
${when((_, c) => c.index < c.length - 1, html `
|
|
67168
|
+
<div
|
|
67169
|
+
class="
|
|
67170
|
+
column-divider
|
|
67171
|
+
right
|
|
67172
|
+
${(_, c) => `${c.parent.layoutManager.activeColumnIndex === c.index ? 'column-active' : ''}`}
|
|
67173
|
+
${(_, c) => `${c.parent.layoutManager.activeColumnDivider === c.parent.getRightDividerIndex(c.index) ? 'divider-active' : ''}`}
|
|
67174
|
+
${(_, c) => `${c.parent.layoutManager.hasResizableColumnToLeft(c.index) ? 'draggable' : ''}`}
|
|
67175
|
+
"
|
|
67176
|
+
@pointerdown="${(_, c) => c.parent.onRightDividerPointerDown(c.event, c.index)}">
|
|
67177
|
+
</div>
|
|
67178
|
+
`)}
|
|
67179
|
+
</div>
|
|
67180
|
+
`, { positioning: true })}
|
|
67181
|
+
<div class="header-scrollbar-spacer"></div>
|
|
67182
|
+
</span>
|
|
67183
|
+
</div>
|
|
67184
|
+
</div>
|
|
67185
|
+
<div class="table-viewport" tabindex="-1" ${ref('viewport')}>
|
|
67186
|
+
<div class="table-scroll"></div>
|
|
67187
|
+
<div class="table-row-container ${x => `${x.showCollapseAll ? 'collapse-all-visible' : ''}`}" ${children$1({ property: 'rowElements', filter: elements(`${tableRowTag}, ${tableGroupRowTag}`) })}
|
|
67188
|
+
role="rowgroup">
|
|
67189
|
+
${when(x => x.columns.length > 0 && x.canRenderRows, html `
|
|
67190
|
+
${repeat(x => x.virtualizer.visibleItems, html `
|
|
67191
|
+
${when((x, c) => c.parent.tableData[x.index]?.isGroupRow, html `
|
|
67192
|
+
<${tableGroupRowTag}
|
|
67193
|
+
class="group-row"
|
|
67194
|
+
${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
|
|
67195
|
+
tabindex="-1"
|
|
67196
|
+
:groupRowValue="${(x, c) => c.parent.tableData[x.index]?.groupRowValue}"
|
|
67197
|
+
?expanded="${(x, c) => c.parent.tableData[x.index]?.isExpanded}"
|
|
67198
|
+
:nestingLevel="${(x, c) => c.parent.tableData[x.index]?.nestingLevel}"
|
|
67199
|
+
:immediateChildCount="${(x, c) => c.parent.tableData[x.index]?.immediateChildCount}"
|
|
67200
|
+
:groupColumn="${(x, c) => c.parent.tableData[x.index]?.groupColumn}"
|
|
67201
|
+
?selectable="${(_, c) => c.parent.selectionMode === TableRowSelectionMode.multiple}"
|
|
67202
|
+
selection-state="${(x, c) => c.parent.tableData[x.index]?.selectionState}"
|
|
67203
|
+
:resolvedRowIndex="${x => x.index}"
|
|
67204
|
+
?allow-hover="${(_, c) => !c.parent.virtualizer.isScrolling}"
|
|
67205
|
+
@focusin="${(_, c) => c.parent.onRowFocusIn(c.event)}"
|
|
67206
|
+
@blur="${(_, c) => c.parent.onRowBlur(c.event)}"
|
|
67207
|
+
@group-selection-toggle="${(x, c) => c.parent.onRowSelectionToggle(x.index, c.event)}"
|
|
67208
|
+
@group-expand-toggle="${(x, c) => c.parent.handleGroupRowExpanded(x.index, c.event)}"
|
|
67209
|
+
>
|
|
67210
|
+
</${tableGroupRowTag}>
|
|
67211
|
+
`)}
|
|
67212
|
+
${when((x, c) => !c.parent.tableData[x.index]?.isGroupRow, html `
|
|
67213
|
+
<${tableRowTag}
|
|
67214
|
+
class="row"
|
|
67215
|
+
${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
|
|
67216
|
+
tabindex="-1"
|
|
67217
|
+
record-id="${(x, c) => c.parent.tableData[x.index]?.id}"
|
|
67218
|
+
?selectable="${(_, c) => c.parent.selectionMode !== TableRowSelectionMode.none}"
|
|
67219
|
+
?selected="${(x, c) => c.parent.tableData[x.index]?.selectionState === TableRowSelectionState.selected}"
|
|
67220
|
+
?expanded="${(x, c) => c.parent.tableData[x.index]?.isExpanded}"
|
|
67221
|
+
?hide-selection="${(_, c) => c.parent.selectionMode !== TableRowSelectionMode.multiple}"
|
|
67222
|
+
?reserve-collapse-space="${(_, c) => c.parent.canHaveCollapsibleRows}"
|
|
67223
|
+
:dataRecord="${(x, c) => c.parent.tableData[x.index]?.record}"
|
|
67224
|
+
:columns="${(_, c) => c.parent.columns}"
|
|
67225
|
+
:isParentRow="${(x, c) => c.parent.tableData[x.index]?.isParentRow}"
|
|
67226
|
+
:nestingLevel="${(x, c) => c.parent.tableData[x.index]?.nestingLevel}"
|
|
67227
|
+
?row-operation-grid-cell-hidden="${(_, c) => !c.parent.showRowOperationColumn}"
|
|
67228
|
+
?loading="${(x, c) => c.parent.tableData[x.index]?.isLoadingChildren}"
|
|
67229
|
+
:resolvedRowIndex="${x => x.index}"
|
|
67230
|
+
?allow-hover="${(_, c) => !c.parent.virtualizer.isScrolling}"
|
|
67231
|
+
@click="${(x, c) => c.parent.onRowClick(x.index, c.event)}"
|
|
67232
|
+
@focusin="${(_, c) => c.parent.onRowFocusIn(c.event)}"
|
|
67233
|
+
@blur="${(_, c) => c.parent.onRowBlur(c.event)}"
|
|
67234
|
+
@row-selection-toggle="${(x, c) => c.parent.onRowSelectionToggle(x.index, c.event)}"
|
|
67235
|
+
@row-action-menu-beforetoggle="${(x, c) => c.parent.onRowActionMenuBeforeToggle(x.index, c.event)}"
|
|
67236
|
+
@row-action-menu-toggle="${(_, c) => c.parent.onRowActionMenuToggle(c.event)}"
|
|
67237
|
+
@row-slots-request="${(_, c) => c.parent.onRowSlotsRequest(c.event)}"
|
|
67238
|
+
@row-expand-toggle="${(x, c) => c.parent.handleRowExpanded(x.index)}"
|
|
67239
|
+
>
|
|
67240
|
+
${repeat((x, c) => (c.parent.tableData[x.index]?.requestedSlots || []), html `
|
|
67241
|
+
<slot
|
|
67242
|
+
name="${x => x.name}"
|
|
67243
|
+
slot="${x => x.slot}"
|
|
67244
|
+
></slot>
|
|
67254
67245
|
`)}
|
|
67246
|
+
</${tableRowTag}>
|
|
67255
67247
|
`)}
|
|
67256
67248
|
`)}
|
|
67257
|
-
|
|
67249
|
+
`)}
|
|
67258
67250
|
</div>
|
|
67259
67251
|
</div>
|
|
67260
67252
|
</div>
|
|
@@ -68192,12 +68184,11 @@ focus outline in that case.
|
|
|
68192
68184
|
this.currentTotalDelta = 0;
|
|
68193
68185
|
this.dragStart = 0;
|
|
68194
68186
|
this.initialColumnWidths = [];
|
|
68195
|
-
this.
|
|
68196
|
-
const mouseEvent = event;
|
|
68187
|
+
this.onDividerPointerMove = (event) => {
|
|
68197
68188
|
for (let i = 0; i < this.visibleColumns.length; i++) {
|
|
68198
68189
|
this.visibleColumns[i].columnInternals.currentPixelWidth = this.initialColumnWidths[i]?.initialPixelWidth;
|
|
68199
68190
|
}
|
|
68200
|
-
this.currentTotalDelta = this.getAllowedSizeDelta(
|
|
68191
|
+
this.currentTotalDelta = this.getAllowedSizeDelta(event.clientX - this.dragStart);
|
|
68201
68192
|
this.performCascadeSizeLeft(this.leftColumnIndex, this.currentTotalDelta);
|
|
68202
68193
|
this.performCascadeSizeRight(this.rightColumnIndex, this.currentTotalDelta);
|
|
68203
68194
|
const totalColumnWidthDelta = this.getTotalColumnFixedWidth() - this.initialColumnTotalWidth;
|
|
@@ -68208,13 +68199,14 @@ focus outline in that case.
|
|
|
68208
68199
|
this.table.tableScrollableMinWidth = this.initialTableScrollableMinWidth;
|
|
68209
68200
|
}
|
|
68210
68201
|
};
|
|
68211
|
-
this.
|
|
68212
|
-
|
|
68213
|
-
|
|
68202
|
+
this.onDividerPointerUp = () => {
|
|
68203
|
+
this.activeColumnDividerElement.removeEventListener('pointermove', this.onDividerPointerMove);
|
|
68204
|
+
this.activeColumnDividerElement.removeEventListener('pointerup', this.onDividerPointerUp);
|
|
68214
68205
|
this.resetGridSizedColumns();
|
|
68215
68206
|
this.isColumnBeingSized = false;
|
|
68216
68207
|
this.activeColumnIndex = undefined;
|
|
68217
68208
|
this.activeColumnDivider = undefined;
|
|
68209
|
+
this.activeColumnDividerElement = undefined;
|
|
68218
68210
|
this.visibleColumns = [];
|
|
68219
68211
|
};
|
|
68220
68212
|
}
|
|
@@ -68232,11 +68224,14 @@ focus outline in that case.
|
|
|
68232
68224
|
}
|
|
68233
68225
|
/**
|
|
68234
68226
|
* Sets up state related to interactively sizing a column.
|
|
68227
|
+
* @param activeColumnDividerElement The divider element that was clicked on
|
|
68228
|
+
* @param pointerId The pointerId of the pointer that started the drag
|
|
68235
68229
|
* @param dragStart The x-position from which a column size was started
|
|
68236
|
-
* @param activeColumnDivider The divider that was clicked on
|
|
68230
|
+
* @param activeColumnDivider The 1-based index of the divider that was clicked on
|
|
68237
68231
|
*/
|
|
68238
|
-
beginColumnInteractiveSize(dragStart, activeColumnDivider) {
|
|
68232
|
+
beginColumnInteractiveSize(activeColumnDividerElement, pointerId, dragStart, activeColumnDivider) {
|
|
68239
68233
|
this.activeColumnDivider = activeColumnDivider;
|
|
68234
|
+
this.activeColumnDividerElement = activeColumnDividerElement;
|
|
68240
68235
|
this.leftColumnIndex = this.getLeftColumnIndexFromDivider(this.activeColumnDivider);
|
|
68241
68236
|
this.rightColumnIndex = this.leftColumnIndex + 1;
|
|
68242
68237
|
this.activeColumnIndex = this.leftColumnIndex + (this.activeColumnDivider % 2);
|
|
@@ -68248,8 +68243,12 @@ focus outline in that case.
|
|
|
68248
68243
|
this.initialTableScrollableMinWidth = this.table.tableScrollableMinWidth;
|
|
68249
68244
|
this.initialColumnTotalWidth = this.getTotalColumnFixedWidth();
|
|
68250
68245
|
this.isColumnBeingSized = true;
|
|
68251
|
-
|
|
68252
|
-
|
|
68246
|
+
// pointerId of -1 indicates source was synthetic PointerEvent: https://w3c.github.io/pointerevents/#dom-pointerevent-pointerid
|
|
68247
|
+
if (pointerId !== -1) {
|
|
68248
|
+
activeColumnDividerElement.setPointerCapture(pointerId);
|
|
68249
|
+
}
|
|
68250
|
+
activeColumnDividerElement.addEventListener('pointermove', this.onDividerPointerMove);
|
|
68251
|
+
activeColumnDividerElement.addEventListener('pointerup', this.onDividerPointerUp);
|
|
68253
68252
|
}
|
|
68254
68253
|
/**
|
|
68255
68254
|
* Determines if the specified column or any columns to the left are resizable.
|
|
@@ -70505,15 +70504,15 @@ focus outline in that case.
|
|
|
70505
70504
|
this.expansionManager.collapseAll();
|
|
70506
70505
|
}
|
|
70507
70506
|
/** @internal */
|
|
70508
|
-
|
|
70509
|
-
if (event.button === 0) {
|
|
70510
|
-
this.layoutManager.beginColumnInteractiveSize(event.clientX, this.getRightDividerIndex(columnIndex));
|
|
70507
|
+
onRightDividerPointerDown(event, columnIndex) {
|
|
70508
|
+
if (event.pointerType !== 'mouse' || event.button === 0) {
|
|
70509
|
+
this.layoutManager.beginColumnInteractiveSize(event.target, event.pointerId, event.clientX, this.getRightDividerIndex(columnIndex));
|
|
70511
70510
|
}
|
|
70512
70511
|
}
|
|
70513
70512
|
/** @internal */
|
|
70514
|
-
|
|
70515
|
-
if (event.button === 0) {
|
|
70516
|
-
this.layoutManager.beginColumnInteractiveSize(event.clientX, this.getLeftDividerIndex(columnIndex));
|
|
70513
|
+
onLeftDividerPointerDown(event, columnIndex) {
|
|
70514
|
+
if (event.pointerType !== 'mouse' || event.button === 0) {
|
|
70515
|
+
this.layoutManager.beginColumnInteractiveSize(event.target, event.pointerId, event.clientX, this.getLeftDividerIndex(columnIndex));
|
|
70517
70516
|
}
|
|
70518
70517
|
}
|
|
70519
70518
|
/** @internal */
|