@ni/nimble-components 7.2.3 → 7.4.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.
- package/README.md +24 -1
- package/dist/all-components-bundle.js +18611 -0
- package/dist/all-components-bundle.js.map +1 -0
- package/dist/all-components-bundle.min.js +1345 -0
- package/dist/all-components-bundle.min.js.map +1 -0
- package/dist/esm/all-components.d.ts +27 -0
- package/dist/esm/all-components.js +28 -0
- package/dist/esm/all-components.js.map +1 -0
- package/dist/esm/breadcrumb/index.d.ts +1 -2
- package/dist/esm/breadcrumb/index.js +1 -1
- package/dist/esm/breadcrumb/index.js.map +1 -1
- package/dist/esm/breadcrumb-item/index.d.ts +1 -2
- package/dist/esm/breadcrumb-item/index.js +1 -1
- package/dist/esm/breadcrumb-item/index.js.map +1 -1
- package/dist/esm/button/index.d.ts +1 -2
- package/dist/esm/button/index.js +1 -1
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/checkbox/index.d.ts +1 -2
- package/dist/esm/checkbox/index.js +1 -1
- package/dist/esm/checkbox/index.js.map +1 -1
- package/dist/esm/drawer/index.d.ts +1 -2
- package/dist/esm/drawer/index.js +1 -1
- package/dist/esm/drawer/index.js.map +1 -1
- package/dist/esm/listbox-option/index.d.ts +1 -2
- package/dist/esm/listbox-option/index.js +1 -1
- package/dist/esm/listbox-option/index.js.map +1 -1
- package/dist/esm/menu/index.d.ts +1 -2
- package/dist/esm/menu/index.js +1 -1
- package/dist/esm/menu/index.js.map +1 -1
- package/dist/esm/menu-item/index.d.ts +1 -2
- package/dist/esm/menu-item/index.js +1 -1
- package/dist/esm/menu-item/index.js.map +1 -1
- package/dist/esm/nimble-components/src/all-components.d.ts +27 -0
- package/dist/esm/nimble-components/src/breadcrumb/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/breadcrumb-item/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/button/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/checkbox/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/drawer/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/listbox-option/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/menu/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/menu-item/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/number-field/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/select/index.d.ts +2 -4
- package/dist/esm/nimble-components/src/switch/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/tab/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/tab-panel/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/tabs/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/tabs-toolbar/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/tabs-toolbar/template.d.ts +2 -1
- package/dist/esm/nimble-components/src/text-area/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/text-field/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/toggle-button/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/toolbar/index.d.ts +11 -0
- package/dist/esm/nimble-components/src/toolbar/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/tree-item/index.d.ts +1 -2
- package/dist/esm/nimble-components/src/tree-view/index.d.ts +1 -2
- package/dist/esm/number-field/index.d.ts +1 -2
- package/dist/esm/number-field/index.js +1 -1
- package/dist/esm/number-field/index.js.map +1 -1
- package/dist/esm/select/index.d.ts +2 -4
- package/dist/esm/select/index.js +9 -19
- package/dist/esm/select/index.js.map +1 -1
- package/dist/esm/switch/index.d.ts +1 -2
- package/dist/esm/switch/index.js +1 -1
- package/dist/esm/switch/index.js.map +1 -1
- package/dist/esm/tab/index.d.ts +1 -2
- package/dist/esm/tab/index.js +1 -1
- package/dist/esm/tab/index.js.map +1 -1
- package/dist/esm/tab-panel/index.d.ts +1 -2
- package/dist/esm/tab-panel/index.js +1 -1
- package/dist/esm/tab-panel/index.js.map +1 -1
- package/dist/esm/tabs/index.d.ts +1 -2
- package/dist/esm/tabs/index.js +1 -1
- package/dist/esm/tabs/index.js.map +1 -1
- package/dist/esm/tabs-toolbar/index.d.ts +1 -2
- package/dist/esm/tabs-toolbar/index.js +1 -1
- package/dist/esm/tabs-toolbar/index.js.map +1 -1
- package/dist/esm/tabs-toolbar/template.d.ts +2 -1
- package/dist/esm/tabs-toolbar/template.js.map +1 -1
- package/dist/esm/text-area/index.d.ts +1 -2
- package/dist/esm/text-area/index.js +1 -1
- package/dist/esm/text-area/index.js.map +1 -1
- package/dist/esm/text-field/index.d.ts +1 -2
- package/dist/esm/text-field/index.js +1 -1
- package/dist/esm/text-field/index.js.map +1 -1
- package/dist/esm/toggle-button/index.d.ts +1 -2
- package/dist/esm/toggle-button/index.js +1 -1
- package/dist/esm/toggle-button/index.js.map +1 -1
- package/dist/esm/toolbar/index.d.ts +11 -0
- package/dist/esm/toolbar/index.js +18 -0
- package/dist/esm/toolbar/index.js.map +1 -0
- package/dist/esm/toolbar/styles.d.ts +1 -0
- package/dist/esm/toolbar/styles.js +28 -0
- package/dist/esm/toolbar/styles.js.map +1 -0
- package/dist/esm/tree-item/index.d.ts +1 -2
- package/dist/esm/tree-item/index.js +1 -1
- package/dist/esm/tree-item/index.js.map +1 -1
- package/dist/esm/tree-view/index.d.ts +1 -2
- package/dist/esm/tree-view/index.js +1 -1
- package/dist/esm/tree-view/index.js.map +1 -1
- package/package.json +6 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Toolbar as FoundationToolbar } from '@microsoft/fast-foundation';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'nimble-toolbar': Toolbar;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A nimble-styled Toolbar
|
|
9
|
+
*/
|
|
10
|
+
export declare class Toolbar extends FoundationToolbar {
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TreeItem as FoundationTreeItem } from '@microsoft/fast-foundation';
|
|
2
|
-
export type { TreeItem };
|
|
3
2
|
declare global {
|
|
4
3
|
interface HTMLElementTagNameMap {
|
|
5
4
|
'nimble-tree-item': TreeItem;
|
|
@@ -15,7 +14,7 @@ declare global {
|
|
|
15
14
|
* Generates HTML Element: \<nimble-tree-item\>
|
|
16
15
|
*
|
|
17
16
|
*/
|
|
18
|
-
declare class TreeItem extends FoundationTreeItem {
|
|
17
|
+
export declare class TreeItem extends FoundationTreeItem {
|
|
19
18
|
private treeView;
|
|
20
19
|
constructor();
|
|
21
20
|
connectedCallback(): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TreeView as FoundationTreeView } from '@microsoft/fast-foundation';
|
|
2
2
|
import { TreeViewSelectionMode } from './types';
|
|
3
|
-
export type { TreeView };
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'nimble-tree-view': TreeView;
|
|
@@ -16,6 +15,6 @@ declare global {
|
|
|
16
15
|
* Generates HTML Element: \<nimble-tree-view\>
|
|
17
16
|
*
|
|
18
17
|
*/
|
|
19
|
-
declare class TreeView extends FoundationTreeView {
|
|
18
|
+
export declare class TreeView extends FoundationTreeView {
|
|
20
19
|
selectionMode: TreeViewSelectionMode;
|
|
21
20
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NumberField as FoundationNumberField } from '@microsoft/fast-foundation';
|
|
2
|
-
export type { NumberField };
|
|
3
2
|
declare global {
|
|
4
3
|
interface HTMLElementTagNameMap {
|
|
5
4
|
'nimble-number-field': NumberField;
|
|
@@ -8,5 +7,5 @@ declare global {
|
|
|
8
7
|
/**
|
|
9
8
|
* A nimble-styled HTML number input
|
|
10
9
|
*/
|
|
11
|
-
declare class NumberField extends FoundationNumberField {
|
|
10
|
+
export declare class NumberField extends FoundationNumberField {
|
|
12
11
|
}
|
|
@@ -4,7 +4,7 @@ import { styles } from './styles';
|
|
|
4
4
|
/**
|
|
5
5
|
* A nimble-styled HTML number input
|
|
6
6
|
*/
|
|
7
|
-
class NumberField extends FoundationNumberField {
|
|
7
|
+
export class NumberField extends FoundationNumberField {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* A function that returns a number-field registration for configuring the component with a DesignSystem.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/number-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,WAAW,IAAI,qBAAqB,EAEpC,mBAAmB,IAAI,QAAQ,EAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,sBAAsB,EACtB,oBAAoB,EACvB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/number-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,WAAW,IAAI,qBAAqB,EAEpC,mBAAmB,IAAI,QAAQ,EAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,sBAAsB,EACtB,oBAAoB,EACvB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,qBAAqB;CAAG;AAEzD;;;;;;;GAOG;AACH,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAqB;IAC9D,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,qBAAqB;IAChC,QAAQ;IACR,MAAM;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;IACD,aAAa,EAAE,sBAAsB,CAAC,IAAI;IAC1C,WAAW,EAAE,oBAAoB,CAAC,IAAI;CACzC,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Select as FoundationSelect } from '@microsoft/fast-foundation';
|
|
2
|
-
export type { Select };
|
|
3
2
|
declare global {
|
|
4
3
|
interface HTMLElementTagNameMap {
|
|
5
4
|
'nimble-select': Select;
|
|
@@ -8,9 +7,8 @@ declare global {
|
|
|
8
7
|
/**
|
|
9
8
|
* A nimble-styed HTML select
|
|
10
9
|
*/
|
|
11
|
-
declare class Select extends FoundationSelect {
|
|
12
|
-
get value(): string;
|
|
13
|
-
set value(value: string);
|
|
10
|
+
export declare class Select extends FoundationSelect {
|
|
14
11
|
setPositioning(): void;
|
|
15
12
|
connectedCallback(): void;
|
|
13
|
+
slottedOptionsChanged(prev: Element[], next: Element[]): void;
|
|
16
14
|
}
|
package/dist/esm/select/index.js
CHANGED
|
@@ -4,25 +4,7 @@ import { styles } from './styles';
|
|
|
4
4
|
/**
|
|
5
5
|
* A nimble-styed HTML select
|
|
6
6
|
*/
|
|
7
|
-
class Select extends FoundationSelect {
|
|
8
|
-
get value() {
|
|
9
|
-
return super.value;
|
|
10
|
-
}
|
|
11
|
-
set value(value) {
|
|
12
|
-
super.value = value;
|
|
13
|
-
// Workaround for https://github.com/microsoft/fast/issues/5139
|
|
14
|
-
// When the value property is set very early in the element's lifecycle (e.g. Angular value binding),
|
|
15
|
-
// the options property will not be set yet. As a workaround, we mark the listbox-option element with
|
|
16
|
-
// the selected attribute, which will set the initial value correctly.
|
|
17
|
-
if (value !== null && this.options.length === 0) {
|
|
18
|
-
const options = this.querySelectorAll('option,[role="option"]');
|
|
19
|
-
options.forEach(option => {
|
|
20
|
-
if (option.getAttribute('value') === value) {
|
|
21
|
-
option.setAttribute('selected', '');
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
7
|
+
export class Select extends FoundationSelect {
|
|
26
8
|
// Workaround for https://github.com/microsoft/fast/issues/5123
|
|
27
9
|
setPositioning() {
|
|
28
10
|
if (!this.$fastController.isConnected) {
|
|
@@ -37,6 +19,14 @@ class Select extends FoundationSelect {
|
|
|
37
19
|
// Call setPositioning() after this.forcedPosition is initialized.
|
|
38
20
|
this.setPositioning();
|
|
39
21
|
}
|
|
22
|
+
// Workaround for https://github.com/microsoft/fast/issues/5773
|
|
23
|
+
slottedOptionsChanged(prev, next) {
|
|
24
|
+
const value = this.value;
|
|
25
|
+
super.slottedOptionsChanged(prev, next);
|
|
26
|
+
if (value) {
|
|
27
|
+
this.value = value;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
40
30
|
}
|
|
41
31
|
const nimbleSelect = Select.compose({
|
|
42
32
|
baseName: 'select',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,MAAM,IAAI,gBAAgB,EAE1B,cAAc,IAAI,QAAQ,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAC9F,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,MAAM,IAAI,gBAAgB,EAE1B,cAAc,IAAI,QAAQ,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAC9F,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,gBAAgB;IACxC,+DAA+D;IAC/C,cAAc;QAC1B,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE;YACnC,qDAAqD;YACrD,mDAAmD;YACnD,OAAO;SACV;QACD,KAAK,CAAC,cAAc,EAAE,CAAC;IAC3B,CAAC;IAEe,iBAAiB;QAC7B,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,kEAAkE;QAClE,IAAI,CAAC,cAAc,EAAE,CAAC;IAC1B,CAAC;IAED,+DAA+D;IAC/C,qBAAqB,CACjC,IAAe,EACf,IAAe;QAEf,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,KAAK,CAAC,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACxC,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACtB;IACL,CAAC;CACJ;AAED,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAgB;IAC/C,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,gBAAgB;IAC3B,QAAQ;IACR,MAAM;IACN,SAAS,EAAE,sBAAsB,CAAC,IAAI;CACzC,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Switch as FoundationSwitch } from '@microsoft/fast-foundation';
|
|
2
|
-
export type { Switch };
|
|
3
2
|
declare global {
|
|
4
3
|
interface HTMLElementTagNameMap {
|
|
5
4
|
'nimble-switch': Switch;
|
|
@@ -8,5 +7,5 @@ declare global {
|
|
|
8
7
|
/**
|
|
9
8
|
* A nimble-styled switch control.
|
|
10
9
|
*/
|
|
11
|
-
declare class Switch extends FoundationSwitch {
|
|
10
|
+
export declare class Switch extends FoundationSwitch {
|
|
12
11
|
}
|
package/dist/esm/switch/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,MAAM,IAAI,gBAAgB,EAE7B,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/switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,MAAM,IAAI,gBAAgB,EAE7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,gBAAgB;CAAG;AAE/C,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAgB;IAC/C,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE,QAAQ;IAClB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC"}
|
package/dist/esm/tab/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Tab as FoundationTab } from '@microsoft/fast-foundation';
|
|
2
|
-
export type { Tab };
|
|
3
2
|
declare global {
|
|
4
3
|
interface HTMLElementTagNameMap {
|
|
5
4
|
'nimble-tab': Tab;
|
|
@@ -8,5 +7,5 @@ declare global {
|
|
|
8
7
|
/**
|
|
9
8
|
* A nimble-styled HTML tab
|
|
10
9
|
*/
|
|
11
|
-
declare class Tab extends FoundationTab {
|
|
10
|
+
export declare class Tab extends FoundationTab {
|
|
12
11
|
}
|
package/dist/esm/tab/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tab/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,GAAG,IAAI,aAAa,EACpB,WAAW,IAAI,QAAQ,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tab/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,GAAG,IAAI,aAAa,EACpB,WAAW,IAAI,QAAQ,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,aAAa;CAAG;AAEzC,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC;IAC1B,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,aAAa;IACxB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TabPanel as FoundationTabPanel } from '@microsoft/fast-foundation';
|
|
2
|
-
export type { TabPanel };
|
|
3
2
|
declare global {
|
|
4
3
|
interface HTMLElementTagNameMap {
|
|
5
4
|
'nimble-tab-panel': TabPanel;
|
|
@@ -8,5 +7,5 @@ declare global {
|
|
|
8
7
|
/**
|
|
9
8
|
* A nimble-styled tab panel
|
|
10
9
|
*/
|
|
11
|
-
declare class TabPanel extends FoundationTabPanel {
|
|
10
|
+
export declare class TabPanel extends FoundationTabPanel {
|
|
12
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tab-panel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,QAAQ,IAAI,kBAAkB,EAC9B,gBAAgB,IAAI,QAAQ,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tab-panel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,QAAQ,IAAI,kBAAkB,EAC9B,gBAAgB,IAAI,QAAQ,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,kBAAkB;CAAG;AAEnD,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAC;IACpC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,kBAAkB;IAC7B,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAC"}
|
package/dist/esm/tabs/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Tabs as FoundationTabs } from '@microsoft/fast-foundation';
|
|
2
|
-
export type { Tabs };
|
|
3
2
|
declare global {
|
|
4
3
|
interface HTMLElementTagNameMap {
|
|
5
4
|
'nimble-tabs': Tabs;
|
|
@@ -8,5 +7,5 @@ declare global {
|
|
|
8
7
|
/**
|
|
9
8
|
* A nimble-styled tabs control
|
|
10
9
|
*/
|
|
11
|
-
declare class Tabs extends FoundationTabs {
|
|
10
|
+
export declare class Tabs extends FoundationTabs {
|
|
12
11
|
}
|
package/dist/esm/tabs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,IAAI,IAAI,cAAc,EAEtB,YAAY,IAAI,QAAQ,EAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,IAAI,IAAI,cAAc,EAEtB,YAAY,IAAI,QAAQ,EAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,cAAc;CAAG;AAE3C,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAc;IACzC,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,cAAc;IACzB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
export type { TabsToolbar };
|
|
3
2
|
declare global {
|
|
4
3
|
interface HTMLElementTagNameMap {
|
|
5
4
|
'nimble-tabs-toolbar': TabsToolbar;
|
|
@@ -8,5 +7,5 @@ declare global {
|
|
|
8
7
|
/**
|
|
9
8
|
* A nimble-styled container for toolbar content next to tabs.
|
|
10
9
|
*/
|
|
11
|
-
declare class TabsToolbar extends FoundationElement {
|
|
10
|
+
export declare class TabsToolbar extends FoundationElement {
|
|
12
11
|
}
|
|
@@ -4,7 +4,7 @@ import { template } from './template';
|
|
|
4
4
|
/**
|
|
5
5
|
* A nimble-styled container for toolbar content next to tabs.
|
|
6
6
|
*/
|
|
7
|
-
class TabsToolbar extends FoundationElement {
|
|
7
|
+
export class TabsToolbar extends FoundationElement {
|
|
8
8
|
}
|
|
9
9
|
const nimbleTabsToolbar = TabsToolbar.compose({
|
|
10
10
|
baseName: 'tabs-toolbar',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tabs-toolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tabs-toolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,iBAAiB;CAAG;AAErD,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC;IAC1C,QAAQ,EAAE,cAAc;IACxB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,CAAC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { TabsToolbar } from '.';
|
|
2
|
+
export declare const template: import("@microsoft/fast-element").ViewTemplate<TabsToolbar, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/tabs-toolbar/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/tabs-toolbar/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAa;;;;;CAKxC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TextArea as FoundationTextArea } from '@microsoft/fast-foundation';
|
|
2
2
|
import { TextAreaAppearance } from './types';
|
|
3
|
-
export type { TextArea };
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'nimble-text-area': TextArea;
|
|
@@ -9,7 +8,7 @@ declare global {
|
|
|
9
8
|
/**
|
|
10
9
|
* A nimble-styed HTML text area
|
|
11
10
|
*/
|
|
12
|
-
declare class TextArea extends FoundationTextArea {
|
|
11
|
+
export declare class TextArea extends FoundationTextArea {
|
|
13
12
|
/**
|
|
14
13
|
* The appearance the text area should have.
|
|
15
14
|
*
|
|
@@ -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;AAC/C,OAAO,EACH,YAAY,EACZ,QAAQ,IAAI,kBAAkB,EAC9B,gBAAgB,IAAI,QAAQ,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/text-area/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EACH,YAAY,EACZ,QAAQ,IAAI,kBAAkB,EAC9B,gBAAgB,IAAI,QAAQ,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,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;IACvE,CAAC;CAAA;AADG;IADC,IAAI;4CAC8D;AAGvE,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAC;IACpC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,kBAAkB;IAC7B,QAAQ;IACR,MAAM;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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TextField as FoundationTextField } from '@microsoft/fast-foundation';
|
|
2
2
|
import { TextFieldAppearance } from './types';
|
|
3
|
-
export type { TextField };
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'nimble-text-field': TextField;
|
|
@@ -9,7 +8,7 @@ declare global {
|
|
|
9
8
|
/**
|
|
10
9
|
* A nimble-styed HTML text input
|
|
11
10
|
*/
|
|
12
|
-
declare class TextField extends FoundationTextField {
|
|
11
|
+
export declare class TextField extends FoundationTextField {
|
|
13
12
|
/**
|
|
14
13
|
* The appearance the text field should have.
|
|
15
14
|
*
|
|
@@ -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,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/text-field/index.ts"],"names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} from '@microsoft/fast-foundation';
|
|
2
2
|
import { ButtonAppearance } from '../patterns/button/types';
|
|
3
|
-
export type { ToggleButton };
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'nimble-toggle-button': ToggleButton;
|
|
@@ -9,7 +8,7 @@ declare global {
|
|
|
9
8
|
/**
|
|
10
9
|
* A nimble-styled toggle button control.
|
|
11
10
|
*/
|
|
12
|
-
declare class ToggleButton extends FoundationSwitch {
|
|
11
|
+
export declare class ToggleButton extends FoundationSwitch {
|
|
13
12
|
/**
|
|
14
13
|
* The appearance the button should have.
|
|
15
14
|
*
|
|
@@ -7,7 +7,7 @@ import { ButtonAppearance } from '../patterns/button/types';
|
|
|
7
7
|
/**
|
|
8
8
|
* A nimble-styled toggle button control.
|
|
9
9
|
*/
|
|
10
|
-
class ToggleButton extends FoundationSwitch {
|
|
10
|
+
export class ToggleButton extends FoundationSwitch {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/toggle-button/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EACH,WAAW,EAEX,YAAY,EACZ,QAAQ,EACR,MAAM,IAAI,gBAAgB,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/toggle-button/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EACH,WAAW,EAEX,YAAY,EACZ,QAAQ,EACR,MAAM,IAAI,gBAAgB,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQ5D;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IAAlD;;QACI;;;;;;WAMG;QAEI,eAAU,GAAqB,gBAAgB,CAAC,OAAO,CAAC;QAE/D;;;;;;;;WAQG;QAEI,kBAAa,GAAG,KAAK,CAAC;IAIjC,CAAC;CAAA;AAhBG;IADC,IAAI;gDAC0D;AAY/D;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;mDAC1B;AAKjC,WAAW,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AAEpC,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,CAAgB;IAC3D,QAAQ,EAAE,eAAe;IACzB,QAAQ;IACR,MAAM;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;CACJ,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Toolbar as FoundationToolbar } from '@microsoft/fast-foundation';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'nimble-toolbar': Toolbar;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A nimble-styled Toolbar
|
|
9
|
+
*/
|
|
10
|
+
export declare class Toolbar extends FoundationToolbar {
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DesignSystem, Toolbar as FoundationToolbar, toolbarTemplate as template } from '@microsoft/fast-foundation';
|
|
2
|
+
import { styles } from './styles';
|
|
3
|
+
/**
|
|
4
|
+
* A nimble-styled Toolbar
|
|
5
|
+
*/
|
|
6
|
+
export class Toolbar extends FoundationToolbar {
|
|
7
|
+
}
|
|
8
|
+
const nimbleToolbar = Toolbar.compose({
|
|
9
|
+
baseName: 'toolbar',
|
|
10
|
+
baseClass: FoundationToolbar,
|
|
11
|
+
template,
|
|
12
|
+
styles,
|
|
13
|
+
shadowOptions: {
|
|
14
|
+
delegatesFocus: true
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleToolbar());
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/toolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,OAAO,IAAI,iBAAiB,EAE5B,eAAe,IAAI,QAAQ,EAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,iBAAiB;CAAG;AAEjD,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAiB;IAClD,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,iBAAiB;IAC5B,QAAQ;IACR,MAAM;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;CACJ,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { applicationBackgroundColor, smallPadding, standardPadding } from '../theme-provider/design-tokens';
|
|
3
|
+
export const styles = css `
|
|
4
|
+
.positioning-region {
|
|
5
|
+
display: flex;
|
|
6
|
+
padding: ${smallPadding} ${standardPadding};
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: ${standardPadding};
|
|
9
|
+
background: ${applicationBackgroundColor};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
slot[name='label'] {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[part='start'] {
|
|
17
|
+
display: flex;
|
|
18
|
+
gap: ${standardPadding};
|
|
19
|
+
margin-right: auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[part='end'] {
|
|
23
|
+
display: flex;
|
|
24
|
+
gap: ${standardPadding};
|
|
25
|
+
margin-left: auto;
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/toolbar/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACH,0BAA0B,EAC1B,YAAY,EACZ,eAAe,EAClB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;mBAGN,YAAY,IAAI,eAAe;;eAEnC,eAAe;sBACR,0BAA0B;;;;;;;;;eASjC,eAAe;;;;;;eAMf,eAAe;;;CAG7B,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TreeItem as FoundationTreeItem } from '@microsoft/fast-foundation';
|
|
2
|
-
export type { TreeItem };
|
|
3
2
|
declare global {
|
|
4
3
|
interface HTMLElementTagNameMap {
|
|
5
4
|
'nimble-tree-item': TreeItem;
|
|
@@ -15,7 +14,7 @@ declare global {
|
|
|
15
14
|
* Generates HTML Element: \<nimble-tree-item\>
|
|
16
15
|
*
|
|
17
16
|
*/
|
|
18
|
-
declare class TreeItem extends FoundationTreeItem {
|
|
17
|
+
export declare class TreeItem extends FoundationTreeItem {
|
|
19
18
|
private treeView;
|
|
20
19
|
constructor();
|
|
21
20
|
connectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tree-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,IAAI,QAAQ,EAC5B,QAAQ,IAAI,kBAAkB,EAE9B,YAAY,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAE5F,OAAO,EACH,sBAAsB,EACtB,qBAAqB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tree-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,IAAI,QAAQ,EAC5B,QAAQ,IAAI,kBAAkB,EAE9B,YAAY,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAE5F,OAAO,EACH,sBAAsB,EACtB,qBAAqB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC;;;;;;;;;GASG;AACH,MAAM,OAAO,QAAS,SAAQ,kBAAkB;IAG5C;QACI,KAAK,EAAE,CAAC;QAHJ,aAAQ,GAAoB,IAAI,CAAC;QA4BxB,wBAAmB,GAAG,CAAC,KAAiB,EAAQ,EAAE;YAC/D,IAAI,KAAK,CAAC,YAAY,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE;gBAC1D,oDAAoD;gBACpD,OAAO;aACV;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,MAAqB,CAAC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AE5D,IAAI,YAAY,GAAwD,OAAO,CAAC;QAChF,OACI,YAAY;eACT,CAAC,CAAC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,KAAK,UAAU,CAAC,EACzD;YACE,YAAY,GAAG,YAAY,EAAE,aAAa,CAAC;SAC9C;QAED,OAAO,YAAkC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACK,iBAAiB;QACrB,MAAM,UAAU,GAAmB,IAAI,CAAC,aAAc,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAChF,OAAO,UAAsB,CAAC;IAClC,CAAC;CACJ;AAED,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAkB;IACrD,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,kBAAkB;IAC7B,QAAQ;IACR,MAAM;IACN,mBAAmB,EAAE,oBAAoB,CAAC,IAAI;CACjD,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TreeView as FoundationTreeView } from '@microsoft/fast-foundation';
|
|
2
2
|
import { TreeViewSelectionMode } from './types';
|
|
3
|
-
export type { TreeView };
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'nimble-tree-view': TreeView;
|
|
@@ -16,6 +15,6 @@ declare global {
|
|
|
16
15
|
* Generates HTML Element: \<nimble-tree-view\>
|
|
17
16
|
*
|
|
18
17
|
*/
|
|
19
|
-
declare class TreeView extends FoundationTreeView {
|
|
18
|
+
export declare class TreeView extends FoundationTreeView {
|
|
20
19
|
selectionMode: TreeViewSelectionMode;
|
|
21
20
|
}
|
|
@@ -13,7 +13,7 @@ import { TreeViewSelectionMode } from './types';
|
|
|
13
13
|
* Generates HTML Element: \<nimble-tree-view\>
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
class TreeView extends FoundationTreeView {
|
|
16
|
+
export class TreeView extends FoundationTreeView {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
19
|
this.selectionMode = TreeViewSelectionMode.All;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tree-view/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EACH,gBAAgB,IAAI,QAAQ,EAC5B,QAAQ,IAAI,kBAAkB,EAC9B,YAAY,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tree-view/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EACH,gBAAgB,IAAI,QAAQ,EAC5B,QAAQ,IAAI,kBAAkB,EAC9B,YAAY,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAQhD;;;;;;;;;GASG;AACH,MAAM,OAAO,QAAS,SAAQ,kBAAkB;IAAhD;;QAEW,kBAAa,GAA0B,qBAAqB,CAAC,GAAG,CAAC;IAC5E,CAAC;CAAA;AADG;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;+CACkC;AAG5E,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAC;IACpC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,kBAAkB;IAC7B,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"description": "Styled web components for the NI Nimble Design System",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "npm run generate-icons && npm run build-components && npm run generate-scss && npm run build-storybook",
|
|
6
|
+
"build": "npm run generate-icons && npm run build-components && npm run bundle-components && npm run generate-scss && npm run build-storybook",
|
|
7
7
|
"lint": "npm run eslint && npm run prettier",
|
|
8
8
|
"format": "npm run eslint-fix && npm run prettier-fix",
|
|
9
9
|
"eslint": "eslint .",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"build-storybook": "build-storybook -o dist/storybook",
|
|
17
17
|
"build-components": "tsc -p ./tsconfig.json",
|
|
18
18
|
"build-components:watch": "tsc -p ./tsconfig.json -w",
|
|
19
|
+
"bundle-components": "rollup --config",
|
|
19
20
|
"generate-icons": "npm run generate-icons:bundle && npm run generate-icons:run",
|
|
20
21
|
"generate-icons:bundle": "rollup --config build/generate-icons/rollup.config.js",
|
|
21
22
|
"generate-icons:run": "node build/generate-icons/dist/index.js",
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
"@babel/preset-env": "^7.13.15",
|
|
59
60
|
"@ni/eslint-config-javascript": "^3.1.0",
|
|
60
61
|
"@ni/eslint-config-typescript": "^3.0.5",
|
|
62
|
+
"@rollup/plugin-commonjs": "^21.0.2",
|
|
61
63
|
"@rollup/plugin-node-resolve": "13.1.3",
|
|
62
64
|
"@storybook/addon-a11y": "^6.4.9",
|
|
63
65
|
"@storybook/addon-actions": "^6.4.9",
|
|
@@ -95,6 +97,8 @@
|
|
|
95
97
|
"prettier-eslint-cli": "^5.0.1",
|
|
96
98
|
"puppeteer": "^10.1.0",
|
|
97
99
|
"rollup": "^2.61.1",
|
|
100
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
101
|
+
"rollup-plugin-transform-tagged-template": "^0.0.3",
|
|
98
102
|
"storybook-addon-xd-designs": "^6.0.0",
|
|
99
103
|
"ts-loader": "^9.2.5",
|
|
100
104
|
"typescript": "^4.3.2",
|