@talxis/base-controls 1.2406.5 → 1.2406.7

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.
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{useComponent as o}from"../../hooks/useComponent.js";import{ComboBox as t}from"@talxis/react-components/dist/components/ComboBox";import{useRef as r,useEffect as i}from"react";import"fast-deep-equal/es6";import"merge-anything";import"liquidjs";const l=l=>{var n,a,s;const[d,m]=o("OptionSet",l),p=r(null),u=l.parameters,c=u.value,{Options:v}=u.value.attributes,h=l.context,g=v.map((e=>({key:e.Value.toString(),text:e.Label}))),x=e=>{let o;e&&(o=parseInt(e.key)),m({value:o})};return i((()=>{var e,o;(null===(e=u.AutoFocus)||void 0===e?void 0:e.raw)&&(null===(o=p.current)||void 0===o||o.focus(!0))}),[]),e(t,{componentRef:p,borderless:!1===(null===(n=u.EnableBorder)||void 0===n?void 0:n.raw),options:g,readOnly:h.mode.isControlDisabled,selectedKey:null!==(s=null===(a=c.raw)||void 0===a?void 0:a.toString())&&void 0!==s?s:-1,dropdownWidth:h.mode.allocatedWidth||void 0,errorMessage:c.errorMessage,useComboBoxAsMenuWidth:!0,styles:{root:{height:h.mode.allocatedHeight||void 0,width:h.mode.allocatedWidth||void 0,display:"flex",alignItems:"center"},callout:{maxHeight:"300px !important"}},deleteButtonProps:{key:"delete",showOnlyOnHover:!0,iconProps:{iconName:"Delete"},onClick:(e,o)=>{x(null)}},onChange:(e,o)=>x(o)})};export{l as OptionSet};
1
+ import{jsx as e}from"react/jsx-runtime";import{useComponent as o}from"../../hooks/useComponent.js";import{ComboBox as t}from"@talxis/react-components/dist/components/ComboBox";import{useRef as r,useEffect as l}from"react";import"fast-deep-equal/es6";import"merge-anything";import"liquidjs";const n=n=>{var i,a,s;const[d,m]=o("OptionSet",n),u=r(null),p=n.parameters,c=p.value,{Options:v}=p.value.attributes,g=n.context,h=v.map((e=>({key:e.Value.toString(),text:e.Label}))),x=e=>{let o;e&&(o=parseInt(e.key)),m({value:o})};return l((()=>{var e,o;(null===(e=p.AutoFocus)||void 0===e?void 0:e.raw)&&(null===(o=u.current)||void 0===o||o.focus(!0))}),[]),e(t,{componentRef:u,borderless:!1===(null===(i=p.EnableBorder)||void 0===i?void 0:i.raw),options:h,readOnly:g.mode.isControlDisabled,selectedKey:null!==(s=null===(a=c.raw)||void 0===a?void 0:a.toString())&&void 0!==s?s:-1,errorMessage:c.errorMessage,useComboBoxAsMenuWidth:!0,styles:{root:{height:g.mode.allocatedHeight||void 0,width:g.mode.allocatedWidth||void 0,display:"flex",alignItems:"center"},callout:{maxHeight:"300px !important"}},deleteButtonProps:{key:"delete",showOnlyOnHover:!0,iconProps:{iconName:"Delete"},onClick:(e,o)=>{x(null)}},onChange:(e,o)=>x(o)})};export{n as OptionSet};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talxis/base-controls",
3
- "version": "1.2406.5",
3
+ "version": "1.2406.7",
4
4
  "description": "Set of React components that natively work with Power Apps Component Framework API's",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -55,7 +55,7 @@
55
55
  "react-dom": "^16.8.6 || ^17.0.2",
56
56
  "use-debounce": "^10.0.1",
57
57
  "validator": "^13.11.9",
58
- "@talxis/react-components": "^1.2404.1"
58
+ "@talxis/react-components": "1.2406.1"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "rollup -c",
@@ -1,2 +0,0 @@
1
- export * from './DateTime';
2
- export * from './interfaces';
@@ -1,2 +0,0 @@
1
- export * from "./Decimal";
2
- export * from "./interfaces";
@@ -1,2 +0,0 @@
1
- export * from './Duration';
2
- export * from './interfaces';
@@ -1,2 +0,0 @@
1
- export * from './Lookup';
2
- export * from './interfaces';
@@ -1,2 +0,0 @@
1
- export * from './MultiSelectOptionSet';
2
- export * from './interfaces';
@@ -1,2 +0,0 @@
1
- export * from './OptionSet';
2
- export * from './interfaces';
@@ -1,2 +0,0 @@
1
- export * from './TextField';
2
- export * from './interfaces';