@omnia/fx 8.0.341-dev → 8.0.342-dev

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.
@@ -10,5 +10,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
10
10
  modelValue?: InputBlueprint;
11
11
  } & {
12
12
  themeType?: ThemeContextType;
13
+ } & {
14
+ blueprintStrategy?: string;
13
15
  } & DefineEmit<"click:confirm", (value: TabsBlueprint) => void> & DefineEmit<"init:actionButtons", (value: () => VNodeChild) => void>>) => any;
14
16
  export default _default;
@@ -0,0 +1,8 @@
1
+ import { DefineProp, DefinePropTheming, DefineSlot, DefineVModel } from "@omnia/fx/ux";
2
+ import { InputBlueprint } from "@omnia/fx/models";
3
+ import { VNodeChild } from "vue";
4
+ export interface RadioGroupModel {
5
+ }
6
+ type PickerProps = DefinePropTheming & DefineVModel<"", boolean, false, null, true, "The v-model of the component. True if it has selection otherwise false"> & DefineProp<"class", String | String[]> & DefineProp<"label", string, false, null, "Sets the text of the component."> & DefineProp<"placeholder", string, false, null, "Sets the placeholder of the component."> & DefineProp<"blueprint", InputBlueprint, false, null, "Sets a custom blueprint for the text."> & DefineProp<"disabled", boolean, false, null, "Sets the component to disabled"> & DefineProp<"visibleOnContentClick", boolean, false, null, "Sets the component to disabled"> & DefineSlot<"selectionRenderer", () => VNodeChild>;
7
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<PickerProps>) => any;
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { OSelectTypes, TextBlueprint } from "@omnia/fx-models";
2
+ import { useColorSchemaStore, useTypographyBlueprintStore } from "@omnia/fx/ux";
3
+ export declare const PickerStyles: {
4
+ textAndFont: (textBlueprint: TextBlueprint, colors: ReturnType<typeof useColorSchemaStore>, typography: ReturnType<typeof useTypographyBlueprintStore>) => string;
5
+ iconWrapper: string;
6
+ selectorBackground: string;
7
+ selectorWrapper: (colors: ReturnType<typeof useColorSchemaStore>) => Readonly<import("@omnia/fx/ux").StylexValue>;
8
+ overlay: (dark: boolean) => string;
9
+ componentWrapper: Readonly<import("@omnia/fx/ux").StylexValue>;
10
+ componentVariantWrapper: (colors: ReturnType<typeof useColorSchemaStore>, variant: OSelectTypes, hasValue: boolean, hasLabel: boolean) => Readonly<import("@omnia/fx/ux").StylexValue>;
11
+ };
@@ -0,0 +1 @@
1
+ export declare const ExampleComponents: import("@omnia/fx/ux").DocumentationSpec;
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<Record<string, any>>) => any;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const spec: import("@omnia/fx/ux").DocumentationSpec;
@@ -13,7 +13,7 @@ export interface OSelectSlots extends Omit<VSelectSlots, "item" | "selection" |
13
13
  declare const defaultRules: ValidationRule[];
14
14
  type SlotsWithReturnObject<TItem> = DefineSlot<"chip", (item: OSelectRenderingItem<ItemType<TItem>>, index: Number) => VNodeChild> & DefineSlot<"selection", (item: OSelectRenderingItem<ItemType<TItem>>, index: Number) => VNodeChild> & DefineSlot<"item", (item: OSelectRenderingItem<ItemType<TItem>>, index: Number) => VNodeChild>;
15
15
  type SlotsWithoutReturnObject = DefineSlot<"chip", (item: OSelectRenderingItem<any>, index: Number) => VNodeChild> & DefineSlot<"selection", (item: OSelectRenderingItem<any>, index: Number) => VNodeChild> & DefineSlot<"item", (item: OSelectRenderingItem<any>, index: Number) => VNodeChild>;
