@verbb/plugin-kit-react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE.md +21 -0
- package/README.md +31 -0
- package/dist/_virtual/_rolldown/runtime.js +34 -0
- package/dist/components/Button.d.ts +26 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +148 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/ButtonGroup.d.ts +11 -0
- package/dist/components/ButtonGroup.d.ts.map +1 -0
- package/dist/components/ButtonGroup.js +59 -0
- package/dist/components/ButtonGroup.js.map +1 -0
- package/dist/components/Calendar.d.ts +11 -0
- package/dist/components/Calendar.d.ts.map +1 -0
- package/dist/components/Calendar.js +133 -0
- package/dist/components/Calendar.js.map +1 -0
- package/dist/components/Checkbox.d.ts +5 -0
- package/dist/components/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox.js +41 -0
- package/dist/components/Checkbox.js.map +1 -0
- package/dist/components/CheckboxInput.d.ts +14 -0
- package/dist/components/CheckboxInput.d.ts.map +1 -0
- package/dist/components/CheckboxInput.js +31 -0
- package/dist/components/CheckboxInput.js.map +1 -0
- package/dist/components/CheckboxSelect.d.ts +19 -0
- package/dist/components/CheckboxSelect.d.ts.map +1 -0
- package/dist/components/CheckboxSelect.js +63 -0
- package/dist/components/CheckboxSelect.js.map +1 -0
- package/dist/components/ColorInput.d.ts +14 -0
- package/dist/components/ColorInput.d.ts.map +1 -0
- package/dist/components/ColorInput.js +148 -0
- package/dist/components/ColorInput.js.map +1 -0
- package/dist/components/Combobox.d.ts +40 -0
- package/dist/components/Combobox.d.ts.map +1 -0
- package/dist/components/Combobox.js +393 -0
- package/dist/components/Combobox.js.map +1 -0
- package/dist/components/ComboboxInput.d.ts +28 -0
- package/dist/components/ComboboxInput.d.ts.map +1 -0
- package/dist/components/ComboboxInput.js +165 -0
- package/dist/components/ComboboxInput.js.map +1 -0
- package/dist/components/Command.d.ts +26 -0
- package/dist/components/Command.d.ts.map +1 -0
- package/dist/components/Command.js +94 -0
- package/dist/components/Command.js.map +1 -0
- package/dist/components/CopyButton.d.ts +9 -0
- package/dist/components/CopyButton.d.ts.map +1 -0
- package/dist/components/CopyButton.js +40 -0
- package/dist/components/CopyButton.js.map +1 -0
- package/dist/components/DatePicker.d.ts +9 -0
- package/dist/components/DatePicker.d.ts.map +1 -0
- package/dist/components/DatePicker.js +46 -0
- package/dist/components/DatePicker.js.map +1 -0
- package/dist/components/Dialog.d.ts +21 -0
- package/dist/components/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog.js +179 -0
- package/dist/components/Dialog.js.map +1 -0
- package/dist/components/DropdownMenu.d.ts +47 -0
- package/dist/components/DropdownMenu.d.ts.map +1 -0
- package/dist/components/DropdownMenu.js +240 -0
- package/dist/components/DropdownMenu.js.map +1 -0
- package/dist/components/EditableTable.d.ts +28 -0
- package/dist/components/EditableTable.d.ts.map +1 -0
- package/dist/components/EditableTable.js +145 -0
- package/dist/components/EditableTable.js.map +1 -0
- package/dist/components/FadeIn.d.ts +12 -0
- package/dist/components/FadeIn.d.ts.map +1 -0
- package/dist/components/FadeIn.js +24 -0
- package/dist/components/FadeIn.js.map +1 -0
- package/dist/components/Input.d.ts +9 -0
- package/dist/components/Input.d.ts.map +1 -0
- package/dist/components/Input.js +43 -0
- package/dist/components/Input.js.map +1 -0
- package/dist/components/InputGroup.d.ts +20 -0
- package/dist/components/InputGroup.d.ts.map +1 -0
- package/dist/components/InputGroup.js +111 -0
- package/dist/components/InputGroup.js.map +1 -0
- package/dist/components/Label.d.ts +4 -0
- package/dist/components/Label.d.ts.map +1 -0
- package/dist/components/Label.js +15 -0
- package/dist/components/Label.js.map +1 -0
- package/dist/components/Lightswitch.d.ts +9 -0
- package/dist/components/Lightswitch.d.ts.map +1 -0
- package/dist/components/Lightswitch.js +56 -0
- package/dist/components/Lightswitch.js.map +1 -0
- package/dist/components/Markdown.d.ts +11 -0
- package/dist/components/Markdown.d.ts.map +1 -0
- package/dist/components/Markdown.js +46 -0
- package/dist/components/Markdown.js.map +1 -0
- package/dist/components/MenuButton.d.ts +40 -0
- package/dist/components/MenuButton.d.ts.map +1 -0
- package/dist/components/MenuButton.js +122 -0
- package/dist/components/MenuButton.js.map +1 -0
- package/dist/components/ModalTabs.d.ts +8 -0
- package/dist/components/ModalTabs.d.ts.map +1 -0
- package/dist/components/ModalTabs.js +37 -0
- package/dist/components/ModalTabs.js.map +1 -0
- package/dist/components/PaneTabs.d.ts +8 -0
- package/dist/components/PaneTabs.d.ts.map +1 -0
- package/dist/components/PaneTabs.js +37 -0
- package/dist/components/PaneTabs.js.map +1 -0
- package/dist/components/Popover.d.ts +12 -0
- package/dist/components/Popover.d.ts.map +1 -0
- package/dist/components/Popover.js +70 -0
- package/dist/components/Popover.js.map +1 -0
- package/dist/components/RadioGroup.d.ts +6 -0
- package/dist/components/RadioGroup.d.ts.map +1 -0
- package/dist/components/RadioGroup.js +34 -0
- package/dist/components/RadioGroup.js.map +1 -0
- package/dist/components/ScrollArea.d.ts +16 -0
- package/dist/components/ScrollArea.d.ts.map +1 -0
- package/dist/components/ScrollArea.js +47 -0
- package/dist/components/ScrollArea.js.map +1 -0
- package/dist/components/Select.d.ts +23 -0
- package/dist/components/Select.d.ts.map +1 -0
- package/dist/components/Select.js +205 -0
- package/dist/components/Select.js.map +1 -0
- package/dist/components/SelectInput.d.ts +33 -0
- package/dist/components/SelectInput.d.ts.map +1 -0
- package/dist/components/SelectInput.js +85 -0
- package/dist/components/SelectInput.js.map +1 -0
- package/dist/components/Separator.d.ts +4 -0
- package/dist/components/Separator.d.ts.map +1 -0
- package/dist/components/Separator.js +17 -0
- package/dist/components/Separator.js.map +1 -0
- package/dist/components/SlideUp.d.ts +12 -0
- package/dist/components/SlideUp.d.ts.map +1 -0
- package/dist/components/SlideUp.js +36 -0
- package/dist/components/SlideUp.js.map +1 -0
- package/dist/components/Slot.d.ts +6 -0
- package/dist/components/Slot.d.ts.map +1 -0
- package/dist/components/Slot.js +52 -0
- package/dist/components/Slot.js.map +1 -0
- package/dist/components/Spinner.d.ts +9 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner.js +43 -0
- package/dist/components/Spinner.js.map +1 -0
- package/dist/components/Status.d.ts +8 -0
- package/dist/components/Status.d.ts.map +1 -0
- package/dist/components/Status.js +55 -0
- package/dist/components/Status.js.map +1 -0
- package/dist/components/Table.d.ts +10 -0
- package/dist/components/Table.d.ts.map +1 -0
- package/dist/components/Table.js +64 -0
- package/dist/components/Table.js.map +1 -0
- package/dist/components/Tabs.d.ts +8 -0
- package/dist/components/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs.js +37 -0
- package/dist/components/Tabs.js.map +1 -0
- package/dist/components/Textarea.d.ts +8 -0
- package/dist/components/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea.js +26 -0
- package/dist/components/Textarea.js.map +1 -0
- package/dist/components/TimePicker.d.ts +9 -0
- package/dist/components/TimePicker.d.ts.map +1 -0
- package/dist/components/TimePicker.js +40 -0
- package/dist/components/TimePicker.js.map +1 -0
- package/dist/components/TiptapContent.d.ts +9 -0
- package/dist/components/TiptapContent.d.ts.map +1 -0
- package/dist/components/TiptapContent.js +24 -0
- package/dist/components/TiptapContent.js.map +1 -0
- package/dist/components/TiptapEditor.d.ts +41 -0
- package/dist/components/TiptapEditor.d.ts.map +1 -0
- package/dist/components/TiptapEditor.js +555 -0
- package/dist/components/TiptapEditor.js.map +1 -0
- package/dist/components/TiptapInput.d.ts +15 -0
- package/dist/components/TiptapInput.d.ts.map +1 -0
- package/dist/components/TiptapInput.js +138 -0
- package/dist/components/TiptapInput.js.map +1 -0
- package/dist/components/Toggle.d.ts +9 -0
- package/dist/components/Toggle.d.ts.map +1 -0
- package/dist/components/Toggle.js +48 -0
- package/dist/components/Toggle.js.map +1 -0
- package/dist/components/ToggleGroup.d.ts +11 -0
- package/dist/components/ToggleGroup.d.ts.map +1 -0
- package/dist/components/ToggleGroup.js +70 -0
- package/dist/components/ToggleGroup.js.map +1 -0
- package/dist/components/Tooltip.d.ts +9 -0
- package/dist/components/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip.js +51 -0
- package/dist/components/Tooltip.js.map +1 -0
- package/dist/components/VirtualizedScrollArea.d.ts +25 -0
- package/dist/components/VirtualizedScrollArea.d.ts.map +1 -0
- package/dist/components/VirtualizedScrollArea.js +80 -0
- package/dist/components/VirtualizedScrollArea.js.map +1 -0
- package/dist/components/editable-table/RowDataCells.d.ts +3 -0
- package/dist/components/editable-table/RowDataCells.d.ts.map +1 -0
- package/dist/components/editable-table/RowDataCells.js +33 -0
- package/dist/components/editable-table/RowDataCells.js.map +1 -0
- package/dist/components/editable-table/TableCell.d.ts +13 -0
- package/dist/components/editable-table/TableCell.d.ts.map +1 -0
- package/dist/components/editable-table/TableCell.js +415 -0
- package/dist/components/editable-table/TableCell.js.map +1 -0
- package/dist/components/editable-table/TableRow.d.ts +3 -0
- package/dist/components/editable-table/TableRow.d.ts.map +1 -0
- package/dist/components/editable-table/TableRow.js +163 -0
- package/dist/components/editable-table/TableRow.js.map +1 -0
- package/dist/components/editable-table/helpers.d.ts +12 -0
- package/dist/components/editable-table/helpers.d.ts.map +1 -0
- package/dist/components/editable-table/helpers.js +23 -0
- package/dist/components/editable-table/helpers.js.map +1 -0
- package/dist/components/editable-table/index.d.ts +4 -0
- package/dist/components/editable-table/index.d.ts.map +1 -0
- package/dist/components/editable-table/index.js +4 -0
- package/dist/components/editable-table/types.d.ts +43 -0
- package/dist/components/editable-table/types.d.ts.map +1 -0
- package/dist/components/editable-table/types.js +0 -0
- package/dist/components/editable-table/useEditableTableCellChange.d.ts +17 -0
- package/dist/components/editable-table/useEditableTableCellChange.d.ts.map +1 -0
- package/dist/components/editable-table/useEditableTableCellChange.js +152 -0
- package/dist/components/editable-table/useEditableTableCellChange.js.map +1 -0
- package/dist/components/editable-table/useEditableTableDnd.d.ts +18 -0
- package/dist/components/editable-table/useEditableTableDnd.d.ts.map +1 -0
- package/dist/components/editable-table/useEditableTableDnd.js +55 -0
- package/dist/components/editable-table/useEditableTableDnd.js.map +1 -0
- package/dist/components/editable-table/useEditableTableRows.d.ts +17 -0
- package/dist/components/editable-table/useEditableTableRows.d.ts.map +1 -0
- package/dist/components/editable-table/useEditableTableRows.js +108 -0
- package/dist/components/editable-table/useEditableTableRows.js.map +1 -0
- package/dist/components/index.d.ts +45 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +45 -0
- package/dist/components/tiptap/InlineVariablePickerPopover.d.ts +24 -0
- package/dist/components/tiptap/InlineVariablePickerPopover.d.ts.map +1 -0
- package/dist/components/tiptap/InlineVariablePickerPopover.js +63 -0
- package/dist/components/tiptap/InlineVariablePickerPopover.js.map +1 -0
- package/dist/components/tiptap/InsertLinkDialog.d.ts +14 -0
- package/dist/components/tiptap/InsertLinkDialog.d.ts.map +1 -0
- package/dist/components/tiptap/InsertLinkDialog.js +145 -0
- package/dist/components/tiptap/InsertLinkDialog.js.map +1 -0
- package/dist/components/tiptap/LinkBubbleMenu.d.ts +10 -0
- package/dist/components/tiptap/LinkBubbleMenu.d.ts.map +1 -0
- package/dist/components/tiptap/LinkBubbleMenu.js +106 -0
- package/dist/components/tiptap/LinkBubbleMenu.js.map +1 -0
- package/dist/components/tiptap/LinkDropdown.d.ts +53 -0
- package/dist/components/tiptap/LinkDropdown.d.ts.map +1 -0
- package/dist/components/tiptap/LinkDropdown.js +155 -0
- package/dist/components/tiptap/LinkDropdown.js.map +1 -0
- package/dist/components/tiptap/VariableCommandList.d.ts +37 -0
- package/dist/components/tiptap/VariableCommandList.d.ts.map +1 -0
- package/dist/components/tiptap/VariableCommandList.js +166 -0
- package/dist/components/tiptap/VariableCommandList.js.map +1 -0
- package/dist/components/tiptap/VariableDropdown.d.ts +33 -0
- package/dist/components/tiptap/VariableDropdown.d.ts.map +1 -0
- package/dist/components/tiptap/VariableDropdown.js +121 -0
- package/dist/components/tiptap/VariableDropdown.js.map +1 -0
- package/dist/components/tiptap/VariablePickerContext.d.ts +38 -0
- package/dist/components/tiptap/VariablePickerContext.d.ts.map +1 -0
- package/dist/components/tiptap/VariablePickerContext.js +30 -0
- package/dist/components/tiptap/VariablePickerContext.js.map +1 -0
- package/dist/components/tiptap/VariableTag.d.ts +6 -0
- package/dist/components/tiptap/VariableTag.d.ts.map +1 -0
- package/dist/components/tiptap/VariableTag.js +153 -0
- package/dist/components/tiptap/VariableTag.js.map +1 -0
- package/dist/components/tiptap/VariableTagView.d.ts +3 -0
- package/dist/components/tiptap/VariableTagView.d.ts.map +1 -0
- package/dist/components/tiptap/VariableTagView.js +445 -0
- package/dist/components/tiptap/VariableTagView.js.map +1 -0
- package/dist/components/tiptap/VariableTransformControls.d.ts +37 -0
- package/dist/components/tiptap/VariableTransformControls.d.ts.map +1 -0
- package/dist/components/tiptap/VariableTransformControls.js +157 -0
- package/dist/components/tiptap/VariableTransformControls.js.map +1 -0
- package/dist/components/tiptap/editorConfig.d.ts +15 -0
- package/dist/components/tiptap/editorConfig.d.ts.map +1 -0
- package/dist/components/tiptap/editorConfig.js +191 -0
- package/dist/components/tiptap/editorConfig.js.map +1 -0
- package/dist/components/tiptap/useInlineVariablePicker.d.ts +34 -0
- package/dist/components/tiptap/useInlineVariablePicker.d.ts.map +1 -0
- package/dist/components/tiptap/useInlineVariablePicker.js +240 -0
- package/dist/components/tiptap/useInlineVariablePicker.js.map +1 -0
- package/dist/components/tiptap/useVariablePicker.d.ts +28 -0
- package/dist/components/tiptap/useVariablePicker.d.ts.map +1 -0
- package/dist/components/tiptap/useVariablePicker.js +122 -0
- package/dist/components/tiptap/useVariablePicker.js.map +1 -0
- package/dist/components/tiptap/variablePickerUtils.d.ts +11 -0
- package/dist/components/tiptap/variablePickerUtils.d.ts.map +1 -0
- package/dist/components/tiptap/variablePickerUtils.js +63 -0
- package/dist/components/tiptap/variablePickerUtils.js.map +1 -0
- package/dist/components/tiptap/variableSerialization.d.ts +49 -0
- package/dist/components/tiptap/variableSerialization.d.ts.map +1 -0
- package/dist/components/tiptap/variableSerialization.js +250 -0
- package/dist/components/tiptap/variableSerialization.js.map +1 -0
- package/dist/css/core.css +288 -0
- package/dist/css/style.css +295 -0
- package/dist/forms/Field.d.ts +37 -0
- package/dist/forms/Field.d.ts.map +1 -0
- package/dist/forms/Field.js +159 -0
- package/dist/forms/Field.js.map +1 -0
- package/dist/forms/SchemaFormEngine.d.ts +23 -0
- package/dist/forms/SchemaFormEngine.d.ts.map +1 -0
- package/dist/forms/SchemaFormEngine.js +444 -0
- package/dist/forms/SchemaFormEngine.js.map +1 -0
- package/dist/forms/components/FieldWrap.d.ts +11 -0
- package/dist/forms/components/FieldWrap.d.ts.map +1 -0
- package/dist/forms/components/FieldWrap.js +84 -0
- package/dist/forms/components/FieldWrap.js.map +1 -0
- package/dist/forms/components/ModalTabs.d.ts +21 -0
- package/dist/forms/components/ModalTabs.d.ts.map +1 -0
- package/dist/forms/components/ModalTabs.js +84 -0
- package/dist/forms/components/ModalTabs.js.map +1 -0
- package/dist/forms/components/index.d.ts +3 -0
- package/dist/forms/components/index.d.ts.map +1 -0
- package/dist/forms/components/index.js +3 -0
- package/dist/forms/contexts/VariableCategoriesContext.d.ts +17 -0
- package/dist/forms/contexts/VariableCategoriesContext.d.ts.map +1 -0
- package/dist/forms/contexts/VariableCategoriesContext.js +18 -0
- package/dist/forms/contexts/VariableCategoriesContext.js.map +1 -0
- package/dist/forms/engine/FormStateStore.d.ts +24 -0
- package/dist/forms/engine/FormStateStore.d.ts.map +1 -0
- package/dist/forms/engine/FormStateStore.js +97 -0
- package/dist/forms/engine/FormStateStore.js.map +1 -0
- package/dist/forms/engine/SchemaIndex.d.ts +33 -0
- package/dist/forms/engine/SchemaIndex.d.ts.map +1 -0
- package/dist/forms/engine/SchemaIndex.js +21 -0
- package/dist/forms/engine/SchemaIndex.js.map +1 -0
- package/dist/forms/engine/ValidationEngine.d.ts +13 -0
- package/dist/forms/engine/ValidationEngine.d.ts.map +1 -0
- package/dist/forms/engine/ValidationEngine.js +155 -0
- package/dist/forms/engine/ValidationEngine.js.map +1 -0
- package/dist/forms/engine/buildGroupedMessage.d.ts +2 -0
- package/dist/forms/engine/buildGroupedMessage.d.ts.map +1 -0
- package/dist/forms/engine/buildGroupedMessage.js +20 -0
- package/dist/forms/engine/buildGroupedMessage.js.map +1 -0
- package/dist/forms/engine/context.d.ts +60 -0
- package/dist/forms/engine/context.d.ts.map +1 -0
- package/dist/forms/engine/context.js +12 -0
- package/dist/forms/engine/context.js.map +1 -0
- package/dist/forms/engine/rules/email.d.ts +2 -0
- package/dist/forms/engine/rules/email.d.ts.map +1 -0
- package/dist/forms/engine/rules/email.js +11 -0
- package/dist/forms/engine/rules/email.js.map +1 -0
- package/dist/forms/engine/rules/emailOrVariable.d.ts +2 -0
- package/dist/forms/engine/rules/emailOrVariable.d.ts.map +1 -0
- package/dist/forms/engine/rules/emailOrVariable.js +13 -0
- package/dist/forms/engine/rules/emailOrVariable.js.map +1 -0
- package/dist/forms/engine/rules/handle.d.ts +2 -0
- package/dist/forms/engine/rules/handle.d.ts.map +1 -0
- package/dist/forms/engine/rules/handle.js +12 -0
- package/dist/forms/engine/rules/handle.js.map +1 -0
- package/dist/forms/engine/rules/index.d.ts +9 -0
- package/dist/forms/engine/rules/index.d.ts.map +1 -0
- package/dist/forms/engine/rules/index.js +35 -0
- package/dist/forms/engine/rules/index.js.map +1 -0
- package/dist/forms/engine/rules/max.d.ts +2 -0
- package/dist/forms/engine/rules/max.d.ts.map +1 -0
- package/dist/forms/engine/rules/max.js +16 -0
- package/dist/forms/engine/rules/max.js.map +1 -0
- package/dist/forms/engine/rules/min.d.ts +2 -0
- package/dist/forms/engine/rules/min.d.ts.map +1 -0
- package/dist/forms/engine/rules/min.js +16 -0
- package/dist/forms/engine/rules/min.js.map +1 -0
- package/dist/forms/engine/rules/required.d.ts +2 -0
- package/dist/forms/engine/rules/required.d.ts.map +1 -0
- package/dist/forms/engine/rules/required.js +11 -0
- package/dist/forms/engine/rules/required.js.map +1 -0
- package/dist/forms/engine/rules/uniqueHandle.d.ts +9 -0
- package/dist/forms/engine/rules/uniqueHandle.d.ts.map +1 -0
- package/dist/forms/engine/rules/uniqueHandle.js +95 -0
- package/dist/forms/engine/rules/uniqueHandle.js.map +1 -0
- package/dist/forms/engine/rules/utils.d.ts +3 -0
- package/dist/forms/engine/rules/utils.d.ts.map +1 -0
- package/dist/forms/engine/rules/utils.js +21 -0
- package/dist/forms/engine/rules/utils.js.map +1 -0
- package/dist/forms/fields/CalculationsField.d.ts +24 -0
- package/dist/forms/fields/CalculationsField.d.ts.map +1 -0
- package/dist/forms/fields/CalculationsField.js +215 -0
- package/dist/forms/fields/CalculationsField.js.map +1 -0
- package/dist/forms/fields/CalculationsToolbar.d.ts +17 -0
- package/dist/forms/fields/CalculationsToolbar.d.ts.map +1 -0
- package/dist/forms/fields/CalculationsToolbar.js +130 -0
- package/dist/forms/fields/CalculationsToolbar.js.map +1 -0
- package/dist/forms/fields/CheckboxSelectField.d.ts +19 -0
- package/dist/forms/fields/CheckboxSelectField.d.ts.map +1 -0
- package/dist/forms/fields/CheckboxSelectField.js +30 -0
- package/dist/forms/fields/CheckboxSelectField.js.map +1 -0
- package/dist/forms/fields/ColorField.d.ts +15 -0
- package/dist/forms/fields/ColorField.d.ts.map +1 -0
- package/dist/forms/fields/ColorField.js +30 -0
- package/dist/forms/fields/ColorField.js.map +1 -0
- package/dist/forms/fields/ComboboxField.d.ts +23 -0
- package/dist/forms/fields/ComboboxField.d.ts.map +1 -0
- package/dist/forms/fields/ComboboxField.js +38 -0
- package/dist/forms/fields/ComboboxField.js.map +1 -0
- package/dist/forms/fields/DateTimeField.d.ts +14 -0
- package/dist/forms/fields/DateTimeField.d.ts.map +1 -0
- package/dist/forms/fields/DateTimeField.js +53 -0
- package/dist/forms/fields/DateTimeField.js.map +1 -0
- package/dist/forms/fields/EditableTableField.d.ts +22 -0
- package/dist/forms/fields/EditableTableField.d.ts.map +1 -0
- package/dist/forms/fields/EditableTableField.js +37 -0
- package/dist/forms/fields/EditableTableField.js.map +1 -0
- package/dist/forms/fields/ElementSelectField.d.ts +20 -0
- package/dist/forms/fields/ElementSelectField.d.ts.map +1 -0
- package/dist/forms/fields/ElementSelectField.js +215 -0
- package/dist/forms/fields/ElementSelectField.js.map +1 -0
- package/dist/forms/fields/GroupField.d.ts +19 -0
- package/dist/forms/fields/GroupField.d.ts.map +1 -0
- package/dist/forms/fields/GroupField.js +50 -0
- package/dist/forms/fields/GroupField.js.map +1 -0
- package/dist/forms/fields/HandleField.d.ts +20 -0
- package/dist/forms/fields/HandleField.d.ts.map +1 -0
- package/dist/forms/fields/HandleField.js +70 -0
- package/dist/forms/fields/HandleField.js.map +1 -0
- package/dist/forms/fields/LightswitchField.d.ts +14 -0
- package/dist/forms/fields/LightswitchField.d.ts.map +1 -0
- package/dist/forms/fields/LightswitchField.js +29 -0
- package/dist/forms/fields/LightswitchField.js.map +1 -0
- package/dist/forms/fields/ListField.d.ts +17 -0
- package/dist/forms/fields/ListField.d.ts.map +1 -0
- package/dist/forms/fields/ListField.js +51 -0
- package/dist/forms/fields/ListField.js.map +1 -0
- package/dist/forms/fields/NumberField.d.ts +17 -0
- package/dist/forms/fields/NumberField.d.ts.map +1 -0
- package/dist/forms/fields/NumberField.js +33 -0
- package/dist/forms/fields/NumberField.js.map +1 -0
- package/dist/forms/fields/RadioGroupField.d.ts +25 -0
- package/dist/forms/fields/RadioGroupField.d.ts.map +1 -0
- package/dist/forms/fields/RadioGroupField.js +102 -0
- package/dist/forms/fields/RadioGroupField.js.map +1 -0
- package/dist/forms/fields/RichTextField.d.ts +23 -0
- package/dist/forms/fields/RichTextField.d.ts.map +1 -0
- package/dist/forms/fields/RichTextField.js +50 -0
- package/dist/forms/fields/RichTextField.js.map +1 -0
- package/dist/forms/fields/SelectField.d.ts +25 -0
- package/dist/forms/fields/SelectField.d.ts.map +1 -0
- package/dist/forms/fields/SelectField.js +73 -0
- package/dist/forms/fields/SelectField.js.map +1 -0
- package/dist/forms/fields/StaticTableField.d.ts +34 -0
- package/dist/forms/fields/StaticTableField.d.ts.map +1 -0
- package/dist/forms/fields/StaticTableField.js +128 -0
- package/dist/forms/fields/StaticTableField.js.map +1 -0
- package/dist/forms/fields/TextField.d.ts +16 -0
- package/dist/forms/fields/TextField.d.ts.map +1 -0
- package/dist/forms/fields/TextField.js +31 -0
- package/dist/forms/fields/TextField.js.map +1 -0
- package/dist/forms/fields/TextareaField.d.ts +17 -0
- package/dist/forms/fields/TextareaField.d.ts.map +1 -0
- package/dist/forms/fields/TextareaField.js +32 -0
- package/dist/forms/fields/TextareaField.js.map +1 -0
- package/dist/forms/fields/VariablePickerField.d.ts +21 -0
- package/dist/forms/fields/VariablePickerField.d.ts.map +1 -0
- package/dist/forms/fields/VariablePickerField.js +49 -0
- package/dist/forms/fields/VariablePickerField.js.map +1 -0
- package/dist/forms/index.d.ts +8 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +10 -0
- package/dist/forms/registry.d.ts +8 -0
- package/dist/forms/registry.d.ts.map +1 -0
- package/dist/forms/registry.js +76 -0
- package/dist/forms/registry.js.map +1 -0
- package/dist/forms/store/element-store.d.ts +11 -0
- package/dist/forms/store/element-store.d.ts.map +1 -0
- package/dist/forms/store/element-store.js +41 -0
- package/dist/forms/store/element-store.js.map +1 -0
- package/dist/forms/useEditableTableFieldBinding.d.ts +13 -0
- package/dist/forms/useEditableTableFieldBinding.d.ts.map +1 -0
- package/dist/forms/useEditableTableFieldBinding.js +91 -0
- package/dist/forms/useEditableTableFieldBinding.js.map +1 -0
- package/dist/forms/useEngineField.d.ts +9 -0
- package/dist/forms/useEngineField.d.ts.map +1 -0
- package/dist/forms/useEngineField.js +32 -0
- package/dist/forms/useEngineField.js.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts +14 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/hooks/useKeyboardShortcuts.js +67 -0
- package/dist/hooks/useKeyboardShortcuts.js.map +1 -0
- package/dist/hooks/useTranslation.d.ts +3 -0
- package/dist/hooks/useTranslation.d.ts.map +1 -0
- package/dist/hooks/useTranslation.js +12 -0
- package/dist/hooks/useTranslation.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +15 -0
- package/dist/node_modules/@babel/runtime/helpers/arrayLikeToArray.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +15 -0
- package/dist/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/classCallCheck.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/classCallCheck.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/createClass.js +21 -0
- package/dist/node_modules/@babel/runtime/helpers/createClass.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.js +20 -0
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/iterableToArray.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/iterableToArray.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/nonIterableSpread.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/nonIterableSpread.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/toConsumableArray.js +21 -0
- package/dist/node_modules/@babel/runtime/helpers/toConsumableArray.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.js +22 -0
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.js +18 -0
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/typeof.js +18 -0
- package/dist/node_modules/@babel/runtime/helpers/typeof.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +19 -0
- package/dist/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js.map +1 -0
- package/dist/node_modules/jexl/dist/Expression.js +84 -0
- package/dist/node_modules/jexl/dist/Expression.js.map +1 -0
- package/dist/node_modules/jexl/dist/Jexl.js +165 -0
- package/dist/node_modules/jexl/dist/Jexl.js.map +1 -0
- package/dist/node_modules/jexl/dist/Lexer.js +152 -0
- package/dist/node_modules/jexl/dist/Lexer.js.map +1 -0
- package/dist/node_modules/jexl/dist/PromiseSync.js +87 -0
- package/dist/node_modules/jexl/dist/PromiseSync.js.map +1 -0
- package/dist/node_modules/jexl/dist/evaluator/Evaluator.js +98 -0
- package/dist/node_modules/jexl/dist/evaluator/Evaluator.js.map +1 -0
- package/dist/node_modules/jexl/dist/evaluator/handlers.js +162 -0
- package/dist/node_modules/jexl/dist/evaluator/handlers.js.map +1 -0
- package/dist/node_modules/jexl/dist/grammar.js +195 -0
- package/dist/node_modules/jexl/dist/grammar.js.map +1 -0
- package/dist/node_modules/jexl/dist/parser/Parser.js +135 -0
- package/dist/node_modules/jexl/dist/parser/Parser.js.map +1 -0
- package/dist/node_modules/jexl/dist/parser/handlers.js +205 -0
- package/dist/node_modules/jexl/dist/parser/handlers.js.map +1 -0
- package/dist/node_modules/jexl/dist/parser/states.js +158 -0
- package/dist/node_modules/jexl/dist/parser/states.js.map +1 -0
- package/dist/types/global.d.d.ts +1 -0
- package/dist/types/global.d.js +0 -0
- package/dist/utils/classes.d.ts +18 -0
- package/dist/utils/classes.d.ts.map +1 -0
- package/dist/utils/classes.js +25 -0
- package/dist/utils/classes.js.map +1 -0
- package/dist/utils/config.d.ts +14 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/config.js +16 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/craftHostBridge.d.ts +16 -0
- package/dist/utils/craftHostBridge.d.ts.map +1 -0
- package/dist/utils/craftHostBridge.js +28 -0
- package/dist/utils/craftHostBridge.js.map +1 -0
- package/dist/utils/handle.d.ts +10 -0
- package/dist/utils/handle.d.ts.map +1 -0
- package/dist/utils/handle.js +51 -0
- package/dist/utils/handle.js.map +1 -0
- package/dist/utils/hostBridge.d.ts +40 -0
- package/dist/utils/hostBridge.d.ts.map +1 -0
- package/dist/utils/hostBridge.js +35 -0
- package/dist/utils/hostBridge.js.map +1 -0
- package/dist/utils/index.d.ts +18 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +66 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/portal.d.ts +17 -0
- package/dist/utils/portal.d.ts.map +1 -0
- package/dist/utils/portal.js +51 -0
- package/dist/utils/portal.js.map +1 -0
- package/dist/utils/schema.d.ts +17 -0
- package/dist/utils/schema.d.ts.map +1 -0
- package/dist/utils/schema.js +56 -0
- package/dist/utils/schema.js.map +1 -0
- package/dist/utils/schemaFieldNames.d.ts +2 -0
- package/dist/utils/schemaFieldNames.d.ts.map +1 -0
- package/dist/utils/schemaFieldNames.js +16 -0
- package/dist/utils/schemaFieldNames.js.map +1 -0
- package/dist/utils/schemaIndex.d.ts +6 -0
- package/dist/utils/schemaIndex.d.ts.map +1 -0
- package/dist/utils/schemaIndex.js +31 -0
- package/dist/utils/schemaIndex.js.map +1 -0
- package/dist/utils/schemaIndexCache.d.ts +6 -0
- package/dist/utils/schemaIndexCache.d.ts.map +1 -0
- package/dist/utils/schemaIndexCache.js +32 -0
- package/dist/utils/schemaIndexCache.js.map +1 -0
- package/dist/utils/schemaNormalize.d.ts +13 -0
- package/dist/utils/schemaNormalize.d.ts.map +1 -0
- package/dist/utils/schemaNormalize.js +17 -0
- package/dist/utils/schemaNormalize.js.map +1 -0
- package/dist/utils/store.d.ts +7 -0
- package/dist/utils/store.d.ts.map +1 -0
- package/dist/utils/store.js +6 -0
- package/dist/utils/store.js.map +1 -0
- package/dist/utils/timeOptions.d.ts +6 -0
- package/dist/utils/timeOptions.d.ts.map +1 -0
- package/dist/utils/timeOptions.js +42 -0
- package/dist/utils/timeOptions.js.map +1 -0
- package/dist/utils/tiptap.d.ts +13 -0
- package/dist/utils/tiptap.d.ts.map +1 -0
- package/dist/utils/tiptap.js +39 -0
- package/dist/utils/tiptap.js.map +1 -0
- package/dist/utils/translation.d.ts +5 -0
- package/dist/utils/translation.d.ts.map +1 -0
- package/dist/utils/translation.js +21 -0
- package/dist/utils/translation.js.map +1 -0
- package/dist/utils/validation.d.ts +4 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +253 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +167 -0
- package/vite-dev.mjs +56 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { useEngineField } from "./useEngineField.js";
|
|
2
|
+
import { useCallback, useEffect, useRef, useSyncExternalStore } from "react";
|
|
3
|
+
//#region src/forms/useEditableTableFieldBinding.ts
|
|
4
|
+
var useEditableTableFieldBinding = (form, fieldName) => {
|
|
5
|
+
const { value, setValue } = useEngineField(form, fieldName);
|
|
6
|
+
const rows = Array.isArray(value) ? value : [];
|
|
7
|
+
const fieldPrefix = `${fieldName}.`;
|
|
8
|
+
const cellErrorsCacheRef = useRef({
|
|
9
|
+
snapshot: {},
|
|
10
|
+
deps: ""
|
|
11
|
+
});
|
|
12
|
+
const errorsCacheRef = useRef({
|
|
13
|
+
snapshot: [],
|
|
14
|
+
deps: ""
|
|
15
|
+
});
|
|
16
|
+
const cellErrors = useSyncExternalStore(form?.store?.subscribe?.bind(form.store) ?? (() => {
|
|
17
|
+
return () => {};
|
|
18
|
+
}), () => {
|
|
19
|
+
const errorMap = form?.getErrorMapFields?.() || {};
|
|
20
|
+
const entries = Object.entries(errorMap).filter(([key]) => {
|
|
21
|
+
return key.startsWith(fieldPrefix);
|
|
22
|
+
});
|
|
23
|
+
const deps = entries.map(([k, v]) => {
|
|
24
|
+
return `${k}:${JSON.stringify(v)}`;
|
|
25
|
+
}).join("|");
|
|
26
|
+
if (cellErrorsCacheRef.current.deps === deps) return cellErrorsCacheRef.current.snapshot;
|
|
27
|
+
const snapshot = Object.fromEntries(entries);
|
|
28
|
+
cellErrorsCacheRef.current = {
|
|
29
|
+
snapshot,
|
|
30
|
+
deps
|
|
31
|
+
};
|
|
32
|
+
return snapshot;
|
|
33
|
+
}, () => {
|
|
34
|
+
return {};
|
|
35
|
+
});
|
|
36
|
+
const rawErrors = useSyncExternalStore(form?.store?.subscribe?.bind(form.store) ?? (() => {
|
|
37
|
+
return () => {};
|
|
38
|
+
}), () => {
|
|
39
|
+
const next = form?.getGroupedErrorsForPath?.(fieldName) ?? form?.getErrorMapFields?.()[fieldName] ?? [];
|
|
40
|
+
const arr = Array.isArray(next) ? next : [];
|
|
41
|
+
const deps = JSON.stringify(arr);
|
|
42
|
+
if (errorsCacheRef.current.deps === deps) return errorsCacheRef.current.snapshot;
|
|
43
|
+
errorsCacheRef.current = {
|
|
44
|
+
snapshot: arr,
|
|
45
|
+
deps
|
|
46
|
+
};
|
|
47
|
+
return errorsCacheRef.current.snapshot;
|
|
48
|
+
}, () => {
|
|
49
|
+
return [];
|
|
50
|
+
});
|
|
51
|
+
const errors = Array.isArray(rawErrors) ? rawErrors : [];
|
|
52
|
+
const pendingCellUpdatesRef = useRef(/* @__PURE__ */ new Map());
|
|
53
|
+
const rafIdRef = useRef(null);
|
|
54
|
+
const flushPendingCellUpdates = useCallback(() => {
|
|
55
|
+
rafIdRef.current = null;
|
|
56
|
+
if (pendingCellUpdatesRef.current.size === 0) return;
|
|
57
|
+
const updates = Array.from(pendingCellUpdatesRef.current.entries());
|
|
58
|
+
pendingCellUpdatesRef.current.clear();
|
|
59
|
+
const errorMap = form?.getErrorMapFields?.() || {};
|
|
60
|
+
updates.forEach(([path, nextValue]) => {
|
|
61
|
+
form.setFieldValue(path, nextValue);
|
|
62
|
+
if (errorMap[path]) form.recomputeGroupedErrorsForPath?.(path);
|
|
63
|
+
});
|
|
64
|
+
}, [form]);
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
return () => {
|
|
67
|
+
if (rafIdRef.current !== null && typeof cancelAnimationFrame === "function") cancelAnimationFrame(rafIdRef.current);
|
|
68
|
+
flushPendingCellUpdates();
|
|
69
|
+
};
|
|
70
|
+
}, [flushPendingCellUpdates]);
|
|
71
|
+
return {
|
|
72
|
+
rows,
|
|
73
|
+
setRows: setValue,
|
|
74
|
+
errors,
|
|
75
|
+
cellErrors,
|
|
76
|
+
handleCellChange: useCallback((rowIndex, columnName, nextValue) => {
|
|
77
|
+
const path = `${fieldName}.${rowIndex}.${columnName}`;
|
|
78
|
+
pendingCellUpdatesRef.current.set(path, nextValue);
|
|
79
|
+
if (rafIdRef.current !== null) return;
|
|
80
|
+
if (typeof requestAnimationFrame === "function") {
|
|
81
|
+
rafIdRef.current = requestAnimationFrame(flushPendingCellUpdates);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
flushPendingCellUpdates();
|
|
85
|
+
}, [fieldName, flushPendingCellUpdates])
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
export { useEditableTableFieldBinding };
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=useEditableTableFieldBinding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEditableTableFieldBinding.js","names":[],"sources":["../../src/forms/useEditableTableFieldBinding.ts"],"sourcesContent":["import {\n useCallback, useEffect, useRef, useSyncExternalStore,\n} from 'react';\nimport type { SchemaFormEngineApi } from './engine/context';\nimport { useEngineField } from './useEngineField';\n\ntype EditableTableBindingForm = SchemaFormEngineApi & {\n recomputeGroupedErrorsForPath?: (path: string) => void;\n};\n\nexport const useEditableTableFieldBinding = (form: EditableTableBindingForm, fieldName: string) => {\n const { value, setValue } = useEngineField(form, fieldName);\n const rows = Array.isArray(value) ? value : [];\n\n const fieldPrefix = `${fieldName}.`;\n const cellErrorsCacheRef = useRef<{ snapshot: Record<string, unknown>; deps: string }>({ snapshot: {}, deps: '' });\n const errorsCacheRef = useRef<{ snapshot: string[]; deps: string }>({ snapshot: [], deps: '' });\n\n const cellErrors = useSyncExternalStore(\n form?.store?.subscribe?.bind(form.store) ?? (() => { return () => {}; }),\n () => {\n const errorMap = form?.getErrorMapFields?.() || {};\n const entries = Object.entries(errorMap).filter(([key]) => { return key.startsWith(fieldPrefix); });\n const deps = entries.map(([k, v]) => { return `${k}:${JSON.stringify(v)}`; }).join('|');\n\n if (cellErrorsCacheRef.current.deps === deps) {\n return cellErrorsCacheRef.current.snapshot;\n }\n\n const snapshot = Object.fromEntries(entries);\n cellErrorsCacheRef.current = { snapshot, deps };\n return snapshot;\n },\n () => { return {}; },\n );\n\n const rawErrors = useSyncExternalStore(\n form?.store?.subscribe?.bind(form.store) ?? (() => { return () => {}; }),\n () => {\n const next =\n form?.getGroupedErrorsForPath?.(fieldName)\n ?? form?.getErrorMapFields?.()[fieldName]\n ?? [];\n const arr = Array.isArray(next) ? next : [];\n const deps = JSON.stringify(arr);\n\n if (errorsCacheRef.current.deps === deps) {\n return errorsCacheRef.current.snapshot;\n }\n\n errorsCacheRef.current = { snapshot: arr, deps };\n return errorsCacheRef.current.snapshot;\n },\n () => { return []; },\n );\n const errors = Array.isArray(rawErrors) ? rawErrors : [];\n\n const pendingCellUpdatesRef = useRef<Map<string, unknown>>(new Map());\n const rafIdRef = useRef<number | null>(null);\n\n const flushPendingCellUpdates = useCallback(() => {\n rafIdRef.current = null;\n\n if (pendingCellUpdatesRef.current.size === 0) {\n return;\n }\n\n const updates = Array.from(pendingCellUpdatesRef.current.entries());\n pendingCellUpdatesRef.current.clear();\n const errorMap = form?.getErrorMapFields?.() || {};\n\n updates.forEach(([path, nextValue]) => {\n form.setFieldValue(path, nextValue);\n\n // Recomputing grouped errors on every keystroke is expensive for large tables.\n // Only recompute if this cell currently has an error entry.\n if (errorMap[path]) {\n form.recomputeGroupedErrorsForPath?.(path);\n }\n });\n }, [form]);\n\n useEffect(() => {\n return () => {\n if (rafIdRef.current !== null && typeof cancelAnimationFrame === 'function') {\n cancelAnimationFrame(rafIdRef.current);\n }\n\n flushPendingCellUpdates();\n };\n }, [flushPendingCellUpdates]);\n\n const handleCellChange = useCallback((rowIndex: number, columnName: string, nextValue: unknown) => {\n const path = `${fieldName}.${rowIndex}.${columnName}`;\n pendingCellUpdatesRef.current.set(path, nextValue);\n\n if (rafIdRef.current !== null) {\n return;\n }\n\n if (typeof requestAnimationFrame === 'function') {\n rafIdRef.current = requestAnimationFrame(flushPendingCellUpdates);\n return;\n }\n\n // Fallback for non-browser test or non-browser environments.\n flushPendingCellUpdates();\n }, [fieldName, flushPendingCellUpdates]);\n\n return {\n rows,\n setRows: setValue,\n errors,\n cellErrors,\n handleCellChange,\n };\n};\n"],"mappings":";;;AAUA,IAAa,gCAAgC,MAAgC,cAAsB;CAC/F,MAAM,EAAE,OAAO,aAAa,eAAe,MAAM,UAAU;CAC3D,MAAM,OAAO,MAAM,QAAQ,MAAM,GAAG,QAAQ,EAAE;CAE9C,MAAM,cAAc,GAAG,UAAU;CACjC,MAAM,qBAAqB,OAA4D;EAAE,UAAU,EAAE;EAAE,MAAM;EAAI,CAAC;CAClH,MAAM,iBAAiB,OAA6C;EAAE,UAAU,EAAE;EAAE,MAAM;EAAI,CAAC;CAE/F,MAAM,aAAa,qBACf,MAAM,OAAO,WAAW,KAAK,KAAK,MAAM,WAAW;AAAE,eAAa;WAC5D;EACF,MAAM,WAAW,MAAM,qBAAqB,IAAI,EAAE;EAClD,MAAM,UAAU,OAAO,QAAQ,SAAS,CAAC,QAAQ,CAAC,SAAS;AAAE,UAAO,IAAI,WAAW,YAAY;IAAI;EACnG,MAAM,OAAO,QAAQ,KAAK,CAAC,GAAG,OAAO;AAAE,UAAO,GAAG,EAAE,GAAG,KAAK,UAAU,EAAE;IAAM,CAAC,KAAK,IAAI;AAEvF,MAAI,mBAAmB,QAAQ,SAAS,KACpC,QAAO,mBAAmB,QAAQ;EAGtC,MAAM,WAAW,OAAO,YAAY,QAAQ;AAC5C,qBAAmB,UAAU;GAAE;GAAU;GAAM;AAC/C,SAAO;UAEL;AAAE,SAAO,EAAE;GACpB;CAED,MAAM,YAAY,qBACd,MAAM,OAAO,WAAW,KAAK,KAAK,MAAM,WAAW;AAAE,eAAa;WAC5D;EACF,MAAM,OACF,MAAM,0BAA0B,UAAU,IACnC,MAAM,qBAAqB,CAAC,cAC5B,EAAE;EACb,MAAM,MAAM,MAAM,QAAQ,KAAK,GAAG,OAAO,EAAE;EAC3C,MAAM,OAAO,KAAK,UAAU,IAAI;AAEhC,MAAI,eAAe,QAAQ,SAAS,KAChC,QAAO,eAAe,QAAQ;AAGlC,iBAAe,UAAU;GAAE,UAAU;GAAK;GAAM;AAChD,SAAO,eAAe,QAAQ;UAE5B;AAAE,SAAO,EAAE;GACpB;CACD,MAAM,SAAS,MAAM,QAAQ,UAAU,GAAG,YAAY,EAAE;CAExD,MAAM,wBAAwB,uBAA6B,IAAI,KAAK,CAAC;CACrE,MAAM,WAAW,OAAsB,KAAK;CAE5C,MAAM,0BAA0B,kBAAkB;AAC9C,WAAS,UAAU;AAEnB,MAAI,sBAAsB,QAAQ,SAAS,EACvC;EAGJ,MAAM,UAAU,MAAM,KAAK,sBAAsB,QAAQ,SAAS,CAAC;AACnE,wBAAsB,QAAQ,OAAO;EACrC,MAAM,WAAW,MAAM,qBAAqB,IAAI,EAAE;AAElD,UAAQ,SAAS,CAAC,MAAM,eAAe;AACnC,QAAK,cAAc,MAAM,UAAU;AAInC,OAAI,SAAS,MACT,MAAK,gCAAgC,KAAK;IAEhD;IACH,CAAC,KAAK,CAAC;AAEV,iBAAgB;AACZ,eAAa;AACT,OAAI,SAAS,YAAY,QAAQ,OAAO,yBAAyB,WAC7D,sBAAqB,SAAS,QAAQ;AAG1C,4BAAyB;;IAE9B,CAAC,wBAAwB,CAAC;AAmB7B,QAAO;EACH;EACA,SAAS;EACT;EACA;EACA,kBAtBqB,aAAa,UAAkB,YAAoB,cAAuB;GAC/F,MAAM,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG;AACzC,yBAAsB,QAAQ,IAAI,MAAM,UAAU;AAElD,OAAI,SAAS,YAAY,KACrB;AAGJ,OAAI,OAAO,0BAA0B,YAAY;AAC7C,aAAS,UAAU,sBAAsB,wBAAwB;AACjE;;AAIJ,4BAAyB;KAC1B,CAAC,WAAW,wBAAwB,CAOnC;EACH"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SchemaFormEngineApi } from './engine/context';
|
|
2
|
+
export declare const useEngineField: (form: SchemaFormEngineApi, name: string) => {
|
|
3
|
+
value: unknown;
|
|
4
|
+
errors: string[];
|
|
5
|
+
isInvalid: boolean;
|
|
6
|
+
setValue: (nextValue: unknown) => void;
|
|
7
|
+
setTouched: () => void;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=useEngineField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEngineField.d.ts","sourceRoot":"","sources":["../../src/forms/useEngineField.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAI5D,eAAO,MAAM,cAAc,GAAI,MAAM,mBAAmB,EAAE,MAAM,MAAM;;;;0BAYrC,OAAO;;CAevC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useSyncExternalStore } from "react";
|
|
2
|
+
//#region src/forms/useEngineField.ts
|
|
3
|
+
var EMPTY_ERRORS = [];
|
|
4
|
+
var useEngineField = (form, name) => {
|
|
5
|
+
const value = useSyncExternalStore(form.store.subscribe.bind(form.store), () => {
|
|
6
|
+
return form.getFieldValue(name);
|
|
7
|
+
}, () => {
|
|
8
|
+
return form.getFieldValue(name);
|
|
9
|
+
});
|
|
10
|
+
const errors = useSyncExternalStore(form.store.subscribe.bind(form.store), () => {
|
|
11
|
+
return form.getErrorMapFields()[name] || EMPTY_ERRORS;
|
|
12
|
+
}, () => {
|
|
13
|
+
return form.getErrorMapFields()[name] || EMPTY_ERRORS;
|
|
14
|
+
});
|
|
15
|
+
const setValue = (nextValue) => {
|
|
16
|
+
form.setFieldValue(name, nextValue);
|
|
17
|
+
};
|
|
18
|
+
const setTouched = () => {
|
|
19
|
+
form.store.setTouched(name, true);
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
value,
|
|
23
|
+
errors,
|
|
24
|
+
isInvalid: errors.length > 0,
|
|
25
|
+
setValue,
|
|
26
|
+
setTouched
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { useEngineField };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=useEngineField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEngineField.js","names":[],"sources":["../../src/forms/useEngineField.ts"],"sourcesContent":["import { useSyncExternalStore } from 'react';\nimport type { SchemaFormEngineApi } from './engine/context';\n\nconst EMPTY_ERRORS: string[] = [];\n\nexport const useEngineField = (form: SchemaFormEngineApi, name: string) => {\n const value = useSyncExternalStore(\n form.store.subscribe.bind(form.store),\n () => { return form.getFieldValue(name); },\n () => { return form.getFieldValue(name); },\n );\n const errors = useSyncExternalStore(\n form.store.subscribe.bind(form.store),\n () => { return form.getErrorMapFields()[name] || EMPTY_ERRORS; },\n () => { return form.getErrorMapFields()[name] || EMPTY_ERRORS; },\n );\n\n const setValue = (nextValue: unknown) => {\n form.setFieldValue(name, nextValue);\n };\n\n const setTouched = () => {\n form.store.setTouched(name, true);\n };\n\n return {\n value,\n errors,\n isInvalid: errors.length > 0,\n setValue,\n setTouched,\n };\n};\n"],"mappings":";;AAGA,IAAM,eAAyB,EAAE;AAEjC,IAAa,kBAAkB,MAA2B,SAAiB;CACvE,MAAM,QAAQ,qBACV,KAAK,MAAM,UAAU,KAAK,KAAK,MAAM,QAC/B;AAAE,SAAO,KAAK,cAAc,KAAK;UACjC;AAAE,SAAO,KAAK,cAAc,KAAK;GAC1C;CACD,MAAM,SAAS,qBACX,KAAK,MAAM,UAAU,KAAK,KAAK,MAAM,QAC/B;AAAE,SAAO,KAAK,mBAAmB,CAAC,SAAS;UAC3C;AAAE,SAAO,KAAK,mBAAmB,CAAC,SAAS;GACpD;CAED,MAAM,YAAY,cAAuB;AACrC,OAAK,cAAc,MAAM,UAAU;;CAGvC,MAAM,mBAAmB;AACrB,OAAK,MAAM,WAAW,MAAM,KAAK;;AAGrC,QAAO;EACH;EACA;EACA,WAAW,OAAO,SAAS;EAC3B;EACA;EACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface KeyboardShortcutsConfig {
|
|
2
|
+
onSave?: () => void;
|
|
3
|
+
onCut?: () => void;
|
|
4
|
+
onCopy?: () => void;
|
|
5
|
+
onPaste?: () => void;
|
|
6
|
+
onUndo?: () => void;
|
|
7
|
+
onRedo?: () => void;
|
|
8
|
+
onSelectAll?: () => void;
|
|
9
|
+
onEscape?: () => void;
|
|
10
|
+
onEnter?: () => void;
|
|
11
|
+
onDelete?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const useKeyboardShortcuts: ({ onSave, onCut, onCopy, onPaste, onUndo, onRedo, onSelectAll, onEscape, onEnter, onDelete, }?: KeyboardShortcutsConfig) => void;
|
|
14
|
+
//# sourceMappingURL=useKeyboardShortcuts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKeyboardShortcuts.d.ts","sourceRoot":"","sources":["../../src/hooks/useKeyboardShortcuts.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACpC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,oBAAoB,GAAI,gGAWlC,uBAA4B,SAqG9B,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
//#region src/hooks/useKeyboardShortcuts.ts
|
|
3
|
+
var useKeyboardShortcuts = ({ onSave, onCut, onCopy, onPaste, onUndo, onRedo, onSelectAll, onEscape, onEnter, onDelete } = {}) => {
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
const isInputElement = (element) => {
|
|
6
|
+
if (!element) return false;
|
|
7
|
+
const tagName = element.tagName?.toLowerCase();
|
|
8
|
+
const isInput = tagName === "input" || tagName === "textarea";
|
|
9
|
+
const isContentEditable = element.contentEditable === "true";
|
|
10
|
+
return isInput || isContentEditable;
|
|
11
|
+
};
|
|
12
|
+
const handleKeyDown = (event) => {
|
|
13
|
+
if ((event.metaKey || event.ctrlKey) && event.key === "s") {
|
|
14
|
+
event.preventDefault();
|
|
15
|
+
if (onSave) onSave();
|
|
16
|
+
}
|
|
17
|
+
if ((event.metaKey || event.ctrlKey) && event.key === "x") {
|
|
18
|
+
if (onCut) onCut();
|
|
19
|
+
}
|
|
20
|
+
if ((event.metaKey || event.ctrlKey) && event.key === "c") {
|
|
21
|
+
if (onCopy) onCopy();
|
|
22
|
+
}
|
|
23
|
+
if ((event.metaKey || event.ctrlKey) && event.key === "v") {
|
|
24
|
+
if (onPaste) onPaste();
|
|
25
|
+
}
|
|
26
|
+
if ((event.metaKey || event.ctrlKey) && event.key === "z" && !event.shiftKey) {
|
|
27
|
+
event.preventDefault();
|
|
28
|
+
if (onUndo) onUndo();
|
|
29
|
+
}
|
|
30
|
+
if ((event.metaKey && event.shiftKey || event.ctrlKey) && (event.key === "z" || event.key === "y")) {
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
if (onRedo) onRedo();
|
|
33
|
+
}
|
|
34
|
+
if ((event.metaKey || event.ctrlKey) && event.key === "a") {
|
|
35
|
+
if (onSelectAll) onSelectAll();
|
|
36
|
+
}
|
|
37
|
+
if (event.key === "Escape") {
|
|
38
|
+
if (onEscape) onEscape();
|
|
39
|
+
}
|
|
40
|
+
if (event.key === "Enter" && !isInputElement(event.target)) {
|
|
41
|
+
if (onEnter) onEnter();
|
|
42
|
+
}
|
|
43
|
+
if (event.key === "Delete" && !isInputElement(event.target)) {
|
|
44
|
+
if (onDelete) onDelete();
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
48
|
+
return () => {
|
|
49
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
50
|
+
};
|
|
51
|
+
}, [
|
|
52
|
+
onSave,
|
|
53
|
+
onCut,
|
|
54
|
+
onCopy,
|
|
55
|
+
onPaste,
|
|
56
|
+
onUndo,
|
|
57
|
+
onRedo,
|
|
58
|
+
onSelectAll,
|
|
59
|
+
onEscape,
|
|
60
|
+
onEnter,
|
|
61
|
+
onDelete
|
|
62
|
+
]);
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { useKeyboardShortcuts };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=useKeyboardShortcuts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKeyboardShortcuts.js","names":[],"sources":["../../src/hooks/useKeyboardShortcuts.ts"],"sourcesContent":["import { useEffect } from 'react';\n\nexport interface KeyboardShortcutsConfig {\n onSave?: () => void;\n onCut?: () => void;\n onCopy?: () => void;\n onPaste?: () => void;\n onUndo?: () => void;\n onRedo?: () => void;\n onSelectAll?: () => void;\n onEscape?: () => void;\n onEnter?: () => void;\n onDelete?: () => void;\n}\n\nexport const useKeyboardShortcuts = ({\n onSave,\n onCut,\n onCopy,\n onPaste,\n onUndo,\n onRedo,\n onSelectAll,\n onEscape,\n onEnter,\n onDelete,\n}: KeyboardShortcutsConfig = {}) => {\n useEffect(() => {\n const isInputElement = (element: Element | null): boolean => {\n if (!element) { return false; }\n\n const tagName = element.tagName?.toLowerCase();\n const isInput = tagName === 'input' || tagName === 'textarea';\n const isContentEditable = (element as HTMLElement).contentEditable === 'true';\n\n return isInput || isContentEditable;\n };\n\n const handleKeyDown = (event: KeyboardEvent) => {\n // Check for Cmd+S (Mac) or Ctrl+S (Windows/Linux)\n if ((event.metaKey || event.ctrlKey) && event.key === 's') {\n event.preventDefault(); // Prevent browser save dialog\n\n if (onSave) {\n onSave();\n }\n }\n\n // Check for Cmd+X (Mac) or Ctrl+X (Windows/Linux) - Cut\n if ((event.metaKey || event.ctrlKey) && event.key === 'x') {\n // Don't prevent default for cut as it's useful for text selection\n if (onCut) {\n onCut();\n }\n }\n\n // Check for Cmd+C (Mac) or Ctrl+C (Windows/Linux) - Copy\n if ((event.metaKey || event.ctrlKey) && event.key === 'c') {\n // Don't prevent default for copy as it's useful for text selection\n if (onCopy) {\n onCopy();\n }\n }\n\n // Check for Cmd+V (Mac) or Ctrl+V (Windows/Linux) - Paste\n if ((event.metaKey || event.ctrlKey) && event.key === 'v') {\n // Don't prevent default for paste as it's useful for text input\n if (onPaste) {\n onPaste();\n }\n }\n\n // Check for Cmd+Z (Mac) or Ctrl+Z (Windows/Linux) - Undo\n if ((event.metaKey || event.ctrlKey) && event.key === 'z' && !event.shiftKey) {\n event.preventDefault(); // Prevent browser undo\n if (onUndo) {\n onUndo();\n }\n }\n\n // Check for Cmd+Shift+Z (Mac) or Ctrl+Y (Windows/Linux) - Redo\n if (((event.metaKey && event.shiftKey) || event.ctrlKey) &&\n (event.key === 'z' || event.key === 'y')) {\n event.preventDefault(); // Prevent browser redo\n if (onRedo) {\n onRedo();\n }\n }\n\n // Check for Cmd+A (Mac) or Ctrl+A (Windows/Linux) - Select All\n if ((event.metaKey || event.ctrlKey) && event.key === 'a') {\n // Don't prevent default for select all as it's useful for text selection\n if (onSelectAll) {\n onSelectAll();\n }\n }\n\n // Check for Escape key\n if (event.key === 'Escape') {\n if (onEscape) {\n onEscape();\n }\n }\n\n // Check for Enter/Return key (only when not in input/textarea)\n if (event.key === 'Enter' && !isInputElement(event.target as Element)) {\n if (onEnter) {\n onEnter();\n }\n }\n\n // Check for Delete key (only when not in input/textarea)\n if (event.key === 'Delete' && !isInputElement(event.target as Element)) {\n if (onDelete) {\n onDelete();\n }\n }\n };\n\n // Add event listener\n document.addEventListener('keydown', handleKeyDown);\n\n // Cleanup\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [onSave, onCut, onCopy, onPaste, onUndo, onRedo, onSelectAll, onEscape, onEnter, onDelete]);\n};\n"],"mappings":";;AAeA,IAAa,wBAAwB,EACjC,QACA,OACA,QACA,SACA,QACA,QACA,aACA,UACA,SACA,aACyB,EAAE,KAAK;AAChC,iBAAgB;EACZ,MAAM,kBAAkB,YAAqC;AACzD,OAAI,CAAC,QAAW,QAAO;GAEvB,MAAM,UAAU,QAAQ,SAAS,aAAa;GAC9C,MAAM,UAAU,YAAY,WAAW,YAAY;GACnD,MAAM,oBAAqB,QAAwB,oBAAoB;AAEvE,UAAO,WAAW;;EAGtB,MAAM,iBAAiB,UAAyB;AAE5C,QAAK,MAAM,WAAW,MAAM,YAAY,MAAM,QAAQ,KAAK;AACvD,UAAM,gBAAgB;AAEtB,QAAI,OACA,SAAQ;;AAKhB,QAAK,MAAM,WAAW,MAAM,YAAY,MAAM,QAAQ;QAE9C,MACA,QAAO;;AAKf,QAAK,MAAM,WAAW,MAAM,YAAY,MAAM,QAAQ;QAE9C,OACA,SAAQ;;AAKhB,QAAK,MAAM,WAAW,MAAM,YAAY,MAAM,QAAQ;QAE9C,QACA,UAAS;;AAKjB,QAAK,MAAM,WAAW,MAAM,YAAY,MAAM,QAAQ,OAAO,CAAC,MAAM,UAAU;AAC1E,UAAM,gBAAgB;AACtB,QAAI,OACA,SAAQ;;AAKhB,QAAM,MAAM,WAAW,MAAM,YAAa,MAAM,aAC3C,MAAM,QAAQ,OAAO,MAAM,QAAQ,MAAM;AAC1C,UAAM,gBAAgB;AACtB,QAAI,OACA,SAAQ;;AAKhB,QAAK,MAAM,WAAW,MAAM,YAAY,MAAM,QAAQ;QAE9C,YACA,cAAa;;AAKrB,OAAI,MAAM,QAAQ;QACV,SACA,WAAU;;AAKlB,OAAI,MAAM,QAAQ,WAAW,CAAC,eAAe,MAAM,OAAkB;QAC7D,QACA,UAAS;;AAKjB,OAAI,MAAM,QAAQ,YAAY,CAAC,eAAe,MAAM,OAAkB;QAC9D,SACA,WAAU;;;AAMtB,WAAS,iBAAiB,WAAW,cAAc;AAGnD,eAAa;AACT,YAAS,oBAAoB,WAAW,cAAc;;IAE3D;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;EAAQ;EAAa;EAAU;EAAS;EAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../src/hooks/useTranslation.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAE5F,eAAO,MAAM,cAAc,kBACM,MAAM,WAAW,eAAe,WAGhE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { translate } from "../utils/translation.js";
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
//#region src/hooks/useTranslation.ts
|
|
4
|
+
var useTranslation = () => {
|
|
5
|
+
return useCallback((message, params) => {
|
|
6
|
+
return translate(message, params);
|
|
7
|
+
}, []);
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { useTranslation };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=useTranslation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTranslation.js","names":[],"sources":["../../src/hooks/useTranslation.ts"],"sourcesContent":["import { useCallback } from 'react';\nimport { translate, type TranslateParams } from '@verbb/plugin-kit-react/utils/translation';\n\nexport const useTranslation = () => {\n return useCallback((message: string, params?: TranslateParams) => {\n return translate(message, params);\n }, []);\n};\n"],"mappings":";;;AAGA,IAAa,uBAAuB;AAChC,QAAO,aAAa,SAAiB,WAA6B;AAC9D,SAAO,UAAU,SAAS,OAAO;IAClC,EAAE,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js
|
|
3
|
+
var require_arrayLikeToArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
function _arrayLikeToArray(r, a) {
|
|
5
|
+
(null == a || a > r.length) && (a = r.length);
|
|
6
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
7
|
+
return n;
|
|
8
|
+
}
|
|
9
|
+
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
10
|
+
}));
|
|
11
|
+
//#endregion
|
|
12
|
+
export default require_arrayLikeToArray();
|
|
13
|
+
export { require_arrayLikeToArray };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=arrayLikeToArray.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrayLikeToArray.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"],"sourcesContent":["function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;CAAA,SAAS,kBAAkB,GAAG,GAAG;AAC/B,GAAC,QAAQ,KAAK,IAAI,EAAE,YAAY,IAAI,EAAE;AACtC,OAAK,IAAI,IAAI,GAAG,IAAI,MAAM,EAAE,EAAE,IAAI,GAAG,IAAK,GAAE,KAAK,EAAE;AACnD,SAAO;;AAET,QAAO,UAAU,mBAAmB,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_arrayLikeToArray } from "./arrayLikeToArray.js";
|
|
3
|
+
//#region ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
|
|
4
|
+
var require_arrayWithoutHoles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
+
var arrayLikeToArray = require_arrayLikeToArray();
|
|
6
|
+
function _arrayWithoutHoles(r) {
|
|
7
|
+
if (Array.isArray(r)) return arrayLikeToArray(r);
|
|
8
|
+
}
|
|
9
|
+
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
10
|
+
}));
|
|
11
|
+
//#endregion
|
|
12
|
+
export default require_arrayWithoutHoles();
|
|
13
|
+
export { require_arrayWithoutHoles };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=arrayWithoutHoles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrayWithoutHoles.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"],"sourcesContent":["var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;;CAAA,IAAI,mBAAA,0BAAA;CACJ,SAAS,mBAAmB,GAAG;AAC7B,MAAI,MAAM,QAAQ,EAAE,CAAE,QAAO,iBAAiB,EAAE;;AAElD,QAAO,UAAU,oBAAoB,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../node_modules/@babel/runtime/helpers/classCallCheck.js
|
|
3
|
+
var require_classCallCheck = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
function _classCallCheck(a, n) {
|
|
5
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
6
|
+
}
|
|
7
|
+
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8
|
+
}));
|
|
9
|
+
//#endregion
|
|
10
|
+
export default require_classCallCheck();
|
|
11
|
+
export { require_classCallCheck };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=classCallCheck.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classCallCheck.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/classCallCheck.js"],"sourcesContent":["function _classCallCheck(a, n) {\n if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\");\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;CAAA,SAAS,gBAAgB,GAAG,GAAG;AAC7B,MAAI,EAAE,aAAa,GAAI,OAAM,IAAI,UAAU,oCAAoC;;AAEjF,QAAO,UAAU,iBAAiB,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_toPropertyKey } from "./toPropertyKey.js";
|
|
3
|
+
//#region ../node_modules/@babel/runtime/helpers/createClass.js
|
|
4
|
+
var require_createClass = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
+
var toPropertyKey = require_toPropertyKey();
|
|
6
|
+
function _defineProperties(e, r) {
|
|
7
|
+
for (var t = 0; t < r.length; t++) {
|
|
8
|
+
var o = r[t];
|
|
9
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _createClass(e, r, t) {
|
|
13
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
14
|
+
}
|
|
15
|
+
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
16
|
+
}));
|
|
17
|
+
//#endregion
|
|
18
|
+
export default require_createClass();
|
|
19
|
+
export { require_createClass };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=createClass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createClass.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/createClass.js"],"sourcesContent":["var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(e, r) {\n for (var t = 0; t < r.length; t++) {\n var o = r[t];\n o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);\n }\n}\nfunction _createClass(e, r, t) {\n return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), e;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;;CAAA,IAAI,gBAAA,uBAAA;CACJ,SAAS,kBAAkB,GAAG,GAAG;AAC/B,OAAK,IAAI,IAAI,GAAG,IAAI,EAAE,QAAQ,KAAK;GACjC,IAAI,IAAI,EAAE;AACV,KAAE,aAAa,EAAE,cAAc,CAAC,GAAG,EAAE,eAAe,CAAC,GAAG,WAAW,MAAM,EAAE,WAAW,CAAC,IAAI,OAAO,eAAe,GAAG,cAAc,EAAE,IAAI,EAAE,EAAE;;;CAGhJ,SAAS,aAAa,GAAG,GAAG,GAAG;AAC7B,SAAO,KAAK,kBAAkB,EAAE,WAAW,EAAE,EAAE,KAAK,kBAAkB,GAAG,EAAE,EAAE,OAAO,eAAe,GAAG,aAAa,EACjH,UAAU,CAAC,GACZ,CAAC,EAAE;;AAEN,QAAO,UAAU,cAAc,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_toPropertyKey } from "./toPropertyKey.js";
|
|
3
|
+
//#region ../node_modules/@babel/runtime/helpers/defineProperty.js
|
|
4
|
+
var require_defineProperty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
+
var toPropertyKey = require_toPropertyKey();
|
|
6
|
+
function _defineProperty(e, r, t) {
|
|
7
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
8
|
+
value: t,
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
configurable: !0,
|
|
11
|
+
writable: !0
|
|
12
|
+
}) : e[r] = t, e;
|
|
13
|
+
}
|
|
14
|
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15
|
+
}));
|
|
16
|
+
//#endregion
|
|
17
|
+
export default require_defineProperty();
|
|
18
|
+
export { require_defineProperty };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=defineProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defineProperty.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/defineProperty.js"],"sourcesContent":["var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;;CAAA,IAAI,gBAAA,uBAAA;CACJ,SAAS,gBAAgB,GAAG,GAAG,GAAG;AAChC,UAAQ,IAAI,cAAc,EAAE,KAAK,IAAI,OAAO,eAAe,GAAG,GAAG;GAC/D,OAAO;GACP,YAAY,CAAC;GACb,cAAc,CAAC;GACf,UAAU,CAAC;GACZ,CAAC,GAAG,EAAE,KAAK,GAAG;;AAEjB,QAAO,UAAU,iBAAiB,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../node_modules/@babel/runtime/helpers/interopRequireDefault.js
|
|
3
|
+
var require_interopRequireDefault = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
function _interopRequireDefault(e) {
|
|
5
|
+
return e && e.__esModule ? e : { "default": e };
|
|
6
|
+
}
|
|
7
|
+
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8
|
+
}));
|
|
9
|
+
//#endregion
|
|
10
|
+
export default require_interopRequireDefault();
|
|
11
|
+
export { require_interopRequireDefault };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=interopRequireDefault.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interopRequireDefault.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js"],"sourcesContent":["function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;CAAA,SAAS,uBAAuB,GAAG;AACjC,SAAO,KAAK,EAAE,aAAa,IAAI,EAC7B,WAAW,GACZ;;AAEH,QAAO,UAAU,wBAAwB,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../node_modules/@babel/runtime/helpers/iterableToArray.js
|
|
3
|
+
var require_iterableToArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
function _iterableToArray(r) {
|
|
5
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
6
|
+
}
|
|
7
|
+
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8
|
+
}));
|
|
9
|
+
//#endregion
|
|
10
|
+
export default require_iterableToArray();
|
|
11
|
+
export { require_iterableToArray };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=iterableToArray.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iterableToArray.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/iterableToArray.js"],"sourcesContent":["function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;CAAA,SAAS,iBAAiB,GAAG;AAC3B,MAAI,eAAe,OAAO,UAAU,QAAQ,EAAE,OAAO,aAAa,QAAQ,EAAE,cAAe,QAAO,MAAM,KAAK,EAAE;;AAEjH,QAAO,UAAU,kBAAkB,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../node_modules/@babel/runtime/helpers/nonIterableSpread.js
|
|
3
|
+
var require_nonIterableSpread = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
function _nonIterableSpread() {
|
|
5
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6
|
+
}
|
|
7
|
+
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8
|
+
}));
|
|
9
|
+
//#endregion
|
|
10
|
+
export default require_nonIterableSpread();
|
|
11
|
+
export { require_nonIterableSpread };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=nonIterableSpread.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nonIterableSpread.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/nonIterableSpread.js"],"sourcesContent":["function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;CAAA,SAAS,qBAAqB;AAC5B,QAAM,IAAI,UAAU,uIAAuI;;AAE7J,QAAO,UAAU,oBAAoB,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_arrayWithoutHoles } from "./arrayWithoutHoles.js";
|
|
3
|
+
import { require_iterableToArray } from "./iterableToArray.js";
|
|
4
|
+
import { require_unsupportedIterableToArray } from "./unsupportedIterableToArray.js";
|
|
5
|
+
import { require_nonIterableSpread } from "./nonIterableSpread.js";
|
|
6
|
+
//#region ../node_modules/@babel/runtime/helpers/toConsumableArray.js
|
|
7
|
+
var require_toConsumableArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8
|
+
var arrayWithoutHoles = require_arrayWithoutHoles();
|
|
9
|
+
var iterableToArray = require_iterableToArray();
|
|
10
|
+
var unsupportedIterableToArray = require_unsupportedIterableToArray();
|
|
11
|
+
var nonIterableSpread = require_nonIterableSpread();
|
|
12
|
+
function _toConsumableArray(r) {
|
|
13
|
+
return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();
|
|
14
|
+
}
|
|
15
|
+
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
16
|
+
}));
|
|
17
|
+
//#endregion
|
|
18
|
+
export default require_toConsumableArray();
|
|
19
|
+
export { require_toConsumableArray };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=toConsumableArray.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toConsumableArray.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/toConsumableArray.js"],"sourcesContent":["var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(r) {\n return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;;;;;CAAA,IAAI,oBAAA,2BAAA;CACJ,IAAI,kBAAA,yBAAA;CACJ,IAAI,6BAAA,oCAAA;CACJ,IAAI,oBAAA,2BAAA;CACJ,SAAS,mBAAmB,GAAG;AAC7B,SAAO,kBAAkB,EAAE,IAAI,gBAAgB,EAAE,IAAI,2BAA2B,EAAE,IAAI,mBAAmB;;AAE3G,QAAO,UAAU,oBAAoB,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_typeof } from "./typeof.js";
|
|
3
|
+
//#region ../node_modules/@babel/runtime/helpers/toPrimitive.js
|
|
4
|
+
var require_toPrimitive = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
+
var _typeof = require_typeof()["default"];
|
|
6
|
+
function toPrimitive(t, r) {
|
|
7
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
8
|
+
var e = t[Symbol.toPrimitive];
|
|
9
|
+
if (void 0 !== e) {
|
|
10
|
+
var i = e.call(t, r || "default");
|
|
11
|
+
if ("object" != _typeof(i)) return i;
|
|
12
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
13
|
+
}
|
|
14
|
+
return ("string" === r ? String : Number)(t);
|
|
15
|
+
}
|
|
16
|
+
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
17
|
+
}));
|
|
18
|
+
//#endregion
|
|
19
|
+
export default require_toPrimitive();
|
|
20
|
+
export { require_toPrimitive };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=toPrimitive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toPrimitive.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js"],"sourcesContent":["var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;;CAAA,IAAI,UAAA,gBAAA,CAAiC;CACrC,SAAS,YAAY,GAAG,GAAG;AACzB,MAAI,YAAY,QAAQ,EAAE,IAAI,CAAC,EAAG,QAAO;EACzC,IAAI,IAAI,EAAE,OAAO;AACjB,MAAI,KAAK,MAAM,GAAG;GAChB,IAAI,IAAI,EAAE,KAAK,GAAG,KAAK,UAAU;AACjC,OAAI,YAAY,QAAQ,EAAE,CAAE,QAAO;AACnC,SAAM,IAAI,UAAU,+CAA+C;;AAErE,UAAQ,aAAa,IAAI,SAAS,QAAQ,EAAE;;AAE9C,QAAO,UAAU,aAAa,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_typeof } from "./typeof.js";
|
|
3
|
+
import { require_toPrimitive } from "./toPrimitive.js";
|
|
4
|
+
//#region ../node_modules/@babel/runtime/helpers/toPropertyKey.js
|
|
5
|
+
var require_toPropertyKey = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
var _typeof = require_typeof()["default"];
|
|
7
|
+
var toPrimitive = require_toPrimitive();
|
|
8
|
+
function toPropertyKey(t) {
|
|
9
|
+
var i = toPrimitive(t, "string");
|
|
10
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
11
|
+
}
|
|
12
|
+
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
13
|
+
}));
|
|
14
|
+
//#endregion
|
|
15
|
+
export default require_toPropertyKey();
|
|
16
|
+
export { require_toPropertyKey };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=toPropertyKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toPropertyKey.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js"],"sourcesContent":["var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;;;CAAA,IAAI,UAAA,gBAAA,CAAiC;CACrC,IAAI,cAAA,qBAAA;CACJ,SAAS,cAAc,GAAG;EACxB,IAAI,IAAI,YAAY,GAAG,SAAS;AAChC,SAAO,YAAY,QAAQ,EAAE,GAAG,IAAI,IAAI;;AAE1C,QAAO,UAAU,eAAe,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../node_modules/@babel/runtime/helpers/typeof.js
|
|
3
|
+
var require_typeof = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
function _typeof(o) {
|
|
5
|
+
"@babel/helpers - typeof";
|
|
6
|
+
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
7
|
+
return typeof o;
|
|
8
|
+
} : function(o) {
|
|
9
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
10
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
11
|
+
}
|
|
12
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
13
|
+
}));
|
|
14
|
+
//#endregion
|
|
15
|
+
export default require_typeof();
|
|
16
|
+
export { require_typeof };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=typeof.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeof.js","names":[],"sources":["../../../../../../node_modules/@babel/runtime/helpers/typeof.js"],"sourcesContent":["function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0],"mappings":";;;CAAA,SAAS,QAAQ,GAAG;AAClB;AAEA,SAAO,OAAO,UAAU,UAAU,cAAc,OAAO,UAAU,YAAY,OAAO,OAAO,WAAW,SAAU,GAAG;AACjH,UAAO,OAAO;MACZ,SAAU,GAAG;AACf,UAAO,KAAK,cAAc,OAAO,UAAU,EAAE,gBAAgB,UAAU,MAAM,OAAO,YAAY,WAAW,OAAO;KACjH,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO,SAAS,QAAQ,EAAE;;AAE7F,QAAO,UAAU,SAAS,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_arrayLikeToArray } from "./arrayLikeToArray.js";
|
|
3
|
+
//#region ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js
|
|
4
|
+
var require_unsupportedIterableToArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
+
var arrayLikeToArray = require_arrayLikeToArray();
|
|
6
|
+
function _unsupportedIterableToArray(r, a) {
|
|
7
|
+
if (r) {
|
|
8
|
+
if ("string" == typeof r) return arrayLikeToArray(r, a);
|
|
9
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
10
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14
|
+
}));
|
|
15
|
+
//#endregion
|
|
16
|
+
export default require_unsupportedIterableToArray();
|
|
17
|
+
export { require_unsupportedIterableToArray };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=unsupportedIterableToArray.js.map
|