bromcom-ui 2.9.0-rc.18 → 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.
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-13380aab.js → p-04e7d8ac.js} +1 -1
- package/dist/bromcom-ui/{p-b4b9c195.entry.js → p-05fef42b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1264d0a2.entry.js → p-06672174.entry.js} +1 -1
- package/dist/bromcom-ui/{p-95c6e625.entry.js → p-06c3ed21.entry.js} +1 -1
- package/dist/bromcom-ui/{p-901911e3.entry.js → p-09737f79.entry.js} +1 -1
- package/dist/bromcom-ui/{p-882a7f23.entry.js → p-0ac10364.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0b3dc9d6.entry.js → p-0b81c02f.entry.js} +1 -1
- package/dist/bromcom-ui/p-0c774416.entry.js +7 -0
- package/dist/bromcom-ui/{p-85ad9f3f.entry.js → p-0fb41a53.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4e79863b.entry.js → p-14cafd64.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0248dda1.entry.js → p-150450da.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b81b471f.entry.js → p-1625ce05.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cb8f146d.entry.js → p-1ae58853.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f7c0dacd.entry.js → p-1ba23d50.entry.js} +1 -1
- package/dist/bromcom-ui/{p-73d21d07.entry.js → p-203446af.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f9be0aa3.js → p-2156f8f5.js} +1 -1
- package/dist/bromcom-ui/{p-0f59535f.js → p-2208aada.js} +1 -1
- package/dist/bromcom-ui/{p-970b4b64.entry.js → p-2505c9d9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b4ab469f.entry.js → p-26290ed5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1da685cc.entry.js → p-29a6e6c0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3db2e540.entry.js → p-29ca858f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ad278432.entry.js → p-2dbf5ba5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bd02fdcc.entry.js → p-302fe8de.entry.js} +1 -1
- package/dist/bromcom-ui/{p-dda4e3d6.entry.js → p-30dbc7bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-df33161f.js → p-3363ca16.js} +1 -1
- package/dist/bromcom-ui/{p-c357d5b9.entry.js → p-3a29e450.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ce7aa349.js → p-3fa51f1b.js} +1 -1
- package/dist/bromcom-ui/{p-9efd429a.js → p-41dc7f2d.js} +1 -1
- package/dist/bromcom-ui/{p-46207bba.entry.js → p-430c0a24.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9c7c62bf.entry.js → p-47ce3a16.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2d859945.entry.js → p-4a511d29.entry.js} +1 -1
- package/dist/bromcom-ui/{p-98cb2ad8.entry.js → p-4a83d3fc.entry.js} +1 -1
- package/dist/bromcom-ui/{p-00adb162.entry.js → p-4be8e402.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e2cfb773.entry.js → p-56e27911.entry.js} +1 -1
- package/dist/bromcom-ui/p-5c03d929.entry.js +5 -0
- package/dist/bromcom-ui/{p-07c3eb8e.js → p-61db1f1f.js} +1 -1
- package/dist/bromcom-ui/{p-ac5f4e84.entry.js → p-66da9512.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
- package/dist/bromcom-ui/{p-660a8daa.entry.js → p-80ee3d97.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5f87e129.js → p-85ca2b62.js} +1 -1
- package/dist/bromcom-ui/{p-6f32652d.entry.js → p-87dda5e5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ac234c84.entry.js → p-8a9e9aeb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a6edcc85.entry.js → p-8b08527e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
- package/dist/bromcom-ui/{p-a341fa6d.entry.js → p-90c5221d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-10fd8284.js → p-917bd915.js} +1 -1
- package/dist/bromcom-ui/{p-c9c7067e.entry.js → p-99824717.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5a0e52d2.entry.js → p-9e25eb82.entry.js} +1 -1
- package/dist/bromcom-ui/{p-347b7912.entry.js → p-9ed18ccb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-347606cb.entry.js → p-a2b00328.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eeaf54a5.entry.js → p-a3e268da.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2d0719af.entry.js → p-a7763f93.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6a2c6341.entry.js → p-a8254f18.entry.js} +1 -1
- package/dist/bromcom-ui/{p-99384b21.entry.js → p-ad822bff.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e2933884.entry.js → p-bb3239ef.entry.js} +1 -1
- package/dist/bromcom-ui/{p-381c0161.entry.js → p-bc46e80c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3d730230.entry.js → p-c1a992e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c917c1fb.entry.js → p-c78ab3ca.entry.js} +1 -1
- package/dist/bromcom-ui/p-ce938f1e.entry.js +5 -0
- package/dist/bromcom-ui/{p-766522ff.entry.js → p-cf9d4122.entry.js} +1 -1
- package/dist/bromcom-ui/{p-042fa5c0.entry.js → p-d64879be.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eae72194.entry.js → p-d85727a3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bb2f87d8.entry.js → p-e45a2a64.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8f9077af.entry.js → p-e688b044.entry.js} +1 -1
- package/dist/bromcom-ui/{p-edf43cd5.entry.js → p-e6e00bc4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fae5ab21.entry.js → p-f2b3b5a8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-12010629.js → p-fc361b51.js} +1 -1
- package/dist/bromcom-ui/{p-106a65bf.entry.js → p-fe86c9e1.entry.js} +1 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
- package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
- package/dist/cjs/{bcm-button_14.cjs.entry.js → bcm-button_15.cjs.entry.js} +3586 -2960
- package/dist/cjs/bcm-card.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-chip-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
- package/dist/cjs/bcm-color-input.cjs.entry.js +4 -4
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-item.cjs.entry.js +2 -2
- package/dist/cjs/bcm-items.cjs.entry.js +2 -2
- package/dist/cjs/bcm-list_3.cjs.entry.js +9 -6
- package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +4 -4
- package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
- package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-radio.cjs.entry.js +4 -4
- package/dist/cjs/bcm-range.cjs.entry.js +2 -2
- package/dist/cjs/bcm-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +5 -5
- package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tab-group.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tab-item.cjs.entry.js +4 -4
- package/dist/cjs/bcm-table.cjs.entry.js +4 -4
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
- package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{generate-90889006.js → generate-a614441c.js} +1 -1
- package/dist/cjs/{global-83d1dfc5.js → global-dbb478c2.js} +1 -1
- package/dist/cjs/{input-template-58031bb0.js → input-template-2f000bbb.js} +1 -1
- package/dist/cjs/{json-parse-decarator-c5086a06.js → json-parse-decarator-2831cc43.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-7cf76b12.js → number-helper-f401b29a.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
- package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
- package/dist/cjs/{package-cbf038fe.js → package-5175214b.js} +1 -1
- package/dist/cjs/{stepper-states-7f2a5e9d.js → stepper-states-fa6f45d2.js} +1 -1
- package/dist/cjs/{tooltip-helper-2dd2937e.js → tooltip-helper-a9d5aaef.js} +3 -3
- package/dist/cjs/{validators-b86a27db.js → validators-45097bb8.js} +1 -1
- package/dist/collection/components/molecules/input/input.js +0 -2
- package/dist/collection/components/molecules/linked/linked.js +3 -27
- package/dist/collection/components/organism/list/list.js +3 -18
- package/dist/collection/components/third-parts/rc-picker/date.js +202 -56
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +101 -4
- package/dist/collection/components/third-parts/rc-picker/rc-picker.js +274 -159
- package/dist/components/bcm-date.js +44 -15
- package/dist/components/generate.js +1 -1
- package/dist/components/input.js +0 -2
- package/dist/components/linked.js +4 -10
- package/dist/components/list.js +4 -1
- package/dist/components/rc-picker.js +3031 -2887
- package/dist/esm/bcm-accordion.entry.js +2 -2
- package/dist/esm/bcm-alert.entry.js +2 -2
- package/dist/esm/bcm-attendance.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +7 -7
- package/dist/esm/bcm-breadcrumb.entry.js +2 -2
- package/dist/esm/bcm-button-group.entry.js +2 -2
- package/dist/esm/{bcm-button_14.entry.js → bcm-button_15.entry.js} +3589 -2964
- package/dist/esm/bcm-card.entry.js +4 -4
- package/dist/esm/bcm-checkbox-group.entry.js +3 -3
- package/dist/esm/bcm-checkbox-lite_9.entry.js +3 -3
- package/dist/esm/bcm-checkbox_2.entry.js +4 -4
- package/dist/esm/bcm-chip-group.entry.js +7 -7
- package/dist/esm/bcm-chip.entry.js +4 -4
- package/dist/esm/bcm-collapse-group.entry.js +1 -1
- package/dist/esm/bcm-collapse.entry.js +2 -2
- package/dist/esm/bcm-color-input.entry.js +7 -7
- package/dist/esm/bcm-colorpicker.entry.js +2 -2
- package/dist/esm/bcm-default.entry.js +2 -2
- package/dist/esm/bcm-drawer.entry.js +7 -7
- package/dist/esm/bcm-dropdown.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +4 -4
- package/dist/esm/bcm-input-custom.entry.js +2 -2
- package/dist/esm/bcm-input-dropdown.entry.js +7 -7
- package/dist/esm/bcm-item.entry.js +4 -4
- package/dist/esm/bcm-items.entry.js +2 -2
- package/dist/esm/bcm-list_3.entry.js +12 -9
- package/dist/esm/bcm-menu.entry.js +8 -8
- package/dist/esm/bcm-modal-2-footer.entry.js +7 -7
- package/dist/esm/bcm-modal-2-header.entry.js +7 -7
- package/dist/esm/bcm-modal-2.entry.js +7 -7
- package/dist/esm/bcm-modal.entry.js +2 -2
- package/dist/esm/bcm-old-tag_2.entry.js +1 -1
- package/dist/esm/bcm-popconfirm-box.entry.js +4 -4
- package/dist/esm/bcm-popconfirm.entry.js +2 -2
- package/dist/esm/bcm-popover.entry.js +7 -7
- package/dist/esm/bcm-progress.entry.js +4 -4
- package/dist/esm/bcm-radio-group.entry.js +7 -7
- package/dist/esm/bcm-radio.entry.js +7 -7
- package/dist/esm/bcm-range.entry.js +3 -3
- package/dist/esm/bcm-select.entry.js +1 -1
- package/dist/esm/bcm-skeleton.entry.js +2 -2
- package/dist/esm/bcm-step.entry.js +3 -3
- package/dist/esm/bcm-stepper.entry.js +8 -8
- package/dist/esm/bcm-switch.entry.js +3 -3
- package/dist/esm/bcm-tab-group.entry.js +7 -7
- package/dist/esm/bcm-tab-item-header.entry.js +7 -7
- package/dist/esm/bcm-tab-item.entry.js +7 -7
- package/dist/esm/bcm-table.entry.js +7 -7
- package/dist/esm/bcm-tabs-content.entry.js +1 -1
- package/dist/esm/bcm-tabs.entry.js +1 -1
- package/dist/esm/bcm-tag.entry.js +4 -4
- package/dist/esm/bcm-text.entry.js +2 -2
- package/dist/esm/bcm-textarea.entry.js +4 -4
- package/dist/esm/bcm-toast.entry.js +3 -3
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{color-helper-71b610e7.js → color-helper-845ba523.js} +1 -1
- package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
- package/dist/esm/{generate-429ed196.js → generate-f5397d67.js} +1 -1
- package/dist/esm/{global-4d7d3a13.js → global-fca83dc9.js} +1 -1
- package/dist/esm/{input-template-ab2e6439.js → input-template-50de36a8.js} +1 -1
- package/dist/esm/{json-parse-decarator-a55054fc.js → json-parse-decarator-db88bf63.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-4dc8b504.js → number-helper-aac382ed.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +5 -5
- package/dist/esm/old-bcm-popover.entry.js +2 -2
- package/dist/esm/{package-ad16f749.js → package-3edf06a4.js} +1 -1
- package/dist/esm/{stepper-states-f96a4ba5.js → stepper-states-d7ac1d20.js} +1 -1
- package/dist/esm/{tooltip-helper-c4cb45ab.js → tooltip-helper-d7a40058.js} +6 -6
- package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
- package/dist/esm/{validators-4cbe3998.js → validators-7cb12260.js} +1 -1
- package/dist/types/components/molecules/linked/linked.d.ts +1 -3
- package/dist/types/components/organism/list/list.d.ts +1 -0
- package/dist/types/components/third-parts/rc-picker/date.d.ts +121 -6
- package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +35 -16
- package/dist/types/components.d.ts +52 -25
- package/package.json +7 -7
- package/dist/bromcom-ui/p-00f70814.entry.js +0 -5
- package/dist/bromcom-ui/p-8373bb17.entry.js +0 -5
- package/dist/bromcom-ui/p-be63b3e6.entry.js +0 -13
- package/dist/bromcom-ui/p-f82738d7.entry.js +0 -5
- package/dist/cjs/bcm-form.cjs.entry.js +0 -489
- 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.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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),
|
|
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
|
-
"
|
|
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": "
|
|
480
|
+
"attribute": "range",
|
|
441
481
|
"reflect": false,
|
|
442
482
|
"defaultValue": "false"
|
|
443
483
|
},
|
|
444
|
-
"
|
|
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-
|
|
498
|
+
"attribute": "show-time",
|
|
459
499
|
"reflect": false,
|
|
460
|
-
"defaultValue": "
|
|
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
|
-
"
|
|
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<
|
|
740
|
+
"signature": "() => Promise<any>",
|
|
595
741
|
"parameters": [],
|
|
596
742
|
"references": {
|
|
597
743
|
"Promise": {
|
|
598
744
|
"location": "global"
|
|
599
745
|
}
|
|
600
746
|
},
|
|
601
|
-
"return": "Promise<
|
|
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<
|
|
756
|
+
"signature": "() => Promise<any>",
|
|
611
757
|
"parameters": [],
|
|
612
758
|
"references": {
|
|
613
759
|
"Promise": {
|
|
614
760
|
"location": "global"
|
|
615
761
|
}
|
|
616
762
|
},
|
|
617
|
-
"return": "Promise<
|
|
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
|
|
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: #
|
|
856
|
+
color: #94a3b8;
|
|
826
857
|
}
|
|
827
|
-
.bcm-date-dropdown .bcm-date-cell
|
|
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
|
}
|