Skip to content

Commit 4b6a780

Browse files
committed
chore: update build files (cache issue)
1 parent 131550e commit 4b6a780

6 files changed

+51
-11
lines changed

dist/coreui-vue.common.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12989,15 +12989,25 @@ function CIconRawvue_type_script_lang_js_defineProperty(obj, key, value) { if (k
1298912989
}
1299012990
},
1299112991
customClasses: [String, Array, Object],
12992-
src: String
12992+
src: String,
12993+
title: String
1299312994
},
1299412995
computed: {
1299512996
iconName: function iconName() {
1299612997
var iconNameIsKebabCase = this.name && this.name.includes('-');
1299712998
return iconNameIsKebabCase ? this.toCamelCase(this.name) : this.name;
1299812999
},
13000+
titleString: function titleString() {
13001+
if (this.title) {
13002+
return this.title;
13003+
} else if (this.iconName) {
13004+
return this.generateTitle(this.iconName);
13005+
}
13006+
13007+
return 'icon';
13008+
},
1299913009
titleCode: function titleCode() {
13000-
return this.iconName ? "<title>".concat(this.iconName, "</title>") : '';
13010+
return "<title>".concat(this.titleString, "</title>");
1300113011
},
1300213012
code: function code() {
1300313013
if (this.content) {
@@ -13027,6 +13037,16 @@ function CIconRawvue_type_script_lang_js_defineProperty(obj, key, value) { if (k
1302713037
return str.replace(/([-_][a-z0-9])/ig, function ($1) {
1302813038
return $1.toUpperCase().replace('-', '');
1302913039
});
13040+
},
13041+
generateTitle: function generateTitle(title) {
13042+
return this.getValidTitle(title).replace(/([a-z0-9])([A-Z])/g, '$1 $2');
13043+
},
13044+
getValidTitle: function getValidTitle(title) {
13045+
if (['cil', 'cib', 'cif', 'cis'].includes(title.substring(0, 3))) {
13046+
return title.slice(3);
13047+
} else {
13048+
return title.charAt(0).toUpperCase() + title.slice(1);
13049+
}
1303013050
}
1303113051
}
1303213052
});

dist/coreui-vue.common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/coreui-vue.umd.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12998,15 +12998,25 @@ function CIconRawvue_type_script_lang_js_defineProperty(obj, key, value) { if (k
1299812998
}
1299912999
},
1300013000
customClasses: [String, Array, Object],
13001-
src: String
13001+
src: String,
13002+
title: String
1300213003
},
1300313004
computed: {
1300413005
iconName: function iconName() {
1300513006
var iconNameIsKebabCase = this.name && this.name.includes('-');
1300613007
return iconNameIsKebabCase ? this.toCamelCase(this.name) : this.name;
1300713008
},
13009+
titleString: function titleString() {
13010+
if (this.title) {
13011+
return this.title;
13012+
} else if (this.iconName) {
13013+
return this.generateTitle(this.iconName);
13014+
}
13015+
13016+
return 'icon';
13017+
},
1300813018
titleCode: function titleCode() {
13009-
return this.iconName ? "<title>".concat(this.iconName, "</title>") : '';
13019+
return "<title>".concat(this.titleString, "</title>");
1301013020
},
1301113021
code: function code() {
1301213022
if (this.content) {
@@ -13036,6 +13046,16 @@ function CIconRawvue_type_script_lang_js_defineProperty(obj, key, value) { if (k
1303613046
return str.replace(/([-_][a-z0-9])/ig, function ($1) {
1303713047
return $1.toUpperCase().replace('-', '');
1303813048
});
13049+
},
13050+
generateTitle: function generateTitle(title) {
13051+
return this.getValidTitle(title).replace(/([a-z0-9])([A-Z])/g, '$1 $2');
13052+
},
13053+
getValidTitle: function getValidTitle(title) {
13054+
if (['cil', 'cib', 'cif', 'cis'].includes(title.substring(0, 3))) {
13055+
return title.slice(3);
13056+
} else {
13057+
return title.charAt(0).toUpperCase() + title.slice(1);
13058+
}
1303913059
}
1304013060
}
1304113061
});

dist/coreui-vue.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)