@usssa/component-library 1.0.0-alpha.236 → 1.0.0-alpha.238

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Component Library v1.0.0-alpha.236
1
+ # Component Library v1.0.0-alpha.238
2
2
 
3
3
  **This library provides custom UI components for USSSA applications**
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usssa/component-library",
3
- "version": "1.0.0-alpha.236",
3
+ "version": "1.0.0-alpha.238",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Engineering Team <engineering@usssa.com>",
@@ -203,6 +203,8 @@ const filterMethod = (rows, terms, cols, getCellValue) => {
203
203
  const getActionItemColor = (action, row) => {
204
204
  if (action.destructive) {
205
205
  return 'accent'
206
+ } else if (action.positive) {
207
+ return 'positive'
206
208
  } else {
207
209
  return typeof action.color === 'function'
208
210
  ? action.color(row)
@@ -267,9 +269,9 @@ const handleMenuHide = () => {
267
269
  }
268
270
 
269
271
  const handleMenuShow = (id) => {
270
- activeMenuId.value = id
271
- checkMenuPosition(id)
272
- window.addEventListener('scroll', onScroll, true)
272
+ activeMenuId.value = id
273
+ checkMenuPosition(id)
274
+ window.addEventListener('scroll', onScroll, true)
273
275
 
274
276
  }
275
277
 
@@ -332,7 +334,7 @@ const isGridLastRow = (row) => {
332
334
  }
333
335
 
334
336
  const onScroll = () => {
335
- if(activeMenuId.value !== null) {
337
+ if (activeMenuId.value !== null) {
336
338
  checkMenuPosition(activeMenuId.value)
337
339
  }
338
340
  }
@@ -44,7 +44,7 @@ export const useNotify = () => {
44
44
  `.q-notification__wrapper .q-notification__content`
45
45
  )
46
46
  if (childElement.childNodes.length == 1) {
47
- const iconEleHTML = `<i class='${icon}' aria-label='Custom Icon' style='height:24px; width:24px; font-size: 24px; margin-right: 8px' alt='Custom Icon Alt'></i>`
47
+ const iconEleHTML = `<i class='${icon}' aria-label='Custom Icon' style='height:24px; width:24px; font-size: 24px; margin-right: 8px;line-height: 1 !important' alt='Custom Icon Alt'></i>`
48
48
  childElement.insertAdjacentHTML('afterbegin', iconEleHTML)
49
49
  }
50
50
  }