@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,34 @@
|
|
|
1
|
+
import type { NotificationPanelProps, NotificationPanelExpose, NotificationItem } from './Types.js';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
item?: (scope: {
|
|
4
|
+
item: NotificationItem;
|
|
5
|
+
}) => unknown;
|
|
6
|
+
empty?: () => unknown;
|
|
7
|
+
footer?: (scope: {
|
|
8
|
+
unread: number;
|
|
9
|
+
}) => unknown;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<NotificationPanelProps, NotificationPanelExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
request: (operation: Omit<import("./Types.js").NotificationOperation, "signal">) => any;
|
|
13
|
+
error: (error: unknown) => any;
|
|
14
|
+
result: (operation: Omit<import("./Types.js").NotificationOperation, "signal">) => any;
|
|
15
|
+
"update:category": (category: string | null) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<NotificationPanelProps> & Readonly<{
|
|
17
|
+
onRequest?: ((operation: Omit<import("./Types.js").NotificationOperation, "signal">) => any) | undefined;
|
|
18
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
19
|
+
onResult?: ((operation: Omit<import("./Types.js").NotificationOperation, "signal">) => any) | undefined;
|
|
20
|
+
"onUpdate:category"?: ((category: string | null) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
label: string;
|
|
23
|
+
items: readonly NotificationItem[];
|
|
24
|
+
category: string | null;
|
|
25
|
+
categories: readonly import("./Types.js").NotificationCategory[];
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GuidanceStatus } from './Types.js';
|
|
2
|
+
/** 每实例、每通道独立代次,取消只对本实例生效。同步异常同样进入 error。 */
|
|
3
|
+
export declare function useGuidanceRequest<T>(): {
|
|
4
|
+
status: import("vue").Ref<GuidanceStatus, GuidanceStatus>;
|
|
5
|
+
error: import("vue").ShallowRef<unknown, unknown>;
|
|
6
|
+
value: import("vue").ShallowRef<T | undefined, T | undefined>;
|
|
7
|
+
run: (request: (signal: AbortSignal) => T | Promise<T>) => Promise<boolean | undefined>;
|
|
8
|
+
cancel: () => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as AsamNotificationPanel } from './AsamNotificationPanel.vue';
|
|
2
|
+
export { default as AsamNotificationMenu } from './AsamNotificationMenu.vue';
|
|
3
|
+
export { default as AsamHelpPanel } from './AsamHelpPanel.vue';
|
|
4
|
+
export { default as AsamGuidedTour } from './AsamGuidedTour.vue';
|
|
5
|
+
export type * from './Types.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GuidanceTarget, NotificationItem, NotificationSnapshot } from './Types.js';
|
|
2
|
+
/** 同类型 key 唯一;0、空字符串合法,数字0与字符串0不同。重复直接拒绝整批。 */
|
|
3
|
+
export declare function validateNotifications(snapshot: NotificationSnapshot): NotificationSnapshot;
|
|
4
|
+
export declare function visibleNotifications(items: readonly NotificationItem[], category: string | null): NotificationItem[];
|
|
5
|
+
/** 仅解析当前文档中的同步目标;不承担路由、等待或定位算法。 */
|
|
6
|
+
export declare function resolveGuidanceTarget(target: GuidanceTarget): HTMLElement | null;
|
|
7
|
+
export declare function safeHelpLink(href: string | undefined): string | undefined;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { AsamControlSize, AsamTourPlacement } from '@asam-ui/ui';
|
|
2
|
+
export type GuidanceSize = AsamControlSize;
|
|
3
|
+
export type GuidanceStatus = 'idle' | 'loading' | 'ready' | 'empty' | 'error';
|
|
4
|
+
export type NotificationKey = string | number;
|
|
5
|
+
export interface GuidanceRequest {
|
|
6
|
+
signal: AbortSignal;
|
|
7
|
+
}
|
|
8
|
+
export interface NotificationItem {
|
|
9
|
+
key: NotificationKey;
|
|
10
|
+
title: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
category: string;
|
|
13
|
+
unread: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface NotificationCategory {
|
|
17
|
+
key: string;
|
|
18
|
+
label: string;
|
|
19
|
+
}
|
|
20
|
+
export interface NotificationQuery extends GuidanceRequest {
|
|
21
|
+
category: string | null;
|
|
22
|
+
}
|
|
23
|
+
/** 单次完整分类快照,无隐式分页;全局总数仅由宿主提供。 */
|
|
24
|
+
export interface NotificationSnapshot {
|
|
25
|
+
items: readonly NotificationItem[];
|
|
26
|
+
unreadTotal?: number;
|
|
27
|
+
}
|
|
28
|
+
export type NotificationLoader = (query: NotificationQuery) => Promise<NotificationSnapshot>;
|
|
29
|
+
export type NotificationAction = 'read' | 'read-all' | 'activate';
|
|
30
|
+
export interface NotificationOperation extends NotificationQuery {
|
|
31
|
+
action: NotificationAction;
|
|
32
|
+
keys: readonly NotificationKey[];
|
|
33
|
+
}
|
|
34
|
+
/** void 表示服务操作已结束,数据仍由宿主受控回填;不本地伪造已读。 */
|
|
35
|
+
export type NotificationOperator = (operation: NotificationOperation) => Promise<void> | void;
|
|
36
|
+
export interface NotificationPanelProps {
|
|
37
|
+
items?: readonly NotificationItem[];
|
|
38
|
+
categories?: readonly NotificationCategory[];
|
|
39
|
+
category?: string | null;
|
|
40
|
+
load?: NotificationLoader;
|
|
41
|
+
operate?: NotificationOperator;
|
|
42
|
+
unreadTotal?: number;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
readonly?: boolean;
|
|
45
|
+
size?: GuidanceSize;
|
|
46
|
+
label?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface NotificationPanelEmits {
|
|
49
|
+
'update:category': [category: string | null];
|
|
50
|
+
request: [operation: Omit<NotificationOperation, 'signal'>];
|
|
51
|
+
result: [operation: Omit<NotificationOperation, 'signal'>];
|
|
52
|
+
error: [error: unknown];
|
|
53
|
+
}
|
|
54
|
+
export interface NotificationPanelExpose {
|
|
55
|
+
reload: () => Promise<void>;
|
|
56
|
+
}
|
|
57
|
+
export interface HelpContent {
|
|
58
|
+
title: string;
|
|
59
|
+
text: string;
|
|
60
|
+
href?: string;
|
|
61
|
+
}
|
|
62
|
+
export type HelpLoader = (key: string, request: GuidanceRequest) => Promise<HelpContent | null>;
|
|
63
|
+
export interface HelpPanelProps {
|
|
64
|
+
modelValue: boolean;
|
|
65
|
+
contextKey: string;
|
|
66
|
+
content?: HelpContent | null;
|
|
67
|
+
load?: HelpLoader;
|
|
68
|
+
label?: string;
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
size?: GuidanceSize;
|
|
71
|
+
}
|
|
72
|
+
export interface HelpPanelEmits {
|
|
73
|
+
'update:modelValue': [open: boolean];
|
|
74
|
+
loaded: [content: HelpContent | null];
|
|
75
|
+
error: [error: unknown];
|
|
76
|
+
}
|
|
77
|
+
export interface HelpPanelExpose {
|
|
78
|
+
reload: () => Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
export type GuidanceTarget = HTMLElement | string | (() => HTMLElement | null);
|
|
81
|
+
export interface GuidanceStep {
|
|
82
|
+
key: string;
|
|
83
|
+
title: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
target: GuidanceTarget;
|
|
86
|
+
placement?: AsamTourPlacement;
|
|
87
|
+
}
|
|
88
|
+
export interface GuidedTourProps {
|
|
89
|
+
modelValue: boolean;
|
|
90
|
+
current?: number;
|
|
91
|
+
steps: readonly GuidanceStep[];
|
|
92
|
+
disabled?: boolean;
|
|
93
|
+
size?: GuidanceSize;
|
|
94
|
+
label?: string;
|
|
95
|
+
}
|
|
96
|
+
export type TourExitReason = 'close' | 'finish' | 'missing' | 'invalid';
|
|
97
|
+
export interface GuidedTourEmits {
|
|
98
|
+
'update:modelValue': [open: boolean];
|
|
99
|
+
'update:current': [current: number];
|
|
100
|
+
exit: [reason: TourExitReason];
|
|
101
|
+
missing: [step: GuidanceStep];
|
|
102
|
+
}
|
|
103
|
+
export interface GuidedTourExpose {
|
|
104
|
+
next: () => void;
|
|
105
|
+
previous: () => void;
|
|
106
|
+
close: () => void;
|
|
107
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
/** 原生 teleport 保留 Vue 上下文,但 CSS 需从逻辑位置带到弹层。 */
|
|
3
|
+
export declare function useAsamOverlayStyle(origin: Readonly<Ref<HTMLElement | undefined>>, active?: Readonly<Ref<boolean>>): {
|
|
4
|
+
style: import("vue").ShallowRef<Record<string, string>, Record<string, string>>;
|
|
5
|
+
refresh: () => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AsamBoundaryFailure, AsamErrorBoundaryProps, AsamErrorBoundarySlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamErrorBoundarySlots;
|
|
3
|
+
declare function reset(): void;
|
|
4
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamErrorBoundaryProps, {
|
|
5
|
+
reset: typeof reset;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
error: (failure: AsamBoundaryFailure) => any;
|
|
8
|
+
reset: () => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<AsamErrorBoundaryProps> & Readonly<{
|
|
10
|
+
onError?: ((failure: AsamBoundaryFailure) => any) | undefined;
|
|
11
|
+
onReset?: (() => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
propagate: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AsamStatePanelProps, AsamStatePanelSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamStatePanelSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamStatePanelProps, {
|
|
4
|
+
reset: () => void | undefined;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
success: (id: string) => any;
|
|
7
|
+
start: (id: string) => any;
|
|
8
|
+
failure: (id: string, error: unknown) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<AsamStatePanelProps> & Readonly<{
|
|
10
|
+
onSuccess?: ((id: string) => any) | undefined;
|
|
11
|
+
onStart?: ((id: string) => any) | undefined;
|
|
12
|
+
onFailure?: ((id: string, error: unknown) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { AsamFieldAnnotationProps } from './Types.js';
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
default?: (scope: {
|
|
5
|
+
describedby: string;
|
|
6
|
+
invalid: boolean;
|
|
7
|
+
required: boolean | undefined;
|
|
8
|
+
}) => VNode[];
|
|
9
|
+
description?: () => VNode[];
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamFieldAnnotationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamFieldAnnotationProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { AsamPageSkeletonProps } from './Types.js';
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
default?: () => VNode[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamPageSkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamPageSkeletonProps> & Readonly<{}>, {
|
|
7
|
+
count: number;
|
|
8
|
+
label: string;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
layout: "list" | "form" | "detail";
|
|
11
|
+
animated: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { AsamPageWatermarkProps } from './Types.js';
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
default?: () => VNode[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamPageWatermarkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamPageWatermarkProps> & Readonly<{}>, {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { AsamStateAction, AsamStatePanelProps, AsamStatePanelSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamStatePanelSlots;
|
|
3
|
+
declare function reset(): void;
|
|
4
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamStatePanelProps, {
|
|
5
|
+
reset: typeof reset;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
success: (id: string) => any;
|
|
8
|
+
start: (id: string) => any;
|
|
9
|
+
failure: (id: string, error: unknown) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<AsamStatePanelProps> & Readonly<{
|
|
11
|
+
onSuccess?: ((id: string) => any) | undefined;
|
|
12
|
+
onStart?: ((id: string) => any) | undefined;
|
|
13
|
+
onFailure?: ((id: string, error: unknown) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
actions: readonly AsamStateAction[];
|
|
16
|
+
tone: "success" | "error" | "warning" | "info";
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as AsamPageSkeleton } from './AsamPageSkeleton.vue';
|
|
2
|
+
export { default as AsamStatePanel } from './AsamStatePanel.vue';
|
|
3
|
+
export { default as AsamException } from './AsamException.vue';
|
|
4
|
+
export { default as AsamPageWatermark } from './AsamPageWatermark.vue';
|
|
5
|
+
export { default as AsamErrorBoundary } from './AsamErrorBoundary.vue';
|
|
6
|
+
export { default as AsamFieldAnnotation } from './AsamFieldAnnotation.vue';
|
|
7
|
+
export { useAsamCopy, useAsamScroll, useAsamElementSize } from './Tools.js';
|
|
8
|
+
export type * from './Types.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AsamCopyOptions, AsamCopyResult, AsamElementTarget, AsamScrollOptions, AsamSizeOptions } from './Types.js';
|
|
2
|
+
/** 在 setup/effectScope 内调用;所有操作在销毁后均返回 stale。 */
|
|
3
|
+
export declare function useAsamCopy(options?: AsamCopyOptions): {
|
|
4
|
+
status: Readonly<import("vue").Ref<"success" | "error" | "idle" | "pending", "success" | "error" | "idle" | "pending">>;
|
|
5
|
+
error: Readonly<import("vue").Ref<Readonly<unknown>, Readonly<unknown>>>;
|
|
6
|
+
copy: (text: string) => Promise<AsamCopyResult>;
|
|
7
|
+
};
|
|
8
|
+
export declare function useAsamScroll(target: AsamElementTarget, options?: AsamScrollOptions): {
|
|
9
|
+
position: Readonly<import("vue").Ref<{
|
|
10
|
+
readonly top: number;
|
|
11
|
+
readonly left: number;
|
|
12
|
+
readonly atTop: boolean;
|
|
13
|
+
}, {
|
|
14
|
+
readonly top: number;
|
|
15
|
+
readonly left: number;
|
|
16
|
+
readonly atTop: boolean;
|
|
17
|
+
}>>;
|
|
18
|
+
scrollTo: (top?: number, left?: number, behavior?: ScrollBehavior) => boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare function useAsamElementSize(target: AsamElementTarget, options?: AsamSizeOptions): {
|
|
21
|
+
size: Readonly<import("vue").Ref<{
|
|
22
|
+
readonly width: number;
|
|
23
|
+
readonly height: number;
|
|
24
|
+
} | null, {
|
|
25
|
+
readonly width: number;
|
|
26
|
+
readonly height: number;
|
|
27
|
+
} | null>>;
|
|
28
|
+
supported: Readonly<import("vue").Ref<boolean, boolean>>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { Ref, VNode } from 'vue';
|
|
2
|
+
import type { AsamWatermarkProps, AsamControlSize, AsamButtonProps } from '@asam-ui/ui';
|
|
3
|
+
export type AsamStateSize = AsamControlSize;
|
|
4
|
+
export interface AsamPageSkeletonProps {
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
layout?: 'list' | 'form' | 'detail';
|
|
7
|
+
/** 有限整数截断至 1~30;非法值使用 5。 */
|
|
8
|
+
count?: number;
|
|
9
|
+
animated?: boolean;
|
|
10
|
+
size?: AsamStateSize;
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AsamStateAction {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
/** Native presentation only; omitted values preserve default/plain. Execution guards remain owned by StatePanel. */
|
|
17
|
+
button?: Readonly<Pick<AsamButtonProps, 'type' | 'plain'>>;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
run: () => void | Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
export interface AsamStatePanelProps {
|
|
22
|
+
title: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
tone?: 'success' | 'error' | 'warning' | 'info';
|
|
25
|
+
actions?: readonly AsamStateAction[];
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
readonly?: boolean;
|
|
28
|
+
/** 替换业务对象时更换 key,使旧动作结果失效。 */
|
|
29
|
+
stateKey?: unknown;
|
|
30
|
+
size?: AsamStateSize;
|
|
31
|
+
}
|
|
32
|
+
export interface AsamStatePanelEmits {
|
|
33
|
+
start: [id: string];
|
|
34
|
+
success: [id: string];
|
|
35
|
+
failure: [id: string, error: unknown];
|
|
36
|
+
}
|
|
37
|
+
export interface AsamStatePanelExpose {
|
|
38
|
+
/** 不取消宿主副作用,只忽略过期结算。 */
|
|
39
|
+
reset: () => void;
|
|
40
|
+
}
|
|
41
|
+
export interface AsamStatePanelSlots {
|
|
42
|
+
icon?: () => VNode[];
|
|
43
|
+
default?: () => VNode[];
|
|
44
|
+
actions?: (scope: {
|
|
45
|
+
pending: string | null;
|
|
46
|
+
}) => VNode[];
|
|
47
|
+
}
|
|
48
|
+
export interface AsamPageWatermarkProps {
|
|
49
|
+
visible?: boolean;
|
|
50
|
+
/** 原生公开参数;容器为本实例默认 slot 所在的包装容器。 */
|
|
51
|
+
watermark?: AsamWatermarkProps;
|
|
52
|
+
}
|
|
53
|
+
export interface AsamBoundaryFailure {
|
|
54
|
+
error: unknown;
|
|
55
|
+
info: string;
|
|
56
|
+
}
|
|
57
|
+
export interface AsamErrorBoundaryProps {
|
|
58
|
+
resetKey?: unknown;
|
|
59
|
+
/** 默认 true:继续交给祖先/应用诊断;false 阻止继续传播。 */
|
|
60
|
+
propagate?: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface AsamErrorBoundaryExpose {
|
|
63
|
+
reset: () => void;
|
|
64
|
+
}
|
|
65
|
+
export interface AsamErrorBoundaryEmits {
|
|
66
|
+
error: [failure: AsamBoundaryFailure];
|
|
67
|
+
reset: [];
|
|
68
|
+
}
|
|
69
|
+
export interface AsamErrorBoundarySlots {
|
|
70
|
+
default?: () => VNode[];
|
|
71
|
+
fallback?: (scope: AsamBoundaryFailure & {
|
|
72
|
+
reset: () => void;
|
|
73
|
+
}) => VNode[];
|
|
74
|
+
}
|
|
75
|
+
export interface AsamFieldAnnotationProps {
|
|
76
|
+
/**
|
|
77
|
+
* 说明容器的页面唯一 ID;input 的 aria-describedby 指向此 ID。
|
|
78
|
+
* input 自身使用另一个 ID,并通过 forId 与 label 关联。
|
|
79
|
+
*/
|
|
80
|
+
id: string;
|
|
81
|
+
forId?: string;
|
|
82
|
+
label?: string;
|
|
83
|
+
description?: string;
|
|
84
|
+
error?: string;
|
|
85
|
+
required?: boolean;
|
|
86
|
+
size?: AsamStateSize;
|
|
87
|
+
}
|
|
88
|
+
export type AsamElementTarget = Ref<HTMLElement | null | undefined>;
|
|
89
|
+
export interface AsamCopyOptions {
|
|
90
|
+
/** Promise resolve 只证明适配器报告写入成功。 */
|
|
91
|
+
writeText?: (text: string) => void | Promise<void>;
|
|
92
|
+
}
|
|
93
|
+
export type AsamCopyResult = {
|
|
94
|
+
status: 'success' | 'stale';
|
|
95
|
+
} | {
|
|
96
|
+
status: 'error';
|
|
97
|
+
error: unknown;
|
|
98
|
+
};
|
|
99
|
+
export interface AsamScrollPosition {
|
|
100
|
+
top: number;
|
|
101
|
+
left: number;
|
|
102
|
+
atTop: boolean;
|
|
103
|
+
}
|
|
104
|
+
export interface AsamScrollOptions {
|
|
105
|
+
threshold?: number;
|
|
106
|
+
onChange?: (position: AsamScrollPosition) => void;
|
|
107
|
+
}
|
|
108
|
+
export interface AsamElementSize {
|
|
109
|
+
width: number;
|
|
110
|
+
height: number;
|
|
111
|
+
}
|
|
112
|
+
export interface AsamSizeOptions {
|
|
113
|
+
onChange?: (size: AsamElementSize) => void;
|
|
114
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AsamProCalendarProps, AsamProCalendarSlots, AsamProCalendarExpose } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamProCalendarSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamProCalendarProps, AsamProCalendarExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
"update:modelValue": (value: Date) => any;
|
|
5
|
+
change: (value: Date) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<AsamProCalendarProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: Date) => any) | undefined;
|
|
8
|
+
onChange?: ((value: Date) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AsamProCountdownProps, AsamProCountdownSlots, AsamTimeExpose } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamProCountdownSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamProCountdownProps, AsamTimeExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
change: (remaining: number) => any;
|
|
5
|
+
finish: () => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<AsamProCountdownProps> & Readonly<{
|
|
7
|
+
onChange?: ((remaining: number) => any) | undefined;
|
|
8
|
+
onFinish?: (() => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AsamRelativeTimeProps, AsamRelativeTimeSlots, AsamTimeExpose } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamRelativeTimeSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamRelativeTimeProps, AsamTimeExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamRelativeTimeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AsamTextEllipsisProps, AsamTextEllipsisExpose } from './Types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<AsamTextEllipsisProps, AsamTextEllipsisExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
"update:expanded": (expanded: boolean) => any;
|
|
4
|
+
truncate: (truncated: boolean) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<AsamTextEllipsisProps> & Readonly<{
|
|
6
|
+
"onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
|
|
7
|
+
onTruncate?: ((truncated: boolean) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AsamWordCountProps, AsamWordCountSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamWordCountSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamWordCountProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamWordCountProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AsamCountMethod, AsamTimeValue, AsamWordCountResult } from './Types.js';
|
|
2
|
+
export declare function timeValue(value: AsamTimeValue | undefined): number | null;
|
|
3
|
+
export declare function countdownText(remaining: number): string;
|
|
4
|
+
export declare function relativeText(difference: number, locale?: string, numeric?: 'always' | 'auto'): string;
|
|
5
|
+
export declare function wordCount(text: string, max?: number, count?: AsamCountMethod): AsamWordCountResult;
|
|
6
|
+
/** 独立截止状态;先标记再通知,防止同步回调重入造成重复 finish。 */
|
|
7
|
+
export declare function createCountdownState(): (next: number | null, now: number) => {
|
|
8
|
+
remaining: number | null;
|
|
9
|
+
finish: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as AsamProCountdown } from './AsamProCountdown.vue';
|
|
2
|
+
export { default as AsamTextEllipsis } from './AsamTextEllipsis.vue';
|
|
3
|
+
export { default as AsamWordCount } from './AsamWordCount.vue';
|
|
4
|
+
export { default as AsamRelativeTime } from './AsamRelativeTime.vue';
|
|
5
|
+
export { default as AsamProCalendar } from './AsamProCalendar.vue';
|
|
6
|
+
export { wordCount as countAsamText } from './Core.js';
|
|
7
|
+
export type * from './Types.js';
|