@ni/nimble-components 25.0.0 → 25.1.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 +44 -10
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +394 -393
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/rich-text/editor/template.js +1 -1
- package/dist/esm/rich-text/editor/template.js.map +1 -1
- package/dist/esm/src/table-column/icon/cell-view/index.d.ts +2 -1
- package/dist/esm/src/table-column/icon/group-header-view/index.d.ts +2 -1
- package/dist/esm/table/components/cell/template.js +2 -2
- package/dist/esm/table/components/cell/template.js.map +1 -1
- package/dist/esm/table/template.js +2 -2
- package/dist/esm/table/template.js.map +1 -1
- package/dist/esm/table-column/icon/cell-view/index.d.ts +2 -1
- package/dist/esm/table-column/icon/cell-view/index.js +13 -1
- package/dist/esm/table-column/icon/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/icon/group-header-view/index.d.ts +2 -1
- package/dist/esm/table-column/icon/group-header-view/index.js +11 -2
- package/dist/esm/table-column/icon/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/icon/index.js +5 -0
- package/dist/esm/table-column/icon/index.js.map +1 -1
- package/dist/esm/table-column/icon/models/table-column-icon-validator.js +4 -1
- package/dist/esm/table-column/icon/models/table-column-icon-validator.js.map +1 -1
- package/package.json +2 -3
|
@@ -16333,7 +16333,7 @@
|
|
|
16333
16333
|
|
|
16334
16334
|
/**
|
|
16335
16335
|
* Do not edit directly
|
|
16336
|
-
* Generated on
|
|
16336
|
+
* Generated on Fri, 19 Apr 2024 16:41:22 GMT
|
|
16337
16337
|
*/
|
|
16338
16338
|
|
|
16339
16339
|
const Information100DarkUi = "#a46eff";
|
|
@@ -43861,7 +43861,7 @@ img.ProseMirror-separator {
|
|
|
43861
43861
|
${ref('mentionListbox')}
|
|
43862
43862
|
@mention-selected=${(x, c) => x.onMentionSelect(c.event)}
|
|
43863
43863
|
>
|
|
43864
|
-
${repeat(x => Array.from(x.activeMappingConfigs
|
|
43864
|
+
${repeat(x => Array.from(x.activeMappingConfigs ? x.activeMappingConfigs.values() : []), html `
|
|
43865
43865
|
<${listOptionTag} value="${x => x.mentionHref}">${x => x.displayName}</${listOptionTag}>
|
|
43866
43866
|
`, { recycle: false })}
|
|
43867
43867
|
</${richTextMentionListboxTag}>
|
|
@@ -64368,10 +64368,10 @@ img.ProseMirror-separator {
|
|
|
64368
64368
|
@toggle="${(x, c) => x.onActionMenuToggle(c.event)}"
|
|
64369
64369
|
@click="${(_, c) => c.event.stopPropagation()}"
|
|
64370
64370
|
class="action-menu"
|
|
64371
|
-
title="${x => x.actionMenuLabel
|
|
64371
|
+
title="${x => (x.actionMenuLabel ? x.actionMenuLabel : tableCellActionMenuLabel.getValueFor(x))}"
|
|
64372
64372
|
>
|
|
64373
64373
|
<${iconThreeDotsLineTag} slot="start"></${iconThreeDotsLineTag}>
|
|
64374
|
-
${x => x.actionMenuLabel
|
|
64374
|
+
${x => (x.actionMenuLabel ? x.actionMenuLabel : tableCellActionMenuLabel.getValueFor(x))}
|
|
64375
64375
|
<slot name="cellActionMenu" slot="menu"></slot>
|
|
64376
64376
|
</${menuButtonTag}>
|
|
64377
64377
|
`)}
|
|
@@ -65020,7 +65020,7 @@ img.ProseMirror-separator {
|
|
|
65020
65020
|
--ni-private-table-header-container-margin-right: ${x => x.virtualizer.headerContainerMarginRight}px;
|
|
65021
65021
|
--ni-private-table-scroll-height: ${x => x.virtualizer.scrollHeight}px;
|
|
65022
65022
|
--ni-private-table-row-container-top: ${x => x.virtualizer.rowContainerYOffset}px;
|
|
65023
|
-
--ni-private-table-row-grid-columns: ${x => x.rowGridColumns
|
|
65023
|
+
--ni-private-table-row-grid-columns: ${x => (x.rowGridColumns ? x.rowGridColumns : '')};
|
|
65024
65024
|
--ni-private-table-cursor-override: ${x => (x.layoutManager.isColumnBeingSized ? 'col-resize' : 'default')};
|
|
65025
65025
|
--ni-private-table-scrollable-min-width: ${x => x.tableScrollableMinWidth}px;
|
|
65026
65026
|
--ni-private-glass-overlay-pointer-events: ${x => (x.layoutManager.isColumnBeingSized ? 'none' : 'default')};
|
|
@@ -65038,7 +65038,7 @@ img.ProseMirror-separator {
|
|
|
65038
65038
|
<span class="checkbox-container">
|
|
65039
65039
|
<${checkboxTag}
|
|
65040
65040
|
${ref('selectionCheckbox')}
|
|
65041
|
-
class="${x => `selection-checkbox ${x.selectionMode
|
|
65041
|
+
class="${x => `selection-checkbox ${x.selectionMode ? x.selectionMode : ''}`}"
|
|
65042
65042
|
@change="${(x, c) => x.onAllRowsSelectionChange(c.event)}"
|
|
65043
65043
|
title="${x => tableSelectAllLabel.getValueFor(x)}"
|
|
65044
65044
|
aria-label="${x => tableSelectAllLabel.getValueFor(x)}"
|
|
@@ -69678,7 +69678,9 @@ img.ProseMirror-separator {
|
|
|
69678
69678
|
return mapping instanceof MappingIcon;
|
|
69679
69679
|
}
|
|
69680
69680
|
static isSupportedMappingElement(mapping) {
|
|
69681
|
-
return (mapping instanceof MappingIcon
|
|
69681
|
+
return (mapping instanceof MappingIcon
|
|
69682
|
+
|| mapping instanceof MappingSpinner
|
|
69683
|
+
|| mapping instanceof MappingText);
|
|
69682
69684
|
}
|
|
69683
69685
|
static hasUnresolvedIcon(mappingIcon) {
|
|
69684
69686
|
return (typeof mappingIcon.icon === 'string'
|
|
@@ -69746,6 +69748,18 @@ img.ProseMirror-separator {
|
|
|
69746
69748
|
>${x => x.text}</span>
|
|
69747
69749
|
`;
|
|
69748
69750
|
|
|
69751
|
+
/**
|
|
69752
|
+
* Predefined icon appearance states
|
|
69753
|
+
* @public
|
|
69754
|
+
*/
|
|
69755
|
+
const IconSeverity = {
|
|
69756
|
+
default: undefined,
|
|
69757
|
+
error: 'error',
|
|
69758
|
+
warning: 'warning',
|
|
69759
|
+
success: 'success',
|
|
69760
|
+
information: 'information'
|
|
69761
|
+
};
|
|
69762
|
+
|
|
69749
69763
|
// Create an empty template containing only a space because creating a ViewTemplate
|
|
69750
69764
|
// with an empty string throws an exception at runtime.
|
|
69751
69765
|
// prettier-ignore
|
|
@@ -69805,9 +69819,8 @@ img.ProseMirror-separator {
|
|
|
69805
69819
|
this.textHidden = false;
|
|
69806
69820
|
}
|
|
69807
69821
|
updateText() {
|
|
69808
|
-
this.
|
|
69822
|
+
this.resetState();
|
|
69809
69823
|
if (!this.columnConfig) {
|
|
69810
|
-
this.text = '';
|
|
69811
69824
|
return;
|
|
69812
69825
|
}
|
|
69813
69826
|
const value = this.groupHeaderValue;
|
|
@@ -69821,6 +69834,14 @@ img.ProseMirror-separator {
|
|
|
69821
69834
|
this.text = mappingConfig.text ?? '';
|
|
69822
69835
|
this.visualizationTemplate = mappingConfig.spinnerTemplate;
|
|
69823
69836
|
}
|
|
69837
|
+
else if (mappingConfig instanceof MappingTextConfig) {
|
|
69838
|
+
this.text = mappingConfig.text ?? '';
|
|
69839
|
+
}
|
|
69840
|
+
}
|
|
69841
|
+
resetState() {
|
|
69842
|
+
this.text = '';
|
|
69843
|
+
this.visualizationTemplate = undefined;
|
|
69844
|
+
this.severity = IconSeverity.default;
|
|
69824
69845
|
}
|
|
69825
69846
|
}
|
|
69826
69847
|
__decorate$1([
|
|
@@ -69896,7 +69917,7 @@ img.ProseMirror-separator {
|
|
|
69896
69917
|
this.updateState();
|
|
69897
69918
|
}
|
|
69898
69919
|
updateState() {
|
|
69899
|
-
this.
|
|
69920
|
+
this.resetState();
|
|
69900
69921
|
if (!this.columnConfig || !this.cellRecord) {
|
|
69901
69922
|
return;
|
|
69902
69923
|
}
|
|
@@ -69916,6 +69937,16 @@ img.ProseMirror-separator {
|
|
|
69916
69937
|
this.visualizationTemplate = mappingConfig.spinnerTemplate;
|
|
69917
69938
|
this.textHidden = mappingConfig.textHidden;
|
|
69918
69939
|
}
|
|
69940
|
+
else if (mappingConfig instanceof MappingTextConfig) {
|
|
69941
|
+
this.text = mappingConfig.text;
|
|
69942
|
+
this.textHidden = false;
|
|
69943
|
+
}
|
|
69944
|
+
}
|
|
69945
|
+
resetState() {
|
|
69946
|
+
this.text = undefined;
|
|
69947
|
+
this.textHidden = false;
|
|
69948
|
+
this.visualizationTemplate = undefined;
|
|
69949
|
+
this.severity = IconSeverity.default;
|
|
69919
69950
|
}
|
|
69920
69951
|
}
|
|
69921
69952
|
__decorate$1([
|
|
@@ -69967,6 +69998,9 @@ img.ProseMirror-separator {
|
|
|
69967
69998
|
if (mapping instanceof MappingSpinner) {
|
|
69968
69999
|
return new MappingSpinnerConfig(mapping.text, mapping.textHidden);
|
|
69969
70000
|
}
|
|
70001
|
+
if (mapping instanceof MappingText) {
|
|
70002
|
+
return new MappingTextConfig(mapping.text);
|
|
70003
|
+
}
|
|
69970
70004
|
// Getting here would indicate a programming error, b/c validation will prevent
|
|
69971
70005
|
// this function from running when there is an unsupported mapping.
|
|
69972
70006
|
throw new Error('Unsupported mapping');
|