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.
@@ -4669,8 +4669,8 @@ var Chartvue_type_template_id_1d5eb6d6_render = function render() {
4669
4669
  };
4670
4670
  var Chartvue_type_template_id_1d5eb6d6_staticRenderFns = [];
4671
4671
 
4672
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
4673
- var Gridvue_type_template_id_b26116b4_render = function render() {
4672
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
4673
+ var Gridvue_type_template_id_b2e4dec2_render = function render() {
4674
4674
  var _vm = this,
4675
4675
  _c = _vm._self._c;
4676
4676
  return _c('svg', {
@@ -4732,7 +4732,7 @@ var Gridvue_type_template_id_b26116b4_render = function render() {
4732
4732
  }
4733
4733
  })], 2)]);
4734
4734
  };
4735
- var Gridvue_type_template_id_b26116b4_staticRenderFns = [];
4735
+ var Gridvue_type_template_id_b2e4dec2_staticRenderFns = [];
4736
4736
 
4737
4737
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Chart/Grid.vue?vue&type=script&lang=js
4738
4738
 
@@ -4800,8 +4800,8 @@ var Gridvue_type_template_id_b26116b4_staticRenderFns = [];
4800
4800
  x: line.x1,
4801
4801
  time: new Date(step.time).toISOString().split('T')[0],
4802
4802
  quarter: new Date(step.time).getMonth() < 3 ? 1 : new Date(step.time).getMonth() < 6 ? 2 : new Date(step.time).getMonth() < 9 ? 3 : 4,
4803
- stepWidth: step.width?.px || 0,
4804
- stepOffset: step.offset?.px || 0,
4803
+ stepWidth: step.width && step.width.px || 0,
4804
+ stepOffset: step.offset && step.offset.px || 0,
4805
4805
  hasValidX: line.x1 >= 0 && !isNaN(line.x1)
4806
4806
  });
4807
4807
  }
@@ -4897,8 +4897,8 @@ var Gridvue_type_template_id_b26116b4_staticRenderFns = [];
4897
4897
  ;
4898
4898
  var Grid_component = normalizeComponent(
4899
4899
  Chart_Gridvue_type_script_lang_js,
4900
- Gridvue_type_template_id_b26116b4_render,
4901
- Gridvue_type_template_id_b26116b4_staticRenderFns,
4900
+ Gridvue_type_template_id_b2e4dec2_render,
4901
+ Gridvue_type_template_id_b2e4dec2_staticRenderFns,
4902
4902
  false,
4903
4903
  null,
4904
4904
  null,
@@ -5003,8 +5003,8 @@ var DaysHighlight_component = normalizeComponent(
5003
5003
  )
5004
5004
 
5005
5005
  /* harmony default export */ var DaysHighlight = (DaysHighlight_component.exports);
5006
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
5007
- var Calendarvue_type_template_id_564a1c16_render = function render() {
5006
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
5007
+ var Calendarvue_type_template_id_c22056b8_render = function render() {
5008
5008
  var _vm = this,
5009
5009
  _c = _vm._self._c;
5010
5010
  return _c('div', {
@@ -5041,7 +5041,7 @@ var Calendarvue_type_template_id_564a1c16_render = function render() {
5041
5041
  }
5042
5042
  }) : _vm._e()], 1)]);
5043
5043
  };
5044
- var Calendarvue_type_template_id_564a1c16_staticRenderFns = [];
5044
+ var Calendarvue_type_template_id_c22056b8_staticRenderFns = [];
5045
5045
 
5046
5046
  // EXTERNAL MODULE: ./node_modules/dayjs/plugin/weekOfYear.js
5047
5047
  var weekOfYear = __webpack_require__(8134);
@@ -5242,7 +5242,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5242
5242
  }) {
5243
5243
  let height = 0;
5244
5244
  if (this.viewMode === 'quarter' && quarters.length > 0) {
5245
- height += this.root.state.options.calendar.quarter?.height || 30;
5245
+ height += this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30;
5246
5246
  }
5247
5247
 
5248
5248
  // Add month height if visible
@@ -5252,7 +5252,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5252
5252
 
5253
5253
  // Add week height if visible
5254
5254
  if (this.viewMode === 'week' && weeks.length > 0) {
5255
- height += this.root.state.options.calendar.week?.height || 25;
5255
+ height += this.root.state.options.calendar.week && this.root.state.options.calendar.week.height || 25;
5256
5256
  }
5257
5257
 
5258
5258
  // Add day height if visible
@@ -5346,7 +5346,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5346
5346
  y: this.getYPosition('week'),
5347
5347
  width: weekWidth,
5348
5348
  textWidth: 50,
5349
- height: this.root.state.options.calendar.week?.height || 25,
5349
+ height: this.root.state.options.calendar.week && this.root.state.options.calendar.week.height || 25,
5350
5350
  label: label
5351
5351
  });
5352
5352
  }
@@ -5390,7 +5390,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5390
5390
  y: this.getYPosition('week'),
5391
5391
  width: weekWidth,
5392
5392
  textWidth: 60,
5393
- height: this.root.state.options.calendar.week?.height || 25,
5393
+ height: this.root.state.options.calendar.week && this.root.state.options.calendar.week.height || 25,
5394
5394
  label: label
