clickgo 3.13.4 → 3.13.5

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.4'}"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.13.5'}"></script>
29
29
  ```
30
30
 
31
31
  **index.js**
@@ -22,20 +22,34 @@ 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
+ };
25
34
  Object.defineProperty(exports, "__esModule", { value: true });
26
35
  const clickgo = __importStar(require("clickgo"));
27
36
  class default_1 extends clickgo.form.AbstractForm {
28
37
  constructor() {
29
38
  super(...arguments);
30
- this.date = true;
31
39
  this.time = true;
32
40
  this.zone = true;
33
41
  this.ts = 0;
34
42
  this.tz = undefined;
35
43
  this.disabled = false;
44
+ this.range = undefined;
36
45
  }
37
46
  settime() {
38
47
  this.ts = clickgo.tool.rand(1504304812000, 1704304812000);
39
48
  }
49
+ onRange(e) {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ yield clickgo.form.dialog(JSON.stringify(e));
52
+ });
53
+ }
40
54
  }
41
55
  exports.default = default_1;
@@ -1,15 +1,15 @@
1
- <form width="350" height="350" title="Date">
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" />
4
+ <date v-model="ts" v-model:tz="tz" :time="time" :zone="zone" :disabled="disabled" :range="range" @range="onRange" />
5
5
  <layout gutter="10">
6
- <button @click="date = !date" style="flex: 1;">{{date ? '' : '!'}}date</button>
7
6
  <button @click="time = !time" style="flex: 1;">{{time ? '' : '!'}}time</button>
8
7
  <button @click="zone = !zone" style="flex: 1;">{{zone ? '' : '!'}}zone</button>
9
8
  </layout>
10
9
  <layout gutter="10">
11
10
  <button @click="disabled = !disabled" style="flex: 1;">{{disabled ? '' : '!'}}disabled</button>
12
11
  <button @click="settime" style="flex: 1;">Set time</button>
12
+ <button @click="range = 0" style="flex: 1;">Set range</button>
13
13
  </layout>
14
14
  </layout>
15
15
  </form>
@@ -30,10 +30,13 @@ class default_1 extends clickgo.form.AbstractForm {
30
30
  this.bottom = false;
31
31
  this.time = true;
32
32
  this.zone = true;
33
- this.ts = 0;
33
+ this.ts = undefined;
34
34
  this.tz = undefined;
35
35
  this.disabled = false;
36
36
  this.plain = false;
37
+ this.to = [''];
38
+ this.start = false;
39
+ this.yearmonth = '';
37
40
  }
38
41
  settime() {
39
42
  this.ts = clickgo.tool.rand(1504304812000, 1704304812000);
@@ -1,7 +1,7 @@
1
- <form width="500" height="650" title="Datepanel">
1
+ <form width="500" height="700" title="Datepanel">
2
2
  <layout direction="v" gutter="10" style="padding: 10px; flex: 1;">
3
- <label>Timestamp: {{ts}}, Time zone: {{tz}}</label>
4
- <datepanel v-model="ts" v-model:tz="tz" :time="time" :zone="zone" :disabled="disabled" :plain="plain" style="flex: 1;">
3
+ <label>Timestamp: {{ts}}, Time zone: {{tz}}, yearmonth: {{yearmonth}}</label>
4
+ <datepanel v-model="ts" v-model:tz="tz" v-model:yearmonth="yearmonth" :time="time" :zone="zone" :disabled="disabled" :plain="plain" :to="to[0]" :start="start ? 1704067200_000 : undefined" 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>
@@ -16,8 +16,15 @@
16
16
  <button @click="plain = !plain" style="flex: 1;">{{plain ? '' : '!'}}plain</button>
17
17
  <button @click="settime" style="flex: 1;">Set time</button>
18
18
  </layout>
19
- <layout gutter="10">
19
+ <layout gutter="10" align-v="center">
20
20
  <button @click="ts = 1577808000_000" style="flex: 1;">Set 1577808000</button>
21
+ <label>to</label>
22
+ <select v-model="to" :data="['', 'start', 'end']" style="flex: 1;"></select>
23
+ <button @click="start = !start" style="flex: 1;">{{start ? '' : '!'}}start</button>
24
+ </layout>
25
+ <layout gutter="10" align-v="center">
26
+ <button @click="yearmonth = '200708'" style="flex: 1;">Set yearmonth</button>
27
+ <button @click="tz = 7.5" style="flex: 1;">Set tz</button>
21
28
  </layout>
22
29
  </layout>
23
30
  </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.4';
27
+ const version = '3.13.5';
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.4';
16
+ const version = '3.13.5';
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
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.13.4",
3
+ "version": "3.13.5",
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
@@ -700,6 +700,30 @@ export interface ITextBeforechangeEvent extends ICustomEvent {
700
700
  }
701
701
  }
702
702
 
703
+ // --- Datepanel Control ---
704
+
705
+ export interface IDatepanelRangeEvent extends ICustomEvent {
706
+ 'detail': {
707
+ 'start': number;
708
+ 'end': number;
709
+ };
710
+ }
711
+
712
+ export interface IDatepanelChangedEvent {
713
+ 'detail': {
714
+ 'value': number;
715
+ };
716
+ }
717
+
718
+ // --- Date Control ---
719
+
720
+ export interface IDateRangeEvent {
721
+ 'detail': {
722
+ 'start': number;
723
+ 'end': number;
724
+ };
725
+ }
726
+
703
727
  // --- Form Control ---
704
728
 
705
729
  export interface IFormCloseEvent extends ICustomEvent {