@ni/nimble-components 35.4.0 → 35.5.1

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 (55) hide show
  1. package/dist/all-components-bundle.js +331 -155
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +4004 -3898
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/custom-elements.json +105 -2
  6. package/dist/custom-elements.md +31 -15
  7. package/dist/esm/anchor-step/template.js +14 -19
  8. package/dist/esm/anchor-step/template.js.map +1 -1
  9. package/dist/esm/anchor-step/testing/anchor-step.pageobject.d.ts +7 -0
  10. package/dist/esm/anchor-step/testing/anchor-step.pageobject.js +7 -0
  11. package/dist/esm/anchor-step/testing/anchor-step.pageobject.js.map +1 -0
  12. package/dist/esm/icons/all-icons.d.ts +1 -0
  13. package/dist/esm/icons/all-icons.js +1 -0
  14. package/dist/esm/icons/all-icons.js.map +1 -1
  15. package/dist/esm/icons/user-helmet-safety/index.d.ts +13 -0
  16. package/dist/esm/icons/user-helmet-safety/index.js +15 -0
  17. package/dist/esm/icons/user-helmet-safety/index.js.map +1 -0
  18. package/dist/esm/label-provider/core/index.d.ts +6 -0
  19. package/dist/esm/label-provider/core/index.js +9 -1
  20. package/dist/esm/label-provider/core/index.js.map +1 -1
  21. package/dist/esm/label-provider/core/label-token-defaults.js +2 -0
  22. package/dist/esm/label-provider/core/label-token-defaults.js.map +1 -1
  23. package/dist/esm/label-provider/core/label-tokens.d.ts +2 -0
  24. package/dist/esm/label-provider/core/label-tokens.js +8 -0
  25. package/dist/esm/label-provider/core/label-tokens.js.map +1 -1
  26. package/dist/esm/patterns/severity/styles.js +4 -6
  27. package/dist/esm/patterns/severity/styles.js.map +1 -1
  28. package/dist/esm/patterns/severity/template.js +1 -0
  29. package/dist/esm/patterns/severity/template.js.map +1 -1
  30. package/dist/esm/patterns/severity/testing/severity-pattern.pageobject.d.ts +1 -0
  31. package/dist/esm/patterns/severity/testing/severity-pattern.pageobject.js +7 -0
  32. package/dist/esm/patterns/severity/testing/severity-pattern.pageobject.js.map +1 -1
  33. package/dist/esm/patterns/step/models/step-internals.d.ts +1 -0
  34. package/dist/esm/patterns/step/models/step-internals.js +4 -0
  35. package/dist/esm/patterns/step/models/step-internals.js.map +1 -1
  36. package/dist/esm/patterns/step/styles.js +154 -46
  37. package/dist/esm/patterns/step/styles.js.map +1 -1
  38. package/dist/esm/patterns/step/testing/step-base.pageobject.d.ts +12 -0
  39. package/dist/esm/patterns/step/testing/step-base.pageobject.js +40 -0
  40. package/dist/esm/patterns/step/testing/step-base.pageobject.js.map +1 -0
  41. package/dist/esm/patterns/step/types.d.ts +3 -2
  42. package/dist/esm/patterns/step/types.js.map +1 -1
  43. package/dist/esm/step/template.js +14 -19
  44. package/dist/esm/step/template.js.map +1 -1
  45. package/dist/esm/step/testing/step.pageobject.d.ts +7 -0
  46. package/dist/esm/step/testing/step.pageobject.js +7 -0
  47. package/dist/esm/step/testing/step.pageobject.js.map +1 -0
  48. package/dist/esm/stepper/index.d.ts +8 -0
  49. package/dist/esm/stepper/index.js +30 -0
  50. package/dist/esm/stepper/index.js.map +1 -1
  51. package/dist/esm/stepper/styles.js +18 -1
  52. package/dist/esm/stepper/styles.js.map +1 -1
  53. package/dist/esm/stepper/template.js +6 -5
  54. package/dist/esm/stepper/template.js.map +1 -1
  55. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/label-provider/core/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAwB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EACH,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EAC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IADN,IAAI,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;yDACG;AAGnC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;wDACG;AAGlC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;qDACG;AAK1C,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,OAAO,CAAC;IACtD,QAAQ,EAAE,qBAAqB;IAC/B,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAC;AACzC,MAAM,CAAC,MAAM,oBAAoB,GAAG,4BAA4B,CAAC","sourcesContent":["import { attr } from '@ni/fast-element';\nimport { DesignSystem } from '@ni/fast-foundation';\nimport { type DesignTokensFor, LabelProviderBase } from '../base';\nimport {\n popupDismissLabel,\n numericDecrementLabel,\n numericIncrementLabel,\n popupIconErrorLabel,\n popupIconWarningLabel,\n popupIconInformationLabel,\n filterSearchLabel,\n filterNoResultsLabel,\n loadingLabel,\n scrollBackwardLabel,\n scrollForwardLabel,\n itemRemoveLabel\n} from './label-tokens';\nimport { styles } from '../base/styles';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-label-provider-core': LabelProviderCore;\n }\n}\n\nconst supportedLabels = {\n popupDismiss: popupDismissLabel,\n numericDecrement: numericDecrementLabel,\n numericIncrement: numericIncrementLabel,\n popupIconError: popupIconErrorLabel,\n popupIconWarning: popupIconWarningLabel,\n popupIconInformation: popupIconInformationLabel,\n filterSearch: filterSearchLabel,\n filterNoResults: filterNoResultsLabel,\n loading: loadingLabel,\n scrollBackward: scrollBackwardLabel,\n scrollForward: scrollForwardLabel,\n itemRemove: itemRemoveLabel\n} as const;\n\n/**\n * Core label provider for Nimble\n */\nexport class LabelProviderCore\n extends LabelProviderBase<typeof supportedLabels>\n implements DesignTokensFor<typeof supportedLabels> {\n @attr({ attribute: 'popup-dismiss' })\n public popupDismiss: string | undefined;\n\n @attr({ attribute: 'numeric-decrement' })\n public numericDecrement: string | undefined;\n\n @attr({ attribute: 'numeric-increment' })\n public numericIncrement: string | undefined;\n\n @attr({ attribute: 'popup-icon-error' })\n public popupIconError: string | undefined;\n\n @attr({ attribute: 'popup-icon-warning' })\n public popupIconWarning: string | undefined;\n\n @attr({ attribute: 'popup-icon-information' })\n public popupIconInformation: string | undefined;\n\n @attr({ attribute: 'filter-search' })\n public filterSearch: string | undefined;\n\n @attr({ attribute: 'filter-no-results' })\n public filterNoResults: string | undefined;\n\n @attr({ attribute: 'loading' })\n public loading: string | undefined;\n\n @attr({ attribute: 'scroll-backward' })\n public scrollBackward: string | undefined;\n\n @attr({ attribute: 'scroll-forward' })\n public scrollForward: string | undefined;\n\n @attr({ attribute: 'item-remove' })\n public itemRemove: string | undefined;\n\n protected override readonly supportedLabels = supportedLabels;\n}\n\nconst nimbleLabelProviderCore = LabelProviderCore.compose({\n baseName: 'label-provider-core',\n styles\n});\n\nDesignSystem.getOrCreate()\n .withPrefix('nimble')\n .register(nimbleLabelProviderCore());\nexport const labelProviderCoreTag = 'nimble-label-provider-core';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/label-provider/core/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAwB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EACH,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,MAAM,E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;0DACE;AAGpC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;kDACI;AAG5B;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;yDACG;AAGnC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;wDACG;AAGlC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;qDACG;AAK1C,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,OAAO,CAAC;IACtD,QAAQ,EAAE,qBAAqB;IAC/B,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAC;AACzC,MAAM,CAAC,MAAM,oBAAoB,GAAG,4BAA4B,CAAC","sourcesContent":["import { attr } from '@ni/fast-element';\nimport { DesignSystem } from '@ni/fast-foundation';\nimport { type DesignTokensFor, LabelProviderBase } from '../base';\nimport {\n popupDismissLabel,\n numericDecrementLabel,\n numericIncrementLabel,\n popupIconErrorLabel,\n popupIconWarningLabel,\n popupIconCompletedLabel,\n popupIconCurrentLabel,\n popupIconInformationLabel,\n filterSearchLabel,\n filterNoResultsLabel,\n loadingLabel,\n scrollBackwardLabel,\n scrollForwardLabel,\n itemRemoveLabel\n} from './label-tokens';\nimport { styles } from '../base/styles';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-label-provider-core': LabelProviderCore;\n }\n}\n\nconst supportedLabels = {\n popupDismiss: popupDismissLabel,\n numericDecrement: numericDecrementLabel,\n numericIncrement: numericIncrementLabel,\n popupIconError: popupIconErrorLabel,\n popupIconWarning: popupIconWarningLabel,\n popupIconCompleted: popupIconCompletedLabel,\n popupIconCurrent: popupIconCurrentLabel,\n popupIconInformation: popupIconInformationLabel,\n filterSearch: filterSearchLabel,\n filterNoResults: filterNoResultsLabel,\n loading: loadingLabel,\n scrollBackward: scrollBackwardLabel,\n scrollForward: scrollForwardLabel,\n itemRemove: itemRemoveLabel\n} as const;\n\n/**\n * Core label provider for Nimble\n */\nexport class LabelProviderCore\n extends LabelProviderBase<typeof supportedLabels>\n implements DesignTokensFor<typeof supportedLabels> {\n @attr({ attribute: 'popup-dismiss' })\n public popupDismiss: string | undefined;\n\n @attr({ attribute: 'numeric-decrement' })\n public numericDecrement: string | undefined;\n\n @attr({ attribute: 'numeric-increment' })\n public numericIncrement: string | undefined;\n\n @attr({ attribute: 'popup-icon-error' })\n public popupIconError: string | undefined;\n\n @attr({ attribute: 'popup-icon-warning' })\n public popupIconWarning: string | undefined;\n\n @attr({ attribute: 'popup-icon-completed' })\n public popupIconCompleted: string | undefined;\n\n @attr({ attribute: 'popup-icon-current' })\n public popupIconCurrent: string | undefined;\n\n @attr({ attribute: 'popup-icon-information' })\n public popupIconInformation: string | undefined;\n\n @attr({ attribute: 'filter-search' })\n public filterSearch: string | undefined;\n\n @attr({ attribute: 'filter-no-results' })\n public filterNoResults: string | undefined;\n\n @attr({ attribute: 'loading' })\n public loading: string | undefined;\n\n @attr({ attribute: 'scroll-backward' })\n public scrollBackward: string | undefined;\n\n @attr({ attribute: 'scroll-forward' })\n public scrollForward: string | undefined;\n\n @attr({ attribute: 'item-remove' })\n public itemRemove: string | undefined;\n\n protected override readonly supportedLabels = supportedLabels;\n}\n\nconst nimbleLabelProviderCore = LabelProviderCore.compose({\n baseName: 'label-provider-core',\n styles\n});\n\nDesignSystem.getOrCreate()\n .withPrefix('nimble')\n .register(nimbleLabelProviderCore());\nexport const labelProviderCoreTag = 'nimble-label-provider-core';\n"]}
