@skyworx/dynamic-ui 1.0.43 → 1.0.46

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.
@@ -1,5 +1,5 @@
1
- import { o as cW } from "./jszip.min-NMotBpMA.js";
2
- import { c as av } from "./index--kSDer8n.js";
1
+ import { o as cW } from "./jszip.min-DhwWJkIB.js";
2
+ import { c as av } from "./index-oy3M-bfI.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;
@@ -0,0 +1,34 @@
1
+ type __VLS_Props = {
2
+ modelValue?: unknown;
3
+ pageSize?: number;
4
+ label?: string;
5
+ title?: string;
6
+ description?: string;
7
+ emptyTitle?: string;
8
+ emptyText?: string;
9
+ endpoint?: {
10
+ apiUrl?: string;
11
+ apiModule?: string;
12
+ apiAction?: string;
13
+ apiMethod?: string;
14
+ };
15
+ apiParams?: Record<string, any>;
16
+ dataPath?: string;
17
+ };
18
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ label: string;
20
+ title: string;
21
+ description: string;
22
+ endpoint: {
23
+ apiUrl?: string;
24
+ apiModule?: string;
25
+ apiAction?: string;
26
+ apiMethod?: string;
27
+ };
28
+ apiParams: Record<string, any>;
29
+ pageSize: number;
30
+ dataPath: string;
31
+ emptyText: string;
32
+ emptyTitle: string;
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
+ export default _default;
@@ -39,8 +39,8 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
39
39
  visible: boolean;
40
40
  rounded: Rounded;
41
41
  valueFormat: ValueFormat;
42
- skeleton: boolean;
43
42
  zoom: number;
43
+ skeleton: boolean;
44
44
  defaultLat: number;
45
45
  defaultLng: number;
46
46
  enableSearch: boolean;
@@ -75,8 +75,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
75
75
  maxHeight: string | number;
76
76
  maxWidth: string | number;
77
77
  persistent: boolean;
78
- serverSearch: boolean;
79
78
  emptyTitle: string;
79
+ serverSearch: boolean;
80
80
  emptySubtitle: string;
81
81
  resetSearchText: string;
82
82
  showBadge: boolean;
@@ -0,0 +1,18 @@
1
+ export type PaginationDisplayItem = {
2
+ type: "page";
3
+ value: number;
4
+ } | {
5
+ type: "ellipsis";
6
+ };
7
+ /**
8
+ * Computes total page count (always at least 1).
9
+ */
10
+ export declare function getTotalPages(totalItems: number, perPage: number): number;
11
+ /**
12
+ * Builds a compact pagination item sequence (e.g. [1, 2, 3, '...', 45]).
13
+ */
14
+ export declare function buildCompactPaginationItems(currentPage: number, totalPages: number): PaginationDisplayItem[];
15
+ /**
16
+ * Computes the midpoint page inside an ellipsis gap between adjacent page items.
17
+ */
18
+ export declare function getEllipsisTargetPage(items: PaginationDisplayItem[], index: number, totalPages: number): number;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,64 @@
1
+ export type PdfApiClient = (url: string, method?: string, params?: any, config?: any) => Promise<any>;
2
+ export interface PdfLoadSource {
3
+ url?: string | null;
4
+ blob?: Blob | null;
5
+ api?: PdfApiClient | null;
6
+ }
7
+ export interface PdfRenderOptions {
8
+ /** Zoom multiplier applied on top of fit-to-width (default 1). */
9
+ zoom?: number;
10
+ /** Horizontal padding subtracted when computing fit-width (default 24). */
11
+ paddingX?: number;
12
+ /** Fallback width when the container has not measured yet (default 640). */
13
+ fallbackWidth?: number;
14
+ /** Optional progress callback invoked after each page renders. */
15
+ onProgress?: (info: {
16
+ page: number;
17
+ numPages: number;
18
+ }) => void;
19
+ /** Optional abort signal for cancelling a render pass. */
20
+ signal?: AbortSignal;
21
+ }
22
+ export interface PdfDocumentSession {
23
+ readonly numPages: number;
24
+ render: (container: HTMLElement, options?: PdfRenderOptions) => Promise<void>;
25
+ destroy: () => Promise<void>;
26
+ }
27
+ /** Error thrown when binary retrieval fails, preserving HTTP/CORS classification. */
28
+ export declare class PdfFetchError extends Error {
29
+ status?: number;
30
+ isCorsOrNetworkError: boolean;
31
+ constructor(message: string, status?: number, isCorsOrNetworkError?: boolean);
32
+ }
33
+ /** Error thrown when an active PDF load or page render pass is cancelled. */
34
+ export declare class PdfRenderCancelledError extends Error {
35
+ constructor(message?: string);
36
+ }
37
+ export declare const isPdfCancelledError: (err: unknown) => boolean;
38
+ export declare const isCorsOrNetworkPdfError: (err: unknown) => boolean;
39
+ export declare const stripUrlFragment: (url: string) => string;
40
+ export declare const getUrlExtension: (url: string | null | undefined) => string;
41
+ /** Derives a reliable MIME type from a filename or URL (handling missing/octet-stream types). */
42
+ export declare const mimeFromFileName: (name: string | null | undefined) => string;
43
+ /**
44
+ * Loads raw file bytes for preview/viewer components.
45
+ * Uses local `Blob`/`File` first so host CSP `connect-src 'self'` never blocks `blob:` URLs,
46
+ * and uses injected `DCodeApi` for same-origin/relative or auth-protected endpoints.
47
+ */
48
+ export declare const loadBinaryBlob: (source: PdfLoadSource) => Promise<Blob>;
49
+ /**
50
+ * Validates that a Blob contains actual PDF bytes rather than an HTML/JSON error response.
51
+ */
52
+ export declare const readAndValidatePdfBytes: (blob: Blob) => Promise<Uint8Array>;
53
+ /**
54
+ * Lazily loads PDF.js together with its worker module wired onto `globalThis.pdfjsWorker`
55
+ * so rendering executes safely in-process without needing `worker-src blob:` or external worker URLs.
56
+ */
57
+ export declare const loadPdfJs: () => Promise<typeof import("pdfjs-dist/legacy/build/pdf.mjs")>;
58
+ /**
59
+ * Loads, validates, and opens a reusable PDF document session that can render
60
+ * all pages to HiDPI `<canvas>` elements inside a target container.
61
+ */
62
+ export declare const openPdfSession: (source: PdfLoadSource, options?: {
63
+ signal?: AbortSignal;
64
+ }) => Promise<PdfDocumentSession>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { p as O, U as W, C as T, i as p, a as H, F as Kn, s as on, I as Zn, B as Qn, o as sn, j as Fe, Y as rn, q as mt, k as Be, K as ti, J as Tt, Z as ei, z as ni, H as It, G as ii, L as an, g as cn } from "./DrilldownUtil-esP8Tbvd.js";
2
- import { g as oi } from "./index--kSDer8n.js";
2
+ import { g as oi } from "./index-oy3M-bfI.js";
3
3
  const N = "tokenSimulation.toggleMode", ln = "tokenSimulation.playSimulation", un = "tokenSimulation.pauseSimulation", tt = "tokenSimulation.resetSimulation", si = "tokenSimulation.animationCreated", hn = "tokenSimulation.animationSpeedChanged", pn = "tokenSimulation.simulator.elementChanged", Gt = "tokenSimulation.simulator.destroyScope", ri = "tokenSimulation.simulator.scopeChanged", vt = "tokenSimulation.simulator.createScope", Bt = "tokenSimulation.scopeFilterChanged", fn = "tokenSimulation.simulator.trace";
