@golemui/gui-shared 1.3.0 → 1.4.0
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 +27 -0
- package/index.js +1 -1
- package/index.umd.cjs +1 -1
- package/internals.d.ts +6 -5
- package/internals.js +171 -143
- package/internals.umd.cjs +1 -1
- package/lib/dx/gui.d.ts +14 -0
- package/lib/dx/index.d.ts +6 -0
- package/lib/dx/shortcuts/multi-dropdown/guiMultiDropdown.impl.d.ts +7 -0
- package/lib/dx/shortcuts/multi-dropdown/multi-dropdown.domain.d.ts +17 -0
- package/lib/dx/shortcuts/multi-dropdown/register.d.ts +4 -0
- package/lib/dx/shortcuts/multi-list/guiMultiList.impl.d.ts +7 -0
- package/lib/dx/shortcuts/multi-list/multi-list.domain.d.ts +16 -0
- package/lib/dx/shortcuts/multi-list/register.d.ts +4 -0
- package/lib/golem-form.d.ts +8 -2
- package/lib/utils/layout-ids.d.ts +44 -0
- package/lib/utils/repeater.d.ts +19 -0
- package/lib/widget.props.d.ts +38 -7
- package/lib/widgets.d.ts +2 -2
- package/package.json +4 -4
- package/resolveFormInput-BL_FxIPF.cjs +1 -0
- package/{resolveFormInput-CsFeoGjz.js → resolveFormInput-D2kg0VqQ.js} +507 -431
- package/resolveFormInput-UcmQ-kme.cjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 1.4.0-rc.0 (2026-08-26)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **angular:** read the store through one widgetViewModel$ subscription per widget ([#296](https://github.com/golemui/golemui/pull/296))
|
|
6
|
+
- **gui-components:** in-place pill editing for range inputs ([#291](https://github.com/golemui/golemui/pull/291))
|
|
7
|
+
- **gui-components:** add MultiList and MultiDropdown ([#284](https://github.com/golemui/golemui/pull/284))
|
|
8
|
+
|
|
9
|
+
### 🩹 Fixes
|
|
10
|
+
|
|
11
|
+
- make tabs and accordion DOM ids unique and keep their aria pairs correct ([#310](https://github.com/golemui/golemui/pull/310))
|
|
12
|
+
|
|
13
|
+
### ❤️ Thank You
|
|
14
|
+
|
|
15
|
+
- Mud Scientist @mudscientist
|
|
16
|
+
- Raúl Jiménez @Elecash
|
|
17
|
+
|
|
18
|
+
## 1.3.0 (2026-08-16)
|
|
19
|
+
|
|
20
|
+
### 🚀 Features
|
|
21
|
+
|
|
22
|
+
- **schemas:** layer the published JSON schemas into a core and a gui tree ([#281](https://github.com/golemui/golemui/pull/281))
|
|
23
|
+
|
|
24
|
+
### ❤️ Thank You
|
|
25
|
+
|
|
26
|
+
- Mud Scientist @mudscientist
|
|
27
|
+
|
|
1
28
|
## 1.3.0-rc.0 (2026-08-14)
|
|
2
29
|
|
|
3
30
|
### 🚀 Features
|
package/index.js
CHANGED
package/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./resolveFormInput-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./resolveFormInput-BL_FxIPF.cjs");require("@golemui/dx");require("@golemui/core");function c(e){return typeof e=="object"&&e!==null&&"$ref"in e&&typeof e.$ref=="string"&&Object.keys(e).length===1}async function a(e,t){const r=new URL(e,t).href,n=await fetch(r);if(!n.ok)throw new Error(`Failed to load form chunk ${r}: ${n.status}`);const{$schema:s,...u}=await n.json();return o(u,r)}async function o(e,t){if(c(e))return a(e.$ref,t);const r=e;if(Array.isArray(r.children)){const n=await Promise.all(r.children.map(s=>o(s,t)));return{...r,children:n}}return e}async function f(e,t){const r=await Promise.all(e.form.map(n=>o(n,t)));return{...e,form:r}}exports.gui=i.gui;exports.resolveChunkRefs=f;
|
package/internals.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { _guiAccordion, _guiAlert, _guiBooleanInput, _guiButton, _guiCalendar, _guiDateTimeCalendar, _guiDateTimePicker, _guiCheckbox, _guiCurrency, _guiCustomAction, _guiCustomDisplay, _guiCustomInput, _guiCustomLayout, _guiDateInput, _guiDatePicker, _guiDateTimeInput, _guiDisplay, _guiDropdown, _guiFlex, _guiGrid, _guiHorizontalFlex, _guiHorizontalGrid, _guiList, _guiMarkdown, _guiMarkdownText, _guiNumberInput, _guiPassword, _guiRadiogroup, _guiRangeCalendar, _guiRangeDateInput, _guiRangeDateTimeInput, _guiRangeDateTimeCalendar, _guiRangeDateTimePicker, _guiRangeTimeInput, _guiRangeDatePicker, _guiRangeTimePicker, _guiRepeater, _guiSelect, _guiTabs, _guiTags, _guiTextarea, _guiTextInput, _guiTimeInput, _guiTimePicker, _guiVerticalFlex, _guiVerticalGrid, } from './lib/dx';
|
|
2
|
-
export { _gslAccordionByUid, _gslAccordions, _gslActionByUid, _gslActions, _gslAlertByUid, _gslAlerts, _gslBooleanInputs, _gslCalendarByUid, _gslCalendars, _gslDateTimeCalendarByUid, _gslDateTimeCalendars, _gslCheckboxByUid, _gslCheckboxes, _gslCurrencies, _gslCurrencyByUid, _gslCustomActionByUid, _gslCustomActions, _gslCustomDisplayByUid, _gslCustomDisplays, _gslCustomInputByUid, _gslCustomInputs, _gslCustomLayoutByUid, _gslCustomLayouts, _gslDateInputByUid, _gslDateInputs, _gslDatePickerByUid, _gslDatePickers, _gslDateTimePickerByUid, _gslDateTimePickers, _gslDateTimeInputByUid, _gslDateTimeInputs, _gslDisplayByUid, _gslDisplays, _gslDropdownByUid, _gslDropdowns, _gslInputByUid, _gslInputs, _gslLayoutByUid, _gslLayouts, _gslListByUid, _gslLists, _gslMarkdownByUid, _gslMarkdowns, _gslMarkdownTextByUid, _gslMarkdownTexts, _gslNumberInputs, _gslPasswordByUid, _gslPasswords, _gslRadiogroupByUid, _gslRadiogroups, _gslRangeCalendarByUid, _gslRangeCalendars, _gslRangeDateInputByUid, _gslRangeDateInputs, _gslRangeDateTimeInputByUid, _gslRangeDateTimeInputs, _gslRangeDateTimeCalendarByUid, _gslRangeDateTimeCalendars, _gslRangeDateTimePickerByUid, _gslRangeDateTimePickers, _gslRangeTimeInputByUid, _gslRangeTimeInputs, _gslRangeDatePickerByUid, _gslRangeDatePickers, _gslRangeTimePickerByUid, _gslRangeTimePickers, _gslRepeaterByUid, _gslRepeaters, _gslSelectByUid, _gslSelects, _gslStates, _gslTabs, _gslTabsByUid, _gslTag, _gslTags, _gslTagsByUid, _gslTextareaByUid, _gslTextareas, _gslTextInputs, _gslTimeInputByUid, _gslTimeInputs, _gslTimePickerByUid, _gslTimePickers, } from './lib/dx';
|
|
1
|
+
export { _guiAccordion, _guiAlert, _guiBooleanInput, _guiButton, _guiCalendar, _guiDateTimeCalendar, _guiDateTimePicker, _guiCheckbox, _guiCurrency, _guiCustomAction, _guiCustomDisplay, _guiCustomInput, _guiCustomLayout, _guiDateInput, _guiDatePicker, _guiDateTimeInput, _guiDisplay, _guiDropdown, _guiFlex, _guiGrid, _guiHorizontalFlex, _guiHorizontalGrid, _guiList, _guiMarkdown, _guiMarkdownText, _guiMultiDropdown, _guiMultiList, _guiNumberInput, _guiPassword, _guiRadiogroup, _guiRangeCalendar, _guiRangeDateInput, _guiRangeDateTimeInput, _guiRangeDateTimeCalendar, _guiRangeDateTimePicker, _guiRangeTimeInput, _guiRangeDatePicker, _guiRangeTimePicker, _guiRepeater, _guiSelect, _guiTabs, _guiTags, _guiTextarea, _guiTextInput, _guiTimeInput, _guiTimePicker, _guiVerticalFlex, _guiVerticalGrid, } from './lib/dx';
|
|
2
|
+
export { _gslAccordionByUid, _gslAccordions, _gslActionByUid, _gslActions, _gslAlertByUid, _gslAlerts, _gslBooleanInputs, _gslCalendarByUid, _gslCalendars, _gslDateTimeCalendarByUid, _gslDateTimeCalendars, _gslCheckboxByUid, _gslCheckboxes, _gslCurrencies, _gslCurrencyByUid, _gslCustomActionByUid, _gslCustomActions, _gslCustomDisplayByUid, _gslCustomDisplays, _gslCustomInputByUid, _gslCustomInputs, _gslCustomLayoutByUid, _gslCustomLayouts, _gslDateInputByUid, _gslDateInputs, _gslDatePickerByUid, _gslDatePickers, _gslDateTimePickerByUid, _gslDateTimePickers, _gslDateTimeInputByUid, _gslDateTimeInputs, _gslDisplayByUid, _gslDisplays, _gslDropdownByUid, _gslDropdowns, _gslInputByUid, _gslInputs, _gslLayoutByUid, _gslLayouts, _gslListByUid, _gslLists, _gslMarkdownByUid, _gslMarkdowns, _gslMarkdownTextByUid, _gslMarkdownTexts, _gslMultiDropdownByUid, _gslMultiDropdowns, _gslMultiListByUid, _gslMultiLists, _gslNumberInputs, _gslPasswordByUid, _gslPasswords, _gslRadiogroupByUid, _gslRadiogroups, _gslRangeCalendarByUid, _gslRangeCalendars, _gslRangeDateInputByUid, _gslRangeDateInputs, _gslRangeDateTimeInputByUid, _gslRangeDateTimeInputs, _gslRangeDateTimeCalendarByUid, _gslRangeDateTimeCalendars, _gslRangeDateTimePickerByUid, _gslRangeDateTimePickers, _gslRangeTimeInputByUid, _gslRangeTimeInputs, _gslRangeDatePickerByUid, _gslRangeDatePickers, _gslRangeTimePickerByUid, _gslRangeTimePickers, _gslRepeaterByUid, _gslRepeaters, _gslSelectByUid, _gslSelects, _gslStates, _gslTabs, _gslTabsByUid, _gslTag, _gslTags, _gslTagsByUid, _gslTextareaByUid, _gslTextareas, _gslTextInputs, _gslTimeInputByUid, _gslTimeInputs, _gslTimePickerByUid, _gslTimePickers, } from './lib/dx';
|
|
3
3
|
export { createGslSelector, defineShortcutType, extractWidgetProps, formDefs, isDxDefinitions, processAutoLabel, processAutoPlaceholder, resolveFormInput, } from './lib/dx';
|
|
4
|
-
export type { AccordionDecorator, ActionDecorator, AlertDecorator, BooleanDataInputDecorator, CalendarDecorator, DateTimeCalendarDecorator, GslDateTimeCalendarConfig, CheckboxDecorator, CurrencyDecorator, CustomActionDecorator, CustomDisplayDecorator, CustomInputDecorator, CustomLayoutDecorator, DateInputDecorator, DatePickerDecorator, DateTimePickerDecorator, DateTimeInputDecorator, DefOrCallback, DisplayDecorator, DropdownDecorator, DxActionBase, DxCommonFields, DxDisplayBase, DxDisplayRenderFn, DxFormEvent, DxInputBase, DxInternalFields, DxLayoutBase, DxResult, DxRuntimeParams, DxValidator, FormConfig, FormEvents, FormInput, GslAccordionConfig, GslActionsConfig, GslAlertsConfig, GslCalendarConfig, GslCheckboxConfig, GslConfigBase, GslCurrencyConfig, GslCustomActionConfig, GslCustomDisplayConfig, GslCustomInputConfig, GslCustomLayoutConfig, GslDateInputConfig, GslDatePickerConfig, GslDateTimePickerConfig, GslDateTimeInputConfig, GslDecoratorCallback, GslDisplaysConfig, GslDropdownConfig, GslInputsConfig, GslLayoutsConfig, GslListConfig, GslMarkdownConfig, GslPasswordConfig, GslRadiogroupConfig, GslRangeCalendarConfig, GslRangeDateInputConfig, GslRangeDateTimeInputConfig, GslRangeDateTimeCalendarConfig, GslRangeDateTimePickerConfig, GslRangeTimeInputConfig, GslRangeDatePickerConfig, GslRangeTimePickerConfig, GslRepeaterConfig, GslSelectConfig, GslTabsConfig, GslTagsConfig, GslTextareaConfig, GslTimeInputConfig, GslTimePickerConfig, GuiShortcutOf, InputDecorator, InputTags, LayoutDecorator, ListDecorator, MarkdownDecorator, NumberDataInputDecorator, PasswordDecorator, RadiogroupDecorator, RangeCalendarDecorator, RangeDateInputDecorator, RangeDateTimeInputDecorator, RangeDateTimeCalendarDecorator, RangeDateTimePickerDecorator, RangeTimeInputDecorator, RangeDatePickerDecorator, RangeTimePickerDecorator, RepeaterDecorator, ResolvedFormInput, SelectDecorator, ShortcutTypeSelectors, SimpleFieldDef, TabsDecorator, TagsDecorator, TextareaDecorator, TextDataInputDecorator, TimeInputDecorator, TimePickerDecorator, ValidShortcutType, } from './lib/dx';
|
|
5
|
-
export type { AccordionProps, AlertProps, ButtonProps, CalendarProps, DateTimeCalendarProps, DateTimePickerProps, CheckboxProps, ComponentRendererProps, CurrencyProps, DateinputProps, DatePickerProps, DateTimeInputProps, DateRange, DateTimeRange, DisabledTimeRange, DropdownProps, FlexProps, GridProps, ListItem, ListProps, MarkdownProps, MarkdownTextProps, NumberinputProps, OneOfProps, Option, OptionValue, PasswordProps, RadiogroupProps, RangeCalendarProps, RangeDateInputProps, RangeDatePickerProps, RangeDateTimeInputProps, RangeDateTimeCalendarProps, RangeDateTimePickerProps, RangeTimeInputProps, RangeTimePickerProps, RendererProps, RepeaterProps, SelectProps, TabsProps, TagsProps, TagsSeparator, TextareaProps, TextinputProps, TimeInputProps, TimePickerProps, TimeRange, ToggleProps, } from './lib/widget.props';
|
|
4
|
+
export type { AccordionDecorator, ActionDecorator, AlertDecorator, BooleanDataInputDecorator, CalendarDecorator, DateTimeCalendarDecorator, GslDateTimeCalendarConfig, CheckboxDecorator, CurrencyDecorator, CustomActionDecorator, CustomDisplayDecorator, CustomInputDecorator, CustomLayoutDecorator, DateInputDecorator, DatePickerDecorator, DateTimePickerDecorator, DateTimeInputDecorator, DefOrCallback, DisplayDecorator, DropdownDecorator, DxActionBase, DxCommonFields, DxDisplayBase, DxDisplayRenderFn, DxFormEvent, DxInputBase, DxInternalFields, DxLayoutBase, DxResult, DxRuntimeParams, DxValidator, FormConfig, FormEvents, FormInput, GslAccordionConfig, GslActionsConfig, GslAlertsConfig, GslCalendarConfig, GslCheckboxConfig, GslConfigBase, GslCurrencyConfig, GslCustomActionConfig, GslCustomDisplayConfig, GslCustomInputConfig, GslCustomLayoutConfig, GslDateInputConfig, GslDatePickerConfig, GslDateTimePickerConfig, GslDateTimeInputConfig, GslDecoratorCallback, GslDisplaysConfig, GslDropdownConfig, GslInputsConfig, GslLayoutsConfig, GslListConfig, GslMarkdownConfig, GslMultiDropdownConfig, GslMultiListConfig, GslPasswordConfig, GslRadiogroupConfig, GslRangeCalendarConfig, GslRangeDateInputConfig, GslRangeDateTimeInputConfig, GslRangeDateTimeCalendarConfig, GslRangeDateTimePickerConfig, GslRangeTimeInputConfig, GslRangeDatePickerConfig, GslRangeTimePickerConfig, GslRepeaterConfig, GslSelectConfig, GslTabsConfig, GslTagsConfig, GslTextareaConfig, GslTimeInputConfig, GslTimePickerConfig, GuiShortcutOf, InputDecorator, InputTags, LayoutDecorator, ListDecorator, MarkdownDecorator, MultiDropdownDecorator, MultiListDecorator, NumberDataInputDecorator, PasswordDecorator, RadiogroupDecorator, RangeCalendarDecorator, RangeDateInputDecorator, RangeDateTimeInputDecorator, RangeDateTimeCalendarDecorator, RangeDateTimePickerDecorator, RangeTimeInputDecorator, RangeDatePickerDecorator, RangeTimePickerDecorator, RepeaterDecorator, ResolvedFormInput, SelectDecorator, ShortcutTypeSelectors, SimpleFieldDef, TabsDecorator, TagsDecorator, TextareaDecorator, TextDataInputDecorator, TimeInputDecorator, TimePickerDecorator, ValidShortcutType, } from './lib/dx';
|
|
5
|
+
export type { AccordionProps, AlertProps, ButtonProps, CalendarProps, DateTimeCalendarProps, DateTimePickerProps, CheckboxProps, ComponentRendererProps, CurrencyProps, DateinputProps, DatePickerProps, DateTimeInputProps, DateRange, DateTimeRange, DisabledTimeRange, DropdownProps, FlexProps, GridProps, ListItem, ListProps, MarkdownProps, MarkdownTextProps, MultiDropdownProps, MultiListProps, NumberinputProps, OneOfProps, Option, OptionValue, PasswordProps, RadiogroupProps, RangeCalendarProps, RangeDateInputProps, RangeDatePickerProps, RangeDateTimeInputProps, RangeDateTimeCalendarProps, RangeDateTimePickerProps, RangeTimeInputProps, RangeTimePickerProps, RendererProps, RepeaterProps, SelectProps, TabsProps, TagsProps, TagsSeparator, TextareaProps, TextinputProps, TimeInputProps, TimePickerProps, TimeRange, ToggleProps, } from './lib/widget.props';
|
|
6
6
|
export type { GolemWidget } from './lib/widgets';
|
|
7
7
|
export { actionWidgets, displayWidgets, inputWidgets, layoutWidgets } from './lib/widgets';
|
|
8
8
|
export { golemForm } from './lib/golem-form';
|
|
9
9
|
export { isOption } from './lib/utils/one-of';
|
|
10
|
-
export {
|
|
10
|
+
export { accordionButtonId, accordionSectionId, tabButtonId, tabPanelId, } from './lib/utils/layout-ids';
|
|
11
|
+
export { getItemKey, repeaterIndexSuffix } from './lib/utils/repeater';
|
package/internals.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { createGslSelector as
|
|
1
|
+
import { _ as U, a as k, b as C, c as P, d as R, e as f, f as x, h as w, i as A, j as L, k as h, l as M, m as S, n as $, o as F, p as O, q as j, r as G, s as W, t as v, u as z, v as H, w as N, x as V, y as K, z as q, A as E, B as J, C as Q, D as X, E as Y, F as Z, G as aa, H as sa, I as ea, J as ia, K as ta, L as ga, M as na, N as ra, O as la, P as ua, Q as _a, R as oa, S as da, T as ca, U as pa, V as ma, W as ya, X as Ta, Y as Da, Z as Ba, $ as ba, a0 as Ia, a1 as Ua, a2 as ka, a3 as Ca, a4 as Pa, a5 as Ra, a6 as fa, a7 as xa, a8 as wa, a9 as Aa, aa as La, ab as ha, ac as Ma, ad as Sa, ae as $a, af as Fa, ag as Oa, ah as ja, ai as Ga, aj as Wa, ak as va, al as za, am as Ha, an as Na, ao as Va, ap as Ka, aq as qa, ar as Ea, as as Ja, at as Qa, au as Xa, av as Ya, aw as Za, ax as as, ay as ss, az as es, aA as is, aB as ts, aC as gs, aD as ns, aE as rs, aF as ls, aG as us, aH as _s, aI as os, aJ as ds, aK as cs, aL as ps, aM as ms, aN as ys, aO as Ts, aP as Ds, aQ as Bs, aR as bs, aS as Is, aT as Us, aU as ks, aV as Cs, aW as Ps, aX as Rs, aY as fs, aZ as xs, a_ as ws, a$ as As, b0 as Ls, b1 as hs, b2 as Ms, b3 as Ss, b4 as $s, b5 as Fs, b6 as Os, b7 as js, b8 as Gs, b9 as Ws, ba as vs, bb as zs, bc as Hs, bd as Ns, be as Vs, bf as Ks, bg as qs, bh as Es, bi as Js } from "./resolveFormInput-D2kg0VqQ.js";
|
|
2
|
+
import { createGslSelector as Xs, extractWidgetProps as Ys, isDxDefinitions as Zs, processAutoLabel as ae, processAutoPlaceholder as se } from "@golemui/dx";
|
|
3
3
|
import "@golemui/gui-validators";
|
|
4
4
|
import "@golemui/core";
|
|
5
5
|
function _(a, ...s) {
|
|
@@ -27,6 +27,8 @@ const i = [
|
|
|
27
27
|
"dropdown",
|
|
28
28
|
"list",
|
|
29
29
|
"markdown",
|
|
30
|
+
"multiDropdown",
|
|
31
|
+
"multiList",
|
|
30
32
|
"number",
|
|
31
33
|
"password",
|
|
32
34
|
"radiogroup",
|
|
@@ -46,14 +48,14 @@ const i = [
|
|
|
46
48
|
"timeInput",
|
|
47
49
|
"timePicker",
|
|
48
50
|
"toggle"
|
|
49
|
-
], t = ["accordion", "flex", "grid", "tabs"], g = ["alert", "markdownText", "renderer"],
|
|
51
|
+
], t = ["accordion", "flex", "grid", "tabs"], g = ["alert", "markdownText", "renderer"], n = ["button"];
|
|
50
52
|
[
|
|
51
53
|
...i,
|
|
52
54
|
...t,
|
|
53
55
|
...g,
|
|
54
|
-
...
|
|
56
|
+
...n
|
|
55
57
|
];
|
|
56
|
-
class
|
|
58
|
+
class r {
|
|
57
59
|
create(s) {
|
|
58
60
|
return {
|
|
59
61
|
states: s.states,
|
|
@@ -67,10 +69,22 @@ class l {
|
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
function d() {
|
|
70
|
-
return new
|
|
72
|
+
return new r();
|
|
71
73
|
}
|
|
72
74
|
const c = (a) => a !== null && typeof a == "object" && Object.prototype.hasOwnProperty.call(a, "label") && Object.prototype.hasOwnProperty.call(a, "value");
|
|
73
75
|
function p(a, s) {
|
|
76
|
+
return `tab_${a}_${s}`;
|
|
77
|
+
}
|
|
78
|
+
function m(a, s) {
|
|
79
|
+
return `tabpanel_${a}_${s}`;
|
|
80
|
+
}
|
|
81
|
+
function y(a, s) {
|
|
82
|
+
return `accordion_button_${a}_${s}`;
|
|
83
|
+
}
|
|
84
|
+
function T(a, s) {
|
|
85
|
+
return `accordion_section_${a}_${s}`;
|
|
86
|
+
}
|
|
87
|
+
function D(a, s) {
|
|
74
88
|
if (a != null && typeof a == "object" && "__rid" in a)
|
|
75
89
|
return a.__rid;
|
|
76
90
|
const e = s();
|
|
@@ -80,149 +94,163 @@ function p(a, s) {
|
|
|
80
94
|
configurable: !1
|
|
81
95
|
}), e;
|
|
82
96
|
}
|
|
97
|
+
function B(a) {
|
|
98
|
+
return a.match(/(\[\d+\])+$/)?.[0] ?? "";
|
|
99
|
+
}
|
|
83
100
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
101
|
+
U as _gslAccordionByUid,
|
|
102
|
+
k as _gslAccordions,
|
|
103
|
+
C as _gslActionByUid,
|
|
104
|
+
P as _gslActions,
|
|
105
|
+
R as _gslAlertByUid,
|
|
106
|
+
f as _gslAlerts,
|
|
107
|
+
x as _gslBooleanInputs,
|
|
108
|
+
w as _gslCalendarByUid,
|
|
109
|
+
A as _gslCalendars,
|
|
110
|
+
L as _gslCheckboxByUid,
|
|
111
|
+
h as _gslCheckboxes,
|
|
112
|
+
M as _gslCurrencies,
|
|
113
|
+
S as _gslCurrencyByUid,
|
|
114
|
+
$ as _gslCustomActionByUid,
|
|
115
|
+
F as _gslCustomActions,
|
|
116
|
+
O as _gslCustomDisplayByUid,
|
|
117
|
+
j as _gslCustomDisplays,
|
|
118
|
+
G as _gslCustomInputByUid,
|
|
119
|
+
W as _gslCustomInputs,
|
|
120
|
+
v as _gslCustomLayoutByUid,
|
|
121
|
+
z as _gslCustomLayouts,
|
|
122
|
+
H as _gslDateInputByUid,
|
|
123
|
+
N as _gslDateInputs,
|
|
124
|
+
V as _gslDatePickerByUid,
|
|
125
|
+
K as _gslDatePickers,
|
|
126
|
+
q as _gslDateTimeCalendarByUid,
|
|
127
|
+
E as _gslDateTimeCalendars,
|
|
128
|
+
J as _gslDateTimeInputByUid,
|
|
129
|
+
Q as _gslDateTimeInputs,
|
|
130
|
+
X as _gslDateTimePickerByUid,
|
|
131
|
+
Y as _gslDateTimePickers,
|
|
132
|
+
Z as _gslDisplayByUid,
|
|
133
|
+
aa as _gslDisplays,
|
|
134
|
+
sa as _gslDropdownByUid,
|
|
135
|
+
ea as _gslDropdowns,
|
|
136
|
+
ia as _gslInputByUid,
|
|
137
|
+
ta as _gslInputs,
|
|
138
|
+
ga as _gslLayoutByUid,
|
|
139
|
+
na as _gslLayouts,
|
|
140
|
+
ra as _gslListByUid,
|
|
141
|
+
la as _gslLists,
|
|
142
|
+
ua as _gslMarkdownByUid,
|
|
143
|
+
_a as _gslMarkdownTextByUid,
|
|
144
|
+
oa as _gslMarkdownTexts,
|
|
145
|
+
da as _gslMarkdowns,
|
|
146
|
+
ca as _gslMultiDropdownByUid,
|
|
147
|
+
pa as _gslMultiDropdowns,
|
|
148
|
+
ma as _gslMultiListByUid,
|
|
149
|
+
ya as _gslMultiLists,
|
|
150
|
+
Ta as _gslNumberInputs,
|
|
151
|
+
Da as _gslPasswordByUid,
|
|
152
|
+
Ba as _gslPasswords,
|
|
153
|
+
ba as _gslRadiogroupByUid,
|
|
154
|
+
Ia as _gslRadiogroups,
|
|
155
|
+
Ua as _gslRangeCalendarByUid,
|
|
156
|
+
ka as _gslRangeCalendars,
|
|
157
|
+
Ca as _gslRangeDateInputByUid,
|
|
158
|
+
Pa as _gslRangeDateInputs,
|
|
159
|
+
Ra as _gslRangeDatePickerByUid,
|
|
160
|
+
fa as _gslRangeDatePickers,
|
|
161
|
+
xa as _gslRangeDateTimeCalendarByUid,
|
|
162
|
+
wa as _gslRangeDateTimeCalendars,
|
|
163
|
+
Aa as _gslRangeDateTimeInputByUid,
|
|
164
|
+
La as _gslRangeDateTimeInputs,
|
|
165
|
+
ha as _gslRangeDateTimePickerByUid,
|
|
166
|
+
Ma as _gslRangeDateTimePickers,
|
|
167
|
+
Sa as _gslRangeTimeInputByUid,
|
|
168
|
+
$a as _gslRangeTimeInputs,
|
|
169
|
+
Fa as _gslRangeTimePickerByUid,
|
|
170
|
+
Oa as _gslRangeTimePickers,
|
|
171
|
+
ja as _gslRepeaterByUid,
|
|
172
|
+
Ga as _gslRepeaters,
|
|
173
|
+
Wa as _gslSelectByUid,
|
|
174
|
+
va as _gslSelects,
|
|
154
175
|
_ as _gslStates,
|
|
155
|
-
|
|
156
|
-
|
|
176
|
+
za as _gslTabs,
|
|
177
|
+
Ha as _gslTabsByUid,
|
|
157
178
|
o as _gslTag,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
179
|
+
Na as _gslTags,
|
|
180
|
+
Va as _gslTagsByUid,
|
|
181
|
+
Ka as _gslTextInputs,
|
|
182
|
+
qa as _gslTextareaByUid,
|
|
183
|
+
Ea as _gslTextareas,
|
|
184
|
+
Ja as _gslTimeInputByUid,
|
|
185
|
+
Qa as _gslTimeInputs,
|
|
186
|
+
Xa as _gslTimePickerByUid,
|
|
187
|
+
Ya as _gslTimePickers,
|
|
188
|
+
Za as _guiAccordion,
|
|
189
|
+
as as _guiAlert,
|
|
190
|
+
ss as _guiBooleanInput,
|
|
191
|
+
es as _guiButton,
|
|
192
|
+
is as _guiCalendar,
|
|
193
|
+
ts as _guiCheckbox,
|
|
194
|
+
gs as _guiCurrency,
|
|
195
|
+
ns as _guiCustomAction,
|
|
196
|
+
rs as _guiCustomDisplay,
|
|
197
|
+
ls as _guiCustomInput,
|
|
198
|
+
us as _guiCustomLayout,
|
|
199
|
+
_s as _guiDateInput,
|
|
200
|
+
os as _guiDatePicker,
|
|
201
|
+
ds as _guiDateTimeCalendar,
|
|
202
|
+
cs as _guiDateTimeInput,
|
|
203
|
+
ps as _guiDateTimePicker,
|
|
204
|
+
ms as _guiDisplay,
|
|
205
|
+
ys as _guiDropdown,
|
|
206
|
+
Ts as _guiFlex,
|
|
207
|
+
Ds as _guiGrid,
|
|
208
|
+
Bs as _guiHorizontalFlex,
|
|
209
|
+
bs as _guiHorizontalGrid,
|
|
210
|
+
Is as _guiList,
|
|
211
|
+
Us as _guiMarkdown,
|
|
212
|
+
ks as _guiMarkdownText,
|
|
213
|
+
Cs as _guiMultiDropdown,
|
|
214
|
+
Ps as _guiMultiList,
|
|
215
|
+
Rs as _guiNumberInput,
|
|
216
|
+
fs as _guiPassword,
|
|
217
|
+
xs as _guiRadiogroup,
|
|
218
|
+
ws as _guiRangeCalendar,
|
|
219
|
+
As as _guiRangeDateInput,
|
|
220
|
+
Ls as _guiRangeDatePicker,
|
|
221
|
+
hs as _guiRangeDateTimeCalendar,
|
|
222
|
+
Ms as _guiRangeDateTimeInput,
|
|
223
|
+
Ss as _guiRangeDateTimePicker,
|
|
224
|
+
$s as _guiRangeTimeInput,
|
|
225
|
+
Fs as _guiRangeTimePicker,
|
|
226
|
+
Os as _guiRepeater,
|
|
227
|
+
js as _guiSelect,
|
|
228
|
+
Gs as _guiTabs,
|
|
229
|
+
Ws as _guiTags,
|
|
230
|
+
vs as _guiTextInput,
|
|
231
|
+
zs as _guiTextarea,
|
|
232
|
+
Hs as _guiTimeInput,
|
|
233
|
+
Ns as _guiTimePicker,
|
|
234
|
+
Vs as _guiVerticalFlex,
|
|
235
|
+
Ks as _guiVerticalGrid,
|
|
236
|
+
y as accordionButtonId,
|
|
237
|
+
T as accordionSectionId,
|
|
238
|
+
n as actionWidgets,
|
|
239
|
+
Xs as createGslSelector,
|
|
240
|
+
qs as defineShortcutType,
|
|
216
241
|
g as displayWidgets,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
242
|
+
Ys as extractWidgetProps,
|
|
243
|
+
Es as formDefs,
|
|
244
|
+
D as getItemKey,
|
|
220
245
|
d as golemForm,
|
|
221
246
|
i as inputWidgets,
|
|
222
|
-
|
|
247
|
+
Zs as isDxDefinitions,
|
|
223
248
|
c as isOption,
|
|
224
249
|
t as layoutWidgets,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
250
|
+
ae as processAutoLabel,
|
|
251
|
+
se as processAutoPlaceholder,
|
|
252
|
+
B as repeaterIndexSuffix,
|
|
253
|
+
Js as resolveFormInput,
|
|
254
|
+
p as tabButtonId,
|
|
255
|
+
m as tabPanelId
|
|
228
256
|
};
|
package/internals.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resolveFormInput-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resolveFormInput-BL_FxIPF.cjs"),g=require("@golemui/dx");require("@golemui/gui-validators");require("@golemui/core");function u(i,...t){return t.map(s=>({...s,targetState:i}))}function _(i,...t){return{kind:"aggregated",matcher:s=>s.tags?.includes(i)??!1,children:t}}const a=["calendar","dateTimeCalendar","checkbox","currency","dateInput","datePicker","dateTimeInput","dateTimePicker","dropdown","list","markdown","multiDropdown","multiList","number","password","radiogroup","rangeCalendar","rangeDateInput","rangeDatePicker","rangeDateTimeInput","rangeDateTimeCalendar","rangeDateTimePicker","rangeTimeInput","rangeTimePicker","repeater","select","tags","textarea","textinput","timeInput","timePicker","toggle"],l=["accordion","flex","grid","tabs"],n=["alert","markdownText","renderer"],r=["button"];[...a,...l,...n,...r];class o{create(t){return{states:t.states,form:{uid:"gui-root-uid",type:"flex",kind:"layout",children:t.form}}}}function d(){return new o}const c=i=>i!==null&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"label")&&Object.prototype.hasOwnProperty.call(i,"value");function p(i,t){return`tab_${i}_${t}`}function y(i,t){return`tabpanel_${i}_${t}`}function m(i,t){return`accordion_button_${i}_${t}`}function T(i,t){return`accordion_section_${i}_${t}`}function D(i,t){if(i!=null&&typeof i=="object"&&"__rid"in i)return i.__rid;const s=t();return Object.defineProperty(i,"__rid",{value:s,enumerable:!1,configurable:!1}),s}function B(i){return i.match(/(\[\d+\])+$/)?.[0]??""}exports._gslAccordionByUid=e._gslAccordionByUid;exports._gslAccordions=e._gslAccordions;exports._gslActionByUid=e._gslActionByUid;exports._gslActions=e._gslActions;exports._gslAlertByUid=e._gslAlertByUid;exports._gslAlerts=e._gslAlerts;exports._gslBooleanInputs=e._gslBooleanInputs;exports._gslCalendarByUid=e._gslCalendarByUid;exports._gslCalendars=e._gslCalendars;exports._gslCheckboxByUid=e._gslCheckboxByUid;exports._gslCheckboxes=e._gslCheckboxes;exports._gslCurrencies=e._gslCurrencies;exports._gslCurrencyByUid=e._gslCurrencyByUid;exports._gslCustomActionByUid=e._gslCustomActionByUid;exports._gslCustomActions=e._gslCustomActions;exports._gslCustomDisplayByUid=e._gslCustomDisplayByUid;exports._gslCustomDisplays=e._gslCustomDisplays;exports._gslCustomInputByUid=e._gslCustomInputByUid;exports._gslCustomInputs=e._gslCustomInputs;exports._gslCustomLayoutByUid=e._gslCustomLayoutByUid;exports._gslCustomLayouts=e._gslCustomLayouts;exports._gslDateInputByUid=e._gslDateInputByUid;exports._gslDateInputs=e._gslDateInputs;exports._gslDatePickerByUid=e._gslDatePickerByUid;exports._gslDatePickers=e._gslDatePickers;exports._gslDateTimeCalendarByUid=e._gslDateTimeCalendarByUid;exports._gslDateTimeCalendars=e._gslDateTimeCalendars;exports._gslDateTimeInputByUid=e._gslDateTimeInputByUid;exports._gslDateTimeInputs=e._gslDateTimeInputs;exports._gslDateTimePickerByUid=e._gslDateTimePickerByUid;exports._gslDateTimePickers=e._gslDateTimePickers;exports._gslDisplayByUid=e._gslDisplayByUid;exports._gslDisplays=e._gslDisplays;exports._gslDropdownByUid=e._gslDropdownByUid;exports._gslDropdowns=e._gslDropdowns;exports._gslInputByUid=e._gslInputByUid;exports._gslInputs=e._gslInputs;exports._gslLayoutByUid=e._gslLayoutByUid;exports._gslLayouts=e._gslLayouts;exports._gslListByUid=e._gslListByUid;exports._gslLists=e._gslLists;exports._gslMarkdownByUid=e._gslMarkdownByUid;exports._gslMarkdownTextByUid=e._gslMarkdownTextByUid;exports._gslMarkdownTexts=e._gslMarkdownTexts;exports._gslMarkdowns=e._gslMarkdowns;exports._gslMultiDropdownByUid=e._gslMultiDropdownByUid;exports._gslMultiDropdowns=e._gslMultiDropdowns;exports._gslMultiListByUid=e._gslMultiListByUid;exports._gslMultiLists=e._gslMultiLists;exports._gslNumberInputs=e._gslNumberInputs;exports._gslPasswordByUid=e._gslPasswordByUid;exports._gslPasswords=e._gslPasswords;exports._gslRadiogroupByUid=e._gslRadiogroupByUid;exports._gslRadiogroups=e._gslRadiogroups;exports._gslRangeCalendarByUid=e._gslRangeCalendarByUid;exports._gslRangeCalendars=e._gslRangeCalendars;exports._gslRangeDateInputByUid=e._gslRangeDateInputByUid;exports._gslRangeDateInputs=e._gslRangeDateInputs;exports._gslRangeDatePickerByUid=e._gslRangeDatePickerByUid;exports._gslRangeDatePickers=e._gslRangeDatePickers;exports._gslRangeDateTimeCalendarByUid=e._gslRangeDateTimeCalendarByUid;exports._gslRangeDateTimeCalendars=e._gslRangeDateTimeCalendars;exports._gslRangeDateTimeInputByUid=e._gslRangeDateTimeInputByUid;exports._gslRangeDateTimeInputs=e._gslRangeDateTimeInputs;exports._gslRangeDateTimePickerByUid=e._gslRangeDateTimePickerByUid;exports._gslRangeDateTimePickers=e._gslRangeDateTimePickers;exports._gslRangeTimeInputByUid=e._gslRangeTimeInputByUid;exports._gslRangeTimeInputs=e._gslRangeTimeInputs;exports._gslRangeTimePickerByUid=e._gslRangeTimePickerByUid;exports._gslRangeTimePickers=e._gslRangeTimePickers;exports._gslRepeaterByUid=e._gslRepeaterByUid;exports._gslRepeaters=e._gslRepeaters;exports._gslSelectByUid=e._gslSelectByUid;exports._gslSelects=e._gslSelects;exports._gslTabs=e._gslTabs;exports._gslTabsByUid=e._gslTabsByUid;exports._gslTags=e._gslTags;exports._gslTagsByUid=e._gslTagsByUid;exports._gslTextInputs=e._gslTextInputs;exports._gslTextareaByUid=e._gslTextareaByUid;exports._gslTextareas=e._gslTextareas;exports._gslTimeInputByUid=e._gslTimeInputByUid;exports._gslTimeInputs=e._gslTimeInputs;exports._gslTimePickerByUid=e._gslTimePickerByUid;exports._gslTimePickers=e._gslTimePickers;exports._guiAccordion=e._guiAccordion;exports._guiAlert=e._guiAlert;exports._guiBooleanInput=e._guiBooleanInput;exports._guiButton=e._guiButton;exports._guiCalendar=e._guiCalendar;exports._guiCheckbox=e._guiCheckbox;exports._guiCurrency=e._guiCurrency;exports._guiCustomAction=e._guiCustomAction;exports._guiCustomDisplay=e._guiCustomDisplay;exports._guiCustomInput=e._guiCustomInput;exports._guiCustomLayout=e._guiCustomLayout;exports._guiDateInput=e._guiDateInput;exports._guiDatePicker=e._guiDatePicker;exports._guiDateTimeCalendar=e._guiDateTimeCalendar;exports._guiDateTimeInput=e._guiDateTimeInput;exports._guiDateTimePicker=e._guiDateTimePicker;exports._guiDisplay=e._guiDisplay;exports._guiDropdown=e._guiDropdown;exports._guiFlex=e._guiFlex;exports._guiGrid=e._guiGrid;exports._guiHorizontalFlex=e._guiHorizontalFlex;exports._guiHorizontalGrid=e._guiHorizontalGrid;exports._guiList=e._guiList;exports._guiMarkdown=e._guiMarkdown;exports._guiMarkdownText=e._guiMarkdownText;exports._guiMultiDropdown=e._guiMultiDropdown;exports._guiMultiList=e._guiMultiList;exports._guiNumberInput=e._guiNumberInput;exports._guiPassword=e._guiPassword;exports._guiRadiogroup=e._guiRadiogroup;exports._guiRangeCalendar=e._guiRangeCalendar;exports._guiRangeDateInput=e._guiRangeDateInput;exports._guiRangeDatePicker=e._guiRangeDatePicker;exports._guiRangeDateTimeCalendar=e._guiRangeDateTimeCalendar;exports._guiRangeDateTimeInput=e._guiRangeDateTimeInput;exports._guiRangeDateTimePicker=e._guiRangeDateTimePicker;exports._guiRangeTimeInput=e._guiRangeTimeInput;exports._guiRangeTimePicker=e._guiRangeTimePicker;exports._guiRepeater=e._guiRepeater;exports._guiSelect=e._guiSelect;exports._guiTabs=e._guiTabs;exports._guiTags=e._guiTags;exports._guiTextInput=e._guiTextInput;exports._guiTextarea=e._guiTextarea;exports._guiTimeInput=e._guiTimeInput;exports._guiTimePicker=e._guiTimePicker;exports._guiVerticalFlex=e._guiVerticalFlex;exports._guiVerticalGrid=e._guiVerticalGrid;exports.defineShortcutType=e.defineShortcutType;exports.formDefs=e.formDefs;exports.resolveFormInput=e.resolveFormInput;Object.defineProperty(exports,"createGslSelector",{enumerable:!0,get:()=>g.createGslSelector});Object.defineProperty(exports,"extractWidgetProps",{enumerable:!0,get:()=>g.extractWidgetProps});Object.defineProperty(exports,"isDxDefinitions",{enumerable:!0,get:()=>g.isDxDefinitions});Object.defineProperty(exports,"processAutoLabel",{enumerable:!0,get:()=>g.processAutoLabel});Object.defineProperty(exports,"processAutoPlaceholder",{enumerable:!0,get:()=>g.processAutoPlaceholder});exports._gslStates=u;exports._gslTag=_;exports.accordionButtonId=m;exports.accordionSectionId=T;exports.actionWidgets=r;exports.displayWidgets=n;exports.getItemKey=D;exports.golemForm=d;exports.inputWidgets=a;exports.isOption=c;exports.layoutWidgets=l;exports.repeaterIndexSuffix=B;exports.tabButtonId=p;exports.tabPanelId=y;
|
package/lib/dx/gui.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import { _guiPassword } from './shortcuts/password/guiPassword.impl';
|
|
|
11
11
|
import { _guiCurrency } from './shortcuts/currency/guiCurrency.impl';
|
|
12
12
|
import { _guiMarkdown } from './shortcuts/markdown/guiMarkdown.impl';
|
|
13
13
|
import { _guiList } from './shortcuts/list/guiList.impl';
|
|
14
|
+
import { _guiMultiDropdown } from './shortcuts/multi-dropdown/guiMultiDropdown.impl';
|
|
15
|
+
import { _guiMultiList } from './shortcuts/multi-list/guiMultiList.impl';
|
|
14
16
|
import { _guiCalendar } from './shortcuts/calendar/guiCalendar.impl';
|
|
15
17
|
import { _guiDateTimeCalendar } from './shortcuts/date-time-calendar/guiDateTimeCalendar.impl';
|
|
16
18
|
import { _guiDateInput } from './shortcuts/date-input/guiDateInput.impl';
|
|
@@ -59,6 +61,8 @@ export declare const guiImplementation: import('@golemui/dx').WidgetSetImplement
|
|
|
59
61
|
currency: typeof _guiCurrency;
|
|
60
62
|
markdown: typeof _guiMarkdown;
|
|
61
63
|
list: typeof _guiList;
|
|
64
|
+
multiDropdown: typeof _guiMultiDropdown;
|
|
65
|
+
multiList: typeof _guiMultiList;
|
|
62
66
|
calendar: typeof _guiCalendar;
|
|
63
67
|
dateTimeCalendar: typeof _guiDateTimeCalendar;
|
|
64
68
|
dateInput: typeof _guiDateInput;
|
|
@@ -124,6 +128,10 @@ export declare const guiImplementation: import('@golemui/dx').WidgetSetImplement
|
|
|
124
128
|
markdownByUid: (uid: string, config: import('.').GslMarkdownConfig) => import('@golemui/dx').GslLeafSelector;
|
|
125
129
|
lists: (config: import('.').GslListConfig, matcher?: ((decorator: import('./formDef.domain').ListDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
126
130
|
listByUid: (uid: string, config: import('.').GslListConfig) => import('@golemui/dx').GslLeafSelector;
|
|
131
|
+
multiDropdowns: (config: import('.').GslMultiDropdownConfig, matcher?: ((decorator: import('.').MultiDropdownDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
132
|
+
multiDropdownByUid: (uid: string, config: import('.').GslMultiDropdownConfig) => import('@golemui/dx').GslLeafSelector;
|
|
133
|
+
multiLists: (config: import('.').GslMultiListConfig, matcher?: ((decorator: import('.').MultiListDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
134
|
+
multiListByUid: (uid: string, config: import('.').GslMultiListConfig) => import('@golemui/dx').GslLeafSelector;
|
|
127
135
|
calendars: (config: import('.').GslCalendarConfig, matcher?: ((decorator: import('.').CalendarDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
128
136
|
calendarByUid: (uid: string, config: import('.').GslCalendarConfig) => import('@golemui/dx').GslLeafSelector;
|
|
129
137
|
dateTimeCalendars: (config: import('.').GslDateTimeCalendarConfig, matcher?: ((decorator: import('.').DateTimeCalendarDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
@@ -200,6 +208,8 @@ export declare const gui: {
|
|
|
200
208
|
currency: typeof _guiCurrency;
|
|
201
209
|
markdown: typeof _guiMarkdown;
|
|
202
210
|
list: typeof _guiList;
|
|
211
|
+
multiDropdown: typeof _guiMultiDropdown;
|
|
212
|
+
multiList: typeof _guiMultiList;
|
|
203
213
|
calendar: typeof _guiCalendar;
|
|
204
214
|
dateTimeCalendar: typeof _guiDateTimeCalendar;
|
|
205
215
|
dateInput: typeof _guiDateInput;
|
|
@@ -266,6 +276,10 @@ export declare const gui: {
|
|
|
266
276
|
markdownByUid: (uid: string, config: import('.').GslMarkdownConfig) => import('@golemui/dx').GslLeafSelector;
|
|
267
277
|
lists: (config: import('.').GslListConfig, matcher?: ((decorator: import('./formDef.domain').ListDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
268
278
|
listByUid: (uid: string, config: import('.').GslListConfig) => import('@golemui/dx').GslLeafSelector;
|
|
279
|
+
multiDropdowns: (config: import('.').GslMultiDropdownConfig, matcher?: ((decorator: import('.').MultiDropdownDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
280
|
+
multiDropdownByUid: (uid: string, config: import('.').GslMultiDropdownConfig) => import('@golemui/dx').GslLeafSelector;
|
|
281
|
+
multiLists: (config: import('.').GslMultiListConfig, matcher?: ((decorator: import('.').MultiListDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
282
|
+
multiListByUid: (uid: string, config: import('.').GslMultiListConfig) => import('@golemui/dx').GslLeafSelector;
|
|
269
283
|
calendars: (config: import('.').GslCalendarConfig, matcher?: ((decorator: import('.').CalendarDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
270
284
|
calendarByUid: (uid: string, config: import('.').GslCalendarConfig) => import('@golemui/dx').GslLeafSelector;
|
|
271
285
|
dateTimeCalendars: (config: import('.').GslDateTimeCalendarConfig, matcher?: ((decorator: import('.').DateTimeCalendarDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
package/lib/dx/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export { _guiNumberInput } from './shortcuts/inputs/guiNumberInput.impl';
|
|
|
21
21
|
export { _guiTextInput } from './shortcuts/inputs/guiTextInput.impl';
|
|
22
22
|
export { _guiFlex, _guiGrid, _guiHorizontalFlex, _guiHorizontalGrid, _guiVerticalFlex, _guiVerticalGrid, } from './shortcuts/layouts/guiFlex.impl';
|
|
23
23
|
export { _guiList } from './shortcuts/list/guiList.impl';
|
|
24
|
+
export { _guiMultiDropdown } from './shortcuts/multi-dropdown/guiMultiDropdown.impl';
|
|
25
|
+
export { _guiMultiList } from './shortcuts/multi-list/guiMultiList.impl';
|
|
24
26
|
export { _guiMarkdown } from './shortcuts/markdown/guiMarkdown.impl';
|
|
25
27
|
export { _guiMarkdownText } from './shortcuts/markdown-text/guiMarkdownText.impl';
|
|
26
28
|
export { _guiPassword } from './shortcuts/password/guiPassword.impl';
|
|
@@ -61,6 +63,8 @@ export { _gslBooleanInputs, _gslNumberInputs, _gslTextInputs, } from './shortcut
|
|
|
61
63
|
export { _gslInputByUid, _gslInputs } from './shortcuts/inputs/register';
|
|
62
64
|
export { _gslLayoutByUid, _gslLayouts } from './shortcuts/layouts/register';
|
|
63
65
|
export { _gslListByUid, _gslLists } from './shortcuts/list/register';
|
|
66
|
+
export { _gslMultiDropdownByUid, _gslMultiDropdowns } from './shortcuts/multi-dropdown/register';
|
|
67
|
+
export { _gslMultiListByUid, _gslMultiLists } from './shortcuts/multi-list/register';
|
|
64
68
|
export { _gslMarkdownByUid, _gslMarkdowns } from './shortcuts/markdown/register';
|
|
65
69
|
export { _gslMarkdownTextByUid, _gslMarkdownTexts } from './shortcuts/markdown-text/register';
|
|
66
70
|
export { _gslPasswordByUid, _gslPasswords } from './shortcuts/password/register';
|
|
@@ -110,6 +114,8 @@ export type { DropdownDecorator, GslDropdownConfig } from './shortcuts/dropdown/
|
|
|
110
114
|
export type { BooleanDataInputDecorator, GslInputsConfig, InputDecorator, InputTags, NumberDataInputDecorator, SimpleFieldDef, TextDataInputDecorator, ValidShortcutType, } from './shortcuts/inputs/inputs.domain';
|
|
111
115
|
export type { GslLayoutsConfig, LayoutDecorator } from './shortcuts/layouts/layouts.domain';
|
|
112
116
|
export type { GslListConfig, ListDecorator } from './shortcuts/list/list.domain';
|
|
117
|
+
export type { GslMultiDropdownConfig, MultiDropdownDecorator, } from './shortcuts/multi-dropdown/multi-dropdown.domain';
|
|
118
|
+
export type { GslMultiListConfig, MultiListDecorator, } from './shortcuts/multi-list/multi-list.domain';
|
|
113
119
|
export type { GslMarkdownConfig, MarkdownDecorator } from './shortcuts/markdown/markdown.domain';
|
|
114
120
|
export type { GslPasswordConfig, PasswordDecorator } from './shortcuts/password/password.domain';
|
|
115
121
|
export type { GslRadiogroupConfig, RadiogroupDecorator, } from './shortcuts/radiogroup/radiogroup.domain';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DxRuntimeParams } from '@golemui/dx';
|
|
2
|
+
import { GuiMultiDropdownShortcut, MultiDropdownDecorator } from './multi-dropdown.domain';
|
|
3
|
+
type MultiDropdownFactoryProps = Omit<MultiDropdownDecorator, 'type'>;
|
|
4
|
+
export declare function _guiMultiDropdown(path: string, props: MultiDropdownFactoryProps): GuiMultiDropdownShortcut;
|
|
5
|
+
export declare function _guiMultiDropdown(path: string, props: MultiDropdownFactoryProps, tags: string[]): GuiMultiDropdownShortcut;
|
|
6
|
+
export declare function _guiMultiDropdown(path: string, callback: (params: DxRuntimeParams) => MultiDropdownFactoryProps, tags?: string[]): GuiMultiDropdownShortcut;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Validator } from '@golemui/gui-validators';
|
|
2
|
+
import { ListItem, MultiDropdownProps, OptionValue } from '../../../widget.props';
|
|
3
|
+
import { DxCommonFields, DxInputBase, DefOrCallback, GslConfigBase, GuiShortcutOf } from '@golemui/dx';
|
|
4
|
+
export interface MultiDropdownDecorator extends DxInputBase, DxCommonFields, Partial<Omit<MultiDropdownProps<any>, 'items'>> {
|
|
5
|
+
type: 'multiDropdown';
|
|
6
|
+
items?: ListItem<any>[] | OptionValue[] | Record<string, unknown>[];
|
|
7
|
+
validator?: Validator;
|
|
8
|
+
}
|
|
9
|
+
export interface GslMultiDropdownConfig extends GslConfigBase<MultiDropdownDecorator> {
|
|
10
|
+
suppressAutomaticLabels?: boolean;
|
|
11
|
+
suppressAutomaticPlaceholders?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type MultiDropdownEntry = {
|
|
14
|
+
key: string;
|
|
15
|
+
def: DefOrCallback<MultiDropdownDecorator>;
|
|
16
|
+
};
|
|
17
|
+
export type GuiMultiDropdownShortcut = GuiShortcutOf<'MULTI_DROPDOWN', MultiDropdownEntry>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GslMultiDropdownConfig, MultiDropdownDecorator, MultiDropdownEntry } from './multi-dropdown.domain';
|
|
2
|
+
export declare const multiDropdownShortcutType: import('@golemui/dx').ShortcutTypeDefinition<MultiDropdownEntry, MultiDropdownDecorator, GslMultiDropdownConfig>;
|
|
3
|
+
export declare const _gslMultiDropdowns: (config: GslMultiDropdownConfig, matcher?: ((decorator: MultiDropdownDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
4
|
+
export declare const _gslMultiDropdownByUid: (uid: string, config: GslMultiDropdownConfig) => import('@golemui/dx').GslLeafSelector;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DxRuntimeParams } from '@golemui/dx';
|
|
2
|
+
import { GuiMultiListShortcut, MultiListDecorator } from './multi-list.domain';
|
|
3
|
+
type MultiListFactoryProps = Omit<MultiListDecorator, 'type'>;
|
|
4
|
+
export declare function _guiMultiList(path: string, props: MultiListFactoryProps): GuiMultiListShortcut;
|
|
5
|
+
export declare function _guiMultiList(path: string, props: MultiListFactoryProps, tags: string[]): GuiMultiListShortcut;
|
|
6
|
+
export declare function _guiMultiList(path: string, callback: (params: DxRuntimeParams) => MultiListFactoryProps, tags?: string[]): GuiMultiListShortcut;
|
|
7
|
+
export {};
|