@ni/nimble-components 34.6.0 → 34.6.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.
@@ -8,6 +8,7 @@ export const template = html `
8
8
  @cancel="${(x, c) => x.cancelHandler(c.event)}"
9
9
  @close="${(x, c) => x.closeHandler(c.event)}"
10
10
  aria-labelledby="header"
11
+ closedby="${x => (x.preventDismiss ? 'none' : 'closerequest')}"
11
12
  >
12
13
  <header id="header">
13
14
  <div class="title">
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/dialog/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAQ;;;cAGtB,GAAG,CAAC,eAAe,CAAC;;;uBAGX,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC;sBACnC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC;;;;;;;;;;;;;;6BAc1B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;;;sBAG5C,OAAO,CAAC,EAAE,QAAQ,EAAE,uBAAuB,EAAE,CAAC;;;;;CAKnE,CAAC","sourcesContent":["import { html, ref, slotted } from '@ni/fast-element';\nimport type { Dialog } from '.';\n\nexport const template = html<Dialog>`\n <template>\n <dialog\n ${ref('dialogElement')}\n role=\"dialog\"\n part=\"control\"\n @cancel=\"${(x, c) => x.cancelHandler(c.event)}\"\n @close=\"${(x, c) => x.closeHandler(c.event)}\"\n aria-labelledby=\"header\"\n >\n <header id=\"header\">\n <div class=\"title\">\n <slot name=\"title\"></slot>\n </div>\n <div class=\"subtitle\">\n <slot name=\"subtitle\"></slot>\n </div>\n </header>\n <section>\n <slot></slot>\n </section>\n <footer class=\"${x => (x.footerIsEmpty ? 'empty' : '')}\">\n <slot\n name=\"footer\"\n ${slotted({ property: 'slottedFooterElements' })}\n ></slot>\n </footer>\n </dialog>\n </template>\n`;\n"]}
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/dialog/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAQ;;;cAGtB,GAAG,CAAC,eAAe,CAAC;;;uBAGX,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC;sBACnC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC;;wBAE/B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC;;;;;;;;;;;;;6BAa5C,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;;;sBAG5C,OAAO,CAAC,EAAE,QAAQ,EAAE,uBAAuB,EAAE,CAAC;;;;;CAKnE,CAAC","sourcesContent":["import { html, ref, slotted } from '@ni/fast-element';\nimport type { Dialog } from '.';\n\nexport const template = html<Dialog>`\n <template>\n <dialog\n ${ref('dialogElement')}\n role=\"dialog\"\n part=\"control\"\n @cancel=\"${(x, c) => x.cancelHandler(c.event)}\"\n @close=\"${(x, c) => x.closeHandler(c.event)}\"\n aria-labelledby=\"header\"\n closedby=\"${x => (x.preventDismiss ? 'none' : 'closerequest')}\"\n >\n <header id=\"header\">\n <div class=\"title\">\n <slot name=\"title\"></slot>\n </div>\n <div class=\"subtitle\">\n <slot name=\"subtitle\"></slot>\n </div>\n </header>\n <section>\n <slot></slot>\n </section>\n <footer class=\"${x => (x.footerIsEmpty ? 'empty' : '')}\">\n <slot\n name=\"footer\"\n ${slotted({ property: 'slottedFooterElements' })}\n ></slot>\n </footer>\n </dialog>\n </template>\n`;\n"]}
@@ -5,6 +5,7 @@ export const template = html `
5
5
  aria-label="${x => x.ariaLabel}"
6
6
  @cancel="${(x, c) => x.cancelHandler(c.event)}"
7
7
  @close="${(x, c) => x.closeHandler(c.event)}"
8
+ closedby="${x => (x.preventDismiss ? 'none' : 'closerequest')}"
8
9
  >
9
10
  <div class="dialog-contents">
10
11
  <slot></slot>
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/drawer/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAG7C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAQ;;UAE1B,GAAG,CAAC,QAAQ,CAAC;sBACD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;mBACnB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC;kBACnC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC;;;;;;CAMlD,CAAC","sourcesContent":["import { html, ref } from '@ni/fast-element';\nimport type { Drawer } from '.';\n\nexport const template = html<Drawer>`\n <dialog\n ${ref('dialog')}\n aria-label=\"${x => x.ariaLabel}\"\n @cancel=\"${(x, c) => x.cancelHandler(c.event)}\"\n @close=\"${(x, c) => x.closeHandler(c.event)}\"\n >\n <div class=\"dialog-contents\">\n <slot></slot>\n </div>\n </dialog>\n`;\n"]}
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/drawer/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAG7C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAQ;;UAE1B,GAAG,CAAC,QAAQ,CAAC;sBACD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;mBACnB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC;kBACnC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC;oBAC/B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC;;;;;;CAMpE,CAAC","sourcesContent":["import { html, ref } from '@ni/fast-element';\nimport type { Drawer } from '.';\n\nexport const template = html<Drawer>`\n <dialog\n ${ref('dialog')}\n aria-label=\"${x => x.ariaLabel}\"\n @cancel=\"${(x, c) => x.cancelHandler(c.event)}\"\n @close=\"${(x, c) => x.closeHandler(c.event)}\"\n closedby=\"${x => (x.preventDismiss ? 'none' : 'closerequest')}\"\n >\n <div class=\"dialog-contents\">\n <slot></slot>\n </div>\n </dialog>\n`;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-components",
3
- "version": "34.6.0",
3
+ "version": "34.6.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",