@ni/nimble-components 20.14.3 → 20.14.5
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 +60 -29
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +20 -16
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/drawer/styles.js +2 -2
- package/dist/esm/drawer/styles.js.map +1 -1
- package/dist/esm/mapping/base/index.d.ts +2 -10
- package/dist/esm/mapping/base/index.js +0 -3
- package/dist/esm/mapping/base/index.js.map +1 -1
- package/dist/esm/mapping/icon/index.d.ts +3 -1
- package/dist/esm/mapping/icon/index.js +3 -0
- package/dist/esm/mapping/icon/index.js.map +1 -1
- package/dist/esm/mapping/spinner/index.d.ts +3 -1
- package/dist/esm/mapping/spinner/index.js +5 -0
- package/dist/esm/mapping/spinner/index.js.map +1 -1
- package/dist/esm/mapping/text/index.d.ts +3 -1
- package/dist/esm/mapping/text/index.js +5 -0
- package/dist/esm/mapping/text/index.js.map +1 -1
- package/dist/esm/table-column/enum-base/index.d.ts +2 -2
- package/dist/esm/table-column/enum-base/index.js.map +1 -1
- package/dist/esm/table-column/enum-base/models/mapping-key-resolver.d.ts +1 -1
- package/dist/esm/table-column/enum-base/models/mapping-key-resolver.js.map +1 -1
- package/dist/esm/table-column/enum-base/models/table-column-enum-base-validator.d.ts +3 -6
- package/dist/esm/table-column/enum-base/models/table-column-enum-base-validator.js +2 -15
- package/dist/esm/table-column/enum-base/models/table-column-enum-base-validator.js.map +1 -1
- package/dist/esm/table-column/enum-text/index.d.ts +1 -1
- package/dist/esm/table-column/enum-text/index.js.map +1 -1
- package/dist/esm/table-column/enum-text/models/table-column-enum-text-validator.d.ts +7 -1
- package/dist/esm/table-column/enum-text/models/table-column-enum-text-validator.js +24 -2
- package/dist/esm/table-column/enum-text/models/table-column-enum-text-validator.js.map +1 -1
- package/dist/esm/table-column/icon/index.d.ts +1 -1
- package/dist/esm/table-column/icon/index.js.map +1 -1
- package/dist/esm/table-column/icon/models/table-column-icon-validator.d.ts +6 -2
- package/dist/esm/table-column/icon/models/table-column-icon-validator.js +23 -7
- package/dist/esm/table-column/icon/models/table-column-icon-validator.js.map +1 -1
- package/package.json +1 -1
|
@@ -16298,7 +16298,7 @@
|
|
|
16298
16298
|
|
|
16299
16299
|
/**
|
|
16300
16300
|
* Do not edit directly
|
|
16301
|
-
* Generated on
|
|
16301
|
+
* Generated on Fri, 17 Nov 2023 00:55:54 GMT
|
|
16302
16302
|
*/
|
|
16303
16303
|
|
|
16304
16304
|
const Information100DarkUi = "#a46eff";
|
|
@@ -21512,7 +21512,7 @@
|
|
|
21512
21512
|
flex: none;
|
|
21513
21513
|
display: flex;
|
|
21514
21514
|
justify-content: flex-end;
|
|
21515
|
-
border-top:
|
|
21515
|
+
border-top: 2px solid rgba(${actionRgbPartialColor}, 0.1);
|
|
21516
21516
|
}
|
|
21517
21517
|
`.withBehaviors(
|
|
21518
21518
|
/*
|
|
@@ -24116,9 +24116,6 @@
|
|
|
24116
24116
|
__decorate$1([
|
|
24117
24117
|
attr()
|
|
24118
24118
|
], Mapping$1.prototype, "key", void 0);
|
|
24119
|
-
__decorate$1([
|
|
24120
|
-
attr()
|
|
24121
|
-
], Mapping$1.prototype, "text", void 0);
|
|
24122
24119
|
|
|
24123
24120
|
const template$n = html `<template slot="mapping"></template>`;
|
|
24124
24121
|
|
|
@@ -24129,6 +24126,9 @@
|
|
|
24129
24126
|
*/
|
|
24130
24127
|
class MappingText extends Mapping$1 {
|
|
24131
24128
|
}
|
|
24129
|
+
__decorate$1([
|
|
24130
|
+
attr()
|
|
24131
|
+
], MappingText.prototype, "text", void 0);
|
|
24132
24132
|
const textMapping = MappingText.compose({
|
|
24133
24133
|
baseName: 'mapping-text',
|
|
24134
24134
|
template: template$n
|
|
@@ -24187,6 +24187,9 @@
|
|
|
24187
24187
|
__decorate$1([
|
|
24188
24188
|
attr()
|
|
24189
24189
|
], MappingIcon.prototype, "severity", void 0);
|
|
24190
|
+
__decorate$1([
|
|
24191
|
+
attr()
|
|
24192
|
+
], MappingIcon.prototype, "text", void 0);
|
|
24190
24193
|
__decorate$1([
|
|
24191
24194
|
observable
|
|
24192
24195
|
], MappingIcon.prototype, "resolvedIcon", void 0);
|
|
@@ -24204,6 +24207,9 @@
|
|
|
24204
24207
|
*/
|
|
24205
24208
|
class MappingSpinner extends Mapping$1 {
|
|
24206
24209
|
}
|
|
24210
|
+
__decorate$1([
|
|
24211
|
+
attr()
|
|
24212
|
+
], MappingSpinner.prototype, "text", void 0);
|
|
24207
24213
|
const spinnerMapping = MappingSpinner.compose({
|
|
24208
24214
|
baseName: 'mapping-spinner',
|
|
24209
24215
|
template: template$n
|
|
@@ -68667,27 +68673,22 @@ img.ProseMirror-separator {
|
|
|
68667
68673
|
|
|
68668
68674
|
const enumBaseValidityFlagNames = [
|
|
68669
68675
|
'invalidMappingKeyValueForType',
|
|
68670
|
-
'unsupportedMappingType',
|
|
68671
68676
|
'duplicateMappingKey',
|
|
68672
|
-
'missingKeyValue'
|
|
68673
|
-
'missingTextValue'
|
|
68677
|
+
'missingKeyValue'
|
|
68674
68678
|
];
|
|
68675
68679
|
/**
|
|
68676
68680
|
* Validator for TableColumnEnumText. Implementations MUST include enumBaseValidityFlagNames in validity flag names set.
|
|
68677
68681
|
*/
|
|
68678
68682
|
class TableColumnEnumBaseValidator extends ColumnValidator {
|
|
68679
|
-
constructor(columnInternals, configValidityKeys
|
|
68683
|
+
constructor(columnInternals, configValidityKeys) {
|
|
68680
68684
|
super(columnInternals, configValidityKeys);
|
|
68681
|
-
this.supportedMappingElements = supportedMappingElements;
|
|
68682
68685
|
}
|
|
68683
68686
|
validate(mappings, keyType) {
|
|
68684
68687
|
this.untrackAll();
|
|
68685
68688
|
const keys = mappings.map(mapping => mapping.key);
|
|
68686
68689
|
this.validateKeyValuesForType(keys, keyType);
|
|
68687
|
-
this.validateMappingTypes(mappings);
|
|
68688
68690
|
this.validateUniqueKeys(keys, keyType);
|
|
68689
68691
|
this.validateNoMissingKeys(mappings);
|
|
68690
|
-
this.validateNoMissingText(mappings);
|
|
68691
68692
|
}
|
|
68692
68693
|
validateKeyValuesForType(keys, keyType) {
|
|
68693
68694
|
// Ignore undefined keys, because validateNoMissingKeys covers that case.
|
|
@@ -68697,10 +68698,6 @@ img.ProseMirror-separator {
|
|
|
68697
68698
|
&& resolveKeyWithType(key, keyType) === undefined);
|
|
68698
68699
|
this.setConditionValue('invalidMappingKeyValueForType', invalid);
|
|
68699
68700
|
}
|
|
68700
|
-
validateMappingTypes(mappings) {
|
|
68701
|
-
const valid = mappings.every(mapping => this.supportedMappingElements.some(mappingClass => mapping instanceof mappingClass));
|
|
68702
|
-
this.setConditionValue('unsupportedMappingType', !valid);
|
|
68703
|
-
}
|
|
68704
68701
|
validateUniqueKeys(keys, keyType) {
|
|
68705
68702
|
const typedKeys = keys.map(x => resolveKeyWithType(x, keyType));
|
|
68706
68703
|
const invalid = new Set(typedKeys).size !== typedKeys.length;
|
|
@@ -68710,19 +68707,37 @@ img.ProseMirror-separator {
|
|
|
68710
68707
|
const invalid = mappings.some(mapping => mapping.key === undefined);
|
|
68711
68708
|
this.setConditionValue('missingKeyValue', invalid);
|
|
68712
68709
|
}
|
|
68713
|
-
validateNoMissingText(mappings) {
|
|
68714
|
-
const invalid = mappings.some(mapping => mapping.text === undefined);
|
|
68715
|
-
this.setConditionValue('missingTextValue', invalid);
|
|
68716
|
-
}
|
|
68717
68710
|
}
|
|
68718
68711
|
|
|
68719
|
-
const enumTextValidityFlagNames = [
|
|
68712
|
+
const enumTextValidityFlagNames = [
|
|
68713
|
+
...enumBaseValidityFlagNames,
|
|
68714
|
+
'unsupportedMappingType',
|
|
68715
|
+
'missingTextValue'
|
|
68716
|
+
];
|
|
68720
68717
|
/**
|
|
68721
68718
|
* Validator for TableColumnEnumText
|
|
68722
68719
|
*/
|
|
68723
68720
|
class TableColumnEnumTextValidator extends TableColumnEnumBaseValidator {
|
|
68724
68721
|
constructor(columnInternals) {
|
|
68725
|
-
super(columnInternals, enumTextValidityFlagNames
|
|
68722
|
+
super(columnInternals, enumTextValidityFlagNames);
|
|
68723
|
+
}
|
|
68724
|
+
static isSupportedMappingElement(mapping) {
|
|
68725
|
+
return mapping instanceof MappingText;
|
|
68726
|
+
}
|
|
68727
|
+
validate(mappings, keyType) {
|
|
68728
|
+
super.validate(mappings, keyType);
|
|
68729
|
+
this.validateMappingTypes(mappings);
|
|
68730
|
+
this.validateNoMissingText(mappings);
|
|
68731
|
+
}
|
|
68732
|
+
validateNoMissingText(mappings) {
|
|
68733
|
+
const invalid = mappings
|
|
68734
|
+
.filter(TableColumnEnumTextValidator.isSupportedMappingElement)
|
|
68735
|
+
.some(mapping => mapping.text === undefined);
|
|
68736
|
+
this.setConditionValue('missingTextValue', invalid);
|
|
68737
|
+
}
|
|
68738
|
+
validateMappingTypes(mappings) {
|
|
68739
|
+
const valid = mappings.every(TableColumnEnumTextValidator.isSupportedMappingElement);
|
|
68740
|
+
this.setConditionValue('unsupportedMappingType', !valid);
|
|
68726
68741
|
}
|
|
68727
68742
|
}
|
|
68728
68743
|
|
|
@@ -69180,29 +69195,45 @@ img.ProseMirror-separator {
|
|
|
69180
69195
|
|
|
69181
69196
|
const iconValidityFlagNames = [
|
|
69182
69197
|
...enumBaseValidityFlagNames,
|
|
69183
|
-
'
|
|
69198
|
+
'unsupportedMappingType',
|
|
69199
|
+
'invalidIconName',
|
|
69200
|
+
'missingTextValue'
|
|
69184
69201
|
];
|
|
69185
69202
|
/**
|
|
69186
69203
|
* Validator for TableColumnIcon
|
|
69187
69204
|
*/
|
|
69188
69205
|
class TableColumnIconValidator extends TableColumnEnumBaseValidator {
|
|
69189
69206
|
constructor(columnInternals) {
|
|
69190
|
-
super(columnInternals, iconValidityFlagNames
|
|
69191
|
-
|
|
69192
|
-
|
|
69193
|
-
|
|
69207
|
+
super(columnInternals, iconValidityFlagNames);
|
|
69208
|
+
}
|
|
69209
|
+
static isIconMappingElement(mapping) {
|
|
69210
|
+
return mapping instanceof MappingIcon;
|
|
69211
|
+
}
|
|
69212
|
+
static isSupportedMappingElement(mapping) {
|
|
69213
|
+
return (mapping instanceof MappingIcon || mapping instanceof MappingSpinner);
|
|
69194
69214
|
}
|
|
69195
69215
|
validate(mappings, keyType) {
|
|
69196
69216
|
super.validate(mappings, keyType);
|
|
69217
|
+
this.validateMappingTypes(mappings);
|
|
69197
69218
|
this.validateIconNames(mappings);
|
|
69219
|
+
this.validateNoMissingText(mappings);
|
|
69198
69220
|
}
|
|
69199
69221
|
validateIconNames(mappings) {
|
|
69200
|
-
const isMappingIcon = (mapping) => mapping instanceof MappingIcon;
|
|
69201
69222
|
const invalid = mappings
|
|
69202
|
-
.filter(
|
|
69223
|
+
.filter(TableColumnIconValidator.isIconMappingElement)
|
|
69203
69224
|
.some(mappingIcon => mappingIcon.resolvedIcon === undefined);
|
|
69204
69225
|
this.setConditionValue('invalidIconName', invalid);
|
|
69205
69226
|
}
|
|
69227
|
+
validateNoMissingText(mappings) {
|
|
69228
|
+
const invalid = mappings
|
|
69229
|
+
.filter(TableColumnIconValidator.isSupportedMappingElement)
|
|
69230
|
+
.some(mapping => mapping.text === undefined);
|
|
69231
|
+
this.setConditionValue('missingTextValue', invalid);
|
|
69232
|
+
}
|
|
69233
|
+
validateMappingTypes(mappings) {
|
|
69234
|
+
const valid = mappings.every(TableColumnIconValidator.isSupportedMappingElement);
|
|
69235
|
+
this.setConditionValue('unsupportedMappingType', !valid);
|
|
69236
|
+
}
|
|
69206
69237
|
}
|
|
69207
69238
|
|
|
69208
69239
|
const styles$8 = css `
|