@watermarkinsights/ripple 5.4.0 → 5.5.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.
- package/dist/cjs/{global-4ff34a0e.js → global-5c18b1c4.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/priv-calendar.cjs.entry.js +13 -9
- package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
- package/dist/cjs/ripple.cjs.js +1 -1
- package/dist/cjs/wm-date-range.cjs.entry.js +5 -1
- package/dist/cjs/wm-datepicker.cjs.entry.js +5 -1
- package/dist/cjs/wm-navigator.cjs.entry.js +12 -16
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +17 -9
- package/dist/collection/components/datepickers/wm-date-range.js +5 -1
- package/dist/collection/components/datepickers/wm-datepicker.js +5 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +3 -3
- package/dist/collection/components/wm-navigator/wm-navigator.css +1 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +13 -17
- package/dist/esm/{global-588c6343.js → global-931ac675.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/priv-calendar.entry.js +13 -9
- package/dist/esm/priv-navigator-item.entry.js +1 -1
- package/dist/esm/ripple.js +1 -1
- package/dist/esm/wm-date-range.entry.js +5 -1
- package/dist/esm/wm-datepicker.entry.js +5 -1
- package/dist/esm/wm-navigator.entry.js +12 -16
- package/dist/esm-es5/global-931ac675.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/ripple/p-021ff5fa.system.entry.js +1 -0
- package/dist/ripple/p-18290ca6.system.js +1 -0
- package/dist/ripple/p-204bdd73.entry.js +1 -0
- package/dist/ripple/{p-e7a64841.system.entry.js → p-28b70082.system.entry.js} +1 -1
- package/dist/ripple/p-2cdd81c2.js +1 -0
- package/dist/ripple/p-3b8b1b44.system.entry.js +1 -0
- package/dist/ripple/{p-f67fd802.system.entry.js → p-4a6854d3.system.entry.js} +1 -1
- package/dist/ripple/{p-e3de5bbd.system.entry.js → p-4c8db09c.system.entry.js} +1 -1
- package/dist/ripple/{p-0aa17cac.entry.js → p-4d0b1890.entry.js} +1 -1
- package/dist/ripple/p-825bd63b.entry.js +1 -0
- package/dist/ripple/p-a27d2177.entry.js +1 -0
- package/dist/ripple/{p-591918a4.entry.js → p-ade3d9a9.entry.js} +1 -1
- package/dist/ripple/{p-763a01bc.system.js → p-d48b5a85.system.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/global-588c6343.js +0 -1
- package/dist/ripple/p-2be33eb4.system.js +0 -1
- package/dist/ripple/p-3183bba8.entry.js +0 -1
- package/dist/ripple/p-75ba63ba.entry.js +0 -1
- package/dist/ripple/p-bee9a5dc.js +0 -1
- package/dist/ripple/p-c91b10f3.system.entry.js +0 -1
- package/dist/ripple/p-cc4a429b.entry.js +0 -1
- package/dist/ripple/p-fe8d02c3.system.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e86c28b6.js');
|
|
6
|
-
require('./global-
|
|
6
|
+
require('./global-5c18b1c4.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -344,10 +344,7 @@ const PrivCalendar = class {
|
|
|
344
344
|
//If the down arrow is pressed from the arrow buttons or the title box, focus should shift to the current month in focus
|
|
345
345
|
const activeEl = (document.activeElement.shadowRoot || document).activeElement;
|
|
346
346
|
if (activeEl.classList.contains("header-btn")) {
|
|
347
|
-
|
|
348
|
-
const monthToFocus = this.el.querySelector(monthId);
|
|
349
|
-
monthToFocus.tabIndex = 0;
|
|
350
|
-
monthToFocus.focus();
|
|
347
|
+
this.focusCell();
|
|
351
348
|
break;
|
|
352
349
|
}
|
|
353
350
|
this.monthButtonFocus.increase(3);
|
|
@@ -455,14 +452,21 @@ const PrivCalendar = class {
|
|
|
455
452
|
if (dayToFocus > maxDays) {
|
|
456
453
|
this._focus.day.set(maxDays);
|
|
457
454
|
}
|
|
458
|
-
const cellToFocus = this.getCell(this.focusDate);
|
|
459
|
-
if (cellToFocus) {
|
|
460
|
-
cellToFocus.tabIndex = 0;
|
|
461
|
-
cellToFocus.focus();
|
|
462
|
-
}
|
|
463
455
|
if (this.view == "day") {
|
|
456
|
+
const cellToFocus = this.getCell(this.focusDate);
|
|
457
|
+
if (cellToFocus) {
|
|
458
|
+
cellToFocus.tabIndex = 0;
|
|
459
|
+
cellToFocus.focus();
|
|
460
|
+
}
|
|
464
461
|
this.cellHovered.emit(this.focusDate);
|
|
465
462
|
}
|
|
463
|
+
else {
|
|
464
|
+
const monthToFocus = this.el.querySelector(`#month-${this._focus.month.asInt()}`);
|
|
465
|
+
if (monthToFocus) {
|
|
466
|
+
monthToFocus.tabIndex = 0;
|
|
467
|
+
monthToFocus.focus();
|
|
468
|
+
}
|
|
469
|
+
}
|
|
466
470
|
});
|
|
467
471
|
}
|
|
468
472
|
toggleBusyAttribute(state) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e86c28b6.js');
|
|
6
6
|
|
|
7
|
-
const privNavigatorItemCss = ":host{list-style:none;border-bottom:1px solid var(--wmcolor-navigator-item-border);width:100%;display:block;cursor:pointer}:host .navoption{color:var(--wmcolor-navigator-item-text);padding:0.9375rem 1.25rem;background:var(--wmcolor-navigator-item-background);font-size:0.875rem}:host .navoption.selected
|
|
7
|
+
const privNavigatorItemCss = ":host{list-style:none;border-bottom:1px solid var(--wmcolor-navigator-item-border);width:100%;display:block;cursor:pointer}:host .navoption{color:var(--wmcolor-navigator-item-text);padding:0.9375rem 1.25rem;background:var(--wmcolor-navigator-item-background);font-size:0.875rem}:host .navoption.selected{background:var(--wmcolor-navigator-item-background-selected)}:host .navoption.focused,:host .navoption:hover{background:var(--wmcolor-navigator-item-background-focus);opacity:1}";
|
|
8
8
|
|
|
9
9
|
const PrivNavigatorItem = class {
|
|
10
10
|
constructor(hostRef) {
|
package/dist/cjs/ripple.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e86c28b6.js');
|
|
6
|
-
require('./global-
|
|
6
|
+
require('./global-5c18b1c4.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
Stencil Client Patch Browser v4.8.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -440,7 +440,11 @@ const DateRange = class {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
render() {
|
|
443
|
-
return (index.h(index.Host, { "aria-busy": "false" }, index.h("div", { ref: (d) => (this.wrapperEl = d), class: "wrapper" }, index.h("div", { class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, index.h("div", { class: "label-wrapper", id: "start-label-wrapper" }, index.h("label", { ref: (e) => (this.labelEl = e), id: "startlabel", htmlFor: "start-date-input", class: "label", title: `${this.labelStart} (${this.dateFormat})` }, this.labelStart, this.requiredField && (index.h("span", { "aria-hidden": "true", class: "required" }, "*")))), index.h("div", { class: "label-wrapper", id: "end-label-wrapper" }, index.h("label", { id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (index.h("span", { "aria-hidden": "true", class: "required" }, "*")))), index.h("input", { disabled: this._disabled, type: "text", id: "start-date-input", class: `date-input input ${this.invalidStart ? "invalid" : ""}`, name: "start-date", placeholder: this.dateFormat, value: this.valueStart, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleStartInput(ev), onBlur: () => this.handleStartInputBlur(), ref: (input) => (this.startInputEl = input), "aria-describedby": "error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), index.h("div", { id: "hyphen" }, "\u00A0-\u00A0"), index.h("input", { disabled: this._disabled, type: "text", id: "end-date-input", class: `date-input input ${this.invalidEnd ? "invalid" : ""}`, name: "end-date", placeholder: this.dateFormat, value: this.valueEnd, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleEndInput(ev), onBlur: () => this.handleEndInputBlur(), ref: (input) => (this.endInputEl = input), "aria-describedby": "error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), index.h("div", { class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (index.h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "date-input",
|
|
443
|
+
return (index.h(index.Host, { "aria-busy": "false" }, index.h("div", { ref: (d) => (this.wrapperEl = d), class: "wrapper" }, index.h("div", { class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, index.h("div", { class: "label-wrapper", id: "start-label-wrapper" }, index.h("label", { ref: (e) => (this.labelEl = e), id: "startlabel", htmlFor: "start-date-input", class: "label", title: `${this.labelStart} (${this.dateFormat})` }, this.labelStart, this.requiredField && (index.h("span", { "aria-hidden": "true", class: "required" }, "*")))), index.h("div", { class: "label-wrapper", id: "end-label-wrapper" }, index.h("label", { id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (index.h("span", { "aria-hidden": "true", class: "required" }, "*")))), index.h("input", { disabled: this._disabled, type: "text", id: "start-date-input", class: `date-input input ${this.invalidStart ? "invalid" : ""}`, name: "start-date", placeholder: this.dateFormat, value: this.valueStart, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleStartInput(ev), onBlur: () => this.handleStartInputBlur(), ref: (input) => (this.startInputEl = input), "aria-describedby": "error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), index.h("div", { id: "hyphen" }, "\u00A0-\u00A0"), index.h("input", { disabled: this._disabled, type: "text", id: "end-date-input", class: `date-input input ${this.invalidEnd ? "invalid" : ""}`, name: "end-date", placeholder: this.dateFormat, value: this.valueEnd, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleEndInput(ev), onBlur: () => this.handleEndInputBlur(), ref: (input) => (this.endInputEl = input), "aria-describedby": "error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), index.h("div", { class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (index.h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "start-date-input end-date-input", "aria-label": functions.intl.formatMessage({
|
|
444
|
+
id: "date.selectRange",
|
|
445
|
+
defaultMessage: "Select range",
|
|
446
|
+
description: "Button text for screen readers.",
|
|
447
|
+
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, index.h("span", { class: "calendar", title: functions.intl.formatMessage({
|
|
444
448
|
id: "date.calendarView",
|
|
445
449
|
defaultMessage: "Calendar View",
|
|
446
450
|
description: "Calendar button",
|
|
@@ -224,7 +224,11 @@ const DatePicker = class {
|
|
|
224
224
|
this.liveRegionEl.textContent = message;
|
|
225
225
|
}
|
|
226
226
|
render() {
|
|
227
|
-
return (index.h(index.Host, { "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, index.h("div", { ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, index.h("div", { class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (index.h("label", { id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (index.h("span", { "aria-hidden": "true", class: "required" }, "*"))))), index.h("div", null, index.h("div", { class: "single-wrapper input" }, index.h("input", { disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), index.h("div", { class: "container", id: "wm-container" }, index.h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-
|
|
227
|
+
return (index.h(index.Host, { "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, index.h("div", { ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, index.h("div", { class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (index.h("label", { id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (index.h("span", { "aria-hidden": "true", class: "required" }, "*"))))), index.h("div", null, index.h("div", { class: "single-wrapper input" }, index.h("input", { disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), index.h("div", { class: "container", id: "wm-container" }, index.h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-label": functions.intl.formatMessage({
|
|
228
|
+
id: "date.selectDate",
|
|
229
|
+
defaultMessage: "Select date",
|
|
230
|
+
description: "Button text for screen readers.",
|
|
231
|
+
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, index.h("span", { class: "calendar", title: functions.intl.formatMessage({
|
|
228
232
|
id: "date.calendarView",
|
|
229
233
|
defaultMessage: "Calendar View",
|
|
230
234
|
description: "Calendar button",
|
|
@@ -16,7 +16,7 @@ const getRequest = async (url) => {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
const wmNavigatorCss = ":host{--wmcolor-navigator-background:var(--wmcolor-background);--wmcolor-navigator-header-background:var(--wmcolor-brand-dark);--wmcolor-navigator-header-text:var(--wmcolor-text-ondark);--wmcolor-navigator-item-background-focus:var(--wmcolor-interactive-background-focus);--wmcolor-navigator-item-background-hover:var(--wmcolor-interactive-background-hover);--wmcolor-navigator-item-background:var(--wmcolor-background);--wmcolor-navigator-item-border:var(--wmcolor-border);--wmcolor-navigator-item-text:var(--wmcolor-text);--wmcolor-navigator-user-background:var(--wmcolor-background-readonly);min-width:0;position:relative;display:inline-block}:host .wrapper{overflow:auto;font-size:1.125rem;min-width:13.125rem;width:auto;max-height:80vh;text-align:left;position:absolute;z-index:50;top:100%;right:20px;left:auto;background:var(--wmcolor-navigator-background);letter-spacing:normal;-webkit-box-shadow:0 4px 15px 0 rgba(0, 0, 0, 0.2);-moz-box-shadow:0 4px 15px 0 rgba(0, 0, 0, 0.2);box-shadow:0 4px 15px 0 rgba(0, 0, 0, 0.2);-ms-transition:transform 0.25s ease;-webkit-transition:transform 0.25s ease;-moz-transition:transform 0.25s ease;-webkit-transition:-webkit-transform 0.25s ease;transition:-webkit-transform 0.25s ease;transition:transform 0.25s ease;transition:transform 0.25s ease, -webkit-transform 0.25s ease;-ms-transform-origin:center top;-webkit-transform-origin:center top;-moz-transform-origin:center top;transform-origin:center top;-ms-transform:scale(1, 1);-webkit-transform:scale(1, 1);-moz-transform:scale(1, 1);transform:scale(1, 1)}:host .wrapper .user{background:var(--wmcolor-navigator-user-background);padding:0.625rem 1.25rem;font-size:0.875rem}:host .wrapper .user p{margin:0}:host .wrapper .user p:first-child{font-weight:700;text-transform:capitalize}:host .wrapper h2{background:var(--wmcolor-navigator-header-background);color:var(--wmcolor-navigator-header-text);font-weight:700;margin:0;padding:0.625rem 1.25rem;font-size:0.875rem}:host .wrapper [role=listbox]{list-style:none;margin:0;padding-left:0}:host .wrapper.hide{-ms-transform:scale(1, 0);-webkit-transform:scale(1, 0);-moz-transform:scale(1, 0);transform:scale(1, 0)}:host .wrapper.right{right:auto;left:20px}:host img{-webkit-transform:scale(0.8);transform:scale(0.8);-webkit-transform-origin:left center;transform-origin:left center;display:block}:host .logout{text-align:center;text-transform:capitalize}priv-navigator-item:focus{outline:none}";
|
|
19
|
+
const wmNavigatorCss = ":host{--wmcolor-navigator-background:var(--wmcolor-background);--wmcolor-navigator-header-background:var(--wmcolor-brand-dark);--wmcolor-navigator-header-text:var(--wmcolor-text-ondark);--wmcolor-navigator-item-background-selected:var(--wmcolor-interactive-background-selected);--wmcolor-navigator-item-background-focus:var(--wmcolor-interactive-background-focus);--wmcolor-navigator-item-background-hover:var(--wmcolor-interactive-background-hover);--wmcolor-navigator-item-background:var(--wmcolor-background);--wmcolor-navigator-item-border:var(--wmcolor-border);--wmcolor-navigator-item-text:var(--wmcolor-text);--wmcolor-navigator-user-background:var(--wmcolor-background-readonly);min-width:0;position:relative;display:inline-block}:host .wrapper{overflow:auto;font-size:1.125rem;min-width:13.125rem;width:auto;max-height:80vh;text-align:left;position:absolute;z-index:50;top:100%;right:20px;left:auto;background:var(--wmcolor-navigator-background);letter-spacing:normal;-webkit-box-shadow:0 4px 15px 0 rgba(0, 0, 0, 0.2);-moz-box-shadow:0 4px 15px 0 rgba(0, 0, 0, 0.2);box-shadow:0 4px 15px 0 rgba(0, 0, 0, 0.2);-ms-transition:transform 0.25s ease;-webkit-transition:transform 0.25s ease;-moz-transition:transform 0.25s ease;-webkit-transition:-webkit-transform 0.25s ease;transition:-webkit-transform 0.25s ease;transition:transform 0.25s ease;transition:transform 0.25s ease, -webkit-transform 0.25s ease;-ms-transform-origin:center top;-webkit-transform-origin:center top;-moz-transform-origin:center top;transform-origin:center top;-ms-transform:scale(1, 1);-webkit-transform:scale(1, 1);-moz-transform:scale(1, 1);transform:scale(1, 1)}:host .wrapper .user{background:var(--wmcolor-navigator-user-background);padding:0.625rem 1.25rem;font-size:0.875rem}:host .wrapper .user p{margin:0}:host .wrapper .user p:first-child{font-weight:700;text-transform:capitalize}:host .wrapper h2{background:var(--wmcolor-navigator-header-background);color:var(--wmcolor-navigator-header-text);font-weight:700;margin:0;padding:0.625rem 1.25rem;font-size:0.875rem}:host .wrapper [role=listbox]{list-style:none;margin:0;padding-left:0}:host .wrapper.hide{-ms-transform:scale(1, 0);-webkit-transform:scale(1, 0);-moz-transform:scale(1, 0);transform:scale(1, 0)}:host .wrapper.right{right:auto;left:20px}:host img{-webkit-transform:scale(0.8);transform:scale(0.8);-webkit-transform-origin:left center;transform-origin:left center;display:block}:host .logout{text-align:center;text-transform:capitalize}priv-navigator-item:focus{outline:none}";
|
|
20
20
|
|
|
21
21
|
const Navigator = class {
|
|
22
22
|
constructor(hostRef) {
|
|
@@ -53,7 +53,7 @@ const Navigator = class {
|
|
|
53
53
|
"vialivetext\\.com",
|
|
54
54
|
"watermarkinsights\\.com",
|
|
55
55
|
];
|
|
56
|
-
whitelist.forEach(tld => {
|
|
56
|
+
whitelist.forEach((tld) => {
|
|
57
57
|
const knownTLD = `^https:\/\/(.*\.)?${tld}(\/.*)?$`;
|
|
58
58
|
if (!!url && url.match(knownTLD)) {
|
|
59
59
|
isSafe = true;
|
|
@@ -76,12 +76,8 @@ const Navigator = class {
|
|
|
76
76
|
this.email = response.email;
|
|
77
77
|
this.currentProductId = response.current_product_id;
|
|
78
78
|
this.parsedProducts = this.productKeysToCamelCase(response.products);
|
|
79
|
-
this.logoutUrl = this.logoutUrl
|
|
80
|
-
|
|
81
|
-
: response.logout_url;
|
|
82
|
-
this.connectionName = this.connectionName
|
|
83
|
-
? this.connectionName
|
|
84
|
-
: response.connection_name;
|
|
79
|
+
this.logoutUrl = this.logoutUrl ? this.logoutUrl : response.logout_url;
|
|
80
|
+
this.connectionName = this.connectionName ? this.connectionName : response.connection_name;
|
|
85
81
|
if (!!this.email && !!this.currentProductId) {
|
|
86
82
|
this.retrievedInfo = true;
|
|
87
83
|
}
|
|
@@ -176,8 +172,7 @@ const Navigator = class {
|
|
|
176
172
|
if (this.wrapperEl) {
|
|
177
173
|
const wrapperWidth = this.wrapperEl.clientWidth;
|
|
178
174
|
const spaceLeft = this.el.getBoundingClientRect().left;
|
|
179
|
-
const spaceRight = document.documentElement.clientWidth -
|
|
180
|
-
this.el.getBoundingClientRect().right;
|
|
175
|
+
const spaceRight = document.documentElement.clientWidth - this.el.getBoundingClientRect().right;
|
|
181
176
|
this.openRight = wrapperWidth > spaceLeft && spaceRight > spaceLeft;
|
|
182
177
|
}
|
|
183
178
|
this.isOpen = true;
|
|
@@ -197,7 +192,8 @@ const Navigator = class {
|
|
|
197
192
|
const newSelection = this.navigatorItems[this.itemIndexToFocus];
|
|
198
193
|
newSelection.tabIndex = 0;
|
|
199
194
|
newSelection.focused = true;
|
|
200
|
-
|
|
195
|
+
// wait for animation to complete before sending focus to option
|
|
196
|
+
window.setTimeout(() => newSelection.focus(), 250);
|
|
201
197
|
}
|
|
202
198
|
unfocusItem(index) {
|
|
203
199
|
const oldSelection = this.navigatorItems[index];
|
|
@@ -254,7 +250,9 @@ const Navigator = class {
|
|
|
254
250
|
clickRedirect = this.setProductOnClick(product.id);
|
|
255
251
|
if (!!name && !!icon) {
|
|
256
252
|
isSelected = this.currentProductId === product.id;
|
|
257
|
-
return (index.h("priv-navigator-item", { selected: isSelected, id: product.id, onClick:
|
|
253
|
+
return (index.h("priv-navigator-item", { selected: isSelected, id: product.id, onClick: () => {
|
|
254
|
+
isSelected ? this.closeMenu() : clickRedirect();
|
|
255
|
+
}, role: "option", "aria-label": name, "aria-selected": isSelected ? "true" : "false" }, index.h("img", { src: icon, alt: name })));
|
|
258
256
|
}
|
|
259
257
|
});
|
|
260
258
|
}
|
|
@@ -276,9 +274,7 @@ const Navigator = class {
|
|
|
276
274
|
}
|
|
277
275
|
else if (this.authType === 3) {
|
|
278
276
|
// products passed as prop, saml
|
|
279
|
-
const connName = this.connectionName
|
|
280
|
-
? `/?connection_name=${this.connectionName}`
|
|
281
|
-
: "";
|
|
277
|
+
const connName = this.connectionName ? `/?connection_name=${this.connectionName}` : "";
|
|
282
278
|
const url = product.samlLinkUrl;
|
|
283
279
|
if (this.isSafeUrl(url)) {
|
|
284
280
|
return () => (window.location.href = url + connName);
|
|
@@ -291,7 +287,7 @@ const Navigator = class {
|
|
|
291
287
|
}
|
|
292
288
|
}
|
|
293
289
|
renderLogoutOption() {
|
|
294
|
-
return (index.h("priv-navigator-item", { class: "logout", selected: !(this.parsedProducts.length > 1), id: "nav-logout", onClick: this.setLogoutOnclick(), role: "option" }, index.h("span", { class: "logout" }, functions.intl.formatMessage({
|
|
290
|
+
return (index.h("priv-navigator-item", { class: "logout", selected: !(this.parsedProducts.length > 1), id: "nav-logout", onClick: this.setLogoutOnclick(), role: "option", "aria-selected": "false" }, index.h("span", { class: "logout" }, functions.intl.formatMessage({
|
|
295
291
|
id: "navigator.logout",
|
|
296
292
|
defaultMessage: "Log Out",
|
|
297
293
|
}))));
|
|
@@ -331,10 +331,7 @@ export class PrivCalendar {
|
|
|
331
331
|
//If the down arrow is pressed from the arrow buttons or the title box, focus should shift to the current month in focus
|
|
332
332
|
const activeEl = (document.activeElement.shadowRoot || document).activeElement;
|
|
333
333
|
if (activeEl.classList.contains("header-btn")) {
|
|
334
|
-
|
|
335
|
-
const monthToFocus = this.el.querySelector(monthId);
|
|
336
|
-
monthToFocus.tabIndex = 0;
|
|
337
|
-
monthToFocus.focus();
|
|
334
|
+
this.focusCell();
|
|
338
335
|
break;
|
|
339
336
|
}
|
|
340
337
|
this.monthButtonFocus.increase(3);
|
|
@@ -442,14 +439,21 @@ export class PrivCalendar {
|
|
|
442
439
|
if (dayToFocus > maxDays) {
|
|
443
440
|
this._focus.day.set(maxDays);
|
|
444
441
|
}
|
|
445
|
-
const cellToFocus = this.getCell(this.focusDate);
|
|
446
|
-
if (cellToFocus) {
|
|
447
|
-
cellToFocus.tabIndex = 0;
|
|
448
|
-
cellToFocus.focus();
|
|
449
|
-
}
|
|
450
442
|
if (this.view == "day") {
|
|
443
|
+
const cellToFocus = this.getCell(this.focusDate);
|
|
444
|
+
if (cellToFocus) {
|
|
445
|
+
cellToFocus.tabIndex = 0;
|
|
446
|
+
cellToFocus.focus();
|
|
447
|
+
}
|
|
451
448
|
this.cellHovered.emit(this.focusDate);
|
|
452
449
|
}
|
|
450
|
+
else {
|
|
451
|
+
const monthToFocus = this.el.querySelector(`#month-${this._focus.month.asInt()}`);
|
|
452
|
+
if (monthToFocus) {
|
|
453
|
+
monthToFocus.tabIndex = 0;
|
|
454
|
+
monthToFocus.focus();
|
|
455
|
+
}
|
|
456
|
+
}
|
|
453
457
|
});
|
|
454
458
|
}
|
|
455
459
|
toggleBusyAttribute(state) {
|
|
@@ -802,6 +806,10 @@ export class PrivCalendar {
|
|
|
802
806
|
"Promise": {
|
|
803
807
|
"location": "global",
|
|
804
808
|
"id": "global::Promise"
|
|
809
|
+
},
|
|
810
|
+
"HTMLTableCellElement": {
|
|
811
|
+
"location": "global",
|
|
812
|
+
"id": "global::HTMLTableCellElement"
|
|
805
813
|
}
|
|
806
814
|
},
|
|
807
815
|
"return": "Promise<void>"
|
|
@@ -429,7 +429,11 @@ export class DateRange {
|
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
render() {
|
|
432
|
-
return (h(Host, { "aria-busy": "false" }, h("div", { ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, h("div", { class: "label-wrapper", id: "start-label-wrapper" }, h("label", { ref: (e) => (this.labelEl = e), id: "startlabel", htmlFor: "start-date-input", class: "label", title: `${this.labelStart} (${this.dateFormat})` }, this.labelStart, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*")))), h("div", { class: "label-wrapper", id: "end-label-wrapper" }, h("label", { id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*")))), h("input", { disabled: this._disabled, type: "text", id: "start-date-input", class: `date-input input ${this.invalidStart ? "invalid" : ""}`, name: "start-date", placeholder: this.dateFormat, value: this.valueStart, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleStartInput(ev), onBlur: () => this.handleStartInputBlur(), ref: (input) => (this.startInputEl = input), "aria-describedby": "error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), h("div", { id: "hyphen" }, "\u00A0-\u00A0"), h("input", { disabled: this._disabled, type: "text", id: "end-date-input", class: `date-input input ${this.invalidEnd ? "invalid" : ""}`, name: "end-date", placeholder: this.dateFormat, value: this.valueEnd, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleEndInput(ev), onBlur: () => this.handleEndInputBlur(), ref: (input) => (this.endInputEl = input), "aria-describedby": "error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), h("div", { class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "date-input",
|
|
432
|
+
return (h(Host, { "aria-busy": "false" }, h("div", { ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, h("div", { class: "label-wrapper", id: "start-label-wrapper" }, h("label", { ref: (e) => (this.labelEl = e), id: "startlabel", htmlFor: "start-date-input", class: "label", title: `${this.labelStart} (${this.dateFormat})` }, this.labelStart, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*")))), h("div", { class: "label-wrapper", id: "end-label-wrapper" }, h("label", { id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*")))), h("input", { disabled: this._disabled, type: "text", id: "start-date-input", class: `date-input input ${this.invalidStart ? "invalid" : ""}`, name: "start-date", placeholder: this.dateFormat, value: this.valueStart, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleStartInput(ev), onBlur: () => this.handleStartInputBlur(), ref: (input) => (this.startInputEl = input), "aria-describedby": "error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), h("div", { id: "hyphen" }, "\u00A0-\u00A0"), h("input", { disabled: this._disabled, type: "text", id: "end-date-input", class: `date-input input ${this.invalidEnd ? "invalid" : ""}`, name: "end-date", placeholder: this.dateFormat, value: this.valueEnd, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleEndInput(ev), onBlur: () => this.handleEndInputBlur(), ref: (input) => (this.endInputEl = input), "aria-describedby": "error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), h("div", { class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "start-date-input end-date-input", "aria-label": intl.formatMessage({
|
|
433
|
+
id: "date.selectRange",
|
|
434
|
+
defaultMessage: "Select range",
|
|
435
|
+
description: "Button text for screen readers.",
|
|
436
|
+
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { class: "calendar", title: intl.formatMessage({
|
|
433
437
|
id: "date.calendarView",
|
|
434
438
|
defaultMessage: "Calendar View",
|
|
435
439
|
description: "Calendar button",
|
|
@@ -214,7 +214,11 @@ export class DatePicker {
|
|
|
214
214
|
this.liveRegionEl.textContent = message;
|
|
215
215
|
}
|
|
216
216
|
render() {
|
|
217
|
-
return (h(Host, { "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*"))))), h("div", null, h("div", { class: "single-wrapper input" }, h("input", { disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), h("div", { class: "container", id: "wm-container" }, h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-
|
|
217
|
+
return (h(Host, { "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*"))))), h("div", null, h("div", { class: "single-wrapper input" }, h("input", { disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), h("div", { class: "container", id: "wm-container" }, h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-label": intl.formatMessage({
|
|
218
|
+
id: "date.selectDate",
|
|
219
|
+
defaultMessage: "Select date",
|
|
220
|
+
description: "Button text for screen readers.",
|
|
221
|
+
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { class: "calendar", title: intl.formatMessage({
|
|
218
222
|
id: "date.calendarView",
|
|
219
223
|
defaultMessage: "Calendar View",
|
|
220
224
|
description: "Calendar button",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
background: var(--wmcolor-navigator-item-background);
|
|
43
43
|
font-size: 0.875rem;
|
|
44
44
|
}
|
|
45
|
-
:host .navoption.selected
|
|
46
|
-
background: var(--wmcolor-navigator-item-background-
|
|
45
|
+
:host .navoption.selected {
|
|
46
|
+
background: var(--wmcolor-navigator-item-background-selected);
|
|
47
47
|
}
|
|
48
|
-
:host .navoption.focused:
|
|
48
|
+
:host .navoption.focused, :host .navoption:hover {
|
|
49
49
|
background: var(--wmcolor-navigator-item-background-focus);
|
|
50
50
|
opacity: 1;
|
|
51
51
|
}
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
--wmcolor-navigator-background: var(--wmcolor-background);
|
|
34
34
|
--wmcolor-navigator-header-background: var(--wmcolor-brand-dark);
|
|
35
35
|
--wmcolor-navigator-header-text: var(--wmcolor-text-ondark);
|
|
36
|
+
--wmcolor-navigator-item-background-selected: var(--wmcolor-interactive-background-selected);
|
|
36
37
|
--wmcolor-navigator-item-background-focus: var(--wmcolor-interactive-background-focus);
|
|
37
38
|
--wmcolor-navigator-item-background-hover: var(--wmcolor-interactive-background-hover);
|
|
38
39
|
--wmcolor-navigator-item-background: var(--wmcolor-background);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h, Host
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { getWmMode } from "../../global/interfaces";
|
|
3
|
-
import { intl, snakeCaseToCamelCase, getNewIndexToFocus
|
|
3
|
+
import { intl, snakeCaseToCamelCase, getNewIndexToFocus } from "../../global/functions";
|
|
4
4
|
import { getRequest } from "../../global/services/http-service";
|
|
5
5
|
export class Navigator {
|
|
6
6
|
constructor() {
|
|
@@ -35,7 +35,7 @@ export class Navigator {
|
|
|
35
35
|
"vialivetext\\.com",
|
|
36
36
|
"watermarkinsights\\.com",
|
|
37
37
|
];
|
|
38
|
-
whitelist.forEach(tld => {
|
|
38
|
+
whitelist.forEach((tld) => {
|
|
39
39
|
const knownTLD = `^https:\/\/(.*\.)?${tld}(\/.*)?$`;
|
|
40
40
|
if (!!url && url.match(knownTLD)) {
|
|
41
41
|
isSafe = true;
|
|
@@ -58,12 +58,8 @@ export class Navigator {
|
|
|
58
58
|
this.email = response.email;
|
|
59
59
|
this.currentProductId = response.current_product_id;
|
|
60
60
|
this.parsedProducts = this.productKeysToCamelCase(response.products);
|
|
61
|
-
this.logoutUrl = this.logoutUrl
|
|
62
|
-
|
|
63
|
-
: response.logout_url;
|
|
64
|
-
this.connectionName = this.connectionName
|
|
65
|
-
? this.connectionName
|
|
66
|
-
: response.connection_name;
|
|
61
|
+
this.logoutUrl = this.logoutUrl ? this.logoutUrl : response.logout_url;
|
|
62
|
+
this.connectionName = this.connectionName ? this.connectionName : response.connection_name;
|
|
67
63
|
if (!!this.email && !!this.currentProductId) {
|
|
68
64
|
this.retrievedInfo = true;
|
|
69
65
|
}
|
|
@@ -158,8 +154,7 @@ export class Navigator {
|
|
|
158
154
|
if (this.wrapperEl) {
|
|
159
155
|
const wrapperWidth = this.wrapperEl.clientWidth;
|
|
160
156
|
const spaceLeft = this.el.getBoundingClientRect().left;
|
|
161
|
-
const spaceRight = document.documentElement.clientWidth -
|
|
162
|
-
this.el.getBoundingClientRect().right;
|
|
157
|
+
const spaceRight = document.documentElement.clientWidth - this.el.getBoundingClientRect().right;
|
|
163
158
|
this.openRight = wrapperWidth > spaceLeft && spaceRight > spaceLeft;
|
|
164
159
|
}
|
|
165
160
|
this.isOpen = true;
|
|
@@ -179,7 +174,8 @@ export class Navigator {
|
|
|
179
174
|
const newSelection = this.navigatorItems[this.itemIndexToFocus];
|
|
180
175
|
newSelection.tabIndex = 0;
|
|
181
176
|
newSelection.focused = true;
|
|
182
|
-
|
|
177
|
+
// wait for animation to complete before sending focus to option
|
|
178
|
+
window.setTimeout(() => newSelection.focus(), 250);
|
|
183
179
|
}
|
|
184
180
|
unfocusItem(index) {
|
|
185
181
|
const oldSelection = this.navigatorItems[index];
|
|
@@ -236,7 +232,9 @@ export class Navigator {
|
|
|
236
232
|
clickRedirect = this.setProductOnClick(product.id);
|
|
237
233
|
if (!!name && !!icon) {
|
|
238
234
|
isSelected = this.currentProductId === product.id;
|
|
239
|
-
return (h("priv-navigator-item", { selected: isSelected, id: product.id, onClick:
|
|
235
|
+
return (h("priv-navigator-item", { selected: isSelected, id: product.id, onClick: () => {
|
|
236
|
+
isSelected ? this.closeMenu() : clickRedirect();
|
|
237
|
+
}, role: "option", "aria-label": name, "aria-selected": isSelected ? "true" : "false" }, h("img", { src: icon, alt: name })));
|
|
240
238
|
}
|
|
241
239
|
});
|
|
242
240
|
}
|
|
@@ -258,9 +256,7 @@ export class Navigator {
|
|
|
258
256
|
}
|
|
259
257
|
else if (this.authType === 3) {
|
|
260
258
|
// products passed as prop, saml
|
|
261
|
-
const connName = this.connectionName
|
|
262
|
-
? `/?connection_name=${this.connectionName}`
|
|
263
|
-
: "";
|
|
259
|
+
const connName = this.connectionName ? `/?connection_name=${this.connectionName}` : "";
|
|
264
260
|
const url = product.samlLinkUrl;
|
|
265
261
|
if (this.isSafeUrl(url)) {
|
|
266
262
|
return () => (window.location.href = url + connName);
|
|
@@ -273,7 +269,7 @@ export class Navigator {
|
|
|
273
269
|
}
|
|
274
270
|
}
|
|
275
271
|
renderLogoutOption() {
|
|
276
|
-
return (h("priv-navigator-item", { class: "logout", selected: !(this.parsedProducts.length > 1), id: "nav-logout", onClick: this.setLogoutOnclick(), role: "option" }, h("span", { class: "logout" }, intl.formatMessage({
|
|
272
|
+
return (h("priv-navigator-item", { class: "logout", selected: !(this.parsedProducts.length > 1), id: "nav-logout", onClick: this.setLogoutOnclick(), role: "option", "aria-selected": "false" }, h("span", { class: "logout" }, intl.formatMessage({
|
|
277
273
|
id: "navigator.logout",
|
|
278
274
|
defaultMessage: "Log Out",
|
|
279
275
|
}))));
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as bootstrapLazy } from './index-558b5a82.js';
|
|
2
2
|
export { s as setNonce } from './index-558b5a82.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-931ac675.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -340,10 +340,7 @@ const PrivCalendar = class {
|
|
|
340
340
|
//If the down arrow is pressed from the arrow buttons or the title box, focus should shift to the current month in focus
|
|
341
341
|
const activeEl = (document.activeElement.shadowRoot || document).activeElement;
|
|
342
342
|
if (activeEl.classList.contains("header-btn")) {
|
|
343
|
-
|
|
344
|
-
const monthToFocus = this.el.querySelector(monthId);
|
|
345
|
-
monthToFocus.tabIndex = 0;
|
|
346
|
-
monthToFocus.focus();
|
|
343
|
+
this.focusCell();
|
|
347
344
|
break;
|
|
348
345
|
}
|
|
349
346
|
this.monthButtonFocus.increase(3);
|
|
@@ -451,14 +448,21 @@ const PrivCalendar = class {
|
|
|
451
448
|
if (dayToFocus > maxDays) {
|
|
452
449
|
this._focus.day.set(maxDays);
|
|
453
450
|
}
|
|
454
|
-
const cellToFocus = this.getCell(this.focusDate);
|
|
455
|
-
if (cellToFocus) {
|
|
456
|
-
cellToFocus.tabIndex = 0;
|
|
457
|
-
cellToFocus.focus();
|
|
458
|
-
}
|
|
459
451
|
if (this.view == "day") {
|
|
452
|
+
const cellToFocus = this.getCell(this.focusDate);
|
|
453
|
+
if (cellToFocus) {
|
|
454
|
+
cellToFocus.tabIndex = 0;
|
|
455
|
+
cellToFocus.focus();
|
|
456
|
+
}
|
|
460
457
|
this.cellHovered.emit(this.focusDate);
|
|
461
458
|
}
|
|
459
|
+
else {
|
|
460
|
+
const monthToFocus = this.el.querySelector(`#month-${this._focus.month.asInt()}`);
|
|
461
|
+
if (monthToFocus) {
|
|
462
|
+
monthToFocus.tabIndex = 0;
|
|
463
|
+
monthToFocus.focus();
|
|
464
|
+
}
|
|
465
|
+
}
|
|
462
466
|
});
|
|
463
467
|
}
|
|
464
468
|
toggleBusyAttribute(state) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-558b5a82.js';
|
|
2
2
|
|
|
3
|
-
const privNavigatorItemCss = ":host{list-style:none;border-bottom:1px solid var(--wmcolor-navigator-item-border);width:100%;display:block;cursor:pointer}:host .navoption{color:var(--wmcolor-navigator-item-text);padding:0.9375rem 1.25rem;background:var(--wmcolor-navigator-item-background);font-size:0.875rem}:host .navoption.selected
|
|
3
|
+
const privNavigatorItemCss = ":host{list-style:none;border-bottom:1px solid var(--wmcolor-navigator-item-border);width:100%;display:block;cursor:pointer}:host .navoption{color:var(--wmcolor-navigator-item-text);padding:0.9375rem 1.25rem;background:var(--wmcolor-navigator-item-background);font-size:0.875rem}:host .navoption.selected{background:var(--wmcolor-navigator-item-background-selected)}:host .navoption.focused,:host .navoption:hover{background:var(--wmcolor-navigator-item-background-focus);opacity:1}";
|
|
4
4
|
|
|
5
5
|
const PrivNavigatorItem = class {
|
|
6
6
|
constructor(hostRef) {
|
package/dist/esm/ripple.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-558b5a82.js';
|
|
2
2
|
export { s as setNonce } from './index-558b5a82.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-931ac675.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v4.8.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -436,7 +436,11 @@ const DateRange = class {
|
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
render() {
|
|
439
|
-
return (h(Host, { "aria-busy": "false" }, h("div", { ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, h("div", { class: "label-wrapper", id: "start-label-wrapper" }, h("label", { ref: (e) => (this.labelEl = e), id: "startlabel", htmlFor: "start-date-input", class: "label", title: `${this.labelStart} (${this.dateFormat})` }, this.labelStart, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*")))), h("div", { class: "label-wrapper", id: "end-label-wrapper" }, h("label", { id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*")))), h("input", { disabled: this._disabled, type: "text", id: "start-date-input", class: `date-input input ${this.invalidStart ? "invalid" : ""}`, name: "start-date", placeholder: this.dateFormat, value: this.valueStart, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleStartInput(ev), onBlur: () => this.handleStartInputBlur(), ref: (input) => (this.startInputEl = input), "aria-describedby": "error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), h("div", { id: "hyphen" }, "\u00A0-\u00A0"), h("input", { disabled: this._disabled, type: "text", id: "end-date-input", class: `date-input input ${this.invalidEnd ? "invalid" : ""}`, name: "end-date", placeholder: this.dateFormat, value: this.valueEnd, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleEndInput(ev), onBlur: () => this.handleEndInputBlur(), ref: (input) => (this.endInputEl = input), "aria-describedby": "error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), h("div", { class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "date-input",
|
|
439
|
+
return (h(Host, { "aria-busy": "false" }, h("div", { ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, h("div", { class: "label-wrapper", id: "start-label-wrapper" }, h("label", { ref: (e) => (this.labelEl = e), id: "startlabel", htmlFor: "start-date-input", class: "label", title: `${this.labelStart} (${this.dateFormat})` }, this.labelStart, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*")))), h("div", { class: "label-wrapper", id: "end-label-wrapper" }, h("label", { id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*")))), h("input", { disabled: this._disabled, type: "text", id: "start-date-input", class: `date-input input ${this.invalidStart ? "invalid" : ""}`, name: "start-date", placeholder: this.dateFormat, value: this.valueStart, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleStartInput(ev), onBlur: () => this.handleStartInputBlur(), ref: (input) => (this.startInputEl = input), "aria-describedby": "error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), h("div", { id: "hyphen" }, "\u00A0-\u00A0"), h("input", { disabled: this._disabled, type: "text", id: "end-date-input", class: `date-input input ${this.invalidEnd ? "invalid" : ""}`, name: "end-date", placeholder: this.dateFormat, value: this.valueEnd, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleEndInput(ev), onBlur: () => this.handleEndInputBlur(), ref: (input) => (this.endInputEl = input), "aria-describedby": "error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), h("div", { class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "start-date-input end-date-input", "aria-label": intl.formatMessage({
|
|
440
|
+
id: "date.selectRange",
|
|
441
|
+
defaultMessage: "Select range",
|
|
442
|
+
description: "Button text for screen readers.",
|
|
443
|
+
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { class: "calendar", title: intl.formatMessage({
|
|
440
444
|
id: "date.calendarView",
|
|
441
445
|
defaultMessage: "Calendar View",
|
|
442
446
|
description: "Calendar button",
|
|
@@ -220,7 +220,11 @@ const DatePicker = class {
|
|
|
220
220
|
this.liveRegionEl.textContent = message;
|
|
221
221
|
}
|
|
222
222
|
render() {
|
|
223
|
-
return (h(Host, { "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*"))))), h("div", null, h("div", { class: "single-wrapper input" }, h("input", { disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), h("div", { class: "container", id: "wm-container" }, h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-
|
|
223
|
+
return (h(Host, { "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*"))))), h("div", null, h("div", { class: "single-wrapper input" }, h("input", { disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), h("div", { class: "container", id: "wm-container" }, h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-label": intl.formatMessage({
|
|
224
|
+
id: "date.selectDate",
|
|
225
|
+
defaultMessage: "Select date",
|
|
226
|
+
description: "Button text for screen readers.",
|
|
227
|
+
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { class: "calendar", title: intl.formatMessage({
|
|
224
228
|
id: "date.calendarView",
|
|
225
229
|
defaultMessage: "Calendar View",
|
|
226
230
|
description: "Calendar button",
|