@ni/nimble-components 15.3.2 → 15.4.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.
@@ -34,3 +34,4 @@ import './toolbar';
34
34
  import './tooltip';
35
35
  import './tree-item';
36
36
  import './tree-view';
37
+ import './wafer-map';
@@ -34,4 +34,5 @@ import './toolbar';
34
34
  import './tooltip';
35
35
  import './tree-item';
36
36
  import './tree-view';
37
+ import './wafer-map';
37
38
  //# sourceMappingURL=all-components.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,mBAAmB,CAAC;AAC3B,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,UAAU,CAAC;AAClB,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;AACpB,OAAO,YAAY,CAAC;AACpB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,eAAe,CAAC;AACvB,OAAO,QAAQ,CAAC;AAChB,OAAO,eAAe,CAAC;AACvB,OAAO,aAAa,CAAC;AACrB,OAAO,gBAAgB,CAAC;AACxB,OAAO,SAAS,CAAC;AACjB,OAAO,eAAe,CAAC;AACvB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,OAAO,CAAC;AACf,OAAO,aAAa,CAAC;AACrB,OAAO,QAAQ,CAAC;AAChB,OAAO,gBAAgB,CAAC;AACxB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC;AACnB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC"}
1
+ {"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,mBAAmB,CAAC;AAC3B,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,UAAU,CAAC;AAClB,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;AACpB,OAAO,YAAY,CAAC;AACpB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,eAAe,CAAC;AACvB,OAAO,QAAQ,CAAC;AAChB,OAAO,eAAe,CAAC;AACvB,OAAO,aAAa,CAAC;AACrB,OAAO,gBAAgB,CAAC;AACxB,OAAO,SAAS,CAAC;AACjB,OAAO,eAAe,CAAC;AACvB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,OAAO,CAAC;AACf,OAAO,aAAa,CAAC;AACrB,OAAO,QAAQ,CAAC;AAChB,OAAO,gBAAgB,CAAC;AACxB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC;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"}
@@ -0,0 +1,21 @@
1
+ import { FoundationElement } from '@microsoft/fast-foundation';
2
+ import { WaferMapColorsScale, WaferMapColorsScaleMode, WaferMapDie, WaferMapOrientation, WaferMapQuadrant } from './types';
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ 'nimble-wafer-map': WaferMap;
6
+ }
7
+ }
8
+ /**
9
+ * A nimble-styled WaferMap
10
+ */
11
+ export declare class WaferMap extends FoundationElement {
12
+ quadrant: WaferMapQuadrant;
13
+ orientation: WaferMapOrientation;
14
+ maxCharacters: number;
15
+ dieLabelsHidden: boolean;
16
+ dieLabelsSuffix: string;
17
+ colorsScaleMode: WaferMapColorsScaleMode;
18
+ highlightedValues: number[];
19
+ dies: WaferMapDie[];
20
+ colorScale: WaferMapColorsScale;
21
+ }
@@ -0,0 +1,70 @@
1
+ import { __decorate } from "tslib";
2
+ import { attr, nullableNumberConverter, observable } from '@microsoft/fast-element';
3
+ import { DesignSystem, FoundationElement } from '@microsoft/fast-foundation';
4
+ import { template } from '../theme-provider/template';
5
+ import { styles } from './styles';
6
+ import { WaferMapColorsScaleMode, WaferMapOrientation, WaferMapQuadrant } from './types';
7
+ /**
8
+ * A nimble-styled WaferMap
9
+ */
10
+ export class WaferMap extends FoundationElement {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.quadrant = WaferMapQuadrant.topLeft;
14
+ this.orientation = WaferMapOrientation.top;
15
+ this.maxCharacters = 4;
16
+ this.dieLabelsHidden = false;
17
+ this.dieLabelsSuffix = '';
18
+ this.colorsScaleMode = WaferMapColorsScaleMode.linear;
19
+ this.highlightedValues = [];
20
+ this.dies = [];
21
+ this.colorScale = {
22
+ colors: [],
23
+ values: []
24
+ };
25
+ }
26
+ }
27
+ __decorate([
28
+ attr
29
+ ], WaferMap.prototype, "quadrant", void 0);
30
+ __decorate([
31
+ attr
32
+ ], WaferMap.prototype, "orientation", void 0);
33
+ __decorate([
34
+ attr({
35
+ attribute: 'max-characters',
36
+ converter: nullableNumberConverter
37
+ })
38
+ ], WaferMap.prototype, "maxCharacters", void 0);
39
+ __decorate([
40
+ attr({
41
+ attribute: 'die-labels-hidden',
42
+ mode: 'boolean'
43
+ })
44
+ ], WaferMap.prototype, "dieLabelsHidden", void 0);
45
+ __decorate([
46
+ attr({
47
+ attribute: 'die-labels-suffix'
48
+ })
49
+ ], WaferMap.prototype, "dieLabelsSuffix", void 0);
50
+ __decorate([
51
+ attr({
52
+ attribute: 'colors-scale-mode'
53
+ })
54
+ ], WaferMap.prototype, "colorsScaleMode", void 0);
55
+ __decorate([
56
+ observable
57
+ ], WaferMap.prototype, "highlightedValues", void 0);
58
+ __decorate([
59
+ observable
60
+ ], WaferMap.prototype, "dies", void 0);
61
+ __decorate([
62
+ observable
63
+ ], WaferMap.prototype, "colorScale", void 0);
64
+ const nimbleWaferMap = WaferMap.compose({
65
+ baseName: 'wafer-map',
66
+ template,
67
+ styles
68
+ });
69
+ DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleWaferMap());
70
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/wafer-map/index.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,IAAI,EACJ,uBAAuB,EACvB,UAAU,EACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAEH,uBAAuB,EAEvB,mBAAmB,EACnB,gBAAgB,EACnB,MAAM,SAAS,CAAC;AAQjB;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,iBAAiB;IAA/C;;QAEW,aAAQ,GAAqB,gBAAgB,CAAC,OAAO,CAAC;QAGtD,gBAAW,GAAwB,mBAAmB,CAAC,GAAG,CAAC;QAM3D,kBAAa,GAAG,CAAC,CAAC;QAMlB,oBAAe,GAAG,KAAK,CAAC;QAKxB,oBAAe,GAAG,EAAE,CAAC;QAKrB,oBAAe,GAA4B,uBAAuB,CAAC,MAAM,CAAC;QAE9D,sBAAiB,GAAa,EAAE,CAAC;QACjC,SAAI,GAAkB,EAAE,CAAC;QACzB,eAAU,GAAwB;YACjD,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,EAAE;SACb,CAAC;IACN,CAAC;CAAA;AAjCG;IADC,IAAI;0CACwD;AAG7D;IADC,IAAI;6CAC6D;AAMlE;IAJC,IAAI,CAAC;QACF,SAAS,EAAE,gBAAgB;QAC3B,SAAS,EAAE,uBAAuB;KACrC,CAAC;+CACuB;AAMzB;IAJC,IAAI,CAAC;QACF,SAAS,EAAE,mBAAmB;QAC9B,IAAI,EAAE,SAAS;KAClB,CAAC;iDAC6B;AAK/B;IAHC,IAAI,CAAC;QACF,SAAS,EAAE,mBAAmB;KACjC,CAAC;iDAC0B;AAK5B;IAHC,IAAI,CAAC;QACF,SAAS,EAAE,mBAAmB;KACjC,CAAC;iDAC+E;AAErE;IAAX,UAAU;mDAAyC;AACxC;IAAX,UAAU;sCAAiC;AAChC;IAAX,UAAU;4CAGT;AAGN,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAC;IACpC,QAAQ,EAAE,WAAW;IACrB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
@@ -0,0 +1,3 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ export const styles = css ``;
3
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/wafer-map/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAE9C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { WaferMap } from '.';
2
+ export declare const template: import("@microsoft/fast-element").ViewTemplate<WaferMap, any>;
@@ -0,0 +1,3 @@
1
+ import { html } from '@microsoft/fast-element';
2
+ export const template = html ``;
3
+ //# sourceMappingURL=template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/wafer-map/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAU,EAAE,CAAC"}
@@ -0,0 +1,28 @@
1
+ export declare const WaferMapQuadrant: {
2
+ readonly bottomLeft: "bottom-left";
3
+ readonly bottomRight: "bottom-right";
4
+ readonly topLeft: "top-left";
5
+ readonly topRight: "top-right";
6
+ };
7
+ export declare type WaferMapQuadrant = typeof WaferMapQuadrant[keyof typeof WaferMapQuadrant];
8
+ export declare const WaferMapOrientation: {
9
+ readonly top: "top";
10
+ readonly bottom: "bottom";
11
+ readonly left: "left";
12
+ readonly right: "right";
13
+ };
14
+ export declare type WaferMapOrientation = typeof WaferMapOrientation[keyof typeof WaferMapOrientation];
15
+ export declare const WaferMapColorsScaleMode: {
16
+ readonly linear: "linear";
17
+ readonly ordinal: "ordinal";
18
+ };
19
+ export declare type WaferMapColorsScaleMode = typeof WaferMapColorsScaleMode[keyof typeof WaferMapColorsScaleMode];
20
+ export interface WaferMapDie {
21
+ value: number;
22
+ x: number;
23
+ y: number;
24
+ }
25
+ export interface WaferMapColorsScale {
26
+ colors: string[];
27
+ values: number[];
28
+ }
@@ -0,0 +1,17 @@
1
+ export const WaferMapQuadrant = {
2
+ bottomLeft: 'bottom-left',
3
+ bottomRight: 'bottom-right',
4
+ topLeft: 'top-left',
5
+ topRight: 'top-right'
6
+ };
7
+ export const WaferMapOrientation = {
8
+ top: 'top',
9
+ bottom: 'bottom',
10
+ left: 'left',
11
+ right: 'right'
12
+ };
13
+ export const WaferMapColorsScaleMode = {
14
+ linear: 'linear',
15
+ ordinal: 'ordinal'
16
+ };
17
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/wafer-map/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,cAAc;IAC3B,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,WAAW;CACf,CAAC;AAKX,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACR,CAAC;AAKX,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-components",
3
- "version": "15.3.2",
3
+ "version": "15.4.0",
4
4
  "description": "Styled web components for the NI Nimble Design System",
5
5
  "scripts": {
6
6
  "build": "npm run generate-icons && npm run build-components && npm run bundle-components && npm run generate-scss && npm run build-storybook",