@ticatec/uniface-element 5.0.4 → 5.1.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/README.md +14 -13
- package/README_CN.md +17 -15
- package/dist/app_layout/ColumnsLayout.svelte +14 -10
- package/dist/app_layout/ColumnsLayout.svelte.d.ts +8 -4
- package/dist/app_layout/README.md +14 -12
- package/dist/app_layout/README_CN.md +14 -12
- package/dist/app_layout/RowsLayout.svelte +14 -10
- package/dist/app_layout/RowsLayout.svelte.d.ts +8 -4
- package/dist/base-calendar/CalendarBase.svelte +4 -10
- package/dist/base-calendar/CalendarBase.svelte.d.ts +0 -4
- package/dist/base-calendar/DateContext.d.ts +1 -0
- package/dist/base-calendar/DateContext.js +5 -8
- package/dist/base-calendar/MonthlyCalendar.svelte +11 -3
- package/dist/base-calendar/MonthlyCalendar.svelte.d.ts +1 -2
- package/dist/base-calendar/YearPickupPanel.svelte +5 -5
- package/dist/base-calendar/YearPickupPanel.svelte.d.ts +2 -2
- package/dist/base-calendar/dateUtils.js +9 -5
- package/dist/composite/pagination_panel/PaginationPanel.svelte +19 -13
- package/dist/composite/pagination_panel/PaginationPanel.svelte.d.ts +8 -5
- package/dist/composite/pagination_panel/README.md +3 -1
- package/dist/composite/pagination_panel/README_CN.md +3 -1
- package/dist/composite/transfer/Transfer.svelte +30 -16
- package/dist/composite/transfer/Transfer.svelte.d.ts +11 -4
- package/dist/composite/transfer/index.d.ts +2 -2
- package/dist/data_display/accordion/Accordion.svelte +10 -9
- package/dist/data_display/accordion/Accordion.svelte.d.ts +2 -1
- package/dist/data_display/accordion/AccordionItemView.svelte +6 -6
- package/dist/data_display/accordion/AccordionItemView.svelte.d.ts +1 -1
- package/dist/data_display/accordion/README.md +6 -4
- package/dist/data_display/accordion/README_CN.md +6 -4
- package/dist/data_display/card/Card.svelte +13 -11
- package/dist/data_display/card/Card.svelte.d.ts +5 -3
- package/dist/data_display/card/CardAction.d.ts +7 -2
- package/dist/data_display/card/CommonCardActionBar.svelte +2 -2
- package/dist/data_display/card/README.md +11 -9
- package/dist/data_display/card/README_CN.md +11 -9
- package/dist/data_display/card/index.d.ts +2 -1
- package/dist/data_display/concise_data_table/Column.d.ts +0 -6
- package/dist/data_display/concise_data_table/ConciseListTable.svelte +6 -5
- package/dist/data_display/concise_data_table/ConciseListTable.svelte.d.ts +4 -3
- package/dist/data_display/concise_data_table/DataCell.svelte +1 -1
- package/dist/data_display/concise_data_table/README.md +7 -5
- package/dist/data_display/concise_data_table/README_CN.md +7 -5
- package/dist/data_display/concise_data_table/TableOptions.d.ts +1 -1
- package/dist/data_display/list_box/ListBox.svelte +11 -15
- package/dist/data_display/list_box/ListBox.svelte.d.ts +6 -9
- package/dist/data_display/list_box/README.md +10 -8
- package/dist/data_display/list_box/README_CN.md +10 -8
- package/dist/data_display/list_box/index.d.ts +2 -3
- package/dist/data_display/tree_view/README.md +4 -2
- package/dist/data_display/tree_view/README_CN.md +4 -2
- package/dist/data_display/tree_view/TreeNodeView.svelte +15 -16
- package/dist/data_display/tree_view/TreeNodeView.svelte.d.ts +4 -5
- package/dist/data_display/tree_view/TreeView.svelte +27 -19
- package/dist/data_display/tree_view/TreeView.svelte.d.ts +12 -4
- package/dist/data_display/tree_view/index.d.ts +2 -3
- package/dist/data_table/DataTable.svelte +46 -15
- package/dist/data_table/DataTable.svelte.d.ts +9 -1
- package/dist/data_table/README.md +10 -8
- package/dist/data_table/README_CN.md +10 -8
- package/dist/data_table/UniDataTable.d.ts +4 -4
- package/dist/data_table/UniDataTable.js +2 -2
- package/dist/data_table/index.d.ts +5 -5
- package/dist/data_table/lib/CellAction.d.ts +9 -0
- package/dist/data_table/lib/CommonHeaderCell.d.ts +2 -2
- package/dist/data_table/lib/CompareFn.d.ts +3 -0
- package/dist/data_table/lib/DataColumn.d.ts +7 -12
- package/dist/data_table/lib/FormatCellFn.d.ts +2 -0
- package/dist/data_table/lib/HrefLink.d.ts +3 -3
- package/dist/data_table/lib/IndicatorColumn.d.ts +2 -1
- package/dist/data_table/lib/RowAction.d.ts +14 -20
- package/dist/data_table/lib/virtualWindow.d.ts +37 -0
- package/dist/data_table/lib/virtualWindow.js +41 -0
- package/dist/data_table/parts/ActionCell.svelte +3 -3
- package/dist/data_table/parts/ActionCell.svelte.d.ts +1 -1
- package/dist/data_table/parts/ActionsPanel.svelte +17 -2
- package/dist/data_table/parts/ActionsPanel.svelte.d.ts +3 -0
- package/dist/data_table/parts/ActionsRow.svelte +7 -5
- package/dist/data_table/parts/ContentPanel.svelte +40 -15
- package/dist/data_table/parts/ContentPanel.svelte.d.ts +11 -6
- package/dist/data_table/parts/FixedColumnsPanel.svelte +32 -16
- package/dist/data_table/parts/FixedColumnsPanel.svelte.d.ts +8 -5
- package/dist/data_table/parts/FixedHeaderPanel.svelte +14 -15
- package/dist/data_table/parts/FixedHeaderPanel.svelte.d.ts +4 -4
- package/dist/data_table/parts/FixedRow.svelte +9 -9
- package/dist/data_table/parts/FixedRow.svelte.d.ts +3 -3
- package/dist/data_table/parts/HrefCell.svelte +1 -1
- package/dist/data_table/parts/PopupMenu.svelte +3 -3
- package/dist/data_table/parts/PopupMenu.svelte.d.ts +1 -1
- package/dist/data_table/parts/TableHeaderPanel.svelte +14 -14
- package/dist/data_table/parts/TableHeaderPanel.svelte.d.ts +4 -4
- package/dist/data_table/parts/TextCell.svelte +1 -1
- package/dist/feedback/progress-bar/ProgressBar.svelte +13 -10
- package/dist/feedback/progress-bar/ProgressBar.svelte.d.ts +6 -3
- package/dist/form/FormEditor.svelte +2 -2
- package/dist/form/FormEditor.svelte.d.ts +1 -1
- package/dist/form/attachment_files/AttachmentEditor.svelte +407 -92
- package/dist/form/attachment_files/AttachmentEditor.svelte.d.ts +71 -15
- package/dist/form/attachment_files/AttachmentFile.d.ts +35 -8
- package/dist/form/attachment_files/AttachmentFile.js +54 -29
- package/dist/form/attachment_files/AttachmentListItem.svelte +208 -0
- package/dist/form/attachment_files/AttachmentListItem.svelte.d.ts +25 -0
- package/dist/form/attachment_files/AttachmentTile.svelte +296 -0
- package/dist/form/attachment_files/AttachmentTile.svelte.d.ts +25 -0
- package/dist/form/attachment_files/FileUpload.d.ts +2 -2
- package/dist/form/attachment_files/README.md +71 -452
- package/dist/form/attachment_files/README_CN.md +68 -449
- package/dist/form/attachment_files/UploadTask.d.ts +27 -0
- package/dist/form/attachment_files/index.d.ts +8 -5
- package/dist/form/attachment_files/index.js +4 -2
- package/dist/form/cascade_options_select/CascadeOptionSelect.svelte +16 -15
- package/dist/form/cascade_options_select/CascadeOptionSelect.svelte.d.ts +6 -5
- package/dist/form/cascade_options_select/IsLeaf.d.ts +4 -0
- package/dist/form/cascade_options_select/IsLeaf.js +1 -0
- package/dist/form/cascade_options_select/OptionsBox.svelte +4 -4
- package/dist/form/cascade_options_select/OptionsBox.svelte.d.ts +2 -2
- package/dist/form/color_picker/ColorPicker.svelte +3 -3
- package/dist/form/color_picker/ColorPickerPanel.svelte +1 -1
- package/dist/form/common_editor/BasePicker.svelte +7 -7
- package/dist/form/common_editor/BasePicker.svelte.d.ts +3 -3
- package/dist/form/common_editor/CommonEditor.svelte +8 -8
- package/dist/form/common_editor/CommonEditor.svelte.d.ts +2 -2
- package/dist/form/common_editor/CommonPicker.svelte +43 -31
- package/dist/form/common_editor/CommonPicker.svelte.d.ts +6 -6
- package/dist/form/common_editor/CommonPickerProps.d.ts +2 -2
- package/dist/form/common_editor/CommonPopupEditor.svelte +13 -13
- package/dist/form/common_editor/CommonPopupEditor.svelte.d.ts +3 -4
- package/dist/form/common_editor/NumberInput.svelte +10 -2
- package/dist/form/common_editor/NumberInput.svelte.d.ts +1 -1
- package/dist/form/common_range_editor/CommonRangeEditor.svelte +17 -17
- package/dist/form/common_range_editor/CommonRangeEditor.svelte.d.ts +5 -5
- package/dist/form/date_picker/DatePicker.svelte +5 -5
- package/dist/form/date_picker/DatePicker.svelte.d.ts +1 -1
- package/dist/form/date_picker/DateTimePicker.svelte +16 -6
- package/dist/form/date_picker/README.md +7 -5
- package/dist/form/date_picker/README_CN.md +7 -5
- package/dist/form/date_picker/ScrollBar.svelte +21 -20
- package/dist/form/date_picker/ScrollBar.svelte.d.ts +3 -3
- package/dist/form/date_range/DateRangeEditor.svelte +6 -6
- package/dist/form/events.d.ts +70 -0
- package/dist/form/events.js +6 -0
- package/dist/form/group_box/group-check-box/GroupCheckBox.svelte +9 -7
- package/dist/form/group_box/group-check-box/GroupCheckBox.svelte.d.ts +4 -3
- package/dist/form/group_box/group-check-box/README.md +5 -3
- package/dist/form/group_box/group-check-box/README_CN.md +5 -3
- package/dist/form/group_box/group-radio-box/GroupRadioBox.svelte +9 -7
- package/dist/form/group_box/group-radio-box/GroupRadioBox.svelte.d.ts +4 -3
- package/dist/form/group_box/group-radio-box/README.md +3 -1
- package/dist/form/group_box/group-radio-box/README_CN.md +3 -1
- package/dist/form/image_editor/ImageEditor.svelte +118 -0
- package/dist/form/image_editor/ImageEditor.svelte.d.ts +52 -0
- package/dist/form/image_editor/ImageFile.d.ts +11 -0
- package/dist/form/image_editor/ImageFile.js +1 -0
- package/dist/form/{image-files → image_editor}/ImagePreview.svelte +10 -2
- package/dist/form/image_editor/README.md +89 -0
- package/dist/form/image_editor/README_CN.md +89 -0
- package/dist/form/image_editor/index.d.ts +11 -0
- package/dist/form/image_editor/index.js +4 -0
- package/dist/form/input_options_select/InputOptionsSelect.svelte +11 -8
- package/dist/form/input_options_select/InputOptionsSelect.svelte.d.ts +2 -1
- package/dist/form/input_options_select/README.md +44 -218
- package/dist/form/input_options_select/README_CN.md +38 -211
- package/dist/form/lookup_editor/LookupEditor.svelte +7 -10
- package/dist/form/lookup_editor/LookupEditor.svelte.d.ts +2 -1
- package/dist/form/memo_editor/MemoEditor.svelte +2 -2
- package/dist/form/memo_editor/MemoEditor.svelte.d.ts +1 -1
- package/dist/form/number_editor/NumberEditor.svelte +13 -1
- package/dist/form/number_editor/NumberEditor.svelte.d.ts +1 -1
- package/dist/form/number_range/NumberRange.svelte +5 -5
- package/dist/form/options_multi_select/OptionsMultiSelect.svelte +13 -13
- package/dist/form/options_multi_select/OptionsMultiSelect.svelte.d.ts +3 -2
- package/dist/form/options_multi_select/README.md +5 -3
- package/dist/form/options_multi_select/README_CN.md +5 -3
- package/dist/form/options_select/OptionsSelect.svelte +19 -15
- package/dist/form/options_select/OptionsSelect.svelte.d.ts +2 -1
- package/dist/form/options_select/README.md +9 -7
- package/dist/form/options_select/README_CN.md +8 -6
- package/dist/form/prompts_text_editor/PromptsTextEditor.svelte +6 -5
- package/dist/form/prompts_text_editor/PromptsTextEditor.svelte.d.ts +2 -1
- package/dist/form/prompts_text_editor/README.md +16 -14
- package/dist/form/prompts_text_editor/README_CN.md +16 -14
- package/dist/form/search_box/SearchBox.svelte +3 -2
- package/dist/form/search_box/SearchBox.svelte.d.ts +1 -1
- package/dist/form/switch/README.md +7 -5
- package/dist/form/switch/README_CN.md +7 -5
- package/dist/form/switch/Switch.svelte +7 -5
- package/dist/form/switch/Switch.svelte.d.ts +4 -2
- package/dist/form/text_editor/PasswordEditor.svelte +2 -2
- package/dist/form/text_editor/PasswordEditor.svelte.d.ts +1 -1
- package/dist/form/text_editor/TextEditor.svelte +6 -4
- package/dist/form/text_editor/TextEditor.svelte.d.ts +1 -1
- package/dist/form/time_editor/README.md +4 -2
- package/dist/form/time_editor/README_CN.md +4 -2
- package/dist/form/time_editor/TimeEditor.svelte +10 -7
- package/dist/form/time_editor/TimeEditor.svelte.d.ts +2 -1
- package/dist/form/types.d.ts +5 -42
- package/dist/form/unit-number-editor/README.md +21 -19
- package/dist/form/unit-number-editor/README_CN.md +21 -19
- package/dist/form/unit-number-editor/UnitNumberEditor.svelte +12 -11
- package/dist/form/unit-number-editor/UnitNumberEditor.svelte.d.ts +4 -3
- package/dist/general/button/Button.svelte +4 -1
- package/dist/general/button/Button.svelte.d.ts +3 -1
- package/dist/general/button/IconButton.svelte +11 -5
- package/dist/general/button/IconButton.svelte.d.ts +5 -2
- package/dist/general/button/IconButton_README.md +9 -6
- package/dist/general/button/IconButton_README_CN.md +9 -6
- package/dist/general/button/TextButton.svelte +15 -5
- package/dist/general/button/TextButton.svelte.d.ts +6 -2
- package/dist/general/button/TextButton_README.md +10 -6
- package/dist/general/button/TextButton_README_CN.md +10 -6
- package/dist/general/icon/Icon.svelte +6 -4
- package/dist/general/icon/Icon.svelte.d.ts +3 -2
- package/dist/general/tag/Tag.svelte +8 -4
- package/dist/general/tag/Tag.svelte.d.ts +3 -1
- package/dist/i18nRes/i18nRes.d.ts +45 -2
- package/dist/i18nRes/i18nRes.js +7 -2
- package/dist/layouts/action_bar/ActionBar.svelte +5 -4
- package/dist/layouts/action_bar/ActionBar.svelte.d.ts +2 -1
- package/dist/layouts/action_bar/ButtonAction.d.ts +1 -23
- package/dist/layouts/action_bar/README.md +20 -18
- package/dist/layouts/action_bar/README_CN.md +19 -17
- package/dist/layouts/box/Box.svelte +4 -3
- package/dist/layouts/box/Box.svelte.d.ts +2 -1
- package/dist/layouts/box/README.md +13 -11
- package/dist/layouts/box/README_CN.md +13 -11
- package/dist/layouts/form_field/FormField.svelte +5 -4
- package/dist/layouts/form_field/FormField.svelte.d.ts +3 -2
- package/dist/layouts/form_field/README.md +11 -9
- package/dist/layouts/form_field/README_CN.md +9 -7
- package/dist/layouts/form_panel/flex_row_form/Cell.svelte +3 -1
- package/dist/layouts/form_panel/flex_row_form/Cell.svelte.d.ts +3 -1
- package/dist/layouts/form_panel/flex_row_form/Row.svelte +3 -1
- package/dist/layouts/form_panel/flex_row_form/Row.svelte.d.ts +3 -1
- package/dist/layouts/form_panel/grid_form/GridField.svelte +8 -4
- package/dist/layouts/form_panel/grid_form/GridField.svelte.d.ts +6 -2
- package/dist/layouts/form_panel/grid_form/GridForm.svelte +3 -1
- package/dist/layouts/form_panel/grid_form/GridForm.svelte.d.ts +3 -1
- package/dist/layouts/form_panel/grid_form/README.md +6 -4
- package/dist/layouts/form_panel/grid_form/README_CN.md +6 -4
- package/dist/layouts/page/Page.svelte +7 -7
- package/dist/layouts/page/Page.svelte.d.ts +2 -2
- package/dist/layouts/page/PageHeader.svelte +4 -4
- package/dist/layouts/page/PageHeader.svelte.d.ts +1 -1
- package/dist/layouts/page/README.md +18 -18
- package/dist/layouts/page/README_CN.md +18 -18
- package/dist/navigation/nav_menu/MenuItem.d.ts +1 -1
- package/dist/navigation/nav_menu/NavigatorMenu.svelte +16 -14
- package/dist/navigation/nav_menu/NavigatorMenu.svelte.d.ts +7 -5
- package/dist/navigation/nav_menu/NavigatorMenuItem.svelte +2 -2
- package/dist/navigation/nav_menu/NavigatorMenuItem.svelte.d.ts +2 -2
- package/dist/navigation/nav_menu/README.md +8 -6
- package/dist/navigation/nav_menu/README_CN.md +8 -6
- package/dist/navigation/nav_menu/index.d.ts +2 -2
- package/dist/navigation/navigator/Navigator.svelte +5 -4
- package/dist/navigation/navigator/Navigator.svelte.d.ts +3 -2
- package/dist/navigation/navigator/README.md +12 -10
- package/dist/navigation/navigator/README_CN.md +12 -10
- package/dist/navigation/pagination/Pagination.svelte +23 -15
- package/dist/navigation/pagination/Pagination.svelte.d.ts +6 -4
- package/dist/navigation/progress_step_bar/ProgressStep.d.ts +2 -1
- package/dist/navigation/progress_step_bar/ProgressStepBar.svelte +5 -4
- package/dist/navigation/progress_step_bar/ProgressStepBar.svelte.d.ts +2 -1
- package/dist/navigation/progress_step_bar/ProgressStepBlock.svelte +3 -3
- package/dist/navigation/progress_step_bar/ProgressStepBlock.svelte.d.ts +1 -1
- package/dist/navigation/progress_step_bar/README.md +37 -35
- package/dist/navigation/progress_step_bar/README_CN.md +36 -34
- package/dist/navigation/tabs/Tabs.svelte +14 -5
- package/dist/navigation/tabs/Tabs.svelte.d.ts +11 -4
- package/dist/navigation/tabs/index.d.ts +2 -2
- package/dist/overlay/common/ModalPopover.svelte +5 -4
- package/dist/overlay/common/ModalPopover.svelte.d.ts +2 -1
- package/dist/overlay/common/Popover.svelte +4 -3
- package/dist/overlay/common/Popover.svelte.d.ts +2 -1
- package/dist/overlay/context-menu/ContextMenuItem.d.ts +3 -3
- package/dist/overlay/context-menu/ContextMenuPanel.svelte +4 -4
- package/dist/overlay/context-menu/index.d.ts +2 -2
- package/dist/overlay/dialog/CommonDialog.svelte +17 -13
- package/dist/overlay/dialog/CommonDialog.svelte.d.ts +9 -5
- package/dist/overlay/dialog/Dialog.svelte +25 -19
- package/dist/overlay/dialog/Dialog.svelte.d.ts +11 -5
- package/dist/overlay/dialog/DialogActions.d.ts +1 -1
- package/dist/overlay/dialog/DialogCloseConfirm.d.ts +4 -1
- package/dist/overlay/dialog/DialogCloseConfirm.js +1 -1
- package/dist/overlay/dialog/DialogManager.svelte.js +2 -1
- package/dist/overlay/dialog/README.md +19 -17
- package/dist/overlay/dialog/README_CN.md +19 -17
- package/dist/overlay/dialog/index.d.ts +2 -2
- package/dist/overlay/message-box/IMessageBox.d.ts +4 -4
- package/dist/overlay/message-box/MessageBox.svelte.js +3 -3
- package/dist/ticatec-uniface-web.css +38 -12
- package/dist/types.d.ts +38 -46
- package/dist/unifaceContext.d.ts +2 -2
- package/dist/utils/prefixFilter.js +0 -1
- package/docs/NAMING.md +362 -0
- package/docs/NAMING_CN.md +362 -0
- package/docs/components/README.md +16 -14
- package/docs/components/accordion/README.md +13 -2
- package/docs/components/accordion/example.svelte +1 -0
- package/docs/components/action-bar/README.md +4 -4
- package/docs/components/attachment-editor/README.md +224 -0
- package/docs/components/attachment-editor/example.svelte +22 -0
- package/docs/components/box/README.md +1 -1
- package/docs/components/button/README.md +8 -1
- package/docs/components/button/example.svelte +1 -0
- package/docs/components/card/README.md +19 -5
- package/docs/components/cascade-options-select/README.md +11 -5
- package/docs/components/columns-layout/README.md +8 -4
- package/docs/components/columns-layout/example.svelte +4 -0
- package/docs/components/common-dialog/README.md +19 -10
- package/docs/components/common-dialog/example.svelte +2 -1
- package/docs/components/concise-data-table/README.md +18 -29
- package/docs/components/concise-data-table/example.svelte +1 -1
- package/docs/components/context-menu/README.md +5 -5
- package/docs/components/context-menu/example.svelte +1 -1
- package/docs/components/criteria-field/README.md +1 -0
- package/docs/components/criteria-field/example.svelte +1 -0
- package/docs/components/data-table/README.md +63 -40
- package/docs/components/data-table/example.svelte +2 -2
- package/docs/components/date-picker/README.md +1 -1
- package/docs/components/date-time-picker/README.md +1 -1
- package/docs/components/dialog/README.md +21 -14
- package/docs/components/dialog/example.svelte +1 -1
- package/docs/components/form-field/README.md +3 -3
- package/docs/components/grid-form/README.md +15 -5
- package/docs/components/grid-form/example.svelte +1 -1
- package/docs/components/group-check-box/README.md +3 -3
- package/docs/components/group-radio-box/README.md +3 -3
- package/docs/components/icon/README.md +6 -5
- package/docs/components/icon-button/README.md +10 -1
- package/docs/components/icon-button/example.svelte +1 -0
- package/docs/components/image-editor/README.md +262 -0
- package/docs/components/{image-files → image-editor}/example.svelte +5 -3
- package/docs/components/input-options-select/README.md +2 -2
- package/docs/components/list-box/README.md +12 -13
- package/docs/components/list-box/example.svelte +3 -3
- package/docs/components/lookup-editor/README.md +1 -1
- package/docs/components/navigator/README.md +2 -1
- package/docs/components/navigator/example.svelte +1 -0
- package/docs/components/navigator-menu/README.md +24 -21
- package/docs/components/navigator-menu/example.svelte +4 -2
- package/docs/components/options-multi-select/README.md +2 -2
- package/docs/components/options-select/README.md +4 -4
- package/docs/components/page/README.md +2 -2
- package/docs/components/page-stack/README.md +67 -0
- package/docs/components/page-stack/example.svelte +7 -0
- package/docs/components/pagination/README.md +24 -7
- package/docs/components/pagination/example.svelte +5 -2
- package/docs/components/pagination-panel/README.md +25 -10
- package/docs/components/pagination-panel/example.svelte +5 -4
- package/docs/components/password-editor/README.md +128 -0
- package/docs/components/{attachment-files → password-editor}/example.svelte +5 -5
- package/docs/components/progress-bar/README.md +14 -4
- package/docs/components/progress-bar/example.svelte +1 -1
- package/docs/components/progress-step-bar/README.md +16 -7
- package/docs/components/progress-step-bar/example.svelte +5 -1
- package/docs/components/prompts-text-editor/README.md +8 -6
- package/docs/components/prompts-text-editor/example.svelte +0 -1
- package/docs/components/rows-layout/README.md +8 -4
- package/docs/components/rows-layout/example.svelte +4 -0
- package/docs/components/switch/README.md +2 -2
- package/docs/components/tabs/README.md +24 -9
- package/docs/components/tag/README.md +13 -2
- package/docs/components/tag/example.svelte +1 -0
- package/docs/components/text-button/README.md +20 -1
- package/docs/components/text-button/example.svelte +2 -0
- package/docs/components/time-editor/README.md +1 -1
- package/docs/components/transfer/README.md +16 -9
- package/docs/components/tree-view/README.md +29 -13
- package/docs/components/tree-view/example.svelte +2 -1
- package/docs/components/unit-number-editor/README.md +11 -8
- package/docs/components/unit-number-editor/example.svelte +0 -1
- package/package.json +13 -7
- package/dist/data_table/lib/CompareFunction.d.ts +0 -3
- package/dist/data_table/lib/FormatCell.d.ts +0 -2
- package/dist/form/attachment_files/FileRender.svelte +0 -125
- package/dist/form/attachment_files/FileRender.svelte.d.ts +0 -9
- package/dist/form/attachment_files/FileUploadBar.svelte +0 -66
- package/dist/form/attachment_files/FileUploadBar.svelte.d.ts +0 -8
- package/dist/form/attachment_files/FileUploadPanel.svelte +0 -161
- package/dist/form/attachment_files/FileUploadPanel.svelte.d.ts +0 -14
- package/dist/form/attachment_files/UploadFile.d.ts +0 -43
- package/dist/form/attachment_files/UploadFile.js +0 -80
- package/dist/form/cascade_options_select/CascadePanel.svelte +0 -52
- package/dist/form/cascade_options_select/CascadePanel.svelte.d.ts +0 -26
- package/dist/form/cascade_options_select/isLeafDetermine.d.ts +0 -4
- package/dist/form/common_editor/EditorEvents.d.ts +0 -14
- package/dist/form/common_editor/EditorEvents.js +0 -2
- package/dist/form/image-files/ImageFile.d.ts +0 -12
- package/dist/form/image-files/ImageFilesField.svelte +0 -128
- package/dist/form/image-files/ImageFilesField.svelte.d.ts +0 -18
- package/dist/form/image-files/ImageRender.svelte +0 -95
- package/dist/form/image-files/ImageRender.svelte.d.ts +0 -10
- package/dist/form/image-files/README.md +0 -468
- package/dist/form/image-files/README_CN.md +0 -468
- package/dist/form/image-files/index.d.ts +0 -10
- package/dist/form/image-files/index.js +0 -2
- package/dist/layout/flex/FlexBlock.svelte +0 -17
- package/dist/layout/flex/FlexBlock.svelte.d.ts +0 -38
- package/dist/layout/flex/README.md +0 -148
- package/dist/layout/flex/README_CN.md +0 -148
- package/dist/layout/flex/index.d.ts +0 -2
- package/dist/layout/flex/index.js +0 -2
- package/dist/layout/index.d.ts +0 -0
- package/dist/layout/index.js +0 -1
- package/docs/components/attachment-files/README.md +0 -332
- package/docs/components/image-files/README.md +0 -174
- /package/dist/data_table/lib/{FormatCell.js → CellAction.js} +0 -0
- /package/dist/data_table/lib/{CompareFunction.js → CompareFn.js} +0 -0
- /package/dist/{form/cascade_options_select/isLeafDetermine.js → data_table/lib/FormatCellFn.js} +0 -0
- /package/dist/form/{image-files/ImageFile.js → attachment_files/UploadTask.js} +0 -0
- /package/dist/form/{image-files → image_editor}/ImagePreview.svelte.d.ts +0 -0
package/docs/NAMING.md
ADDED
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
# uniface-element Component API Naming Guide
|
|
2
|
+
|
|
3
|
+
> Version: 1.1 (finalized 2026-09-05; shipped with 5.1.0). Chinese original: [NAMING_CN.md](./NAMING_CN.md) — the Chinese text is authoritative if the two ever disagree.
|
|
4
|
+
> Scope: props, callbacks, instance methods and exported types of every public `@ticatec/uniface-element` component, plus the data objects components consume (column definitions, action objects, …). Internal sub-components (`data_table/parts/*`, `*Panel.svelte`, …) should follow the guide too but carry no compatibility promise.
|
|
5
|
+
> Status: in force from **5.1.0**. 5.1.0 is the Svelte 5 rewrite of the package, so **no old-name aliases or `@deprecated` transitions are kept**; Appendix A is the complete 5.0.x → 5.1.0 old → new table for migration.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 0. Principles
|
|
10
|
+
|
|
11
|
+
1. **One meaning, one name across the whole library.** Check the vocabulary in Appendix B before naming a new prop; if the word is missing, add it to the vocabulary first.
|
|
12
|
+
2. **Stay close to Svelte 5 / DOM intuition.** Whenever a native attribute exists (`disabled`, `readonly`, `placeholder`, `onclick`), reuse its name instead of inventing a synonym.
|
|
13
|
+
3. **A name says *what*, not *where*.** Component names never leak into prop names (`accordions`, `menuItems` are not allowed).
|
|
14
|
+
4. **A type name says *what it is for*, not *that it is a function*.** The suffixes `Handler / Callback / Fun / Function` are retired.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## R1 Event callbacks
|
|
19
|
+
|
|
20
|
+
| Rule | Form | Examples |
|
|
21
|
+
| --- | --- | --- |
|
|
22
|
+
| Events that exist on DOM elements | all-lowercase `on` + word | `onchange` `onclick` `onfocus` `onblur` `oninput` `onclose` `onselect` `onkeydown` |
|
|
23
|
+
| Custom multi-word events | `on` + PascalCase | `onItemClick` `onPageSizeChange` `onFileUploaded` `onResizeEnd` `onRowClick` `onIconClick` |
|
|
24
|
+
| Forbidden | `xxxHandler`, `xxxCallback`, `handleXxx` as prop names | ~~`rowClickHandler`~~ ~~`closeCallback`~~ ~~`handleCellClick`~~ |
|
|
25
|
+
| Forbidden | the same event in two casings | ~~`onClose` + `onclose`~~ |
|
|
26
|
+
|
|
27
|
+
"Exists on DOM elements" means an HTML element has an `onxxx` attribute of that name. `onclose` (`<dialog>`), `onselect`, `ontoggle` (`<details>`), `oncontextmenu` all count and are written lowercase.
|
|
28
|
+
|
|
29
|
+
**Do not use the `on` prefix for callbacks that are not events.** A function that returns data is a loader (R11: `XxxLoader` / `loadXxx`) — e.g. the cascade select loads the next level through `loadChildren`, not `onSelect`.
|
|
30
|
+
|
|
31
|
+
**Parameters.**
|
|
32
|
+
- `onchange` passes only the new value: `(value: T) => void`. Never the DOM event.
|
|
33
|
+
- DOM-named events other than value changes (`onclick`, `onfocus`, `onkeydown`, …) pass the native event; the parameter is always called `event` (never `e`).
|
|
34
|
+
- Custom events order their arguments "subject first, context second": `onItemClick(item, event?)`. A DOM-named event that carries business data appends it after the event object: `oncontextmenu(event, data)`.
|
|
35
|
+
|
|
36
|
+
## R2 Notification vs. veto
|
|
37
|
+
|
|
38
|
+
| Kind | Name | Returns | Meaning |
|
|
39
|
+
| --- | --- | --- | --- |
|
|
40
|
+
| Notification | `onXxx` | `void` | it **has happened**; the caller cannot stop it |
|
|
41
|
+
| Veto hook | `beforeXxx` | `boolean \| Promise<boolean>` | it **is about to happen**; returning `false` cancels it |
|
|
42
|
+
|
|
43
|
+
- `onchange` is always a notification. Components that need to ask before changing (Tabs closing, TreeView node switch, Transfer moves, Dialog close, attachment/image removal) get a separate `beforeXxx`: `beforeRemove` `beforeChange` `beforeClose` `beforeTransfer`.
|
|
44
|
+
- `beforeXxx` takes the same arguments as its `onXxx` counterpart.
|
|
45
|
+
- The `xxxConfirm` hook naming is retired (`closeConfirm` → `beforeClose`, `removeFileConfirm` → `beforeRemove`). Confirming is one possible implementation of the hook, not its meaning.
|
|
46
|
+
- Plain switches ("may this be closed at all?") are `xxxable` booleans (R5), never hooks.
|
|
47
|
+
|
|
48
|
+
## R3 Values and binding
|
|
49
|
+
|
|
50
|
+
- The current value of a form control is always `value` and always `$bindable()`. Range controls use `fromValue` / `toValue`.
|
|
51
|
+
- `value` has a concrete type (`string` / `number` / `UniDate` / `T`); `CommonFieldProps` becomes generic `CommonFieldProps<T>` with `onchange?: (value: T) => void`. No more `value?: any`.
|
|
52
|
+
- Any state the caller may need to write back (`pageNo`, `visible`, `expanded`, `activeTab`, `selectedRows`) is `$bindable()`. Read-only derived values never appear in Props (e.g. `ImageFilesField.text`).
|
|
53
|
+
- `RadioButton` keeps Svelte's `bind:group` convention — the only exception.
|
|
54
|
+
|
|
55
|
+
## R4 Sub-element pass-through
|
|
56
|
+
|
|
57
|
+
- The only form is `<part>$<attribute>`, where the attribute part is exactly the attribute name of the target element/component:
|
|
58
|
+
`menu$height` `label$style` `content$style` `input$class` `input$readonly` `item$style` `body$class` `footer$style` `dialog$style` `page$style`
|
|
59
|
+
- Part names are fixed: `input` `menu` `label` `content` `item` `body` `header` `footer` `dialog` `page` `box` `tag`. New part names are added to Appendix B first.
|
|
60
|
+
- camelCase variants are forbidden: ~~`contentStyle`~~ ~~`itemStyle`~~ ~~`bodyClass`~~ ~~`labelStyle`~~.
|
|
61
|
+
- The root element's style and class are simply `style` and `class`; never `className`.
|
|
62
|
+
|
|
63
|
+
## R5 Boolean props
|
|
64
|
+
|
|
65
|
+
- Positive names, no `is` / `has` prefix: `disabled` `readonly` `compact` `visible` `expanded` `virtual` `round`.
|
|
66
|
+
- "Show a part" uses the `show` prefix only: `showText` `showIndicator` `showRowNo` `showAction` `showHorizontalScroll`. No `display*`, no `hide*`.
|
|
67
|
+
- "Allow an operation" uses `xxxable`: `closable` `removable` `clearable` `resizable` `selectable` `confirmable`. No `canXxx`, no `mandatory` (→ `clearable=false`), no `hideClose` (→ `closable=false`).
|
|
68
|
+
- Overlay visibility (Drawer, Dialog, Popover, Overlay, Preview) is `visible` (bindable); expandable containers (accordion items, tree nodes, dropdown panels) use `expanded` (bindable). `isOpen`, `hasFocus`, `open` are not prop names.
|
|
69
|
+
- Enabling/disabling is `disabled` only; never `enable` / `enabled`.
|
|
70
|
+
|
|
71
|
+
## R6 Semantics, appearance, direction, size
|
|
72
|
+
|
|
73
|
+
| Prop | Meaning | Values |
|
|
74
|
+
| --- | --- | --- |
|
|
75
|
+
| `type` | **semantic intent** (primary / secondary / danger …) | `ButtonType = 'default' \| 'primary' \| 'secondary' \| 'third' \| 'forth'`; Button's native type is `htmlType` |
|
|
76
|
+
| `variant` | **visual shape / style** | component-specific literal union: Button `'plain' \| 'round' \| ''`, Tag `'borderless' \| 'border' \| 'round'`, Card `'plain' \| '3d'`, Pagination `'plain' \| 'round' \| 'circle'`, ProgressBar `'circular' \| 'linear'`, form editors `EditorVariant` |
|
|
77
|
+
| `direction` | **orientation** | `Direction = 'vertical' \| 'horizontal'`, one shared type |
|
|
78
|
+
| `position` | **relative placement** | `'left' \| 'right' \| 'top' \| 'bottom'` (Drawer, …) |
|
|
79
|
+
| `align` | **alignment** | `'left' \| 'center' \| 'right'` (`'distribute'` only for the Card action bar) |
|
|
80
|
+
| `size` | **discrete size step** | `Size = 'small' \| 'medium' \| 'large'`, one shared type; no `big` / `middle`, no `big: boolean` |
|
|
81
|
+
|
|
82
|
+
- `type` no longer expresses shape (Pagination and ProgressBar `type` → `variant`).
|
|
83
|
+
- `variant` no longer expresses orientation (NavigatorMenu) and is never an unconstrained `string` (Row / Cell / GridForm / GridField either get a literal union or lose the prop).
|
|
84
|
+
- `arrangement` and `layout` meaning orientation become `direction`; the `FieldLayout` type is renamed `Direction`.
|
|
85
|
+
- Numeric sizes (ProgressBar `size: number`) are renamed to the concrete dimension (`diameter` / `thickness`) so `size` stays reserved for the step enum.
|
|
86
|
+
|
|
87
|
+
## R7 Dimensions
|
|
88
|
+
|
|
89
|
+
- Props named with `Width` / `Height` / `Size` (bytes) / `Length` (characters) get their unit from the name; units never appear in the name.
|
|
90
|
+
- Length props accept `number | string`: a number is px, a string is passed through as a CSS length. One shared `toCssSize()` normalizes; a prop that accepts only numbers in one place and only `"48px"` in another is not allowed.
|
|
91
|
+
- Bounds: value ranges use `min` / `max`; dimensions use `xxxMinWidth` / `xxxMaxWidth` / `xxxMinHeight` / `xxxMaxHeight`. Forms that drop the dimension or put it first (`leftMin`, `topMax`, `minYear`) are not allowed.
|
|
92
|
+
- Count limits use `maxXxx` (`maxFiles` `maxLength` `maxTabWidth`) — "at most how many" as opposed to "at most how wide".
|
|
93
|
+
|
|
94
|
+
## R8 Collections and selection
|
|
95
|
+
|
|
96
|
+
| Meaning | Name | Used by |
|
|
97
|
+
| --- | --- | --- |
|
|
98
|
+
| Data rows | `list` | DataTable, ListBox, ConciseListTable, Transfer's `sourceList / targetList` |
|
|
99
|
+
| Selectable options | `options` | OptionsSelect, GroupCheckBox, UnitNumberEditor (`units` → `options`), PromptsTextEditor (`words` → `options`) |
|
|
100
|
+
| Navigation / structural items | `items` | Breadcrumbs, Navigator, NavigatorMenu, Accordion, ProgressStepBar (`steps` → `items`), Tabs (`tabs` kept, see exceptions) |
|
|
101
|
+
| Actions | `actions` | ActionBar, Dialog, Card, DataTable row actions |
|
|
102
|
+
| Trees | `tree` / `nodes` | TreeView uses `tree` (`HierarchyTree`), the cascade select uses `nodes` |
|
|
103
|
+
|
|
104
|
+
- Multi-selection results are `selectedXxx`, plural: `selectedRows` `selectedItems` `selectedOptions`.
|
|
105
|
+
- Single highlight (not a form value) is `activeXxx`: `activeTab` `activeItem` `activeNode`.
|
|
106
|
+
- A form control's selection result is `value` (R3).
|
|
107
|
+
- Field mapping: `keyField` defaults to `"code"`, `textField` to `"text"`, `childrenField` to `"children"`. Every component that accepts object arrays offers both with defaults — never required.
|
|
108
|
+
- Exceptions: `Tabs.keyField` defaults to `"id"`, and `Tabs.tabs` (tab objects are both data and state); both are documented as such.
|
|
109
|
+
|
|
110
|
+
## R9 Text props
|
|
111
|
+
|
|
112
|
+
| Name | Meaning |
|
|
113
|
+
| --- | --- |
|
|
114
|
+
| `label` | the caption **next to** a control (CheckBox, RadioButton, FormField, Button, action objects) |
|
|
115
|
+
| `text` | the content a control **itself** displays (Tag, LookupEditor display text) |
|
|
116
|
+
| `title` | the title of a container or entry (Card, Box, Page, Dialog, accordion item, step, column header) |
|
|
117
|
+
| `comment` | a note under the title |
|
|
118
|
+
| `placeholder` | the hint shown when the value is empty |
|
|
119
|
+
| `emptyText` | the message when there is no data (list, table, dropdown) |
|
|
120
|
+
| `noResultsText` | the message when data exists but the filter matches nothing |
|
|
121
|
+
| `xxxText` | the caption of a specific button: `confirmText` `closeText` `cancelText` |
|
|
122
|
+
| `labelSuffix` | label suffix (`':'`) |
|
|
123
|
+
|
|
124
|
+
- Retired: `topic` (→ `title`), `closeButton` (→ `closeText`), `emptyIndicator` (→ `emptyText`).
|
|
125
|
+
- Two-state switch captions are `checkedText` / `uncheckedText` (Switch's `checkLabel / uncheckLabel`) because they are content the control displays, not a caption beside it.
|
|
126
|
+
|
|
127
|
+
## R10 Data objects
|
|
128
|
+
|
|
129
|
+
**Action objects** (button bars, dialogs, cards, table rows and context menus share one shape):
|
|
130
|
+
|
|
131
|
+
```ts
|
|
132
|
+
interface Action<T = any> {
|
|
133
|
+
label: string; // caption
|
|
134
|
+
icon?: string;
|
|
135
|
+
tooltip?: string;
|
|
136
|
+
disabled?: boolean;
|
|
137
|
+
type?: ButtonType; // semantics (R6), no per-object literal unions
|
|
138
|
+
handler: (data: T) => void | Promise<void>;
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
- The function field is always `handler`; never `callback` / `handle` / `action`.
|
|
143
|
+
- The caption field is always `label`; never `text`.
|
|
144
|
+
- A separator is a `null` element (`ButtonActions` already does this); `ContextMenuItem.separator` aligns with it.
|
|
145
|
+
- `CardAction` gains `label`; `img` stays as a card-specific extension.
|
|
146
|
+
|
|
147
|
+
**Column definitions**: the header caption is `title` everywhere (ConciseListTable already is; `DataColumn.text` → `title`). `field` `width` `minWidth` `align` `wrap` `formatter` `visible` `resizable` `frozen` remain.
|
|
148
|
+
|
|
149
|
+
**Option objects**: `{ code, text }` is the default shape (matching the `keyField / textField` defaults) and can be remapped through the field-name props.
|
|
150
|
+
|
|
151
|
+
## R11 Callback and function type names
|
|
152
|
+
|
|
153
|
+
| Purpose | Pattern | Examples |
|
|
154
|
+
| --- | --- | --- |
|
|
155
|
+
| Event notification | `OnXxx` | `OnClick` `OnClose` `OnPageChange` `OnItemClick` `OnMenuItemClick` |
|
|
156
|
+
| Veto hook | `BeforeXxx` | `BeforeClose` `BeforeRemove` `BeforeNodeChange` `BeforeTransfer` |
|
|
157
|
+
| Getter | `GetXxx` | `GetText` `GetIcon` `GetRowActions` `GetCellStyle` |
|
|
158
|
+
| Predicate | `IsXxx` | `IsLeaf` `IsNodeVisible` `IsBranch` |
|
|
159
|
+
| Async loading | `XxxLoader` / `LoadXxx` | `ListLazyLoader` `TreeLazyLoader` `LoadChildren` |
|
|
160
|
+
| Compare / filter / format | `XxxFn` | `CompareFn` `FilterFn` `FormatFn` |
|
|
161
|
+
| Imperative "show" APIs | `ShowXxx` | `ShowInfo` `ShowConfirm` |
|
|
162
|
+
|
|
163
|
+
- Retired suffixes: `Handler` `Callback` `Fun` `Function`; retired prefix form: `FunFilter`.
|
|
164
|
+
- One name, one definition. The same type name exported with different signatures from two entry points (today's `GetRowActions`, `ActionCallback`) is a defect to fix immediately.
|
|
165
|
+
- `types.ts` holds only types shared across modules; a type used by one module lives in that module's directory and is exported from its `index.ts`.
|
|
166
|
+
|
|
167
|
+
## R12 Instance methods
|
|
168
|
+
|
|
169
|
+
- `export function xxx()` only; never `export let xxx = () => …` / `export const`.
|
|
170
|
+
- Bare verbs, matching DOM method names where one exists: `focus()` `blur()` `clear()` `open()` `close()` `reset()` `push()` `pop()`.
|
|
171
|
+
- Retired: `setFocus`, `closePopup`, `getNativeElement` (→ `getElement()`; the method returning the DOM node is always `getElement`).
|
|
172
|
+
- Methods are not passed in as props. `clear?: () => void`-style "parent injects a method into the child" is allowed only between internal components, never in a public component's Props.
|
|
173
|
+
|
|
174
|
+
## R13 Event interfaces and parameter names
|
|
175
|
+
|
|
176
|
+
- Exactly one event interface file: `src/lib/form/events.ts`, exporting `FocusEvents` `KeyboardEvents` `InputEvents` `MouseEvents` `CompositionEvents` `ClipboardEvents` and the aggregate `EditorEvents`.
|
|
177
|
+
- The parameter name is `event` everywhere.
|
|
178
|
+
- `CommonFieldProps<T>` gets `onfocus / onblur` via `extends FocusEvents` and declares only `onchange?: (value: T) => void` itself; components never re-declare those events.
|
|
179
|
+
- Lists of event names forwarded to native elements (the `keyboardAttrs` kind) are derived from the keys of those interfaces, never hand-written string arrays.
|
|
180
|
+
|
|
181
|
+
## R14 Defaults and type details
|
|
182
|
+
|
|
183
|
+
- `theme?: string` defaults to `undefined`; the default look is CSS's job, not `'theme-light'` in JS.
|
|
184
|
+
- `style?: string` / `class?: string` default to `''` and never accept `null`.
|
|
185
|
+
- Optional prop types do not include `null` (use `undefined`); `null` is allowed only when it is a meaningful business value ("explicitly cleared").
|
|
186
|
+
- Enum-like props use exported literal unions, never a bare `string`.
|
|
187
|
+
- The time-granularity type is `TimePrecision = 'H' | 'M' | 'S'`; the prop stays `precision` (sharing the name with NumberEditor's decimal `precision: number` is acceptable because they never co-exist on one component).
|
|
188
|
+
|
|
189
|
+
## R15 Snippet (slot) names
|
|
190
|
+
|
|
191
|
+
- Main content is `children`; named snippets use **a noun for position or role**: `header` `footer` `left` `right` `top` `bottom` `sidebar` `leadingIcon` `trailingIcon` `popup` `item` `tab` `node`.
|
|
192
|
+
- Retired: `headerBar` / `pageHeader` / `headerExt` (→ `header` / `headerExtra`), `fromChild / toChild` (→ `from / to`), `popupLayer` (→ `popup`).
|
|
193
|
+
- Render customization prefers Snippets; `itemRender` (component) and `tabRender` (function) stay for now — unifying them into `item` / `tab` snippets is a separate follow-up.
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## Appendix A — 5.0.x → 5.1.0 old → new
|
|
198
|
+
|
|
199
|
+
5.1.0 keeps none of the old names: every "Old" entry below no longer exists, callers must replace them wholesale.
|
|
200
|
+
|
|
201
|
+
### A1 Props, callbacks, instance methods
|
|
202
|
+
|
|
203
|
+
| Component / file | Old | New | Rule |
|
|
204
|
+
| --- | --- | --- | --- |
|
|
205
|
+
| Dialog, CommonDialog, DialogManager | `onClose` | `onclose` | R1 |
|
|
206
|
+
| CascadeOptionSelect, CascadePanel, OptionsBox | `onSelect` (loader) | `loadChildren` | R1/R11 |
|
|
207
|
+
| ConciseListTable | `rowClickHandler` | `onRowClick` | R1 |
|
|
208
|
+
| ConciseListTable | `setFocus()` | `focus()` | R12 |
|
|
209
|
+
| Navigator | `itemClickHandler` | `onItemClick` | R1 |
|
|
210
|
+
| TreeView | `onContextMenu` | `oncontextmenu` | R1 |
|
|
211
|
+
| TreeNodeView | `onToggle` | `ontoggle` | R1 |
|
|
212
|
+
| CommonPicker | `iconClickHandler` | `onIconClick` | R1 |
|
|
213
|
+
| CommonDialog | `confirmHandler` | `onconfirm` | R1 |
|
|
214
|
+
| CommonDialog | `enableConfirm` | `confirmable` | R5 |
|
|
215
|
+
| Tabs | `onremove` (returns boolean) | `beforeRemove` (veto) + `onremove` (notify) | R2 |
|
|
216
|
+
| TreeView | `onchange: OnNodeSelectionChange` (Promise<boolean>) | `beforeChange` + `onchange` | R2 |
|
|
217
|
+
| Transfer | `onchange: TransferData` | `beforeTransfer` + `onchange` | R2 |
|
|
218
|
+
| Dialog | `closeConfirm` | `beforeClose` | R2 |
|
|
219
|
+
| AttachmentEditor, ImageFilesField | `removeFileConfirm` | `beforeRemove` | R2 |
|
|
220
|
+
| AttachmentEditor (rewritten in 5.1) | `onUpload`, modal `FileUploadPanel` | removed; uploads run inline. New: `layout` `height` `multiple` `uploadText` `emptyText` `showThumbnail` `onPreview` `onremove` `ondownload` `onFileRejected` `onUploadError`, method `openFileDialog()` | R1 R6 R9 |
|
|
221
|
+
| ImageFilesField (rewritten in 5.1) | component `ImageFilesField`, export `./ImageFiles`, folder `image-files` | `ImageEditor`, `./ImageEditor`, `image_editor`; same props as AttachmentEditor plus `previewable` `onPreview` | R5 |
|
|
222
|
+
| AttachmentEditor | export path `./AttachmentFiles` | `./AttachmentEditor` | — |
|
|
223
|
+
| Dialog | `hideClose` | `closable=false` | R5 |
|
|
224
|
+
| Dialog | `closeButton` | `closeText` | R9 |
|
|
225
|
+
| ModalPopover | `canClose` | `closable` | R5 |
|
|
226
|
+
| Picker family, LookupEditor, TimeEditor | `mandatory` | `clearable=false` | R5 |
|
|
227
|
+
| CommonEditor | `canClean` | `clearable` | R5 |
|
|
228
|
+
| CommonRangeEditor | `showFromClean / showToClean` | `fromClearable / toClearable` | R5 |
|
|
229
|
+
| BasePicker, CommonPicker | `isOpen` | `expanded` | R5 |
|
|
230
|
+
| AccordionItemView | `isOpen` | `expanded` | R5 |
|
|
231
|
+
| CommonPopupEditor | `hasFocus` | internal state | R3 |
|
|
232
|
+
| CommonPopupEditor | `closePopup()` | `close()` | R12 |
|
|
233
|
+
| CommonEditor | `getNativeElement()` | `getElement()` | R12 |
|
|
234
|
+
| ContentPanel | `displayHorizontalScroll` | `showHorizontalScroll` | R5 |
|
|
235
|
+
| IndicatorColumn | `displayNo` | `showRowNo` | R5 |
|
|
236
|
+
| CommonPicker | `displayAction` | `showAction` | R5 |
|
|
237
|
+
| InputOptionsSelect | `displayCode` | `showCode` | R5 |
|
|
238
|
+
| ScrollBar | `enable` | `disabled` | R5 |
|
|
239
|
+
| OptionsSelect, OptionsMultiSelect | `disableOptions` | `disabledOptions` | R5 |
|
|
240
|
+
| FormEditor, CommonPicker, CommonRangeEditor | `className` | `class` | R4 |
|
|
241
|
+
| Card, Box | `contentStyle` | `content$style` | R4 |
|
|
242
|
+
| GroupCheckBox, GroupRadioBox | `itemStyle` | `item$style` | R4 |
|
|
243
|
+
| Popover | `bodyClass` | `body$class` | R4 |
|
|
244
|
+
| Pagination, PaginationPanel | `type` | `variant` | R6 |
|
|
245
|
+
| Pagination, PaginationPanel | `big: boolean` | `size: Size` | R6 |
|
|
246
|
+
| ProgressBar | `type` | `variant` | R6 |
|
|
247
|
+
| ProgressBar | `size: number` / `height: number` | `diameter` / `thickness` | R6 |
|
|
248
|
+
| Tag | `size: 'middle'` | `'medium'` | R6 |
|
|
249
|
+
| Button, IconButton, TextButton, Tag | `size: 'big'` | `'large'` | R6 |
|
|
250
|
+
| NavigatorMenu | `variant: 'vertical' \| 'horizontal'` | `direction` | R6 |
|
|
251
|
+
| GridField | `arrangement` | `direction` | R6 |
|
|
252
|
+
| FormField | `layout` / `FieldLayout` | `direction` / `Direction` | R6 |
|
|
253
|
+
| Card | `actionsAlign` | `actions$align` | R4 |
|
|
254
|
+
| ColumnsLayout | `leftMin / leftMax / rightMin / rightMax` | `leftMinWidth / leftMaxWidth / rightMinWidth / rightMaxWidth` | R7 |
|
|
255
|
+
| RowsLayout | `topMin / topMax / bottomMin / bottomMax` | `topMinHeight / topMaxHeight / bottomMinHeight / bottomMaxHeight` | R7 |
|
|
256
|
+
| YearPickupPanel | `minYear / maxYear` | `min / max` | R7 |
|
|
257
|
+
| Drawer | `width: number` | `width: number \| string` | R7 |
|
|
258
|
+
| Accordion | `accordions` | `items` | R8 |
|
|
259
|
+
| NavigatorMenu | `menuItems` | `items` | R8 |
|
|
260
|
+
| ProgressStepBar | `steps` | `items` | R8 |
|
|
261
|
+
| ActionBar | `buttons` | `actions` | R8 |
|
|
262
|
+
| UnitNumberEditor | `units` | `options` | R8 |
|
|
263
|
+
| PromptsTextEditor | `words` | `options` | R8 |
|
|
264
|
+
| ListBox | `selectedList` | `selectedItems` | R8 |
|
|
265
|
+
| DataTable | `emptyIndicator` | `emptyText` | R9 |
|
|
266
|
+
| ProgressStep, ProgressStepBlock | `topic` | `title` | R9 |
|
|
267
|
+
| Switch | `checkLabel / uncheckLabel` | `checkedText / uncheckedText` | R9 |
|
|
268
|
+
| PaginationPanel | `rowCountLabel` | `rowCountText` | R9 |
|
|
269
|
+
| DataColumn | `warp` | `wrap` | typo |
|
|
270
|
+
| DataColumn | `text` | `title` | R10 |
|
|
271
|
+
| Pagination, PaginationPanel | `pageNo` (not bindable) | `pageNo = $bindable()` | R3 |
|
|
272
|
+
| 7 components | `export let focus = () => …` | `export function focus()` | R12 |
|
|
273
|
+
| Accordion | `theme = 'theme-light'` | `theme = undefined` | R14 |
|
|
274
|
+
| ListBox | `style?: string \| null` | `style?: string` | R14 |
|
|
275
|
+
| DateTimePicker, TimePanel | `Precision` / inline literal | `TimePrecision` | R14 |
|
|
276
|
+
|
|
277
|
+
### A2 Defects fixed together with 5.1.0
|
|
278
|
+
|
|
279
|
+
| Location | Change |
|
|
280
|
+
| --- | --- |
|
|
281
|
+
| `EditorEvents.ts` `keyboardAttrs` | derive from the `KeyboardEvents` keys (includes `onkeydown`) |
|
|
282
|
+
| TextEditor, NumberEditor | wire up `onfocus / onblur / onkeydown / onkeyup / onkeypress` |
|
|
283
|
+
| `types.ts` | remove `GetRowActions` (clashes with DataTable), `HandleAction`, `OnSelectedHandler`; move `CellAction / GetCellAction` into `data_table/lib` |
|
|
284
|
+
| `ContextMenuItem.ts` | `ActionCallback` → `ContextMenuAction`; fields `text`/`action` → `label`/`handler` |
|
|
285
|
+
| ImageFilesField | remove `text` from Props |
|
|
286
|
+
| AttachmentEditor, ImageEditor | type icons `icon_google_image` / `icon_google_picture` do not exist in the icon font (image / PDF types never had an icon) → `icon_google_insert_photo` / `icon_google_picture_as_pdf` |
|
|
287
|
+
| InputOptionsSelect README | align with the implementation (implement `hideOptions / disabledOptions` or drop the docs) |
|
|
288
|
+
|
|
289
|
+
### A3 Types and data objects
|
|
290
|
+
|
|
291
|
+
| Old | New |
|
|
292
|
+
| --- | --- |
|
|
293
|
+
| `MouseClickHandler` | `OnClick` |
|
|
294
|
+
| `TabActionHandler` | `OnTabAction` |
|
|
295
|
+
| `TabCloseHandler` | `BeforeTabClose` |
|
|
296
|
+
| `RowClickHandler` | `OnRowClick` |
|
|
297
|
+
| `ItemClickHandler` | `OnItemClick` |
|
|
298
|
+
| `OnMenuClick` | `OnMenuItemClick` |
|
|
299
|
+
| `OnNodeSelectionChange` | `BeforeNodeChange` |
|
|
300
|
+
| `TransferData` | `BeforeTransfer` |
|
|
301
|
+
| `OnSelectHandler` / `OnChangeHandler` | `OnSelect` / `OnChange` |
|
|
302
|
+
| `FunFilter` | `FilterFn` |
|
|
303
|
+
| `CompareFunction` | `CompareFn` |
|
|
304
|
+
| `FormatCell` | `FormatCellFn` |
|
|
305
|
+
| `UploadFile` (class), `FileUploadBar`, `FileUploadPanel` | removed; upload tasks are the component-internal `UploadTask` (`id/file/name/type/size/progress/status/error/thumbnail`); new `UploadedFile` (base of `AttachmentFile` / `ImageFile`) and `RejectReason` |
|
|
306
|
+
| `NodeVisibleFun` | `IsNodeVisible` |
|
|
307
|
+
| `IsLeafDetermine` | `IsLeaf` |
|
|
308
|
+
| `LoadChildrenFun` | `LoadChildren` |
|
|
309
|
+
| `ShowInfoFun` / `ShowConfirmFun` | `ShowInfo` / `ShowConfirm` |
|
|
310
|
+
| `ActionFunction` / `ActionCallback` / `HandleAction` | `ActionHandler` (defined once in `types.ts`; the one permitted "Handler": here it is the noun, not a suffix) |
|
|
311
|
+
| `HrefLink.text` / `HrefLink.action` / `HrefAction` | `label` / `handler` / `OnHrefClick` |
|
|
312
|
+
| `RowEventHandler` / `RowSelectEventHandler` / `SelectionEventHandler` / `TableEventHandler` (DataTable internals) | `OnRowExpand` / `OnRowSelect` / `OnSelectAll` / `OnWidthChange` |
|
|
313
|
+
| `ErrorHandler` (FileUpload) | `OnError` |
|
|
314
|
+
| `DataColumn.escapeHTML` / `Column.escapeHTML` (misnomer) | removed, only `renderHTML` remains |
|
|
315
|
+
| `ListBox.onSelectChange`, `CalendarBase.onselect`, `ConciseListTable.setFocus()`, `Dialog.hideClose` / `closeButton` | removed |
|
|
316
|
+
| `RowAction.callback`, `CardAction.callback`, `CellAction.handle`, `ContextMenuItem.action` | `handler` |
|
|
317
|
+
| `CellAction.text`, `ContextMenuItem.text` | `label` |
|
|
318
|
+
| `RowAction.type: 'primary' \| …` | `type?: ButtonType` |
|
|
319
|
+
| `ButtonSize` | `Size` |
|
|
320
|
+
| `FieldLayout` | `Direction` |
|
|
321
|
+
| `EditorEvents` in `form/types.ts` + `common_editor/EditorEvents.ts` | merged into `form/events.ts` (`EditorEvents`, `KeyboardEvents`, `FocusEvents` … are imported only from there), parameter `event` |
|
|
322
|
+
| `headerBar` / `pageHeader` / `headerExt` / `fromChild` / `toChild` / `popupLayer` | `header` / `header` / `headerExtra` / `from` / `to` / `popup` |
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
## Appendix B — Vocabulary (check here before naming anything)
|
|
327
|
+
|
|
328
|
+
**State booleans**: `disabled` `readonly` `compact` `visible` `expanded` `virtual` `round` `shadow` `exclusive` `autoFit` `autoHeight` `autoScroll` `autofocus` `indeterminate` `frozen` `alternative`
|
|
329
|
+
**Capability booleans**: `closable` `removable` `clearable` `resizable` `selectable` `expandable` `confirmable` `sortable` `previewable`
|
|
330
|
+
**Show booleans**: `showText` `showIndicator` `showRowNo` `showAction` `showCode` `showHorizontalScroll` `showVerticalScroll` `showHex` `showRgb` `showAlternative` `showThumbnail`
|
|
331
|
+
**Appearance**: `type` `variant` `direction` `layout` `position` `align` `size` `theme` `style` `class` `color` `icon`
|
|
332
|
+
**Dimensions**: `width` `height` `minWidth` `maxWidth` `minHeight` `maxHeight` `rowHeight` `headerHeight` `diameter` `thickness` `margin` `offset` `gap` `span` `rowSpan` `colSpan`
|
|
333
|
+
**Ranges**: `min` `max` `fromValue` `toValue` `maxFiles` `maxSize` `maxLength` `multiple` `accept` `precision` `allowNegative`
|
|
334
|
+
**Collections**: `list` `options` `items` `actions` `tree` `nodes` `columns` `tabs`
|
|
335
|
+
**Selection**: `value` `selectedRows` `selectedItems` `activeTab` `activeItem` `activeNode` `group`
|
|
336
|
+
**Field mapping**: `keyField` `textField` `iconField` `childrenField` `abbrField`
|
|
337
|
+
**Text**: `label` `text` `title` `comment` `placeholder` `emptyText` `noResultsText` `confirmText` `closeText` `cancelText` `checkedText` `uncheckedText` `uploadText` `labelSuffix` `tooltip` `error`
|
|
338
|
+
**Loading and filtering**: `lazyLoader` `loadChildren` `filter` `filterFn` `filterText` `filterPlaceholder`
|
|
339
|
+
**Pass-through parts**: `input$` `menu$` `label$` `content$` `item$` `body$` `header$` `footer$` `dialog$` `page$` `box$` `tag$` `actions$`
|
|
340
|
+
**Events (notifications)**: `onchange` `onclick` `ondblclick` `onfocus` `onblur` `oninput` `onclose` `onselect` `ondelete` `onremove` `onrefresh` `onconfirm` `onaction` `ondownload` `onretry` `onkeydown` `onkeyup` `onkeypress` `oncontextmenu` `ontoggle` `onItemClick` `onRowClick` `onIconClick` `onPageSizeChange` `onFileUploaded` `onFileRejected` `onUploadError` `onPreview` `onResizeEnd`; between DataTable's internal panels: `onCellClick` `onWidthChange` `onRowExpand` `onRowSelectChange` `onToggleSelectAll`
|
|
341
|
+
**Hooks (veto)**: `beforeClose` `beforeRemove` `beforeChange` `beforeTransfer`
|
|
342
|
+
**Instance methods**: `focus()` `blur()` `clear()` `open()` `close()` `reset()` `push()` `pop()` `getElement()` `openFileDialog()`
|
|
343
|
+
**Snippets**: `children` `header` `headerExtra` `footer` `left` `right` `top` `bottom` `sidebar` `home` `leadingIcon` `trailingIcon` `popup` `item` `tab` `node` `chevronIcon` `nodeIcon` `from` `to`
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
347
|
+
## Appendix C — Checklist for a new component
|
|
348
|
+
|
|
349
|
+
1. Every prop name is in Appendix B, or the new word has been added there.
|
|
350
|
+
2. `value` is `$bindable()` with a concrete type; every state the caller may write back is bindable.
|
|
351
|
+
3. Callbacks are all `onXxx` (notification, void) or `beforeXxx` (veto, boolean | Promise<boolean>); no `xxxHandler` / `xxxCallback` / `xxxConfirm`.
|
|
352
|
+
4. Arguments: `onchange` passes the value; DOM-named events pass `event`.
|
|
353
|
+
5. Booleans are positive, without `is/has`; `show` for visibility, `xxxable` for capability.
|
|
354
|
+
6. `type` is semantics only, `variant` is appearance, `direction` is orientation, `size` uses `Size`.
|
|
355
|
+
7. Sub-element pass-through is `<part>$<attribute>` only; the root uses `style` / `class`.
|
|
356
|
+
8. Collections are `list / options / items / actions`; multi-select `selectedXxx`, highlight `activeXxx`.
|
|
357
|
+
9. Text uses `label / text / title / placeholder / emptyText / xxxText`.
|
|
358
|
+
10. In data objects the function is `handler` and the caption is `label`.
|
|
359
|
+
11. Exported type names follow R11, and no name is exported with different meanings from `./types` and a module entry.
|
|
360
|
+
12. Instance methods are `export function`, bare verbs.
|
|
361
|
+
13. `theme` defaults to `undefined`, `style / class` to `''`.
|
|
362
|
+
14. After regenerating `docs/components`, the property tables contain none of the old names from Appendix A; `pnpm run check:naming` reports 0 findings.
|