@live-change/balance-frontend 0.8.111 → 0.8.113

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.
@@ -11,21 +11,26 @@
11
11
  </template>
12
12
  <template #default="{ item: operation }">
13
13
  <div class="surface-card shadow-1 border-round mb-1 flex flex-row align-items-center">
14
- <div class="flex-1 flex-grow pl-3 py-1">
15
- <slot name="operationCause">
16
- <pre>{{ operation.cause }}</pre>
14
+ <div class="flex-1 flex-grow-1 pl-3 py-1" style="min-width: 10rem">
15
+ <slot name="operationCause" v-bind="operation">
16
+ <InjectComponent :request="{ name: 'balanceOperationCause', causeType: operation.causeType }"
17
+ :props="operation">
18
+ <template #fallback>
19
+ <pre>{{ operation.causeType + ':' + operation.cause }}</pre>
20
+ </template>
21
+ </InjectComponent>
17
22
  </slot>
18
23
  </div>
19
- <time class="w-15rem text-right pl-3 font-semibold mr-3"
24
+ <time class="w-10rem text-right pl-3 font-medium mr-3"
20
25
  :datetime="operation.updatedAt ?? operation.createdAt">
21
26
  {{ d(operation.updatedAt ?? operation.createdAt, 'shortTime') }}
22
27
  </time>
23
28
  <div class="w-10rem text-right pl-3 font-semibold mr-3"
24
29
  :class="operation.change > 0 ? 'text-green-500' : 'text-red-500'">
25
- {{ operation.change > 0 ? '+' : '-' }} <CurrencyDisplay :value="Math.abs(operation.change)" />
30
+ {{ operation.change > 0 ? '+' : '-' }} <CurrencyDisplay :value="Math.abs(operation.change)" :currency="currency" />
26
31
  </div>
27
32
  <div class="w-10rem text-right pl-3 font-semibold mr-3">
28
- <CurrencyDisplay :value="operation.amountAfter" />
33
+ <CurrencyDisplay :value="operation.amountAfter" :currency="currency" />
29
34
  </div>
30
35
  </div>
31
36
  </template>
@@ -34,7 +39,7 @@
34
39
 
35
40
  <script setup>
36
41
 
37
- import { RangeViewer } from "@live-change/vue3-components"
42
+ import { RangeViewer, InjectComponent } from "@live-change/vue3-components"
38
43
 
39
44
  import { defineProps, toRefs, computed } from 'vue'
40
45
 
@@ -50,9 +55,13 @@
50
55
  state: {
51
56
  type: String,
52
57
  default: null
58
+ },
59
+ currency: {
60
+ type: String,
61
+ default: null
53
62
  }
54
63
  })
55
- const { ownerType, owner, state } = toRefs(props)
64
+ const { ownerType, owner, state, currency } = toRefs(props)
56
65
 
57
66
  import { usePath, live, reverseRange } from '@live-change/vue3-ssr'
58
67
  const path = usePath()
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
 
2
2
  import BalanceDisplay from './front/src/components/BalanceDisplay.vue'
3
3
  import CurrencyDisplay from './front/src/components/CurrencyDisplay.vue'
4
+ import OperationsList from './front/src/components/OperationsList.vue'
4
5
 
