clickgo 3.13.16 → 3.13.18

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 CHANGED
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
25
25
  **index.html**
26
26
 
27
27
  ```html
28
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.13.16'}"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.13.18'}"></script>
29
29
  ```
30
30
 
31
31
  **index.js**
@@ -22,15 +22,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
25
  Object.defineProperty(exports, "__esModule", { value: true });
35
26
  const clickgo = __importStar(require("clickgo"));
36
27
  class default_1 extends clickgo.form.AbstractForm {
@@ -39,18 +30,12 @@ class default_1 extends clickgo.form.AbstractForm {
39
30
  this.date = true;
40
31
  this.time = true;
41
32
  this.zone = true;
42
- this.ts = 0;
33
+ this.ts = undefined;
43
34
  this.tz = undefined;
44
35
  this.disabled = false;
45
- this.range = undefined;
46
36
  }
47
37
  settime() {
48
38
  this.ts = clickgo.tool.rand(1504304812000, 1704304812000);
49
39
  }
50
- onRange(e) {
51
- return __awaiter(this, void 0, void 0, function* () {
52
- yield clickgo.form.dialog(JSON.stringify(e));
53
- });
54
- }
55
40
  }
56
41
  exports.default = default_1;
@@ -1,7 +1,7 @@
1
1
  <form width="400" height="350" title="Date">
2
2
  <layout direction="v" gutter="10" style="padding: 10px; flex: 1;">
3
3
  <label>Timestamp: {{ts}}, Time zone: {{tz}}</label>
4
- <date v-model="ts" v-model:tz="tz" :date="date" :time="time" :zone="zone" :disabled="disabled" :range="range" @range="onRange" />
4
+ <date v-model="ts" v-model:tz="tz" :date="date" :time="time" :zone="zone" :disabled="disabled" />
5
5
  <layout gutter="10">
6
6
  <button @click="date = !date" style="flex: 1;">{{date ? '' : '!'}}date</button>
7
7
  <button @click="time = !time" style="flex: 1;">{{time ? '' : '!'}}time</button>
@@ -10,7 +10,6 @@
10
10
  <layout gutter="10">
11
11
  <button @click="disabled = !disabled" style="flex: 1;">{{disabled ? '' : '!'}}disabled</button>
12
12
  <button @click="settime" style="flex: 1;">Set time</button>
13
- <button @click="range = 0" style="flex: 1;">Set range</button>
14
13
  </layout>
15
14
  </layout>
16
15
  </form>
@@ -1,7 +1,7 @@
1
1
  <form width="500" height="700" title="Datepanel">
2
2
  <layout direction="v" gutter="10" style="padding: 10px; flex: 1;">
3
3
  <label>Timestamp: {{ts}}, Time zone: {{tz}}, yearmonth: {{yearmonth}}</label>
4
- <datepanel v-model="ts" v-model:tz="tz" v-model:yearmonth="yearmonth" time="false" :zone="zone" :disabled="disabled" :plain="plain" :range="range" :start="start ? 1704067200_000 : undefined" @changed="onChanged" style="flex: 1;">
4
+ <datepanel v-model="ts" v-model:tz="tz" v-model:yearmonth="yearmonth" :time="time" :zone="zone" :disabled="disabled" :plain="plain" :range="range" :start="start ? 1704067200_000 : undefined" @changed="onChanged" style="flex: 1;">
5
5
  <template v-if="bottom" v-slot="d">
6
6
  <layout style="flex: 1;" align-h="center">{{d.year}}</layout>
7
7
  </template>
@@ -18,7 +18,7 @@
18
18
  <layout gutter="10">
19
19
  <button @click="family = !family" style="flex: 1;">{{family ? '' : '!'}}Family CCM</button>
20
20
  <select v-model="size" :data="['12px', '13px', '14px', '15px', '16px']" style="flex: 1;"></select>
21
- <!--<select v-model="theme" :data="themes" style="flex: 1;"></select>-->
21
+ <select v-model="theme" :data="themes" style="flex: 1;"></select>
22
22
  </layout>
23
23
  </layout>
24
24
  </form>
package/dist/clickgo.js CHANGED
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.zip = exports.tool = exports.theme = exports.task = exports.storage = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = void 0;
27
- const version = '3.13.16';
27
+ const version = '3.13.18';
28
28
  function getVersion() {
29
29
  return version;
30
30
  }
package/dist/clickgo.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- const version = '3.13.16';
16
+ const version = '3.13.18';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/lib/core.js CHANGED
@@ -270,7 +270,7 @@ const modules = {
270
270
  loader.cdn + '/npm/@toast-ui/editor@3.2.2/dist/toastui-editor.min.css',
271
271
  loader.cdn + '/npm/@toast-ui/editor@3.2.2/dist/theme/toastui-editor-dark.css'
272
272
  ]);
