@watermarkinsights/ripple 5.30.0-alpha.1 → 5.30.0-alpha.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.
- package/dist/cjs/{app-globals-779dcbea.js → app-globals-da307af6.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/priv-calendar.cjs.entry.js +4 -4
- package/dist/cjs/ripple.cjs.js +1 -1
- package/dist/collection/components/datepickers/datepicker.css +0 -31
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +4 -4
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -31
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -31
- package/dist/collection/components/wm-pagination/wm-pagination.css +0 -31
- package/dist/collection/components/wm-search/wm-search.css +0 -31
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -31
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -31
- package/dist/collection/components/wm-uploader/wm-uploader.css +0 -31
- package/dist/esm/{app-globals-e5453247.js → app-globals-ed99915f.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/priv-calendar.entry.js +4 -4
- package/dist/esm/ripple.js +1 -1
- package/dist/esm-es5/{app-globals-e5453247.js → app-globals-ed99915f.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/ripple/{p-2d411a62.system.js → p-4ede31c6.system.js} +1 -1
- package/dist/ripple/p-75227418.entry.js +1 -0
- package/dist/ripple/{p-424ee606.js → p-7adf3041.js} +1 -1
- package/dist/ripple/{p-903590f6.system.entry.js → p-7dfbb70c.system.entry.js} +1 -1
- package/dist/ripple/{p-40f8147a.system.js → p-98e55ce5.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/ripple/p-864b08cd.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-bb947bd5.js');
|
|
6
|
-
const appGlobals = require('./app-globals-
|
|
6
|
+
const appGlobals = require('./app-globals-da307af6.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -524,7 +524,7 @@ const PrivCalendar = class {
|
|
|
524
524
|
this._focus.year.decrease(1);
|
|
525
525
|
}
|
|
526
526
|
this.announceMonthYear();
|
|
527
|
-
}, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": previousButtonLabel, onMouseOver: () => functions.showTooltip("right", this.prevBtnEl, previousButtonLabel), onMouseLeave: () => functions.hideTooltip(), onFocus: () => functions.showTooltip("right", this.prevBtnEl, previousButtonLabel), onBlur: () => functions.hideTooltip() }, index.h("span", { class: "svg-icon svg-previous" })), index.h("span", { class: "header-title" }, functions.calendar_months[this._focus.month.asInt() - 1], " ", this._focus.year.asString()), index.h("button", { onClick: () => {
|
|
527
|
+
}, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": previousButtonLabel, onMouseOver: () => functions.showTooltip("bottom-right", this.prevBtnEl, previousButtonLabel), onMouseLeave: () => functions.hideTooltip(), onFocus: () => functions.showTooltip("bottom-right", this.prevBtnEl, previousButtonLabel), onBlur: () => functions.hideTooltip() }, index.h("span", { class: "svg-icon svg-previous" })), index.h("span", { class: "header-title" }, functions.calendar_months[this._focus.month.asInt() - 1], " ", this._focus.year.asString()), index.h("button", { onClick: () => {
|
|
528
528
|
if (this.view == "day") {
|
|
529
529
|
this._focus.month.increase(1);
|
|
530
530
|
}
|
|
@@ -532,7 +532,7 @@ const PrivCalendar = class {
|
|
|
532
532
|
this._focus.year.increase(1);
|
|
533
533
|
}
|
|
534
534
|
this.announceMonthYear();
|
|
535
|
-
}, "aria-label": nextButtonLabel, class: "header-btn arw-btn", ref: (el) => (this.nextBtnEl = el), onMouseOver: () => functions.showTooltip("right", this.nextBtnEl, nextButtonLabel), onMouseLeave: () => functions.hideTooltip(), onFocus: () => functions.showTooltip("right", this.nextBtnEl, nextButtonLabel), onBlur: () => functions.hideTooltip() }, index.h("span", { class: "svg-icon svg-next" })), this.renderToggleButton()));
|
|
535
|
+
}, "aria-label": nextButtonLabel, class: "header-btn arw-btn", ref: (el) => (this.nextBtnEl = el), onMouseOver: () => functions.showTooltip("bottom-right", this.nextBtnEl, nextButtonLabel), onMouseLeave: () => functions.hideTooltip(), onFocus: () => functions.showTooltip("bottom-right", this.nextBtnEl, nextButtonLabel), onBlur: () => functions.hideTooltip() }, index.h("span", { class: "svg-icon svg-next" })), this.renderToggleButton()));
|
|
536
536
|
}
|
|
537
537
|
renderToggleButton() {
|
|
538
538
|
return (index.h("div", { class: "toggle-button" }, index.h("div", { class: "input-wrapper left" }, index.h("input", { type: "radio", id: `month-radio-${this.uid}`, "aria-label": functions.intl.formatMessage({
|
|
@@ -592,11 +592,11 @@ const PrivCalendar = class {
|
|
|
592
592
|
return (index.h("div", { class: "month-view" }, index.h("div", { "aria-labelledby": "popup-title-year", role: "grid", class: "months" }, index.h("div", { role: "row", class: "month-row" }, functions.calendar_months.slice(0, 3).map((month, index) => this.renderMonth(month, index))), index.h("div", { role: "row", class: "month-row" }, functions.calendar_months.slice(3, 6).map((month, index) => this.renderMonth(month, index + 3))), index.h("div", { role: "row", class: "month-row" }, functions.calendar_months.slice(6, 9).map((month, index) => this.renderMonth(month, index + 6))), index.h("div", { role: "row", class: "month-row" }, functions.calendar_months.slice(9).map((month, index) => this.renderMonth(month, index + 9))))));
|
|
593
593
|
}
|
|
594
594
|
render() {
|
|
595
|
-
return (index.h(index.Host, { key: '
|
|
595
|
+
return (index.h(index.Host, { key: 'c0b7e492a324a4b252f216707574aafa33fbe21f', onMouseOut: (ev) => {
|
|
596
596
|
// @ts-ignore
|
|
597
597
|
if (!this.el.parentElement.contains(ev.toElement))
|
|
598
598
|
this.outOfCal.emit();
|
|
599
|
-
}, role: "application", "aria-describedby": `application-${this.uid}` }, index.h("div", { key: '
|
|
599
|
+
}, role: "application", "aria-describedby": `application-${this.uid}` }, index.h("div", { key: '6be7c25039e7136a9877cf4270020fd02fe5569f', class: `popup ${this.view}-view` }, this.renderHeader(), this.view === "day" ? this.renderDayView() : this.renderMonthView()), index.h("div", { key: '8ca29644aff6858d6eecf894bd6c3f9aef2c36ee', id: `application-${this.uid}`, class: "sr-only" }, this.calName, this.calInstructions), index.h("div", { key: '9c47125d7d6c79a6002d1ef2f18156deae113272', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "assertive", "aria-atomic": "true" }, this.announcement)));
|
|
600
600
|
}
|
|
601
601
|
get el() { return index.getElement(this); }
|
|
602
602
|
static get watchers() { return {
|
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-bb947bd5.js');
|
|
6
|
-
const appGlobals = require('./app-globals-
|
|
6
|
+
const appGlobals = require('./app-globals-da307af6.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -887,37 +887,6 @@
|
|
|
887
887
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/* --------------------------------------
|
|
891
|
-
1. Box-shadow
|
|
892
|
-
-------------------------------------- */
|
|
893
|
-
/* --------------------------------------
|
|
894
|
-
2. Border-radius
|
|
895
|
-
-------------------------------------- */
|
|
896
|
-
/* --------------------------------------
|
|
897
|
-
3. Transforms
|
|
898
|
-
-------------------------------------- */
|
|
899
|
-
/* --------------------------------------
|
|
900
|
-
4. Button Focus
|
|
901
|
-
-------------------------------------- */
|
|
902
|
-
/* --------------------------------------
|
|
903
|
-
5. Flex
|
|
904
|
-
-------------------------------------- */
|
|
905
|
-
/* --------------------------------------
|
|
906
|
-
7. Screen Reader Only
|
|
907
|
-
-------------------------------------- */
|
|
908
|
-
/* --------------------------------------
|
|
909
|
-
8. Label styles
|
|
910
|
-
this mixin includes all the styles for the label
|
|
911
|
-
+ flex rules on the parent container to switch between top and left position
|
|
912
|
-
+ srOnly when label is hidden
|
|
913
|
-
Assumes the following markup:
|
|
914
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
915
|
-
.wrapper is for the flex rules
|
|
916
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
917
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
918
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
919
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
920
|
-
-------------------------------------- */
|
|
921
890
|
:host * {
|
|
922
891
|
box-sizing: border-box;
|
|
923
892
|
}
|
|
@@ -512,7 +512,7 @@ export class PrivCalendar {
|
|
|
512
512
|
this._focus.year.decrease(1);
|
|
513
513
|
}
|
|
514
514
|
this.announceMonthYear();
|
|
515
|
-
}, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": previousButtonLabel, onMouseOver: () => showTooltip("right", this.prevBtnEl, previousButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("right", this.prevBtnEl, previousButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-previous" })), h("span", { class: "header-title" }, calendar_months[this._focus.month.asInt() - 1], " ", this._focus.year.asString()), h("button", { onClick: () => {
|
|
515
|
+
}, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": previousButtonLabel, onMouseOver: () => showTooltip("bottom-right", this.prevBtnEl, previousButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("bottom-right", this.prevBtnEl, previousButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-previous" })), h("span", { class: "header-title" }, calendar_months[this._focus.month.asInt() - 1], " ", this._focus.year.asString()), h("button", { onClick: () => {
|
|
516
516
|
if (this.view == "day") {
|
|
517
517
|
this._focus.month.increase(1);
|
|
518
518
|
}
|
|
@@ -520,7 +520,7 @@ export class PrivCalendar {
|
|
|
520
520
|
this._focus.year.increase(1);
|
|
521
521
|
}
|
|
522
522
|
this.announceMonthYear();
|
|
523
|
-
}, "aria-label": nextButtonLabel, class: "header-btn arw-btn", ref: (el) => (this.nextBtnEl = el), onMouseOver: () => showTooltip("right", this.nextBtnEl, nextButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("right", this.nextBtnEl, nextButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-next" })), this.renderToggleButton()));
|
|
523
|
+
}, "aria-label": nextButtonLabel, class: "header-btn arw-btn", ref: (el) => (this.nextBtnEl = el), onMouseOver: () => showTooltip("bottom-right", this.nextBtnEl, nextButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("bottom-right", this.nextBtnEl, nextButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-next" })), this.renderToggleButton()));
|
|
524
524
|
}
|
|
525
525
|
renderToggleButton() {
|
|
526
526
|
return (h("div", { class: "toggle-button" }, h("div", { class: "input-wrapper left" }, h("input", { type: "radio", id: `month-radio-${this.uid}`, "aria-label": intl.formatMessage({
|
|
@@ -580,11 +580,11 @@ export class PrivCalendar {
|
|
|
580
580
|
return (h("div", { class: "month-view" }, h("div", { "aria-labelledby": "popup-title-year", role: "grid", class: "months" }, h("div", { role: "row", class: "month-row" }, calendar_months.slice(0, 3).map((month, index) => this.renderMonth(month, index))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(3, 6).map((month, index) => this.renderMonth(month, index + 3))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(6, 9).map((month, index) => this.renderMonth(month, index + 6))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(9).map((month, index) => this.renderMonth(month, index + 9))))));
|
|
581
581
|
}
|
|
582
582
|
render() {
|
|
583
|
-
return (h(Host, { key: '
|
|
583
|
+
return (h(Host, { key: 'c0b7e492a324a4b252f216707574aafa33fbe21f', onMouseOut: (ev) => {
|
|
584
584
|
// @ts-ignore
|
|
585
585
|
if (!this.el.parentElement.contains(ev.toElement))
|
|
586
586
|
this.outOfCal.emit();
|
|
587
|
-
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: '
|
|
587
|
+
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: '6be7c25039e7136a9877cf4270020fd02fe5569f', class: `popup ${this.view}-view` }, this.renderHeader(), this.view === "day" ? this.renderDayView() : this.renderMonthView()), h("div", { key: '8ca29644aff6858d6eecf894bd6c3f9aef2c36ee', id: `application-${this.uid}`, class: "sr-only" }, this.calName, this.calInstructions), h("div", { key: '9c47125d7d6c79a6002d1ef2f18156deae113272', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "assertive", "aria-atomic": "true" }, this.announcement)));
|
|
588
588
|
}
|
|
589
589
|
static get is() { return "priv-calendar"; }
|
|
590
590
|
static get originalStyleUrls() {
|
|
@@ -887,37 +887,6 @@
|
|
|
887
887
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/* --------------------------------------
|
|
891
|
-
1. Box-shadow
|
|
892
|
-
-------------------------------------- */
|
|
893
|
-
/* --------------------------------------
|
|
894
|
-
2. Border-radius
|
|
895
|
-
-------------------------------------- */
|
|
896
|
-
/* --------------------------------------
|
|
897
|
-
3. Transforms
|
|
898
|
-
-------------------------------------- */
|
|
899
|
-
/* --------------------------------------
|
|
900
|
-
4. Button Focus
|
|
901
|
-
-------------------------------------- */
|
|
902
|
-
/* --------------------------------------
|
|
903
|
-
5. Flex
|
|
904
|
-
-------------------------------------- */
|
|
905
|
-
/* --------------------------------------
|
|
906
|
-
7. Screen Reader Only
|
|
907
|
-
-------------------------------------- */
|
|
908
|
-
/* --------------------------------------
|
|
909
|
-
8. Label styles
|
|
910
|
-
this mixin includes all the styles for the label
|
|
911
|
-
+ flex rules on the parent container to switch between top and left position
|
|
912
|
-
+ srOnly when label is hidden
|
|
913
|
-
Assumes the following markup:
|
|
914
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
915
|
-
.wrapper is for the flex rules
|
|
916
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
917
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
918
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
919
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
920
|
-
-------------------------------------- */
|
|
921
890
|
:host(:focus-visible) {
|
|
922
891
|
outline: none;
|
|
923
892
|
}
|
package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css
CHANGED
|
@@ -887,37 +887,6 @@
|
|
|
887
887
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/* --------------------------------------
|
|
891
|
-
1. Box-shadow
|
|
892
|
-
-------------------------------------- */
|
|
893
|
-
/* --------------------------------------
|
|
894
|
-
2. Border-radius
|
|
895
|
-
-------------------------------------- */
|
|
896
|
-
/* --------------------------------------
|
|
897
|
-
3. Transforms
|
|
898
|
-
-------------------------------------- */
|
|
899
|
-
/* --------------------------------------
|
|
900
|
-
4. Button Focus
|
|
901
|
-
-------------------------------------- */
|
|
902
|
-
/* --------------------------------------
|
|
903
|
-
5. Flex
|
|
904
|
-
-------------------------------------- */
|
|
905
|
-
/* --------------------------------------
|
|
906
|
-
7. Screen Reader Only
|
|
907
|
-
-------------------------------------- */
|
|
908
|
-
/* --------------------------------------
|
|
909
|
-
8. Label styles
|
|
910
|
-
this mixin includes all the styles for the label
|
|
911
|
-
+ flex rules on the parent container to switch between top and left position
|
|
912
|
-
+ srOnly when label is hidden
|
|
913
|
-
Assumes the following markup:
|
|
914
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
915
|
-
.wrapper is for the flex rules
|
|
916
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
917
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
918
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
919
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
920
|
-
-------------------------------------- */
|
|
921
890
|
:host * {
|
|
922
891
|
box-sizing: border-box;
|
|
923
892
|
}
|
|
@@ -887,37 +887,6 @@
|
|
|
887
887
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/* --------------------------------------
|
|
891
|
-
1. Box-shadow
|
|
892
|
-
-------------------------------------- */
|
|
893
|
-
/* --------------------------------------
|
|
894
|
-
2. Border-radius
|
|
895
|
-
-------------------------------------- */
|
|
896
|
-
/* --------------------------------------
|
|
897
|
-
3. Transforms
|
|
898
|
-
-------------------------------------- */
|
|
899
|
-
/* --------------------------------------
|
|
900
|
-
4. Button Focus
|
|
901
|
-
-------------------------------------- */
|
|
902
|
-
/* --------------------------------------
|
|
903
|
-
5. Flex
|
|
904
|
-
-------------------------------------- */
|
|
905
|
-
/* --------------------------------------
|
|
906
|
-
7. Screen Reader Only
|
|
907
|
-
-------------------------------------- */
|
|
908
|
-
/* --------------------------------------
|
|
909
|
-
8. Label styles
|
|
910
|
-
this mixin includes all the styles for the label
|
|
911
|
-
+ flex rules on the parent container to switch between top and left position
|
|
912
|
-
+ srOnly when label is hidden
|
|
913
|
-
Assumes the following markup:
|
|
914
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
915
|
-
.wrapper is for the flex rules
|
|
916
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
917
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
918
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
919
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
920
|
-
-------------------------------------- */
|
|
921
890
|
:host,
|
|
922
891
|
wm-pagination {
|
|
923
892
|
display: block;
|
|
@@ -887,37 +887,6 @@
|
|
|
887
887
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/* --------------------------------------
|
|
891
|
-
1. Box-shadow
|
|
892
|
-
-------------------------------------- */
|
|
893
|
-
/* --------------------------------------
|
|
894
|
-
2. Border-radius
|
|
895
|
-
-------------------------------------- */
|
|
896
|
-
/* --------------------------------------
|
|
897
|
-
3. Transforms
|
|
898
|
-
-------------------------------------- */
|
|
899
|
-
/* --------------------------------------
|
|
900
|
-
4. Button Focus
|
|
901
|
-
-------------------------------------- */
|
|
902
|
-
/* --------------------------------------
|
|
903
|
-
5. Flex
|
|
904
|
-
-------------------------------------- */
|
|
905
|
-
/* --------------------------------------
|
|
906
|
-
7. Screen Reader Only
|
|
907
|
-
-------------------------------------- */
|
|
908
|
-
/* --------------------------------------
|
|
909
|
-
8. Label styles
|
|
910
|
-
this mixin includes all the styles for the label
|
|
911
|
-
+ flex rules on the parent container to switch between top and left position
|
|
912
|
-
+ srOnly when label is hidden
|
|
913
|
-
Assumes the following markup:
|
|
914
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
915
|
-
.wrapper is for the flex rules
|
|
916
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
917
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
918
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
919
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
920
|
-
-------------------------------------- */
|
|
921
890
|
:host * {
|
|
922
891
|
box-sizing: border-box;
|
|
923
892
|
}
|
|
@@ -887,37 +887,6 @@
|
|
|
887
887
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/* --------------------------------------
|
|
891
|
-
1. Box-shadow
|
|
892
|
-
-------------------------------------- */
|
|
893
|
-
/* --------------------------------------
|
|
894
|
-
2. Border-radius
|
|
895
|
-
-------------------------------------- */
|
|
896
|
-
/* --------------------------------------
|
|
897
|
-
3. Transforms
|
|
898
|
-
-------------------------------------- */
|
|
899
|
-
/* --------------------------------------
|
|
900
|
-
4. Button Focus
|
|
901
|
-
-------------------------------------- */
|
|
902
|
-
/* --------------------------------------
|
|
903
|
-
5. Flex
|
|
904
|
-
-------------------------------------- */
|
|
905
|
-
/* --------------------------------------
|
|
906
|
-
7. Screen Reader Only
|
|
907
|
-
-------------------------------------- */
|
|
908
|
-
/* --------------------------------------
|
|
909
|
-
8. Label styles
|
|
910
|
-
this mixin includes all the styles for the label
|
|
911
|
-
+ flex rules on the parent container to switch between top and left position
|
|
912
|
-
+ srOnly when label is hidden
|
|
913
|
-
Assumes the following markup:
|
|
914
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
915
|
-
.wrapper is for the flex rules
|
|
916
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
917
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
918
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
919
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
920
|
-
-------------------------------------- */
|
|
921
890
|
:host * {
|
|
922
891
|
box-sizing: border-box;
|
|
923
892
|
margin: unset;
|
|
@@ -887,37 +887,6 @@
|
|
|
887
887
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/* --------------------------------------
|
|
891
|
-
1. Box-shadow
|
|
892
|
-
-------------------------------------- */
|
|
893
|
-
/* --------------------------------------
|
|
894
|
-
2. Border-radius
|
|
895
|
-
-------------------------------------- */
|
|
896
|
-
/* --------------------------------------
|
|
897
|
-
3. Transforms
|
|
898
|
-
-------------------------------------- */
|
|
899
|
-
/* --------------------------------------
|
|
900
|
-
4. Button Focus
|
|
901
|
-
-------------------------------------- */
|
|
902
|
-
/* --------------------------------------
|
|
903
|
-
5. Flex
|
|
904
|
-
-------------------------------------- */
|
|
905
|
-
/* --------------------------------------
|
|
906
|
-
7. Screen Reader Only
|
|
907
|
-
-------------------------------------- */
|
|
908
|
-
/* --------------------------------------
|
|
909
|
-
8. Label styles
|
|
910
|
-
this mixin includes all the styles for the label
|
|
911
|
-
+ flex rules on the parent container to switch between top and left position
|
|
912
|
-
+ srOnly when label is hidden
|
|
913
|
-
Assumes the following markup:
|
|
914
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
915
|
-
.wrapper is for the flex rules
|
|
916
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
917
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
918
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
919
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
920
|
-
-------------------------------------- */
|
|
921
890
|
:host * {
|
|
922
891
|
box-sizing: border-box;
|
|
923
892
|
}
|
|
@@ -1587,37 +1587,6 @@
|
|
|
1587
1587
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
1588
1588
|
}
|
|
1589
1589
|
|
|
1590
|
-
/* --------------------------------------
|
|
1591
|
-
1. Box-shadow
|
|
1592
|
-
-------------------------------------- */
|
|
1593
|
-
/* --------------------------------------
|
|
1594
|
-
2. Border-radius
|
|
1595
|
-
-------------------------------------- */
|
|
1596
|
-
/* --------------------------------------
|
|
1597
|
-
3. Transforms
|
|
1598
|
-
-------------------------------------- */
|
|
1599
|
-
/* --------------------------------------
|
|
1600
|
-
4. Button Focus
|
|
1601
|
-
-------------------------------------- */
|
|
1602
|
-
/* --------------------------------------
|
|
1603
|
-
5. Flex
|
|
1604
|
-
-------------------------------------- */
|
|
1605
|
-
/* --------------------------------------
|
|
1606
|
-
7. Screen Reader Only
|
|
1607
|
-
-------------------------------------- */
|
|
1608
|
-
/* --------------------------------------
|
|
1609
|
-
8. Label styles
|
|
1610
|
-
this mixin includes all the styles for the label
|
|
1611
|
-
+ flex rules on the parent container to switch between top and left position
|
|
1612
|
-
+ srOnly when label is hidden
|
|
1613
|
-
Assumes the following markup:
|
|
1614
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
1615
|
-
.wrapper is for the flex rules
|
|
1616
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
1617
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
1618
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
1619
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
1620
|
-
-------------------------------------- */
|
|
1621
1590
|
:host {
|
|
1622
1591
|
display: block;
|
|
1623
1592
|
position: relative;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as bootstrapLazy } from './index-3425d80d.js';
|
|
2
2
|
export { s as setNonce } from './index-3425d80d.js';
|
|
3
|
-
import { g as globalScripts } from './app-globals-
|
|
3
|
+
import { g as globalScripts } from './app-globals-ed99915f.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -520,7 +520,7 @@ const PrivCalendar = class {
|
|
|
520
520
|
this._focus.year.decrease(1);
|
|
521
521
|
}
|
|
522
522
|
this.announceMonthYear();
|
|
523
|
-
}, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": previousButtonLabel, onMouseOver: () => showTooltip("right", this.prevBtnEl, previousButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("right", this.prevBtnEl, previousButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-previous" })), h("span", { class: "header-title" }, calendar_months[this._focus.month.asInt() - 1], " ", this._focus.year.asString()), h("button", { onClick: () => {
|
|
523
|
+
}, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": previousButtonLabel, onMouseOver: () => showTooltip("bottom-right", this.prevBtnEl, previousButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("bottom-right", this.prevBtnEl, previousButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-previous" })), h("span", { class: "header-title" }, calendar_months[this._focus.month.asInt() - 1], " ", this._focus.year.asString()), h("button", { onClick: () => {
|
|
524
524
|
if (this.view == "day") {
|
|
525
525
|
this._focus.month.increase(1);
|
|
526
526
|
}
|
|
@@ -528,7 +528,7 @@ const PrivCalendar = class {
|
|
|
528
528
|
this._focus.year.increase(1);
|
|
529
529
|
}
|
|
530
530
|
this.announceMonthYear();
|
|
531
|
-
}, "aria-label": nextButtonLabel, class: "header-btn arw-btn", ref: (el) => (this.nextBtnEl = el), onMouseOver: () => showTooltip("right", this.nextBtnEl, nextButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("right", this.nextBtnEl, nextButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-next" })), this.renderToggleButton()));
|
|
531
|
+
}, "aria-label": nextButtonLabel, class: "header-btn arw-btn", ref: (el) => (this.nextBtnEl = el), onMouseOver: () => showTooltip("bottom-right", this.nextBtnEl, nextButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("bottom-right", this.nextBtnEl, nextButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-next" })), this.renderToggleButton()));
|
|
532
532
|
}
|
|
533
533
|
renderToggleButton() {
|
|
534
534
|
return (h("div", { class: "toggle-button" }, h("div", { class: "input-wrapper left" }, h("input", { type: "radio", id: `month-radio-${this.uid}`, "aria-label": intl.formatMessage({
|
|
@@ -588,11 +588,11 @@ const PrivCalendar = class {
|
|
|
588
588
|
return (h("div", { class: "month-view" }, h("div", { "aria-labelledby": "popup-title-year", role: "grid", class: "months" }, h("div", { role: "row", class: "month-row" }, calendar_months.slice(0, 3).map((month, index) => this.renderMonth(month, index))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(3, 6).map((month, index) => this.renderMonth(month, index + 3))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(6, 9).map((month, index) => this.renderMonth(month, index + 6))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(9).map((month, index) => this.renderMonth(month, index + 9))))));
|
|
589
589
|
}
|
|
590
590
|
render() {
|
|
591
|
-
return (h(Host, { key: '
|
|
591
|
+
return (h(Host, { key: 'c0b7e492a324a4b252f216707574aafa33fbe21f', onMouseOut: (ev) => {
|
|
592
592
|
// @ts-ignore
|
|
593
593
|
if (!this.el.parentElement.contains(ev.toElement))
|
|
594
594
|
this.outOfCal.emit();
|
|
595
|
-
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: '
|
|
595
|
+
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: '6be7c25039e7136a9877cf4270020fd02fe5569f', class: `popup ${this.view}-view` }, this.renderHeader(), this.view === "day" ? this.renderDayView() : this.renderMonthView()), h("div", { key: '8ca29644aff6858d6eecf894bd6c3f9aef2c36ee', id: `application-${this.uid}`, class: "sr-only" }, this.calName, this.calInstructions), h("div", { key: '9c47125d7d6c79a6002d1ef2f18156deae113272', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "assertive", "aria-atomic": "true" }, this.announcement)));
|
|
596
596
|
}
|
|
597
597
|
get el() { return getElement(this); }
|
|
598
598
|
static get watchers() { return {
|
package/dist/esm/ripple.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-3425d80d.js';
|
|
2
2
|
export { s as setNonce } from './index-3425d80d.js';
|
|
3
|
-
import { g as globalScripts } from './app-globals-
|
|
3
|
+
import { g as globalScripts } from './app-globals-ed99915f.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./index-3425d80d.js";var version="5.30.0-alpha.
|
|
1
|
+
import"./index-3425d80d.js";var version="5.30.0-alpha.2";if(window.navigator.plugins.length>0){console.log("%cRipple component library %c%s","color: #575195; font-weight: bold","font-weight: bold",version)}function wmComponentKeys(o){if(o.key=="Tab"){var n=new Event("wmUserIsTabbing");window.dispatchEvent(n);document.querySelector("body").classList.add("wmcl-user-is-tabbing")}if(o.key=="ArrowLeft"||o.key=="ArrowUp"||o.key=="ArrowRight"||o.key=="ArrowDown"){var n=new Event("wmUserIsKeying");window.dispatchEvent(n);document.querySelector("body").classList.add("wmcl-user-is-keying")}}function wmComponentMouseDownOnce(){var o=new Event("wmUserIsNotTabbing");window.dispatchEvent(o);document.querySelector("body").classList.remove("wmcl-user-is-tabbing");document.querySelector("body").classList.remove("wmcl-user-is-keying")}window.addEventListener("keydown",wmComponentKeys);window.addEventListener("mousedown",wmComponentMouseDownOnce);var tooltipContainer=document.createElement("div");tooltipContainer.id="wm-tooltip-container";var tooltipEl=document.createElement("div");tooltipEl.id="wm-tooltip";tooltipEl.classList.add("wm-tooltip");tooltipEl.setAttribute("popover","manual");tooltipEl.setAttribute("aria-hidden","true");var tooltipStyles=document.createElement("style");tooltipStyles.textContent="\n.wm-tooltip {\n position: fixed;\n overflow: hidden;\n pointer-events: none;\n line-height: normal;\n font-family: inherit;\n font-size: 0.875rem;\n text-transform: none;\n font-weight: normal;\n background: var(--wmcolor-tooltip-background);\n color: var(--wmcolor-tooltip-text);\n z-index: 999999;\n max-width: var(--wmTooltipMaxWidth, 13.75rem);\n margin-right: 1.5rem;\n padding: 0.375rem;\n transition-property: opacity;\n transition-delay: 0s;\n opacity: 0;\n inset: unset;\n top: 0;\n left: 0;\n transform: translateZ(0);\n will-change: transform;\n transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));\n border: none;\n}\n\n.wm-tooltip:popover-open {\n opacity: 0;\n}\n\n.wm-tooltip.show {\n transition-delay: 500ms;\n opacity: 1;\n}\n";var body=document.querySelector("body");if(body){document.head.appendChild(tooltipStyles);tooltipContainer.appendChild(tooltipEl);body.appendChild(tooltipContainer)}else{document.addEventListener("DOMContentLoaded",(function(){var o=document.querySelector("body");document.head.appendChild(tooltipStyles);tooltipContainer.appendChild(tooltipEl);o.appendChild(tooltipContainer)}))}var globalFn=function(){};var globalScripts=globalFn;export{globalScripts as g};
|