tg-ganttchart 0.0.10 → 0.0.11

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.
@@ -4659,8 +4659,8 @@ var Chartvue_type_template_id_1d5eb6d6_render = function render() {
4659
4659
  };
4660
4660
  var Chartvue_type_template_id_1d5eb6d6_staticRenderFns = [];
4661
4661
 
4662
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Chart/Grid.vue?vue&type=template&id=b26116b4
4663
- var Gridvue_type_template_id_b26116b4_render = function render() {
4662
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Chart/Grid.vue?vue&type=template&id=b2e4dec2
4663
+ var Gridvue_type_template_id_b2e4dec2_render = function render() {
4664
4664
  var _vm = this,
4665
4665
  _c = _vm._self._c;
4666
4666
  return _c('svg', {
@@ -4722,7 +4722,7 @@ var Gridvue_type_template_id_b26116b4_render = function render() {
4722
4722
  }
4723
4723
  })], 2)]);
4724
4724
  };
4725
- var Gridvue_type_template_id_b26116b4_staticRenderFns = [];
4725
+ var Gridvue_type_template_id_b2e4dec2_staticRenderFns = [];
4726
4726
 
4727
4727
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Chart/Grid.vue?vue&type=script&lang=js
4728
4728
 
@@ -4790,8 +4790,8 @@ var Gridvue_type_template_id_b26116b4_staticRenderFns = [];
4790
4790
  x: line.x1,
4791
4791
  time: new Date(step.time).toISOString().split('T')[0],
4792
4792
  quarter: new Date(step.time).getMonth() < 3 ? 1 : new Date(step.time).getMonth() < 6 ? 2 : new Date(step.time).getMonth() < 9 ? 3 : 4,
4793
- stepWidth: step.width?.px || 0,
4794
- stepOffset: step.offset?.px || 0,
4793
+ stepWidth: step.width && step.width.px || 0,
4794
+ stepOffset: step.offset && step.offset.px || 0,
4795
4795
  hasValidX: line.x1 >= 0 && !isNaN(line.x1)
4796
4796
  });
4797
4797
  }
@@ -4887,8 +4887,8 @@ var Gridvue_type_template_id_b26116b4_staticRenderFns = [];
4887
4887
  ;
4888
4888
  var Grid_component = normalizeComponent(
4889
4889
  Chart_Gridvue_type_script_lang_js,
4890
- Gridvue_type_template_id_b26116b4_render,
4891
- Gridvue_type_template_id_b26116b4_staticRenderFns,
4890
+ Gridvue_type_template_id_b2e4dec2_render,
4891
+ Gridvue_type_template_id_b2e4dec2_staticRenderFns,
4892
4892
  false,
4893
4893
  null,
4894
4894
  null,
@@ -4993,8 +4993,8 @@ var DaysHighlight_component = normalizeComponent(
4993
4993
  )
4994
4994
 
4995
4995
  /* harmony default export */ var DaysHighlight = (DaysHighlight_component.exports);
4996
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Calendar/Calendar.vue?vue&type=template&id=564a1c16
4997
- var Calendarvue_type_template_id_564a1c16_render = function render() {
4996
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Calendar/Calendar.vue?vue&type=template&id=c22056b8
4997
+ var Calendarvue_type_template_id_c22056b8_render = function render() {
4998
4998
  var _vm = this,
4999
4999
  _c = _vm._self._c;
5000
5000
  return _c('div', {
@@ -5031,7 +5031,7 @@ var Calendarvue_type_template_id_564a1c16_render = function render() {
5031
5031
  }
5032
5032
  }) : _vm._e()], 1)]);
5033
5033
  };
5034
- var Calendarvue_type_template_id_564a1c16_staticRenderFns = [];
5034
+ var Calendarvue_type_template_id_c22056b8_staticRenderFns = [];
5035
5035
 
5036
5036
  // EXTERNAL MODULE: ./node_modules/dayjs/plugin/weekOfYear.js
5037
5037
  var weekOfYear = __webpack_require__(8134);
@@ -5232,7 +5232,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5232
5232
  }) {
5233
5233
  let height = 0;
5234
5234
  if (this.viewMode === 'quarter' && quarters.length > 0) {
5235
- height += this.root.state.options.calendar.quarter?.height || 30;
5235
+ height += this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30;
5236
5236
  }
5237
5237
 
5238
5238
  // Add month height if visible
@@ -5242,7 +5242,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5242
5242
 
5243
5243
  // Add week height if visible
5244
5244
  if (this.viewMode === 'week' && weeks.length > 0) {
5245
- height += this.root.state.options.calendar.week?.height || 25;
5245
+ height += this.root.state.options.calendar.week && this.root.state.options.calendar.week.height || 25;
5246
5246
  }
5247
5247
 
5248
5248
  // Add day height if visible
@@ -5336,7 +5336,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5336
5336
  y: this.getYPosition('week'),
5337
5337
  width: weekWidth,
5338
5338
  textWidth: 50,
5339
- height: this.root.state.options.calendar.week?.height || 25,
5339
+ height: this.root.state.options.calendar.week && this.root.state.options.calendar.week.height || 25,
5340
5340
  label: label
5341
5341
  });
5342
5342
  }
@@ -5380,7 +5380,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5380
5380
  y: this.getYPosition('week'),
5381
5381
  width: weekWidth,
5382
5382
  textWidth: 60,
