@egjs/flicking 4.14.1-beta.0 → 4.14.1-beta.3
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/flicking.cjs.js +15 -13
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +15 -13
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +15 -13
- package/dist/flicking.js.map +1 -1
- package/dist/flicking.min.js +2 -2
- package/dist/flicking.min.js.map +1 -1
- package/dist/flicking.pkgd.js +48 -61
- package/dist/flicking.pkgd.js.map +1 -1
- package/dist/flicking.pkgd.min.js +2 -2
- package/dist/flicking.pkgd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/cfc/sync.ts +10 -0
package/dist/flicking.pkgd.js
CHANGED
|
@@ -4,7 +4,7 @@ name: @egjs/flicking
|
|
|
4
4
|
license: MIT
|
|
5
5
|
author: NAVER Corp.
|
|
6
6
|
repository: https://github.com/naver/egjs-flicking
|
|
7
|
-
version: 4.14.1-beta.
|
|
7
|
+
version: 4.14.1-beta.3
|
|
8
8
|
*/
|
|
9
9
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -26,7 +26,7 @@ version: 4.14.1-beta.0
|
|
|
26
26
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27
27
|
PERFORMANCE OF THIS SOFTWARE.
|
|
28
28
|
***************************************************************************** */
|
|
29
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
29
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
30
30
|
|
|
31
31
|
var extendStatics$3 = function (d, b) {
|
|
32
32
|
extendStatics$3 = Object.setPrototypeOf || {
|
|
@@ -96,12 +96,8 @@ version: 4.14.1-beta.0
|
|
|
96
96
|
f,
|
|
97
97
|
y,
|
|
98
98
|
t,
|
|
99
|
-
g;
|
|
100
|
-
return g = {
|
|
101
|
-
next: verb(0),
|
|
102
|
-
"throw": verb(1),
|
|
103
|
-
"return": verb(2)
|
|
104
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
99
|
+
g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
100
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
105
101
|
return this;
|
|
106
102
|
}), g;
|
|
107
103
|
function verb(n) {
|
|
@@ -226,7 +222,7 @@ version: 4.14.1-beta.0
|
|
|
226
222
|
license: MIT
|
|
227
223
|
author: NAVER Corp.
|
|
228
224
|
repository: https://github.com/naver/egjs-component
|
|
229
|
-
version: 3.0.
|
|
225
|
+
version: 3.0.5
|
|
230
226
|
*/
|
|
231
227
|
/*! *****************************************************************************
|
|
232
228
|
Copyright (c) Microsoft Corporation.
|
|
@@ -558,7 +554,6 @@ version: 4.14.1-beta.0
|
|
|
558
554
|
* ```
|
|
559
555
|
*/
|
|
560
556
|
__proto.off = function (eventName, handlerToDetach) {
|
|
561
|
-
var e_1, _a;
|
|
562
557
|
// Detach all event handlers.
|
|
563
558
|
if (isUndefined(eventName)) {
|
|
564
559
|
this._eventHandler = {};
|
|
@@ -580,28 +575,14 @@ version: 4.14.1-beta.0
|
|
|
580
575
|
// Detach single event handler
|
|
581
576
|
var handlerList = this._eventHandler[eventName];
|
|
582
577
|
if (handlerList) {
|
|
583
|
-
var
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
if (
|
|
588
|
-
|
|
589
|
-
if (handlerList.length <= 0) {
|
|
590
|
-
delete this._eventHandler[eventName];
|
|
591
|
-
}
|
|
592
|
-
break;
|
|
578
|
+
var length = handlerList.length;
|
|
579
|
+
for (var i = 0; i < length; ++i) {
|
|
580
|
+
if (handlerList[i] === handlerToDetach) {
|
|
581
|
+
handlerList.splice(i, 1);
|
|
582
|
+
if (length <= 1) {
|
|
583
|
+
delete this._eventHandler[eventName];
|
|
593
584
|
}
|
|
594
|
-
|
|
595
|
-
}
|
|
596
|
-
} catch (e_1_1) {
|
|
597
|
-
e_1 = {
|
|
598
|
-
error: e_1_1
|
|
599
|
-
};
|
|
600
|
-
} finally {
|
|
601
|
-
try {
|
|
602
|
-
if (handlerList_1_1 && !handlerList_1_1.done && (_a = handlerList_1.return)) _a.call(handlerList_1);
|
|
603
|
-
} finally {
|
|
604
|
-
if (e_1) throw e_1.error;
|
|
585
|
+
break;
|
|
605
586
|
}
|
|
606
587
|
}
|
|
607
588
|
}
|
|
@@ -616,7 +597,7 @@ version: 4.14.1-beta.0
|
|
|
616
597
|
* Component.VERSION; // ex) 3.0.0
|
|
617
598
|
* @memberof Component
|
|
618
599
|
*/
|
|
619
|
-
Component.VERSION = "3.0.
|
|
600
|
+
Component.VERSION = "3.0.5";
|
|
620
601
|
return Component;
|
|
621
602
|
}();
|
|
622
603
|
|
|
@@ -1862,8 +1843,8 @@ version: 4.14.1-beta.0
|
|
|
1862
1843
|
name: @egjs/agent
|
|
1863
1844
|
license: MIT
|
|
1864
1845
|
author: NAVER Corp.
|
|
1865
|
-
repository: git+https://github.com/naver/agent.git
|
|
1866
|
-
version: 2.4.
|
|
1846
|
+
repository: git+https://github.com/naver/egjs-agent.git
|
|
1847
|
+
version: 2.4.4
|
|
1867
1848
|
*/
|
|
1868
1849
|
function some(arr, callback) {
|
|
1869
1850
|
var length = arr.length;
|
|
@@ -2165,12 +2146,12 @@ version: 4.14.1-beta.0
|
|
|
2165
2146
|
});
|
|
2166
2147
|
var chromiumBrand = findPresetBrand(CHROMIUM_PRESETS, brands);
|
|
2167
2148
|
browser.chromium = !!chromiumBrand.brand;
|
|
2168
|
-
browser.chromiumVersion = chromiumBrand.version;
|
|
2149
|
+
browser.chromiumVersion = chromiumBrand.version || "-1";
|
|
2169
2150
|
|
|
2170
2151
|
if (!browser.chromium) {
|
|
2171
2152
|
var webkitBrand = findPresetBrand(WEBKIT_PRESETS, brands);
|
|
2172
2153
|
browser.webkit = !!webkitBrand.brand;
|
|
2173
|
-
browser.webkitVersion = webkitBrand.version;
|
|
2154
|
+
browser.webkitVersion = webkitBrand.version || "-1";
|
|
2174
2155
|
}
|
|
2175
2156
|
|
|
2176
2157
|
var platfomResult = find(OS_PRESETS, function (preset) {
|
|
@@ -2179,7 +2160,7 @@ version: 4.14.1-beta.0
|
|
|
2179
2160
|
os.name = platfomResult ? platfomResult.id : "";
|
|
2180
2161
|
|
|
2181
2162
|
if (osData) {
|
|
2182
|
-
os.version = osData.platformVersion;
|
|
2163
|
+
os.version = osData.platformVersion || "-1";
|
|
2183
2164
|
}
|
|
2184
2165
|
|
|
2185
2166
|
if (fullVersionList && fullVersionList.length) {
|
|
@@ -5744,7 +5725,10 @@ version: 4.14.1-beta.0
|
|
|
5744
5725
|
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5745
5726
|
*/
|
|
5746
5727
|
__proto.enable = function () {
|
|
5747
|
-
|
|
5728
|
+
var activeEvent = convertInputType(this.options.inputType);
|
|
5729
|
+
if (!activeEvent) {
|
|
5730
|
+
throw new Error("PanInput cannot be enabled if there is no available input event.");
|
|
5731
|
+
} else if (!this._enabled) {
|
|
5748
5732
|
this._enabled = true;
|
|
5749
5733
|
this._originalCssProps = setCssProps(this.element, this.options, this._direction);
|
|
5750
5734
|
}
|
|
@@ -7369,7 +7353,6 @@ version: 4.14.1-beta.0
|
|
|
7369
7353
|
});
|
|
7370
7354
|
});
|
|
7371
7355
|
};
|
|
7372
|
-
|
|
7373
7356
|
__proto._getPosition = function (panel, direction) {
|
|
7374
7357
|
if (direction === void 0) {
|
|
7375
7358
|
direction = DIRECTION.NONE;
|
|
@@ -9203,7 +9186,7 @@ version: 4.14.1-beta.0
|
|
|
9203
9186
|
license: MIT
|
|
9204
9187
|
author: NAVER Corp.
|
|
9205
9188
|
repository: https://github.com/naver/egjs-imready
|
|
9206
|
-
version: 1.4.
|
|
9189
|
+
version: 1.4.2
|
|
9207
9190
|
*/
|
|
9208
9191
|
|
|
9209
9192
|
/******************************************************************************
|
|
@@ -9401,9 +9384,7 @@ version: 4.14.1-beta.0
|
|
|
9401
9384
|
// I'm not ready
|
|
9402
9385
|
return;
|
|
9403
9386
|
}
|
|
9404
|
-
|
|
9405
|
-
var withPreReady = !_this.hasDataSize && !_this.hasLoading;
|
|
9406
|
-
_this.onReady(withPreReady);
|
|
9387
|
+
_this.onReady();
|
|
9407
9388
|
};
|
|
9408
9389
|
_this.options = __assign({
|
|
9409
9390
|
prefix: "data-"
|
|
@@ -9419,7 +9400,7 @@ version: 4.14.1-beta.0
|
|
|
9419
9400
|
__proto.check = function () {
|
|
9420
9401
|
if (this.isSkip || !this.checkElement()) {
|
|
9421
9402
|
// I'm Ready
|
|
9422
|
-
this.onAlreadyReady(
|
|
9403
|
+
this.onAlreadyReady();
|
|
9423
9404
|
return false;
|
|
9424
9405
|
}
|
|
9425
9406
|
if (this.hasDataSize) {
|
|
@@ -9465,6 +9446,7 @@ version: 4.14.1-beta.0
|
|
|
9465
9446
|
});
|
|
9466
9447
|
};
|
|
9467
9448
|
__proto.onPreReady = function () {
|
|
9449
|
+
// 이전에 호출되었거나 ready가 발생했다면 preReady를 발생하지 않는다.
|
|
9468
9450
|
if (this.isPreReady) {
|
|
9469
9451
|
return;
|
|
9470
9452
|
}
|
|
@@ -9475,19 +9457,18 @@ version: 4.14.1-beta.0
|
|
|
9475
9457
|
isSkip: this.isSkip
|
|
9476
9458
|
});
|
|
9477
9459
|
};
|
|
9478
|
-
__proto.onReady = function (
|
|
9460
|
+
__proto.onReady = function () {
|
|
9461
|
+
var isPreReady = this.isPreReady;
|
|
9462
|
+
this.isPreReady = true;
|
|
9479
9463
|
if (this.isReady) {
|
|
9480
9464
|
return;
|
|
9481
9465
|
}
|
|
9482
|
-
withPreReady = !this.isPreReady && withPreReady;
|
|
9483
|
-
if (withPreReady) {
|
|
9484
|
-
this.isPreReady = true;
|
|
9485
|
-
}
|
|
9486
9466
|
this.removeAutoSizer();
|
|
9487
9467
|
this.isReady = true;
|
|
9468
|
+
// preReady가 호출이 되지 않았으면 ready 이벤트만 발생하고 대신 withPreReady가 활성화
|
|
9488
9469
|
this.trigger("ready", {
|
|
9489
9470
|
element: this.element,
|
|
9490
|
-
withPreReady:
|
|
9471
|
+
withPreReady: !isPreReady,
|
|
9491
9472
|
hasLoading: this.hasLoading,
|
|
9492
9473
|
isSkip: this.isSkip
|
|
9493
9474
|
});
|
|
@@ -9504,10 +9485,10 @@ version: 4.14.1-beta.0
|
|
|
9504
9485
|
_this.onPreReady();
|
|
9505
9486
|
});
|
|
9506
9487
|
};
|
|
9507
|
-
__proto.onAlreadyReady = function (
|
|
9488
|
+
__proto.onAlreadyReady = function () {
|
|
9508
9489
|
var _this = this;
|
|
9509
9490
|
setTimeout(function () {
|
|
9510
|
-
_this.onReady(
|
|
9491
|
+
_this.onReady();
|
|
9511
9492
|
});
|
|
9512
9493
|
};
|
|
9513
9494
|
Loader.EVENTS = [];
|
|
@@ -9526,7 +9507,7 @@ version: 4.14.1-beta.0
|
|
|
9526
9507
|
__proto.check = function () {
|
|
9527
9508
|
if (this.isSkip) {
|
|
9528
9509
|
// I'm Ready
|
|
9529
|
-
this.onAlreadyReady(
|
|
9510
|
+
this.onAlreadyReady();
|
|
9530
9511
|
return false;
|
|
9531
9512
|
}
|
|
9532
9513
|
if (this.hasDataSize) {
|
|
@@ -9733,18 +9714,17 @@ version: 4.14.1-beta.0
|
|
|
9733
9714
|
loader.setHasLoading(children.some(function (el) {
|
|
9734
9715
|
return hasLoadingAttribute(el, prefix);
|
|
9735
9716
|
}));
|
|
9736
|
-
var withPreReady = false;
|
|
9737
9717
|
var childrenImReady = this.clone().on("error", function (e) {
|
|
9738
9718
|
loader.onError(e.target);
|
|
9739
9719
|
}).on("ready", function () {
|
|
9740
|
-
loader.onReady(
|
|
9720
|
+
loader.onReady();
|
|
9741
9721
|
});
|
|
9742
9722
|
loader.on("requestChildren", function () {
|
|
9743
9723
|
// has not data size
|
|
9744
9724
|
var contentElements = getContentElements(element, tags, _this.options.prefix);
|
|
9745
9725
|
childrenImReady.check(contentElements).on("preReady", function (e) {
|
|
9746
|
-
|
|
9747
|
-
|
|
9726
|
+
if (!e.isReady) {
|
|
9727
|
+
// isReady가 아닌 경우에만 발생 / ready에서 동시에 발생할 가능성 있음.
|
|
9748
9728
|
loader.onPreReady();
|
|
9749
9729
|
}
|
|
9750
9730
|
});
|
|
@@ -10586,7 +10566,6 @@ version: 4.14.1-beta.0
|
|
|
10586
10566
|
});
|
|
10587
10567
|
});
|
|
10588
10568
|
};
|
|
10589
|
-
|
|
10590
10569
|
__proto._collectPanels = function () {
|
|
10591
10570
|
var flicking = getFlickingAttached(this._flicking);
|
|
10592
10571
|
var camera = flicking.camera;
|
|
@@ -13322,7 +13301,6 @@ version: 4.14.1-beta.0
|
|
|
13322
13301
|
if (!this._initialized) {
|
|
13323
13302
|
return [2 /*return*/];
|
|
13324
13303
|
}
|
|
13325
|
-
|
|
13326
13304
|
renderer.updatePanelSize();
|
|
13327
13305
|
camera.updateAlignPos();
|
|
13328
13306
|
camera.updateRange();
|
|
@@ -13336,7 +13314,6 @@ version: 4.14.1-beta.0
|
|
|
13336
13314
|
if (!this._initialized) {
|
|
13337
13315
|
return [2 /*return*/];
|
|
13338
13316
|
}
|
|
13339
|
-
|
|
13340
13317
|
if (control.animating) ; else {
|
|
13341
13318
|
control.updatePosition(prevProgressInPanel);
|
|
13342
13319
|
control.updateInput();
|
|
@@ -13574,7 +13551,7 @@ version: 4.14.1-beta.0
|
|
|
13574
13551
|
* Flicking.VERSION; // ex) 4.0.0
|
|
13575
13552
|
* ```
|
|
13576
13553
|
*/
|
|
13577
|
-
Flicking.VERSION = "4.14.1-beta.
|
|
13554
|
+
Flicking.VERSION = "4.14.1-beta.3";
|
|
13578
13555
|
return Flicking;
|
|
13579
13556
|
}(Component);
|
|
13580
13557
|
|
|
@@ -14071,6 +14048,16 @@ version: 4.14.1-beta.0
|
|
|
14071
14048
|
}
|
|
14072
14049
|
if (diffResult.added.length > 0 || diffResult.removed.length > 0) {
|
|
14073
14050
|
renderer.updateAfterPanelChange(added, removed);
|
|
14051
|
+
} else if (diffResult.ordered.length > 0) {
|
|
14052
|
+
var camera = flicking.camera;
|
|
14053
|
+
// 순서 변경으로 인한 index 변경 및 range 값 변경
|
|
14054
|
+
camera.updateRange();
|
|
14055
|
+
// index 변경으로 인한 카메라 위치 즉시 변경
|
|
14056
|
+
camera.updateOffset();
|
|
14057
|
+
// 순서 변경으로 인한 anchors 전부 업데이트
|
|
14058
|
+
camera.updateAnchors();
|
|
14059
|
+
// need panel 여부 재확인 필요
|
|
14060
|
+
camera.resetNeedPanelHistory();
|
|
14074
14061
|
}
|
|
14075
14062
|
});
|
|
14076
14063
|
var batchInsert = function (renderer, diffResult, addedElements, startIdx, endIdx) {
|