@ni/nimble-components 20.14.2 → 20.14.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 +69 -29
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +3271 -3265
- package/dist/all-components-bundle.min.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/rich-text-mention/base/view/index.d.ts +27 -0
- package/dist/esm/rich-text-mention/base/view/index.js +28 -0
- package/dist/esm/rich-text-mention/base/view/index.js.map +1 -0
- package/dist/esm/rich-text-mention/users/view/index.d.ts +7 -0
- package/dist/esm/rich-text-mention/users/view/index.js +19 -0
- package/dist/esm/rich-text-mention/users/view/index.js.map +1 -0
- package/dist/esm/rich-text-mention/users/view/styles.d.ts +1 -0
- package/dist/esm/rich-text-mention/users/view/styles.js +31 -0
- package/dist/esm/rich-text-mention/users/view/styles.js.map +1 -0
- package/dist/esm/rich-text-mention/users/view/template.d.ts +2 -0
- package/dist/esm/rich-text-mention/users/view/template.js +9 -0
- package/dist/esm/rich-text-mention/users/view/template.js.map +1 -0
- package/dist/esm/rich-text-mention/users/view/testing/rich-text-mention-users-view.pageobject.d.ts +9 -0
- package/dist/esm/rich-text-mention/users/view/testing/rich-text-mention-users-view.pageobject.js +13 -0
- package/dist/esm/rich-text-mention/users/view/testing/rich-text-mention-users-view.pageobject.js.map +1 -0
- 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/dist/esm/theme-provider/design-token-comments.js +9 -1
- package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
- package/dist/esm/theme-provider/design-token-names.js +9 -1
- package/dist/esm/theme-provider/design-token-names.js.map +1 -1
- package/dist/esm/theme-provider/design-tokens.d.ts +1 -0
- package/dist/esm/theme-provider/design-tokens.js +1 -0
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/tokens-internal.scss +48 -0
- package/dist/tokens.scss +24 -0
- 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 Wed, 15 Nov 2023 16:37:32 GMT
|
|
16302
16302
|
*/
|
|
16303
16303
|
|
|
16304
16304
|
const Information100DarkUi = "#a46eff";
|
|
@@ -16647,7 +16647,15 @@
|
|
|
16647
16647
|
elevation1BoxShadow: 'elevation-1-box-shadow',
|
|
16648
16648
|
elevation2BoxShadow: 'elevation-2-box-shadow',
|
|
16649
16649
|
elevation3BoxShadow: 'elevation-3-box-shadow',
|
|
16650
|
-
graphGridlineColor: 'graph-gridline-color'
|
|
16650
|
+
graphGridlineColor: 'graph-gridline-color',
|
|
16651
|
+
mentionFont: 'mention-font',
|
|
16652
|
+
mentionFontColor: 'mention-font-color',
|
|
16653
|
+
mentionDisabledFontColor: 'mention-disabled-font-color',
|
|
16654
|
+
mentionFontFamily: 'mention-font-family',
|
|
16655
|
+
mentionFontSize: 'mention-font-size',
|
|
16656
|
+
mentionFontWeight: 'mention-font-weight',
|
|
16657
|
+
mentionFontLineHeight: 'mention-font-line-height',
|
|
16658
|
+
mentionFallbackFontFamily: 'mention-fallback-font-family'
|
|
16651
16659
|
};
|
|
16652
16660
|
const prefix = 'ni-nimble';
|
|
16653
16661
|
const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
@@ -16916,6 +16924,7 @@
|
|
|
16916
16924
|
const [tooltipCaptionFont, tooltipCaptionFontColor, tooltipCaptionDisabledFontColor, tooltipCaptionFontFamily, tooltipCaptionFontWeight, tooltipCaptionFontSize, tooltipCaptionFontLineHeight, tooltipCaptionFallbackFontFamily] = createFontTokens(tokenNames.tooltipCaptionFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), TooltipCaptionFamily, TooltipCaptionWeight, TooltipCaptionSize, TooltipCaptionLineHeight, TooltipCaptionFallbackFontFamily);
|
|
16917
16925
|
const [errorTextFont, errorTextFontColor, errorTextDisabledFontColor, errorTextFontFamily, errorTextFontWeight, errorTextFontSize, errorTextFontLineHeight, errorTextFallbackFontFamily] = createFontTokens(tokenNames.errorTextFont, (element) => getFailColorForTheme(element), (element) => hexToRgbaCssColor(getFailColorForTheme(element), 0.3), ErrorLightUiFamily, ErrorLightUiWeight, ErrorLightUiSize, TooltipCaptionLineHeight, ErrorLightUiFallbackFontFamily);
|
|
16918
16926
|
const [tableHeaderFont, tableHeaderFontColor, tableHeaderDisabledFontColor, tableHeaderFontFamily, tableHeaderFontWeight, tableHeaderFontSize, tableHeaderFontLineHeight, tableHeaderFallbackFontFamily] = createFontTokens(tokenNames.tableHeaderFont, (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.6), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), GridHeaderFamily, GridHeaderWeight, GridHeaderSize, TooltipCaptionLineHeight, GridHeaderFallbackFontFamily);
|
|
16927
|
+
createFontTokens(tokenNames.mentionFont, (element) => getColorForTheme(element, DigitalGreenDark, PowerGreen, PowerGreen), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), BodyFamily, BodyEmphasizedWeight, BodySize, BodyLineHeight, BodyFallbackFontFamily);
|
|
16919
16928
|
// Font Transform Tokens
|
|
16920
16929
|
const groupHeaderTextTransform = DesignToken.create(styleNameFromTokenName(tokenNames.groupHeaderTextTransform)).withDefault('uppercase');
|
|
16921
16930
|
// Animation Tokens
|
|
@@ -24107,9 +24116,6 @@
|
|
|
24107
24116
|
__decorate$1([
|
|
24108
24117
|
attr()
|
|
24109
24118
|
], Mapping$1.prototype, "key", void 0);
|
|
24110
|
-
__decorate$1([
|
|
24111
|
-
attr()
|
|
24112
|
-
], Mapping$1.prototype, "text", void 0);
|
|
24113
24119
|
|
|
24114
24120
|
const template$n = html `<template slot="mapping"></template>`;
|
|
24115
24121
|
|
|
@@ -24120,6 +24126,9 @@
|
|
|
24120
24126
|
*/
|
|
24121
24127
|
class MappingText extends Mapping$1 {
|
|
24122
24128
|
}
|
|
24129
|
+
__decorate$1([
|
|
24130
|
+
attr()
|
|
24131
|
+
], MappingText.prototype, "text", void 0);
|
|
24123
24132
|
const textMapping = MappingText.compose({
|
|
24124
24133
|
baseName: 'mapping-text',
|
|
24125
24134
|
template: template$n
|
|
@@ -24178,6 +24187,9 @@
|
|
|
24178
24187
|
__decorate$1([
|
|
24179
24188
|
attr()
|
|
24180
24189
|
], MappingIcon.prototype, "severity", void 0);
|
|
24190
|
+
__decorate$1([
|
|
24191
|
+
attr()
|
|
24192
|
+
], MappingIcon.prototype, "text", void 0);
|
|
24181
24193
|
__decorate$1([
|
|
24182
24194
|
observable
|
|
24183
24195
|
], MappingIcon.prototype, "resolvedIcon", void 0);
|
|
@@ -24195,6 +24207,9 @@
|
|
|
24195
24207
|
*/
|
|
24196
24208
|
class MappingSpinner extends Mapping$1 {
|
|
24197
24209
|
}
|
|
24210
|
+
__decorate$1([
|
|
24211
|
+
attr()
|
|
24212
|
+
], MappingSpinner.prototype, "text", void 0);
|
|
24198
24213
|
const spinnerMapping = MappingSpinner.compose({
|
|
24199
24214
|
baseName: 'mapping-spinner',
|
|
24200
24215
|
template: template$n
|
|
@@ -68658,27 +68673,22 @@ img.ProseMirror-separator {
|
|
|
68658
68673
|
|
|
68659
68674
|
const enumBaseValidityFlagNames = [
|
|
68660
68675
|
'invalidMappingKeyValueForType',
|
|
68661
|
-
'unsupportedMappingType',
|
|
68662
68676
|
'duplicateMappingKey',
|
|
68663
|
-
'missingKeyValue'
|
|
68664
|
-
'missingTextValue'
|
|
68677
|
+
'missingKeyValue'
|
|
68665
68678
|
];
|
|
68666
68679
|
/**
|
|
68667
68680
|
* Validator for TableColumnEnumText. Implementations MUST include enumBaseValidityFlagNames in validity flag names set.
|
|
68668
68681
|
*/
|
|
68669
68682
|
class TableColumnEnumBaseValidator extends ColumnValidator {
|
|
68670
|
-
constructor(columnInternals, configValidityKeys
|
|
68683
|
+
constructor(columnInternals, configValidityKeys) {
|
|
68671
68684
|
super(columnInternals, configValidityKeys);
|
|
68672
|
-
this.supportedMappingElements = supportedMappingElements;
|
|
68673
68685
|
}
|
|
68674
68686
|
validate(mappings, keyType) {
|
|
68675
68687
|
this.untrackAll();
|
|
68676
68688
|
const keys = mappings.map(mapping => mapping.key);
|
|
68677
68689
|
this.validateKeyValuesForType(keys, keyType);
|
|
68678
|
-
this.validateMappingTypes(mappings);
|
|
68679
68690
|
this.validateUniqueKeys(keys, keyType);
|
|
68680
68691
|
this.validateNoMissingKeys(mappings);
|
|
68681
|
-
this.validateNoMissingText(mappings);
|
|
68682
68692
|
}
|
|
68683
68693
|
validateKeyValuesForType(keys, keyType) {
|
|
68684
68694
|
// Ignore undefined keys, because validateNoMissingKeys covers that case.
|
|
@@ -68688,10 +68698,6 @@ img.ProseMirror-separator {
|
|
|
68688
68698
|
&& resolveKeyWithType(key, keyType) === undefined);
|
|
68689
68699
|
this.setConditionValue('invalidMappingKeyValueForType', invalid);
|
|
68690
68700
|
}
|
|
68691
|
-
validateMappingTypes(mappings) {
|
|
68692
|
-
const valid = mappings.every(mapping => this.supportedMappingElements.some(mappingClass => mapping instanceof mappingClass));
|
|
68693
|
-
this.setConditionValue('unsupportedMappingType', !valid);
|
|
68694
|
-
}
|
|
68695
68701
|
validateUniqueKeys(keys, keyType) {
|
|
68696
68702
|
const typedKeys = keys.map(x => resolveKeyWithType(x, keyType));
|
|
68697
68703
|
const invalid = new Set(typedKeys).size !== typedKeys.length;
|
|
@@ -68701,19 +68707,37 @@ img.ProseMirror-separator {
|
|
|
68701
68707
|
const invalid = mappings.some(mapping => mapping.key === undefined);
|
|
68702
68708
|
this.setConditionValue('missingKeyValue', invalid);
|
|
68703
68709
|
}
|
|
68704
|
-
validateNoMissingText(mappings) {
|
|
68705
|
-
const invalid = mappings.some(mapping => mapping.text === undefined);
|
|
68706
|
-
this.setConditionValue('missingTextValue', invalid);
|
|
68707
|
-
}
|
|
68708
68710
|
}
|
|
68709
68711
|
|
|
68710
|
-
const enumTextValidityFlagNames = [
|
|
68712
|
+
const enumTextValidityFlagNames = [
|
|
68713
|
+
...enumBaseValidityFlagNames,
|
|
68714
|
+
'unsupportedMappingType',
|
|
68715
|
+
'missingTextValue'
|
|
68716
|
+
];
|
|
68711
68717
|
/**
|
|
68712
68718
|
* Validator for TableColumnEnumText
|
|
68713
68719
|
*/
|
|
68714
68720
|
class TableColumnEnumTextValidator extends TableColumnEnumBaseValidator {
|
|
68715
68721
|
constructor(columnInternals) {
|
|
68716
|
-
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);
|
|
68717
68741
|
}
|
|
68718
68742
|
}
|
|
68719
68743
|
|
|
@@ -69171,29 +69195,45 @@ img.ProseMirror-separator {
|
|
|
69171
69195
|
|
|
69172
69196
|
const iconValidityFlagNames = [
|
|
69173
69197
|
...enumBaseValidityFlagNames,
|
|
69174
|
-
'
|
|
69198
|
+
'unsupportedMappingType',
|
|
69199
|
+
'invalidIconName',
|
|
69200
|
+
'missingTextValue'
|
|
69175
69201
|
];
|
|
69176
69202
|
/**
|
|
69177
69203
|
* Validator for TableColumnIcon
|
|
69178
69204
|
*/
|
|
69179
69205
|
class TableColumnIconValidator extends TableColumnEnumBaseValidator {
|
|
69180
69206
|
constructor(columnInternals) {
|
|
69181
|
-
super(columnInternals, iconValidityFlagNames
|
|
69182
|
-
|
|
69183
|
-
|
|
69184
|
-
|
|
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);
|
|
69185
69214
|
}
|
|
69186
69215
|
validate(mappings, keyType) {
|
|
69187
69216
|
super.validate(mappings, keyType);
|
|
69217
|
+
this.validateMappingTypes(mappings);
|
|
69188
69218
|
this.validateIconNames(mappings);
|
|
69219
|
+
this.validateNoMissingText(mappings);
|
|
69189
69220
|
}
|
|
69190
69221
|
validateIconNames(mappings) {
|
|
69191
|
-
const isMappingIcon = (mapping) => mapping instanceof MappingIcon;
|
|
69192
69222
|
const invalid = mappings
|
|
69193
|
-
.filter(
|
|
69223
|
+
.filter(TableColumnIconValidator.isIconMappingElement)
|
|
69194
69224
|
.some(mappingIcon => mappingIcon.resolvedIcon === undefined);
|
|
69195
69225
|
this.setConditionValue('invalidIconName', invalid);
|
|
69196
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
|
+
}
|
|
69197
69237
|
}
|
|
69198
69238
|
|
|
69199
69239
|
const styles$8 = css `
|