@ni/nimble-components 21.8.1 → 21.8.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.
- package/dist/all-components-bundle.js +41 -17
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +29 -17
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/index.d.ts +4 -0
- package/dist/esm/table/index.js +10 -2
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/table/models/table-layout-manager.d.ts +1 -1
- package/dist/esm/table/models/table-layout-manager.js +4 -0
- package/dist/esm/table/models/table-layout-manager.js.map +1 -1
- package/dist/esm/table/styles.js +12 -12
- package/dist/esm/table/styles.js.map +1 -1
- package/dist/esm/table/template.js +15 -3
- package/dist/esm/table/template.js.map +1 -1
- package/package.json +1 -1
|
@@ -16301,7 +16301,7 @@
|
|
|
16301
16301
|
|
|
16302
16302
|
/**
|
|
16303
16303
|
* Do not edit directly
|
|
16304
|
-
* Generated on
|
|
16304
|
+
* Generated on Mon, 04 Mar 2024 18:45:22 GMT
|
|
16305
16305
|
*/
|
|
16306
16306
|
|
|
16307
16307
|
const Information100DarkUi = "#a46eff";
|
|
@@ -63093,6 +63093,17 @@ img.ProseMirror-separator {
|
|
|
63093
63093
|
height: ${controlSlimHeight};
|
|
63094
63094
|
cursor: col-resize;
|
|
63095
63095
|
position: absolute;
|
|
63096
|
+
z-index: ${ZIndexLevels.zIndex1};
|
|
63097
|
+
}
|
|
63098
|
+
|
|
63099
|
+
.column-divider:hover,
|
|
63100
|
+
.column-divider.divider-active {
|
|
63101
|
+
border-color: ${borderHoverColor};
|
|
63102
|
+
}
|
|
63103
|
+
|
|
63104
|
+
.column-divider.column-active,
|
|
63105
|
+
.header-container:hover .column-divider {
|
|
63106
|
+
display: block;
|
|
63096
63107
|
}
|
|
63097
63108
|
|
|
63098
63109
|
.column-divider::before {
|
|
@@ -63109,17 +63120,6 @@ img.ProseMirror-separator {
|
|
|
63109
63120
|
);
|
|
63110
63121
|
}
|
|
63111
63122
|
|
|
63112
|
-
.column-divider.active {
|
|
63113
|
-
display: block;
|
|
63114
|
-
z-index: ${ZIndexLevels.zIndex1};
|
|
63115
|
-
}
|
|
63116
|
-
|
|
63117
|
-
.header-container:hover .column-divider.left,
|
|
63118
|
-
.header-container:hover .column-divider.right {
|
|
63119
|
-
display: block;
|
|
63120
|
-
z-index: ${ZIndexLevels.zIndex1};
|
|
63121
|
-
}
|
|
63122
|
-
|
|
63123
63123
|
.column-divider.left {
|
|
63124
63124
|
left: -1px;
|
|
63125
63125
|
}
|
|
@@ -64167,8 +64167,14 @@ img.ProseMirror-separator {
|
|
|
64167
64167
|
${repeat(x => x.visibleColumns, html `
|
|
64168
64168
|
<div class="header-container">
|
|
64169
64169
|
${when((_, c) => c.index > 0, html `
|
|
64170
|
-
<div
|
|
64171
|
-
|
|
64170
|
+
<div
|
|
64171
|
+
class="
|
|
64172
|
+
column-divider
|
|
64173
|
+
left
|
|
64174
|
+
${(_, c) => `${c.parent.layoutManager.activeColumnIndex === c.index ? 'column-active' : ''}`}
|
|
64175
|
+
${(_, c) => `${c.parent.layoutManager.activeColumnDivider === c.parent.getLeftDividerIndex(c.index) ? 'divider-active' : ''}`}
|
|
64176
|
+
"
|
|
64177
|
+
@mousedown="${(_, c) => c.parent.onLeftDividerMouseDown(c.event, c.index)}">
|
|
64172
64178
|
</div>
|
|
64173
64179
|
`)}
|
|
64174
64180
|
<${tableHeaderTag}
|
|
@@ -64181,7 +64187,13 @@ img.ProseMirror-separator {
|
|
|
64181
64187
|
<slot name="${x => x.slot}"></slot>
|
|
64182
64188
|
</${tableHeaderTag}>
|
|
64183
64189
|
${when((_, c) => c.index < c.length - 1, html `
|
|
64184
|
-
<div
|
|
64190
|
+
<div
|
|
64191
|
+
class="
|
|
64192
|
+
column-divider
|
|
64193
|
+
right
|
|
64194
|
+
${(_, c) => `${c.parent.layoutManager.activeColumnIndex === c.index ? 'column-active' : ''}`}
|
|
64195
|
+
${(_, c) => `${c.parent.layoutManager.activeColumnDivider === c.parent.getRightDividerIndex(c.index) ? 'divider-active' : ''}`}
|
|
64196
|
+
"
|
|
64185
64197
|
@mousedown="${(_, c) => c.parent.onRightDividerMouseDown(c.event, c.index)}">
|
|
64186
64198
|
</div>
|
|
64187
64199
|
`)}
|
|
@@ -65112,6 +65124,7 @@ img.ProseMirror-separator {
|
|
|
65112
65124
|
this.resetGridSizedColumns();
|
|
65113
65125
|
this.isColumnBeingSized = false;
|
|
65114
65126
|
this.activeColumnIndex = undefined;
|
|
65127
|
+
this.activeColumnDivider = undefined;
|
|
65115
65128
|
};
|
|
65116
65129
|
}
|
|
65117
65130
|
getGridTemplateColumns() {
|
|
@@ -65261,6 +65274,9 @@ img.ProseMirror-separator {
|
|
|
65261
65274
|
__decorate$1([
|
|
65262
65275
|
observable
|
|
65263
65276
|
], TableLayoutManager.prototype, "activeColumnIndex", void 0);
|
|
65277
|
+
__decorate$1([
|
|
65278
|
+
observable
|
|
65279
|
+
], TableLayoutManager.prototype, "activeColumnDivider", void 0);
|
|
65264
65280
|
|
|
65265
65281
|
const isColumnProperty = (changedProperty, ...args) => {
|
|
65266
65282
|
for (const arg of args) {
|
|
@@ -66209,16 +66225,24 @@ img.ProseMirror-separator {
|
|
|
66209
66225
|
/** @internal */
|
|
66210
66226
|
onRightDividerMouseDown(event, columnIndex) {
|
|
66211
66227
|
if (event.button === 0) {
|
|
66212
|
-
this.layoutManager.beginColumnInteractiveSize(event.clientX, columnIndex
|
|
66228
|
+
this.layoutManager.beginColumnInteractiveSize(event.clientX, this.getRightDividerIndex(columnIndex));
|
|
66213
66229
|
}
|
|
66214
66230
|
}
|
|
66215
66231
|
/** @internal */
|
|
66216
66232
|
onLeftDividerMouseDown(event, columnIndex) {
|
|
66217
66233
|
if (event.button === 0) {
|
|
66218
|
-
this.layoutManager.beginColumnInteractiveSize(event.clientX, columnIndex
|
|
66234
|
+
this.layoutManager.beginColumnInteractiveSize(event.clientX, this.getLeftDividerIndex(columnIndex));
|
|
66219
66235
|
}
|
|
66220
66236
|
}
|
|
66221
66237
|
/** @internal */
|
|
66238
|
+
getLeftDividerIndex(columnIndex) {
|
|
66239
|
+
return columnIndex * 2 - 1;
|
|
66240
|
+
}
|
|
66241
|
+
/** @internal */
|
|
66242
|
+
getRightDividerIndex(columnIndex) {
|
|
66243
|
+
return columnIndex * 2;
|
|
66244
|
+
}
|
|
66245
|
+
/** @internal */
|
|
66222
66246
|
handleGroupRowExpanded(rowIndex, event) {
|
|
66223
66247
|
this.toggleRowExpanded(rowIndex);
|
|
66224
66248
|
event.stopPropagation();
|