@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,205 @@
|
|
|
1
|
+
import { n as e } from "./i18n-CJTJI6vg.js";
|
|
2
|
+
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, normalizeProps as u, normalizeStyle as d, onBeforeUnmount as f, onMounted as p, openBlock as m, provide as ee, ref as h, renderSlot as g, toDisplayString as _, unref as v, useId as te, vShow as y, watch as b, withCtx as x, withDirectives as S, withKeys as ne, withModifiers as re } from "vue";
|
|
3
|
+
import { AsamButton as C, AsamConfigProvider as w, AsamContainer as T } from "@asam-ui/ui";
|
|
4
|
+
//#region src/layout/AsamPageContainer.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var E = ["aria-label", "aria-busy"], D = { class: "asam-page-container-header" }, O = ["aria-label"], k = { class: "asam-page-container-heading" }, A = { key: 0 }, j = { key: 1 }, M = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "asam-layout-actions"
|
|
8
|
+
}, N = ["role"], P = { class: "asam-page-container-body" }, F = /* @__PURE__ */ c({
|
|
9
|
+
__name: "AsamPageContainer",
|
|
10
|
+
props: {
|
|
11
|
+
title: {},
|
|
12
|
+
description: {},
|
|
13
|
+
status: { default: "ready" },
|
|
14
|
+
statusText: {},
|
|
15
|
+
retryLabel: { default: void 0 },
|
|
16
|
+
label: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["retry"],
|
|
19
|
+
setup(s, { expose: c }) {
|
|
20
|
+
let l = e(), u = s, d = h(), f = t(() => ({
|
|
21
|
+
loading: l.t("pro.states.loading"),
|
|
22
|
+
empty: l.t("pro.common.empty"),
|
|
23
|
+
error: l.t("pro.common.failed")
|
|
24
|
+
}));
|
|
25
|
+
c({ focus: () => d.value?.focus() });
|
|
26
|
+
let p = t(() => u.retryLabel ?? l.t("pro.common.retry"));
|
|
27
|
+
return (e, t) => (m(), i("section", {
|
|
28
|
+
ref_key: "region",
|
|
29
|
+
ref: d,
|
|
30
|
+
class: "asam-page-container",
|
|
31
|
+
tabindex: "-1",
|
|
32
|
+
"aria-label": s.label || s.title,
|
|
33
|
+
"aria-busy": s.status === "loading"
|
|
34
|
+
}, [
|
|
35
|
+
a("header", D, [e.$slots.navigation ? (m(), i("nav", {
|
|
36
|
+
key: 0,
|
|
37
|
+
"aria-label": v(l).t("pro.layout.pageNavigation")
|
|
38
|
+
}, [g(e.$slots, "navigation")], 8, O)) : r("", !0), a("div", k, [a("div", null, [s.title ? (m(), i("h1", A, _(s.title), 1)) : r("", !0), s.description ? (m(), i("p", j, _(s.description), 1)) : r("", !0)]), e.$slots.actions ? (m(), i("div", M, [g(e.$slots, "actions")])) : r("", !0)])]),
|
|
39
|
+
s.status === "ready" ? r("", !0) : (m(), i("div", {
|
|
40
|
+
key: 0,
|
|
41
|
+
role: s.status === "error" ? "alert" : "status",
|
|
42
|
+
class: "asam-page-container-status"
|
|
43
|
+
}, [g(e.$slots, "status", { status: s.status }, () => [a("p", null, _(s.statusText || f.value[s.status]), 1), s.status === "error" ? (m(), n(v(C), {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "asam-pro-message-button",
|
|
46
|
+
"native-type": "button",
|
|
47
|
+
type: "default",
|
|
48
|
+
plain: "",
|
|
49
|
+
onClick: t[0] ||= (t) => e.$emit("retry")
|
|
50
|
+
}, {
|
|
51
|
+
default: x(() => [o(_(p.value), 1)]),
|
|
52
|
+
_: 1
|
|
53
|
+
})) : r("", !0)])], 8, N)),
|
|
54
|
+
S(a("div", P, [g(e.$slots, "default")], 512), [[y, s.status === "ready"]])
|
|
55
|
+
], 8, E));
|
|
56
|
+
}
|
|
57
|
+
}), I = Symbol("asam-layout-action-clearance"), L = Object.freeze({
|
|
58
|
+
navigation: "side",
|
|
59
|
+
collapsed: !1,
|
|
60
|
+
density: "comfortable",
|
|
61
|
+
contentWidth: "fluid",
|
|
62
|
+
fixedActions: !0
|
|
63
|
+
});
|
|
64
|
+
function R(e = {}) {
|
|
65
|
+
return {
|
|
66
|
+
navigation: e.navigation === "top" ? "top" : "side",
|
|
67
|
+
collapsed: e.collapsed ?? L.collapsed,
|
|
68
|
+
density: [
|
|
69
|
+
"compact",
|
|
70
|
+
"comfortable",
|
|
71
|
+
"spacious"
|
|
72
|
+
].includes(e.density ?? "") ? e.density : L.density,
|
|
73
|
+
contentWidth: e.contentWidth === "contained" ? "contained" : "fluid",
|
|
74
|
+
fixedActions: e.fixedActions ?? L.fixedActions
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/layout/AsamAdminLayout.vue?vue&type=script&setup=true&lang.ts
|
|
79
|
+
var z = { class: "asam-admin-layout-header" }, B = ["aria-label"], V = ["aria-label", "onKeydown"], H = { class: "asam-admin-layout-inner" }, U = {
|
|
80
|
+
key: 1,
|
|
81
|
+
class: "asam-admin-layout-footer"
|
|
82
|
+
}, W = /* @__PURE__ */ c({
|
|
83
|
+
__name: "AsamAdminLayout",
|
|
84
|
+
props: {
|
|
85
|
+
settings: {},
|
|
86
|
+
breakpoint: { default: 768 },
|
|
87
|
+
size: {},
|
|
88
|
+
disabled: { type: Boolean },
|
|
89
|
+
readonly: { type: Boolean },
|
|
90
|
+
sidebarLabel: { default: void 0 },
|
|
91
|
+
menuLabel: { default: void 0 }
|
|
92
|
+
},
|
|
93
|
+
emits: ["state-change", "update:settings"],
|
|
94
|
+
setup(c, { expose: E, emit: D }) {
|
|
95
|
+
let O = e(), k = c, A = D, j = t(() => R(k.settings)), M = h(!1), N = h(!1), P = `asam-sidebar-${te()}`, F = t(() => M.value ? N.value : !j.value.collapsed), L = t(() => ({
|
|
96
|
+
narrow: M.value,
|
|
97
|
+
sidebarOpen: F.value,
|
|
98
|
+
settings: { ...j.value }
|
|
99
|
+
})), W = h(), G = h(), K = h(), q = h(0), J = /* @__PURE__ */ new Map();
|
|
100
|
+
ee(I, (e, t) => {
|
|
101
|
+
t ? J.set(e, t) : J.delete(e), q.value = [...J.values()].reduce((e, t) => e + t, 0);
|
|
102
|
+
});
|
|
103
|
+
function Y() {
|
|
104
|
+
M.value ? N.value = !1 : A("update:settings", {
|
|
105
|
+
...j.value,
|
|
106
|
+
collapsed: !0
|
|
107
|
+
}), G.value?.ref?.focus();
|
|
108
|
+
}
|
|
109
|
+
function ie() {
|
|
110
|
+
M.value ? N.value = !N.value : A("update:settings", {
|
|
111
|
+
...j.value,
|
|
112
|
+
collapsed: !j.value.collapsed
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
let X, Z, Q = 0;
|
|
116
|
+
function $() {
|
|
117
|
+
let e = Q < Math.max(1, k.breakpoint);
|
|
118
|
+
if (e !== M.value) {
|
|
119
|
+
let t = K.value?.$el?.ownerDocument?.activeElement;
|
|
120
|
+
e && t && K.value?.$el?.querySelector("aside")?.contains(t) && G.value?.ref?.focus(), M.value = e, N.value = !1;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
p(() => {
|
|
124
|
+
let e = K.value?.$el;
|
|
125
|
+
Q = e.getBoundingClientRect().width, $(), typeof ResizeObserver < "u" && (X = new ResizeObserver(([e]) => {
|
|
126
|
+
Q = e.contentRect.width, Z === void 0 && (Z = requestAnimationFrame(() => {
|
|
127
|
+
Z = void 0, $();
|
|
128
|
+
}));
|
|
129
|
+
}), X.observe(e));
|
|
130
|
+
}), b(() => k.breakpoint, $), b(F, (e) => {
|
|
131
|
+
let t = K.value?.$el;
|
|
132
|
+
!e && t?.querySelector("aside")?.contains(t.ownerDocument.activeElement) && G.value?.ref?.focus();
|
|
133
|
+
}), b(L, (e) => A("state-change", e), { immediate: !0 }), f(() => {
|
|
134
|
+
X?.disconnect(), Z !== void 0 && cancelAnimationFrame(Z), J.clear();
|
|
135
|
+
}), E({
|
|
136
|
+
closeSidebar: Y,
|
|
137
|
+
focusContent: () => W.value?.focus()
|
|
138
|
+
});
|
|
139
|
+
let ae = t(() => k.menuLabel ?? O.t("pro.layout.menu")), oe = t(() => k.sidebarLabel ?? O.t("pro.layout.sidebar"));
|
|
140
|
+
return (e, t) => (m(), n(v(w), { size: c.size }, {
|
|
141
|
+
default: x(() => [s(v(T), {
|
|
142
|
+
ref_key: "container",
|
|
143
|
+
ref: K,
|
|
144
|
+
class: "asam-admin-layout",
|
|
145
|
+
"data-navigation": j.value.navigation,
|
|
146
|
+
"data-density": j.value.density,
|
|
147
|
+
"data-width": j.value.contentWidth,
|
|
148
|
+
"data-narrow": M.value,
|
|
149
|
+
"data-collapsed": j.value.collapsed,
|
|
150
|
+
style: d({ "--asam-action-clearance": `${q.value}px` })
|
|
151
|
+
}, {
|
|
152
|
+
default: x(() => [
|
|
153
|
+
a("header", z, [
|
|
154
|
+
e.$slots.sidebar ? (m(), n(v(C), {
|
|
155
|
+
key: 0,
|
|
156
|
+
class: "asam-pro-message-button",
|
|
157
|
+
ref_key: "toggle",
|
|
158
|
+
ref: G,
|
|
159
|
+
"native-type": "button",
|
|
160
|
+
type: "default",
|
|
161
|
+
plain: "",
|
|
162
|
+
disabled: c.disabled || c.readonly,
|
|
163
|
+
"aria-expanded": F.value,
|
|
164
|
+
"aria-controls": P,
|
|
165
|
+
onClick: ie
|
|
166
|
+
}, {
|
|
167
|
+
default: x(() => [o(_(v(ae)), 1)]),
|
|
168
|
+
_: 1
|
|
169
|
+
}, 8, ["disabled", "aria-expanded"])) : r("", !0),
|
|
170
|
+
g(e.$slots, "header", u(l(L.value))),
|
|
171
|
+
e.$slots.navigation ? (m(), i("nav", {
|
|
172
|
+
key: 1,
|
|
173
|
+
"aria-label": v(O).t("pro.layout.navigation")
|
|
174
|
+
}, [g(e.$slots, "navigation", u(l(L.value)))], 8, B)) : r("", !0)
|
|
175
|
+
]),
|
|
176
|
+
e.$slots.sidebar ? S((m(), i("aside", {
|
|
177
|
+
key: 0,
|
|
178
|
+
id: P,
|
|
179
|
+
class: "asam-admin-layout-sidebar",
|
|
180
|
+
"aria-label": v(oe),
|
|
181
|
+
onKeydown: ne(re(Y, ["stop", "prevent"]), ["esc"])
|
|
182
|
+
}, [g(e.$slots, "sidebar", u(l(L.value)))], 40, V)), [[y, F.value]]) : r("", !0),
|
|
183
|
+
a("main", {
|
|
184
|
+
ref_key: "content",
|
|
185
|
+
ref: W,
|
|
186
|
+
tabindex: "-1",
|
|
187
|
+
class: "asam-admin-layout-content"
|
|
188
|
+
}, [a("div", H, [g(e.$slots, "default", u(l(L.value)))])], 512),
|
|
189
|
+
e.$slots.footer ? (m(), i("div", U, [g(e.$slots, "footer", u(l(L.value)))])) : r("", !0)
|
|
190
|
+
]),
|
|
191
|
+
_: 3
|
|
192
|
+
}, 8, [
|
|
193
|
+
"data-navigation",
|
|
194
|
+
"data-density",
|
|
195
|
+
"data-width",
|
|
196
|
+
"data-narrow",
|
|
197
|
+
"data-collapsed",
|
|
198
|
+
"style"
|
|
199
|
+
])]),
|
|
200
|
+
_: 3
|
|
201
|
+
}, 8, ["size"]));
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
//#endregion
|
|
205
|
+
export { F as a, I as i, L as n, R as r, W as t };
|