@ncino/web-components 13.12.2 → 14.0.0

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,19 +1,13 @@
1
- import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as p,nothing as b}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{property as i}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{customElement as m}from"../../../../utils/decorators/custom-element-decorator.js";import{msg as u}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import h from"../../../../packages/web-components/src/components/table/gator/table-bulk-controls/table-bulk-controls.gator.scss.js";import{NgcComponent as d}from"../../../../utils/components/ngc-component.js";import"../../../checkbox/checkbox.gator.js";import{unsafeCSS as v}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,y=Reflect.get,r=(l,s,o,a)=>{for(var t=a>1?void 0:a?f(s,o):s,c=l.length-1,n;c>=0;c--)(n=l[c])&&(t=(a?n(s,o,t):n(t))||t);return a&&t&&g(s,o,t),t},_=(l,s,o)=>y(w(l),o,s);let e=class extends d{constructor(){super(...arguments),this.visible=!1,this.selectedRows=0,this.totalRows=0,this.allSelected=!1}handleSelectAllChange(l){this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,detail:{selected:l.detail.selected}}))}render(){return p`
1
+ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as c,nothing as m}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{property as p}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{customElement as b}from"../../../../utils/decorators/custom-element-decorator.js";import{msg as v}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import d from"../../../../packages/web-components/src/components/table/gator/table-bulk-controls/table-bulk-controls.gator.scss.js";import{NgcComponent as u}from"../../../../utils/components/ngc-component.js";import{unsafeCSS as f}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var g=Object.defineProperty,h=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,_=Reflect.get,a=(r,o,s,l)=>{for(var e=l>1?void 0:l?h(o,s):o,i=r.length-1,n;i>=0;i--)(n=r[i])&&(e=(l?n(o,s,e):n(e))||e);return l&&e&&g(o,s,e),e},y=(r,o,s)=>_(w(r),s,o);let t=class extends u{constructor(){super(...arguments),this.visible=!1,this.selectedRows=0,this.totalRows=0}render(){return c`
2
2
  <div>
3
3
  <div class="gator-table-bulk-controls-aria-live-container" aria-live="polite" aria-atomic="true">
4
4
  ${this.selectedRowsMessage}
5
5
  </div>
6
6
  ${this.bulkControlsMarkup}
7
7
  </div>
8
- `}get bulkControlsMarkup(){return this.visible?p`
8
+ `}get bulkControlsMarkup(){return this.visible?c`
9
9
  <div class="gator-table-bulk-controls">
10
10
  <div class="gator-table-bulk-controls-selection">
11
- <ngc-checkbox
12
- title-text="${u("Select All")}"
13
- hide-label
14
- ?selected="${this.allSelected}"
15
- @change="${this.handleSelectAllChange}"
16
- ></ngc-checkbox>
17
11
  <span class="gator-table-bulk-controls-count">
18
12
  ${this.selectedRowsMessage}
19
13
  </span>
@@ -21,4 +15,4 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@
21
15
  <div class="gator-table-bulk-controls-actions">
22
16
  <slot></slot>
23
17
  </div>
24
- </div>`:b}get selectedRowsMessage(){return`${this.selectedRows} ${u("selected")}`}};e.shadowRootOptions={...d.shadowRootOptions,delegatesFocus:!0};e.styles=[..._(e,e,"styles"),v(h)];r([i({type:Boolean,reflect:!0})],e.prototype,"visible",2);r([i({type:Number})],e.prototype,"selectedRows",2);r([i({type:Number})],e.prototype,"totalRows",2);r([i({type:Boolean,reflect:!0})],e.prototype,"allSelected",2);e=r([m("ngc-table-bulk-controls")],e);export{e as NgcTableBulkControls};
18
+ </div>`:m}get selectedRowsMessage(){return`${this.selectedRows} ${v("selected")}`}};t.shadowRootOptions={...u.shadowRootOptions,delegatesFocus:!0};t.styles=[...y(t,t,"styles"),f(d)];a([p({type:Boolean,reflect:!0})],t.prototype,"visible",2);a([p({type:Number})],t.prototype,"selectedRows",2);a([p({type:Number})],t.prototype,"totalRows",2);t=a([b("ngc-table-bulk-controls")],t);export{t as NgcTableBulkControls};
@@ -51,8 +51,6 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit
51
51
  ?visible="${this.showBulkControls}"
