@golemui/gui-shared 1.1.1-rc.0 → 1.1.1-rc.2
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 +17 -0
- package/index.js +23 -366
- package/index.umd.cjs +1 -1
- package/internals.js +162 -757
- package/internals.umd.cjs +1 -1
- package/lib/dx/__tests__/helpers.d.ts +1 -1
- package/lib/dx/formDef.domain.d.ts +8 -33
- package/lib/dx/formDefs.d.ts +7 -0
- package/lib/dx/gui.d.ts +281 -52
- package/lib/dx/guiDependencyTypes.d.ts +14 -0
- package/lib/dx/index.d.ts +12 -11
- package/lib/dx/registry.d.ts +26 -0
- package/lib/dx/resolveFormInput.d.ts +7 -20
- package/lib/dx/shortcuts/accordion/accordion.domain.d.ts +1 -3
- package/lib/dx/shortcuts/accordion/guiAccordion.impl.d.ts +1 -1
- package/lib/dx/shortcuts/accordion/register.d.ts +4 -2
- package/lib/dx/shortcuts/actions/actions.domain.d.ts +1 -2
- package/lib/dx/shortcuts/actions/guiActions.impl.d.ts +1 -1
- package/lib/dx/shortcuts/actions/register.d.ts +3 -1
- package/lib/dx/shortcuts/alert/alert.domain.d.ts +1 -2
- package/lib/dx/shortcuts/alert/guiAlert.impl.d.ts +1 -1
- package/lib/dx/shortcuts/alert/register.d.ts +4 -2
- package/lib/dx/shortcuts/calendar/calendar.domain.d.ts +1 -3
- package/lib/dx/shortcuts/calendar/guiCalendar.impl.d.ts +1 -1
- package/lib/dx/shortcuts/calendar/register.d.ts +4 -2
- package/lib/dx/shortcuts/checkbox/checkbox.domain.d.ts +1 -3
- package/lib/dx/shortcuts/checkbox/guiCheckbox.impl.d.ts +1 -1
- package/lib/dx/shortcuts/checkbox/register.d.ts +4 -2
- package/lib/dx/shortcuts/currency/currency.domain.d.ts +1 -3
- package/lib/dx/shortcuts/currency/guiCurrency.impl.d.ts +1 -1
- package/lib/dx/shortcuts/currency/register.d.ts +4 -2
- package/lib/dx/shortcuts/custom-action/customAction.domain.d.ts +1 -2
- package/lib/dx/shortcuts/custom-action/guiCustomAction.impl.d.ts +1 -1
- package/lib/dx/shortcuts/custom-action/register.d.ts +4 -2
- package/lib/dx/shortcuts/custom-display/customDisplay.domain.d.ts +1 -2
- package/lib/dx/shortcuts/custom-display/guiCustomDisplay.impl.d.ts +1 -1
- package/lib/dx/shortcuts/custom-display/register.d.ts +4 -2
- package/lib/dx/shortcuts/custom-input/customInput.domain.d.ts +1 -2
- package/lib/dx/shortcuts/custom-input/guiCustomInput.impl.d.ts +1 -1
- package/lib/dx/shortcuts/custom-input/register.d.ts +4 -2
- package/lib/dx/shortcuts/custom-layout/customLayout.domain.d.ts +1 -3
- package/lib/dx/shortcuts/custom-layout/guiCustomLayout.impl.d.ts +1 -2
- package/lib/dx/shortcuts/custom-layout/register.d.ts +4 -2
- package/lib/dx/shortcuts/date-input/dateInput.domain.d.ts +1 -3
- package/lib/dx/shortcuts/date-input/guiDateInput.impl.d.ts +1 -1
- package/lib/dx/shortcuts/date-input/register.d.ts +4 -2
- package/lib/dx/shortcuts/date-picker/datePicker.domain.d.ts +1 -3
- package/lib/dx/shortcuts/date-picker/guiDatePicker.impl.d.ts +1 -1
- package/lib/dx/shortcuts/date-picker/register.d.ts +4 -2
- package/lib/dx/shortcuts/date-time-calendar/dateTimeCalendar.domain.d.ts +1 -3
- package/lib/dx/shortcuts/date-time-calendar/guiDateTimeCalendar.impl.d.ts +1 -1
- package/lib/dx/shortcuts/date-time-calendar/register.d.ts +4 -2
- package/lib/dx/shortcuts/date-time-input/dateTimeInput.domain.d.ts +1 -3
- package/lib/dx/shortcuts/date-time-input/guiDateTimeInput.impl.d.ts +1 -1
- package/lib/dx/shortcuts/date-time-input/register.d.ts +4 -2
- package/lib/dx/shortcuts/date-time-picker/dateTimePicker.domain.d.ts +1 -3
- package/lib/dx/shortcuts/date-time-picker/guiDateTimePicker.impl.d.ts +1 -1
- package/lib/dx/shortcuts/date-time-picker/register.d.ts +4 -2
- package/lib/dx/shortcuts/display/display.domain.d.ts +1 -2
- package/lib/dx/shortcuts/display/guiDisplay.impl.d.ts +1 -1
- package/lib/dx/shortcuts/display/register.d.ts +4 -2
- package/lib/dx/shortcuts/dropdown/dropdown.domain.d.ts +1 -2
- package/lib/dx/shortcuts/dropdown/guiDropdown.impl.d.ts +1 -1
- package/lib/dx/shortcuts/dropdown/register.d.ts +4 -2
- package/lib/dx/shortcuts/inputs/gslInputSubtypes.d.ts +3 -3
- package/lib/dx/shortcuts/inputs/guiBooleanInput.impl.d.ts +1 -1
- package/lib/dx/shortcuts/inputs/guiNumberInput.impl.d.ts +1 -1
- package/lib/dx/shortcuts/inputs/guiTextInput.impl.d.ts +1 -1
- package/lib/dx/shortcuts/inputs/inputSensibleDefaults.service.d.ts +1 -1
- package/lib/dx/shortcuts/inputs/inputs.domain.d.ts +1 -3
- package/lib/dx/shortcuts/inputs/register.d.ts +4 -2
- package/lib/dx/shortcuts/layouts/guiFlex.impl.d.ts +1 -1
- package/lib/dx/shortcuts/layouts/layouts.domain.d.ts +1 -3
- package/lib/dx/shortcuts/layouts/register.d.ts +4 -2
- package/lib/dx/shortcuts/list/guiList.impl.d.ts +1 -1
- package/lib/dx/shortcuts/list/list.domain.d.ts +1 -2
- package/lib/dx/shortcuts/list/register.d.ts +4 -2
- package/lib/dx/shortcuts/markdown/guiMarkdown.impl.d.ts +1 -1
- package/lib/dx/shortcuts/markdown/markdown.domain.d.ts +1 -3
- package/lib/dx/shortcuts/markdown/register.d.ts +4 -2
- package/lib/dx/shortcuts/markdown-text/guiMarkdownText.impl.d.ts +1 -1
- package/lib/dx/shortcuts/markdown-text/markdownText.domain.d.ts +1 -2
- package/lib/dx/shortcuts/markdown-text/register.d.ts +4 -2
- package/lib/dx/shortcuts/password/guiPassword.impl.d.ts +1 -1
- package/lib/dx/shortcuts/password/password.domain.d.ts +1 -3
- package/lib/dx/shortcuts/password/register.d.ts +4 -2
- package/lib/dx/shortcuts/radiogroup/guiRadiogroup.impl.d.ts +1 -1
- package/lib/dx/shortcuts/radiogroup/radiogroup.domain.d.ts +1 -2
- package/lib/dx/shortcuts/radiogroup/register.d.ts +4 -2
- package/lib/dx/shortcuts/range-calendar/guiRangeCalendar.impl.d.ts +1 -1
- package/lib/dx/shortcuts/range-calendar/rangeCalendar.domain.d.ts +1 -3
- package/lib/dx/shortcuts/range-calendar/register.d.ts +4 -2
- package/lib/dx/shortcuts/range-date-input/guiRangeDateInput.impl.d.ts +1 -1
- package/lib/dx/shortcuts/range-date-input/rangeDateInput.domain.d.ts +1 -3
- package/lib/dx/shortcuts/range-date-input/register.d.ts +4 -2
- package/lib/dx/shortcuts/range-date-picker/guiRangeDatePicker.impl.d.ts +1 -1
- package/lib/dx/shortcuts/range-date-picker/rangeDatePicker.domain.d.ts +1 -3
- package/lib/dx/shortcuts/range-date-picker/register.d.ts +4 -2
- package/lib/dx/shortcuts/range-date-time-calendar/guiRangeDateTimeCalendar.impl.d.ts +1 -1
- package/lib/dx/shortcuts/range-date-time-calendar/rangeDateTimeCalendar.domain.d.ts +1 -3
- package/lib/dx/shortcuts/range-date-time-calendar/register.d.ts +4 -2
- package/lib/dx/shortcuts/range-date-time-input/guiRangeDateTimeInput.impl.d.ts +1 -1
- package/lib/dx/shortcuts/range-date-time-input/rangeDateTimeInput.domain.d.ts +1 -3
- package/lib/dx/shortcuts/range-date-time-input/register.d.ts +4 -2
- package/lib/dx/shortcuts/range-date-time-picker/guiRangeDateTimePicker.impl.d.ts +1 -1
- package/lib/dx/shortcuts/range-date-time-picker/rangeDateTimePicker.domain.d.ts +1 -3
- package/lib/dx/shortcuts/range-date-time-picker/register.d.ts +4 -2
- package/lib/dx/shortcuts/range-time-input/guiRangeTimeInput.impl.d.ts +1 -1
- package/lib/dx/shortcuts/range-time-input/rangeTimeInput.domain.d.ts +1 -3
- package/lib/dx/shortcuts/range-time-input/register.d.ts +4 -2
- package/lib/dx/shortcuts/range-time-picker/guiRangeTimePicker.impl.d.ts +1 -1
- package/lib/dx/shortcuts/range-time-picker/rangeTimePicker.domain.d.ts +1 -3
- package/lib/dx/shortcuts/range-time-picker/register.d.ts +4 -2
- package/lib/dx/shortcuts/repeater/guiRepeater.impl.d.ts +1 -1
- package/lib/dx/shortcuts/repeater/register.d.ts +5 -3
- package/lib/dx/shortcuts/repeater/repeater.domain.d.ts +1 -4
- package/lib/dx/shortcuts/scopes/gslStates.impl.d.ts +1 -1
- package/lib/dx/shortcuts/scopes/gslTag.impl.d.ts +1 -1
- package/lib/dx/shortcuts/select/guiSelect.impl.d.ts +1 -1
- package/lib/dx/shortcuts/select/register.d.ts +4 -2
- package/lib/dx/shortcuts/select/select.domain.d.ts +1 -2
- package/lib/dx/shortcuts/tabs/guiTabs.impl.d.ts +1 -1
- package/lib/dx/shortcuts/tabs/register.d.ts +4 -2
- package/lib/dx/shortcuts/tabs/tabs.domain.d.ts +1 -3
- package/lib/dx/shortcuts/tags/guiTags.impl.d.ts +1 -1
- package/lib/dx/shortcuts/tags/register.d.ts +4 -2
- package/lib/dx/shortcuts/tags/tags.domain.d.ts +1 -3
- package/lib/dx/shortcuts/textarea/guiTextarea.impl.d.ts +1 -1
- package/lib/dx/shortcuts/textarea/register.d.ts +4 -2
- package/lib/dx/shortcuts/textarea/textarea.domain.d.ts +1 -3
- package/lib/dx/shortcuts/time-input/guiTimeInput.impl.d.ts +1 -1
- package/lib/dx/shortcuts/time-input/register.d.ts +4 -2
- package/lib/dx/shortcuts/time-input/timeInput.domain.d.ts +1 -3
- package/lib/dx/shortcuts/time-picker/guiTimePicker.impl.d.ts +1 -1
- package/lib/dx/shortcuts/time-picker/register.d.ts +4 -2
- package/lib/dx/shortcuts/time-picker/timePicker.domain.d.ts +1 -3
- package/lib/shared.d.ts +3 -0
- package/lib/widgets.d.ts +1 -1
- package/package.json +7 -3
- package/{register-De8Y1vW5.js → resolveFormInput-CsFeoGjz.js} +1402 -1387
- package/resolveFormInput-UcmQ-kme.cjs +1 -0
- package/lib/dx/core/defineShortcutType.d.ts +0 -39
- package/lib/dx/core/dx.domain.d.ts +0 -79
- package/lib/dx/core/dxBase.types.d.ts +0 -128
- package/lib/dx/core/dxPropsHelper.d.ts +0 -9
- package/lib/dx/core/dxUtilityTypes.d.ts +0 -40
- package/lib/dx/core/dxValidatorHelper.d.ts +0 -31
- package/lib/dx/core/eventWiring.service.d.ts +0 -34
- package/lib/dx/core/itemTypeRegistry.d.ts +0 -94
- package/lib/dx/core/itemWalker.service.d.ts +0 -31
- package/lib/dx/core/selectorNormalizer.service.d.ts +0 -15
- package/lib/dx/core/selectorResolver.service.d.ts +0 -11
- package/lib/dx/core/sharedSensibleDefaults.service.d.ts +0 -35
- package/lib/dx/core/stateExpansion.service.d.ts +0 -31
- package/lib/dx/core/widgetMapper.service.d.ts +0 -13
- package/lib/dx/core/widgetMerger.service.d.ts +0 -14
- package/lib/dx/core/withForm.d.ts +0 -8
- package/lib/dx/dx.service.d.ts +0 -36
- package/lib/dx/registerAll.d.ts +0 -0
- package/lib/dx/shortcuts/scopes/scopeChain.d.ts +0 -132
- package/lib/utils/objectUtils.service.d.ts +0 -11
- package/register-B3CJMfX9.cjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## 1.1.1-rc.1 (2026-08-02)
|
|
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.1.1-rc.0 (2026-08-01)
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- **components:** use role toolbar in markdown editor and pass missing titles ([88488312](https://github.com/golemui/golemui/commit/88488312))
|
|
10
|
+
- **components:** announce calendar month changes and label the year selector ([eca6ad26](https://github.com/golemui/golemui/commit/eca6ad26))
|
|
11
|
+
- **components:** accessible date/time pickers ([7e13a999](https://github.com/golemui/golemui/commit/7e13a999))
|
|
12
|
+
- **components:** expose segment aria-label props for date/time parts ([3e80ef30](https://github.com/golemui/golemui/commit/3e80ef30))
|
|
13
|
+
|
|
14
|
+
### ❤️ Thank You
|
|
15
|
+
|
|
16
|
+
- Raúl Jiménez @Elecash
|
|
17
|
+
|
|
1
18
|
## 1.1.0 (2026-07-21)
|
|
2
19
|
|
|
3
20
|
### 🚀 Features
|
package/index.js
CHANGED
|
@@ -1,374 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as p } from "./resolveFormInput-CsFeoGjz.js";
|
|
2
|
+
import "@golemui/dx";
|
|
2
3
|
import "@golemui/core";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
this.conditions = a;
|
|
6
|
-
}
|
|
7
|
-
static root() {
|
|
8
|
-
return new r([]);
|
|
9
|
-
}
|
|
10
|
-
// ─── Scope methods (chain-extending, immutable) ───
|
|
11
|
-
tag(a) {
|
|
12
|
-
return new r([...this.conditions, { kind: "tagsAnd", tags: [a] }]);
|
|
13
|
-
}
|
|
14
|
-
state(a) {
|
|
15
|
-
return new r([...this.conditions, { kind: "state", name: a }]);
|
|
16
|
-
}
|
|
17
|
-
tagsAnd(a) {
|
|
18
|
-
return new r([...this.conditions, { kind: "tagsAnd", tags: a }]);
|
|
19
|
-
}
|
|
20
|
-
tagsOr(a) {
|
|
21
|
-
return new r([...this.conditions, { kind: "tagsOr", tags: a }]);
|
|
22
|
-
}
|
|
23
|
-
apply(a) {
|
|
24
|
-
if (this.conditions.length === 0) return a;
|
|
25
|
-
const s = this.conditions.find(
|
|
26
|
-
(i) => i.kind === "state"
|
|
27
|
-
), e = this.conditions.filter(
|
|
28
|
-
(i) => i.kind !== "state"
|
|
29
|
-
), n = a.matcher;
|
|
30
|
-
return {
|
|
31
|
-
...a,
|
|
32
|
-
matcher: (i) => {
|
|
33
|
-
if (!n(i)) return !1;
|
|
34
|
-
for (const u of e) {
|
|
35
|
-
const g = i.tags ?? [];
|
|
36
|
-
if (u.kind === "tagsAnd") {
|
|
37
|
-
for (const l of u.tags)
|
|
38
|
-
if (!g.includes(l)) return !1;
|
|
39
|
-
} else {
|
|
40
|
-
if (u.tags.length === 0) continue;
|
|
41
|
-
if (!u.tags.some((l) => g.includes(l))) return !1;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return !0;
|
|
45
|
-
},
|
|
46
|
-
...s ? { targetState: s.name } : {}
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
// ─── Type selectors — inputs ───
|
|
50
|
-
inputs(a) {
|
|
51
|
-
return this.apply(d(a));
|
|
52
|
-
}
|
|
53
|
-
inputByUid(a, s) {
|
|
54
|
-
return this.apply(y(a, s));
|
|
55
|
-
}
|
|
56
|
-
textInputs(a) {
|
|
57
|
-
return this.apply(o(a));
|
|
58
|
-
}
|
|
59
|
-
numberInputs(a) {
|
|
60
|
-
return this.apply(c(a));
|
|
61
|
-
}
|
|
62
|
-
booleanInputs(a) {
|
|
63
|
-
return this.apply(_(a));
|
|
64
|
-
}
|
|
65
|
-
selects(a) {
|
|
66
|
-
return this.apply(h(a));
|
|
67
|
-
}
|
|
68
|
-
selectByUid(a, s) {
|
|
69
|
-
return this.apply(m(a, s));
|
|
70
|
-
}
|
|
71
|
-
dropdowns(a) {
|
|
72
|
-
return this.apply(B(a));
|
|
73
|
-
}
|
|
74
|
-
dropdownByUid(a, s) {
|
|
75
|
-
return this.apply(U(a, s));
|
|
76
|
-
}
|
|
77
|
-
radiogroups(a) {
|
|
78
|
-
return this.apply(T(a));
|
|
79
|
-
}
|
|
80
|
-
radiogroupByUid(a, s) {
|
|
81
|
-
return this.apply(k(a, s));
|
|
82
|
-
}
|
|
83
|
-
checkboxes(a) {
|
|
84
|
-
return this.apply(D(a));
|
|
85
|
-
}
|
|
86
|
-
checkboxByUid(a, s) {
|
|
87
|
-
return this.apply(I(a, s));
|
|
88
|
-
}
|
|
89
|
-
textareas(a) {
|
|
90
|
-
return this.apply(P(a));
|
|
91
|
-
}
|
|
92
|
-
textareaByUid(a, s) {
|
|
93
|
-
return this.apply(C(a, s));
|
|
94
|
-
}
|
|
95
|
-
passwords(a) {
|
|
96
|
-
return this.apply(f(a));
|
|
97
|
-
}
|
|
98
|
-
passwordByUid(a, s) {
|
|
99
|
-
return this.apply(R(a, s));
|
|
100
|
-
}
|
|
101
|
-
currencies(a) {
|
|
102
|
-
return this.apply(w(a));
|
|
103
|
-
}
|
|
104
|
-
currencyByUid(a, s) {
|
|
105
|
-
return this.apply(x(a, s));
|
|
106
|
-
}
|
|
107
|
-
markdowns(a) {
|
|
108
|
-
return this.apply(b(a));
|
|
109
|
-
}
|
|
110
|
-
markdownByUid(a, s) {
|
|
111
|
-
return this.apply(A(a, s));
|
|
112
|
-
}
|
|
113
|
-
lists(a) {
|
|
114
|
-
return this.apply(L(a));
|
|
115
|
-
}
|
|
116
|
-
listByUid(a, s) {
|
|
117
|
-
return this.apply(M(a, s));
|
|
118
|
-
}
|
|
119
|
-
calendars(a) {
|
|
120
|
-
return this.apply($(a));
|
|
121
|
-
}
|
|
122
|
-
calendarByUid(a, s) {
|
|
123
|
-
return this.apply(F(a, s));
|
|
124
|
-
}
|
|
125
|
-
dateTimeCalendars(a) {
|
|
126
|
-
return this.apply(G(a));
|
|
127
|
-
}
|
|
128
|
-
dateTimeCalendarByUid(a, s) {
|
|
129
|
-
return this.apply(v(a, s));
|
|
130
|
-
}
|
|
131
|
-
dateInputs(a) {
|
|
132
|
-
return this.apply(z(a));
|
|
133
|
-
}
|
|
134
|
-
dateInputByUid(a, s) {
|
|
135
|
-
return this.apply(j(a, s));
|
|
136
|
-
}
|
|
137
|
-
timeInputs(a) {
|
|
138
|
-
return this.apply(O(a));
|
|
139
|
-
}
|
|
140
|
-
timeInputByUid(a, s) {
|
|
141
|
-
return this.apply(H(a, s));
|
|
142
|
-
}
|
|
143
|
-
timePickers(a) {
|
|
144
|
-
return this.apply(N(a));
|
|
145
|
-
}
|
|
146
|
-
timePickerByUid(a, s) {
|
|
147
|
-
return this.apply(V(a, s));
|
|
148
|
-
}
|
|
149
|
-
dateTimeInputs(a) {
|
|
150
|
-
return this.apply(E(a));
|
|
151
|
-
}
|
|
152
|
-
dateTimeInputByUid(a, s) {
|
|
153
|
-
return this.apply(W(a, s));
|
|
154
|
-
}
|
|
155
|
-
datePickers(a) {
|
|
156
|
-
return this.apply(q(a));
|
|
157
|
-
}
|
|
158
|
-
datePickerByUid(a, s) {
|
|
159
|
-
return this.apply(K(a, s));
|
|
160
|
-
}
|
|
161
|
-
dateTimePickers(a) {
|
|
162
|
-
return this.apply(Q(a));
|
|
163
|
-
}
|
|
164
|
-
dateTimePickerByUid(a, s) {
|
|
165
|
-
return this.apply(S(a, s));
|
|
166
|
-
}
|
|
167
|
-
rangeCalendars(a) {
|
|
168
|
-
return this.apply(X(a));
|
|
169
|
-
}
|
|
170
|
-
rangeCalendarByUid(a, s) {
|
|
171
|
-
return this.apply(Y(a, s));
|
|
172
|
-
}
|
|
173
|
-
rangeDateInputs(a) {
|
|
174
|
-
return this.apply(Z(a));
|
|
175
|
-
}
|
|
176
|
-
rangeDateInputByUid(a, s) {
|
|
177
|
-
return this.apply(J(a, s));
|
|
178
|
-
}
|
|
179
|
-
rangeTimeInputs(a) {
|
|
180
|
-
return this.apply(aa(a));
|
|
181
|
-
}
|
|
182
|
-
rangeTimeInputByUid(a, s) {
|
|
183
|
-
return this.apply(sa(a, s));
|
|
184
|
-
}
|
|
185
|
-
rangeDateTimeInputs(a) {
|
|
186
|
-
return this.apply(ta(a));
|
|
187
|
-
}
|
|
188
|
-
rangeDateTimeInputByUid(a, s) {
|
|
189
|
-
return this.apply(ea(a, s));
|
|
190
|
-
}
|
|
191
|
-
rangeDateTimeCalendars(a) {
|
|
192
|
-
return this.apply(ia(a));
|
|
193
|
-
}
|
|
194
|
-
rangeDateTimeCalendarByUid(a, s) {
|
|
195
|
-
return this.apply(ra(a, s));
|
|
196
|
-
}
|
|
197
|
-
rangeDateTimePickers(a) {
|
|
198
|
-
return this.apply(na(a));
|
|
199
|
-
}
|
|
200
|
-
rangeDateTimePickerByUid(a, s) {
|
|
201
|
-
return this.apply(ua(a, s));
|
|
202
|
-
}
|
|
203
|
-
rangeDatePickers(a) {
|
|
204
|
-
return this.apply(la(a));
|
|
205
|
-
}
|
|
206
|
-
rangeDatePickerByUid(a, s) {
|
|
207
|
-
return this.apply(pa(a, s));
|
|
208
|
-
}
|
|
209
|
-
rangeTimePickers(a) {
|
|
210
|
-
return this.apply(ga(a));
|
|
211
|
-
}
|
|
212
|
-
rangeTimePickerByUid(a, s) {
|
|
213
|
-
return this.apply(da(a, s));
|
|
214
|
-
}
|
|
215
|
-
repeaters(a) {
|
|
216
|
-
return this.apply(ya(a));
|
|
217
|
-
}
|
|
218
|
-
repeaterByUid(a, s) {
|
|
219
|
-
return this.apply(oa(a, s));
|
|
220
|
-
}
|
|
221
|
-
// ─── Type selectors — actions, displays, layouts ───
|
|
222
|
-
actions(a) {
|
|
223
|
-
return this.apply(ca(a));
|
|
224
|
-
}
|
|
225
|
-
actionByUid(a, s) {
|
|
226
|
-
return this.apply(_a(a, s));
|
|
227
|
-
}
|
|
228
|
-
layouts(a) {
|
|
229
|
-
return this.apply(ha(a));
|
|
230
|
-
}
|
|
231
|
-
layoutByUid(a, s) {
|
|
232
|
-
return this.apply(ma(a, s));
|
|
233
|
-
}
|
|
234
|
-
displays(a) {
|
|
235
|
-
return this.apply(Ba(a));
|
|
236
|
-
}
|
|
237
|
-
displayByUid(a, s) {
|
|
238
|
-
return this.apply(Ua(a, s));
|
|
239
|
-
}
|
|
240
|
-
alerts(a) {
|
|
241
|
-
return this.apply(Ta(a));
|
|
242
|
-
}
|
|
243
|
-
alertByUid(a, s) {
|
|
244
|
-
return this.apply(ka(a, s));
|
|
245
|
-
}
|
|
246
|
-
markdownTexts(a) {
|
|
247
|
-
return this.apply(Da(a));
|
|
248
|
-
}
|
|
249
|
-
markdownTextByUid(a, s) {
|
|
250
|
-
return this.apply(Ia(a, s));
|
|
251
|
-
}
|
|
252
|
-
tabs(a) {
|
|
253
|
-
return this.apply(Pa(a));
|
|
254
|
-
}
|
|
255
|
-
tabsByUid(a, s) {
|
|
256
|
-
return this.apply(Ca(a, s));
|
|
257
|
-
}
|
|
258
|
-
accordions(a) {
|
|
259
|
-
return this.apply(fa(a));
|
|
260
|
-
}
|
|
261
|
-
accordionByUid(a, s) {
|
|
262
|
-
return this.apply(Ra(a, s));
|
|
263
|
-
}
|
|
264
|
-
// ─── Type selectors — custom kinds ───
|
|
265
|
-
customInputs(a) {
|
|
266
|
-
return this.apply(wa(a));
|
|
267
|
-
}
|
|
268
|
-
customInputByUid(a, s) {
|
|
269
|
-
return this.apply(xa(a, s));
|
|
270
|
-
}
|
|
271
|
-
customActions(a) {
|
|
272
|
-
return this.apply(ba(a));
|
|
273
|
-
}
|
|
274
|
-
customActionByUid(a, s) {
|
|
275
|
-
return this.apply(Aa(a, s));
|
|
276
|
-
}
|
|
277
|
-
customDisplays(a) {
|
|
278
|
-
return this.apply(La(a));
|
|
279
|
-
}
|
|
280
|
-
customDisplayByUid(a, s) {
|
|
281
|
-
return this.apply(Ma(a, s));
|
|
282
|
-
}
|
|
283
|
-
customLayouts(a) {
|
|
284
|
-
return this.apply($a(a));
|
|
285
|
-
}
|
|
286
|
-
customLayoutByUid(a, s) {
|
|
287
|
-
return this.apply(Fa(a, s));
|
|
288
|
-
}
|
|
4
|
+
function s(r) {
|
|
5
|
+
return typeof r == "object" && r !== null && "$ref" in r && typeof r.$ref == "string" && Object.keys(r).length === 1;
|
|
289
6
|
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
select: Ps,
|
|
296
|
-
dropdown: Is,
|
|
297
|
-
radiogroup: Ds,
|
|
298
|
-
checkbox: ks,
|
|
299
|
-
textarea: Ts,
|
|
300
|
-
password: Us,
|
|
301
|
-
currency: Bs,
|
|
302
|
-
markdown: ms,
|
|
303
|
-
list: hs,
|
|
304
|
-
calendar: _s,
|
|
305
|
-
dateTimeCalendar: cs,
|
|
306
|
-
dateInput: os,
|
|
307
|
-
datePicker: ys,
|
|
308
|
-
dateTimePicker: ds,
|
|
309
|
-
timeInput: gs,
|
|
310
|
-
timePicker: ps,
|
|
311
|
-
dateTimeInput: ls,
|
|
312
|
-
rangeCalendar: us,
|
|
313
|
-
rangeDateInput: ns,
|
|
314
|
-
rangeDateTimeInput: rs,
|
|
315
|
-
rangeDateTimeCalendar: is,
|
|
316
|
-
rangeDateTimePicker: es,
|
|
317
|
-
rangeTimeInput: ts,
|
|
318
|
-
rangeDatePicker: ss,
|
|
319
|
-
rangeTimePicker: as,
|
|
320
|
-
repeater: Ja,
|
|
321
|
-
tags: Za,
|
|
322
|
-
custom: Ya
|
|
323
|
-
},
|
|
324
|
-
actions: {
|
|
325
|
-
button: Xa,
|
|
326
|
-
custom: Sa
|
|
327
|
-
},
|
|
328
|
-
displays: {
|
|
329
|
-
display: Qa,
|
|
330
|
-
alert: Ka,
|
|
331
|
-
markdownText: qa,
|
|
332
|
-
custom: Wa
|
|
333
|
-
},
|
|
334
|
-
layouts: {
|
|
335
|
-
flex: Ea,
|
|
336
|
-
horizontalFlex: Va,
|
|
337
|
-
verticalFlex: Na,
|
|
338
|
-
grid: Ha,
|
|
339
|
-
horizontalGrid: Oa,
|
|
340
|
-
verticalGrid: ja,
|
|
341
|
-
tabs: za,
|
|
342
|
-
accordion: va,
|
|
343
|
-
custom: Ga
|
|
344
|
-
},
|
|
345
|
-
selectors: r.root()
|
|
346
|
-
};
|
|
347
|
-
function ws(t) {
|
|
348
|
-
return typeof t == "object" && t !== null && "$ref" in t && typeof t.$ref == "string" && Object.keys(t).length === 1;
|
|
7
|
+
async function i(r, t) {
|
|
8
|
+
const n = new URL(r, t).href, e = await fetch(n);
|
|
9
|
+
if (!e.ok) throw new Error(`Failed to load form chunk ${n}: ${e.status}`);
|
|
10
|
+
const { $schema: a, ...c } = await e.json();
|
|
11
|
+
return o(c, n);
|
|
349
12
|
}
|
|
350
|
-
async function
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
const s = t;
|
|
359
|
-
if (Array.isArray(s.children)) {
|
|
360
|
-
const e = await Promise.all(s.children.map((n) => p(n, a)));
|
|
361
|
-
return { ...s, children: e };
|
|
362
|
-
}
|
|
363
|
-
return t;
|
|
13
|
+
async function o(r, t) {
|
|
14
|
+
if (s(r)) return i(r.$ref, t);
|
|
15
|
+
const n = r;
|
|
16
|
+
if (Array.isArray(n.children)) {
|
|
17
|
+
const e = await Promise.all(n.children.map((a) => o(a, t)));
|
|
18
|
+
return { ...n, children: e };
|
|
19
|
+
}
|
|
20
|
+
return r;
|
|
364
21
|
}
|
|
365
|
-
async function
|
|
366
|
-
const
|
|
367
|
-
|
|
22
|
+
async function l(r, t) {
|
|
23
|
+
const n = await Promise.all(
|
|
24
|
+
r.form.map((e) => o(e, t))
|
|
368
25
|
);
|
|
369
|
-
return { ...
|
|
26
|
+
return { ...r, form: n };
|
|
370
27
|
}
|
|
371
28
|
export {
|
|
372
|
-
|
|
373
|
-
|
|
29
|
+
p as gui,
|
|
30
|
+
l as resolveChunkRefs
|
|
374
31
|
};
|
package/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./resolveFormInput-UcmQ-kme.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;
|