bromcom-ui 2.9.0-rc.17 → 2.9.0-rc.19

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.
Files changed (228) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/{p-e990bd92.js → p-04e7d8ac.js} +1 -1
  4. package/dist/bromcom-ui/{p-ec3f8fa1.entry.js → p-05fef42b.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-471e6f13.entry.js → p-06672174.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-b2f9f3de.entry.js → p-06c3ed21.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-b285932b.entry.js → p-09737f79.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-a2895a18.entry.js → p-0ac10364.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-0c705d0d.entry.js → p-0b81c02f.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-0c774416.entry.js +7 -0
  11. package/dist/bromcom-ui/{p-7883b679.entry.js → p-0fb41a53.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-4e79863b.entry.js → p-14cafd64.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-0c8157d4.entry.js → p-150450da.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-685ac3f4.entry.js → p-1625ce05.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-6340db85.entry.js → p-1ae58853.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-d7ee1012.entry.js → p-1ba23d50.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-9319f7f4.entry.js → p-203446af.entry.js} +1 -1
  18. package/dist/bromcom-ui/p-2156f8f5.js +5 -0
  19. package/dist/bromcom-ui/{p-c59955f2.js → p-2208aada.js} +1 -1
  20. package/dist/bromcom-ui/{p-540f4773.entry.js → p-2505c9d9.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-b4ab469f.entry.js → p-26290ed5.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-5c6acefe.entry.js → p-29a6e6c0.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-beaa330c.entry.js → p-29ca858f.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-155da29a.entry.js → p-2dbf5ba5.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-20a6109c.entry.js → p-302fe8de.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-85626493.entry.js → p-30dbc7bd.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-eb499b2a.js → p-3363ca16.js} +1 -1
  28. package/dist/bromcom-ui/{p-b1a5a52f.entry.js → p-3a29e450.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-7f168998.js → p-3fa51f1b.js} +1 -1
  30. package/dist/bromcom-ui/{p-bc4d601b.js → p-41dc7f2d.js} +1 -1
  31. package/dist/bromcom-ui/{p-46207bba.entry.js → p-430c0a24.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-57919ad8.entry.js → p-47ce3a16.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-57e95f4d.entry.js → p-4a511d29.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-2ecdf256.entry.js → p-4a83d3fc.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-17d77ef9.entry.js → p-4be8e402.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-5b7405f1.entry.js → p-56e27911.entry.js} +1 -1
  37. package/dist/bromcom-ui/p-5c03d929.entry.js +5 -0
  38. package/dist/bromcom-ui/{p-07c3eb8e.js → p-61db1f1f.js} +1 -1
  39. package/dist/bromcom-ui/{p-279d1c89.entry.js → p-66da9512.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
  41. package/dist/bromcom-ui/{p-660a8daa.entry.js → p-80ee3d97.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-26474f78.js → p-85ca2b62.js} +1 -1
  43. package/dist/bromcom-ui/{p-ce5ecb3b.entry.js → p-87dda5e5.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-f8a945e0.entry.js → p-8a9e9aeb.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-ca8d81d3.entry.js → p-8b08527e.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
  47. package/dist/bromcom-ui/p-90c5221d.entry.js +5 -0
  48. package/dist/bromcom-ui/{p-cd730a64.js → p-917bd915.js} +1 -1
  49. package/dist/bromcom-ui/{p-c9c7067e.entry.js → p-99824717.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-225a4a91.entry.js → p-9e25eb82.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-ea34b1bb.entry.js → p-9ed18ccb.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-7460c390.entry.js → p-a2b00328.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-06f6bec2.entry.js → p-a3e268da.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-bbd40bdb.entry.js → p-a7763f93.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-78523120.entry.js → p-a8254f18.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-50e46665.entry.js → p-ad822bff.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-6a8553bd.entry.js → p-bb3239ef.entry.js} +1 -1
  58. package/dist/bromcom-ui/p-bc46e80c.entry.js +5 -0
  59. package/dist/bromcom-ui/{p-3d730230.entry.js → p-c1a992e7.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-8df92692.entry.js → p-c78ab3ca.entry.js} +1 -1
  61. package/dist/bromcom-ui/p-ce938f1e.entry.js +5 -0
  62. package/dist/bromcom-ui/{p-42ced8e3.entry.js → p-cf9d4122.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-f8998fe4.entry.js → p-d64879be.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-fb8e1424.entry.js → p-d85727a3.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-61cc61af.entry.js → p-e45a2a64.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-8f9077af.entry.js → p-e688b044.entry.js} +1 -1
  67. package/dist/bromcom-ui/p-e6e00bc4.entry.js +5 -0
  68. package/dist/bromcom-ui/{p-a829d1e0.entry.js → p-f2b3b5a8.entry.js} +1 -1
  69. package/dist/bromcom-ui/{p-3f883b7f.js → p-fc361b51.js} +1 -1
  70. package/dist/bromcom-ui/{p-7e05ccf7.entry.js → p-fe86c9e1.entry.js} +1 -1
  71. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  72. package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
  73. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  74. package/dist/cjs/bcm-avatar_2.cjs.entry.js +4 -4
  75. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  76. package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
  77. package/dist/cjs/{bcm-button_14.cjs.entry.js → bcm-button_15.cjs.entry.js} +3586 -2960
  78. package/dist/cjs/bcm-card.cjs.entry.js +2 -2
  79. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +2 -2
  80. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
  81. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +2 -2
  82. package/dist/cjs/bcm-chip-group.cjs.entry.js +4 -4
  83. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  84. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  85. package/dist/cjs/bcm-color-input.cjs.entry.js +4 -4
  86. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  87. package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
  88. package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
  89. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
  90. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  91. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +4 -4
  92. package/dist/cjs/bcm-item.cjs.entry.js +2 -2
  93. package/dist/cjs/bcm-items.cjs.entry.js +2 -2
  94. package/dist/cjs/bcm-list_3.cjs.entry.js +9 -6
  95. package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
  96. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
  97. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
  98. package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
  99. package/dist/cjs/bcm-modal.cjs.entry.js +2 -2
  100. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
  101. package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
  102. package/dist/cjs/bcm-popover.cjs.entry.js +4 -4
  103. package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
  104. package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -4
  105. package/dist/cjs/bcm-radio.cjs.entry.js +4 -4
  106. package/dist/cjs/bcm-range.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-skeleton.cjs.entry.js +2 -2
  108. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  109. package/dist/cjs/bcm-stepper.cjs.entry.js +5 -5
  110. package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
  111. package/dist/cjs/bcm-tab-group.cjs.entry.js +4 -4
  112. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +4 -4
  113. package/dist/cjs/bcm-tab-item.cjs.entry.js +4 -4
  114. package/dist/cjs/bcm-table.cjs.entry.js +4 -4
  115. package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
  116. package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
  117. package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
  118. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  119. package/dist/cjs/{generate-030514c7.js → generate-a614441c.js} +1 -1
  120. package/dist/cjs/{global-7a53c842.js → global-dbb478c2.js} +1 -1
  121. package/dist/cjs/{input-template-66b87638.js → input-template-2f000bbb.js} +1 -1
  122. package/dist/cjs/{json-parse-decarator-06d53544.js → json-parse-decarator-2831cc43.js} +1 -1
  123. package/dist/cjs/loader.cjs.js +3 -3
  124. package/dist/cjs/{number-helper-352187f7.js → number-helper-f401b29a.js} +1 -1
  125. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
  126. package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
  127. package/dist/cjs/{package-11e34ed7.js → package-5175214b.js} +1 -1
  128. package/dist/cjs/{stepper-states-49f02d8f.js → stepper-states-fa6f45d2.js} +1 -1
  129. package/dist/cjs/{tooltip-helper-bb2b5e81.js → tooltip-helper-a9d5aaef.js} +3 -3
  130. package/dist/cjs/{validators-930ccb7e.js → validators-45097bb8.js} +1 -1
  131. package/dist/collection/components/molecules/input/input.js +0 -2
  132. package/dist/collection/components/molecules/linked/linked.js +3 -27
  133. package/dist/collection/components/organism/list/list.js +3 -18
  134. package/dist/collection/components/third-parts/rc-picker/date.js +202 -56
  135. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +101 -4
  136. package/dist/collection/components/third-parts/rc-picker/rc-picker.js +274 -159
  137. package/dist/components/bcm-date.js +44 -15
  138. package/dist/components/generate.js +1 -1
  139. package/dist/components/input.js +0 -2
  140. package/dist/components/linked.js +4 -10
  141. package/dist/components/list.js +4 -1
  142. package/dist/components/rc-picker.js +3031 -2887
  143. package/dist/esm/bcm-accordion.entry.js +2 -2
  144. package/dist/esm/bcm-alert.entry.js +2 -2
  145. package/dist/esm/bcm-attendance.entry.js +2 -2
  146. package/dist/esm/bcm-avatar_2.entry.js +7 -7
  147. package/dist/esm/bcm-breadcrumb.entry.js +2 -2
  148. package/dist/esm/bcm-button-group.entry.js +2 -2
  149. package/dist/esm/{bcm-button_14.entry.js → bcm-button_15.entry.js} +3589 -2964
  150. package/dist/esm/bcm-card.entry.js +4 -4
  151. package/dist/esm/bcm-checkbox-group.entry.js +3 -3
  152. package/dist/esm/bcm-checkbox-lite_9.entry.js +3 -3
  153. package/dist/esm/bcm-checkbox_2.entry.js +4 -4
  154. package/dist/esm/bcm-chip-group.entry.js +7 -7
  155. package/dist/esm/bcm-chip.entry.js +4 -4
  156. package/dist/esm/bcm-collapse-group.entry.js +1 -1
  157. package/dist/esm/bcm-collapse.entry.js +2 -2
  158. package/dist/esm/bcm-color-input.entry.js +7 -7
  159. package/dist/esm/bcm-colorpicker.entry.js +2 -2
  160. package/dist/esm/bcm-default.entry.js +2 -2
  161. package/dist/esm/bcm-drawer.entry.js +7 -7
  162. package/dist/esm/bcm-dropdown.entry.js +3 -3
  163. package/dist/esm/bcm-expansion-panel.entry.js +4 -4
  164. package/dist/esm/bcm-input-custom.entry.js +2 -2
  165. package/dist/esm/bcm-input-dropdown.entry.js +7 -7
  166. package/dist/esm/bcm-item.entry.js +4 -4
  167. package/dist/esm/bcm-items.entry.js +2 -2
  168. package/dist/esm/bcm-list_3.entry.js +12 -9
  169. package/dist/esm/bcm-menu.entry.js +8 -8
  170. package/dist/esm/bcm-modal-2-footer.entry.js +7 -7
  171. package/dist/esm/bcm-modal-2-header.entry.js +7 -7
  172. package/dist/esm/bcm-modal-2.entry.js +7 -7
  173. package/dist/esm/bcm-modal.entry.js +2 -2
  174. package/dist/esm/bcm-old-tag_2.entry.js +1 -1
  175. package/dist/esm/bcm-popconfirm-box.entry.js +4 -4
  176. package/dist/esm/bcm-popconfirm.entry.js +2 -2
  177. package/dist/esm/bcm-popover.entry.js +7 -7
  178. package/dist/esm/bcm-progress.entry.js +4 -4
  179. package/dist/esm/bcm-radio-group.entry.js +7 -7
  180. package/dist/esm/bcm-radio.entry.js +7 -7
  181. package/dist/esm/bcm-range.entry.js +3 -3
  182. package/dist/esm/bcm-select.entry.js +1 -1
  183. package/dist/esm/bcm-skeleton.entry.js +2 -2
  184. package/dist/esm/bcm-step.entry.js +3 -3
  185. package/dist/esm/bcm-stepper.entry.js +8 -8
  186. package/dist/esm/bcm-switch.entry.js +3 -3
  187. package/dist/esm/bcm-tab-group.entry.js +7 -7
  188. package/dist/esm/bcm-tab-item-header.entry.js +7 -7
  189. package/dist/esm/bcm-tab-item.entry.js +7 -7
  190. package/dist/esm/bcm-table.entry.js +7 -7
  191. package/dist/esm/bcm-tabs-content.entry.js +1 -1
  192. package/dist/esm/bcm-tabs.entry.js +1 -1
  193. package/dist/esm/bcm-tag.entry.js +4 -4
  194. package/dist/esm/bcm-text.entry.js +2 -2
  195. package/dist/esm/bcm-textarea.entry.js +4 -4
  196. package/dist/esm/bcm-toast.entry.js +3 -3
  197. package/dist/esm/bromcom-ui.js +3 -3
  198. package/dist/esm/{color-helper-71b610e7.js → color-helper-845ba523.js} +1 -1
  199. package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
  200. package/dist/esm/{generate-bc4836ec.js → generate-f5397d67.js} +1 -1
  201. package/dist/esm/{global-f3c4deee.js → global-fca83dc9.js} +1 -1
  202. package/dist/esm/{input-template-488d5665.js → input-template-50de36a8.js} +1 -1
  203. package/dist/esm/{json-parse-decarator-db6d3ec5.js → json-parse-decarator-db88bf63.js} +1 -1
  204. package/dist/esm/loader.js +3 -3
  205. package/dist/esm/{number-helper-ff8702fd.js → number-helper-aac382ed.js} +1 -1
  206. package/dist/esm/old-bcm-popover-box.entry.js +5 -5
  207. package/dist/esm/old-bcm-popover.entry.js +2 -2
  208. package/dist/esm/{package-24fdb9f8.js → package-3edf06a4.js} +1 -1
  209. package/dist/esm/{stepper-states-a9f17d5f.js → stepper-states-d7ac1d20.js} +1 -1
  210. package/dist/esm/{tooltip-helper-db3aba86.js → tooltip-helper-d7a40058.js} +6 -6
  211. package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
  212. package/dist/esm/{validators-efb38781.js → validators-7cb12260.js} +1 -1
  213. package/dist/types/components/molecules/linked/linked.d.ts +1 -3
  214. package/dist/types/components/organism/list/list.d.ts +1 -0
  215. package/dist/types/components/third-parts/rc-picker/date.d.ts +121 -6
  216. package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +35 -16
  217. package/dist/types/components.d.ts +52 -25
  218. package/package.json +7 -7
  219. package/dist/bromcom-ui/p-00f70814.entry.js +0 -5
  220. package/dist/bromcom-ui/p-06e043df.entry.js +0 -13
  221. package/dist/bromcom-ui/p-64fb69ee.entry.js +0 -5
  222. package/dist/bromcom-ui/p-74221f9a.entry.js +0 -5
  223. package/dist/bromcom-ui/p-75d8b6cd.entry.js +0 -5
  224. package/dist/bromcom-ui/p-ac1b198d.js +0 -5
  225. package/dist/bromcom-ui/p-ba30fbea.entry.js +0 -5
  226. package/dist/bromcom-ui/p-c0d0d800.entry.js +0 -5
  227. package/dist/cjs/bcm-form.cjs.entry.js +0 -489
  228. package/dist/esm/bcm-form.entry.js +0 -485
@@ -48,6 +48,22 @@ export class BcmDate {
48
48
  return this.format;
49
49
  };
50
50
  this.getValueObject = (value) => {
51
+ if (this.range) {
52
+ return this.getRangeValueObject(value);
53
+ }
54
+ else {
55
+ return this.createValueObject(value);
56
+ }
57
+ };
58
+ this.getRangeValueObject = (value) => {
59
+ const [start, end] = value._i || [];
60
+ const startObject = this.createValueObject(start);
61
+ const endObject = this.createValueObject(end);
62
+ return Object.assign({ isValid: startObject.isValid && endObject.isValid, start: startObject, end: endObject, date: [startObject.date, endObject.date], timestamp: [startObject.timestamp, endObject.timestamp], value: `${startObject.value} - ${endObject.value}` }, (this.type === "time" && {
63
+ time: `${startObject.time} - ${endObject.time}`,
64
+ }));
65
+ };
66
+ this.createValueObject = (value) => {
51
67
  if (value && moment(value).isValid()) {
52
68
  return Object.assign({ isValid: moment(value).isValid(), date: moment(value).toDate(), timestamp: moment(value).valueOf(), dateObject: {
53
69
  year: moment(value).year(),
@@ -55,58 +71,64 @@ export class BcmDate {
55
71
  month: moment(value).month(),
56
72
  dayOfWeek: moment(value).day(),
57
73
  monthFirstDay: moment(value).startOf("month").day(),
58
- }, value: moment(value).format(this.getFormat()) }, this.type === "time" && {
74
+ }, value: moment(value).format(this.getFormat()) }, (this.type === "time" && {
59
75
  time: moment(value).format(this.getFormat()),
60
76
  timeObject: {
61
77
  hour: moment(value).hour(),
62
78
  minute: moment(value).minute(),
63
79
  second: moment(value).second(),
64
80
  },
65
- });
81
+ }));
66
82
  }
67
83
  else {
68
84
  return null;
69
85
  }
70
86
  };
71
87
  this._id = Generate.UID();
72
- this.name = undefined;
73
- this.value = undefined;
74
88
  this.label = undefined;
75
89
  this.placeholder = undefined;
76
90
  this.size = Bcm.Size.medium;
77
91
  this.fullWidth = false;
78
92
  this.required = false;
79
93
  this.clearable = false;
94
+ this.disabled = false;
80
95
  this.noMargin = false;
81
96
  this.caption = undefined;
82
97
  this.noCaption = false;
83
98
  this.captionType = Bcm.Status.default;
84
99
  this.captionError = undefined;
100
+ this.name = undefined;
101
+ this.value = undefined;
85
102
  this.type = "date";
86
103
  this.format = undefined;
104
+ this.range = false;
87
105
  this.showTime = false;
88
- this.showToday = true;
89
106
  this.showNow = true;
90
107
  this.showHour = true;
91
108
  this.showMinute = true;
92
109
  this.showSecond = false;
93
110
  this.use12Hours = false;
94
- this.disabled = false;
111
+ this.hourStep = 1;
112
+ this.minuteStep = 1;
113
+ this.secondStep = 1;
114
+ this.hideDisabledOptions = false;
115
+ this.disabledTime = undefined;
116
+ this.showToday = true;
117
+ this.disabledDates = undefined;
95
118
  }