52
52
  .selectedRows="${this.selectedRows.length}"
53
53
  .totalRows="${this.data.length}"
54
- ?allSelected="${this.selectedRows.length===this.data.filter(r=>!r.isTableHeader&&!r.disabled).length}"
55
- @selectall="${this.handleSelectAll}"
56
54
  >
57
55
  <slot name="bulk-controls"></slot>
58
56
  </ngc-table-bulk-controls>
@@ -145,13 +143,13 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit
145
143
  ${v}
146
144
  ${a?this.renderHeaderFilterPopover(e,f,t):g}
147
145
  </div>
148
- `,S=[n?"gator-table-header-cell-sort-active":"",d?"gator-table-header-cell-filter-active":"",b?"gator-table-header-cell-interactive":""].filter(Boolean).join(" "),w=this.getColumnCellStyle(e);return o`
146
+ `,w=[n?"gator-table-header-cell-sort-active":"",d?"gator-table-header-cell-filter-active":"",b?"gator-table-header-cell-interactive":""].filter(Boolean).join(" "),S=this.getColumnCellStyle(e);return o`
149
147
  <th
150
148
  id="${s}"
151
149
  scope="col"
152
150
  aria-sort="${c??g}"
153
- class="${S}"
154
- style="${w||g}"
151
+ class="${w}"
152
+ style="${S||g}"
155
153
  @mouseenter="${a||r?()=>this._hoveredHeaderColumnField=e.field:g}"
156
154
  @mouseleave="${a||r?()=>this._hoveredHeaderColumnField=null:g}"
157
155
  >
@@ -1 +1 @@
1
- const r='.gator-table-bulk-controls{margin-bottom:1rem;display:flex;flex-direction:row;align-items:center;padding:var(--spacing-5) var(--spacing-8);border-radius:var(--ngc-table-bulk-controls-border-radius, var(--border-radius-medium));gap:1rem;background-color:var(--color-surface-brand)}.gator-table-bulk-controls-aria-live-container{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;border:0;padding:0;margin:0}.gator-table-bulk-controls-selection{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-5);padding-left:.5rem}.gator-table-bulk-controls-count{font-family:var(--font-family-body, "Open Sans"),sans-serif;font-size:var(--font-size-body-2);color:var(--color-text-primary)}.gator-table-bulk-controls-actions{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-5)}ngc-checkbox{--ngc-input-margin-bottom: 0}';export{r as default};
1
+ const r='.gator-table-bulk-controls{margin-bottom:1rem;display:flex;flex-direction:row;align-items:center;padding:var(--spacing-5) var(--spacing-8);border-radius:var(--ngc-table-bulk-controls-border-radius, var(--border-radius-medium));gap:1rem;background-color:var(--color-surface-brand)}.gator-table-bulk-controls-aria-live-container{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;border:0;padding:0;margin:0}.gator-table-bulk-controls-selection{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-5);padding-left:.5rem}.gator-table-bulk-controls-count{font-family:var(--font-family-body, "Open Sans"),sans-serif;font-size:var(--font-size-body-2);color:var(--color-text-primary)}.gator-table-bulk-controls-actions{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-5)}';export{r as default};
@@ -22,11 +22,6 @@ export declare class NgcTableBulkControls extends NgcComponent {
22
22
  * The total number of rows
23
23
  */
24
24
  totalRows: number;
25
- /**
26
- * Whether all rows are selected
27
- */
28
- allSelected: boolean;
29
- private handleSelectAllChange;
30
25
  render(): import('lit').TemplateResult<1>;
31
26
  get bulkControlsMarkup(): import('lit').TemplateResult<1> | typeof nothing;
32
27
  get selectedRowsMessage(): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ncino/web-components",
3
3
  "author": "nCino",
4
- "version": "13.12.2",
4
+ "version": "14.0.0",
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.12.2"
103
+ "@ncino/styles": "14.0.0"
104
104
  },
