@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,225 @@
|
|
|
1
|
+
# 内容字段第三方许可
|
|
2
|
+
|
|
3
|
+
本包正常构建包含下列 Markdown 依赖代码。富文本通过 @asam-ui/ui 消费,其原有第三方许可随 UI 包提供。
|
|
4
|
+
|
|
5
|
+
## markdown-it 15.0.3 (MIT)
|
|
6
|
+
|
|
7
|
+
来源:https://registry.npmjs.org/markdown-it/15.0.3
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2014 Vitaly Puzrin, Alex Kocharin.
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person
|
|
12
|
+
obtaining a copy of this software and associated documentation
|
|
13
|
+
files (the "Software"), to deal in the Software without
|
|
14
|
+
restriction, including without limitation the rights to use,
|
|
15
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the
|
|
17
|
+
Software is furnished to do so, subject to the following
|
|
18
|
+
conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be
|
|
21
|
+
included in all copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
24
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
25
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
26
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
27
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
28
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
29
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
30
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
31
|
+
|
|
32
|
+
## argparse 3.0.3 (PSF-2.0)
|
|
33
|
+
|
|
34
|
+
来源:https://registry.npmjs.org/argparse/3.0.3
|
|
35
|
+
|
|
36
|
+
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
|
|
37
|
+
|
|
38
|
+
1. This LICENSE AGREEMENT is between the Python Software Foundation
|
|
39
|
+
("PSF"), and the Individual or Organization ("Licensee") accessing and
|
|
40
|
+
otherwise using this software ("Python") in source or binary form and
|
|
41
|
+
its associated documentation.
|
|
42
|
+
|
|
43
|
+
2. Subject to the terms and conditions of this License Agreement, PSF hereby
|
|
44
|
+
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
|
|
45
|
+
analyze, test, perform and/or display publicly, prepare derivative works,
|
|
46
|
+
distribute, and otherwise use Python alone or in any derivative version,
|
|
47
|
+
provided, however, that PSF's License Agreement and PSF's notice of copyright,
|
|
48
|
+
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
|
49
|
+
2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Python Software Foundation;
|
|
50
|
+
All Rights Reserved" are retained in Python alone or in any derivative version
|
|
51
|
+
prepared by Licensee.
|
|
52
|
+
|
|
53
|
+
3. In the event Licensee prepares a derivative work that is based on
|
|
54
|
+
or incorporates Python or any part thereof, and wants to make
|
|
55
|
+
the derivative work available to others as provided herein, then
|
|
56
|
+
Licensee hereby agrees to include in any such work a brief summary of
|
|
57
|
+
the changes made to Python.
|
|
58
|
+
|
|
59
|
+
4. PSF is making Python available to Licensee on an "AS IS"
|
|
60
|
+
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
|
61
|
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
|
|
62
|
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
|
63
|
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
|
|
64
|
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
|
65
|
+
|
|
66
|
+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
|
67
|
+
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
|
68
|
+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
|
|
69
|
+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
|
70
|
+
|
|
71
|
+
6. This License Agreement will automatically terminate upon a material
|
|
72
|
+
breach of its terms and conditions.
|
|
73
|
+
|
|
74
|
+
7. Nothing in this License Agreement shall be deemed to create any
|
|
75
|
+
relationship of agency, partnership, or joint venture between PSF and
|
|
76
|
+
Licensee. This License Agreement does not grant permission to use PSF
|
|
77
|
+
trademarks or trade name in a trademark sense to endorse or promote
|
|
78
|
+
products or services of Licensee, or any third party.
|
|
79
|
+
|
|
80
|
+
8. By copying, installing or otherwise using Python, Licensee
|
|
81
|
+
agrees to be bound by the terms and conditions of this License
|
|
82
|
+
Agreement.
|
|
83
|
+
|
|
84
|
+
## entities 8.1.0 (BSD-2-Clause)
|
|
85
|
+
|
|
86
|
+
来源:https://registry.npmjs.org/entities/8.1.0
|
|
87
|
+
|
|
88
|
+
Copyright (c) Felix Böhm
|
|
89
|
+
All rights reserved.
|
|
90
|
+
|
|
91
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
92
|
+
|
|
93
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
94
|
+
|
|
95
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
96
|
+
|
|
97
|
+
THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
|
|
98
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
99
|
+
|
|
100
|
+
## linkify-it 6.1.0 (MIT)
|
|
101
|
+
|
|
102
|
+
来源:https://registry.npmjs.org/linkify-it/6.1.0
|
|
103
|
+
|
|
104
|
+
Copyright (c) 2015 Vitaly Puzrin.
|
|
105
|
+
|
|
106
|
+
Permission is hereby granted, free of charge, to any person
|
|
107
|
+
obtaining a copy of this software and associated documentation
|
|
108
|
+
files (the "Software"), to deal in the Software without
|
|
109
|
+
restriction, including without limitation the rights to use,
|
|
110
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
111
|
+
copies of the Software, and to permit persons to whom the
|
|
112
|
+
Software is furnished to do so, subject to the following
|
|
113
|
+
conditions:
|
|
114
|
+
|
|
115
|
+
The above copyright notice and this permission notice shall be
|
|
116
|
+
included in all copies or substantial portions of the Software.
|
|
117
|
+
|
|
118
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
119
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
120
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
121
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
122
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
123
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
124
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
125
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
126
|
+
|
|
127
|
+
## uc.micro 3.0.0 (MIT)
|
|
128
|
+
|
|
129
|
+
来源:https://registry.npmjs.org/uc.micro/3.0.0
|
|
130
|
+
|
|
131
|
+
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
|
132
|
+
|
|
133
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
134
|
+
a copy of this software and associated documentation files (the
|
|
135
|
+
"Software"), to deal in the Software without restriction, including
|
|
136
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
137
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
138
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
139
|
+
the following conditions:
|
|
140
|
+
|
|
141
|
+
The above copyright notice and this permission notice shall be
|
|
142
|
+
included in all copies or substantial portions of the Software.
|
|
143
|
+
|
|
144
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
145
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
146
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
147
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
148
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
149
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
150
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
151
|
+
|
|
152
|
+
## mdurl 2.1.0 (MIT)
|
|
153
|
+
|
|
154
|
+
来源:https://registry.npmjs.org/mdurl/2.1.0
|
|
155
|
+
|
|
156
|
+
Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.
|
|
157
|
+
|
|
158
|
+
Permission is hereby granted, free of charge, to any person
|
|
159
|
+
obtaining a copy of this software and associated documentation
|
|
160
|
+
files (the "Software"), to deal in the Software without
|
|
161
|
+
restriction, including without limitation the rights to use,
|
|
162
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
163
|
+
copies of the Software, and to permit persons to whom the
|
|
164
|
+
Software is furnished to do so, subject to the following
|
|
165
|
+
conditions:
|
|
166
|
+
|
|
167
|
+
The above copyright notice and this permission notice shall be
|
|
168
|
+
included in all copies or substantial portions of the Software.
|
|
169
|
+
|
|
170
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
171
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
172
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
173
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
174
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
175
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
176
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
177
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
.parse() is based on Joyent's node.js `url` code:
|
|
182
|
+
|
|
183
|
+
Copyright Joyent, Inc. and other Node contributors. All rights reserved.
|
|
184
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
185
|
+
of this software and associated documentation files (the "Software"), to
|
|
186
|
+
deal in the Software without restriction, including without limitation the
|
|
187
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
188
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
189
|
+
furnished to do so, subject to the following conditions:
|
|
190
|
+
|
|
191
|
+
The above copyright notice and this permission notice shall be included in
|
|
192
|
+
all copies or substantial portions of the Software.
|
|
193
|
+
|
|
194
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
195
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
196
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
197
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
198
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
199
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
200
|
+
IN THE SOFTWARE.
|
|
201
|
+
|
|
202
|
+
## punycode.js 2.3.1 (MIT)
|
|
203
|
+
|
|
204
|
+
来源:https://registry.npmjs.org/punycode.js/2.3.1
|
|
205
|
+
|
|
206
|
+
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
|
207
|
+
|
|
208
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
209
|
+
a copy of this software and associated documentation files (the
|
|
210
|
+
"Software"), to deal in the Software without restriction, including
|
|
211
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
212
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
213
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
214
|
+
the following conditions:
|
|
215
|
+
|
|
216
|
+
The above copyright notice and this permission notice shall be
|
|
217
|
+
included in all copies or substantial portions of the Software.
|
|
218
|
+
|
|
219
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
220
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
221
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
222
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
223
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
224
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
225
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
ASAM UI Component Use License, Version 1.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ASAM UI contributors. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This is a restricted-use license, not an open-source license.
|
|
6
|
+
|
|
7
|
+
1. Covered software
|
|
8
|
+
|
|
9
|
+
This license applies to the original ASAM UI component code distributed in
|
|
10
|
+
the @asam-ui/pro package (the "Software"). Third-party
|
|
11
|
+
code and dependencies are not covered by this license and remain subject to
|
|
12
|
+
their own licenses.
|
|
13
|
+
|
|
14
|
+
2. Permission to use in applications
|
|
15
|
+
|
|
16
|
+
Subject to the conditions below, any person may download, install, copy, run,
|
|
17
|
+
and use the Software, including for commercial purposes. You may include the
|
|
18
|
+
Software as an integrated part of a website or application that you build,
|
|
19
|
+
publish, host, or distribute. Recipients may use that website or application
|
|
20
|
+
as delivered. You may charge for the website or application, but not for the
|
|
21
|
+
Software as a separately usable component product.
|
|
22
|
+
|
|
23
|
+
You may perform ordinary, automated build transformations needed to integrate
|
|
24
|
+
and deliver the Software in such a website or application, including
|
|
25
|
+
transpilation, bundling, minification, and tree-shaking. Using documented
|
|
26
|
+
configuration, public APIs, slots, and CSS custom properties in your own
|
|
27
|
+
application is permitted. Apart from ordinary build transformations, these
|
|
28
|
+
permissions do not allow edits to the Software's source files or distribution
|
|
29
|
+
of a modified component package.
|
|
30
|
+
|
|
31
|
+
3. Restrictions
|
|
32
|
+
|
|
33
|
+
Unless you have separate written permission from the copyright holders, you
|
|
34
|
+
may not:
|
|
35
|
+
|
|
36
|
+
- modify, adapt, or create a separately distributed derivative of the
|
|
37
|
+
Software or its component packages, except for the ordinary build
|
|
38
|
+
transformations permitted above;
|
|
39
|
+
- sell, sublicense, repackage, or redistribute the Software as a standalone
|
|
40
|
+
component library, package, template, or other separately usable component
|
|
41
|
+
product, whether under the original name or another name; or
|
|
42
|
+
- publish or republish the Software, in whole or in substantial part, as a
|
|
43
|
+
package on npm or any other package registry.
|
|
44
|
+
|
|
45
|
+
These restrictions do not prohibit distributing an application merely because
|
|
46
|
+
its compiled assets contain the Software as an integrated component.
|
|
47
|
+
|
|
48
|
+
4. Notices and third-party rights
|
|
49
|
+
|
|
50
|
+
Keep this copyright notice and license text with any copy of the Software's
|
|
51
|
+
source or component package that you retain or pass on under this license.
|
|
52
|
+
Do not remove notices already present in the Software. Comply separately with
|
|
53
|
+
all applicable third-party licenses and notice requirements; this license
|
|
54
|
+
does not limit rights granted by those third parties.
|
|
55
|
+
|
|
56
|
+
5. Ownership and trademarks
|
|
57
|
+
|
|
58
|
+
The Software is licensed, not sold. All rights not expressly granted are
|
|
59
|
+
reserved. This license does not grant rights to ASAM UI names, logos, or
|
|
60
|
+
trademarks except as needed to identify the Software accurately.
|
|
61
|
+
|
|
62
|
+
6. Warranty and liability
|
|
63
|
+
|
|
64
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
65
|
+
IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
66
|
+
PURPOSE, AND NONINFRINGEMENT. TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE
|
|
67
|
+
COPYRIGHT HOLDERS ARE NOT LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY
|
|
68
|
+
ARISING FROM THE SOFTWARE OR ITS USE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,251 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @asam-ui/pro
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
ASAM UI 的 Vue 业务组合层。2.0.0 提供字段语义、注册与渲染适配,查询列表、编辑弹窗和详情组合。公开版本标识 `asamProVersion` / `AsamProVersion` 对应实际发行版本。
|
|
4
|
+
|
|
5
|
+
`AsamOperationsTable.tableSize` 与 `AsamCrudPage.tableSize` 使用基础表格的 `AsamTableSize`,四档 `large/default/small/mini` 对应单行行高 60/50/42/36px,默认 `default`。现有 `size` 继续管理查询、工具栏、分页等控件,密度菜单只切换表格行高并仅显示档位名称。原组合表格的控件 `big` 在传入基础表格时映射为 `default`,不改变控件尺寸。
|
|
6
|
+
|
|
7
|
+
## 公共 CRUD 与独立表单
|
|
8
|
+
|
|
9
|
+
`AsamCrudPage` 默认占满宿主可用内容宽度。`v-model:content-width` 可在 `full`、`contained` 间受控切换;非受控初始值使用 `default-content-width`,默认 `full`。它与分配表格列宽的 `table-width` 相互独立,不表示浏览器全屏。没有有效标题且没有 `heading` 插槽时,不产生标题区或占位留白;`:show-heading="false"` 隐藏整个标题区。
|
|
10
|
+
|
|
11
|
+
CRUD、OperationsTable 与独立 ProTable 的操作列默认固定右侧,使用 `:action-column-fixed="false"` 显式关闭,业务列自己的 `fixed` 保留。
|
|
12
|
+
|
|
13
|
+
`AsamEditorForm` 是无 Dialog/Drawer 的共享编辑视图。默认双列,文本域等通过已有 `modes.edit.layout.span` 跨列,表单自身容器窄于 640px 时降为单列。`AsamFormDialog` 与 CRUD 内置编辑器消费同一字段、分组、校验和样式实现。
|
|
14
|
+
|
|
15
|
+
```vue
|
|
16
|
+
<!-- 已有受控表单:保留宿主原 draft、校验、busy/epoch 与 UNKNOWN 协调。 -->
|
|
17
|
+
<AsamEditorForm
|
|
18
|
+
ref="form"
|
|
19
|
+
v-model="draft"
|
|
20
|
+
:fields="fields"
|
|
21
|
+
:issues="issues"
|
|
22
|
+
:disabled="saving || pending"
|
|
23
|
+
:session="epoch"
|
|
24
|
+
@submit="save"
|
|
25
|
+
/>
|
|
26
|
+
|
|
27
|
+
<!-- 已有公共编辑控制器:保存、核实、关闭和放弃确认继续由该控制器拥有。 -->
|
|
28
|
+
<AsamEditorForm :controller="editor" />
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
受控模式不创建控制器、写状态或默认操作按钮;只发出 `update:modelValue` 和原生表单的 `submit` 意图。宿主继续管理提交、密码清除、身份变化与错误处理。可通过实例 `validate()` 获得字段问题,`focusField(key)`、`focusInitial()` 聚焦;已有宿主校验不必改为第二套写协议。控制器模式默认显示共用操作栏,可用 `:show-actions="false"` 由宿主提供按钮。
|
|
32
|
+
|
|
33
|
+
预加载树列表在 `useAsamCrudController`(只读构造同样支持)配置 `structure: { mode: 'tree', parentKey: 'parentId' }`;服务一次返回本范围全部平铺原始行,公共结构引擎负责父子投影。`filter(row)` 保留命中行祖先,缺失父键的行作为根,不复制业务 Row。默认隐藏树列表分页,同范围刷新保留仍有效的展开键;`controller.structure.setExpandedKeys(keys)` 支持全部展开/收起。`initialExpandedKeys`、`maxNodes`、`maxDepth` 沿用结构引擎。操作权限、忙碌、行快照仍走同一个 CRUD/ListController。这里不承诺 CRUD 懒加载树;独立 `AsamStructuredTable` 的既有懒加载协议保留。
|
|
34
|
+
|
|
35
|
+
共享操作表格空态复用 `AsamEmpty`,提供由同一列表控制器驱动的“重新加载”;保留当前查询和分页意图。手动刷新显示原生加载状态,读取成功后提示完成;失败仍走现有错误与重试通道。详情面板移除默认“刷新详情”按钮,公开控制器 `refresh()` 保留。Dialog、Drawer、FlowFields 与 SchemaForm 的翻译校验文字使用原生错误容器,呈现由基础表单统一管理;分组标题遵循共享加粗样式。
|
|
36
|
+
|
|
37
|
+
## 分类与按需入口
|
|
38
|
+
|
|
39
|
+
安装一个 `@asam-ui/pro`,按高级组件、应用能力、页面模板和类型字典使用。旧根具名出口保留;新应用能力使用以下入口:
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
import { Components, Application, Templates } from '@asam-ui/pro';
|
|
43
|
+
import type { Types } from '@asam-ui/pro';
|
|
44
|
+
const [visible, toggle] = Application.composables.useToggle(false);
|
|
45
|
+
|
|
46
|
+
import { AsamProTable } from '@asam-ui/pro/components';
|
|
47
|
+
import { createPreferences } from '@asam-ui/pro/application/preferences';
|
|
48
|
+
import { useToggle } from '@asam-ui/pro/application/composables/use-toggle';
|
|
49
|
+
import { AsamCrudPage } from '@asam-ui/pro/templates/crud';
|
|
50
|
+
import type { UseCountDownOptions } from '@asam-ui/pro/application/composables';
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
`Types` 只在类型空间存在,不能作为运行时对象访问。导航、安全、偏好、请求分别为 `application/navigation`、`security`、`preferences`、`transport`;组合式能力位于 `application/composables` 及其明确叶子入口。应用源码原 `templates/app` 路径保留薄转发,运行时实现以 Pro 为准。
|
|
54
|
+
|
|
55
|
+
根或分类聚合静态引用导航,正常消费时需提供 Vue Router。仅使用组合式叶子无需 Router、Vant UI 或 Pro 样式;根 namespace 的动态访问可能保留更多代码,不能以叶子结果推断根的体积。使用可视组件时加载 Element Plus、UI、Pro 的公开 CSS。
|
|
56
|
+
|
|
57
|
+
## 国际化候选
|
|
58
|
+
|
|
59
|
+
`@asam-ui/pro/i18n` 提供 `createAsamProI18n`、`useAsamProI18n` 与完整资源类型,语言资源可从 `/i18n/en`、`/i18n/zh-CN` 独立导入。它复用匹配 UI 包的翻译内核和注入 key;将同一 scope 交给 `AsamApplicationProvider` 的 `config.base.i18n`,组件内外共享语言。新入口默认中文,旧入口行为和宿主显式文字保持。
|
|
60
|
+
|
|
61
|
+
`@asam-ui/pro/application/preferences` 提供偏好绑定和显式宿主资源加载门面;业务字典、语言存储与地区格式分别承担不同责任。迁移和接入见源码仓 `docs/I18N.md` 及 `src/application/preferences/I18nGuide.md`。本轮仍为开发候选,正常包、动态状态、全部公开范围与独立 QA/ACC 必须按固定回执确认,不能仅因资源入口存在声称全包完成。
|
|
62
|
+
|
|
63
|
+
## 自动导入
|
|
64
|
+
|
|
65
|
+
手动导入、分类 namespace 和插件导入可混用。构建适配从 `@asam-ui/pro/resolver` 引入:
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
import Components from 'unplugin-vue-components/vite';
|
|
69
|
+
import AutoImport from 'unplugin-auto-import/vite';
|
|
70
|
+
import { AsamUIResolver } from '@asam-ui/ui/resolver';
|
|
71
|
+
import { AsamProResolver, asamProAutoImports } from '@asam-ui/pro/resolver';
|
|
72
|
+
|
|
73
|
+
const plugins = [
|
|
74
|
+
Components({ resolvers: [AsamUIResolver(), AsamProResolver()] }),
|
|
75
|
+
AutoImport({
|
|
76
|
+
imports: asamProAutoImports({
|
|
77
|
+
abilities: ['composables/use-toggle'],
|
|
78
|
+
include: ['Application', { name: 'useClickAway', as: 'useProClickAway' }],
|
|
79
|
+
types: ['UseCountDownOptions']
|
|
80
|
+
})
|
|
81
|
+
})
|
|
82
|
+
];
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
沿宿主现有插件和扫描范围合并配置,并在构建时生成 d.ts。函数/类型默认不全局注入;可以选择能力整体或指定符号,提供 `exclude`。同名跨能力必须通过 `from` 指定来源并用 `as` 区分。组件只由组件 resolver 处理,未知符号和有歧义的名称会报错。类型默认可显式 `import type`;可选类型预设生成 type-only 声明,插件扫描范围外仍须显式导入。当前验证插件为 components 32.1.0、auto-import 21.1.0,未使用插件的消费者不需要安装它们。
|
|
86
|
+
|
|
87
|
+
组合式能力通过正式依赖 `@vant/use@1.6.0` 复用。`flattenVNodes`、`sortChildren`、`supportsPassive` 不作为 Pro API 或自动导入项。`useChildren` 属于面向组件作者的高级 Vue 实例关联能力,兼容基线 Vue 3.5.34。来源、薄适配与许可见 [第三方说明](./THIRD_PARTY_NOTICES.md)。
|
|
88
|
+
|
|
89
|
+
`useCustomFieldValue` 需要放在 `AsamCustomField` 的后代组件中,桥接同一个上游注入 key。使用 slot 的 `value/update/blur` 对接模型与交互;内层 ASAM/EP 控件设 `:validate-event="false"`,由桥接统一触发校验,避免重置时重复报错。程序化更改模型不视作用户输入,需要时显式调用表单或字段的公开 `validate`。没有桥接 provider 时,该 Hook 不会自动接入普通表单。不要手工构造新的同名 Symbol。
|
|
90
|
+
|
|
91
|
+
Hook应在编辑器的setup或活动effect scope中调用。编辑器作用域结束时,Pro薄适配只释放本次登记的getter;保留字段容器、用v-if重新创建编辑器时,新实例可重新登记并继续change校验。上游登记与watch实现仍通过官方依赖复用。
|
|
92
|
+
|
|
93
|
+
主操作类型可通过 `AsamSearchForm`、`AsamStepsForm`、`AsamLoginForm`、`AsamCrudPage` 的 `actionButtonType`(模板 `action-button-type`)显式配置,类型为 UI 公开 `AsamButtonType`,默认 `primary`。它仅影响查询、下一步/提交、登录,以及 CRUD 默认查询/新增,不改变刷新、重置、返回、导航、删除或宿主替换槽。
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
import { asamProVersion } from '@asam-ui/pro';
|
|
97
|
+
import type { AsamProVersion } from '@asam-ui/pro';
|
|
98
|
+
|
|
99
|
+
const candidate: AsamProVersion = asamProVersion;
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
字段入口:`AsamField`、`defineAsamFields`、`createAsamFieldModel`、
|
|
103
|
+
`clearAsamFieldValue`、`transformAsamFields`、`createAsamFieldSchema`、
|
|
104
|
+
`useAsamFieldOptions`;相关公开类型从同一入口导入。初始化仅在新增/加载会话边界调用,
|
|
105
|
+
表单使用返回的 schema/registry 与现有 `AsamForm`,无需重建表单引擎。
|
|
106
|
+
|
|
107
|
+
```ts
|
|
108
|
+
import {
|
|
109
|
+
defineAsamFields,
|
|
110
|
+
createAsamFieldModel,
|
|
111
|
+
createAsamFieldSchema,
|
|
112
|
+
transformAsamFields
|
|
113
|
+
} from '@asam-ui/pro';
|
|
114
|
+
const fields = defineAsamFields([
|
|
115
|
+
{ key: 'name', label: '名称', kind: 'text', defaultValue: () => '' }
|
|
116
|
+
]);
|
|
117
|
+
const model = createAsamFieldModel(fields, {}, 'create');
|
|
118
|
+
const { schema, registry } = createAsamFieldSchema(fields, 'edit');
|
|
119
|
+
const result = transformAsamFields(fields, model, 'submit', ['name']);
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
缺失/undefined 不等于清空,默认不向旧记录补默认值。文本清空为 `''`,单选为 null,
|
|
123
|
+
多选为新数组;单选合法空字符串、0、false 均保留。标签不写回值;转换失败返回 issues,
|
|
124
|
+
调用方必须检查 `status` 再发请求。显示解析失败默认不阻断合法业务值的提交,
|
|
125
|
+
需要校验可用性的应用显式提供规则。所有提交均使用显式字段白名单。
|
|
126
|
+
|
|
127
|
+
字段 `modes.query/edit/detail` 分别配置显隐、禁用、只读、规则和布局元数据。
|
|
128
|
+
隐藏默认保值/跳校验/不提交;折叠只由容器隐藏布局,仍校验和转换。
|
|
129
|
+
公开 `source` 复用 UI 的 static/api/request/dict factory,`remote.search/resolve` 分别返回
|
|
130
|
+
api/request source,组件不存跨范围隐式缓存。数据范围由 `setAsamDataScope` 更新,
|
|
131
|
+
新会话可更改 `AsamField.session`,旧范围/会话结果不会回填。
|
|
132
|
+
|
|
133
|
+
消费端显式安装 `@asam-ui/ui@2.0.0`、`vue@>=3.5.34 <3.6.0`、
|
|
134
|
+
`element-plus@2.14.7`,并满足 UI 的 peer。从 RC 工程迁移时,请在同一次依赖更新中将 UI 和 Pro 固定为 2.0.0,
|
|
135
|
+
重新生成锁文件并执行类型检查、生产构建和关键业务流程回归。
|
|
136
|
+
|
|
137
|
+
当前提供独立样式出口 `@asam-ui/pro/style.css`,`sideEffects` 为 `['**/*.css']`。
|
|
138
|
+
消费组合时显式引入该样式,并按 UI 文档引入 `@asam-ui/ui/style.css`。
|
|
139
|
+
|
|
140
|
+
本包只使用 UI 公开 API,不包含 CL 业务或 Agent/CLI 运行时。
|
|
141
|
+
字段契约、状态与迁移边界见 `docs/reports/V2-002-CONTRACT-R1.md`;完整可运行 SFC、
|
|
142
|
+
类型正反例、模型/异步/浏览器及 pack 消费入口见 `tests/v2/fields/README.md`。
|
|
143
|
+
这是新增可选入口;既有 UI/Pro 版本入口不变,无旧 API 删除或自动迁移。
|
|
144
|
+
|
|
145
|
+
## 编辑与详情组合
|
|
146
|
+
|
|
147
|
+
消费组合时显式引入 `@asam-ui/pro/style.css`,并按既有方式加载 UI 样式与 provider。
|
|
148
|
+
|
|
149
|
+
`useAsamEditor` / `AsamFormDialog` 提供新增和编辑弹窗;应用持有
|
|
150
|
+
`createAsamWriteCoordinator()` 并以稳定 operationId 关联跨弹窗未决写入。
|
|
151
|
+
保存适配返回 success/failure/unknown;断连异常保守保持未知,只有核实未生效后才允许显式再保存。
|
|
152
|
+
`onSaved` 是唯一成功结果事件,应用自行提示和刷新列表,读取失败不改变保存成功。
|
|
153
|
+
|
|
154
|
+
`useAsamDetail` / `AsamDetailPanel` 明确区分 direct 和 load 来源;同 id 直接数据使用
|
|
155
|
+
update 更新,主动加载只在 open/refresh 时读取。两种来源冲突会报配置错误并零请求。
|
|
156
|
+
以上组合复用现有字段、Form、provider 和 scope,不包含具体业务 API。
|
|
157
|
+
完整可运行 SFC 配方见仓库 `tests/v2/editor/src/App.vue`,公开接口见发布的 `.d.ts`。
|
|
158
|
+
|
|
159
|
+
`AsamDetailPanel.appearance` 默认 `plain`,保留独立面板呈现;`grouped` 使用浅蓝分组标题、
|
|
160
|
+
上方标签和浅灰只读值区域。字段、分组及跨列由 detail schema 决定;未指定 span 的长文本
|
|
161
|
+
默认占满分组列,窄屏自然单列。标准 CRUD 默认使用 grouped,legacy 保留 plain。
|
|
162
|
+
标准 CRUD 的右侧详情 Drawer 默认宽度 800px,同时限制桌面最小宽度 800px,并启用
|
|
163
|
+
Element Plus 原生 `resizable`。窄于 800px 的视口使用可用全宽,不制造屏外抽屉;
|
|
164
|
+
拖动、弹层焦点、关闭及 resize 事件继续由原生 Drawer 和既有 ASAM 包装承接。
|
|
165
|
+
|
|
166
|
+
## CRUD 详情入口
|
|
167
|
+
|
|
168
|
+
标准 `AsamCrudPage` 未设置 `detailEntry` 时,在首个可见业务列生成唯一详情入口。
|
|
169
|
+
`detailEntry: { column: 'status' }` 可以改选任意普通列,包括 render 或 cell 插槽显示的
|
|
170
|
+
Tag、日期和自定义内容;旧列同时移除入口行为与样式。列键来自 Row,复选框列和操作列不参与;
|
|
171
|
+
指定列隐藏或不存在时回退首个可见业务列,未指定列时随可见列重排。`false` 保留显式关闭列入口
|
|
172
|
+
的兼容用法,legacy 未配置时继续使用原操作入口。
|
|
173
|
+
|
|
174
|
+
`detailOnRowDblclick` 默认 `false`,设为 `true` 后允许双击普通数据单元格查看详情,
|
|
175
|
+
与列入口开关独立。它与列单击共用现有详情动作、当前 Row、typed key、权限、disabled/busy、
|
|
176
|
+
不重入及关闭回焦规则。复选框、操作列及内容中的按钮、链接、输入和拖动手柄等先响应自身操作。
|
|
177
|
+
自定义显示含交互控件时,同一列提供独立的键盘详情按钮,避免嵌套按钮;自定义手势区域可用
|
|
178
|
+
`data-crud-detail-ignore` 显式排除。触屏和键盘用户继续使用列入口。
|
|
179
|
+
|
|
180
|
+
完全替换 `content` 的宿主通过作用域的 `detailColumn`、`canOpenDetail(row)`、
|
|
181
|
+
`openDetail(row, trigger?)` 绑定同一动作;组件不接管宿主任意 DOM。普通表格的列入口不因
|
|
182
|
+
render/cell 插槽存在而关闭。可运行 mock 配置与新能力的适用验证见
|
|
183
|
+
`tests/v2/pro-shared-view/README.md`,实际包与运行版本以固定交付为准。
|
|
184
|
+
|
|
185
|
+
## 查询列表组合(V2-003)
|
|
186
|
+
|
|
187
|
+
本卡新增 `useAsamListController`、`AsamSearchForm`、`AsamProTable`,从同一公开入口导入。
|
|
188
|
+
本组合契约见 `docs/reports/V2-003-CONTRACT-R1.md`。
|
|
189
|
+
|
|
190
|
+
页面在setup中创建唯一controller,向查询表单和表格传同一个实例。controller的`api`
|
|
191
|
+
接收`{ query, currentPage, pageSize, sort }`及UI的scope/epoch/AbortSignal上下文,返回
|
|
192
|
+
`{ list, total }`。URL/DTO/权限由应用适配。`AsamProTable.columns`按顺序声明key/label,
|
|
193
|
+
可配置单字段远程排序、宽度或render;`cell`插槽接收row/column,`toolbar`接收controller,
|
|
194
|
+
`rowActions`接收row/controller,`empty`及`error`可替换对应状态(error还接收retry)。
|
|
195
|
+
|
|
196
|
+
```vue
|
|
197
|
+
<template>
|
|
198
|
+
<AsamSearchForm :controller="list" />
|
|
199
|
+
<AsamProTable :controller="list" :columns="columns" />
|
|
200
|
+
</template>
|
|
201
|
+
<script setup lang="ts">
|
|
202
|
+
import { AsamSearchForm, AsamProTable, useAsamListController } from '@asam-ui/pro';
|
|
203
|
+
import type { AsamListColumn } from '@asam-ui/pro';
|
|
204
|
+
import '@asam-ui/ui/style.css';
|
|
205
|
+
interface Row {
|
|
206
|
+
id: number;
|
|
207
|
+
name: string;
|
|
208
|
+
}
|
|
209
|
+
const columns: readonly AsamListColumn<Row>[] = [{ key: 'name', label: '名称' }];
|
|
210
|
+
const list = useAsamListController<Row>({
|
|
211
|
+
fields: [{ key: 'name', label: '名称', kind: 'text' }],
|
|
212
|
+
initial: { name: '' },
|
|
213
|
+
rowKey: 'id',
|
|
214
|
+
api: async (params, context) => {
|
|
215
|
+
// 应用在此调用自己的适配器;此配方仅返回合成空页。
|
|
216
|
+
void params;
|
|
217
|
+
void context;
|
|
218
|
+
return { list: [], total: 0 };
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
</script>
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
首屏默认加载一次;异步准备使用`immediate:false`,显式替换草稿/基准后调用`submit()`。
|
|
225
|
+
带规则的独立controller使用须提供`validate`;查询表单会注册现有Form校验。`draft`
|
|
226
|
+
编辑不请求;`intent`是最近有效意图;`successfulSource`标记旧结果实际来源。失败后
|
|
227
|
+
刷新/重试沿用意图,翻页禁用;排序/数量可基于已生效条件形成新意图。`reset`恢复最新
|
|
228
|
+
`setResetBaseline`基准。`replaceConditions(model,{mode:'draft'|'submit',force?})`默认拒绝
|
|
229
|
+
覆盖dirty草稿,返回conflict,应用决定是否显式force;基准更新自身零请求。
|
|
230
|
+
|
|
231
|
+
默认当前页选择;每次有效请求开始清空。应用action声明id/label/run,默认result作用域,
|
|
232
|
+
可显式selection或independent;visible/enabled由应用判断,busyKey共享互斥。实际拒绝
|
|
233
|
+
进入actionError,库不做删除、事务或自动写重试。插槽中的自定义操作也应调用
|
|
234
|
+
`canAction`/`runAction`。保存提示由页面唯一负责;明确保存成功后调用一次`refresh()`,
|
|
235
|
+
读取失败单独呈现“保存成功,列表更新失败”,重试只调用`retry()`。新增需要第一页时,
|
|
236
|
+
应用根据当前意图选择`setPage(1)`或第一页`refresh()`,不得双发。
|
|
237
|
+
|
|
238
|
+
scope/epoch失效立即清除本实例敏感内容并停用交互。应用通过UI公开scope接口先隔离旧
|
|
239
|
+
范围,再调用`resumeScope(initial)`准备新范围并显式submit;组件不改业务鉴权或全局
|
|
240
|
+
字典分区。不要把同范围保留旧结果用于跨租户切换。合成完整SFC与验证命令见
|
|
241
|
+
`tests/v2/list/README.md`;CL真实业务未指定,不是本卡验收前置。
|
|
242
|
+
|
|
243
|
+
查询表单复用公开AsamForm的原生校验能力诊断。当前原生规则链对部分Object.prototype
|
|
244
|
+
同名目标存在“未执行规则却返回成功”的限制;命中当前实际适用/注册的字段时,查询返回
|
|
245
|
+
精确字段能力错误并停止请求,折叠字段仍参与检查和展开定位。合法的数据key及其读值、
|
|
246
|
+
输入和格式化不被全局禁止,也不声称这些原生规则已能执行。普通字段继续原生校验;
|
|
247
|
+
业务隐藏字段不参与,隐藏后可恢复查询。错误沿既有`issues`字段键呈现,不需解析消息
|
|
248
|
+
猜测字段,也没有新增校验引擎。
|
|
249
|
+
|
|
250
|
+
查询会话失效时,查询视图通过公开`clearValidate()`同步清理自身Form诊断,避免旧范围的
|
|
251
|
+
能力错误残留;这不重置调用方业务值,也不修改其他Form实例。
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# 第三方能力来源
|
|
2
|
+
|
|
3
|
+
Pro 应用组合式能力通过正式依赖 `@vant/use@1.6.0` 的公开入口复用实现,不依赖 Vant UI 或其样式。
|
|
4
|
+
|
|
5
|
+
上游:[Vant Use](https://github.com/youzan/vant/tree/main/packages/vant-use)。许可证:MIT。版权:Youzan、Chen Jiahan and other contributors。上游包自身包含其发布声明;安装后的第三方代码仍受其许可证约束。
|
|
6
|
+
|
|
7
|
+
ASAM 增量为分类/能力出口、自动导入映射、示例及 `AsamCustomField` 表单桥接。`flattenVNodes`、`sortChildren`、`supportsPassive` 不属于 Pro 公开 API,不提供自动导入。上游内部使用自己的辅助函数不构成 ASAM 新增出口。
|
|
8
|
+
|
|
9
|
+
`useEventListener` 在非浏览器时补齐可调用的停止函数;`useChildren` 在父组件更新时调用上游现有排序函数,同步已关联实例的索引。这两处是薄适配,不复制或改写上游监听/排序算法。父子关联使用上游同样的 Vue 实例协议,按项目锁定的 Vue 版本验证。
|