@ni/nimble-components 29.1.2 → 29.1.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.
Files changed (36) hide show
  1. package/dist/all-components-bundle.js +593 -149
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +3623 -3573
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/anchor/index.d.ts +6 -0
  6. package/dist/esm/anchor/index.js +4 -1
  7. package/dist/esm/anchor/index.js.map +1 -1
  8. package/dist/esm/anchor/template.js +1 -0
  9. package/dist/esm/anchor/template.js.map +1 -1
  10. package/dist/esm/button/index.d.ts +6 -0
  11. package/dist/esm/button/index.js +6 -2
  12. package/dist/esm/button/index.js.map +1 -1
  13. package/dist/esm/button/template.d.ts +4 -0
  14. package/dist/esm/button/template.js +49 -0
  15. package/dist/esm/button/template.js.map +1 -0
  16. package/dist/esm/checkbox/index.d.ts +10 -0
  17. package/dist/esm/checkbox/index.js +14 -1
  18. package/dist/esm/checkbox/index.js.map +1 -1
  19. package/dist/esm/checkbox/template.d.ts +4 -0
  20. package/dist/esm/checkbox/template.js +32 -0
  21. package/dist/esm/checkbox/template.js.map +1 -0
  22. package/dist/esm/menu-button/index.d.ts +1 -0
  23. package/dist/esm/menu-button/index.js +4 -1
  24. package/dist/esm/menu-button/index.js.map +1 -1
  25. package/dist/esm/menu-button/template.js +1 -0
  26. package/dist/esm/menu-button/template.js.map +1 -1
  27. package/dist/esm/select/styles.js +2 -1
  28. package/dist/esm/select/styles.js.map +1 -1
  29. package/dist/esm/text-field/styles.js +6 -2
  30. package/dist/esm/text-field/styles.js.map +1 -1
  31. package/dist/esm/toggle-button/index.d.ts +10 -0
  32. package/dist/esm/toggle-button/index.js +11 -1
  33. package/dist/esm/toggle-button/index.js.map +1 -1
  34. package/dist/esm/toggle-button/template.js +17 -7
  35. package/dist/esm/toggle-button/template.js.map +1 -1
  36. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { __decorate } from "tslib";
2
- import { attr } from '@microsoft/fast-element';
2
+ import { attr, nullableNumberConverter } from '@microsoft/fast-element';
3
3
  import { applyMixins, DelegatesARIAButton, DesignSystem, StartEnd, Switch as FoundationSwitch } from '@microsoft/fast-foundation';
4
4
  import { styles } from './styles';
5
5
  import { template } from './template';
@@ -23,6 +23,13 @@ export class ToggleButton extends FoundationSwitch {
23
23
  */
24
24
  this.contentHidden = false;
25
25
  }
26
+ /**
27
+ * @internal
28
+ */
29
+ get resolvedTabindex() {
30
+ const tabIndex = this.tabIndex ?? 0;
31
+ return this.disabled ? undefined : `${tabIndex}`;
32
+ }
26
33
  }
