@golemui/gui-shared 1.1.1-rc.0 → 1.1.1-rc.1
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 +13 -0
- package/index.js +6 -5
- 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 +7 -33
- package/lib/dx/formDefs.d.ts +5 -0
- package/lib/dx/gui.d.ts +7 -7
- package/lib/dx/index.d.ts +11 -11
- package/lib/dx/registry.d.ts +26 -0
- package/lib/dx/resolveFormInput.d.ts +5 -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/scopes/scopeChain.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 +1 -13
- package/lib/widgets.d.ts +1 -1
- package/package.json +7 -3
- package/resolveFormInput-DDKerzen.cjs +1 -0
- package/{register-De8Y1vW5.js → resolveFormInput-Dp0TB3LB.js} +533 -663
- 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/utils/objectUtils.service.d.ts +0 -11
- package/register-B3CJMfX9.cjs +0 -1
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ArrayValidator } from '@golemui/gui-validators';
|
|
2
2
|
import { RangeTimePickerProps } from '../../../widget.props';
|
|
3
|
-
import { DxCommonFields, DxInputBase } from '
|
|
4
|
-
import { DefOrCallback, GslConfigBase, GuiShortcutOf } from '../../core/dxUtilityTypes';
|
|
5
|
-
import { DxValidator } from '../../core/dxValidatorHelper';
|
|
3
|
+
import { DxCommonFields, DxInputBase, DefOrCallback, GslConfigBase, GuiShortcutOf, DxValidator } from '@golemui/dx';
|
|
6
4
|
export interface RangeTimePickerDecorator extends DxInputBase, DxCommonFields, Partial<RangeTimePickerProps> {
|
|
7
5
|
type: 'rangeTimePicker';
|
|
8
6
|
validator?: DxValidator<ArrayValidator>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { GslRangeTimePickerConfig, RangeTimePickerDecorator } from './rangeTimePicker.domain';
|
|
2
|
-
export declare const
|
|
1
|
+
import { GslRangeTimePickerConfig, RangeTimePickerDecorator, RangeTimePickerEntry } from './rangeTimePicker.domain';
|
|
2
|
+
export declare const rangeTimePickerShortcutType: import('@golemui/dx').ShortcutTypeDefinition<RangeTimePickerEntry, RangeTimePickerDecorator, GslRangeTimePickerConfig>;
|
|
3
|
+
export declare const _gslRangeTimePickers: (config: GslRangeTimePickerConfig, matcher?: ((decorator: RangeTimePickerDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
4
|
+
export declare const _gslRangeTimePickerByUid: (uid: string, config: GslRangeTimePickerConfig) => import('@golemui/dx').GslLeafSelector;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValidGuiShortcut } from '
|
|
1
|
+
import { ValidGuiShortcut } from '@golemui/dx';
|
|
2
2
|
import { RepeaterDecorator, GuiRepeaterShortcut } from './repeater.domain';
|
|
3
3
|
export interface RepeaterProps extends Omit<Partial<RepeaterDecorator>, 'template'> {
|
|
4
4
|
template: ValidGuiShortcut[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
1
|
+
import { ShortcutTypeDefinition } from '@golemui/dx';
|
|
2
|
+
import { RepeaterDecorator, RepeaterEntry, GslRepeaterConfig } from './repeater.domain';
|
|
3
|
+
export declare const _gslRepeaters: (config: GslRepeaterConfig, matcher?: (decorator: RepeaterDecorator) => boolean) => import('@golemui/dx').GslLeafSelector;
|
|
4
|
+
export declare const _gslRepeaterByUid: (id: string, config: GslRepeaterConfig) => import('@golemui/dx').GslLeafSelector;
|
|
5
|
+
export declare const repeaterShortcutType: ShortcutTypeDefinition<RepeaterEntry, RepeaterDecorator, GslRepeaterConfig>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { ArrayValidator } from '@golemui/gui-validators';
|
|
2
|
-
import { DxCommonFields } from '
|
|
3
|
-
import { DefOrCallback, GslConfigBase, GuiShortcutOf } from '../../core/dxUtilityTypes';
|
|
4
|
-
import { ValidGuiShortcut } from '../../core/dx.domain';
|
|
5
|
-
import { DxValidator } from '../../core/dxValidatorHelper';
|
|
2
|
+
import { DxCommonFields, DefOrCallback, GslConfigBase, GuiShortcutOf, ValidGuiShortcut, DxValidator } from '@golemui/dx';
|
|
6
3
|
export interface RepeaterDecorator extends DxCommonFields {
|
|
7
4
|
label?: string;
|
|
8
5
|
addLabel?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GslLeafSelector } from '
|
|
1
|
+
import { GslLeafSelector } from '@golemui/dx';
|
|
2
2
|
/**
|
|
3
3
|
* Internal underscore-era state-targeting primitive. Pending focus-closeout
|
|
4
4
|
* removal — the spec entrance is `gui.selectors.state(name).<typeSelector>(config)`.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GslAggregatedSelector, GslLeafSelector } from '
|
|
1
|
+
import { GslAggregatedSelector, GslLeafSelector } from '@golemui/dx';
|
|
2
2
|
export declare function _gslTag(tag: string, ...children: GslLeafSelector[]): GslAggregatedSelector;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GslLeafSelector } from '
|
|
1
|
+
import { GslLeafSelector } from '@golemui/dx';
|
|
2
2
|
import { _gslInputs, _gslInputByUid } from '../inputs/register';
|
|
3
3
|
import { _gslTextInputs, _gslNumberInputs, _gslBooleanInputs } from '../inputs/gslInputSubtypes';
|
|
4
4
|
import { _gslSelects, _gslSelectByUid } from '../select/register';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DxRuntimeParams } from '
|
|
1
|
+
import { DxRuntimeParams } from '@golemui/dx';
|
|
2
2
|
import { GuiSelectShortcut, SelectDecorator } from './select.domain';
|
|
3
3
|
type SelectFactoryProps = Omit<SelectDecorator, 'type'>;
|
|
4
4
|
export declare function _guiSelect(path: string, props: SelectFactoryProps): GuiSelectShortcut;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { GslSelectConfig, SelectDecorator } from './select.domain';
|
|
2
|
-
export declare const
|
|
1
|
+
import { GslSelectConfig, SelectDecorator, SelectEntry } from './select.domain';
|
|
2
|
+
export declare const selectShortcutType: import('@golemui/dx').ShortcutTypeDefinition<SelectEntry, SelectDecorator, GslSelectConfig>;
|
|
3
|
+
export declare const _gslSelects: (config: GslSelectConfig, matcher?: ((decorator: SelectDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
4
|
+
export declare const _gslSelectByUid: (uid: string, config: GslSelectConfig) => import('@golemui/dx').GslLeafSelector;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Validator } from '@golemui/gui-validators';
|
|
2
2
|
import { Option, OptionValue, SelectProps } from '../../../widget.props';
|
|
3
|
-
import { DxCommonFields, DxInputBase } from '
|
|
4
|
-
import { DefOrCallback, GslConfigBase, GuiShortcutOf } from '../../core/dxUtilityTypes';
|
|
3
|
+
import { DxCommonFields, DxInputBase, DefOrCallback, GslConfigBase, GuiShortcutOf } from '@golemui/dx';
|
|
5
4
|
export interface SelectDecorator extends DxInputBase, DxCommonFields, Partial<Omit<SelectProps, 'options'>> {
|
|
6
5
|
type: 'select';
|
|
7
6
|
options?: Option[] | OptionValue[] | Record<string, unknown>[];
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { GslTabsConfig, TabsDecorator } from './tabs.domain';
|
|
2
|
-
export declare const
|
|
1
|
+
import { GslTabsConfig, TabsDecorator, TabsEntry } from './tabs.domain';
|
|
2
|
+
export declare const tabsShortcutType: import('@golemui/dx').ShortcutTypeDefinition<TabsEntry, TabsDecorator, GslTabsConfig>;
|
|
3
|
+
export declare const _gslTabs: (config: GslTabsConfig, matcher?: ((decorator: TabsDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
4
|
+
export declare const _gslTabsByUid: (uid: string, config: GslTabsConfig) => import('@golemui/dx').GslLeafSelector;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { DxCommonFields, DxLayoutBase } from '
|
|
2
|
-
import { DefOrCallback, GslConfigBase, GuiShortcutOf } from '../../core/dxUtilityTypes';
|
|
3
|
-
import { ValidGuiShortcut } from '../../core/dx.domain';
|
|
1
|
+
import { DxCommonFields, DxLayoutBase, DefOrCallback, GslConfigBase, GuiShortcutOf, ValidGuiShortcut } from '@golemui/dx';
|
|
4
2
|
export interface TabsDecorator extends DxLayoutBase, DxCommonFields {
|
|
5
3
|
tabs: {
|
|
6
4
|
label: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DxRuntimeParams } from '
|
|
1
|
+
import { DxRuntimeParams } from '@golemui/dx';
|
|
2
2
|
import { GuiTagsShortcut, TagsDecorator } from './tags.domain';
|
|
3
3
|
export declare function _guiTags(path: string): GuiTagsShortcut;
|
|
4
4
|
export declare function _guiTags(path: string, props: Partial<Omit<TagsDecorator, 'type'>>): GuiTagsShortcut;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { GslTagsConfig, TagsDecorator } from './tags.domain';
|
|
2
|
-
export declare const
|
|
1
|
+
import { GslTagsConfig, TagsDecorator, TagsEntry } from './tags.domain';
|
|
2
|
+
export declare const tagsShortcutType: import('@golemui/dx').ShortcutTypeDefinition<TagsEntry, TagsDecorator, GslTagsConfig>;
|
|
3
|
+
export declare const _gslTags: (config: GslTagsConfig, matcher?: ((decorator: TagsDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
4
|
+
export declare const _gslTagsByUid: (uid: string, config: GslTagsConfig) => import('@golemui/dx').GslLeafSelector;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ArrayValidator } from '@golemui/gui-validators';
|
|
2
2
|
import { TagsProps } from '../../../widget.props';
|
|
3
|
-
import { DxCommonFields, DxInputBase } from '
|
|
4
|
-
import { DefOrCallback, GslConfigBase, GuiShortcutOf } from '../../core/dxUtilityTypes';
|
|
5
|
-
import { DxValidator } from '../../core/dxValidatorHelper';
|
|
3
|
+
import { DxCommonFields, DxInputBase, DefOrCallback, GslConfigBase, GuiShortcutOf, DxValidator } from '@golemui/dx';
|
|
6
4
|
export interface TagsDecorator extends DxInputBase, DxCommonFields, Partial<TagsProps> {
|
|
7
5
|
type: 'tags';
|
|
8
6
|
validator?: DxValidator<ArrayValidator>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DxRuntimeParams } from '
|
|
1
|
+
import { DxRuntimeParams } from '@golemui/dx';
|
|
2
2
|
import { GuiTextareaShortcut, TextareaDecorator } from './textarea.domain';
|
|
3
3
|
export declare function _guiTextarea(path: string): GuiTextareaShortcut;
|
|
4
4
|
export declare function _guiTextarea(path: string, props: Partial<Omit<TextareaDecorator, 'type'>>): GuiTextareaShortcut;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { GslTextareaConfig, TextareaDecorator } from './textarea.domain';
|
|
2
|
-
export declare const
|
|
1
|
+
import { GslTextareaConfig, TextareaDecorator, TextareaEntry } from './textarea.domain';
|
|
2
|
+
export declare const textareaShortcutType: import('@golemui/dx').ShortcutTypeDefinition<TextareaEntry, TextareaDecorator, GslTextareaConfig>;
|
|
3
|
+
export declare const _gslTextareas: (config: GslTextareaConfig, matcher?: ((decorator: TextareaDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
4
|
+
export declare const _gslTextareaByUid: (uid: string, config: GslTextareaConfig) => import('@golemui/dx').GslLeafSelector;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { StringValidator } from '@golemui/gui-validators';
|
|
2
2
|
import { TextareaProps } from '../../../widget.props';
|
|
3
|
-
import { DxCommonFields, DxInputBase } from '
|
|
4
|
-
import { DefOrCallback, GslConfigBase, GuiShortcutOf } from '../../core/dxUtilityTypes';
|
|
5
|
-
import { DxValidator } from '../../core/dxValidatorHelper';
|
|
3
|
+
import { DxCommonFields, DxInputBase, DefOrCallback, GslConfigBase, GuiShortcutOf, DxValidator } from '@golemui/dx';
|
|
6
4
|
export interface TextareaDecorator extends DxInputBase, DxCommonFields, Partial<TextareaProps> {
|
|
7
5
|
type: 'textarea';
|
|
8
6
|
validator?: DxValidator<StringValidator>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DxRuntimeParams } from '
|
|
1
|
+
import { DxRuntimeParams } from '@golemui/dx';
|
|
2
2
|
import { TimeInputDecorator, GuiTimeInputShortcut } from './timeInput.domain';
|
|
3
3
|
export declare function _guiTimeInput(path: string): GuiTimeInputShortcut;
|
|
4
4
|
export declare function _guiTimeInput(path: string, props: Partial<Omit<TimeInputDecorator, 'type'>>): GuiTimeInputShortcut;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { TimeInputDecorator, GslTimeInputConfig } from './timeInput.domain';
|
|
2
|
-
export declare const
|
|
1
|
+
import { TimeInputDecorator, TimeInputEntry, GslTimeInputConfig } from './timeInput.domain';
|
|
2
|
+
export declare const timeInputShortcutType: import('@golemui/dx').ShortcutTypeDefinition<TimeInputEntry, TimeInputDecorator, GslTimeInputConfig>;
|
|
3
|
+
export declare const _gslTimeInputs: (config: GslTimeInputConfig, matcher?: ((decorator: TimeInputDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
4
|
+
export declare const _gslTimeInputByUid: (uid: string, config: GslTimeInputConfig) => import('@golemui/dx').GslLeafSelector;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { StringValidator } from '@golemui/gui-validators';
|
|
2
2
|
import { TimeInputProps } from '../../../widget.props';
|
|
3
|
-
import { DxCommonFields, DxInputBase } from '
|
|
4
|
-
import { DefOrCallback, GslConfigBase, GuiShortcutOf } from '../../core/dxUtilityTypes';
|
|
5
|
-
import { DxValidator } from '../../core/dxValidatorHelper';
|
|
3
|
+
import { DxCommonFields, DxInputBase, DefOrCallback, GslConfigBase, GuiShortcutOf, DxValidator } from '@golemui/dx';
|
|
6
4
|
export interface TimeInputDecorator extends DxInputBase, DxCommonFields, Partial<TimeInputProps> {
|
|
7
5
|
type: 'timeInput';
|
|
8
6
|
validator?: DxValidator<StringValidator>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DxRuntimeParams } from '
|
|
1
|
+
import { DxRuntimeParams } from '@golemui/dx';
|
|
2
2
|
import { TimePickerDecorator, GuiTimePickerShortcut } from './timePicker.domain';
|
|
3
3
|
type TimePickerFactoryProps = Omit<TimePickerDecorator, 'type'>;
|
|
4
4
|
export declare function _guiTimePicker(path: string, props: TimePickerFactoryProps): GuiTimePickerShortcut;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { TimePickerDecorator, GslTimePickerConfig } from './timePicker.domain';
|
|
2
|
-
export declare const
|
|
1
|
+
import { TimePickerDecorator, TimePickerEntry, GslTimePickerConfig } from './timePicker.domain';
|
|
2
|
+
export declare const timePickerShortcutType: import('@golemui/dx').ShortcutTypeDefinition<TimePickerEntry, TimePickerDecorator, GslTimePickerConfig>;
|
|
3
|
+
export declare const _gslTimePickers: (config: GslTimePickerConfig, matcher?: ((decorator: TimePickerDecorator) => boolean) | undefined) => import('@golemui/dx').GslLeafSelector;
|
|
4
|
+
export declare const _gslTimePickerByUid: (uid: string, config: GslTimePickerConfig) => import('@golemui/dx').GslLeafSelector;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { StringValidator } from '@golemui/gui-validators';
|
|
2
2
|
import { TimePickerProps } from '../../../widget.props';
|
|
3
|
-
import { DxCommonFields, DxInputBase } from '
|
|
4
|
-
import { DefOrCallback, GslConfigBase, GuiShortcutOf } from '../../core/dxUtilityTypes';
|
|
5
|
-
import { DxValidator } from '../../core/dxValidatorHelper';
|
|
3
|
+
import { DxCommonFields, DxInputBase, DefOrCallback, GslConfigBase, GuiShortcutOf, DxValidator } from '@golemui/dx';
|
|
6
4
|
export interface TimePickerDecorator extends DxInputBase, DxCommonFields, Partial<TimePickerProps> {
|
|
7
5
|
type: 'timePicker';
|
|
8
6
|
validator?: DxValidator<StringValidator>;
|
package/lib/shared.d.ts
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Dependencies are any 3rd party service components may need internally.
|
|
3
|
-
* e.g. a markdown parser for the Markdown component
|
|
4
|
-
*/
|
|
5
|
-
export type Dependencies = {
|
|
6
|
-
/**
|
|
7
|
-
* The markdown parser used by the markdown component
|
|
8
|
-
* Popular options are Snarkdown, Micromark and Marked.
|
|
9
|
-
*/
|
|
10
|
-
markdown?: {
|
|
11
|
-
parse: (markdown: string) => string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
1
|
+
export type { Dependencies } from '@golemui/dx';
|
package/lib/widgets.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const inputWidgets: readonly ["calendar", "dateTimeCalendar", "ch
|
|
|
2
2
|
export declare const layoutWidgets: readonly ["accordion", "flex", "grid", "tabs"];
|
|
3
3
|
export declare const displayWidgets: readonly ["alert", "markdownText", "renderer"];
|
|
4
4
|
export declare const actionWidgets: readonly ["button"];
|
|
5
|
-
export declare const golemWidgets: ("number" | "button" | "repeater" | "flex" | "tags" | "
|
|
5
|
+
export declare const golemWidgets: ("number" | "button" | "repeater" | "flex" | "tags" | "select" | "dropdown" | "radiogroup" | "checkbox" | "textarea" | "password" | "currency" | "markdown" | "list" | "calendar" | "dateTimeCalendar" | "dateInput" | "datePicker" | "dateTimePicker" | "rangeCalendar" | "rangeDateInput" | "rangeDateTimeInput" | "rangeDateTimeCalendar" | "rangeDateTimePicker" | "rangeTimeInput" | "rangeDatePicker" | "rangeTimePicker" | "timeInput" | "timePicker" | "dateTimeInput" | "grid" | "tabs" | "toggle" | "textinput" | "renderer" | "alert" | "markdownText" | "accordion")[];
|
|
6
6
|
export type GolemInputWidget = (typeof inputWidgets)[number];
|
|
7
7
|
export type GolemLayoutWidget = (typeof layoutWidgets)[number];
|
|
8
8
|
export type GolemDisplayWidget = (typeof displayWidgets)[number];
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemui/gui-shared",
|
|
3
|
-
"version": "1.1.1-rc.
|
|
3
|
+
"version": "1.1.1-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
5
8
|
"type": "module",
|
|
6
9
|
"main": "./index.umd.cjs",
|
|
7
10
|
"module": "./index.js",
|
|
@@ -31,8 +34,9 @@
|
|
|
31
34
|
"*.md"
|
|
32
35
|
],
|
|
33
36
|
"dependencies": {
|
|
34
|
-
"@golemui/core": "1.1.1-rc.
|
|
35
|
-
"@golemui/
|
|
37
|
+
"@golemui/core": "1.1.1-rc.1",
|
|
38
|
+
"@golemui/dx": "1.1.1-rc.1",
|
|
39
|
+
"@golemui/gui-validators": "1.1.1-rc.1"
|
|
36
40
|
},
|
|
37
41
|
"repository": {
|
|
38
42
|
"type": "git",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("@golemui/dx");require("@golemui/core");function de(e,t,i){if(typeof t=="function"){const n=t;return{items:[{key:e,def:o=>({type:"text",...n(o)})}],type:"ITEMS",itemType:s.GuiItemTypes.INPUTS,tags:i??[]}}const a={type:"text",...t};return{items:[{key:e,def:a}],type:"ITEMS",itemType:s.GuiItemTypes.INPUTS,tags:i??[]}}function ce(e,t,i){if(typeof t=="function"){const n=t;return{items:[{key:e,def:o=>({type:"number",...n(o)})}],type:"ITEMS",itemType:s.GuiItemTypes.INPUTS,tags:i??[]}}const a={type:"number",...t};return{items:[{key:e,def:a}],type:"ITEMS",itemType:s.GuiItemTypes.INPUTS,tags:i??[]}}function ye(e,t,i){if(typeof t=="function"){const n=t;return{items:[{key:e,def:o=>({type:"boolean",...n(o)})}],type:"ITEMS",itemType:s.GuiItemTypes.INPUTS,tags:i??[]}}const a={type:"boolean",...t};return{items:[{key:e,def:a}],type:"ITEMS",itemType:s.GuiItemTypes.INPUTS,tags:i??[]}}function me(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"SELECT",items:[{key:e,def:r=>({type:"select",...l(r)})}],tags:i??[]}}const a={type:"select",...t};return{type:"ITEMS",itemType:"SELECT",items:[{key:e,def:a}],tags:i??[]}}function Te(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DROPDOWN",items:[{key:e,def:r=>({type:"dropdown",...l(r)})}],tags:i??[]}}const a={type:"dropdown",...t};return{type:"ITEMS",itemType:"DROPDOWN",items:[{key:e,def:a}],tags:i??[]}}function ge(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RADIOGROUP",items:[{key:e,def:r=>({type:"radiogroup",...l(r)})}],tags:i??[]}}const a={type:"radiogroup",...t};return{type:"ITEMS",itemType:"RADIOGROUP",items:[{key:e,def:a}],tags:i??[]}}function be(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CHECKBOX",items:[{key:e,def:r=>({type:"checkbox",...l(r)})}],tags:i??[]}}const a={type:"checkbox",...t};return{type:"ITEMS",itemType:"CHECKBOX",items:[{key:e,def:a}],tags:i??[]}}function _e(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TEXTAREA",items:[{key:e,def:r=>({type:"textarea",...l(r)})}],tags:i??[]}}const a={type:"textarea",...t};return{type:"ITEMS",itemType:"TEXTAREA",items:[{key:e,def:a}],tags:i??[]}}function Ie(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"PASSWORD",items:[{key:e,def:r=>({type:"password",...l(r)})}],tags:i??[]}}const a={type:"password",...t};return{type:"ITEMS",itemType:"PASSWORD",items:[{key:e,def:a}],tags:i??[]}}function Ae(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CURRENCY",items:[{key:e,def:r=>({type:"currency",...l(r)})}],tags:i??[]}}const a={type:"currency",...t};return{type:"ITEMS",itemType:"CURRENCY",items:[{key:e,def:a}],tags:i??[]}}function Se(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"MARKDOWN",items:[{key:e,def:r=>({type:"markdown",...l(r)})}],tags:i??[]}}const a={type:"markdown",...t};return{type:"ITEMS",itemType:"MARKDOWN",items:[{key:e,def:a}],tags:i??[]}}function he(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"LIST",items:[{key:e,def:r=>({type:"list",...l(r)})}],tags:i??[]}}const a={type:"list",...t};return{type:"ITEMS",itemType:"LIST",items:[{key:e,def:a}],tags:i??[]}}function ke(e,t,i){if(typeof t=="function"){const n=t;return{items:[o=>({type:"calendar",path:e,...n(o)})],type:"ITEMS",itemType:"CALENDAR",tags:i??[]}}return{items:[{type:"calendar",path:e,...t}],type:"ITEMS",itemType:"CALENDAR",tags:i??[]}}function Ee(e,t,i){if(typeof t=="function"){const n=t;return{items:[o=>({type:"dateTimeCalendar",path:e,...n(o)})],type:"ITEMS",itemType:"DATE_TIME_CALENDAR",tags:i??[]}}return{items:[{type:"dateTimeCalendar",path:e,...t}],type:"ITEMS",itemType:"DATE_TIME_CALENDAR",tags:i??[]}}function Pe(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_INPUT",items:[{key:e,def:r=>({type:"dateInput",...l(r)})}],tags:i??[]}}const a={type:"dateInput",...t};return{type:"ITEMS",itemType:"DATE_INPUT",items:[{key:e,def:a}],tags:i??[]}}function De(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_PICKER",items:[{key:e,def:r=>({type:"datePicker",...l(r)})}],tags:i??[]}}const a={type:"datePicker",...t};return{type:"ITEMS",itemType:"DATE_PICKER",items:[{key:e,def:a}],tags:i??[]}}function Ue(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_TIME_PICKER",items:[{key:e,def:r=>({type:"dateTimePicker",...l(r)})}],tags:i??[]}}const a={type:"dateTimePicker",...t};return{type:"ITEMS",itemType:"DATE_TIME_PICKER",items:[{key:e,def:a}],tags:i??[]}}function Re(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_CALENDAR",items:[{key:e,def:r=>({type:"rangeCalendar",...l(r)})}],tags:i??[]}}const a={type:"rangeCalendar",...t};return{type:"ITEMS",itemType:"RANGE_CALENDAR",items:[{key:e,def:a}],tags:i??[]}}function Le(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_INPUT",items:[{key:e,def:r=>({type:"rangeDateInput",...l(r)})}],tags:i??[]}}const a={type:"rangeDateInput",...t};return{type:"ITEMS",itemType:"RANGE_DATE_INPUT",items:[{key:e,def:a}],tags:i??[]}}function Me(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_TIME_INPUT",items:[{key:e,def:r=>({type:"rangeDateTimeInput",...l(r)})}],tags:i??[]}}const a={type:"rangeDateTimeInput",...t};return{type:"ITEMS",itemType:"RANGE_DATE_TIME_INPUT",items:[{key:e,def:a}],tags:i??[]}}function Be(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_TIME_CALENDAR",items:[{key:e,def:r=>({type:"rangeDateTimeCalendar",...l(r)})}],tags:i??[]}}const a={type:"rangeDateTimeCalendar",...t};return{type:"ITEMS",itemType:"RANGE_DATE_TIME_CALENDAR",items:[{key:e,def:a}],tags:i??[]}}function Ce(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_TIME_PICKER",items:[{key:e,def:r=>({type:"rangeDateTimePicker",...l(r)})}],tags:i??[]}}const a={type:"rangeDateTimePicker",...t};return{type:"ITEMS",itemType:"RANGE_DATE_TIME_PICKER",items:[{key:e,def:a}],tags:i??[]}}function ve(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_TIME_INPUT",items:[{key:e,def:r=>({type:"rangeTimeInput",...l(r)})}],tags:i??[]}}const a={type:"rangeTimeInput",...t};return{type:"ITEMS",itemType:"RANGE_TIME_INPUT",items:[{key:e,def:a}],tags:i??[]}}function fe(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_PICKER",items:[{key:e,def:r=>({type:"rangeDatePicker",...l(r)})}],tags:i??[]}}const a={type:"rangeDatePicker",...t};return{type:"ITEMS",itemType:"RANGE_DATE_PICKER",items:[{key:e,def:a}],tags:i??[]}}function We(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_TIME_PICKER",items:[{key:e,def:r=>({type:"rangeTimePicker",...l(r)})}],tags:i??[]}}const a={type:"rangeTimePicker",...t};return{type:"ITEMS",itemType:"RANGE_TIME_PICKER",items:[{key:e,def:a}],tags:i??[]}}function Ne(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TIME_INPUT",items:[{key:e,def:r=>({type:"timeInput",...l(r)})}],tags:i??[]}}const a={type:"timeInput",...t};return{type:"ITEMS",itemType:"TIME_INPUT",items:[{key:e,def:a}],tags:i??[]}}function xe(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TIME_PICKER",items:[{key:e,def:r=>({type:"timePicker",...l(r)})}],tags:i??[]}}const a={type:"timePicker",...t};return{type:"ITEMS",itemType:"TIME_PICKER",items:[{key:e,def:a}],tags:i??[]}}function we(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_TIME_INPUT",items:[{key:e,def:r=>({type:"dateTimeInput",...l(r)})}],tags:i??[]}}const a={type:"dateTimeInput",...t};return{type:"ITEMS",itemType:"DATE_TIME_INPUT",items:[{key:e,def:a}],tags:i??[]}}function Ge(e,t,i,a){if(typeof i=="function"){const o=i;return{type:"ITEMS",itemType:"CUSTOM_INPUT",items:[{key:t,def:p=>({customType:e,...o(p)})}],tags:a??[]}}const n={customType:e,...i};return{type:"ITEMS",itemType:"CUSTOM_INPUT",items:[{key:t,def:n}],tags:a??[]}}function Ve(e,t){return{items:[e],type:"ITEMS",itemType:s.GuiItemTypes.ACTIONS,tags:t??[]}}function Ke(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CUSTOM_ACTION",items:[u=>({customType:e,...l(u)})],tags:i??[]}}return{type:"ITEMS",itemType:"CUSTOM_ACTION",items:[{customType:e,...t}],tags:i??[]}}const le=(e,t)=>({type:"ITEMS",itemType:s.GuiItemTypes.DISPLAYS,items:[{render:e}],tags:t??[]});function Ye(e,t){return{type:"ITEMS",itemType:"ALERTS",items:[e],tags:t??[]}}function $e(e,t){return{type:"ITEMS",itemType:"MARKDOWN_TEXTS",items:[e],tags:t??[]}}function Fe(e,t,i){if(typeof t=="function"){const u=t;return{type:"ITEMS",itemType:"CUSTOM_DISPLAY",items:[p=>({customType:e,...u(p)})],tags:i??[]}}const{uid:a,...n}=t??{};return{type:"ITEMS",itemType:"CUSTOM_DISPLAY",items:[{customType:e,...a!=null?{uid:a}:{},props:Object.keys(n).length>0?n:void 0}],tags:i??[]}}const T=(e,t,i)=>({type:"ITEMS",itemType:s.GuiItemTypes.LAYOUTS,items:[{def:{widgetName:"flex",...t??{}},children:e}],tags:i??[]}),ze=(e,t,i)=>T(e,{direction:"row",...t??{}},i),He=(e,t,i)=>T(e,{direction:"column",...t??{}},i),g=(e,t,i)=>({type:"ITEMS",itemType:s.GuiItemTypes.LAYOUTS,items:[{def:{widgetName:"grid",direction:"row",autoFit:!0,...t??{}},children:e}],tags:i??[]}),Oe=(e,t,i)=>g(e,{direction:"row",...t??{}},i),Xe=(e,t,i)=>g(e,{direction:"column",...t??{}},i);function ae(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function qe(e,t,i){const a=e.map(o=>({label:o.label,uid:o.uid??ae(o.label)})),n=e.map(o=>({type:"ITEMS",itemType:s.GuiItemTypes.LAYOUTS,items:[{def:{uid:o.uid??ae(o.label),direction:"column",widgetName:"flex"},children:o.children}],tags:[]}));return{type:"ITEMS",itemType:"TABS",items:[{def:{tabs:a,...t},children:n}],tags:i??[]}}function ne(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function je(e,t,i){const a=e.map(o=>({label:o.label,uid:o.uid??ne(o.label)})),n=e.map(o=>({type:"ITEMS",itemType:s.GuiItemTypes.LAYOUTS,items:[{def:{uid:o.uid??ne(o.label),direction:"column",widgetName:"flex"},children:o.children}],tags:[]}));return{type:"ITEMS",itemType:"ACCORDION",items:[{def:{sections:a,...t},children:n}],tags:i??[]}}function Je(e,t,i,a){if(typeof i=="function"){const o=i;return{type:"ITEMS",itemType:"CUSTOM_LAYOUT",items:[{def:p=>({customType:e,...o(p)}),children:t}],tags:a??[]}}return{type:"ITEMS",itemType:"CUSTOM_LAYOUT",items:[{def:{customType:e,...i},children:t}],tags:a??[]}}function Qe(e,t,i){const{template:a,...n}=t;return{type:"ITEMS",itemType:"REPEATER",items:[{key:e,def:n,children:a}],tags:i??[]}}function Ze(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TAGS",items:[{key:e,def:r=>({type:"tags",...l(r)})}],tags:i??[]}}const a={type:"tags",...t};return{type:"ITEMS",itemType:"TAGS",items:[{key:e,def:a}],tags:i??[]}}function et(e){switch(e.type){case"text":return st(e);case"number":return it(e);case"boolean":return tt(e);default:throw new Error(`Unsupported field type "${e.type}"`)}}function tt(e){const t=s.extractWidgetProps(e);return{uid:e.uid??"",kind:"input",type:"toggle",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"boolean")}:{},props:t}}function st(e){const t=s.extractWidgetProps(e);return{uid:e.uid??"",kind:"input",type:"textinput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},props:{placeholder:t.placeholder??"",...t},validator:s.buildTypedValidator(e.validator,"string")}}function it(e){const t=s.extractWidgetProps(e);return{uid:e.uid??"",kind:"input",type:"number",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},props:{placeholder:t.placeholder??"",...t},validator:s.buildTypedValidator(e.validator,"number")}}const b=s.createShortcutType({itemType:"INPUTS",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>{let i=s.processAutoLabel(e,t);return i=s.processAutoPlaceholder(i,t),i}},mapToWidget:et}),c=b.gsl,at=b.gslByUid,nt=e=>c(e,t=>t.type==="text"),lt=e=>c(e,t=>t.type==="number"),ot=e=>c(e,t=>t.type==="boolean"),_=s.createShortcutType({itemType:"SELECT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>s.processAutoPlaceholder(s.processAutoLabel(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"select",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:s.extractWidgetProps(e)})}),rt=_.gsl,ut=_.gslByUid,I=s.createShortcutType({itemType:"DROPDOWN",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>s.processAutoPlaceholder(s.processAutoLabel(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dropdown",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:s.extractWidgetProps(e)})}),pt=I.gsl,dt=I.gslByUid,A=s.createShortcutType({itemType:"RADIOGROUP",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"radiogroup",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:s.extractWidgetProps(e)})}),ct=A.gsl,yt=A.gslByUid,S=s.createShortcutType({itemType:"CHECKBOX",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"checkbox",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"boolean")}:{},props:s.extractWidgetProps(e)})}),mt=S.gsl,Tt=S.gslByUid,h=s.createShortcutType({itemType:"TEXTAREA",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>s.processAutoPlaceholder(s.processAutoLabel(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"textarea",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"string")}:{},props:s.extractWidgetProps(e)})}),gt=h.gsl,bt=h.gslByUid,k=s.createShortcutType({itemType:"PASSWORD",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>s.processAutoPlaceholder(s.processAutoLabel(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"password",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"string")}:{},props:s.extractWidgetProps(e)})}),_t=k.gsl,It=k.gslByUid,E=s.createShortcutType({itemType:"CURRENCY",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>s.processAutoPlaceholder(s.processAutoLabel(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"currency",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"number")}:{},props:s.extractWidgetProps(e)})}),At=E.gsl,St=E.gslByUid,P=s.createShortcutType({itemType:"MARKDOWN",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>s.processAutoPlaceholder(s.processAutoLabel(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"markdown",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"string")}:{},props:s.extractWidgetProps(e)})}),ht=P.gsl,kt=P.gslByUid,D=s.createShortcutType({itemType:"LIST",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"list",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:s.extractWidgetProps(e)})}),Et=D.gsl,Pt=D.gslByUid,U=s.createShortcutType({itemType:"CALENDAR",kind:"input",entryShape:"bare",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"calendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"string")}:{},props:s.extractWidgetProps(e)})}),Dt=U.gsl,Ut=U.gslByUid,R=s.createShortcutType({itemType:"DATE_TIME_CALENDAR",kind:"input",entryShape:"bare",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dateTimeCalendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"string")}:{},props:s.extractWidgetProps(e)})}),Rt=R.gsl,Lt=R.gslByUid,L=s.createShortcutType({itemType:"DATE_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dateInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"string")}:{},props:s.extractWidgetProps(e)})}),Mt=L.gsl,Bt=L.gslByUid,M=s.createShortcutType({itemType:"DATE_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>s.processAutoPlaceholder(s.processAutoLabel(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"datePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"string")}:{},props:s.extractWidgetProps(e)})}),Ct=M.gsl,vt=M.gslByUid,B=s.createShortcutType({itemType:"DATE_TIME_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>s.processAutoPlaceholder(s.processAutoLabel(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dateTimePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"string")}:{},props:s.extractWidgetProps(e)})}),ft=B.gsl,Wt=B.gslByUid,C=s.createShortcutType({itemType:"RANGE_CALENDAR",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeCalendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"array")}:{},props:s.extractWidgetProps(e)})}),Nt=C.gsl,xt=C.gslByUid,v=s.createShortcutType({itemType:"RANGE_DATE_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDateInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"array")}:{},props:s.extractWidgetProps(e)})}),wt=v.gsl,Gt=v.gslByUid,f=s.createShortcutType({itemType:"RANGE_DATE_TIME_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDateTimeInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"array")}:{},props:s.extractWidgetProps(e)})}),Vt=f.gsl,Kt=f.gslByUid,W=s.createShortcutType({itemType:"RANGE_DATE_TIME_CALENDAR",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDateTimeCalendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"array")}:{},props:s.extractWidgetProps(e)})}),Yt=W.gsl,$t=W.gslByUid,N=s.createShortcutType({itemType:"RANGE_DATE_TIME_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDateTimePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"array")}:{},props:s.extractWidgetProps(e)})}),Ft=N.gsl,zt=N.gslByUid,x=s.createShortcutType({itemType:"RANGE_TIME_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeTimeInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"array")}:{},props:s.extractWidgetProps(e)})}),Ht=x.gsl,Ot=x.gslByUid,w=s.createShortcutType({itemType:"TIME_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"timeInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"string")}:{},props:s.extractWidgetProps(e)})}),Xt=w.gsl,qt=w.gslByUid,G=s.createShortcutType({itemType:"TIME_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>s.processAutoPlaceholder(s.processAutoLabel(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"timePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"string")}:{},props:s.extractWidgetProps(e)})}),jt=G.gsl,Jt=G.gslByUid,V=s.createShortcutType({itemType:"DATE_TIME_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dateTimeInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"string")}:{},props:s.extractWidgetProps(e)})}),Qt=V.gsl,Zt=V.gslByUid,K=s.createShortcutType({itemType:"RANGE_DATE_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>s.processAutoPlaceholder(s.processAutoLabel(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDatePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"array")}:{},props:s.extractWidgetProps(e)})}),es=K.gsl,ts=K.gslByUid,Y=s.createShortcutType({itemType:"RANGE_TIME_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeTimePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"array")}:{},props:s.extractWidgetProps(e)})}),ss=Y.gsl,is=Y.gslByUid;function as(e){const t={};return e.addLabel!=null&&(t.addLabel=e.addLabel),e.removeLabel!=null&&(t.removeLabel=e.removeLabel),e.limit!=null&&(t.limit=e.limit),e.title!=null&&(t.title=e.title),e.addButtonIcon!=null&&(t.addButtonIcon=e.addButtonIcon),e.removeButtonIcon!=null&&(t.removeButtonIcon=e.removeButtonIcon),t}function ns(e){return{uid:e.uid??"",kind:"input",type:"repeater",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"array")}:{},props:{...as(e),template:{kind:"layout",type:"flex",children:[],props:{direction:"column"}}}}}function m(e,t){for(const i of e){if(typeof i=="function")continue;const a=i;typeof a.path=="string"&&a.path&&!a.path.startsWith(t)&&(a.path=t+a.path),"children"in a&&Array.isArray(a.children)&&m(a.children,t);const n=a.props;n?.template?.children&&Array.isArray(n.template.children)&&m(n.template.children,t)}}function ls(e,t){const i=t.walkChildren(t.children??[]),a=e.kind==="static"?e.def.path??"":e.fn({})?.path??"";a&&m(i,a+".items.");const n={kind:"layout",type:"flex",uid:"",children:i,props:{direction:"column"}};if(e.kind==="static"){const o=t.mapStaticDef(e.def,"REPEATER");return{...o,props:{...o.props,template:n}}}const l=e.fn;return(o=>{const u=l(o),r=t.mapStaticDef(u,"REPEATER");return{...r,props:{...r.props,template:n}}})}function os(e){return{baseDef:e.def,path:e.key,children:e.children}}function rs(e){return e.children}const us={parseEntry:os,rollUpSensibleDefaults:()=>({}),applySensibleDefaults:e=>e,mapToWidget:ns,buildCustomWidget:ls,getChildren:rs},$=s.createGslSelector("REPEATER"),oe=(e,t)=>$(t,(i=>i.uid===e)),ps={itemType:"REPEATER",kind:"input",handler:us,gsl:$,gslByUid:oe};function ds(e){const{uid:t,label:i,actionType:a,disabled:n,on:l,onClick:o,data:u,type:r,tags:p,size:d,include:ue,exclude:pe,states:ie,...y}=e;return{uid:t??"",kind:"action",type:"button",disabled:n,actionType:a,label:i,...l!=null?{on:l}:{},props:y}}const F=s.createShortcutType({itemType:"ACTIONS",kind:"action",entryShape:"bare",mapToWidget:ds,afterMerge:(e,t)=>s.eventWiringService.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)}),cs=F.gsl,ys=F.gslByUid;function ms(e){const{uid:t,widgetName:i,tags:a,size:n,onChange:l,include:o,exclude:u,...r}=e,{on:p,...d}=r;return{uid:t??"",kind:"layout",type:i??"flex",props:{direction:d.direction??"column",...d},children:[]}}function Ts(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"LAYOUTS"),children:i};const a=e.fn;return(n=>{const l=a(n);return{...t.mapStaticDef(l,"LAYOUTS"),children:i}})}function gs(e){return e.children}const z=s.createShortcutType({itemType:"LAYOUTS",kind:"layout",entryShape:"compound",mapToWidget:ms,buildCustomWidget:Ts,getChildren:gs}),bs=z.gsl,_s=z.gslByUid;function Is(e){return{uid:"",kind:"display",type:"renderer",props:{render:e.render}}}function As(e,t){if(e.kind==="static"){const a=e.def;return(n=>({uid:"",kind:"display",type:"renderer",...a.include!=null?{include:a.include}:{},...a.exclude!=null?{exclude:a.exclude}:{},props:{render:a.render(s.withForm(n))}}))}const i=e.fn;return(a=>{const n=i(a);return{uid:"",kind:"display",type:"renderer",...n.include!=null?{include:n.include}:{},...n.exclude!=null?{exclude:n.exclude}:{},props:{render:n.render(s.withForm(a))}}})}const H=s.createShortcutType({itemType:"DISPLAYS",kind:"display",entryShape:"bare",mapToWidget:Is,buildCustomWidget:As}),Ss=H.gsl,hs=H.gslByUid,O=s.createShortcutType({itemType:"ALERTS",kind:"display",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:"alert",props:{text:e.text,...e.level!=null?{level:e.level}:{}}})}),ks=O.gsl,Es=O.gslByUid,X=s.createShortcutType({itemType:"MARKDOWN_TEXTS",kind:"display",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:"markdownText",props:{md:e.md}})}),Ps=X.gsl,Ds=X.gslByUid;function Us(e){return{uid:e.uid??"",kind:"layout",type:"tabs",props:{tabs:e.tabs,renderMode:e.renderMode??"all",...e.defaultOpen!=null?{defaultOpen:e.defaultOpen}:{}},children:[]}}function Rs(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"TABS"),children:i};const a=e.fn;return(n=>{const l=a(n);return{...t.mapStaticDef(l,"TABS"),children:i}})}function Ls(e){return e.children}const q=s.createShortcutType({itemType:"TABS",kind:"layout",entryShape:"compound",mapToWidget:Us,buildCustomWidget:Rs,getChildren:Ls}),Ms=q.gsl,Bs=q.gslByUid;function Cs(e){return{uid:e.uid??"",kind:"layout",type:"accordion",props:{sections:e.sections,renderMode:e.renderMode??"all",...e.singleOpen!=null?{singleOpen:e.singleOpen}:{},...e.defaultOpen!=null?{defaultOpen:e.defaultOpen}:{}},children:[]}}function vs(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"ACCORDION"),children:i};const a=e.fn;return(n=>{const l=a(n);return{...t.mapStaticDef(l,"ACCORDION"),children:i}})}function fs(e){return e.children}const j=s.createShortcutType({itemType:"ACCORDION",kind:"layout",entryShape:"compound",mapToWidget:Cs,buildCustomWidget:vs,getChildren:fs}),Ws=j.gsl,Ns=j.gslByUid,J=s.createShortcutType({itemType:"CUSTOM_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>s.processAutoLabel(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:e.customType,path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.defaultValue!=null?{defaultValue:e.defaultValue}:{},...e.validator!=null?{validator:e.validator}:{},props:e.props??{}})}),xs=J.gsl,ws=J.gslByUid,Q=s.createShortcutType({itemType:"CUSTOM_ACTION",kind:"action",entryShape:"bare",mapToWidget:e=>{const{uid:t,label:i,disabled:a,on:n,onClick:l,data:o,customType:u,tags:r,size:p,include:d,exclude:ue,states:pe,props:ie,...y}=e;return{uid:t??"",kind:"action",type:e.customType,label:i,disabled:a,...n!=null?{on:n}:{},props:{...ie,...y}}},afterMerge:(e,t)=>s.eventWiringService.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)}),Gs=Q.gsl,Vs=Q.gslByUid,Z=s.createShortcutType({itemType:"CUSTOM_DISPLAY",kind:"display",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:e.customType,props:e.props??{}})}),Ks=Z.gsl,Ys=Z.gslByUid;function $s(e){return{uid:e.uid??"",kind:"layout",type:e.customType,props:e.props??{},children:[]}}function Fs(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"CUSTOM_LAYOUT"),children:i};const a=e.fn;return(n=>{const l=a(n);return{...t.mapStaticDef(l,"CUSTOM_LAYOUT"),children:i}})}function zs(e){return e.children}const ee=s.createShortcutType({itemType:"CUSTOM_LAYOUT",kind:"layout",entryShape:"compound",mapToWidget:$s,buildCustomWidget:Fs,getChildren:zs}),Hs=ee.gsl,Os=ee.gslByUid,te=s.createShortcutType({itemType:"TAGS",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>s.processAutoPlaceholder(s.processAutoLabel(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"tags",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:s.buildTypedValidator(e.validator,"array")}:{},props:s.extractWidgetProps(e)})}),Xs=te.gsl,qs=te.gslByUid,js=[b,F,z,H,U,R,B,h,k,S,L,w,G,V,E,C,_,A,q,D,te,O,X,M,I,j,ps,P,v,x,f,W,N,K,Y,Z,J,Q,ee],se=s.createItemTypeRegistry();for(const e of js)s.registerShortcutType(se,e);function Js(e){return s.defineShortcutType(se,e)}const Qs={bareItemToWidget:e=>le(e),rootEntry:e=>{const t={def:{uid:"#root",direction:"column",widgetName:"flex"},children:e};return{type:"ITEMS",itemType:s.GuiItemTypes.LAYOUTS,items:[t],tags:[]}}},re=s.createDxService({registry:se,adapter:Qs}),Zs=s.createResolveFormInput(re);exports._gslAccordionByUid=Ns;exports._gslAccordions=Ws;exports._gslActionByUid=ys;exports._gslActions=cs;exports._gslAlertByUid=Es;exports._gslAlerts=ks;exports._gslBooleanInputs=ot;exports._gslCalendarByUid=Ut;exports._gslCalendars=Dt;exports._gslCheckboxByUid=Tt;exports._gslCheckboxes=mt;exports._gslCurrencies=At;exports._gslCurrencyByUid=St;exports._gslCustomActionByUid=Vs;exports._gslCustomActions=Gs;exports._gslCustomDisplayByUid=Ys;exports._gslCustomDisplays=Ks;exports._gslCustomInputByUid=ws;exports._gslCustomInputs=xs;exports._gslCustomLayoutByUid=Os;exports._gslCustomLayouts=Hs;exports._gslDateInputByUid=Bt;exports._gslDateInputs=Mt;exports._gslDatePickerByUid=vt;exports._gslDatePickers=Ct;exports._gslDateTimeCalendarByUid=Lt;exports._gslDateTimeCalendars=Rt;exports._gslDateTimeInputByUid=Zt;exports._gslDateTimeInputs=Qt;exports._gslDateTimePickerByUid=Wt;exports._gslDateTimePickers=ft;exports._gslDisplayByUid=hs;exports._gslDisplays=Ss;exports._gslDropdownByUid=dt;exports._gslDropdowns=pt;exports._gslInputByUid=at;exports._gslInputs=c;exports._gslLayoutByUid=_s;exports._gslLayouts=bs;exports._gslListByUid=Pt;exports._gslLists=Et;exports._gslMarkdownByUid=kt;exports._gslMarkdownTextByUid=Ds;exports._gslMarkdownTexts=Ps;exports._gslMarkdowns=ht;exports._gslNumberInputs=lt;exports._gslPasswordByUid=It;exports._gslPasswords=_t;exports._gslRadiogroupByUid=yt;exports._gslRadiogroups=ct;exports._gslRangeCalendarByUid=xt;exports._gslRangeCalendars=Nt;exports._gslRangeDateInputByUid=Gt;exports._gslRangeDateInputs=wt;exports._gslRangeDatePickerByUid=ts;exports._gslRangeDatePickers=es;exports._gslRangeDateTimeCalendarByUid=$t;exports._gslRangeDateTimeCalendars=Yt;exports._gslRangeDateTimeInputByUid=Kt;exports._gslRangeDateTimeInputs=Vt;exports._gslRangeDateTimePickerByUid=zt;exports._gslRangeDateTimePickers=Ft;exports._gslRangeTimeInputByUid=Ot;exports._gslRangeTimeInputs=Ht;exports._gslRangeTimePickerByUid=is;exports._gslRangeTimePickers=ss;exports._gslRepeaterByUid=oe;exports._gslRepeaters=$;exports._gslSelectByUid=ut;exports._gslSelects=rt;exports._gslTabs=Ms;exports._gslTabsByUid=Bs;exports._gslTags=Xs;exports._gslTagsByUid=qs;exports._gslTextInputs=nt;exports._gslTextareaByUid=bt;exports._gslTextareas=gt;exports._gslTimeInputByUid=qt;exports._gslTimeInputs=Xt;exports._gslTimePickerByUid=Jt;exports._gslTimePickers=jt;exports._guiAccordion=je;exports._guiAlert=Ye;exports._guiBooleanInput=ye;exports._guiButton=Ve;exports._guiCalendar=ke;exports._guiCheckbox=be;exports._guiCurrency=Ae;exports._guiCustomAction=Ke;exports._guiCustomDisplay=Fe;exports._guiCustomInput=Ge;exports._guiCustomLayout=Je;exports._guiDateInput=Pe;exports._guiDatePicker=De;exports._guiDateTimeCalendar=Ee;exports._guiDateTimeInput=we;exports._guiDateTimePicker=Ue;exports._guiDisplay=le;exports._guiDropdown=Te;exports._guiFlex=T;exports._guiGrid=g;exports._guiHorizontalFlex=ze;exports._guiHorizontalGrid=Oe;exports._guiList=he;exports._guiMarkdown=Se;exports._guiMarkdownText=$e;exports._guiNumberInput=ce;exports._guiPassword=Ie;exports._guiRadiogroup=ge;exports._guiRangeCalendar=Re;exports._guiRangeDateInput=Le;exports._guiRangeDatePicker=fe;exports._guiRangeDateTimeCalendar=Be;exports._guiRangeDateTimeInput=Me;exports._guiRangeDateTimePicker=Ce;exports._guiRangeTimeInput=ve;exports._guiRangeTimePicker=We;exports._guiRepeater=Qe;exports._guiSelect=me;exports._guiTabs=qe;exports._guiTags=Ze;exports._guiTextInput=de;exports._guiTextarea=_e;exports._guiTimeInput=Ne;exports._guiTimePicker=xe;exports._guiVerticalFlex=He;exports._guiVerticalGrid=Xe;exports.defineShortcutType=Js;exports.formDefs=re;exports.resolveFormInput=Zs;
|