@watermarkinsights/ripple 5.13.0-alpha.2 → 5.13.0-alpha.4

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.
Files changed (57) hide show
  1. package/dist/ripple/app-globals-B7cOtGhY.js +170 -0
  2. package/dist/ripple/chartFunctions-KaEM0xh0.js +715 -0
  3. package/dist/ripple/functions-Dtrjc9kR.js +18092 -0
  4. package/dist/ripple/index-CU5QNCKv.js +4167 -0
  5. package/dist/ripple/index.esm.js +1 -0
  6. package/dist/ripple/interfaces-CrANcZM9.js +53 -0
  7. package/dist/ripple/intl-BMoOWb_l.js +277 -0
  8. package/dist/ripple/priv-calendar.entry.js +566 -0
  9. package/dist/ripple/priv-chart-popover.entry.js +134 -0
  10. package/dist/ripple/priv-navigator-button.entry.js +24 -0
  11. package/dist/ripple/priv-navigator-item.entry.js +30 -0
  12. package/dist/ripple/priv-option-list.entry.js +385 -0
  13. package/dist/ripple/ripple.css +1645 -0
  14. package/dist/ripple/ripple.esm.js +48 -0
  15. package/dist/ripple/wm-action-menu.entry.js +201 -0
  16. package/dist/ripple/wm-button.entry.js +197 -0
  17. package/dist/ripple/wm-chart-slice.entry.js +18 -0
  18. package/dist/ripple/wm-chart.entry.js +157 -0
  19. package/dist/ripple/wm-date-range.entry.js +477 -0
  20. package/dist/ripple/wm-datepicker.entry.js +247 -0
  21. package/dist/ripple/wm-file-list.entry.js +18 -0
  22. package/dist/ripple/wm-file.entry.js +182 -0
  23. package/dist/ripple/wm-input.entry.js +111 -0
  24. package/dist/ripple/wm-line-chart.entry.js +449 -0
  25. package/dist/ripple/wm-menuitem.entry.js +125 -0
  26. package/dist/ripple/wm-modal-footer.entry.js +44 -0
  27. package/dist/ripple/wm-modal-header.entry.js +36 -0
  28. package/dist/ripple/wm-modal-pss-footer.entry.js +40 -0
  29. package/dist/ripple/wm-modal-pss-header.entry.js +39 -0
  30. package/dist/ripple/wm-modal-pss.entry.js +135 -0
  31. package/dist/ripple/wm-modal.entry.js +133 -0
  32. package/dist/ripple/wm-navigation-hamburger.entry.js +48 -0
  33. package/dist/ripple/wm-navigation-item.entry.js +18 -0
  34. package/dist/ripple/wm-navigation.entry.js +116 -0
  35. package/dist/ripple/wm-navigator.entry.js +368 -0
  36. package/dist/ripple/wm-nested-select.entry.js +308 -0
  37. package/dist/ripple/wm-optgroup.entry.js +68 -0
  38. package/dist/ripple/wm-option.entry.js +171 -0
  39. package/dist/ripple/wm-pagination.entry.js +223 -0
  40. package/dist/ripple/wm-progress-indicator.entry.js +107 -0
  41. package/dist/ripple/wm-progress-monitor.entry.js +71 -0
  42. package/dist/ripple/wm-progress-slice.entry.js +13 -0
  43. package/dist/ripple/wm-search.entry.js +208 -0
  44. package/dist/ripple/wm-select.entry.js +249 -0
  45. package/dist/ripple/wm-snackbar.entry.js +178 -0
  46. package/dist/ripple/wm-tab-item.entry.js +63 -0
  47. package/dist/ripple/wm-tab-list.entry.js +175 -0
  48. package/dist/ripple/wm-tab-panel.entry.js +32 -0
  49. package/dist/ripple/wm-tag-input.entry.js +877 -0
  50. package/dist/ripple/wm-tag-option.entry.js +35 -0
  51. package/dist/ripple/wm-textarea.entry.js +79 -0
  52. package/dist/ripple/wm-timepicker.entry.js +300 -0
  53. package/dist/ripple/wm-toggletip.entry.js +176 -0
  54. package/dist/ripple/wm-uploader.entry.js +313 -0
  55. package/dist/ripple/wm-wrapper.entry.js +17 -0
  56. package/package.json +30 -6
  57. package/dist/types/test-setup.d.ts +0 -0
