ts-glitter 13.8.744 → 13.8.746

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/lowcode/Entry.js CHANGED
@@ -68,7 +68,7 @@ export class Entry {
68
68
  }
69
69
  window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
70
70
  console.log(`Entry-time:`, window.renderClock.stop());
71
- glitter.share.editerVersion = 'V_13.8.744';
71
+ glitter.share.editerVersion = 'V_13.8.746';
72
72
  glitter.share.start = new Date();
73
73
  const vm = {
74
74
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -68,7 +68,7 @@ export class Entry {
68
68
  }
69
69
  (window as any).renderClock = (window as any).renderClock ?? clockF();
70
70
  console.log(`Entry-time:`, (window as any).renderClock.stop());
71
- glitter.share.editerVersion = 'V_13.8.744';
71
+ glitter.share.editerVersion = 'V_13.8.746';
72
72
  glitter.share.start = new Date();
73
73
  const vm: {
74
74
  appConfig: any;
@@ -100,13 +100,6 @@ ${BgWidget.grayNote(`電話是否需要驗證才能進行註冊或修改`)}
100
100
  <span class="" style="color:#8D8D8D;font-size: 12px;">於註冊頁面中設定顧客必須填寫的資料</span>
101
101
  </div>`,
102
102
  },
103
- {
104
- key: 'customer_form_user_setting',
105
- title: html ` <div class="tx_normal fw-bolder mt-2 d-flex flex-column" style="margin-bottom: 12px;">
106
- 設定頁面表單
107
- <span class="" style="color:#8D8D8D;font-size: 12px;">於用戶設定頁面中設定顧客可填寫的額外資料</span>
108
- </div>`,
109
- },
110
103
  ]);
111
104
  return [
112
105
  form.view,
@@ -115,13 +115,13 @@ ${BgWidget.grayNote(`電話是否需要驗證才能進行註冊或修改`)}
115
115
  <span class="" style="color:#8D8D8D;font-size: 12px;">於註冊頁面中設定顧客必須填寫的資料</span>
116
116
  </div>`,
117
117
  },
118
- {
119
- key: 'customer_form_user_setting',
120
- title: html` <div class="tx_normal fw-bolder mt-2 d-flex flex-column" style="margin-bottom: 12px;">
121
- 設定頁面表單
122
- <span class="" style="color:#8D8D8D;font-size: 12px;">於用戶設定頁面中設定顧客可填寫的額外資料</span>
123
- </div>`,
124
- },
118
+ // {
119
+ // key: 'customer_form_user_setting',
120
+ // title: html` <div class="tx_normal fw-bolder mt-2 d-flex flex-column" style="margin-bottom: 12px;">
121
+ // 設定頁面表單
122
+ // <span class="" style="color:#8D8D8D;font-size: 12px;">於用戶設定頁面中設定顧客可填寫的額外資料</span>
123
+ // </div>`,
124
+ // },
125
125
  // {
126
126
  // key: 'custom_form_checkout',
127
127
  // title: html`
@@ -1661,7 +1661,7 @@ ${obj.gvc.bindView({
1661
1661
  ${widget.visible === false ? ` hide-elem` : ``}`,
1662
1662
  option: option.concat((() => {
1663
1663
  if (root && isEditMode()) {
1664
- if (window.parent.document.body.clientWidth < 800) {
1664
+ if (window.parent.document.body.clientWidth < 992) {
1665
1665
  return [
1666
1666
  {
1667
1667
  key: 'onclick',
@@ -1958,7 +1958,7 @@ background: white;
1958
1958
  }
1959
1959
  else {
1960
1960
  function getPlusAndPasteView(dir) {
1961
- if (window.parent.document.body.clientWidth < 800) {
1961
+ if (window.parent.document.body.clientWidth < 992) {
1962
1962
  return ``;
1963
1963
  }
1964
1964
  const detID = cf.gvc.glitter.getUUID();
@@ -2079,7 +2079,7 @@ transform: translateY(5px);
2079
2079
  </div>`;
2080
2080
  }
2081
2081
  return html `
2082
- ${cf.gvc.glitter.document.body.clientWidth > 800
2082
+ ${cf.gvc.glitter.document.body.clientWidth > 992
2083
2083
  ? `<div
2084
2084
  class="position-absolute align-items-center justify-content-center px-3 fw-500 fs-6 badge_it"
2085
2085
  style="height:22px;left:-2px;top:-22px;background: linear-gradient(143deg, #FFB400 -22.7%, #FF6C02 114.57%);color:white;white-space: nowrap;"
@@ -2122,7 +2122,7 @@ ${e.line}
2122
2122
  option: option.concat(
2123
2123
  (() => {
2124
2124
  if (root && isEditMode()) {
2125
- if ((window.parent as any).document.body.clientWidth < 800) {
2125
+ if ((window.parent as any).document.body.clientWidth < 992) {
2126
2126
  return [
2127
2127
  {
2128
2128
  key: 'onclick',
@@ -2442,7 +2442,7 @@ background: white;
2442
2442
  `;
2443
2443
  } else {
2444
2444
  function getPlusAndPasteView(dir: number) {
2445
- if ((window.parent as any).document.body.clientWidth < 800) {
2445
+ if ((window.parent as any).document.body.clientWidth < 992) {
2446
2446
  return ``;
2447
2447
  }
2448
2448
  const detID = cf.gvc.glitter.getUUID();
@@ -2566,7 +2566,7 @@ transform: translateY(5px);
2566
2566
  }
2567
2567
 
2568
2568
  return html`
2569
- ${cf.gvc.glitter.document.body.clientWidth > 800
2569
+ ${cf.gvc.glitter.document.body.clientWidth > 992
2570
2570
  ? `<div
2571
2571
  class="position-absolute align-items-center justify-content-center px-3 fw-500 fs-6 badge_it"
2572
2572
  style="height:22px;left:-2px;top:-22px;background: linear-gradient(143deg, #FFB400 -22.7%, #FF6C02 114.57%);color:white;white-space: nowrap;"
@@ -1035,7 +1035,7 @@ color:white;
1035
1035
  style="${size < 800 ? `width: 0px;` : Storage.select_function === 'user-editor' ? `width: 365px;` : `width: 284px;`}z-index:10 !important;"
1036
1036
  >
1037
1037
  <div class="offcanvas-header d-none d-lg-flex justify-content-start border-bottom px-0 ${Storage.select_function === 'user-editor' ? `border-end` : ``}"
1038
- style="height: 56px;">
1038
+ style="height: ${(glitter.share.top_inset ? ((parseInt(glitter.share.top_inset, 10) + 56) + ((Storage.select_function === 'backend-manger') ? 10 : 5)) : 56)}px;">
1039
1039
  <div class="navbar-brand text-dark d-none d-lg-flex py-0 h-100">
1040
1040
  <div class="d-flex align-items-center justify-content-center border-end "
1041
1041
  style="width:50px;height: 56px;">
@@ -1109,7 +1109,7 @@ color:white;
1109
1109
  style="${size < 800 ? `width: 0px;` : Storage.select_function === 'user-editor' ? `width: 365px;` : `width: 284px;`}z-index:10 !important;"
1110
1110
  >
1111
1111
  <div class="offcanvas-header d-none d-lg-flex justify-content-start border-bottom px-0 ${Storage.select_function === 'user-editor' ? `border-end` : ``}"
1112
- style="height: 56px;">
1112
+ style="height: ${(glitter.share.top_inset ? ((parseInt(glitter.share.top_inset,10)+56)+((Storage.select_function === 'backend-manger') ? 10:5)):56)}px;">
1113
1113
  <div class="navbar-brand text-dark d-none d-lg-flex py-0 h-100">
1114
1114
  <div class="d-flex align-items-center justify-content-center border-end "
1115
1115
  style="width:50px;height: 56px;">
@@ -518,7 +518,7 @@ export class Main_editor {
518
518
  },
519
519
  divCreate: {
520
520
  class: `swiper-slide h-100 position-relative design-guide-1`,
521
- style: `${(glitter.share.top_inset) ? `padding-top:${glitter.share.top_inset}px !important;padding-bottom:${glitter.share.bottom_inset}px !important;` : ``}`
521
+ style: `${(glitter.share.top_inset && document.body.clientWidth < 800) ? `padding-top:${glitter.share.top_inset}px !important;padding-bottom:${glitter.share.bottom_inset}px !important;` : ``}`
522
522
  },
523
523
  onCreate: () => {
524
524
  $('.tooltip').remove();
@@ -553,7 +553,7 @@ export class Main_editor {
553
553
  },
554
554
  divCreate: {
555
555
  class: `swiper-slide h-100 position-relative design-guide-1`,
556
- style: `${(glitter.share.top_inset) ? `padding-top:${glitter.share.top_inset}px !important;padding-bottom:${glitter.share.bottom_inset}px !important;` : ``}`
556
+ style: `${(glitter.share.top_inset && document.body.clientWidth<800) ? `padding-top:${glitter.share.top_inset}px !important;padding-bottom:${glitter.share.bottom_inset}px !important;` : ``}`
557
557
  },
558
558
  onCreate: () => {
559
559
  $('.tooltip')!.remove();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "13.8.744",
3
+ "version": "13.8.746",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {