@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,172 @@
|
|
|
1
|
+
import { t as e } from "./en-CcfyIwWv.js";
|
|
2
|
+
import { t } from "./zh-CN-BBWziFEy.js";
|
|
3
|
+
import { computed as n, getCurrentScope as r, markRaw as i, onScopeDispose as a, ref as o, shallowReactive as s, shallowRef as c, toRaw as l } from "vue";
|
|
4
|
+
import { createAsamI18n as u, extendAsamI18n as d, useAsamI18n as f } from "@asam-ui/ui/i18n";
|
|
5
|
+
//#region src/fields/I18n.ts
|
|
6
|
+
var p = Symbol("AsamOwnedFieldMessage"), m = Symbol("AsamOwnedFieldIssues"), h = Symbol("AsamOwnedFieldFormatter"), g = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
function b(...[e, t, n = {}, r]) {
|
|
8
|
+
return i({
|
|
9
|
+
key: e,
|
|
10
|
+
values: n,
|
|
11
|
+
legacy: t,
|
|
12
|
+
resolveValues: r
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
var x = /* @__PURE__ */ new WeakSet();
|
|
16
|
+
function S(e) {
|
|
17
|
+
return x.add(e), e;
|
|
18
|
+
}
|
|
19
|
+
function C(e, t, n) {
|
|
20
|
+
let r = e.resolveValues?.(t) ?? e.values, i = x.has(e) && n?.label !== void 0 && Object.hasOwn(r, "label") ? {
|
|
21
|
+
...r,
|
|
22
|
+
label: n.label
|
|
23
|
+
} : r;
|
|
24
|
+
return t?.enabled.value ? t.t(e.key, i) : e.legacy;
|
|
25
|
+
}
|
|
26
|
+
function w(e, ...t) {
|
|
27
|
+
let [n, r] = t, a = { message: e };
|
|
28
|
+
return g.set(a, i({
|
|
29
|
+
key: n,
|
|
30
|
+
legacy: e,
|
|
31
|
+
values: Object.freeze({ ...r })
|
|
32
|
+
})), a;
|
|
33
|
+
}
|
|
34
|
+
function T(e, ...t) {
|
|
35
|
+
let n = typeof e == "string" ? Error(e) : e, [r, a] = t;
|
|
36
|
+
return g.set(l(n), i({
|
|
37
|
+
key: r,
|
|
38
|
+
legacy: n.message,
|
|
39
|
+
values: Object.freeze({ ...a })
|
|
40
|
+
})), n;
|
|
41
|
+
}
|
|
42
|
+
function E(e) {
|
|
43
|
+
let t = k({ message: e.message }, e), n = () => t.message;
|
|
44
|
+
return y.set(n, t), n;
|
|
45
|
+
}
|
|
46
|
+
function D(e, t) {
|
|
47
|
+
return g.set(l(e), t), e;
|
|
48
|
+
}
|
|
49
|
+
function O(e, t) {
|
|
50
|
+
let n = {
|
|
51
|
+
...t,
|
|
52
|
+
message: e.legacy
|
|
53
|
+
};
|
|
54
|
+
return g.set(l(n), e), n;
|
|
55
|
+
}
|
|
56
|
+
function k(e, t) {
|
|
57
|
+
let n = M(t);
|
|
58
|
+
n && g.set(l(e), n);
|
|
59
|
+
let r = j(t);
|
|
60
|
+
r && _.set(l(e), r);
|
|
61
|
+
let i = N(t);
|
|
62
|
+
return i && v.set(l(e), i), e;
|
|
63
|
+
}
|
|
64
|
+
function A(e, t) {
|
|
65
|
+
return _.set(l(e), i([...t])), e;
|
|
66
|
+
}
|
|
67
|
+
function j(e) {
|
|
68
|
+
return e && typeof e == "object" ? _.get(l(e)) ?? Reflect.get(e, m) : void 0;
|
|
69
|
+
}
|
|
70
|
+
function M(e) {
|
|
71
|
+
if (!(!e || typeof e != "object")) return g.get(l(e)) ?? Reflect.get(e, p);
|
|
72
|
+
}
|
|
73
|
+
function N(e) {
|
|
74
|
+
return e && typeof e == "object" ? v.get(l(e)) ?? Reflect.get(e, h) : void 0;
|
|
75
|
+
}
|
|
76
|
+
function P(e, t, n, r) {
|
|
77
|
+
let i = j(e);
|
|
78
|
+
if (i) return i.map((e) => F(e, t, r)).join(t?.enabled.value ? t.t("pro.fields.issueSeparator") : ";");
|
|
79
|
+
let a = M(e);
|
|
80
|
+
if (a) return C(a, t, r);
|
|
81
|
+
let o = N(e);
|
|
82
|
+
return t && o ? o(t) : t && n ? n(e, t) : e instanceof Error ? e.message : String(e);
|
|
83
|
+
}
|
|
84
|
+
function F(e, t, n) {
|
|
85
|
+
if (j(e)) return P(e, t, void 0, n);
|
|
86
|
+
if (j(e.cause)) return P(e.cause, t, void 0, n);
|
|
87
|
+
let r = M(e) ?? M(e.cause);
|
|
88
|
+
if (r) return C(r, t, n);
|
|
89
|
+
let i = N(e) ?? N(e.cause);
|
|
90
|
+
return t && i ? i(t) : e.message;
|
|
91
|
+
}
|
|
92
|
+
function I() {
|
|
93
|
+
let e = s(/* @__PURE__ */ new Map()), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
94
|
+
function r(t, n, r) {
|
|
95
|
+
return function(...i) {
|
|
96
|
+
e.delete(t);
|
|
97
|
+
let a = i[2];
|
|
98
|
+
i[2] = (n) => {
|
|
99
|
+
n && r && e.set(t, n), a(n);
|
|
100
|
+
};
|
|
101
|
+
let o = n.apply(this, i);
|
|
102
|
+
return r && (o instanceof Error || Array.isArray(o)) && e.set(t, o), o && typeof o == "object" && "then" in o && Promise.resolve(o).catch((n) => {
|
|
103
|
+
r && e.set(t, n);
|
|
104
|
+
}), o;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function i(i, a) {
|
|
108
|
+
let o = n.get(i);
|
|
109
|
+
(!o || o.length !== a.length || o.some((e, t) => e !== a[t])) && (e.delete(i), n.set(i, [...a]));
|
|
110
|
+
let s = t.get(i);
|
|
111
|
+
return s || t.set(i, s = /* @__PURE__ */ new WeakMap()), a.map((t) => {
|
|
112
|
+
let n = s.get(t);
|
|
113
|
+
if (n) return n;
|
|
114
|
+
if (n = { ...t }, typeof t.message == "function") {
|
|
115
|
+
let r = y.get(t.message);
|
|
116
|
+
if (r) {
|
|
117
|
+
let a = t.message;
|
|
118
|
+
n.message = (...t) => (e.set(i, r), a(...t));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return t.validator && (n.validator = r(i, t.validator, t.message === void 0)), t.asyncValidator && (n.asyncValidator = r(i, t.asyncValidator, t.message === void 0)), s.set(t, n), n;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
rules: i,
|
|
126
|
+
issue(t, n) {
|
|
127
|
+
return k({ message: n }, e.get(t));
|
|
128
|
+
},
|
|
129
|
+
format(t, n, r, i) {
|
|
130
|
+
let a = e.get(t);
|
|
131
|
+
return Array.isArray(a) ? a.map((e) => P(e, r, void 0, i)).join(r.t("pro.fields.issueSeparator")) : M(a) || j(a) ? P(a, r, void 0, i) : n;
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function L(e) {
|
|
136
|
+
let t = o(""), r = c(), i = c(), a = n({
|
|
137
|
+
get: () => t.value,
|
|
138
|
+
set: (e) => {
|
|
139
|
+
t.value = e, r.value = void 0, i.value = void 0;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
return Object.defineProperty(a, p, { get: () => r.value }), Object.defineProperty(a, m, { get: () => j(i.value) }), Object.defineProperty(a, h, { get: () => {
|
|
143
|
+
let t = i.value;
|
|
144
|
+
return t !== void 0 && e ? (n) => e(t, n) : N(t);
|
|
145
|
+
} }), {
|
|
146
|
+
value: a,
|
|
147
|
+
set: (e) => {
|
|
148
|
+
t.value = e.legacy, r.value = e, i.value = void 0;
|
|
149
|
+
},
|
|
150
|
+
from: (e, n) => {
|
|
151
|
+
t.value = n ?? (e instanceof Error ? e.message : typeof e == "object" && e && "message" in e ? String(e.message) : String(e)), r.value = M(e), i.value = e;
|
|
152
|
+
},
|
|
153
|
+
format: (n, a) => r.value ? C(r.value, n) : j(i.value) ? P(i.value, n) : n && i.value !== void 0 && (a ?? e) ? P(i.value, n, a ?? e) : t.value
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/i18n/index.ts
|
|
158
|
+
var R = Object.freeze({
|
|
159
|
+
en: e,
|
|
160
|
+
"zh-CN": t
|
|
161
|
+
});
|
|
162
|
+
function z(e, t) {
|
|
163
|
+
return u(e, t, R);
|
|
164
|
+
}
|
|
165
|
+
function B(e) {
|
|
166
|
+
let t = d(f(), R);
|
|
167
|
+
if (r() && a(t.dispose), !e) return t;
|
|
168
|
+
let n = d(t, e);
|
|
169
|
+
return r() && a(n.dispose), n;
|
|
170
|
+
}
|
|
171
|
+
//#endregion
|
|
172
|
+
export { w as a, L as c, P as d, F as f, S as g, O as h, T as i, b as l, A as m, B as n, E as o, D as p, k as r, I as s, z as t, C as u };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/** 当前 Pro 包版本,供消费端识别实际安装版本。 */
|
|
2
|
+
export declare const asamProVersion = "2.0.0";
|
|
3
|
+
/** 当前 Pro 版本字面量类型。 */
|
|
4
|
+
export type AsamProVersion = typeof asamProVersion;
|
|
5
|
+
export { AsamField } from './fields/AsamField.js';
|
|
6
|
+
export { createAsamFieldSchema } from './fields/Schema.js';
|
|
7
|
+
export type { AsamFieldSchema } from './fields/Schema.js';
|
|
8
|
+
export { defineAsamFields, createAsamFieldModel, clearAsamFieldValue, transformAsamFields, isAsamFieldValue, cloneAsamFieldValue } from './fields/Model.js';
|
|
9
|
+
export { useAsamFieldOptions } from './fields/Options.js';
|
|
10
|
+
export type * from './fields/Types.js';
|
|
11
|
+
export type { AsamFieldOption, AsamFieldReadStatus, AsamFieldReadState, AsamFieldLabel, AsamFieldOptionsConfig } from './fields/Options.js';
|
|
12
|
+
export { useAsamEditor } from './editor/Controller.js';
|
|
13
|
+
export { createAsamWriteCoordinator } from './editor/Coordinator.js';
|
|
14
|
+
export { default as AsamFormDialog } from './editor/AsamFormDialog.vue';
|
|
15
|
+
export { default as AsamEditorForm } from './editor/AsamEditorForm.vue';
|
|
16
|
+
export type { AsamEditorFormProps, AsamEditorFormExpose, AsamFormDialogProps } from './editor/EditorFormTypes.js';
|
|
17
|
+
export type * from './editor/Types.js';
|
|
18
|
+
export { useAsamDetail } from './detail/Controller.js';
|
|
19
|
+
export { default as AsamDetailPanel } from './detail/AsamDetailPanel.vue';
|
|
20
|
+
export { default as AsamDetailDialog } from './detail/AsamDetailDialog.vue';
|
|
21
|
+
export { default as AsamDetailDrawer } from './detail/AsamDetailDrawer.vue';
|
|
22
|
+
export type * from './detail/OverlayTypes.js';
|
|
23
|
+
export type * from './detail/Types.js';
|
|
24
|
+
export { useAsamListController } from './list/Controller.js';
|
|
25
|
+
export { AsamSearchForm } from './list/AsamSearchForm.js';
|
|
26
|
+
export type { AsamTableAppearanceProps, AsamTableAppearanceEmits } from './table/Appearance.js';
|
|
27
|
+
export { AsamProTable } from './list/AsamProTable.js';
|
|
28
|
+
export { AsamListRowActions } from './list/AsamListRowActions.js';
|
|
29
|
+
export type { AsamListRowActionsProps } from './list/AsamListRowActions.js';
|
|
30
|
+
export type { AsamSearchFormEmits, AsamSearchFormProps } from './list/AsamSearchForm.js';
|
|
31
|
+
export type { AsamProTableProps } from './list/AsamProTable.js';
|
|
32
|
+
export type * from './list/Types.js';
|
|
33
|
+
export * from './fields/numeric/Index.js';
|
|
34
|
+
export * from './display/cards/Index.js';
|
|
35
|
+
export * from './fields/text/Index.js';
|
|
36
|
+
export * from './display/text-time/Index.js';
|
|
37
|
+
export * from './configuration/Index.js';
|
|
38
|
+
export * from './layout/Index.js';
|
|
39
|
+
export * from './fields/temporal/Index.js';
|
|
40
|
+
export * from './fields/options/Index.js';
|
|
41
|
+
export * from './fields/resources/Index.js';
|
|
42
|
+
export * from './fields/choice/Index.js';
|
|
43
|
+
export * from './display/guidance/Index.js';
|
|
44
|
+
export * from './display/states/Index.js';
|
|
45
|
+
export * from './table/editing/Index.js';
|
|
46
|
+
export * from './fields/editors/Index.js';
|
|
47
|
+
export * from './form/flows/Index.js';
|
|
48
|
+
export * from './table/operations/Index.js';
|
|
49
|
+
export * from './form/schema/Index.js';
|
|
50
|
+
export * from './table/virtual/Index.js';
|
|
51
|
+
export * from './table/structured/Index.js';
|
|
52
|
+
export * from './fields/modes/Index.js';
|
|
53
|
+
export * from './lists/Index.js';
|
|
54
|
+
export * from './table/transfer/Index.js';
|
|
55
|
+
export * from './templates/crud/Index.js';
|
|
56
|
+
export * from './table/range/Index.js';
|
|
57
|
+
/** 按官网分类浏览;现有根具名出口保留兼容。 */
|
|
58
|
+
export * as Components from './components/index.js';
|
|
59
|
+
export * as Application from './application/index.js';
|
|
60
|
+
export * as Templates from './templates/index.js';
|
|
61
|
+
export type * as Types from './types/index.js';
|
|
62
|
+
export * from './i18n/index.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { t as e } from "./en-CcfyIwWv.js";
|
|
2
|
+
import { t } from "./zh-CN-BBWziFEy.js";
|
|
3
|
+
import { a as n, d as r, f as i, i as a, n as o, o as s, t as c } from "./i18n-CJTJI6vg.js";
|
|
4
|
+
import { E as l, J as u, Q as d, T as f, X as p, Y as m, Z as h, a as g, at as _, ct as v, dt as y, ft as b, it as x, lt as S, n as C, ot as w, q as T, r as E, st as D, t as O, tt as k, u as A, ut as j } from "./Controller-DF6lMt-H.js";
|
|
5
|
+
import { $ as M, $t as N, A as P, An as F, At as I, B as L, Bt as R, C as z, Cn as B, Ct as V, D as H, Dn as U, Dt as W, E as G, En as K, Et as q, F as J, Ft as Y, G as X, Gt as Z, H as Q, Ht as $, I as ee, It as te, J as ne, Jt as re, K as ie, Kt as ae, L as oe, Lt as se, M as ce, Mt as le, N as ue, Nt as de, O as fe, On as pe, Ot as me, P as he, Pt as ge, Q as _e, Qt as ve, R as ye, Rt as be, S as xe, Sn as Se, St as Ce, T as we, Tn as Te, Tt as Ee, U as De, Ut as Oe, V as ke, Vt as Ae, W as je, Wt as Me, X as Ne, Xt as Pe, Y as Fe, Yt as Ie, Z as Le, Zt as Re, _ as ze, _n as Be, _t as Ve, a as He, an as Ue, at as We, b as Ge, bn as Ke, bt as qe, c as Je, cn as Ye, ct as Xe, d as Ze, dn as Qe, dt as $e, en as et, et as tt, f as nt, fn as rt, ft as it, g as at, gn as ot, gt as st, h as ct, hn as lt, ht as ut, i as dt, in as ft, it as pt, j as mt, jn as ht, jt as gt, k as _t, kn as vt, kt as yt, l as bt, ln as xt, lt as St, m as Ct, mn as wt, mt as Tt, n as Et, nn as Dt, nt as Ot, o as kt, on as At, ot as jt, p as Mt, pn as Nt, pt as Pt, q as Ft, qt as It, r as Lt, rn as Rt, rt as zt, s as Bt, sn as Vt, st as Ht, t as Ut, tn as Wt, tt as Gt, u as Kt, un as qt, ut as Jt, v as Yt, vn as Xt, vt as Zt, w as Qt, wn as $t, wt as en, x as tn, xn as nn, xt as rn, y as an, yn as on, yt as sn, z as cn, zt as ln } from "./components-ST0i0Wqf.js";
|
|
6
|
+
import { a as un, n as dn, r as fn, t as pn } from "./AsamAdminLayout-DMsByuNN.js";
|
|
7
|
+
import { n as mn, r as hn, t as gn } from "./Index-DpcRToBH.js";
|
|
8
|
+
import { t as _n } from "./application/index.js";
|
|
9
|
+
import { t as vn } from "./templates/index.js";
|
|
10
|
+
//#region src/index.ts
|
|
11
|
+
var yn = "2.0.0";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { _n as Application, It as AsamActionBar, pn as AsamAdminLayout, N as AsamApplicationConfigKey, ve as AsamApplicationProvider, nn as AsamCardGroup, Mt as AsamCardList, St as AsamChoiceCard, Ve as AsamChoiceGroup, oe as AsamContentEditor, ae as AsamContentGrid, Xt as AsamCountTo, gn as AsamCrudPage, u as AsamDetailDialog, T as AsamDetailDrawer, m as AsamDetailPanel, Se as AsamDisplayCard, ie as AsamEditableTable, d as AsamEditorForm, tt as AsamErrorBoundary, Ot as AsamException, _ as AsamField, M as AsamFieldAnnotation, ct as AsamFieldView, ue as AsamFilterPopover, re as AsamFooter, h as AsamFormDialog, ce as AsamFormDrawer, We as AsamGuidedTour, jt as AsamHelpPanel, Z as AsamLayoutSettings, Ft as AsamLegacyEditableTable, ne as AsamLegacySortableTable, vt as AsamListRowActions, P as AsamLoginForm, _t as AsamLoginPage, Ht as AsamNotificationMenu, Xe as AsamNotificationPanel, on as AsamNumberDisplay, g as AsamOperationsTable, un as AsamPageContainer, pt as AsamPageSkeleton, Gt as AsamPageWatermark, Ie as AsamPermission, lt as AsamProAvatarGroup, Rt as AsamProCalendar, Vt as AsamProCountdown, Ct as AsamProList, F as AsamProTable, nt as AsamProTaskCard, z as AsamProVirtualTable, ft as AsamRelativeTime, en as AsamResourceController, V as AsamResourceField, G as AsamSchemaForm, f as AsamSearchForm, X as AsamSortableTable, zt as AsamStatePanel, ot as AsamStatisticCard, mt as AsamStepsForm, Ge as AsamStructuredTable, je as AsamTableEditingHost, Lt as AsamTableRange, Ze as AsamTableTransfer, At as AsamTextEllipsis, kt as AsamTransferTextError, Be as AsamTrend, Ue as AsamWordCount, Ut as Components, vn as Templates, R as asamISOWeek, dn as asamLayoutDefaults, B as asamMoneyToMinor, e as asamProMessagesEn, t as asamProMessagesZhCn, yn as asamProVersion, Ee as asamResourceIds, Bt as asamTransferDefaultLimits, Qt as asamVirtualRowHeights, tn as calculateAsamStructuredSummary, sn as checkAsamChoiceOptions, D as clearAsamFieldValue, L as cloneAsamEditorValue, Yt as cloneAsamFieldDto, v as cloneAsamFieldValue, q as cloneAsamResourceValue, xe as compileAsamStructuredSpans, Ye as countAsamText, wt as createAsamCaptchaController, xt as createAsamCaptchaField, Jt as createAsamCardField, $e as createAsamColorField, he as createAsamEditorField, S as createAsamFieldModel, an as createAsamFieldModes, x as createAsamFieldSchema, I as createAsamHierarchyField, J as createAsamMarkdownField, qt as createAsamMentionField, a as createAsamMessageError, n as createAsamMessageIssue, s as createAsamMessageRuleMessage, $t as createAsamMoneyField, we as createAsamNestedSchema, Te as createAsamNumberField, K as createAsamNumberRangeField, gt as createAsamPagedSelectField, Qe as createAsamPasswordField, c as createAsamProI18n, it as createAsamRateField, le as createAsamRegionField, ge as createAsamRegionMapping, at as createAsamResourceDisplayReader, Ce as createAsamResourceField, ee as createAsamRichTextField, H as createAsamSchemaController, Pt as createAsamSegmentedField, Tt as createAsamSliderField, de as createAsamSuggestionField, ut as createAsamSwitchField, fe as createAsamTableOperationCoordinator, rt as createAsamTagField, st as createAsamTagFilterField, ln as createAsamTemporalField, dt as createAsamTransferEditingGate, ht as createAsamWriteCoordinator, j as defineAsamFields, ke as editorValueLength, Q as emptyAsamEditorValue, A as encodeAsamStructuredKey, Pe as evaluateAsamPermission, Ke as formatAsamNumber, r as formatFieldError, i as formatFieldIssue, Zt as isAsamChoiceColor, qe as isAsamChoiceValue, y as isAsamFieldValue, W as isAsamResource, me as isAsamResourceId, yt as isAsamResourceValue, De as isEmptyAsamEditorValue, te as isOptionKey, ye as markdownResource, se as mergeOptions, rn as normalizeAsamChoiceValues, Nt as normalizeAsamTags, Je as parseAsamTransferText, et as provideAsamApplicationConfig, bt as readAsamTransferFile, cn as renderAsamMarkdown, Wt as resolveAsamApplicationConfig, fn as resolveAsamLayoutSettings, Kt as serializeAsamTransferText, Ae as temporalFromPicker, $ as temporalOrder, Oe as temporalToPicker, b as transformAsamFields, Dt as useAsamApplicationConfig, C as useAsamColumnPreferences, Ne as useAsamCopy, E as useAsamCrossPageSelection, hn as useAsamCrudController, p as useAsamDetail, k as useAsamEditor, Le as useAsamElementSize, ze as useAsamFieldDisplayRead, w as useAsamFieldOptions, Y as useAsamHierarchy, l as useAsamListController, be as useAsamPagedOptions, Re as useAsamPermission, o as useAsamProI18n, mn as useAsamReadonlyCrudController, _e as useAsamScroll, O as useAsamStructuredTable, Fe as useAsamTableEditing, Et as useAsamTableRange, He as useAsamTableTransfer, U as validateAsamNumber, pe as validateAsamNumberRange, Me as validateAsamTemporal };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AsamActionBarProps, AsamActionBarSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamActionBarSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamActionBarProps, {
|
|
4
|
+
focus: () => void | undefined;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamActionBarProps> & Readonly<{}>, {
|
|
6
|
+
label: string;
|
|
7
|
+
fixed: boolean;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { AsamAdminLayoutProps, AsamAdminLayoutSlots, AsamLayoutState } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamAdminLayoutSlots;
|
|
3
|
+
declare function closeSidebar(): void;
|
|
4
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamAdminLayoutProps, {
|
|
5
|
+
closeSidebar: typeof closeSidebar;
|
|
6
|
+
focusContent: () => void | undefined;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
+
"state-change": (state: AsamLayoutState) => any;
|
|
9
|
+
"update:settings": (settings: import("./Types.js").AsamLayoutSettings) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<AsamAdminLayoutProps> & Readonly<{
|
|
11
|
+
"onState-change"?: ((state: AsamLayoutState) => any) | undefined;
|
|
12
|
+
"onUpdate:settings"?: ((settings: import("./Types.js").AsamLayoutSettings) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
breakpoint: number;
|
|
15
|
+
sidebarLabel: string;
|
|
16
|
+
menuLabel: string;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AsamContentGridProps, AsamContentGridSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamContentGridSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamContentGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamContentGridProps> & Readonly<{}>, {
|
|
4
|
+
columns: 1 | 2 | 3 | 4;
|
|
5
|
+
minColumnWidth: number;
|
|
6
|
+
}, {}, {}, {}, 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,11 @@
|
|
|
1
|
+
import type { AsamFooterProps, AsamFooterSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamFooterSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamFooterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AsamFooterProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { AsamLayoutSettings, AsamLayoutSettingsProps, AsamLayoutSettingsSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamLayoutSettingsSlots;
|
|
3
|
+
declare function cancel(): void;
|
|
4
|
+
declare function apply(): void;
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamLayoutSettingsProps, {
|
|
6
|
+
cancel: typeof cancel;
|
|
7
|
+
apply: typeof apply;
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:modelValue": (settings: AsamLayoutSettings) => any;
|
|
10
|
+
cancel: (settings: AsamLayoutSettings) => any;
|
|
11
|
+
apply: (settings: AsamLayoutSettings) => any;
|
|
12
|
+
"update:open": (open: boolean) => any;
|
|
13
|
+
preview: (settings: AsamLayoutSettings) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<AsamLayoutSettingsProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((settings: AsamLayoutSettings) => any) | undefined;
|
|
16
|
+
onCancel?: ((settings: AsamLayoutSettings) => any) | undefined;
|
|
17
|
+
onApply?: ((settings: AsamLayoutSettings) => any) | undefined;
|
|
18
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
19
|
+
onPreview?: ((settings: AsamLayoutSettings) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
label: string;
|
|
22
|
+
live: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AsamPageContainerProps, AsamPageContainerSlots } from './Types.js';
|
|
2
|
+
type __VLS_Slots = AsamPageContainerSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<AsamPageContainerProps, {
|
|
4
|
+
focus: () => void | undefined;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
+
retry: () => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<AsamPageContainerProps> & Readonly<{
|
|
8
|
+
onRetry?: (() => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
status: "ready" | "loading" | "empty" | "error";
|
|
11
|
+
retryLabel: string;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as AsamPageContainer } from './AsamPageContainer.vue';
|
|
2
|
+
export { default as AsamFooter } from './AsamFooter.vue';
|
|
3
|
+
export { default as AsamActionBar } from './AsamActionBar.vue';
|
|
4
|
+
export { default as AsamAdminLayout } from './AsamAdminLayout.vue';
|
|
5
|
+
export { default as AsamContentGrid } from './AsamContentGrid.vue';
|
|
6
|
+
export { default as AsamLayoutSettings } from './AsamLayoutSettings.vue';
|
|
7
|
+
export { resolveAsamLayoutSettings, asamLayoutDefaults } from './Settings.js';
|
|
8
|
+
export type * from './Types.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AsamLayoutSettings } from './Types.js';
|
|
2
|
+
export declare const asamLayoutDefaults: Readonly<AsamLayoutSettings>;
|
|
3
|
+
/** Always returns an owned snapshot; never mutates application configuration. */
|
|
4
|
+
export declare function resolveAsamLayoutSettings(value?: Partial<AsamLayoutSettings>): AsamLayoutSettings;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { AsamControlSize } from '@asam-ui/ui';
|
|
3
|
+
export type AsamLayoutDensity = 'compact' | 'comfortable' | 'spacious';
|
|
4
|
+
export type AsamLayoutNavigation = 'side' | 'top';
|
|
5
|
+
export interface AsamLayoutSettings {
|
|
6
|
+
navigation: AsamLayoutNavigation;
|
|
7
|
+
collapsed: boolean;
|
|
8
|
+
density: AsamLayoutDensity;
|
|
9
|
+
contentWidth: 'fluid' | 'contained';
|
|
10
|
+
fixedActions: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** Public settings data type; distinct from the AsamLayoutSettings component value. */
|
|
13
|
+
export type AsamLayoutSettingsValue = AsamLayoutSettings;
|
|
14
|
+
export interface AsamLayoutState {
|
|
15
|
+
narrow: boolean;
|
|
16
|
+
sidebarOpen: boolean;
|
|
17
|
+
settings: Readonly<AsamLayoutSettings>;
|
|
18
|
+
}
|
|
19
|
+
export interface AsamAdminLayoutProps {
|
|
20
|
+
/** Partial application override; omitted fields use the documented defaults. */
|
|
21
|
+
settings?: Partial<AsamLayoutSettings>;
|
|
22
|
+
/** Container width breakpoint in CSS pixels, strictly below. Default 768. */
|
|
23
|
+
breakpoint?: number;
|
|
24
|
+
size?: AsamControlSize;
|
|
25
|
+
/** Disables layout controls, not injected business content. */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
readonly?: boolean;
|
|
28
|
+
sidebarLabel?: string;
|
|
29
|
+
menuLabel?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface AsamAdminLayoutSlots {
|
|
32
|
+
default?: (state: AsamLayoutState) => VNode[];
|
|
33
|
+
header?: (state: AsamLayoutState) => VNode[];
|
|
34
|
+
navigation?: (state: AsamLayoutState) => VNode[];
|
|
35
|
+
sidebar?: (state: AsamLayoutState) => VNode[];
|
|
36
|
+
footer?: (state: AsamLayoutState) => VNode[];
|
|
37
|
+
}
|
|
38
|
+
export interface AsamAdminLayoutEmits {
|
|
39
|
+
(e: 'state-change', state: AsamLayoutState): void;
|
|
40
|
+
(e: 'update:settings', settings: AsamLayoutSettings): void;
|
|
41
|
+
}
|
|
42
|
+
export interface AsamAdminLayoutExpose {
|
|
43
|
+
closeSidebar: () => void;
|
|
44
|
+
focusContent: () => void;
|
|
45
|
+
}
|
|
46
|
+
export interface AsamPageContainerProps {
|
|
47
|
+
title?: string;
|
|
48
|
+
description?: string;
|
|
49
|
+
status?: 'ready' | 'loading' | 'empty' | 'error';
|
|
50
|
+
statusText?: string;
|
|
51
|
+
retryLabel?: string;
|
|
52
|
+
/** Required only when title is empty and the region needs a name. */
|
|
53
|
+
label?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface AsamPageContainerSlots {
|
|
56
|
+
default?: () => VNode[];
|
|
57
|
+
navigation?: () => VNode[];
|
|
58
|
+
actions?: () => VNode[];
|
|
59
|
+
status?: (scope: {
|
|
60
|
+
status: NonNullable<AsamPageContainerProps['status']>;
|
|
61
|
+
}) => VNode[];
|
|
62
|
+
}
|
|
63
|
+
export interface AsamPageContainerEmits {
|
|
64
|
+
(e: 'retry'): void;
|
|
65
|
+
}
|
|
66
|
+
export interface AsamPageContainerExpose {
|
|
67
|
+
focus: () => void;
|
|
68
|
+
}
|
|
69
|
+
export interface AsamFooterProps {
|
|
70
|
+
label?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface AsamFooterSlots {
|
|
73
|
+
default?: () => VNode[];
|
|
74
|
+
}
|
|
75
|
+
export interface AsamActionBarProps {
|
|
76
|
+
/** Sticky in the nearest scrolling ancestor; measured height reserves scroll clearance. */
|
|
77
|
+
fixed?: boolean;
|
|
78
|
+
label?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface AsamActionBarSlots {
|
|
81
|
+
default?: () => VNode[];
|
|
82
|
+
}
|
|
83
|
+
export interface AsamActionBarExpose {
|
|
84
|
+
focus: () => void;
|
|
85
|
+
}
|
|
86
|
+
export interface AsamContentGridProps {
|
|
87
|
+
columns?: 1 | 2 | 3 | 4;
|
|
88
|
+
minColumnWidth?: number;
|
|
89
|
+
density?: AsamLayoutDensity;
|
|
90
|
+
}
|
|
91
|
+
export interface AsamContentGridSlots {
|
|
92
|
+
default?: () => VNode[];
|
|
93
|
+
}
|
|
94
|
+
export interface AsamLayoutSettingsProps {
|
|
95
|
+
modelValue?: Partial<AsamLayoutSettings>;
|
|
96
|
+
open?: boolean;
|
|
97
|
+
/** False: draft previews without application updates; Apply commits. */
|
|
98
|
+
live?: boolean;
|
|
99
|
+
disabled?: boolean;
|
|
100
|
+
readonly?: boolean;
|
|
101
|
+
label?: string;
|
|
102
|
+
}
|
|
103
|
+
export interface AsamLayoutSettingsEmits {
|
|
104
|
+
(e: 'update:modelValue', settings: AsamLayoutSettings): void;
|
|
105
|
+
(e: 'update:open', open: boolean): void;
|
|
106
|
+
(e: 'preview', settings: AsamLayoutSettings): void;
|
|
107
|
+
(e: 'apply', settings: AsamLayoutSettings): void;
|
|
108
|
+
(e: 'cancel', settings: AsamLayoutSettings): void;
|
|
109
|
+
}
|
|
110
|
+
export interface AsamLayoutSettingsSlots {
|
|
111
|
+
preview?: (scope: {
|
|
112
|
+
settings: AsamLayoutSettings;
|
|
113
|
+
}) => VNode[];
|
|
114
|
+
}
|
|
115
|
+
export interface AsamLayoutSettingsExpose {
|
|
116
|
+
cancel: () => void;
|
|
117
|
+
apply: () => void;
|
|
118
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AsamControlSize } from '@asam-ui/ui';
|
|
2
|
+
import type { AsamListAction, AsamListController } from './Types.js';
|
|
3
|
+
import '../table/ActionText.css';
|
|
4
|
+
import '../table/RowActions.css';
|
|
5
|
+
import '../display/shared/MessageButton.css';
|
|
6
|
+
export interface AsamListRowActionsProps<Row extends object> {
|
|
7
|
+
readonly controller: AsamListController<Row>;
|
|
8
|
+
readonly row: Row;
|
|
9
|
+
readonly actions: readonly AsamListAction<Row>[];
|
|
10
|
+
/** 控件尺寸,默认 small;与表格行高独立。 */
|
|
11
|
+
readonly size?: AsamControlSize;
|
|
12
|
+
/** 默认 false;只收紧此呈现器,不取消已有合法动作。 */
|
|
13
|
+
readonly disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** ListController 行动作的独立公共呈现器;row 必须是当前结果中的原对象。 */
|
|
16
|
+
export declare const AsamListRowActions: new <Row extends object>(props: AsamListRowActionsProps<Row> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<AsamListRowActionsProps<Row> & {}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
17
|
+
P: {};
|
|
18
|
+
B: {};
|
|
19
|
+
D: {};
|
|
20
|
+
C: {};
|
|
21
|
+
M: {};
|
|
22
|
+
Defaults: {};
|
|
23
|
+
}, AsamListRowActionsProps<Row> & {}, {}, {}, {}, {}, {}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AsamControlSize, AsamTableSize } from '@asam-ui/ui';
|
|
2
|
+
import type { AsamTableAppearanceProps } from '../table/Appearance.js';
|
|
3
|
+
import type { AsamListAction, AsamListColumn, AsamListController } from './Types.js';
|
|
4
|
+
/** 表格视图没有隐式 source;分页与查询共享传入 controller。 */
|
|
5
|
+
export interface AsamProTableProps<Row extends object> extends AsamTableAppearanceProps {
|
|
6
|
+
readonly controller: AsamListController<Row>;
|
|
7
|
+
readonly columns: readonly AsamListColumn<Row>[];
|
|
8
|
+
readonly actions?: readonly AsamListAction<Row>[];
|
|
9
|
+
readonly rowActions?: readonly AsamListAction<Row>[];
|
|
10
|
+
readonly size?: AsamControlSize;
|
|
11
|
+
/** 表格行高:large 60、default 50、small 42、mini 36;不影响控件尺寸。 */
|
|
12
|
+
readonly tableSize?: AsamTableSize;
|
|
13
|
+
/** 操作列默认固定右侧;false 显式关闭,不影响业务列。 */
|
|
14
|
+
readonly actionColumnFixed?: 'right' | false;
|
|
15
|
+
}
|
|
16
|
+
export declare const AsamProTable: new <Row extends object>(props: AsamProTableProps<Row> & {
|
|
17
|
+
"onUpdate:border"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<AsamProTableProps<Row> & {
|
|
19
|
+
"onUpdate:border"?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:border"[], import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
21
|
+
P: {};
|
|
22
|
+
B: {};
|
|
23
|
+
D: {};
|
|
24
|
+
C: {};
|
|
25
|
+
M: {};
|
|
26
|
+
Defaults: {};
|
|
27
|
+
}, AsamProTableProps<Row> & {
|
|
28
|
+
"onUpdate:border"?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}, {}, {}, {}, {}, {}>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import '../display/shared/MessageButton.css';
|
|
2
|
+
import '../table/ActionText.css';
|
|
3
|
+
import './SearchForm.css';
|
|
4
|
+
import type { AsamButtonType, AsamControlSize } from '@asam-ui/ui';
|
|
5
|
+
import type { AsamFieldDefinition, AsamFieldModel } from '../fields/Types.js';
|
|
6
|
+
import type { AsamListController } from './Types.js';
|
|
7
|
+
export interface AsamSearchFormProps<Row extends object = object> {
|
|
8
|
+
/** 接入列表时共享列表控制器的字段、草稿、校验与请求。 */
|
|
9
|
+
readonly controller?: AsamListController<Row>;
|
|
10
|
+
/** 独立模式下的查询字段定义。 */
|
|
11
|
+
readonly fields?: readonly AsamFieldDefinition[];
|
|
12
|
+
/** 独立模式下通过 v-model 绑定查询草稿。 */
|
|
13
|
+
readonly modelValue?: AsamFieldModel;
|
|
14
|
+
/** 独立模式的重置值。未提供时按字段默认值初始化空草稿。 */
|
|
15
|
+
readonly resetValues?: Readonly<AsamFieldModel>;
|
|
16
|
+
/** 最大字段列数,容器变窄时自动折行。 */
|
|
17
|
+
readonly columns?: 1 | 2 | 3;
|
|
18
|
+
/** 收起时最多显示的字段数。紧凑布局会继续按容器列数收起。 */
|
|
19
|
+
readonly collapsedCount?: number;
|
|
20
|
+
/** 紧凑查询按可用宽度收为三/二/一列;不移除折叠字段的查询值。 */
|
|
21
|
+
readonly compact?: boolean;
|
|
22
|
+
/** 使用完整查询卡片。独立模式默认开启,列表控制器模式可显式开启。 */
|
|
23
|
+
readonly card?: boolean;
|
|
24
|
+
readonly size?: AsamControlSize;
|
|
25
|
+
/** Display labels indexed by the existing field key; schema and draft remain authoritative. */
|
|
26
|
+
readonly fieldLabels?: Readonly<Record<string, string>>;
|
|
27
|
+
/** 查询主操作默认 primary;显式值覆盖默认。 */
|
|
28
|
+
readonly actionButtonType?: AsamButtonType;
|
|
29
|
+
/** 禁用查询字段和表单操作,例如宿主读取权限失效时。 */
|
|
30
|
+
readonly disabled?: boolean;
|
|
31
|
+
/** 由宿主控制的查询请求进度,期间阻止提交和重置。 */
|
|
32
|
+
readonly loading?: boolean;
|
|
33
|
+
/** 是否显示重置按钮,默认为 true。 */
|
|
34
|
+
readonly showReset?: boolean;
|
|
35
|
+
/** 可覆盖默认的本地化查询按钮文字。 */
|
|
36
|
+
readonly submitLabel?: string;
|
|
37
|
+
/** 可覆盖默认的本地化重置按钮文字。 */
|
|
38
|
+
readonly resetLabel?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface AsamSearchFormEmits {
|
|
41
|
+
/** 独立模式下更新草稿。 */
|
|
42
|
+
'update:modelValue': [draft: AsamFieldModel];
|
|
43
|
+
/** 独立模式下查询成功时传出转换后的条件。 */
|
|
44
|
+
submit: [query: AsamFieldModel];
|
|
45
|
+
/** 独立模式下重置成功时传出转换后的条件。 */
|
|
46
|
+
reset: [query: AsamFieldModel];
|
|
47
|
+
}
|
|
48
|
+
export declare const AsamSearchForm: new <Row extends object>(props: AsamSearchFormProps<Row> & {
|
|
49
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<AsamSearchFormProps<Row> & {
|
|
53
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("submit" | "update:modelValue" | "reset")[], import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
57
|
+
P: {};
|
|
58
|
+
B: {};
|
|
59
|
+
D: {};
|
|
60
|
+
C: {};
|
|
61
|
+
M: {};
|
|
62
|
+
Defaults: {};
|
|
63
|
+
}, AsamSearchFormProps<Row> & {
|
|
64
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
}, {}, {}, {}, {}, {}>;
|