@@ -0,0 +1,170 @@
1
+ import { a as setMode } from './index-CU5QNCKv.js';
2
+
3
+ const name = "@watermarkinsights/ripple";
4
+ const version = "5.12.0";
5
+ const description = "Ripple Component Library";
6
+ const module = "dist/index.js";
7
+ const main = "dist/index.cjs.js";
8
+ const types = "dist/types/components.d.ts";
9
+ const collection = "dist/collection/collection-manifest.json";
10
+ const files = [
11
+ "dist/"
12
+ ];
13
+ const exports = {
14
+ ".": {
15
+ "import": "./dist/ripple/ripple.esm.js",
16
+ require: "./dist/ripple/ripple.cjs.js",
17
+ types: "./dist/types/components.d.ts"
18
+ },
19
+ "./dist/components/*": {
20
+ "import": "./dist/components/*",
21
+ types: "./dist/components/*"
22
+ },
23
+ "./dist/types/*": {
24
+ types: "./dist/types/*"
25
+ },
26
+ "./dist/*": {
27
+ "import": "./dist/*",
28
+ types: "./dist/*"
29
+ },
30
+ "./components/*": {
31
+ "import": "./dist/components/*.js",
32
+ types: "./dist/components/*.d.ts"
33
+ },
34
+ "./loader": {
35
+ "import": "./loader/index.js",
36
+ require: "./loader/index.cjs",
37
+ types: "./loader/index.d.ts"
38
+ }
39
+ };
40
+ const scripts = {
41
+ build: "stencil build",
42
+ release: "bash ./scripts/release.sh",
43
+ start: "stencil build --dev --watch --serve",
44
+ test: "stencil test --spec --e2e",
45
+ "test.snapshot": "stencil test --spec --e2e -u",
46
+ "test.watch": "stencil test --spec --e2e --watch",
47
+ "test.watchAll": "stencil test --spec --e2e --watchAll",
48
+ "test.coverage": "stencil test --spec --coverage --collectCoverageFrom='src/**/*.{js,jsx,ts,tsx}'",
49
+ extract: "formatjs extract './src/global/intl.ts' './src/**/*.tsx' --out-file './src/lang/en.json' && node './src/lang/piglatin.js'",
50
+ compile: "formatjs compile-folder ./src/lang src/lang/compiled-lang/ --ast",
51
+ missing: "node ./src/lang/missing.js"
52
+ };
53
+ const dependencies = {
54
+ "@formatjs/intl": "^2.10.4"
55
+ };
56
+ const devDependencies = {
57
+ "@axe-core/puppeteer": "^4.9.1",
58
+ "@formatjs/cli": "^6.2.12",
59
+ "@stencil/core": "^4.20.0",
60
+ "@stencil/react-output-target": "^1.0.3",
61
+ "@stencil/sass": "^3.0.12",
62
+ "@types/jest": "^29.5.12",
63
+ jest: "^29.7.0"
64
+ };
65
+ var _package = {
66
+ name: name,
67
+ version: version,
68
+ description: description,
69
+ module: module,
70
+ main: main,
71
+ types: types,
72
+ collection: collection,
73
+ files: files,
74
+ exports: exports,
75
+ scripts: scripts,
76
+ dependencies: dependencies,
77
+ devDependencies: devDependencies
78
+ };
79
+
80
+ // PRINT RIPPLE VERSION IN CONSOLE
81
+ // test envs return 0 for plugin.length
82
+ // do not print version number there as it causes issues
83
+ if (window.navigator.plugins.length > 0) {
84
+ console.log("%cRipple component library %c%s", "color: #575195; font-weight: bold", "font-weight: bold", version);
85
+ }
86
+ // Dispatching events to track whether user is navigating with keyboard or mouse
87
+ // no longer necessary for keyboard focus indicators (thanks to :focus-visible)
88
+ // but still used in several components for other things (search for isTabbing)
89
+ function wmComponentKeys(ev) {
90
+ if (ev.key == "Tab") {
91
+ var event = new Event("wmUserIsTabbing");
92
+ window.dispatchEvent(event);
93
+ document.querySelector("body").classList.add("wmcl-user-is-tabbing");
94
+ }
95
+ if (ev.key == "ArrowLeft" || ev.key == "ArrowUp" || ev.key == "ArrowRight" || ev.key == "ArrowDown") {
96
+ var event = new Event("wmUserIsKeying");
97
+ window.dispatchEvent(event);
98
+ document.querySelector("body").classList.add("wmcl-user-is-keying");
99
+ }
100
+ }
101
+ function wmComponentMouseDownOnce() {
102
+ var event = new Event("wmUserIsNotTabbing");
103
+ window.dispatchEvent(event);
104
+ document.querySelector("body").classList.remove("wmcl-user-is-tabbing");
105
+ document.querySelector("body").classList.remove("wmcl-user-is-keying");
106
+ }
107
+ window.addEventListener("keydown", wmComponentKeys);
108
+ window.addEventListener("mousedown", wmComponentMouseDownOnce);
109
+ // MODES (FOR PRODUCT-SPECIFIC STYLING)
110
+ //Checks for mode attribute explicitly set on the document. If "mode" is set on component, it will override the global mode. Falls back to default (Planning styles)
111
+ setMode((elm) => {
112
+ return elm.getAttribute("mode") || document.documentElement.getAttribute("mode") || "planning";
113
+ });
114
+ // TOOLTIP
115
+ // Add a tooltip element
116
+ // This allows tooltips to be always at the highest stacking context (always on top)
117
+ // Element is added withing a container to avoid performance impact
118
+ const tooltipContainer = document.createElement("div");
119
+ tooltipContainer.id = "wm-tooltip-container";
120
+ const tooltipEl = document.createElement("div");
121
+ tooltipEl.id = "wm-tooltip";
122
+ tooltipEl.classList.add("wm-tooltip");
123
+ tooltipEl.setAttribute("popover", "manual");
124
+ tooltipEl.setAttribute("aria-hidden", "true");
125
+ const tooltipStyles = document.createElement("style");
126
+ tooltipStyles.textContent = `
127
+ .wm-tooltip {
128
+ position: fixed;
129
+ overflow: hidden;
130
+ pointer-events: none;
131
+ line-height: normal;
132
+ font-family: inherit;
133
+ font-size: 0.875rem;
134
+ text-transform: none;
135
+ font-weight: normal;
136
+ background: var(--wmcolor-tooltip-background);
137
+ color: var(--wmcolor-tooltip-text);
138
+ z-index: 999999;
139
+ max-width: var(--wmTooltipMaxWidth, 13.75rem);
140
+ margin-right: 1.5rem;
141
+ padding: 0.375rem;
142
+ transition-property: opacity;
143
+ transition-delay: 0s;
144
+ opacity: 0;
145
+ inset: unset;
146
+ top: 0;
147
+ left: 0;
148
+ transform: translateZ(0);
149
+ will-change: transform;
150
+ transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));
151
+ border: none;
152
+ }
153
+
154
+ .wm-tooltip:popover-open {
155
+ opacity: 0;
156
+ }
157
+
158
+ .wm-tooltip.show {
159
+ transition-delay: 500ms;
160
+ opacity: 1;
161
+ }
162
+ `;
163
+ document.head.appendChild(tooltipStyles);
164
+ tooltipContainer.appendChild(tooltipEl);
165
+ document.querySelector("body").appendChild(tooltipContainer);
166
+ const globalFn = () => { };
167
+
168
+ const globalScripts = globalFn;
169
+
170
+ export { globalScripts as g };