paas-component-library 1.0.89 → 1.0.90

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/dist/paas-ui.js CHANGED
@@ -394,6 +394,9 @@ const r9e = {
394
394
  inheritAttrs: !1,
395
395
  // 禁用自动继承,手动控制透传
396
396
  computed: {
397
+ see() {
398
+ return this.$store?.forms?.see || !1;
399
+ },
397
400
  formattedValue() {
398
401
  return this.modelValue ? Array.isArray(this.modelValue) ? this.modelValue.map((r) => r ? On(r) : null) : On.isDayjs(this.modelValue) ? this.modelValue : On(this.modelValue) : null;
399
402
  }
@@ -448,7 +451,7 @@ function n9e(r, e, t, n, i, o) {
448
451
  return Pt(), Vt(s, Mr({
449
452
  "show-time": t.showTime,
450
453
  readonly: t.readonly,
451
- disabled: t.disabled,
454
+ disabled: o.see || t.disabled,
452
455
  value: o.formattedValue,
453
456
  format: t.format,
454
457
  picker: t.type,
@@ -792,6 +795,11 @@ function I9e(r, e, t) {
792
795
  }
793
796
  const B9e = {
794
797
  name: "MentionInput",
798
+ computed: {
799
+ see() {
800
+ return this.$store?.forms?.see || !1;
801
+ }
802
+ },
795
803
  props: {
796
804
  modelValue: {
797
805
  type: String,
@@ -1254,11 +1262,11 @@ function F9e(r, e, t, n, i, o) {
1254
1262
  ref: "inputRef",
1255
1263
  class: "mention-input",
1256
1264
  style: pn({ height: typeof t.height == "number" ? t.height + "px" : t.height || "120px", ...typeof t.width == "number" ? { width: t.width + "px" } : t.width ? { width: t.width } : {}, ...typeof t.style == "object" ? t.style : {} }),
1257
- contenteditable: t.mode !== "select",
1265
+ contenteditable: !o.see && t.mode !== "select",
1258
1266
  onInput: e[0] || (e[0] = (...h) => o.onInput && o.onInput(...h)),
1259
1267
  onKeydown: e[1] || (e[1] = (...h) => o.onKeydown && o.onKeydown(...h)),
1260
1268
  onClick: e[2] || (e[2] = (...h) => o.onInputClick && o.onInputClick(...h)),
1261
- tabindex: "0",
1269
+ tabindex: "see ? -1 : 0",
1262
1270
  placeholder: t.placeholder || "请输入内容..."
1263
1271
  }, null, 44, V9e),
1264
1272
  v0(Rr("div", {
@@ -1287,7 +1295,7 @@ function F9e(r, e, t, n, i, o) {
1287
1295
  ])
1288
1296
  ], 512);
1289
1297
  }
1290
- const Q9e = /* @__PURE__ */ hr(B9e, [["render", F9e], ["__scopeId", "data-v-364101f4"]]);
1298
+ const Q9e = /* @__PURE__ */ hr(B9e, [["render", F9e], ["__scopeId", "data-v-9635e099"]]);
1291
1299
  var W9e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 018.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z" } }] }, name: "account-book", theme: "filled" };
1292
1300
  function Qa(r, e) {
1293
1301
  U9e(r) && (r = "100%");
@@ -21997,6 +22005,11 @@ function uGe(r, e, t, n, i, o) {
21997
22005
  const fGe = /* @__PURE__ */ hr(sGe, [["render", uGe], ["__scopeId", "data-v-04a6b0ef"]]), hGe = {
21998
22006
  name: "PaasSelect",
21999
22007
  inheritAttrs: !1,
22008
+ computed: {
22009
+ see() {
22010
+ return this.$store?.forms?.see || !1;
22011
+ }
22012
+ },
22000
22013
  props: {
22001
22014
  placeholder: { type: String, default: "" },
22002
22015
  multiple: { type: Boolean, default: !1 },
@@ -22069,7 +22082,7 @@ function dGe(r, e, t, n, i, o) {
22069
22082
  mode: t.multiple ? "multiple" : void 0,
22070
22083
  value: i.stringValue,
22071
22084
  "onUpdate:value": o.handleValueChange,
22072
- disabled: t.disabled,
22085
+ disabled: o.see || t.disabled,
22073
22086
  allowClear: !0,
22074
22087
  style: t.style,
22075
22088
  placeholder: t.placeholder
@@ -22085,6 +22098,11 @@ const pGe = /* @__PURE__ */ hr(hGe, [["render", dGe]]), vGe = Rh({
22085
22098
  components: { VNodes: vGe, LeftOutlined: X2, RightOutlined: Y2 },
22086
22099
  inheritAttrs: !1,
22087
22100
  // 添加此行,阻止未声明的属性传递给根元素
22101
+ computed: {
22102
+ see() {
22103
+ return this.$store?.forms?.see || !1;
22104
+ }
22105
+ },
22088
22106
  props: {
22089
22107
  placeholder: String,
22090
22108
  multiple: { type: Boolean, default: !1 },
@@ -22194,7 +22212,7 @@ function OGe(r, e, t, n, i, o) {
22194
22212
  const s = ht("a-input-search"), h = ht("v-nodes"), f = ht("a-divider"), p = ht("LeftOutlined"), v = ht("a-button"), m = ht("RightOutlined"), O = ht("a-select");
22195
22213
  return Pt(), Vt(O, Mr({
22196
22214
  mode: t.multiple ? "multiple" : void 0,
22197
- disabled: t.disabled,
22215
+ disabled: o.see || t.disabled,
22198
22216
  value: i.value,
22199
22217
  options: o.mergedData,
22200
22218
  loading: i.loading,
@@ -95324,6 +95342,11 @@ function kQt() {
95324
95342
  var jQt = kQt();
95325
95343
  const zQt = /* @__PURE__ */ hl(jQt), RQt = {
95326
95344
  name: "PaasMdEditor",
95345
+ computed: {
95346
+ see() {
95347
+ return this.$store?.forms?.see || !1;
95348
+ }
95349
+ },
95327
95350
  props: {
95328
95351
  height: {
95329
95352
  type: String,
@@ -95352,8 +95375,9 @@ const zQt = /* @__PURE__ */ hl(jQt), RQt = {
95352
95375
  initialValue: e,
95353
95376
  language: "zh-CN",
95354
95377
  usageStatistics: !1,
95355
- plugins: [wQt, CQt, bQt, EQt, zQt],
95356
- hooks: {
95378
+ readOnly: this.see,
95379
+ plugins: this.see ? [] : [wQt, CQt, bQt, EQt, zQt],
95380
+ hooks: this.see ? {} : {
95357
95381
  addImageBlobHook: async (t, n) => {
95358
95382
  let i;
95359
95383
  const o = "/system/open/minio/image/uploadFile", s = new FormData();
@@ -95525,6 +95549,11 @@ function VQt(r, e, t, n, i, o) {
95525
95549
  const FQt = /* @__PURE__ */ hr(NQt, [["render", VQt], ["__scopeId", "data-v-6ca5199e"]]), QQt = {
95526
95550
  name: "PaasTreePanel",
95527
95551
  components: { MenuItemNode: FQt },
95552
+ computed: {
95553
+ see() {
95554
+ return this.$store?.forms?.see || !1;
95555
+ }
95556
+ },
95528
95557
  props: {
95529
95558
  placeholder: String,
95530
95559
  multiple: Boolean,
@@ -95709,6 +95738,7 @@ function WQt(r, e, t, n, i, o) {
95709
95738
  selectedKeys: i.selectedKeys,
95710
95739
  openKeys: i.openKeys,
95711
95740
  multiple: t.multiple,
95741
+ disabled: o.see,
95712
95742
  onOpenChange: o.handleOpenChange,
95713
95743
  style: pn({ overflowY: "auto", height: `${t.height}` })
95714
95744
  }, {
@@ -95723,7 +95753,7 @@ function WQt(r, e, t, n, i, o) {
95723
95753
  }, null, 8, ["node", "onSelect", "onEdit", "onDelete", "onAddChild"]))), 128))
95724
95754
  ]),
95725
95755
  _: 1
95726
- }, 8, ["selectedKeys", "openKeys", "multiple", "onOpenChange", "style"]),
95756
+ }, 8, ["selectedKeys", "openKeys", "multiple", "disabled", "onOpenChange", "style"]),
95727
95757
  N(f, {
95728
95758
  type: "dashed",
95729
95759
  block: "",
@@ -95789,7 +95819,7 @@ function WQt(r, e, t, n, i, o) {
95789
95819
  }, 8, ["open", "title"])
95790
95820
  ]);
95791
95821
  }
95792
- const UQt = /* @__PURE__ */ hr(QQt, [["render", WQt], ["__scopeId", "data-v-bbf971c4"]]), XQt = Rh({
95822
+ const UQt = /* @__PURE__ */ hr(QQt, [["render", WQt], ["__scopeId", "data-v-e8dee1ef"]]), XQt = Rh({
95793
95823
  name: "PaasIcon",
95794
95824
  props: {
95795
95825
  icon: {
@@ -112404,74 +112434,75 @@ const rJt = "#e5c07b", Zre = "#e06c75", nJt = "#56b6c2", iJt = "#ffffff", H0 = "
112404
112434
  height: { default: "300px" },
112405
112435
  minHeight: { default: "100px" },
112406
112436
  maxHeight: { default: "none" },
112407
- placeholder: { default: "" }
112437
+ placeholder: { default: "" },
112438
+ disabled: { type: Boolean, default: !1 }
112408
112439
  },
112409
112440
  emits: ["update:modelValue"],
112410
112441
  setup(r, { emit: e }) {
112411
112442
  const t = r, n = e, i = Mc(null);
112412
112443
  let o = null;
112413
- const s = () => [
112444
+ const s = () => window.store?.forms?.see || !1, h = () => [
112414
112445
  // 基础编辑功能
112415
112446
  Ht.lineWrapping,
112416
112447
  // 历史记录
112417
112448
  uZt(),
112418
112449
  // 键盘映射
112419
112450
  jk.of([...pqt, ...bZt])
112420
- ], h = {
112451
+ ], f = {
112421
112452
  javascript: [Pce()],
112422
112453
  html: [YGt()],
112423
112454
  css: [ece()],
112424
112455
  json: [tJt()],
112425
112456
  plaintext: []
112426
- }, f = () => h[t.language] || h.json, p = () => {
112457
+ }, p = () => f[t.language] || f.json, v = () => {
112427
112458
  if (!i.value) return;
112428
- const m = [
112429
- ...s(),
112430
- ...f(),
112431
- Ht.updateListener.of((b) => {
112432
- if (b.docChanged) {
112433
- const S = b.state.doc.toString();
112434
- n("update:modelValue", S);
112459
+ const O = [
112460
+ ...h(),
112461
+ ...p(),
112462
+ Ht.updateListener.of((S) => {
112463
+ if (S.docChanged) {
112464
+ const w = S.state.doc.toString();
112465
+ n("update:modelValue", w);
112435
112466
  }
112436
112467
  }),
112437
- Ht.editable.of(!t.readonly),
112468
+ Ht.editable.of(!s() && !t.readonly && !t.disabled),
112438
112469
  t.placeholder ? uXt(t.placeholder) : [],
112439
112470
  t.theme === "dark" ? hJt : []
112440
- ], O = xr.create({
112471
+ ], b = xr.create({
112441
112472
  doc: t.modelValue,
112442
- extensions: m
112473
+ extensions: O
112443
112474
  });
112444
112475
  o = new Ht({
112445
- state: O,
112476
+ state: b,
112446
112477
  parent: i.value
112447
112478
  });
112448
- }, v = () => {
112479
+ }, m = () => {
112449
112480
  o && (o.destroy(), o = null);
112450
112481
  };
112451
112482
  return lf(
112452
112483
  () => t.modelValue,
112453
- (m) => {
112454
- o && o.state.doc.toString() !== m && o.dispatch({
112455
- changes: { from: 0, to: o.state.doc.length, insert: m }
112484
+ (O) => {
112485
+ o && o.state.doc.toString() !== O && o.dispatch({
112486
+ changes: { from: 0, to: o.state.doc.length, insert: O }
112456
112487
  });
112457
112488
  }
112458
112489
  ), lf(
112459
112490
  () => [t.language, t.theme, t.readonly],
112460
112491
  () => {
112461
- v(), F0(() => p());
112492
+ m(), F0(() => v());
112462
112493
  }
112463
112494
  ), ene(() => {
112464
- p();
112465
- }), Wye(() => {
112466
112495
  v();
112467
- }), (m, O) => (Pt(), Pr("div", {
112496
+ }), Wye(() => {
112497
+ m();
112498
+ }), (O, b) => (Pt(), Pr("div", {
112468
112499
  ref_key: "editorContainer",
112469
112500
  ref: i,
112470
112501
  class: "code-editor",
112471
112502
  style: pn({ height: r.height, minHeight: r.minHeight, maxHeight: r.maxHeight })
112472
112503
  }, null, 4));
112473
112504
  }
112474
- }), pJt = /* @__PURE__ */ hr(dJt, [["__scopeId", "data-v-54449739"]]), vJt = {
112505
+ }), pJt = /* @__PURE__ */ hr(dJt, [["__scopeId", "data-v-7f94554b"]]), vJt = {
112475
112506
  components: {
112476
112507
  SearchOutlined: G2,
112477
112508
  DeleteOutlined: $h
@@ -112756,6 +112787,11 @@ const gJt = /* @__PURE__ */ hr(vJt, [["render", mJt]]), OJt = {
112756
112787
  name: "OrgPathSelector",
112757
112788
  inheritAttrs: !1,
112758
112789
  components: { [R6.name]: R6 },
112790
+ computed: {
112791
+ see() {
112792
+ return this.$store?.forms?.see || !1;
112793
+ }
112794
+ },
112759
112795
  props: {
112760
112796
  modelValue: [String, Number, Array],
112761
112797
  selectionType: {
@@ -112931,7 +112967,7 @@ function bJt(r, e, t, n, i, o) {
112931
112967
  "load-data": o.loadData,
112932
112968
  placeholder: t.placeholder || "请选择",
112933
112969
  "show-search": t.showSearch,
112934
- disabled: t.disabled,
112970
+ disabled: o.see || t.disabled,
112935
112971
  size: t.size,
112936
112972
  multiple: t.multiple,
112937
112973
  "change-on-select": !1,
@@ -112942,7 +112978,7 @@ function bJt(r, e, t, n, i, o) {
112942
112978
  style: t.style
112943
112979
  }), null, 16, ["value", "options", "load-data", "placeholder", "show-search", "disabled", "size", "multiple", "onChange", "show-checked-strategy", "onDropdownVisibleChange", "style"]);
112944
112980
  }
112945
- const yJt = /* @__PURE__ */ hr(OJt, [["render", bJt], ["__scopeId", "data-v-94dc32c5"]]), SJt = {
112981
+ const yJt = /* @__PURE__ */ hr(OJt, [["render", bJt], ["__scopeId", "data-v-9778246f"]]), SJt = {
112946
112982
  name: "PaasImageViewer",
112947
112983
  inheritAttrs: !1,
112948
112984
  props: {
@@ -113194,6 +113230,11 @@ const xJt = /* @__PURE__ */ hr(SJt, [["render", wJt], ["__scopeId", "data-v-ea1b
113194
113230
  name: "PaasInput",
113195
113231
  inheritAttrs: !1,
113196
113232
  // 禁用自动继承,手动控制透传
113233
+ computed: {
113234
+ see() {
113235
+ return this.$store?.forms?.see || !1;
113236
+ }
113237
+ },
113197
113238
  props: {
113198
113239
  placeholder: {
113199
113240
  type: String,
@@ -113230,7 +113271,7 @@ function TJt(r, e, t, n, i, o) {
113230
113271
  type: t.type,
113231
113272
  value: t.modelValue,
113232
113273
  onInput: o.updateValue,
113233
- disabled: t.disabled || t.readonly,
113274
+ disabled: o.see || t.disabled || t.readonly,
113234
113275
  placeholder: t.placeholder,
113235
113276
  style: t.style
113236
113277
  }, r.$attrs), null, 16, ["type", "value", "onInput", "disabled", "placeholder", "style"]);
@@ -113238,6 +113279,11 @@ function TJt(r, e, t, n, i, o) {
113238
113279
  const CJt = /* @__PURE__ */ hr(PJt, [["render", TJt]]), AJt = {
113239
113280
  name: "PaasNumber",
113240
113281
  inheritAttrs: !1,
113282
+ computed: {
113283
+ see() {
113284
+ return this.$store?.forms?.see || !1;
113285
+ }
113286
+ },
113241
113287
  props: {
113242
113288
  placeholder: String,
113243
113289
  modelValue: [String, Number],
@@ -113266,7 +113312,7 @@ function _Jt(r, e, t, n, i, o) {
113266
113312
  return Pt(), Vt(s, Mr({
113267
113313
  value: o.innerValue,
113268
113314
  "onUpdate:value": e[0] || (e[0] = (h) => o.innerValue = h),
113269
- disabled: t.disabled || t.readonly,
113315
+ disabled: o.see || t.disabled || t.readonly,
113270
113316
  min: t.min,
113271
113317
  max: t.max,
113272
113318
  placeholder: t.placeholder,
@@ -113277,6 +113323,11 @@ const MJt = /* @__PURE__ */ hr(AJt, [["render", _Jt]]), EJt = {
113277
113323
  name: "PaasTextarea",
113278
113324
  inheritAttrs: !1,
113279
113325
  // 禁用自动继承,手动控制透传
113326
+ computed: {
113327
+ see() {
113328
+ return this.$store?.forms?.see || !1;
113329
+ }
113330
+ },
113280
113331
  props: {
113281
113332
  placeholder: {
113282
113333
  type: String,
@@ -113317,7 +113368,7 @@ function kJt(r, e, t, n, i, o) {
113317
113368
  type: t.type,
113318
113369
  value: t.modelValue,
113319
113370
  onInput: o.updateValue,
113320
- disabled: t.disabled || t.readonly,
113371
+ disabled: o.see || t.disabled || t.readonly,
113321
113372
  rows: t.rows,
113322
113373
  style: t.style,
113323
113374
  placeholder: t.placeholder
@@ -113327,6 +113378,11 @@ const jJt = /* @__PURE__ */ hr(EJt, [["render", kJt]]), zJt = {
113327
113378
  name: "PaasSwitch",
113328
113379
  inheritAttrs: !1,
113329
113380
  // 禁用自动继承,手动控制透传
113381
+ computed: {
113382
+ see() {
113383
+ return this.$store?.forms?.see || !1;
113384
+ }
113385
+ },
113330
113386
  props: {
113331
113387
  modelValue: {
113332
113388
  type: [Number, Boolean],
@@ -113357,7 +113413,7 @@ function RJt(r, e, t, n, i, o) {
113357
113413
  checked: t.modelValue,
113358
113414
  "checked-children": t.checkedText,
113359
113415
  "un-checked-children": t.unCheckedText,
113360
- disabled: t.disabled,
113416
+ disabled: o.see || t.disabled,
113361
113417
  onChange: o.handleChange
113362
113418
  }, r.$attrs), null, 16, ["checked", "checked-children", "un-checked-children", "disabled", "onChange"]);
113363
113419
  }
@@ -113450,6 +113506,11 @@ function LJt(r, e, t, n, i, o) {
113450
113506
  const NJt = /* @__PURE__ */ hr(DJt, [["render", LJt]]), IJt = {
113451
113507
  name: "PaasRadio",
113452
113508
  inheritAttrs: !1,
113509
+ computed: {
113510
+ see() {
113511
+ return this.$store?.forms?.see || !1;
113512
+ }
113513
+ },
113453
113514
  props: {
113454
113515
  modelValue: {
113455
113516
  type: [String, Number, Boolean],
@@ -113492,7 +113553,7 @@ function BJt(r, e, t, n, i, o) {
113492
113553
  value: o.innerValue,
113493
113554
  "onUpdate:value": e[0] || (e[0] = (h) => o.innerValue = h),
113494
113555
  options: o.processedOptions,
113495
- disabled: t.disabled,
113556
+ disabled: o.see || t.disabled,
113496
113557
  style: t.style
113497
113558
  }, r.$attrs), null, 16, ["value", "options", "disabled", "style"]);
113498
113559
  }
@@ -113518,6 +113579,9 @@ const HJt = /* @__PURE__ */ hr(IJt, [["render", BJt]]), VJt = {
113518
113579
  }
113519
113580
  },
113520
113581
  computed: {
113582
+ see() {
113583
+ return this.$store?.forms?.see || !1;
113584
+ },
113521
113585
  processedOptions() {
113522
113586
  return (this.options.length > 0 ? this.options : this.data).map((e) => ({
113523
113587
  label: e.label,
@@ -113540,7 +113604,7 @@ function FJt(r, e, t, n, i, o) {
113540
113604
  value: o.innerValue,
113541
113605
  "onUpdate:value": e[0] || (e[0] = (h) => o.innerValue = h),
113542
113606
  options: o.processedOptions,
113543
- disabled: t.disabled
113607
+ disabled: o.see || t.disabled
113544
113608
  }, r.$attrs), null, 16, ["value", "options", "disabled"]);
113545
113609
  }
113546
113610
  const QJt = /* @__PURE__ */ hr(VJt, [["render", FJt]]), jce = [