16
- type BaseProps<TItem, TReturnObject extends boolean> = DefinePropTheming & DefineProp<"class", String | String[]> & DefineVModel<"", any, false, null, true, "The v-model of the component"> & DefineProp<"rules", ValidationRule[], false, typeof defaultRules, "Accepts a mixed array of types function. Functions pass an input value as an argument and must return either true / false or a string containing an error message. The input field will enter an error state if a function returns (or any value in the array contains) false or is a string."> & DefineProp<"label", string, false, null, "Sets the label of the component."> & DefineProp<"hint", string, false, null, "Sets the hint of the component."> & DefineProp<"items", TItem, false, null, "TItem must be an array of objects or array of strings. When using objects, will look for a title, value and disabled keys. This can be changed using the item-title, item-value and item-disabled props."> & DefineProp<"itemTitle", ItemValueType<ItemType<TItem>>, false, null, "Property on supplied items that contains its title."> & DefineProp<"itemValue", ItemValueType<ItemType<TItem>>, false, null, "Property on supplied items that contains its value."> & DefineProp<"variant", OSelectTypes, false, null, "Applies a distinct style to the component."> & DefineProp<"returnObject", TReturnObject, false, null, "Changes the selection behavior to return the object directly rather than the value specified with item-value."> & DefineProp<"clearable", boolean, false, null, "Allows for the component to be cleared."> & DefineProp<"searchable", boolean, false, null, "Allows to searching when user typing."> & DefineProp<"blueprint", InputBlueprint, false, null, "Sets a custom blueprint for the text."> & DefineProp<"toned", boolean> & DefineProp<"readonly", boolean, false, null, "Puts input in readonly state."> & DefineProp<"multiple", boolean, false, false, "Multiple selection."> & DefineProp<"hideNoData", boolean, false, false, "Hidden no data message."> & DefineProp<"menuIcon", IIcon, false, null, "Custom menu icon."> & DefineProp<"loading", boolean, false, false, "Displays linear progress bar."> & DefineProp<"disabled", boolean, false, false, "Removes the ability to click or target the input."> & DefineProp<"persistentHint", boolean, false, null, "Forces hint to always be visible."> & DefineProp<"hideSelected", boolean, false, null, "Hide selected items from all items list."> & DefineEmit<"click:button", (value: any) => void, "Emit a click event."> & DefineProp<"errorMessages", string | readonly string[], false, null, "Puts the input in an error state and passes through custom error messages. Will be combined with any validations that occur from the rules prop. This field will not trigger validation."> & DefineProp<"error", boolean, false, false, "Puts the input in a manual error state."> & DefineEmit<"update:search", (value: string) => void, "Emit when search input value is changed. Only works when searchable prop is true."> & DefineEmit<"update:focused", (value: boolean) => void, "Emit when search input field is focused."> & DefineSlot<"append-item", () => VNodeChild> & DefineSlot<"prepend-inner", () => VNodeChild> & DefineSlot<"append-inner", () => VNodeChild> & DefineProp<"maxHeight", number, false, 300> & DefineProp<"itemHeight", number, false, 40>;
16
+ type BaseProps<TItem, TReturnObject extends boolean> = DefinePropTheming & DefineProp<"class", String | String[]> & DefineVModel<"", any, false, null, true, "The v-model of the component"> & DefineProp<"rules", ValidationRule[], false, typeof defaultRules, "Accepts a mixed array of types function. Functions pass an input value as an argument and must return either true / false or a string containing an error message. The input field will enter an error state if a function returns (or any value in the array contains) false or is a string."> & DefineProp<"label", string, false, null, "Sets the label of the component."> & DefineProp<"hint", string, false, null, "Sets the hint of the component."> & DefineProp<"items", TItem, false, null, "TItem must be an array of objects or array of strings. When using objects, will look for a title, value and disabled keys. This can be changed using the item-title, item-value and item-disabled props."> & DefineProp<"itemTitle", ItemValueType<ItemType<TItem>>, false, null, "Property on supplied items that contains its title."> & DefineProp<"itemValue", ItemValueType<ItemType<TItem>>, false, null, "Property on supplied items that contains its value."> & DefineProp<"variant", OSelectTypes, false, null, "Applies a distinct style to the component."> & DefineProp<"returnObject", TReturnObject, false, null, "Changes the selection behavior to return the object directly rather than the value specified with item-value."> & DefineProp<"clearable", boolean, false, null, "Allows for the component to be cleared."> & DefineProp<"searchable", boolean, false, null, "Allows to searching when user typing."> & DefineProp<"blueprint", InputBlueprint, false, null, "Sets a custom blueprint for the text."> & DefineProp<"toned", boolean> & DefineProp<"chips", boolean, false, false, "Puts input in readonly state."> & DefineProp<"readonly", boolean, false, null, "Puts input in readonly state."> & DefineProp<"multiple", boolean, false, false, "Multiple selection."> & DefineProp<"hideNoData", boolean, false, false, "Hidden no data message."> & DefineProp<"menuIcon", IIcon, false, null, "Custom menu icon."> & DefineProp<"loading", boolean, false, false, "Displays linear progress bar."> & DefineProp<"disabled", boolean, false, false, "Removes the ability to click or target the input."> & DefineProp<"persistentHint", boolean, false, null, "Forces hint to always be visible."> & DefineProp<"hideSelected", boolean, false, null, "Hide selected items from all items list."> & DefineEmit<"click:button", (value: any) => void, "Emit a click event."> & DefineProp<"errorMessages", string | readonly string[], false, null, "Puts the input in an error state and passes through custom error messages. Will be combined with any validations that occur from the rules prop. This field will not trigger validation."> & DefineProp<"error", boolean, false, false, "Puts the input in a manual error state."> & DefineEmit<"update:search", (value: string) => void, "Emit when search input value is changed. Only works when searchable prop is true."> & DefineEmit<"update:focused", (value: boolean) => void, "Emit when search input field is focused."> & DefineSlot<"append-item", () => VNodeChild> & DefineSlot<"prepend-inner", () => VNodeChild> & DefineSlot<"append-inner", () => VNodeChild> & DefineProp<"maxHeight", number, false, 300> & DefineProp<"itemHeight", number, false, 40>;
17
17
  export type OSelectProps<TItem, TReturnObject extends boolean> = BaseProps<TItem, TReturnObject> & DefineType<TReturnObject extends true ? SlotsWithReturnObject<TItem> : SlotsWithoutReturnObject>;