5395
5395
  });
5396
5396
  }
@@ -5474,10 +5474,10 @@ dayjs_min_default().extend((quarterOfYear_default()));
5474
5474
  // Debug: Log quarter generation info
5475
5475
  console.log('Quarter Generation Debug:', {
5476
5476
  stepsCount: steps.length,
5477
- firstStepTime: this.dayjsInstance(steps[0]?.time).format('YYYY-MM-DD'),
5478
- lastStepTime: this.dayjsInstance(steps[steps.length - 1]?.time).format('YYYY-MM-DD'),
5479
- firstStepQuarter: this.dayjsInstance(steps[0]?.time).quarter(),
5480
- lastStepQuarter: this.dayjsInstance(steps[steps.length - 1]?.time).quarter()
5477
+ firstStepTime: this.dayjsInstance(steps[0] && steps[0].time).format('YYYY-MM-DD'),
5478
+ lastStepTime: this.dayjsInstance(steps[steps.length - 1] && steps[steps.length - 1].time).format('YYYY-MM-DD'),
5479
+ firstStepQuarter: this.dayjsInstance(steps[0] && steps[0].time).quarter(),
5480
+ lastStepQuarter: this.dayjsInstance(steps[steps.length - 1] && steps[steps.length - 1].time).quarter()
5481
5481
  });
5482
5482
  let currentQuarter = null;
5483
5483
  let quarterStartX = 0;
@@ -5513,7 +5513,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5513
5513
  y: this.getYPosition('quarter'),
5514
5514
  width: quarterWidth,
5515
5515
  textWidth: 50,
5516
- height: this.root.state.options.calendar.quarter?.height || 30,
5516
+ height: this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30,
5517
5517
  label: label
5518
5518
  });
5519
5519
  }
@@ -5549,7 +5549,7 @@ dayjs_min_default().extend((quarterOfYear_default()));
5549
5549
  y: this.getYPosition('quarter'),
5550
5550
  width: quarterWidth,
5551
5551
  textWidth: 60,
5552
- height: this.root.state.options.calendar.quarter?.height || 30,
5552
+ height: this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30,
5553
5553
  label: label
5554
5554
  });
5555
5555
  }
@@ -5565,12 +5565,12 @@ dayjs_min_default().extend((quarterOfYear_default()));
5565
5565
  return 0;
5566
5566
  case 'month':
5567
5567
  // Put month row below quarter if in quarterly view
5568
- return this.viewMode === 'quarter' ? this.root.state.options.calendar.quarter?.height || 30 : 0;
5568
+ return this.viewMode === 'quarter' ? this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30 : 0;
5569
5569
  case 'week':
5570
5570
  // Put week row below month and quarter if applicable
5571
5571
 
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;
@@ -5580,26 +5580,26 @@ dayjs_min_default().extend((quarterOfYear_default()));
5580
5580
  // Put day below week if applicable
5581
5581
  y = 0;
5582
5582
  if (this.viewMode === 'quarter') {
5583
- y += this.root.state.options.calendar.quarter?.height || 30;
5583
+ y += this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30;
5584
5584
  }
5585
5585
  if (this.viewMode === 'month' || this.viewMode === 'quarter') {
5586
5586
  y += this.root.state.options.calendar.month.height;
5587
5587
  }
5588
5588
  if (this.viewMode === 'week') {
5589
- y += this.root.state.options.calendar.week?.height || 25;
5589
+ y += this.root.state.options.calendar.week && this.root.state.options.calendar.week.height || 25;
5590
5590
  }
5591
5591
  return y;
5592
5592
  case 'hour':
5593
5593
  // Put hour row below day if applicable
5594
5594
  y = 0;
5595
5595
  if (this.viewMode === 'quarter') {
5596
- y += this.root.state.options.calendar.quarter?.height || 30;
5596
+ y += this.root.state.options.calendar.quarter && this.root.state.options.calendar.quarter.height || 30;
5597
5597
  }
5598
5598
  if (this.viewMode === 'month' || this.viewMode === 'quarter') {
5599
5599
  y += this.root.state.options.calendar.month.height;
5600
5600
  }
5601
5601
  if (this.viewMode === 'week') {
5602
- y += this.root.state.options.calendar.week?.height || 25;
5602
+ y += this.root.state.options.calendar.week && this.root.state.options.calendar.week.height || 25;
5603
5603
  }
5604
5604
  if (this.viewMode === 'day') {
5605
5605
  y += this.root.state.options.calendar.day.height;
@@ -5697,8 +5697,8 @@ dayjs_min_default().extend((quarterOfYear_default()));
5697
5697
  ;
5698
5698
  var Calendar_component = normalizeComponent(
5699
5699
  Calendar_Calendarvue_type_script_lang_js,
5700
- Calendarvue_type_template_id_564a1c16_render,
5701
- Calendarvue_type_template_id_564a1c16_staticRenderFns,
5700
+ Calendarvue_type_template_id_c22056b8_render,
5701
+ Calendarvue_type_template_id_c22056b8_staticRenderFns,
5702
5702
  false,
5703
5703
  null,
5704
5704
  null,