@dialpad/dialtone-vue 2.25.1 → 2.26.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/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.common.js +263 -132
- package/dist/dialtone-vue.umd.js +263 -132
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/dist/emoji.common.js +6 -6
- package/dist/emoji.umd.js +6 -6
- package/dist/emoji.umd.min.js +1 -1
- package/package.json +25 -25
package/dist/emoji.common.js
CHANGED
|
@@ -850,8 +850,8 @@ const SKELETON_HEADING_HEIGHTS = {
|
|
|
850
850
|
|
|
851
851
|
const animationDelay = this.skeletonOffset * SKELETON_RIPPLE_DURATION / 1000;
|
|
852
852
|
const animationDuration = this.animationDuration === -1 ? 1000 : this.animationDuration;
|
|
853
|
-
style.animationDelay =
|
|
854
|
-
style.animationDuration =
|
|
853
|
+
style.animationDelay = `${animationDelay}ms`;
|
|
854
|
+
style.animationDuration = `${animationDuration}ms`;
|
|
855
855
|
return style;
|
|
856
856
|
}
|
|
857
857
|
|
|
@@ -1288,7 +1288,7 @@ const validator = number => number !== '' && !Number.isNaN(Number(number));
|
|
|
1288
1288
|
randomWidthPercentage() {
|
|
1289
1289
|
const min = Math.min(this.minWidth, this.maxWidth);
|
|
1290
1290
|
const max = Math.max(this.minWidth, this.maxWidth);
|
|
1291
|
-
return
|
|
1291
|
+
return `${Math.round(Math.random() * (max - min)) + min}%`;
|
|
1292
1292
|
},
|
|
1293
1293
|
|
|
1294
1294
|
getSizeParagraphRow(row) {
|
|
@@ -1547,10 +1547,10 @@ var skeleton_list_item_component = normalizeComponent(
|
|
|
1547
1547
|
});
|
|
1548
1548
|
|
|
1549
1549
|
if (filtered.length >= 2) {
|
|
1550
|
-
const errorMessage =
|
|
1550
|
+
const errorMessage = `Use only one of ${filtered.map(_ref2 => {
|
|
1551
1551
|
let [key] = _ref2;
|
|
1552
1552
|
return key;
|
|
1553
|
-
}).join(' | ')
|
|
1553
|
+
}).join(' | ')} options at the same time`;
|
|
1554
1554
|
console.error(errorMessage);
|
|
1555
1555
|
}
|
|
1556
1556
|
}
|
|
@@ -1813,7 +1813,7 @@ var emoji_component = normalizeComponent(
|
|
|
1813
1813
|
* @returns {Array<VNode|string>}
|
|
1814
1814
|
*/
|
|
1815
1815
|
replaceDtEmojis(replaceList, textContent) {
|
|
1816
|
-
const regexp = new RegExp(
|
|
1816
|
+
const regexp = new RegExp(`(${replaceList.join('|')})`, 'g');
|
|
1817
1817
|
const split = textContent.split(regexp);
|
|
1818
1818
|
return split.map(item => {
|
|
1819
1819
|
if (replaceList.includes(item)) {
|
package/dist/emoji.umd.js
CHANGED
|
@@ -860,8 +860,8 @@ const SKELETON_HEADING_HEIGHTS = {
|
|
|
860
860
|
|
|
861
861
|
const animationDelay = this.skeletonOffset * SKELETON_RIPPLE_DURATION / 1000;
|
|
862
862
|
const animationDuration = this.animationDuration === -1 ? 1000 : this.animationDuration;
|
|
863
|
-
style.animationDelay =
|
|
864
|
-
style.animationDuration =
|
|
863
|
+
style.animationDelay = `${animationDelay}ms`;
|
|
864
|
+
style.animationDuration = `${animationDuration}ms`;
|
|
865
865
|
return style;
|
|
866
866
|
}
|
|
867
867
|
|
|
@@ -1298,7 +1298,7 @@ const validator = number => number !== '' && !Number.isNaN(Number(number));
|
|
|
1298
1298
|
randomWidthPercentage() {
|
|
1299
1299
|
const min = Math.min(this.minWidth, this.maxWidth);
|
|
1300
1300
|
const max = Math.max(this.minWidth, this.maxWidth);
|
|
1301
|
-
return
|
|
1301
|
+
return `${Math.round(Math.random() * (max - min)) + min}%`;
|
|
1302
1302
|
},
|
|
1303
1303
|
|
|
1304
1304
|
getSizeParagraphRow(row) {
|
|
@@ -1557,10 +1557,10 @@ var skeleton_list_item_component = normalizeComponent(
|
|
|
1557
1557
|
});
|
|
1558
1558
|
|
|
1559
1559
|
if (filtered.length >= 2) {
|
|
1560
|
-
const errorMessage =
|
|
1560
|
+
const errorMessage = `Use only one of ${filtered.map(_ref2 => {
|
|
1561
1561
|
let [key] = _ref2;
|
|
1562
1562
|
return key;
|
|
1563
|
-
}).join(' | ')
|
|
1563
|
+
}).join(' | ')} options at the same time`;
|
|
1564
1564
|
console.error(errorMessage);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
@@ -1823,7 +1823,7 @@ var emoji_component = normalizeComponent(
|
|
|
1823
1823
|
* @returns {Array<VNode|string>}
|
|
1824
1824
|
*/
|
|
1825
1825
|
replaceDtEmojis(replaceList, textContent) {
|
|
1826
|
-
const regexp = new RegExp(
|
|
1826
|
+
const regexp = new RegExp(`(${replaceList.join('|')})`, 'g');
|
|
1827
1827
|
const split = textContent.split(regexp);
|
|
1828
1828
|
return split.map(item => {
|
|
1829
1829
|
if (replaceList.includes(item)) {
|