@@ -4,6 +4,8 @@ export const coreLabelDefaults = {
4
4
  numericDecrementLabel: 'Decrement',
5
5
  popupIconErrorLabel: 'Error',
6
6
  popupIconWarningLabel: 'Warning',
7
+ popupIconCompletedLabel: 'Completed',
8
+ popupIconCurrentLabel: 'Current',
7
9
  popupIconInformationLabel: 'Information',
8
10
  filterSearchLabel: 'Search',
9
11
  filterNoResultsLabel: 'No items found',
@@ -1 +1 @@
1
- {"version":3,"file":"label-token-defaults.js","sourceRoot":"","sources":["../../../../src/label-provider/core/label-token-defaults.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAA4C;IACtE,iBAAiB,EAAE,OAAO;IAC1B,qBAAqB,EAAE,WAAW;IAClC,qBAAqB,EAAE,WAAW;IAClC,mBAAmB,EAAE,OAAO;IAC5B,qBAAqB,EAAE,SAAS;IAChC,yBAAyB,EAAE,aAAa;IACxC,iBAAiB,EAAE,QAAQ;IAC3B,oBAAoB,EAAE,gBAAgB;IACtC,YAAY,EAAE,UAAU;IACxB,mBAAmB,EAAE,iBAAiB;IACtC,kBAAkB,EAAE,gBAAgB;IACpC,eAAe,EAAE,QAAQ;CAC5B,CAAC","sourcesContent":["import type * as TokensNamespace from './label-tokens';\n\ntype TokenName = keyof typeof TokensNamespace;\n\nexport const coreLabelDefaults: { readonly [key in TokenName]: string } = {\n popupDismissLabel: 'Close',\n numericIncrementLabel: 'Increment',\n numericDecrementLabel: 'Decrement',\n popupIconErrorLabel: 'Error',\n popupIconWarningLabel: 'Warning',\n popupIconInformationLabel: 'Information',\n filterSearchLabel: 'Search',\n filterNoResultsLabel: 'No items found',\n loadingLabel: 'Loading…',\n scrollBackwardLabel: 'Scroll backward',\n scrollForwardLabel: 'Scroll forward',\n itemRemoveLabel: 'Remove'\n};\n"]}
1
+ {"version":3,"file":"label-token-defaults.js","sourceRoot":"","sources":["../../../../src/label-provider/core/label-token-defaults.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAA4C;IACtE,iBAAiB,EAAE,OAAO;IAC1B,qBAAqB,EAAE,WAAW;IAClC,qBAAqB,EAAE,WAAW;IAClC,mBAAmB,EAAE,OAAO;IAC5B,qBAAqB,EAAE,SAAS;IAChC,uBAAuB,EAAE,WAAW;IACpC,qBAAqB,EAAE,SAAS;IAChC,yBAAyB,EAAE,aAAa;IACxC,iBAAiB,EAAE,QAAQ;IAC3B,oBAAoB,EAAE,gBAAgB;IACtC,YAAY,EAAE,UAAU;IACxB,mBAAmB,EAAE,iBAAiB;IACtC,kBAAkB,EAAE,gBAAgB;IACpC,eAAe,EAAE,QAAQ;CAC5B,CAAC","sourcesContent":["import type * as TokensNamespace from './label-tokens';\n\ntype TokenName = keyof typeof TokensNamespace;\n\nexport const coreLabelDefaults: { readonly [key in TokenName]: string } = {\n popupDismissLabel: 'Close',\n numericIncrementLabel: 'Increment',\n numericDecrementLabel: 'Decrement',\n popupIconErrorLabel: 'Error',\n popupIconWarningLabel: 'Warning',\n popupIconCompletedLabel: 'Completed',\n popupIconCurrentLabel: 'Current',\n popupIconInformationLabel: 'Information',\n filterSearchLabel: 'Search',\n filterNoResultsLabel: 'No items found',\n loadingLabel: 'Loading…',\n scrollBackwardLabel: 'Scroll backward',\n scrollForwardLabel: 'Scroll forward',\n itemRemoveLabel: 'Remove'\n};\n"]}
@@ -4,6 +4,8 @@ export declare const numericDecrementLabel: DesignToken<string>;
4
4
  export declare const numericIncrementLabel: DesignToken<string>;
5
5
  export declare const popupIconErrorLabel: DesignToken<string>;
6
6
  export declare const popupIconWarningLabel: DesignToken<string>;
7
+ export declare const popupIconCompletedLabel: DesignToken<string>;
8
+ export declare const popupIconCurrentLabel: DesignToken<string>;
7
9
  export declare const popupIconInformationLabel: DesignToken<string>;
8
10
  export declare const filterSearchLabel: DesignToken<string>;
9
11
  export declare const filterNoResultsLabel: DesignToken<string>;
@@ -20,6 +20,14 @@ export const popupIconWarningLabel = DesignToken.create({
20
20
  name: 'popup-icon-warning-label',
21
21
  cssCustomPropertyName: null
22
22
  }).withDefault(coreLabelDefaults.popupIconWarningLabel);
23
+ export const popupIconCompletedLabel = DesignToken.create({
24
+ name: 'popup-icon-completed-label',
25
+ cssCustomPropertyName: null
26
+ }).withDefault(coreLabelDefaults.popupIconCompletedLabel);
27
+ export const popupIconCurrentLabel = DesignToken.create({
28
+ name: 'popup-icon-current-label',
29
+ cssCustomPropertyName: null
30
+ }).withDefault(coreLabelDefaults.popupIconCurrentLabel);
23
31
  export const popupIconInformationLabel = DesignToken.create({
24
32
  name: 'popup-icon-information-label',
25
33
  cssCustomPropertyName: null
@@ -1 +1 @@
1
- {"version":3,"file":"label-tokens.js","sourceRoot":"","sources":["../../../../src/label-provider/core/label-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC,MAAM,CAAS;IACxD,IAAI,EAAE,qBAAqB;IAC3B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC5D,IAAI,EAAE,yBAAyB;IAC/B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC5D,IAAI,EAAE,yBAAyB;IAC/B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC1D,IAAI,EAAE,wBAAwB;IAC9B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAEtD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC5D,IAAI,EAAE,0BAA0B;IAChC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,W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B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import { DesignToken } from '@ni/fast-foundation';\nimport { coreLabelDefaults } from './label-token-defaults';\n\nexport const popupDismissLabel = DesignToken.create<string>({\n name: 'popup-dismiss-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupDismissLabel);\n\nexport const numericDecrementLabel = DesignToken.create<string>({\n name: 'numeric-decrement-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.numericDecrementLabel);\n\nexport const numericIncrementLabel = DesignToken.create<string>({\n name: 'numeric-increment-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.numericIncrementLabel);\n\nexport const popupIconErrorLabel = DesignToken.create<string>({\n name: 'popup-icon-error-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupIconErrorLabel);\n\nexport const popupIconWarningLabel = DesignToken.create<string>({\n name: 'popup-icon-warning-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupIconWarningLabel);\n\nexport const popupIconInformationLabel = DesignToken.create<string>({\n name: 'popup-icon-information-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupIconInformationLabel);\n\nexport const filterSearchLabel = DesignToken.create<string>({\n name: 'filter-search-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.filterSearchLabel);\n\nexport const filterNoResultsLabel = DesignToken.create<string>({\n name: 'filter-no-results-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.filterNoResultsLabel);\n\nexport const loadingLabel = DesignToken.create<string>({\n name: 'loading-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.loadingLabel);\n\nexport const scrollBackwardLabel = DesignToken.create<string>({\n name: 'scroll-backward-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.scrollBackwardLabel);\n\nexport const scrollForwardLabel = DesignToken.create<string>({\n name: 'scroll-forward-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.scrollForwardLabel);\n\nexport const itemRemoveLabel = DesignToken.create<string>({\n name: 'item-remove-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.itemRemoveLabel);\n"]}
1
+ {"version":3,"file":"label-tokens.js","sourceRoot":"","sources":["../../../../src/label-provider/core/label-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC,MAAM,CAAS;IACxD,IAAI,EAAE,qBAAqB;IAC3B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC5D,IAAI,EAAE,yBAAyB;IAC/B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC5D,IAAI,EAAE,yBAAyB;IAC/B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC1D,IAAI,EAAE,wBAAwB;IAC9B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAEtD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC5D,IAAI,EAAE,0BAA0B;IAChC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW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B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAEtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAM,CAAS;IACzD,IAAI,EAAE,sBAAsB;IAC5B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;AAErD,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,CAAS;IACtD,IAAI,EAAE,mBAAmB;IACzB,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import { DesignToken } from '@ni/fast-foundation';\nimport { coreLabelDefaults } from './label-token-defaults';\n\nexport const popupDismissLabel = DesignToken.create<string>({\n name: 'popup-dismiss-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupDismissLabel);\n\nexport const numericDecrementLabel = DesignToken.create<string>({\n name: 'numeric-decrement-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.numericDecrementLabel);\n\nexport const numericIncrementLabel = DesignToken.create<string>({\n name: 'numeric-increment-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.numericIncrementLabel);\n\nexport const popupIconErrorLabel = DesignToken.create<string>({\n name: 'popup-icon-error-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupIconErrorLabel);\n\nexport const popupIconWarningLabel = DesignToken.create<string>({\n name: 'popup-icon-warning-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupIconWarningLabel);\n\nexport const popupIconCompletedLabel = DesignToken.create<string>({\n name: 'popup-icon-completed-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupIconCompletedLabel);\n\nexport const popupIconCurrentLabel = DesignToken.create<string>({\n name: 'popup-icon-current-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupIconCurrentLabel);\n\nexport const popupIconInformationLabel = DesignToken.create<string>({\n name: 'popup-icon-information-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupIconInformationLabel);\n\nexport const filterSearchLabel = DesignToken.create<string>({\n name: 'filter-search-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.filterSearchLabel);\n\nexport const filterNoResultsLabel = DesignToken.create<string>({\n name: 'filter-no-results-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.filterNoResultsLabel);\n\nexport const loadingLabel = DesignToken.create<string>({\n name: 'loading-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.loadingLabel);\n\nexport const scrollBackwardLabel = DesignToken.create<string>({\n name: 'scroll-backward-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.scrollBackwardLabel);\n\nexport const scrollForwardLabel = DesignToken.create<string>({\n name: 'scroll-forward-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.scrollForwardLabel);\n\nexport const itemRemoveLabel = DesignToken.create<string>({\n name: 'item-remove-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.itemRemoveLabel);\n"]}
@@ -1,5 +1,5 @@
1
1
  import { cssPartial } from '@ni/fast-element';
2
- import { failColor, errorTextFontLineHeight, errorTextFont, buttonLabelFontColor, warningFontColor } from '../../theme-provider/design-tokens';
2
+ import { failColor, errorTextFont, buttonLabelFontColor, warningFontColor, } from '../../theme-provider/design-tokens';
3
3
  // These styles end up inside a @layer block so must use the
4
4
  // cssPartial tag instead of the css tag
5
5
  export const styles = cssPartial `
@@ -7,16 +7,14 @@ export const styles = cssPartial `
7
7
  display: none;
8
8
  font: ${errorTextFont};
9
9
  color: ${buttonLabelFontColor};
10
- width: 100%;
11
10
  position: absolute;
12
- ${'' /* The -2px modifier of the bottom position is to intentionally have the severity text slightly overlap the control by 2px */}
13
- bottom: calc(-1 * (${errorTextFontLineHeight} - 2px));
14
- left: 0px;
11
+ padding: 0;
15
12
  overflow: hidden;
16
13
  text-overflow: ellipsis;
17
14
  white-space: nowrap;
15
+ width: 100%;
18
16
  }
19
-
17
+
20
18
  :host([severity="error"]) .severity-text {
21
19
  display: block;
22
20
  color: ${failColor};
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/patterns/severity/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACH,SAAS,EACT,uBAAuB,EACvB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EACnB,MAAM,oCAAoC,CAAC;AAE5C,4DAA4D;AAC5D,wCAAwC;AACxC,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAA;;;gBAGhB,aAAa;iBACZ,oBAAoB;;;UAG3B,EAAE,CAAC,6HAA6H;6BAC7G,uBAAuB;;;;;;;;;iBASnC,SAAS;;;;;iBAKT,gBAAgB;;;;;CAKhC,CAAC","sourcesContent":["import { cssPartial } from '@ni/fast-element';\nimport {\n failColor,\n errorTextFontLineHeight,\n errorTextFont,\n buttonLabelFontColor,\n warningFontColor\n} from '../../theme-provider/design-tokens';\n\n// These styles end up inside a @layer block so must use the\n// cssPartial tag instead of the css tag\nexport const styles = cssPartial`\n .severity-text {\n display: none;\n font: ${errorTextFont};\n color: ${buttonLabelFontColor};\n width: 100%;\n position: absolute;\n ${'' /* The -2px modifier of the bottom position is to intentionally have the severity text slightly overlap the control by 2px */}\n bottom: calc(-1 * (${errorTextFontLineHeight} - 2px));\n left: 0px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n \n :host([severity=\"error\"]) .severity-text {\n display: block;\n color: ${failColor};\n }\n\n :host([severity=\"warning\"]) .severity-text {\n display: block;\n color: ${warningFontColor};\n }\n .severity-text:empty {\n display: none;\n }\n`;\n"]}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/patterns/severity/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACH,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,gBAAgB,GACnB,MAAM,oCAAoC,CAAC;AAE5C,4DAA4D;AAC5D,wCAAwC;AACxC,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAA;;;gBAGhB,aAAa;iBACZ,oBAAoB;;;;;;;;;;;iBAWpB,SAAS;;;;;iBAKT,gBAAgB;;;;;CAKhC,CAAC","sourcesContent":["import { cssPartial } from '@ni/fast-element';\nimport {\n failColor,\n errorTextFont,\n buttonLabelFontColor,\n warningFontColor,\n} from '../../theme-provider/design-tokens';\n\n// These styles end up inside a @layer block so must use the\n// cssPartial tag instead of the css tag\nexport const styles = cssPartial`\n .severity-text {\n display: none;\n font: ${errorTextFont};\n color: ${buttonLabelFontColor};\n position: absolute;\n padding: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n }\n\n :host([severity=\"error\"]) .severity-text {\n display: block;\n color: ${failColor};\n }\n\n :host([severity=\"warning\"]) .severity-text {\n display: block;\n color: ${warningFontColor};\n }\n .severity-text:empty {\n display: none;\n }\n`;\n"]}
@@ -6,5 +6,6 @@ export const severityTextTemplate = html `
6
6
  ${overflow('severityHasOverflow')}
7
7
  title="${x => (x.severityHasOverflow && x.severityText ? x.severityText : undefined)}"
8
8
  aria-live="polite"
9
+ @click="${(_x, c) => c.event.stopImmediatePropagation()}"
9
10
  >${x => x.severityText}</div>`;
10
11
  //# sourceMappingURL=template.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/patterns/severity/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAE9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAiB;;;UAG/C,QAAQ,CAAC,qBAAqB,CAAC;iBACxB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;;OAErF,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,QAAQ,CAAC","sourcesContent":["import { html } from '@ni/fast-element';\nimport type { SeverityPattern } from './types';\nimport { overflow } from '../../utilities/directive/overflow';\n\nexport const severityTextTemplate = html<SeverityPattern>`\n <div\n class=\"severity-text\"\n ${overflow('severityHasOverflow')}\n title=\"${x => (x.severityHasOverflow && x.severityText ? x.severityText : undefined)}\"\n aria-live=\"polite\"\n >${x => x.severityText}</div>`;\n"]}
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/patterns/severity/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAE9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAiB;;;UAG/C,QAAQ,CAAC,qBAAqB,CAAC;iBACxB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;;kBAE1E,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,wBAAwB,EAAE;OACxD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,QAAQ,CAAC","sourcesContent":["import { html } from '@ni/fast-element';\nimport type { SeverityPattern } from './types';\nimport { overflow } from '../../utilities/directive/overflow';\n\nexport const severityTextTemplate = html<SeverityPattern>`\n <div\n class=\"severity-text\"\n ${overflow('severityHasOverflow')}\n title=\"${x => (x.severityHasOverflow && x.severityText ? x.severityText : undefined)}\"\n aria-live=\"polite\"\n @click=\"${(_x, c) => c.event.stopImmediatePropagation()}\"\n >${x => x.severityText}</div>`;\n"]}
@@ -8,5 +8,6 @@ export declare class SeverityPatternPageObject {
8
8
  getDisplayedSeverityText(): string;
9
9
  getSeverityTextTitle(): string;
10
10
  dispatchEventToSeverityText(event: MouseEvent): void;
11
+ clickSeverityText(): void;
11
12
  private getSeverityTextElement;
12
13
  }
@@ -29,6 +29,13 @@ export class SeverityPatternPageObject {
29
29
  severityTextDiv.dispatchEvent(event);
30
30
  processUpdates();
31
31
  }
32
+ clickSeverityText() {
33
+ const severityTextDiv = this.getSeverityTextElement();
34
+ if (!severityTextDiv) {
35
+ throw new Error('Severity text element not found');
36
+ }
37
+ severityTextDiv.click();
38
+ }
32
39
  getSeverityTextElement() {
33
40
  return this.element.shadowRoot.querySelector('.severity-text');
34
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"severity-pattern.pageobject.js","sourceRoot":"","sources":["../../../../../src/patterns/severity/testing/severity-pattern.pageobject.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE;;GAEG;AACH,MAAM,OAAO,yBAAyB;IAClC,YAAoC,OAA0B;QAA1B,YAAO,GAAP,OAAO,CAAmB;IAAG,CAAC;IAE3D,wBAAwB;QAC3B,MAAM,eAAe,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;QACtD,IACI,CAAC,eAAe;eACb,gBAAgB,CAAC,eAAe,CAAC,CAAC,OAAO,KAAK,MAAM,EACzD,CAAC;YACC,OAAO,EAAE,CAAC;QACd,CAAC;QACD,OAAO,eAAe,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrD,CAAC;IAEM,oBAAoB;QACvB,MAAM,eAAe,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;QACtD,IAAI,CAAC,eAAe,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACvD,CAAC;QACD,OAAO,eAAe,CAAC,KAAK,CAAC;IACjC,CAAC;IAEM,2BAA2B,CAAC,KAAiB;QAChD,MAAM,eAAe,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;QACtD,IAAI,CAAC,eAAe,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACvD,CAAC;QACD,eAAe,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACrC,cAAc,EAAE,CAAC;IACrB,CAAC;IAEO,sBAAsB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAW,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACpE,CAAC;CACJ","sourcesContent":["import type { FoundationElement } from '@ni/fast-foundation';\nimport { processUpdates } from '../../../testing/async-helpers';\n\n/**\n * A page object for the elements that use the error pattern mixin.\n */\nexport class SeverityPatternPageObject {\n public constructor(private readonly element: FoundationElement) {}\n\n public getDisplayedSeverityText(): string {\n const severityTextDiv = this.getSeverityTextElement();\n if (\n !severityTextDiv\n || getComputedStyle(severityTextDiv).display === 'none'\n ) {\n return '';\n }\n return severityTextDiv.textContent?.trim() ?? '';\n }\n\n public getSeverityTextTitle(): string {\n const severityTextDiv = this.getSeverityTextElement();\n if (!severityTextDiv) {\n throw new Error('Severity text element not found');\n }\n return severityTextDiv.title;\n }\n\n public dispatchEventToSeverityText(event: MouseEvent): void {\n const severityTextDiv = this.getSeverityTextElement();\n if (!severityTextDiv) {\n throw new Error('Severity text element not found');\n }\n severityTextDiv.dispatchEvent(event);\n processUpdates();\n }\n\n private getSeverityTextElement(): HTMLDivElement | null {\n return this.element.shadowRoot!.querySelector('.severity-text');\n }\n}\n"]}
1
+ {"version":3,"file":"severity-pattern.pageobject.js","sourceRoot":"","sources":["../../../../../src/patterns/severity/testing/severity-pattern.pageobject.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAA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from '@ni/fast-foundation';\nimport { processUpdates } from '../../../testing/async-helpers';\n\n/**\n * A page object for the elements that use the error pattern mixin.\n */\nexport class SeverityPatternPageObject {\n public constructor(private readonly element: FoundationElement) {}\n\n public getDisplayedSeverityText(): string {\n const severityTextDiv = this.getSeverityTextElement();\n if (\n !severityTextDiv\n || getComputedStyle(severityTextDiv).display === 'none'\n ) {\n return '';\n }\n return severityTextDiv.textContent?.trim() ?? '';\n }\n\n public getSeverityTextTitle(): string {\n const severityTextDiv = this.getSeverityTextElement();\n if (!severityTextDiv) {\n throw new Error('Severity text element not found');\n }\n return severityTextDiv.title;\n }\n\n public dispatchEventToSeverityText(event: MouseEvent): void {\n const severityTextDiv = this.getSeverityTextElement();\n if (!severityTextDiv) {\n throw new Error('Severity text element not found');\n }\n severityTextDiv.dispatchEvent(event);\n processUpdates();\n }\n\n public clickSeverityText(): void {\n const severityTextDiv = this.getSeverityTextElement();\n if (!severityTextDiv) {\n throw new Error('Severity text element not found');\n }\n severityTextDiv.click();\n }\n\n private getSeverityTextElement(): HTMLDivElement | null {\n return this.element.shadowRoot!.querySelector('.severity-text');\n }\n}\n"]}
@@ -5,4 +5,5 @@ import { StepperOrientation } from '../../../stepper/types';
5
5
  export declare class StepInternals {
6
6
  orientation: StepperOrientation;
7
7
  last: boolean;
8
+ position: number;
8
9
  }
@@ -8,6 +8,7 @@ export class StepInternals {
8
8
  constructor() {
9
9
  this.orientation = StepperOrientation.horizontal;
10
10
  this.last = false;
11
+ this.position = 1;
11
12
  }
12
13
  }
13
14
  __decorate([
@@ -16,4 +17,7 @@ __decorate([
16
17
  __decorate([
17
18
  observable
18
19
  ], StepInternals.prototype, "last", void 0);
20
+ __decorate([
21
+ observable
22
+ ], StepInternals.prototype, "position", void 0);
19
23
  //# sourceMappingURL=step-internals.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"step-internals.js","sourceRoot":"","sources":["../../../../../src/patterns/step/models/step-internals.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,MAAM,OAAO,aAAa;IAA1B;QAEW,gBAAW,GAAuB,kBAAkB,CAAC,UAAU,CAAC;QAGhE,SAAI,GAAG,KAAK,CAAC;IACxB,CAAC;CAAA;AAJU;IADN,UAAU;kDAC4D;AAGhE;IADN,UAAU;2CACS","sourcesContent":["import { observable } from '@ni/fast-element';\nimport { StepperOrientation } from '../../../stepper/types';\n\n/**\n * Internal properties configurable for a step\n */\nexport class StepInternals {\n @observable\n public orientation: StepperOrientation = StepperOrientation.horizontal;\n\n @observable\n public last = false;\n}\n"]}
1
+ {"version":3,"file":"step-internals.js","sourceRoot":"","sources":["../../../../../src/patterns/step/models/step-internals.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,MAAM,OAAO,aAAa;IAA1B;QAEW,gBAAW,GAAuB,kBAAkB,CAAC,UAAU,CAAC;QAGhE,SAAI,GAAG,KAAK,CAAC;QAGb,aAAQ,GAAG,CAAC,CAAC;IACxB,CAAC;CAAA;AAPU;IADN,UAAU;kDAC4D;AAGhE;IADN,UAAU;2CACS;AAGb;IADN,UAAU;+CACS","sourcesContent":["import { observable } from '@ni/fast-element';\nimport { StepperOrientation } from '../../../stepper/types';\n\n/**\n * Internal properties configurable for a step\n */\nexport class StepInternals {\n @observable\n public orientation: StepperOrientation = StepperOrientation.horizontal;\n\n @observable\n public last = false;\n\n @observable\n public position = 1;\n}\n"]}
@@ -1,12 +1,13 @@
1
1
  import { css } from '@ni/fast-element';
2
2
  import { Black15, Black91, White } from '@ni/nimble-tokens/dist/styledictionary/js/tokens';
3
3
  import { display } from '../../utilities/style/display';
4
- import { buttonLabelFont, buttonLabelFontColor, smallPadding, bodyFont, errorTextFont, controlSlimHeight, borderRgbPartialColor, borderHoverColor, borderWidth, smallDelay, fillSelectedColor, passColor, failColor, warningColor, buttonLabelDisabledFontColor, iconColor, menuMinWidth, standardPadding, controlHeight, errorTextFontLineHeight } from '../../theme-provider/design-tokens';
4
+ import { buttonLabelFont, buttonLabelFontColor, smallPadding, bodyFont, errorTextFont, controlSlimHeight, borderRgbPartialColor, borderHoverColor, borderWidth, smallDelay, fillSelectedColor, passColor, failColor, warningColor, buttonLabelDisabledFontColor, iconColor, standardPadding, controlHeight, errorTextFontLineHeight, } from '../../theme-provider/design-tokens';
5
5
  import { styles as severityStyles } from '../severity/styles';
6
6
  import { focusVisible } from '../../utilities/style/focus';
7
7
  import { userSelectNone } from '../../utilities/style/user-select';
8
8
  import { themeBehavior } from '../../utilities/style/theme';
9
9
  import { Theme } from '../../theme-provider/types';
10
+ import { accessiblyHidden } from '../../utilities/style/accessibly-hidden';
10
11
  export const styles = css `
11
12
  @layer base, hover, focusVisible, active, disabled, top;
12
13
 
@@ -14,9 +15,6 @@ export const styles = css `
14
15
  ${display('inline-flex')}
15
16
  ${severityStyles}
16
17
  :host {
17
- ${'' /* Based on text layout: Top padding + title height + subtitle height + bottom padding */}
18
- height: calc(${smallPadding} + ${controlSlimHeight} + ${errorTextFontLineHeight} + ${smallPadding});
19
- width: ${menuMinWidth};
20
18
  color: ${buttonLabelFontColor};
21
19
  font: ${buttonLabelFont};
22
20
  white-space: nowrap;
@@ -30,21 +28,36 @@ export const styles = css `
30
28
  width: 100%;
31
29
  height: 100%;
32
30
  position: relative;
31
+ list-style: none;
32
+ --ni-private-step-content-height: calc(${smallPadding} + ${controlSlimHeight} + ${errorTextFontLineHeight});
33
+ --ni-private-step-content-offset: calc(${controlHeight} + ${smallPadding});
33
34
  }
34
35
 
35
- .control {
36
- display: inline-flex;
37
- align-items: start;
38
- justify-content: flex-start;
36
+ .control {
37
+ display: inline-grid;
39
38
  height: 100%;
40
39
  width: 100%;
40
+ grid-template-areas:
41
+ "icon top-spacer top-spacer"
42
+ "icon title line"
43
+ "icon subtitle subtitle";
44
+ grid-template-columns:
45
+ ${controlHeight} ${'' /* Icon width */}
46
+ min-content ${'' /* Show the full title and subtitle */}
47
+ 1fr; ${'' /* Line is only fr unit so fills remaining space */}
48
+ grid-template-rows:
49
+ ${smallPadding}
50
+ ${controlSlimHeight}
51
+ min-content;
52
+ column-gap: 4px;
53
+
54
+ align-items: start;
55
+ margin: 0;
56
+ padding: 0;
41
57
  color: inherit;
42
58
  background-color: transparent;
43
- gap: ${smallPadding};
44
59
  cursor: pointer;
45
60
  outline: none;
46
- margin: 0;
47
- padding: 0 ${smallPadding} 0 0;
48
61
  --ni-private-step-icon-background-full-size: 100% 100%;
49
62
  ${'' /* 6px = (2px icon border + 1px inset) * 2 sides */}
50
63
  --ni-private-step-icon-background-inset-size: calc(100% - 6px) calc(100% - 6px);
@@ -58,6 +71,70 @@ export const styles = css `
58
71
  --ni-private-step-line-color: rgba(${borderRgbPartialColor}, 0.1);
59
72
  }
60
73
 
74
+ .container.last .control {
75
+ grid-template-areas:
76
+ "icon top-spacer"
77
+ "icon title"
78
+ "icon subtitle";
79
+ grid-template-columns:
80
+ ${controlHeight}
81
+ min-content;
82
+ grid-template-rows:
83
+ ${smallPadding}
84
+ ${controlSlimHeight}
85
+ min-content;
86
+ }
87
+
88
+ .container.vertical .control {
89
+ ${'' /*
90
+ Defines an interaction area clip-path that leaves out the severity text so it is easily selectable:
91
+ 1----------------2
92
+ | title |
93
+ | subtitle |
94
+ | 4-------------3
95
+ | | severity-text
96
+ | |
97
+ 6--5
98
+ */}
99
+ clip-path: polygon(
100
+ 0% 0%,
101
+ 100% 0%,
102
+ 100% var(--ni-private-step-content-height),
103
+ var(--ni-private-step-content-offset) var(--ni-private-step-content-height),
104
+ var(--ni-private-step-content-offset) 100%,
105
+ 0% 100%
106
+ );
107
+ grid-template-areas:
108
+ "icon top-spacer"
109
+ "icon title"
110
+ "icon subtitle"
111
+ "line subtitle"
112
+ "line .";
113
+ grid-template-columns:
114
+ ${controlHeight}
115
+ min-content;
116
+ grid-template-rows:
117
+ ${smallPadding}
118
+ ${controlSlimHeight}
119
+ calc(${controlHeight} - ${smallPadding} - ${controlSlimHeight})
120
+ min-content
121
+ 1fr;
122
+ }
123
+
124
+ .container.vertical.last .control {
125
+ grid-template-areas:
126
+ "icon top-spacer"
127
+ "icon title"
128
+ "icon subtitle";
129
+ grid-template-columns:
130
+ ${controlHeight}
131
+ min-content;
132
+ grid-template-rows:
133
+ ${smallPadding}
134
+ ${controlSlimHeight}
135
+ min-content;
136
+ }
137
+
61
138
  :host([severity="error"]) .control {
62
139
  --ni-private-step-icon-color: ${failColor};
63
140
  --ni-private-step-icon-border-color: ${failColor};
@@ -91,6 +168,7 @@ export const styles = css `
91
168
  }
92
169
 
93
170
  .icon {
171
+ grid-area: icon;
94
172
  display: inline-flex;
95
173
  align-items: center;
96
174
  justify-content: center;
@@ -110,7 +188,7 @@ export const styles = css `
110
188
  ${'' /* Workaround to prevent aliasing on radial-gradient boundaries, see:
111
189
  https://frontendmasters.com/blog/obsessing-over-smooth-radial-gradient-disc-edges
112
190
  */}
113
- var(--ni-private-step-icon-background-color) calc(100% - 1px/var(--ni-private-device-resolution)),
191
+ var(--ni-private-step-icon-background-color) calc(100% - 1px/var(--ni-private-device-pixel-ratio, 1)),
114
192
  transparent 100%
115
193
  );
116
194
  background-origin: border-box;
@@ -148,18 +226,22 @@ export const styles = css `
148
226
  outline-offset ${smallDelay} ease-in-out;
149
227
  }
150
228
 
151
- .icon-slot {
229
+ .current-label {
230
+ ${accessiblyHidden}
231
+ }
232
+
233
+ .step-indicator {
152
234
  display: contents;
153
235
  }
154
236
 
155
- :host([severity="error"]) .icon-slot,
156
- :host([severity="warning"]) .icon-slot,
157
- :host([severity="success"]) .icon-slot {
237
+ :host([severity="error"]) .step-indicator,
238
+ :host([severity="warning"]) .step-indicator,
239
+ :host([severity="success"]) .step-indicator {
158
240
  display: none;
159
241
  }
160
242
 
161
- :host([selected]) .icon-slot,
162
- :host([disabled]) .icon-slot {
243
+ :host([selected]) .step-indicator,
244
+ :host([disabled]) .step-indicator {
163
245
  display: contents;
164
246
  }
165
247
 
@@ -178,62 +260,80 @@ export const styles = css `
178
260
  display: none;
179
261
  }
180
262
 
181
- .content {
182
- display: inline-flex;
183
- ${'' /* Control width - icon size */}
184
- width: calc(100% - 32px);
185
- flex-direction: column;
186
- padding-top: ${smallPadding};
187
- padding-bottom: ${smallPadding};
263
+ .top-spacer {
264
+ grid-area: top-spacer;
265
+ height: ${smallPadding};
188
266
  }
189
267
 
190
- .title-wrapper {
191
- display: inline-flex;
268
+ .title {
269
+ grid-area: title;
270
+ min-width: min-content;
192
271
  height: ${controlSlimHeight};
193
- flex-direction: row;
194
- align-items: center;
195
- justify-content: start;
196
- gap: ${smallPadding};
272
+ display: inline-block;
273
+ align-content: center;
197
274
  font: ${bodyFont};
275
+ white-space: nowrap;
276
+ overflow: hidden;
277
+ text-overflow: ellipsis;
198
278
  }
199
279
 
200
280
  [part='start'] {
201
281
  display: none;
202
282
  }
203
283
 
204
- .title {
205
- display: inline-block;
206
- flex: none;
207
- white-space: nowrap;
208
- overflow: hidden;
209
- text-overflow: ellipsis;
210
- ${'' /* Content width - (gap + line min width) */}
211
- max-width: calc(100% - (${smallPadding} + ${standardPadding}));
212
- }
213
-
214
284
  [part='end'] {
215
285
  display: none;
216
286
  }
217
-
287
+
218
288
  .line {
289
+ grid-area: line;
290
+ align-self: center;
291
+ justify-self: center;
219
292
  display: inline-block;
220
- flex: 1;
293
+ width: 100%;
221
294
  min-width: ${standardPadding};
222
295
  height: 1px;
296
+ min-height: 1px;
223
297
  background: var(--ni-private-step-line-color);
298
+ background-clip: content-box;
224
299
  transform: scale(1, 1);
225
300
  transition:
226
301
  background-color ${smallDelay} ease-in-out,
227
302
  transform ${smallDelay} ease-in-out;
228
303
  }
229
304
 
305
+ .container.last .line {
306
+ display: none;
307
+ }
308
+
309
+ .container.vertical .line {
310
+ width: 1px;
311
+ min-width: 1px;
312
+ height: 100%;
313
+ padding-top: ${smallPadding};
314
+ min-height: ${standardPadding};
315
+ }
316
+
230
317
  .subtitle {
318
+ grid-area: subtitle;
319
+ display: inline-block;
320
+ min-width: min-content;
321
+ height: ${errorTextFontLineHeight};
322
+ align-content: center;
231
323
  font: ${errorTextFont};
232
324
  white-space: nowrap;
233
325
  overflow: hidden;
234
326
  text-overflow: ellipsis;
235
- ${'' /* Content width */}
236
- max-width: 100%;
327
+ }
328
+
329
+ .severity-text {
330
+ left: 0px;
331
+ top: var(--ni-private-step-content-height);
332
+ }
333
+
334
+ .container.vertical .severity-text {
335
+ width: calc(100% - var(--ni-private-step-content-offset));
336
+ left: var(--ni-private-step-content-offset);
237
337
  }
238
338
  }
239
339
 
@@ -277,6 +377,10 @@ export const styles = css `
277
377
  .control:hover .line {
278
378
  transform: scale(1, 2);
279
379
  }
380
+
381
+ .container.vertical .control:hover .line {
382
+ transform: scale(2, 1);
383
+ }
280
384
  }
281
385
 
282
386
  @layer focusVisible {
@@ -316,7 +420,7 @@ export const styles = css `
316
420
  --ni-private-step-icon-outline-inset-color: ${borderHoverColor};
317
421
  --ni-private-step-line-color: ${borderHoverColor};
318
422
  }
319
-
423
+
320
424
  .control${focusVisible} .icon {
321
425
  border-width: 2px;
322
426
  }
@@ -329,6 +433,10 @@ export const styles = css `
329
433
  .control${focusVisible} .line {
330
434
  transform: scale(1, 2);
331
435
  }
436
+
437
+ .container.vertical .control${focusVisible} .line {
438
+ transform: scale(2, 1);
439
+ }
332
440
  }
333
441
 
334
442
  @layer active {