@golemui/gui-shared 1.0.0-rc.1 → 1.0.0-rc.3
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/CHANGELOG.md +8 -0
- package/index.js +1 -1
- package/index.umd.cjs +1 -1
- package/internals.js +2 -2
- package/internals.umd.cjs +1 -1
- package/package.json +3 -3
- package/{register-BCL1xvhN.js → register-U82VDtZw.js} +244 -235
- package/register-xqotLLz5.cjs +1 -0
- package/register-CjTULX-4.cjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 1.0.0-rc.2 (2026-06-10)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for gui-shared to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 1.0.0-rc.1 (2026-06-10)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for gui-shared to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
1
9
|
## 1.0.0-rc.0 (2026-06-09)
|
|
2
10
|
|
|
3
11
|
### 🩹 Fixes
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as d, a as y, b as g, c, d as h, e as _, f as B, g as U, h as m, i as k, j as f, k as w, l as I, m as x, n as D, o as C, p as b, q as A, r as R, s as P, t as T, u as L, v as M, w as $, x as F, y as v, z, A as G, B as j, C as O, D as E, E as H, F as N, G as V, H as q, I as W, J as K, K as Q, L as S, M as X, N as Y, O as Z, P as J, Q as ss, R as as, S as ts, T as rs, U as is, V as es, W as ns, X as us, Y as ls, Z as ps, $ as os, a0 as ds, a1 as ys, a2 as gs, a3 as cs, a4 as hs, a5 as _s, a6 as Bs, a7 as Us, a8 as ms, a9 as ks, aa as fs, ab as ws, ac as Is, ad as xs, ae as Ds, af as Cs, ag as bs, ah as As, ai as Rs, aj as Ps, ak as Ts, al as Ls, am as Ms, an as $s, ao as Fs, ap as vs, aq as zs, ar as Gs, as as js, at as Os, au as Es, av as Hs, aw as Ns, ax as Vs, ay as qs, az as Ws, aA as Ks, aB as Qs, aC as Ss, aD as Xs, aE as Ys } from "./register-
|
|
1
|
+
import { _ as d, a as y, b as g, c, d as h, e as _, f as B, g as U, h as m, i as k, j as f, k as w, l as I, m as x, n as D, o as C, p as b, q as A, r as R, s as P, t as T, u as L, v as M, w as $, x as F, y as v, z, A as G, B as j, C as O, D as E, E as H, F as N, G as V, H as q, I as W, J as K, K as Q, L as S, M as X, N as Y, O as Z, P as J, Q as ss, R as as, S as ts, T as rs, U as is, V as es, W as ns, X as us, Y as ls, Z as ps, $ as os, a0 as ds, a1 as ys, a2 as gs, a3 as cs, a4 as hs, a5 as _s, a6 as Bs, a7 as Us, a8 as ms, a9 as ks, aa as fs, ab as ws, ac as Is, ad as xs, ae as Ds, af as Cs, ag as bs, ah as As, ai as Rs, aj as Ps, ak as Ts, al as Ls, am as Ms, an as $s, ao as Fs, ap as vs, aq as zs, ar as Gs, as as js, at as Os, au as Es, av as Hs, aw as Ns, ax as Vs, ay as qs, az as Ws, aA as Ks, aB as Qs, aC as Ss, aD as Xs, aE as Ys } from "./register-U82VDtZw.js";
|
|
2
2
|
import "@golemui/core";
|
|
3
3
|
class e {
|
|
4
4
|
constructor(s) {
|
package/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./register-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./register-xqotLLz5.cjs");require("@golemui/core");class a{constructor(t){this.conditions=t}static root(){return new a([])}tag(t){return new a([...this.conditions,{kind:"tagsAnd",tags:[t]}])}state(t){return new a([...this.conditions,{kind:"state",name:t}])}tagsAnd(t){return new a([...this.conditions,{kind:"tagsAnd",tags:t}])}tagsOr(t){return new a([...this.conditions,{kind:"tagsOr",tags:t}])}apply(t){if(this.conditions.length===0)return t;const r=this.conditions.find(n=>n.kind==="state"),i=this.conditions.filter(n=>n.kind!=="state"),u=t.matcher;return{...t,matcher:n=>{if(!u(n))return!1;for(const l of i){const d=n.tags??[];if(l.kind==="tagsAnd"){for(const o of l.tags)if(!d.includes(o))return!1}else{if(l.tags.length===0)continue;if(!l.tags.some(o=>d.includes(o)))return!1}}return!0},...r?{targetState:r.name}:{}}}inputs(t){return this.apply(s._gslInputs(t))}inputByUid(t,r){return this.apply(s._gslInputByUid(t,r))}textInputs(t){return this.apply(s._gslTextInputs(t))}numberInputs(t){return this.apply(s._gslNumberInputs(t))}booleanInputs(t){return this.apply(s._gslBooleanInputs(t))}selects(t){return this.apply(s._gslSelects(t))}selectByUid(t,r){return this.apply(s._gslSelectByUid(t,r))}dropdowns(t){return this.apply(s._gslDropdowns(t))}dropdownByUid(t,r){return this.apply(s._gslDropdownByUid(t,r))}radiogroups(t){return this.apply(s._gslRadiogroups(t))}radiogroupByUid(t,r){return this.apply(s._gslRadiogroupByUid(t,r))}checkboxes(t){return this.apply(s._gslCheckboxes(t))}checkboxByUid(t,r){return this.apply(s._gslCheckboxByUid(t,r))}textareas(t){return this.apply(s._gslTextareas(t))}textareaByUid(t,r){return this.apply(s._gslTextareaByUid(t,r))}passwords(t){return this.apply(s._gslPasswords(t))}passwordByUid(t,r){return this.apply(s._gslPasswordByUid(t,r))}currencies(t){return this.apply(s._gslCurrencies(t))}currencyByUid(t,r){return this.apply(s._gslCurrencyByUid(t,r))}markdowns(t){return this.apply(s._gslMarkdowns(t))}markdownByUid(t,r){return this.apply(s._gslMarkdownByUid(t,r))}lists(t){return this.apply(s._gslLists(t))}listByUid(t,r){return this.apply(s._gslListByUid(t,r))}calendars(t){return this.apply(s._gslCalendars(t))}calendarByUid(t,r){return this.apply(s._gslCalendarByUid(t,r))}dateInputs(t){return this.apply(s._gslDateInputs(t))}dateInputByUid(t,r){return this.apply(s._gslDateInputByUid(t,r))}datePickers(t){return this.apply(s._gslDatePickers(t))}datePickerByUid(t,r){return this.apply(s._gslDatePickerByUid(t,r))}rangeCalendars(t){return this.apply(s._gslRangeCalendars(t))}rangeCalendarByUid(t,r){return this.apply(s._gslRangeCalendarByUid(t,r))}rangeDateInputs(t){return this.apply(s._gslRangeDateInputs(t))}rangeDateInputByUid(t,r){return this.apply(s._gslRangeDateInputByUid(t,r))}rangeDatePickers(t){return this.apply(s._gslRangeDatePickers(t))}rangeDatePickerByUid(t,r){return this.apply(s._gslRangeDatePickerByUid(t,r))}repeaters(t){return this.apply(s._gslRepeaters(t))}repeaterByUid(t,r){return this.apply(s._gslRepeaterByUid(t,r))}actions(t){return this.apply(s._gslActions(t))}actionByUid(t,r){return this.apply(s._gslActionByUid(t,r))}layouts(t){return this.apply(s._gslLayouts(t))}layoutByUid(t,r){return this.apply(s._gslLayoutByUid(t,r))}displays(t){return this.apply(s._gslDisplays(t))}displayByUid(t,r){return this.apply(s._gslDisplayByUid(t,r))}alerts(t){return this.apply(s._gslAlerts(t))}alertByUid(t,r){return this.apply(s._gslAlertByUid(t,r))}markdownTexts(t){return this.apply(s._gslMarkdownTexts(t))}markdownTextByUid(t,r){return this.apply(s._gslMarkdownTextByUid(t,r))}tabs(t){return this.apply(s._gslTabs(t))}tabsByUid(t,r){return this.apply(s._gslTabsByUid(t,r))}accordions(t){return this.apply(s._gslAccordions(t))}accordionByUid(t,r){return this.apply(s._gslAccordionByUid(t,r))}customInputs(t){return this.apply(s._gslCustomInputs(t))}customInputByUid(t,r){return this.apply(s._gslCustomInputByUid(t,r))}customActions(t){return this.apply(s._gslCustomActions(t))}customActionByUid(t,r){return this.apply(s._gslCustomActionByUid(t,r))}customDisplays(t){return this.apply(s._gslCustomDisplays(t))}customDisplayByUid(t,r){return this.apply(s._gslCustomDisplayByUid(t,r))}customLayouts(t){return this.apply(s._gslCustomLayouts(t))}customLayoutByUid(t,r){return this.apply(s._gslCustomLayoutByUid(t,r))}}const y={inputs:{textInput:s._guiTextInput,numberInput:s._guiNumberInput,booleanInput:s._guiBooleanInput,select:s._guiSelect,dropdown:s._guiDropdown,radiogroup:s._guiRadiogroup,checkbox:s._guiCheckbox,textarea:s._guiTextarea,password:s._guiPassword,currency:s._guiCurrency,markdown:s._guiMarkdown,list:s._guiList,calendar:s._guiCalendar,dateInput:s._guiDateInput,datePicker:s._guiDatePicker,rangeCalendar:s._guiRangeCalendar,rangeDateInput:s._guiRangeDateInput,rangeDatePicker:s._guiRangeDatePicker,repeater:s._guiRepeater,tags:s._guiTags,custom:s._guiCustomInput},actions:{button:s._guiButton,custom:s._guiCustomAction},displays:{display:s._guiDisplay,alert:s._guiAlert,markdownText:s._guiMarkdownText,custom:s._guiCustomDisplay},layouts:{flex:s._guiFlex,horizontalFlex:s._guiHorizontalFlex,verticalFlex:s._guiVerticalFlex,grid:s._guiGrid,horizontalGrid:s._guiHorizontalGrid,verticalGrid:s._guiVerticalGrid,tabs:s._guiTabs,accordion:s._guiAccordion,custom:s._guiCustomLayout},selectors:a.root()};function g(e){return typeof e=="object"&&e!==null&&"$ref"in e&&typeof e.$ref=="string"&&Object.keys(e).length===1}async function c(e,t){const r=new URL(e,t).href,i=await fetch(r);if(!i.ok)throw new Error(`Failed to load form chunk ${r}: ${i.status}`);const{$schema:u,...n}=await i.json();return p(n,r)}async function p(e,t){if(g(e))return c(e.$ref,t);const r=e;if(Array.isArray(r.children)){const i=await Promise.all(r.children.map(u=>p(u,t)));return{...r,children:i}}return e}async function h(e,t){const r=await Promise.all(e.form.map(i=>p(i,t)));return{...e,form:r}}exports.gui=y;exports.resolveChunkRefs=h;
|
package/internals.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aF as I, aG as h, ah as C, aH as M, aI as B } from "./register-
|
|
2
|
-
import { X as ye, W as _e, L as he, K as me, R as Se, Q as be, d as De, x as Te, w as Ae, l as Oe, k as Ue, q as Ie, r as Re, a0 as Ee, $ as xe, a2 as ke, a1 as ve, Z as we, Y as Ce, a4 as Me, a3 as Be, z as Le, y as Pe, B as je, A as Fe, P as Ne, O as We, h as ze, g as Ge, a as Ke, _ as $e, N as Ve, M as Ye, v as He, u as Xe, t as qe, T as Je, S as Qe, s as Ze, c as et, p as tt, o as st, j as at, i as nt, D as rt, C as ot, F as it, E as lt, H as ct, G as ut, J as pt, I as dt, f as ft, e as gt, U as yt, V as _t, aJ as ht, aK as mt, b as St, n as bt, m as Dt, a6 as Tt, ag as At, aC as Ot, aj as Ut, as as It, ay as Rt, av as Et, ai as xt, ae as kt, ak as vt, a5 as wt, ar as Ct, aq as Mt, aA as Bt, ad as Lt, aa as Pt, ac as jt, a9 as Ft, at as Nt, au as Wt, af as zt, aD as Gt, aw as Kt, az as $t, ap as Vt, ao as Yt, an as Ht, am as Xt, aB as qt, a7 as Jt, al as Qt, aE as Zt, ax as es, ab as ts, a8 as ss, aL as as, aM as ns, aN as rs, aO as os, aP as is } from "./register-
|
|
1
|
+
import { aF as I, aG as h, ah as C, aH as M, aI as B } from "./register-U82VDtZw.js";
|
|
2
|
+
import { X as ye, W as _e, L as he, K as me, R as Se, Q as be, d as De, x as Te, w as Ae, l as Oe, k as Ue, q as Ie, r as Re, a0 as Ee, $ as xe, a2 as ke, a1 as ve, Z as we, Y as Ce, a4 as Me, a3 as Be, z as Le, y as Pe, B as je, A as Fe, P as Ne, O as We, h as ze, g as Ge, a as Ke, _ as $e, N as Ve, M as Ye, v as He, u as Xe, t as qe, T as Je, S as Qe, s as Ze, c as et, p as tt, o as st, j as at, i as nt, D as rt, C as ot, F as it, E as lt, H as ct, G as ut, J as pt, I as dt, f as ft, e as gt, U as yt, V as _t, aJ as ht, aK as mt, b as St, n as bt, m as Dt, a6 as Tt, ag as At, aC as Ot, aj as Ut, as as It, ay as Rt, av as Et, ai as xt, ae as kt, ak as vt, a5 as wt, ar as Ct, aq as Mt, aA as Bt, ad as Lt, aa as Pt, ac as jt, a9 as Ft, at as Nt, au as Wt, af as zt, aD as Gt, aw as Kt, az as $t, ap as Vt, ao as Yt, an as Ht, am as Xt, aB as qt, a7 as Jt, al as Qt, aE as Zt, ax as es, ab as ts, a8 as ss, aL as as, aM as ns, aN as rs, aO as os, aP as is } from "./register-U82VDtZw.js";
|
|
3
3
|
import "@golemui/core";
|
|
4
4
|
import "@golemui/gui-validators";
|
|
5
5
|
function ie(i, ...e) {
|
package/internals.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./register-CjTULX-4.cjs");require("@golemui/core");require("@golemui/gui-validators");function E(a,...e){return e.map(t=>({...t,targetState:a}))}function v(a,...e){return{kind:"aggregated",matcher:t=>t.tags?.includes(a)??!1,children:e}}const B={INPUTS:new Set(["INPUTS","TEXTAREA","PASSWORD","SELECT","DROPDOWN","RADIOGROUP","CHECKBOX","CALENDAR","DATE_INPUT","DATE_PICKER","RANGE_CALENDAR","RANGE_DATE_INPUT","RANGE_DATE_PICKER","CURRENCY","MARKDOWN","LIST","CUSTOM_INPUT","REPEATER","TAGS"]),ACTIONS:new Set(["ACTIONS","CUSTOM_ACTION"]),DISPLAYS:new Set(["DISPLAYS","ALERTS","MARKDOWN_TEXTS","CUSTOM_DISPLAY"]),LAYOUTS:new Set(["LAYOUTS","TABS","ACCORDION","CUSTOM_LAYOUT"])};function P(a,e){const t=B[a];return t?t.has(e):a===e}class L{resolve(e,t){const i=[];for(const r of t)r.kind==="aggregated"?this.collectFromAggregated(r,e,i):this.collectFromLeaf(r,e,i);const n=this.rollUpSensibleDefaults(i);return{leafSelectors:i,sensibleDefaults:n}}collectFromAggregated(e,t,i){if(e.matcher(t))for(const n of e.children)this.collectFromLeaf(n,t,i)}collectFromLeaf(e,t,i){P(e.selectorType,t.itemType??"")&&e.matcher(t)&&i.push(e)}rollUpSensibleDefaults(e){const t=new Map,i=(r,o)=>{const l=t.get(r)??[];l.push(o),t.set(r,l)};for(const r of e){const o=B[r.selectorType];if(o)for(const l of o)i(l,r);else i(r.selectorType,r)}const n={};for(const[r,o]of t)s.hasItemTypeHandler(r)&&(n[r]=s.getItemTypeHandler(r).rollUpSensibleDefaults(o));return n}}const F=new L;class j{deepMerge(e,t){if(t==null)return e;if(e==null||typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t))return t;const i={...e};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&!Array.isArray(t[n])&&t[n]!==null&&typeof e[n]=="object"&&!Array.isArray(e[n])&&e[n]!==null?i[n]=this.deepMerge(e[n],t[n]):i[n]=t[n]);return i}}const N=new j;class W{constructor(e){this.objectUtils=e}merge(e,t,i){let n={},r=null;typeof e=="function"&&(r=e);const o=this.collectDecorators(i);for(const c of o){if(r!=null){r=this.composeRuntimeFunctions(r,c);continue}if(typeof c=="function"){const g=c({...n,...typeof e=="function"?{}:e});if(typeof g=="function"){r=this.createPromotedFunction(n,e,g,t,i);continue}n=this.objectUtils.deepMerge(n,g)}else n=this.objectUtils.deepMerge(n,c)}if(r!=null)return{kind:"dynamic",fn:this.wrapWithSensibleDefaults(r,n,t,i)};const l=this.objectUtils.deepMerge(e,n);return{kind:"static",def:this.applySensibleDefaults({...l},t,i)}}collectDecorators(e){const t=[];for(const i of e.leafSelectors){const n=i.config;n.override!=null&&t.push(n.override)}return t}applySensibleDefaults(e,t,i){if(!s.hasItemTypeHandler(t))return e;const n=i.sensibleDefaults[t]??{};return s.getItemTypeHandler(t).applySensibleDefaults(e,n)}createPromotedFunction(e,t,i,n,r){return o=>{const l=i(o);let u=this.objectUtils.deepMerge(e,l);return u=this.objectUtils.deepMerge(u,t),this.applySensibleDefaults(u,n,r)}}wrapWithSensibleDefaults(e,t,i,n){return r=>{let o=e(r);return Object.keys(t).length>0&&(o=this.objectUtils.deepMerge(t,o)),this.applySensibleDefaults(o,i,n)}}composeRuntimeFunctions(e,t){return typeof t=="function"?i=>{const n=e(i),r=t(n);return typeof r=="function"?r(i):this.objectUtils.deepMerge(r,n)}:i=>{const n=e(i);return this.objectUtils.deepMerge(n,t)}}}const z=new W(N);class G{mapToWidget(e,t){if(e.kind==="dynamic"){const i=e.fn;return(n=>{const r=i(n);return this.mapStaticDef(r,t)})}return this.mapStaticDef(e.def,t)}mapStaticDef(e,t){const i=s.getItemTypeHandler(t).mapToWidget(e);return this.applyBaseWidgetFields(i,e)}applyBaseWidgetFields(e,t){return t.size!=null&&(e.size=t.size),t.defaultValue!=null&&e.kind==="input"&&(e.defaultValue=t.defaultValue),t.on!=null&&(e.on=t.on),t.include!=null&&(e.include=t.include),t.exclude!=null&&(e.exclude=t.exclude),e}}const K=new G;class H{normalizeSelectors(e){const t=Array.isArray(e)?e:[e],i=[],n=[];for(const r of t)r.kind==="leaf"?n.push(r):i.push(r);return n.length>0&&i.unshift({kind:"aggregated",matcher:()=>!0,children:n}),i}extractFormConfig(){return{suppressAutomaticStack:!1}}}const V=new H,$={input:new Set(["disabled","readonly","label","validator","size"]),action:new Set(["disabled","label","size"]),layout:new Set(["size"]),display:new Set([])},D={onChange:"change",onLoad:"load",onFilter:"filter",onClick:"click"};class Y{extractFromMergeResult(e,t){const i={};for(const l of t){const u=l.targetState,c=l.config,g=c.override&&typeof c.override!="function"?c.override:c;i[u]={...i[u]||{},...g}}if(e.kind==="dynamic"){const l=e.fn;return{cleanedResult:{kind:"dynamic",fn:c=>{const g=l(c),{states:d,..._}=g;return _}},stateData:{stateOverrides:i}}}const{states:n,...r}=e.def,o={};for(const[l,u]of Object.entries(i))o[l]={...u};if(n)for(const[l,u]of Object.entries(n))o[l]={...o[l]||{},...u};return{cleanedResult:{kind:"static",def:r},stateData:{stateOverrides:o}}}applyToWidget(e,t,i,n){const{stateOverrides:r}=t;if(Object.keys(r).length===0)return e;const o={...e},l=e.kind,u=$[l]||new Set;e.props&&(o.props={...e.props}),e.on&&(o.on={...e.on});for(const[c,g]of Object.entries(r))for(const[d,_]of Object.entries(g))d==="visible"?this.applyVisibility(o,c,_):D[d]?this.applyStateEvent(o,c,d,_,i,n):u.has(d)?o[`${d}.${c}`]=_:(o.props||(o.props={}),o.props[`${d}.${c}`]=_);return o}hasStateData(e){return Object.keys(e.stateOverrides).length>0}applyVisibility(e,t,i){if(i){const n=e.include?.in||[];e.include={...e.include||{},in:[...n,t]}}else{const n=e.exclude?.from||[];e.exclude={...e.exclude||{},from:[...n,t]}}}applyStateEvent(e,t,i,n,r,o){const l=D[i];if(e.on||(e.on={}),typeof n=="function"){const u=o.next();r.set(u,n),e.on[`${l}.${t}`]=u}else typeof n=="string"&&(e.on[`${l}.${t}`]=n)}}const X=new Y;function q(){let a=0;return{next:()=>`event_${a++}`}}class J{constructor(e,t,i,n,r){this.resolver=e,this.merger=t,this.mapper=i,this.eventWiring=n,this.stateExpansion=r}walkAndMap(e,t,i){const n=new Map,r=q(),o={value:0},l=new Set;return{widgets:this.walkItems(e,t,n,i,r,o,l),eventRegistry:n}}walkItems(e,t,i,n,r,o,l){return e.flatMap(u=>{if(u.type!=="ITEMS")throw new Error("Unexpected gui shortcut type");return u.items.map(c=>this.processItem(c,u.itemType,u.tags,t,i,n,r,o,l))})}processItem(e,t,i,n,r,o,l,u,c){const g=t,d=s.getItemTypeHandler(t),_=d.parseEntry(e),m=this.buildBaseDef(_),k=this.buildDecoratorForMatching(m,g,i),h=this.resolver.resolve(k,n),x=h.leafSelectors.filter(p=>p.targetState!=null),O={leafSelectors:h.leafSelectors.filter(p=>p.targetState==null),sensibleDefaults:h.sensibleDefaults};let f=this.merger.merge(m,g,O);d.afterMerge&&(f=d.afterMerge(f,{eventRegistry:r,formConfig:o,eventIdGenerator:l})),f=this.eventWiring.wireInputLayoutEvents(f,r,l);const{cleanedResult:b,stateData:S}=this.stateExpansion.extractFromMergeResult(f,x);let y;if(d.buildCustomWidget){const p=this.buildCustomWidgetContext(_.children,n,r,o,l,u,c);y=this.buildCustomWidget(d,b,p)}else y=this.mapper.mapToWidget(b,g);if(typeof y!="function"){const p=y;p.uid||(p.path&&!c.has(p.path)?(p.uid=p.path,c.add(p.path)):p.uid=`dx_${u.value++}`)}if(this.stateExpansion.hasStateData(S))if(typeof y=="function"){const p=y;y=(w=>{const M=p(w);return this.stateExpansion.applyToWidget(M,S,r,l)})}else y=this.stateExpansion.applyToWidget(y,S,r,l);return y}buildCustomWidgetContext(e,t,i,n,r,o,l){return{children:e,mapStaticDef:(u,c)=>this.mapper.mapStaticDef(u,c),walkChildren:u=>this.walkItems(u,t,i,n,r,o,l)}}buildCustomWidget(e,t,i){return e.buildCustomWidget(t,i)}buildBaseDef(e){const t=e.baseDef;return typeof t=="function"?i=>{const r=t(i??{});return e.path!=null?{...r,path:e.path}:r}:e.path!=null?{...t,path:e.path}:t}buildDecoratorForMatching(e,t,i){if(typeof e=="function")return{itemType:t,tags:[...i]};const n=[...i,..."tags"in e&&e.tags?e.tags:[]],r="uid"in e?e.uid:void 0,o="type"in e?e.type:void 0;return{itemType:t,tags:n,uid:r,type:o}}}class Q{constructor(e,t){this.selectorNormalizer=e,this.walker=t}processDxFacade(e,t=[],i){const{defs:n,gslSelectors:r,formConfig:o}=this.prepareForm(e,t,i),{widgets:l,eventRegistry:u}=this.walker.walkAndMap(n,r,o),c=l[0];return this.buildResult({form:c},u,o)}prepareForm(e,t,i){const r=(Array.isArray(e)?[...e]:[e]).map(u=>typeof u=="function"?s._guiDisplay(u):u),o=this.selectorNormalizer.normalizeSelectors(t),l={...this.selectorNormalizer.extractFormConfig(),...i};if(!l.suppressAutomaticStack){const u={def:{uid:"#root",direction:"column",widgetName:"flex"},children:r};return{defs:[{type:"ITEMS",itemType:s.GuiItemTypes.LAYOUTS,items:[u],tags:[]}],gslSelectors:o,formConfig:l}}return{defs:r,gslSelectors:o,formConfig:l}}convertStateNames(e){const t={};for(const[i,n]of Object.entries(e))t[i.replace(/\$/g,":")]=n;return t}buildResult(e,t,i){i.states&&Object.keys(i.states).length>0&&(e={...e,states:this.convertStateNames(i.states)});const n={form:e};return t.size>0&&(n.events=r=>{const o=t.get(r.name);if(o){const l=c=>{if(c&&typeof c=="object"&&"path"in c&&!("type"in c)){const{path:g,...d}=c;for(const[_,m]of Object.entries(d))r.callback({type:"OVERRIDE_WIDGET_PROP",payload:{path:g,prop:_,value:m}})}else r.callback(c)},u={...r,callback:l,update:l};o(u)}}),i.dependencies&&(n.dependencies=i.dependencies),i.widgetLoaders&&(n.widgetLoaders=i.widgetLoaders),i.validateOn&&(n.validateOn=i.validateOn),i.itemRenderers&&(n.itemRenderers=i.itemRenderers),n}}const Z=new J(F,z,K,s.eventWiringService,X),C=new Q(V,Z);function R(a){return typeof a=="function"?!0:Array.isArray(a)?a.length===0||a.every(T):T(a)}function T(a){if(typeof a=="function")return!0;if(a===null||typeof a!="object")return!1;const e=a;return e.type==="ITEMS"&&typeof e.itemType=="string"}const I=Object.freeze({}),ee=Object.freeze({}),A=new WeakMap;function U(a,e){return a==null?e:typeof a=="object"?a:{}}function te(a,e,t){if(!R(a))return{formDef:a};const i=U(a,I),n=U(e,I),r=U(t,ee);let o=A.get(i);o||(o=new WeakMap,A.set(i,o));let l=o.get(n);l||(l=new WeakMap,o.set(n,l));const u=l.get(r);if(u)return u;const c=C.processDxFacade(a,e,t),g={formDef:c.form,formEvent:c.events,dependencies:c.dependencies,widgetLoaders:c.widgetLoaders,validateOn:c.validateOn,itemRenderers:c.itemRenderers};return l.set(r,g),g}class se{create(e){return{states:e.states,form:{uid:"gui-root-uid",type:"flex",kind:"layout",children:e.form}}}}function ne(){return new se}const ie=a=>a!==null&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"label")&&Object.prototype.hasOwnProperty.call(a,"value");function re(a,e){if(a!=null&&typeof a=="object"&&"__rid"in a)return a.__rid;const t=e();return Object.defineProperty(a,"__rid",{value:t,enumerable:!1,configurable:!1}),t}exports._gslAccordionByUid=s._gslAccordionByUid;exports._gslAccordions=s._gslAccordions;exports._gslActionByUid=s._gslActionByUid;exports._gslActions=s._gslActions;exports._gslAlertByUid=s._gslAlertByUid;exports._gslAlerts=s._gslAlerts;exports._gslBooleanInputs=s._gslBooleanInputs;exports._gslCalendarByUid=s._gslCalendarByUid;exports._gslCalendars=s._gslCalendars;exports._gslCheckboxByUid=s._gslCheckboxByUid;exports._gslCheckboxes=s._gslCheckboxes;exports._gslCurrencies=s._gslCurrencies;exports._gslCurrencyByUid=s._gslCurrencyByUid;exports._gslCustomActionByUid=s._gslCustomActionByUid;exports._gslCustomActions=s._gslCustomActions;exports._gslCustomDisplayByUid=s._gslCustomDisplayByUid;exports._gslCustomDisplays=s._gslCustomDisplays;exports._gslCustomInputByUid=s._gslCustomInputByUid;exports._gslCustomInputs=s._gslCustomInputs;exports._gslCustomLayoutByUid=s._gslCustomLayoutByUid;exports._gslCustomLayouts=s._gslCustomLayouts;exports._gslDateInputByUid=s._gslDateInputByUid;exports._gslDateInputs=s._gslDateInputs;exports._gslDatePickerByUid=s._gslDatePickerByUid;exports._gslDatePickers=s._gslDatePickers;exports._gslDisplayByUid=s._gslDisplayByUid;exports._gslDisplays=s._gslDisplays;exports._gslDropdownByUid=s._gslDropdownByUid;exports._gslDropdowns=s._gslDropdowns;exports._gslInputByUid=s._gslInputByUid;exports._gslInputs=s._gslInputs;exports._gslLayoutByUid=s._gslLayoutByUid;exports._gslLayouts=s._gslLayouts;exports._gslListByUid=s._gslListByUid;exports._gslLists=s._gslLists;exports._gslMarkdownByUid=s._gslMarkdownByUid;exports._gslMarkdownTextByUid=s._gslMarkdownTextByUid;exports._gslMarkdownTexts=s._gslMarkdownTexts;exports._gslMarkdowns=s._gslMarkdowns;exports._gslNumberInputs=s._gslNumberInputs;exports._gslPasswordByUid=s._gslPasswordByUid;exports._gslPasswords=s._gslPasswords;exports._gslRadiogroupByUid=s._gslRadiogroupByUid;exports._gslRadiogroups=s._gslRadiogroups;exports._gslRangeCalendarByUid=s._gslRangeCalendarByUid;exports._gslRangeCalendars=s._gslRangeCalendars;exports._gslRangeDateInputByUid=s._gslRangeDateInputByUid;exports._gslRangeDateInputs=s._gslRangeDateInputs;exports._gslRangeDatePickerByUid=s._gslRangeDatePickerByUid;exports._gslRangeDatePickers=s._gslRangeDatePickers;exports._gslRepeaterByUid=s._gslRepeaterByUid;exports._gslRepeaters=s._gslRepeaters;exports._gslSelectByUid=s._gslSelectByUid;exports._gslSelects=s._gslSelects;exports._gslTabs=s._gslTabs;exports._gslTabsByUid=s._gslTabsByUid;exports._gslTags=s._gslTags;exports._gslTagsByUid=s._gslTagsByUid;exports._gslTextInputs=s._gslTextInputs;exports._gslTextareaByUid=s._gslTextareaByUid;exports._gslTextareas=s._gslTextareas;exports._guiAccordion=s._guiAccordion;exports._guiAlert=s._guiAlert;exports._guiBooleanInput=s._guiBooleanInput;exports._guiButton=s._guiButton;exports._guiCalendar=s._guiCalendar;exports._guiCheckbox=s._guiCheckbox;exports._guiCurrency=s._guiCurrency;exports._guiCustomAction=s._guiCustomAction;exports._guiCustomDisplay=s._guiCustomDisplay;exports._guiCustomInput=s._guiCustomInput;exports._guiCustomLayout=s._guiCustomLayout;exports._guiDateInput=s._guiDateInput;exports._guiDatePicker=s._guiDatePicker;exports._guiDisplay=s._guiDisplay;exports._guiDropdown=s._guiDropdown;exports._guiFlex=s._guiFlex;exports._guiGrid=s._guiGrid;exports._guiHorizontalFlex=s._guiHorizontalFlex;exports._guiHorizontalGrid=s._guiHorizontalGrid;exports._guiList=s._guiList;exports._guiMarkdown=s._guiMarkdown;exports._guiMarkdownText=s._guiMarkdownText;exports._guiNumberInput=s._guiNumberInput;exports._guiPassword=s._guiPassword;exports._guiRadiogroup=s._guiRadiogroup;exports._guiRangeCalendar=s._guiRangeCalendar;exports._guiRangeDateInput=s._guiRangeDateInput;exports._guiRangeDatePicker=s._guiRangeDatePicker;exports._guiRepeater=s._guiRepeater;exports._guiSelect=s._guiSelect;exports._guiTabs=s._guiTabs;exports._guiTags=s._guiTags;exports._guiTextInput=s._guiTextInput;exports._guiTextarea=s._guiTextarea;exports._guiVerticalFlex=s._guiVerticalFlex;exports._guiVerticalGrid=s._guiVerticalGrid;exports.createGslSelector=s.createGslSelector;exports.defineShortcutType=s.defineShortcutType;exports.extractWidgetProps=s.extractWidgetProps;exports.processAutoLabel=s.processAutoLabel;exports.processAutoPlaceholder=s.processAutoPlaceholder;exports._gslStates=E;exports._gslTag=v;exports.formDefs=C;exports.getItemKey=re;exports.golemForm=ne;exports.isDxDefinitions=R;exports.isOption=ie;exports.resolveFormInput=te;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./register-xqotLLz5.cjs");require("@golemui/core");require("@golemui/gui-validators");function E(a,...e){return e.map(t=>({...t,targetState:a}))}function v(a,...e){return{kind:"aggregated",matcher:t=>t.tags?.includes(a)??!1,children:e}}const B={INPUTS:new Set(["INPUTS","TEXTAREA","PASSWORD","SELECT","DROPDOWN","RADIOGROUP","CHECKBOX","CALENDAR","DATE_INPUT","DATE_PICKER","RANGE_CALENDAR","RANGE_DATE_INPUT","RANGE_DATE_PICKER","CURRENCY","MARKDOWN","LIST","CUSTOM_INPUT","REPEATER","TAGS"]),ACTIONS:new Set(["ACTIONS","CUSTOM_ACTION"]),DISPLAYS:new Set(["DISPLAYS","ALERTS","MARKDOWN_TEXTS","CUSTOM_DISPLAY"]),LAYOUTS:new Set(["LAYOUTS","TABS","ACCORDION","CUSTOM_LAYOUT"])};function P(a,e){const t=B[a];return t?t.has(e):a===e}class L{resolve(e,t){const i=[];for(const r of t)r.kind==="aggregated"?this.collectFromAggregated(r,e,i):this.collectFromLeaf(r,e,i);const n=this.rollUpSensibleDefaults(i);return{leafSelectors:i,sensibleDefaults:n}}collectFromAggregated(e,t,i){if(e.matcher(t))for(const n of e.children)this.collectFromLeaf(n,t,i)}collectFromLeaf(e,t,i){P(e.selectorType,t.itemType??"")&&e.matcher(t)&&i.push(e)}rollUpSensibleDefaults(e){const t=new Map,i=(r,o)=>{const l=t.get(r)??[];l.push(o),t.set(r,l)};for(const r of e){const o=B[r.selectorType];if(o)for(const l of o)i(l,r);else i(r.selectorType,r)}const n={};for(const[r,o]of t)s.hasItemTypeHandler(r)&&(n[r]=s.getItemTypeHandler(r).rollUpSensibleDefaults(o));return n}}const F=new L;class j{deepMerge(e,t){if(t==null)return e;if(e==null||typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t))return t;const i={...e};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&!Array.isArray(t[n])&&t[n]!==null&&typeof e[n]=="object"&&!Array.isArray(e[n])&&e[n]!==null?i[n]=this.deepMerge(e[n],t[n]):i[n]=t[n]);return i}}const N=new j;class W{constructor(e){this.objectUtils=e}merge(e,t,i){let n={},r=null;typeof e=="function"&&(r=e);const o=this.collectDecorators(i);for(const c of o){if(r!=null){r=this.composeRuntimeFunctions(r,c);continue}if(typeof c=="function"){const g=c({...n,...typeof e=="function"?{}:e});if(typeof g=="function"){r=this.createPromotedFunction(n,e,g,t,i);continue}n=this.objectUtils.deepMerge(n,g)}else n=this.objectUtils.deepMerge(n,c)}if(r!=null)return{kind:"dynamic",fn:this.wrapWithSensibleDefaults(r,n,t,i)};const l=this.objectUtils.deepMerge(e,n);return{kind:"static",def:this.applySensibleDefaults({...l},t,i)}}collectDecorators(e){const t=[];for(const i of e.leafSelectors){const n=i.config;n.override!=null&&t.push(n.override)}return t}applySensibleDefaults(e,t,i){if(!s.hasItemTypeHandler(t))return e;const n=i.sensibleDefaults[t]??{};return s.getItemTypeHandler(t).applySensibleDefaults(e,n)}createPromotedFunction(e,t,i,n,r){return o=>{const l=i(o);let u=this.objectUtils.deepMerge(e,l);return u=this.objectUtils.deepMerge(u,t),this.applySensibleDefaults(u,n,r)}}wrapWithSensibleDefaults(e,t,i,n){return r=>{let o=e(r);return Object.keys(t).length>0&&(o=this.objectUtils.deepMerge(t,o)),this.applySensibleDefaults(o,i,n)}}composeRuntimeFunctions(e,t){return typeof t=="function"?i=>{const n=e(i),r=t(n);return typeof r=="function"?r(i):this.objectUtils.deepMerge(r,n)}:i=>{const n=e(i);return this.objectUtils.deepMerge(n,t)}}}const z=new W(N);class G{mapToWidget(e,t){if(e.kind==="dynamic"){const i=e.fn;return(n=>{const r=i(n);return this.mapStaticDef(r,t)})}return this.mapStaticDef(e.def,t)}mapStaticDef(e,t){const i=s.getItemTypeHandler(t).mapToWidget(e);return this.applyBaseWidgetFields(i,e)}applyBaseWidgetFields(e,t){return t.size!=null&&(e.size=t.size),t.defaultValue!=null&&e.kind==="input"&&(e.defaultValue=t.defaultValue),t.on!=null&&(e.on=t.on),t.include!=null&&(e.include=t.include),t.exclude!=null&&(e.exclude=t.exclude),e}}const K=new G;class H{normalizeSelectors(e){const t=Array.isArray(e)?e:[e],i=[],n=[];for(const r of t)r.kind==="leaf"?n.push(r):i.push(r);return n.length>0&&i.unshift({kind:"aggregated",matcher:()=>!0,children:n}),i}extractFormConfig(){return{suppressAutomaticStack:!1}}}const V=new H,$={input:new Set(["disabled","readonly","label","validator","size"]),action:new Set(["disabled","label","size"]),layout:new Set(["size"]),display:new Set([])},D={onChange:"change",onLoad:"load",onFilter:"filter",onClick:"click"};class Y{extractFromMergeResult(e,t){const i={};for(const l of t){const u=l.targetState,c=l.config,g=c.override&&typeof c.override!="function"?c.override:c;i[u]={...i[u]||{},...g}}if(e.kind==="dynamic"){const l=e.fn;return{cleanedResult:{kind:"dynamic",fn:c=>{const g=l(c),{states:d,..._}=g;return _}},stateData:{stateOverrides:i}}}const{states:n,...r}=e.def,o={};for(const[l,u]of Object.entries(i))o[l]={...u};if(n)for(const[l,u]of Object.entries(n))o[l]={...o[l]||{},...u};return{cleanedResult:{kind:"static",def:r},stateData:{stateOverrides:o}}}applyToWidget(e,t,i,n){const{stateOverrides:r}=t;if(Object.keys(r).length===0)return e;const o={...e},l=e.kind,u=$[l]||new Set;e.props&&(o.props={...e.props}),e.on&&(o.on={...e.on});for(const[c,g]of Object.entries(r))for(const[d,_]of Object.entries(g))d==="visible"?this.applyVisibility(o,c,_):D[d]?this.applyStateEvent(o,c,d,_,i,n):u.has(d)?o[`${d}.${c}`]=_:(o.props||(o.props={}),o.props[`${d}.${c}`]=_);return o}hasStateData(e){return Object.keys(e.stateOverrides).length>0}applyVisibility(e,t,i){if(i){const n=e.include?.in||[];e.include={...e.include||{},in:[...n,t]}}else{const n=e.exclude?.from||[];e.exclude={...e.exclude||{},from:[...n,t]}}}applyStateEvent(e,t,i,n,r,o){const l=D[i];if(e.on||(e.on={}),typeof n=="function"){const u=o.next();r.set(u,n),e.on[`${l}.${t}`]=u}else typeof n=="string"&&(e.on[`${l}.${t}`]=n)}}const X=new Y;function q(){let a=0;return{next:()=>`event_${a++}`}}class J{constructor(e,t,i,n,r){this.resolver=e,this.merger=t,this.mapper=i,this.eventWiring=n,this.stateExpansion=r}walkAndMap(e,t,i){const n=new Map,r=q(),o={value:0},l=new Set;return{widgets:this.walkItems(e,t,n,i,r,o,l),eventRegistry:n}}walkItems(e,t,i,n,r,o,l){return e.flatMap(u=>{if(u.type!=="ITEMS")throw new Error("Unexpected gui shortcut type");return u.items.map(c=>this.processItem(c,u.itemType,u.tags,t,i,n,r,o,l))})}processItem(e,t,i,n,r,o,l,u,c){const g=t,d=s.getItemTypeHandler(t),_=d.parseEntry(e),m=this.buildBaseDef(_),k=this.buildDecoratorForMatching(m,g,i),h=this.resolver.resolve(k,n),x=h.leafSelectors.filter(p=>p.targetState!=null),O={leafSelectors:h.leafSelectors.filter(p=>p.targetState==null),sensibleDefaults:h.sensibleDefaults};let f=this.merger.merge(m,g,O);d.afterMerge&&(f=d.afterMerge(f,{eventRegistry:r,formConfig:o,eventIdGenerator:l})),f=this.eventWiring.wireInputLayoutEvents(f,r,l);const{cleanedResult:b,stateData:S}=this.stateExpansion.extractFromMergeResult(f,x);let y;if(d.buildCustomWidget){const p=this.buildCustomWidgetContext(_.children,n,r,o,l,u,c);y=this.buildCustomWidget(d,b,p)}else y=this.mapper.mapToWidget(b,g);if(typeof y!="function"){const p=y;p.uid||(p.path&&!c.has(p.path)?(p.uid=p.path,c.add(p.path)):p.uid=`dx_${u.value++}`)}if(this.stateExpansion.hasStateData(S))if(typeof y=="function"){const p=y;y=(w=>{const M=p(w);return this.stateExpansion.applyToWidget(M,S,r,l)})}else y=this.stateExpansion.applyToWidget(y,S,r,l);return y}buildCustomWidgetContext(e,t,i,n,r,o,l){return{children:e,mapStaticDef:(u,c)=>this.mapper.mapStaticDef(u,c),walkChildren:u=>this.walkItems(u,t,i,n,r,o,l)}}buildCustomWidget(e,t,i){return e.buildCustomWidget(t,i)}buildBaseDef(e){const t=e.baseDef;return typeof t=="function"?i=>{const r=t(i??{});return e.path!=null?{...r,path:e.path}:r}:e.path!=null?{...t,path:e.path}:t}buildDecoratorForMatching(e,t,i){if(typeof e=="function")return{itemType:t,tags:[...i]};const n=[...i,..."tags"in e&&e.tags?e.tags:[]],r="uid"in e?e.uid:void 0,o="type"in e?e.type:void 0;return{itemType:t,tags:n,uid:r,type:o}}}class Q{constructor(e,t){this.selectorNormalizer=e,this.walker=t}processDxFacade(e,t=[],i){const{defs:n,gslSelectors:r,formConfig:o}=this.prepareForm(e,t,i),{widgets:l,eventRegistry:u}=this.walker.walkAndMap(n,r,o),c=l[0];return this.buildResult({form:c},u,o)}prepareForm(e,t,i){const r=(Array.isArray(e)?[...e]:[e]).map(u=>typeof u=="function"?s._guiDisplay(u):u),o=this.selectorNormalizer.normalizeSelectors(t),l={...this.selectorNormalizer.extractFormConfig(),...i};if(!l.suppressAutomaticStack){const u={def:{uid:"#root",direction:"column",widgetName:"flex"},children:r};return{defs:[{type:"ITEMS",itemType:s.GuiItemTypes.LAYOUTS,items:[u],tags:[]}],gslSelectors:o,formConfig:l}}return{defs:r,gslSelectors:o,formConfig:l}}convertStateNames(e){const t={};for(const[i,n]of Object.entries(e))t[i.replace(/\$/g,":")]=n;return t}buildResult(e,t,i){i.states&&Object.keys(i.states).length>0&&(e={...e,states:this.convertStateNames(i.states)});const n={form:e};return t.size>0&&(n.events=r=>{const o=t.get(r.name);if(o){const l=c=>{if(c&&typeof c=="object"&&"path"in c&&!("type"in c)){const{path:g,...d}=c;for(const[_,m]of Object.entries(d))r.callback({type:"OVERRIDE_WIDGET_PROP",payload:{path:g,prop:_,value:m}})}else r.callback(c)},u={...r,callback:l,update:l};o(u)}}),i.dependencies&&(n.dependencies=i.dependencies),i.widgetLoaders&&(n.widgetLoaders=i.widgetLoaders),i.validateOn&&(n.validateOn=i.validateOn),i.itemRenderers&&(n.itemRenderers=i.itemRenderers),n}}const Z=new J(F,z,K,s.eventWiringService,X),C=new Q(V,Z);function R(a){return typeof a=="function"?!0:Array.isArray(a)?a.length===0||a.every(T):T(a)}function T(a){if(typeof a=="function")return!0;if(a===null||typeof a!="object")return!1;const e=a;return e.type==="ITEMS"&&typeof e.itemType=="string"}const I=Object.freeze({}),ee=Object.freeze({}),A=new WeakMap;function U(a,e){return a==null?e:typeof a=="object"?a:{}}function te(a,e,t){if(!R(a))return{formDef:a};const i=U(a,I),n=U(e,I),r=U(t,ee);let o=A.get(i);o||(o=new WeakMap,A.set(i,o));let l=o.get(n);l||(l=new WeakMap,o.set(n,l));const u=l.get(r);if(u)return u;const c=C.processDxFacade(a,e,t),g={formDef:c.form,formEvent:c.events,dependencies:c.dependencies,widgetLoaders:c.widgetLoaders,validateOn:c.validateOn,itemRenderers:c.itemRenderers};return l.set(r,g),g}class se{create(e){return{states:e.states,form:{uid:"gui-root-uid",type:"flex",kind:"layout",children:e.form}}}}function ne(){return new se}const ie=a=>a!==null&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"label")&&Object.prototype.hasOwnProperty.call(a,"value");function re(a,e){if(a!=null&&typeof a=="object"&&"__rid"in a)return a.__rid;const t=e();return Object.defineProperty(a,"__rid",{value:t,enumerable:!1,configurable:!1}),t}exports._gslAccordionByUid=s._gslAccordionByUid;exports._gslAccordions=s._gslAccordions;exports._gslActionByUid=s._gslActionByUid;exports._gslActions=s._gslActions;exports._gslAlertByUid=s._gslAlertByUid;exports._gslAlerts=s._gslAlerts;exports._gslBooleanInputs=s._gslBooleanInputs;exports._gslCalendarByUid=s._gslCalendarByUid;exports._gslCalendars=s._gslCalendars;exports._gslCheckboxByUid=s._gslCheckboxByUid;exports._gslCheckboxes=s._gslCheckboxes;exports._gslCurrencies=s._gslCurrencies;exports._gslCurrencyByUid=s._gslCurrencyByUid;exports._gslCustomActionByUid=s._gslCustomActionByUid;exports._gslCustomActions=s._gslCustomActions;exports._gslCustomDisplayByUid=s._gslCustomDisplayByUid;exports._gslCustomDisplays=s._gslCustomDisplays;exports._gslCustomInputByUid=s._gslCustomInputByUid;exports._gslCustomInputs=s._gslCustomInputs;exports._gslCustomLayoutByUid=s._gslCustomLayoutByUid;exports._gslCustomLayouts=s._gslCustomLayouts;exports._gslDateInputByUid=s._gslDateInputByUid;exports._gslDateInputs=s._gslDateInputs;exports._gslDatePickerByUid=s._gslDatePickerByUid;exports._gslDatePickers=s._gslDatePickers;exports._gslDisplayByUid=s._gslDisplayByUid;exports._gslDisplays=s._gslDisplays;exports._gslDropdownByUid=s._gslDropdownByUid;exports._gslDropdowns=s._gslDropdowns;exports._gslInputByUid=s._gslInputByUid;exports._gslInputs=s._gslInputs;exports._gslLayoutByUid=s._gslLayoutByUid;exports._gslLayouts=s._gslLayouts;exports._gslListByUid=s._gslListByUid;exports._gslLists=s._gslLists;exports._gslMarkdownByUid=s._gslMarkdownByUid;exports._gslMarkdownTextByUid=s._gslMarkdownTextByUid;exports._gslMarkdownTexts=s._gslMarkdownTexts;exports._gslMarkdowns=s._gslMarkdowns;exports._gslNumberInputs=s._gslNumberInputs;exports._gslPasswordByUid=s._gslPasswordByUid;exports._gslPasswords=s._gslPasswords;exports._gslRadiogroupByUid=s._gslRadiogroupByUid;exports._gslRadiogroups=s._gslRadiogroups;exports._gslRangeCalendarByUid=s._gslRangeCalendarByUid;exports._gslRangeCalendars=s._gslRangeCalendars;exports._gslRangeDateInputByUid=s._gslRangeDateInputByUid;exports._gslRangeDateInputs=s._gslRangeDateInputs;exports._gslRangeDatePickerByUid=s._gslRangeDatePickerByUid;exports._gslRangeDatePickers=s._gslRangeDatePickers;exports._gslRepeaterByUid=s._gslRepeaterByUid;exports._gslRepeaters=s._gslRepeaters;exports._gslSelectByUid=s._gslSelectByUid;exports._gslSelects=s._gslSelects;exports._gslTabs=s._gslTabs;exports._gslTabsByUid=s._gslTabsByUid;exports._gslTags=s._gslTags;exports._gslTagsByUid=s._gslTagsByUid;exports._gslTextInputs=s._gslTextInputs;exports._gslTextareaByUid=s._gslTextareaByUid;exports._gslTextareas=s._gslTextareas;exports._guiAccordion=s._guiAccordion;exports._guiAlert=s._guiAlert;exports._guiBooleanInput=s._guiBooleanInput;exports._guiButton=s._guiButton;exports._guiCalendar=s._guiCalendar;exports._guiCheckbox=s._guiCheckbox;exports._guiCurrency=s._guiCurrency;exports._guiCustomAction=s._guiCustomAction;exports._guiCustomDisplay=s._guiCustomDisplay;exports._guiCustomInput=s._guiCustomInput;exports._guiCustomLayout=s._guiCustomLayout;exports._guiDateInput=s._guiDateInput;exports._guiDatePicker=s._guiDatePicker;exports._guiDisplay=s._guiDisplay;exports._guiDropdown=s._guiDropdown;exports._guiFlex=s._guiFlex;exports._guiGrid=s._guiGrid;exports._guiHorizontalFlex=s._guiHorizontalFlex;exports._guiHorizontalGrid=s._guiHorizontalGrid;exports._guiList=s._guiList;exports._guiMarkdown=s._guiMarkdown;exports._guiMarkdownText=s._guiMarkdownText;exports._guiNumberInput=s._guiNumberInput;exports._guiPassword=s._guiPassword;exports._guiRadiogroup=s._guiRadiogroup;exports._guiRangeCalendar=s._guiRangeCalendar;exports._guiRangeDateInput=s._guiRangeDateInput;exports._guiRangeDatePicker=s._guiRangeDatePicker;exports._guiRepeater=s._guiRepeater;exports._guiSelect=s._guiSelect;exports._guiTabs=s._guiTabs;exports._guiTags=s._guiTags;exports._guiTextInput=s._guiTextInput;exports._guiTextarea=s._guiTextarea;exports._guiVerticalFlex=s._guiVerticalFlex;exports._guiVerticalGrid=s._guiVerticalGrid;exports.createGslSelector=s.createGslSelector;exports.defineShortcutType=s.defineShortcutType;exports.extractWidgetProps=s.extractWidgetProps;exports.processAutoLabel=s.processAutoLabel;exports.processAutoPlaceholder=s.processAutoPlaceholder;exports._gslStates=E;exports._gslTag=v;exports.formDefs=C;exports.getItemKey=re;exports.golemForm=ne;exports.isDxDefinitions=R;exports.isOption=ie;exports.resolveFormInput=te;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemui/gui-shared",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.umd.cjs",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"*.md"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@golemui/core": "1.0.0-rc.
|
|
34
|
-
"@golemui/gui-validators": "1.0.0-rc.
|
|
33
|
+
"@golemui/core": "1.0.0-rc.3",
|
|
34
|
+
"@golemui/gui-validators": "1.0.0-rc.3"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|