4
4
  var ai = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path fill="currentColor" d="M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"/></svg>', ci = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path fill="currentColor" d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"/></svg>', li = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"/></svg>', ui = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path fill="currentColor" d="M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"/></svg>', hi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path fill="currentColor" d="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"/></svg>', pi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path fill="currentColor" d="M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"/></svg>', fi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path fill="currentColor" d="M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"/></svg>', mi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 580.5 448">
5
5
  <path fill="currentColor" d="M112 0C85 0 64 22 64 48v196l192-89V48c0-26-22-48-48-48zm256 0c-27 0-48 22-48 48v77l190-89c-5-21-24-36-46-36Zm144 105-192 89v70l192-89zM256 224 64 314v70l192-90zm256 21-192 89v66c0 27 21 48 48 48h96c26 0 48-21 48-48zM256 364 89 442c7 4 14 6 23 6h96c26 0 48-21 48-48z"/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyworx/dynamic-ui",
3
- "version": "1.0.43",
3
+ "version": "1.0.46",
4
4
  "description": "Vue 3 Dynamic UI Component Library - Compatible with Vue, React, Angular, and any other framework via Web Components",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,7 +35,10 @@
35
35
  "docs:dev": "vitepress dev docs",
36
36
  "docs:build": "vitepress build docs",
37
37
  "docs:preview": "vitepress preview docs",
38
- "test": "vitest run"
38
+ "test": "vitest run",
39
+ "release:patch": "npm version patch && git push --follow-tags && npm run build && npm publish",
40
+ "release:minor": "npm version minor && git push --follow-tags && npm run build && npm publish",
41
+ "release:major": "npm version major && git push --follow-tags && npm run build && npm publish"
39
42
  },
40
43
  "keywords": [
41
44
  "vue",
@@ -92,7 +95,6 @@
92
95
  "@fontsource/geist-sans": "^5.2.5",
93
96
  "@jamescoyle/vue-icon": "^0.1.2",
94
97
  "@mdi/js": "^7.4.47",
95
- "@skyworx/dynamic-ui": "^1.0.29",
96
98
  "@uppy/core": "^5.0.0",
97
99
  "@uppy/dashboard": "^5.0.0",
98
100
  "@uppy/image-editor": "^4.0.0",
@@ -106,9 +108,11 @@
106
108
  "clsx": "^2.1.1",
107
109
  "currency.js": "^2.0.4",
108
110
  "docx-preview": "^0.4.1",
111
+ "dompurify": "^3.4.17",
109
112
  "json-logic-js": "^2.0.5",
110
113
  "leaflet": "^1.9.4",
111
114
  "lucide-vue-next": "^0.575.0",
115
+ "pdfjs-dist": "^4.10.38",
112
116
  "pptx-preview": "^1.0.7",
113
117
  "reka-ui": "^2.8.0",
114
118
  "tailwind-merge": "^3.5.0",