@talxis/base-controls 1.2406.15 → 1.2406.16

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
- export{L as Lookup}from"../../Lookup-85a4c52d.js";import"react/jsx-runtime";import"react";import"@fluentui/react";import"@talxis/react-components/dist/components/TagPicker";import"../../hooks/useMouseOver.js";import"../../hooks/useFocusIn.js";import"../../hooks/useComponentSizing.js";import"../../hooks/useComponent.js";import"fast-deep-equal/es6";import"merge-anything";import"liquidjs";import"@fluentui/react/lib/Text";import"@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton";
1
+ export{L as Lookup}from"../../Lookup-4b87c562.js";import"react/jsx-runtime";import"react";import"@fluentui/react";import"@talxis/react-components/dist/components/TagPicker";import"../../hooks/useMouseOver.js";import"../../hooks/useFocusIn.js";import"../../hooks/useComponentSizing.js";import"../../hooks/useComponent.js";import"fast-deep-equal/es6";import"merge-anything";import"liquidjs";import"@fluentui/react/lib/Text";import"@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton";
@@ -1 +1 @@
1
- import{useRef as e,useMemo as n,useEffect as t}from"react";import o from"fast-deep-equal/es6";import{merge as r}from"merge-anything";import{Liquid as a}from"liquidjs";import{useComponentSizing as i}from"./useComponentSizing.js";const s=(s,l,f)=>{const u=e(l.parameters),c=i(l.context.mode),d=n((()=>new a),[]),m=n((()=>{var e;const n=r(null!=f?f:{},null!==(e=l.translations)&&void 0!==e?e:{});return new Proxy(n,{get:(e,t)=>e=>p(t,n,e)})}),[]);t((()=>{u.current=l.parameters}),[l.parameters]);const p=(e,n,t)=>{const o=e=>"string"==typeof e?e:JSON.stringify(e),r=n[e];if(!r)return console.error(`Translation for the ${e} label of the ${s} component has not been defined!`),e;if("string"==typeof r||Array.isArray(r))return o(r);let a=r[l.context.userSettings.languageId];return a||(console.info(`Translation for the ${e} label of the ${s} component has not been found. Using default Czech label instead.`),a=r[1029]),a||(console.error(`Translation for the ${e} label of the ${s} component does not exists neither for Czech language and current LCID.`),a=e),d.parseAndRenderSync(o(a),t)};return{labels:m,sizing:c,onNotifyOutputChanged:e=>{var n,t;let r=!1;for(let[t,a]of Object.entries(e)){const e=null===(n=u.current[t])||void 0===n?void 0:n.raw;if(!o(e,a)){if(""===a&&(a=null),e==a)continue;r=!0;break}}r&&(null===(t=l.onNotifyOutputChanged)||void 0===t||t.call(l,e))}}};export{s as useComponent};
1
+ import{useRef as e,useMemo as n,useEffect as t}from"react";import o from"fast-deep-equal/es6";import{merge as r}from"merge-anything";import{Liquid as i}from"liquidjs";import{useComponentSizing as a}from"./useComponentSizing.js";const l=(l,s,f)=>{const u=e(s.parameters),d=a(s.context.mode),c=n((()=>new i),[]),m=n((()=>{var e;const n=r(null!=f?f:{},null!==(e=s.translations)&&void 0!==e?e:{});return new Proxy(n,{get:(e,t)=>e=>p(t,n,e)})}),[]);t((()=>{u.current=s.parameters}),[s.parameters]);const p=(e,n,t)=>{const o=e=>"string"==typeof e?e:JSON.stringify(e),r=n[e];if(!r)return console.error(`Translation for the ${e} label of the ${l} component has not been defined!`),e;if("string"==typeof r||Array.isArray(r))return o(r);let i=r[s.context.userSettings.languageId];return i||(console.info(`Translation for the ${e} label of the ${l} component has not been found. Using default Czech label instead.`),i=r[1029]),i||(console.error(`Translation for the ${e} label of the ${l} component does not exists neither for Czech language and current LCID.`),i=e),c.parseAndRenderSync(o(i),t)};return{labels:m,sizing:d,onNotifyOutputChanged:e=>{var n,t;let r=!1;for(let[t,i]of Object.entries(e)){let a=null===(n=u.current[t])||void 0===n?void 0:n.raw;if(!o(a,i)){if(null===i&&(i=void 0,e[t]=void 0),""===i&&(i=void 0,e[t]=void 0),null===a&&(a=void 0),a===i)continue;r=!0;break}}r&&(null===(t=s.onNotifyOutputChanged)||void 0===t||t.call(s,e))}}};export{l as useComponent};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talxis/base-controls",
3
- "version": "1.2406.15",
3
+ "version": "1.2406.16",
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",
File without changes