bromcom-ui 2.3.70 → 2.3.71
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/bcm-alert.entry.js +58 -53
- package/dist/bromcom-ui/bcm-autocomplete.entry.js +3 -4
- package/dist/bromcom-ui/bcm-avatar.entry.js +28 -27
- package/dist/bromcom-ui/bcm-badge.entry.js +31 -60
- package/dist/bromcom-ui/bcm-breadcrumb.entry.js +32 -26
- package/dist/bromcom-ui/bcm-button.entry.js +215 -92
- package/dist/bromcom-ui/bcm-card-footer.entry.js +1 -1
- package/dist/bromcom-ui/bcm-card-header.entry.js +1 -1
- package/dist/bromcom-ui/bcm-card.entry.js +4 -5
- package/dist/bromcom-ui/bcm-checkbox-group.entry.js +227 -253
- package/dist/bromcom-ui/bcm-checkbox-lite.entry.js +26 -29
- package/dist/bromcom-ui/bcm-checkbox.entry.js +89 -85
- package/dist/bromcom-ui/bcm-collapse-group.entry.js +16 -11
- package/dist/bromcom-ui/bcm-collapse.entry.js +18 -31
- package/dist/bromcom-ui/bcm-colorpicker.entry.js +6 -7
- package/dist/bromcom-ui/bcm-comment-editor.entry.js +3 -4
- package/dist/bromcom-ui/bcm-comment-group.entry.js +3 -4
- package/dist/bromcom-ui/bcm-comment.entry.js +4 -5
- package/dist/bromcom-ui/bcm-content.entry.js +15 -0
- package/dist/bromcom-ui/bcm-date-picker.entry.js +34 -31
- package/dist/bromcom-ui/bcm-datetime-picker.entry.js +100 -64
- package/dist/bromcom-ui/bcm-divider.entry.js +11 -11
- package/dist/bromcom-ui/bcm-dropdown-button.entry.js +61 -35
- package/dist/bromcom-ui/bcm-dropdown-group.entry.js +58 -0
- package/dist/bromcom-ui/bcm-dropdown-item.entry.js +16 -66
- package/dist/bromcom-ui/bcm-dropdown-list.entry.js +49 -31
- package/dist/bromcom-ui/bcm-dropdown.entry.js +46 -17
- package/dist/bromcom-ui/bcm-empty.entry.js +45 -14
- package/dist/bromcom-ui/bcm-error-layout.entry.js +34 -20
- package/dist/bromcom-ui/bcm-footer.entry.js +15 -0
- package/dist/bromcom-ui/bcm-form-group.entry.js +3 -3
- package/dist/bromcom-ui/bcm-form.entry.js +16 -31
- package/dist/bromcom-ui/bcm-header.entry.js +15 -0
- package/dist/bromcom-ui/bcm-icon.entry.js +35 -55
- package/dist/bromcom-ui/bcm-input.entry.js +276 -170
- package/dist/bromcom-ui/bcm-label.entry.js +75 -10
- package/dist/bromcom-ui/bcm-link.entry.js +5 -26
- package/dist/bromcom-ui/bcm-list-item.entry.js +3 -4
- package/dist/bromcom-ui/bcm-list-select.entry.js +13 -14
- package/dist/bromcom-ui/bcm-list.entry.js +5 -10
- package/dist/bromcom-ui/bcm-listbox-group.entry.js +4 -5
- package/dist/bromcom-ui/bcm-listbox-item.entry.js +4 -5
- package/dist/bromcom-ui/bcm-listbox.entry.js +14 -17
- package/dist/bromcom-ui/bcm-menu-group.entry.js +3 -4
- package/dist/bromcom-ui/bcm-menu-item.entry.js +3 -4
- package/dist/bromcom-ui/bcm-menu.entry.js +3 -4
- package/dist/bromcom-ui/bcm-message.entry.js +50 -54
- package/dist/bromcom-ui/bcm-modal.entry.js +160 -47
- package/dist/bromcom-ui/bcm-notification.entry.js +47 -59
- package/dist/bromcom-ui/bcm-popconfirm-box.entry.js +21 -61
- package/dist/bromcom-ui/bcm-popconfirm.entry.js +93 -49
- package/dist/bromcom-ui/bcm-popover-box.entry.js +16 -44
- package/dist/bromcom-ui/bcm-popover.entry.js +101 -61
- package/dist/bromcom-ui/bcm-progress.entry.js +63 -77
- package/dist/bromcom-ui/bcm-pulldown-group.entry.js +4 -5
- package/dist/bromcom-ui/bcm-pulldown-item.entry.js +3 -4
- package/dist/bromcom-ui/bcm-pulldown.entry.js +4 -5
- package/dist/bromcom-ui/bcm-radio-group.entry.js +85 -183
- package/dist/bromcom-ui/bcm-radio.entry.js +79 -59
- package/dist/bromcom-ui/bcm-result.entry.js +38 -62
- package/dist/bromcom-ui/bcm-search.entry.js +4 -5
- package/dist/bromcom-ui/bcm-select-box.entry.js +6 -4
- package/dist/bromcom-ui/bcm-select-group.entry.js +3 -4
- package/dist/bromcom-ui/bcm-select-option.entry.js +4 -5
- package/dist/bromcom-ui/bcm-select.entry.js +53 -37
- package/dist/bromcom-ui/bcm-selecto.entry.js +2 -3
- package/dist/bromcom-ui/bcm-slider.entry.js +3 -4
- package/dist/bromcom-ui/bcm-sub-comment.entry.js +4 -5
- package/dist/bromcom-ui/bcm-switch.entry.js +37 -48
- package/dist/bromcom-ui/bcm-tab-pane.entry.js +3 -4
- package/dist/bromcom-ui/bcm-tab.entry.js +8 -8
- package/dist/bromcom-ui/bcm-tabs-content.entry.js +4 -5
- package/dist/bromcom-ui/bcm-tabs.entry.js +5 -6
- package/dist/bromcom-ui/bcm-tag.entry.js +44 -48
- package/dist/bromcom-ui/bcm-text.entry.js +10 -16
- package/dist/bromcom-ui/bcm-textarea.entry.js +68 -45
- package/dist/bromcom-ui/bcm-time-picker.entry.js +3 -4
- package/dist/bromcom-ui/bcm-timeline-item.entry.js +24 -10
- package/dist/bromcom-ui/bcm-timeline.entry.js +33 -11
- package/dist/bromcom-ui/bcm-tooltip-box.entry.js +16 -54
- package/dist/bromcom-ui/bcm-tooltip.entry.js +99 -48
- package/dist/bromcom-ui/bcm-treeview-group.entry.js +1 -1
- package/dist/bromcom-ui/bcm-treeview-item.entry.js +4 -5
- package/dist/bromcom-ui/bcm-treeview.entry.js +5 -6
- package/dist/bromcom-ui/bcm-upload.entry.js +4 -5
- package/dist/bromcom-ui/bromcom-ui.css +36 -40154
- package/dist/bromcom-ui/bromcom-ui.esm.js +2 -2
- package/dist/bromcom-ui/datetime-helper-c373f888.js +5 -0
- package/dist/bromcom-ui/{element-dragger-2a215f47.js → element-dragger-e40f0410.js} +1 -1
- package/dist/bromcom-ui/{_commonjsHelpers-2088bffa.js → index-43956e3c.js} +56 -1
- package/dist/bromcom-ui/{index-dbc63c66.js → index-9dbea026.js} +2 -2
- package/dist/bromcom-ui/{popover-placement-f7a6551c.js → popover-placement-fb1f91e9.js} +17 -25
- package/dist/bromcom-ui/{bcm-ad02f9c9.js → string-helper-1d51eff7.js} +23 -2
- package/dist/bromcom-ui/types-0e4b533d.js +14 -0
- package/dist/bromcom-ui/types-911a8837.js +21 -0
- package/dist/bromcom-ui/{utils-333ded7f.js → utils-1feb01eb.js} +1 -4
- package/dist/types/components/atoms/avatar/avatar.d.ts +5 -9
- package/dist/types/components/atoms/badge/badge.d.ts +9 -14
- package/dist/types/components/atoms/badge/types.d.ts +4 -0
- package/dist/types/components/atoms/button/button.d.ts +10 -17
- package/dist/types/components/atoms/button/types.d.ts +22 -0
- package/dist/types/components/atoms/divider/divider.d.ts +2 -2
- package/dist/types/components/atoms/icon/icon.d.ts +9 -14
- package/dist/types/components/atoms/label/label.d.ts +2 -1
- package/dist/types/components/atoms/link/link.d.ts +1 -6
- package/dist/types/components/atoms/tag/tag.d.ts +11 -14
- package/dist/types/components/atoms/text/text.d.ts +3 -4
- package/dist/types/components/molecules/alert/alert.d.ts +37 -15
- package/dist/types/components/molecules/breadcrumb/breadcrumb.d.ts +22 -9
- package/dist/types/components/molecules/checkbox/checkbox-lite.d.ts +22 -7
- package/dist/types/components/molecules/checkbox/checkbox.d.ts +31 -26
- package/dist/types/components/molecules/checkbox/group.d.ts +83 -24
- package/dist/types/components/molecules/checkbox/types.d.ts +29 -0
- package/dist/types/components/molecules/collapse/collapse.d.ts +6 -9
- package/dist/types/components/molecules/collapse/group.d.ts +2 -4
- package/dist/types/components/molecules/dropdown/dropdown-button.d.ts +31 -18
- package/dist/types/components/molecules/dropdown/dropdown-group.d.ts +28 -0
- package/dist/types/components/molecules/dropdown/dropdown-item.d.ts +16 -17
- package/dist/types/components/molecules/dropdown/dropdown-list.d.ts +35 -12
- package/dist/types/components/molecules/dropdown/dropdown.d.ts +30 -5
- package/dist/types/components/molecules/dropdown/types.d.ts +20 -0
- package/dist/types/components/molecules/empty/empty.d.ts +24 -7
- package/dist/types/components/molecules/empty/types.d.ts +15 -0
- package/dist/types/components/molecules/error-layout/error-layout.d.ts +18 -6
- package/dist/types/components/molecules/error-layout/types.d.ts +4 -0
- package/dist/types/components/molecules/input/input.d.ts +45 -39
- package/dist/types/components/molecules/list/list-select.d.ts +1 -0
- package/dist/types/components/molecules/list/list.d.ts +1 -0
- package/dist/types/components/molecules/message/message.d.ts +25 -13
- package/dist/types/components/molecules/message/types.d.ts +13 -0
- package/dist/types/components/molecules/modal/modal-content.d.ts +4 -0
- package/dist/types/components/molecules/modal/modal-header.d.ts +4 -0
- package/dist/types/components/molecules/modal/modal.d.ts +65 -12
- package/dist/types/components/molecules/modal/model-footer.d.ts +4 -0
- package/dist/types/components/molecules/modal/types.d.ts +41 -0
- package/dist/types/components/molecules/notification/notification.d.ts +21 -14
- package/dist/types/components/molecules/notification/types.d.ts +14 -0
- package/dist/types/components/molecules/popconfirm/popconfirm-box.d.ts +12 -14
- package/dist/types/components/molecules/popconfirm/popconfirm.d.ts +14 -10
- package/dist/types/components/molecules/popover/popover-box.d.ts +10 -10
- package/dist/types/components/molecules/popover/popover.d.ts +19 -13
- package/dist/types/components/molecules/progress/progress.d.ts +6 -8
- package/dist/types/components/molecules/radio/group.d.ts +22 -28
- package/dist/types/components/molecules/radio/radio.d.ts +17 -13
- package/dist/types/components/molecules/result/result.d.ts +8 -14
- package/dist/types/components/molecules/result/types.d.ts +19 -0
- package/dist/types/components/molecules/select/select-box.d.ts +1 -0
- package/dist/types/components/molecules/select/select.d.ts +6 -5
- package/dist/types/components/molecules/switch/switch.d.ts +15 -18
- package/dist/types/components/molecules/textarea/textarea.d.ts +23 -23
- package/dist/types/components/molecules/timeline/timeline-item.d.ts +12 -0
- package/dist/types/components/molecules/timeline/timeline.d.ts +19 -2
- package/dist/types/components/molecules/tooltip/tooltip-box.d.ts +8 -11
- package/dist/types/components/molecules/tooltip/tooltip.d.ts +17 -13
- package/dist/types/components/organism/colorpicker/colorpicker.d.ts +2 -1
- package/dist/types/components/organism/date-picker/date-picker.d.ts +11 -7
- package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +5 -4
- package/dist/types/components/organism/form/form.d.ts +1 -2
- package/dist/types/components/organism/listbox/listbox.d.ts +2 -1
- package/dist/types/components/organism/tabs/tab.d.ts +1 -2
- package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -1
- package/dist/types/components.d.ts +510 -553
- package/dist/types/global/variables/colors.d.ts +1 -0
- package/dist/types/helper/datetime-helper.d.ts +3 -0
- package/dist/types/helper/generate.d.ts +1 -4
- package/dist/types/helper/string-helper.d.ts +0 -3
- package/dist/types/models/bcm.d.ts +1 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/utils/popover-placement.d.ts +3 -3
- package/dist/types/utils/utils.d.ts +0 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/bcm-list-2.entry.js +0 -1063
- package/dist/bromcom-ui/bcm-range.entry.js +0 -161
- package/dist/bromcom-ui/bcm-search-2.entry.js +0 -219
- package/dist/bromcom-ui/caption-template-2d4ffc88.js +0 -25
- package/dist/bromcom-ui/color-helper-19448077.js +0 -35
- package/dist/bromcom-ui/generate-8e440fc4.js +0 -91
- package/dist/bromcom-ui/index-55174f2a.js +0 -58
- package/dist/bromcom-ui/index-dd5c1283.js +0 -187
- package/dist/bromcom-ui/input-template-487d3243.js +0 -83
- package/dist/bromcom-ui/json-parse-decarator-223ea680.js +0 -21
- package/dist/bromcom-ui/label-template-501216fc.js +0 -19
- package/dist/bromcom-ui/number-helper-fea1966f.js +0 -13
- package/dist/bromcom-ui/property-decorators-21b15487.js +0 -36
- package/dist/bromcom-ui/slot-template-f79b82ee.js +0 -9
- package/dist/bromcom-ui/snq.es5-946822b8.js +0 -14
- package/dist/bromcom-ui/string-helper-35840f91.js +0 -109
- package/dist/bromcom-ui/types-6b2a6629.js +0 -172
- package/dist/types/components/atoms/states/badge.states.d.ts +0 -7
- package/dist/types/components/atoms/states/button.states.d.ts +0 -7
- package/dist/types/components/molecules/breadcrumb/types.d.ts +0 -10
- package/dist/types/components/molecules/input/types.d.ts +0 -13
- package/dist/types/components/molecules/progress/types.d.ts +0 -24
- package/dist/types/components/molecules/range/range.d.ts +0 -36
- package/dist/types/components/molecules/search-2/search-2.d.ts +0 -30
- package/dist/types/components/molecules/states/alert.states.d.ts +0 -7
- package/dist/types/components/molecules/states/checkbox-group.states.d.ts +0 -53
- package/dist/types/components/molecules/states/message.states.d.ts +0 -7
- package/dist/types/components/molecules/states/notification.states.d.ts +0 -7
- package/dist/types/components/molecules/states/radio-group.states.d.ts +0 -47
- package/dist/types/components/molecules/states/result.states.d.ts +0 -7
- package/dist/types/components/molecules/states/search.states.d.ts +0 -13
- package/dist/types/components/molecules/textarea/types.d.ts +0 -9
- package/dist/types/components/organism/list-2/list-2.d.ts +0 -109
- package/dist/types/components/organism/states/bcm-list2.states.d.ts +0 -24
- package/dist/types/decorators/json-parse-decarator.d.ts +0 -4
- package/dist/types/decorators/property-decorators.d.ts +0 -6
- package/dist/types/helper/number-helper.d.ts +0 -9
- package/dist/types/models/states/Atoms/bcm-Atoms-state.d.ts +0 -34
- package/dist/types/models/states/molecules/bcm-molecules-state.d.ts +0 -78
- package/dist/types/models/states/organisms/bcm-organisms-state.d.ts +0 -71
- package/dist/types/templates/button-template.d.ts +0 -16
- package/dist/types/templates/checkbox-group-template.d.ts +0 -10
- package/dist/types/templates/checkbox-template.d.ts +0 -13
- package/dist/types/templates/info-footer-template.d.ts +0 -10
- package/dist/types/templates/input-template.d.ts +0 -30
- package/dist/types/templates/list-item-template.d.ts +0 -11
- package/dist/types/templates/list-template.d.ts +0 -23
- package/dist/types/templates/tag-template.d.ts +0 -17
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { h } from './index-dbc63c66.js';
|
|
2
|
-
import { c as classnames } from './index-55174f2a.js';
|
|
3
|
-
import { B as Bcm } from './bcm-ad02f9c9.js';
|
|
4
|
-
|
|
5
|
-
var defaultIcons;
|
|
6
|
-
(function (defaultIcons) {
|
|
7
|
-
defaultIcons["search"] = "search";
|
|
8
|
-
defaultIcons["email"] = "mail";
|
|
9
|
-
defaultIcons["tel"] = "phone";
|
|
10
|
-
defaultIcons["url"] = "link";
|
|
11
|
-
})(defaultIcons || (defaultIcons = {}));
|
|
12
|
-
var iconSizes;
|
|
13
|
-
(function (iconSizes) {
|
|
14
|
-
iconSizes[iconSizes["small"] = 14] = "small";
|
|
15
|
-
iconSizes[iconSizes["medium"] = 16] = "medium";
|
|
16
|
-
iconSizes[iconSizes["large"] = 18] = "large";
|
|
17
|
-
})(iconSizes || (iconSizes = {}));
|
|
18
|
-
|
|
19
|
-
const InputTemplate = ({ elementType,
|
|
20
|
-
//textarea
|
|
21
|
-
rows,
|
|
22
|
-
//props
|
|
23
|
-
id, internalId, type, placeholder, value, size,
|
|
24
|
-
//,
|
|
25
|
-
unit, unitPrefix, maxLength,
|
|
26
|
-
//boolean
|
|
27
|
-
disabled, clearable, focused, readonly, isPasswordVisible, passwordToggle, noDefaultIcon, inValid, captionType, resize,
|
|
28
|
-
// custom functions
|
|
29
|
-
changePasswordVisibility, handleClear, steps,
|
|
30
|
-
//event functions
|
|
31
|
-
ref, handleBlur, handleFocus, handleInput, handleChange }) => {
|
|
32
|
-
const ElementTagType = Bcm.HtmlElementType[elementType] || Bcm.HtmlElementType.input;
|
|
33
|
-
type = (type === 'password' && isPasswordVisible) ? 'text' : type;
|
|
34
|
-
value = value || '';
|
|
35
|
-
value = !focused ? value + (value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 ? ' ' + unit : '') : value;
|
|
36
|
-
const templateHandleFocus = (e) => {
|
|
37
|
-
e.target.parentElement.classList.add('focused');
|
|
38
|
-
handleFocus(e);
|
|
39
|
-
};
|
|
40
|
-
const templateHandleBlur = (e) => {
|
|
41
|
-
e.target.parentElement.classList.remove('focused');
|
|
42
|
-
handleBlur(e);
|
|
43
|
-
};
|
|
44
|
-
var containerClass = classnames('bcm-input__container', ElementTagType === Bcm.HtmlElementType.textarea && classnames('bcm-input__textarea', 'textarea-size-' + Bcm.Size[size], 'resize-' + resize, 'textarea-' + size), ElementTagType === Bcm.HtmlElementType.input && classnames('input-size-' + Bcm.Size[size]), {
|
|
45
|
-
'focused': focused,
|
|
46
|
-
'clearable': clearable,
|
|
47
|
-
disabled,
|
|
48
|
-
readonly,
|
|
49
|
-
'invalid': inValid,
|
|
50
|
-
'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
|
|
51
|
-
// 'empty': value?.length < 1,
|
|
52
|
-
'error': captionType === 'error'
|
|
53
|
-
});
|
|
54
|
-
const caretContainer = classnames('caret-container', {
|
|
55
|
-
'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
|
|
56
|
-
'disabled': disabled || readonly || inValid
|
|
57
|
-
});
|
|
58
|
-
const inputClass = size === 'large' ? 'size-3' : 'size-2';
|
|
59
|
-
const unitClass = classnames(inputClass, 'unit-prefix');
|
|
60
|
-
return (h("div", { class: containerClass },
|
|
61
|
-
h("span", { hidden: true },
|
|
62
|
-
h("slot", null)),
|
|
63
|
-
h("span", { class: "input-prefix" },
|
|
64
|
-
h("slot", { name: "prefix" }),
|
|
65
|
-
unitPrefix && h("span", { class: unitClass }, unitPrefix)),
|
|
66
|
-
h(ElementTagType, Object.assign({ tabindex: "1", id: id, "bcm-internal-id": internalId, class: 'bcm-input-element ' + inputClass }, ((ElementTagType === Bcm.HtmlElementType.input && { type: type })), ((ElementTagType === Bcm.HtmlElementType.textarea && { rows: rows })), { value: value, maxLength: maxLength, placeholder: placeholder, disabled: disabled, readOnly: readonly, ref: (el) => ref(el), onBlur: (e) => templateHandleBlur(e), onFocus: (e) => templateHandleFocus(e), onInput: (e) => handleInput(e), onChange: (e) => handleChange(e) })),
|
|
67
|
-
(clearable && !disabled) &&
|
|
68
|
-
h("span", { class: "input-suffix input-suffix-button input-clear-button", onClick: (e) => handleClear(e) },
|
|
69
|
-
h("bcm-icon", { icon: "close-circle", type: "fill", size: iconSizes[size], color: "grey-7" })),
|
|
70
|
-
(type === 'password' && passwordToggle) && (h("span", { class: "input-suffix input-suffix-button", onClick: () => changePasswordVisibility() },
|
|
71
|
-
h("bcm-icon", { icon: isPasswordVisible ? "eye-invisible" : "eye", type: "outlined", size: iconSizes[size], color: "grey-7" }))),
|
|
72
|
-
(Object.keys(defaultIcons).includes(type) && !noDefaultIcon) && (h("span", { class: "input-suffix" },
|
|
73
|
-
h("bcm-icon", { icon: defaultIcons[type], type: "outlined", size: iconSizes[size], color: "grey-7" }))),
|
|
74
|
-
type === 'number' && (h("div", { class: caretContainer },
|
|
75
|
-
h("span", { class: "caret", onClick: () => steps('up') },
|
|
76
|
-
h("bcm-icon", { icon: "caret-up", type: "outlined", color: "grey-7", size: 8 })),
|
|
77
|
-
h("span", { class: "caret", onClick: () => steps('down') },
|
|
78
|
-
h("bcm-icon", { icon: "caret-down", type: "outlined", color: "grey-7", size: 8 })))),
|
|
79
|
-
type !== 'number' && (h("span", { class: "input-suffix" },
|
|
80
|
-
h("slot", { name: "suffix" })))));
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export { InputTemplate as I };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { g as getElement } from './index-dbc63c66.js';
|
|
2
|
-
import { s as snq } from './snq.es5-946822b8.js';
|
|
3
|
-
|
|
4
|
-
function JsonParse(attribute) {
|
|
5
|
-
return (proto, propName) => {
|
|
6
|
-
const { connectedCallback } = proto;
|
|
7
|
-
proto.connectedCallback = function () {
|
|
8
|
-
const host = getElement(this);
|
|
9
|
-
if (host[propName]) {
|
|
10
|
-
const value = snq(() => host.hasAttribute(attribute) ? host.getAttribute(attribute).valueOf() : host[attribute].valueOf(), null);
|
|
11
|
-
if (value) {
|
|
12
|
-
this[propName] = snq(() => typeof value === 'string' ? JSON.parse(value) : value, []);
|
|
13
|
-
host.removeAttribute(attribute);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return connectedCallback && connectedCallback.call(this);
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { JsonParse as J };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { h } from './index-dbc63c66.js';
|
|
2
|
-
import { c as classnames } from './index-55174f2a.js';
|
|
3
|
-
import { B as Bcm } from './bcm-ad02f9c9.js';
|
|
4
|
-
import { S as SlotTemplate } from './slot-template-f79b82ee.js';
|
|
5
|
-
|
|
6
|
-
const LabelTemplate = ({ required, value, size, form, htmlFor, type }) => {
|
|
7
|
-
size = size || Bcm.FontSize['size-1'];
|
|
8
|
-
type = type || Bcm.Status.default;
|
|
9
|
-
const labelClasses = classnames('bcm-label__text', size, {
|
|
10
|
-
'bcm-label__text-error': type === Bcm.Status.error,
|
|
11
|
-
});
|
|
12
|
-
return (h("label", { form: form, htmlFor: htmlFor, class: labelClasses },
|
|
13
|
-
" ",
|
|
14
|
-
h(SlotTemplate, { value: value }),
|
|
15
|
-
" ",
|
|
16
|
-
required && ('*')));
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { LabelTemplate as L };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { s as snq } from './snq.es5-946822b8.js';
|
|
2
|
-
|
|
3
|
-
class NumberHelper {
|
|
4
|
-
}
|
|
5
|
-
NumberHelper.isNumber = (str) => snq(() => /^[0-9]+$/i.test(str));
|
|
6
|
-
NumberHelper.convertToNumber = (str) => snq(() => Number(str));
|
|
7
|
-
NumberHelper.replaceNumber = (str) => snq(() => str.replace(/[^0-9]/g, ''));
|
|
8
|
-
NumberHelper.replaceFloat = (str) => snq(() => str.replace(/[^0-9.]/g, ''));
|
|
9
|
-
NumberHelper.toFixed = (num, fixed) => snq(() => num.toFixed(fixed));
|
|
10
|
-
NumberHelper.parseFloatFixed = (str, fixed) => snq(() => parseFloat(NumberHelper.replaceFloat(str)).toFixed(fixed));
|
|
11
|
-
NumberHelper.getDecimalLength = (str) => snq(() => str.split('.')[1] ? str.split('.')[1].length : 0);
|
|
12
|
-
|
|
13
|
-
export { NumberHelper as N };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { g as getElement } from './index-dbc63c66.js';
|
|
2
|
-
|
|
3
|
-
function AttrReflect(attribute) {
|
|
4
|
-
return (proto, propName) => {
|
|
5
|
-
const { connectedCallback } = proto;
|
|
6
|
-
proto.connectedCallback = function () {
|
|
7
|
-
const host = getElement(this);
|
|
8
|
-
registerAttrReflect(this, host, propName, attribute);
|
|
9
|
-
return connectedCallback && connectedCallback.call(this);
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function registerAttrReflect(component, element, propName, attribute) {
|
|
14
|
-
if ("IntersectionObserver" in window) {
|
|
15
|
-
let io = new IntersectionObserver((data) => {
|
|
16
|
-
if (data[0].isIntersecting) {
|
|
17
|
-
initProps(component, element, propName, attribute);
|
|
18
|
-
io.disconnect();
|
|
19
|
-
io = null;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
io.observe(element);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
// fall back to setTimeout for Safari and IE
|
|
26
|
-
setTimeout(() => {
|
|
27
|
-
initProps(component, element, propName, attribute);
|
|
28
|
-
}, 300);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function initProps(component, element, propName, attribute) {
|
|
32
|
-
component[propName] = element[attribute];
|
|
33
|
-
element.removeAttribute(attribute);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { AttrReflect as A };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { h } from './index-dbc63c66.js';
|
|
2
|
-
import { S as StringHelper } from './string-helper-35840f91.js';
|
|
3
|
-
|
|
4
|
-
const SlotTemplate = ({ value, className, name }) => {
|
|
5
|
-
return StringHelper.isNullOrEmpty(value) ? h("span", { class: className },
|
|
6
|
-
h("slot", Object.assign({}, (name && { name: name })))) : h("span", { class: className }, value);
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export { SlotTemplate as S };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
function snq(callback, defaultValue) {
|
|
2
|
-
try {
|
|
3
|
-
var result = callback();
|
|
4
|
-
return typeof result === 'undefined' ? defaultValue : result;
|
|
5
|
-
}
|
|
6
|
-
catch (err) {
|
|
7
|
-
if (err instanceof TypeError) {
|
|
8
|
-
return defaultValue;
|
|
9
|
-
}
|
|
10
|
-
throw err;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { snq as s };
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-2088bffa.js';
|
|
2
|
-
import { B as Bcm } from './bcm-ad02f9c9.js';
|
|
3
|
-
|
|
4
|
-
var slugify = createCommonjsModule(function (module, exports) {
|
|
5
|
-
;(function (name, root, factory) {
|
|
6
|
-
if ('object' === 'object') {
|
|
7
|
-
module.exports = factory();
|
|
8
|
-
module.exports['default'] = factory();
|
|
9
|
-
}
|
|
10
|
-
/* istanbul ignore next */
|
|
11
|
-
else if (typeof undefined === 'function' && undefined.amd) {
|
|
12
|
-
undefined(factory);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
root[name] = factory();
|
|
16
|
-
}
|
|
17
|
-
}('slugify', commonjsGlobal, function () {
|
|
18
|
-
var charMap = JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\\"","”":"\\\"","„":"\\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}');
|
|
19
|
-
var locales = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
|
|
20
|
-
|
|
21
|
-
function replace (string, options) {
|
|
22
|
-
if (typeof string !== 'string') {
|
|
23
|
-
throw new Error('slugify: string argument expected')
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
options = (typeof options === 'string')
|
|
27
|
-
? {replacement: options}
|
|
28
|
-
: options || {};
|
|
29
|
-
|
|
30
|
-
var locale = locales[options.locale] || {};
|
|
31
|
-
|
|
32
|
-
var replacement = options.replacement === undefined ? '-' : options.replacement;
|
|
33
|
-
|
|
34
|
-
var trim = options.trim === undefined ? true : options.trim;
|
|
35
|
-
|
|
36
|
-
var slug = string.normalize().split('')
|
|
37
|
-
// replace characters based on charMap
|
|
38
|
-
.reduce(function (result, ch) {
|
|
39
|
-
var appendChar = locale[ch] || charMap[ch] || ch;
|
|
40
|
-
if (appendChar === replacement) {
|
|
41
|
-
appendChar = ' ';
|
|
42
|
-
}
|
|
43
|
-
return result + appendChar
|
|
44
|
-
// remove not allowed characters
|
|
45
|
-
.replace(options.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, '')
|
|
46
|
-
}, '');
|
|
47
|
-
|
|
48
|
-
if (options.strict) {
|
|
49
|
-
slug = slug.replace(/[^A-Za-z0-9\s]/g, '');
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (trim) {
|
|
53
|
-
slug = slug.trim();
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Replace spaces with replacement character, treating multiple consecutive
|
|
57
|
-
// spaces as a single space.
|
|
58
|
-
slug = slug.replace(/\s+/g, replacement);
|
|
59
|
-
|
|
60
|
-
if (options.lower) {
|
|
61
|
-
slug = slug.toLowerCase();
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return slug
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
replace.extend = function (customMap) {
|
|
68
|
-
Object.assign(charMap, customMap);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
return replace
|
|
72
|
-
}));
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
class StringHelper {
|
|
76
|
-
}
|
|
77
|
-
StringHelper.lowercase = (str) => str.toLowerCase();
|
|
78
|
-
StringHelper.uppercase = (str) => str.toUpperCase();
|
|
79
|
-
StringHelper.capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
80
|
-
StringHelper.camelCase = (str) => str.replace(/\s(.)/g, function ($1) { return $1.toUpperCase(); }).replace(/\s/g, '');
|
|
81
|
-
StringHelper.kebabCase = (str) => str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
82
|
-
StringHelper.snakeCase = (str) => str.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase();
|
|
83
|
-
StringHelper.titleCase = (str) => str.replace(/\w\S*/g, function (txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); });
|
|
84
|
-
StringHelper.trim = (str) => str.trim();
|
|
85
|
-
StringHelper.trimLeft = (str) => str.trimLeft();
|
|
86
|
-
StringHelper.trimRight = (str) => str.trimRight();
|
|
87
|
-
StringHelper.trimAll = (str) => str.trim().replace(/\s+/g, ' ');
|
|
88
|
-
StringHelper.replace = (str, search, replace) => str.replace(search, replace);
|
|
89
|
-
StringHelper.remove = (str, search) => str.replace(search, '');
|
|
90
|
-
StringHelper.isNullOrEmpty = (str) => str === null || str === undefined || str === '';
|
|
91
|
-
StringHelper.localizationMessage = (str, args) => str.replace(/{(\d+)}/g, (match, number) => typeof args[number] != 'undefined' ? args[number] : match);
|
|
92
|
-
StringHelper.getMessage = (type, args) => StringHelper.localizationMessage(Bcm.FormErrorMessages[type], args);
|
|
93
|
-
StringHelper.split = (str, separator) => str.split(separator);
|
|
94
|
-
StringHelper.textContains = (str, search) => str.indexOf(search) !== -1;
|
|
95
|
-
StringHelper.textLimitter = (str, limit) => (str && str.length > limit) ? str.substring(0, limit) + '...' : str;
|
|
96
|
-
StringHelper.slugify = (str) => slugify(str, {
|
|
97
|
-
replacement: ' ',
|
|
98
|
-
remove: undefined,
|
|
99
|
-
lower: true,
|
|
100
|
-
strict: false,
|
|
101
|
-
locale: 'vi',
|
|
102
|
-
trim: false // trim leading and trailing replacement chars, defaults to `true`
|
|
103
|
-
});
|
|
104
|
-
StringHelper.highlight = (str, search) => {
|
|
105
|
-
const regex = new RegExp(search, 'gi');
|
|
106
|
-
return str.replace(regex, (match) => `<mark>${match}</mark>`);
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export { StringHelper as S };
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
const variantOptions = {
|
|
2
|
-
save: {
|
|
3
|
-
text: 'Save',
|
|
4
|
-
class: 'success',
|
|
5
|
-
icon: 'save',
|
|
6
|
-
iconPosition: 'prefix',
|
|
7
|
-
},
|
|
8
|
-
ok: {
|
|
9
|
-
text: 'Ok',
|
|
10
|
-
class: 'success',
|
|
11
|
-
icon: 'check',
|
|
12
|
-
iconPosition: 'prefix',
|
|
13
|
-
},
|
|
14
|
-
new: {
|
|
15
|
-
text: 'New',
|
|
16
|
-
class: 'success',
|
|
17
|
-
icon: 'plus',
|
|
18
|
-
iconPosition: 'prefix',
|
|
19
|
-
},
|
|
20
|
-
add: {
|
|
21
|
-
text: 'Add',
|
|
22
|
-
class: 'success',
|
|
23
|
-
icon: 'plus',
|
|
24
|
-
iconPosition: 'prefix',
|
|
25
|
-
},
|
|
26
|
-
create: {
|
|
27
|
-
text: 'Create',
|
|
28
|
-
class: 'success',
|
|
29
|
-
icon: 'form',
|
|
30
|
-
iconPosition: 'prefix',
|
|
31
|
-
},
|
|
32
|
-
prev: {
|
|
33
|
-
text: 'Prev',
|
|
34
|
-
class: '',
|
|
35
|
-
icon: 'arrow-left',
|
|
36
|
-
iconPosition: 'prefix',
|
|
37
|
-
},
|
|
38
|
-
next: {
|
|
39
|
-
text: 'Next',
|
|
40
|
-
class: '',
|
|
41
|
-
icon: 'arrow-right',
|
|
42
|
-
iconPosition: 'suffix',
|
|
43
|
-
},
|
|
44
|
-
apply: {
|
|
45
|
-
text: 'Apply',
|
|
46
|
-
class: '',
|
|
47
|
-
icon: 'check-circle',
|
|
48
|
-
iconPosition: 'prefix',
|
|
49
|
-
},
|
|
50
|
-
submit: {
|
|
51
|
-
text: 'Submit',
|
|
52
|
-
class: '',
|
|
53
|
-
icon: 'save',
|
|
54
|
-
iconPosition: 'prefix',
|
|
55
|
-
},
|
|
56
|
-
send: {
|
|
57
|
-
text: 'Send',
|
|
58
|
-
class: 'success',
|
|
59
|
-
icon: 'send',
|
|
60
|
-
iconPosition: 'prefix',
|
|
61
|
-
},
|
|
62
|
-
delete: {
|
|
63
|
-
text: 'Delete',
|
|
64
|
-
class: 'warning',
|
|
65
|
-
icon: 'delete',
|
|
66
|
-
iconPosition: 'prefix',
|
|
67
|
-
},
|
|
68
|
-
cancel: {
|
|
69
|
-
text: 'Cancel',
|
|
70
|
-
class: 'warning',
|
|
71
|
-
icon: 'close',
|
|
72
|
-
iconPosition: 'prefix',
|
|
73
|
-
},
|
|
74
|
-
decline: {
|
|
75
|
-
text: 'Decline',
|
|
76
|
-
class: 'warning',
|
|
77
|
-
icon: 'stop',
|
|
78
|
-
iconPosition: 'prefix',
|
|
79
|
-
},
|
|
80
|
-
close: {
|
|
81
|
-
text: 'Close',
|
|
82
|
-
class: 'warning',
|
|
83
|
-
icon: 'close-circle',
|
|
84
|
-
iconPosition: 'prefix',
|
|
85
|
-
},
|
|
86
|
-
archive: {
|
|
87
|
-
text: 'Archive',
|
|
88
|
-
class: 'warning',
|
|
89
|
-
icon: 'folder-open',
|
|
90
|
-
iconPosition: 'prefix',
|
|
91
|
-
},
|
|
92
|
-
remove: {
|
|
93
|
-
text: 'Remove',
|
|
94
|
-
class: 'warning',
|
|
95
|
-
icon: 'minus-circle',
|
|
96
|
-
iconPosition: 'prefix',
|
|
97
|
-
},
|
|
98
|
-
edit: {
|
|
99
|
-
text: 'Edit',
|
|
100
|
-
class: '',
|
|
101
|
-
icon: 'edit',
|
|
102
|
-
iconPosition: 'prefix',
|
|
103
|
-
},
|
|
104
|
-
export: {
|
|
105
|
-
text: 'Export',
|
|
106
|
-
class: '',
|
|
107
|
-
icon: 'export',
|
|
108
|
-
iconPosition: 'prefix',
|
|
109
|
-
},
|
|
110
|
-
import: {
|
|
111
|
-
text: 'Import',
|
|
112
|
-
class: '',
|
|
113
|
-
icon: 'import',
|
|
114
|
-
iconPosition: 'prefix',
|
|
115
|
-
},
|
|
116
|
-
filter: {
|
|
117
|
-
text: 'Filter',
|
|
118
|
-
class: '',
|
|
119
|
-
icon: 'filter',
|
|
120
|
-
iconPosition: 'prefix',
|
|
121
|
-
},
|
|
122
|
-
update: {
|
|
123
|
-
text: 'Update',
|
|
124
|
-
class: '',
|
|
125
|
-
icon: 'sync',
|
|
126
|
-
iconPosition: 'prefix',
|
|
127
|
-
},
|
|
128
|
-
download: {
|
|
129
|
-
text: 'Download',
|
|
130
|
-
class: '',
|
|
131
|
-
icon: 'download',
|
|
132
|
-
iconPosition: 'prefix',
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
var VariantProps;
|
|
136
|
-
(function (VariantProps) {
|
|
137
|
-
VariantProps["save"] = "save";
|
|
138
|
-
VariantProps["ok"] = "ok";
|
|
139
|
-
VariantProps["new"] = "new";
|
|
140
|
-
VariantProps["add"] = "add";
|
|
141
|
-
VariantProps["create"] = "create";
|
|
142
|
-
VariantProps["apply"] = "apply";
|
|
143
|
-
VariantProps["prev"] = "prev";
|
|
144
|
-
VariantProps["next"] = "next";
|
|
145
|
-
VariantProps["send"] = "send";
|
|
146
|
-
VariantProps["delete"] = "delete";
|
|
147
|
-
VariantProps["cancel"] = "cancel";
|
|
148
|
-
VariantProps["decline"] = "decline";
|
|
149
|
-
VariantProps["close"] = "close";
|
|
150
|
-
VariantProps["archive"] = "archive";
|
|
151
|
-
VariantProps["remove"] = "remove";
|
|
152
|
-
VariantProps["edit"] = "edit";
|
|
153
|
-
VariantProps["export"] = "export";
|
|
154
|
-
VariantProps["import"] = "import";
|
|
155
|
-
VariantProps["filter"] = "filter";
|
|
156
|
-
VariantProps["update"] = "update";
|
|
157
|
-
VariantProps["download"] = "download";
|
|
158
|
-
})(VariantProps || (VariantProps = {}));
|
|
159
|
-
const iconSizes = {
|
|
160
|
-
default: {
|
|
161
|
-
large: 16,
|
|
162
|
-
medium: 14,
|
|
163
|
-
small: 14,
|
|
164
|
-
},
|
|
165
|
-
iconOnly: {
|
|
166
|
-
large: 20,
|
|
167
|
-
medium: 18,
|
|
168
|
-
small: 16,
|
|
169
|
-
},
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
export { iconSizes as i, variantOptions as v };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum defaultIcons {
|
|
2
|
-
search = "search",
|
|
3
|
-
email = "mail",
|
|
4
|
-
tel = "phone",
|
|
5
|
-
url = "link"
|
|
6
|
-
}
|
|
7
|
-
export declare enum iconSizes {
|
|
8
|
-
small = 14,
|
|
9
|
-
medium = 16,
|
|
10
|
-
large = 18
|
|
11
|
-
}
|
|
12
|
-
export declare type DefaultIcon = keyof typeof defaultIcons;
|
|
13
|
-
export declare type iconSize = keyof typeof iconSizes;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const lineSizes: {
|
|
2
|
-
small: {
|
|
3
|
-
textSize: string;
|
|
4
|
-
iconSize: number;
|
|
5
|
-
};
|
|
6
|
-
medium: {
|
|
7
|
-
textSize: string;
|
|
8
|
-
iconSize: number;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare const circleSizes: {
|
|
12
|
-
small: {
|
|
13
|
-
textSize: string;
|
|
14
|
-
iconSize: number;
|
|
15
|
-
circleSize: number;
|
|
16
|
-
radius: number;
|
|
17
|
-
};
|
|
18
|
-
medium: {
|
|
19
|
-
textSize: string;
|
|
20
|
-
iconSize: number;
|
|
21
|
-
circleSize: number;
|
|
22
|
-
radius: number;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import { DirectionTypes } from '../../../models/bcm-types';
|
|
3
|
-
export declare class BcmRange implements ComponentInterface {
|
|
4
|
-
el: HTMLElement;
|
|
5
|
-
_id: string;
|
|
6
|
-
min: number;
|
|
7
|
-
max: number;
|
|
8
|
-
step: number;
|
|
9
|
-
value: any;
|
|
10
|
-
height: string;
|
|
11
|
-
name: string;
|
|
12
|
-
direction: DirectionTypes;
|
|
13
|
-
_prefix: string;
|
|
14
|
-
_suffix: string;
|
|
15
|
-
multiple: boolean;
|
|
16
|
-
leftValue: number;
|
|
17
|
-
rightValue: number;
|
|
18
|
-
leftMin: number;
|
|
19
|
-
change: EventEmitter;
|
|
20
|
-
connectedCallback(): void;
|
|
21
|
-
componentDidLoad(): void;
|
|
22
|
-
setValue(value: any): Promise<any>;
|
|
23
|
-
setClear(): Promise<void>;
|
|
24
|
-
resetCaption(): Promise<boolean>;
|
|
25
|
-
getValue(): Promise<any>;
|
|
26
|
-
syncValues(type: any, event: any): void;
|
|
27
|
-
handleChange(): void;
|
|
28
|
-
setThumbPosition(type: string): void;
|
|
29
|
-
hiddenLeftThumb(): void;
|
|
30
|
-
getTooltip(type: any): any;
|
|
31
|
-
getThumb(type: string): any;
|
|
32
|
-
getInput(type: string): any;
|
|
33
|
-
touchToMove(value: any): void;
|
|
34
|
-
hoverTick(id: any, status: any): void;
|
|
35
|
-
render(): any;
|
|
36
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
export declare class BcmSearch2 implements ComponentInterface {
|
|
3
|
-
el: HTMLElement;
|
|
4
|
-
inputElement: HTMLInputElement;
|
|
5
|
-
_id: string;
|
|
6
|
-
placeholder: string;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
readonly: boolean;
|
|
9
|
-
clearable: boolean;
|
|
10
|
-
limit: number;
|
|
11
|
-
data: any;
|
|
12
|
-
tick: {};
|
|
13
|
-
isActiveClearable: boolean;
|
|
14
|
-
bcmOnSearch: EventEmitter;
|
|
15
|
-
debounceHandler: () => void;
|
|
16
|
-
componentDidLoad(): Promise<void>;
|
|
17
|
-
dataChanged(newValue: any, oldValue: any): Promise<void>;
|
|
18
|
-
private initState;
|
|
19
|
-
private markForCheck;
|
|
20
|
-
handleInput(): void;
|
|
21
|
-
onBcmFocus(): Promise<void>;
|
|
22
|
-
onBcmBlur(): Promise<void>;
|
|
23
|
-
onBcmSelect(): Promise<void>;
|
|
24
|
-
handleFocus(): void;
|
|
25
|
-
handleBlur(): void;
|
|
26
|
-
handleChange(): void;
|
|
27
|
-
handleClear(): Promise<void>;
|
|
28
|
-
onSearchValue(event: any, instance: any): void;
|
|
29
|
-
render(): any;
|
|
30
|
-
}
|