27
34
  __decorate([
28
35
  attr
@@ -33,6 +40,9 @@ __decorate([
33
40
  __decorate([
34
41
  attr({ attribute: 'content-hidden', mode: 'boolean' })
35
42
  ], ToggleButton.prototype, "contentHidden", void 0);
43
+ __decorate([
44
+ attr({ attribute: 'tabindex', converter: nullableNumberConverter })
45
+ ], ToggleButton.prototype, "tabIndex", void 0);
36
46
  applyMixins(ToggleButton, StartEnd, DelegatesARIAButton);
37
47
  const nimbleToggleButton = ToggleButton.compose({
38
48
  baseName: 'toggle-button',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/toggle-button/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EACH,WAAW,EAEX,mBAAmB,EACnB,YAAY,EACZ,QAAQ,EACR,MAAM,IAAI,gBAAgB,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAA2B,MAAM,SAAS,CAAC;AAQpE;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IAAlD;;QACI;;;;WAIG;QAEI,eAAU,GAAqB,gBAAgB,CAAC,OAAO,CAAC;QAU/D;;;;WAIG;QAEI,kBAAa,GAAG,KAAK,CAAC;IAIjC,CAAC;CAAA;AApBU;IADN,IAAI;gDAC0D;AAQxD;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC;uDACQ;AAQ3C;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;mDAC1B;AAKjC,WAAW,CAAC,YAAY,EAAE,QAAQ,EAAE,mBAAmB,CAAC,CAAC;AAGzD,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,CAAgB;IAC3D,QAAQ,EAAE,eAAe;IACzB,QAAQ;IACR,MAAM;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;CACJ,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,eAAe,GAAG,sBAAsB,CAAC","sourcesContent":["import { attr } from '@microsoft/fast-element';\nimport {\n applyMixins,\n ButtonOptions,\n DelegatesARIAButton,\n DesignSystem,\n StartEnd,\n Switch as FoundationSwitch\n} from '@microsoft/fast-foundation';\nimport { styles } from './styles';\nimport { template } from './template';\nimport type { ButtonPattern } from '../patterns/button/types';\nimport { ButtonAppearance, ButtonAppearanceVariant } from './types';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-toggle-button': ToggleButton;\n }\n}\n\n/**\n * A nimble-styled toggle button control.\n */\nexport class ToggleButton extends FoundationSwitch implements ButtonPattern {\n /**\n * @public\n * @remarks\n * HTML Attribute: appearance\n */\n @attr\n public appearance: ButtonAppearance = ButtonAppearance.outline;\n\n /**\n * @public\n * @remarks\n * HTML Attribute: appearance-variant\n */\n @attr({ attribute: 'appearance-variant' })\n public appearanceVariant: ButtonAppearanceVariant;\n\n /**\n * @public\n * @remarks\n * HTML Attribute: content-hidden\n */\n @attr({ attribute: 'content-hidden', mode: 'boolean' })\n public contentHidden = false;\n\n /** @internal */\n public readonly control!: HTMLElement;\n}\napplyMixins(ToggleButton, StartEnd, DelegatesARIAButton);\nexport interface ToggleButton extends StartEnd, DelegatesARIAButton {}\n\nconst nimbleToggleButton = ToggleButton.compose<ButtonOptions>({\n baseName: 'toggle-button',\n template,\n styles,\n shadowOptions: {\n delegatesFocus: true\n }\n});\n\nDesignSystem.getOrCreate().withPrefix('nimble').register(nimbleToggleButton());\nexport const toggleButtonTag = 'nimble-toggle-button';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/toggle-button/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EACH,WAAW,EAEX,mBAAmB,EACnB,YAAY,EACZ,QAAQ,EACR,MAAM,IAAI,gBAAgB,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAA2B,MAAM,SAAS,CAAC;AAQpE;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IAAlD;;QACI;;;;WAIG;QAEI,eAAU,GAAqB,gBAAgB,CAAC,OAAO,CAAC;QAU/D;;;;WAIG;QAEI,kBAAa,GAAG,KAAK,CAAC;IAoBjC,CAAC;IAPG;;OAEG;IACH,IAAW,gBAAgB;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,QAAQ,EAAE,CAAC;IACrD,CAAC;CACJ;AApCU;IADN,IAAI;gDAC0D;AAQxD;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC;uDACQ;AAQ3C;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;mDAC1B;AAQb;IADf,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;8CAClC;AAatC,WAAW,CAAC,YAAY,EAAE,QAAQ,EAAE,mBAAmB,CAAC,CAAC;AAGzD,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,CAAgB;IAC3D,QAAQ,EAAE,eAAe;IACzB,QAAQ;IACR,MAAM;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;CACJ,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,eAAe,GAAG,sBAAsB,CAAC","sourcesContent":["import { attr, nullableNumberConverter } from '@microsoft/fast-element';\nimport {\n applyMixins,\n ButtonOptions,\n DelegatesARIAButton,\n DesignSystem,\n StartEnd,\n Switch as FoundationSwitch\n} from '@microsoft/fast-foundation';\nimport { styles } from './styles';\nimport { template } from './template';\nimport type { ButtonPattern } from '../patterns/button/types';\nimport { ButtonAppearance, ButtonAppearanceVariant } from './types';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-toggle-button': ToggleButton;\n }\n}\n\n/**\n * A nimble-styled toggle button control.\n */\nexport class ToggleButton extends FoundationSwitch implements ButtonPattern {\n /**\n * @public\n * @remarks\n * HTML Attribute: appearance\n */\n @attr\n public appearance: ButtonAppearance = ButtonAppearance.outline;\n\n /**\n * @public\n * @remarks\n * HTML Attribute: appearance-variant\n */\n @attr({ attribute: 'appearance-variant' })\n public appearanceVariant: ButtonAppearanceVariant;\n\n /**\n * @public\n * @remarks\n * HTML Attribute: content-hidden\n */\n @attr({ attribute: 'content-hidden', mode: 'boolean' })\n public contentHidden = false;\n\n /**\n * @public\n * @remarks\n * HTML Attribute: tabindex\n */\n @attr({ attribute: 'tabindex', converter: nullableNumberConverter })\n public override tabIndex!: number;\n\n /** @internal */\n public readonly control!: HTMLElement;\n\n /**\n * @internal\n */\n public get resolvedTabindex(): string | undefined {\n const tabIndex = this.tabIndex ?? 0;\n return this.disabled ? undefined : `${tabIndex}`;\n }\n}\napplyMixins(ToggleButton, StartEnd, DelegatesARIAButton);\nexport interface ToggleButton extends StartEnd, DelegatesARIAButton {}\n\nconst nimbleToggleButton = ToggleButton.compose<ButtonOptions>({\n baseName: 'toggle-button',\n template,\n styles,\n shadowOptions: {\n delegatesFocus: true\n }\n});\n\nDesignSystem.getOrCreate().withPrefix('nimble').register(nimbleToggleButton());\nexport const toggleButtonTag = 'nimble-toggle-button';\n"]}
@@ -1,22 +1,31 @@
1
1
  import { html, ref } from '@microsoft/fast-element';
2
2
  import { endSlotTemplate, startSlotTemplate } from '@microsoft/fast-foundation';
3
+ /* eslint-disable @typescript-eslint/indent */
4
+ // prettier-ignore
3
5
  export const template = (context, definition) => html `
4
6
  <div
5
7
  role="button"
6
8
  part="control"
7
- tabindex="${x => (x.disabled ? null : 0)}"
9
+ tabindex="${x => x.resolvedTabindex}"
8
10
  @keypress="${(x, c) => x.keypressHandler(c.event)}"
9
11
  @click="${(x, c) => x.clickHandler(c.event)}"
10
12
  class="control ${x => (x.checked ? 'checked' : '')}"
11
- ?disabled="${x => x.disabled}"
12
- ${'' /* Configure aria-disabled, aria-readonly, and aria-pressed based on the
13
- toggle button's state to keep the ARIA attributes consistent with the component's
14
- state without a client having to configure ARIA attributes directly */}
13
+ ${''
14
+ /**
15
+ * Configure aria-disabled, aria-readonly, and aria-pressed based on the
16
+ * toggle button's state to keep the ARIA attributes consistent with the component's
17
+ * state without a client having to configure ARIA attributes directly
18
+ */
19
+ }
15
20
  aria-disabled="${x => x.disabled}"
16
21
  aria-readonly="${x => x.readOnly}"
17
22
  aria-pressed="${x => x.checked}"
18
- ${'' /* Configure all other ARIA attributes based on the aria attributes
19
- configured on the toggle button */}
23
+ ${''
24
+ /**
25
+ * Configure all other ARIA attributes based on the aria attributes
26
+ * configured on the toggle button
27
+ */
28
+ }
20
29
  aria-atomic="${x => x.ariaAtomic}"
21
30
  aria-busy="${x => x.ariaBusy}"
22
31
  aria-controls="${x => x.ariaControls}"
@@ -45,4 +54,5 @@ export const template = (context, definition) => html `
45
54
  ${endSlotTemplate(context, definition)}
46
55
  </div>
47
56
  `;
57
+ /* eslint-enable @typescript-eslint/indent */
48
58
  //# sourceMappingURL=template.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/toggle-button/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAgB,MAAM,yBAAyB,CAAC;AAClE,OAAO,EACH,eAAe,EACf,iBAAiB,EAGpB,MAAM,4BAA4B,CAAC;AAGpC,MAAM,CAAC,MAAM,QAAQ,GAGjB,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,IAAI,CAAc;;;;oBAI3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;qBAC3B,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,KAAsB,CAAC;kBACxD,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAmB,CAAC;yBACxC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;qBACrC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;UAEhC,EAAE,CAAC;;0EAGP;yBACyB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;wBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO;UAElC,EAAE,CAAC;sCAEP;uBACuB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;qBACnB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;wBACpB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;4BACd,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe;wBAC1B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;6BACb,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;yBAC3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;uBACrB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;yBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;uBACrB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;wBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;6BACb,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;sBAC9B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;2BACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc;qBAC3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;qBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;gCACZ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB;UAChD,GAAG,CAAC,SAAS,CAAC;;UAEd,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC;;;;UAItC,eAAe,CAAC,OAAO,EAAE,UAAU,CAAC;;CAE7C,CAAC","sourcesContent":["import { html, ref, ViewTemplate } from '@microsoft/fast-element';\nimport {\n endSlotTemplate,\n startSlotTemplate,\n FoundationElementTemplate,\n ButtonOptions\n} from '@microsoft/fast-foundation';\nimport type { ToggleButton } from '.';\n\nexport const template: FoundationElementTemplate<\nViewTemplate<ToggleButton>,\nButtonOptions\n> = (context, definition) => html<ToggleButton>`\n <div\n role=\"button\"\n part=\"control\"\n tabindex=\"${x => (x.disabled ? null : 0)}\"\n @keypress=\"${(x, c) => x.keypressHandler(c.event as KeyboardEvent)}\"\n @click=\"${(x, c) => x.clickHandler(c.event as MouseEvent)}\"\n class=\"control ${x => (x.checked ? 'checked' : '')}\"\n ?disabled=\"${x => x.disabled}\"\n ${\n '' /* Configure aria-disabled, aria-readonly, and aria-pressed based on the\n toggle button's state to keep the ARIA attributes consistent with the component's\n state without a client having to configure ARIA attributes directly */\n}\n aria-disabled=\"${x => x.disabled}\"\n aria-readonly=\"${x => x.readOnly}\"\n aria-pressed=\"${x => x.checked}\"\n ${\n '' /* Configure all other ARIA attributes based on the aria attributes\n configured on the toggle button */\n}\n aria-atomic=\"${x => x.ariaAtomic}\"\n aria-busy=\"${x => x.ariaBusy}\"\n aria-controls=\"${x => x.ariaControls}\"\n aria-current=\"${x => x.ariaCurrent}\"\n aria-describedby=\"${x => x.ariaDescribedby}\"\n aria-details=\"${x => x.ariaDetails}\"\n aria-errormessage=\"${x => x.ariaErrormessage}\"\n aria-expanded=\"${x => x.ariaExpanded}\"\n aria-flowto=\"${x => x.ariaFlowto}\"\n aria-haspopup=\"${x => x.ariaHaspopup}\"\n aria-hidden=\"${x => x.ariaHidden}\"\n aria-invalid=\"${x => x.ariaInvalid}\"\n aria-keyshortcuts=\"${x => x.ariaKeyshortcuts}\"\n aria-label=\"${x => x.ariaLabel}\"\n aria-labelledby=\"${x => x.ariaLabelledby}\"\n aria-live=\"${x => x.ariaLive}\"\n aria-owns=\"${x => x.ariaOwns}\"\n aria-relevant=\"${x => x.ariaRelevant}\"\n aria-roledescription=\"${x => x.ariaRoledescription}\"\n ${ref('control')}\n >\n ${startSlotTemplate(context, definition)}\n <span class=\"content\" part=\"content\">\n <slot></slot>\n </span>\n ${endSlotTemplate(context, definition)}\n </div>\n`;\n"]}
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/toggle-button/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAgB,MAAM,yBAAyB,CAAC;AAClE,OAAO,EACH,eAAe,EACf,iBAAiB,EAGpB,MAAM,4BAA4B,CAAC;AAGpC,8CAA8C;AAC9C,kBAAkB;AAClB,MAAM,CAAC,MAAM,QAAQ,GAGjB,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,IAAI,CAAc;;;;oBAI3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;qBACtB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,KAAsB,CAAC;kBACxD,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAmB,CAAC;yBACxC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;UAChD,EAAE;AACA;;;;GAIG;AACP;yBACiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;wBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO;UAC5B,EAAE;AACA;;;GAGG;AACP;uBACe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;qBACnB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;wBACpB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;4BACd,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe;wBAC1B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;6BACb,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;yBAC3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;uBACrB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;yBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;uBACrB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;wBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;6BACb,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;sBAC9B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;2BACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc;qBAC3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;qBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;gCACZ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB;UAChD,GAAG,CAAC,SAAS,CAAC;;UAEd,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC;;;;UAItC,eAAe,CAAC,OAAO,EAAE,UAAU,CAAC;;CAE7C,CAAC;AACF,6CAA6C","sourcesContent":["import { html, ref, ViewTemplate } from '@microsoft/fast-element';\nimport {\n endSlotTemplate,\n startSlotTemplate,\n FoundationElementTemplate,\n ButtonOptions\n} from '@microsoft/fast-foundation';\nimport type { ToggleButton } from '.';\n\n/* eslint-disable @typescript-eslint/indent */\n// prettier-ignore\nexport const template: FoundationElementTemplate<\nViewTemplate<ToggleButton>,\nButtonOptions\n> = (context, definition) => html<ToggleButton>`\n <div\n role=\"button\"\n part=\"control\"\n tabindex=\"${x => x.resolvedTabindex}\"\n @keypress=\"${(x, c) => x.keypressHandler(c.event as KeyboardEvent)}\"\n @click=\"${(x, c) => x.clickHandler(c.event as MouseEvent)}\"\n class=\"control ${x => (x.checked ? 'checked' : '')}\"\n ${''\n /**\n * Configure aria-disabled, aria-readonly, and aria-pressed based on the\n * toggle button's state to keep the ARIA attributes consistent with the component's\n * state without a client having to configure ARIA attributes directly\n */\n }\n aria-disabled=\"${x => x.disabled}\"\n aria-readonly=\"${x => x.readOnly}\"\n aria-pressed=\"${x => x.checked}\"\n ${''\n /**\n * Configure all other ARIA attributes based on the aria attributes\n * configured on the toggle button\n */\n }\n aria-atomic=\"${x => x.ariaAtomic}\"\n aria-busy=\"${x => x.ariaBusy}\"\n aria-controls=\"${x => x.ariaControls}\"\n aria-current=\"${x => x.ariaCurrent}\"\n aria-describedby=\"${x => x.ariaDescribedby}\"\n aria-details=\"${x => x.ariaDetails}\"\n aria-errormessage=\"${x => x.ariaErrormessage}\"\n aria-expanded=\"${x => x.ariaExpanded}\"\n aria-flowto=\"${x => x.ariaFlowto}\"\n aria-haspopup=\"${x => x.ariaHaspopup}\"\n aria-hidden=\"${x => x.ariaHidden}\"\n aria-invalid=\"${x => x.ariaInvalid}\"\n aria-keyshortcuts=\"${x => x.ariaKeyshortcuts}\"\n aria-label=\"${x => x.ariaLabel}\"\n aria-labelledby=\"${x => x.ariaLabelledby}\"\n aria-live=\"${x => x.ariaLive}\"\n aria-owns=\"${x => x.ariaOwns}\"\n aria-relevant=\"${x => x.ariaRelevant}\"\n aria-roledescription=\"${x => x.ariaRoledescription}\"\n ${ref('control')}\n >\n ${startSlotTemplate(context, definition)}\n <span class=\"content\" part=\"content\">\n <slot></slot>\n </span>\n ${endSlotTemplate(context, definition)}\n </div>\n`;\n/* eslint-enable @typescript-eslint/indent */\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-components",
3
- "version": "29.1.2",
3
+ "version": "29.1.4",
4
4
  "description": "Styled web components for the NI Nimble Design System",
5
5
  "scripts": {
6
6
  "build": "npm run generate-icons && npm run generate-workers && npm run build-components && npm run bundle-components && npm run generate-scss",