@intellias/menu 2.5.24 → 2.5.26
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/js/main.js +1 -1
- package/package.json +1 -1
package/dist/js/main.js
CHANGED
|
@@ -983,7 +983,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
|
983
983
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
984
984
|
|
|
985
985
|
"use strict";
|
|
986
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/models/MenuLayouts */ \"./models/MenuLayouts.ts\");\n/* harmony import */ var _models_ThemeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/models/ThemeModel */ \"./models/ThemeModel.ts\");\n/* harmony import */ var _helpers_IntelliPersonHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/IntelliPersonHelper */ \"./helpers/IntelliPersonHelper.ts\");\n\n\n\n\nvar Size;\n(function (Size) {\n Size[\"sm\"] = \"sm\";\n Size[\"md\"] = \"md\";\n Size[\"lg\"] = \"lg\";\n Size[\"xl\"] = \"xl\";\n Size[\"full\"] = \"full\";\n})(Size || (Size = {}));\nconst OPTIONS = {\n size: Size.md,\n noBorder: false\n};\nconst EMPTY_MODEL = {\n avatar_url: '',\n first_name: '',\n last_name: '',\n thumbnail_url: ''\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n employee: {},\n options: {}\n },\n inject: ['storeAdapter', 'layout'],\n mounted() {\n this.cOptions = Object.assign(Object.assign({}, OPTIONS), this.options);\n this.pictureModel = this.toPictureModel();\n },\n watch: {\n employee: {\n deep: true,\n handler(newVal, oldVal) {\n if (newVal.avatar_url && newVal.avatar_url !== oldVal.avatar_url) {\n this.anonymous = false;\n }\n this.pictureModel = this.toPictureModel();\n }\n }\n },\n computed: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('User', ['getUser'])), { image() {\n return {\n src: this.imageUrl,\n error: `not-image`\n };\n },\n imageUrl() {\n return [Size.sm, Size.md].includes(this.cOptions.size) && this.pictureModel.thumbnail_url\n ? this.pictureModel.thumbnail_url\n : this.pictureModel.avatar_url;\n },\n imageAlt() {\n return `${this.pictureModel.first_name} ${this.pictureModel.last_name} avatar`;\n },\n employeeInitials() {\n return `${typeof this.pictureModel.first_name === 'string' ? this.pictureModel.first_name.substring(0, 1) : ''}${typeof this.pictureModel.last_name === 'string' ? this.pictureModel.last_name.substring(0, 1) : ''}`;\n },\n border() {\n return this.cOptions.noBorder ? 'no-border' : '';\n },\n isLiteDomain() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_1__[\"default\"].Lite;\n },\n darkTheme() {\n return !this.isLiteDomain && this.getUser.frontend_theme === _models_ThemeModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"].Dark;\n },\n isIntelliPerson() {\n var _a;\n return Object(_helpers_IntelliPersonHelper__WEBPACK_IMPORTED_MODULE_3__[\"isIntelliPerson\"])((_a = this.
|
|
986
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/models/MenuLayouts */ \"./models/MenuLayouts.ts\");\n/* harmony import */ var _models_ThemeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/models/ThemeModel */ \"./models/ThemeModel.ts\");\n/* harmony import */ var _helpers_IntelliPersonHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/IntelliPersonHelper */ \"./helpers/IntelliPersonHelper.ts\");\n\n\n\n\nvar Size;\n(function (Size) {\n Size[\"sm\"] = \"sm\";\n Size[\"md\"] = \"md\";\n Size[\"lg\"] = \"lg\";\n Size[\"xl\"] = \"xl\";\n Size[\"full\"] = \"full\";\n})(Size || (Size = {}));\nconst OPTIONS = {\n size: Size.md,\n noBorder: false\n};\nconst EMPTY_MODEL = {\n avatar_url: '',\n first_name: '',\n last_name: '',\n thumbnail_url: ''\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n employee: {},\n options: {}\n },\n inject: ['storeAdapter', 'layout'],\n mounted() {\n this.cOptions = Object.assign(Object.assign({}, OPTIONS), this.options);\n this.pictureModel = this.toPictureModel();\n },\n watch: {\n employee: {\n deep: true,\n handler(newVal, oldVal) {\n if (newVal.avatar_url && newVal.avatar_url !== oldVal.avatar_url) {\n this.anonymous = false;\n }\n this.pictureModel = this.toPictureModel();\n }\n }\n },\n computed: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('User', ['getUser'])), { image() {\n return {\n src: this.imageUrl,\n error: `not-image`\n };\n },\n imageUrl() {\n return [Size.sm, Size.md].includes(this.cOptions.size) && this.pictureModel.thumbnail_url\n ? this.pictureModel.thumbnail_url\n : this.pictureModel.avatar_url;\n },\n imageAlt() {\n return `${this.pictureModel.first_name} ${this.pictureModel.last_name} avatar`;\n },\n employeeInitials() {\n return `${typeof this.pictureModel.first_name === 'string' ? this.pictureModel.first_name.substring(0, 1) : ''}${typeof this.pictureModel.last_name === 'string' ? this.pictureModel.last_name.substring(0, 1) : ''}`;\n },\n border() {\n return this.cOptions.noBorder ? 'no-border' : '';\n },\n isLiteDomain() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_1__[\"default\"].Lite;\n },\n darkTheme() {\n return !this.isLiteDomain && this.getUser.frontend_theme === _models_ThemeModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"].Dark;\n },\n isIntelliPerson() {\n var _a;\n return Object(_helpers_IntelliPersonHelper__WEBPACK_IMPORTED_MODULE_3__[\"isIntelliPerson\"])((_a = this.employee) === null || _a === void 0 ? void 0 : _a.intelli_person_balance);\n },\n currentYear() {\n return Object(_helpers_IntelliPersonHelper__WEBPACK_IMPORTED_MODULE_3__[\"getCurrentCampaignYear\"])();\n },\n pictureTooltip() {\n const parts = [];\n if (this.isIntelliPerson && this.employee) {\n parts.push(Object(_helpers_IntelliPersonHelper__WEBPACK_IMPORTED_MODULE_3__[\"getFrameTooltip\"])(this.employee));\n }\n return parts.join('<br>'); // New line in tooltip\n } }),\n methods: {\n replaceByAnonymous() {\n this.anonymous = true;\n },\n toPictureModel() {\n if (this.employee === undefined) {\n return EMPTY_MODEL;\n }\n return Object.assign(Object.assign({}, EMPTY_MODEL), this.employee);\n }\n },\n data() {\n return {\n anonymous: false,\n cOptions: {},\n pictureModel: {}\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./components/user-picture/UserPicture.ts?");
|
|
987
987
|
|
|
988
988
|
/***/ }),
|
|
989
989
|
|