@inriver/inri 1.37.0 → 1.38.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.
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@inriver/inri": minor
3
+ ---
4
+
5
+ Added support for supplying a string function to determine option label name in CSelect
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @inriver/inri
2
2
 
3
+ ## 1.38.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add notBlank validator
8
+ - Added support for supplying a string function to determine option label name in CSelect
9
+ - Update documentation
10
+ - Add correct class to the c-btn component
11
+ - Wallop font is now included in the package
12
+ - Add back button slot
13
+ - Updating README and exporting tailwing config
14
+ - Add support for placing CDialog action buttons to the right
15
+
16
+ ### Patch Changes
17
+
18
+ - Provide global app configs
19
+ - Fix CSelect placeholder color. Modularize Sass imports. Include inri typings when bundling
20
+ - Fix Sass warnings and errors by removing usage of @apply and updating Quasar + sass dependencies
21
+ - Add support for showing tooltips when hovering over CSelect and options. Add disable support and styling. Fix required validation to work with empty arrays.
22
+ - Fix broken imports due to faulty declaration file
23
+ - Add support for hiding the sidebars in CLayoutWithSidebars. Add support for entering a custom title in CLayoutWithSidebars
24
+ - Add support for showing placeholder ()in CSelect eoutside of use-input mode
25
+ - Fix faulty import path in globalAppConfig
26
+ - Add error slot in CSelect
27
+ - Fix error when CSelect is passed object options with falsy values
28
+
3
29
  ## 1.37.0
4
30
 
5
31
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inriver/inri",
3
- "version": "1.37.0",
3
+ "version": "1.38.0",
4
4
  "main": "index.ts",
5
5
  "peerDependencies": {
6
6
  "quasar": "2.14.2",
@@ -137,7 +137,7 @@ const props = defineProps({
137
137
  useInput: Boolean,
138
138
  emitValue: Boolean,
139
139
  optionLabel: {
140
- type: String,
140
+ type: [String, Function],
141
141
  default: 'label',
142
142
  },
143
143
  optionValue: {
@@ -175,6 +175,10 @@ const selectedPlaceholder = computed(() => {
175
175
  })
176
176
 
177
177
  function getOptionLabel (opt) {
178
+ if (props.optionLabel instanceof Function) {
179
+ return props.optionLabel(opt)
180
+ }
181
+
178
182
  return typeof opt === 'object' && opt !== null && props.optionLabel in opt
179
183
  ? opt[props.optionLabel]
180
184
  : opt