itmar-block-packages 3.0.3 → 3.1.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/README.md +143 -0
- package/build/cjs/AnimationBlock.js +38 -47
- package/build/cjs/AnimationBlock.js.map +1 -1
- package/build/cjs/BlockEditWrapper.js +2 -2
- package/build/cjs/BlockEditWrapper.js.map +1 -1
- package/build/cjs/BlockPlace.js +111 -190
- package/build/cjs/BlockPlace.js.map +1 -1
- package/build/cjs/DateElm.js +41 -48
- package/build/cjs/DateElm.js.map +1 -1
- package/build/cjs/DraggableBox.js +3 -8
- package/build/cjs/DraggableBox.js.map +1 -1
- package/build/cjs/GridControls.js +52 -67
- package/build/cjs/GridControls.js.map +1 -1
- package/build/cjs/IconSelectControl.js +33 -47
- package/build/cjs/IconSelectControl.js.map +1 -1
- package/build/cjs/MasonryControl.js.map +1 -1
- package/build/cjs/PseudoElm.js +2 -2
- package/build/cjs/PseudoElm.js.map +1 -1
- package/build/cjs/ShadowStyle.js +36 -64
- package/build/cjs/ShadowStyle.js.map +1 -1
- package/build/cjs/SwiperControl.js +2 -2
- package/build/cjs/SwiperControl.js.map +1 -1
- package/build/cjs/ToggleElement.js +3 -3
- package/build/cjs/ToggleElement.js.map +1 -1
- package/build/cjs/TypographyControls.js +27 -35
- package/build/cjs/TypographyControls.js.map +1 -1
- package/build/cjs/UpdateAllPostsBlockAttributes.js +14 -20
- package/build/cjs/UpdateAllPostsBlockAttributes.js.map +1 -1
- package/build/cjs/blockStore.js.map +1 -1
- package/build/cjs/customHooks.js +20 -3
- package/build/cjs/customHooks.js.map +1 -1
- package/build/cjs/formatCreate.js +16 -22
- package/build/cjs/formatCreate.js.map +1 -1
- package/build/cjs/index.js +3 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/mediaUpload.js +10 -20
- package/build/cjs/mediaUpload.js.map +1 -1
- package/build/cjs/styleComponentApply.js +42 -0
- package/build/cjs/styleComponentApply.js.map +1 -0
- package/build/cjs/types/AnimationBlock.d.ts +1 -1
- package/build/cjs/types/BlockEditWrapper.d.ts +1 -1
- package/build/cjs/types/BlockPlace.d.ts +3 -3
- package/build/cjs/types/DateElm.d.ts +1 -1
- package/build/cjs/types/DraggableBox.d.ts +1 -1
- package/build/cjs/types/GridControls.d.ts +1 -1
- package/build/cjs/types/IconSelectControl.d.ts +1 -1
- package/build/cjs/types/PseudoElm.d.ts +1 -1
- package/build/cjs/types/ShadowStyle.d.ts +2 -2
- package/build/cjs/types/ToggleElement.d.ts +1 -1
- package/build/cjs/types/TypographyControls.d.ts +1 -1
- package/build/cjs/types/UpdateAllPostsBlockAttributes.d.ts +1 -1
- package/build/cjs/types/blockStore.d.ts +8 -6
- package/build/cjs/types/customHooks.d.ts +14 -7
- package/build/cjs/types/formatCreate.d.ts +1 -1
- package/build/cjs/types/index.d.ts +4 -3
- package/build/cjs/types/mediaUpload.d.ts +2 -2
- package/build/cjs/types/styleComponentApply.d.ts +4 -0
- package/build/cjs/types/wordpressApi.d.ts +6 -6
- package/build/cjs/wordpressApi.js +115 -49
- package/build/cjs/wordpressApi.js.map +1 -1
- package/build/esm/AnimationBlock.js +38 -47
- package/build/esm/AnimationBlock.js.map +1 -1
- package/build/esm/BlockEditWrapper.js +3 -3
- package/build/esm/BlockEditWrapper.js.map +1 -1
- package/build/esm/BlockPlace.js +111 -190
- package/build/esm/BlockPlace.js.map +1 -1
- package/build/esm/DateElm.js +39 -46
- package/build/esm/DateElm.js.map +1 -1
- package/build/esm/DraggableBox.js +3 -8
- package/build/esm/DraggableBox.js.map +1 -1
- package/build/esm/GridControls.js +52 -67
- package/build/esm/GridControls.js.map +1 -1
- package/build/esm/IconSelectControl.js +34 -48
- package/build/esm/IconSelectControl.js.map +1 -1
- package/build/esm/MasonryControl.js.map +1 -1
- package/build/esm/PseudoElm.js +2 -2
- package/build/esm/PseudoElm.js.map +1 -1
- package/build/esm/ShadowStyle.js +36 -64
- package/build/esm/ShadowStyle.js.map +1 -1
- package/build/esm/SwiperControl.js +1 -1
- package/build/esm/ToggleElement.js +3 -3
- package/build/esm/ToggleElement.js.map +1 -1
- package/build/esm/TypographyControls.js +27 -35
- package/build/esm/TypographyControls.js.map +1 -1
- package/build/esm/UpdateAllPostsBlockAttributes.js +15 -21
- package/build/esm/UpdateAllPostsBlockAttributes.js.map +1 -1
- package/build/esm/blockStore.js.map +1 -1
- package/build/esm/customHooks.js +21 -5
- package/build/esm/customHooks.js.map +1 -1
- package/build/esm/formatCreate.js +16 -22
- package/build/esm/formatCreate.js.map +1 -1
- package/build/esm/index.js +2 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/mediaUpload.js +10 -20
- package/build/esm/mediaUpload.js.map +1 -1
- package/build/esm/styleComponentApply.js +40 -0
- package/build/esm/styleComponentApply.js.map +1 -0
- package/build/esm/types/AnimationBlock.d.ts +1 -1
- package/build/esm/types/BlockEditWrapper.d.ts +1 -1
- package/build/esm/types/BlockPlace.d.ts +3 -3
- package/build/esm/types/DateElm.d.ts +1 -1
- package/build/esm/types/DraggableBox.d.ts +1 -1
- package/build/esm/types/GridControls.d.ts +1 -1
- package/build/esm/types/IconSelectControl.d.ts +1 -1
- package/build/esm/types/PseudoElm.d.ts +1 -1
- package/build/esm/types/ShadowStyle.d.ts +2 -2
- package/build/esm/types/ToggleElement.d.ts +1 -1
- package/build/esm/types/TypographyControls.d.ts +1 -1
- package/build/esm/types/UpdateAllPostsBlockAttributes.d.ts +1 -1
- package/build/esm/types/blockStore.d.ts +8 -6
- package/build/esm/types/customHooks.d.ts +14 -7
- package/build/esm/types/formatCreate.d.ts +1 -1
- package/build/esm/types/index.d.ts +4 -3
- package/build/esm/types/mediaUpload.d.ts +2 -2
- package/build/esm/types/styleComponentApply.d.ts +4 -0
- package/build/esm/types/wordpressApi.d.ts +6 -6
- package/build/esm/wordpressApi.js +116 -50
- package/build/esm/wordpressApi.js.map +1 -1
- package/package.json +12 -5
- package/build/cjs/node_modules/nanoid/non-secure/index.js +0 -15
- package/build/cjs/node_modules/nanoid/non-secure/index.js.map +0 -1
- package/build/cjs/node_modules/swiper/shared/ssr-window.esm.js +0 -144
- package/build/cjs/node_modules/swiper/shared/ssr-window.esm.js.map +0 -1
- package/build/cjs/node_modules/swiper/shared/swiper-core.js +0 -3925
- package/build/cjs/node_modules/swiper/shared/swiper-core.js.map +0 -1
- package/build/cjs/node_modules/swiper/shared/utils.js +0 -294
- package/build/cjs/node_modules/swiper/shared/utils.js.map +0 -1
- package/build/esm/AnimationBlock.d.ts +0 -22
- package/build/esm/BlockEditWrapper.d.ts +0 -7
- package/build/esm/BlockPlace.d.ts +0 -49
- package/build/esm/BrockInserter.d.ts +0 -6
- package/build/esm/DateElm.d.ts +0 -69
- package/build/esm/DraggableBox.d.ts +0 -19
- package/build/esm/GridControls.d.ts +0 -27
- package/build/esm/IconSelectControl.d.ts +0 -17
- package/build/esm/JapaneseHolidays.d.ts +0 -6
- package/build/esm/MasonryControl.d.ts +0 -35
- package/build/esm/PseudoElm.d.ts +0 -11
- package/build/esm/ShadowStyle.d.ts +0 -33
- package/build/esm/SwiperControl.d.ts +0 -12
- package/build/esm/ToggleElement.d.ts +0 -13
- package/build/esm/TypographyControls.d.ts +0 -17
- package/build/esm/UpdateAllPostsBlockAttributes.d.ts +0 -10
- package/build/esm/ZipAddress.d.ts +0 -18
- package/build/esm/blockStore.d.ts +0 -15
- package/build/esm/cssPropertes.d.ts +0 -53
- package/build/esm/customHooks.d.ts +0 -11
- package/build/esm/formatCreate.d.ts +0 -18
- package/build/esm/hslToRgb.d.ts +0 -23
- package/build/esm/index.d.ts +0 -27
- package/build/esm/mediaUpload.d.ts +0 -29
- package/build/esm/node_modules/nanoid/non-secure/index.js +0 -13
- package/build/esm/node_modules/nanoid/non-secure/index.js.map +0 -1
- package/build/esm/node_modules/swiper/shared/ssr-window.esm.js +0 -141
- package/build/esm/node_modules/swiper/shared/ssr-window.esm.js.map +0 -1
- package/build/esm/node_modules/swiper/shared/swiper-core.js +0 -3922
- package/build/esm/node_modules/swiper/shared/swiper-core.js.map +0 -1
- package/build/esm/node_modules/swiper/shared/utils.js +0 -274
- package/build/esm/node_modules/swiper/shared/utils.js.map +0 -1
- package/build/esm/pickupStore.d.ts +0 -39
- package/build/esm/shopfiApi.d.ts +0 -18
- package/build/esm/validationCheck.d.ts +0 -5
- package/build/esm/wordpressApi.d.ts +0 -99
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var ssrWindow_esm = require('./ssr-window.esm.js');
|
|
4
|
-
|
|
5
|
-
function classesToTokens(classes = '') {
|
|
6
|
-
return classes.trim().split(' ').filter(c => !!c.trim());
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
function deleteProps(obj) {
|
|
10
|
-
const object = obj;
|
|
11
|
-
Object.keys(object).forEach(key => {
|
|
12
|
-
try {
|
|
13
|
-
object[key] = null;
|
|
14
|
-
} catch (e) {
|
|
15
|
-
// no getter for object
|
|
16
|
-
}
|
|
17
|
-
try {
|
|
18
|
-
delete object[key];
|
|
19
|
-
} catch (e) {
|
|
20
|
-
// something got wrong
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function nextTick(callback, delay = 0) {
|
|
25
|
-
return setTimeout(callback, delay);
|
|
26
|
-
}
|
|
27
|
-
function now() {
|
|
28
|
-
return Date.now();
|
|
29
|
-
}
|
|
30
|
-
function getComputedStyle(el) {
|
|
31
|
-
const window = ssrWindow_esm.a();
|
|
32
|
-
let style;
|
|
33
|
-
if (window.getComputedStyle) {
|
|
34
|
-
style = window.getComputedStyle(el, null);
|
|
35
|
-
}
|
|
36
|
-
if (!style && el.currentStyle) {
|
|
37
|
-
style = el.currentStyle;
|
|
38
|
-
}
|
|
39
|
-
if (!style) {
|
|
40
|
-
style = el.style;
|
|
41
|
-
}
|
|
42
|
-
return style;
|
|
43
|
-
}
|
|
44
|
-
function getTranslate(el, axis = 'x') {
|
|
45
|
-
const window = ssrWindow_esm.a();
|
|
46
|
-
let matrix;
|
|
47
|
-
let curTransform;
|
|
48
|
-
let transformMatrix;
|
|
49
|
-
const curStyle = getComputedStyle(el);
|
|
50
|
-
if (window.WebKitCSSMatrix) {
|
|
51
|
-
curTransform = curStyle.transform || curStyle.webkitTransform;
|
|
52
|
-
if (curTransform.split(',').length > 6) {
|
|
53
|
-
curTransform = curTransform.split(', ').map(a => a.replace(',', '.')).join(', ');
|
|
54
|
-
}
|
|
55
|
-
// Some old versions of Webkit choke when 'none' is passed; pass
|
|
56
|
-
// empty string instead in this case
|
|
57
|
-
transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);
|
|
58
|
-
} else {
|
|
59
|
-
transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');
|
|
60
|
-
matrix = transformMatrix.toString().split(',');
|
|
61
|
-
}
|
|
62
|
-
if (axis === 'x') {
|
|
63
|
-
// Latest Chrome and webkits Fix
|
|
64
|
-
if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41;
|
|
65
|
-
// Crazy IE10 Matrix
|
|
66
|
-
else if (matrix.length === 16) curTransform = parseFloat(matrix[12]);
|
|
67
|
-
// Normal Browsers
|
|
68
|
-
else curTransform = parseFloat(matrix[4]);
|
|
69
|
-
}
|
|
70
|
-
if (axis === 'y') {
|
|
71
|
-
// Latest Chrome and webkits Fix
|
|
72
|
-
if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42;
|
|
73
|
-
// Crazy IE10 Matrix
|
|
74
|
-
else if (matrix.length === 16) curTransform = parseFloat(matrix[13]);
|
|
75
|
-
// Normal Browsers
|
|
76
|
-
else curTransform = parseFloat(matrix[5]);
|
|
77
|
-
}
|
|
78
|
-
return curTransform || 0;
|
|
79
|
-
}
|
|
80
|
-
function isObject(o) {
|
|
81
|
-
return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';
|
|
82
|
-
}
|
|
83
|
-
function isNode(node) {
|
|
84
|
-
// eslint-disable-next-line
|
|
85
|
-
if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {
|
|
86
|
-
return node instanceof HTMLElement;
|
|
87
|
-
}
|
|
88
|
-
return node && (node.nodeType === 1 || node.nodeType === 11);
|
|
89
|
-
}
|
|
90
|
-
function extend(...args) {
|
|
91
|
-
const to = Object(args[0]);
|
|
92
|
-
for (let i = 1; i < args.length; i += 1) {
|
|
93
|
-
const nextSource = args[i];
|
|
94
|
-
if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {
|
|
95
|
-
const keysArray = Object.keys(Object(nextSource)).filter(key => key !== '__proto__' && key !== 'constructor' && key !== 'prototype');
|
|
96
|
-
for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {
|
|
97
|
-
const nextKey = keysArray[nextIndex];
|
|
98
|
-
const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
|
|
99
|
-
if (desc !== undefined && desc.enumerable) {
|
|
100
|
-
if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {
|
|
101
|
-
if (nextSource[nextKey].__swiper__) {
|
|
102
|
-
to[nextKey] = nextSource[nextKey];
|
|
103
|
-
} else {
|
|
104
|
-
extend(to[nextKey], nextSource[nextKey]);
|
|
105
|
-
}
|
|
106
|
-
} else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {
|
|
107
|
-
to[nextKey] = {};
|
|
108
|
-
if (nextSource[nextKey].__swiper__) {
|
|
109
|
-
to[nextKey] = nextSource[nextKey];
|
|
110
|
-
} else {
|
|
111
|
-
extend(to[nextKey], nextSource[nextKey]);
|
|
112
|
-
}
|
|
113
|
-
} else {
|
|
114
|
-
to[nextKey] = nextSource[nextKey];
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return to;
|
|
121
|
-
}
|
|
122
|
-
function setCSSProperty(el, varName, varValue) {
|
|
123
|
-
el.style.setProperty(varName, varValue);
|
|
124
|
-
}
|
|
125
|
-
function animateCSSModeScroll({
|
|
126
|
-
swiper,
|
|
127
|
-
targetPosition,
|
|
128
|
-
side
|
|
129
|
-
}) {
|
|
130
|
-
const window = ssrWindow_esm.a();
|
|
131
|
-
const startPosition = -swiper.translate;
|
|
132
|
-
let startTime = null;
|
|
133
|
-
let time;
|
|
134
|
-
const duration = swiper.params.speed;
|
|
135
|
-
swiper.wrapperEl.style.scrollSnapType = 'none';
|
|
136
|
-
window.cancelAnimationFrame(swiper.cssModeFrameID);
|
|
137
|
-
const dir = targetPosition > startPosition ? 'next' : 'prev';
|
|
138
|
-
const isOutOfBound = (current, target) => {
|
|
139
|
-
return dir === 'next' && current >= target || dir === 'prev' && current <= target;
|
|
140
|
-
};
|
|
141
|
-
const animate = () => {
|
|
142
|
-
time = new Date().getTime();
|
|
143
|
-
if (startTime === null) {
|
|
144
|
-
startTime = time;
|
|
145
|
-
}
|
|
146
|
-
const progress = Math.max(Math.min((time - startTime) / duration, 1), 0);
|
|
147
|
-
const easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;
|
|
148
|
-
let currentPosition = startPosition + easeProgress * (targetPosition - startPosition);
|
|
149
|
-
if (isOutOfBound(currentPosition, targetPosition)) {
|
|
150
|
-
currentPosition = targetPosition;
|
|
151
|
-
}
|
|
152
|
-
swiper.wrapperEl.scrollTo({
|
|
153
|
-
[side]: currentPosition
|
|
154
|
-
});
|
|
155
|
-
if (isOutOfBound(currentPosition, targetPosition)) {
|
|
156
|
-
swiper.wrapperEl.style.overflow = 'hidden';
|
|
157
|
-
swiper.wrapperEl.style.scrollSnapType = '';
|
|
158
|
-
setTimeout(() => {
|
|
159
|
-
swiper.wrapperEl.style.overflow = '';
|
|
160
|
-
swiper.wrapperEl.scrollTo({
|
|
161
|
-
[side]: currentPosition
|
|
162
|
-
});
|
|
163
|
-
});
|
|
164
|
-
window.cancelAnimationFrame(swiper.cssModeFrameID);
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
swiper.cssModeFrameID = window.requestAnimationFrame(animate);
|
|
168
|
-
};
|
|
169
|
-
animate();
|
|
170
|
-
}
|
|
171
|
-
function elementChildren(element, selector = '') {
|
|
172
|
-
const window = ssrWindow_esm.a();
|
|
173
|
-
const children = [...element.children];
|
|
174
|
-
if (window.HTMLSlotElement && element instanceof HTMLSlotElement) {
|
|
175
|
-
children.push(...element.assignedElements());
|
|
176
|
-
}
|
|
177
|
-
if (!selector) {
|
|
178
|
-
return children;
|
|
179
|
-
}
|
|
180
|
-
return children.filter(el => el.matches(selector));
|
|
181
|
-
}
|
|
182
|
-
function elementIsChildOfSlot(el, slot) {
|
|
183
|
-
// Breadth-first search through all parent's children and assigned elements
|
|
184
|
-
const elementsQueue = [slot];
|
|
185
|
-
while (elementsQueue.length > 0) {
|
|
186
|
-
const elementToCheck = elementsQueue.shift();
|
|
187
|
-
if (el === elementToCheck) {
|
|
188
|
-
return true;
|
|
189
|
-
}
|
|
190
|
-
elementsQueue.push(...elementToCheck.children, ...(elementToCheck.shadowRoot ? elementToCheck.shadowRoot.children : []), ...(elementToCheck.assignedElements ? elementToCheck.assignedElements() : []));
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
function elementIsChildOf(el, parent) {
|
|
194
|
-
const window = ssrWindow_esm.a();
|
|
195
|
-
let isChild = parent.contains(el);
|
|
196
|
-
if (!isChild && window.HTMLSlotElement && parent instanceof HTMLSlotElement) {
|
|
197
|
-
const children = [...parent.assignedElements()];
|
|
198
|
-
isChild = children.includes(el);
|
|
199
|
-
if (!isChild) {
|
|
200
|
-
isChild = elementIsChildOfSlot(el, parent);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
return isChild;
|
|
204
|
-
}
|
|
205
|
-
function showWarning(text) {
|
|
206
|
-
try {
|
|
207
|
-
console.warn(text);
|
|
208
|
-
return;
|
|
209
|
-
} catch (err) {
|
|
210
|
-
// err
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
function createElement(tag, classes = []) {
|
|
214
|
-
const el = document.createElement(tag);
|
|
215
|
-
el.classList.add(...(Array.isArray(classes) ? classes : classesToTokens(classes)));
|
|
216
|
-
return el;
|
|
217
|
-
}
|
|
218
|
-
function elementPrevAll(el, selector) {
|
|
219
|
-
const prevEls = [];
|
|
220
|
-
while (el.previousElementSibling) {
|
|
221
|
-
const prev = el.previousElementSibling; // eslint-disable-line
|
|
222
|
-
if (selector) {
|
|
223
|
-
if (prev.matches(selector)) prevEls.push(prev);
|
|
224
|
-
} else prevEls.push(prev);
|
|
225
|
-
el = prev;
|
|
226
|
-
}
|
|
227
|
-
return prevEls;
|
|
228
|
-
}
|
|
229
|
-
function elementNextAll(el, selector) {
|
|
230
|
-
const nextEls = [];
|
|
231
|
-
while (el.nextElementSibling) {
|
|
232
|
-
const next = el.nextElementSibling; // eslint-disable-line
|
|
233
|
-
if (selector) {
|
|
234
|
-
if (next.matches(selector)) nextEls.push(next);
|
|
235
|
-
} else nextEls.push(next);
|
|
236
|
-
el = next;
|
|
237
|
-
}
|
|
238
|
-
return nextEls;
|
|
239
|
-
}
|
|
240
|
-
function elementStyle(el, prop) {
|
|
241
|
-
const window = ssrWindow_esm.a();
|
|
242
|
-
return window.getComputedStyle(el, null).getPropertyValue(prop);
|
|
243
|
-
}
|
|
244
|
-
function elementIndex(el) {
|
|
245
|
-
let child = el;
|
|
246
|
-
let i;
|
|
247
|
-
if (child) {
|
|
248
|
-
i = 0;
|
|
249
|
-
// eslint-disable-next-line
|
|
250
|
-
while ((child = child.previousSibling) !== null) {
|
|
251
|
-
if (child.nodeType === 1) i += 1;
|
|
252
|
-
}
|
|
253
|
-
return i;
|
|
254
|
-
}
|
|
255
|
-
return undefined;
|
|
256
|
-
}
|
|
257
|
-
function elementParents(el, selector) {
|
|
258
|
-
const parents = []; // eslint-disable-line
|
|
259
|
-
let parent = el.parentElement; // eslint-disable-line
|
|
260
|
-
while (parent) {
|
|
261
|
-
{
|
|
262
|
-
parents.push(parent);
|
|
263
|
-
}
|
|
264
|
-
parent = parent.parentElement;
|
|
265
|
-
}
|
|
266
|
-
return parents;
|
|
267
|
-
}
|
|
268
|
-
function elementOuterSize(el, size, includeMargins) {
|
|
269
|
-
const window = ssrWindow_esm.a();
|
|
270
|
-
{
|
|
271
|
-
return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
exports.b = setCSSProperty;
|
|
276
|
-
exports.c = createElement;
|
|
277
|
-
exports.d = elementParents;
|
|
278
|
-
exports.e = elementChildren;
|
|
279
|
-
exports.h = now;
|
|
280
|
-
exports.i = elementOuterSize;
|
|
281
|
-
exports.j = elementIndex;
|
|
282
|
-
exports.k = classesToTokens;
|
|
283
|
-
exports.l = getTranslate;
|
|
284
|
-
exports.n = nextTick;
|
|
285
|
-
exports.p = isObject;
|
|
286
|
-
exports.q = elementStyle;
|
|
287
|
-
exports.r = elementNextAll;
|
|
288
|
-
exports.t = elementPrevAll;
|
|
289
|
-
exports.u = animateCSSModeScroll;
|
|
290
|
-
exports.v = showWarning;
|
|
291
|
-
exports.w = elementIsChildOf;
|
|
292
|
-
exports.x = extend;
|
|
293
|
-
exports.y = deleteProps;
|
|
294
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../../node_modules/swiper/shared/utils.mjs"],"sourcesContent":["import { a as getWindow, g as getDocument } from './ssr-window.esm.mjs';\n\nfunction classesToTokens(classes = '') {\n return classes.trim().split(' ').filter(c => !!c.trim());\n}\n\nfunction deleteProps(obj) {\n const object = obj;\n Object.keys(object).forEach(key => {\n try {\n object[key] = null;\n } catch (e) {\n // no getter for object\n }\n try {\n delete object[key];\n } catch (e) {\n // something got wrong\n }\n });\n}\nfunction nextTick(callback, delay = 0) {\n return setTimeout(callback, delay);\n}\nfunction now() {\n return Date.now();\n}\nfunction getComputedStyle(el) {\n const window = getWindow();\n let style;\n if (window.getComputedStyle) {\n style = window.getComputedStyle(el, null);\n }\n if (!style && el.currentStyle) {\n style = el.currentStyle;\n }\n if (!style) {\n style = el.style;\n }\n return style;\n}\nfunction getTranslate(el, axis = 'x') {\n const window = getWindow();\n let matrix;\n let curTransform;\n let transformMatrix;\n const curStyle = getComputedStyle(el);\n if (window.WebKitCSSMatrix) {\n curTransform = curStyle.transform || curStyle.webkitTransform;\n if (curTransform.split(',').length > 6) {\n curTransform = curTransform.split(', ').map(a => a.replace(',', '.')).join(', ');\n }\n // Some old versions of Webkit choke when 'none' is passed; pass\n // empty string instead in this case\n transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);\n } else {\n transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');\n matrix = transformMatrix.toString().split(',');\n }\n if (axis === 'x') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[12]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[4]);\n }\n if (axis === 'y') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[13]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[5]);\n }\n return curTransform || 0;\n}\nfunction isObject(o) {\n return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';\n}\nfunction isNode(node) {\n // eslint-disable-next-line\n if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {\n return node instanceof HTMLElement;\n }\n return node && (node.nodeType === 1 || node.nodeType === 11);\n}\nfunction extend(...args) {\n const to = Object(args[0]);\n for (let i = 1; i < args.length; i += 1) {\n const nextSource = args[i];\n if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {\n const keysArray = Object.keys(Object(nextSource)).filter(key => key !== '__proto__' && key !== 'constructor' && key !== 'prototype');\n for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {\n const nextKey = keysArray[nextIndex];\n const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n to[nextKey] = {};\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n }\n return to;\n}\nfunction setCSSProperty(el, varName, varValue) {\n el.style.setProperty(varName, varValue);\n}\nfunction animateCSSModeScroll({\n swiper,\n targetPosition,\n side\n}) {\n const window = getWindow();\n const startPosition = -swiper.translate;\n let startTime = null;\n let time;\n const duration = swiper.params.speed;\n swiper.wrapperEl.style.scrollSnapType = 'none';\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n const dir = targetPosition > startPosition ? 'next' : 'prev';\n const isOutOfBound = (current, target) => {\n return dir === 'next' && current >= target || dir === 'prev' && current <= target;\n };\n const animate = () => {\n time = new Date().getTime();\n if (startTime === null) {\n startTime = time;\n }\n const progress = Math.max(Math.min((time - startTime) / duration, 1), 0);\n const easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;\n let currentPosition = startPosition + easeProgress * (targetPosition - startPosition);\n if (isOutOfBound(currentPosition, targetPosition)) {\n currentPosition = targetPosition;\n }\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n if (isOutOfBound(currentPosition, targetPosition)) {\n swiper.wrapperEl.style.overflow = 'hidden';\n swiper.wrapperEl.style.scrollSnapType = '';\n setTimeout(() => {\n swiper.wrapperEl.style.overflow = '';\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n });\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n return;\n }\n swiper.cssModeFrameID = window.requestAnimationFrame(animate);\n };\n animate();\n}\nfunction getSlideTransformEl(slideEl) {\n return slideEl.querySelector('.swiper-slide-transform') || slideEl.shadowRoot && slideEl.shadowRoot.querySelector('.swiper-slide-transform') || slideEl;\n}\nfunction elementChildren(element, selector = '') {\n const window = getWindow();\n const children = [...element.children];\n if (window.HTMLSlotElement && element instanceof HTMLSlotElement) {\n children.push(...element.assignedElements());\n }\n if (!selector) {\n return children;\n }\n return children.filter(el => el.matches(selector));\n}\nfunction elementIsChildOfSlot(el, slot) {\n // Breadth-first search through all parent's children and assigned elements\n const elementsQueue = [slot];\n while (elementsQueue.length > 0) {\n const elementToCheck = elementsQueue.shift();\n if (el === elementToCheck) {\n return true;\n }\n elementsQueue.push(...elementToCheck.children, ...(elementToCheck.shadowRoot ? elementToCheck.shadowRoot.children : []), ...(elementToCheck.assignedElements ? elementToCheck.assignedElements() : []));\n }\n}\nfunction elementIsChildOf(el, parent) {\n const window = getWindow();\n let isChild = parent.contains(el);\n if (!isChild && window.HTMLSlotElement && parent instanceof HTMLSlotElement) {\n const children = [...parent.assignedElements()];\n isChild = children.includes(el);\n if (!isChild) {\n isChild = elementIsChildOfSlot(el, parent);\n }\n }\n return isChild;\n}\nfunction showWarning(text) {\n try {\n console.warn(text);\n return;\n } catch (err) {\n // err\n }\n}\nfunction createElement(tag, classes = []) {\n const el = document.createElement(tag);\n el.classList.add(...(Array.isArray(classes) ? classes : classesToTokens(classes)));\n return el;\n}\nfunction elementOffset(el) {\n const window = getWindow();\n const document = getDocument();\n const box = el.getBoundingClientRect();\n const body = document.body;\n const clientTop = el.clientTop || body.clientTop || 0;\n const clientLeft = el.clientLeft || body.clientLeft || 0;\n const scrollTop = el === window ? window.scrollY : el.scrollTop;\n const scrollLeft = el === window ? window.scrollX : el.scrollLeft;\n return {\n top: box.top + scrollTop - clientTop,\n left: box.left + scrollLeft - clientLeft\n };\n}\nfunction elementPrevAll(el, selector) {\n const prevEls = [];\n while (el.previousElementSibling) {\n const prev = el.previousElementSibling; // eslint-disable-line\n if (selector) {\n if (prev.matches(selector)) prevEls.push(prev);\n } else prevEls.push(prev);\n el = prev;\n }\n return prevEls;\n}\nfunction elementNextAll(el, selector) {\n const nextEls = [];\n while (el.nextElementSibling) {\n const next = el.nextElementSibling; // eslint-disable-line\n if (selector) {\n if (next.matches(selector)) nextEls.push(next);\n } else nextEls.push(next);\n el = next;\n }\n return nextEls;\n}\nfunction elementStyle(el, prop) {\n const window = getWindow();\n return window.getComputedStyle(el, null).getPropertyValue(prop);\n}\nfunction elementIndex(el) {\n let child = el;\n let i;\n if (child) {\n i = 0;\n // eslint-disable-next-line\n while ((child = child.previousSibling) !== null) {\n if (child.nodeType === 1) i += 1;\n }\n return i;\n }\n return undefined;\n}\nfunction elementParents(el, selector) {\n const parents = []; // eslint-disable-line\n let parent = el.parentElement; // eslint-disable-line\n while (parent) {\n if (selector) {\n if (parent.matches(selector)) parents.push(parent);\n } else {\n parents.push(parent);\n }\n parent = parent.parentElement;\n }\n return parents;\n}\nfunction elementTransitionEnd(el, callback) {\n function fireCallBack(e) {\n if (e.target !== el) return;\n callback.call(el, e);\n el.removeEventListener('transitionend', fireCallBack);\n }\n if (callback) {\n el.addEventListener('transitionend', fireCallBack);\n }\n}\nfunction elementOuterSize(el, size, includeMargins) {\n const window = getWindow();\n if (includeMargins) {\n return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));\n }\n return el.offsetWidth;\n}\nfunction makeElementsArray(el) {\n return (Array.isArray(el) ? el : [el]).filter(e => !!e);\n}\nfunction getRotateFix(swiper) {\n return v => {\n if (Math.abs(v) > 0 && swiper.browser && swiper.browser.need3dFix && Math.abs(v) % 90 === 0) {\n return v + 0.001;\n }\n return v;\n };\n}\nfunction setInnerHTML(el, html = '') {\n if (typeof trustedTypes !== 'undefined') {\n el.innerHTML = trustedTypes.createPolicy('html', {\n createHTML: s => s\n }).createHTML(html);\n } else {\n el.innerHTML = html;\n }\n}\n\nexport { getRotateFix as a, setCSSProperty as b, createElement as c, elementParents as d, elementChildren as e, elementOffset as f, getSlideTransformEl as g, now as h, elementOuterSize as i, elementIndex as j, classesToTokens as k, getTranslate as l, makeElementsArray as m, nextTick as n, elementTransitionEnd as o, isObject as p, elementStyle as q, elementNextAll as r, setInnerHTML as s, elementPrevAll as t, animateCSSModeScroll as u, showWarning as v, elementIsChildOf as w, extend as x, deleteProps as y };\n"],"names":["getWindow"],"mappings":";;;;AAEA,SAAS,eAAe,CAAC,OAAO,GAAG,EAAE,EAAE;AACvC,EAAE,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAC1D;;AAEA,SAAS,WAAW,CAAC,GAAG,EAAE;AAC1B,EAAE,MAAM,MAAM,GAAG,GAAG;AACpB,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI;AACrC,IAAI,IAAI;AACR,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI;AACxB,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE;AAChB;AAC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AE,IAAI,EAAE,cAAc,EAAE;AACpD,EAAE,MAAM,MAAM,GAAGA,eAAS,EAAE;AAC5B,EAAsB;AACtB,IAAI,OAAO,EAAE,CAAC,IAAI,KAAK,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,gBAAgB,CAAC,IAAI,KAAK,OAAO,GAAG,cAAc,GAAG,YAAY,CAAC,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,gBAAgB,CAAC,IAAI,KAAK,OAAO,GAAG,aAAa,GAAG,eAAe,CAAC,CAAC;AACxS,EAAE;AAEF;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
interface AnimeAttributes {
|
|
2
|
-
pattern?: string;
|
|
3
|
-
delay?: number | string;
|
|
4
|
-
duration?: number | string;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
export declare const anime_comp: (attributes: AnimeAttributes) => import("styled-components").RuleSet<object>;
|
|
8
|
-
interface AnimePrm {
|
|
9
|
-
pattern: string;
|
|
10
|
-
duration: number;
|
|
11
|
-
delay: number;
|
|
12
|
-
trigger: string;
|
|
13
|
-
}
|
|
14
|
-
interface AnimationBlockProps {
|
|
15
|
-
attributes: {
|
|
16
|
-
is_anime: boolean;
|
|
17
|
-
anime_prm: AnimePrm;
|
|
18
|
-
};
|
|
19
|
-
onChange: (newAttributes: Partial<AnimationBlockProps["attributes"]>) => void;
|
|
20
|
-
}
|
|
21
|
-
export default function AnimationBlock(props: AnimationBlockProps): JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ElementType } from "react";
|
|
2
|
-
interface BlockEditWrapperProps {
|
|
3
|
-
lazyComponent: ElementType;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}
|
|
6
|
-
declare function BlockEditWrapper({ lazyComponent: LazyComponent, ...props }: BlockEditWrapperProps): JSX.Element;
|
|
7
|
-
export default BlockEditWrapper;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "@wordpress/element";
|
|
2
|
-
import { GridAttributes } from "./GridControls";
|
|
3
|
-
interface BlockPlaceAttributes {
|
|
4
|
-
positionType: string;
|
|
5
|
-
isPosCenter: boolean;
|
|
6
|
-
default_val: any;
|
|
7
|
-
mobile_val: any;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
interface BlockPlaceProps {
|
|
11
|
-
attributes: BlockPlaceAttributes;
|
|
12
|
-
clientId: string;
|
|
13
|
-
blockRef: RefObject<HTMLElement>;
|
|
14
|
-
isMobile: boolean;
|
|
15
|
-
isSubmenu: boolean;
|
|
16
|
-
isParallax: boolean;
|
|
17
|
-
onDirectionChange: (dir: string) => void;
|
|
18
|
-
onReverseChange: (checked: boolean) => void;
|
|
19
|
-
onWrapChange: (checked: boolean) => void;
|
|
20
|
-
onFlexChange: (strech: string, pos: string) => void;
|
|
21
|
-
onVerticalChange: (pos: string) => void;
|
|
22
|
-
onAlignChange: (pos: string) => void;
|
|
23
|
-
onWidthChange: (key: string, widthVal: number | string) => void;
|
|
24
|
-
onFreeWidthChange: (key: string, freeVal: number | string) => void;
|
|
25
|
-
onFlexItemChange: (obj: object) => void;
|
|
26
|
-
onPosValueChange: (obj: object) => void;
|
|
27
|
-
onFreeHeightChange: (val: number | string) => void;
|
|
28
|
-
onHeightChange: (val: string) => void;
|
|
29
|
-
onIsPosCenterChange: (checked: boolean) => void;
|
|
30
|
-
onPositionChange: (val: string) => void;
|
|
31
|
-
onGridChange: (attr: Partial<GridAttributes>) => void;
|
|
32
|
-
}
|
|
33
|
-
export default function BlockPlace(props: BlockPlaceProps): JSX.Element;
|
|
34
|
-
interface BlockWidthProps {
|
|
35
|
-
attributes: any;
|
|
36
|
-
isMobile: boolean;
|
|
37
|
-
isSubmenu: boolean;
|
|
38
|
-
onWidthChange: (key: string, widthVal: string | number) => void;
|
|
39
|
-
onFreeWidthChange: (key: string, freeVal: string | number) => void;
|
|
40
|
-
}
|
|
41
|
-
export declare function BlockWidth(props: BlockWidthProps): JSX.Element;
|
|
42
|
-
interface BlockHeightProps {
|
|
43
|
-
attributes: any;
|
|
44
|
-
isMobile: boolean;
|
|
45
|
-
onHeightChange: (val: string) => void;
|
|
46
|
-
onFreeHeightChange: (freeVal: string | number) => void;
|
|
47
|
-
}
|
|
48
|
-
export declare function BlockHeight(props: BlockHeightProps): JSX.Element;
|
|
49
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const useRebuildChangeField: (dispAttributeArray: any[], // 外部から渡される配列
|
|
2
|
-
selectedFields: {
|
|
3
|
-
key: string;
|
|
4
|
-
label: string;
|
|
5
|
-
block: string;
|
|
6
|
-
}[], pickupType: string, dispTaxonomies: string[], sectionCount: number, domType: string, clientId: string, insertId: string, pluginOption: string) => void;
|
package/build/esm/DateElm.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
interface DateRange {
|
|
2
|
-
startYear: number;
|
|
3
|
-
startMonth: number;
|
|
4
|
-
endYear: number;
|
|
5
|
-
endMonth: number;
|
|
6
|
-
}
|
|
7
|
-
interface DateUnit {
|
|
8
|
-
id: string;
|
|
9
|
-
value: string;
|
|
10
|
-
label: string;
|
|
11
|
-
classname: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const generateDateArray: (dateObj: DateRange, isMonth: boolean) => DateUnit[];
|
|
14
|
-
export interface Holiday {
|
|
15
|
-
date: string | number;
|
|
16
|
-
name: string;
|
|
17
|
-
}
|
|
18
|
-
interface CalendarDay {
|
|
19
|
-
date: number;
|
|
20
|
-
weekday: number;
|
|
21
|
-
holiday?: string;
|
|
22
|
-
}
|
|
23
|
-
export declare const generateMonthCalendar: (dateString: string, holidays?: Holiday[] | null) => CalendarDay[];
|
|
24
|
-
interface DateRange {
|
|
25
|
-
startYear: number;
|
|
26
|
-
startMonth: number;
|
|
27
|
-
endYear: number;
|
|
28
|
-
endMonth: number;
|
|
29
|
-
}
|
|
30
|
-
interface PeriodCtrlProps {
|
|
31
|
-
startYear: number;
|
|
32
|
-
endYear: number;
|
|
33
|
-
dateSpan: DateRange;
|
|
34
|
-
isMonth: boolean;
|
|
35
|
-
onChange: (newSpanObj: {
|
|
36
|
-
dateSpan: DateRange;
|
|
37
|
-
}) => void;
|
|
38
|
-
}
|
|
39
|
-
export declare const PeriodCtrl: ({ startYear, endYear, dateSpan, isMonth, onChange, }: PeriodCtrlProps) => JSX.Element;
|
|
40
|
-
interface PeriodQuery {
|
|
41
|
-
after: string;
|
|
42
|
-
before: string;
|
|
43
|
-
}
|
|
44
|
-
export declare const getPeriodQuery: (dateString: string | undefined | null) => PeriodQuery | null;
|
|
45
|
-
export declare const getTodayYearMonth: () => string;
|
|
46
|
-
export declare const getTodayYear: () => number;
|
|
47
|
-
export declare const getTodayMonth: () => number;
|
|
48
|
-
interface MonthRange {
|
|
49
|
-
ym: string;
|
|
50
|
-
from: string;
|
|
51
|
-
to: string;
|
|
52
|
-
year: number;
|
|
53
|
-
month: number;
|
|
54
|
-
lastDay: number;
|
|
55
|
-
}
|
|
56
|
-
export declare const getMonthRangeYmd: (selectedMonth: string | undefined | null) => MonthRange;
|
|
57
|
-
export declare const normalizeDateYYYYMMDD: (value: string) => string;
|
|
58
|
-
/**
|
|
59
|
-
* 様々な形式の「日」の入力と「選択された月」を組み合わせて YYYY-MM-DD 形式を返す
|
|
60
|
-
*/
|
|
61
|
-
export declare const toYmdFromMonthAndDay: (selectedMonth: string | undefined | null, dayValue: string | number | undefined | null) => string;
|
|
62
|
-
/**
|
|
63
|
-
* カレンダーの grid-template-areas 用の文字列を生成する
|
|
64
|
-
* @param firstDayOfMonth 月の最初の日の曜日番号 (0:日, 1:月...)
|
|
65
|
-
* @param totalDays 月の総日数 (28-31)
|
|
66
|
-
* @param isMonday 月曜始まりにするかどうか
|
|
67
|
-
*/
|
|
68
|
-
export declare const generateGridAreas: (firstDayOfMonth: number, totalDays: number, isMonday: boolean) => string;
|
|
69
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "@wordpress/element";
|
|
2
|
-
interface PositionString {
|
|
3
|
-
x: string;
|
|
4
|
-
y: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const useDraggingMove: (isMovable: boolean, blockRef: RefObject<HTMLElement>, // ReactのRef型を指定
|
|
7
|
-
position: PositionString, onPositionChange: (pos: PositionString) => void) => void;
|
|
8
|
-
interface DraggableBoxProps {
|
|
9
|
-
attributes: {
|
|
10
|
-
x: string;
|
|
11
|
-
y: string;
|
|
12
|
-
};
|
|
13
|
-
onPositionChange: (newPos: {
|
|
14
|
-
x: string;
|
|
15
|
-
y: string;
|
|
16
|
-
}) => void;
|
|
17
|
-
}
|
|
18
|
-
export default function DraggableBox({ attributes, onPositionChange, }: DraggableBoxProps): JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
interface GridCell {
|
|
2
|
-
rowInx: number;
|
|
3
|
-
colInx: number;
|
|
4
|
-
}
|
|
5
|
-
interface GridElement {
|
|
6
|
-
startCell: GridCell;
|
|
7
|
-
endCell: GridCell;
|
|
8
|
-
value?: string;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
export interface GridAttributes {
|
|
12
|
-
gridElms: GridElement[];
|
|
13
|
-
rowNum: number;
|
|
14
|
-
colNum: number;
|
|
15
|
-
rowGap: string | number;
|
|
16
|
-
colGap: string | number;
|
|
17
|
-
rowUnit: string[];
|
|
18
|
-
colUnit: string[];
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
}
|
|
21
|
-
interface GridControlsProps {
|
|
22
|
-
attributes: GridAttributes;
|
|
23
|
-
clientId: string;
|
|
24
|
-
onChange: (newAttrs: Partial<GridAttributes>) => void;
|
|
25
|
-
}
|
|
26
|
-
declare const GridControls: ({ attributes, clientId, onChange, }: GridControlsProps) => JSX.Element;
|
|
27
|
-
export default GridControls;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
interface IconStyle {
|
|
2
|
-
icon_type: "awesome" | "image" | "avatar" | string;
|
|
3
|
-
icon_url?: string;
|
|
4
|
-
icon_name?: string;
|
|
5
|
-
icon_pos?: "left" | "right" | string;
|
|
6
|
-
icon_size?: string;
|
|
7
|
-
icon_color?: string;
|
|
8
|
-
icon_space?: string;
|
|
9
|
-
icon_family?: string;
|
|
10
|
-
}
|
|
11
|
-
interface IconControlProps {
|
|
12
|
-
iconStyle: IconStyle;
|
|
13
|
-
setPosition?: boolean;
|
|
14
|
-
onChange: (newStyle: IconStyle) => void;
|
|
15
|
-
}
|
|
16
|
-
declare const _default: ({ iconStyle, setPosition, onChange }: IconControlProps) => JSX.Element;
|
|
17
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Masonry グリッドを初期化する共通関数
|
|
3
|
-
*
|
|
4
|
-
* @param {HTMLElement} gridEl - `.itmar-masonry-grid` のコンテナ要素
|
|
5
|
-
* @param {Array<{ url: string, alt?: string }>} images - 描画する画像リスト
|
|
6
|
-
* @param {Object} options
|
|
7
|
-
* @param {number} options.columns - カラム数
|
|
8
|
-
* @param {boolean} [options.renderItems=true]
|
|
9
|
-
* true: この関数内で gridEl をクリアして <figure><img> を追加する
|
|
10
|
-
* false: 既にある .itmar-masonry-item をそのまま使い、幅だけ更新する
|
|
11
|
-
*
|
|
12
|
-
* @returns {any|null} Masonry インスタンス(なければ null)
|
|
13
|
-
*/
|
|
14
|
-
declare global {
|
|
15
|
-
interface Window {
|
|
16
|
-
Masonry: any;
|
|
17
|
-
imagesLoaded: any;
|
|
18
|
-
}
|
|
19
|
-
interface HTMLElement {
|
|
20
|
-
__masonryInstance?: any;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
interface MasonryImage {
|
|
24
|
-
url: string;
|
|
25
|
-
alt?: string;
|
|
26
|
-
}
|
|
27
|
-
interface MasonryOptions {
|
|
28
|
-
columns?: number;
|
|
29
|
-
renderItems?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Masonry レイアウトを初期化・更新する
|
|
33
|
-
*/
|
|
34
|
-
export default function MasonryControl(gridEl: HTMLElement | null, images?: MasonryImage[], { columns, renderItems }?: MasonryOptions): any;
|
|
35
|
-
export {};
|
package/build/esm/PseudoElm.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type ArrowDirection = "upper" | "left" | "right" | "under" | "down";
|
|
2
|
-
interface PseudoElmProps {
|
|
3
|
-
direction: ArrowDirection;
|
|
4
|
-
onChange: (value: ArrowDirection) => void;
|
|
5
|
-
}
|
|
6
|
-
interface ArrowProps {
|
|
7
|
-
direction?: ArrowDirection;
|
|
8
|
-
}
|
|
9
|
-
export declare const Arrow: ({ direction }: ArrowProps) => import("styled-components").RuleSet<object>;
|
|
10
|
-
declare const PseudoElm: ({ direction, onChange }: PseudoElmProps) => JSX.Element;
|
|
11
|
-
export default PseudoElm;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
type CornerDirection = "top_left" | "top_right" | "bottom_left" | "bottom_right" | "right_bottom" | "top";
|
|
2
|
-
interface ShadowState {
|
|
3
|
-
shadowType: "nomal" | "newmor" | "claymor" | "glassmor";
|
|
4
|
-
spread: number;
|
|
5
|
-
lateral: number;
|
|
6
|
-
longitude: number;
|
|
7
|
-
nomalBlur: number;
|
|
8
|
-
shadowColor: string;
|
|
9
|
-
blur: number;
|
|
10
|
-
intensity: number;
|
|
11
|
-
distance: number;
|
|
12
|
-
newDirection: CornerDirection;
|
|
13
|
-
clayDirection: CornerDirection;
|
|
14
|
-
embos: "swell" | "dent";
|
|
15
|
-
opacity: number;
|
|
16
|
-
depth: number;
|
|
17
|
-
bdBlur: number;
|
|
18
|
-
expand: number;
|
|
19
|
-
glassblur: number;
|
|
20
|
-
glassopa: number;
|
|
21
|
-
hasOutline: boolean;
|
|
22
|
-
baseColor: string;
|
|
23
|
-
}
|
|
24
|
-
interface ShadowResult {
|
|
25
|
-
style: React.CSSProperties;
|
|
26
|
-
}
|
|
27
|
-
export declare const ShadowElm: (shadowState: ShadowState) => ShadowResult | null;
|
|
28
|
-
interface ShadowStyleProps {
|
|
29
|
-
shadowStyle: ShadowState;
|
|
30
|
-
onChange: (elm: ShadowResult, state: ShadowState) => void;
|
|
31
|
-
}
|
|
32
|
-
declare const ShadowStyle: ({ shadowStyle, onChange }: ShadowStyleProps) => JSX.Element;
|
|
33
|
-
export default ShadowStyle;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Swiper from "swiper";
|
|
2
|
-
interface SwiperObject {
|
|
3
|
-
swiper_id: string;
|
|
4
|
-
relate_id: string | null;
|
|
5
|
-
is_thumbnail: boolean;
|
|
6
|
-
instance: Swiper;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* スライダーブロックの初期化メイン関数
|
|
10
|
-
*/
|
|
11
|
-
export declare function slideBlockSwiperInit(swiperElement: HTMLElement | string): SwiperObject | null;
|
|
12
|
-
export {};
|