@w0s/footnote-reference-popover 7.2.1 → 7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -29
- package/dist/attribute/FootnoteElement.js +1 -1
- package/dist/attribute/FootnoteElement.js.map +1 -1
- package/dist/attribute/Mouseenter.d.ts +2 -2
- package/dist/attribute/Mouseenter.d.ts.map +1 -1
- package/dist/attribute/Mouseenter.js +7 -9
- package/dist/attribute/Mouseenter.js.map +1 -1
- package/dist/attribute/Mouseleave.d.ts +2 -2
- package/dist/attribute/Mouseleave.d.ts.map +1 -1
- package/dist/attribute/Mouseleave.js +7 -9
- package/dist/attribute/Mouseleave.js.map +1 -1
- package/dist/custom-element/Popover.d.ts +13 -6
- package/dist/custom-element/Popover.d.ts.map +1 -1
- package/dist/custom-element/Popover.js +77 -57
- package/dist/custom-element/Popover.js.map +1 -1
- package/dist/event/popover/mouseenter.d.ts +12 -0
- package/dist/event/popover/mouseenter.d.ts.map +1 -0
- package/dist/event/popover/mouseenter.js +16 -0
- package/dist/event/popover/mouseenter.js.map +1 -0
- package/dist/event/popover/mouseleave.d.ts +12 -0
- package/dist/event/popover/mouseleave.d.ts.map +1 -0
- package/dist/event/popover/mouseleave.js +16 -0
- package/dist/event/popover/mouseleave.js.map +1 -0
- package/dist/event/popover-hidden-button/click.d.ts +13 -0
- package/dist/event/popover-hidden-button/click.d.ts.map +1 -0
- package/dist/event/popover-hidden-button/click.js +11 -0
- package/dist/event/popover-hidden-button/click.js.map +1 -0
- package/dist/event/popover-trigger/click.d.ts +13 -0
- package/dist/event/popover-trigger/click.d.ts.map +1 -0
- package/dist/event/popover-trigger/click.js +14 -0
- package/dist/event/popover-trigger/click.js.map +1 -0
- package/dist/event/popover-trigger/mouseenter.d.ts +17 -0
- package/dist/event/popover-trigger/mouseenter.d.ts.map +1 -0
- package/dist/event/popover-trigger/mouseenter.js +29 -0
- package/dist/event/popover-trigger/mouseenter.js.map +1 -0
- package/dist/event/popover-trigger/mouseleave.d.ts +14 -0
- package/dist/event/popover-trigger/mouseleave.d.ts.map +1 -0
- package/dist/event/popover-trigger/mouseleave.js +15 -0
- package/dist/event/popover-trigger/mouseleave.js.map +1 -0
- package/dist/footnoteReferencePopover.d.ts +23 -0
- package/dist/footnoteReferencePopover.d.ts.map +1 -0
- package/dist/footnoteReferencePopover.js +143 -0
- package/dist/footnoteReferencePopover.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +44 -48
- package/dist/FootnoteReferencePopover.d.ts +0 -11
- package/dist/FootnoteReferencePopover.d.ts.map +0 -1
- package/dist/FootnoteReferencePopover.js +0 -196
- package/dist/FootnoteReferencePopover.js.map +0 -1
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import FootnoteElement from "./attribute/FootnoteElement.js";
|
|
2
|
-
import Mouseenter from "./attribute/Mouseenter.js";
|
|
3
|
-
import Mouseleave from "./attribute/Mouseleave.js";
|
|
4
|
-
import PopoverClass from "./attribute/PopoverClass.js";
|
|
5
|
-
import PopoverHide from "./attribute/PopoverHide.js";
|
|
6
|
-
import PopoverLabel from "./attribute/PopoverLabel.js";
|
|
7
|
-
import CustomElementPopover, {} from "./custom-element/Popover.js";
|
|
8
|
-
customElements.define('x-popover', CustomElementPopover);
|
|
9
|
-
/**
|
|
10
|
-
* Footnote reference popover
|
|
11
|
-
*/
|
|
12
|
-
export default class {
|
|
13
|
-
#popoverTriggerElement;
|
|
14
|
-
#popoverElement;
|
|
15
|
-
#footnoteElement; // 脚注要素(ポップオーバーの内容をここからコピーする)
|
|
16
|
-
#popoverLabel; // ポップオーバーに設定するラベル
|
|
17
|
-
#popoverClass; // ポップオーバーに設定するクラス名
|
|
18
|
-
#popoverHide; // ポップオーバーの閉じるボタン
|
|
19
|
-
#mouseenter; // mouseenter 時のデータ
|
|
20
|
-
#mouseleave; // mouseleave 時のデータ
|
|
21
|
-
#mouseenterTimeoutId; // ポップオーバーを表示する際のタイマーの識別 ID(`clearTimeout()` で使用)
|
|
22
|
-
#mouseleaveTimeoutId; // ポップオーバーを非表示にする際のタイマーの識別 ID(`clearTimeout()` で使用)
|
|
23
|
-
#preloadProcessed = false; // `<link rel="preload" as="image" />` の生成処理を実行したかどうか
|
|
24
|
-
/**
|
|
25
|
-
* @param thisElement - Target element
|
|
26
|
-
*/
|
|
27
|
-
constructor(thisElement) {
|
|
28
|
-
this.#popoverTriggerElement = thisElement;
|
|
29
|
-
const { href: hrefAttribute } = thisElement;
|
|
30
|
-
const { popoverLabel: popoverLabelAttribute, popoverClass: popoverClassAttribute, popoverHideText: popoverHideTextAttribute, popoverHideImageSrc: popoverHideImageSrcAttribute, popoverHideImageWidth: popoverHideImageWidthAttribute, popoverHideImageHeight: popoverHideImageHeightAttribute, mouseenterDelay: mouseenterDelayAttribute, mouseleaveDelay: mouseleaveDelayAttribute, } = thisElement.dataset;
|
|
31
|
-
this.#footnoteElement = new FootnoteElement(hrefAttribute);
|
|
32
|
-
this.#popoverLabel = new PopoverLabel(popoverLabelAttribute);
|
|
33
|
-
this.#popoverClass = new PopoverClass(popoverClassAttribute);
|
|
34
|
-
this.#popoverHide = new PopoverHide({
|
|
35
|
-
text: popoverHideTextAttribute,
|
|
36
|
-
imageSrc: popoverHideImageSrcAttribute,
|
|
37
|
-
imageWidth: popoverHideImageWidthAttribute,
|
|
38
|
-
imageHeight: popoverHideImageHeightAttribute,
|
|
39
|
-
});
|
|
40
|
-
this.#mouseenter = new Mouseenter({ delay: mouseenterDelayAttribute ?? '250' });
|
|
41
|
-
this.#mouseleave = new Mouseleave({ delay: mouseleaveDelayAttribute ?? '250' });
|
|
42
|
-
this.#popoverElement = document.createElement('x-popover');
|
|
43
|
-
if (!('showPopover' in this.#popoverElement)) {
|
|
44
|
-
console.info('This browser does not support popover');
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
thisElement.setAttribute('role', 'button');
|
|
48
|
-
thisElement.addEventListener('click', this.#clickEvent);
|
|
49
|
-
thisElement.addEventListener('mouseenter', this.#mouseEnterEvent, { passive: true });
|
|
50
|
-
thisElement.addEventListener('mouseleave', this.#mouseLeaveEvent, { passive: true });
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* `click` event
|
|
54
|
-
*
|
|
55
|
-
* @param ev - MouseEvent
|
|
56
|
-
*/
|
|
57
|
-
#clickEvent = (ev) => {
|
|
58
|
-
ev.preventDefault();
|
|
59
|
-
clearTimeout(this.#mouseleaveTimeoutId);
|
|
60
|
-
this.#show(ev.type);
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* `mouseenter` event
|
|
64
|
-
*
|
|
65
|
-
* @param ev - MouseEvent
|
|
66
|
-
*/
|
|
67
|
-
#mouseEnterEvent = (ev) => {
|
|
68
|
-
clearTimeout(this.#mouseleaveTimeoutId);
|
|
69
|
-
this.#imagePreloadElementCreate();
|
|
70
|
-
this.#mouseenterTimeoutId = setTimeout(() => {
|
|
71
|
-
this.#show(ev.type);
|
|
72
|
-
}, this.#mouseenter.delay);
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* `mouseleave` event
|
|
76
|
-
*
|
|
77
|
-
* @param ev - MouseEvent
|
|
78
|
-
*/
|
|
79
|
-
#mouseLeaveEvent = (ev) => {
|
|
80
|
-
clearTimeout(this.#mouseenterTimeoutId);
|
|
81
|
-
this.#mouseleaveTimeoutId = setTimeout(() => {
|
|
82
|
-
this.#hide(ev.type);
|
|
83
|
-
}, this.#mouseleave.delay);
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* ポップオーバーを生成する
|
|
87
|
-
*/
|
|
88
|
-
#create() {
|
|
89
|
-
const footnoteElement = this.#footnoteElement.element;
|
|
90
|
-
const popoverElement = this.#popoverElement;
|
|
91
|
-
if (this.#popoverClass.name !== undefined) {
|
|
92
|
-
popoverElement.className = this.#popoverClass.name;
|
|
93
|
-
}
|
|
94
|
-
popoverElement.label = this.#popoverLabel.text ?? null;
|
|
95
|
-
popoverElement.hideText = this.#popoverHide.text ?? null;
|
|
96
|
-
popoverElement.hideImageSrc = this.#popoverHide.imageSrc ?? null;
|
|
97
|
-
popoverElement.hideImageWidth = this.#popoverHide.imageWidth ?? null;
|
|
98
|
-
popoverElement.hideImageHeight = this.#popoverHide.imageHeight ?? null;
|
|
99
|
-
popoverElement.insertAdjacentHTML('afterbegin', 'getHTML' in footnoteElement ? footnoteElement.getHTML() : footnoteElement.innerHTML);
|
|
100
|
-
document.body.appendChild(popoverElement);
|
|
101
|
-
popoverElement.addEventListener('mouseenter', (ev) => {
|
|
102
|
-
clearTimeout(this.#mouseleaveTimeoutId);
|
|
103
|
-
this.#mouseenterTimeoutId = setTimeout(() => {
|
|
104
|
-
this.#show(ev.type);
|
|
105
|
-
}, this.#mouseenter.delay);
|
|
106
|
-
}, { passive: true });
|
|
107
|
-
popoverElement.addEventListener('mouseleave', (ev) => {
|
|
108
|
-
clearTimeout(this.#mouseenterTimeoutId);
|
|
109
|
-
this.#mouseleaveTimeoutId = setTimeout(() => {
|
|
110
|
-
this.#hide(ev.type);
|
|
111
|
-
}, this.#mouseleave.delay);
|
|
112
|
-
}, { passive: true });
|
|
113
|
-
popoverElement.hideButtonElement.addEventListener('click', () => {
|
|
114
|
-
clearTimeout(this.#mouseenterTimeoutId); // タッチデバイスで閉じるボタンをタップした際に `mouseenter` イベントの発火により表示処理が遅延実行されるのを防ぐ
|
|
115
|
-
}, { passive: true });
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* ポップオーバーを表示する
|
|
119
|
-
*
|
|
120
|
-
* @param eventType - イベントの識別名
|
|
121
|
-
*/
|
|
122
|
-
#show(eventType) {
|
|
123
|
-
const popoverElement = this.#popoverElement;
|
|
124
|
-
if (!popoverElement.isConnected) {
|
|
125
|
-
/* 初回表示時はポップオーバーの生成を行う */
|
|
126
|
-
this.#create();
|
|
127
|
-
}
|
|
128
|
-
const triggerRect = this.#popoverTriggerElement.getBoundingClientRect();
|
|
129
|
-
/* ポップオーバーの上位置を設定(トリガー要素の下端を基準にする) */
|
|
130
|
-
popoverElement.style.width = 'auto';
|
|
131
|
-
popoverElement.style.top = `${String(Math.round(triggerRect.bottom) + window.scrollY)}px`;
|
|
132
|
-
popoverElement.style.right = 'auto';
|
|
133
|
-
popoverElement.style.left = 'auto';
|
|
134
|
-
/* ポップオーバーを表示 */
|
|
135
|
-
const eventDetail = {
|
|
136
|
-
newState: 'open',
|
|
137
|
-
eventType: eventType,
|
|
138
|
-
};
|
|
139
|
-
popoverElement.dispatchEvent(new CustomEvent('my-toggle', {
|
|
140
|
-
detail: eventDetail,
|
|
141
|
-
}));
|
|
142
|
-
/* ポップオーバーの左右位置を設定(トリガー要素の左端を基準にする) */
|
|
143
|
-
const documentWidth = document.documentElement.offsetWidth;
|
|
144
|
-
const popoverWidth = popoverElement.width;
|
|
145
|
-
const triggerRectLeft = triggerRect.left;
|
|
146
|
-
popoverElement.style.width = `${String(popoverWidth)}px`;
|
|
147
|
-
if (documentWidth - triggerRectLeft < popoverWidth) {
|
|
148
|
-
popoverElement.style.right = '0';
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
popoverElement.style.left = `${String(triggerRectLeft)}px`;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* ポップオーバーを非表示にする
|
|
156
|
-
*
|
|
157
|
-
* @param eventType - イベントの識別名
|
|
158
|
-
*/
|
|
159
|
-
#hide(eventType) {
|
|
160
|
-
const eventDetail = {
|
|
161
|
-
newState: 'closed',
|
|
162
|
-
eventType: eventType,
|
|
163
|
-
};
|
|
164
|
-
this.#popoverElement.dispatchEvent(new CustomEvent('my-toggle', {
|
|
165
|
-
detail: eventDetail,
|
|
166
|
-
}));
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* `<link rel="preload" as="image" />` を生成する
|
|
170
|
-
*/
|
|
171
|
-
#imagePreloadElementCreate() {
|
|
172
|
-
if (this.#preloadProcessed) {
|
|
173
|
-
/* 生成処理は1回のみ */
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
this.#preloadProcessed = true;
|
|
177
|
-
const popoverHideImageSrc = this.#popoverHide.imageSrc;
|
|
178
|
-
if (popoverHideImageSrc !== undefined &&
|
|
179
|
-
!popoverHideImageSrc.startsWith('data:') &&
|
|
180
|
-
document.querySelector(`link[rel="preload"][as="image"][href="${popoverHideImageSrc}"]`) === null) {
|
|
181
|
-
const parentElement = document.head;
|
|
182
|
-
const preloadElement = document.createElement('link');
|
|
183
|
-
preloadElement.rel = 'preload';
|
|
184
|
-
preloadElement.as = 'image';
|
|
185
|
-
preloadElement.href = popoverHideImageSrc;
|
|
186
|
-
const alreadyHeadLinkElements = parentElement.querySelectorAll('link');
|
|
187
|
-
if (alreadyHeadLinkElements.length === 0) {
|
|
188
|
-
parentElement.appendChild(preloadElement);
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
[...alreadyHeadLinkElements].at(-1)?.insertAdjacentElement('afterend', preloadElement);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
//# sourceMappingURL=FootnoteReferencePopover.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FootnoteReferencePopover.js","sourceRoot":"","sources":["../src/FootnoteReferencePopover.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,oBAAoB,EAAE,EAA0B,MAAM,6BAA6B,CAAC;AAE3F,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,oBAAoB,CAAC,CAAC;AAEzD;;GAEG;AACH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