@ni/nimble-components 25.0.0 → 25.1.0
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 +39 -5
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +389 -388
- package/dist/all-components-bundle.min.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-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 Thu, 18 Apr 2024 21:31:08 GMT
|
|
16337
16337
|
*/
|
|
16338
16338
|
|
|
16339
16339
|
const Information100DarkUi = "#a46eff";
|
|
@@ -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');
|