@watermarkinsights/ripple 5.17.0 → 5.18.0-alpha.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.
- package/dist/cjs/{app-globals-898369c0.js → app-globals-a3248236.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ripple.cjs.js +1 -1
- package/dist/cjs/wm-tag-input.cjs.entry.js +9 -14
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +33 -3
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +8 -13
- package/dist/esm/{app-globals-99f67b1c.js → app-globals-861acd4f.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ripple.js +1 -1
- package/dist/esm/wm-tag-input.entry.js +9 -14
- package/dist/esm-es5/app-globals-861acd4f.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/ripple/p-058fbaef.entry.js +1 -0
- package/dist/ripple/p-17685635.js +1 -0
- package/dist/ripple/{p-78fbb6e5.system.entry.js → p-508c26a1.system.entry.js} +1 -1
- package/dist/ripple/p-71114758.system.js +1 -0
- package/dist/ripple/{p-8c93bfd4.system.js → p-a5350de3.system.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/app-globals-99f67b1c.js +0 -1
- package/dist/ripple/p-0bef54fd.system.js +0 -1
- package/dist/ripple/p-5112d80b.entry.js +0 -1
- package/dist/ripple/p-feee2601.js +0 -1
|
@@ -853,15 +853,9 @@ export class TagInput {
|
|
|
853
853
|
tabindex: this.filteredOptionEls.length ? "0" : undefined, onKeyDown: (ev) => this.handleTableWrapperKeyDown(ev) }, h("table", { id: "table", role: "grid", class: `${this.colWidths ? "fixed-widths" : ""}`, "aria-label": this.label, "aria-multiselectable": "true" }, this.renderTableHeaders(), this.filteredOptionEls.length ? (this.filteredOptionEls.map((o) => this.renderTableRow(o))) : (h("div", { class: "no-results" }, this.noResultsMessage)))));
|
|
854
854
|
}
|
|
855
855
|
renderTableHeaders() {
|
|
856
|
-
return (h("tr", { class: "headers", role: "row" }, csvToArray(this.colHeaders).map((header, idx) => {
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
overflowRule = csvToArray(this.colWrap)[idx];
|
|
860
|
-
}
|
|
861
|
-
return (h("th", { class: `header-cell ${overflowRule}`, role: "columnheader",
|
|
862
|
-
// @ts-ignore
|
|
863
|
-
width: this.colWidths ? csvToArray(this.colWidths)[idx] : "" }, header));
|
|
864
|
-
})));
|
|
856
|
+
return (h("tr", { class: "headers", role: "row" }, csvToArray(this.colHeaders).map((header, idx) => (h("th", { class: "header-cell", role: "columnheader",
|
|
857
|
+
// @ts-ignore
|
|
858
|
+
width: this.colWidths ? csvToArray(this.colWidths)[idx] : "" }, header)))));
|
|
865
859
|
}
|
|
866
860
|
renderTag(o) {
|
|
867
861
|
const focused = this.focusedTag && this.focusedTag.id === "tag-" + o.id ? "focused" : "";
|
|
@@ -899,6 +893,7 @@ export class TagInput {
|
|
|
899
893
|
}
|
|
900
894
|
renderTableCells(o) {
|
|
901
895
|
const colValues = [o.col1, o.col2, o.col3, o.col4].filter((val) => !!val);
|
|
896
|
+
const colHeaders = csvToArray(this.colHeaders);
|
|
902
897
|
return colValues.map((val, idx) => {
|
|
903
898
|
const cellId = `${o.id}-col${idx + 1}`;
|
|
904
899
|
let overflowRule = "wrap";
|
|
@@ -908,7 +903,7 @@ export class TagInput {
|
|
|
908
903
|
const classes = {
|
|
909
904
|
focused: !!this._focusedCell && cellId === this._focusedCell.id,
|
|
910
905
|
};
|
|
911
|
-
return (h("td", { id: cellId, class: classes, role: "gridcell", "aria-describedby": `${cellId}-description`, "aria-selected": o.selected ? "true" : "false", "aria-readonly": o.locked ? "true" : null, onMouseEnter: (ev) => this.handleCellMouseEnter(ev), onMouseLeave: () => hideTooltip() }, h("div", { class: `cell-content-wrapper ${overflowRule}` }, o.locked && idx == 0 && h("div", { class: "svg-icon svg-locked" }), val), h("div", { class: "description", id: `${cellId}-description` }, o.locked ? globalMessages.locked : "")));
|
|
906
|
+
return (h("td", { id: cellId, class: classes, role: "gridcell", "aria-describedby": `${cellId}-description`, "aria-selected": o.selected ? "true" : "false", "aria-readonly": o.locked ? "true" : null, onMouseEnter: (ev) => this.handleCellMouseEnter(ev), onMouseLeave: () => hideTooltip() }, h("div", { class: "column-label" }, colHeaders[idx] || `Column ${idx + 1}`), h("div", { class: `cell-content-wrapper ${overflowRule}` }, o.locked && idx == 0 && h("div", { class: "svg-icon svg-locked" }), val), h("div", { class: "description", id: `${cellId}-description` }, o.locked ? globalMessages.locked : "")));
|
|
912
907
|
});
|
|
913
908
|
}
|
|
914
909
|
renderTableRow(o) {
|
|
@@ -926,12 +921,12 @@ export class TagInput {
|
|
|
926
921
|
}
|
|
927
922
|
}
|
|
928
923
|
render() {
|
|
929
|
-
return (h("div", { key: '
|
|
924
|
+
return (h("div", { key: 'a9ced1fc52a6520284167ee5e69789762fcb4f00', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '2ba75b9cc36d2cb82e45ad18097a1429959bb7d6', class: "label-wrapper" }, h("label", { key: 'a9094a6a006f8adcc522ca75bbd16c1ab43b7737', class: "label", htmlFor: "input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label), this.requiredField && (h("div", { key: 'e490661a59daa1ed24de0dbebaa552913e724d00', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '57d96c64853df41a55d4dadd426d8805807276d8', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: 'b8caf491fb7df33ef559c7a474e3a2fcaadcab94', class: "upper-row" }, h("div", { key: '34e19b149f063f839b6eef73fa72ef350ffa8afe', class: "svg-icon svg-search" }), h("div", { key: '686119691dd3082634efa78978f1e230746225d5', class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { key: '6056fc7fcd5a720a07b5760af7ff0f14c3503606', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
|
|
930
925
|
this.focusedTagIndex = undefined;
|
|
931
926
|
this.handleBlur(ev);
|
|
932
|
-
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { key: '
|
|
927
|
+
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { key: '84b342b81a16a8653b28481c38b41c1503bf1eec', id: "input", class: "input", role: "combobox", ref: (el) => (this.inputEl = el), autocomplete: "off", "aria-required": this.requiredField ? "true" : null, "aria-controls": this.tagInputType, "aria-describedby": `help-text${this.errorMessage ? " error " : ""} max-tags`, "aria-label": `${this.label} ${this.isDropdown ? globalMessages.getCharacterLimit(this.characterLimit) : ""}`, "aria-expanded": this.isDropdown ? this.isExpanded.toString() : null, "aria-activedescendant": this.inputActiveDescendantId, placeholder: this.placeholder, maxLength: this.isDropdown ? this.characterLimit : undefined, onInput: (ev) => this.handleInputChanged(ev), onBlur: (ev) => {
|
|
933
928
|
this.handleBlur(ev);
|
|
934
|
-
}, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { key: '
|
|
929
|
+
}, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { key: '692c6d03e766e774089942c3d246c9837ce6ce60', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: '38cfb19a5fdf547eb785ad35465d71514f602347', id: "info", class: "info-text" }, this.info)), h("div", { key: '21aa1b9905c8ee7e0835868f82e4a8cfc992ad1a', id: "error" }, this.errorMessage), h("div", { key: 'ef99fb851ac43cb3aef752c43db8c99ac5d0f252', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
|
|
935
930
|
}
|
|
936
931
|
static get is() { return "wm-tag-input"; }
|
|
937
932
|
static get encapsulation() { return "shadow"; }
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as bootstrapLazy } from './index-130e07bb.js';
|
|
2
2
|
export { s as setNonce } from './index-130e07bb.js';
|
|
3
|
-
import { g as globalScripts } from './app-globals-
|
|
3
|
+
import { g as globalScripts } from './app-globals-861acd4f.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
package/dist/esm/ripple.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-130e07bb.js';
|
|
2
2
|
export { s as setNonce } from './index-130e07bb.js';
|
|
3
|
-
import { g as globalScripts } from './app-globals-
|
|
3
|
+
import { g as globalScripts } from './app-globals-861acd4f.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
|