@ncino/web-components 4.3.0-preview.5 → 4.3.0-preview.6
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,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as m}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as m}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as a}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{NjcMenuItem as h}from"../menu-item.js";import"../../../list/gator/list-item/list-item.gator.js";import{KEY_CONSTANTS as n}from"../../../../consts/key-constants.js";var u=Object.getOwnPropertyDescriptor,d=(e,t,o,i)=>{for(var r=i>1?void 0:i?u(t,o):t,c=e.length-1,s;c>=0;c--)(s=e[c])&&(r=s(r)||r);return r};let l=class extends h{constructor(){super()}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.addEventListener("keydown",this.handleKeydown)}render(){return m`
|
|
2
2
|
<ngc-list-item
|
|
3
3
|
@click="${this.handleItemClick}"
|
|
4
4
|
text="${this.value}"
|
|
@@ -7,4 +7,4 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
|
|
|
7
7
|
role="presentation"
|
|
8
8
|
faux-focus
|
|
9
9
|
></ngc-list-item>
|
|
10
|
-
`}focus(){var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("ngc-list-item"))==null||t.focus()}click(){var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("ngc-list-item"))==null||t.click()}handleKeydown(e){var t,
|
|
10
|
+
`}focus(){var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("ngc-list-item"))==null||t.focus()}click(){var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("ngc-list-item"))==null||t.click()}handleKeydown(e){var t,o;(e.key===n.SPACE||e.key===n.ENTER)&&(this.handleItemKeydown(e),(o=(t=this.shadowRoot)==null?void 0:t.querySelector("ngc-list-item"))==null||o.click())}};l=d([a("ngc-menu-item")],l);export{l as NgcMenuItem};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncino/web-components",
|
|
3
3
|
"author": "nCino",
|
|
4
|
-
"version": "4.3.0-preview.
|
|
4
|
+
"version": "4.3.0-preview.6",
|
|
5
5
|
"license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"dependencies:update": "pnpm dlx npm-check-updates -u",
|
|
55
55
|
"dependencies:update:patch": "pnpm dlx npm-check-updates -u --target patch",
|
|
56
56
|
"dependencies:update:minor": "pnpm dlx npm-check-updates -u --target minor",
|
|
57
|
+
"figma-connect-single": "node scripts/figma-connect-single.js",
|
|
57
58
|
"lint": "eslint .",
|
|
58
59
|
"localize:extract": "lit-localize extract",
|
|
59
60
|
"localize:build": "lit-localize build",
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@ncino/web-components",
|
|
4
|
-
"version": "4.3.0-preview.
|
|
4
|
+
"version": "4.3.0-preview.5",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|