@bagelink/vue 1.15.289 → 1.15.293
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/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/form-flow/form-flow.d.ts +2 -0
- package/dist/form-flow/form-flow.d.ts.map +1 -1
- package/dist/index.cjs +34 -34
- package/dist/index.mjs +4367 -4349
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/options.d.ts +2 -0
- package/dist/utils/options.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/form/inputs/SelectInput.vue +9 -8
- package/src/form-flow/form-flow.ts +2 -2
- package/src/styles/text.css +2046 -2049
- package/src/types/index.ts +1 -0
- package/src/utils/index.ts +1 -1
- package/src/utils/options.ts +6 -0
package/src/types/index.ts
CHANGED
package/src/utils/index.ts
CHANGED
|
@@ -251,7 +251,7 @@ export function normalizeDimension(value: string | number | undefined, defaultMe
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
export type { NormalizedOption } from './options'
|
|
254
|
-
export { getOptionIcon, getOptionLabel, getOptionValue, normalizeOption } from './options'
|
|
254
|
+
export { getOptionIcon, getOptionLabel, getOptionSubtitle, getOptionValue, normalizeOption } from './options'
|
|
255
255
|
|
|
256
256
|
export type { ComparisonOperator, FilterCondition, LogicalOperator, QueryConditions, QueryFilter } from './queryFilter'
|
|
257
257
|
export { anyOf, buildQuery, evaluateQuery, parseQuery, queryFilter, range, search } from './queryFilter'
|
package/src/utils/options.ts
CHANGED
|
@@ -24,6 +24,12 @@ export function getOptionValue(option?: Option): string | number | boolean | und
|
|
|
24
24
|
return option as string | number
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/** Extract the subtitle from an option, if present. */
|
|
28
|
+
export function getOptionSubtitle(option?: Option): string | undefined {
|
|
29
|
+
if (option == null || typeof option !== 'object') { return }
|
|
30
|
+
const subtitle = (option as OptionObject).subtitle
|
|
31
|
+
return typeof subtitle === 'string' && subtitle ? subtitle : undefined
|
|
32
|
+
}
|
|
27
33
|
/** Extract the icon from an option, if present. */
|
|
28
34
|
export function getOptionIcon(option?: Option): IconType | undefined {
|
|
29
35
|
if (option == null || typeof option !== 'object') { return }
|