@ni/nimble-components 25.1.1 → 27.0.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.
Files changed (49) hide show
  1. package/dist/all-components-bundle.js +203 -363
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +3467 -3480
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/all-components.d.ts +0 -1
  6. package/dist/esm/all-components.js +0 -1
  7. package/dist/esm/all-components.js.map +1 -1
  8. package/dist/esm/mapping/text/index.d.ts +1 -1
  9. package/dist/esm/mapping/text/index.js +1 -1
  10. package/dist/esm/mapping/text/index.js.map +1 -1
  11. package/dist/esm/src/all-components.d.ts +0 -1
  12. package/dist/esm/src/mapping/text/index.d.ts +1 -1
  13. package/dist/esm/src/table-column/enum-base/index.d.ts +1 -1
  14. package/dist/esm/src/table-column/enum-base/models/table-column-enum-base-validator.d.ts +1 -1
  15. package/dist/esm/src/theme-provider/design-token-comments.d.ts +1 -1
  16. package/dist/esm/src/theme-provider/design-tokens.d.ts +23 -23
  17. package/dist/esm/table-column/enum-base/index.d.ts +1 -1
  18. package/dist/esm/table-column/enum-base/index.js +1 -1
  19. package/dist/esm/table-column/enum-base/index.js.map +1 -1
  20. package/dist/esm/table-column/enum-base/models/table-column-enum-base-validator.d.ts +1 -1
  21. package/dist/esm/table-column/enum-base/models/table-column-enum-base-validator.js +1 -1
  22. package/dist/esm/table-column/enum-base/models/table-column-enum-base-validator.js.map +1 -1
  23. package/dist/esm/theme-provider/design-token-comments.d.ts +1 -1
  24. package/dist/esm/theme-provider/design-token-comments.js +1 -24
  25. package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
  26. package/dist/esm/theme-provider/design-token-names.js +1 -24
  27. package/dist/esm/theme-provider/design-token-names.js.map +1 -1
  28. package/dist/esm/theme-provider/design-tokens.d.ts +23 -23
  29. package/dist/esm/theme-provider/design-tokens.js +32 -55
  30. package/dist/esm/theme-provider/design-tokens.js.map +1 -1
  31. package/dist/tokens-internal.scss +0 -138
  32. package/dist/tokens.scss +0 -69
  33. package/package.json +1 -1
  34. package/dist/esm/src/table-column/enum-text/cell-view/index.d.ts +0 -14
  35. package/dist/esm/src/table-column/enum-text/group-header-view/index.d.ts +0 -15
  36. package/dist/esm/src/table-column/enum-text/index.d.ts +0 -40
  37. package/dist/esm/src/table-column/enum-text/models/table-column-enum-text-validator.d.ts +0 -15
  38. package/dist/esm/table-column/enum-text/cell-view/index.d.ts +0 -14
  39. package/dist/esm/table-column/enum-text/cell-view/index.js +0 -29
  40. package/dist/esm/table-column/enum-text/cell-view/index.js.map +0 -1
  41. package/dist/esm/table-column/enum-text/group-header-view/index.d.ts +0 -15
  42. package/dist/esm/table-column/enum-text/group-header-view/index.js +0 -26
  43. package/dist/esm/table-column/enum-text/group-header-view/index.js.map +0 -1
  44. package/dist/esm/table-column/enum-text/index.d.ts +0 -40
  45. package/dist/esm/table-column/enum-text/index.js +0 -50
  46. package/dist/esm/table-column/enum-text/index.js.map +0 -1
  47. package/dist/esm/table-column/enum-text/models/table-column-enum-text-validator.d.ts +0 -15
  48. package/dist/esm/table-column/enum-text/models/table-column-enum-text-validator.js +0 -34
  49. package/dist/esm/table-column/enum-text/models/table-column-enum-text-validator.js.map +0 -1
@@ -44,7 +44,6 @@ import './table';
44
44
  import './table-column/anchor';
45
45
  import './table-column/date-text';
46
46
  import './table-column/duration-text';
47
- import './table-column/enum-text';
48
47
  import './table-column/number-text';
49
48
  import './table-column/icon';
50
49
  import './table-column/text';
@@ -44,7 +44,6 @@ import './table';
44
44
  import './table-column/anchor';
45
45
  import './table-column/date-text';
46
46
  import './table-column/duration-text';
47
- import './table-column/enum-text';
48
47
  import './table-column/number-text';
49
48
  import './table-column/icon';
50
49
  import './table-column/text';
@@ -1 +1 @@
1
- {"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,U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AC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC;AACnB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC","sourcesContent":["/**\n * Import of all the web components available in Nimble.\n * Production applications are encouraged to import only components\n * that are required instead of leveraging this file.\n */\n\nimport './anchor';\nimport './anchor-button';\nimport './anchor-menu-item';\nimport './anchor-tab';\nimport './anchor-tabs';\nimport './anchor-tree-item';\nimport './anchored-region';\nimport './banner';\nimport './breadcrumb';\nimport './breadcrumb-item';\nimport './button';\nimport './card';\nimport './card-button';\nimport './checkbox';\nimport './combobox';\nimport './dialog';\nimport './drawer';\nimport './icons/all-icons';\nimport './label-provider/core';\nimport './label-provider/table';\nimport './list-option';\nimport './mapping/text';\nimport './mapping/icon';\nimport './mapping/spinner';\nimport './menu';\nimport './menu-button';\nimport './menu-item';\nimport './number-field';\nimport './radio';\nimport './radio-group';\nimport './rich-text/editor';\nimport './rich-text/viewer';\nimport './select';\nimport './spinner';\nimport './switch';\nimport './tab';\nimport './tab-panel';\nimport './table';\nimport './table-column/anchor';\nimport './table-column/date-text';\nimport './table-column/duration-text';\nimport './table-column/enum-text';\nimport './table-column/number-text';\nimport './table-column/icon';\nimport './table-column/text';\nimport './tabs';\nimport './tabs-toolbar';\nimport './text-area';\nimport './text-field';\nimport './theme-provider';\nimport './toggle-button';\nimport './toolbar';\nimport './tooltip';\nimport './tree-item';\nimport './tree-view';\nimport './unit/byte';\nimport './unit/volt';\nimport './wafer-map';\n"]}
1
+ {"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,UAAU,CAAC;AAClB,OAAO,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,cAAc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nB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC","sourcesContent":["/**\n * Import of all the web components available in Nimble.\n * Production applications are encouraged to import only components\n * that are required instead of leveraging this file.\n */\n\nimport './anchor';\nimport './anchor-button';\nimport './anchor-menu-item';\nimport './anchor-tab';\nimport './anchor-tabs';\nimport './anchor-tree-item';\nimport './anchored-region';\nimport './banner';\nimport './breadcrumb';\nimport './breadcrumb-item';\nimport './button';\nimport './card';\nimport './card-button';\nimport './checkbox';\nimport './combobox';\nimport './dialog';\nimport './drawer';\nimport './icons/all-icons';\nimport './label-provider/core';\nimport './label-provider/table';\nimport './list-option';\nimport './mapping/text';\nimport './mapping/icon';\nimport './mapping/spinner';\nimport './menu';\nimport './menu-button';\nimport './menu-item';\nimport './number-field';\nimport './radio';\nimport './radio-group';\nimport './rich-text/editor';\nimport './rich-text/viewer';\nimport './select';\nimport './spinner';\nimport './switch';\nimport './tab';\nimport './tab-panel';\nimport './table';\nimport './table-column/anchor';\nimport './table-column/date-text';\nimport './table-column/duration-text';\nimport './table-column/number-text';\nimport './table-column/icon';\nimport './table-column/text';\nimport './tabs';\nimport './tabs-toolbar';\nimport './text-area';\nimport './text-field';\nimport './theme-provider';\nimport './toggle-button';\nimport './toolbar';\nimport './tooltip';\nimport './tree-item';\nimport './tree-view';\nimport './unit/byte';\nimport './unit/volt';\nimport './wafer-map';\n"]}
@@ -7,7 +7,7 @@ declare global {
7
7
  }
8
8
  /**
9
9
  * Defines a mapping from one data value ('key' property) to display text ('text' property).
10
- * One or more may be added as children of a nimble-table-column-enum-text element to define
10
+ * One or more may be added as children of a nimble-table-column-icon element to define
11
11
  * how a specific data value should be displayed as text in that column's cells.
12
12
  */
