@ni/nimble-components 11.15.0 → 12.0.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 +656 -619
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +1073 -1056
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/breadcrumb/index.d.ts +2 -0
- package/dist/esm/breadcrumb/index.js +5 -0
- package/dist/esm/breadcrumb/index.js.map +1 -1
- package/dist/esm/breadcrumb/styles.js +4 -4
- package/dist/esm/breadcrumb/styles.js.map +1 -1
- package/dist/esm/breadcrumb/types.d.ts +9 -0
- package/dist/esm/breadcrumb/types.js +9 -0
- package/dist/esm/breadcrumb/types.js.map +1 -0
- package/dist/esm/button/index.d.ts +9 -3
- package/dist/esm/button/index.js +3 -0
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/button/styles.js +65 -63
- package/dist/esm/button/styles.js.map +1 -1
- package/dist/esm/button/types.d.ts +9 -0
- package/dist/esm/button/types.js +8 -0
- package/dist/esm/button/types.js.map +1 -1
- package/dist/esm/card-button/styles.js +21 -22
- package/dist/esm/card-button/styles.js.map +1 -1
- package/dist/esm/combobox/index.d.ts +6 -6
- package/dist/esm/combobox/index.js +15 -9
- package/dist/esm/combobox/index.js.map +1 -1
- package/dist/esm/combobox/styles.js +5 -5
- package/dist/esm/combobox/styles.js.map +1 -1
- package/dist/esm/dialog/styles.js.map +1 -1
- package/dist/esm/drawer/styles.js +0 -4
- package/dist/esm/drawer/styles.js.map +1 -1
- package/dist/esm/icon-base/index.d.ts +9 -2
- package/dist/esm/icon-base/index.js +6 -1
- package/dist/esm/icon-base/index.js.map +1 -1
- package/dist/esm/icon-base/styles.js +4 -4
- package/dist/esm/icon-base/types.d.ts +6 -6
- package/dist/esm/icon-base/types.js +5 -5
- package/dist/esm/icon-base/types.js.map +1 -1
- package/dist/esm/list-option/styles.js +2 -2
- package/dist/esm/menu-button/index.d.ts +5 -5
- package/dist/esm/menu-button/index.js.map +1 -1
- package/dist/esm/menu-button/template.d.ts +1 -3
- package/dist/esm/menu-button/template.js +6 -5
- package/dist/esm/menu-button/template.js.map +1 -1
- package/dist/esm/number-field/index.d.ts +4 -5
- package/dist/esm/number-field/index.js +23 -12
- package/dist/esm/number-field/index.js.map +1 -1
- package/dist/esm/number-field/styles.js +5 -4
- package/dist/esm/number-field/styles.js.map +1 -1
- package/dist/esm/patterns/button/styles.js +80 -82
- package/dist/esm/patterns/button/styles.js.map +1 -1
- package/dist/esm/patterns/button/types.d.ts +1 -1
- package/dist/esm/patterns/dropdown/styles.js +1 -1
- package/dist/esm/patterns/dropdown/styles.js.map +1 -1
- package/dist/esm/patterns/dropdown/types.d.ts +8 -0
- package/dist/esm/patterns/dropdown/types.js +2 -3
- package/dist/esm/patterns/dropdown/types.js.map +1 -1
- package/dist/esm/patterns/error/styles.js +4 -4
- package/dist/esm/patterns/error/template.d.ts +2 -2
- package/dist/esm/patterns/error/template.js.map +1 -1
- package/dist/esm/patterns/error/types.d.ts +5 -4
- package/dist/esm/switch/styles.js.map +1 -1
- package/dist/esm/text-area/styles.js +19 -21
- package/dist/esm/text-area/styles.js.map +1 -1
- package/dist/esm/text-field/index.d.ts +5 -5
- package/dist/esm/text-field/index.js +13 -8
- package/dist/esm/text-field/index.js.map +1 -1
- package/dist/esm/text-field/styles.js +6 -7
- package/dist/esm/text-field/styles.js.map +1 -1
- package/dist/esm/toggle-button/index.d.ts +2 -2
- package/dist/esm/tooltip/index.d.ts +8 -0
- package/dist/esm/tooltip/index.js +12 -0
- package/dist/esm/tooltip/index.js.map +1 -1
- package/dist/esm/tooltip/styles.js +8 -8
- package/dist/esm/tooltip/styles.js.map +1 -1
- package/dist/esm/tooltip/template.d.ts +1 -3
- package/dist/esm/tooltip/template.js +13 -8
- package/dist/esm/tooltip/template.js.map +1 -1
- package/dist/esm/tooltip/types.d.ts +4 -4
- package/dist/esm/tooltip/types.js +3 -3
- package/dist/esm/tooltip/types.js.map +1 -1
- package/dist/esm/tree-item/styles.d.ts +1 -3
- package/dist/esm/tree-item/styles.js +182 -177
- package/dist/esm/tree-item/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ export const styles = css `
|
|
|
5
5
|
display: none;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
:host(
|
|
8
|
+
:host([error-visible]) .error-icon {
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
width: ${iconSize};
|
|
11
11
|
height: ${iconSize};
|
|
@@ -16,7 +16,7 @@ export const styles = css `
|
|
|
16
16
|
display: none;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
:host(
|
|
19
|
+
:host([error-visible]) .error-text {
|
|
20
20
|
display: block;
|
|
21
21
|
font: ${errorTextFont};
|
|
22
22
|
color: ${failColor};
|
|
@@ -29,11 +29,11 @@ export const styles = css `
|
|
|
29
29
|
white-space: nowrap;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
:host(
|
|
32
|
+
:host([error-visible][readonly]:not([disabled])) .error-text {
|
|
33
33
|
top: calc(${controlHeight} - ${borderWidth});
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
:host(
|
|
36
|
+
:host([error-visible]) .error-text:empty {
|
|
37
37
|
display: none;
|
|
38
38
|
}
|
|
39
39
|
`;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const errorTextTemplate: import("@microsoft/fast-element").ViewTemplate<
|
|
1
|
+
import type { ErrorPattern } from './types';
|
|
2
|
+
export declare const errorTextTemplate: import("@microsoft/fast-element").ViewTemplate<ErrorPattern, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/patterns/error/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/patterns/error/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAc;qCACd,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;UAC3C,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;;CAEzB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This interface should be used by components that want to leverage the
|
|
2
|
+
* This interface should be used by components that want to leverage the error pattern. The error pattern conditionally adds error text to the template when an error is configured to be visible.
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
4
|
+
export interface ErrorPattern {
|
|
5
5
|
/**
|
|
6
|
-
* The error text that will be displayed when a component
|
|
6
|
+
* The error text that will be displayed when a component is in the error appearance
|
|
7
7
|
*/
|
|
8
|
-
errorText
|
|
8
|
+
errorText?: string;
|
|
9
|
+
errorVisible: boolean;
|
|
9
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/switch/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,OAAO,EACP,MAAM,EACN,OAAO,EACP,KAAK,EACR,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACH,gBAAgB,EAChB,WAAW,EACX,4BAA4B,EAC5B,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,6BAA6B,EAC7B,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,UAAU,EACb,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2B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EACL,GAAG,CACN;8DAC6C,KAAK;uEACI,iBAAiB,CACpE,KAAK,EACL,GAAG,CACN;;SAER,CACJ,CACJ,CAAC"}
|
|
@@ -95,25 +95,23 @@ export const styles = css `
|
|
|
95
95
|
:host([resize='vertical']) .control {
|
|
96
96
|
resize: vertical;
|
|
97
97
|
}
|
|
98
|
-
`
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
`));
|
|
98
|
+
`.withBehaviors(appearanceBehavior(TextAreaAppearance.outline, css `
|
|
99
|
+
.control {
|
|
100
|
+
border-color: rgba(${borderRgbPartialColor}, 0.3);
|
|
101
|
+
background-color: transparent;
|
|
102
|
+
}
|
|
103
|
+
`), appearanceBehavior(TextAreaAppearance.block, css `
|
|
104
|
+
.control {
|
|
105
|
+
background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:host([readonly]) .control {
|
|
109
|
+
background-color: transparent;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host([disabled]) .control {
|
|
113
|
+
border-color: transparent;
|
|
114
|
+
background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
115
|
+
}
|
|
116
|
+
`));
|
|
119
117
|
//# 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,WAA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qBAAqB;gBACtB,gBAAgB;;;;iBAIf,6BAA6B;;;;;;;;;;;;;;kBAc5B,WAAW;;iCAEI,UAAU,YAAY,UAAU;;;;;;;;;;;wBAWzC,gBAAgB;sCACF,gBAAgB;;;;wBAI9B,gBAAgB;;;;;;;;6BAQX,qBAAqB;;;;;iBAKjC,qBAAqB;;;;iBAIrB,6BAA6B;;;;;;;;;;;;;;;;;;;;CAoB7C,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;;SAErD,CACJ,CACJ,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TextField as FoundationTextField } from '@microsoft/fast-foundation';
|
|
2
|
-
import '../icons/exclamation-mark';
|
|
3
2
|
import { TextFieldAppearance } from './types';
|
|
4
|
-
import type {
|
|
3
|
+
import type { ErrorPattern } from '../patterns/error/types';
|
|
5
4
|
declare global {
|
|
6
5
|
interface HTMLElementTagNameMap {
|
|
7
6
|
'nimble-text-field': TextField;
|
|
@@ -10,7 +9,7 @@ declare global {
|
|
|
10
9
|
/**
|
|
11
10
|
* A nimble-styed HTML text input
|
|
12
11
|
*/
|
|
13
|
-
export declare class TextField extends FoundationTextField implements
|
|
12
|
+
export declare class TextField extends FoundationTextField implements ErrorPattern {
|
|
14
13
|
/**
|
|
15
14
|
* The appearance the text field should have.
|
|
16
15
|
*
|
|
@@ -26,6 +25,7 @@ export declare class TextField extends FoundationTextField implements IHasErrorT
|
|
|
26
25
|
* @remarks
|
|
27
26
|
* HTML Attribute: error-text
|
|
28
27
|
*/
|
|
29
|
-
errorText
|
|
30
|
-
|
|
28
|
+
errorText?: string;
|
|
29
|
+
errorVisible: boolean;
|
|
30
|
+
fullBleed: boolean;
|
|
31
31
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { attr, html } from '@microsoft/fast-element';
|
|
3
3
|
import { DesignSystem, TextField as FoundationTextField, textFieldTemplate as template } from '@microsoft/fast-foundation';
|
|
4
|
-
import '../icons/exclamation-mark';
|
|
5
4
|
import { styles } from './styles';
|
|
6
5
|
import { TextFieldAppearance } from './types';
|
|
7
6
|
import { errorTextTemplate } from '../patterns/error/template';
|
|
7
|
+
import { IconExclamationMark } from '../icons/exclamation-mark';
|
|
8
8
|
/**
|
|
9
9
|
* A nimble-styed HTML text input
|
|
10
10
|
*/
|
|
@@ -19,10 +19,8 @@ export class TextField extends FoundationTextField {
|
|
|
19
19
|
* HTML Attribute: appearance
|
|
20
20
|
*/
|
|
21
21
|
this.appearance = TextFieldAppearance.underline;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
super.connectedCallback();
|
|
25
|
-
this.control.setAttribute('aria-errormessage', 'errortext');
|
|
22
|
+
this.errorVisible = false;
|
|
23
|
+
this.fullBleed = false;
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
26
|
__decorate([
|
|
@@ -31,6 +29,12 @@ __decorate([
|
|
|
31
29
|
__decorate([
|
|
32
30
|
attr({ attribute: 'error-text' })
|
|
33
31
|
], TextField.prototype, "errorText", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
attr({ attribute: 'error-visible', mode: 'boolean' })
|
|
34
|
+
], TextField.prototype, "errorVisible", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
attr({ attribute: 'full-bleed', mode: 'boolean' })
|
|
37
|
+
], TextField.prototype, "fullBleed", void 0);
|
|
34
38
|
const nimbleTextField = TextField.compose({
|
|
35
39
|
baseName: 'text-field',
|
|
36
40
|
baseClass: FoundationTextField,
|
|
@@ -40,9 +44,10 @@ const nimbleTextField = TextField.compose({
|
|
|
40
44
|
delegatesFocus: true
|
|
41
45
|
},
|
|
42
46
|
end: html `
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
<${DesignSystem.tagFor(IconExclamationMark)}
|
|
48
|
+
severity="error"
|
|
49
|
+
class="error-icon"
|
|
50
|
+
></${DesignSystem.tagFor(IconExclamationMark)}>
|
|
46
51
|
<span part="actions">
|
|
47
52
|
<slot name="actions"></slot>
|
|
48
53
|
</span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/text-field/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EACH,YAAY,EACZ,SAAS,IAAI,mBAAmB,EAEhC,iBAAiB,IAAI,QAAQ,EAChC,MAAM,4BAA4B,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/text-field/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EACH,YAAY,EACZ,SAAS,IAAI,mBAAmB,EAEhC,iBAAiB,IAAI,QAAQ,EAChC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAQhE;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,mBAAmB;IAAlD;;QACI;;;;;;WAMG;QAEI,eAAU,GAAwB,mBAAmB,CAAC,SAAS,CAAC;QAahE,iBAAY,GAAG,KAAK,CAAC;QAGrB,cAAS,GAAG,KAAK,CAAC;IAC7B,CAAC;CAAA;AAjBG;IADC,IAAI;6CACkE;AAUvE;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;4CACR;AAG1B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;+CAC1B;AAG5B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;4CAC1B;AAG7B,MAAM,eAAe,GAAG,SAAS,CAAC,OAAO,CAAmB;IACxD,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,mBAAmB;IAC9B,QAAQ;IACR,MAAM;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;IACD,GAAG,EAAE,IAAI,CAAW;WACb,YAAY,CAAC,MAAM,CAAC,mBAAmB,CAAC;;;aAGtC,YAAY,CAAC,MAAM,CAAC,mBAAmB,CAAC;;;;UAI3C,iBAAiB;KACtB;CACJ,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
2
1
|
import { css } from '@microsoft/fast-element';
|
|
3
2
|
import { display } from '@microsoft/fast-foundation';
|
|
4
3
|
import { borderRgbPartialColor, borderHoverColor, borderWidth, bodyFontColor, bodyDisabledFontColor, controlHeight, failColor, labelHeight, smallDelay, controlLabelFont, bodyFont, controlLabelFontColor, controlLabelDisabledFontColor, standardPadding } from '../theme-provider/design-tokens';
|
|
@@ -60,7 +59,7 @@ export const styles = css `
|
|
|
60
59
|
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
:host(
|
|
62
|
+
:host([error-visible]) .root {
|
|
64
63
|
border-bottom-color: ${failColor};
|
|
65
64
|
}
|
|
66
65
|
|
|
@@ -68,7 +67,7 @@ export const styles = css `
|
|
|
68
67
|
border-bottom-color: ${borderHoverColor};
|
|
69
68
|
}
|
|
70
69
|
|
|
71
|
-
:host([appearance='frameless']
|
|
70
|
+
:host([appearance='frameless'][full-bleed]) .root {
|
|
72
71
|
padding-left: 0px;
|
|
73
72
|
padding-right: 0px;
|
|
74
73
|
}
|
|
@@ -81,7 +80,7 @@ export const styles = css `
|
|
|
81
80
|
user-select: none;
|
|
82
81
|
}
|
|
83
82
|
|
|
84
|
-
:host([appearance='frameless']
|
|
83
|
+
:host([appearance='frameless'][full-bleed]) .root::before {
|
|
85
84
|
display: none;
|
|
86
85
|
}
|
|
87
86
|
|
|
@@ -93,7 +92,7 @@ export const styles = css `
|
|
|
93
92
|
user-select: none;
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
:host([appearance='frameless']
|
|
95
|
+
:host([appearance='frameless'][full-bleed]) .root::after {
|
|
97
96
|
display: none;
|
|
98
97
|
}
|
|
99
98
|
|
|
@@ -163,7 +162,7 @@ export const styles = css `
|
|
|
163
162
|
}
|
|
164
163
|
}
|
|
165
164
|
|
|
166
|
-
:host(
|
|
165
|
+
:host([error-visible]) [part='end']::after {
|
|
167
166
|
border-bottom-color: ${failColor};
|
|
168
167
|
}
|
|
169
168
|
|
|
@@ -199,7 +198,7 @@ export const styles = css `
|
|
|
199
198
|
}
|
|
200
199
|
|
|
201
200
|
.root:focus-within,
|
|
202
|
-
:host(
|
|
201
|
+
:host([error-visible]) .root {
|
|
203
202
|
border-bottom-width: ${borderWidth};
|
|
204
203
|
padding-bottom: 0;
|
|
205
204
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-field/styles.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EACH,qBAAqB,EACrB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AS,EAC7B,GAAG,CAAA;;uCAE4B,WAAW;;;SAGzC,CACJ,EACD,kBAAkB,CACd,mBAAmB,CAAC,KAAK,EACzB,GAAG,CAAA;;yCAE8B,qBAAqB;;;;gCAI9B,WAAW;iCACV,WAAW;;;;;uCAKL,WAAW;;;;;;;;;yCAST,qBAAqB;;;;;yCAKrB,qBAAqB;;SAErD,CACJ,EACD,kBAAkB,CACd,mBAAmB,CAAC,OAAO,EAC3B,GAAG,CAAA;;gCAEqB,WAAW;;;SAGlC,CACJ,EACD,kBAAkB,CACd,mBAAmB,CAAC,SAAS,EAC7B,GAAG,CAAA;;gCAEqB,WAAW;iCACV,WAAW;;;;;;SAMnC,CACJ,EACD,aAAa,CACT,KAAK,CAAC,KAAK,EACX,GAAG,CAAA;;;;SAIF,CACJ,EACD,aAAa,CACT,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,EACzB,GAAG,CAAA;;;;SAIF,CACJ,CACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DelegatesARIAButton, StartEnd, Switch as FoundationSwitch } from '@microsoft/fast-foundation';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ButtonPattern } from '../patterns/button/types';
|
|
3
3
|
import { ButtonAppearance } from './types';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
@@ -9,7 +9,7 @@ declare global {
|
|
|
9
9
|
/**
|
|
10
10
|
* A nimble-styled toggle button control.
|
|
11
11
|
*/
|
|
12
|
-
export declare class ToggleButton extends FoundationSwitch implements
|
|
12
|
+
export declare class ToggleButton extends FoundationSwitch implements ButtonPattern {
|
|
13
13
|
/**
|
|
14
14
|
* @public
|
|
15
15
|
* @remarks
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Tooltip as FoundationTooltip } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { TooltipSeverity } from './types';
|
|
2
3
|
declare global {
|
|
3
4
|
interface HTMLElementTagNameMap {
|
|
4
5
|
'nimble-tooltip': Tooltip;
|
|
@@ -8,4 +9,11 @@ declare global {
|
|
|
8
9
|
* A nimble-styled tooltip control.
|
|
9
10
|
*/
|
|
10
11
|
export declare class Tooltip extends FoundationTooltip {
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
* @remarks
|
|
15
|
+
* HTML Attribute: severity
|
|
16
|
+
*/
|
|
17
|
+
severity: TooltipSeverity;
|
|
18
|
+
iconVisible: boolean;
|
|
11
19
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { attr } from '@microsoft/fast-element';
|
|
1
3
|
import { DesignSystem, Tooltip as FoundationTooltip } from '@microsoft/fast-foundation';
|
|
2
4
|
import { styles } from './styles';
|
|
3
5
|
import { template } from './template';
|
|
@@ -5,7 +7,17 @@ import { template } from './template';
|
|
|
5
7
|
* A nimble-styled tooltip control.
|
|
6
8
|
*/
|
|
7
9
|
export class Tooltip extends FoundationTooltip {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.iconVisible = false;
|
|
13
|
+
}
|
|
8
14
|
}
|
|
15
|
+
__decorate([
|
|
16
|
+
attr
|
|
17
|
+
], Tooltip.prototype, "severity", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
attr({ attribute: 'icon-visible', mode: 'boolean' })
|
|
20
|
+
], Tooltip.prototype, "iconVisible", void 0);
|
|
9
21
|
const nimbleTooltip = Tooltip.compose({
|
|
10
22
|
baseName: 'tooltip',
|
|
11
23
|
baseClass: FoundationTooltip,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,OAAO,IAAI,iBAAiB,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EACH,YAAY,EACZ,OAAO,IAAI,iBAAiB,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAStC;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,iBAAiB;IAA9C;;QAUW,gBAAW,GAAG,KAAK,CAAC;IAC/B,CAAC;CAAA;AAJG;IADC,IAAI;yCAC4B;AAGjC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;4CAC1B;AAG/B,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IAClC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,iBAAiB;IAC5B,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC"}
|
|
@@ -37,22 +37,22 @@ export const styles = css `
|
|
|
37
37
|
padding-right: 8px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
:host(
|
|
40
|
+
:host([severity='error'][icon-visible]) [severity='error'] {
|
|
41
41
|
display: flex;
|
|
42
42
|
flex: 0 0 auto;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
:host(
|
|
45
|
+
:host([severity='information'][icon-visible]) [severity='information'] {
|
|
46
46
|
display: flex;
|
|
47
47
|
flex: 0 0 auto;
|
|
48
48
|
}
|
|
49
49
|
`.withBehaviors(themeBehavior(Theme.light, css `
|
|
50
|
-
:host(
|
|
50
|
+
:host([severity='error']) {
|
|
51
51
|
--ni-private-tooltip-border-color: ${BannerFail100DarkUi};
|
|
52
52
|
--ni-private-tooltip-background-color: ${White};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
:host(
|
|
55
|
+
:host([severity='information']) {
|
|
56
56
|
--ni-private-tooltip-border-color: ${Information100LightUi};
|
|
57
57
|
--ni-private-tooltip-background-color: ${White};
|
|
58
58
|
}
|
|
@@ -62,11 +62,11 @@ export const styles = css `
|
|
|
62
62
|
--ni-private-tooltip-background-color: ${Black85};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
:host(
|
|
65
|
+
:host([severity='information']) {
|
|
66
66
|
--ni-private-tooltip-border-color: ${Information100DarkUi};
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
:host(
|
|
69
|
+
:host([severity='error']) {
|
|
70
70
|
--ni-private-tooltip-border-color: ${BannerFail100DarkUi};
|
|
71
71
|
}
|
|
72
72
|
`), themeBehavior(Theme.color, css `
|
|
@@ -79,11 +79,11 @@ export const styles = css `
|
|
|
79
79
|
--ni-private-tooltip-background-color: ${hexToRgbaCssColor(White, 0.15)};
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
:host(
|
|
82
|
+
:host([severity='error']) {
|
|
83
83
|
--ni-private-tooltip-border-color: ${White};
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
:host(
|
|
86
|
+
:host([severity='information']) {
|
|
87
87
|
--ni-private-tooltip-border-color: ${White};
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/tooltip/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,mBAAmB,EACnB,OAAO,EACP,OAAO,EACP,OAAO,EACP,WAAW,EACX,oBAAoB,EACpB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,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;;;gBAGZ,kBAAkB;iBACjB,uBAAuB;;6CAEK,iBAAiB,CAAC,OAAO,EAAE,GAAG,CAAC;iDAC3B,OAAO;;;;;;;kCAOtB,mBAAmB;;kBAEnC,WAAW;;;6BAGA,eAAe;8BACd,eAAe;uBACtB,YAAY;;;;;;;;;;;;;;;;;;;CAmBlC,CAAC,aAAa,CACX,aAAa,CACT,KAAK,CAAC,KAAK,EACX,GAAG,CAAA;;qDAE0C,mBAAmB;yDACf,KAAK;;;;qDAIT,qBAAqB;yDACjB,KAAK;;SAErD,CACJ,EACD,aAAa,CACT,KAAK,CAAC,IAAI,EACV,GAAG,CAAA;;qDAE0C,iBAAiB,CAClD,OAAO,EACP,GAAG,CACN;yDACwC,OAAO;;;;qDAIX,oBAAoB;;;;qDAIpB,mBAAmB;;SAE/D,CACJ,EACD,aAAa,CACT,KAAK,CAAC,KAAK,EACX,GAAG,CAAA;;oCAEyB,WAAW;;;;qDAIM,iBAAiB,CAClD,KAAK,EACL,GAAG,CACN;yDACwC,iBAAiB,CACtD,KAAK,EACL,IAAI,CACP;;;;qDAIoC,KAAK;;;;qDAIL,KAAK;;;;;;SAMjD,CACJ,CACJ,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import type { FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
3
1
|
import type { Tooltip } from '.';
|
|
4
|
-
export declare const template:
|
|
2
|
+
export declare const template: import("@microsoft/fast-element").ViewTemplate<Tooltip, any>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { html, ref, when } from '@microsoft/fast-element';
|
|
2
|
+
import { DesignSystem } from '@microsoft/fast-foundation';
|
|
2
3
|
import { AnchoredRegion } from '../anchored-region';
|
|
3
4
|
import { IconExclamationMark } from '../icons/exclamation-mark';
|
|
4
5
|
import { IconInfo } from '../icons/info';
|
|
5
6
|
// prettier-ignore
|
|
6
|
-
export const template =
|
|
7
|
-
return html `
|
|
7
|
+
export const template = html `
|
|
8
8
|
${when(x => x.tooltipVisible, html `
|
|
9
|
-
<${
|
|
9
|
+
<${DesignSystem.tagFor(AnchoredRegion)}
|
|
10
10
|
class="anchored-region"
|
|
11
11
|
fixed-placement="true"
|
|
12
12
|
auto-update-mode="${x => x.autoUpdateMode}"
|
|
@@ -24,12 +24,17 @@ export const template = context => {
|
|
|
24
24
|
${ref('region')}
|
|
25
25
|
>
|
|
26
26
|
<div class="tooltip" part="tooltip" role="tooltip">
|
|
27
|
-
<${
|
|
28
|
-
|
|
27
|
+
<${DesignSystem.tagFor(IconExclamationMark)}
|
|
28
|
+
severity="error"
|
|
29
|
+
class="status-icon"
|
|
30
|
+
></${DesignSystem.tagFor(IconExclamationMark)}>
|
|
31
|
+
<${DesignSystem.tagFor(IconInfo)}
|
|
32
|
+
severity="information"
|
|
33
|
+
class="status-icon"
|
|
34
|
+
></${DesignSystem.tagFor(IconInfo)}>
|
|
29
35
|
<slot></slot>
|
|
30
36
|
</div>
|
|
31
|
-
</${
|
|
37
|
+
</${DesignSystem.tagFor(AnchoredRegion)}>
|
|
32
38
|
`)}
|
|
33
|
-
|
|
34
|
-
};
|
|
39
|
+
`;
|
|
35
40
|
//# sourceMappingURL=template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/tooltip/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/tooltip/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EA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ltip appearance.
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
6
|
-
readonly default:
|
|
7
|
-
readonly
|
|
5
|
+
export declare const TooltipSeverity: {
|
|
6
|
+
readonly default: undefined;
|
|
7
|
+
readonly error: "error";
|
|
8
8
|
readonly information: "information";
|
|
9
9
|
};
|
|
10
|
-
export declare type
|
|
10
|
+
export declare type TooltipSeverity = typeof TooltipSeverity[keyof typeof TooltipSeverity];
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Types of tooltip appearance.
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
|
-
export const
|
|
6
|
-
default:
|
|
7
|
-
|
|
5
|
+
export const TooltipSeverity = {
|
|
6
|
+
default: undefined,
|
|
7
|
+
error: 'error',
|
|
8
8
|
information: 'information'
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/tooltip/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/tooltip/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CACpB,CAAC"}
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FoundationElementTemplate, TreeItemOptions } from '@microsoft/fast-foundation';
|
|
3
|
-
export declare const styles: FoundationElementTemplate<ElementStyles, TreeItemOptions>;
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|