@ni/nimble-components 29.3.4 → 29.3.6
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 +90 -107
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +515 -543
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/anchor/styles.js +0 -1
- package/dist/esm/anchor/styles.js.map +1 -1
- package/dist/esm/anchor-menu-item/styles.js +0 -1
- package/dist/esm/anchor-menu-item/styles.js.map +1 -1
- package/dist/esm/anchor-tab/styles.js +0 -1
- package/dist/esm/anchor-tab/styles.js.map +1 -1
- package/dist/esm/anchor-tabs/styles.js +0 -1
- package/dist/esm/anchor-tabs/styles.js.map +1 -1
- package/dist/esm/anchor-tree-item/styles.js +0 -1
- package/dist/esm/anchor-tree-item/styles.js.map +1 -1
- package/dist/esm/breadcrumb/styles.js +0 -1
- package/dist/esm/breadcrumb/styles.js.map +1 -1
- package/dist/esm/breadcrumb-item/styles.js +0 -1
- package/dist/esm/breadcrumb-item/styles.js.map +1 -1
- package/dist/esm/card-button/styles.js +0 -1
- package/dist/esm/card-button/styles.js.map +1 -1
- package/dist/esm/checkbox/styles.js +0 -1
- package/dist/esm/checkbox/styles.js.map +1 -1
- package/dist/esm/combobox/styles.js +1 -1
- package/dist/esm/combobox/styles.js.map +1 -1
- package/dist/esm/drawer/styles.js +0 -1
- package/dist/esm/drawer/styles.js.map +1 -1
- package/dist/esm/menu/styles.js +1 -1
- package/dist/esm/menu/styles.js.map +1 -1
- package/dist/esm/menu-item/styles.js +0 -1
- package/dist/esm/menu-item/styles.js.map +1 -1
- package/dist/esm/number-field/styles.js +1 -2
- package/dist/esm/number-field/styles.js.map +1 -1
- package/dist/esm/patterns/button/styles.js +1 -4
- package/dist/esm/patterns/button/styles.js.map +1 -1
- package/dist/esm/patterns/dropdown/styles.js +0 -3
- package/dist/esm/patterns/dropdown/styles.js.map +1 -1
- package/dist/esm/radio/styles.js +0 -1
- package/dist/esm/radio/styles.js.map +1 -1
- package/dist/esm/rich-text/editor/styles.js +0 -3
- package/dist/esm/rich-text/editor/styles.js.map +1 -1
- package/dist/esm/rich-text/viewer/styles.js +0 -1
- package/dist/esm/rich-text/viewer/styles.js.map +1 -1
- package/dist/esm/rich-text-mention/users/view/styles.js +0 -1
- package/dist/esm/rich-text-mention/users/view/styles.js.map +1 -1
- package/dist/esm/switch/styles.js +0 -2
- package/dist/esm/switch/styles.js.map +1 -1
- package/dist/esm/tab/styles.js +0 -1
- package/dist/esm/tab/styles.js.map +1 -1
- package/dist/esm/tab-panel/styles.js +0 -1
- package/dist/esm/tab-panel/styles.js.map +1 -1
- package/dist/esm/table/components/group-row/styles.js +0 -1
- package/dist/esm/table/components/group-row/styles.js.map +1 -1
- package/dist/esm/table/components/row/styles.js +14 -8
- package/dist/esm/table/components/row/styles.js.map +1 -1
- package/dist/esm/table/index.js +2 -2
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/table/models/table-update-tracker.js +1 -2
- package/dist/esm/table/models/table-update-tracker.js.map +1 -1
- package/dist/esm/table/testing/table.pageobject.js +1 -1
- package/dist/esm/table/testing/table.pageobject.js.map +1 -1
- package/dist/esm/table-column/anchor/index.d.ts +8 -0
- package/dist/esm/table-column/anchor/index.js +2 -1
- package/dist/esm/table-column/anchor/index.js.map +1 -1
- package/dist/esm/table-column/base/index.d.ts +0 -7
- package/dist/esm/table-column/base/index.js +1 -33
- package/dist/esm/table-column/base/index.js.map +1 -1
- package/dist/esm/table-column/base/models/column-internals.d.ts +5 -1
- package/dist/esm/table-column/base/models/column-internals.js +7 -0
- package/dist/esm/table-column/base/models/column-internals.js.map +1 -1
- package/dist/esm/table-column/date-text/index.d.ts +8 -0
- package/dist/esm/table-column/duration-text/index.d.ts +8 -0
- package/dist/esm/table-column/mapping/index.d.ts +8 -0
- package/dist/esm/table-column/mapping/index.js +2 -1
- package/dist/esm/table-column/mapping/index.js.map +1 -1
- package/dist/esm/table-column/mixins/fractional-width-column.js +2 -12
- package/dist/esm/table-column/mixins/fractional-width-column.js.map +1 -1
- package/dist/esm/table-column/mixins/groupable-column.js +1 -7
- package/dist/esm/table-column/mixins/groupable-column.js.map +1 -1
- package/dist/esm/table-column/mixins/sortable-column.d.ts +17 -0
- package/dist/esm/table-column/mixins/sortable-column.js +52 -0
- package/dist/esm/table-column/mixins/sortable-column.js.map +1 -0
- package/dist/esm/table-column/number-text/index.d.ts +8 -0
- package/dist/esm/table-column/text/index.d.ts +8 -0
- package/dist/esm/table-column/text-base/index.d.ts +8 -0
- package/dist/esm/table-column/text-base/index.js +2 -1
- package/dist/esm/table-column/text-base/index.js.map +1 -1
- package/dist/esm/tabs/styles.js +0 -1
- package/dist/esm/tabs/styles.js.map +1 -1
- package/dist/esm/tabs-toolbar/styles.js +0 -1
- package/dist/esm/tabs-toolbar/styles.js.map +1 -1
- package/dist/esm/text-area/styles.js +0 -1
- package/dist/esm/text-area/styles.js.map +1 -1
- package/dist/esm/text-field/styles.js +0 -1
- package/dist/esm/text-field/styles.js.map +1 -1
- package/dist/esm/tooltip/styles.js +0 -1
- package/dist/esm/tooltip/styles.js.map +1 -1
- package/dist/esm/tree-item/styles.js +0 -1
- package/dist/esm/tree-item/styles.js.map +1 -1
- package/dist/esm/utilities/style/display.d.ts +4 -2
- package/dist/esm/utilities/style/display.js +5 -3
- package/dist/esm/utilities/style/display.js.map +1 -1
- package/package.json +1 -1
|
@@ -15159,10 +15159,12 @@
|
|
|
15159
15159
|
}
|
|
15160
15160
|
|
|
15161
15161
|
/**
|
|
15162
|
-
*
|
|
15163
|
-
*
|
|
15162
|
+
* Each element should use the display utility which will create styles to:
|
|
15163
|
+
* - Set the `:host` display property
|
|
15164
|
+
* - Respond to the `hidden` attribute set on `:host`
|
|
15165
|
+
* - Configure `box-sizing` for `:host`, all elements in shadow root, and `::before` / `::after` pseudoelements
|
|
15164
15166
|
*/
|
|
15165
|
-
const display = (displayValue) => `${display$1(displayValue)}`;
|
|
15167
|
+
const display = (displayValue) => `${display$1(displayValue)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`;
|
|
15166
15168
|
|
|
15167
15169
|
/**
|
|
15168
15170
|
* This file is a workaround for: https://github.com/prettier/prettier/issues/11400
|
|
@@ -16278,7 +16280,7 @@
|
|
|
16278
16280
|
|
|
16279
16281
|
/**
|
|
16280
16282
|
* Do not edit directly
|
|
16281
|
-
* Generated on
|
|
16283
|
+
* Generated on Thu, 13 Jun 2024 16:48:33 GMT
|
|
16282
16284
|
*/
|
|
16283
16285
|
|
|
16284
16286
|
const Information100DarkUi = "#a46eff";
|
|
@@ -17019,7 +17021,6 @@
|
|
|
17019
17021
|
${display('inline')}
|
|
17020
17022
|
|
|
17021
17023
|
:host {
|
|
17022
|
-
box-sizing: border-box;
|
|
17023
17024
|
font: ${linkFont};
|
|
17024
17025
|
}
|
|
17025
17026
|
|
|
@@ -17322,7 +17323,6 @@
|
|
|
17322
17323
|
cursor: pointer;
|
|
17323
17324
|
outline: none;
|
|
17324
17325
|
border: none;
|
|
17325
|
-
box-sizing: border-box;
|
|
17326
17326
|
${
|
|
17327
17327
|
/*
|
|
17328
17328
|
Not sure why but this is needed to get buttons with icons and buttons
|
|
@@ -17337,7 +17337,6 @@
|
|
|
17337
17337
|
height: 100%;
|
|
17338
17338
|
width: 100%;
|
|
17339
17339
|
border: ${borderWidth} solid transparent;
|
|
17340
|
-
box-sizing: border-box;
|
|
17341
17340
|
color: inherit;
|
|
17342
17341
|
border-radius: inherit;
|
|
17343
17342
|
fill: inherit;
|
|
@@ -17371,10 +17370,9 @@
|
|
|
17371
17370
|
width: 100%;
|
|
17372
17371
|
height: 100%;
|
|
17373
17372
|
pointer-events: none;
|
|
17374
|
-
box-sizing: border-box;
|
|
17375
17373
|
outline: 0px solid transparent;
|
|
17376
17374
|
color: transparent;
|
|
17377
|
-
background-clip:
|
|
17375
|
+
background-clip: border-box;
|
|
17378
17376
|
transition: outline ${smallDelay} ease-in-out;
|
|
17379
17377
|
}
|
|
17380
17378
|
|
|
@@ -17721,7 +17719,6 @@
|
|
|
17721
17719
|
display: grid;
|
|
17722
17720
|
contain: layout;
|
|
17723
17721
|
overflow: visible;
|
|
17724
|
-
box-sizing: border-box;
|
|
17725
17722
|
height: ${controlHeight};
|
|
17726
17723
|
grid-template-columns: 1fr;
|
|
17727
17724
|
column-gap: 8px;
|
|
@@ -17899,7 +17896,6 @@
|
|
|
17899
17896
|
|
|
17900
17897
|
:host {
|
|
17901
17898
|
position: relative;
|
|
17902
|
-
box-sizing: border-box;
|
|
17903
17899
|
font: ${buttonLabelFont};
|
|
17904
17900
|
height: ${controlHeight};
|
|
17905
17901
|
color: ${bodyFontColor};
|
|
@@ -18075,7 +18071,6 @@
|
|
|
18075
18071
|
${display('grid')}
|
|
18076
18072
|
|
|
18077
18073
|
:host {
|
|
18078
|
-
box-sizing: border-box;
|
|
18079
18074
|
grid-template-columns: auto 1fr;
|
|
18080
18075
|
grid-template-rows: auto 1fr;
|
|
18081
18076
|
}
|
|
@@ -18352,7 +18347,6 @@
|
|
|
18352
18347
|
.positioning-region {
|
|
18353
18348
|
display: flex;
|
|
18354
18349
|
position: relative;
|
|
18355
|
-
box-sizing: border-box;
|
|
18356
18350
|
height: calc(${iconSize} * 2);
|
|
18357
18351
|
width: 100%;
|
|
18358
18352
|
}
|
|
@@ -19970,7 +19964,6 @@
|
|
|
19970
19964
|
${display('inline-block')}
|
|
19971
19965
|
|
|
19972
19966
|
:host {
|
|
19973
|
-
box-sizing: border-box;
|
|
19974
19967
|
font: ${linkFont};
|
|
19975
19968
|
--ni-private-breadcrumb-link-font-color: ${linkFontColor};
|
|
19976
19969
|
--ni-private-breadcrumb-link-active-font-color: ${linkActiveFontColor};
|
|
@@ -20016,7 +20009,6 @@
|
|
|
20016
20009
|
|
|
20017
20010
|
:host {
|
|
20018
20011
|
height: ${controlHeight};
|
|
20019
|
-
box-sizing: border-box;
|
|
20020
20012
|
padding-left: calc(4px - ${borderWidth});
|
|
20021
20013
|
|
|
20022
20014
|
${
|
|
@@ -20150,7 +20142,6 @@
|
|
|
20150
20142
|
cursor: pointer;
|
|
20151
20143
|
outline: none;
|
|
20152
20144
|
border: none;
|
|
20153
|
-
box-sizing: border-box;
|
|
20154
20145
|
transition: box-shadow ${smallDelay};
|
|
20155
20146
|
}
|
|
20156
20147
|
|
|
@@ -20324,7 +20315,6 @@
|
|
|
20324
20315
|
.control {
|
|
20325
20316
|
width: calc(${controlHeight} / 2);
|
|
20326
20317
|
height: calc(${controlHeight} / 2);
|
|
20327
|
-
box-sizing: border-box;
|
|
20328
20318
|
flex-shrink: 0;
|
|
20329
20319
|
border: ${borderWidth} solid ${borderColor};
|
|
20330
20320
|
padding: 2px;
|
|
@@ -20660,7 +20650,6 @@
|
|
|
20660
20650
|
${display('inline-flex')}
|
|
20661
20651
|
|
|
20662
20652
|
:host {
|
|
20663
|
-
box-sizing: border-box;
|
|
20664
20653
|
color: ${bodyFontColor};
|
|
20665
20654
|
font: ${bodyFont};
|
|
20666
20655
|
height: ${controlHeight};
|
|
@@ -20738,7 +20727,6 @@
|
|
|
20738
20727
|
|
|
20739
20728
|
.control {
|
|
20740
20729
|
align-items: center;
|
|
20741
|
-
box-sizing: border-box;
|
|
20742
20730
|
cursor: pointer;
|
|
20743
20731
|
display: flex;
|
|
20744
20732
|
min-height: 100%;
|
|
@@ -20765,7 +20753,6 @@
|
|
|
20765
20753
|
}
|
|
20766
20754
|
|
|
20767
20755
|
.listbox {
|
|
20768
|
-
box-sizing: border-box;
|
|
20769
20756
|
display: inline-flex;
|
|
20770
20757
|
flex-direction: column;
|
|
20771
20758
|
overflow-y: auto;
|
|
@@ -20983,7 +20970,7 @@
|
|
|
20983
20970
|
border-right: 2px solid rgba(${borderRgbPartialColor}, 0.15);
|
|
20984
20971
|
height: calc(${controlHeight} - 12px);
|
|
20985
20972
|
align-self: center;
|
|
20986
|
-
|
|
20973
|
+
margin-left: 4px;
|
|
20987
20974
|
}
|
|
20988
20975
|
|
|
20989
20976
|
.dropdown-button {
|
|
@@ -22120,7 +22107,6 @@
|
|
|
22120
22107
|
}
|
|
22121
22108
|
|
|
22122
22109
|
.dialog-contents {
|
|
22123
|
-
box-sizing: border-box;
|
|
22124
22110
|
display: flex;
|
|
22125
22111
|
flex-direction: column;
|
|
22126
22112
|
position: absolute;
|
|
@@ -25448,7 +25434,7 @@
|
|
|
25448
25434
|
}
|
|
25449
25435
|
|
|
25450
25436
|
::slotted(hr) {
|
|
25451
|
-
box-sizing:
|
|
25437
|
+
box-sizing: border-box;
|
|
25452
25438
|
height: 2px;
|
|
25453
25439
|
margin: ${smallPadding};
|
|
25454
25440
|
border: none;
|
|
@@ -25793,7 +25779,6 @@
|
|
|
25793
25779
|
:host {
|
|
25794
25780
|
contain: layout;
|
|
25795
25781
|
overflow: visible;
|
|
25796
|
-
box-sizing: border-box;
|
|
25797
25782
|
height: ${controlHeight};
|
|
25798
25783
|
grid-template-columns: 1fr;
|
|
25799
25784
|
column-gap: 8px;
|
|
@@ -25930,7 +25915,6 @@
|
|
|
25930
25915
|
}
|
|
25931
25916
|
|
|
25932
25917
|
.root {
|
|
25933
|
-
box-sizing: border-box;
|
|
25934
25918
|
position: relative;
|
|
25935
25919
|
display: flex;
|
|
25936
25920
|
flex-direction: row;
|
|
@@ -26047,7 +26031,7 @@
|
|
|
26047
26031
|
|
|
26048
26032
|
.error-icon {
|
|
26049
26033
|
order: 1;
|
|
26050
|
-
|
|
26034
|
+
margin-right: ${smallPadding};
|
|
26051
26035
|
}
|
|
26052
26036
|
`.withBehaviors(appearanceBehavior(NumberFieldAppearance.underline, css `
|
|
26053
26037
|
.root {
|
|
@@ -26177,7 +26161,6 @@
|
|
|
26177
26161
|
position: relative;
|
|
26178
26162
|
width: calc(${controlHeight} / 2);
|
|
26179
26163
|
height: calc(${controlHeight} / 2);
|
|
26180
|
-
box-sizing: border-box;
|
|
26181
26164
|
flex-shrink: 0;
|
|
26182
26165
|
border: ${borderWidth} solid ${borderColor};
|
|
26183
26166
|
border-radius: 100%;
|
|
@@ -44448,7 +44431,6 @@ img.ProseMirror-separator {
|
|
|
44448
44431
|
}
|
|
44449
44432
|
|
|
44450
44433
|
.container {
|
|
44451
|
-
box-sizing: border-box;
|
|
44452
44434
|
display: flex;
|
|
44453
44435
|
flex-direction: column;
|
|
44454
44436
|
position: relative;
|
|
@@ -44529,7 +44511,6 @@ img.ProseMirror-separator {
|
|
|
44529
44511
|
${
|
|
44530
44512
|
/* This padding ensures that showing/hiding the error icon doesn't affect text layout */ ''}
|
|
44531
44513
|
padding-right: calc(${iconSize});
|
|
44532
|
-
box-sizing: border-box;
|
|
44533
44514
|
position: relative;
|
|
44534
44515
|
color: inherit;
|
|
44535
44516
|
}
|
|
@@ -44651,7 +44632,6 @@ img.ProseMirror-separator {
|
|
|
44651
44632
|
${toolbarTag}::part(positioning-region) {
|
|
44652
44633
|
background: transparent;
|
|
44653
44634
|
padding-right: 8px;
|
|
44654
|
-
box-sizing: border-box;
|
|
44655
44635
|
gap: 0px;
|
|
44656
44636
|
height: var(--ni-private-rich-text-editor-footer-section-height);
|
|
44657
44637
|
}
|
|
@@ -59224,7 +59204,6 @@ img.ProseMirror-separator {
|
|
|
59224
59204
|
.viewer {
|
|
59225
59205
|
font: inherit;
|
|
59226
59206
|
outline: none;
|
|
59227
|
-
box-sizing: border-box;
|
|
59228
59207
|
position: relative;
|
|
59229
59208
|
color: inherit;
|
|
59230
59209
|
overflow-wrap: anywhere;
|
|
@@ -60867,7 +60846,6 @@ img.ProseMirror-separator {
|
|
|
60867
60846
|
display: flex;
|
|
60868
60847
|
height: var(--ni-private-switch-height);
|
|
60869
60848
|
width: calc(var(--ni-private-switch-height) * 2);
|
|
60870
|
-
box-sizing: border-box;
|
|
60871
60849
|
background-color: ${fillHoverColor};
|
|
60872
60850
|
border-radius: calc(var(--ni-private-switch-height) / 2);
|
|
60873
60851
|
align-items: center;
|
|
@@ -60896,7 +60874,6 @@ img.ProseMirror-separator {
|
|
|
60896
60874
|
justify-content: center;
|
|
60897
60875
|
align-items: center;
|
|
60898
60876
|
background-color: var(--ni-private-switch-indicator-background-color);
|
|
60899
|
-
box-sizing: border-box;
|
|
60900
60877
|
width: var(--ni-private-switch-indicator-size);
|
|
60901
60878
|
height: var(--ni-private-switch-indicator-size);
|
|
60902
60879
|
border-radius: calc(var(--ni-private-switch-indicator-size) / 2);
|
|
@@ -61037,7 +61014,6 @@ img.ProseMirror-separator {
|
|
|
61037
61014
|
|
|
61038
61015
|
:host {
|
|
61039
61016
|
position: relative;
|
|
61040
|
-
box-sizing: border-box;
|
|
61041
61017
|
font: ${buttonLabelFont};
|
|
61042
61018
|
height: ${controlHeight};
|
|
61043
61019
|
color: ${bodyFontColor};
|
|
@@ -61151,7 +61127,6 @@ img.ProseMirror-separator {
|
|
|
61151
61127
|
${display('block')}
|
|
61152
61128
|
|
|
61153
61129
|
:host {
|
|
61154
|
-
box-sizing: border-box;
|
|
61155
61130
|
font: ${bodyFont};
|
|
61156
61131
|
color: ${bodyFontColor};
|
|
61157
61132
|
padding-top: ${standardPadding};
|
|
@@ -64581,6 +64556,10 @@ img.ProseMirror-separator {
|
|
|
64581
64556
|
* the resolved value of the fractionalWidth after updates programmatic or interactive updates.
|
|
64582
64557
|
*/
|
|
64583
64558
|
this.currentFractionalWidth = defaultFractionalWidth;
|
|
64559
|
+
/**
|
|
64560
|
+
* Whether or not this column can be sorted
|
|
64561
|
+
*/
|
|
64562
|
+
this.sortingDisabled = false;
|
|
64584
64563
|
/**
|
|
64585
64564
|
* @internal Do not write to this value directly. It is used by the Table in order to store
|
|
64586
64565
|
* the resolved value of the sortDirection after programmatic or interactive updates.
|
|
@@ -64639,6 +64618,9 @@ img.ProseMirror-separator {
|
|
|
64639
64618
|
__decorate$1([
|
|
64640
64619
|
observable
|
|
64641
64620
|
], ColumnInternals.prototype, "currentPixelWidth", void 0);
|
|
64621
|
+
__decorate$1([
|
|
64622
|
+
observable
|
|
64623
|
+
], ColumnInternals.prototype, "sortingDisabled", void 0);
|
|
64642
64624
|
__decorate$1([
|
|
64643
64625
|
observable
|
|
64644
64626
|
], ColumnInternals.prototype, "currentSortIndex", void 0);
|
|
@@ -64667,8 +64649,6 @@ img.ProseMirror-separator {
|
|
|
64667
64649
|
*/
|
|
64668
64650
|
this.columnInternals = new ColumnInternals(this.getColumnInternalsOptions());
|
|
64669
64651
|
this.columnHidden = false;
|
|
64670
|
-
this.sortDirection = TableColumnSortDirection.none;
|
|
64671
|
-
this.sortingDisabled = false;
|
|
64672
64652
|
/** @internal */
|
|
64673
64653
|
this.hasOverflow = false;
|
|
64674
64654
|
}
|
|
@@ -64690,26 +64670,6 @@ img.ProseMirror-separator {
|
|
|
64690
64670
|
// Done here to enforce consistency across headers as they may have custom templates
|
|
64691
64671
|
this.setAttribute('slot', this.columnInternals.uniqueId);
|
|
64692
64672
|
}
|
|
64693
|
-
sortDirectionChanged() {
|
|
64694
|
-
if (!this.sortingDisabled) {
|
|
64695
|
-
this.columnInternals.currentSortDirection = this.sortDirection;
|
|
64696
|
-
}
|
|
64697
|
-
}
|
|
64698
|
-
sortIndexChanged() {
|
|
64699
|
-
if (!this.sortingDisabled) {
|
|
64700
|
-
this.columnInternals.currentSortIndex = this.sortIndex;
|
|
64701
|
-
}
|
|
64702
|
-
}
|
|
64703
|
-
sortingDisabledChanged() {
|
|
64704
|
-
if (this.sortingDisabled) {
|
|
64705
|
-
this.columnInternals.currentSortDirection = TableColumnSortDirection.none;
|
|
64706
|
-
this.columnInternals.currentSortIndex = undefined;
|
|
64707
|
-
}
|
|
64708
|
-
else {
|
|
64709
|
-
this.columnInternals.currentSortDirection = this.sortDirection;
|
|
64710
|
-
this.columnInternals.currentSortIndex = this.sortIndex;
|
|
64711
|
-
}
|
|
64712
|
-
}
|
|
64713
64673
|
}
|
|
64714
64674
|
__decorate$1([
|
|
64715
64675
|
attr({ attribute: 'column-id' })
|
|
@@ -64723,15 +64683,6 @@ img.ProseMirror-separator {
|
|
|
64723
64683
|
__decorate$1([
|
|
64724
64684
|
attr({ attribute: 'column-hidden', mode: 'boolean' })
|
|
64725
64685
|
], TableColumn.prototype, "columnHidden", void 0);
|
|
64726
|
-
__decorate$1([
|
|
64727
|
-
attr({ attribute: 'sort-index', converter: nullableNumberConverter })
|
|
64728
|
-
], TableColumn.prototype, "sortIndex", void 0);
|
|
64729
|
-
__decorate$1([
|
|
64730
|
-
attr({ attribute: 'sort-direction' })
|
|
64731
|
-
], TableColumn.prototype, "sortDirection", void 0);
|
|
64732
|
-
__decorate$1([
|
|
64733
|
-
attr({ attribute: 'sorting-disabled', mode: 'boolean' })
|
|
64734
|
-
], TableColumn.prototype, "sortingDisabled", void 0);
|
|
64735
64686
|
__decorate$1([
|
|
64736
64687
|
observable
|
|
64737
64688
|
], TableColumn.prototype, "hasOverflow", void 0);
|
|
@@ -65191,7 +65142,6 @@ img.ProseMirror-separator {
|
|
|
65191
65142
|
background-color: ${applicationBackgroundColor};
|
|
65192
65143
|
height: calc(${controlHeight} + 2 * ${borderWidth});
|
|
65193
65144
|
border-top: calc(2 * ${borderWidth}) solid transparent;
|
|
65194
|
-
box-sizing: border-box;
|
|
65195
65145
|
background-clip: padding-box;
|
|
65196
65146
|
}
|
|
65197
65147
|
|
|
@@ -65200,7 +65150,6 @@ img.ProseMirror-separator {
|
|
|
65200
65150
|
width: 100%;
|
|
65201
65151
|
height: ${controlHeight};
|
|
65202
65152
|
pointer-events: none;
|
|
65203
|
-
box-sizing: border-box;
|
|
65204
65153
|
bottom: 0px;
|
|
65205
65154
|
position: absolute;
|
|
65206
65155
|
}
|
|
@@ -65219,9 +65168,13 @@ img.ProseMirror-separator {
|
|
|
65219
65168
|
|
|
65220
65169
|
.expand-collapse-button {
|
|
65221
65170
|
flex: 0 0 auto;
|
|
65222
|
-
|
|
65223
|
-
|
|
65224
|
-
${
|
|
65171
|
+
margin-left: max(
|
|
65172
|
+
calc(
|
|
65173
|
+
${mediumPadding} +
|
|
65174
|
+
(var(--ni-private-table-row-indent-level) - 1) *
|
|
65175
|
+
${controlHeight}
|
|
65176
|
+
),
|
|
65177
|
+
0px
|
|
65225
65178
|
);
|
|
65226
65179
|
}
|
|
65227
65180
|
|
|
@@ -65233,9 +65186,13 @@ img.ProseMirror-separator {
|
|
|
65233
65186
|
display: flex;
|
|
65234
65187
|
align-items: center;
|
|
65235
65188
|
justify-content: center;
|
|
65236
|
-
|
|
65237
|
-
|
|
65238
|
-
${
|
|
65189
|
+
margin-left: max(
|
|
65190
|
+
calc(
|
|
65191
|
+
${mediumPadding} +
|
|
65192
|
+
(var(--ni-private-table-row-indent-level) - 1) *
|
|
65193
|
+
${controlHeight}
|
|
65194
|
+
),
|
|
65195
|
+
0px
|
|
65239
65196
|
);
|
|
65240
65197
|
}
|
|
65241
65198
|
|
|
@@ -65760,7 +65717,6 @@ img.ProseMirror-separator {
|
|
|
65760
65717
|
align-items: center;
|
|
65761
65718
|
height: calc(${controlHeight} + 2 * ${borderWidth});
|
|
65762
65719
|
border-top: calc(2 * ${borderWidth}) solid ${applicationBackgroundColor};
|
|
65763
|
-
box-sizing: border-box;
|
|
65764
65720
|
grid-template-columns:
|
|
65765
65721
|
calc(
|
|
65766
65722
|
${controlHeight} *
|
|
@@ -67304,8 +67260,7 @@ img.ProseMirror-separator {
|
|
|
67304
67260
|
else if (isColumnInternalsProperty(changedColumnProperty, 'operandDataRecordFieldName', 'sortOperation')) {
|
|
67305
67261
|
this.track('columnDefinition');
|
|
67306
67262
|
}
|
|
67307
|
-
else if (
|
|
67308
|
-
|| isColumnInternalsProperty(changedColumnProperty, 'currentSortDirection', 'currentSortIndex')) {
|
|
67263
|
+
else if (isColumnInternalsProperty(changedColumnProperty, 'sortingDisabled', 'currentSortDirection', 'currentSortIndex')) {
|
|
67309
67264
|
this.track('columnSort');
|
|
67310
67265
|
}
|
|
67311
67266
|
else if (isColumnProperty(changedColumnProperty, 'columnHidden')
|
|
@@ -68243,7 +68198,7 @@ img.ProseMirror-separator {
|
|
|
68243
68198
|
* @internal
|
|
68244
68199
|
*/
|
|
68245
68200
|
toggleColumnSort(column, allowMultiSort) {
|
|
68246
|
-
if (column.sortingDisabled) {
|
|
68201
|
+
if (column.columnInternals.sortingDisabled) {
|
|
68247
68202
|
return;
|
|
68248
68203
|
}
|
|
68249
68204
|
const allSortedColumns = this.getColumnsParticipatingInSorting().sort((x, y) => x.columnInternals.currentSortIndex
|
|
@@ -68427,7 +68382,7 @@ img.ProseMirror-separator {
|
|
|
68427
68382
|
}
|
|
68428
68383
|
}
|
|
68429
68384
|
getColumnsParticipatingInSorting() {
|
|
68430
|
-
return this.columns.filter(x => !x.sortingDisabled
|
|
68385
|
+
return this.columns.filter(x => !x.columnInternals.sortingDisabled
|
|
68431
68386
|
&& x.columnInternals.currentSortDirection
|
|
68432
68387
|
!== TableColumnSortDirection.none
|
|
68433
68388
|
&& typeof x.columnInternals.currentSortIndex === 'number');
|
|
@@ -68802,20 +68757,10 @@ img.ProseMirror-separator {
|
|
|
68802
68757
|
*/
|
|
68803
68758
|
class FractionalWidthColumn extends base {
|
|
68804
68759
|
fractionalWidthChanged() {
|
|
68805
|
-
|
|
68806
|
-
this.columnInternals.fractionalWidth = this.fractionalWidth;
|
|
68807
|
-
}
|
|
68808
|
-
else {
|
|
68809
|
-
this.columnInternals.fractionalWidth = defaultFractionalWidth;
|
|
68810
|
-
}
|
|
68760
|
+
this.columnInternals.fractionalWidth = this.fractionalWidth ?? defaultFractionalWidth;
|
|
68811
68761
|
}
|
|
68812
68762
|
minPixelWidthChanged() {
|
|
68813
|
-
|
|
68814
|
-
this.columnInternals.minPixelWidth = this.minPixelWidth;
|
|
68815
|
-
}
|
|
68816
|
-
else {
|
|
68817
|
-
this.columnInternals.minPixelWidth = defaultMinPixelWidth;
|
|
68818
|
-
}
|
|
68763
|
+
this.columnInternals.minPixelWidth = this.minPixelWidth ?? defaultMinPixelWidth;
|
|
68819
68764
|
}
|
|
68820
68765
|
}
|
|
68821
68766
|
attr({ attribute: 'fractional-width', converter: nullableNumberConverter })(
|
|
@@ -68838,18 +68783,12 @@ img.ProseMirror-separator {
|
|
|
68838
68783
|
constructor() {
|
|
68839
68784
|
super(...arguments);
|
|
68840
68785
|
this.groupingDisabled = false;
|
|
68841
|
-
this.groupIndex = null;
|
|
68842
68786
|
}
|
|
68843
68787
|
groupingDisabledChanged() {
|
|
68844
68788
|
this.columnInternals.groupingDisabled = this.groupingDisabled;
|
|
68845
68789
|
}
|
|
68846
68790
|
groupIndexChanged() {
|
|
68847
|
-
|
|
68848
|
-
this.columnInternals.groupIndex = this.groupIndex;
|
|
68849
|
-
}
|
|
68850
|
-
else {
|
|
68851
|
-
this.columnInternals.groupIndex = undefined;
|
|
68852
|
-
}
|
|
68791
|
+
this.columnInternals.groupIndex = this.groupIndex ?? undefined;
|
|
68853
68792
|
}
|
|
68854
68793
|
}
|
|
68855
68794
|
attr({ attribute: 'grouping-disabled', mode: 'boolean' })(
|
|
@@ -69108,10 +69047,60 @@ img.ProseMirror-separator {
|
|
|
69108
69047
|
.register(tableColumnTextGroupHeaderView());
|
|
69109
69048
|
const tableColumnTextGroupHeaderViewTag = 'nimble-table-column-text-group-header-view';
|
|
69110
69049
|
|
|
69050
|
+
// As the returned class is internal to the function, we can't write a signature that uses is directly, so rely on inference
|
|
69051
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
|
|
69052
|
+
function mixinSortableColumnAPI(base) {
|
|
69053
|
+
/**
|
|
69054
|
+
* The Mixin that provides a concrete column with the API to allow sorting
|
|
69055
|
+
* by the values in that column.
|
|
69056
|
+
*/
|
|
69057
|
+
class SortableColumn extends base {
|
|
69058
|
+
constructor() {
|
|
69059
|
+
super(...arguments);
|
|
69060
|
+
this.sortingDisabled = false;
|
|
69061
|
+
this.sortDirection = TableColumnSortDirection.none;
|
|
69062
|
+
}
|
|
69063
|
+
/** @internal */
|
|
69064
|
+
sortingDisabledChanged() {
|
|
69065
|
+
this.columnInternals.sortingDisabled = this.sortingDisabled;
|
|
69066
|
+
if (this.sortingDisabled) {
|
|
69067
|
+
this.columnInternals.currentSortDirection = TableColumnSortDirection.none;
|
|
69068
|
+
this.columnInternals.currentSortIndex = undefined;
|
|
69069
|
+
}
|
|
69070
|
+
else {
|
|
69071
|
+
this.columnInternals.currentSortDirection = this.sortDirection;
|
|
69072
|
+
this.columnInternals.currentSortIndex = this.sortIndex ?? undefined;
|
|
69073
|
+
}
|
|
69074
|
+
}
|
|
69075
|
+
/** @internal */
|
|
69076
|
+
sortDirectionChanged() {
|
|
69077
|
+
if (!this.sortingDisabled) {
|
|
69078
|
+
this.columnInternals.currentSortDirection = this.sortDirection;
|
|
69079
|
+
}
|
|
69080
|
+
}
|
|
69081
|
+
/** @internal */
|
|
69082
|
+
sortIndexChanged() {
|
|
69083
|
+
if (!this.sortingDisabled) {
|
|
69084
|
+
this.columnInternals.currentSortIndex = this.sortIndex ?? undefined;
|
|
69085
|
+
}
|
|
69086
|
+
}
|
|
69087
|
+
}
|
|
69088
|
+
attr({ attribute: 'sorting-disabled', mode: 'boolean' })(
|
|
69089
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
69090
|
+
SortableColumn.prototype, 'sortingDisabled');
|
|
69091
|
+
attr({ attribute: 'sort-index', converter: nullableNumberConverter })(
|
|
69092
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
69093
|
+
SortableColumn.prototype, 'sortIndex');
|
|
69094
|
+
attr({ attribute: 'sort-direction' })(
|
|
69095
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
69096
|
+
SortableColumn.prototype, 'sortDirection');
|
|
69097
|
+
return SortableColumn;
|
|
69098
|
+
}
|
|
69099
|
+
|
|
69111
69100
|
/**
|
|
69112
69101
|
* A table column for displaying links.
|
|
69113
69102
|
*/
|
|
69114
|
-
class TableColumnAnchor extends mixinGroupableColumnAPI(mixinFractionalWidthColumnAPI(mixinColumnWithPlaceholderAPI((TableColumn)))) {
|
|
69103
|
+
class TableColumnAnchor extends mixinGroupableColumnAPI(mixinFractionalWidthColumnAPI(mixinColumnWithPlaceholderAPI(mixinSortableColumnAPI((TableColumn))))) {
|
|
69115
69104
|
constructor() {
|
|
69116
69105
|
super(...arguments);
|
|
69117
69106
|
this.underlineHidden = false;
|
|
@@ -69240,7 +69229,7 @@ img.ProseMirror-separator {
|
|
|
69240
69229
|
], TableColumnTextBase.prototype, "fieldName", void 0);
|
|
69241
69230
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type, @typescript-eslint/no-explicit-any
|
|
69242
69231
|
function mixinTextBase(base) {
|
|
69243
|
-
return mixinGroupableColumnAPI(mixinFractionalWidthColumnAPI(mixinColumnWithPlaceholderAPI(base)));
|
|
69232
|
+
return mixinGroupableColumnAPI(mixinFractionalWidthColumnAPI(mixinColumnWithPlaceholderAPI(mixinSortableColumnAPI(base))));
|
|
69244
69233
|
}
|
|
69245
69234
|
|
|
69246
69235
|
function formatNumericDate(formatter, date) {
|
|
@@ -70355,7 +70344,7 @@ img.ProseMirror-separator {
|
|
|
70355
70344
|
* Table column that maps number, boolean, or string values to an icon, a spinner,
|
|
70356
70345
|
* text, or an icon/spinner with text.
|
|
70357
70346
|
*/
|
|
70358
|
-
class TableColumnMapping extends mixinGroupableColumnAPI(mixinFractionalWidthColumnAPI((TableColumnEnumBase))) {
|
|
70347
|
+
class TableColumnMapping extends mixinGroupableColumnAPI(mixinFractionalWidthColumnAPI(mixinSortableColumnAPI((TableColumnEnumBase)))) {
|
|
70359
70348
|
minPixelWidthChanged() {
|
|
70360
70349
|
if (this.widthMode !== TableColumnMappingWidthMode.iconSize) {
|
|
70361
70350
|
this.columnInternals.minPixelWidth = this.getConfiguredMinPixelWidth();
|
|
@@ -71072,7 +71061,6 @@ img.ProseMirror-separator {
|
|
|
71072
71061
|
${display('grid')}
|
|
71073
71062
|
|
|
71074
71063
|
:host {
|
|
71075
|
-
box-sizing: border-box;
|
|
71076
71064
|
grid-template-columns: auto 1fr;
|
|
71077
71065
|
grid-template-rows: auto 1fr;
|
|
71078
71066
|
}
|
|
@@ -71121,7 +71109,6 @@ img.ProseMirror-separator {
|
|
|
71121
71109
|
:host {
|
|
71122
71110
|
align-items: center;
|
|
71123
71111
|
height: ${controlHeight};
|
|
71124
|
-
box-sizing: border-box;
|
|
71125
71112
|
font: ${bodyFont};
|
|
71126
71113
|
color: ${bodyFontColor};
|
|
71127
71114
|
}
|
|
@@ -71230,7 +71217,6 @@ img.ProseMirror-separator {
|
|
|
71230
71217
|
font: inherit;
|
|
71231
71218
|
flex-grow: 1;
|
|
71232
71219
|
outline: none;
|
|
71233
|
-
box-sizing: border-box;
|
|
71234
71220
|
position: relative;
|
|
71235
71221
|
color: inherit;
|
|
71236
71222
|
border-radius: 0px;
|
|
@@ -71535,7 +71521,6 @@ img.ProseMirror-separator {
|
|
|
71535
71521
|
}
|
|
71536
71522
|
|
|
71537
71523
|
.root {
|
|
71538
|
-
box-sizing: border-box;
|
|
71539
71524
|
position: relative;
|
|
71540
71525
|
display: flex;
|
|
71541
71526
|
flex-direction: row;
|
|
@@ -71804,7 +71789,6 @@ img.ProseMirror-separator {
|
|
|
71804
71789
|
}
|
|
71805
71790
|
|
|
71806
71791
|
.tooltip {
|
|
71807
|
-
box-sizing: border-box;
|
|
71808
71792
|
flex-shrink: 0;
|
|
71809
71793
|
max-width: 440px;
|
|
71810
71794
|
box-shadow: ${elevation2BoxShadow};
|
|
@@ -72057,7 +72041,6 @@ img.ProseMirror-separator {
|
|
|
72057
72041
|
.positioning-region {
|
|
72058
72042
|
display: flex;
|
|
72059
72043
|
position: relative;
|
|
72060
|
-
box-sizing: border-box;
|
|
72061
72044
|
height: calc(${iconSize} * 2);
|
|
72062
72045
|
}
|
|
72063
72046
|
|