13
13
  export declare class MappingText extends Mapping<MappingKey> {
@@ -5,7 +5,7 @@ import { Mapping } from '../base';
5
5
  import { template } from '../base/template';
6
6
  /**
7
7
  * Defines a mapping from one data value ('key' property) to display text ('text' property).
8
- * One or more may be added as children of a nimble-table-column-enum-text element to define
8
+ * One or more may be added as children of a nimble-table-column-icon element to define
9
9
  * how a specific data value should be displayed as text in that column's cells.
10
10
  */
11
11
  export class MappingText extends Mapping {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mapping/text/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAS5C;;;;GAIG;AACH,MAAM,OAAO,WAAY,SAAQ,OAAmB;CAGnD;AADU;IADN,IAAI,EAAE;yCACc;AAGzB,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC;IACpC,QAAQ,EAAE,cAAc;IACxB,QAAQ;CACX,CAAC,CAAC;AACH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC","sourcesContent":["import { DesignSystem } from '@microsoft/fast-foundation';\nimport { attr } from '@microsoft/fast-element';\nimport { Mapping } from '../base';\nimport { template } from '../base/template';\nimport type { MappingKey } from '../base/types';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-mapping-text': MappingText;\n }\n}\n\n/**\n * Defines a mapping from one data value ('key' property) to display text ('text' property).\n * One or more may be added as children of a nimble-table-column-enum-text element to define\n * how a specific data value should be displayed as text in that column's cells.\n */\nexport class MappingText extends Mapping<MappingKey> {\n @attr()\n public text?: string;\n}\n\nconst textMapping = MappingText.compose({\n baseName: 'mapping-text',\n template\n});\nDesignSystem.getOrCreate().withPrefix('nimble').register(textMapping());\nexport const mappingTextTag = 'nimble-mapping-text';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mapping/text/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAS5C;;;;GAIG;AACH,MAAM,OAAO,WAAY,SAAQ,OAAmB;CAGnD;AADU;IADN,IAAI,EAAE;yCACc;AAGzB,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC;IACpC,QAAQ,EAAE,cAAc;IACxB,QAAQ;CACX,CAAC,CAAC;AACH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC","sourcesContent":["import { DesignSystem } from '@microsoft/fast-foundation';\nimport { attr } from '@microsoft/fast-element';\nimport { Mapping } from '../base';\nimport { template } from '../base/template';\nimport type { MappingKey } from '../base/types';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-mapping-text': MappingText;\n }\n}\n\n/**\n * Defines a mapping from one data value ('key' property) to display text ('text' property).\n * One or more may be added as children of a nimble-table-column-icon element to define\n * how a specific data value should be displayed as text in that column's cells.\n */\nexport class MappingText extends Mapping<MappingKey> {\n @attr()\n public text?: string;\n}\n\nconst textMapping = MappingText.compose({\n baseName: 'mapping-text',\n template\n});\nDesignSystem.getOrCreate().withPrefix('nimble').register(textMapping());\nexport const mappingTextTag = 'nimble-mapping-text';\n"]}
@@ -44,7 +44,6 @@ import './table';
44
44
  import './table-column/anchor';
45
45
  import './table-column/date-text';
46
46
  import './table-column/duration-text';
47
- import './table-column/enum-text';
48
47
  import './table-column/number-text';
49
48
  import './table-column/icon';
50
49
  import './table-column/text';
@@ -7,7 +7,7 @@ declare global {
7
7
  }
8
8
  /**
9
9
  * Defines a mapping from one data value ('key' property) to display text ('text' property).
10
- * One or more may be added as children of a nimble-table-column-enum-text element to define
10
+ * One or more may be added as children of a nimble-table-column-icon element to define
11
11
  * how a specific data value should be displayed as text in that column's cells.
12
12
  */
13
13
  export declare class MappingText extends Mapping<MappingKey> {
@@ -13,7 +13,7 @@ export interface TableColumnEnumColumnConfig extends TableColumnTextBaseColumnCo
13
13
  mappingConfigs: MappingConfigs;
14
14
  }
15
15
  /**
16
- * Base class for table columns that map values to content (e.g. nimble-table-column-enum-text and nimble-table-column-icon)
16
+ * Base class for table columns that map values to content
17
17
  */
18
18
  export declare abstract class TableColumnEnumBase<TColumnConfig extends TableColumnEnumColumnConfig, TEnumValidator extends TableColumnEnumBaseValidator<[]>> extends TableColumn<TColumnConfig, TEnumValidator> implements Subscriber {
19
19
  /** @internal */
@@ -3,7 +3,7 @@ import type { Mapping } from '../../../mapping/base';
3
3
  import type { MappingKeyType } from '../types';
4
4
  export declare const enumBaseValidityFlagNames: readonly ["invalidMappingKeyValueForType", "duplicateMappingKey", "missingKeyValue"];
5
5
  /**
6
- * Validator for TableColumnEnumText. Implementations MUST include enumBaseValidityFlagNames in validity flag names set.
6
+ * Validator base class for table columns containing mappings. Implementations MUST include enumBaseValidityFlagNames in validity flag names set.
7
7
  */
8
8
  export declare abstract class TableColumnEnumBaseValidator<ValidityFlagNames extends readonly string[]> extends ColumnValidator<typeof enumBaseValidityFlagNames | ValidityFlagNames> {
9
9
  constructor(configValidityKeys: ValidityFlagNames);
@@ -1,6 +1,6 @@
1
1
  import type * as TokensNamespace from './design-tokens';
2
2
  type TokenName = keyof typeof TokensNamespace;
3
3
  export declare const comments: {
4
- readonly [key in TokenName]: string | null;
4
+ readonly [key in TokenName]: string;
5
5
  };
6
6
  export {};
@@ -54,29 +54,29 @@ export declare const spinnerLargeHeight: CSSDesignToken<string>;
54
54
  export declare const elevation1BoxShadow: CSSDesignToken<string>;
55
55
  export declare const elevation2BoxShadow: CSSDesignToken<string>;
56
56
  export declare const elevation3BoxShadow: CSSDesignToken<string>;
57
- export declare const headlineFont: CSSDesignToken<string>, headlineFontColor: CSSDesignToken<string>, headlineDisabledFontColor: CSSDesignToken<string>, headlineFontFamily: CSSDesignToken<string>, headlineFontWeight: CSSDesignToken<string>, headlineFontSize: CSSDesignToken<string>, headlineFontLineHeight: CSSDesignToken<string>, headlineFallbackFontFamily: CSSDesignToken<string>;
58
- export declare const headlinePlus1Font: CSSDesignToken<string>, headlinePlus1FontColor: CSSDesignToken<string>, headlinePlus1DisabledFontColor: CSSDesignToken<string>, headlinePlus1FontFamily: CSSDesignToken<string>, headlinePlus1FontWeight: CSSDesignToken<string>, headlinePlus1FontSize: CSSDesignToken<string>, headlinePlus1FontLineHeight: CSSDesignToken<string>, headlinePlus1FallbackFontFamily: CSSDesignToken<string>;
59
- export declare const titlePlus2Font: CSSDesignToken<string>, titlePlus2FontColor: CSSDesignToken<string>, titlePlus2DisabledFontColor: CSSDesignToken<string>, titlePlus2FontFamily: CSSDesignToken<string>, titlePlus2FontWeight: CSSDesignToken<string>, titlePlus2FontSize: CSSDesignToken<string>, titlePlus2FontLineHeight: CSSDesignToken<string>, titlePlus2FallbackFontFamily: CSSDesignToken<string>;
60
- export declare const titlePlus1Font: CSSDesignToken<string>, titlePlus1FontColor: CSSDesignToken<string>, titlePlus1DisabledFontColor: CSSDesignToken<string>, titlePlus1FontFamily: CSSDesignToken<string>, titlePlus1FontWeight: CSSDesignToken<string>, titlePlus1FontSize: CSSDesignToken<string>, titlePlus1FontLineHeight: CSSDesignToken<string>, titlePlus1FallbackFontFamily: CSSDesignToken<string>;
61
- export declare const titleFont: CSSDesignToken<string>, titleFontColor: CSSDesignToken<string>, titleDisabledFontColor: CSSDesignToken<string>, titleFontFamily: CSSDesignToken<string>, titleFontWeight: CSSDesignToken<string>, titleFontSize: CSSDesignToken<string>, titleFontLineHeight: CSSDesignToken<string>, titleFallbackFontFamily: CSSDesignToken<string>;
62
- export declare const subtitlePlus1Font: CSSDesignToken<string>, subtitlePlus1FontColor: CSSDesignToken<string>, subtitlePlus1DisabledFontColor: CSSDesignToken<string>, subtitlePlus1FontFamily: CSSDesignToken<string>, subtitlePlus1FontWeight: CSSDesignToken<string>, subtitlePlus1FontSize: CSSDesignToken<string>, subtitlePlus1FontLineHeight: CSSDesignToken<string>, subtitlePlus1FallbackFontFamily: CSSDesignToken<string>;
63
- export declare const subtitleFont: CSSDesignToken<string>, subtitleFontColor: CSSDesignToken<string>, subtitleDisabledFontColor: CSSDesignToken<string>, subtitleFontFamily: CSSDesignToken<string>, subtitleFontWeight: CSSDesignToken<string>, subtitleFontSize: CSSDesignToken<string>, subtitleFontLineHeight: CSSDesignToken<string>, subtitleFallbackFontFamily: CSSDesignToken<string>;
64
- export declare const linkFont: CSSDesignToken<string>, linkFontColor: CSSDesignToken<string>, linkDisabledFontColor: CSSDesignToken<string>, linkFontFamily: CSSDesignToken<string>, linkFontWeight: CSSDesignToken<string>, linkFontSize: CSSDesignToken<string>, linkFontLineHeight: CSSDesignToken<string>, linkFallbackFontFamily: CSSDesignToken<string>;
65
- export declare const linkActiveFont: CSSDesignToken<string>, linkActiveFontColor: CSSDesignToken<string>, linkActiveDisabledFontColor: CSSDesignToken<string>, linkActiveFontFamily: CSSDesignToken<string>, linkActiveFontWeight: CSSDesignToken<string>, linkActiveFontSize: CSSDesignToken<string>, linkActiveFontLineHeight: CSSDesignToken<string>, linkActiveFallbackFontFamily: CSSDesignToken<string>;
66
- export declare const linkProminentFont: CSSDesignToken<string>, linkProminentFontColor: CSSDesignToken<string>, linkProminentDisabledFontColor: CSSDesignToken<string>, linkProminentFontFamily: CSSDesignToken<string>, linkProminentFontWeight: CSSDesignToken<string>, linkProminentFontSize: CSSDesignToken<string>, linkProminentFontLineHeight: CSSDesignToken<string>, linkProminentFallbackFontFamily: CSSDesignToken<string>;
67
- export declare const linkActiveProminentFont: CSSDesignToken<string>, linkActiveProminentFontColor: CSSDesignToken<string>, linkActiveProminentDisabledFontColor: CSSDesignToken<string>, linkActiveProminentFontFamily: CSSDesignToken<string>, linkActiveProminentFontWeight: CSSDesignToken<string>, linkActiveProminentFontSize: CSSDesignToken<string>, linkActiveProminentFontLineHeight: CSSDesignToken<string>, linkActiveProminentFallbackFontFamily: CSSDesignToken<string>;
68
- export declare const placeholderFont: CSSDesignToken<string>, placeholderFontColor: CSSDesignToken<string>, placeholderDisabledFontColor: CSSDesignToken<string>, placeholderFontFamily: CSSDesignToken<string>, placeholderFontWeight: CSSDesignToken<string>, placeholderFontSize: CSSDesignToken<string>, placeholderFontLineHeight: CSSDesignToken<string>, placeholderFallbackFontFamily: CSSDesignToken<string>;
69
- export declare const bodyFont: CSSDesignToken<string>, bodyFontColor: CSSDesignToken<string>, bodyDisabledFontColor: CSSDesignToken<string>, bodyFontFamily: CSSDesignToken<string>, bodyFontWeight: CSSDesignToken<string>, bodyFontSize: CSSDesignToken<string>, bodyFontLineHeight: CSSDesignToken<string>, bodyFallbackFontFamily: CSSDesignToken<string>;
70
- export declare const bodyEmphasizedFont: CSSDesignToken<string>, bodyEmphasizedFontColor: CSSDesignToken<string>, bodyEmphasizedDisabledFontColor: CSSDesignToken<string>, bodyEmphasizedFontFamily: CSSDesignToken<string>, bodyEmphasizedFontWeight: CSSDesignToken<string>, bodyEmphasizedFontSize: CSSDesignToken<string>, bodyEmphasizedFontLineHeight: CSSDesignToken<string>, bodyEmphasizedFallbackFontFamily: CSSDesignToken<string>;
71
- export declare const bodyPlus1Font: CSSDesignToken<string>, bodyPlus1FontColor: CSSDesignToken<string>, bodyPlus1DisabledFontColor: CSSDesignToken<string>, bodyPlus1FontFamily: CSSDesignToken<string>, bodyPlus1FontWeight: CSSDesignToken<string>, bodyPlus1FontSize: CSSDesignToken<string>, bodyPlus1FontLineHeight: CSSDesignToken<string>, bodyPlus1FallbackFontFamily: CSSDesignToken<string>;
72
- export declare const bodyPlus1EmphasizedFont: CSSDesignToken<string>, bodyPlus1EmphasizedFontColor: CSSDesignToken<string>, bodyPlus1EmphasizedDisabledFontColor: CSSDesignToken<string>, bodyPlus1EmphasizedFontFamily: CSSDesignToken<string>, bodyPlus1EmphasizedFontWeight: CSSDesignToken<string>, bodyPlus1EmphasizedFontSize: CSSDesignToken<string>, bodyPlus1EmphasizedFontLineHeight: CSSDesignToken<string>, bodyPlus1EmphasizedFallbackFontFamily: CSSDesignToken<string>;
73
- export declare const groupHeaderFont: CSSDesignToken<string>, groupHeaderFontColor: CSSDesignToken<string>, groupHeaderDisabledFontColor: CSSDesignToken<string>, groupHeaderFontFamily: CSSDesignToken<string>, groupHeaderFontWeight: CSSDesignToken<string>, groupHeaderFontSize: CSSDesignToken<string>, groupHeaderFontLineHeight: CSSDesignToken<string>, groupHeaderFallbackFontFamily: CSSDesignToken<string>;
74
- export declare const controlLabelFont: CSSDesignToken<string>, controlLabelFontColor: CSSDesignToken<string>, controlLabelDisabledFontColor: CSSDesignToken<string>, controlLabelFontFamily: CSSDesignToken<string>, controlLabelFontWeight: CSSDesignToken<string>, controlLabelFontSize: CSSDesignToken<string>, controlLabelFontLineHeight: CSSDesignToken<string>, controlLabelFallbackFontFamily: CSSDesignToken<string>;
75
- export declare const buttonLabelFont: CSSDesignToken<string>, buttonLabelFontColor: CSSDesignToken<string>, buttonLabelDisabledFontColor: CSSDesignToken<string>, buttonLabelFontFamily: CSSDesignToken<string>, buttonLabelFontWeight: CSSDesignToken<string>, buttonLabelFontSize: CSSDesignToken<string>, buttonLabelFontLineHeight: CSSDesignToken<string>, buttonLabelFallbackFontFamily: CSSDesignToken<string>;
76
- export declare const tooltipCaptionFont: CSSDesignToken<string>, tooltipCaptionFontColor: CSSDesignToken<string>, tooltipCaptionDisabledFontColor: CSSDesignToken<string>, tooltipCaptionFontFamily: CSSDesignToken<string>, tooltipCaptionFontWeight: CSSDesignToken<string>, tooltipCaptionFontSize: CSSDesignToken<string>, tooltipCaptionFontLineHeight: CSSDesignToken<string>, tooltipCaptionFallbackFontFamily: CSSDesignToken<string>;
77
- export declare const errorTextFont: CSSDesignToken<string>, errorTextFontColor: CSSDesignToken<string>, errorTextDisabledFontColor: CSSDesignToken<string>, errorTextFontFamily: CSSDesignToken<string>, errorTextFontWeight: CSSDesignToken<string>, errorTextFontSize: CSSDesignToken<string>, errorTextFontLineHeight: CSSDesignToken<string>, errorTextFallbackFontFamily: CSSDesignToken<string>;
78
- export declare const tableHeaderFont: CSSDesignToken<string>, tableHeaderFontColor: CSSDesignToken<string>, tableHeaderDisabledFontColor: CSSDesignToken<string>, tableHeaderFontFamily: CSSDesignToken<string>, tableHeaderFontWeight: CSSDesignToken<string>, tableHeaderFontSize: CSSDesignToken<string>, tableHeaderFontLineHeight: CSSDesignToken<string>, tableHeaderFallbackFontFamily: CSSDesignToken<string>;
79
- export declare const mentionFont: CSSDesignToken<string>, mentionFontColor: CSSDesignToken<string>, mentionDisabledFontColor: CSSDesignToken<string>, mentionFontFamily: CSSDesignToken<string>, mentionFontWeight: CSSDesignToken<string>, mentionFontSize: CSSDesignToken<string>, mentionFontLineHeight: CSSDesignToken<string>, mentionFallbackFontFamily: CSSDesignToken<string>;
57
+ export declare const headlineFont: CSSDesignToken<string>, headlineFontColor: CSSDesignToken<string>, headlineDisabledFontColor: CSSDesignToken<string>, headlineFontFamily: CSSDesignToken<string>, headlineFontWeight: CSSDesignToken<string>, headlineFontSize: CSSDesignToken<string>, headlineFontLineHeight: CSSDesignToken<string>;
58
+ export declare const headlinePlus1Font: CSSDesignToken<string>, headlinePlus1FontColor: CSSDesignToken<string>, headlinePlus1DisabledFontColor: CSSDesignToken<string>, headlinePlus1FontFamily: CSSDesignToken<string>, headlinePlus1FontWeight: CSSDesignToken<string>, headlinePlus1FontSize: CSSDesignToken<string>, headlinePlus1FontLineHeight: CSSDesignToken<string>;
59
+ export declare const titlePlus2Font: CSSDesignToken<string>, titlePlus2FontColor: CSSDesignToken<string>, titlePlus2DisabledFontColor: CSSDesignToken<string>, titlePlus2FontFamily: CSSDesignToken<string>, titlePlus2FontWeight: CSSDesignToken<string>, titlePlus2FontSize: CSSDesignToken<string>, titlePlus2FontLineHeight: CSSDesignToken<string>;
60
+ export declare const titlePlus1Font: CSSDesignToken<string>, titlePlus1FontColor: CSSDesignToken<string>, titlePlus1DisabledFontColor: CSSDesignToken<string>, titlePlus1FontFamily: CSSDesignToken<string>, titlePlus1FontWeight: CSSDesignToken<string>, titlePlus1FontSize: CSSDesignToken<string>, titlePlus1FontLineHeight: CSSDesignToken<string>;
61
+ export declare const titleFont: CSSDesignToken<string>, titleFontColor: CSSDesignToken<string>, titleDisabledFontColor: CSSDesignToken<string>, titleFontFamily: CSSDesignToken<string>, titleFontWeight: CSSDesignToken<string>, titleFontSize: CSSDesignToken<string>, titleFontLineHeight: CSSDesignToken<string>;
62
+ export declare const subtitlePlus1Font: CSSDesignToken<string>, subtitlePlus1FontColor: CSSDesignToken<string>, subtitlePlus1DisabledFontColor: CSSDesignToken<string>, subtitlePlus1FontFamily: CSSDesignToken<string>, subtitlePlus1FontWeight: CSSDesignToken<string>, subtitlePlus1FontSize: CSSDesignToken<string>, subtitlePlus1FontLineHeight: CSSDesignToken<string>;
63
+ export declare const subtitleFont: CSSDesignToken<string>, subtitleFontColor: CSSDesignToken<string>, subtitleDisabledFontColor: CSSDesignToken<string>, subtitleFontFamily: CSSDesignToken<string>, subtitleFontWeight: CSSDesignToken<string>, subtitleFontSize: CSSDesignToken<string>, subtitleFontLineHeight: CSSDesignToken<string>;
64
+ export declare const linkFont: CSSDesignToken<string>, linkFontColor: CSSDesignToken<string>, linkDisabledFontColor: CSSDesignToken<string>, linkFontFamily: CSSDesignToken<string>, linkFontWeight: CSSDesignToken<string>, linkFontSize: CSSDesignToken<string>, linkFontLineHeight: CSSDesignToken<string>;
65
+ export declare const linkActiveFont: CSSDesignToken<string>, linkActiveFontColor: CSSDesignToken<string>, linkActiveDisabledFontColor: CSSDesignToken<string>, linkActiveFontFamily: CSSDesignToken<string>, linkActiveFontWeight: CSSDesignToken<string>, linkActiveFontSize: CSSDesignToken<string>, linkActiveFontLineHeight: CSSDesignToken<string>;
66
+ export declare const linkProminentFont: CSSDesignToken<string>, linkProminentFontColor: CSSDesignToken<string>, linkProminentDisabledFontColor: CSSDesignToken<string>, linkProminentFontFamily: CSSDesignToken<string>, linkProminentFontWeight: CSSDesignToken<string>, linkProminentFontSize: CSSDesignToken<string>, linkProminentFontLineHeight: CSSDesignToken<string>;
67
+ export declare const linkActiveProminentFont: CSSDesignToken<string>, linkActiveProminentFontColor: CSSDesignToken<string>, linkActiveProminentDisabledFontColor: CSSDesignToken<string>, linkActiveProminentFontFamily: CSSDesignToken<string>, linkActiveProminentFontWeight: CSSDesignToken<string>, linkActiveProminentFontSize: CSSDesignToken<string>, linkActiveProminentFontLineHeight: CSSDesignToken<string>;
68
+ export declare const placeholderFont: CSSDesignToken<string>, placeholderFontColor: CSSDesignToken<string>, placeholderDisabledFontColor: CSSDesignToken<string>, placeholderFontFamily: CSSDesignToken<string>, placeholderFontWeight: CSSDesignToken<string>, placeholderFontSize: CSSDesignToken<string>, placeholderFontLineHeight: CSSDesignToken<string>;
69
+ export declare const bodyFont: CSSDesignToken<string>, bodyFontColor: CSSDesignToken<string>, bodyDisabledFontColor: CSSDesignToken<string>, bodyFontFamily: CSSDesignToken<string>, bodyFontWeight: CSSDesignToken<string>, bodyFontSize: CSSDesignToken<string>, bodyFontLineHeight: CSSDesignToken<string>;
70
+ export declare const bodyEmphasizedFont: CSSDesignToken<string>, bodyEmphasizedFontColor: CSSDesignToken<string>, bodyEmphasizedDisabledFontColor: CSSDesignToken<string>, bodyEmphasizedFontFamily: CSSDesignToken<string>, bodyEmphasizedFontWeight: CSSDesignToken<string>, bodyEmphasizedFontSize: CSSDesignToken<string>, bodyEmphasizedFontLineHeight: CSSDesignToken<string>;
71
+ export declare const bodyPlus1Font: CSSDesignToken<string>, bodyPlus1FontColor: CSSDesignToken<string>, bodyPlus1DisabledFontColor: CSSDesignToken<string>, bodyPlus1FontFamily: CSSDesignToken<string>, bodyPlus1FontWeight: CSSDesignToken<string>, bodyPlus1FontSize: CSSDesignToken<string>, bodyPlus1FontLineHeight: CSSDesignToken<string>;
72
+ export declare const bodyPlus1EmphasizedFont: CSSDesignToken<string>, bodyPlus1EmphasizedFontColor: CSSDesignToken<string>, bodyPlus1EmphasizedDisabledFontColor: CSSDesignToken<string>, bodyPlus1EmphasizedFontFamily: CSSDesignToken<string>, bodyPlus1EmphasizedFontWeight: CSSDesignToken<string>, bodyPlus1EmphasizedFontSize: CSSDesignToken<string>, bodyPlus1EmphasizedFontLineHeight: CSSDesignToken<string>;
73
+ export declare const groupHeaderFont: CSSDesignToken<string>, groupHeaderFontColor: CSSDesignToken<string>, groupHeaderDisabledFontColor: CSSDesignToken<string>, groupHeaderFontFamily: CSSDesignToken<string>, groupHeaderFontWeight: CSSDesignToken<string>, groupHeaderFontSize: CSSDesignToken<string>, groupHeaderFontLineHeight: CSSDesignToken<string>;
74
+ export declare const controlLabelFont: CSSDesignToken<string>, controlLabelFontColor: CSSDesignToken<string>, controlLabelDisabledFontColor: CSSDesignToken<string>, controlLabelFontFamily: CSSDesignToken<string>, controlLabelFontWeight: CSSDesignToken<string>, controlLabelFontSize: CSSDesignToken<string>, controlLabelFontLineHeight: CSSDesignToken<string>;
75
+ export declare const buttonLabelFont: CSSDesignToken<string>, buttonLabelFontColor: CSSDesignToken<string>, buttonLabelDisabledFontColor: CSSDesignToken<string>, buttonLabelFontFamily: CSSDesignToken<string>, buttonLabelFontWeight: CSSDesignToken<string>, buttonLabelFontSize: CSSDesignToken<string>, buttonLabelFontLineHeight: CSSDesignToken<string>;
76
+ export declare const tooltipCaptionFont: CSSDesignToken<string>, tooltipCaptionFontColor: CSSDesignToken<string>, tooltipCaptionDisabledFontColor: CSSDesignToken<string>, tooltipCaptionFontFamily: CSSDesignToken<string>, tooltipCaptionFontWeight: CSSDesignToken<string>, tooltipCaptionFontSize: CSSDesignToken<string>, tooltipCaptionFontLineHeight: CSSDesignToken<string>;
77
+ export declare const errorTextFont: CSSDesignToken<string>, errorTextFontColor: CSSDesignToken<string>, errorTextDisabledFontColor: CSSDesignToken<string>, errorTextFontFamily: CSSDesignToken<string>, errorTextFontWeight: CSSDesignToken<string>, errorTextFontSize: CSSDesignToken<string>, errorTextFontLineHeight: CSSDesignToken<string>;
78
+ export declare const tableHeaderFont: CSSDesignToken<string>, tableHeaderFontColor: CSSDesignToken<string>, tableHeaderDisabledFontColor: CSSDesignToken<string>, tableHeaderFontFamily: CSSDesignToken<string>, tableHeaderFontWeight: CSSDesignToken<string>, tableHeaderFontSize: CSSDesignToken<string>, tableHeaderFontLineHeight: CSSDesignToken<string>;
79
+ export declare const mentionFont: CSSDesignToken<string>, mentionFontColor: CSSDesignToken<string>, mentionDisabledFontColor: CSSDesignToken<string>, mentionFontFamily: CSSDesignToken<string>, mentionFontWeight: CSSDesignToken<string>, mentionFontSize: CSSDesignToken<string>, mentionFontLineHeight: CSSDesignToken<string>;
80
80
  export declare const groupHeaderTextTransform: CSSDesignToken<string>;
81
81
  export declare const smallDelay: CSSDesignToken<string>;
82
82
  export declare const mediumDelay: CSSDesignToken<string>;
@@ -13,7 +13,7 @@ export interface TableColumnEnumColumnConfig extends TableColumnTextBaseColumnCo
13
13
  mappingConfigs: MappingConfigs;
14
14
  }
15
15
  /**
16
- * Base class for table columns that map values to content (e.g. nimble-table-column-enum-text and nimble-table-column-icon)
16
+ * Base class for table columns that map values to content
17
17
  */
18
18
  export declare abstract class TableColumnEnumBase<TColumnConfig extends TableColumnEnumColumnConfig, TEnumValidator extends TableColumnEnumBaseValidator<[]>> extends TableColumn<TColumnConfig, TEnumValidator> implements Subscriber {
19
19
  /** @internal */
@@ -4,7 +4,7 @@ import { TableColumn } from '../base';
4
4
  import { Mapping } from '../../mapping/base';
5
5
  import { resolveKeyWithType } from './models/mapping-key-resolver';
6
6
  /**
7
- * Base class for table columns that map values to content (e.g. nimble-table-column-enum-text and nimble-table-column-icon)
7
+ * Base class for table columns that map values to content
8
8
  */
9
9
  export class TableColumnEnumBase extends TableColumn {
10
10
  constructor() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/table-column/enum-base/index.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,IAAI,EAEJ,UAAU,EACV,UAAU,EAEb,MAAM,yBAAyB,CAAC;AAMjC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAcnE;;GAEG;AACH,MAAM,OAAgB,mBAIlB,SAAQ,WAA0C;IAJtD;;QAMI,gBAAgB;QACT,qBAAgB,GAAe,EAAE,CAAC;QAEzC,gBAAgB;QAET,aAAQ,GAAuB,EAAE,CAAC;QAMlC,YAAO,GAAmB,QAAQ,CAAC;IAgF9C,CAAC;IA9EG;;;;;OAKG;IACI,YAAY,CAAC,MAAe,EAAE,IAAa;QAC9C,IAAI,MAAM,YAAY,OAAO,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YACvD,IAAI,CAAC,kBAAkB,EAAE,CAAC;SAC7B;IACL,CAAC;IAaD;;OAEG;IACK,kBAAkB;QACtB,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,eAAe,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,EAAE;YACpD,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACnD,CAAC,CAAC,SAAS,CAAC;IACpB,CAAC;IAEO,iBAAiB;QACrB,MAAM,cAAc,GAAG,IAAI,GAAG,EAA6B,CAAC;QAC5D,IAAI,CAAC,QAA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AQ,CAAC,CAAC;SACxC;IACL,CAAC;CACJ;AAtFU;IADN,UAAU;qDAC8B;AAGlC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;sDACR;AAGnB;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;oDACU","sourcesContent":["import {\n attr,\n Notifier,\n Observable,\n observable,\n Subscriber\n} from '@microsoft/fast-element';\nimport type {\n TableStringField,\n TableBooleanField,\n TableNumberField\n} from '../../table/types';\nimport { TableColumn } from '../base';\nimport { Mapping } from '../../mapping/base';\nimport type { MappingKeyType } from './types';\nimport type { MappingConfig } from './models/mapping-config';\nimport type { MappingKey } from '../../mapping/base/types';\nimport { resolveKeyWithType } from './models/mapping-key-resolver';\nimport type { TableColumnEnumBaseValidator } from './models/table-column-enum-base-validator';\nimport type { TableColumnTextBaseColumnConfig } from '../text-base/cell-view';\n\nexport type TableColumnEnumCellRecord =\n | TableStringField<'value'>\n | TableBooleanField<'value'>\n | TableNumberField<'value'>;\nexport type MappingConfigs = Map<MappingKey, MappingConfig>;\nexport interface TableColumnEnumColumnConfig\n extends TableColumnTextBaseColumnConfig {\n mappingConfigs: MappingConfigs;\n}\n\n/**\n * Base class for table columns that map values to content (e.g. nimble-table-column-enum-text and nimble-table-column-icon)\n */\nexport abstract class TableColumnEnumBase<\n TColumnConfig extends TableColumnEnumColumnConfig,\n TEnumValidator extends TableColumnEnumBaseValidator<[]>\n>\n extends TableColumn<TColumnConfig, TEnumValidator>\n implements Subscriber {\n /** @internal */\n public mappingNotifiers: Notifier[] = [];\n\n /** @internal */\n @observable\n public mappings: Mapping<unknown>[] = [];\n\n @attr({ attribute: 'field-name' })\n public fieldName?: string;\n\n @attr({ attribute: 'key-type' })\n public keyType: MappingKeyType = 'string';\n\n /**\n * @internal\n *\n * Triggers a request to update the columnConfig when any observable property on\n * a mapping is updated.\n */\n public handleChange(source: unknown, args: unknown): void {\n if (source instanceof Mapping && typeof args === 'string') {\n this.updateColumnConfig();\n }\n }\n\n /**\n * Implementations should throw an error if an invalid Mapping is passed.\n */\n protected abstract createMappingConfig(\n mapping: Mapping<unknown>\n ): MappingConfig;\n\n protected abstract createColumnConfig(\n mappingConfigs: MappingConfigs\n ): TColumnConfig;\n\n /**\n * Called when any Mapping related state has changed.\n */\n private updateColumnConfig(): void {\n this.columnInternals.validator.validate(this.mappings, this.keyType);\n this.columnInternals.columnConfig = this.checkValidity()\n ? this.createColumnConfig(this.getMappingConfigs())\n : undefined;\n }\n\n private getMappingConfigs(): MappingConfigs {\n const mappingConfigs = new Map<MappingKey, MappingConfig>();\n this.mappings.forEach(mapping => {\n const key = resolveKeyWithType(mapping.key, this.keyType);\n if (key === undefined) {\n throw Error(\n 'Key was invalid for type. Validation should have prevented this.'\n );\n }\n const mappingConfig = this.createMappingConfig(mapping);\n mappingConfigs.set(key, mappingConfig);\n });\n return mappingConfigs;\n }\n\n private fieldNameChanged(): void {\n this.columnInternals.dataRecordFieldNames = [this.fieldName];\n this.columnInternals.operandDataRecordFieldName = this.fieldName;\n }\n\n private mappingsChanged(): void {\n this.updateColumnConfig();\n this.observeMappings();\n }\n\n private keyTypeChanged(): void {\n this.updateColumnConfig();\n }\n\n private removeMappingObservers(): void {\n this.mappingNotifiers.forEach(notifier => {\n notifier.unsubscribe(this);\n });\n this.mappingNotifiers = [];\n }\n\n private observeMappings(): void {\n this.removeMappingObservers();\n\n for (const mapping of this.mappings) {\n const notifier = Observable.getNotifier(mapping);\n notifier.subscribe(this);\n this.mappingNotifiers.push(notifier);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/table-column/enum-base/index.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,IAAI,EAEJ,UAAU,EACV,UAAU,EAEb,MAAM,yBAAyB,CAAC;AAMjC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI7C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AC;IAC1B,CAAC;IAEO,gBAAgB;QACpB,IAAI,CAAC,eAAe,CAAC,oBAAoB,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7D,IAAI,CAAC,eAAe,CAAC,0BAA0B,GAAG,IAAI,CAAC,SAAS,CAAC;IACrE,CAAC;IAEO,eAAe;QACnB,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1B,IAAI,CAAC,eAAe,EAAE,CAAC;IAC3B,CAAC;IAEO,cAAc;QAClB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC9B,CAAC;IAEO,sBAAsB;QAC1B,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YACrC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC;IAC/B,CAAC;IAEO,eAAe;QACnB,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAE9B,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjC,MAAM,QAAQ,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YACjD,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACzB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACxC;IACL,CAAC;CACJ;AAtFU;IADN,UAAU;qDAC8B;AAGlC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;sDACR;AAGnB;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;oDACU","sourcesContent":["import {\n attr,\n Notifier,\n Observable,\n observable,\n Subscriber\n} from '@microsoft/fast-element';\nimport type {\n TableStringField,\n TableBooleanField,\n TableNumberField\n} from '../../table/types';\nimport { TableColumn } from '../base';\nimport { Mapping } from '../../mapping/base';\nimport type { MappingKeyType } from './types';\nimport type { MappingConfig } from './models/mapping-config';\nimport type { MappingKey } from '../../mapping/base/types';\nimport { resolveKeyWithType } from './models/mapping-key-resolver';\nimport type { TableColumnEnumBaseValidator } from './models/table-column-enum-base-validator';\nimport type { TableColumnTextBaseColumnConfig } from '../text-base/cell-view';\n\nexport type TableColumnEnumCellRecord =\n | TableStringField<'value'>\n | TableBooleanField<'value'>\n | TableNumberField<'value'>;\nexport type MappingConfigs = Map<MappingKey, MappingConfig>;\nexport interface TableColumnEnumColumnConfig\n extends TableColumnTextBaseColumnConfig {\n mappingConfigs: MappingConfigs;\n}\n\n/**\n * Base class for table columns that map values to content\n */\nexport abstract class TableColumnEnumBase<\n TColumnConfig extends TableColumnEnumColumnConfig,\n TEnumValidator extends TableColumnEnumBaseValidator<[]>\n>\n extends TableColumn<TColumnConfig, TEnumValidator>\n implements Subscriber {\n /** @internal */\n public mappingNotifiers: Notifier[] = [];\n\n /** @internal */\n @observable\n public mappings: Mapping<unknown>[] = [];\n\n @attr({ attribute: 'field-name' })\n public fieldName?: string;\n\n @attr({ attribute: 'key-type' })\n public keyType: MappingKeyType = 'string';\n\n /**\n * @internal\n *\n * Triggers a request to update the columnConfig when any observable property on\n * a mapping is updated.\n */\n public handleChange(source: unknown, args: unknown): void {\n if (source instanceof Mapping && typeof args === 'string') {\n this.updateColumnConfig();\n }\n }\n\n /**\n * Implementations should throw an error if an invalid Mapping is passed.\n */\n protected abstract createMappingConfig(\n mapping: Mapping<unknown>\n ): MappingConfig;\n\n protected abstract createColumnConfig(\n mappingConfigs: MappingConfigs\n ): TColumnConfig;\n\n /**\n * Called when any Mapping related state has changed.\n */\n private updateColumnConfig(): void {\n this.columnInternals.validator.validate(this.mappings, this.keyType);\n this.columnInternals.columnConfig = this.checkValidity()\n ? this.createColumnConfig(this.getMappingConfigs())\n : undefined;\n }\n\n private getMappingConfigs(): MappingConfigs {\n const mappingConfigs = new Map<MappingKey, MappingConfig>();\n this.mappings.forEach(mapping => {\n const key = resolveKeyWithType(mapping.key, this.keyType);\n if (key === undefined) {\n throw Error(\n 'Key was invalid for type. Validation should have prevented this.'\n );\n }\n const mappingConfig = this.createMappingConfig(mapping);\n mappingConfigs.set(key, mappingConfig);\n });\n return mappingConfigs;\n }\n\n private fieldNameChanged(): void {\n this.columnInternals.dataRecordFieldNames = [this.fieldName];\n this.columnInternals.operandDataRecordFieldName = this.fieldName;\n }\n\n private mappingsChanged(): void {\n this.updateColumnConfig();\n this.observeMappings();\n }\n\n private keyTypeChanged(): void {\n this.updateColumnConfig();\n }\n\n private removeMappingObservers(): void {\n this.mappingNotifiers.forEach(notifier => {\n notifier.unsubscribe(this);\n });\n this.mappingNotifiers = [];\n }\n\n private observeMappings(): void {\n this.removeMappingObservers();\n\n for (const mapping of this.mappings) {\n const notifier = Observable.getNotifier(mapping);\n notifier.subscribe(this);\n this.mappingNotifiers.push(notifier);\n }\n }\n}\n"]}
@@ -3,7 +3,7 @@ import type { Mapping } from '../../../mapping/base';
3
3
  import type { MappingKeyType } from '../types';
4
4
  export declare const enumBaseValidityFlagNames: readonly ["invalidMappingKeyValueForType", "duplicateMappingKey", "missingKeyValue"];
5
5
  /**
6
- * Validator for TableColumnEnumText. Implementations MUST include enumBaseValidityFlagNames in validity flag names set.
6
+ * Validator base class for table columns containing mappings. Implementations MUST include enumBaseValidityFlagNames in validity flag names set.
7
7
  */
8
8
  export declare abstract class TableColumnEnumBaseValidator<ValidityFlagNames extends readonly string[]> extends ColumnValidator<typeof enumBaseValidityFlagNames | ValidityFlagNames> {
9
9
  constructor(configValidityKeys: ValidityFlagNames);
@@ -6,7 +6,7 @@ export const enumBaseValidityFlagNames = [
6
6
  'missingKeyValue'
7
7
  ];
8
8
  /**
9
- * Validator for TableColumnEnumText. Implementations MUST include enumBaseValidityFlagNames in validity flag names set.
9
+ * Validator base class for table columns containing mappings. Implementations MUST include enumBaseValidityFlagNames in validity flag names set.
10
10
  */
11
11
  export class TableColumnEnumBaseValidator extends ColumnValidator {
12
12
  constructor(configValidityKeys) {
@@ -1 +1 @@
1
- {"version":3,"file":"table-column-enum-base-validator.js","sourceRoot":"","sources":["../../../../../src/table-column/enum-base/models/table-column-enum-base-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAGrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,+BAA+B;IAC/B,qBAAqB;IACrB,iBAAiB;CACX,CAAC;AAEX;;GAEG;AACH,MAAM,OAAgB,4BAEpB,SAAQ,eAEL;IACD,YAAmB,kBAAqC;QACpD,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAC9B,CAAC;IAEM,QAAQ,CACX,QAA4B,EAC5B,OAAuB;QAEvB,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAClD,IAAI,CAAC,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACvC,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC;IAEO,wBAAwB,CAC5B,IAAe,EACf,OAAuB;QAEvB,yEAAyE;QACzE,0EAA0E;QAC1E,yCAAyC;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CACrB,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,SAAS;eACjB,kBAAkB,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,SAAS,CACxD,CAAC;QACF,IAAI,CAAC,iBAAiB,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAEO,kBAAkB,CAAC,IAAe,EAAE,OAAuB;QAC/D,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;QAChE,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,MAAM,CAAC;QAC7D,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAEO,qBAAqB,CAAC,QAA4B;QACtD,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC;QACpE,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;CACJ","sourcesContent":["import { ColumnValidator } from '../../base/models/column-validator';\nimport type { Mapping } from '../../../mapping/base';\nimport type { MappingKeyType } from '../types';\nimport { resolveKeyWithType } from './mapping-key-resolver';\n\nexport const enumBaseValidityFlagNames = [\n 'invalidMappingKeyValueForType',\n 'duplicateMappingKey',\n 'missingKeyValue'\n] as const;\n\n/**\n * Validator for TableColumnEnumText. Implementations MUST include enumBaseValidityFlagNames in validity flag names set.\n */\nexport abstract class TableColumnEnumBaseValidator<\n ValidityFlagNames extends readonly string[]\n> extends ColumnValidator<\n typeof enumBaseValidityFlagNames | ValidityFlagNames\n > {\n public constructor(configValidityKeys: ValidityFlagNames) {\n super(configValidityKeys);\n }\n\n public validate(\n mappings: Mapping<unknown>[],\n keyType: MappingKeyType\n ): void {\n this.untrackAll();\n const keys = mappings.map(mapping => mapping.key);\n this.validateKeyValuesForType(keys, keyType);\n this.validateUniqueKeys(keys, keyType);\n this.validateNoMissingKeys(mappings);\n }\n\n private validateKeyValuesForType(\n keys: unknown[],\n keyType: MappingKeyType\n ): void {\n // Ignore undefined keys, because validateNoMissingKeys covers that case.\n // We should only set 'invalidMappingKeyValueForType' when there is a key,\n // but it isn't appropriate for the type.\n const invalid = keys.some(\n key => key !== undefined\n && resolveKeyWithType(key, keyType) === undefined\n );\n this.setConditionValue('invalidMappingKeyValueForType', invalid);\n }\n\n private validateUniqueKeys(keys: unknown[], keyType: MappingKeyType): void {\n const typedKeys = keys.map(x => resolveKeyWithType(x, keyType));\n const invalid = new Set(typedKeys).size !== typedKeys.length;\n this.setConditionValue('duplicateMappingKey', invalid);\n }\n\n private validateNoMissingKeys(mappings: Mapping<unknown>[]): void {\n const invalid = mappings.some(mapping => mapping.key === undefined);\n this.setConditionValue('missingKeyValue', invalid);\n }\n}\n"]}
1
+ {"version":3,"file":"table-column-enum-base-validator.js","sourceRoot":"","sources":["../../../../../src/table-column/enum-base/models/table-column-enum-base-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAGrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,+BAA+B;IAC/B,qBAAqB;IACrB,iBAAiB;CACX,CAAC;AAEX;;GAEG;AACH,MAAM,OAAgB,4BAEpB,SAAQ,eAEL;IACD,YAAmB,kBAAqC;QACpD,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAC9B,CAAC;IAEM,QAAQ,CACX,QAA4B,EAC5B,OAAuB;QAEvB,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAClD,IAAI,CAAC,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACvC,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC;IAEO,wBAAwB,CAC5B,IAAe,EACf,OAAuB;QAEvB,yEAAyE;QACzE,0EAA0E;QAC1E,yCAAyC;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CACrB,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,SAAS;eACjB,kBAAkB,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,SAAS,CACxD,CAAC;QACF,IAAI,CAAC,iBAAiB,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAEO,kBAAkB,CAAC,IAAe,EAAE,OAAuB;QAC/D,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;QAChE,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,MAAM,CAAC;QAC7D,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAEO,qBAAqB,CAAC,QAA4B;QACtD,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC;QACpE,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;CACJ","sourcesContent":["import { ColumnValidator } from '../../base/models/column-validator';\nimport type { Mapping } from '../../../mapping/base';\nimport type { MappingKeyType } from '../types';\nimport { resolveKeyWithType } from './mapping-key-resolver';\n\nexport const enumBaseValidityFlagNames = [\n 'invalidMappingKeyValueForType',\n 'duplicateMappingKey',\n 'missingKeyValue'\n] as const;\n\n/**\n * Validator base class for table columns containing mappings. Implementations MUST include enumBaseValidityFlagNames in validity flag names set.\n */\nexport abstract class TableColumnEnumBaseValidator<\n ValidityFlagNames extends readonly string[]\n> extends ColumnValidator<\n typeof enumBaseValidityFlagNames | ValidityFlagNames\n > {\n public constructor(configValidityKeys: ValidityFlagNames) {\n super(configValidityKeys);\n }\n\n public validate(\n mappings: Mapping<unknown>[],\n keyType: MappingKeyType\n ): void {\n this.untrackAll();\n const keys = mappings.map(mapping => mapping.key);\n this.validateKeyValuesForType(keys, keyType);\n this.validateUniqueKeys(keys, keyType);\n this.validateNoMissingKeys(mappings);\n }\n\n private validateKeyValuesForType(\n keys: unknown[],\n keyType: MappingKeyType\n ): void {\n // Ignore undefined keys, because validateNoMissingKeys covers that case.\n // We should only set 'invalidMappingKeyValueForType' when there is a key,\n // but it isn't appropriate for the type.\n const invalid = keys.some(\n key => key !== undefined\n && resolveKeyWithType(key, keyType) === undefined\n );\n this.setConditionValue('invalidMappingKeyValueForType', invalid);\n }\n\n private validateUniqueKeys(keys: unknown[], keyType: MappingKeyType): void {\n const typedKeys = keys.map(x => resolveKeyWithType(x, keyType));\n const invalid = new Set(typedKeys).size !== typedKeys.length;\n this.setConditionValue('duplicateMappingKey', invalid);\n }\n\n private validateNoMissingKeys(mappings: Mapping<unknown>[]): void {\n const invalid = mappings.some(mapping => mapping.key === undefined);\n this.setConditionValue('missingKeyValue', invalid);\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import type * as TokensNamespace from './design-tokens';
2
2
  type TokenName = keyof typeof TokensNamespace;
3
3
  export declare const comments: {
4
- readonly [key in TokenName]: string | null;
4
+ readonly [key in TokenName]: string;
5
5
  };
6
6
  export {};
@@ -59,7 +59,6 @@ export const comments = {
59
59
  headlinePlus1FontSize: 'Font size for the "Headline_2" base token',
60
60
  headlinePlus1FontWeight: 'Font weight for the "Headline_2" base token',
61
61
  headlinePlus1FontLineHeight: 'Font line height for the "Headline_2" base token',
62
- headlinePlus1FallbackFontFamily: null,
63
62
  headlineFont: 'Font shorthand for the "Headline_1" base token',
64
63
  headlineFontColor: 'Font color for the "Headline_1" base token',
65
64
  headlineDisabledFontColor: 'Disabled font color for the "Headline_1" base token',
@@ -67,7 +66,6 @@ export const comments = {
67
66
  headlineFontSize: 'Font size for the "Headline_1" base token',
68
67
  headlineFontWeight: 'Font weight for the "Headline_1" base token',
69
68
  headlineFontLineHeight: 'Font line height for the "Headline_1" base token',
70
- headlineFallbackFontFamily: 'Fallback font family for the "Headline_1" base token',
71
69
  tableHeaderFont: 'Font shorthand for the "Grid_Header" base token',
72
70
  tableHeaderFontColor: 'Font color for the "Grid_Header" base token',
73
71
  tableHeaderDisabledFontColor: 'Disabled font color for the "Grid_Header" base token',
@@ -75,7 +73,6 @@ export const comments = {
75
73
  tableHeaderFontSize: 'Font size for the "Grid_Header" base token',
76
74
  tableHeaderFontWeight: 'Font weight for the "Grid_Header" base token',
77
75
  tableHeaderFontLineHeight: 'Font line height for the "Grid_Header" base token',
78
- tableHeaderFallbackFontFamily: 'Fallback font family for the "Grid_Header" base token',
79
76
  titlePlus2Font: 'Font shorthand for the "Title_3" base token',
80
77
  titlePlus2FontColor: 'Font color for the "Title_3" base token',
81
78
  titlePlus2DisabledFontColor: 'Disabled font color for the "Title_3" base token',
@@ -83,7 +80,6 @@ export const comments = {
83
80
  titlePlus2FontSize: 'Font size for the "Title_3" base token',
84
81
  titlePlus2FontWeight: 'Font weight for the "Title_3" base token',
85
82
  titlePlus2FontLineHeight: 'Font line height for the "Title_3" base token',
86
- titlePlus2FallbackFontFamily: 'Fallback font family for the "Title_3" base token',
87
83
  titlePlus1Font: 'Font shorthand for the "Title_2" base token',
88
84
  titlePlus1FontColor: 'Font color for the "Title_2" base token',
89
85
  titlePlus1DisabledFontColor: 'Disabled font color for the "Title_2" base token',
@@ -91,7 +87,6 @@ export const comments = {
91
87
  titlePlus1FontSize: 'Font size for the "Title_2" base token',
92
88
  titlePlus1FontWeight: 'Font weight for the "Title_2" base token',
93
89
  titlePlus1FontLineHeight: 'Font line height for the "Title_2" base token',
94
- titlePlus1FallbackFontFamily: 'Fallback font family for the "Title_2" base token',
95
90
  titleFont: 'Font shorthand for the "Title_1" base token',
96
91
  titleFontColor: 'Font color for the "Title_1" base token',
97
92
  titleDisabledFontColor: 'Disabled font color for the "Title_1" base token',
@@ -99,7 +94,6 @@ export const comments = {
99
94
  titleFontSize: 'Font size for the "Title_1" base token',
100
95
  titleFontWeight: 'Font weight for the "Title_1" base token',
101
96
  titleFontLineHeight: 'Font line height for the "Title_1" base token',
102
- titleFallbackFontFamily: 'Fallback font family for the "Title_1" base token',
103
97
  subtitlePlus1Font: 'Font shorthand for the "Subtitle_2" base token',
104
98
  subtitlePlus1FontColor: 'Font color for the "Subtitle_2" base token',
105
99
  subtitlePlus1DisabledFontColor: 'Disabled font color for the "Subtitle_2" base token',
@@ -107,7 +101,6 @@ export const comments = {
107
101
  subtitlePlus1FontSize: 'Font size for the "Subitle_2" base token',
108
102
  subtitlePlus1FontWeight: 'Font weight for the "Subtitle_2" base token',
109
103
  subtitlePlus1FontLineHeight: 'Font line height for the "Subtitle_2" base token',
110
- subtitlePlus1FallbackFontFamily: 'Fallback font family for the "Subtitle_2" base token',
111
104
  subtitleFont: 'Font shorthand for the "Subtitle_1" base token',
112
105
  subtitleFontColor: 'Font color for the "Subtitle_1" base token',
113
106
  subtitleDisabledFontColor: 'Disabled font color for the "Subtitle_1" base token',
@@ -115,7 +108,6 @@ export const comments = {
115
108
  subtitleFontSize: 'Font size for the "Subitle_1" base token',
116
109
  subtitleFontWeight: 'Font weight for the "Subtitle_1" base token',
117
110
  subtitleFontLineHeight: 'Font line height for the "Subtitle_1" base token',
118
- subtitleFallbackFontFamily: 'Fallback font family for the "Subtitle_1" base token',
119
111
  linkFont: 'Font shorthand for links',
120
112
  linkFontColor: 'Font color for links',
121
113
  linkDisabledFontColor: 'Disabled font color for links',
@@ -123,7 +115,6 @@ export const comments = {
123
115
  linkFontSize: 'Font size for links',
124
116
  linkFontWeight: 'Font weight for links',
125
117
  linkFontLineHeight: 'Font line height for links',
126
- linkFallbackFontFamily: 'Fallback font family for links',
127
118
  linkActiveFont: 'Font shorthand for active links',
128
119
  linkActiveFontColor: 'Font color for active links',
129
120
  linkActiveDisabledFontColor: 'Disabled font color for active links',
@@ -131,7 +122,6 @@ export const comments = {
131
122
  linkActiveFontSize: 'Font size for active links',
132
123
  linkActiveFontWeight: 'Font weight for active links',
133
124
  linkActiveFontLineHeight: 'Font line height for active links',
134
- linkActiveFallbackFontFamily: 'Fallback font family for active links',
135
125
  linkProminentFont: 'Font shorthand for prominent links',
136
126
  linkProminentFontColor: 'Font color for prominent links',
137
127
  linkProminentDisabledFontColor: 'Disabled font color for prominent links',
@@ -139,7 +129,6 @@ export const comments = {
139
129
  linkProminentFontSize: 'Font size for prominent links',
140
130
  linkProminentFontWeight: 'Font weight for prominent links',
141
131
  linkProminentFontLineHeight: 'Font line height for prominent links',
142
- linkProminentFallbackFontFamily: 'Fallback font family for prominent links',
143
132
  linkActiveProminentFont: 'Font shorthand for active prominent links',
144
133
  linkActiveProminentFontColor: 'Font color for active prominent links',
145
134
  linkActiveProminentDisabledFontColor: 'Disabled font color for active prominent links',
@@ -147,7 +136,6 @@ export const comments = {
147
136
  linkActiveProminentFontSize: 'Font size for active prominent links',
148
137
  linkActiveProminentFontWeight: 'Font weight for active prominent links',
149
138
  linkActiveProminentFontLineHeight: 'Font line height for active prominent links',
150
- linkActiveProminentFallbackFontFamily: 'Fallback font family for active prominent links',
151
139
  placeholderFont: 'Font shorthand for the "Placeholder" base token',
152
140
  placeholderFontColor: 'Font color for the "Placeholder" base token',
153
141
  placeholderDisabledFontColor: 'Disabled font color for the "Placeholder" base token',
@@ -155,7 +143,6 @@ export const comments = {
155
143
  placeholderFontSize: 'Font size for the "Placeholder" base token',
156
144
  placeholderFontWeight: 'Font weight for the "Placeholder" base token',
157
145
  placeholderFontLineHeight: 'Font line height for the "Placeholder" base token',
158
- placeholderFallbackFontFamily: 'Fallback font family for the "Placeholder" base token',
159
146
  bodyFont: 'Font shorthand for the "Body" base token',
160
147
  bodyFontColor: 'Font color for the "Body" base token',
161
148
  bodyDisabledFontColor: 'Disabled font color for the "Body" base token',
@@ -163,7 +150,6 @@ export const comments = {
163
150
  bodyFontSize: 'Font size for the "Body" base token',
164
151
  bodyFontWeight: 'Font weight for the "Body" base token',
165
152
  bodyFontLineHeight: 'Font line height for the "Body" base token',
166
- bodyFallbackFontFamily: 'Fallback font family for the "Body" base token',
167
153
  bodyEmphasizedFont: 'Font shorthand for the "BodyEmphasized" base token',
168
154
  bodyEmphasizedFontColor: 'Font color for the "BodyEmphasized" base token',
169
155
  bodyEmphasizedDisabledFontColor: 'Disabled font color for the "BodyEmphasized" base token',
@@ -171,7 +157,6 @@ export const comments = {
171
157
  bodyEmphasizedFontSize: 'Font size for the "BodyEmphasized" base token',
172
158
  bodyEmphasizedFontWeight: 'Font weight for the "BodyEmphasized" base token',
173
159
  bodyEmphasizedFontLineHeight: 'Font line height for the "BodyEmphasized" base token',
174
- bodyEmphasizedFallbackFontFamily: 'Fallback font family for the "BodyEmphasized" base token',
175
160
  bodyPlus1Font: 'Font shorthand for the "Body_2" base token',
176
161
  bodyPlus1FontColor: 'Font color for the "Body_2" base token',
177
162
  bodyPlus1DisabledFontColor: 'Disabled font color for the "Body_2" base token',
@@ -179,7 +164,6 @@ export const comments = {
179
164
  bodyPlus1FontSize: 'Font size for the "Body_2" base token',
180
165
  bodyPlus1FontWeight: 'Font weight for the "Body_2" base token',
181
166
  bodyPlus1FontLineHeight: 'Font line height for the "Body_2" base token',
182
- bodyPlus1FallbackFontFamily: 'Fallback font family for the "Body_2" base token',
183
167
  bodyPlus1EmphasizedFont: 'Font shorthand for the "BodyEmphasized_2" base token',
184
168
  bodyPlus1EmphasizedFontColor: 'Font color for the "BodyEmphasized_2" base token',
185
169
  bodyPlus1EmphasizedDisabledFontColor: 'Disabled font color for the "BodyEmphasized_2" base token',
@@ -187,7 +171,6 @@ export const comments = {
187
171
  bodyPlus1EmphasizedFontSize: 'Font size for the "BodyEmphasized_2" base token',
188
172
  bodyPlus1EmphasizedFontWeight: 'Font weight for the "BodyEmphasized_2" base token',
189
173
  bodyPlus1EmphasizedFontLineHeight: 'Font line height for the "BodyEmphasized_2" base token',
190
- bodyPlus1EmphasizedFallbackFontFamily: 'Fallback font family for the "BodyEmphasized_2" base token',
191
174
  groupHeaderFont: 'Font shorthand for the "Group_Header_1" base token',
192
175
  groupHeaderFontColor: 'Font color for the "Group_Header_1" base token',
193
176
  groupHeaderDisabledFontColor: 'Disabled font color for the"Group_Header_1" base token',
@@ -195,7 +178,6 @@ export const comments = {
195
178
  groupHeaderFontSize: 'Font size for the "Group_Header_1" base token',
196
179
  groupHeaderFontWeight: 'Font weight for the "Group_Header_1" base token',
197
180
  groupHeaderFontLineHeight: 'Font line height for the "Group_Header_1" base token',
198
- groupHeaderFallbackFontFamily: 'Fallback font family for the "Group_Header_1" base token',
199
181
  controlLabelFont: 'Font shorthand for the "Control_Label_1" base token',
200
182
  controlLabelFontColor: 'Font color for the "Control_Label_1" base token',
201
183
  controlLabelDisabledFontColor: 'Disabled font color for the "Control_Label_1" base token',
@@ -203,7 +185,6 @@ export const comments = {
203
185
  controlLabelFontSize: 'Font size for the "Control_Label_1" base token',
204
186
  controlLabelFontWeight: 'Font weight for the "Control_Label_1" base token',
205
187
  controlLabelFontLineHeight: 'Font line height for the "Control_Label_1" base token',
206
- controlLabelFallbackFontFamily: 'Fallback font family for the "Control_Label_1" base token',
207
188
  buttonLabelFont: 'Font shorthand for the "Button_Label_1" base token',
208
189
  buttonLabelFontColor: 'Font color for the "Button_Label_1" base token',
209
190
  buttonLabelDisabledFontColor: 'Disabled font color for the "Button_Label_1" base token',
@@ -211,7 +192,6 @@ export const comments = {
211
192
  buttonLabelFontSize: 'Font size for the "Button_Label_1" base token',
212
193
  buttonLabelFontWeight: 'Font weight for the "Button_Label_1" base token',
213
194
  buttonLabelFontLineHeight: 'Font line height for the "Button_Label_1" base token',
214
- buttonLabelFallbackFontFamily: 'Fallback font family for the "Button_Label_1" base token',
215
195
  tooltipCaptionFont: 'Font shorthand for the "Tooltip_Caption" base token',
216
196
  tooltipCaptionFontColor: 'Font color for the "Tooltip_Caption" base token',
217
197
  tooltipCaptionDisabledFontColor: 'Disabled font color for the "Tooltip_Caption" base token',
@@ -219,7 +199,6 @@ export const comments = {
219
199
  tooltipCaptionFontSize: 'Font size for the "Tooltip_Caption" base token',
220
200
  tooltipCaptionFontWeight: 'Font weight for the "Tooltip_Caption" base token',
221
201
  tooltipCaptionFontLineHeight: 'Font line height for the "Tooltip_Caption" base token',
222
- tooltipCaptionFallbackFontFamily: 'Fallback font family for the "Tooltip_Caption" base token',
223
202
  tooltipBackgroundColor: 'Default background color for tooltips',
224
203
  errorTextFont: 'Font shorthand for the "Error_LightUi" base token',
225
204
  errorTextFontColor: 'Font color for the "Error_LightUi" base token',
@@ -228,7 +207,6 @@ export const comments = {
228
207
  errorTextFontSize: 'Font size for the "Error_LightUi" base token',
229
208
  errorTextFontWeight: 'Font weight for the "Error_LightUi" base token',
230
209
  errorTextFontLineHeight: 'Font line height for the "Error_LightUi" base token',
231
- errorTextFallbackFontFamily: 'Fallback font family for the "Error_LightUi" base token',
232
210
  tableRowBorderColor: 'Color for the border of rows in the table',
233
211
  elevation1BoxShadow: 'The box shadow for elevation 1. Used for component hover states.',
234
212
  elevation2BoxShadow: 'The box shadow for elevation 2. Used for components such as menus, banners, tooltips, error notifications, and scrolling.',
@@ -240,7 +218,6 @@ export const comments = {
240
218
  mentionFontFamily: 'Font family for mention views',
241
219
  mentionFontSize: 'Font size for mention views',
242
220
  mentionFontWeight: 'Font weight for mention views',
243
- mentionFontLineHeight: 'Font line height for mention views',
244
- mentionFallbackFontFamily: 'Fallback font family for mention views'
221
+ mentionFontLineHeight: 'Font line height for mention views'
245
222
  };
246
223
  //# sourceMappingURL=design-token-comments.js.map