105
105
  "peerDependencies": {
106
- "@ncino/styles": "13.12.2"
106
+ "@ncino/styles": "14.0.0"
107
107
  },
108
108
  "bugs": {
109
109
  "url": "https://github.com/ncino/force-sdk-web-components/issues"
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": "13.12.1",
4
+ "version": "13.12.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -7611,7 +7611,7 @@
7611
7611
  },
7612
7612
  {
7613
7613
  "name": "ngc-table-bulk-controls",
7614
- "description": "\n---\n\n\n### **Events:**\n - **selectall**\n\n### **Methods:**\n - **removeAttributesFromHost(name: _string_, oldValue: _string_, newValue: _string_)** - Removes an attribute from the host element and stores its original value in the map.\nAlso updates the corresponding `dataset` property for the attribute.\n- **restoreAttributesToHost()** - Restores all previously removed attributes to the host element.\nClears the map of removed attributes after restoration.",
7614
+ "description": "\n---\n\n\n### **Methods:**\n - **removeAttributesFromHost(name: _string_, oldValue: _string_, newValue: _string_)** - Removes an attribute from the host element and stores its original value in the map.\nAlso updates the corresponding `dataset` property for the attribute.\n- **restoreAttributesToHost()** - Restores all previously removed attributes to the host element.\nClears the map of removed attributes after restoration.",
7615
7615
  "doc-url": "",
7616
7616
  "attributes": [
7617
7617
  {
@@ -7629,11 +7629,6 @@
7629
7629
  "description": "The total number of rows",
7630
7630
  "value": { "type": "number", "default": "0" }
7631
7631
  },
7632
- {
7633
- "name": "allSelected",
7634
- "description": "Whether all rows are selected",
7635
- "value": { "type": "boolean", "default": "false" }
7636
- },
7637
7632
  {
7638
7633
  "name": "delegatesARIA",
7639
7634
  "description": "A boolean property that determines whether ARIA-related attributes\n(e.g., `aria-label`, `aria-labelledby`, `role`, etc.) are managed\nby the host element or delegated to the component.\n\n- When `true` (default), ARIA attributes are removed from the host\n and managed internally by the component.\n- When `false`, previously removed ARIA attributes are restored\n to the host element.",
@@ -7648,7 +7643,7 @@
7648
7643
  "value": { "type": "string | undefined", "default": "undefined" }
7649
7644
  }
7650
7645
  ],
7651
- "events": [{ "name": "selectall", "type": "CustomEvent" }],
7646
+ "events": [],
7652
7647
  "js": {
7653
7648
  "properties": [
7654
7649
  {
@@ -7666,11 +7661,6 @@
7666
7661
  "description": "The total number of rows",
7667
7662
  "type": "number"
7668
7663
  },
7669
- {
7670
- "name": "allSelected",
7671
- "description": "Whether all rows are selected",
7672
- "type": "boolean"
7673
- },
7674
7664
  { "name": "bulkControlsMarkup" },
7675
7665
  { "name": "selectedRowsMessage" },
7676
7666
  {
@@ -7689,7 +7679,7 @@
7689
7679
  { "name": "helpTextDataTestid" },
7690
7680
  { "name": "errorMessageDataTestid" }
7691
7681
  ],
7692
- "events": [{ "name": "selectall", "type": "CustomEvent" }]
7682
+ "events": []
7693
7683
  }
7694
7684
  },
7695
7685
  {