ember-attacher 4.2.1 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  :where(:root) {
2
2
  --ember-attacher-distance: 10px;
3
+ --ember-attacher-transition-duration: 0s;
3
4
  --ember-attacher-z-index: 9999;
4
5
  }
5
6
 
@@ -14,6 +15,26 @@
14
15
  left: 0;
15
16
  }
16
17
 
18
+ .ember-attacher[popover] {
19
+ color: inherit;
20
+ background: none;
21
+ border: 0;
22
+ margin: 0;
23
+ padding: 0;
24
+ inset: auto;
25
+ overflow: visible;
26
+ }
27
+
28
+ .ember-attacher[data-reference-hidden], .ember-attacher[data-escaped] {
29
+ visibility: hidden;
30
+ pointer-events: none;
31
+ }
32
+
33
+ .ember-attacher > div {
34
+ transition-duration: var(--ember-attacher-transition-duration, 0s);
35
+ transition-property: transform, opacity;
36
+ }
37
+
17
38
  .ember-attacher[x-placement^="top"] {
18
39
  --ember-attacher-arrow-rotate: rotate(-45deg);
19
40
  --ember-attacher-arrow-bottom: calc(-.5 * var(--ember-attacher-arrow-size, 10px));
@@ -76,6 +97,7 @@
76
97
  transform: var(--ember-attacher-circle-hide);
77
98
  opacity: 0;
78
99
  transform-origin: var(--ember-attacher-circle-origin);
100
+ transition-duration: calc(var(--ember-attacher-transition-duration, 0s) * .8);
79
101
  }
80
102
 
81
103
  :is(.ember-attacher[x-placement^="top"], .ember-attacher[x-placement^="bottom"], .ember-attacher[x-placement^="left"], .ember-attacher[x-placement^="right"]) > .ember-attacher-fill, :is(.ember-attacher[x-placement^="top"], .ember-attacher[x-placement^="bottom"], .ember-attacher[x-placement^="left"], .ember-attacher[x-placement^="right"]) > .ember-attacher-shift {
@@ -175,11 +197,13 @@
175
197
  :is(.ember-attacher-tooltip, .ember-attacher-popover) > div[x-circle] {
176
198
  background-color: var(--ember-attacher-fill);
177
199
  opacity: 0;
200
+ transition-duration: calc(var(--ember-attacher-transition-duration, 0s) * .8);
178
201
  will-change: transform;
179
202
  z-index: -1;
180
203
  border-radius: 50%;
181
204
  width: calc(100% + 2rem);
182
- transition: all ease-out;
205
+ transition-property: transform, opacity;
206
+ transition-timing-function: ease-out;
183
207
  position: absolute;
184
208
  left: 50%;
185
209
  overflow: hidden;
@@ -204,3 +228,10 @@
204
228
  --ember-attacher-border-width: 1px;
205
229
  --ember-attacher-shadow: 0 0 16px -4px #00142833, 0 0 80px -10px #0014284d;
206
230
  }
231
+
232
+ @media (prefers-reduced-motion: reduce) {
233
+ .ember-attacher, .ember-attacher > div, .ember-attacher div[x-circle] {
234
+ --ember-attacher-transition-duration: 0s !important;
235
+ transition-duration: 0s !important;
236
+ }
237
+ }
@@ -1,2 +1,2 @@
1
- export { i as isVisible } from '../is-visible-CzMFp_fy.js';
1
+ export { i as isVisible } from '../is-visible-c5EF_lZe.js';
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-attacher",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "description": "Tooltips and popovers for Ember.js apps",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -26,6 +26,9 @@
26
26
  "addon-main.js",
27
27
  "dist"
28
28
  ],
29
+ "sideEffects": [
30
+ "./dist/styles/*.css"
31
+ ],
29
32
  "repository": "https://github.com/tylerturdenpants/ember-attacher",
30
33
  "license": "MIT",
31
34
  "author": {
@@ -38,7 +41,7 @@
38
41
  "test": "tests"
39
42
  },
