@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
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Localizable } from '@golemui/core';
|
|
2
|
-
/**
|
|
3
|
-
* Config interface for types that support automatic labels.
|
|
4
|
-
*/
|
|
5
|
-
export interface LabelSensibleDefaultsConfig {
|
|
6
|
-
suppressAutomaticLabels?: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Config interface for types that support automatic placeholders.
|
|
10
|
-
*/
|
|
11
|
-
export interface PlaceholderSensibleDefaultsConfig {
|
|
12
|
-
suppressAutomaticPlaceholders?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare function pathToLabel(path: string | undefined): string;
|
|
15
|
-
/**
|
|
16
|
-
* Auto-generate a label from the field path if none is explicitly set.
|
|
17
|
-
* Reusable across inputs, calendar, and future input-like types.
|
|
18
|
-
*
|
|
19
|
-
* Behavior must match existing `inputSensibleDefaults.service.ts` and
|
|
20
|
-
* `calendarSensibleDefaults.service.ts` exactly.
|
|
21
|
-
*/
|
|
22
|
-
export declare function processAutoLabel<D extends {
|
|
23
|
-
path?: string;
|
|
24
|
-
label?: Localizable | null;
|
|
25
|
-
}>(def: D, config: LabelSensibleDefaultsConfig): D;
|
|
26
|
-
/**
|
|
27
|
-
* Auto-generate a placeholder from the field path if none is explicitly set.
|
|
28
|
-
* Reusable across inputs, textarea, password, and future input-like types.
|
|
29
|
-
*
|
|
30
|
-
* Behavior must match existing `inputSensibleDefaults.service.ts` exactly.
|
|
31
|
-
*/
|
|
32
|
-
export declare function processAutoPlaceholder<D extends {
|
|
33
|
-
path?: string;
|
|
34
|
-
placeholder?: string;
|
|
35
|
-
}>(def: D, config: PlaceholderSensibleDefaultsConfig): D;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { NonFunctionWidget } from '@golemui/core';
|
|
2
|
-
import { GslLeafSelector, MergeResult } from './dx.domain';
|
|
3
|
-
import { EventIdGenerator, EventRegistry } from './itemTypeRegistry';
|
|
4
|
-
export interface StateData {
|
|
5
|
-
stateOverrides: Record<string, Record<string, any>>;
|
|
6
|
-
}
|
|
7
|
-
export declare class StateExpansionService {
|
|
8
|
-
/**
|
|
9
|
-
* Extracts `states` from a merge result, combining with state-targeted
|
|
10
|
-
* GSL leaf selectors from `_gslStates`.
|
|
11
|
-
*
|
|
12
|
-
* Returns a cleaned merge result (no states) and accumulated state data.
|
|
13
|
-
*/
|
|
14
|
-
extractFromMergeResult(mergeResult: MergeResult, stateLeafs: GslLeafSelector[]): {
|
|
15
|
-
cleanedResult: MergeResult;
|
|
16
|
-
stateData: StateData;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Applies state overrides to a core widget. Each override produces:
|
|
20
|
-
* - `visible: true/false` → `include: { in }` / `exclude: { from }`
|
|
21
|
-
* - Core suffixable props → `'prop.stateName': value` at widget root
|
|
22
|
-
* - Event handlers → `on: { 'eventType.stateName': eventId }` with registry wiring
|
|
23
|
-
* - Custom props → `props: { 'prop.stateName': value }`
|
|
24
|
-
*/
|
|
25
|
-
applyToWidget(widget: NonFunctionWidget, stateData: StateData, eventRegistry: EventRegistry, eventIdGenerator: EventIdGenerator): NonFunctionWidget;
|
|
26
|
-
hasStateData(stateData: StateData): boolean;
|
|
27
|
-
private applyVisibility;
|
|
28
|
-
private applyStateEvent;
|
|
29
|
-
}
|
|
30
|
-
declare const stateExpansionService: StateExpansionService;
|
|
31
|
-
export default stateExpansionService;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FormWidget, NonFunctionWidget, UiState } from '@golemui/core';
|
|
2
|
-
import { GslItemType, MergeResult } from './dx.domain';
|
|
3
|
-
export declare class WidgetMapper {
|
|
4
|
-
mapToWidget<StateKeys extends UiState = never, FormData extends Record<string, any> = any>(mergeResult: MergeResult, itemType: GslItemType): FormWidget<StateKeys, FormData>;
|
|
5
|
-
mapStaticDef<StateKeys extends UiState = never, FormData extends Record<string, any> = any>(def: Record<string, any>, itemType: GslItemType): NonFunctionWidget<StateKeys, FormData>;
|
|
6
|
-
/**
|
|
7
|
-
* Injects BaseWidget-level fields that all widget types share.
|
|
8
|
-
* Centralized here so individual mappers don't need to repeat the pattern.
|
|
9
|
-
*/
|
|
10
|
-
private applyBaseWidgetFields;
|
|
11
|
-
}
|
|
12
|
-
declare const widgetMapper: WidgetMapper;
|
|
13
|
-
export default widgetMapper;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { GslItemType, MergeResult, ResolvedSelectors, RuntimeFunction } from './dx.domain';
|
|
2
|
-
import { ObjectUtils } from '../../utils/objectUtils.service';
|
|
3
|
-
export declare class WidgetMerger {
|
|
4
|
-
private readonly objectUtils;
|
|
5
|
-
constructor(objectUtils: ObjectUtils);
|
|
6
|
-
merge(baseDef: Record<string, any> | RuntimeFunction, itemType: GslItemType, resolved: ResolvedSelectors): MergeResult;
|
|
7
|
-
private collectDecorators;
|
|
8
|
-
private applySensibleDefaults;
|
|
9
|
-
private createPromotedFunction;
|
|
10
|
-
private wrapWithSensibleDefaults;
|
|
11
|
-
private composeRuntimeFunctions;
|
|
12
|
-
}
|
|
13
|
-
declare const widgetMerger: WidgetMerger;
|
|
14
|
-
export default widgetMerger;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FunctionWidgetParams } from '@golemui/core';
|
|
2
|
-
/**
|
|
3
|
-
* Runtime functions can run during the build walk / decode probe before form
|
|
4
|
-
* data exists; the FunctionWidgetParams contract guarantees `$form` is an
|
|
5
|
-
* object, so normalize it to at least `{}` — a callback reading
|
|
6
|
-
* `params.$form.field` must get `undefined`, not crash.
|
|
7
|
-
*/
|
|
8
|
-
export declare function withForm(params?: FunctionWidgetParams<any>): FunctionWidgetParams<any>;
|
package/lib/dx/dx.service.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { UiState } from '@golemui/core';
|
|
2
|
-
import { DxDefinitions, DxResult } from './formDef.domain';
|
|
3
|
-
import { DxFormConfig, GslSelectorsInput } from './core/dx.domain';
|
|
4
|
-
import { SelectorNormalizer } from './core/selectorNormalizer.service';
|
|
5
|
-
import { ItemWalker } from './core/itemWalker.service';
|
|
6
|
-
/**
|
|
7
|
-
* Transforms a developer-friendly form definition into a fully-fledged form definition
|
|
8
|
-
* usable by the framework ({@link Form}<STATE_KEYS, FORM_DATA>).
|
|
9
|
-
*
|
|
10
|
-
* Orchestrates: prepareForm → walkAndMap → buildResult.
|
|
11
|
-
*/
|
|
12
|
-
export declare class DxService {
|
|
13
|
-
private readonly selectorNormalizer;
|
|
14
|
-
private readonly walker;
|
|
15
|
-
constructor(selectorNormalizer: SelectorNormalizer, walker: ItemWalker);
|
|
16
|
-
processDxFacade<STATE_KEYS extends UiState = never, FORM_DATA extends Record<string, any> = any>(dxDefinitionsRaw: DxDefinitions, gslSelectorsInput?: GslSelectorsInput, formConfigInput?: DxFormConfig<STATE_KEYS>): DxResult<STATE_KEYS, FORM_DATA>;
|
|
17
|
-
/**
|
|
18
|
-
* Normalizes raw form definitions and applies form-level defaults.
|
|
19
|
-
*
|
|
20
|
-
* Steps:
|
|
21
|
-
* 1. Normalize definitions — ensure a flat array; convert bare functions to display widgets.
|
|
22
|
-
* 2. Normalize selectors — convert mixed leaf/aggregated selectors into a uniform
|
|
23
|
-
* aggregated shape, and extract form-level config (see {@link FormConfig}).
|
|
24
|
-
* 3. Auto-stack — unless suppressed, wrap all definitions in a synthetic root
|
|
25
|
-
* flex column layout so the form renders as a single vertical container.
|
|
26
|
-
*/
|
|
27
|
-
private prepareForm;
|
|
28
|
-
/**
|
|
29
|
-
* Converts DX `$`-separated state names to core's `:`-separated names.
|
|
30
|
-
* E.g. `{ register$adult: 'expr' }` → `{ 'register:adult': 'expr' }`.
|
|
31
|
-
*/
|
|
32
|
-
private convertStateNames;
|
|
33
|
-
private buildResult;
|
|
34
|
-
}
|
|
35
|
-
declare const formDefs: DxService;
|
|
36
|
-
export { formDefs };
|
package/lib/dx/registerAll.d.ts
DELETED
|
File without changes
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { GslLeafSelector } from '../../core/dx.domain';
|
|
2
|
-
import { _gslInputs, _gslInputByUid } from '../inputs/register';
|
|
3
|
-
import { _gslTextInputs, _gslNumberInputs, _gslBooleanInputs } from '../inputs/gslInputSubtypes';
|
|
4
|
-
import { _gslSelects, _gslSelectByUid } from '../select/register';
|
|
5
|
-
import { _gslDropdowns, _gslDropdownByUid } from '../dropdown/register';
|
|
6
|
-
import { _gslRadiogroups, _gslRadiogroupByUid } from '../radiogroup/register';
|
|
7
|
-
import { _gslCheckboxes, _gslCheckboxByUid } from '../checkbox/register';
|
|
8
|
-
import { _gslTextareas, _gslTextareaByUid } from '../textarea/register';
|
|
9
|
-
import { _gslPasswords, _gslPasswordByUid } from '../password/register';
|
|
10
|
-
import { _gslCurrencies, _gslCurrencyByUid } from '../currency/register';
|
|
11
|
-
import { _gslMarkdowns, _gslMarkdownByUid } from '../markdown/register';
|
|
12
|
-
import { _gslLists, _gslListByUid } from '../list/register';
|
|
13
|
-
import { _gslCalendars, _gslCalendarByUid } from '../calendar/register';
|
|
14
|
-
import { _gslDateTimeCalendars, _gslDateTimeCalendarByUid } from '../date-time-calendar/register';
|
|
15
|
-
import { _gslDateInputs, _gslDateInputByUid } from '../date-input/register';
|
|
16
|
-
import { _gslDatePickers, _gslDatePickerByUid } from '../date-picker/register';
|
|
17
|
-
import { _gslDateTimePickers, _gslDateTimePickerByUid } from '../date-time-picker/register';
|
|
18
|
-
import { _gslRangeCalendars, _gslRangeCalendarByUid } from '../range-calendar/register';
|
|
19
|
-
import { _gslRangeDateInputs, _gslRangeDateInputByUid } from '../range-date-input/register';
|
|
20
|
-
import { _gslRangeDateTimeInputs, _gslRangeDateTimeInputByUid } from '../range-date-time-input/register';
|
|
21
|
-
import { _gslRangeDateTimeCalendars, _gslRangeDateTimeCalendarByUid } from '../range-date-time-calendar/register';
|
|
22
|
-
import { _gslRangeDateTimePickers, _gslRangeDateTimePickerByUid } from '../range-date-time-picker/register';
|
|
23
|
-
import { _gslRangeTimeInputs, _gslRangeTimeInputByUid } from '../range-time-input/register';
|
|
24
|
-
import { _gslTimeInputs, _gslTimeInputByUid } from '../time-input/register';
|
|
25
|
-
import { _gslTimePickers, _gslTimePickerByUid } from '../time-picker/register';
|
|
26
|
-
import { _gslDateTimeInputs, _gslDateTimeInputByUid } from '../date-time-input/register';
|
|
27
|
-
import { _gslRangeDatePickers, _gslRangeDatePickerByUid } from '../range-date-picker/register';
|
|
28
|
-
import { _gslRangeTimePickers, _gslRangeTimePickerByUid } from '../range-time-picker/register';
|
|
29
|
-
import { _gslRepeaters, _gslRepeaterByUid } from '../repeater/register';
|
|
30
|
-
import { _gslActions, _gslActionByUid } from '../actions/register';
|
|
31
|
-
import { _gslLayouts, _gslLayoutByUid } from '../layouts/register';
|
|
32
|
-
import { _gslDisplays, _gslDisplayByUid } from '../display/register';
|
|
33
|
-
import { _gslAlerts, _gslAlertByUid } from '../alert/register';
|
|
34
|
-
import { _gslMarkdownTexts, _gslMarkdownTextByUid } from '../markdown-text/register';
|
|
35
|
-
import { _gslTabs, _gslTabsByUid } from '../tabs/register';
|
|
36
|
-
import { _gslAccordions, _gslAccordionByUid } from '../accordion/register';
|
|
37
|
-
import { _gslCustomInputs, _gslCustomInputByUid } from '../custom-input/register';
|
|
38
|
-
import { _gslCustomActions, _gslCustomActionByUid } from '../custom-action/register';
|
|
39
|
-
import { _gslCustomDisplays, _gslCustomDisplayByUid } from '../custom-display/register';
|
|
40
|
-
import { _gslCustomLayouts, _gslCustomLayoutByUid } from '../custom-layout/register';
|
|
41
|
-
type CfgGsl<F> = F extends (config: infer C, matcher?: any) => GslLeafSelector ? C : never;
|
|
42
|
-
type CfgByUid<F> = F extends (uid: string, config: infer C) => GslLeafSelector ? C : never;
|
|
43
|
-
export declare class ScopeChain {
|
|
44
|
-
private readonly conditions;
|
|
45
|
-
private constructor();
|
|
46
|
-
static root(): ScopeChain;
|
|
47
|
-
tag(name: string): ScopeChain;
|
|
48
|
-
state(name: string): ScopeChain;
|
|
49
|
-
tagsAnd(names: string[]): ScopeChain;
|
|
50
|
-
tagsOr(names: string[]): ScopeChain;
|
|
51
|
-
private apply;
|
|
52
|
-
inputs(config: CfgGsl<typeof _gslInputs>): GslLeafSelector;
|
|
53
|
-
inputByUid(uid: string, config: CfgByUid<typeof _gslInputByUid>): GslLeafSelector;
|
|
54
|
-
textInputs(config: Parameters<typeof _gslTextInputs>[0]): GslLeafSelector;
|
|
55
|
-
numberInputs(config: Parameters<typeof _gslNumberInputs>[0]): GslLeafSelector;
|
|
56
|
-
booleanInputs(config: Parameters<typeof _gslBooleanInputs>[0]): GslLeafSelector;
|
|
57
|
-
selects(config: CfgGsl<typeof _gslSelects>): GslLeafSelector;
|
|
58
|
-
selectByUid(uid: string, config: CfgByUid<typeof _gslSelectByUid>): GslLeafSelector;
|
|
59
|
-
dropdowns(config: CfgGsl<typeof _gslDropdowns>): GslLeafSelector;
|
|
60
|
-
dropdownByUid(uid: string, config: CfgByUid<typeof _gslDropdownByUid>): GslLeafSelector;
|
|
61
|
-
radiogroups(config: CfgGsl<typeof _gslRadiogroups>): GslLeafSelector;
|
|
62
|
-
radiogroupByUid(uid: string, config: CfgByUid<typeof _gslRadiogroupByUid>): GslLeafSelector;
|
|
63
|
-
checkboxes(config: CfgGsl<typeof _gslCheckboxes>): GslLeafSelector;
|
|
64
|
-
checkboxByUid(uid: string, config: CfgByUid<typeof _gslCheckboxByUid>): GslLeafSelector;
|
|
65
|
-
textareas(config: CfgGsl<typeof _gslTextareas>): GslLeafSelector;
|
|
66
|
-
textareaByUid(uid: string, config: CfgByUid<typeof _gslTextareaByUid>): GslLeafSelector;
|
|
67
|
-
passwords(config: CfgGsl<typeof _gslPasswords>): GslLeafSelector;
|
|
68
|
-
passwordByUid(uid: string, config: CfgByUid<typeof _gslPasswordByUid>): GslLeafSelector;
|
|
69
|
-
currencies(config: CfgGsl<typeof _gslCurrencies>): GslLeafSelector;
|
|
70
|
-
currencyByUid(uid: string, config: CfgByUid<typeof _gslCurrencyByUid>): GslLeafSelector;
|
|
71
|
-
markdowns(config: CfgGsl<typeof _gslMarkdowns>): GslLeafSelector;
|
|
72
|
-
markdownByUid(uid: string, config: CfgByUid<typeof _gslMarkdownByUid>): GslLeafSelector;
|
|
73
|
-
lists(config: CfgGsl<typeof _gslLists>): GslLeafSelector;
|
|
74
|
-
listByUid(uid: string, config: CfgByUid<typeof _gslListByUid>): GslLeafSelector;
|
|
75
|
-
calendars(config: CfgGsl<typeof _gslCalendars>): GslLeafSelector;
|
|
76
|
-
calendarByUid(uid: string, config: CfgByUid<typeof _gslCalendarByUid>): GslLeafSelector;
|
|
77
|
-
dateTimeCalendars(config: CfgGsl<typeof _gslDateTimeCalendars>): GslLeafSelector;
|
|
78
|
-
dateTimeCalendarByUid(uid: string, config: CfgByUid<typeof _gslDateTimeCalendarByUid>): GslLeafSelector;
|
|
79
|
-
dateInputs(config: CfgGsl<typeof _gslDateInputs>): GslLeafSelector;
|
|
80
|
-
dateInputByUid(uid: string, config: CfgByUid<typeof _gslDateInputByUid>): GslLeafSelector;
|
|
81
|
-
timeInputs(config: CfgGsl<typeof _gslTimeInputs>): GslLeafSelector;
|
|
82
|
-
timeInputByUid(uid: string, config: CfgByUid<typeof _gslTimeInputByUid>): GslLeafSelector;
|
|
83
|
-
timePickers(config: CfgGsl<typeof _gslTimePickers>): GslLeafSelector;
|
|
84
|
-
timePickerByUid(uid: string, config: CfgByUid<typeof _gslTimePickerByUid>): GslLeafSelector;
|
|
85
|
-
dateTimeInputs(config: CfgGsl<typeof _gslDateTimeInputs>): GslLeafSelector;
|
|
86
|
-
dateTimeInputByUid(uid: string, config: CfgByUid<typeof _gslDateTimeInputByUid>): GslLeafSelector;
|
|
87
|
-
datePickers(config: CfgGsl<typeof _gslDatePickers>): GslLeafSelector;
|
|
88
|
-
datePickerByUid(uid: string, config: CfgByUid<typeof _gslDatePickerByUid>): GslLeafSelector;
|
|
89
|
-
dateTimePickers(config: CfgGsl<typeof _gslDateTimePickers>): GslLeafSelector;
|
|
90
|
-
dateTimePickerByUid(uid: string, config: CfgByUid<typeof _gslDateTimePickerByUid>): GslLeafSelector;
|
|
91
|
-
rangeCalendars(config: CfgGsl<typeof _gslRangeCalendars>): GslLeafSelector;
|
|
92
|
-
rangeCalendarByUid(uid: string, config: CfgByUid<typeof _gslRangeCalendarByUid>): GslLeafSelector;
|
|
93
|
-
rangeDateInputs(config: CfgGsl<typeof _gslRangeDateInputs>): GslLeafSelector;
|
|
94
|
-
rangeDateInputByUid(uid: string, config: CfgByUid<typeof _gslRangeDateInputByUid>): GslLeafSelector;
|
|
95
|
-
rangeTimeInputs(config: CfgGsl<typeof _gslRangeTimeInputs>): GslLeafSelector;
|
|
96
|
-
rangeTimeInputByUid(uid: string, config: CfgByUid<typeof _gslRangeTimeInputByUid>): GslLeafSelector;
|
|
97
|
-
rangeDateTimeInputs(config: CfgGsl<typeof _gslRangeDateTimeInputs>): GslLeafSelector;
|
|
98
|
-
rangeDateTimeInputByUid(uid: string, config: CfgByUid<typeof _gslRangeDateTimeInputByUid>): GslLeafSelector;
|
|
99
|
-
rangeDateTimeCalendars(config: CfgGsl<typeof _gslRangeDateTimeCalendars>): GslLeafSelector;
|
|
100
|
-
rangeDateTimeCalendarByUid(uid: string, config: CfgByUid<typeof _gslRangeDateTimeCalendarByUid>): GslLeafSelector;
|
|
101
|
-
rangeDateTimePickers(config: CfgGsl<typeof _gslRangeDateTimePickers>): GslLeafSelector;
|
|
102
|
-
rangeDateTimePickerByUid(uid: string, config: CfgByUid<typeof _gslRangeDateTimePickerByUid>): GslLeafSelector;
|
|
103
|
-
rangeDatePickers(config: CfgGsl<typeof _gslRangeDatePickers>): GslLeafSelector;
|
|
104
|
-
rangeDatePickerByUid(uid: string, config: CfgByUid<typeof _gslRangeDatePickerByUid>): GslLeafSelector;
|
|
105
|
-
rangeTimePickers(config: CfgGsl<typeof _gslRangeTimePickers>): GslLeafSelector;
|
|
106
|
-
rangeTimePickerByUid(uid: string, config: CfgByUid<typeof _gslRangeTimePickerByUid>): GslLeafSelector;
|
|
107
|
-
repeaters(config: CfgGsl<typeof _gslRepeaters>): GslLeafSelector;
|
|
108
|
-
repeaterByUid(uid: string, config: CfgByUid<typeof _gslRepeaterByUid>): GslLeafSelector;
|
|
109
|
-
actions(config: CfgGsl<typeof _gslActions>): GslLeafSelector;
|
|
110
|
-
actionByUid(uid: string, config: CfgByUid<typeof _gslActionByUid>): GslLeafSelector;
|
|
111
|
-
layouts(config: CfgGsl<typeof _gslLayouts>): GslLeafSelector;
|
|
112
|
-
layoutByUid(uid: string, config: CfgByUid<typeof _gslLayoutByUid>): GslLeafSelector;
|
|
113
|
-
displays(config: CfgGsl<typeof _gslDisplays>): GslLeafSelector;
|
|
114
|
-
displayByUid(uid: string, config: CfgByUid<typeof _gslDisplayByUid>): GslLeafSelector;
|
|
115
|
-
alerts(config: CfgGsl<typeof _gslAlerts>): GslLeafSelector;
|
|
116
|
-
alertByUid(uid: string, config: CfgByUid<typeof _gslAlertByUid>): GslLeafSelector;
|
|
117
|
-
markdownTexts(config: CfgGsl<typeof _gslMarkdownTexts>): GslLeafSelector;
|
|
118
|
-
markdownTextByUid(uid: string, config: CfgByUid<typeof _gslMarkdownTextByUid>): GslLeafSelector;
|
|
119
|
-
tabs(config: CfgGsl<typeof _gslTabs>): GslLeafSelector;
|
|
120
|
-
tabsByUid(uid: string, config: CfgByUid<typeof _gslTabsByUid>): GslLeafSelector;
|
|
121
|
-
accordions(config: CfgGsl<typeof _gslAccordions>): GslLeafSelector;
|
|
122
|
-
accordionByUid(uid: string, config: CfgByUid<typeof _gslAccordionByUid>): GslLeafSelector;
|
|
123
|
-
customInputs(config: CfgGsl<typeof _gslCustomInputs>): GslLeafSelector;
|
|
124
|
-
customInputByUid(uid: string, config: CfgByUid<typeof _gslCustomInputByUid>): GslLeafSelector;
|
|
125
|
-
customActions(config: CfgGsl<typeof _gslCustomActions>): GslLeafSelector;
|
|
126
|
-
customActionByUid(uid: string, config: CfgByUid<typeof _gslCustomActionByUid>): GslLeafSelector;
|
|
127
|
-
customDisplays(config: CfgGsl<typeof _gslCustomDisplays>): GslLeafSelector;
|
|
128
|
-
customDisplayByUid(uid: string, config: CfgByUid<typeof _gslCustomDisplayByUid>): GslLeafSelector;
|
|
129
|
-
customLayouts(config: CfgGsl<typeof _gslCustomLayouts>): GslLeafSelector;
|
|
130
|
-
customLayoutByUid(uid: string, config: CfgByUid<typeof _gslCustomLayoutByUid>): GslLeafSelector;
|
|
131
|
-
}
|
|
132
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class ObjectUtils {
|
|
2
|
-
/**
|
|
3
|
-
* Deep merges two objects, with right taking precedence over left when properties conflict.
|
|
4
|
-
* Arrays are replaced, not merged.
|
|
5
|
-
* @param left - The base object
|
|
6
|
-
* @param right - The object whose properties take precedence
|
|
7
|
-
* @returns A new merged object
|
|
8
|
-
*/
|
|
9
|
-
deepMerge<T = any>(left: any, right?: any): T;
|
|
10
|
-
}
|
|
11
|
-
export declare const objectUtils: ObjectUtils;
|
package/register-B3CJMfX9.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("@golemui/core");const m={INPUTS:"INPUTS",ACTIONS:"ACTIONS",LAYOUTS:"LAYOUTS",DISPLAYS:"DISPLAYS"};function D(e){return function(t,i=()=>!0){return{kind:"leaf",selectorType:e,matcher:i,config:t}}}function y(e,t){return typeof e=="function"?e:{type:t,...e??{}}}function w(e,t,i){if(typeof t=="function"){const n=t;return{items:[{key:e,def:u=>({type:"text",...n(u)})}],type:"ITEMS",itemType:m.INPUTS,tags:i??[]}}const s={type:"text",...t};return{items:[{key:e,def:s}],type:"ITEMS",itemType:m.INPUTS,tags:i??[]}}function W(e,t,i){if(typeof t=="function"){const n=t;return{items:[{key:e,def:u=>({type:"number",...n(u)})}],type:"ITEMS",itemType:m.INPUTS,tags:i??[]}}const s={type:"number",...t};return{items:[{key:e,def:s}],type:"ITEMS",itemType:m.INPUTS,tags:i??[]}}function x(e,t,i){if(typeof t=="function"){const n=t;return{items:[{key:e,def:u=>({type:"boolean",...n(u)})}],type:"ITEMS",itemType:m.INPUTS,tags:i??[]}}const s={type:"boolean",...t};return{items:[{key:e,def:s}],type:"ITEMS",itemType:m.INPUTS,tags:i??[]}}function G(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"SELECT",items:[{key:e,def:a=>({type:"select",...l(a)})}],tags:i??[]}}const s={type:"select",...t};return{type:"ITEMS",itemType:"SELECT",items:[{key:e,def:s}],tags:i??[]}}function K(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DROPDOWN",items:[{key:e,def:a=>({type:"dropdown",...l(a)})}],tags:i??[]}}const s={type:"dropdown",...t};return{type:"ITEMS",itemType:"DROPDOWN",items:[{key:e,def:s}],tags:i??[]}}function Y(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RADIOGROUP",items:[{key:e,def:a=>({type:"radiogroup",...l(a)})}],tags:i??[]}}const s={type:"radiogroup",...t};return{type:"ITEMS",itemType:"RADIOGROUP",items:[{key:e,def:s}],tags:i??[]}}function $(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CHECKBOX",items:[{key:e,def:a=>({type:"checkbox",...l(a)})}],tags:i??[]}}const s={type:"checkbox",...t};return{type:"ITEMS",itemType:"CHECKBOX",items:[{key:e,def:s}],tags:i??[]}}function F(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TEXTAREA",items:[{key:e,def:a=>({type:"textarea",...l(a)})}],tags:i??[]}}const s={type:"textarea",...t};return{type:"ITEMS",itemType:"TEXTAREA",items:[{key:e,def:s}],tags:i??[]}}function O(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"PASSWORD",items:[{key:e,def:a=>({type:"password",...l(a)})}],tags:i??[]}}const s={type:"password",...t};return{type:"ITEMS",itemType:"PASSWORD",items:[{key:e,def:s}],tags:i??[]}}function z(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CURRENCY",items:[{key:e,def:a=>({type:"currency",...l(a)})}],tags:i??[]}}const s={type:"currency",...t};return{type:"ITEMS",itemType:"CURRENCY",items:[{key:e,def:s}],tags:i??[]}}function H(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"MARKDOWN",items:[{key:e,def:a=>({type:"markdown",...l(a)})}],tags:i??[]}}const s={type:"markdown",...t};return{type:"ITEMS",itemType:"MARKDOWN",items:[{key:e,def:s}],tags:i??[]}}function V(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"LIST",items:[{key:e,def:a=>({type:"list",...l(a)})}],tags:i??[]}}const s={type:"list",...t};return{type:"ITEMS",itemType:"LIST",items:[{key:e,def:s}],tags:i??[]}}function X(e,t,i){if(typeof t=="function"){const n=t;return{items:[u=>({type:"calendar",path:e,...n(u)})],type:"ITEMS",itemType:"CALENDAR",tags:i??[]}}return{items:[{type:"calendar",path:e,...t}],type:"ITEMS",itemType:"CALENDAR",tags:i??[]}}function j(e,t,i){if(typeof t=="function"){const n=t;return{items:[u=>({type:"dateTimeCalendar",path:e,...n(u)})],type:"ITEMS",itemType:"DATE_TIME_CALENDAR",tags:i??[]}}return{items:[{type:"dateTimeCalendar",path:e,...t}],type:"ITEMS",itemType:"DATE_TIME_CALENDAR",tags:i??[]}}function q(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_INPUT",items:[{key:e,def:a=>({type:"dateInput",...l(a)})}],tags:i??[]}}const s={type:"dateInput",...t};return{type:"ITEMS",itemType:"DATE_INPUT",items:[{key:e,def:s}],tags:i??[]}}function Z(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_PICKER",items:[{key:e,def:a=>({type:"datePicker",...l(a)})}],tags:i??[]}}const s={type:"datePicker",...t};return{type:"ITEMS",itemType:"DATE_PICKER",items:[{key:e,def:s}],tags:i??[]}}function J(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_TIME_PICKER",items:[{key:e,def:a=>({type:"dateTimePicker",...l(a)})}],tags:i??[]}}const s={type:"dateTimePicker",...t};return{type:"ITEMS",itemType:"DATE_TIME_PICKER",items:[{key:e,def:s}],tags:i??[]}}function Q(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_CALENDAR",items:[{key:e,def:a=>({type:"rangeCalendar",...l(a)})}],tags:i??[]}}const s={type:"rangeCalendar",...t};return{type:"ITEMS",itemType:"RANGE_CALENDAR",items:[{key:e,def:s}],tags:i??[]}}function ee(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_INPUT",items:[{key:e,def:a=>({type:"rangeDateInput",...l(a)})}],tags:i??[]}}const s={type:"rangeDateInput",...t};return{type:"ITEMS",itemType:"RANGE_DATE_INPUT",items:[{key:e,def:s}],tags:i??[]}}function te(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_TIME_INPUT",items:[{key:e,def:a=>({type:"rangeDateTimeInput",...l(a)})}],tags:i??[]}}const s={type:"rangeDateTimeInput",...t};return{type:"ITEMS",itemType:"RANGE_DATE_TIME_INPUT",items:[{key:e,def:s}],tags:i??[]}}function ie(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_TIME_CALENDAR",items:[{key:e,def:a=>({type:"rangeDateTimeCalendar",...l(a)})}],tags:i??[]}}const s={type:"rangeDateTimeCalendar",...t};return{type:"ITEMS",itemType:"RANGE_DATE_TIME_CALENDAR",items:[{key:e,def:s}],tags:i??[]}}function se(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_TIME_PICKER",items:[{key:e,def:a=>({type:"rangeDateTimePicker",...l(a)})}],tags:i??[]}}const s={type:"rangeDateTimePicker",...t};return{type:"ITEMS",itemType:"RANGE_DATE_TIME_PICKER",items:[{key:e,def:s}],tags:i??[]}}function ne(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_TIME_INPUT",items:[{key:e,def:a=>({type:"rangeTimeInput",...l(a)})}],tags:i??[]}}const s={type:"rangeTimeInput",...t};return{type:"ITEMS",itemType:"RANGE_TIME_INPUT",items:[{key:e,def:s}],tags:i??[]}}function le(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_PICKER",items:[{key:e,def:a=>({type:"rangeDatePicker",...l(a)})}],tags:i??[]}}const s={type:"rangeDatePicker",...t};return{type:"ITEMS",itemType:"RANGE_DATE_PICKER",items:[{key:e,def:s}],tags:i??[]}}function ae(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_TIME_PICKER",items:[{key:e,def:a=>({type:"rangeTimePicker",...l(a)})}],tags:i??[]}}const s={type:"rangeTimePicker",...t};return{type:"ITEMS",itemType:"RANGE_TIME_PICKER",items:[{key:e,def:s}],tags:i??[]}}function ue(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TIME_INPUT",items:[{key:e,def:a=>({type:"timeInput",...l(a)})}],tags:i??[]}}const s={type:"timeInput",...t};return{type:"ITEMS",itemType:"TIME_INPUT",items:[{key:e,def:s}],tags:i??[]}}function oe(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TIME_PICKER",items:[{key:e,def:a=>({type:"timePicker",...l(a)})}],tags:i??[]}}const s={type:"timePicker",...t};return{type:"ITEMS",itemType:"TIME_PICKER",items:[{key:e,def:s}],tags:i??[]}}function re(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_TIME_INPUT",items:[{key:e,def:a=>({type:"dateTimeInput",...l(a)})}],tags:i??[]}}const s={type:"dateTimeInput",...t};return{type:"ITEMS",itemType:"DATE_TIME_INPUT",items:[{key:e,def:s}],tags:i??[]}}function pe(e,t,i,s){if(typeof i=="function"){const u=i;return{type:"ITEMS",itemType:"CUSTOM_INPUT",items:[{key:t,def:c=>({customType:e,...u(c)})}],tags:s??[]}}const n={customType:e,...i};return{type:"ITEMS",itemType:"CUSTOM_INPUT",items:[{key:t,def:n}],tags:s??[]}}function de(e,t){return{items:[e],type:"ITEMS",itemType:m.ACTIONS,tags:t??[]}}function ye(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CUSTOM_ACTION",items:[o=>({customType:e,...l(o)})],tags:i??[]}}return{type:"ITEMS",itemType:"CUSTOM_ACTION",items:[{customType:e,...t}],tags:i??[]}}const ce=(e,t)=>({type:"ITEMS",itemType:m.DISPLAYS,items:[{render:e}],tags:t??[]});function me(e,t){return{type:"ITEMS",itemType:"ALERTS",items:[e],tags:t??[]}}function ge(e,t){return{type:"ITEMS",itemType:"MARKDOWN_TEXTS",items:[e],tags:t??[]}}function Te(e,t,i){if(typeof t=="function"){const o=t;return{type:"ITEMS",itemType:"CUSTOM_DISPLAY",items:[c=>({customType:e,...o(c)})],tags:i??[]}}const{uid:s,...n}=t??{};return{type:"ITEMS",itemType:"CUSTOM_DISPLAY",items:[{customType:e,...s!=null?{uid:s}:{},props:Object.keys(n).length>0?n:void 0}],tags:i??[]}}const U=(e,t,i)=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{widgetName:"flex",...t??{}},children:e}],tags:i??[]}),_e=(e,t,i)=>U(e,{direction:"row",...t??{}},i),be=(e,t,i)=>U(e,{direction:"column",...t??{}},i),P=(e,t,i)=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{widgetName:"grid",direction:"row",autoFit:!0,...t??{}},children:e}],tags:i??[]}),Ie=(e,t,i)=>P(e,{direction:"row",...t??{}},i),Ae=(e,t,i)=>P(e,{direction:"column",...t??{}},i);function M(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function ke(e,t,i){const s=e.map(u=>({label:u.label,uid:u.uid??M(u.label)})),n=e.map(u=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{uid:u.uid??M(u.label),direction:"column",widgetName:"flex"},children:u.children}],tags:[]}));return{type:"ITEMS",itemType:"TABS",items:[{def:{tabs:s,...t},children:n}],tags:i??[]}}function R(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function Ee(e,t,i){const s=e.map(u=>({label:u.label,uid:u.uid??R(u.label)})),n=e.map(u=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{uid:u.uid??R(u.label),direction:"column",widgetName:"flex"},children:u.children}],tags:[]}));return{type:"ITEMS",itemType:"ACCORDION",items:[{def:{sections:s,...t},children:n}],tags:i??[]}}function he(e,t,i,s){if(typeof i=="function"){const u=i;return{type:"ITEMS",itemType:"CUSTOM_LAYOUT",items:[{def:c=>({customType:e,...u(c)}),children:t}],tags:s??[]}}return{type:"ITEMS",itemType:"CUSTOM_LAYOUT",items:[{def:{customType:e,...i},children:t}],tags:s??[]}}function Se(e,t,i){const{template:s,...n}=t;return{type:"ITEMS",itemType:"REPEATER",items:[{key:e,def:n,children:s}],tags:i??[]}}function De(e,t,i){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TAGS",items:[{key:e,def:a=>({type:"tags",...l(a)})}],tags:i??[]}}const s={type:"tags",...t};return{type:"ITEMS",itemType:"TAGS",items:[{key:e,def:s}],tags:i??[]}}const A=new Map,Ue=new Map;function B(e,t,i){if(A.has(e))throw new Error(`Item type "${e}" is already registered.`);A.set(e,t),i&&Ue.set(e,i)}function Pe(e){const t=A.get(e);if(!t)throw new Error(`No handler registered for item type "${e}". Did you forget to import the registration module?`);return t}function fe(e){return A.has(e)}function r(e){const t=o=>{if(!e.sensibleDefaults)return{};let a={...e.sensibleDefaults.base};for(const c of o){const T=c.config;for(const _ of e.sensibleDefaults.fields){const b=_;T[b]!=null&&(a={...a,[b]:T[b]})}}return a},i=(o,a)=>e.sensibleDefaults?e.sensibleDefaults.apply(o,a):o,s=o=>{switch(e.entryShape){case"bare":return{baseDef:o};case"keyed":{const a=o;return{baseDef:a.def,path:a.key}}case"compound":{const a=o;return{baseDef:a.def,children:a.children}}}},n={rollUpSensibleDefaults:t,applySensibleDefaults:i,mapToWidget:e.mapToWidget,parseEntry:s,...e.afterMerge?{afterMerge:e.afterMerge}:{},...e.buildCustomWidget?{buildCustomWidget:e.buildCustomWidget}:{},...e.getChildren?{getChildren:e.getChildren}:{}};B(e.itemType,n,e.kind);const l=D(e.itemType);return{gsl:l,gslByUid:(o,a)=>l(a,(c=>c.uid===o))}}function p(e){const{uid:t,path:i,label:s,disabled:n,readonly:l,defaultValue:u,tags:o,type:a,size:c,onLoad:T,onChange:_,onFilter:b,on:E,states:I,include:fi,exclude:Mi,validator:Ri,...N}=e;return N}function Me(e){return e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,t=>t.toUpperCase()):""}function d(e,t){return e.label!=null||t.suppressAutomaticLabels||!e.path?e:{...e,label:Me(e.path)}}function g(e,t){return e.placeholder!=null||t.suppressAutomaticPlaceholders||!e.path?e:{...e,placeholder:e.path}}function Re(e){switch(e.type){case"text":return Le(e);case"number":return Ce(e);case"boolean":return Be(e);default:throw new Error(`Unsupported field type "${e.type}"`)}}function Be(e){const t=p(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:y(e.validator,"boolean")}:{},props:t}}function Le(e){const t=p(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:y(e.validator,"string")}}function Ce(e){const t=p(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:y(e.validator,"number")}}const{gsl:k,gslByUid:ve}=r({itemType:"INPUTS",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>{let i=d(e,t);return i=g(i,t),i}},mapToWidget:Re}),Ne=e=>k(e,t=>t.type==="text"),we=e=>k(e,t=>t.type==="number"),We=e=>k(e,t=>t.type==="boolean"),{gsl:xe,gslByUid:Ge}=r({itemType:"SELECT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>g(d(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:p(e)})}),{gsl:Ke,gslByUid:Ye}=r({itemType:"DROPDOWN",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>g(d(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:p(e)})}),{gsl:$e,gslByUid:Fe}=r({itemType:"RADIOGROUP",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:p(e)})}),{gsl:Oe,gslByUid:ze}=r({itemType:"CHECKBOX",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"boolean")}:{},props:p(e)})}),{gsl:He,gslByUid:Ve}=r({itemType:"TEXTAREA",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>g(d(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:y(e.validator,"string")}:{},props:p(e)})}),{gsl:Xe,gslByUid:je}=r({itemType:"PASSWORD",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>g(d(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:y(e.validator,"string")}:{},props:p(e)})}),{gsl:qe,gslByUid:Ze}=r({itemType:"CURRENCY",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>g(d(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:y(e.validator,"number")}:{},props:p(e)})}),{gsl:Je,gslByUid:Qe}=r({itemType:"MARKDOWN",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>g(d(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:y(e.validator,"string")}:{},props:p(e)})}),{gsl:et,gslByUid:tt}=r({itemType:"LIST",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:p(e)})}),{gsl:it,gslByUid:st}=r({itemType:"CALENDAR",kind:"input",entryShape:"bare",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"string")}:{},props:p(e)})}),{gsl:nt,gslByUid:lt}=r({itemType:"DATE_TIME_CALENDAR",kind:"input",entryShape:"bare",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"string")}:{},props:p(e)})}),{gsl:at,gslByUid:ut}=r({itemType:"DATE_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"string")}:{},props:p(e)})}),{gsl:ot,gslByUid:rt}=r({itemType:"DATE_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>g(d(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:y(e.validator,"string")}:{},props:p(e)})}),{gsl:pt,gslByUid:dt}=r({itemType:"DATE_TIME_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>g(d(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:y(e.validator,"string")}:{},props:p(e)})}),{gsl:yt,gslByUid:ct}=r({itemType:"RANGE_CALENDAR",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"array")}:{},props:p(e)})}),{gsl:mt,gslByUid:gt}=r({itemType:"RANGE_DATE_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"array")}:{},props:p(e)})}),{gsl:Tt,gslByUid:_t}=r({itemType:"RANGE_DATE_TIME_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"array")}:{},props:p(e)})}),{gsl:bt,gslByUid:It}=r({itemType:"RANGE_DATE_TIME_CALENDAR",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"array")}:{},props:p(e)})}),{gsl:At,gslByUid:kt}=r({itemType:"RANGE_DATE_TIME_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"array")}:{},props:p(e)})}),{gsl:Et,gslByUid:ht}=r({itemType:"RANGE_TIME_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"array")}:{},props:p(e)})}),{gsl:St,gslByUid:Dt}=r({itemType:"TIME_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"string")}:{},props:p(e)})}),{gsl:Ut,gslByUid:Pt}=r({itemType:"TIME_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>g(d(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:y(e.validator,"string")}:{},props:p(e)})}),{gsl:ft,gslByUid:Mt}=r({itemType:"DATE_TIME_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"string")}:{},props:p(e)})}),{gsl:Rt,gslByUid:Bt}=r({itemType:"RANGE_DATE_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>g(d(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:y(e.validator,"array")}:{},props:p(e)})}),{gsl:Lt,gslByUid:Ct}=r({itemType:"RANGE_TIME_PICKER",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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:y(e.validator,"array")}:{},props:p(e)})});function vt(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 Nt(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:y(e.validator,"array")}:{},props:{...vt(e),template:{kind:"layout",type:"flex",children:[],props:{direction:"column"}}}}}function h(e,t){for(const i of e){if(typeof i=="function")continue;const s=i;typeof s.path=="string"&&s.path&&!s.path.startsWith(t)&&(s.path=t+s.path),"children"in s&&Array.isArray(s.children)&&h(s.children,t);const n=s.props;n?.template?.children&&Array.isArray(n.template.children)&&h(n.template.children,t)}}function wt(e,t){const i=t.walkChildren(t.children??[]),s=e.kind==="static"?e.def.path??"":e.fn({})?.path??"";s&&h(i,s+".items.");const n={kind:"layout",type:"flex",uid:"",children:i,props:{direction:"column"}};if(e.kind==="static"){const u=t.mapStaticDef(e.def,"REPEATER");return{...u,props:{...u.props,template:n}}}const l=e.fn;return(u=>{const o=l(u),a=t.mapStaticDef(o,"REPEATER");return{...a,props:{...a.props,template:n}}})}function Wt(e){return{baseDef:e.def,path:e.key,children:e.children}}function xt(e){return e.children}const Gt={parseEntry:Wt,rollUpSensibleDefaults:()=>({}),applySensibleDefaults:e=>e,mapToWidget:Nt,buildCustomWidget:wt,getChildren:xt};B("REPEATER",Gt,"input");const L=D("REPEATER"),Kt=(e,t)=>L(t,(i=>i.uid===e)),C={onLoad:"load",onChange:"change",onFilter:"filter",onBlur:"blur"},Yt=Object.keys(C);function v(e){if(e.length>0)return null;try{const t=e();return typeof t=="string"?t:null}catch{return null}}class $t{extractOnClickFromMergeResult(t,i,s){if(t.kind==="dynamic"){const u=t.fn;return{kind:"dynamic",fn:a=>{const c=u(a);return this.wireOnClick(c,i,s)}}}const n=t.def;return{kind:"static",def:this.wireOnClick(n,i,s)}}wireOnClick(t,i,s){const n=s.next(),l=t.onClick;if(typeof l=="function"){const{onClick:u,...o}=t,a=l(void 0);return typeof a=="string"?{...o,uid:n,on:{click:a}}:(i.set(n,c=>l(c.data)),{...o,uid:n,on:{click:n}})}return{...t,uid:n}}wireInputLayoutEvents(t,i,s){if(t.kind==="dynamic"){const l=t.fn;return{kind:"dynamic",fn:o=>{const a=l(o);return this.wireEventProperties(a,i,s)}}}return{kind:"static",def:this.wireEventProperties(t.def,i,s)}}wireEventProperties(t,i,s){const n={...t.on||{}};let l=!1;const u={...t};for(const o of Yt){const a=t[o];if(a==null)continue;const c=C[o];if(typeof a=="function"){const T=v(a);if(T!=null)n[c]=T;else{const _=s.next();i.set(_,a),n[c]=_}l=!0}else typeof a=="string"&&(n[c]=a,l=!0);delete u[o]}return l&&(u.on=n),u}}const f=new $t;function Ft(e){const{uid:t,label:i,actionType:s,disabled:n,on:l,onClick:u,data:o,type:a,tags:c,size:T,include:_,exclude:b,states:E,...I}=e;return{uid:t??"",kind:"action",type:"button",disabled:n,actionType:s,label:i,...l!=null?{on:l}:{},props:I}}const{gsl:Ot,gslByUid:zt}=r({itemType:"ACTIONS",kind:"action",entryShape:"bare",mapToWidget:Ft,afterMerge:(e,t)=>f.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)});function Ht(e){const{uid:t,widgetName:i,tags:s,size:n,onChange:l,include:u,exclude:o,...a}=e,{on:c,...T}=a;return{uid:t??"",kind:"layout",type:i??"flex",props:{direction:T.direction??"column",...T},children:[]}}function Vt(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"LAYOUTS"),children:i};const s=e.fn;return(n=>{const l=s(n);return{...t.mapStaticDef(l,"LAYOUTS"),children:i}})}function Xt(e){return e.children}const{gsl:jt,gslByUid:qt}=r({itemType:"LAYOUTS",kind:"layout",entryShape:"compound",mapToWidget:Ht,buildCustomWidget:Vt,getChildren:Xt});function S(e){return{errors:void 0,touched:void 0,translate:void 0,...e??{},$form:e?.$form??{}}}function Zt(e){return{uid:"",kind:"display",type:"renderer",props:{render:e.render}}}function Jt(e,t){if(e.kind==="static"){const s=e.def;return(n=>({uid:"",kind:"display",type:"renderer",...s.include!=null?{include:s.include}:{},...s.exclude!=null?{exclude:s.exclude}:{},props:{render:s.render(S(n))}}))}const i=e.fn;return(s=>{const n=i(s);return{uid:"",kind:"display",type:"renderer",...n.include!=null?{include:n.include}:{},...n.exclude!=null?{exclude:n.exclude}:{},props:{render:n.render(S(s))}}})}const{gsl:Qt,gslByUid:ei}=r({itemType:"DISPLAYS",kind:"display",entryShape:"bare",mapToWidget:Zt,buildCustomWidget:Jt}),{gsl:ti,gslByUid:ii}=r({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}:{}}})}),{gsl:si,gslByUid:ni}=r({itemType:"MARKDOWN_TEXTS",kind:"display",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:"markdownText",props:{md:e.md}})});function li(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 ai(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"TABS"),children:i};const s=e.fn;return(n=>{const l=s(n);return{...t.mapStaticDef(l,"TABS"),children:i}})}function ui(e){return e.children}const{gsl:oi,gslByUid:ri}=r({itemType:"TABS",kind:"layout",entryShape:"compound",mapToWidget:li,buildCustomWidget:ai,getChildren:ui});function pi(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 di(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"ACCORDION"),children:i};const s=e.fn;return(n=>{const l=s(n);return{...t.mapStaticDef(l,"ACCORDION"),children:i}})}function yi(e){return e.children}const{gsl:ci,gslByUid:mi}=r({itemType:"ACCORDION",kind:"layout",entryShape:"compound",mapToWidget:pi,buildCustomWidget:di,getChildren:yi}),{gsl:gi,gslByUid:Ti}=r({itemType:"CUSTOM_INPUT",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>d(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??{}})}),{gsl:_i,gslByUid:bi}=r({itemType:"CUSTOM_ACTION",kind:"action",entryShape:"bare",mapToWidget:e=>{const{uid:t,label:i,disabled:s,on:n,onClick:l,data:u,customType:o,tags:a,size:c,include:T,exclude:_,states:b,props:E,...I}=e;return{uid:t??"",kind:"action",type:e.customType,label:i,disabled:s,...n!=null?{on:n}:{},props:{...E,...I}}},afterMerge:(e,t)=>f.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)}),{gsl:Ii,gslByUid:Ai}=r({itemType:"CUSTOM_DISPLAY",kind:"display",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:e.customType,props:e.props??{}})});function ki(e){return{uid:e.uid??"",kind:"layout",type:e.customType,props:e.props??{},children:[]}}function Ei(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"CUSTOM_LAYOUT"),children:i};const s=e.fn;return(n=>{const l=s(n);return{...t.mapStaticDef(l,"CUSTOM_LAYOUT"),children:i}})}function hi(e){return e.children}const{gsl:Si,gslByUid:Di}=r({itemType:"CUSTOM_LAYOUT",kind:"layout",entryShape:"compound",mapToWidget:ki,buildCustomWidget:Ei,getChildren:hi}),{gsl:Ui,gslByUid:Pi}=r({itemType:"TAGS",kind:"input",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>g(d(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:y(e.validator,"array")}:{},props:p(e)})});exports.GuiItemTypes=m;exports._gslAccordionByUid=mi;exports._gslAccordions=ci;exports._gslActionByUid=zt;exports._gslActions=Ot;exports._gslAlertByUid=ii;exports._gslAlerts=ti;exports._gslBooleanInputs=We;exports._gslCalendarByUid=st;exports._gslCalendars=it;exports._gslCheckboxByUid=ze;exports._gslCheckboxes=Oe;exports._gslCurrencies=qe;exports._gslCurrencyByUid=Ze;exports._gslCustomActionByUid=bi;exports._gslCustomActions=_i;exports._gslCustomDisplayByUid=Ai;exports._gslCustomDisplays=Ii;exports._gslCustomInputByUid=Ti;exports._gslCustomInputs=gi;exports._gslCustomLayoutByUid=Di;exports._gslCustomLayouts=Si;exports._gslDateInputByUid=ut;exports._gslDateInputs=at;exports._gslDatePickerByUid=rt;exports._gslDatePickers=ot;exports._gslDateTimeCalendarByUid=lt;exports._gslDateTimeCalendars=nt;exports._gslDateTimeInputByUid=Mt;exports._gslDateTimeInputs=ft;exports._gslDateTimePickerByUid=dt;exports._gslDateTimePickers=pt;exports._gslDisplayByUid=ei;exports._gslDisplays=Qt;exports._gslDropdownByUid=Ye;exports._gslDropdowns=Ke;exports._gslInputByUid=ve;exports._gslInputs=k;exports._gslLayoutByUid=qt;exports._gslLayouts=jt;exports._gslListByUid=tt;exports._gslLists=et;exports._gslMarkdownByUid=Qe;exports._gslMarkdownTextByUid=ni;exports._gslMarkdownTexts=si;exports._gslMarkdowns=Je;exports._gslNumberInputs=we;exports._gslPasswordByUid=je;exports._gslPasswords=Xe;exports._gslRadiogroupByUid=Fe;exports._gslRadiogroups=$e;exports._gslRangeCalendarByUid=ct;exports._gslRangeCalendars=yt;exports._gslRangeDateInputByUid=gt;exports._gslRangeDateInputs=mt;exports._gslRangeDatePickerByUid=Bt;exports._gslRangeDatePickers=Rt;exports._gslRangeDateTimeCalendarByUid=It;exports._gslRangeDateTimeCalendars=bt;exports._gslRangeDateTimeInputByUid=_t;exports._gslRangeDateTimeInputs=Tt;exports._gslRangeDateTimePickerByUid=kt;exports._gslRangeDateTimePickers=At;exports._gslRangeTimeInputByUid=ht;exports._gslRangeTimeInputs=Et;exports._gslRangeTimePickerByUid=Ct;exports._gslRangeTimePickers=Lt;exports._gslRepeaterByUid=Kt;exports._gslRepeaters=L;exports._gslSelectByUid=Ge;exports._gslSelects=xe;exports._gslTabs=oi;exports._gslTabsByUid=ri;exports._gslTags=Ui;exports._gslTagsByUid=Pi;exports._gslTextInputs=Ne;exports._gslTextareaByUid=Ve;exports._gslTextareas=He;exports._gslTimeInputByUid=Dt;exports._gslTimeInputs=St;exports._gslTimePickerByUid=Pt;exports._gslTimePickers=Ut;exports._guiAccordion=Ee;exports._guiAlert=me;exports._guiBooleanInput=x;exports._guiButton=de;exports._guiCalendar=X;exports._guiCheckbox=$;exports._guiCurrency=z;exports._guiCustomAction=ye;exports._guiCustomDisplay=Te;exports._guiCustomInput=pe;exports._guiCustomLayout=he;exports._guiDateInput=q;exports._guiDatePicker=Z;exports._guiDateTimeCalendar=j;exports._guiDateTimeInput=re;exports._guiDateTimePicker=J;exports._guiDisplay=ce;exports._guiDropdown=K;exports._guiFlex=U;exports._guiGrid=P;exports._guiHorizontalFlex=_e;exports._guiHorizontalGrid=Ie;exports._guiList=V;exports._guiMarkdown=H;exports._guiMarkdownText=ge;exports._guiNumberInput=W;exports._guiPassword=O;exports._guiRadiogroup=Y;exports._guiRangeCalendar=Q;exports._guiRangeDateInput=ee;exports._guiRangeDatePicker=le;exports._guiRangeDateTimeCalendar=ie;exports._guiRangeDateTimeInput=te;exports._guiRangeDateTimePicker=se;exports._guiRangeTimeInput=ne;exports._guiRangeTimePicker=ae;exports._guiRepeater=Se;exports._guiSelect=G;exports._guiTabs=ke;exports._guiTags=De;exports._guiTextInput=w;exports._guiTextarea=F;exports._guiTimeInput=ue;exports._guiTimePicker=oe;exports._guiVerticalFlex=be;exports._guiVerticalGrid=Ae;exports.createGslSelector=D;exports.defineShortcutType=r;exports.eventWiringService=f;exports.extractWidgetProps=p;exports.getItemTypeHandler=Pe;exports.hasItemTypeHandler=fe;exports.probeForHostEventName=v;exports.processAutoLabel=d;exports.processAutoPlaceholder=g;exports.withForm=S;
|