@awes-io/ui 2.56.1 → 2.56.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,39 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.56.4](https://github.com/awes-io/client/compare/@awes-io/ui@2.56.3...@awes-io/ui@2.56.4) (2022-07-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * added full logo into config ([b15b3a8](https://github.com/awes-io/client/commit/b15b3a8fd52e4f1ed401ea28bdfcd5e269ca3152))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.56.3](https://github.com/awes-io/client/compare/@awes-io/ui@2.56.2...@awes-io/ui@2.56.3) (2022-07-18)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * added full logo into config ([7f38422](https://github.com/awes-io/client/commit/7f384223484d5bc989278fa2311cd3eff2143523))
23
+
24
+
25
+
26
+
27
+
28
+ ## [2.56.2](https://github.com/awes-io/client/compare/@awes-io/ui@2.56.1...@awes-io/ui@2.56.2) (2022-07-18)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * added full logo into config ([74d1719](https://github.com/awes-io/client/commit/74d171941c0892f426a8ec35462f408c9fe1481c))
34
+
35
+
36
+
37
+
38
+
6
39
  ## [2.56.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.56.0...@awes-io/ui@2.56.1) (2022-07-18)
7
40
 
8
41
 
@@ -12,6 +12,14 @@ export default ({ store, app }) => {
12
12
  default: JSON.parse('<%= JSON.stringify(options.default.logo) %>'),
13
13
  dark: JSON.parse('<%= JSON.stringify(options.dark.logo) %>')
14
14
  })
15
+
16
+ // Set default logo
17
+ store.commit('awesIo/SET_FULL_LOGO', {
18
+ default: JSON.parse(
19
+ '<%= JSON.stringify(options.default.fullLogo) %>'
20
+ ),
21
+ dark: JSON.parse('<%= JSON.stringify(options.dark.fullLogo) %>')
22
+ })
15
23
  }
16
24
 
17
25
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.56.1",
3
+ "version": "2.56.4",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -122,5 +122,5 @@
122
122
  "vue-template-compiler": "^2.6.10",
123
123
  "webfonts-generator": "^0.4.0"
124
124
  },
125
- "gitHead": "7591daa8d5fd670323ea457b7f6e9a2ca6c2ceec"
125
+ "gitHead": "c7d677bbc549f644cc907eec78140c3d3d8a8fa7"
126
126
  }
package/store/awesIo.js CHANGED
@@ -26,6 +26,11 @@ export const state = () => ({
26
26
  dark: { src: '' }
27
27
  },
28
28
 
29
+ fullLogo: {
30
+ default: { src: '' },
31
+ dark: { src: '' }
32
+ },
33
+
29
34
  menus: {
30
35
  main: [],
31
36
  secondary: [],
@@ -99,6 +104,12 @@ export const getters = {
99
104
  return getters.isDarkTheme ? state.logo.dark : state.logo.default
100
105
  },
101
106
 
107
+ fullLogo(state, getters) {
108
+ return getters.isDarkTheme
109
+ ? state.fullLogo.dark
110
+ : state.fullLogo.default
111
+ },
112
+
102
113
  logoComponent(state, getters) {
103
114
  const logoComponent = pathOr(null, 'logo.component', state)
104
115
 
@@ -182,6 +193,29 @@ export const mutations = {
182
193
  }
183
194
  },
184
195
 
196
+ SET_FULL_LOGO(state, fullLogo) {
197
+ if (typeof fullLogo === 'string') {
198
+ state.fullLogo = mergeDeepRight(state.fullLogo, {
199
+ default: { src: fullLogo },
200
+ dark: { src: fullLogo }
201
+ })
202
+ } else if (typeof fullLogo === 'object' && fullLogo !== null) {
203
+ const _fullLogo = {}
204
+ _fullLogo.default = pathOr(
205
+ state.fullLogo.default,
206
+ 'default',
207
+ fullLogo
208
+ )
209
+ _fullLogo.dark = pathOr(
210
+ pathOr(state.fullLogo.dark, 'default', fullLogo),
211
+ 'dark',
212
+ fullLogo
213
+ )
214
+
215
+ state.fullLogo = _fullLogo
216
+ }
217
+ },
218
+
185
219
  SET_BEFORE_MOBILE_MENU(state, payload) {
186
220
  if (payload && payload.component) {
187
221
  state.beforeMobileMenu = payload.component