@ni/nimble-components 18.8.3 → 18.9.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.
- package/dist/all-components-bundle.js +256 -130
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +91 -41
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/anchor-menu-item/index.js +2 -2
- package/dist/esm/anchor-menu-item/index.js.map +1 -1
- package/dist/esm/anchor-menu-item/template.js +2 -2
- package/dist/esm/anchor-menu-item/template.js.map +1 -1
- package/dist/esm/patterns/error/styles.js +2 -6
- package/dist/esm/patterns/error/styles.js.map +1 -1
- package/dist/esm/text-area/index.d.ts +48 -1
- package/dist/esm/text-area/index.js +84 -2
- package/dist/esm/text-area/index.js.map +1 -1
- package/dist/esm/text-area/styles.js +72 -18
- package/dist/esm/text-area/styles.js.map +1 -1
- package/dist/esm/text-area/template.d.ts +4 -0
- package/dist/esm/text-area/template.js +62 -0
- package/dist/esm/text-area/template.js.map +1 -0
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ export class AnchorMenuItem extends AnchorBase {
|
|
|
28
28
|
* @internal
|
|
29
29
|
*/
|
|
30
30
|
clickHandler(e) {
|
|
31
|
-
e.
|
|
31
|
+
e.stopPropagation();
|
|
32
32
|
return true;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
@@ -40,7 +40,7 @@ export class AnchorMenuItem extends AnchorBase {
|
|
|
40
40
|
}
|
|
41
41
|
switch (e.key) {
|
|
42
42
|
case keyEnter:
|
|
43
|
-
e.
|
|
43
|
+
e.stopPropagation();
|
|
44
44
|
break;
|
|
45
45
|
default:
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/anchor-menu-item/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,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E,QAAQ,CAAC,CAAC;AAEtC,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC;AACtC,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;AAErE,gFAAgF;AAChF,iFAAiF;AACjF,oFAAoF;AACpF,gEAAgE;AAChE,EAAE;AACF,gFAAgF;AAChF,6EAA6E;AAC7E,4DAA4D;AAC5D,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;AAC3F,MAAM,CAAC,cAAc,CAAC,kBAAkB,EAAE,MAAM,CAAC,WAAW,EAAE;IAC1D,KAAK,CAAC,QAAiB;QACnB,OAAO,CACH,kBAAkB,CAAC,QAAQ,CAAC,IAAI,QAAQ,YAAY,cAAc,CACrE,CAAC;IACN,CAAC;CACJ,CAAC,CAAC"}
|
|
@@ -7,6 +7,8 @@ export const template = (context, definition) => html `
|
|
|
7
7
|
? `indent-${x.startColumnCount}`
|
|
8
8
|
: '')}"
|
|
9
9
|
aria-disabled="${x => x.disabled}"
|
|
10
|
+
@click="${(x, c) => x.clickHandler(c.event)}"
|
|
11
|
+
@keydown="${(x, c) => x.keydownHandler(c.event)}"
|
|
10
12
|
>
|
|
11
13
|
<a
|
|
12
14
|
${ref('anchor')}
|
|
@@ -18,8 +20,6 @@ export const template = (context, definition) => html `
|
|
|
18
20
|
rel="${x => x.rel}"
|
|
19
21
|
target="${x => x.target}"
|
|
20
22
|
type="${x => x.type}"
|
|
21
|
-
@click="${(x, c) => x.clickHandler(c.event)}"
|
|
22
|
-
@keydown="${(x, c) => x.keydownHandler(c.event)}"
|
|
23
23
|
>
|
|
24
24
|
${startSlotTemplate(context, definition)}
|
|
25
25
|
<span class="content" part="content">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/anchor-menu-item/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAgB,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAEH,eAAe,EAEf,iBAAiB,EACpB,MAAM,4BAA4B,CAAC;AAGpC,MAAM,CAAC,MAAM,QAAQ,GAGjB,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,IAAI,CAAgB;;;iBAGhC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,gBAAgB,KAAK,QAAQ;IACrD,CAAC,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE;IAChC,CAAC,CAAC,EAAE,CAAC;yBACY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/anchor-menu-item/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAgB,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAEH,eAAe,EAEf,iBAAiB,EACpB,MAAM,4BAA4B,CAAC;AAGpC,MAAM,CAAC,MAAM,QAAQ,GAGjB,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,IAAI,CAAgB;;;iBAGhC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,gBAAgB,KAAK,QAAQ;IACrD,CAAC,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE;IAChC,CAAC,CAAC,EAAE,CAAC;yBACY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;kBACtB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAmB,CAAC;oBAC7C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,KAAsB,CAAC;;;cAG1D,GAAG,CAAC,QAAQ,CAAC;wBACH,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;mBACpB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;wBAC5B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;oBACnB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;8BACD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc;mBAChC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG;sBACP,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM;oBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;;cAEjB,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC;;;;cAItC,eAAe,CAAC,OAAO,EAAE,UAAU,CAAC;;;CAGjD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import {
|
|
2
|
+
import { failColor, errorTextFont, iconSize, errorTextFontLineHeight } from '../../theme-provider/design-tokens';
|
|
3
3
|
export const styles = css `
|
|
4
4
|
.error-icon {
|
|
5
5
|
display: none;
|
|
@@ -22,17 +22,13 @@ export const styles = css `
|
|
|
22
22
|
color: ${failColor};
|
|
23
23
|
width: 100%;
|
|
24
24
|
position: absolute;
|
|
25
|
-
|
|
25
|
+
bottom: calc(-1 * ${errorTextFontLineHeight});
|
|
26
26
|
left: 0px;
|
|
27
27
|
overflow: hidden;
|
|
28
28
|
text-overflow: ellipsis;
|
|
29
29
|
white-space: nowrap;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
:host([error-visible][readonly]:not([disabled])) .error-text {
|
|
33
|
-
top: calc(${controlHeight} - ${borderWidth});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
32
|
:host([error-visible]) .error-text:empty {
|
|
37
33
|
display: none;
|
|
38
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/patterns/error/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACH,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/patterns/error/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACH,SAAS,EACT,aAAa,EACb,QAAQ,EACR,uBAAuB,EAC1B,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;iBAOR,QAAQ;kBACP,QAAQ;;;;;;;;;;gBAUV,aAAa;iBACZ,SAAS;;;4BAGE,uBAAuB;;;;;;;;;;CAUlD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TextArea as FoundationTextArea } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { ErrorPattern } from '../patterns/error/types';
|
|
2
3
|
import { TextAreaAppearance } from './types';
|
|
3
4
|
declare global {
|
|
4
5
|
interface HTMLElementTagNameMap {
|
|
@@ -8,7 +9,7 @@ declare global {
|
|
|
8
9
|
/**
|
|
9
10
|
* A nimble-styed HTML text area
|
|
10
11
|
*/
|
|
11
|
-
export declare class TextArea extends FoundationTextArea {
|
|
12
|
+
export declare class TextArea extends FoundationTextArea implements ErrorPattern {
|
|
12
13
|
/**
|
|
13
14
|
* The appearance the text area should have.
|
|
14
15
|
*
|
|
@@ -17,5 +18,51 @@ export declare class TextArea extends FoundationTextArea {
|
|
|
17
18
|
* HTML Attribute: appearance
|
|
18
19
|
*/
|
|
19
20
|
appearance: TextAreaAppearance;
|
|
21
|
+
/**
|
|
22
|
+
* A message explaining why the value is invalid.
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
25
|
+
* @remarks
|
|
26
|
+
* HTML Attribute: error-text
|
|
27
|
+
*/
|
|
28
|
+
errorText?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to display the error state.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
* @remarks
|
|
34
|
+
* HTML Attribute: error-visible
|
|
35
|
+
*/
|
|
36
|
+
errorVisible: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The width of the vertical scrollbar, if displayed.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
scrollbarWidth: number;
|
|
42
|
+
private resizeObserver?;
|
|
43
|
+
private updateScrollbarWidthQueued;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
connectedCallback(): void;
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
disconnectedCallback(): void;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
onTextAreaInput(): void;
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
placeholderChanged(): void;
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
valueChanged(previous: string, next: string): void;
|
|
64
|
+
private onResize;
|
|
65
|
+
private queueUpdateScrollbarWidth;
|
|
66
|
+
private updateScrollbarWidth;
|
|
20
67
|
}
|
|
21
68
|
export declare const textAreaTag: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { attr } from '@microsoft/fast-element';
|
|
3
|
-
import { DesignSystem, TextArea as FoundationTextArea
|
|
2
|
+
import { attr, DOM, observable } from '@microsoft/fast-element';
|
|
3
|
+
import { DesignSystem, TextArea as FoundationTextArea } from '@microsoft/fast-foundation';
|
|
4
4
|
import { styles } from './styles';
|
|
5
|
+
import { template } from './template';
|
|
5
6
|
import { TextAreaAppearance } from './types';
|
|
6
7
|
/**
|
|
7
8
|
* A nimble-styed HTML text area
|
|
@@ -17,11 +18,92 @@ export class TextArea extends FoundationTextArea {
|
|
|
17
18
|
* HTML Attribute: appearance
|
|
18
19
|
*/
|
|
19
20
|
this.appearance = TextAreaAppearance.outline;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to display the error state.
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
25
|
+
* @remarks
|
|
26
|
+
* HTML Attribute: error-visible
|
|
27
|
+
*/
|
|
28
|
+
this.errorVisible = false;
|
|
29
|
+
/**
|
|
30
|
+
* The width of the vertical scrollbar, if displayed.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
this.scrollbarWidth = -1;
|
|
34
|
+
this.updateScrollbarWidthQueued = false;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
connectedCallback() {
|
|
40
|
+
super.connectedCallback();
|
|
41
|
+
this.resizeObserver = new ResizeObserver(() => this.onResize());
|
|
42
|
+
this.resizeObserver.observe(this);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
disconnectedCallback() {
|
|
48
|
+
this.resizeObserver?.disconnect();
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
onTextAreaInput() {
|
|
54
|
+
this.handleTextInput();
|
|
55
|
+
this.queueUpdateScrollbarWidth();
|
|
56
|
+
}
|
|
57
|
+
// If a property can affect whether a scrollbar is visible, we need to
|
|
58
|
+
// call queueUpdateScrollbarWidth() when it changes. The exceptions are
|
|
59
|
+
// properties that affect size (e.g. height, width, cols, rows), because
|
|
60
|
+
// we already have a ResizeObserver handling those changes. Also,
|
|
61
|
+
// a change to errorVisible cannot cause scrollbar visibility to change,
|
|
62
|
+
// because we always reserve space for the error icon.
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
placeholderChanged() {
|
|
67
|
+
this.queueUpdateScrollbarWidth();
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
valueChanged(previous, next) {
|
|
73
|
+
super.valueChanged(previous, next);
|
|
74
|
+
this.queueUpdateScrollbarWidth();
|
|
75
|
+
}
|
|
76
|
+
onResize() {
|
|
77
|
+
// Do this directly instead of calling updateScrollbarWidth, b/c we don't want to
|
|
78
|
+
// interfere with queue.
|
|
79
|
+
this.scrollbarWidth = this.control.offsetWidth - this.control.clientWidth;
|
|
80
|
+
}
|
|
81
|
+
queueUpdateScrollbarWidth() {
|
|
82
|
+
if (!this.$fastController.isConnected) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (!this.updateScrollbarWidthQueued) {
|
|
86
|
+
this.updateScrollbarWidthQueued = true;
|
|
87
|
+
DOM.queueUpdate(() => this.updateScrollbarWidth());
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
updateScrollbarWidth() {
|
|
91
|
+
this.updateScrollbarWidthQueued = false;
|
|
92
|
+
this.scrollbarWidth = this.control.offsetWidth - this.control.clientWidth;
|
|
20
93
|
}
|
|
21
94
|
}
|
|
22
95
|
__decorate([
|
|
23
96
|
attr
|
|
24
97
|
], TextArea.prototype, "appearance", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
attr({ attribute: 'error-text' })
|
|
100
|
+
], TextArea.prototype, "errorText", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
attr({ attribute: 'error-visible', mode: 'boolean' })
|
|
103
|
+
], TextArea.prototype, "errorVisible", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
observable
|
|
106
|
+
], TextArea.prototype, "scrollbarWidth", void 0);
|
|
25
107
|
const nimbleTextArea = TextArea.compose({
|
|
26
108
|
baseName: 'text-area',
|
|
27
109
|
baseClass: FoundationTextArea,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/text-area/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/text-area/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACH,YAAY,EACZ,QAAQ,IAAI,kBAAkB,EACjC,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAQ7C;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,kBAAkB;IAAhD;;QACI;;;;;;WAMG;QAEI,eAAU,GAAuB,kBAAkB,CAAC,OAAO,CAAC;QAYnE;;;;;;WAMG;QAEI,iBAAY,GAAG,KAAK,CAAC;QAE5B;;;WAGG;QAEI,mBAAc,GAAG,CAAC,CAAC,CAAC;QAGnB,+BAA0B,GAAG,KAAK,CAAC;IAoE/C,CAAC;IAlEG;;OAEG;IACa,iBAAiB;QAC7B,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAChE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACa,oBAAoB;QAChC,IAAI,CAAC,cAAc,EAAE,UAAU,EAAE,CAAC;IACtC,CAAC;IAED;;OAEG;IACI,eAAe;QAClB,IAAI,CAAC,eAAe,EAAE,CAAC;QACvB,IAAI,CAAC,yBAAyB,EAAE,CAAC;IACrC,CAAC;IAED,sEAAsE;IACtE,uEAAuE;IACvE,wEAAwE;IAC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M;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;CACJ,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import { borderRgbPartialColor, borderHoverColor, borderWidth, smallDelay, bodyFontColor, bodyDisabledFontColor, controlLabelFont, controlLabelFontColor, bodyFont, controlLabelDisabledFontColor } from '../theme-provider/design-tokens';
|
|
3
|
+
import { borderRgbPartialColor, borderHoverColor, borderWidth, smallDelay, bodyFontColor, bodyDisabledFontColor, controlLabelFont, controlLabelFontColor, bodyFont, controlLabelDisabledFontColor, iconSize, failColor, standardPadding } from '../theme-provider/design-tokens';
|
|
4
4
|
import { appearanceBehavior } from '../utilities/style/appearance';
|
|
5
5
|
import { TextAreaAppearance } from './types';
|
|
6
|
+
import { styles as errorStyles } from '../patterns/error/styles';
|
|
6
7
|
export const styles = css `
|
|
7
8
|
${display('inline-flex')}
|
|
9
|
+
${errorStyles}
|
|
8
10
|
|
|
9
11
|
:host {
|
|
10
12
|
font: ${bodyFont};
|
|
@@ -13,6 +15,7 @@ export const styles = css `
|
|
|
13
15
|
color: ${bodyFontColor};
|
|
14
16
|
flex-direction: column;
|
|
15
17
|
vertical-align: top;
|
|
18
|
+
--ni-private-hover-indicator-width: calc(${borderWidth} + 1px);
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
:host([disabled]) {
|
|
@@ -29,10 +32,47 @@ export const styles = css `
|
|
|
29
32
|
color: ${controlLabelDisabledFontColor};
|
|
30
33
|
}
|
|
31
34
|
|
|
35
|
+
.container {
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
position: relative;
|
|
39
|
+
height: 100%;
|
|
40
|
+
width: 100%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.container::after {
|
|
44
|
+
content: ' ';
|
|
45
|
+
position: absolute;
|
|
46
|
+
bottom: calc(-1 * ${borderWidth});
|
|
47
|
+
width: 0px;
|
|
48
|
+
height: 0px;
|
|
49
|
+
border-bottom: ${borderHoverColor}
|
|
50
|
+
var(--ni-private-hover-indicator-width) solid;
|
|
51
|
+
transition: width ${smallDelay} ease-in;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@media (prefers-reduced-motion) {
|
|
55
|
+
.container::after {
|
|
56
|
+
transition-duration: 0s;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([error-visible]) .container::after {
|
|
61
|
+
border-bottom-color: ${failColor};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host(:hover) .container::after {
|
|
65
|
+
width: 100%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([disabled]:hover) .container::after,
|
|
69
|
+
:host([readonly]:hover) .container::after {
|
|
70
|
+
width: 0px;
|
|
71
|
+
}
|
|
72
|
+
|
|
32
73
|
.control {
|
|
33
74
|
-webkit-appearance: none;
|
|
34
75
|
font: inherit;
|
|
35
|
-
width: 100%;
|
|
36
76
|
flex-grow: 1;
|
|
37
77
|
outline: none;
|
|
38
78
|
box-sizing: border-box;
|
|
@@ -41,8 +81,13 @@ export const styles = css `
|
|
|
41
81
|
border-radius: 0px;
|
|
42
82
|
align-items: flex-end;
|
|
43
83
|
border: ${borderWidth} solid transparent;
|
|
84
|
+
min-width: 100px;
|
|
85
|
+
min-height: calc(${iconSize} + ${standardPadding});
|
|
44
86
|
padding: 8px;
|
|
45
|
-
|
|
87
|
+
${
|
|
88
|
+
/* This padding ensures that showing/hiding the error icon doesn't affect text layout */ ''}
|
|
89
|
+
padding-right: calc(${iconSize});
|
|
90
|
+
margin: 0px;
|
|
46
91
|
resize: none;
|
|
47
92
|
}
|
|
48
93
|
|
|
@@ -52,13 +97,8 @@ export const styles = css `
|
|
|
52
97
|
}
|
|
53
98
|
}
|
|
54
99
|
|
|
55
|
-
.control:hover {
|
|
56
|
-
border-color: ${borderHoverColor};
|
|
57
|
-
box-shadow: 0px 0px 0px 1px ${borderHoverColor};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
100
|
.control:focus-within {
|
|
61
|
-
border-color: ${borderHoverColor};
|
|
101
|
+
border-bottom-color: ${borderHoverColor};
|
|
62
102
|
}
|
|
63
103
|
|
|
64
104
|
.control[readonly],
|
|
@@ -67,23 +107,22 @@ export const styles = css `
|
|
|
67
107
|
.control[disabled],
|
|
68
108
|
.control[disabled]:hover {
|
|
69
109
|
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
70
|
-
box-shadow: none;
|
|
71
110
|
}
|
|
72
111
|
|
|
73
|
-
.control
|
|
74
|
-
color: ${
|
|
112
|
+
:host([error-visible]) .control {
|
|
113
|
+
border-bottom-color: ${failColor};
|
|
75
114
|
}
|
|
76
115
|
|
|
77
|
-
.control[
|
|
78
|
-
color: ${
|
|
116
|
+
:host([error-visible]) .control[readonly]:hover:focus-within {
|
|
117
|
+
border-bottom-color: ${failColor};
|
|
79
118
|
}
|
|
80
119
|
|
|
81
|
-
|
|
82
|
-
|
|
120
|
+
.control::placeholder {
|
|
121
|
+
color: ${controlLabelFontColor};
|
|
83
122
|
}
|
|
84
123
|
|
|
85
|
-
|
|
86
|
-
|
|
124
|
+
.control[disabled]::placeholder {
|
|
125
|
+
color: ${controlLabelDisabledFontColor};
|
|
87
126
|
}
|
|
88
127
|
|
|
89
128
|
:host([resize='both']) .control {
|
|
@@ -95,6 +134,17 @@ export const styles = css `
|
|
|
95
134
|
:host([resize='vertical']) .control {
|
|
96
135
|
resize: vertical;
|
|
97
136
|
}
|
|
137
|
+
|
|
138
|
+
:host([error-visible]) .error-icon {
|
|
139
|
+
display: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host([error-visible]) .error-icon.scrollbar-width-calculated {
|
|
143
|
+
display: inline-flex;
|
|
144
|
+
position: absolute;
|
|
145
|
+
top: calc(${standardPadding} / 2);
|
|
146
|
+
right: var(--ni-private-scrollbar-width);
|
|
147
|
+
}
|
|
98
148
|
`.withBehaviors(appearanceBehavior(TextAreaAppearance.outline, css `
|
|
99
149
|
.control {
|
|
100
150
|
border-color: rgba(${borderRgbPartialColor}, 0.3);
|
|
@@ -113,5 +163,9 @@ export const styles = css `
|
|
|
113
163
|
border-color: transparent;
|
|
114
164
|
background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
115
165
|
}
|
|
166
|
+
|
|
167
|
+
:host([error-visible][disabled]) .control {
|
|
168
|
+
border-bottom-color: ${failColor};
|
|
169
|
+
}
|
|
116
170
|
`));
|
|
117
171
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-area/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,QAAQ,EACR,6BAA6B,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-area/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,QAAQ,EACR,6BAA6B,EAC7B,QAAQ,EACR,SAAS,EACT,eAAe,EAClB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEjE,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;MACtB,WAAW;;;gBAGD,QAAQ;;;iBAGP,aAAa;;;mDAGqB,WAAW;;;;iBAI7C,qBAAqB;;;;;iBAKrB,qBAAqB;gBACtB,gBAAgB;;;;iBAIf,6BAA6B;;;;;;;;;;;;;;4BAclB,WAAW;;;yBAGd,gBAAgB;;4BAEb,UAAU;;;;;;;;;;+BAUP,SAAS;;;;;;;;;;;;;;;;;;;;;;kBAsBtB,WAAW;;2BAEF,QAAQ,MAAM,eAAe;;UAE9C;AACE,wFAAwF,CAAC,EAC7F;8BACsB,QAAQ;;;;;;;;;;;;+BAYP,gBAAgB;;;;;;;;6BAQlB,qBAAqB;;;;+BAInB,SAAS;;;;+BAIT,SAAS;;;;iBAIvB,qBAAqB;;;;iBAIrB,6BAA6B;;;;;;;;;;;;;;;;;;;;oBAoB1B,eAAe;;;CAGlC,CAAC,aAAa,CACX,kBAAkB,CACd,kBAAkB,CAAC,OAAO,EAC1B,GAAG,CAAA;;qCAE0B,qBAAqB;;;SAGjD,CACJ,EACD,kBAAkB,CACd,kBAAkB,CAAC,KAAK,EACxB,GAAG,CAAA;;yCAE8B,qBAAqB;;;;;;;;;yCASrB,qBAAqB;;;;uCAIvB,SAAS;;SAEvC,CACJ,CACJ,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { html, ref, slotted } from '@microsoft/fast-element';
|
|
2
|
+
import { iconExclamationMarkTag } from '../icons/exclamation-mark';
|
|
3
|
+
import { errorTextTemplate } from '../patterns/error/template';
|
|
4
|
+
export const template = () => html `
|
|
5
|
+
<label
|
|
6
|
+
part="label"
|
|
7
|
+
for="control"
|
|
8
|
+
class="${x => (x.defaultSlottedNodes?.length ? 'label' : 'label label__hidden')}"
|
|
9
|
+
>
|
|
10
|
+
<slot ${slotted('defaultSlottedNodes')}></slot>
|
|
11
|
+
</label>
|
|
12
|
+
<div class="container">
|
|
13
|
+
<textarea
|
|
14
|
+
part="control"
|
|
15
|
+
class="control"
|
|
16
|
+
id="control"
|
|
17
|
+
?autofocus="${x => x.autofocus}"
|
|
18
|
+
cols="${x => x.cols}"
|
|
19
|
+
?disabled="${x => x.disabled}"
|
|
20
|
+
form="${x => x.form}"
|
|
21
|
+
list="${x => x.list}"
|
|
22
|
+
maxlength="${x => x.maxlength}"
|
|
23
|
+
minlength="${x => x.minlength}"
|
|
24
|
+
name="${x => x.name}"
|
|
25
|
+
placeholder="${x => x.placeholder}"
|
|
26
|
+
?readonly="${x => x.readOnly}"
|
|
27
|
+
?required="${x => x.required}"
|
|
28
|
+
rows="${x => x.rows}"
|
|
29
|
+
?spellcheck="${x => x.spellcheck}"
|
|
30
|
+
:value="${x => x.value}"
|
|
31
|
+
aria-atomic="${x => x.ariaAtomic}"
|
|
32
|
+
aria-busy="${x => x.ariaBusy}"
|
|
33
|
+
aria-controls="${x => x.ariaControls}"
|
|
34
|
+
aria-current="${x => x.ariaCurrent}"
|
|
35
|
+
aria-describedby="${x => x.ariaDescribedby}"
|
|
36
|
+
aria-details="${x => x.ariaDetails}"
|
|
37
|
+
aria-disabled="${x => x.ariaDisabled}"
|
|
38
|
+
aria-errormessage="${x => x.ariaErrormessage}"
|
|
39
|
+
aria-flowto="${x => x.ariaFlowto}"
|
|
40
|
+
aria-haspopup="${x => x.ariaHaspopup}"
|
|
41
|
+
aria-hidden="${x => x.ariaHidden}"
|
|
42
|
+
aria-invalid="${x => x.ariaInvalid}"
|
|
43
|
+
aria-keyshortcuts="${x => x.ariaKeyshortcuts}"
|
|
44
|
+
aria-label="${x => x.ariaLabel}"
|
|
45
|
+
aria-labelledby="${x => x.ariaLabelledby}"
|
|
46
|
+
aria-live="${x => x.ariaLive}"
|
|
47
|
+
aria-owns="${x => x.ariaOwns}"
|
|
48
|
+
aria-relevant="${x => x.ariaRelevant}"
|
|
49
|
+
aria-roledescription="${x => x.ariaRoledescription}"
|
|
50
|
+
@input="${x => x.onTextAreaInput()}"
|
|
51
|
+
@change="${x => x.handleChange()}"
|
|
52
|
+
${ref('control')}
|
|
53
|
+
></textarea>
|
|
54
|
+
<${iconExclamationMarkTag}
|
|
55
|
+
severity="error"
|
|
56
|
+
class="error-icon ${x => (x.scrollbarWidth >= 0 ? 'scrollbar-width-calculated' : '')}"
|
|
57
|
+
style="--ni-private-scrollbar-width: ${x => x.scrollbarWidth}px;"
|
|
58
|
+
></${iconExclamationMarkTag}>
|
|
59
|
+
${errorTextTemplate}
|
|
60
|
+
</div>
|
|
61
|
+
`;
|
|
62
|
+
//# sourceMappingURL=template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/text-area/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAG3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,CAAC,MAAM,QAAQ,GAEjB,GAAG,EAAE,CAAC,IAAI,CAAU;;;;iBAIP,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC;;gBAEvE,OAAO,CAAC,qBAAqB,CAAC;;;;;;;0BAOpB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;oBACtB,CAAC,CAAC,EAAE,CAAC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CAAC,CAAC,gBAAgB;0BAC9B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;+BACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc;yBAC3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;6BACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;oCACZ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB;sBACxC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE;uBACvB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;cAC9B,GAAG,CAAC,SAAS,CAAC;;WAEjB,sBAAsB;;gCAED,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,IAAI,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,EAAE,CAAC;mDAC7C,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc;aAC3D,sBAAsB;UACzB,iBAAiB;;CAE1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.9.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",
|