18
18
  declare const _default: <TItem extends readonly any[], TReturnObject extends boolean>(props: import("@omnia/fx/ux").ConstructComponentProps<OSelectProps<TItem, TReturnObject>>) => any;
19
19
  export default _default;
@@ -3,5 +3,5 @@ import { useColorSchemaStore, useTypographyBlueprintStore } from "@omnia/fx/ux";
3
3
  export declare const SelectStyles: {
4
4
  textAndFont: (textBlueprint: TextBlueprint, colors: ReturnType<typeof useColorSchemaStore>, typography: ReturnType<typeof useTypographyBlueprintStore>) => string;
5
5
  componentWrapper: Readonly<import("@omnia/fx/ux").StylexValue>;
6
- componentVariantWrapper: (variant: OSelectTypes, hasValue: boolean, hasLabel: boolean) => Readonly<import("@omnia/fx/ux").StylexValue>;
6
+ componentVariantWrapper: (colors: ReturnType<typeof useColorSchemaStore>, variant: OSelectTypes, hasValue: boolean, hasLabel: boolean) => Readonly<import("@omnia/fx/ux").StylexValue>;
7
7
  };
@@ -293,6 +293,7 @@ import wc48b4d391d03f4a01a9485b845917d229 from './ux/oxide/navigationdrawer/Navi
293
293
  import wc16277e3059db453eb98ad6946d315c39 from './ux/oxide/notification/Notification';
294
294
  import wcecbd3b3dbc834cf0856597772da1320c from './ux/oxide/pagination/Pagination';
295
295
  import wc1d8d2a2328244f1eab96344841305976 from './ux/oxide/panel/Panel';
296
+ import wcbae7c6fe179e45dfba604eca6d5d867e from './ux/oxide/picker/Picker';
296
297
  import wc247719ac6d3843ec889face452544a21 from './ux/oxide/progress/Progress';
297
298
  import wc48962186dfb94f37adc76f475b80015d from './ux/oxide/radio/RadioGroup';
298
299
  import wc2d9c50d3dcb1421cafb8eab80be243a1 from './ux/oxide/radio/Radio';
@@ -5069,6 +5070,13 @@ declare global {
5069
5070
  $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
5070
5071
  };
5071
5072
  } : typeof wc1d8d2a2328244f1eab96344841305976;
5073
+ "picker": typeof wcbae7c6fe179e45dfba604eca6d5d867e extends {
5074
+ propsDefinition: infer TProp;
5075
+ } ? {
5076
+ new (...args: any[]): {
5077
+ $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
5078
+ };
5079
+ } : typeof wcbae7c6fe179e45dfba604eca6d5d867e;
5072
5080
  "progress": typeof wc247719ac6d3843ec889face452544a21 extends {
5073
5081
  propsDefinition: infer TProp;
5074
5082
  } ? {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.341-dev",
4
+ "version": "8.0.342-dev",
5
5
  "description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "author": "Omnia Digital Workplace AB",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "8.0.341-dev",
23
+ "@omnia/fx-models": "8.0.342-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.11.7",