5383
- height: this.root.state.options.calendar.week?.height || 25,
5383
+ height: this.root.state.options.calendar.week && this.root.state.options.calendar.week.height || 25,
5384
5384
  label: label
5385
5385
  });
5386
5386
  }
@@ -5464,10 +5464,10 @@ dayjs_min_default().extend((quarterOfYear_default()));
5464
5464
  // Debug: Log quarter generation info
5465
5465
  console.log('Quarter Generation Debug:', {
5466
5466
  stepsCount: steps.length,
5467
- firstStepTime: this.dayjsInstance(steps[0]?.time).format('YYYY-MM-DD'),
5468
- lastStepTime: this.dayjsInstance(steps[steps.length - 1]?.time).format('YYYY-MM-DD'),
5469
- firstStepQuarter: this.dayjsInstance(steps[0]?.time).quarter(),
5470
- lastStepQuarter: this.dayjsInstance(steps[steps.length - 1]?.time).quarter()
5467
+ firstStepTime: this.dayjsInstance(steps[0] && steps[0].time).format('YYYY-MM-DD'),
5468
+ lastStepTime: this.dayjsInstance(steps[steps.length - 1] && steps[steps.length - 1].time).format('YYYY-MM-DD'),
5469
+ firstStepQuarter: this.dayjsInstance(steps[0] && steps[0].time).quarter(),
5470
+ lastStepQuarter: this.dayjsInstance(steps[steps.length - 1] && steps[steps.length - 1].time).quarter()
5471
5471
  });
5472
5472
  let currentQuarter = null;
5473
5473
  let quarterStartX = 0;
@@ -5503,7 +5503,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5503
5503
  y: this.getYPosition('quarter'),
5504
5504
  width: quarterWidth,
5505
5505
  textWidth: 50,
5506
- height: this.root.state.options.calendar.quarter?.height || 30,
5506
+ height: this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30,
5507
5507
  label: label
5508
5508
  });
5509
5509
  }
@@ -5539,7 +5539,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5539
5539
  y: this.getYPosition('quarter'),
5540
5540
  width: quarterWidth,
5541
5541
  textWidth: 60,
5542
- height: this.root.state.options.calendar.quarter?.height || 30,
5542
+ height: this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30,
5543
5543
  label: label
5544
5544
  });
5545
5545
  }
@@ -5555,12 +5555,12 @@ dayjs_min_default().extend((quarterOfYear_default()));
5555
5555
  return 0;
5556
5556
  case 'month':
5557
5557
  // Put month row below quarter if in quarterly view
5558
- return this.viewMode === 'quarter' ? this.root.state.options.calendar.quarter?.height || 30 : 0;
5558
+ return this.viewMode === 'quarter' ? this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30 : 0;
5559
5559
  case 'week':
5560
5560
  // Put week row below month and quarter if applicable
5561
5561
 
5562
5562
  if (this.viewMode === 'quarter') {
5563
- y += this.root.state.options.calendar.quarter?.height || 30;
5563
+ y += this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30;
5564
5564
  }
5565
5565
  if (this.viewMode === 'month' || this.viewMode === 'quarter') {
5566
5566
  y += this.root.state.options.calendar.month.height;
@@ -5570,26 +5570,26 @@ dayjs_min_default().extend((quarterOfYear_default()));
5570
5570
  // Put day below week if applicable
5571
5571
  y = 0;
5572
5572
  if (this.viewMode === 'quarter') {
5573
- y += this.root.state.options.calendar.quarter?.height || 30;
5573
+ y += this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30;
5574
5574
  }
5575
5575
  if (this.viewMode === 'month' || this.viewMode === 'quarter') {
5576
5576
  y += this.root.state.options.calendar.month.height;
5577
5577
  }
5578
5578
  if (this.viewMode === 'week') {
5579
- y += this.root.state.options.calendar.week?.height || 25;
5579
+ y += this.root.state.options.calendar.week && this.root.state.options.calendar.week.height || 25;
5580
5580
  }
5581
5581
  return y;
5582
5582
  case 'hour':
5583
5583
  // Put hour row below day if applicable
5584
5584
  y = 0;
5585
5585
  if (this.viewMode === 'quarter') {
5586
- y += this.root.state.options.calendar.quarter?.height || 30;
5586
+ y += this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30;
5587
5587
  }
5588
5588
  if (this.viewMode === 'month' || this.viewMode === 'quarter') {
5589
5589
  y += this.root.state.options.calendar.month.height;
5590
5590
  }
5591
5591
  if (this.viewMode === 'week') {
5592
- y += this.root.state.options.calendar.week?.height || 25;
5592
+ y += this.root.state.options.calendar.week && this.root.state.options.calendar.week.height || 25;
5593
5593
  }
5594
5594
  if (this.viewMode === 'day') {
5595
5595
  y += this.root.state.options.calendar.day.height;
@@ -5687,8 +5687,8 @@ dayjs_min_default().extend((quarterOfYear_default()));
5687
5687
  ;
5688
5688
  var Calendar_component = normalizeComponent(
5689
5689
  Calendar_Calendarvue_type_script_lang_js,
5690
- Calendarvue_type_template_id_564a1c16_render,
5691
- Calendarvue_type_template_id_564a1c16_staticRenderFns,
5690
+ Calendarvue_type_template_id_c22056b8_render,
5691
+ Calendarvue_type_template_id_c22056b8_staticRenderFns,
5692
5692
  false,
5693
5693
  null,
5694
5694
  null,