@ni/nimble-components 18.5.2 → 18.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-components-bundle.js +211 -51
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +597 -552
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/components/row/styles.js +0 -1
- package/dist/esm/table/components/row/styles.js.map +1 -1
- package/dist/esm/table/components/row/template.js +19 -17
- package/dist/esm/table/components/row/template.js.map +1 -1
- package/dist/esm/table/template.js +5 -3
- package/dist/esm/table/template.js.map +1 -1
- package/dist/esm/table-column/base/index.d.ts +1 -0
- package/dist/esm/table-column/base/index.js +4 -0
- package/dist/esm/table-column/base/index.js.map +1 -1
- package/dist/esm/wafer-map/index.d.ts +25 -4
- package/dist/esm/wafer-map/index.js +45 -4
- package/dist/esm/wafer-map/index.js.map +1 -1
- package/dist/esm/wafer-map/modules/data-manager.d.ts +3 -1
- package/dist/esm/wafer-map/modules/data-manager.js +4 -0
- package/dist/esm/wafer-map/modules/data-manager.js.map +1 -1
- package/dist/esm/wafer-map/modules/event-coordinator.d.ts +1 -1
- package/dist/esm/wafer-map/modules/event-coordinator.js +6 -12
- package/dist/esm/wafer-map/modules/event-coordinator.js.map +1 -1
- package/dist/esm/wafer-map/modules/hover-handler.d.ts +12 -0
- package/dist/esm/wafer-map/modules/hover-handler.js +56 -0
- package/dist/esm/wafer-map/modules/hover-handler.js.map +1 -0
- package/dist/esm/wafer-map/modules/rendering.d.ts +2 -1
- package/dist/esm/wafer-map/modules/rendering.js +38 -15
- package/dist/esm/wafer-map/modules/rendering.js.map +1 -1
- package/dist/esm/wafer-map/styles.js +27 -0
- package/dist/esm/wafer-map/styles.js.map +1 -1
- package/dist/esm/wafer-map/template.js +8 -0
- package/dist/esm/wafer-map/template.js.map +1 -1
- package/dist/esm/wafer-map/types.d.ts +9 -0
- package/dist/esm/wafer-map/types.js +4 -0
- package/dist/esm/wafer-map/types.js.map +1 -1
- package/package.json +10 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { DigitalGreenLight } from '@ni/nimble-tokens/dist/styledictionary/js/tokens';
|
|
2
3
|
import { borderColor, borderWidth } from '../theme-provider/design-tokens';
|
|
3
4
|
export const styles = css `
|
|
4
5
|
:host {
|
|
@@ -57,5 +58,31 @@ export const styles = css `
|
|
|
57
58
|
display: inline-block;
|
|
58
59
|
position: absolute;
|
|
59
60
|
}
|
|
61
|
+
|
|
62
|
+
.hover-layer {
|
|
63
|
+
position: absolute;
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.hover-rect {
|
|
70
|
+
fill: transparent;
|
|
71
|
+
stroke: white;
|
|
72
|
+
outline-style: solid;
|
|
73
|
+
outline-color: ${DigitalGreenLight};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.hover-rect.show {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
stroke-width: 2px;
|
|
79
|
+
outline-width: 2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.hover-rect.hide {
|
|
83
|
+
opacity: 0;
|
|
84
|
+
stroke-width: 0px;
|
|
85
|
+
outline-width: 0px;
|
|
86
|
+
}
|
|
60
87
|
`;
|
|
61
88
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/wafer-map/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE3E,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiDD,WAAW;kBACjB,WAAW
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/wafer-map/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE3E,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiDD,WAAW;kBACjB,WAAW;;;;;;;;;;;;;;;;;;;yBAmBJ,iBAAiB;;;;;;;;;;;;;;CAczC,CAAC"}
|
|
@@ -20,6 +20,14 @@ export const template = html `
|
|
|
20
20
|
</g>
|
|
21
21
|
</svg>
|
|
22
22
|
<canvas class="wafer-map-canvas" ${ref('canvas')}></canvas>
|
|
23
|
+
<svg class="hover-layer">
|
|
24
|
+
<rect
|
|
25
|
+
class="hover-rect ${x => x.hoverOpacity}"
|
|
26
|
+
transform="${x => x.hoverTransform}"
|
|
27
|
+
width="${x => x.hoverWidth}"
|
|
28
|
+
height="${x => x.hoverHeight}"
|
|
29
|
+
/>
|
|
30
|
+
</svg>
|
|
23
31
|
</div>
|
|
24
32
|
`;
|
|
25
33
|
//# sourceMappingURL=template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/wafer-map/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAGpD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAU;;;iBAGrB,GAAG,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE;kCAC5C,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;;;;;;;;;;;;;;;;2CAgBT,GAAG,CAAC,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/wafer-map/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAGpD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAU;;;iBAGrB,GAAG,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE;kCAC5C,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;;;;;;;;;;;;;;;;2CAgBT,GAAG,CAAC,QAAQ,CAAC;;;oCAGpB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;6BAC1B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc;yBACzB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;0BAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;;;;CAI3C,CAAC"}
|
|
@@ -13,6 +13,11 @@ export declare const WaferMapOrientation: {
|
|
|
13
13
|
readonly right: "right";
|
|
14
14
|
};
|
|
15
15
|
export declare type WaferMapOrientation = (typeof WaferMapOrientation)[keyof typeof WaferMapOrientation];
|
|
16
|
+
export declare const HoverDieOpacity: {
|
|
17
|
+
readonly show: "show";
|
|
18
|
+
readonly hide: "hide";
|
|
19
|
+
};
|
|
20
|
+
export declare type HoverDieOpacity = (typeof HoverDieOpacity)[keyof typeof HoverDieOpacity];
|
|
16
21
|
export declare const WaferMapColorScaleMode: {
|
|
17
22
|
readonly linear: "linear";
|
|
18
23
|
readonly ordinal: "ordinal";
|
|
@@ -50,3 +55,7 @@ export interface DieRenderInfo {
|
|
|
50
55
|
readonly fillStyle: string;
|
|
51
56
|
readonly text: string;
|
|
52
57
|
}
|
|
58
|
+
export interface PointCoordinates {
|
|
59
|
+
readonly x: number;
|
|
60
|
+
readonly y: number;
|
|
61
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/wafer-map/types.ts"],"names":[],"mappings":"AAEA,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,sBAAsB,GAAG;IAClC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/wafer-map/types.ts"],"names":[],"mappings":"AAEA,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,eAAe,GAAG;IAC3B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACN,CAAC;AAKX,MAAM,CAAC,MAAM,sBAAsB,GAAG;IAClC,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": "18.5.
|
|
3
|
+
"version": "18.5.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 build-components && npm run bundle-components && npm run generate-scss && npm run build-storybook",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"invoke-publish": "npm publish",
|
|
15
15
|
"storybook": "start-storybook -p 6006",
|
|
16
16
|
"build-storybook": "build-storybook -o dist/storybook",
|
|
17
|
+
"storybook-open-webkit": "playwright wk http://localhost:6006",
|
|
17
18
|
"build-components": "tsc -p ./tsconfig.json",
|
|
18
19
|
"build-components:watch": "tsc -p ./tsconfig.json -w",
|
|
19
20
|
"bundle-components": "rollup --bundleConfigAsCjs --config",
|
|
@@ -30,6 +31,8 @@
|
|
|
30
31
|
"test-chrome:watch": "karma start karma.conf.js --browsers=ChromeHeadlessOpt --watch-extensions js",
|
|
31
32
|
"test-chrome": "karma start karma.conf.js --browsers=ChromeHeadlessOpt --single-run",
|
|
32
33
|
"test-firefox": "karma start karma.conf.js --browsers=FirefoxHeadless --single-run",
|
|
34
|
+
"test-webkit": "karma start karma.conf.js --browsers=WebkitHeadless --single-run",
|
|
35
|
+
"test-webkit:debugger": "karma start karma.conf.js --browsers=Webkit",
|
|
33
36
|
"test": "npm run test-chrome:verbose"
|
|
34
37
|
},
|
|
35
38
|
"repository": {
|
|
@@ -54,12 +57,12 @@
|
|
|
54
57
|
"@tanstack/virtual-core": "^3.0.0-beta.44",
|
|
55
58
|
"@types/d3": "^7.4.0",
|
|
56
59
|
"@types/d3-scale": "^4.0.2",
|
|
57
|
-
"@types/d3-zoom": "^3.0.0",
|
|
58
60
|
"@types/d3-selection": "^3.0.0",
|
|
59
|
-
"d3-
|
|
60
|
-
"d3-zoom": "^3.0.0",
|
|
61
|
+
"@types/d3-zoom": "^3.0.0",
|
|
61
62
|
"d3-random": "^3.0.1",
|
|
62
63
|
"d3-scale": "^4.0.2",
|
|
64
|
+
"d3-selection": "^3.0.0",
|
|
65
|
+
"d3-zoom": "^3.0.0",
|
|
63
66
|
"tslib": "^2.2.0"
|
|
64
67
|
},
|
|
65
68
|
"devDependencies": {
|
|
@@ -72,6 +75,7 @@
|
|
|
72
75
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
73
76
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
74
77
|
"@rollup/plugin-replace": "^5.0.1",
|
|
78
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
75
79
|
"@storybook/addon-a11y": "^6.5.10",
|
|
76
80
|
"@storybook/addon-actions": "^6.5.10",
|
|
77
81
|
"@storybook/addon-docs": "^6.5.10",
|
|
@@ -102,14 +106,14 @@
|
|
|
102
106
|
"karma-source-map-support": "^1.4.0",
|
|
103
107
|
"karma-sourcemap-loader": "^0.3.7",
|
|
104
108
|
"karma-spec-reporter": "^0.0.36",
|
|
109
|
+
"karma-webkit-launcher": "^2.1.0",
|
|
105
110
|
"karma-webpack": "^5.0.0",
|
|
111
|
+
"playwright": "^1.30.0",
|
|
106
112
|
"prettier": "^2.0.0",
|
|
107
113
|
"prettier-eslint": "^15.0.1",
|
|
108
114
|
"prettier-eslint-cli": "^7.1.0",
|
|
109
|
-
"puppeteer": "^19.6.0",
|
|
110
115
|
"rollup": "^3.10.1",
|
|
111
116
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
112
|
-
"@rollup/plugin-terser": "^0.4.0",
|
|
113
117
|
"storybook-addon-xd-designs": "^6.0.0",
|
|
114
118
|
"ts-loader": "^9.2.5",
|
|
115
119
|
"typescript": "~4.6.4",
|