@usssa/component-library 1.0.0-alpha.52 → 1.0.0-alpha.54

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usssa/component-library",
3
- "version": "1.0.0-alpha.52",
3
+ "version": "1.0.0-alpha.54",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Troy Moreland <troy.moreland@usssa.com>",
@@ -57,5 +57,6 @@
57
57
  "bugs": {
58
58
  "url": "https://github.com/usssa-org/component-library/issues"
59
59
  },
60
- "license": "ISC"
60
+ "license": "ISC",
61
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
61
62
  }
@@ -9,9 +9,11 @@ import UMenuDropdownAdvancedSearch from './UMenuDropdownAdvancedSearch.vue'
9
9
  import UTabBtnStd from './UTabBtnStd.vue'
10
10
  import UTooltip from './UTooltip.vue'
11
11
  import { parseInitials, categorizeObjects, deepEqual } from '../../utils/data'
12
- import { ALGOLIA } from 'src/constants'
13
12
 
14
13
  const props = defineProps({
14
+ algoliaConfig: {
15
+ type: Object,
16
+ },
15
17
  // Label for button to select a record
16
18
  actionButtonLabel: {
17
19
  type: String,
@@ -31,7 +33,7 @@ const props = defineProps({
31
33
  },
32
34
  headerLabel: {
33
35
  type: String,
34
- default: 'Im looking for',
36
+ default: 'I\'m looking for',
35
37
  },
36
38
  labelIcon: {
37
39
  type: String,
@@ -98,12 +100,8 @@ const emit = defineEmits([
98
100
 
99
101
  const loading = defineModel('loading')
100
102
 
101
- const algoliaAppId = ALGOLIA.APPID
102
- const algoliaApiKey = ALGOLIA.SEARCH_KEY
103
- const algoliaIndex = ALGOLIA.INDEX
104
-
105
- const client = algoliasearch(algoliaAppId, algoliaApiKey)
106
- const index = client.initIndex(algoliaIndex)
103
+ const client = algoliasearch(props.algoliaConfig.APP_ID, props.algoliaConfig.SEARCH_KEY)
104
+ const index = client.initIndex(props.algoliaConfig.INDEX)
107
105
 
108
106
  const advancedSearchPendingFilterModel = structuredClone(toRaw(props.model))
109
107
  const advancedSearchSelectedTab = ref(props.advancedSearchSelectedTab ?? null)
@@ -11,6 +11,12 @@ import { parseInitials } from '../utils/data'
11
11
 
12
12
  const sizeOptions = ['md', 'sm']
13
13
 
14
+ const ALGOLIA_CONFIG = {
15
+ APP_ID: 'ZR4PURFXI2',
16
+ SEARCH_KEY: '7a75864a23baba812881378ad3023269',
17
+ INDEX: 'dev'
18
+ }
19
+
14
20
  const typeOptions = ref([
15
21
  {
16
22
  label: 'People',
@@ -567,6 +573,7 @@ defineOptions({
567
573
  <UMenuSearch
568
574
  v-model:loading="loading"
569
575
  advancedSearchSelectedTab=""
576
+ :algoliaConfig="ALGOLIA_CONFIG"
570
577
  actionButtonLabel="Add"
571
578
  :fields="search_fields"
572
579
  labelIcon="fa-kit-duotone fa-filter-search"
@@ -1,5 +0,0 @@
1
- export const ALGOLIA = {
2
- APPID: 'ZR4PURFXI2',
3
- SEARCH_KEY: '7a75864a23baba812881378ad3023269',
4
- INDEX: 'dev'
5
- }