bromcom-ui 2.7.38-rc.4-0 → 2.7.38-rc.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/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-ac94ff20.entry.js → p-02df0e61.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5696d100.js → p-06d5b45b.js} +1 -1
- package/dist/bromcom-ui/{p-9b349fd1.entry.js → p-09a7cbd8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-42ccdbd8.entry.js → p-0da4b4f6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c51a9ec1.entry.js → p-0e47fd55.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a5efb314.entry.js → p-10a311a3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-82cf69c1.entry.js → p-17c906e2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0ed91122.entry.js → p-18b8a781.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e48c96b5.entry.js → p-1a1ee7ac.entry.js} +1 -1
- package/dist/bromcom-ui/p-20a0dd5e.js +5 -0
- package/dist/bromcom-ui/{p-e9d4f2e3.entry.js → p-20ee086e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e83e3eae.entry.js → p-245639aa.entry.js} +1 -1
- package/dist/bromcom-ui/p-2535fab3.entry.js +5 -0
- package/dist/bromcom-ui/{p-882c3f88.js → p-32f45464.js} +1 -1
- package/dist/bromcom-ui/{p-6720d135.entry.js → p-375429c3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
- package/dist/bromcom-ui/{p-82b4552b.entry.js → p-4416fc0a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ebce834a.entry.js → p-46bc2218.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5782c63a.entry.js → p-51b7b796.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3b6e2230.js → p-569a770d.js} +1 -1
- package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
- package/dist/bromcom-ui/{p-4e16e6e3.entry.js → p-5c8da4ba.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f5ae5381.entry.js → p-6bc8c9a5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-67b2b680.entry.js → p-7d44d970.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e3b93551.entry.js → p-8079d3c3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-78cf8966.entry.js → p-9086c5e5.entry.js} +1 -1
- package/dist/bromcom-ui/p-910f82d6.entry.js +5 -0
- package/dist/bromcom-ui/{p-4e73ae71.entry.js → p-975d3153.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2db34383.entry.js → p-98bc5080.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b5f24bae.entry.js → p-9d791103.entry.js} +1 -1
- package/dist/bromcom-ui/{p-da7603b0.entry.js → p-9e6e812b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9192310c.entry.js → p-9fd54986.entry.js} +1 -1
- package/dist/bromcom-ui/{p-105ab305.entry.js → p-a24e8548.entry.js} +1 -1
- package/dist/bromcom-ui/p-a65d4efc.entry.js +5 -0
- package/dist/bromcom-ui/{p-f6730880.entry.js → p-a69c178b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a3ffcb0d.js → p-a8d1397d.js} +1 -1
- package/dist/bromcom-ui/{p-928f90f7.entry.js → p-afdbe4b8.entry.js} +1 -1
- package/dist/bromcom-ui/p-b00dce70.entry.js +5 -0
- package/dist/bromcom-ui/{p-d78f831f.entry.js → p-b1435ced.entry.js} +1 -1
- package/dist/bromcom-ui/p-b1b449e5.entry.js +5 -0
- package/dist/bromcom-ui/{p-22122329.entry.js → p-b42ba972.entry.js} +1 -1
- package/dist/bromcom-ui/{p-24ae390e.entry.js → p-b47a1f56.entry.js} +1 -1
- package/dist/bromcom-ui/p-b7d57364.entry.js +5 -0
- package/dist/bromcom-ui/p-b8ac51ee.entry.js +5 -0
- package/dist/bromcom-ui/{p-10235fe0.js → p-b99d105e.js} +1 -1
- package/dist/bromcom-ui/{p-870a8fd4.entry.js → p-c0367eac.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1fc677ed.entry.js → p-c29da4ac.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2bbc855e.entry.js → p-c59b1d70.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f79130bd.js → p-c64aa680.js} +1 -1
- package/dist/bromcom-ui/{p-79d67b0d.entry.js → p-c80351a4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7b5e88c5.entry.js → p-cb975855.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3c8a91b8.entry.js → p-cd228a80.entry.js} +1 -1
- package/dist/bromcom-ui/{p-89c1deda.entry.js → p-dbb1b1c8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-66d04b59.entry.js → p-e6a8de73.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b32bee88.entry.js → p-e92ea676.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1978e4ae.entry.js → p-eaa34b84.entry.js} +1 -1
- package/dist/bromcom-ui/{p-44a08949.entry.js → p-f25e022d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7567855a.entry.js → p-f8debd1c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-28d16808.entry.js → p-faf0477b.entry.js} +1 -1
- package/dist/bromcom-ui/p-fd1b7034.entry.js +5 -0
- package/dist/bromcom-ui/{p-12b09a8d.js → p-fef7d1c2.js} +1 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
- package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-button.cjs.entry.js +384 -0
- package/dist/cjs/bcm-card.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-chip.cjs.entry.js +1 -1
- package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
- package/dist/cjs/{bcm-datetime-picker.cjs.entry.js → bcm-date-picker_7.cjs.entry.js} +830 -8
- package/dist/cjs/bcm-default.cjs.entry.js +1 -1
- package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
- package/dist/cjs/bcm-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form.cjs.entry.js +487 -0
- package/dist/cjs/bcm-input.cjs.entry.js +341 -0
- package/dist/cjs/bcm-item.cjs.entry.js +1 -1
- package/dist/cjs/bcm-items.cjs.entry.js +1 -1
- package/dist/cjs/bcm-linked_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-list.cjs.entry.js +5 -6
- package/dist/cjs/bcm-modal.cjs.entry.js +142 -0
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popover.cjs.entry.js +3 -3
- package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
- package/dist/cjs/bcm-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-radio.cjs.entry.js +1 -1
- package/dist/cjs/bcm-range.cjs.entry.js +1 -1
- package/dist/cjs/bcm-search.cjs.entry.js +2 -2
- package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bcm-step.cjs.entry.js +101 -0
- package/dist/cjs/bcm-stepper.cjs.entry.js +220 -0
- package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
- package/dist/cjs/bcm-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
- package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
- package/dist/cjs/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/{generate-96f85652.js → generate-444f78d8.js} +1 -1
- package/dist/cjs/{input-template-5a946790.js → input-template-1c41f731.js} +1 -1
- package/dist/cjs/{json-parse-decarator-e4fad91a.js → json-parse-decarator-1df79b49.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{number-helper-ba86b114.js → number-helper-61ad541b.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
- package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
- package/dist/cjs/stepper-states-b820e69c.js +85 -0
- package/dist/cjs/{tooltip-helper-d01c7faf.js → tooltip-helper-22b169c4.js} +3 -3
- package/dist/cjs/{validators-c614157e.js → validators-3a5d3be9.js} +1 -1
- package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +20 -1
- package/dist/collection/components/organism/list/list.js +0 -1
- package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
- package/dist/components/bcm-date-picker.js +3 -1
- package/dist/components/bcm-list.js +0 -1
- package/dist/components/bcm-time-picker.js +3 -1
- package/dist/components/datetime-picker.js +3 -1
- package/dist/components/generate.js +1 -1
- package/dist/esm/bcm-accordion.entry.js +1 -1
- package/dist/esm/bcm-alert.entry.js +1 -1
- package/dist/esm/bcm-attendance.entry.js +1 -1
- package/dist/esm/bcm-avatar_2.entry.js +6 -6
- package/dist/esm/bcm-breadcrumb.entry.js +1 -1
- package/dist/esm/bcm-button-group.entry.js +1 -1
- package/dist/esm/bcm-button.entry.js +380 -0
- package/dist/esm/bcm-card.entry.js +3 -3
- package/dist/esm/bcm-checkbox-group.entry.js +2 -2
- package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
- package/dist/esm/bcm-checkbox_2.entry.js +3 -3
- package/dist/esm/bcm-chip.entry.js +3 -3
- package/dist/esm/bcm-collapse-group.entry.js +1 -1
- package/dist/esm/bcm-collapse.entry.js +1 -1
- package/dist/esm/bcm-colorpicker.entry.js +2 -2
- package/dist/esm/{bcm-datetime-picker.entry.js → bcm-date-picker_7.entry.js} +827 -11
- package/dist/esm/bcm-default.entry.js +1 -1
- package/dist/esm/bcm-drawer.entry.js +6 -6
- package/dist/esm/bcm-dropdown.entry.js +2 -2
- package/dist/esm/bcm-expansion-panel.entry.js +3 -3
- package/dist/esm/bcm-form-2.entry.js +1 -1
- package/dist/esm/bcm-form.entry.js +483 -0
- package/dist/esm/bcm-input.entry.js +337 -0
- package/dist/esm/bcm-item.entry.js +3 -3
- package/dist/esm/bcm-items.entry.js +1 -1
- package/dist/esm/bcm-linked_2.entry.js +7 -7
- package/dist/esm/bcm-list.entry.js +8 -9
- package/dist/esm/bcm-modal.entry.js +138 -0
- package/dist/esm/bcm-old-tag_2.entry.js +1 -1
- package/dist/esm/bcm-popconfirm-box.entry.js +3 -3
- package/dist/esm/bcm-popconfirm.entry.js +1 -1
- package/dist/esm/bcm-popover.entry.js +6 -6
- package/dist/esm/bcm-progress.entry.js +3 -3
- package/dist/esm/bcm-radio-group.entry.js +2 -2
- package/dist/esm/bcm-radio.entry.js +3 -3
- package/dist/esm/bcm-range.entry.js +2 -2
- package/dist/esm/bcm-search.entry.js +3 -3
- package/dist/esm/bcm-select.entry.js +1 -1
- package/dist/esm/bcm-skeleton.entry.js +1 -1
- package/dist/esm/bcm-step.entry.js +97 -0
- package/dist/esm/bcm-stepper.entry.js +216 -0
- package/dist/esm/bcm-switch.entry.js +2 -2
- package/dist/esm/bcm-tab-group.entry.js +1 -1
- package/dist/esm/bcm-table.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/bcm-text.entry.js +2 -2
- package/dist/esm/bcm-textarea.entry.js +3 -3
- package/dist/esm/bromcom-ui.js +1 -1
- package/dist/esm/{color-helper-7e202fd8.js → color-helper-b5e9aa56.js} +1 -1
- package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
- package/dist/esm/{generate-978067d3.js → generate-3650d0a8.js} +1 -1
- package/dist/esm/{input-template-4722e50b.js → input-template-0a009dc3.js} +1 -1
- package/dist/esm/{json-parse-decarator-6b685c81.js → json-parse-decarator-8a38db81.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{number-helper-6cf8fb22.js → number-helper-ad46adfd.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +4 -4
- package/dist/esm/old-bcm-popover.entry.js +1 -1
- package/dist/esm/stepper-states-808a6dce.js +83 -0
- package/dist/esm/{tooltip-helper-1ac48b48.js → tooltip-helper-fe6a79f6.js} +5 -5
- package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
- package/dist/esm/{validators-0bd486de.js → validators-18fc528d.js} +1 -1
- package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
- package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
- package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
- package/dist/types/components.d.ts +6 -0
- package/package.json +1 -1
- package/dist/bromcom-ui/p-62b5f555.entry.js +0 -5
- package/dist/bromcom-ui/p-78ca0329.entry.js +0 -5
- package/dist/bromcom-ui/p-7f349606.entry.js +0 -5
- package/dist/bromcom-ui/p-81d1870d.entry.js +0 -5
- package/dist/bromcom-ui/p-99bed73b.entry.js +0 -5
- package/dist/bromcom-ui/p-c559e56e.entry.js +0 -5
- package/dist/cjs/bcm-button_9.cjs.entry.js +0 -1795
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -178
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -411
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -146
- package/dist/esm/bcm-button_9.entry.js +0 -1783
- package/dist/esm/bcm-date-picker.entry.js +0 -174
- package/dist/esm/bcm-old-input.entry.js +0 -407
- package/dist/esm/bcm-time-picker.entry.js +0 -142
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-58077b32.js';
|
|
6
|
-
import { c as classnames } from './index-ba2edd32.js';
|
|
7
|
-
import { I as IsLoad } from './is-load-decorator-d57b8f9e.js';
|
|
8
|
-
import { G as Generate } from './generate-978067d3.js';
|
|
9
|
-
import { B as Bcm } from './bcm-b8d8a236.js';
|
|
10
|
-
import { d as delay } from './utils-57652744.js';
|
|
11
|
-
import './_commonjsHelpers-3016b722.js';
|
|
12
|
-
|
|
13
|
-
const timePickerCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-block;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}";
|
|
14
|
-
|
|
15
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
16
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
18
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
-
else
|
|
20
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
21
|
-
if (d = decorators[i])
|
|
22
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
23
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24
|
-
};
|
|
25
|
-
const BcmTimePicker = class {
|
|
26
|
-
constructor(hostRef) {
|
|
27
|
-
registerInstance(this, hostRef);
|
|
28
|
-
this._id = Generate.UID();
|
|
29
|
-
this.time = new Date();
|
|
30
|
-
this.value = undefined;
|
|
31
|
-
this.hidden = false;
|
|
32
|
-
this.name = undefined;
|
|
33
|
-
this.fullWidth = false;
|
|
34
|
-
this.required = false;
|
|
35
|
-
this.label = undefined;
|
|
36
|
-
this.placeholder = undefined;
|
|
37
|
-
this.disabled = false;
|
|
38
|
-
this.noCaption = false;
|
|
39
|
-
this.caption = '';
|
|
40
|
-
this.captionError = undefined;
|
|
41
|
-
this.captionType = 'default';
|
|
42
|
-
this.alignment = undefined;
|
|
43
|
-
this.placement = Bcm.Placement['bottom-start'];
|
|
44
|
-
this.linkedComponent = undefined;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @ComponentMethod
|
|
48
|
-
*/
|
|
49
|
-
componentWillLoad() {
|
|
50
|
-
if (typeof this.time === 'string') {
|
|
51
|
-
const regTime = /\b([01][0-9]|2[0-3]):([0-5][0-9])\b/;
|
|
52
|
-
const regTimeCheck = regTime.test(this.time);
|
|
53
|
-
const timeSections = regTimeCheck ? this.time.split(':') : false;
|
|
54
|
-
if (timeSections) {
|
|
55
|
-
this.time = new Date(new Date().setHours(Number(timeSections[0]), Number(timeSections[1])));
|
|
56
|
-
}
|
|
57
|
-
else
|
|
58
|
-
this.time = new Date();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @desc
|
|
63
|
-
*/
|
|
64
|
-
handlePickerLoad() {
|
|
65
|
-
this.value = this.picker.value;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* @desc
|
|
69
|
-
* @param event
|
|
70
|
-
*/
|
|
71
|
-
handlePickerChange(event) {
|
|
72
|
-
this.value = event.detail;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* @desc
|
|
76
|
-
* @param value
|
|
77
|
-
*/
|
|
78
|
-
async set(value) {
|
|
79
|
-
return this.picker.set(value);
|
|
80
|
-
}
|
|
81
|
-
async get() {
|
|
82
|
-
var _a;
|
|
83
|
-
return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.timestamp) || null;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* @desc
|
|
87
|
-
* @param disabled
|
|
88
|
-
*/
|
|
89
|
-
async setDisabled(disabled) {
|
|
90
|
-
this.disabled = disabled;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* @desc
|
|
94
|
-
*/
|
|
95
|
-
async getInput() {
|
|
96
|
-
return await this.picker.getInput();
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* @desc
|
|
100
|
-
*/
|
|
101
|
-
async getValue() {
|
|
102
|
-
return this.value;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* @desc
|
|
106
|
-
*/
|
|
107
|
-
async isValid() {
|
|
108
|
-
return await this.picker.isValid();
|
|
109
|
-
}
|
|
110
|
-
async setClear() {
|
|
111
|
-
await this.picker.setClear();
|
|
112
|
-
await delay(10);
|
|
113
|
-
return Promise.resolve();
|
|
114
|
-
}
|
|
115
|
-
async resetCaption() {
|
|
116
|
-
await delay(10);
|
|
117
|
-
await this.picker.resetCaption();
|
|
118
|
-
this.captionType = 'default';
|
|
119
|
-
this.captionError = null;
|
|
120
|
-
await delay(10);
|
|
121
|
-
return Promise.resolve();
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* @desc
|
|
125
|
-
*/
|
|
126
|
-
async open() {
|
|
127
|
-
return await this.picker.open();
|
|
128
|
-
}
|
|
129
|
-
render() {
|
|
130
|
-
const hostClasses = classnames(this.hidden ? 'hidden' : null, {
|
|
131
|
-
'full-width': this.fullWidth
|
|
132
|
-
});
|
|
133
|
-
return (h(Host, { class: hostClasses }, h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, fullWidth: this.fullWidth, required: this.required, label: this.label, name: this.name, placeholder: this.placeholder, type: "time", date: this.time, ref: el => (this.picker = el), disabled: this.disabled, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, captionError: this.captionError, caption: this.caption, captionType: this.captionType, alignment: this.alignment, placement: this.placement })));
|
|
134
|
-
}
|
|
135
|
-
get el() { return getElement(this); }
|
|
136
|
-
};
|
|
137
|
-
__decorate([
|
|
138
|
-
IsLoad()
|
|
139
|
-
], BcmTimePicker.prototype, "el", void 0);
|
|
140
|
-
BcmTimePicker.style = timePickerCss;
|
|
141
|
-
|
|
142
|
-
export { BcmTimePicker as bcm_time_picker };
|