96
119
  async getValue() {
97
- var _a;
98
- return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.value) || null;
120
+ return this.value;
99
121
  }
100
122
  async get() {
101
123
  var _a;
102
- return ((_a = this.getValueObject(this.value)) === null || _a === void 0 ? void 0 : _a.timestamp) || null;
124
+ return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.timestamp) || null;
103
125
  }
104
126
  async set(value) {
105
127
  // this.value = value;
106
128
  this.getPickerElement().set(value);
107
129
  }
108
130
  async setClear() {
109
- this.value = null;
131
+ this.getPickerElement().set(null);
110
132
  }
111
133
  async resetCaption() {
112
134
  this.captionType = "default";
@@ -127,7 +149,7 @@ export class BcmDate {
127
149
  return (h(Host, { class: cs("bcm-ui-element bcm-ui-input", "tw-relative tw-m-0 tw-inline-flex tw-w-full tw-flex-col", {
128
150
  "tw-max-w-[256px]": !this.fullWidth,
129
151
  "tw-mb-2": !this.noMargin,
130
- }) }, label && h(LabelTemplate, { size: size, type: captionType, value: label, required: required, htmlFor: _id }), h("bcm-rc-picker", { id: _id + "-picker", onBcmRCPickerChange: e => this.onChange(e), type: this.type, format: this.getFormat(), clearable: this.clearable, val: this.value, class: cs("w-full tw-flex"), size: size, placeholder: this.placeholder, showTime: this.showTime, showToday: this.showToday, showNow: this.showNow, showHour: this.showHour, showMinute: this.showMinute, showSecond: this.showSecond, use12Hours: this.use12Hours, error: this.captionType === "error", disabled: this.disabled }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
152
+ }) }, label && h(LabelTemplate, { size: size, type: captionType, value: label, required: required, htmlFor: _id }), h("bcm-rc-picker", { id: _id + "-picker", class: cs("w-full tw-flex"), onBcmRCPickerChange: e => this.onChange(e), disabled: this.disabled, clearable: this.clearable, size: size, placeholder: this.placeholder, error: this.captionType === "error", type: this.type, format: this.getFormat(), range: this.range, showToday: this.showToday, disabledDates: this.disabledDates, showTime: this.showTime, showNow: this.showNow, showHour: this.showHour, showMinute: this.showMinute, showSecond: this.showSecond, use12Hours: this.use12Hours, hourStep: this.hourStep, minuteStep: this.minuteStep, secondStep: this.secondStep, hideDisabledOptions: this.hideDisabledOptions, disabledTime: this.disabledTime }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
131
153
  }
132
154
  static get is() { return "bcm-date"; }
133
155
  static get properties() {
@@ -150,40 +172,6 @@ export class BcmDate {
150
172
  "reflect": true,
151
173
  "defaultValue": "Generate.UID()"
152
174
  },
153
- "name": {
154
- "type": "string",
155
- "mutable": false,
156
- "complexType": {
157
- "original": "string",
158
- "resolved": "string",
159
- "references": {}
160
- },
161
- "required": false,
162
- "optional": false,
163
- "docs": {
164
- "tags": [],
165
- "text": ""
166
- },
167
- "attribute": "name",
168
- "reflect": false
169
- },
170
- "value": {
171
- "type": "any",
172
- "mutable": true,
173
- "complexType": {
174
- "original": "any",
175
- "resolved": "any",
176
- "references": {}
177
- },
178
- "required": false,
179
- "optional": false,
180
- "docs": {
181
- "tags": [],
182
- "text": ""
183
- },
184
- "attribute": "value",
185
- "reflect": false
186
- },
187
175
  "label": {
188
176
  "type": "string",
189
177
  "mutable": false,
@@ -295,6 +283,24 @@ export class BcmDate {
295
283
  "reflect": false,
296
284
  "defaultValue": "false"
297
285
  },
286
+ "disabled": {
287
+ "type": "boolean",
288
+ "mutable": false,
289
+ "complexType": {
290
+ "original": "boolean",
291
+ "resolved": "boolean",
292
+ "references": {}
293
+ },
294
+ "required": false,
295
+ "optional": false,
296
+ "docs": {
297
+ "tags": [],
298
+ "text": ""
299
+ },
300
+ "attribute": "disabled",
301
+ "reflect": false,
302
+ "defaultValue": "false"
303
+ },
298
304
  "noMargin": {
299
305
  "type": "boolean",
300
306
  "mutable": false,
@@ -388,6 +394,40 @@ export class BcmDate {
388
394
  "attribute": "caption-error",
389
395
  "reflect": false
390
396
  },
397
+ "name": {
398
+ "type": "string",
399
+ "mutable": false,
400
+ "complexType": {
401
+ "original": "string",
402
+ "resolved": "string",
403
+ "references": {}
404
+ },
405
+ "required": false,
406
+ "optional": false,
407
+ "docs": {
408
+ "tags": [],
409
+ "text": ""
410
+ },
411
+ "attribute": "name",
412
+ "reflect": false
413
+ },
414
+ "value": {
415
+ "type": "any",
416
+ "mutable": true,
417
+ "complexType": {
418
+ "original": "any",
419
+ "resolved": "any",
420
+ "references": {}
421
+ },
422
+ "required": false,
423
+ "optional": false,
424
+ "docs": {
425
+ "tags": [],
426
+ "text": ""
427
+ },
428
+ "attribute": "value",
429
+ "reflect": false
430
+ },
391
431
  "type": {
392
432
  "type": "string",
393
433
  "mutable": false,
@@ -423,7 +463,7 @@ export class BcmDate {
423
463
  "attribute": "format",
424
464
  "reflect": false
425
465
  },
426
- "showTime": {
466
+ "range": {
427
467
  "type": "boolean",
428
468
  "mutable": false,
429
469
  "complexType": {
@@ -437,11 +477,11 @@ export class BcmDate {
437
477
  "tags": [],
438
478
  "text": ""
439
479
  },
440
- "attribute": "show-time",
480
+ "attribute": "range",
441
481
  "reflect": false,
442
482
  "defaultValue": "false"
443
483
  },
444
- "showToday": {
484
+ "showTime": {
445
485
  "type": "boolean",
446
486
  "mutable": false,
447
487
  "complexType": {
@@ -455,9 +495,9 @@ export class BcmDate {
455
495
  "tags": [],
456
496
  "text": ""
457
497
  },
458
- "attribute": "show-today",
498
+ "attribute": "show-time",
459
499
  "reflect": false,
460
- "defaultValue": "true"
500
+ "defaultValue": "false"
461
501
  },
462
502
  "showNow": {
463
503
  "type": "boolean",
@@ -549,7 +589,61 @@ export class BcmDate {
549
589
  "reflect": false,
550
590
  "defaultValue": "false"
551
591
  },
552
- "disabled": {
592
+ "hourStep": {
593
+ "type": "number",
594
+ "mutable": false,
595
+ "complexType": {
596
+ "original": "number",
597
+ "resolved": "number",
598
+ "references": {}
599
+ },
600
+ "required": false,
601
+ "optional": false,
602
+ "docs": {
603
+ "tags": [],
604
+ "text": ""
605
+ },
606
+ "attribute": "hour-step",
607
+ "reflect": false,
608
+ "defaultValue": "1"
609
+ },
610
+ "minuteStep": {
611
+ "type": "number",
612
+ "mutable": false,
613
+ "complexType": {
614
+ "original": "number",
615
+ "resolved": "number",
616
+ "references": {}
617
+ },
618
+ "required": false,
619
+ "optional": false,
620
+ "docs": {
621
+ "tags": [],
622
+ "text": ""
623
+ },
624
+ "attribute": "minute-step",
625
+ "reflect": false,
626
+ "defaultValue": "1"
627
+ },
628
+ "secondStep": {
629
+ "type": "number",
630
+ "mutable": false,
631
+ "complexType": {
632
+ "original": "number",
633
+ "resolved": "number",
634
+ "references": {}
635
+ },
636
+ "required": false,
637
+ "optional": false,
638
+ "docs": {
639
+ "tags": [],
640
+ "text": ""
641
+ },
642
+ "attribute": "second-step",
643
+ "reflect": false,
644
+ "defaultValue": "1"
645
+ },
646
+ "hideDisabledOptions": {
553
647
  "type": "boolean",
554
648
  "mutable": false,
555
649
  "complexType": {
@@ -563,9 +657,61 @@ export class BcmDate {
563
657
  "tags": [],
564
658
  "text": ""
565
659
  },
566
- "attribute": "disabled",
660
+ "attribute": "hide-disabled-options",
567
661
  "reflect": false,
568
662
  "defaultValue": "false"
663
+ },
664
+ "disabledTime": {
665
+ "type": "any",
666
+ "mutable": false,
667
+ "complexType": {
668
+ "original": "any",
669
+ "resolved": "any",
670
+ "references": {}
671
+ },
672
+ "required": false,
673
+ "optional": false,
674
+ "docs": {
675
+ "tags": [],
676
+ "text": ""
677
+ },
678
+ "attribute": "disabled-time",
679
+ "reflect": false
680
+ },
681
+ "showToday": {
682
+ "type": "boolean",
683
+ "mutable": false,
684
+ "complexType": {
685
+ "original": "boolean",
686
+ "resolved": "boolean",
687
+ "references": {}
688
+ },
689
+ "required": false,
690
+ "optional": false,
691
+ "docs": {
692
+ "tags": [],
693
+ "text": ""
694
+ },
695
+ "attribute": "show-today",
696
+ "reflect": false,
697
+ "defaultValue": "true"
698
+ },
699
+ "disabledDates": {
700
+ "type": "any",
701
+ "mutable": false,
702
+ "complexType": {
703
+ "original": "any",
704
+ "resolved": "any",
705
+ "references": {}
706
+ },
707
+ "required": false,
708
+ "optional": false,
709
+ "docs": {
710
+ "tags": [],
711
+ "text": ""
712
+ },
713
+ "attribute": "disabled-dates",
714
+ "reflect": false
569
715
  }
570
716
  };
571
717
  }
@@ -591,14 +737,14 @@ export class BcmDate {
591
737
  return {
592
738
  "getValue": {
593
739
  "complexType": {
594
- "signature": "() => Promise<string>",
740
+ "signature": "() => Promise<any>",
595
741
  "parameters": [],
596
742
  "references": {
597
743
  "Promise": {
598
744
  "location": "global"
599
745
  }
600
746
  },
601
- "return": "Promise<string>"
747
+ "return": "Promise<any>"
602
748
  },
603
749
  "docs": {
604
750
  "text": "",
@@ -607,14 +753,14 @@ export class BcmDate {
607
753
  },
608
754
  "get": {
609
755
  "complexType": {
610
- "signature": "() => Promise<number>",
756
+ "signature": "() => Promise<any>",
611
757
  "parameters": [],
612
758
  "references": {
613
759
  "Promise": {
614
760
  "location": "global"
615
761
  }
616
762
  },
617
- "return": "Promise<number>"
763
+ "return": "Promise<any>"
618
764
  },
619
765
  "docs": {
620
766
  "text": "",
@@ -538,6 +538,9 @@
538
538
  .bcm-date-focused {
539
539
  background-color: #f8fafc;
540
540
  }
541
+ .bcm-date-suffix {
542
+ color: #334155;
543
+ }
541
544
  .bcm-date-suffix:not(:empty) {
542
545
  display: flex;
543
546
  align-items: center;
@@ -573,10 +576,14 @@
573
576
  display: inline-flex;
574
577
  width: 100%;
575
578
  padding: 0 4px;
579
+ color: #334155;
580
+ }
581
+ .bcm-date-input-placeholder {
582
+ color: #94a3b8;
576
583
  }
577
584
  .bcm-date-input > input {
585
+ color: inherit;
578
586
  width: 100%;
579
- color: #475569;
580
587
  flex: 1;
581
588
  border: none;
582
589
  background: transparent;
@@ -607,6 +614,7 @@
607
614
  text-overflow: ellipsis;
608
615
  }
609
616
  .bcm-date-clear {
617
+ color: #334155;
610
618
  display: flex;
611
619
  flex-direction: column;
612
620
  align-items: center;
@@ -673,6 +681,9 @@
673
681
  line-height: 22px;
674
682
  font-weight: 400;
675
683
  }
684
+ .bcm-date-dropdown .bcm-date-panels {
685
+ display: inline-flex;
686
+ }
676
687
  .bcm-date-dropdown .bcm-date-decade-panel, .bcm-date-dropdown .bcm-date-year-panel, .bcm-date-dropdown .bcm-date-month-panel, .bcm-date-dropdown .bcm-date-week-panel, .bcm-date-dropdown .bcm-date-date-panel, .bcm-date-dropdown .bcm-date-time-panel {
677
688
  width: 256px;
678
689
  }
@@ -742,6 +753,10 @@
742
753
  .bcm-date-dropdown .bcm-date-time-panel-column > li.bcm-date-time-panel-cell-selected .bcm-date-time-panel-cell-inner {
743
754
  background: #e6f4ff;
744
755
  }
756
+ .bcm-date-dropdown .bcm-date-time-panel-column > li.bcm-date-time-panel-cell-disabled .bcm-date-time-panel-cell-inner {
757
+ pointer-events: none;
758
+ color: rgba(0, 0, 0, 0.25);
759
+ }
745
760
  .bcm-date-dropdown .bcm-date-datetime-panel {
746
761
  display: flex;
747
762
  flex-direction: row;
@@ -814,7 +829,23 @@
814
829
  text-align: center;
815
830
  text-transform: uppercase;
816
831
  }
817
- .bcm-date-dropdown .bcm-date-cell .bcm-date-cell-inner {
832
+ .bcm-date-dropdown .bcm-date-cell {
833
+ position: relative;
834
+ }
835
+ .bcm-date-dropdown .bcm-date-cell::before {
836
+ position: absolute;
837
+ top: 50%;
838
+ inset-inline-start: 0;
839
+ inset-inline-end: 0;
840
+ z-index: 1;
841
+ height: 24px;
842
+ transform: translateY(-50%);
843
+ transition: all 0.3s;
844
+ content: "";
845
+ }
846
+ .bcm-date-dropdown .bcm-date-cell-inner {
847
+ position: relative;
848
+ z-index: 2;
818
849
  display: flex;
819
850
  align-items: center;
820
851
  justify-content: center;
@@ -822,9 +853,9 @@
822
853
  border: 1px solid transparent;
823
854
  transition: background 0.2s, border 0.2s;
824
855
  cursor: pointer;
825
- color: #64748b;
856
+ color: #94a3b8;
826
857
  }
827
- .bcm-date-dropdown .bcm-date-cell .bcm-date-cell-inner:hover {
858
+ .bcm-date-dropdown .bcm-date-cell-inner:hover {
828
859
  background: #e2e8f0;
829
860
  color: #64748b;
830
861
  }
@@ -847,6 +878,68 @@
847
878
  background: #2563eb;
848
879
  color: #fff;
849
880
  }
881
+ .bcm-date-dropdown .bcm-date-cell-in-range .bcm-date-cell-inner {
882
+ background: #bfdbfe;
883
+ }
884
+ .bcm-date-dropdown .bcm-date-cell-in-range::before {
885
+ background: #bfdbfe;
886
+ }
887
+ .bcm-date-dropdown .bcm-date-cell-range-hover .bcm-date-cell-inner {
888
+ background: #93c5fd;
889
+ color: #334155;
890
+ }
891
+ .bcm-date-dropdown .bcm-date-cell-range-hover::before {
892
+ background: #93c5fd;
893
+ }
894
+ .bcm-date-dropdown .bcm-date-cell-range-start .bcm-date-cell-inner {
895
+ background-color: #3b82f6;
896
+ color: #fff;
897
+ border-radius: 4px 0 0 4px;
898
+ }
899
+ .bcm-date-dropdown .bcm-date-cell-range-start .bcm-date-cell-inner:hover {
900
+ background: #3b82f6;
901
+ color: #fff;
902
+ border-radius: 4px 0 0 4px;
903
+ }
904
+ .bcm-date-dropdown .bcm-date-cell-range-start::before {
905
+ background: #bfdbfe;
906
+ inset-inline-start: 50%;
907
+ }
908
+ .bcm-date-dropdown .bcm-date-cell-range-end .bcm-date-cell-inner {
909
+ background-color: #3b82f6;
910
+ color: #fff;
911
+ border-radius: 0 4px 4px 0;
912
+ }
913
+ .bcm-date-dropdown .bcm-date-cell-range-end .bcm-date-cell-inner:hover {
914
+ background: #3b82f6;
915
+ color: #fff;
916
+ border-radius: 4px 0 0 4px;
917
+ }
918
+ .bcm-date-dropdown .bcm-date-cell-range-end::before {
919
+ background: #bfdbfe;
920
+ inset-inline-end: 50%;
921
+ }
922
+ .bcm-date-dropdown .bcm-date-cell-range-hover-start .bcm-date-cell-inner {
923
+ background-color: #93c5fd;
924
+ color: #334155;
925
+ }
926
+ .bcm-date-dropdown .bcm-date-cell-range-hover-start .bcm-date-cell-inner:hover {
927
+ background: #93c5fd;
928
+ color: #334155;
929
+ border-radius: 4px 0 0 4px;
930
+ }
931
+ .bcm-date-dropdown .bcm-date-cell-range-hover-end .bcm-date-cell-inner:hover {
932
+ background: #93c5fd;
933
+ color: #334155;
934
+ border-radius: 0 4px 4px 0;
935
+ }
936
+ .bcm-date-dropdown .bcm-date-cell-disabled .bcm-date-cell-inner {
937
+ pointer-events: none;
938
+ color: rgba(0, 0, 0, 0.25);
939
+ }
940
+ .bcm-date-dropdown .bcm-date-cell-disabled::before {
941
+ background: rgba(0, 0, 0, 0.04);
942
+ }
850
943
  .bcm-date-dropdown .bcm-date-footer {
851
944
  border-top: 1px solid rgba(5, 5, 5, 0.06);
852
945
  width: min-content;
@@ -909,4 +1002,8 @@
909
1002
  }
910
1003
  .bcm-date-dropdown .bcm-date-now-btn:hover {
911
1004
  color: #2563eb;
1005
+ }
1006
+ .bcm-date-dropdown .bcm-date-range-wrapper {
1007
+ display: flex;
1008
+ position: relative;
912
1009
  }