@ni/nimble-components 19.8.3 → 19.8.4
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 +21 -107
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +270 -285
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/src/table-column/anchor/cell-view/index.d.ts +1 -1
- package/dist/esm/src/table-column/anchor/index.d.ts +0 -3
- package/dist/esm/src/table-column/base/types.d.ts +0 -3
- package/dist/esm/src/table-column/text/cell-view/index.d.ts +0 -1
- package/dist/esm/src/table-column/text/group-header-view/index.d.ts +0 -1
- package/dist/esm/src/table-column/text/index.d.ts +1 -2
- package/dist/esm/src/table-column/text-base/cell-view/index.d.ts +1 -10
- package/dist/esm/src/table-column/text-base/group-header-view/index.d.ts +2 -12
- package/dist/esm/src/table-column/text-base/group-header-view/template.d.ts +1 -1
- package/dist/esm/src/table-column/text-base/index.d.ts +1 -11
- package/dist/esm/table-column/anchor/cell-view/index.d.ts +1 -1
- package/dist/esm/table-column/anchor/cell-view/index.js +3 -3
- package/dist/esm/table-column/anchor/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/anchor/cell-view/styles.js +1 -5
- package/dist/esm/table-column/anchor/cell-view/styles.js.map +1 -1
- package/dist/esm/table-column/anchor/cell-view/template.js +4 -5
- package/dist/esm/table-column/anchor/cell-view/template.js.map +1 -1
- package/dist/esm/table-column/anchor/index.d.ts +0 -3
- package/dist/esm/table-column/anchor/index.js +0 -7
- package/dist/esm/table-column/anchor/index.js.map +1 -1
- package/dist/esm/table-column/base/types.d.ts +0 -3
- package/dist/esm/table-column/base/types.js.map +1 -1
- package/dist/esm/table-column/text/cell-view/index.d.ts +0 -1
- package/dist/esm/table-column/text/cell-view/index.js +3 -11
- package/dist/esm/table-column/text/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/text/group-header-view/index.d.ts +0 -1
- package/dist/esm/table-column/text/group-header-view/index.js +3 -11
- package/dist/esm/table-column/text/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/text/index.d.ts +1 -2
- package/dist/esm/table-column/text/index.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/index.d.ts +1 -10
- package/dist/esm/table-column/text-base/cell-view/index.js +2 -22
- package/dist/esm/table-column/text-base/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/styles.js +1 -5
- package/dist/esm/table-column/text-base/cell-view/styles.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/template.js +2 -3
- package/dist/esm/table-column/text-base/cell-view/template.js.map +1 -1
- package/dist/esm/table-column/text-base/group-header-view/index.d.ts +2 -12
- package/dist/esm/table-column/text-base/group-header-view/index.js +2 -22
- package/dist/esm/table-column/text-base/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/text-base/group-header-view/styles.js +1 -5
- package/dist/esm/table-column/text-base/group-header-view/styles.js.map +1 -1
- package/dist/esm/table-column/text-base/group-header-view/template.d.ts +1 -1
- package/dist/esm/table-column/text-base/group-header-view/template.js +2 -3
- package/dist/esm/table-column/text-base/group-header-view/template.js.map +1 -1
- package/dist/esm/table-column/text-base/index.d.ts +1 -11
- package/dist/esm/table-column/text-base/index.js +1 -9
- package/dist/esm/table-column/text-base/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -16288,7 +16288,7 @@
|
|
|
16288
16288
|
|
|
16289
16289
|
/**
|
|
16290
16290
|
* Do not edit directly
|
|
16291
|
-
* Generated on Thu, 20 Jul 2023
|
|
16291
|
+
* Generated on Thu, 20 Jul 2023 16:03:51 GMT
|
|
16292
16292
|
*/
|
|
16293
16293
|
|
|
16294
16294
|
const Information100DarkUi = "#a46eff";
|
|
@@ -32452,10 +32452,6 @@
|
|
|
32452
32452
|
overflow: hidden;
|
|
32453
32453
|
text-overflow: ellipsis;
|
|
32454
32454
|
}
|
|
32455
|
-
|
|
32456
|
-
.placeholder {
|
|
32457
|
-
color: ${controlLabelFontColor};
|
|
32458
|
-
}
|
|
32459
32455
|
`;
|
|
32460
32456
|
|
|
32461
32457
|
/* eslint-disable @typescript-eslint/indent */
|
|
@@ -32483,17 +32479,16 @@
|
|
|
32483
32479
|
download="${x => x.columnConfig.download}"
|
|
32484
32480
|
underline-hidden="${x => x.columnConfig.underlineHidden}"
|
|
32485
32481
|
appearance="${x => x.columnConfig.appearance}"
|
|
32486
|
-
title=${x => (x.hasOverflow
|
|
32482
|
+
title=${x => (x.hasOverflow ? x.text : null)}
|
|
32487
32483
|
>
|
|
32488
|
-
${x => x.
|
|
32484
|
+
${x => x.text}
|
|
32489
32485
|
</${anchorTag}>`)}
|
|
32490
32486
|
${when(x => typeof x.cellRecord.href !== 'string', html `
|
|
32491
32487
|
<span
|
|
32492
32488
|
${overflow('hasOverflow')}
|
|
32493
|
-
|
|
32494
|
-
title=${x => (x.hasOverflow && x.content ? x.content : null)}
|
|
32489
|
+
title=${x => (x.hasOverflow ? x.text : null)}
|
|
32495
32490
|
>
|
|
32496
|
-
${x => x.
|
|
32491
|
+
${x => x.text}
|
|
32497
32492
|
</span>`)}
|
|
32498
32493
|
</template>
|
|
32499
32494
|
`;
|
|
@@ -32507,14 +32502,14 @@
|
|
|
32507
32502
|
/** @internal */
|
|
32508
32503
|
this.hasOverflow = false;
|
|
32509
32504
|
}
|
|
32510
|
-
get
|
|
32505
|
+
get text() {
|
|
32511
32506
|
if (typeof this.cellRecord.label === 'string') {
|
|
32512
32507
|
return this.cellRecord.label;
|
|
32513
32508
|
}
|
|
32514
32509
|
if (typeof this.cellRecord.href === 'string') {
|
|
32515
32510
|
return this.cellRecord.href;
|
|
32516
32511
|
}
|
|
32517
|
-
return
|
|
32512
|
+
return '';
|
|
32518
32513
|
}
|
|
32519
32514
|
focusedRecycleCallback() {
|
|
32520
32515
|
this.anchor?.blur();
|
|
@@ -32525,7 +32520,7 @@
|
|
|
32525
32520
|
], TableColumnAnchorCellView.prototype, "hasOverflow", void 0);
|
|
32526
32521
|
__decorate$1([
|
|
32527
32522
|
volatile
|
|
32528
|
-
], TableColumnAnchorCellView.prototype, "
|
|
32523
|
+
], TableColumnAnchorCellView.prototype, "text", null);
|
|
32529
32524
|
const anchorCellView = TableColumnAnchorCellView.compose({
|
|
32530
32525
|
baseName: 'table-column-anchor-cell-view',
|
|
32531
32526
|
template: template$7,
|
|
@@ -32543,20 +32538,9 @@
|
|
|
32543
32538
|
/** @internal */
|
|
32544
32539
|
this.hasOverflow = false;
|
|
32545
32540
|
/**
|
|
32546
|
-
* Text to render in the cell
|
|
32541
|
+
* Text to render in the cell.
|
|
32547
32542
|
*/
|
|
32548
32543
|
this.text = '';
|
|
32549
|
-
/**
|
|
32550
|
-
* Text to render in the cell when it contains an invalid value (i.e. when shouldUsePlaceholder is true).
|
|
32551
|
-
*/
|
|
32552
|
-
this.placeholder = '';
|
|
32553
|
-
/**
|
|
32554
|
-
* Returns whether to display the placeholder value or the text value
|
|
32555
|
-
*/
|
|
32556
|
-
this.shouldUsePlaceholder = true;
|
|
32557
|
-
}
|
|
32558
|
-
get content() {
|
|
32559
|
-
return this.shouldUsePlaceholder ? this.placeholder : this.text;
|
|
32560
32544
|
}
|
|
32561
32545
|
}
|
|
32562
32546
|
__decorate$1([
|
|
@@ -32565,23 +32549,13 @@
|
|
|
32565
32549
|
__decorate$1([
|
|
32566
32550
|
observable
|
|
32567
32551
|
], TableColumnTextGroupHeaderViewBase.prototype, "text", void 0);
|
|
32568
|
-
__decorate$1([
|
|
32569
|
-
observable
|
|
32570
|
-
], TableColumnTextGroupHeaderViewBase.prototype, "placeholder", void 0);
|
|
32571
|
-
__decorate$1([
|
|
32572
|
-
observable
|
|
32573
|
-
], TableColumnTextGroupHeaderViewBase.prototype, "shouldUsePlaceholder", void 0);
|
|
32574
|
-
__decorate$1([
|
|
32575
|
-
volatile
|
|
32576
|
-
], TableColumnTextGroupHeaderViewBase.prototype, "content", null);
|
|
32577
32552
|
|
|
32578
32553
|
const template$6 = html `
|
|
32579
32554
|
<span
|
|
32580
32555
|
${overflow('hasOverflow')}
|
|
32581
|
-
|
|
32582
|
-
title="${x => (x.hasOverflow && x.content ? x.content : undefined)}"
|
|
32556
|
+
title="${x => (x.hasOverflow && x.text ? x.text : null)}"
|
|
32583
32557
|
>
|
|
32584
|
-
${x => x.
|
|
32558
|
+
${x => x.text}
|
|
32585
32559
|
</span>
|
|
32586
32560
|
`;
|
|
32587
32561
|
|
|
@@ -32593,28 +32567,16 @@
|
|
|
32593
32567
|
overflow: hidden;
|
|
32594
32568
|
text-overflow: ellipsis;
|
|
32595
32569
|
}
|
|
32596
|
-
|
|
32597
|
-
.placeholder {
|
|
32598
|
-
color: ${controlLabelFontColor};
|
|
32599
|
-
}
|
|
32600
32570
|
`;
|
|
32601
32571
|
|
|
32602
32572
|
/**
|
|
32603
32573
|
* The group header view for displaying string fields as text.
|
|
32604
32574
|
*/
|
|
32605
32575
|
class TableColumnTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase {
|
|
32606
|
-
columnConfigChanged() {
|
|
32607
|
-
this.placeholder = this.columnConfig?.placeholder ?? '';
|
|
32608
|
-
}
|
|
32609
32576
|
groupHeaderValueChanged() {
|
|
32610
|
-
|
|
32611
|
-
|
|
32612
|
-
|
|
32613
|
-
}
|
|
32614
|
-
else {
|
|
32615
|
-
this.text = '';
|
|
32616
|
-
this.shouldUsePlaceholder = true;
|
|
32617
|
-
}
|
|
32577
|
+
this.text = typeof this.groupHeaderValue === 'string'
|
|
32578
|
+
? this.groupHeaderValue
|
|
32579
|
+
: '';
|
|
32618
32580
|
}
|
|
32619
32581
|
}
|
|
32620
32582
|
const tableColumnTextGroupHeaderView = TableColumnTextGroupHeaderView.compose({
|
|
@@ -32657,9 +32619,6 @@
|
|
|
32657
32619
|
this.hrefFieldName
|
|
32658
32620
|
];
|
|
32659
32621
|
}
|
|
32660
|
-
placeholderChanged() {
|
|
32661
|
-
this.updateColumnConfig();
|
|
32662
|
-
}
|
|
32663
32622
|
appearanceChanged() {
|
|
32664
32623
|
this.updateColumnConfig();
|
|
32665
32624
|
}
|
|
@@ -32689,7 +32648,6 @@
|
|
|
32689
32648
|
}
|
|
32690
32649
|
updateColumnConfig() {
|
|
32691
32650
|
this.columnInternals.columnConfig = {
|
|
32692
|
-
placeholder: this.placeholder ?? '',
|
|
32693
32651
|
appearance: this.appearance,
|
|
32694
32652
|
underlineHidden: this.underlineHidden,
|
|
32695
32653
|
hreflang: this.hreflang,
|
|
@@ -32708,9 +32666,6 @@
|
|
|
32708
32666
|
__decorate$1([
|
|
32709
32667
|
attr({ attribute: 'href-field-name' })
|
|
32710
32668
|
], TableColumnAnchor.prototype, "hrefFieldName", void 0);
|
|
32711
|
-
__decorate$1([
|
|
32712
|
-
attr
|
|
32713
|
-
], TableColumnAnchor.prototype, "placeholder", void 0);
|
|
32714
32669
|
__decorate$1([
|
|
32715
32670
|
attr
|
|
32716
32671
|
], TableColumnAnchor.prototype, "appearance", void 0);
|
|
@@ -32751,31 +32706,22 @@
|
|
|
32751
32706
|
/**
|
|
32752
32707
|
* The base class for table columns that display fields of any type as text.
|
|
32753
32708
|
*/
|
|
32754
|
-
class TableColumnTextBase extends mixinGroupableColumnAPI(mixinFractionalWidthColumnAPI(
|
|
32709
|
+
class TableColumnTextBase extends mixinGroupableColumnAPI(mixinFractionalWidthColumnAPI(TableColumn)) {
|
|
32755
32710
|
fieldNameChanged() {
|
|
32756
32711
|
this.columnInternals.dataRecordFieldNames = [this.fieldName];
|
|
32757
32712
|
this.columnInternals.operandDataRecordFieldName = this.fieldName;
|
|
32758
32713
|
}
|
|
32759
|
-
placeholderChanged() {
|
|
32760
|
-
this.columnInternals.columnConfig = {
|
|
32761
|
-
placeholder: this.placeholder ?? ''
|
|
32762
|
-
};
|
|
32763
|
-
}
|
|
32764
32714
|
}
|
|
32765
32715
|
__decorate$1([
|
|
32766
32716
|
attr({ attribute: 'field-name' })
|
|
32767
32717
|
], TableColumnTextBase.prototype, "fieldName", void 0);
|
|
32768
|
-
__decorate$1([
|
|
32769
|
-
attr
|
|
32770
|
-
], TableColumnTextBase.prototype, "placeholder", void 0);
|
|
32771
32718
|
|
|
32772
32719
|
const template$5 = html `
|
|
32773
32720
|
<span
|
|
32774
32721
|
${overflow('hasOverflow')}
|
|
32775
|
-
|
|
32776
|
-
title=${x => (x.hasOverflow && x.content ? x.content : null)}
|
|
32722
|
+
title=${x => (x.hasOverflow && x.text ? x.text : null)}
|
|
32777
32723
|
>
|
|
32778
|
-
${x => x.
|
|
32724
|
+
${x => x.text}
|
|
32779
32725
|
</span>
|
|
32780
32726
|
`;
|
|
32781
32727
|
|
|
@@ -32787,10 +32733,6 @@
|
|
|
32787
32733
|
overflow: hidden;
|
|
32788
32734
|
text-overflow: ellipsis;
|
|
32789
32735
|
}
|
|
32790
|
-
|
|
32791
|
-
.placeholder {
|
|
32792
|
-
color: ${controlLabelFontColor};
|
|
32793
|
-
}
|
|
32794
32736
|
`;
|
|
32795
32737
|
|
|
32796
32738
|
/**
|
|
@@ -32802,20 +32744,9 @@
|
|
|
32802
32744
|
/** @internal */
|
|
32803
32745
|
this.hasOverflow = false;
|
|
32804
32746
|
/**
|
|
32805
|
-
* Text to render in the cell
|
|
32747
|
+
* Text to render in the cell.
|
|
32806
32748
|
*/
|
|
32807
32749
|
this.text = '';
|
|
32808
|
-
/**
|
|
32809
|
-
* Text to render in the cell when it contains an invalid value (i.e. when shouldUsePlaceholder is true).
|
|
32810
|
-
*/
|
|
32811
|
-
this.placeholder = '';
|
|
32812
|
-
/**
|
|
32813
|
-
* Returns whether to display the placeholder value or the text value
|
|
32814
|
-
*/
|
|
32815
|
-
this.shouldUsePlaceholder = true;
|
|
32816
|
-
}
|
|
32817
|
-
get content() {
|
|
32818
|
-
return this.shouldUsePlaceholder ? this.placeholder : this.text;
|
|
32819
32750
|
}
|
|
32820
32751
|
}
|
|
32821
32752
|
__decorate$1([
|
|
@@ -32824,32 +32755,15 @@
|
|
|
32824
32755
|
__decorate$1([
|
|
32825
32756
|
observable
|
|
32826
32757
|
], TableColumnTextCellViewBase.prototype, "text", void 0);
|
|
32827
|
-
__decorate$1([
|
|
32828
|
-
observable
|
|
32829
|
-
], TableColumnTextCellViewBase.prototype, "placeholder", void 0);
|
|
32830
|
-
__decorate$1([
|
|
32831
|
-
observable
|
|
32832
|
-
], TableColumnTextCellViewBase.prototype, "shouldUsePlaceholder", void 0);
|
|
32833
|
-
__decorate$1([
|
|
32834
|
-
volatile
|
|
32835
|
-
], TableColumnTextCellViewBase.prototype, "content", null);
|
|
32836
32758
|
|
|
32837
32759
|
/**
|
|
32838
32760
|
* A cell view for displaying string fields as text
|
|
32839
32761
|
*/
|
|
32840
32762
|
class TableColumnTextCellView extends TableColumnTextCellViewBase {
|
|
32841
|
-
columnConfigChanged() {
|
|
32842
|
-
this.placeholder = this.columnConfig.placeholder;
|
|
32843
|
-
}
|
|
32844
32763
|
cellRecordChanged() {
|
|
32845
|
-
|
|
32846
|
-
|
|
32847
|
-
|
|
32848
|
-
}
|
|
32849
|
-
else {
|
|
32850
|
-
this.text = '';
|
|
32851
|
-
this.shouldUsePlaceholder = true;
|
|
32852
|
-
}
|
|
32764
|
+
this.text = typeof this.cellRecord.value === 'string'
|
|
32765
|
+
? this.cellRecord.value
|
|
32766
|
+
: '';
|
|
32853
32767
|
}
|
|
32854
32768
|
}
|
|
32855
32769
|
const textCellView = TableColumnTextCellView.compose({
|