@ni/nimble-components 27.1.0 → 27.1.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.
@@ -1,5 +1,4 @@
1
1
  import { Menu as FoundationMenu } from '@microsoft/fast-foundation';
2
- import '../anchored-region';
3
2
  declare global {
4
3
  interface HTMLElementTagNameMap {
5
4
  'nimble-menu': Menu;
@@ -1,8 +1,5 @@
1
1
  import { DesignSystem, Menu as FoundationMenu, menuTemplate as template } from '@microsoft/fast-foundation';
2
2
  import { styles } from './styles';
3
- // FAST menu template requires an anchored region is available using tagFor DI
4
- // Register anchored region explicitly to make sure it is defined for the template
5
- import '../anchored-region';
6
3
  /**
7
4
  * A nimble-styled menu
8
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,IAAI,IAAI,cAAc,EACtB,YAAY,IAAI,QAAQ,EAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,8EAA8E;AAC9E,kFAAkF;AAClF,OAAO,oBAAoB,CAAC;AAQ5B;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,cAAc;CAAG;AAE3C;;;;;;;;GAQG;AACH,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC;IAC5B,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;AACvE,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC","sourcesContent":["import {\n DesignSystem,\n Menu as FoundationMenu,\n menuTemplate as template\n} from '@microsoft/fast-foundation';\nimport { styles } from './styles';\n\n// FAST menu template requires an anchored region is available using tagFor DI\n// Register anchored region explicitly to make sure it is defined for the template\nimport '../anchored-region';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-menu': Menu;\n }\n}\n\n/**\n * A nimble-styled menu\n */\nexport class Menu extends FoundationMenu {}\n\n/**\n * A function that returns a nimble-menu registration for configuring the component with a DesignSystem.\n * Implements {@link @microsoft/fast-foundation#menuTemplate}\n *\n * @public\n * @remarks\n * Generates HTML Element: \\<nimble-menu\\>\n *\n */\nconst nimbleMenu = Menu.compose({\n baseName: 'menu',\n baseClass: FoundationMenu,\n template,\n styles\n});\n\nDesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());\nexport const menuTag = 'nimble-menu';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,IAAI,IAAI,cAAc,EACtB,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;;;;;;;;GAQG;AACH,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC;IAC5B,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;AACvE,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC","sourcesContent":["import {\n DesignSystem,\n Menu as FoundationMenu,\n menuTemplate as template\n} from '@microsoft/fast-foundation';\nimport { styles } from './styles';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-menu': Menu;\n }\n}\n\n/**\n * A nimble-styled menu\n */\nexport class Menu extends FoundationMenu {}\n\n/**\n * A function that returns a nimble-menu registration for configuring the component with a DesignSystem.\n * Implements {@link @microsoft/fast-foundation#menuTemplate}\n *\n * @public\n * @remarks\n * Generates HTML Element: \\<nimble-menu\\>\n *\n */\nconst nimbleMenu = Menu.compose({\n baseName: 'menu',\n baseClass: FoundationMenu,\n template,\n styles\n});\n\nDesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());\nexport const menuTag = 'nimble-menu';\n"]}
@@ -1,4 +1,5 @@
1
1
  import { MenuItem as FoundationMenuItem } from '@microsoft/fast-foundation';
2
+ import '../anchored-region';
2
3
  declare global {
3
4
  interface HTMLElementTagNameMap {
4
5
  'nimble-menu-item': MenuItem;
@@ -1,6 +1,9 @@
1
1
  import { DesignSystem, MenuItem as FoundationMenuItem, menuItemTemplate as template } from '@microsoft/fast-foundation';
2
2
  import { arrowExpanderRight16X16 } from '@ni/nimble-tokens/dist/icons/js';
3
3
  import { styles } from './styles';
4
+ // FAST menu item template requires an anchored region is available using tagFor DI
5
+ // Register anchored region explicitly to make sure it is defined for the template
6
+ import '../anchored-region';
4
7
  /**
5
8
  * A nimble-styled menu-item
6
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/menu-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,QAAQ,IAAI,kBAAkB,EAC9B,gBAAgB,IAAI,QAAQ,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,kBAAkB;CAAG;AAEnD;;;;;;;;GAQG;AACH,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAkB;IACrD,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,kBAAkB;IAC7B,QAAQ;IACR,MAAM;IACN,mBAAmB,EAAE,uBAAuB,CAAC,IAAI;CACpD,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,kBAAkB,CAAC","sourcesContent":["import {\n DesignSystem,\n MenuItem as FoundationMenuItem,\n menuItemTemplate as template,\n MenuItemOptions\n} from '@microsoft/fast-foundation';\nimport { arrowExpanderRight16X16 } from '@ni/nimble-tokens/dist/icons/js';\nimport { styles } from './styles';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-menu-item': MenuItem;\n }\n}\n\n/**\n * A nimble-styled menu-item\n */\nexport class MenuItem extends FoundationMenuItem {}\n\n/**\n * A function that returns a nimble-menu-item registration for configuring the component with a DesignSystem.\n * Implements {@link @microsoft/fast-foundation#menuItemTemplate}\n *\n * @public\n * @remarks\n * Generates HTML Element: \\<nimble-menu-item\\>\n *\n */\nconst nimbleMenuItem = MenuItem.compose<MenuItemOptions>({\n baseName: 'menu-item',\n baseClass: FoundationMenuItem,\n template,\n styles,\n expandCollapseGlyph: arrowExpanderRight16X16.data\n});\n\nDesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());\nexport const menuItemTag = 'nimble-menu-item';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/menu-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,QAAQ,IAAI,kBAAkB,EAC9B,gBAAgB,IAAI,QAAQ,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,mFAAmF;AACnF,kFAAkF;AAClF,OAAO,oBAAoB,CAAC;AAQ5B;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,kBAAkB;CAAG;AAEnD;;;;;;;;GAQG;AACH,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAkB;IACrD,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,kBAAkB;IAC7B,QAAQ;IACR,MAAM;IACN,mBAAmB,EAAE,uBAAuB,CAAC,IAAI;CACpD,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,kBAAkB,CAAC","sourcesContent":["import {\n DesignSystem,\n MenuItem as FoundationMenuItem,\n menuItemTemplate as template,\n MenuItemOptions\n} from '@microsoft/fast-foundation';\nimport { arrowExpanderRight16X16 } from '@ni/nimble-tokens/dist/icons/js';\nimport { styles } from './styles';\n\n// FAST menu item template requires an anchored region is available using tagFor DI\n// Register anchored region explicitly to make sure it is defined for the template\nimport '../anchored-region';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-menu-item': MenuItem;\n }\n}\n\n/**\n * A nimble-styled menu-item\n */\nexport class MenuItem extends FoundationMenuItem {}\n\n/**\n * A function that returns a nimble-menu-item registration for configuring the component with a DesignSystem.\n * Implements {@link @microsoft/fast-foundation#menuItemTemplate}\n *\n * @public\n * @remarks\n * Generates HTML Element: \\<nimble-menu-item\\>\n *\n */\nconst nimbleMenuItem = MenuItem.compose<MenuItemOptions>({\n baseName: 'menu-item',\n baseClass: FoundationMenuItem,\n template,\n styles,\n expandCollapseGlyph: arrowExpanderRight16X16.data\n});\n\nDesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());\nexport const menuItemTag = 'nimble-menu-item';\n"]}
@@ -1,5 +1,4 @@
1
1
  import { Menu as FoundationMenu } from '@microsoft/fast-foundation';
2
- import '../anchored-region';
3
2
  declare global {
4
3
  interface HTMLElementTagNameMap {
5
4
  'nimble-menu': Menu;
@@ -1,4 +1,5 @@
1
1
  import { MenuItem as FoundationMenuItem } from '@microsoft/fast-foundation';
2
+ import '../anchored-region';
2
3
  declare global {
3
4
  interface HTMLElementTagNameMap {
4
5
  'nimble-menu-item': MenuItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-components",
3
- "version": "27.1.0",
3
+ "version": "27.1.1",
4
4
  "description": "Styled web components for the NI Nimble Design System",
5
5
  "scripts": {
6
6
  "build": "npm run generate-icons && npm run generate-workers && npm run build-components && npm run bundle-components && npm run generate-scss && npm run build-storybook",