@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,13 @@
|
|
|
1
|
+
import type { AsamApplicationProviderProps, AsamApplicationProviderSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamApplicationProviderSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamApplicationProviderProps, {
|
|
4
|
+
state: import("vue").ComputedRef<import("./Types.js").AsamApplicationState>;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamApplicationProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, 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,13 @@
|
|
|
1
|
+
import type { AsamPermissionProps, AsamPermissionSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamPermissionSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamPermissionProps, {
|
|
4
|
+
state: import("vue").ComputedRef<import("./Types.js").AsamPermissionState>;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamPermissionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, 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,7 @@
|
|
|
1
|
+
import type { InjectionKey, MaybeRefOrGetter, ComputedRef } from 'vue';
|
|
2
|
+
import type { AsamApplicationConfig, AsamApplicationState, AsamResolvedApplicationConfig } from './Types.js';
|
|
3
|
+
export declare const AsamApplicationConfigKey: InjectionKey<ComputedRef<AsamApplicationState>>;
|
|
4
|
+
/** Pure resolution; no process global state or DOM access, safe for separate SSR requests. */
|
|
5
|
+
export declare function resolveAsamApplicationConfig(input?: AsamApplicationConfig | null, parent?: AsamResolvedApplicationConfig): AsamApplicationState;
|
|
6
|
+
export declare function useAsamApplicationConfig(local?: MaybeRefOrGetter<AsamApplicationConfig | null | undefined>): ComputedRef<AsamApplicationState>;
|
|
7
|
+
export declare function provideAsamApplicationConfig(local?: MaybeRefOrGetter<AsamApplicationConfig | null | undefined>): ComputedRef<AsamApplicationState>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as AsamApplicationProvider } from './AsamApplicationProvider.vue';
|
|
2
|
+
export { default as AsamPermission } from './AsamPermission.vue';
|
|
3
|
+
export { AsamApplicationConfigKey, resolveAsamApplicationConfig, useAsamApplicationConfig, provideAsamApplicationConfig } from './Context.js';
|
|
4
|
+
export { evaluateAsamPermission, useAsamPermission } from './Permission.js';
|
|
5
|
+
export type * from './Types.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComputedRef, MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import type { AsamPermissionCheck, AsamPermissionMode, AsamPermissionState } from './Types.js';
|
|
3
|
+
/** A missing source is pending; thrown/invalid/thenable output is an error. All fail closed. */
|
|
4
|
+
export declare function evaluateAsamPermission(permission: string, check: AsamPermissionCheck | null, mode?: AsamPermissionMode): AsamPermissionState;
|
|
5
|
+
export declare function useAsamPermission(permission: MaybeRefOrGetter<string>, mode?: MaybeRefOrGetter<AsamPermissionMode | undefined>): ComputedRef<AsamPermissionState>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { AsamControlSize, AsamConfigProviderProps, AsamThemeTokens, DeepPartial } from '@asam-ui/ui';
|
|
3
|
+
export type AsamColorMode = 'light' | 'dark';
|
|
4
|
+
export type AsamPermissionStatus = 'allowed' | 'denied' | 'pending' | 'error';
|
|
5
|
+
/** Synchronous only. Reactive reads inside the callback are tracked. Never return a Promise. */
|
|
6
|
+
export type AsamPermissionCheck = (permission: string) => boolean | AsamPermissionStatus;
|
|
7
|
+
export type AsamPermissionMode = 'hide' | 'disable';
|
|
8
|
+
export interface AsamPermissionPolicy {
|
|
9
|
+
check?: AsamPermissionCheck | null;
|
|
10
|
+
mode?: AsamPermissionMode | null;
|
|
11
|
+
}
|
|
12
|
+
export interface AsamApplicationConfig {
|
|
13
|
+
size?: AsamControlSize | null;
|
|
14
|
+
colorMode?: AsamColorMode | null;
|
|
15
|
+
/** Partial token objects merge recursively; null resets to ASAM defaults. */
|
|
16
|
+
theme?: DeepPartial<AsamThemeTokens> | null;
|
|
17
|
+
/** Element Plus public options. Shallow option replacement; null resets the bridge. */
|
|
18
|
+
base?: Omit<AsamConfigProviderProps, 'size'> | null;
|
|
19
|
+
permission?: AsamPermissionPolicy | null;
|
|
20
|
+
}
|
|
21
|
+
export interface AsamResolvedApplicationConfig {
|
|
22
|
+
size: AsamControlSize;
|
|
23
|
+
colorMode: AsamColorMode;
|
|
24
|
+
theme: AsamThemeTokens;
|
|
25
|
+
/** Explicit overrides retained so a white surface can intentionally override dark defaults. */
|
|
26
|
+
themeOverrides?: DeepPartial<AsamThemeTokens>;
|
|
27
|
+
base: Omit<AsamConfigProviderProps, 'size'>;
|
|
28
|
+
permission: {
|
|
29
|
+
check: AsamPermissionCheck | null;
|
|
30
|
+
mode: AsamPermissionMode;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export interface AsamApplicationState {
|
|
34
|
+
config: AsamResolvedApplicationConfig;
|
|
35
|
+
/** Invalid runtime input fails back to the inherited configuration and can recover. */
|
|
36
|
+
errors: readonly string[];
|
|
37
|
+
}
|
|
38
|
+
export interface AsamApplicationProviderProps {
|
|
39
|
+
config?: AsamApplicationConfig | null;
|
|
40
|
+
}
|
|
41
|
+
export interface AsamApplicationProviderSlots {
|
|
42
|
+
default?: (state: AsamApplicationState) => VNode[];
|
|
43
|
+
}
|
|
44
|
+
export interface AsamApplicationProviderExpose {
|
|
45
|
+
state: AsamApplicationState;
|
|
46
|
+
}
|
|
47
|
+
export type AsamApplicationProviderEmits = Record<never, never>;
|
|
48
|
+
export interface AsamPermissionState {
|
|
49
|
+
status: AsamPermissionStatus;
|
|
50
|
+
visible: boolean;
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
}
|
|
53
|
+
export interface AsamPermissionProps {
|
|
54
|
+
permission: string;
|
|
55
|
+
mode?: AsamPermissionMode;
|
|
56
|
+
}
|
|
57
|
+
export interface AsamPermissionSlots {
|
|
58
|
+
default?: (state: AsamPermissionState) => VNode[];
|
|
59
|
+
/** Used in hide mode for denied, pending and error. Receives no protected content. */
|
|
60
|
+
fallback?: (state: AsamPermissionState) => VNode[];
|
|
61
|
+
}
|
|
62
|
+
export interface AsamPermissionExpose {
|
|
63
|
+
state: AsamPermissionState;
|
|
64
|
+
}
|
|
65
|
+
export type AsamPermissionEmits = Record<never, never>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AsamDetailDialogProps, AsamDetailOverlaySlots } from './OverlayTypes.js';
|
|
2
|
+
type __VLS_Slots = AsamDetailOverlaySlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamDetailDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
close: () => any;
|
|
5
|
+
closed: () => any;
|
|
6
|
+
open: () => any;
|
|
7
|
+
opened: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<AsamDetailDialogProps> & Readonly<{
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
10
|
+
onClosed?: (() => any) | undefined;
|
|
11
|
+
onOpen?: (() => any) | undefined;
|
|
12
|
+
onOpened?: (() => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
readonly width: string | number;
|
|
15
|
+
readonly closeOnClickModal: boolean;
|
|
16
|
+
readonly closeOnPressEscape: boolean;
|
|
17
|
+
readonly appearance: import("./Types.js").AsamDetailAppearance;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AsamDetailDrawerProps, AsamDetailOverlaySlots } from './OverlayTypes.js';
|
|
2
|
+
type __VLS_Slots = AsamDetailOverlaySlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamDetailDrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
close: () => any;
|
|
5
|
+
closed: () => any;
|
|
6
|
+
open: () => any;
|
|
7
|
+
opened: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<AsamDetailDrawerProps> & Readonly<{
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
10
|
+
onClosed?: (() => any) | undefined;
|
|
11
|
+
onOpen?: (() => any) | undefined;
|
|
12
|
+
onOpened?: (() => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
readonly size: string | number;
|
|
15
|
+
readonly closeOnClickModal: boolean;
|
|
16
|
+
readonly closeOnPressEscape: boolean;
|
|
17
|
+
readonly appearance: import("./Types.js").AsamDetailAppearance;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AsamFieldModel } from '../fields/Types.js';
|
|
2
|
+
import type { AsamDetailAppearance, AsamDetailController, AsamDetailStatus } from './Types.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: AsamDetailController;
|
|
5
|
+
fieldLabels?: Readonly<Record<string, string>>;
|
|
6
|
+
title?: string;
|
|
7
|
+
emptyText?: string;
|
|
8
|
+
columns?: 1 | 2 | 3;
|
|
9
|
+
/** plain 保留独立面板旧样式;grouped 使用分组标题与只读内容底。 */
|
|
10
|
+
appearance?: AsamDetailAppearance;
|
|
11
|
+
/** The host owns its title, focus and close lifecycle when embedding this content. */
|
|
12
|
+
embedded?: boolean;
|
|
13
|
+
fallbackFocus?: () => HTMLElement | null;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_Slots = {
|
|
16
|
+
default?: (scope: {
|
|
17
|
+
data: Readonly<AsamFieldModel> | undefined;
|
|
18
|
+
status: AsamDetailStatus;
|
|
19
|
+
}) => unknown;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
22
|
+
title: string;
|
|
23
|
+
emptyText: string;
|
|
24
|
+
columns: 1 | 2 | 3;
|
|
25
|
+
fallbackFocus: () => HTMLElement | null;
|
|
26
|
+
appearance: AsamDetailAppearance;
|
|
27
|
+
embedded: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { AsamDialogSlots } from '@asam-ui/ui';
|
|
2
|
+
import type { AsamFieldModel } from '../fields/Types.js';
|
|
3
|
+
import type { AsamDetailAppearance, AsamDetailController, AsamDetailStatus } from './Types.js';
|
|
4
|
+
interface AsamDetailOverlayProps {
|
|
5
|
+
/** 详情控制器管理开合。通过 controller.open() 打开当前记录。 */
|
|
6
|
+
readonly controller: AsamDetailController;
|
|
7
|
+
/** 浮层标题,默认使用当前语言的资料详情标题。 */
|
|
8
|
+
readonly title?: string;
|
|
9
|
+
/** 按字段键覆盖资料标签。 */
|
|
10
|
+
readonly fieldLabels?: Readonly<Record<string, string>>;
|
|
11
|
+
/** 空值的占位文案。 */
|
|
12
|
+
readonly emptyText?: string;
|
|
13
|
+
/** 详情字段的列数,默认双列。 */
|
|
14
|
+
readonly columns?: 1 | 2 | 3;
|
|
15
|
+
/** 详情面板的呈现样式,默认 grouped。 */
|
|
16
|
+
readonly appearance?: AsamDetailAppearance;
|
|
17
|
+
/** 禁止通过关闭按钮、页脚 close 回调、遮罩或 Escape 关闭。 */
|
|
18
|
+
readonly closeDisabled?: boolean;
|
|
19
|
+
/** 点击遮罩时能否关闭,默认沿用基础容器。 */
|
|
20
|
+
readonly closeOnClickModal?: boolean;
|
|
21
|
+
/** 按 Escape 时能否关闭,默认沿用基础容器。 */
|
|
22
|
+
readonly closeOnPressEscape?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface AsamDetailDialogProps extends AsamDetailOverlayProps {
|
|
25
|
+
/** 弹窗宽度,默认 min(900px, calc(100% - 24px))。 */
|
|
26
|
+
readonly width?: string | number;
|
|
27
|
+
}
|
|
28
|
+
export interface AsamDetailDrawerProps extends AsamDetailOverlayProps {
|
|
29
|
+
/** 抽屉的预设尺寸或宽度,默认 min(800px, 100vw)。 */
|
|
30
|
+
readonly size?: string | number;
|
|
31
|
+
/** 抽屉打开方向,默认 rtl。 */
|
|
32
|
+
readonly direction?: 'rtl' | 'ltr' | 'ttb' | 'btt';
|
|
33
|
+
/** 是否允许拖动边缘调整抽屉尺寸。 */
|
|
34
|
+
readonly resizable?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface AsamDetailOverlayEmits {
|
|
37
|
+
/** 浮层开始打开。 */
|
|
38
|
+
open: [];
|
|
39
|
+
/** 打开过渡结束。 */
|
|
40
|
+
opened: [];
|
|
41
|
+
/** 浮层开始关闭。 */
|
|
42
|
+
close: [];
|
|
43
|
+
/** 关闭过渡结束。 */
|
|
44
|
+
closed: [];
|
|
45
|
+
}
|
|
46
|
+
export interface AsamDetailOverlaySlots {
|
|
47
|
+
/** 自定义浮层标题,沿用基础容器的标题插槽参数。 */
|
|
48
|
+
header?: AsamDialogSlots['header'];
|
|
49
|
+
/** 替换整个详情内容区。 */
|
|
50
|
+
content?: () => unknown;
|
|
51
|
+
/** 在详情面板的字段之后追加内容。 */
|
|
52
|
+
default?: (scope: {
|
|
53
|
+
data: Readonly<AsamFieldModel> | undefined;
|
|
54
|
+
status: AsamDetailStatus;
|
|
55
|
+
}) => unknown;
|
|
56
|
+
/** 自定义页脚操作。close 回调受 closeDisabled 控制。 */
|
|
57
|
+
footer?: (scope: {
|
|
58
|
+
close: () => void;
|
|
59
|
+
}) => unknown;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { AsamDataRuntime, AsamRequestContext } from '@asam-ui/ui';
|
|
2
|
+
import type { AsamI18n } from '@asam-ui/ui/i18n';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
4
|
+
import type { AsamFieldDefinition, AsamFieldModel } from '../fields/Types.js';
|
|
5
|
+
export type AsamDetailStatus = 'idle' | 'loading' | 'ready' | 'missing' | 'forbidden' | 'error' | 'config-error';
|
|
6
|
+
export type AsamDetailAppearance = 'plain' | 'grouped';
|
|
7
|
+
interface DetailTarget {
|
|
8
|
+
readonly id: string | number;
|
|
9
|
+
}
|
|
10
|
+
export type AsamDetailSource = DetailTarget & ({
|
|
11
|
+
readonly mode: 'direct';
|
|
12
|
+
readonly data?: Readonly<AsamFieldModel>;
|
|
13
|
+
readonly status: Exclude<AsamDetailStatus, 'config-error'>;
|
|
14
|
+
readonly message?: string;
|
|
15
|
+
readonly load?: never;
|
|
16
|
+
} | {
|
|
17
|
+
readonly mode: 'load';
|
|
18
|
+
readonly load: (id: string | number, context: AsamRequestContext) => Promise<AsamDetailResult>;
|
|
19
|
+
readonly data?: never;
|
|
20
|
+
readonly status?: never;
|
|
21
|
+
});
|
|
22
|
+
export type AsamDetailResult = {
|
|
23
|
+
readonly status: 'ready';
|
|
24
|
+
readonly data: Readonly<AsamFieldModel>;
|
|
25
|
+
} | {
|
|
26
|
+
readonly status: 'missing' | 'forbidden';
|
|
27
|
+
readonly message?: string;
|
|
28
|
+
};
|
|
29
|
+
export interface AsamDetailConfig {
|
|
30
|
+
readonly fields: readonly AsamFieldDefinition[];
|
|
31
|
+
readonly runtime: AsamDataRuntime;
|
|
32
|
+
}
|
|
33
|
+
export interface AsamDetailController {
|
|
34
|
+
readonly fields: readonly AsamFieldDefinition[];
|
|
35
|
+
readonly data: Readonly<Ref<Readonly<AsamFieldModel> | undefined>>;
|
|
36
|
+
readonly status: Readonly<Ref<AsamDetailStatus>>;
|
|
37
|
+
readonly message: Readonly<Ref<string>>;
|
|
38
|
+
/** Resolve library-owned current feedback in the displaying scope; raw message stays diagnostic. */
|
|
39
|
+
readonly formatMessage?: (scope: AsamI18n) => string;
|
|
40
|
+
readonly active: Readonly<Ref<boolean>>;
|
|
41
|
+
readonly canRefresh: Readonly<Ref<boolean>>;
|
|
42
|
+
readonly session: Readonly<Ref<number>>;
|
|
43
|
+
open(source: AsamDetailSource): Promise<void>;
|
|
44
|
+
/** 仅直接模式同 id 更新,切源需 open 明确建立新会话。 */
|
|
45
|
+
update(source: AsamDetailSource): void;
|
|
46
|
+
refresh(): Promise<void>;
|
|
47
|
+
close(): void;
|
|
48
|
+
dispose(): void;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AsamCountToProps } from './Types.js';
|
|
2
|
+
/** 单组件最多一个动画帧;目标替换从当前显示值连续过渡。 */
|
|
3
|
+
export declare function useAsamNumberAnimation(props: Readonly<AsamCountToProps>, onChange: (value: number) => void, onFinish: (value: number | null) => void): {
|
|
4
|
+
displayed: import("vue").Ref<number | null, number | null>;
|
|
5
|
+
finish: () => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { AsamCardGroupProps } from './Types.js';
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
default?: () => VNode[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamCardGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamCardGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AsamCountToProps, AsamCountToExpose } from './Types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<AsamCountToProps, AsamCountToExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
change: (value: number) => any;
|
|
4
|
+
finish: (value: number | null) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<AsamCountToProps> & Readonly<{
|
|
6
|
+
onChange?: ((value: number) => any) | undefined;
|
|
7
|
+
onFinish?: ((value: number | null) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
reducedMotion: boolean;
|
|
10
|
+
useGrouping: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AsamDisplayCardProps, AsamDisplayCardSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamDisplayCardSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamDisplayCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamDisplayCardProps> & Readonly<{}>, {
|
|
4
|
+
status: import("./Types.js").AsamDisplayStatus;
|
|
5
|
+
emptyText: string;
|
|
6
|
+
errorText: string;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AsamNumberDisplayProps } from './Types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<AsamNumberDisplayProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamNumberDisplayProps> & Readonly<{}>, {
|
|
3
|
+
useGrouping: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AsamProAvatarGroupProps, AsamProAvatarGroupSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamProAvatarGroupSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamProAvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamProAvatarGroupProps> & Readonly<{}>, {
|
|
4
|
+
status: import("./Types.js").AsamDisplayStatus;
|
|
5
|
+
emptyText: string;
|
|
6
|
+
errorText: string;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AsamStatisticCardProps, AsamStatisticCardSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamStatisticCardSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamStatisticCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamStatisticCardProps> & Readonly<{}>, {
|
|
4
|
+
useGrouping: boolean;
|
|
5
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, 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,6 @@
|
|
|
1
|
+
import type { AsamTrendProps } from './Types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<AsamTrendProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamTrendProps> & Readonly<{}>, {
|
|
3
|
+
useGrouping: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AsamNumberFormatOptions } from './Types.js';
|
|
2
|
+
import type { AsamI18n } from '@asam-ui/ui/i18n';
|
|
3
|
+
export declare function isDisplayNumber(value: unknown): value is number;
|
|
4
|
+
/** D03 的单一格式化实现;不更改原值、不猜测金额/百分比或单位换算。 */
|
|
5
|
+
export declare function formatAsamNumber(value: number | null | undefined, options?: AsamNumberFormatOptions, i18n?: Pick<AsamI18n, 'locale' | 'enabled'>): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as AsamDisplayCard } from './AsamDisplayCard.vue';
|
|
2
|
+
export { default as AsamCardGroup } from './AsamCardGroup.vue';
|
|
3
|
+
export { default as AsamStatisticCard } from './AsamStatisticCard.vue';
|
|
4
|
+
export { default as AsamNumberDisplay } from './AsamNumberDisplay.vue';
|
|
5
|
+
export { default as AsamCountTo } from './AsamCountTo.vue';
|
|
6
|
+
export { default as AsamTrend } from './AsamTrend.vue';
|
|
7
|
+
export { default as AsamProAvatarGroup } from './AsamProAvatarGroup.vue';
|
|
8
|
+
export { formatAsamNumber } from './Format.js';
|
|
9
|
+
export type * from './Types.js';
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { AsamCardLayout, AsamCardSize, AsamCssSize } from '@asam-ui/ui';
|
|
3
|
+
/** 展示组件不请求数据;宿主提供加载、空和错误状态。 */
|
|
4
|
+
export type AsamDisplayStatus = 'ready' | 'loading' | 'empty' | 'error';
|
|
5
|
+
export interface AsamDisplayState {
|
|
6
|
+
status?: AsamDisplayStatus;
|
|
7
|
+
emptyText?: string;
|
|
8
|
+
errorText?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AsamNumberFormatOptions {
|
|
11
|
+
/** 小数位数,默认 2,有限值限制为 0~20。 */
|
|
12
|
+
precision?: number;
|
|
13
|
+
/** 显式 Intl 区域优先;省略时继承启用的 i18n scope,旧调用及非法区域回退 zh-CN。 */
|
|
14
|
+
locale?: string;
|
|
15
|
+
useGrouping?: boolean;
|
|
16
|
+
/** 无自动缩放,单位原样附于数字后。 */
|
|
17
|
+
unit?: string;
|
|
18
|
+
prefix?: string;
|
|
19
|
+
suffix?: string;
|
|
20
|
+
/** null、undefined、NaN 和无穷值使用此文本,默认 —。 */
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface AsamNumberDisplayProps extends AsamNumberFormatOptions {
|
|
24
|
+
value?: number | null;
|
|
25
|
+
}
|
|
26
|
+
export interface AsamCountToProps extends AsamNumberDisplayProps {
|
|
27
|
+
/** 默认 600ms;0 或非法时长立即完成,最大 60s。 */
|
|
28
|
+
duration?: number;
|
|
29
|
+
/** 不传时遵从 prefers-reduced-motion。 */
|
|
30
|
+
reducedMotion?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface AsamCountToEmits {
|
|
33
|
+
change: [value: number];
|
|
34
|
+
finish: [value: number | null];
|
|
35
|
+
}
|
|
36
|
+
export interface AsamCountToExpose {
|
|
37
|
+
/** 取消当前帧并立即显示目标值。 */
|
|
38
|
+
finish: () => void;
|
|
39
|
+
}
|
|
40
|
+
export interface AsamDisplayCardProps extends AsamDisplayState {
|
|
41
|
+
title?: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface AsamDisplayCardSlots {
|
|
45
|
+
default?: () => VNode[];
|
|
46
|
+
header?: () => VNode[];
|
|
47
|
+
extra?: () => VNode[];
|
|
48
|
+
footer?: () => VNode[];
|
|
49
|
+
loading?: () => VNode[];
|
|
50
|
+
empty?: () => VNode[];
|
|
51
|
+
error?: () => VNode[];
|
|
52
|
+
}
|
|
53
|
+
export interface AsamCardGroupProps {
|
|
54
|
+
/** 分组可访问名称。 */
|
|
55
|
+
label: string;
|
|
56
|
+
/** 自适应最小卡宽,默认 240px,最小 120px。 */
|
|
57
|
+
minWidth?: number;
|
|
58
|
+
/** 几何尺寸独立于基础控件 size;显式 minWidth 优先。 */
|
|
59
|
+
cardSize?: AsamCardSize;
|
|
60
|
+
columns?: 'auto' | number;
|
|
61
|
+
maxWidth?: AsamCssSize;
|
|
62
|
+
layout?: AsamCardLayout;
|
|
63
|
+
gap?: AsamCssSize;
|
|
64
|
+
}
|
|
65
|
+
export interface AsamTrendProps extends AsamNumberDisplayProps {
|
|
66
|
+
direction: 'up' | 'down' | 'flat';
|
|
67
|
+
/** 上涨不一定是好事;语义与方向独立。 */
|
|
68
|
+
tone?: 'positive' | 'negative' | 'neutral';
|
|
69
|
+
label?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface AsamStatisticCardProps extends AsamDisplayCardProps, AsamNumberDisplayProps {
|
|
72
|
+
label: string;
|
|
73
|
+
helper?: string;
|
|
74
|
+
animated?: boolean;
|
|
75
|
+
duration?: number;
|
|
76
|
+
trend?: AsamTrendProps;
|
|
77
|
+
}
|
|
78
|
+
export interface AsamStatisticCardSlots {
|
|
79
|
+
extra?: () => VNode[];
|
|
80
|
+
footer?: () => VNode[];
|
|
81
|
+
value?: (props: {
|
|
82
|
+
value: number | null | undefined;
|
|
83
|
+
}) => VNode[];
|
|
84
|
+
}
|
|
85
|
+
export interface AsamAvatarItem {
|
|
86
|
+
id: string | number;
|
|
87
|
+
/** 必填姓名;也是图片失败的回退和溢出列表的文本。 */
|
|
88
|
+
name: string;
|
|
89
|
+
src?: string;
|
|
90
|
+
description?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface AsamProAvatarGroupProps extends AsamDisplayState {
|
|
93
|
+
items: readonly AsamAvatarItem[];
|
|
94
|
+
label: string;
|
|
95
|
+
/** 可见头像数量,默认 5;0 表示全部进入说明列表。 */
|
|
96
|
+
max?: number;
|
|
97
|
+
size?: number;
|
|
98
|
+
}
|
|
99
|
+
export interface AsamProAvatarGroupSlots {
|
|
100
|
+
avatar?: (props: {
|
|
101
|
+
item: AsamAvatarItem;
|
|
102
|
+
}) => VNode[];
|
|
103
|
+
overflow?: (props: {
|
|
104
|
+
items: readonly AsamAvatarItem[];
|
|
105
|
+
}) => VNode[];
|
|
106
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { GuidanceStep, GuidedTourProps, GuidedTourExpose, TourExitReason } from './Types.js';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
step?: (scope: {
|
|
4
|
+
step: GuidanceStep;
|
|
5
|
+
index: number;
|
|
6
|
+
}) => unknown;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<GuidedTourProps, GuidedTourExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (open: boolean) => any;
|
|
10
|
+
missing: (step: GuidanceStep) => any;
|
|
11
|
+
exit: (reason: TourExitReason) => any;
|
|
12
|
+
"update:current": (current: number) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<GuidedTourProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
|
|
15
|
+
onMissing?: ((step: GuidanceStep) => any) | undefined;
|
|
16
|
+
onExit?: ((reason: TourExitReason) => any) | undefined;
|
|
17
|
+
"onUpdate:current"?: ((current: number) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
label: string;
|
|
20
|
+
current: number;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { HelpContent, HelpPanelProps, HelpPanelExpose } from './Types.js';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
default?: (scope: {
|
|
4
|
+
content: HelpContent;
|
|
5
|
+
contextKey: string;
|
|
6
|
+
}) => unknown;
|
|
7
|
+
empty?: () => unknown;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<HelpPanelProps, HelpPanelExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
error: (error: unknown) => any;
|
|
11
|
+
"update:modelValue": (open: boolean) => any;
|
|
12
|
+
loaded: (content: HelpContent | null) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<HelpPanelProps> & Readonly<{
|
|
14
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
|
|
16
|
+
onLoaded?: ((content: HelpContent | null) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
label: string;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { NotificationPanelProps } from './Types.js';
|
|
2
|
+
type __VLS_Props = NotificationPanelProps & {
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
request: (operation: Omit<import("./Types.js").NotificationOperation, "signal">) => any;
|
|
7
|
+
error: (error: unknown) => any;
|
|
8
|
+
"update:modelValue": (open: boolean) => any;
|
|
9
|
+
result: (operation: Omit<import("./Types.js").NotificationOperation, "signal">) => any;
|
|
10
|
+
"update:category": (category: string | null) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onRequest?: ((operation: Omit<import("./Types.js").NotificationOperation, "signal">) => any) | undefined;
|
|
13
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
|
|
15
|
+
onResult?: ((operation: Omit<import("./Types.js").NotificationOperation, "signal">) => any) | undefined;
|
|
16
|
+
"onUpdate:category"?: ((category: string | null) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|