5
- export { BalanceDisplay, CurrencyDisplay }
6
+ export { BalanceDisplay, CurrencyDisplay, OperationsList }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/balance-frontend",
3
- "version": "0.8.111",
3
+ "version": "0.8.113",
4
4
  "scripts": {
5
5
  "memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; node server/start.js localDev --enableSessions --initScript ./init.js",
@@ -35,41 +35,41 @@
35
35
  "@codemirror/language": "6.10.1",
36
36
  "@dotenvx/dotenvx": "0.27.0",
37
37
  "@fortawesome/fontawesome-free": "^6.5.2",
38
- "@live-change/access-control-frontend": "^0.8.111",
39
- "@live-change/access-control-service": "^0.8.111",
40
- "@live-change/backup-service": "^0.8.111",
41
- "@live-change/blog-frontend": "^0.8.111",
42
- "@live-change/blog-service": "^0.8.111",
43
- "@live-change/cli": "^0.8.111",
44
- "@live-change/content-frontend": "^0.8.111",
45
- "@live-change/content-service": "^0.8.111",
46
- "@live-change/dao": "^0.8.111",
47
- "@live-change/dao-vue3": "^0.8.111",
48
- "@live-change/dao-websocket": "^0.8.111",
49
- "@live-change/db-client": "^0.8.111",
50
- "@live-change/email-service": "^0.8.111",
51
- "@live-change/framework": "^0.8.111",
52
- "@live-change/frontend-auto-form": "^0.8.111",
53
- "@live-change/frontend-base": "^0.8.111",
54
- "@live-change/geoip-service": "^0.8.111",
55
- "@live-change/image-frontend": "^0.8.111",
56
- "@live-change/locale-settings-service": "^0.8.111",
57
- "@live-change/password-authentication-service": "^0.8.111",
58
- "@live-change/prosemirror-service": "^0.8.111",
59
- "@live-change/secret-code-service": "^0.8.111",
60
- "@live-change/secret-link-service": "^0.8.111",
61
- "@live-change/session-service": "^0.8.111",
62
- "@live-change/task-service": "^0.8.111",
63
- "@live-change/upload-frontend": "^0.8.111",
64
- "@live-change/url-frontend": "^0.8.111",
65
- "@live-change/url-service": "^0.8.111",
66
- "@live-change/user-frontend": "^0.8.111",
67
- "@live-change/user-identification-service": "^0.8.111",
68
- "@live-change/user-service": "^0.8.111",
69
- "@live-change/vote-service": "^0.8.111",
70
- "@live-change/vue3-components": "^0.8.111",
71
- "@live-change/vue3-ssr": "^0.8.111",
72
- "@live-change/wysiwyg-frontend": "^0.8.111",
38
+ "@live-change/access-control-frontend": "^0.8.113",
39
+ "@live-change/access-control-service": "^0.8.113",
40
+ "@live-change/backup-service": "^0.8.113",
41
+ "@live-change/blog-frontend": "^0.8.113",
42
+ "@live-change/blog-service": "^0.8.113",
43
+ "@live-change/cli": "^0.8.113",
44
+ "@live-change/content-frontend": "^0.8.113",
45
+ "@live-change/content-service": "^0.8.113",
46
+ "@live-change/dao": "^0.8.113",
47
+ "@live-change/dao-vue3": "^0.8.113",
48
+ "@live-change/dao-websocket": "^0.8.113",
49
+ "@live-change/db-client": "^0.8.113",
50
+ "@live-change/email-service": "^0.8.113",
51
+ "@live-change/framework": "^0.8.113",
52
+ "@live-change/frontend-auto-form": "^0.8.113",
53
+ "@live-change/frontend-base": "^0.8.113",
54
+ "@live-change/geoip-service": "^0.8.113",
55
+ "@live-change/image-frontend": "^0.8.113",
56
+ "@live-change/locale-settings-service": "^0.8.113",
57
+ "@live-change/password-authentication-service": "^0.8.113",
58
+ "@live-change/prosemirror-service": "^0.8.113",
59
+ "@live-change/secret-code-service": "^0.8.113",
60
+ "@live-change/secret-link-service": "^0.8.113",
61
+ "@live-change/session-service": "^0.8.113",
62
+ "@live-change/task-service": "^0.8.113",
63
+ "@live-change/upload-frontend": "^0.8.113",
64
+ "@live-change/url-frontend": "^0.8.113",
65
+ "@live-change/url-service": "^0.8.113",
66
+ "@live-change/user-frontend": "^0.8.113",
67
+ "@live-change/user-identification-service": "^0.8.113",
68
+ "@live-change/user-service": "^0.8.113",
69
+ "@live-change/vote-service": "^0.8.113",
70
+ "@live-change/vue3-components": "^0.8.113",
71
+ "@live-change/vue3-ssr": "^0.8.113",
72
+ "@live-change/wysiwyg-frontend": "^0.8.113",
73
73
  "@vueuse/core": "^10.11.0",
74
74
  "codeceptjs-assert": "^0.0.5",
75
75
  "compression": "^1.7.4",
@@ -91,7 +91,7 @@
91
91
  "vue3-scroll-border": "0.1.6"
92
92
  },
93
93
  "devDependencies": {
94
- "@live-change/codeceptjs-helper": "^0.8.111",
94
+ "@live-change/codeceptjs-helper": "^0.8.113",
95
95
  "codeceptjs": "^3.6.5",
96
96
  "generate-password": "1.7.1",
97
97
  "playwright": "^1.41.2",
@@ -102,5 +102,5 @@
102
102
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
103
103
  "license": "ISC",
104
104
  "description": "",
105
- "gitHead": "9b96afb2fc61ab3d2a5d143924e2c56d411280b4"
105
+ "gitHead": "80dd8415e06d849cc00a7711c635a7388143ce1d"
106
106
  }