@bcrs-shared-components/action-chip 1.1.22 → 1.1.24

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.
@@ -1,13 +1,13 @@
1
+ import type { Meta } from '@storybook/vue'
1
2
  import { ActionChip } from './index'
2
3
  import { ActionableItemIF } from '@bcrs-shared-components/interfaces'
3
4
  import { ActionTypes } from '@bcrs-shared-components/enums'
4
5
  import Vuetify from 'vuetify'
5
6
 
6
- export default {
7
- title: 'component/ActionChip',
8
- component: ActionChip,
9
- argTypes: {}
7
+ const meta: Meta<typeof ActionChip> = {
8
+ title: 'component/ActionChip'
10
9
  }
10
+ export default meta
11
11
 
12
12
  const Template = (args, { argTypes }) => ({
13
13
  vuetify: new Vuetify({ iconfont: 'mdi' }),
@@ -21,23 +21,23 @@ const removedAction: ActionableItemIF = { action: ActionTypes.REMOVED }
21
21
  const editedAction: ActionableItemIF = { action: ActionTypes.EDITED }
22
22
 
23
23
  export const added = Template.bind({})
24
- added.args = {
24
+ added['args'] = {
25
25
  actionableItem: addedAction
26
26
  }
27
27
 
28
28
  export const removed = Template.bind({})
29
- removed.args = {
29
+ removed['args'] = {
30
30
  actionableItem: removedAction
31
31
  }
32
32
 
33
33
  export const editedAlteration = Template.bind({})
34
- editedAlteration.args = {
34
+ editedAlteration['args'] = {
35
35
  actionableItem: editedAction,
36
36
  editedLabel: 'CHANGED'
37
37
  }
38
38
 
39
39
  export const editedCorrection = Template.bind({})
40
- editedCorrection.args = {
40
+ editedCorrection['args'] = {
41
41
  actionableItem: editedAction,
42
42
  editedLabel: 'CORRECTED'
43
43
  }
package/ActionChip.vue CHANGED
@@ -1,11 +1,35 @@
1
1
  <template>
2
2
  <div>
3
- <v-chip v-if="actionableItem.action === ActionTypes.ADDED" id="added-chip"
4
- x-small label color="primary" text-color="white">ADDED</v-chip>
5
- <v-chip v-if="actionableItem.action === ActionTypes.EDITED" id="edited-chip"
6
- x-small label color="primary" text-color="white">{{editedLabel}}</v-chip>
7
- <v-chip v-if="actionableItem.action === ActionTypes.REMOVED" id="removed-chip"
8
- x-small label color="#E0E0E0" text-color="#212529">REMOVED</v-chip>
3
+ <v-chip
4
+ v-if="actionableItem.action === ActionTypes.ADDED"
5
+ id="added-chip"
6
+ x-small
7
+ label
8
+ color="primary"
9
+ text-color="white"
10
+ >
11
+ ADDED
12
+ </v-chip>
13
+ <v-chip
14
+ v-if="actionableItem.action === ActionTypes.EDITED"
15
+ id="edited-chip"
16
+ x-small
17
+ label
18
+ color="primary"
19
+ text-color="white"
20
+ >
21
+ {{ editedLabel }}
22
+ </v-chip>
23
+ <v-chip
24
+ v-if="actionableItem.action === ActionTypes.REMOVED"
25
+ id="removed-chip"
26
+ x-small
27
+ label
28
+ color="#E0E0E0"
29
+ text-color="#212529"
30
+ >
31
+ REMOVED
32
+ </v-chip>
9
33
  </div>
10
34
  </template>
11
35
 
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@bcrs-shared-components/action-chip",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "dependencies": {
8
- "@bcrs-shared-components/enums": "^1.0.41",
9
- "@bcrs-shared-components/interfaces": "^1.0.65",
8
+ "@bcrs-shared-components/enums": "^1.0.43",
9
+ "@bcrs-shared-components/interfaces": "^1.0.67",
10
+ "vue": "^2.7.14"
11
+ },
12
+ "devDependencies": {
10
13
  "vue-property-decorator": "^9.1.2"
11
14
  },
12
- "gitHead": "83c6bb9ef06117fe581381b5e8e86a4fddbbe9e7"
15
+ "gitHead": "971ab584d46f6f4cd1c25dcde622e9d6c39f08f8"
13
16
  }