@ncino/web-components 13.0.1 → 13.0.2
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{NjcAlert as d}from"../../alert.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as s}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as
|
|
1
|
+
import{NjcAlert as d}from"../../alert.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as s}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as m}from"../../../../utils/decorators/custom-element-decorator.js";import g from"../../../../packages/web-components/src/components/alert/gator/base/alert.gator.scss.js";import h from"../../../../packages/styles/dist/tokens/primitive.tokens.css.js";import u from"../../../../packages/styles/dist/tokens/semantic.tokens.css.js";import"../../../icon/gator/icon.gator.js";import"../../../icon/gator/templates/index.js";import{classMap as k}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/class-map.js";import{unsafeCSS as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var p=Object.getOwnPropertyDescriptor,f=(e,t,a,i)=>{for(var r=i>1?void 0:i?p(t,a):t,o=e.length-1,c;o>=0;o--)(c=e[o])&&(r=c(r)||r);return r};let n=class extends d{render(){return s`
|
|
2
2
|
<div class="${k(this.classes)}" role="status" aria-label="${this.dataset.ariaLabel}">
|
|
3
3
|
<div class="gator-alert_icon">
|
|
4
4
|
${this.iconMarkup}
|
|
@@ -10,4 +10,4 @@ import{NjcAlert as d}from"../../alert.js";import"../../../../node_modules/.pnpm/
|
|
|
10
10
|
<slot name="actions"></slot>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
|
-
`}updated(e){super.updated(e),e.has("skeleton")&&this.shadowRoot?.querySelectorAll("slot").forEach(t=>{t.assignedElements().forEach(a=>{a.skeleton=this.skeleton})})}get shouldRenderSkeletonLoader(){return this.skeleton&&!this.hasAssignedNgcElements}get hasAssignedNgcElements(){return this.shadowRoot?.querySelector("slot")?.assignedElements().some(e=>e.tagName.toLowerCase().startsWith("ngc-"))}get defaultSkeletonLoader(){return s`<ngc-skeleton-loader height="24" width="284" rounded></ngc-skeleton-loader>`}get classes(){return{"gator-alert":!0,[`gator-alert_${this.variant}`]:!0,"gator-alert_skeleton":this.skeleton}}get iconMarkup(){let e="info";switch(this.variant){case"info":e="info";break;case"warning":e="warning";break;case"error":e="
|
|
13
|
+
`}updated(e){super.updated(e),e.has("skeleton")&&this.shadowRoot?.querySelectorAll("slot").forEach(t=>{t.assignedElements().forEach(a=>{a.skeleton=this.skeleton})})}get shouldRenderSkeletonLoader(){return this.skeleton&&!this.hasAssignedNgcElements}get hasAssignedNgcElements(){return this.shadowRoot?.querySelector("slot")?.assignedElements().some(e=>e.tagName.toLowerCase().startsWith("ngc-"))}get defaultSkeletonLoader(){return s`<ngc-skeleton-loader height="24" width="284" rounded></ngc-skeleton-loader>`}get classes(){return{"gator-alert":!0,[`gator-alert_${this.variant}`]:!0,"gator-alert_skeleton":this.skeleton}}get iconMarkup(){let e="info";switch(this.variant){case"info":e="info";break;case"warning":e="warning";break;case"error":e="restricted";break;case"success":e="check-circle";break;case"inverse":e="info";break;case"AI":e="sparkle";break}return s`<ngc-icon name="${e}" label="${e}" ?skeleton=${this.skeleton}></ngc-icon>`}};n.styles=[l(g),l(h),l(u)];n=f([m("ngc-alert")],n);export{n as NgcAlert};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncino/web-components",
|
|
3
3
|
"author": "nCino",
|
|
4
|
-
"version": "13.0.
|
|
4
|
+
"version": "13.0.2",
|
|
5
5
|
"license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
"vite-plugin-static-copy": "^3.3.0",
|
|
101
101
|
"vitest": "^4.1.0",
|
|
102
102
|
"yaml-eslint-parser": "^2.0.0",
|
|
103
|
-
"@ncino/styles": "13.0.
|
|
103
|
+
"@ncino/styles": "13.0.2"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@ncino/styles": "13.0.
|
|
106
|
+
"@ncino/styles": "13.0.2"
|
|
107
107
|
},
|
|
108
108
|
"bugs": {
|
|
109
109
|
"url": "https://github.com/ncino/force-sdk-web-components/issues"
|
package/web-types.json
CHANGED