@asam-ui/pro 0.0.0-stage → 2.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/EDITOR_THIRD_PARTY_NOTICES.md +225 -0
- package/LICENSE +68 -0
- package/README.md +250 -2
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/AsamAdminLayout-DMsByuNN.js +205 -0
- package/dist/Controller-DF6lMt-H.js +3817 -0
- package/dist/Index-DpcRToBH.js +1263 -0
- package/dist/Navigation-D9wz-rqJ.js +202 -0
- package/dist/Resolve-Cq2BDFwo.js +7 -0
- package/dist/_plugin-vue_export-helper-C05QHVBA.js +8 -0
- package/dist/application/composables/environment/index.d.ts +2 -0
- package/dist/application/composables/environment/index.js +2 -0
- package/dist/application/composables/index.d.ts +14 -0
- package/dist/application/composables/index.js +40 -0
- package/dist/application/composables/on-mounted-or-activated/index.d.ts +2 -0
- package/dist/application/composables/on-mounted-or-activated/index.js +2 -0
- package/dist/application/composables/raf/index.d.ts +2 -0
- package/dist/application/composables/raf/index.js +2 -0
- package/dist/application/composables/use-click-away/index.d.ts +3 -0
- package/dist/application/composables/use-click-away/index.js +2 -0
- package/dist/application/composables/use-count-down/index.d.ts +3 -0
- package/dist/application/composables/use-count-down/index.js +2 -0
- package/dist/application/composables/use-custom-field-value/AsamCustomField.vue.d.ts +118 -0
- package/dist/application/composables/use-custom-field-value/Types.d.ts +27 -0
- package/dist/application/composables/use-custom-field-value/index.d.ts +6 -0
- package/dist/application/composables/use-custom-field-value/index.js +2 -0
- package/dist/application/composables/use-event-listener/index.d.ts +5 -0
- package/dist/application/composables/use-event-listener/index.js +7 -0
- package/dist/application/composables/use-page-visibility/index.d.ts +2 -0
- package/dist/application/composables/use-page-visibility/index.js +2 -0
- package/dist/application/composables/use-raf/index.d.ts +2 -0
- package/dist/application/composables/use-raf/index.js +2 -0
- package/dist/application/composables/use-rect/index.d.ts +2 -0
- package/dist/application/composables/use-rect/index.js +2 -0
- package/dist/application/composables/use-relation/index.d.ts +10 -0
- package/dist/application/composables/use-relation/index.js +17 -0
- package/dist/application/composables/use-scroll-parent/index.d.ts +2 -0
- package/dist/application/composables/use-scroll-parent/index.js +2 -0
- package/dist/application/composables/use-toggle/index.d.ts +2 -0
- package/dist/application/composables/use-toggle/index.js +2 -0
- package/dist/application/composables/use-window-size/index.d.ts +2 -0
- package/dist/application/composables/use-window-size/index.js +2 -0
- package/dist/application/index.d.ts +5 -0
- package/dist/application/index.js +16 -0
- package/dist/application/navigation/EmbedPage.vue.d.ts +18 -0
- package/dist/application/navigation/Navigation.d.ts +48 -0
- package/dist/application/navigation/NavigationMenuItems.vue.d.ts +8 -0
- package/dist/application/navigation/NavigationPage.vue.d.ts +10 -0
- package/dist/application/navigation/NavigationShell.vue.d.ts +22 -0
- package/dist/application/navigation/NavigationToolbar.vue.d.ts +11 -0
- package/dist/application/navigation/NavigationView.vue.d.ts +8 -0
- package/dist/application/navigation/Types.d.ts +53 -0
- package/dist/application/navigation/index.d.ts +6 -0
- package/dist/application/navigation/index.js +3 -0
- package/dist/application/preferences/Cache.d.ts +25 -0
- package/dist/application/preferences/I18n.d.ts +25 -0
- package/dist/application/preferences/LocaleLoader.d.ts +22 -0
- package/dist/application/preferences/Preferences.d.ts +16 -0
- package/dist/application/preferences/Storage.d.ts +9 -0
- package/dist/application/preferences/Types.d.ts +38 -0
- package/dist/application/preferences/index.d.ts +9 -0
- package/dist/application/preferences/index.js +2 -0
- package/dist/application/security/Navigation.d.ts +107 -0
- package/dist/application/security/Security.d.ts +74 -0
- package/dist/application/security/Types.d.ts +49 -0
- package/dist/application/security/index.d.ts +4 -0
- package/dist/application/security/index.js +2 -0
- package/dist/application/transport/Client.d.ts +17 -0
- package/dist/application/transport/Latest.d.ts +7 -0
- package/dist/application/transport/Provider.d.ts +4 -0
- package/dist/application/transport/Types.d.ts +60 -0
- package/dist/application/transport/index.d.ts +4 -0
- package/dist/application/transport/index.js +2 -0
- package/dist/chunk-DmhlhrBa.js +11 -0
- package/dist/components/index.d.ts +50 -0
- package/dist/components/index.js +4 -0
- package/dist/components-ST0i0Wqf.js +17084 -0
- package/dist/configuration/AsamApplicationProvider.vue.d.ts +13 -0
- package/dist/configuration/AsamPermission.vue.d.ts +13 -0
- package/dist/configuration/Context.d.ts +7 -0
- package/dist/configuration/Index.d.ts +5 -0
- package/dist/configuration/Permission.d.ts +5 -0
- package/dist/configuration/Types.d.ts +65 -0
- package/dist/detail/AsamDetailDialog.vue.d.ts +26 -0
- package/dist/detail/AsamDetailDrawer.vue.d.ts +26 -0
- package/dist/detail/AsamDetailPanel.vue.d.ts +36 -0
- package/dist/detail/Controller.d.ts +2 -0
- package/dist/detail/OverlayTypes.d.ts +61 -0
- package/dist/detail/Types.d.ts +50 -0
- package/dist/display/cards/Animation.d.ts +6 -0
- package/dist/display/cards/AsamCardGroup.vue.d.ts +14 -0
- package/dist/display/cards/AsamCountTo.vue.d.ts +13 -0
- package/dist/display/cards/AsamDisplayCard.vue.d.ts +15 -0
- package/dist/display/cards/AsamNumberDisplay.vue.d.ts +6 -0
- package/dist/display/cards/AsamProAvatarGroup.vue.d.ts +15 -0
- package/dist/display/cards/AsamStatisticCard.vue.d.ts +13 -0
- package/dist/display/cards/AsamTrend.vue.d.ts +6 -0
- package/dist/display/cards/Format.d.ts +5 -0
- package/dist/display/cards/Index.d.ts +9 -0
- package/dist/display/cards/Types.d.ts +106 -0
- package/dist/display/guidance/AsamGuidedTour.vue.d.ts +29 -0
- package/dist/display/guidance/AsamHelpPanel.vue.d.ts +27 -0
- package/dist/display/guidance/AsamNotificationMenu.vue.d.ts +19 -0
- package/dist/display/guidance/AsamNotificationPanel.vue.d.ts +34 -0
- package/dist/display/guidance/Async.d.ts +9 -0
- package/dist/display/guidance/Focus.d.ts +2 -0
- package/dist/display/guidance/Index.d.ts +5 -0
- package/dist/display/guidance/Model.d.ts +7 -0
- package/dist/display/guidance/Types.d.ts +107 -0
- package/dist/display/shared/OverlayStyle.d.ts +6 -0
- package/dist/display/states/AsamErrorBoundary.vue.d.ts +22 -0
- package/dist/display/states/AsamException.vue.d.ts +21 -0
- package/dist/display/states/AsamFieldAnnotation.vue.d.ts +19 -0
- package/dist/display/states/AsamPageSkeleton.vue.d.ts +20 -0
- package/dist/display/states/AsamPageWatermark.vue.d.ts +16 -0
- package/dist/display/states/AsamStatePanel.vue.d.ts +25 -0
- package/dist/display/states/Index.d.ts +8 -0
- package/dist/display/states/Tools.d.ts +29 -0
- package/dist/display/states/Types.d.ts +114 -0
- package/dist/display/text-time/AsamProCalendar.vue.d.ts +17 -0
- package/dist/display/text-time/AsamProCountdown.vue.d.ts +17 -0
- package/dist/display/text-time/AsamRelativeTime.vue.d.ts +11 -0
- package/dist/display/text-time/AsamTextEllipsis.vue.d.ts +10 -0
- package/dist/display/text-time/AsamWordCount.vue.d.ts +11 -0
- package/dist/display/text-time/Clock.d.ts +6 -0
- package/dist/display/text-time/Core.d.ts +10 -0
- package/dist/display/text-time/Index.d.ts +7 -0
- package/dist/display/text-time/Types.d.ts +99 -0
- package/dist/editor/AsamEditorActions.vue.d.ts +17 -0
- package/dist/editor/AsamEditorFields.vue.d.ts +38 -0
- package/dist/editor/AsamEditorForm.vue.d.ts +32 -0
- package/dist/editor/AsamFormDialog.vue.d.ts +28 -0
- package/dist/editor/Controller.d.ts +2 -0
- package/dist/editor/Coordinator.d.ts +3 -0
- package/dist/editor/EditorFormTypes.d.ts +65 -0
- package/dist/editor/Layout.d.ts +10 -0
- package/dist/editor/Snapshot.d.ts +4 -0
- package/dist/editor/Types.d.ts +92 -0
- package/dist/en-CcfyIwWv.js +1023 -0
- package/dist/fields/AsamField.d.ts +36 -0
- package/dist/fields/I18n.d.ts +70 -0
- package/dist/fields/Model.d.ts +13 -0
- package/dist/fields/Options.d.ts +37 -0
- package/dist/fields/Schema.d.ts +8 -0
- package/dist/fields/Types.d.ts +106 -0
- package/dist/fields/choice/AsamChoiceCard.vue.d.ts +74 -0
- package/dist/fields/choice/AsamChoiceGroup.vue.d.ts +25 -0
- package/dist/fields/choice/Color.d.ts +2 -0
- package/dist/fields/choice/Fields.d.ts +8 -0
- package/dist/fields/choice/Index.d.ts +6 -0
- package/dist/fields/choice/Selection.d.ts +5 -0
- package/dist/fields/choice/Types.d.ts +97 -0
- package/dist/fields/editors/AsamContentEditor.vue.d.ts +25 -0
- package/dist/fields/editors/AsamEditorResourceStatus.vue.d.ts +19 -0
- package/dist/fields/editors/Fields.d.ts +13 -0
- package/dist/fields/editors/Index.d.ts +5 -0
- package/dist/fields/editors/Markdown.d.ts +3 -0
- package/dist/fields/editors/Model.d.ts +5 -0
- package/dist/fields/editors/Types.d.ts +52 -0
- package/dist/fields/modes/AsamFieldView.d.ts +37 -0
- package/dist/fields/modes/Binding.d.ts +2 -0
- package/dist/fields/modes/Index.d.ts +5 -0
- package/dist/fields/modes/Read.d.ts +3 -0
- package/dist/fields/modes/Resource.d.ts +4 -0
- package/dist/fields/modes/Transform.d.ts +21 -0
- package/dist/fields/modes/Types.d.ts +72 -0
- package/dist/fields/numeric/Fields.d.ts +6 -0
- package/dist/fields/numeric/Index.d.ts +3 -0
- package/dist/fields/numeric/MoneyInput.d.ts +3 -0
- package/dist/fields/numeric/Types.d.ts +61 -0
- package/dist/fields/numeric/Validation.d.ts +12 -0
- package/dist/fields/options/Fields.d.ts +15 -0
- package/dist/fields/options/Hierarchy.d.ts +13 -0
- package/dist/fields/options/Index.d.ts +5 -0
- package/dist/fields/options/Paged.d.ts +23 -0
- package/dist/fields/options/Region.d.ts +9 -0
- package/dist/fields/options/Types.d.ts +48 -0
- package/dist/fields/resources/AsamResourceField.vue.d.ts +32 -0
- package/dist/fields/resources/Controller.d.ts +46 -0
- package/dist/fields/resources/Fields.d.ts +5 -0
- package/dist/fields/resources/Index.d.ts +5 -0
- package/dist/fields/resources/Model.d.ts +8 -0
- package/dist/fields/resources/Types.d.ts +86 -0
- package/dist/fields/temporal/Core.d.ts +10 -0
- package/dist/fields/temporal/Fields.d.ts +4 -0
- package/dist/fields/temporal/Index.d.ts +3 -0
- package/dist/fields/temporal/Types.d.ts +48 -0
- package/dist/fields/text/Captcha.d.ts +3 -0
- package/dist/fields/text/Fields.d.ts +6 -0
- package/dist/fields/text/Index.d.ts +3 -0
- package/dist/fields/text/Types.d.ts +80 -0
- package/dist/form/flows/AsamFilterPopover.vue.d.ts +51 -0
- package/dist/form/flows/AsamFormDrawer.vue.d.ts +34 -0
- package/dist/form/flows/AsamLoginForm.vue.d.ts +42 -0
- package/dist/form/flows/AsamLoginPage.vue.d.ts +51 -0
- package/dist/form/flows/AsamStepsForm.vue.d.ts +52 -0
- package/dist/form/flows/FlowFields.vue.d.ts +33 -0
- package/dist/form/flows/Focus.d.ts +2 -0
- package/dist/form/flows/Index.d.ts +6 -0
- package/dist/form/flows/LoginTemplateMessages.d.ts +45 -0
- package/dist/form/flows/OverlayStyle.d.ts +1 -0
- package/dist/form/flows/Session.d.ts +33 -0
- package/dist/form/flows/Types.d.ts +63 -0
- package/dist/form/schema/AsamSchemaForm.vue.d.ts +42 -0
- package/dist/form/schema/Controller.d.ts +47 -0
- package/dist/form/schema/Index.d.ts +6 -0
- package/dist/form/schema/Path.d.ts +10 -0
- package/dist/form/schema/Schema.d.ts +31 -0
- package/dist/form/schema/SchemaNodes.d.ts +34 -0
- package/dist/form/schema/Types.d.ts +114 -0
- package/dist/form/shared/ValidationSummary.vue.d.ts +17 -0
- package/dist/i18n/Parameters.d.ts +78 -0
- package/dist/i18n/Types.d.ts +10 -0
- package/dist/i18n/application/Parameters.d.ts +55 -0
- package/dist/i18n/application/Resolve.d.ts +7 -0
- package/dist/i18n/application/en.d.ts +53 -0
- package/dist/i18n/application/zh-CN.d.ts +53 -0
- package/dist/i18n/en.d.ts +1014 -0
- package/dist/i18n/en.js +2 -0
- package/dist/i18n/fields/Parameters.d.ts +467 -0
- package/dist/i18n/fields/en.d.ts +349 -0
- package/dist/i18n/fields/zh-CN.d.ts +349 -0
- package/dist/i18n/index.d.ts +11 -0
- package/dist/i18n/index.js +4 -0
- package/dist/i18n/tables/Parameters.d.ts +687 -0
- package/dist/i18n/tables/en.d.ts +542 -0
- package/dist/i18n/tables/zh-CN.d.ts +542 -0
- package/dist/i18n/zh-CN.d.ts +1008 -0
- package/dist/i18n/zh-CN.js +2 -0
- package/dist/i18n-CJTJI6vg.js +172 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +13 -0
- package/dist/layout/AsamActionBar.vue.d.ts +16 -0
- package/dist/layout/AsamAdminLayout.vue.d.ts +25 -0
- package/dist/layout/AsamContentGrid.vue.d.ts +14 -0
- package/dist/layout/AsamFooter.vue.d.ts +11 -0
- package/dist/layout/AsamLayoutSettings.vue.d.ts +31 -0
- package/dist/layout/AsamPageContainer.vue.d.ts +20 -0
- package/dist/layout/Context.d.ts +2 -0
- package/dist/layout/Index.d.ts +8 -0
- package/dist/layout/Settings.d.ts +4 -0
- package/dist/layout/Types.d.ts +118 -0
- package/dist/list/AsamListRowActions.d.ts +23 -0
- package/dist/list/AsamProTable.d.ts +29 -0
- package/dist/list/AsamSearchForm.d.ts +67 -0
- package/dist/list/Controller.d.ts +3 -0
- package/dist/list/QueryBoundary.d.ts +8 -0
- package/dist/list/RowActionAdapter.d.ts +9 -0
- package/dist/list/Types.d.ts +134 -0
- package/dist/lists/AsamCardList.d.ts +15 -0
- package/dist/lists/AsamListCover.vue.d.ts +7 -0
- package/dist/lists/AsamProList.d.ts +9 -0
- package/dist/lists/AsamProTaskCard.vue.d.ts +21 -0
- package/dist/lists/Index.d.ts +4 -0
- package/dist/lists/Types.d.ts +135 -0
- package/dist/navigation-BVLFymx7.js +395 -0
- package/dist/preferences-DgHizA2w.js +335 -0
- package/dist/public-api.d.ts +3662 -0
- package/dist/resolver/index.d.ts +33 -0
- package/dist/resolver/index.js +4447 -0
- package/dist/security-B_pdVCWk.js +299 -0
- package/dist/style.css +2 -0
- package/dist/table/ActionIcon.d.ts +5 -0
- package/dist/table/Appearance.d.ts +37 -0
- package/dist/table/ColumnVisibility.d.ts +71 -0
- package/dist/table/Density.d.ts +3 -0
- package/dist/table/Empty.d.ts +14 -0
- package/dist/table/I18n.d.ts +73 -0
- package/dist/table/RowActionPresentation.d.ts +5 -0
- package/dist/table/RowActions.d.ts +80 -0
- package/dist/table/TableDensity.vue.d.ts +19 -0
- package/dist/table/TablePagination.vue.d.ts +24 -0
- package/dist/table/TableToolbar.vue.d.ts +18 -0
- package/dist/table/TableViewport.vue.d.ts +13 -0
- package/dist/table/editing/AsamEditableTable.d.ts +69 -0
- package/dist/table/editing/AsamEditableTable.vue.d.ts +61 -0
- package/dist/table/editing/AsamSortableTable.vue.d.ts +61 -0
- package/dist/table/editing/AsamTableEditingHost.vue.d.ts +52 -0
- package/dist/table/editing/CellEditor.vue.d.ts +20 -0
- package/dist/table/editing/Controller.d.ts +2 -0
- package/dist/table/editing/ControllerCell.vue.d.ts +18 -0
- package/dist/table/editing/Drag.d.ts +29 -0
- package/dist/table/editing/EntryForm.vue.d.ts +20 -0
- package/dist/table/editing/Host.d.ts +11 -0
- package/dist/table/editing/HostTypes.d.ts +53 -0
- package/dist/table/editing/Index.d.ts +9 -0
- package/dist/table/editing/InlineModel.d.ts +24 -0
- package/dist/table/editing/InlineTypes.d.ts +135 -0
- package/dist/table/editing/LegacyEditableTable.d.ts +66 -0
- package/dist/table/editing/LegacyMotion.d.ts +10 -0
- package/dist/table/editing/Motion.d.ts +19 -0
- package/dist/table/editing/Order.d.ts +7 -0
- package/dist/table/editing/SaveFeedback.d.ts +4 -0
- package/dist/table/editing/Types.d.ts +71 -0
- package/dist/table/operations/Coordinator.d.ts +3 -0
- package/dist/table/operations/Index.d.ts +6 -0
- package/dist/table/operations/Preferences.d.ts +7 -0
- package/dist/table/operations/Selection.d.ts +2 -0
- package/dist/table/operations/Snapshot.d.ts +5 -0
- package/dist/table/operations/Types.d.ts +157 -0
- package/dist/table/operations/View.d.ts +108 -0
- package/dist/table/range/AsamTableRange.vue.d.ts +19 -0
- package/dist/table/range/Controller.d.ts +3 -0
- package/dist/table/range/Index.d.ts +3 -0
- package/dist/table/range/Types.d.ts +127 -0
- package/dist/table/renderTableInViewport.d.ts +6 -0
- package/dist/table/structured/AsamStructuredTable.d.ts +2 -0
- package/dist/table/structured/Controller.d.ts +7 -0
- package/dist/table/structured/Forest.d.ts +4 -0
- package/dist/table/structured/Index.d.ts +6 -0
- package/dist/table/structured/Span.d.ts +5 -0
- package/dist/table/structured/Summary.d.ts +8 -0
- package/dist/table/structured/Types.d.ts +137 -0
- package/dist/table/transfer/AsamTableTransfer.vue.d.ts +11 -0
- package/dist/table/transfer/Controller.d.ts +3 -0
- package/dist/table/transfer/Gate.d.ts +3 -0
- package/dist/table/transfer/Index.d.ts +6 -0
- package/dist/table/transfer/Text.d.ts +25 -0
- package/dist/table/transfer/Types.d.ts +170 -0
- package/dist/table/virtual/AsamProVirtualTable.d.ts +22 -0
- package/dist/table/virtual/Index.d.ts +4 -0
- package/dist/table/virtual/Model.d.ts +16 -0
- package/dist/table/virtual/Styles.d.ts +2 -0
- package/dist/table/virtual/Types.d.ts +68 -0
- package/dist/templates/crud/AsamCrudPage.vue.d.ts +52 -0
- package/dist/templates/crud/Controller.d.ts +3 -0
- package/dist/templates/crud/DetailEntry.d.ts +46 -0
- package/dist/templates/crud/Index.d.ts +4 -0
- package/dist/templates/crud/Index.js +2 -0
- package/dist/templates/crud/Readonly.d.ts +3 -0
- package/dist/templates/crud/Structure.d.ts +8 -0
- package/dist/templates/crud/Types.d.ts +272 -0
- package/dist/templates/index.d.ts +1 -0
- package/dist/templates/index.js +10 -0
- package/dist/transport-Cky1a5c-.js +161 -0
- package/dist/types/application.d.ts +5 -0
- package/dist/types/components.d.ts +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.js +0 -0
- package/dist/types/templates.d.ts +1 -0
- package/dist/use-custom-field-value-DgA3wo05.js +108 -0
- package/dist/zh-CN-B5pAhh4V.js +56 -0
- package/dist/zh-CN-BBWziFEy.js +966 -0
- package/package.json +177 -3
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { InjectionKey, PropType } from 'vue';
|
|
2
|
+
import type { AsamButtonProps, AsamControlSize } from '@asam-ui/ui';
|
|
3
|
+
import './RowActions.css';
|
|
4
|
+
/** 内部呈现数据;权限及执行仍由原视图和控制器持有。 */
|
|
5
|
+
export interface RowActionItem {
|
|
6
|
+
readonly key: string;
|
|
7
|
+
readonly label: string;
|
|
8
|
+
readonly disabled: boolean;
|
|
9
|
+
readonly busy: boolean;
|
|
10
|
+
readonly retainFocus: boolean;
|
|
11
|
+
readonly presentation?: Readonly<Pick<AsamButtonProps, 'type' | 'plain' | 'link' | 'text'>>;
|
|
12
|
+
invoke(trigger?: HTMLElement): unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface RowActionHoverIntent {
|
|
15
|
+
dismiss(): void;
|
|
16
|
+
accepts(event: MouseEvent): boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const rowActionHoverIntentKey: InjectionKey<RowActionHoverIntent>;
|
|
19
|
+
/** 一个 CRUD 视图或独立表共享退出时的指针位置;关闭弹层不构成新的悬停意图。 */
|
|
20
|
+
export declare function useRowActionHoverIntent(): RowActionHoverIntent;
|
|
21
|
+
export declare const RowActions: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
22
|
+
items: {
|
|
23
|
+
type: PropType<readonly RowActionItem[]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
type: PropType<AsamControlSize>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
identity: {
|
|
31
|
+
type: ObjectConstructor;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
rowToken: {
|
|
35
|
+
type: ObjectConstructor;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
hoverIntent: {
|
|
39
|
+
type: PropType<RowActionHoverIntent>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
session: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
ready: BooleanConstructor;
|
|
47
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
items: {
|
|
51
|
+
type: PropType<readonly RowActionItem[]>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
size: {
|
|
55
|
+
type: PropType<AsamControlSize>;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
identity: {
|
|
59
|
+
type: ObjectConstructor;
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
rowToken: {
|
|
63
|
+
type: ObjectConstructor;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
hoverIntent: {
|
|
67
|
+
type: PropType<RowActionHoverIntent>;
|
|
68
|
+
required: true;
|
|
69
|
+
};
|
|
70
|
+
session: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
ready: BooleanConstructor;
|
|
75
|
+
}>> & Readonly<{}>, {
|
|
76
|
+
size: AsamControlSize;
|
|
77
|
+
ready: boolean;
|
|
78
|
+
session: number;
|
|
79
|
+
identity: Record<string, any>;
|
|
80
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AsamControlSize, AsamTableSize } from '@asam-ui/ui';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
size: AsamTableSize;
|
|
4
|
+
controlSize?: AsamControlSize;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
session?: string | number;
|
|
7
|
+
popperClass?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:size": (size: AsamTableSize) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
"onUpdate:size"?: ((size: AsamTableSize) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
session: string | number;
|
|
15
|
+
popperClass: string;
|
|
16
|
+
controlSize: AsamControlSize;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { AsamControlSize } from '@asam-ui/ui';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
size?: AsamControlSize;
|
|
4
|
+
currentPage: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
pageSizes?: readonly number[];
|
|
7
|
+
total: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
sizeDisabled?: boolean;
|
|
10
|
+
perPageLabels?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"page-change": (page: number) => any;
|
|
14
|
+
"page-size-change": (size: number) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onPage-change"?: ((page: number) => any) | undefined;
|
|
17
|
+
"onPage-size-change"?: ((size: number) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
size: AsamControlSize;
|
|
20
|
+
pageSizes: readonly number[];
|
|
21
|
+
sizeDisabled: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
} & {
|
|
8
|
+
tools?: (props: typeof __VLS_3) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import './Inline.css';
|
|
2
|
+
import type { AsamRowKey } from '@asam-ui/ui';
|
|
3
|
+
import type { AsamEditableTableProps as LegacyProps, AsamEditableTableSlots as LegacySlots, AsamEditableTableExpose as LegacyExpose } from './LegacyEditableTable.js';
|
|
4
|
+
import type { AsamInlineTableProps, AsamInlineTableSlots, AsamInlineTableExpose } from './InlineTypes.js';
|
|
5
|
+
/** New controlled inline model, or the unchanged deprecated controller workflow. */
|
|
6
|
+
export interface AsamEditableTableProps<Row extends object> extends Omit<AsamInlineTableProps<Row>, 'modelValue' | 'rowKey'> {
|
|
7
|
+
readonly modelValue?: readonly Row[];
|
|
8
|
+
readonly rowKey?: AsamInlineTableProps<Row>['rowKey'];
|
|
9
|
+
readonly controller?: LegacyProps<Row>['controller'];
|
|
10
|
+
readonly operationId?: LegacyProps<Row>['operationId'];
|
|
11
|
+
readonly batchPatch?: LegacyProps<Row>['batchPatch'];
|
|
12
|
+
readonly sortable?: boolean;
|
|
13
|
+
readonly cellEditing?: LegacyProps<Row>['cellEditing'];
|
|
14
|
+
}
|
|
15
|
+
export type AsamEditableTableSlots<Row extends object> = AsamInlineTableSlots<Row>;
|
|
16
|
+
export interface AsamEditableTableExpose extends AsamInlineTableExpose {
|
|
17
|
+
save(): Promise<void>;
|
|
18
|
+
cancel(): Promise<boolean>;
|
|
19
|
+
verify(key: AsamRowKey): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
export type AsamSortableTableExpose = AsamInlineTableExpose;
|
|
22
|
+
export type { LegacyProps as AsamLegacyEditableTableProps, LegacySlots as AsamLegacyEditableTableSlots, LegacyExpose as AsamLegacyEditableTableExpose };
|
|
23
|
+
export declare const AsamInlineTable: new <Row extends object>(props: AsamInlineTableProps<Row> & {
|
|
24
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
"onHeader-dragend"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
"onUpdate:border"?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
"onUpdate:columnOrder"?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
"onCell-change"?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
"onCell-state"?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
"onRow-order-change"?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
"onColumn-order-change"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<AsamInlineTableProps<Row> & {
|
|
34
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
"onHeader-dragend"?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
"onUpdate:border"?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
"onUpdate:columnOrder"?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
"onCell-change"?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
"onCell-state"?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
"onRow-order-change"?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
"onColumn-order-change"?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "sort-change" | "header-dragend" | "update:border" | "update:columnOrder" | "cell-change" | "cell-state" | "row-order-change" | "column-order-change")[], import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
44
|
+
P: {};
|
|
45
|
+
B: {};
|
|
46
|
+
D: {};
|
|
47
|
+
C: {};
|
|
48
|
+
M: {};
|
|
49
|
+
Defaults: {};
|
|
50
|
+
}, AsamInlineTableProps<Row> & {
|
|
51
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
"onHeader-dragend"?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
"onUpdate:border"?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
"onUpdate:columnOrder"?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
"onCell-change"?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
"onCell-state"?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
"onRow-order-change"?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
"onColumn-order-change"?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}, {}, {}, {}, {}, {}>;
|
|
61
|
+
/** The controlled model is the default. Existing controller consumers remain on the explicit legacy branch. */
|
|
62
|
+
export declare const AsamEditableTableView: new <Row extends object>(props: AsamEditableTableProps<Row> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<AsamEditableTableProps<Row> & {}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
63
|
+
P: {};
|
|
64
|
+
B: {};
|
|
65
|
+
D: {};
|
|
66
|
+
C: {};
|
|
67
|
+
M: {};
|
|
68
|
+
Defaults: {};
|
|
69
|
+
}, AsamEditableTableProps<Row> & {}, {}, {}, {}, {}, {}>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { AsamEditableTableProps } from './AsamEditableTable.js';
|
|
2
|
+
import type { AsamInlineTableSlots } from './InlineTypes.js';
|
|
3
|
+
import type { AsamRowKey } from '@asam-ui/ui';
|
|
4
|
+
declare const __VLS_export: <Row extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<AsamEditableTableProps<Row> & {
|
|
6
|
+
"onUpdate:modelValue"?: ((rows: Row[]) => any) | undefined;
|
|
7
|
+
"onSort-change"?: ((sort: {
|
|
8
|
+
prop?: string;
|
|
9
|
+
order: "ascending" | "descending" | null;
|
|
10
|
+
}) => any) | undefined;
|
|
11
|
+
"onHeader-dragend"?: ((newWidth: number, oldWidth: number, column: unknown, event: MouseEvent) => any) | undefined;
|
|
12
|
+
"onUpdate:border"?: ((border: boolean) => any) | undefined;
|
|
13
|
+
"onUpdate:columnOrder"?: ((order: string[]) => any) | undefined;
|
|
14
|
+
"onCell-change"?: ((change: import("./InlineTypes.js").AsamCellChange<Row>) => any) | undefined;
|
|
15
|
+
"onCell-state"?: ((state: {
|
|
16
|
+
rowKey: AsamRowKey;
|
|
17
|
+
columnKey: string;
|
|
18
|
+
revision: number;
|
|
19
|
+
status: import("./InlineTypes.js").AsamCellStatus;
|
|
20
|
+
verifying?: boolean;
|
|
21
|
+
messages: readonly string[];
|
|
22
|
+
}) => any) | undefined;
|
|
23
|
+
"onRow-order-change"?: ((change: import("./InlineTypes.js").AsamTableOrderChange<AsamRowKey>) => any) | undefined;
|
|
24
|
+
"onColumn-order-change"?: ((change: import("./InlineTypes.js").AsamTableOrderChange<string>) => any) | undefined;
|
|
25
|
+
}> & (typeof globalThis extends {
|
|
26
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
27
|
+
} ? P : {});
|
|
28
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
29
|
+
moveRow: (key: AsamRowKey, position: number) => boolean;
|
|
30
|
+
moveColumn: (key: string, position: number) => boolean;
|
|
31
|
+
cancelDrag: () => void | undefined;
|
|
32
|
+
focusCell: (key: AsamRowKey, column: string) => void | undefined;
|
|
33
|
+
cancelCell: (key: AsamRowKey, column: string) => void | undefined;
|
|
34
|
+
verifyCellResult: (key: AsamRowKey, column: string) => Promise<import("./InlineTypes.js").AsamCellVerificationOutcome>;
|
|
35
|
+
save: () => Promise<void>;
|
|
36
|
+
cancel: () => Promise<boolean>;
|
|
37
|
+
verify: (key: AsamRowKey) => Promise<void>;
|
|
38
|
+
}>) => void;
|
|
39
|
+
attrs: any;
|
|
40
|
+
slots: AsamInlineTableSlots<Row>;
|
|
41
|
+
emit: ((evt: "update:modelValue", rows: Row[]) => void) & ((evt: "sort-change", sort: {
|
|
42
|
+
prop?: string;
|
|
43
|
+
order: "ascending" | "descending" | null;
|
|
44
|
+
}) => void) & ((evt: "header-dragend", newWidth: number, oldWidth: number, column: unknown, event: MouseEvent) => void) & ((evt: "update:border", border: boolean) => void) & ((evt: "update:columnOrder", order: string[]) => void) & ((evt: "cell-change", change: import("./InlineTypes.js").AsamCellChange<Row>) => void) & ((evt: "cell-state", state: {
|
|
45
|
+
rowKey: AsamRowKey;
|
|
46
|
+
columnKey: string;
|
|
47
|
+
revision: number;
|
|
48
|
+
status: import("./InlineTypes.js").AsamCellStatus;
|
|
49
|
+
verifying?: boolean;
|
|
50
|
+
messages: readonly string[];
|
|
51
|
+
}) => void) & ((evt: "row-order-change", change: import("./InlineTypes.js").AsamTableOrderChange<AsamRowKey>) => void) & ((evt: "column-order-change", change: import("./InlineTypes.js").AsamTableOrderChange<string>) => void);
|
|
52
|
+
}>) => import("vue").VNode & {
|
|
53
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
54
|
+
};
|
|
55
|
+
declare const _default: typeof __VLS_export;
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} : {
|
|
60
|
+
[K in keyof T as K]: T[K];
|
|
61
|
+
}) & {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { AsamEditableTableProps } from './AsamEditableTable.js';
|
|
2
|
+
import type { AsamInlineTableSlots } from './InlineTypes.js';
|
|
3
|
+
import type { AsamRowKey } from '@asam-ui/ui';
|
|
4
|
+
declare const __VLS_export: <Row extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<AsamEditableTableProps<Row> & {
|
|
6
|
+
"onUpdate:modelValue"?: ((rows: Row[]) => any) | undefined;
|
|
7
|
+
"onSort-change"?: ((sort: {
|
|
8
|
+
prop?: string;
|
|
9
|
+
order: "ascending" | "descending" | null;
|
|
10
|
+
}) => any) | undefined;
|
|
11
|
+
"onHeader-dragend"?: ((newWidth: number, oldWidth: number, column: unknown, event: MouseEvent) => any) | undefined;
|
|
12
|
+
"onUpdate:border"?: ((border: boolean) => any) | undefined;
|
|
13
|
+
"onUpdate:columnOrder"?: ((order: string[]) => any) | undefined;
|
|
14
|
+
"onCell-change"?: ((change: import("./InlineTypes.js").AsamCellChange<Row>) => any) | undefined;
|
|
15
|
+
"onCell-state"?: ((state: {
|
|
16
|
+
rowKey: AsamRowKey;
|
|
17
|
+
columnKey: string;
|
|
18
|
+
revision: number;
|
|
19
|
+
status: import("./InlineTypes.js").AsamCellStatus;
|
|
20
|
+
verifying?: boolean;
|
|
21
|
+
messages: readonly string[];
|
|
22
|
+
}) => any) | undefined;
|
|
23
|
+
"onRow-order-change"?: ((change: import("./InlineTypes.js").AsamTableOrderChange<AsamRowKey>) => any) | undefined;
|
|
24
|
+
"onColumn-order-change"?: ((change: import("./InlineTypes.js").AsamTableOrderChange<string>) => any) | undefined;
|
|
25
|
+
}> & (typeof globalThis extends {
|
|
26
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
27
|
+
} ? P : {});
|
|
28
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
29
|
+
moveRow: (key: AsamRowKey, position: number) => boolean;
|
|
30
|
+
moveColumn: (key: string, position: number) => boolean;
|
|
31
|
+
cancelDrag: () => void | undefined;
|
|
32
|
+
focusCell: (key: AsamRowKey, column: string) => void | undefined;
|
|
33
|
+
cancelCell: (key: AsamRowKey, column: string) => void | undefined;
|
|
34
|
+
verifyCellResult: (key: AsamRowKey, column: string) => Promise<import("./InlineTypes.js").AsamCellVerificationOutcome>;
|
|
35
|
+
save: () => Promise<void>;
|
|
36
|
+
cancel: () => Promise<boolean>;
|
|
37
|
+
verify: (key: AsamRowKey) => Promise<void>;
|
|
38
|
+
}>) => void;
|
|
39
|
+
attrs: any;
|
|
40
|
+
slots: AsamInlineTableSlots<Row>;
|
|
41
|
+
emit: ((evt: "update:modelValue", rows: Row[]) => void) & ((evt: "sort-change", sort: {
|
|
42
|
+
prop?: string;
|
|
43
|
+
order: "ascending" | "descending" | null;
|
|
44
|
+
}) => void) & ((evt: "header-dragend", newWidth: number, oldWidth: number, column: unknown, event: MouseEvent) => void) & ((evt: "update:border", border: boolean) => void) & ((evt: "update:columnOrder", order: string[]) => void) & ((evt: "cell-change", change: import("./InlineTypes.js").AsamCellChange<Row>) => void) & ((evt: "cell-state", state: {
|
|
45
|
+
rowKey: AsamRowKey;
|
|
46
|
+
columnKey: string;
|
|
47
|
+
revision: number;
|
|
48
|
+
status: import("./InlineTypes.js").AsamCellStatus;
|
|
49
|
+
verifying?: boolean;
|
|
50
|
+
messages: readonly string[];
|
|
51
|
+
}) => void) & ((evt: "row-order-change", change: import("./InlineTypes.js").AsamTableOrderChange<AsamRowKey>) => void) & ((evt: "column-order-change", change: import("./InlineTypes.js").AsamTableOrderChange<string>) => void);
|
|
52
|
+
}>) => import("vue").VNode & {
|
|
53
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
54
|
+
};
|
|
55
|
+
declare const _default: typeof __VLS_export;
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} : {
|
|
60
|
+
[K in keyof T as K]: T[K];
|
|
61
|
+
}) & {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { AsamTableEditingHostProps, AsamTableEditingHostSlots, AsamTableEditingPresentation } from './HostTypes.js';
|
|
2
|
+
import type { AsamRowKey } from '@asam-ui/ui';
|
|
3
|
+
declare const __VLS_export: <Row extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<AsamTableEditingHostProps<Row> & {
|
|
5
|
+
"onSelection-change"?: ((keys: readonly AsamRowKey[]) => any) | undefined;
|
|
6
|
+
"onUpdate:border"?: ((border: boolean) => any) | undefined;
|
|
7
|
+
"onUpdate:size"?: ((size: import("@asam-ui/ui").AsamControlSize) => any) | undefined;
|
|
8
|
+
"onUpdate:columnOrder"?: ((order: string[]) => any) | undefined;
|
|
9
|
+
"onCell-change"?: ((change: import("./InlineTypes.js").AsamCellChange<Row>) => any) | undefined;
|
|
10
|
+
"onCell-state"?: ((state: {
|
|
11
|
+
rowKey: AsamRowKey;
|
|
12
|
+
columnKey: string;
|
|
13
|
+
revision: number;
|
|
14
|
+
status: import("./InlineTypes.js").AsamCellStatus;
|
|
15
|
+
verifying?: boolean;
|
|
16
|
+
messages: readonly string[];
|
|
17
|
+
}) => any) | undefined;
|
|
18
|
+
"onUpdate:tableSize"?: ((size: import("@asam-ui/ui").AsamTableSize) => any) | undefined;
|
|
19
|
+
"onMode-change"?: ((mode: AsamTableEditingPresentation) => any) | undefined;
|
|
20
|
+
"onRow-verification"?: ((key: AsamRowKey, result: import("./Types.js").AsamTableVerificationOutcome) => any) | undefined;
|
|
21
|
+
}> & (typeof globalThis extends {
|
|
22
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
23
|
+
} ? P : {});
|
|
24
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
25
|
+
changeMode: (mode: AsamTableEditingPresentation) => Promise<boolean>;
|
|
26
|
+
beforeLeave: () => Promise<boolean>;
|
|
27
|
+
save: () => Promise<void>;
|
|
28
|
+
cancel: () => Promise<boolean>;
|
|
29
|
+
verify: (key: AsamRowKey) => Promise<import("./Types.js").AsamTableVerificationOutcome>;
|
|
30
|
+
verifyCell: (key: AsamRowKey, column: string) => Promise<import("./InlineTypes.js").AsamCellVerificationOutcome>;
|
|
31
|
+
restoreCell: (key: AsamRowKey, column: string) => Promise<boolean>;
|
|
32
|
+
}>) => void;
|
|
33
|
+
attrs: any;
|
|
34
|
+
slots: AsamTableEditingHostSlots;
|
|
35
|
+
emit: ((evt: "selection-change", keys: readonly AsamRowKey[]) => void) & ((evt: "update:border", border: boolean) => void) & ((evt: "update:size", size: import("@asam-ui/ui").AsamControlSize) => void) & ((evt: "update:columnOrder", order: string[]) => void) & ((evt: "cell-change", change: import("./InlineTypes.js").AsamCellChange<Row>) => void) & ((evt: "cell-state", state: {
|
|
36
|
+
rowKey: AsamRowKey;
|
|
37
|
+
columnKey: string;
|
|
38
|
+
revision: number;
|
|
39
|
+
status: import("./InlineTypes.js").AsamCellStatus;
|
|
40
|
+
verifying?: boolean;
|
|
41
|
+
messages: readonly string[];
|
|
42
|
+
}) => void) & ((evt: "update:tableSize", size: import("@asam-ui/ui").AsamTableSize) => void) & ((evt: "mode-change", mode: AsamTableEditingPresentation) => void) & ((evt: "row-verification", key: AsamRowKey, result: import("./Types.js").AsamTableVerificationOutcome) => void);
|
|
43
|
+
}>) => import("vue").VNode & {
|
|
44
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
45
|
+
};
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
49
|
+
[K in keyof T]: T[K];
|
|
50
|
+
} : {
|
|
51
|
+
[K in keyof T as K]: T[K];
|
|
52
|
+
}) & {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AsamControlSize } from '@asam-ui/ui';
|
|
2
|
+
import type { AsamFieldDefinition } from '../../fields/Types.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
field: AsamFieldDefinition;
|
|
5
|
+
modelValue: unknown;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
size?: AsamControlSize;
|
|
8
|
+
session: string;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
11
|
+
declare function validate(): Promise<readonly string[]>;
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
13
|
+
validate: typeof validate;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
change: (value: unknown) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onChange?: ((value: unknown) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AsamControlSize } from '@asam-ui/ui';
|
|
2
|
+
import type { AsamTableEditEntry, AsamTableEditingController } from './Types.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
entry: AsamTableEditEntry;
|
|
5
|
+
controller: Pick<AsamTableEditingController<object>, 'entries' | 'mode' | 'busy' | 'writable' | 'update' | 'registerValidator' | 'save' | 'verify' | 'cancel'>;
|
|
6
|
+
size?: AsamControlSize;
|
|
7
|
+
save?: () => Promise<void>;
|
|
8
|
+
/** 本表格明确操作交给工具栏自身协议,避免 pointerdown 抢先保存。 */
|
|
9
|
+
actions?: HTMLElement | (() => readonly HTMLElement[]);
|
|
10
|
+
};
|
|
11
|
+
declare function finish(reason: 'outside' | 'switch' | 'enter' | 'escape'): Promise<boolean>;
|
|
12
|
+
declare function checkOutside(): void;
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
14
|
+
finish: typeof finish;
|
|
15
|
+
checkOutside: typeof checkOutside;
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export type DragAxis = 'row' | 'column';
|
|
3
|
+
export interface DragMarker {
|
|
4
|
+
axis: DragAxis;
|
|
5
|
+
left: number;
|
|
6
|
+
top: number;
|
|
7
|
+
length: number;
|
|
8
|
+
}
|
|
9
|
+
/** Element Plus 2.14.7 DOM boundary. Never moves DOM, columns or private store itself. */
|
|
10
|
+
export declare function useTableDrag(options: {
|
|
11
|
+
root: Ref<HTMLElement | undefined>;
|
|
12
|
+
canStart(axis: DragAxis, key: string): boolean;
|
|
13
|
+
canPreview(axis: DragAxis, key: string, target: string, after: boolean): boolean;
|
|
14
|
+
commit(axis: DragAxis, key: string, target: string, after: boolean): void;
|
|
15
|
+
onStart(): void;
|
|
16
|
+
onCancel(): void;
|
|
17
|
+
}): {
|
|
18
|
+
marker: import("vue").ShallowRef<DragMarker | undefined, DragMarker | undefined>;
|
|
19
|
+
dragging: import("vue").ShallowRef<{
|
|
20
|
+
axis: DragAxis;
|
|
21
|
+
key: string;
|
|
22
|
+
} | undefined, {
|
|
23
|
+
axis: DragAxis;
|
|
24
|
+
key: string;
|
|
25
|
+
} | undefined>;
|
|
26
|
+
start: (event: PointerEvent, axis: DragAxis, key: string) => void;
|
|
27
|
+
cancel: () => void;
|
|
28
|
+
consumeClick: () => boolean;
|
|
29
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AsamControlSize } from '@asam-ui/ui';
|
|
2
|
+
import type { AsamTableEditEntry, AsamTableEditingController } from './Types.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
entry: AsamTableEditEntry;
|
|
5
|
+
controller: Pick<AsamTableEditingController<object>, 'entries' | 'mode' | 'busy' | 'writable' | 'update' | 'registerValidator' | 'save' | 'verify' | 'cancel'>;
|
|
6
|
+
size?: AsamControlSize;
|
|
7
|
+
compact?: boolean;
|
|
8
|
+
/** Internal body host. Form context and one validator per row stay intact across teleports. */
|
|
9
|
+
targets?: ReadonlyMap<string, HTMLElement>;
|
|
10
|
+
popupOwner?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
13
|
+
closePopup: () => void;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"popup-visible-change": (visible: boolean) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
"onPopup-visible-change"?: ((visible: boolean) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AsamTableEditingHostProps } from './HostTypes.js';
|
|
2
|
+
import './Host.css';
|
|
3
|
+
/** Shared presentation over the existing row and inline protocols; one persistent table instance. */
|
|
4
|
+
export declare const AsamTableEditingHostView: new <Row extends object>(props: AsamTableEditingHostProps<Row> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<AsamTableEditingHostProps<Row> & {}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
5
|
+
P: {};
|
|
6
|
+
B: {};
|
|
7
|
+
D: {};
|
|
8
|
+
C: {};
|
|
9
|
+
M: {};
|
|
10
|
+
Defaults: {};
|
|
11
|
+
}, AsamTableEditingHostProps<Row> & {}, {}, {}, {}, {}, {}>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { VNodeChild } from 'vue';
|
|
2
|
+
import type { AsamTableSize, AsamControlSize, AsamRowKey } from '@asam-ui/ui';
|
|
3
|
+
import type { AsamTableEditingController, AsamTableEditMode, AsamTableVerificationOutcome } from './Types.js';
|
|
4
|
+
import type { AsamEditableColumn, AsamInlineTableProps, AsamInlineTableEmits, AsamCellVerificationOutcome } from './InlineTypes.js';
|
|
5
|
+
/** Presentation choices, not new controller/write protocol modes. */
|
|
6
|
+
export type AsamTableEditingPresentation = 'single' | 'multiple' | 'cell' | 'instant';
|
|
7
|
+
export interface AsamTableEditingHostProps<Row extends object> {
|
|
8
|
+
readonly controller: AsamTableEditingController<Row>;
|
|
9
|
+
readonly columns: readonly AsamEditableColumn<Row>[];
|
|
10
|
+
readonly operationId: (mode: AsamTableEditMode, key: AsamRowKey, field?: string) => string;
|
|
11
|
+
readonly initialMode?: AsamTableEditingPresentation;
|
|
12
|
+
/** 独立编辑场景可隐藏模式切换。 */
|
|
13
|
+
readonly showModeSwitch?: boolean;
|
|
14
|
+
/** 可选控件尺寸菜单,独立于表格行高。 */
|
|
15
|
+
readonly showControlSize?: boolean;
|
|
16
|
+
readonly size?: AsamControlSize;
|
|
17
|
+
/** 表格行高:large 60、default 50、small 42、mini 36;不影响控件尺寸。 */
|
|
18
|
+
readonly tableSize?: AsamTableSize;
|
|
19
|
+
readonly border?: boolean;
|
|
20
|
+
readonly stripe?: boolean;
|
|
21
|
+
readonly height?: number | string;
|
|
22
|
+
readonly columnOrder?: readonly string[];
|
|
23
|
+
readonly persistCell?: AsamInlineTableProps<Row>['persistCell'];
|
|
24
|
+
readonly verifyCell?: AsamInlineTableProps<Row>['verifyCell'];
|
|
25
|
+
readonly validateCell?: AsamInlineTableProps<Row>['validateCell'];
|
|
26
|
+
/** Instant known-failure discard only. Unknown/pending is blocked before asking. */
|
|
27
|
+
readonly confirmDiscard?: () => Promise<boolean>;
|
|
28
|
+
}
|
|
29
|
+
export interface AsamTableEditingHostEmits<Row extends object> {
|
|
30
|
+
'update:size': [size: AsamControlSize];
|
|
31
|
+
'update:tableSize': [size: AsamTableSize];
|
|
32
|
+
'update:border': [border: boolean];
|
|
33
|
+
'update:columnOrder': [order: string[]];
|
|
34
|
+
'selection-change': [keys: readonly AsamRowKey[]];
|
|
35
|
+
'mode-change': [mode: AsamTableEditingPresentation];
|
|
36
|
+
'cell-change': AsamInlineTableEmits<Row>['cell-change'];
|
|
37
|
+
'cell-state': AsamInlineTableEmits<Row>['cell-state'];
|
|
38
|
+
'row-verification': [key: AsamRowKey, result: AsamTableVerificationOutcome];
|
|
39
|
+
}
|
|
40
|
+
export interface AsamTableEditingHostSlots {
|
|
41
|
+
toolbar?: () => VNodeChild;
|
|
42
|
+
empty?: () => VNodeChild;
|
|
43
|
+
}
|
|
44
|
+
export interface AsamTableEditingHostExpose {
|
|
45
|
+
changeMode(mode: AsamTableEditingPresentation): Promise<boolean>;
|
|
46
|
+
/** Call before route/session/unmount actions; never interprets confirmation as remote rollback. */
|
|
47
|
+
beforeLeave(): Promise<boolean>;
|
|
48
|
+
save(): Promise<void>;
|
|
49
|
+
cancel(): Promise<boolean>;
|
|
50
|
+
verify(key: AsamRowKey): Promise<AsamTableVerificationOutcome>;
|
|
51
|
+
verifyCell(rowKey: AsamRowKey, column: string): Promise<AsamCellVerificationOutcome>;
|
|
52
|
+
restoreCell(rowKey: AsamRowKey, column: string): Promise<boolean>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { useAsamTableEditing } from './Controller.js';
|
|
2
|
+
export { default as AsamEditableTable } from './AsamEditableTable.vue';
|
|
3
|
+
export { default as AsamSortableTable } from './AsamSortableTable.vue';
|
|
4
|
+
export type { AsamEditableTableProps, AsamEditableTableSlots, AsamEditableTableExpose, AsamSortableTableExpose, AsamLegacyEditableTableProps, AsamLegacyEditableTableSlots, AsamLegacyEditableTableExpose } from './AsamEditableTable.js';
|
|
5
|
+
export type * from './Types.js';
|
|
6
|
+
export { AsamLegacyEditableTable, AsamLegacySortableTable } from './LegacyEditableTable.js';
|
|
7
|
+
export type * from './InlineTypes.js';
|
|
8
|
+
export { default as AsamTableEditingHost } from './AsamTableEditingHost.vue';
|
|
9
|
+
export type * from './HostTypes.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { cloneAsamFieldValue } from '../../fields/Model.js';
|
|
2
|
+
import type { AsamRowKey } from '@asam-ui/ui';
|
|
3
|
+
import type { AsamCellChange, AsamCellStatus, AsamCellVerificationOutcome, AsamInlineTableProps, AsamInlineTableEmits } from './InlineTypes.js';
|
|
4
|
+
export interface CellState<Row extends object = object> {
|
|
5
|
+
readonly rowKey: AsamRowKey;
|
|
6
|
+
readonly columnKey: string;
|
|
7
|
+
readonly revision: number;
|
|
8
|
+
readonly value: unknown;
|
|
9
|
+
readonly controller: AbortController;
|
|
10
|
+
readonly status: AsamCellStatus;
|
|
11
|
+
readonly messages: readonly (string | undefined)[];
|
|
12
|
+
/** Only unresolved writes retain their original verification snapshot. */
|
|
13
|
+
readonly change?: AsamCellChange<Row>;
|
|
14
|
+
readonly verifying?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function useInlineModel<Row extends object>(props: AsamInlineTableProps<Row>, emit: <K extends keyof AsamInlineTableEmits<Row>>(event: K, ...args: AsamInlineTableEmits<Row>[K]) => void, invalidMessage: () => string, reportFailure: (message?: string) => void): {
|
|
17
|
+
states: import("vue").ShallowRef<ReadonlyMap<string, CellState<Row>>, ReadonlyMap<string, CellState<Row>>>;
|
|
18
|
+
validators: Map<string, () => Promise<readonly string[]>>;
|
|
19
|
+
keyOf: (row: Row) => AsamRowKey;
|
|
20
|
+
update: (rowKey: AsamRowKey, columnKey: keyof Row & string, value: unknown, clone?: typeof cloneAsamFieldValue) => void;
|
|
21
|
+
cancelCell: (rowKey: AsamRowKey, columnKey: string) => void;
|
|
22
|
+
verifyCell: (rowKey: AsamRowKey, columnKey: string) => Promise<AsamCellVerificationOutcome>;
|
|
23
|
+
displayMessages: (entry: CellState<Row> | undefined) => readonly string[];
|
|
24
|
+
};
|