@skyworx/dynamic-ui 1.0.48 → 1.0.49

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.
Files changed (37) hide show
  1. package/dist/{docx-preview-B1tciOKX.js → docx-preview-omOu0gze.js} +1 -1
  2. package/dist/dynamic-ui.css +1 -1
  3. package/dist/dynamic-ui.es.js +1 -1
  4. package/dist/dynamic-ui.umd.js +259 -217
  5. package/dist/{index-CcTYy5dD.js → index-COS1PARh.js} +29854 -27512
  6. package/dist/{jszip.min-BYtbvJ-B.js → jszip.min-DWOPwycz.js} +1 -1
  7. package/dist/{pptx-preview.es-BvHiRPKJ.js → pptx-preview.es-D72et4Bp.js} +2 -2
  8. package/dist/types/components/base/DCodeFileResult.vue.d.ts +1 -1
  9. package/dist/types/components/base/DCodeImageResult.vue.d.ts +5 -1
  10. package/dist/types/components/base/DCodePdfViewer.vue.d.ts +30 -1
  11. package/dist/types/components/base/DCodeWizard.vue.d.ts +1 -1
  12. package/dist/types/components/base/DCodeWorkflowBpmn.vue.d.ts +1 -1
  13. package/dist/types/components/base/document-viewer/DCodeDocumentViewerCore.vue.d.ts +66 -0
  14. package/dist/types/components/base/document-viewer/DocumentViewerToolbar.vue.d.ts +56 -0
  15. package/dist/types/components/base/document-viewer/PdfThumbnailSidebar.vue.d.ts +15 -0
  16. package/dist/types/components/base/document-viewer/documentViewer.contract.test.d.ts +1 -0
  17. package/dist/types/components/base/document-viewer/renderers/DocxDocumentRenderer.vue.d.ts +29 -0
  18. package/dist/types/components/base/document-viewer/renderers/FallbackDocumentRenderer.vue.d.ts +22 -0
  19. package/dist/types/components/base/document-viewer/renderers/ImageDocumentRenderer.vue.d.ts +32 -0
  20. package/dist/types/components/base/document-viewer/renderers/PdfDocumentRenderer.vue.d.ts +42 -0
  21. package/dist/types/components/base/document-viewer/renderers/PptxDocumentRenderer.vue.d.ts +28 -0
  22. package/dist/types/components/base/document-viewer/renderers/SheetDocumentRenderer.vue.d.ts +25 -0
  23. package/dist/types/components/base/document-viewer/renderers/TextDocumentRenderer.vue.d.ts +40 -0
  24. package/dist/types/composables/dynamic-form/actions/useFormActions.d.ts +2 -1
  25. package/dist/types/composables/dynamic-form/useDynamicForm.d.ts +2 -1
  26. package/dist/types/utils/action.utils.d.ts +8 -0
  27. package/dist/types/utils/documentViewer/documentActions.d.ts +13 -0
  28. package/dist/types/utils/documentViewer/documentActions.test.d.ts +1 -0
  29. package/dist/types/utils/documentViewer/fileType.d.ts +35 -0
  30. package/dist/types/utils/documentViewer/fileType.test.d.ts +1 -0
  31. package/dist/types/utils/documentViewer/index.d.ts +4 -0
  32. package/dist/types/utils/documentViewer/sourceResolver.d.ts +19 -0
  33. package/dist/types/utils/documentViewer/sourceResolver.test.d.ts +1 -0
  34. package/dist/types/utils/documentViewer/types.d.ts +38 -0
  35. package/dist/types/utils/pdfPreview.d.ts +42 -2
  36. package/dist/{viewer-DwVvr39n.js → viewer-zyCKD_4h.js} +1 -1
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { c as bt, g as It } from "./index-CcTYy5dD.js";
1
+ import { c as bt, g as It } from "./index-COS1PARh.js";
2
2
  function vt(yt) {
3
3
  throw new Error('Could not dynamically require "' + yt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -1,5 +1,5 @@
1
- import { o as cW } from "./jszip.min-BYtbvJ-B.js";
2
- import { c as av } from "./index-CcTYy5dD.js";
1
+ import { o as cW } from "./jszip.min-DWOPwycz.js";
2
+ import { c as av } from "./index-COS1PARh.js";
3
3
  var b_ = function(r, e) {
4
4
  return b_ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
5
5
  t.__proto__ = n;
@@ -27,10 +27,10 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
27
27
  }>, {
28
28
  flat: boolean;
29
29
  title: string;
30
+ showPreview: boolean;
30
31
  disabled: boolean;
31
32
  required: boolean;
32
33
  description: string;
33
- showPreview: boolean;
34
34
  previewHeight: number;
35
35
  previewWidth: number;
36
36
  showEdit: boolean;
@@ -1,11 +1,12 @@
1
1
  type __VLS_Props = {
2
- file: File | null;
2
+ file: File | string | Record<string, any> | null;
3
3
  title?: string;
4
4
  description?: string;
5
5
  disabled?: boolean;
6
6
  required?: boolean;
7
7
  previewHeight?: number;
8
8
  previewWidth?: number;
9
+ showPreview?: boolean;
9
10
  showEdit?: boolean;
10
11
  showReplace?: boolean;
11
12
  showRemove?: boolean;
@@ -16,13 +17,16 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
16
17
  replace: () => any;
17
18
  remove: () => any;
18
19
  edit: () => any;
20
+ preview: () => any;
19
21
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
22
  onReplace?: (() => any) | undefined;
21
23
  onRemove?: (() => any) | undefined;
22
24
  onEdit?: (() => any) | undefined;
25
+ onPreview?: (() => any) | undefined;
23
26
  }>, {
24
27
  flat: boolean;
25
28
  title: string;
29
+ showPreview: boolean;
26
30
  disabled: boolean;
27
31
  required: boolean;
28
32
  description: string;
@@ -1,3 +1,4 @@
1
+ import type { PdfViewMode, ZoomFitMode } from "../../utils/documentViewer/types";
1
2
  type __VLS_Props = {
2
3
  itemValue?: string | null;
3
4
  modelValue?: any;
@@ -6,14 +7,42 @@ type __VLS_Props = {
6
7
  height?: string | number;
7
8
  showDownload?: boolean;
8
9
  showFullscreen?: boolean;
10
+ showToolbar?: boolean;
11
+ showZoom?: boolean;
12
+ showNavigation?: boolean;
13
+ showRotate?: boolean;
14
+ showThumbnails?: boolean;
15
+ showViewMode?: boolean;
16
+ showSearch?: boolean;
17
+ showPrint?: boolean;
18
+ showOpenTab?: boolean;
19
+ initialPage?: number;
20
+ initialZoom?: number;
21
+ initialFitMode?: ZoomFitMode;
22
+ defaultViewMode?: PdfViewMode;
23
+ maxMb?: number;
9
24
  };
10
25
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
26
  label: string;
12
27
  modelValue: any;
13
28
  height: string | number;
14
29
  itemValue: string | null;
15
- baseUrl: string;
16
30
  showDownload: boolean;
31
+ maxMb: number;
32
+ showToolbar: boolean;
33
+ showZoom: boolean;
34
+ showNavigation: boolean;
35
+ showRotate: boolean;
36
+ showThumbnails: boolean;
37
+ showViewMode: boolean;
38
+ showSearch: boolean;
39
+ showPrint: boolean;
17
40
  showFullscreen: boolean;
41
+ showOpenTab: boolean;
42
+ initialPage: number;
43
+ initialZoom: number;
44
+ initialFitMode: ZoomFitMode;
45
+ defaultViewMode: PdfViewMode;
46
+ baseUrl: string;
18
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
48
  export default _default;
@@ -119,6 +119,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
119
119
  loading: boolean;
120
120
  apiOptions: ApiOptions | (() => ApiOptions | undefined);
121
121
  autoFetchOnMount: boolean;
122
+ showNavigation: boolean;
122
123
  isWizard: boolean;
123
124
  defaultTab: number;
124
125
  allowTabClick: boolean;
@@ -126,7 +127,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
126
127
  isVertical: boolean;
127
128
  typeWizard: "number" | "icon" | "none" | null;
128
129
  centerStepper: boolean | null;
129
- showNavigation: boolean;
130
130
  stickyNavigation: boolean;
131
131
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
132
132
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -64,11 +64,11 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
64
64
  dummyMode: boolean;
65
65
  apiParams: Record<string, any>;
66
66
  apiMethod: string;
67
+ showToolbar: boolean;
67
68
  xmlBefore: string | null;
68
69
  xmlAfter: string | null;
69
70
  labelBefore: string;
70
71
  labelAfter: string;
71
- showToolbar: boolean;
72
72
  allowDownload: boolean;
73
73
  allowViewCode: boolean;
74
74
  fitOnLoad: boolean;
@@ -0,0 +1,66 @@
1
+ import { type PdfViewMode, type ZoomFitMode } from "../../../utils/documentViewer";
2
+ type __VLS_Props = {
3
+ url?: string | null;
4
+ blob?: Blob | null;
5
+ mime?: string;
6
+ title?: string;
7
+ size?: number;
8
+ ext?: string;
9
+ hasSource?: boolean;
10
+ height?: string | number;
11
+ maxMb?: number;
12
+ showToolbar?: boolean;
13
+ showZoom?: boolean;
14
+ showNavigation?: boolean;
15
+ showRotate?: boolean;
16
+ showThumbnails?: boolean;
17
+ showViewMode?: boolean;
18
+ showSearch?: boolean;
19
+ showPrint?: boolean;
20
+ showDownload?: boolean;
21
+ showFullscreen?: boolean;
22
+ showOpenTab?: boolean;
23
+ showClose?: boolean;
24
+ initialPage?: number;
25
+ initialZoom?: number;
26
+ initialFitMode?: ZoomFitMode;
27
+ defaultViewMode?: PdfViewMode;
28
+ fallbackToPdfOnUnknownUrl?: boolean;
29
+ isDialogMode?: boolean;
30
+ };
31
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
32
+ close: () => any;
33
+ "fullscreen-change": (active: boolean) => any;
34
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
+ onClose?: (() => any) | undefined;
36
+ "onFullscreen-change"?: ((active: boolean) => any) | undefined;
37
+ }>, {
38
+ title: string;
39
+ size: number;
40
+ height: string | number;
41
+ showClose: boolean;
42
+ blob: Blob | null;
43
+ url: string | null;
44
+ mime: string;
45
+ ext: string;
46
+ showDownload: boolean;
47
+ hasSource: boolean;
48
+ maxMb: number;
49
+ showToolbar: boolean;
50
+ showZoom: boolean;
51
+ showNavigation: boolean;
52
+ showRotate: boolean;
53
+ showThumbnails: boolean;
54
+ showViewMode: boolean;
55
+ showSearch: boolean;
56
+ showPrint: boolean;
57
+ showFullscreen: boolean;
58
+ showOpenTab: boolean;
59
+ initialPage: number;
60
+ initialZoom: number;
61
+ initialFitMode: ZoomFitMode;
62
+ defaultViewMode: PdfViewMode;
63
+ fallbackToPdfOnUnknownUrl: boolean;
64
+ isDialogMode: boolean;
65
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
66
+ export default _default;
@@ -0,0 +1,56 @@
1
+ import type { DocumentCapabilities, DocumentCategory, ImageBgMode, PdfViewMode, ViewerPageState, ViewerSearchState, ZoomFitMode } from "../../../utils/documentViewer/types";
2
+ type __VLS_Props = {
3
+ title: string;
4
+ category: DocumentCategory;
5
+ fileSizeLabel?: string;
6
+ extraInfoLabel?: string;
7
+ capabilities: DocumentCapabilities;
8
+ pageState: ViewerPageState;
9
+ zoom: number;
10
+ fitMode: ZoomFitMode;
11
+ rotation: number;
12
+ viewMode: PdfViewMode;
13
+ showThumbnailsPanel: boolean;
14
+ imageBgMode: ImageBgMode;
15
+ wordWrap: boolean;
16
+ prettyJson: boolean;
17
+ copied: boolean;
18
+ searchOpen: boolean;
19
+ searchState: ViewerSearchState;
20
+ isFullscreen: boolean;
21
+ hasExternalUrl: boolean;
22
+ canDownload: boolean;
23
+ showThumbnailsControl?: boolean;
24
+ showNavigationControl?: boolean;
25
+ showZoomControl?: boolean;
26
+ showRotateControl?: boolean;
27
+ showViewModeControl?: boolean;
28
+ showSearchControl?: boolean;
29
+ showPrintControl?: boolean;
30
+ showDownloadControl?: boolean;
31
+ showFullscreenControl?: boolean;
32
+ showOpenTabControl?: boolean;
33
+ showCloseControl?: boolean;
34
+ };
35
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
36
+ focusSearchInput: () => Promise<void>;
37
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
38
+ [x: string]: any;
39
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
40
+ [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
41
+ }>, {
42
+ fileSizeLabel: string;
43
+ extraInfoLabel: string;
44
+ showThumbnailsControl: boolean;
45
+ showNavigationControl: boolean;
46
+ showZoomControl: boolean;
47
+ showRotateControl: boolean;
48
+ showViewModeControl: boolean;
49
+ showSearchControl: boolean;
50
+ showPrintControl: boolean;
51
+ showDownloadControl: boolean;
52
+ showFullscreenControl: boolean;
53
+ showOpenTabControl: boolean;
54
+ showCloseControl: boolean;
55
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
56
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { type PdfDocumentSession } from "../../../utils/pdfPreview";
2
+ type __VLS_Props = {
3
+ session: PdfDocumentSession | null;
4
+ totalPages: number;
5
+ currentPage: number;
6
+ rotation?: number;
7
+ };
8
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
+ "select-page": (page: number) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onSelect-page"?: ((page: number) => any) | undefined;
12
+ }>, {
13
+ rotation: number;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { type PdfApiClient } from "../../../../utils/pdfPreview";
2
+ type __VLS_Props = {
3
+ url?: string | null;
4
+ blob?: Blob | null;
5
+ apiClient?: PdfApiClient | null;
6
+ zoom: number;
7
+ title?: string;
8
+ currentPage: number;
9
+ };
10
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
11
+ goToPage: (page: number) => void;
12
+ print: () => void;
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ error: (msg: string) => any;
15
+ loading: (val: boolean) => any;
16
+ "update:current-page": (page: number) => any;
17
+ "update:total-pages": (total: number) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onError?: ((msg: string) => any) | undefined;
20
+ onLoading?: ((val: boolean) => any) | undefined;
21
+ "onUpdate:current-page"?: ((page: number) => any) | undefined;
22
+ "onUpdate:total-pages"?: ((total: number) => any) | undefined;
23
+ }>, {
24
+ title: string;
25
+ blob: Blob | null;
26
+ url: string | null;
27
+ apiClient: PdfApiClient | null;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ export default _default;
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ ext?: string;
4
+ mime?: string;
5
+ fileSizeLabel?: string;
6
+ hasExternalUrl?: boolean;
7
+ showDownload?: boolean;
8
+ };
9
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ download: () => any;
11
+ "open-tab": () => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onDownload?: (() => any) | undefined;
14
+ "onOpen-tab"?: (() => any) | undefined;
15
+ }>, {
16
+ mime: string;
17
+ fileSizeLabel: string;
18
+ hasExternalUrl: boolean;
19
+ ext: string;
20
+ showDownload: boolean;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import type { ImageBgMode, ZoomFitMode } from "../../../../utils/documentViewer/types";
2
+ type __VLS_Props = {
3
+ src: string;
4
+ title?: string;
5
+ zoom: number;
6
+ fitMode: ZoomFitMode;
7
+ rotation: number;
8
+ bgMode: ImageBgMode;
9
+ };
10
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
11
+ resetPan: () => void;
12
+ print: () => void;
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ error: (msg: string) => any;
15
+ loading: (val: boolean) => any;
16
+ dimensions: (info: {
17
+ width: number;
18
+ height: number;
19
+ }) => any;
20
+ "wheel-zoom": (direction: "in" | "out") => any;
21
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onError?: ((msg: string) => any) | undefined;
23
+ onLoading?: ((val: boolean) => any) | undefined;
24
+ onDimensions?: ((info: {
25
+ width: number;
26
+ height: number;
27
+ }) => any) | undefined;
28
+ "onWheel-zoom"?: ((direction: "in" | "out") => any) | undefined;
29
+ }>, {
30
+ title: string;
31
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { type PdfApiClient, type PdfDocumentSession } from "../../../../utils/pdfPreview";
2
+ import type { PdfViewMode, ViewerSearchState, ZoomFitMode } from "../../../../utils/documentViewer/types";
3
+ type __VLS_Props = {
4
+ url?: string | null;
5
+ blob?: Blob | null;
6
+ apiClient?: PdfApiClient | null;
7
+ title?: string;
8
+ currentPage: number;
9
+ zoom: number;
10
+ fitMode: ZoomFitMode;
11
+ rotation: number;
12
+ viewMode: PdfViewMode;
13
+ searchQuery: string;
14
+ };
15
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
16
+ goToPage: (page: number) => Promise<void>;
17
+ searchNext: () => Promise<void>;
18
+ searchPrev: () => Promise<void>;
19
+ print: () => Promise<void>;
20
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
+ error: (msg: string) => any;
22
+ loading: (val: boolean) => any;
23
+ "session-ready": (session: PdfDocumentSession | null) => any;
24
+ "update:current-page": (page: number) => any;
25
+ "update:total-pages": (total: number) => any;
26
+ "update:search-state": (state: ViewerSearchState) => any;
27
+ "fallback-mode": (active: boolean) => any;
28
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ onError?: ((msg: string) => any) | undefined;
30
+ onLoading?: ((val: boolean) => any) | undefined;
31
+ "onSession-ready"?: ((session: PdfDocumentSession | null) => any) | undefined;
32
+ "onUpdate:current-page"?: ((page: number) => any) | undefined;
33
+ "onUpdate:total-pages"?: ((total: number) => any) | undefined;
34
+ "onUpdate:search-state"?: ((state: ViewerSearchState) => any) | undefined;
35
+ "onFallback-mode"?: ((active: boolean) => any) | undefined;
36
+ }>, {
37
+ title: string;
38
+ blob: Blob | null;
39
+ url: string | null;
40
+ apiClient: PdfApiClient | null;
41
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
42
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import { type PdfApiClient } from "../../../../utils/pdfPreview";
2
+ import type { PdfViewMode } from "../../../../utils/documentViewer/types";
3
+ type __VLS_Props = {
4
+ url?: string | null;
5
+ blob?: Blob | null;
6
+ apiClient?: PdfApiClient | null;
7
+ zoom: number;
8
+ viewMode: PdfViewMode;
9
+ currentPage: number;
10
+ };
11
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
12
+ goToPage: (slide: number) => void;
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ error: (msg: string) => any;
15
+ loading: (val: boolean) => any;
16
+ "update:current-page": (page: number) => any;
17
+ "update:total-pages": (total: number) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onError?: ((msg: string) => any) | undefined;
20
+ onLoading?: ((val: boolean) => any) | undefined;
21
+ "onUpdate:current-page"?: ((page: number) => any) | undefined;
22
+ "onUpdate:total-pages"?: ((total: number) => any) | undefined;
23
+ }>, {
24
+ blob: Blob | null;
25
+ url: string | null;
26
+ apiClient: PdfApiClient | null;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { type PdfApiClient } from "../../../../utils/pdfPreview";
2
+ type __VLS_Props = {
3
+ url?: string | null;
4
+ blob?: Blob | null;
5
+ apiClient?: PdfApiClient | null;
6
+ zoom: number;
7
+ title?: string;
8
+ };
9
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
10
+ print: () => void;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
+ meta: (info: string) => any;
13
+ error: (msg: string) => any;
14
+ loading: (val: boolean) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onMeta?: ((info: string) => any) | undefined;
17
+ onError?: ((msg: string) => any) | undefined;
18
+ onLoading?: ((val: boolean) => any) | undefined;
19
+ }>, {
20
+ title: string;
21
+ blob: Blob | null;
22
+ url: string | null;
23
+ apiClient: PdfApiClient | null;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ export default _default;
@@ -0,0 +1,40 @@
1
+ import { type PdfApiClient } from "../../../../utils/pdfPreview";
2
+ import type { ViewerSearchState } from "../../../../utils/documentViewer/types";
3
+ type __VLS_Props = {
4
+ url?: string | null;
5
+ blob?: Blob | null;
6
+ apiClient?: PdfApiClient | null;
7
+ ext?: string;
8
+ mime?: string;
9
+ zoom: number;
10
+ wordWrap: boolean;
11
+ prettyJson: boolean;
12
+ searchQuery: string;
13
+ title?: string;
14
+ };
15
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
16
+ getText: () => string;
17
+ searchNext: () => void;
18
+ searchPrev: () => void;
19
+ print: () => void;
20
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
+ meta: (info: string) => any;
22
+ error: (msg: string) => any;
23
+ loading: (val: boolean) => any;
24
+ "update:search-state": (state: ViewerSearchState) => any;
25
+ "json-detected": (isJson: boolean) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ onMeta?: ((info: string) => any) | undefined;
28
+ onError?: ((msg: string) => any) | undefined;
29
+ onLoading?: ((val: boolean) => any) | undefined;
30
+ "onUpdate:search-state"?: ((state: ViewerSearchState) => any) | undefined;
31
+ "onJson-detected"?: ((isJson: boolean) => any) | undefined;
32
+ }>, {
33
+ title: string;
34
+ blob: Blob | null;
35
+ url: string | null;
36
+ mime: string;
37
+ apiClient: PdfApiClient | null;
38
+ ext: string;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
+ export default _default;
@@ -1,6 +1,7 @@
1
1
  import { UseFormActionsOptions } from "../../../types/dynamic.types.ts";
2
2
  export declare function useFormActions({ state, props, emit, apiUrl, router, locale, mapping, validation, fieldMap, activeSchema, resolvedBaseUrl, resolveKeyParams, navigation, logic, }: UseFormActionsOptions): {
3
- isActionVisible: (action: any) => boolean | undefined;
3
+ isActionVisible: (action: any) => boolean;
4
+ getVisibleGroupButtons: (action: any) => any;
4
5
  handleGlobalButtonClick: (action: any) => void;
5
6
  confirmAction: () => void;
6
7
  performAction: (action: any) => Promise<void>;
@@ -133,7 +133,8 @@ export declare function useDynamicForm(props: DynamicFormProps, emit: any): {
133
133
  rowIndex?: number | null;
134
134
  }) => void;
135
135
  saveTableRow: () => void;
136
- isActionVisible: (action: any) => boolean | undefined;
136
+ isActionVisible: (action: any) => boolean;
137
+ getVisibleGroupButtons: (action: any) => any;
137
138
  handleGlobalButtonClick: (action: any) => void;
138
139
  confirmAction: () => void;
139
140
  performAction: (action: any) => Promise<void>;
@@ -1,2 +1,10 @@
1
1
  export declare const isActionDisabled: (action: any, selectedCount: number) => boolean;
2
2
  export declare const disableButtonsBySelection: (buttons: any[] | undefined, selectedCount: number) => any[];
3
+ /** Resolves `logic.visibleRule` (Opsi 2) first, falling back to legacy locations. */
4
+ export declare const resolveActionVisibleRule: (action: any) => any;
5
+ export interface EvaluateActionVisibilityOptions {
6
+ rootData?: any;
7
+ defaultOnError?: boolean;
8
+ customEvaluator?: (rule: any) => boolean;
9
+ }
10
+ export declare const evaluateActionVisibility: (action: any, evalData?: any, options?: EvaluateActionVisibilityOptions) => boolean;
@@ -0,0 +1,13 @@
1
+ export interface DownloadSourceOptions {
2
+ url?: string | null;
3
+ blobUrl?: string | null;
4
+ blob?: Blob | null;
5
+ filename?: string;
6
+ fallbackExtension?: string;
7
+ }
8
+ export declare const buildDownloadFilename: (rawName?: string, ext?: string, fallbackExtension?: string) => string;
9
+ export declare const downloadDocumentSource: (options: DownloadSourceOptions) => void;
10
+ export declare const openDocumentInNewTab: (url?: string | null) => void;
11
+ export declare const printImageSource: (src: string, title?: string, rotation?: number) => boolean;
12
+ export declare const printImagesList: (dataUrls: string[], title?: string) => boolean;
13
+ export declare const printHtmlContent: (bodyHtml: string, title?: string, extraCss?: string) => boolean;
@@ -0,0 +1,35 @@
1
+ import type { DocumentCategory } from "./types";
2
+ export declare const DOCX_MIME = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
3
+ export declare const XLSX_MIME = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
4
+ export declare const XLS_MIME = "application/vnd.ms-excel";
5
+ export declare const PPTX_MIME = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
6
+ export declare const IMAGE_EXTENSIONS: Set<string>;
7
+ export declare const PDF_EXTENSIONS: Set<string>;
8
+ export declare const DOCX_EXTENSIONS: Set<string>;
9
+ export declare const SHEET_EXTENSIONS: Set<string>;
10
+ export declare const PPTX_EXTENSIONS: Set<string>;
11
+ export declare const TEXT_EXTENSIONS: Set<string>;
12
+ export declare const CODE_OR_TEXT_MIMES: Set<string>;
13
+ export interface CategoryDetectionInput {
14
+ url?: string | null;
15
+ mime?: string | null;
16
+ ext?: string | null;
17
+ title?: string | null;
18
+ blob?: Blob | null;
19
+ fallbackToPdfOnUnknownUrl?: boolean;
20
+ }
21
+ export declare const detectCategoryFromExt: (ext?: string | null) => DocumentCategory | null;
22
+ export declare const detectCategoryFromMime: (mime?: string | null) => DocumentCategory | null;
23
+ /**
24
+ * Resolves document category from data URI, MIME type, extension, or URL pattern.
25
+ * Returns `"other"` for explicitly unsupported formats (e.g. `.zip`, `.doc`).
26
+ */
27
+ export declare const detectDocumentCategory: (input: CategoryDetectionInput) => DocumentCategory;
28
+ /**
29
+ * Inspects file magic bytes for extensionless/octet-stream Blobs so API endpoints
30
+ * without filename extensions can still be previewed accurately.
31
+ */
32
+ export declare const sniffBlobCategory: (blob: Blob) => Promise<DocumentCategory | null>;
33
+ export declare const isHeavyOfficeCategory: (cat: DocumentCategory) => boolean;
34
+ export declare const isJsonFile: (ext?: string | null, mime?: string | null) => boolean;
35
+ export declare const formatFileSize: (bytes: number | undefined | null) => string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from "./types";
2
+ export * from "./fileType";
3
+ export * from "./sourceResolver";
4
+ export * from "./documentActions";
@@ -0,0 +1,19 @@
1
+ import type { ResolvedDocumentSource } from "./types";
2
+ export interface DocumentSourceInput {
3
+ modelValue?: any;
4
+ itemValue?: string | null;
5
+ url?: string | null;
6
+ blob?: Blob | null;
7
+ mime?: string;
8
+ title?: string;
9
+ size?: number;
10
+ baseUrl?: string;
11
+ label?: string;
12
+ }
13
+ export declare const normalizeDocumentUrl: (rawUrl: string, baseUrl?: string) => string | null;
14
+ /**
15
+ * Resolves a unified document source from either direct props (`url`, `blob`, `mime`, `title`)
16
+ * or form-style props (`modelValue`, `itemValue`, `baseUrl`, `label`).
17
+ */
18
+ export declare const resolveDocumentSource: (input: DocumentSourceInput) => ResolvedDocumentSource;
19
+ export declare const isMixedContentUrl: (url: string | null | undefined) => boolean;