40
43
  "dependencies": {
41
- "@ember/test-waiters": "^3.1.0",
44
+ "@ember/test-waiters": "^3.1.0 || ^4.0.0",
42
45
  "@embroider/addon-shim": "^1.11.0",
43
46
  "@floating-ui/dom": "^1.8.0",
44
47
  "ember-modifier": "^4.2.2"
@@ -77,12 +80,12 @@
77
80
  "babel-plugin-ember-template-compilation": "^2.3.0",
78
81
  "eslint": "~9.39.5",
79
82
  "eslint-plugin-decorator-position": "^6.1.1",
80
- "eslint-plugin-ember": "~13.9.1",
83
+ "eslint-plugin-ember": "~13.10.0",
81
84
  "eslint-plugin-n": "^18.5.0",
82
85
  "globals": "^17.14.0",
83
86
  "lightningcss": "^1.33.0",
84
87
  "release-it": "^21.1.2",
85
88
  "release-it-pnpm": "^4.6.6",
86
- "rollup": "^4.68.2"
89
+ "rollup": "^4.68.3"
87
90
  }
88
91
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-visible-CzMFp_fy.js","sources":["../src/test-support/is-visible.js"],"sourcesContent":["export function isVisible(selector, contextEl) {\n const attachment = typeof(selector) === 'string' ? getAttachment(selector, contextEl) : selector;\n\n return getComputedStyle(attachment).display !== 'none';\n}\n\nfunction getAttachment(selectorOrElement = '', contextEl) {\n if (selectorOrElement instanceof Window ||\n selectorOrElement instanceof Document ||\n selectorOrElement instanceof HTMLElement ||\n selectorOrElement instanceof SVGElement) {\n return selectorOrElement;\n }\n\n let result;\n\n if (contextEl instanceof HTMLElement) {\n result = contextEl.querySelector(selectorOrElement);\n } else {\n result = document.querySelector(`${selectorOrElement}`);\n }\n\n if (!result) {\n const msg = typeof(selector) === 'string' ? selectorOrElement : selectorOrElement.innerHTML;\n\n throw `Could not locate attachment from selector: ${msg}`;\n }\n\n return result;\n}\n"],"names":["isVisible","selector","contextEl","attachment","getAttachment","getComputedStyle","display","selectorOrElement","Window","Document","HTMLElement","SVGElement","result","querySelector","document","msg","innerHTML"],"mappings":"AAAO,SAASA,SAASA,CAACC,QAAQ,EAAEC,SAAS,EAAE;AAC7C,EAAA,MAAMC,UAAU,GAAG,OAAOF,QAAS,KAAK,QAAQ,GAAGG,aAAa,CAACH,QAAQ,EAAEC,SAAS,CAAC,GAAGD,QAAQ;AAEhG,EAAA,OAAOI,gBAAgB,CAACF,UAAU,CAAC,CAACG,OAAO,KAAK,MAAM;AACxD;AAEA,SAASF,aAAaA,CAACG,iBAAiB,GAAG,EAAE,EAAEL,SAAS,EAAE;AACxD,EAAA,IAAIK,iBAAiB,YAAYC,MAAM,IACnCD,iBAAiB,YAAYE,QAAQ,IACrCF,iBAAiB,YAAYG,WAAW,IACxCH,iBAAiB,YAAYI,UAAU,EAAE;AAC3C,IAAA,OAAOJ,iBAAiB;AAC1B,EAAA;AAEA,EAAA,IAAIK,MAAM;EAEV,IAAIV,SAAS,YAAYQ,WAAW,EAAE;AACpCE,IAAAA,MAAM,GAAGV,SAAS,CAACW,aAAa,CAACN,iBAAiB,CAAC;AACrD,EAAA,CAAC,MAAM;IACLK,MAAM,GAAGE,QAAQ,CAACD,aAAa,CAAC,CAAA,EAAGN,iBAAiB,EAAE,CAAC;AACzD,EAAA;EAEA,IAAI,CAACK,MAAM,EAAE;IACX,MAAMG,GAAG,GAAG,OAAOd,QAAS,KAAK,QAAQ,GAAGM,iBAAiB,GAAGA,iBAAiB,CAACS,SAAS;IAE3F,MAAM,CAAA,2CAAA,EAA8CD,GAAG,CAAA,CAAE;AAC3D,EAAA;AAEA,EAAA,OAAOH,MAAM;AACf;;"}
@@ -1,164 +0,0 @@
1
- import { assert } from '@ember/debug';
2
-
3
- function _applyDecoratedDescriptor(i, e, r, n, l) {
4
- var a = {};
5
- return Object.keys(n).forEach(function (i) {
6
- a[i] = n[i];
7
- }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = true), a = r.slice().reverse().reduce(function (r, n) {
8
- return n(i, e, r) || r;
9
- }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a;
10
- }
11
- function _defineProperty(e, r, t) {
12
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
13
- value: t,
14
- enumerable: true,
15
- configurable: true,
16
- writable: true
17
- }) : e[r] = t, e;
18
- }
19
- function _initializerDefineProperty(e, i, r, l) {
20
- r && Object.defineProperty(e, i, {
21
- enumerable: r.enumerable,
22
- configurable: r.configurable,
23
- writable: r.writable,
24
- value: r.initializer ? r.initializer.call(l) : void 0
25
- });
26
- }
27
- function _toPrimitive(t, e) {
28
- if ("object" != typeof t || !t) return t;
29
- var r;
30
- if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
31
- var i = r.call(t, e);
32
- if ("object" != typeof i) return i;
33
- throw new TypeError("@@toPrimitive must return a primitive value.");
34
- }
35
- return ("string" === e ? String : Number)(t);
36
- }
37
- function _toPropertyKey(t) {
38
- var i = _toPrimitive(t, "string");
39
- return "symbol" == typeof i ? i : i + "";
40
- }
41
-
42
- /**
43
- * Target resolution seam for BasicAttacher.
44
- *
45
- * Keeps listener target and Floating UI reference selection in one private
46
- * module so explicit targets (elements, virtual references, and selectors)
47
- * can be resolved cleanly without cluttering positioning or lifecycle logic.
48
- */
49
-
50
- /**
51
- * Determine whether a target is a DOM Element.
52
- *
53
- * @param {unknown} value
54
- * @returns {boolean}
55
- */
56
- function isElementTarget(value) {
57
- return typeof Element !== 'undefined' && value instanceof Element;
58
- }
59
-
60
- /**
61
- * Floating UI virtual references are plain objects with `getBoundingClientRect`.
62
- *
63
- * @param {unknown} value
64
- * @returns {boolean}
65
- */
66
- function isVirtualReference(value) {
67
- if (value == null || typeof value !== 'object') {
68
- return false;
69
- }
70
- if (isElementTarget(value)) {
71
- return false;
72
- }
73
- return typeof value.getBoundingClientRect === 'function';
74
- }
75
-
76
- /**
77
- * Resolve a public `@explicitTarget` value (Element | selector | virtual ref).
78
- *
79
- * Selector strings use `querySelectorAll` and must match exactly one node
80
- * (same contract as `@floatingElementContainer`).
81
- *
82
- * @param {Element | string | { getBoundingClientRect: Function } | null | undefined} value
83
- * @param {ParentNode | Document | null | undefined} root
84
- * @returns {Element | { getBoundingClientRect: Function } | null}
85
- */
86
- function coerceExplicitTarget(value, root) {
87
- if (value == null) {
88
- return null;
89
- }
90
- if (isElementTarget(value) || isVirtualReference(value)) {
91
- return value;
92
- }
93
- if (typeof value === 'string') {
94
- const doc = root ?? (typeof document !== 'undefined' ? document : null);
95
- assert(`explicitTarget selector "${value}" cannot be resolved without a document`, doc != null);
96
- const matches = doc.querySelectorAll(value);
97
- assert(`explicitTarget selector "${value}" found ${matches.length} possible targets when there should be exactly 1`, matches.length === 1);
98
- return matches[0];
99
- }
100
- assert('explicitTarget must be an Element, a CSS selector string, or a Floating UI virtual reference with getBoundingClientRect', false);
101
- return null;
102
- }
103
-
104
- /**
105
- * Pick the Floating UI reference: explicit arg, then yielded registration, then parent.
106
- * Supports both options-bag and positional signatures.
107
- *
108
- * @param {object | Element | string | { getBoundingClientRect: Function } | null | undefined} optionsOrExplicit
109
- * @param {Element | { getBoundingClientRect: Function } | null | undefined} [registeredOrParent]
110
- * @param {Element | null | undefined} [parentElement] Implicit parent from the meta finder.
111
- * @param {ParentNode | Document | null | undefined} [root]
112
- * @returns {Element | { getBoundingClientRect: Function } | null}
113
- */
114
- function resolveAttachmentTarget(optionsOrExplicit, registeredOrParent, parentElement, root) {
115
- let explicitTarget;
116
- let registeredTarget;
117
- let parent;
118
- let searchRoot;
119
- if (optionsOrExplicit != null && typeof optionsOrExplicit === 'object' && !isElementTarget(optionsOrExplicit) && !isVirtualReference(optionsOrExplicit)) {
120
- ({
121
- explicitTarget,
122
- registeredTarget,
123
- parentElement: parent,
124
- root: searchRoot
125
- } = optionsOrExplicit);
126
- } else {
127
- explicitTarget = optionsOrExplicit;
128
- if (arguments.length <= 2) {
129
- parent = registeredOrParent;
130
- } else {
131
- registeredTarget = registeredOrParent;
132
- parent = parentElement;
133
- searchRoot = root;
134
- }
135
- }
136
- if (explicitTarget != null) {
137
- return coerceExplicitTarget(explicitTarget, searchRoot);
138
- }
139
- if (registeredTarget != null) {
140
- return registeredTarget;
141
- }
142
- return parent ?? null;
143
- }
144
-
145
- /**
146
- * Extract the DOM Element that should receive event listeners.
147
- * Real Elements receive events directly. Virtual references may provide a
148
- * `contextElement`; virtual references without a contextElement attach no listeners.
149
- *
150
- * @param {Element | { getBoundingClientRect: Function, contextElement?: Element } | null | undefined} target
151
- * @returns {Element | null}
152
- */
153
- function getListenerTarget(target) {
154
- if (isElementTarget(target)) {
155
- return target;
156
- }
157
- if (isVirtualReference(target) && isElementTarget(target.contextElement)) {
158
- return target.contextElement;
159
- }
160
- return null;
161
- }
162
-
163
- export { _applyDecoratedDescriptor as _, _defineProperty as a, _initializerDefineProperty as b, getListenerTarget as g, isElementTarget as i, resolveAttachmentTarget as r };
164
- //# sourceMappingURL=target-resolution-Bz738VeA.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"target-resolution-Bz738VeA.js","sources":["../src/lib/target-resolution.js"],"sourcesContent":["import { assert } from '@ember/debug';\n\n/**\n * Target resolution seam for BasicAttacher.\n *\n * Keeps listener target and Floating UI reference selection in one private\n * module so explicit targets (elements, virtual references, and selectors)\n * can be resolved cleanly without cluttering positioning or lifecycle logic.\n */\n\n/**\n * Determine whether a target is a DOM Element.\n *\n * @param {unknown} value\n * @returns {boolean}\n */\nexport function isElementTarget(value) {\n return typeof Element !== 'undefined' && value instanceof Element;\n}\n\n/**\n * Floating UI virtual references are plain objects with `getBoundingClientRect`.\n *\n * @param {unknown} value\n * @returns {boolean}\n */\nexport function isVirtualReference(value) {\n if (value == null || typeof value !== 'object') {\n return false;\n }\n\n if (isElementTarget(value)) {\n return false;\n }\n\n return typeof value.getBoundingClientRect === 'function';\n}\n\n/**\n * Resolve a public `@explicitTarget` value (Element | selector | virtual ref).\n *\n * Selector strings use `querySelectorAll` and must match exactly one node\n * (same contract as `@floatingElementContainer`).\n *\n * @param {Element | string | { getBoundingClientRect: Function } | null | undefined} value\n * @param {ParentNode | Document | null | undefined} root\n * @returns {Element | { getBoundingClientRect: Function } | null}\n */\nexport function coerceExplicitTarget(value, root) {\n if (value == null) {\n return null;\n }\n\n if (isElementTarget(value) || isVirtualReference(value)) {\n return value;\n }\n\n if (typeof value === 'string') {\n const doc = root ?? (typeof document !== 'undefined' ? document : null);\n assert(\n `explicitTarget selector \"${value}\" cannot be resolved without a document`,\n doc != null\n );\n\n const matches = doc.querySelectorAll(value);\n\n assert(\n `explicitTarget selector \"${value}\" found ${matches.length} possible targets when there should be exactly 1`,\n matches.length === 1\n );\n\n return matches[0];\n }\n\n assert(\n 'explicitTarget must be an Element, a CSS selector string, or a Floating UI virtual reference with getBoundingClientRect',\n false\n );\n\n return null;\n}\n\n/**\n * Pick the Floating UI reference: explicit arg, then yielded registration, then parent.\n * Supports both options-bag and positional signatures.\n *\n * @param {object | Element | string | { getBoundingClientRect: Function } | null | undefined} optionsOrExplicit\n * @param {Element | { getBoundingClientRect: Function } | null | undefined} [registeredOrParent]\n * @param {Element | null | undefined} [parentElement] Implicit parent from the meta finder.\n * @param {ParentNode | Document | null | undefined} [root]\n * @returns {Element | { getBoundingClientRect: Function } | null}\n */\nexport function resolveAttachmentTarget(\n optionsOrExplicit,\n registeredOrParent,\n parentElement,\n root\n) {\n let explicitTarget;\n let registeredTarget;\n let parent;\n let searchRoot;\n\n if (\n optionsOrExplicit != null &&\n typeof optionsOrExplicit === 'object' &&\n !isElementTarget(optionsOrExplicit) &&\n !isVirtualReference(optionsOrExplicit)\n ) {\n ({\n explicitTarget,\n registeredTarget,\n parentElement: parent,\n root: searchRoot,\n } = optionsOrExplicit);\n } else {\n explicitTarget = optionsOrExplicit;\n if (arguments.length <= 2) {\n parent = registeredOrParent;\n } else {\n registeredTarget = registeredOrParent;\n parent = parentElement;\n searchRoot = root;\n }\n }\n\n if (explicitTarget != null) {\n return coerceExplicitTarget(explicitTarget, searchRoot);\n }\n\n if (registeredTarget != null) {\n return registeredTarget;\n }\n\n return parent ?? null;\n}\n\n/**\n * Extract the DOM Element that should receive event listeners.\n * Real Elements receive events directly. Virtual references may provide a\n * `contextElement`; virtual references without a contextElement attach no listeners.\n *\n * @param {Element | { getBoundingClientRect: Function, contextElement?: Element } | null | undefined} target\n * @returns {Element | null}\n */\nexport function getListenerTarget(target) {\n if (isElementTarget(target)) {\n return target;\n }\n\n if (isVirtualReference(target) && isElementTarget(target.contextElement)) {\n return target.contextElement;\n }\n\n return null;\n}\n"],"names":["isElementTarget","value","Element","isVirtualReference","getBoundingClientRect","coerceExplicitTarget","root","doc","document","assert","matches","querySelectorAll","length","resolveAttachmentTarget","optionsOrExplicit","registeredOrParent","parentElement","explicitTarget","registeredTarget","parent","searchRoot","arguments","getListenerTarget","target","contextElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,eAAeA,CAACC,KAAK,EAAE;AACrC,EAAA,OAAO,OAAOC,OAAO,KAAK,WAAW,IAAID,KAAK,YAAYC,OAAO;AACnE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,kBAAkBA,CAACF,KAAK,EAAE;EACxC,IAAIA,KAAK,IAAI,IAAI,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;AAC9C,IAAA,OAAO,KAAK;AACd,EAAA;AAEA,EAAA,IAAID,eAAe,CAACC,KAAK,CAAC,EAAE;AAC1B,IAAA,OAAO,KAAK;AACd,EAAA;AAEA,EAAA,OAAO,OAAOA,KAAK,CAACG,qBAAqB,KAAK,UAAU;AAC1D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,oBAAoBA,CAACJ,KAAK,EAAEK,IAAI,EAAE;EAChD,IAAIL,KAAK,IAAI,IAAI,EAAE;AACjB,IAAA,OAAO,IAAI;AACb,EAAA;EAEA,IAAID,eAAe,CAACC,KAAK,CAAC,IAAIE,kBAAkB,CAACF,KAAK,CAAC,EAAE;AACvD,IAAA,OAAOA,KAAK;AACd,EAAA;AAEA,EAAA,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;AAC7B,IAAA,MAAMM,GAAG,GAAGD,IAAI,KAAK,OAAOE,QAAQ,KAAK,WAAW,GAAGA,QAAQ,GAAG,IAAI,CAAC;IACvEC,MAAM,C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