@inriver/inri 1.29.0 → 1.31.0
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/.changeset/brave-needles-deliver.md +5 -0
- package/.changeset/flat-pens-obey.md +5 -0
- package/CHANGELOG.md +37 -0
- package/index.ts +7 -0
- package/package.json +1 -1
- package/src/keys/index.ts +16 -0
- package/src/plugins/globalAppConfig.ts +6 -0
- package/src/plugins/inriverQuasarComponentConfigurations.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @inriver/inri
|
|
2
2
|
|
|
3
|
+
## 1.31.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Update documentation
|
|
8
|
+
- Add correct class to the c-btn component
|
|
9
|
+
- Wallop font is now included in the package
|
|
10
|
+
- Updating README and exporting tailwing config
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Provide global app configs
|
|
15
|
+
- Fix CSelect placeholder color. Modularize Sass imports. Include inri typings when bundling
|
|
16
|
+
- Fix Sass warnings and errors by removing usage of @apply and updating Quasar + sass dependencies
|
|
17
|
+
- Add support for showing tooltips when hovering over CSelect and options. Add disable support and styling. Fix required validation to work with empty arrays.
|
|
18
|
+
- Add support for hiding the sidebars in CLayoutWithSidebars. Add support for entering a custom title in CLayoutWithSidebars
|
|
19
|
+
- Add support for showing placeholder ()in CSelect eoutside of use-input mode
|
|
20
|
+
- Fix error when CSelect is passed object options with falsy values
|
|
21
|
+
|
|
22
|
+
## 1.30.0
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- Update documentation
|
|
27
|
+
- Add correct class to the c-btn component
|
|
28
|
+
- Wallop font is now included in the package
|
|
29
|
+
- Updating README and exporting tailwing config
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Fix CSelect placeholder color. Modularize Sass imports. Include inri typings when bundling
|
|
34
|
+
- Fix Sass warnings and errors by removing usage of @apply and updating Quasar + sass dependencies
|
|
35
|
+
- Add support for showing tooltips when hovering over CSelect and options. Add disable support and styling. Fix required validation to work with empty arrays.
|
|
36
|
+
- Add support for hiding the sidebars in CLayoutWithSidebars. Add support for entering a custom title in CLayoutWithSidebars
|
|
37
|
+
- Add support for showing placeholder ()in CSelect eoutside of use-input mode
|
|
38
|
+
- Fix error when CSelect is passed object options with falsy values
|
|
39
|
+
|
|
3
40
|
## 1.29.0
|
|
4
41
|
|
|
5
42
|
### Minor Changes
|
package/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { useDirtyCheck } from './src/composables/useDirtyCheck'
|
|
|
11
11
|
import { useTruncateChips } from './src/composables/useTruncateChips'
|
|
12
12
|
import { initInriIcons } from './src/plugins/inriIcons'
|
|
13
13
|
import { baseTailwindConfig } from './configs/base-tailwind-config'
|
|
14
|
+
import keys, { validationRulesKey, notifyKey, dialogKey, colorsKey, inriComponentConfigsKey } from './src/keys'
|
|
14
15
|
|
|
15
16
|
export {
|
|
16
17
|
useInriStore,
|
|
@@ -26,4 +27,10 @@ export {
|
|
|
26
27
|
useTruncateChips,
|
|
27
28
|
initInriIcons,
|
|
28
29
|
baseTailwindConfig,
|
|
30
|
+
keys,
|
|
31
|
+
validationRulesKey,
|
|
32
|
+
notifyKey,
|
|
33
|
+
dialogKey,
|
|
34
|
+
colorsKey,
|
|
35
|
+
inriComponentConfigsKey,
|
|
29
36
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* eslint-disable symbol-description */
|
|
2
|
+
import type { App, InjectionKey } from 'vue'
|
|
3
|
+
|
|
4
|
+
export const validationRulesKey = Symbol() as InjectionKey<App['config']['globalProperties']['$validate']>
|
|
5
|
+
export const notifyKey = Symbol() as InjectionKey<App['config']['globalProperties']['$notify']>
|
|
6
|
+
export const dialogKey = Symbol() as InjectionKey<App['config']['globalProperties']['$dialog']>
|
|
7
|
+
export const colorsKey = Symbol() as InjectionKey<App['config']['globalProperties']['$colors']>
|
|
8
|
+
export const inriComponentConfigsKey = Symbol() as InjectionKey<App['config']['globalProperties']['$inri']>
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
validationRulesKey,
|
|
12
|
+
notifyKey,
|
|
13
|
+
dialogKey,
|
|
14
|
+
colorsKey,
|
|
15
|
+
inriComponentConfigsKey,
|
|
16
|
+
}
|
|
@@ -4,22 +4,28 @@ import notify from './notify'
|
|
|
4
4
|
import dialog from './dialog'
|
|
5
5
|
import { colors } from '../utils/colorUtils'
|
|
6
6
|
import { quasarComponentConfigurations } from './inriverQuasarComponentConfigurations'
|
|
7
|
+
import { validationRulesKey, notifyKey, dialogKey, colorsKey, inriComponentConfigsKey } from 'src/keys'
|
|
7
8
|
|
|
8
9
|
// register components
|
|
9
10
|
export const registerAppConfigurations = (Vue: App): void => {
|
|
10
11
|
// Expose $validate in templates
|
|
11
12
|
Vue.config.globalProperties.$validate = rules
|
|
13
|
+
Vue.provide(validationRulesKey, Vue.config.globalProperties.$validate)
|
|
12
14
|
|
|
13
15
|
// Expose $notify in templates
|
|
14
16
|
Vue.config.globalProperties.$notify = notify
|
|
17
|
+
Vue.provide(notifyKey, Vue.config.globalProperties.$notify)
|
|
15
18
|
|
|
16
19
|
// Expose $dialog in templates
|
|
17
20
|
Vue.config.globalProperties.$dialog = dialog
|
|
21
|
+
Vue.provide(dialogKey, Vue.config.globalProperties.$dialog)
|
|
18
22
|
|
|
19
23
|
// Expose colors so it's easy to loop them on demo pages
|
|
20
24
|
Vue.config.globalProperties.$colors = colors
|
|
25
|
+
Vue.provide(colorsKey, Vue.config.globalProperties.$colors)
|
|
21
26
|
|
|
22
27
|
// Configurations that can be used on quasar components. Example:
|
|
23
28
|
// <q-input v-bind="$inri.input" />
|
|
24
29
|
Vue.config.globalProperties.$inri = quasarComponentConfigurations
|
|
30
|
+
Vue.provide(inriComponentConfigsKey, Vue.config.globalProperties.$inri)
|
|
25
31
|
}
|