@printstack/print-studio 0.1.1 → 0.1.2
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/README.md +121 -160
- package/assets/render.worker-DkH7TepL.js +109 -0
- package/{cloneDeep-PCw2ErRl.js → cloneDeep-waBDTGc3.js} +9 -4
- package/components/print-s-logo/print-s-logo.vue.d.ts +1 -1
- package/components/s-form/types.d.ts +1 -1
- package/core/coordinate-space.d.ts +16 -0
- package/core/document-model.d.ts +1 -1
- package/core/element-registry.d.ts +3 -8
- package/core/page-extensions.d.ts +1 -1
- package/core/types.d.ts +8 -0
- package/core.js +2 -2
- package/designer/commands/menu-adapter.d.ts +3 -3
- package/designer/commands/menu-types.d.ts +8 -1
- package/designer/commands/types.d.ts +2 -0
- package/designer/components/fields/use-table-draft.d.ts +0 -4
- package/designer/components/panels/layer-row-types.d.ts +37 -0
- package/designer/components/panels/layer-row.vue.d.ts +17 -0
- package/designer/components/stage/marquee-overlay.vue.d.ts +8 -0
- package/designer/components/stage/node-style.d.ts +3 -0
- package/designer/components/stage/selection-member.vue.d.ts +14 -0
- package/designer/composables/use-theme.d.ts +3 -0
- package/designer/facade/editing.d.ts +2 -2
- package/designer/facade/entities.d.ts +1156 -22
- package/designer/frame/view.d.ts +2 -0
- package/designer/interactions/marquee.d.ts +1 -1
- package/designer/interactions/move.d.ts +3 -1
- package/designer/mount-print-designer.d.ts +1 -1
- package/designer/plugins/plugin-manager.d.ts +3 -3
- package/designer/plugins/types.d.ts +1 -1
- package/designer/stores/document-store.d.ts +72 -0
- package/designer/stores/editor-store.d.ts +770 -14
- package/designer/stores/page-store.d.ts +25 -1
- package/designer/stores/template-store.d.ts +52 -4
- package/designer/stores/types.d.ts +1 -0
- package/designer/stores/ui-store.d.ts +232 -3
- package/designer/stores/view-store.d.ts +10 -1
- package/designer.d.ts +1 -1
- package/designer.js +3 -3
- package/{document-model-GhFP9OGp.js → document-model-Cc5RoO4j.js} +160 -179
- package/elements/table/table-style.d.ts +3 -10
- package/host-OAp3gFDx.js +123 -0
- package/index.js +5 -5
- package/locales/runtime.d.ts +7 -2
- package/locales/translations/zh-CN/designer.json.d.ts +9 -4
- package/{mount-print-designer-BLgVZOnm.js → mount-print-designer-DnHTrBE9.js} +4 -4
- package/{mount-print-preview-D7M-1AqH.js → mount-print-preview-Bcb08lJ-.js} +4 -3
- package/package.json +1 -1
- package/{presets-D3WhkbZK.js → presets-BunYODhE.js} +2 -2
- package/{registries-dZq8MewR.js → registries-sg39PGF1.js} +767 -780
- package/runtime.js +2 -2
- package/{saas-B1H161e1.js → saas-D-q51uTz.js} +1 -1
- package/saas.js +1 -1
- package/{studio-BFQYHZsg.js → studio-B3B6zI06.js} +796 -722
- package/studio-types.d.ts +1 -1
- package/style.css +1 -1
- package/vue.js +786 -693
- package/assets/render.worker-Ch4qWx3S.js +0 -109
- package/host-CuGR8rD6.js +0 -123
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Z as e } from "./registries-
|
|
2
|
-
import { S as t } from "./document-model-
|
|
3
|
-
import { V as n, t as r, z as i } from "./studio-
|
|
1
|
+
import { Z as e } from "./registries-sg39PGF1.js";
|
|
2
|
+
import { S as t } from "./document-model-Cc5RoO4j.js";
|
|
3
|
+
import { V as n, t as r, z as i } from "./studio-B3B6zI06.js";
|
|
4
4
|
import { t as a } from "./types-Vh_6jhVV.js";
|
|
5
|
-
import { B as o } from "./cloneDeep-
|
|
6
|
-
import { i as s, n as c, r as l, t as u } from "./saas-
|
|
5
|
+
import { B as o } from "./cloneDeep-waBDTGc3.js";
|
|
6
|
+
import { i as s, n as c, r as l, t as u } from "./saas-D-q51uTz.js";
|
|
7
7
|
// src/designer/plugins/sandbox-plugin.ts
|
|
8
8
|
function d(e) {
|
|
9
9
|
let t = new URL(e.url, globalThis.location?.href);
|
package/locales/runtime.d.ts
CHANGED
|
@@ -206,6 +206,12 @@ export declare const defaultMessages: {
|
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
208
|
designer: {
|
|
209
|
+
theme: {
|
|
210
|
+
groupLabel: string;
|
|
211
|
+
light: string;
|
|
212
|
+
dark: string;
|
|
213
|
+
system: string;
|
|
214
|
+
};
|
|
209
215
|
tutorialPlayback: {
|
|
210
216
|
detailedSteps: string;
|
|
211
217
|
demonstrate: string;
|
|
@@ -1279,6 +1285,7 @@ export declare const defaultMessages: {
|
|
|
1279
1285
|
panelTitle: string;
|
|
1280
1286
|
templatesSection: string;
|
|
1281
1287
|
pagesSection: string;
|
|
1288
|
+
moreActionsTitle: string;
|
|
1282
1289
|
addTemplateTitle: string;
|
|
1283
1290
|
addTemplateFromPageTitle: string;
|
|
1284
1291
|
editTemplateTitle: string;
|
|
@@ -1663,8 +1670,6 @@ export declare const defaultMessages: {
|
|
|
1663
1670
|
pageName: string;
|
|
1664
1671
|
};
|
|
1665
1672
|
templateBanner: {
|
|
1666
|
-
resetBackgroundTitle: string;
|
|
1667
|
-
resetBackgroundLabel: string;
|
|
1668
1673
|
baseTemplateLabel: string;
|
|
1669
1674
|
noTemplateLabel: string;
|
|
1670
1675
|
detachTitle: string;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
"theme": {
|
|
3
|
+
"groupLabel": "主题",
|
|
4
|
+
"light": "浅色",
|
|
5
|
+
"dark": "深色",
|
|
6
|
+
"system": "系统"
|
|
7
|
+
},
|
|
2
8
|
"tutorialPlayback": {
|
|
3
9
|
"detailedSteps": "逐项操作演示",
|
|
4
10
|
"demonstrate": "知道了,下一步",
|
|
@@ -637,7 +643,7 @@ declare const _default: {
|
|
|
637
643
|
"columnsLabel": "列数",
|
|
638
644
|
"columnUnit": "列",
|
|
639
645
|
"columnsHint": "超出页面宽度时自动减少列数",
|
|
640
|
-
"columnGapLabel": "
|
|
646
|
+
"columnGapLabel": "水平间距",
|
|
641
647
|
"numberedGroupName": "循环区块 {groupNumber}",
|
|
642
648
|
"selectMembersMessage": "请先选中要组合的元素",
|
|
643
649
|
"ungroupedMessage": "已解除循环区块,元素已保留",
|
|
@@ -1072,6 +1078,7 @@ declare const _default: {
|
|
|
1072
1078
|
"panelTitle": "页面",
|
|
1073
1079
|
"templatesSection": "模板",
|
|
1074
1080
|
"pagesSection": "页面列表",
|
|
1081
|
+
"moreActionsTitle": "更多操作",
|
|
1075
1082
|
"addTemplateTitle": "新建模板",
|
|
1076
1083
|
"addTemplateFromPageTitle": "从当前页新建模板",
|
|
1077
1084
|
"editTemplateTitle": "编辑模板",
|
|
@@ -1456,11 +1463,9 @@ declare const _default: {
|
|
|
1456
1463
|
"pageName": "页面名称"
|
|
1457
1464
|
},
|
|
1458
1465
|
"templateBanner": {
|
|
1459
|
-
"resetBackgroundTitle": "清除模板背景,继承基础模板或页面背景",
|
|
1460
|
-
"resetBackgroundLabel": "继承背景",
|
|
1461
1466
|
"baseTemplateLabel": "基于模板",
|
|
1462
1467
|
"noTemplateLabel": "无模板",
|
|
1463
|
-
"detachTitle": "
|
|
1468
|
+
"detachTitle": "分离模板内容",
|
|
1464
1469
|
"oddPages": "单数页",
|
|
1465
1470
|
"facingPages": "单双页控制",
|
|
1466
1471
|
"evenPages": "双数页",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
-
import { a as t, i as n, t as r } from "./studio-
|
|
3
|
-
import { t as i } from "./host-
|
|
4
|
-
import { t as a } from "./presets-
|
|
2
|
+
import { a as t, i as n, t as r } from "./studio-B3B6zI06.js";
|
|
3
|
+
import { t as i } from "./host-OAp3gFDx.js";
|
|
4
|
+
import { t as a } from "./presets-BunYODhE.js";
|
|
5
5
|
// src/designer/mount-print-designer.ts
|
|
6
|
-
var o = /* @__PURE__ */ e({
|
|
6
|
+
var o = /* @__PURE__ */ e({ attachDesigner: () => c }), s = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function c(e, o = {}) {
|
|
8
8
|
if (s.has(e)) throw Error("A designer is already mounted in this container");
|
|
9
9
|
if (typeof document > "u" || !(e instanceof HTMLElement)) throw Error("A designer requires an HTML container in a browser");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as e, t } from "./cloneDeep-
|
|
2
|
-
import { X as n } from "./registries-
|
|
3
|
-
import { t as r } from "./host-
|
|
1
|
+
import { P as e, t } from "./cloneDeep-waBDTGc3.js";
|
|
2
|
+
import { X as n } from "./registries-sg39PGF1.js";
|
|
3
|
+
import { t as r } from "./host-OAp3gFDx.js";
|
|
4
4
|
// src/designer/mount-print-preview.ts
|
|
5
5
|
function i(i, a, o = {}) {
|
|
6
6
|
return n(async (n) => {
|
|
@@ -51,6 +51,7 @@ function i(i, a, o = {}) {
|
|
|
51
51
|
f = t, p = n, e();
|
|
52
52
|
},
|
|
53
53
|
source: v,
|
|
54
|
+
themeMode: s.ui.themeMode,
|
|
54
55
|
timeoutMs: o.timeoutMs
|
|
55
56
|
}
|
|
56
57
|
});
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as e, t } from "./cloneDeep-
|
|
2
|
-
import { s as n, u as r } from "./document-model-
|
|
1
|
+
import { B as e, t } from "./cloneDeep-waBDTGc3.js";
|
|
2
|
+
import { s as n, u as r } from "./document-model-Cc5RoO4j.js";
|
|
3
3
|
// src/designer/presets.ts
|
|
4
4
|
function i(i = {}) {
|
|
5
5
|
return {
|