273
- loader.loadStyle('.toastui-editor-defaultUI-toolbar,.ProseMirror{box-sizing:initial !important}.toastui-editor-main{background:var(--g-plain-background);border-radius:0 0 3px 3px}.ProseMirror{cursor:text}');
273
+ loader.loadStyle('.toastui-editor-defaultUI-toolbar,.ProseMirror{box-sizing:initial !important}.toastui-editor-main{background:var(--g-plain-background);border-radius:0 0 3px 3px}.ProseMirror{cursor:text}.jodit ::-webkit-scrollbar{width:6px;cursor:default;}.jodit ::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1);border-radius:3px;}.jodit ::-webkit-scrollbar-thumb:hover{background: rgba(0,0,0,.2);}');
274
274
  return window.toastui.Editor;
275
275
  });
276
276
  },
package/dist/lib/core.ts CHANGED
@@ -340,7 +340,7 @@ const modules: Record<string, {
340
340
  loader.cdn + '/npm/@toast-ui/editor@3.2.2/dist/toastui-editor.min.css',
341
341
  loader.cdn + '/npm/@toast-ui/editor@3.2.2/dist/theme/toastui-editor-dark.css'
342
342
  ]);
343
- loader.loadStyle('.toastui-editor-defaultUI-toolbar,.ProseMirror{box-sizing:initial !important}.toastui-editor-main{background:var(--g-plain-background);border-radius:0 0 3px 3px}.ProseMirror{cursor:text}');
343
+ loader.loadStyle('.toastui-editor-defaultUI-toolbar,.ProseMirror{box-sizing:initial !important}.toastui-editor-main{background:var(--g-plain-background);border-radius:0 0 3px 3px}.ProseMirror{cursor:text}.jodit ::-webkit-scrollbar{width:6px;cursor:default;}.jodit ::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1);border-radius:3px;}.jodit ::-webkit-scrollbar-thumb:hover{background: rgba(0,0,0,.2);}');
344
344
  return (window as any).toastui.Editor;
345
345
  },
346
346
  'obj': null,
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.13.16",
3
+ "version": "3.13.18",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",
package/types/index.d.ts CHANGED
@@ -672,7 +672,7 @@ export interface IAbstractPanelShowEvent {
672
672
  'previous': string;
673
673
  /** --- 仅 nav 联动时有效,代表本次 show 的时候 qs 是否发生了变化 --- */
674
674
  'qsChange': boolean;
675
- }
675
+ };
676
676
  }
677
677
 
678
678
  // --- Check Control ---
@@ -697,7 +697,15 @@ export interface ITextBeforechangeEvent extends ICustomEvent {
697
697
  'detail': {
698
698
  'value': string;
699
699
  'change'?: string;
700
- }
700
+ };
701
+ }
702
+
703
+ // --- Date Control ---
704
+
705
+ export interface IDateChangedEvent {
706
+ 'detail': {
707
+ 'value'?: number;
708
+ };
701
709
  }
702
710
 
703
711
  // --- Datepanel Control ---
@@ -715,6 +723,17 @@ export interface IDatepanelChangedEvent {
715
723
  };
716
724
  }
717
725
 
726
+ export interface IDatepanelSelectedEvent {
727
+ 'detail': {
728
+ 'time': number;
729
+ 'date': number;
730
+ 'month': number;
731
+ 'year': number;
732
+ 'day': number;
733
+ 'str': string;
734
+ };
735
+ }
736
+
718
737
  // --- Date Control ---
719
738
 
720
739
  export interface IDateRangeEvent {
@@ -729,7 +748,7 @@ export interface IDateRangeEvent {
729
748
  export interface IFormCloseEvent extends ICustomEvent {
730
749
  'detail': {
731
750
  'event': MouseEvent;
732
- }
751
+ };
733
752
  }
734
753
 
735
754
  export interface IFormMaxEvent {
@@ -744,8 +763,8 @@ export interface IFormMaxEvent {
744
763
  'height': number;
745
764
  'left': number;
746
765
  'top': number;
747
- } | null
748
- }
766
+ } | null;
767
+ };
749
768
  }
750
769
 
751
770
  export interface IFormMinEvent {
@@ -760,8 +779,8 @@ export interface IFormMinEvent {
760
779
  'height': number;
761
780
  'left': number;
762
781
  'top': number;
763
- } | null
764
- }
782
+ } | null;
783
+ };
765
784
  }
766
785
 
767
786
  // --- Greatlist Control ---