@ldmjs/ui 1.0.0-dev-20 → 1.0.0-dev-21
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/css/index.css +4 -2
- package/dist/index.js +436 -79
- package/dist/types/options.d.ts +1 -0
- package/package.json +2 -1
package/dist/css/index.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.loader[data-v-a5beedac]{width:100%;height:100%;top:0px;left:0px;display:flex;justify-content:center;align-items:center;overflow:hidden;transition:opacity 0.15s linear}.loader__icon[data-v-a5beedac]{vertical-align:middle;height:48px}.loader__icon-gray[data-v-a5beedac]{color:var(--grey-l-5)}.loader .circle.small[data-v-a5beedac]{width:calc(var(--font-size) + 4px);height:calc(var(--font-size) + 4px);border-width:3px}.loader .circle.big[data-v-a5beedac]{width:calc(var(--font-size) * 3);height:calc(var(--font-size) * 3);border-width:3px}.loader .circle[data-v-a5beedac]{animation:rotating-a5beedac 0.7s linear infinite;width:calc(var(--font-size) * 2);height:calc(var(--font-size) * 2);border-radius:50%;border:2px solid transparent}.loader.loader__color-primary[data-v-a5beedac]:not(.loader__transparent){background:rgba(255,255,255,0.5)}.loader.loader__color-primary .circle[data-v-a5beedac]{border-right-color:var(--primary);border-bottom-color:var(--primary)}.loader.loader__color-white[data-v-a5beedac]{background:none}.loader.loader__color-white .circle[data-v-a5beedac]{border-right-color:var(--white);border-bottom-color:var(--white)}.loader.loader__white-bg[data-v-a5beedac]:not(.loader__transparent){background:#fff}.loading-mask-global[data-v-a5beedac]{position:fixed !important;width:100vw !important;height:100vh !important}.loading-mask[data-v-a5beedac]{position:absolute;-webkit-backface-visibility:hidden;backface-visibility:hidden}.loader__relative[data-v-a5beedac]{position:relative}@-moz-keyframes rotating-a5beedac{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-webkit-keyframes rotating-a5beedac{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-o-keyframes rotating-a5beedac{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes rotating-a5beedac{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
|
|
2
2
|
|
|
3
|
-
.ld-splitter[data-v-
|
|
3
|
+
.ld-splitter[data-v-4f01e865]{height:inherit;display:flex}.ld-splitter .splitter-pane[data-v-4f01e865]{height:inherit;overflow-y:auto;background:var(--white)}.ld-splitter .splitter[data-v-4f01e865]{display:flex;align-items:center;width:7px;background-color:var(--white) !important;border-width:0 1px;border-color:var(--grey-l-5);border-style:solid}.ld-splitter.splitter[data-v-4f01e865]{width:100%;border-left:none;border-right:none}
|
|
4
4
|
|
|
5
5
|
.label[data-v-12071c41]{word-wrap:break-word;max-width:100%;padding-bottom:2px;color:var(--label) !important;font-size:var(--font-size)}.label-wrapper[data-v-12071c41]{display:flex;align-items:center;min-height:var(--input-height)}.require[data-v-12071c41]::after{content:'*';display:inline-block;color:var(--error)}
|
|
6
6
|
|
|
7
7
|
.ld-edit-text[data-v-5dac00fe]{min-width:100%}.input-class[data-v-5dac00fe]{height:var(--input-height);font-size:var(--font-size);max-width:100%;border-radius:var(--border-radius);border:1px solid var(--grey-l-5);padding:0 6px}.input-class[data-v-5dac00fe]:not(.disabled){background-color:var(--white)}.input-class[data-v-5dac00fe]:focus{border:1px solid var(--grey-l-4);outline:none}.input-class__suffix[data-v-5dac00fe]{position:absolute;top:3px;right:6px;color:var(--label)}
|
|
8
8
|
|
|
9
|
-
.ld-datepicker[data-v-
|
|
9
|
+
.ld-datepicker[data-v-b65d2d3a]{display:flex;min-width:100%;max-width:100%;width:100%;font-size:var(--font-size)}.ld-datepicker.column[data-v-b65d2d3a]{flex-flow:column nowrap}.ld-datepicker-validate[data-v-b65d2d3a]{overflow:hidden;height:20px}.custom-time-picker[data-v-b65d2d3a]{max-width:var(--date-time-width);border-radius:var(--border-radius);background-color:var(--white);font-size:inherit !important}.custom-time-picker-validate[data-v-b65d2d3a]{overflow:hidden;height:20px}.date-input[data-v-b65d2d3a]{padding-left:5px;width:100%;font-size:var(--font-size)}.time-input[data-v-b65d2d3a]{width:100%;padding-left:5px;font-size:var(--font-size)}.time-input-btn[data-v-b65d2d3a]{padding-right:5px}.dt-col[data-v-b65d2d3a]{max-width:110px}.time-selector[data-v-b65d2d3a]{display:flex;flex-wrap:wrap;max-width:186px;padding:3px}.time-selector>span[data-v-b65d2d3a]{display:inline-block;width:100%;text-align:center;font-family:'Roboto';font-size:var(--font-size-2);font-weight:700}.time-selector .v-btn[data-v-b65d2d3a]{width:30px !important;height:30px !important;max-width:30px !important;max-height:30px !important;min-width:30px !important;min-height:30px !important;margin:3px}[data-v-b65d2d3a] .vc-popover-content-wrapper{position:fixed !important}[data-v-b65d2d3a] .v-input--is-disabled input{color:var(--text) !important}[data-v-b65d2d3a] .vc-popover-content{border-color:var(--grey-l-5)}[data-v-b65d2d3a] .vc-title span{color:var(--text);font-size:var(--font-size-2);font-weight:600;font-family:'Roboto'}[data-v-b65d2d3a] .vc-arrow{color:var(--grey)}[data-v-b65d2d3a] .vc-weekday{color:var(--grey-l-2);font-size:var(--font-size);font-weight:600;font-family:'Roboto'}[data-v-b65d2d3a] .vc-day-content{color:var(--text);font-size:var(--font-size);font-weight:400;font-family:'Roboto'}[data-v-b65d2d3a] .vc-day-content.vc-disabled{color:var(--grey-l-2) !important}[data-v-b65d2d3a] .vc-day-content.vc-highlight-content-solid{color:var(--white) !important;font-weight:600 !important}
|
|
10
10
|
|
|
11
11
|
.ld-tabs[data-v-de9a059c]{margin-left:0;display:flex;height:100%;width:100%;overflow-y:auto}.ld-tabs .header-text[data-v-de9a059c]{font-size:var(--font-size-2)}.ld-tabs-mobile[data-v-de9a059c]{height:100%}.ld-tabs .body[data-v-de9a059c]{display:flex;flex-flow:column nowrap;max-width:100%;width:100%;height:100%;justify-content:space-between;padding-top:3px}.ld-tabs .vertical-body[data-v-de9a059c]{--w: 44px;display:flex;flex-flow:column nowrap;width:calc(100% - var(--w)) !important;height:100%}.v-window[data-v-de9a059c]{background-color:var(--white);box-shadow:1px 0 var(--grey-l-5),-1px 0 0 var(--grey-l-5);overflow-y:auto;height:100%;width:100%}.vertical-window.v-window[data-v-de9a059c]{padding:10px 12px;border-bottom:1px solid var(--grey-l-5);border-right:1px solid var(--grey-l-5);border-top:1px solid var(--grey-l-5)}.vertical-window.v-window--no-padding[data-v-de9a059c]{padding:0 !important}[data-v-de9a059c] .ld-tabs .v-tab{background-color:transparent}[data-v-de9a059c] .ld-tabs .v-slide-group-item--active{background-color:var(--white)}[data-v-de9a059c] .v-window.mobile .tg-field .v-row .v-col{flex:1 0 0 !important}[data-v-de9a059c] .v-window.mobile .tg-field .text-viewer-wrapper .v-col{flex:1 0 0 !important}[data-v-de9a059c] .vertical-tab .v-tab{justify-content:flex-start;border:1px solid var(--grey-l-5);border-radius:0 !important;text-transform:none !important;width:100%;min-width:auto !important}[data-v-de9a059c] .vertical-tab .v-tab:last-child{border-bottom:1px solid var(--grey-l-5) !important}[data-v-de9a059c] .vertical-tab .v-slide-group__content{flex-flow:column nowrap;height:100% !important;width:100% !important}[data-v-de9a059c] .vertical-tab .v-slide-group__content .v-btn__content{text-overflow:ellipsis;display:inline-flex;justify-content:flex-start;gap:4px;white-space:nowrap;overflow:hidden}[data-v-de9a059c] .v-tab{height:var(--ld-tab-height) !important;display:flex !important;text-transform:uppercase !important;border-bottom:none !important;padding:0 12px !important;font-size:var(--font-size);color:var(--text) !important;background-color:var(--white);letter-spacing:0 !important}[data-v-de9a059c] .v-tab.v-slide-group-item--active{border-right-color:transparent}[data-v-de9a059c] .v-slide-group-item--active .v-btn__content{font-weight:bold;color:var(--primary) !important}[data-v-de9a059c] .v-btn:hover::before{background-color:inherit}[data-v-de9a059c] .v-slide-group--vertical{border-color:var(--grey-l-5);border:1px}[data-v-de9a059c] .v-slide-group--vertical .v-tab__slider{width:0px}[data-v-de9a059c] .v-tabs-bar{flex:none;height:fit-content;height:-moz-max-content;max-height:fit-content;max-height:-moz-max-content;z-index:1}[data-v-de9a059c] .v-window-item{height:100%}[data-v-de9a059c] .ld-tabs-mobile.hide-tabs .v-tab{display:none !important}[data-v-de9a059c] .ld-tabs-mobile.hide-body .v-slide-group{width:100% !important}[data-v-de9a059c] .ld-tabs-mobile.hide-body .v-window{display:none !important}[data-v-de9a059c] .v-tabs-mobile .v-slide-group__content .v-btn__content{display:block !important}
|
|
12
12
|
|
|
@@ -26,3 +26,5 @@
|
|
|
26
26
|
|
|
27
27
|
.ld-combobox[data-v-7bbbdbd8]{display:flex;min-width:100%;max-width:100%;width:100%}.ld-combobox .combobox-validate[data-v-7bbbdbd8]{overflow:hidden;height:20px}.ld-combobox .combobox-loading[data-v-7bbbdbd8]{position:absolute;left:0;bottom:0;width:calc(100% - var(--input-height));height:3px;overflow:hidden;background-color:var(--grey-l-5)}.ld-combobox .combobox-loading[data-v-7bbbdbd8]:before{content:'';display:block;position:absolute;top:0;left:0;width:25%;height:100%;background-color:var(--primary);animation:loading-7bbbdbd8 1.4s linear;animation-iteration-count:infinite}@keyframes loading-7bbbdbd8{from{transform:translateX(-300%)}to{transform:translateX(500%)}}
|
|
28
28
|
|
|
29
|
+
.time-selector[data-v-256abd0d]{display:flex;flex-wrap:wrap;max-width:186px;padding:3px}.time-selector>span[data-v-256abd0d]{display:inline-block;width:100%;text-align:center;font-family:'Roboto';font-size:var(--font-size-2);font-weight:700}.time-selector .v-btn[data-v-256abd0d]{width:30px !important;height:30px !important;max-width:30px !important;max-height:30px !important;min-width:30px !important;min-height:30px !important;margin:3px}.ld-timepicker-validate[data-v-256abd0d]{overflow:hidden;height:20px}
|
|
30
|
+
|
package/dist/index.js
CHANGED
|
@@ -816,30 +816,16 @@ function ld_button_reg(vue, options) {
|
|
|
816
816
|
}
|
|
817
817
|
/* harmony default export */ const src_ld_button = (ld_button_reg);
|
|
818
818
|
|
|
819
|
-
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-splitter/ld-splitter.vue?vue&type=template&id=
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
const
|
|
823
|
-
const
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
viewBox: "0 0 1.5875 8.4666668",
|
|
827
|
-
height: "32",
|
|
828
|
-
width: "6"
|
|
829
|
-
}, [
|
|
830
|
-
/*#__PURE__*/(0,external_vue_.createElementVNode)("g", null, [
|
|
831
|
-
/*#__PURE__*/(0,external_vue_.createElementVNode)("path", {
|
|
832
|
-
transform: "scale(0.26458333)",
|
|
833
|
-
d: "M 0.38476562 0.7265625 L 0.38476562 3.2910156 L 2.53125 3.2910156 L 2.53125 0.7265625 L 0.38476562 0.7265625 z M 3.4941406 0.7265625 L 3.4941406 3.2910156 L 5.6699219 3.2910156 L 5.6699219 0.7265625 L 3.4941406 0.7265625 z M 0.38476562 4.2519531 L 0.38476562 6.8144531 L 2.53125 6.8144531 L 2.53125 4.2519531 L 0.38476562 4.2519531 z M 3.4941406 4.2519531 L 3.4941406 6.8144531 L 5.6699219 6.8144531 L 5.6699219 4.2519531 L 3.4941406 4.2519531 z M 0.38476562 7.7753906 L 0.38476562 10.339844 L 2.53125 10.339844 L 2.53125 7.7753906 L 0.38476562 7.7753906 z M 3.4941406 7.7753906 L 3.4941406 10.339844 L 5.6699219 10.339844 L 5.6699219 7.7753906 L 3.4941406 7.7753906 z M 0.38476562 11.298828 L 0.38476562 13.863281 L 2.53125 13.863281 L 2.53125 11.298828 L 0.38476562 11.298828 z M 3.4941406 11.298828 L 3.4941406 13.863281 L 5.6699219 13.863281 L 5.6699219 11.298828 L 3.4941406 11.298828 z M 0.38476562 14.822266 L 0.38476562 17.386719 L 2.53125 17.386719 L 2.53125 14.822266 L 0.38476562 14.822266 z M 3.4941406 14.822266 L 3.4941406 17.386719 L 5.6699219 17.386719 L 5.6699219 14.822266 L 3.4941406 14.822266 z M 0.38476562 18.347656 L 0.38476562 20.910156 L 2.53125 20.910156 L 2.53125 18.347656 L 0.38476562 18.347656 z M 3.4941406 18.347656 L 3.4941406 20.910156 L 5.6699219 20.910156 L 5.6699219 18.347656 L 3.4941406 18.347656 z M 0.38476562 21.871094 L 0.38476562 24.435547 L 2.53125 24.435547 L 2.53125 21.871094 L 0.38476562 21.871094 z M 3.4941406 21.871094 L 3.4941406 24.435547 L 5.6699219 24.435547 L 5.6699219 21.871094 L 3.4941406 21.871094 z M 0.38476562 25.394531 L 0.38476562 27.958984 L 2.53125 27.958984 L 2.53125 25.394531 L 0.38476562 25.394531 z M 3.4941406 25.394531 L 3.4941406 27.958984 L 5.6699219 27.958984 L 5.6699219 25.394531 L 3.4941406 25.394531 z M 0.38476562 28.917969 L 0.38476562 31.482422 L 2.53125 31.482422 L 2.53125 28.917969 L 0.38476562 28.917969 z M 3.4941406 28.917969 L 3.4941406 31.482422 L 5.6699219 31.482422 L 5.6699219 28.917969 L 3.4941406 28.917969 z ",
|
|
834
|
-
style: {"fill":"#cccccc","stroke-width":"0.831496"}
|
|
835
|
-
})
|
|
836
|
-
])
|
|
837
|
-
], -1))
|
|
838
|
-
const ld_splittervue_type_template_id_c282e58e_scoped_true_hoisted_2 = [
|
|
839
|
-
ld_splittervue_type_template_id_c282e58e_scoped_true_hoisted_1
|
|
819
|
+
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-splitter/ld-splitter.vue?vue&type=template&id=4f01e865&scoped=true
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
const ld_splittervue_type_template_id_4f01e865_scoped_true_withScopeId = n => (_pushScopeId("data-v-4f01e865"),n=n(),_popScopeId(),n)
|
|
823
|
+
const ld_splittervue_type_template_id_4f01e865_scoped_true_hoisted_1 = /*#__PURE__*/(0,external_vue_.createStaticVNode)("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"6\" height=\"45\" viewBox=\"0 0 1.5875 11.90625\" version=\"1.1\" data-v-4f01e865><g id=\"layer1\" data-v-4f01e865><path d=\"M 0.07060175,0.12564185 V 0.81087133 H 0.63904249 V 0.12564185 Z m 0.9151896,0.005168 V 0.81603896 H 1.5542321 V 0.13080949 Z M 0.07060175,1.340038 V 2.0252675 H 0.63904249 V 1.340038 Z m 0.9151896,0.00517 V 2.0304351 H 1.5542321 V 1.3452056 Z M 0.07060175,2.5544342 V 3.2396635 H 0.63904249 V 2.5544342 Z m 0.9151896,0.00517 V 3.2448313 H 1.5542321 V 2.5596018 Z m -0.9151896,1.209226 V 4.4540597 H 0.63904249 V 3.7688302 Z m 0.9151896,0.00517 V 4.4592276 H 1.5542321 V 3.773998 Z M 0.07060175,4.9832264 V 5.6684559 H 0.63904249 V 4.9832264 Z m 0.9151896,0.00517 V 5.6736235 H 1.5542321 V 4.9883942 Z\" style=\"fill:#b3b3b3;stroke-width:0.219999;\" id=\"rect864\" data-v-4f01e865></path> <path id=\"rect864-4\" style=\"fill:#b3b3b3;stroke-width:0.219999;\" d=\"m 0.07060179,4.9832264 v 0.6852295 h 0.5684407 V 4.9832264 Z m 0.9151896,0.00517 V 5.6736235 H 1.5542322 V 4.988394 Z m -0.9151896,1.2092261 v 0.6852296 h 0.5684407 V 6.1976225 Z m 0.9151896,0.00517 V 6.8880197 H 1.5542322 V 6.2027902 Z m -0.9151896,1.2092262 v 0.6852294 h 0.5684407 V 7.4120187 Z m 0.9151896,0.00517 V 8.102416 H 1.5542322 V 7.4171864 Z m -0.9151896,1.2092261 v 0.6852296 h 0.5684407 V 8.6264148 Z m 0.9151896,0.00517 V 9.3168117 H 1.5542322 V 8.6315827 Z M 0.07060179,9.840811 v 0.685228 h 0.5684407 V 9.840811 Z m 0.9151896,0.00517 v 0.685225 H 1.5542322 V 9.8459783 Z\" data-v-4f01e865></path> <path id=\"rect864-7\" style=\"fill:#b3b3b3;stroke-width:0.219999;\" d=\"M 0.07060179,6.1976225 V 6.882852 h 0.5684407 V 6.1976225 Z m 0.9151896,0.00517 V 6.8880197 H 1.5542322 V 6.2027902 Z m -0.9151896,1.2092261 v 0.6852296 h 0.5684407 V 7.4120186 Z m 0.9151896,0.00517 V 8.1024158 H 1.5542322 V 7.4171863 Z m -0.9151896,1.2092262 v 0.6852294 h 0.5684407 V 8.6264148 Z m 0.9151896,0.00517 V 9.3168121 H 1.5542322 V 8.6315825 Z M 0.07060179,9.840811 v 0.685229 h 0.5684407 V 9.840811 Z m 0.9151896,0.0052 v 0.685226 H 1.5542322 V 9.846009 Z m -0.9151896,1.209225 v 0.68523 h 0.5684407 v -0.68523 z m 0.9151896,0.0052 v 0.685227 H 1.5542322 v -0.68523 z\" data-v-4f01e865></path></g></svg>", 1)
|
|
824
|
+
const ld_splittervue_type_template_id_4f01e865_scoped_true_hoisted_2 = [
|
|
825
|
+
ld_splittervue_type_template_id_4f01e865_scoped_true_hoisted_1
|
|
840
826
|
]
|
|
841
827
|
|
|
842
|
-
function
|
|
828
|
+
function ld_splittervue_type_template_id_4f01e865_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
843
829
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
|
|
844
830
|
style: (0,external_vue_.normalizeStyle)({
|
|
845
831
|
cursor: _ctx.active ? (_ctx.horizontal ? 'ns-resize' : 'ew-resize') : '',
|
|
@@ -867,7 +853,7 @@ function ld_splittervue_type_template_id_c282e58e_scoped_true_render(_ctx, _cach
|
|
|
867
853
|
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.onClick && _ctx.onClick(...args))),
|
|
868
854
|
onTouchstart: _cache[1] || (_cache[1] = (0,external_vue_.withModifiers)((...args) => (_ctx.onDown && _ctx.onDown(...args)), ["prevent"])),
|
|
869
855
|
onMousedown: _cache[2] || (_cache[2] = (...args) => (_ctx.onDown && _ctx.onDown(...args)))
|
|
870
|
-
},
|
|
856
|
+
}, ld_splittervue_type_template_id_4f01e865_scoped_true_hoisted_2, 38), [
|
|
871
857
|
[external_vue_.vShow, _ctx.leftVisibled && _ctx.rightVisibled]
|
|
872
858
|
]),
|
|
873
859
|
(0,external_vue_.createTextVNode)(),
|
|
@@ -881,7 +867,7 @@ function ld_splittervue_type_template_id_c282e58e_scoped_true_render(_ctx, _cach
|
|
|
881
867
|
])
|
|
882
868
|
], 38))
|
|
883
869
|
}
|
|
884
|
-
;// CONCATENATED MODULE: ./src/ld-splitter/ld-splitter.vue?vue&type=template&id=
|
|
870
|
+
;// CONCATENATED MODULE: ./src/ld-splitter/ld-splitter.vue?vue&type=template&id=4f01e865&scoped=true
|
|
885
871
|
|
|
886
872
|
;// CONCATENATED MODULE: ./node_modules/lodash-es/isObject.js
|
|
887
873
|
/**
|
|
@@ -1607,7 +1593,7 @@ SplitterComponent = ld_splittervue_type_script_lang_js_external_decorate([
|
|
|
1607
1593
|
;
|
|
1608
1594
|
|
|
1609
1595
|
|
|
1610
|
-
const ld_splitter_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_splittervue_type_script_lang_js_external, [['render',
|
|
1596
|
+
const ld_splitter_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_splittervue_type_script_lang_js_external, [['render',ld_splittervue_type_template_id_4f01e865_scoped_true_render],['__scopeId',"data-v-4f01e865"]])
|
|
1611
1597
|
|
|
1612
1598
|
/* harmony default export */ const ld_splitter = (ld_splitter_exports_);
|
|
1613
1599
|
;// CONCATENATED MODULE: ./src/ld-splitter/index.ts
|
|
@@ -2953,15 +2939,15 @@ function ld_edit_text_reg(vue, options) {
|
|
|
2953
2939
|
}
|
|
2954
2940
|
/* harmony default export */ const src_ld_edit_text = (ld_edit_text_reg);
|
|
2955
2941
|
|
|
2956
|
-
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=
|
|
2942
|
+
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=b65d2d3a&scoped=true
|
|
2957
2943
|
|
|
2958
2944
|
|
|
2959
|
-
const
|
|
2960
|
-
const
|
|
2961
|
-
const
|
|
2962
|
-
const
|
|
2945
|
+
const ld_datepickervue_type_template_id_b65d2d3a_scoped_true_withScopeId = n => (_pushScopeId("data-v-b65d2d3a"),n=n(),_popScopeId(),n)
|
|
2946
|
+
const ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_1 = { class: "time-selector" }
|
|
2947
|
+
const ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_2 = { key: 0 }
|
|
2948
|
+
const ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_3 = { key: 1 }
|
|
2963
2949
|
|
|
2964
|
-
function
|
|
2950
|
+
function ld_datepickervue_type_template_id_b65d2d3a_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2965
2951
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label")
|
|
2966
2952
|
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon")
|
|
2967
2953
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button")
|
|
@@ -2974,10 +2960,7 @@ function ld_datepickervue_type_template_id_602bf8e3_scoped_true_render(_ctx, _ca
|
|
|
2974
2960
|
|
|
2975
2961
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_container, { class: "pa-0 ld-datepicker flex-column" }, {
|
|
2976
2962
|
default: (0,external_vue_.withCtx)(() => [
|
|
2977
|
-
(0,external_vue_.createVNode)(_component_v_row, {
|
|
2978
|
-
"no-gutters": "",
|
|
2979
|
-
style: {"height":"var(--input-height)"}
|
|
2980
|
-
}, {
|
|
2963
|
+
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
2981
2964
|
default: (0,external_vue_.withCtx)(() => [
|
|
2982
2965
|
(_ctx.label)
|
|
2983
2966
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_label, {
|
|
@@ -3170,13 +3153,13 @@ function ld_datepickervue_type_template_id_602bf8e3_scoped_true_render(_ctx, _ca
|
|
|
3170
3153
|
style: {"border":"1px solid var(--grey-l-5)"}
|
|
3171
3154
|
}, {
|
|
3172
3155
|
default: (0,external_vue_.withCtx)(() => [
|
|
3173
|
-
(0,external_vue_.createElementVNode)("div",
|
|
3156
|
+
(0,external_vue_.createElementVNode)("div", ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_1, [
|
|
3174
3157
|
(_ctx.isHours)
|
|
3175
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
3158
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_2, "Часы"))
|
|
3176
3159
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
3177
3160
|
(0,external_vue_.createTextVNode)(),
|
|
3178
3161
|
(_ctx.isMinutes)
|
|
3179
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
3162
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_datepickervue_type_template_id_b65d2d3a_scoped_true_hoisted_3, "Минуты"))
|
|
3180
3163
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
3181
3164
|
(0,external_vue_.createTextVNode)(),
|
|
3182
3165
|
(0,external_vue_.createElementVNode)("div", null, [
|
|
@@ -3239,51 +3222,44 @@ function ld_datepickervue_type_template_id_602bf8e3_scoped_true_render(_ctx, _ca
|
|
|
3239
3222
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
3240
3223
|
]),
|
|
3241
3224
|
_: 1
|
|
3242
|
-
})
|
|
3243
|
-
]),
|
|
3244
|
-
_: 1
|
|
3245
|
-
}, 8, ["class"])
|
|
3246
|
-
]),
|
|
3247
|
-
_: 1
|
|
3248
|
-
}),
|
|
3249
|
-
(0,external_vue_.createTextVNode)(),
|
|
3250
|
-
(!_ctx.hideDetails)
|
|
3251
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_row, {
|
|
3252
|
-
key: 0,
|
|
3253
|
-
"no-gutters": "",
|
|
3254
|
-
class: "ld-datepicker-validate"
|
|
3255
|
-
}, {
|
|
3256
|
-
default: (0,external_vue_.withCtx)(() => [
|
|
3257
|
-
(_ctx.label)
|
|
3258
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_col, {
|
|
3259
|
-
key: 0,
|
|
3260
|
-
class: (0,external_vue_.normalizeClass)(["pr-2", _ctx.labelSizeClasses])
|
|
3261
|
-
}, null, 8, ["class"]))
|
|
3262
|
-
: (0,external_vue_.createCommentVNode)("", true),
|
|
3225
|
+
}),
|
|
3263
3226
|
(0,external_vue_.createTextVNode)(),
|
|
3264
|
-
(
|
|
3265
|
-
|
|
3266
|
-
|
|
3227
|
+
(!_ctx.hideDetails)
|
|
3228
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_row, {
|
|
3229
|
+
key: 0,
|
|
3230
|
+
"no-gutters": "",
|
|
3231
|
+
class: "ld-datepicker-validate"
|
|
3232
|
+
}, {
|
|
3267
3233
|
default: (0,external_vue_.withCtx)(() => [
|
|
3268
|
-
(0,external_vue_.
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3234
|
+
(0,external_vue_.createVNode)(_component_v_col, null, {
|
|
3235
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
3236
|
+
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
3237
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
3238
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
3239
|
+
style: {"line-height":"12px","font-size":"var(--font-size--1)"},
|
|
3240
|
+
class: (0,external_vue_.normalizeClass)({ 'error--text': _ctx.warningHint })
|
|
3241
|
+
}, (0,external_vue_.toDisplayString)(_ctx.validationMessage || _ctx.inputHint), 3)
|
|
3242
|
+
]),
|
|
3243
|
+
_: 1
|
|
3244
|
+
})
|
|
3245
|
+
]),
|
|
3246
|
+
_: 1
|
|
3247
|
+
})
|
|
3272
3248
|
]),
|
|
3273
3249
|
_: 1
|
|
3274
|
-
})
|
|
3275
|
-
|
|
3276
|
-
_: 1
|
|
3277
|
-
})
|
|
3250
|
+
}))
|
|
3251
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
3278
3252
|
]),
|
|
3279
3253
|
_: 1
|
|
3280
|
-
})
|
|
3281
|
-
|
|
3254
|
+
}, 8, ["class"])
|
|
3255
|
+
]),
|
|
3256
|
+
_: 1
|
|
3257
|
+
})
|
|
3282
3258
|
]),
|
|
3283
3259
|
_: 1
|
|
3284
3260
|
}))
|
|
3285
3261
|
}
|
|
3286
|
-
;// CONCATENATED MODULE: ./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=
|
|
3262
|
+
;// CONCATENATED MODULE: ./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=b65d2d3a&scoped=true
|
|
3287
3263
|
|
|
3288
3264
|
// EXTERNAL MODULE: external "imask"
|
|
3289
3265
|
var external_imask_ = __webpack_require__(5467);
|
|
@@ -3331,7 +3307,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
3331
3307
|
this.dateMenu = false;
|
|
3332
3308
|
this.timeMenu = false;
|
|
3333
3309
|
this.event = null;
|
|
3334
|
-
this.validationMesssage = '';
|
|
3335
3310
|
this.errorsHandler = [];
|
|
3336
3311
|
this.isHours = true;
|
|
3337
3312
|
this.isMinutes = false;
|
|
@@ -3694,14 +3669,14 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
3694
3669
|
}
|
|
3695
3670
|
validate() {
|
|
3696
3671
|
let funcResult = null;
|
|
3697
|
-
this.
|
|
3672
|
+
this.validationMessage = '';
|
|
3698
3673
|
this.validRules.forEach(func => {
|
|
3699
3674
|
funcResult = func(this.date);
|
|
3700
3675
|
if (funcResult !== true) {
|
|
3701
|
-
this.
|
|
3676
|
+
this.validationMessage = funcResult;
|
|
3702
3677
|
}
|
|
3703
3678
|
});
|
|
3704
|
-
return !this.
|
|
3679
|
+
return !this.validationMessage;
|
|
3705
3680
|
}
|
|
3706
3681
|
async setTimeMask() {
|
|
3707
3682
|
if (this.isMobileGlobal) {
|
|
@@ -3846,7 +3821,7 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
3846
3821
|
return Number(this.tabIndex) + 1;
|
|
3847
3822
|
}
|
|
3848
3823
|
get warningHint() {
|
|
3849
|
-
return Boolean(this.
|
|
3824
|
+
return Boolean(this.validationMessage) || this.errorsHandler.length > 0;
|
|
3850
3825
|
}
|
|
3851
3826
|
get inputClasses() {
|
|
3852
3827
|
return this.dateonly ? this.inputSizeClasses : null;
|
|
@@ -3962,7 +3937,7 @@ DatepickerComponent = ld_datepickervue_type_script_lang_js_external_decorate([
|
|
|
3962
3937
|
;
|
|
3963
3938
|
|
|
3964
3939
|
|
|
3965
|
-
const ld_datepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_datepickervue_type_script_lang_js_external, [['render',
|
|
3940
|
+
const ld_datepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_datepickervue_type_script_lang_js_external, [['render',ld_datepickervue_type_template_id_b65d2d3a_scoped_true_render],['__scopeId',"data-v-b65d2d3a"]])
|
|
3966
3941
|
|
|
3967
3942
|
/* harmony default export */ const ld_datepicker = (ld_datepicker_exports_);
|
|
3968
3943
|
;// CONCATENATED MODULE: ./src/ld-datepicker/index.ts
|
|
@@ -9450,6 +9425,385 @@ function ld_combobox_reg(vue, options) {
|
|
|
9450
9425
|
}
|
|
9451
9426
|
/* harmony default export */ const src_ld_combobox = (ld_combobox_reg);
|
|
9452
9427
|
|
|
9428
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-timepicker/ld-timepicker.vue?vue&type=template&id=256abd0d&scoped=true&ts=true
|
|
9429
|
+
|
|
9430
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-256abd0d"), n = n(), _popScopeId(), n);
|
|
9431
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_1 = { class: "ld-timepicker" };
|
|
9432
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_2 = { class: "time-selector" };
|
|
9433
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_3 = { key: 0 };
|
|
9434
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_4 = { key: 1 };
|
|
9435
|
+
const ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_5 = {
|
|
9436
|
+
key: 0,
|
|
9437
|
+
class: "ld-timepicker-validate"
|
|
9438
|
+
};
|
|
9439
|
+
function ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9440
|
+
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
9441
|
+
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
9442
|
+
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
9443
|
+
const _component_v_card = (0,external_vue_.resolveComponent)("v-card");
|
|
9444
|
+
const _component_v_menu = (0,external_vue_.resolveComponent)("v-menu");
|
|
9445
|
+
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
9446
|
+
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
9447
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_1, [
|
|
9448
|
+
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
9449
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9450
|
+
(_ctx.label)
|
|
9451
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_label, {
|
|
9452
|
+
key: 0,
|
|
9453
|
+
class: (0,external_vue_.normalizeClass)([_ctx.labelSizeClasses]),
|
|
9454
|
+
label: _ctx.label,
|
|
9455
|
+
required: _ctx.required,
|
|
9456
|
+
"align-label-to-right": _ctx.alignLabelToRight
|
|
9457
|
+
}, null, 8, ["class", "label", "required", "align-label-to-right"]))
|
|
9458
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
9459
|
+
(0,external_vue_.createTextVNode)(),
|
|
9460
|
+
(0,external_vue_.createVNode)(_component_v_col, {
|
|
9461
|
+
class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
|
|
9462
|
+
}, {
|
|
9463
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9464
|
+
(0,external_vue_.createVNode)(_component_v_menu, {
|
|
9465
|
+
modelValue: _ctx.timeMenu,
|
|
9466
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => ((_ctx.timeMenu) = $event)),
|
|
9467
|
+
"close-on-content-click": false,
|
|
9468
|
+
transition: "toggle-slide-y-transition",
|
|
9469
|
+
location: "bottom",
|
|
9470
|
+
"min-width": "190px",
|
|
9471
|
+
disabled: _ctx.readonly || _ctx.disabled
|
|
9472
|
+
}, {
|
|
9473
|
+
activator: (0,external_vue_.withCtx)(({ props }) => [
|
|
9474
|
+
(0,external_vue_.createElementVNode)("div", (0,external_vue_.mergeProps)({ class: "d-flex align-center w-100" }, props, { style: { "position": "relative" } }), [
|
|
9475
|
+
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-edit-text']), {
|
|
9476
|
+
ref: "inputTime",
|
|
9477
|
+
"model-value": _ctx.timeString,
|
|
9478
|
+
class: "w-100",
|
|
9479
|
+
tabindex: _ctx.tabIndex,
|
|
9480
|
+
disabled: _ctx.readonly || _ctx.disabled,
|
|
9481
|
+
placeholder: "ЧЧ:ММ",
|
|
9482
|
+
"hide-details": "",
|
|
9483
|
+
readonly: true
|
|
9484
|
+
}, null, 8, ["model-value", "tabindex", "disabled"])),
|
|
9485
|
+
(0,external_vue_.createTextVNode)(),
|
|
9486
|
+
(!_ctx.disabled && !_ctx.readonly)
|
|
9487
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
9488
|
+
key: 0,
|
|
9489
|
+
icon: "",
|
|
9490
|
+
style: { "position": "absolute", "top": "0", "right": "var(--input-height)" },
|
|
9491
|
+
onClick: (0,external_vue_.withModifiers)(_ctx.clear, ["stop"])
|
|
9492
|
+
}, {
|
|
9493
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9494
|
+
(0,external_vue_.createVNode)(_component_ld_icon, null, {
|
|
9495
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9496
|
+
(0,external_vue_.createTextVNode)("close")
|
|
9497
|
+
]),
|
|
9498
|
+
_: 1
|
|
9499
|
+
})
|
|
9500
|
+
]),
|
|
9501
|
+
_: 1
|
|
9502
|
+
}, 8, ["onClick"]))
|
|
9503
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
9504
|
+
(0,external_vue_.createTextVNode)(),
|
|
9505
|
+
(0,external_vue_.createVNode)(_component_square_button, {
|
|
9506
|
+
icon: "",
|
|
9507
|
+
style: { "position": "absolute", "top": "0", "right": "0" },
|
|
9508
|
+
onClick: _cache[0] || (_cache[0] = (0,external_vue_.withModifiers)(($event) => (_ctx.timeMenu = !_ctx.timeMenu), ["stop"]))
|
|
9509
|
+
}, {
|
|
9510
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9511
|
+
(0,external_vue_.createVNode)(_component_ld_icon, null, {
|
|
9512
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9513
|
+
(0,external_vue_.createTextVNode)("access_time")
|
|
9514
|
+
]),
|
|
9515
|
+
_: 1
|
|
9516
|
+
})
|
|
9517
|
+
]),
|
|
9518
|
+
_: 1
|
|
9519
|
+
})
|
|
9520
|
+
], 16)
|
|
9521
|
+
]),
|
|
9522
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9523
|
+
(0,external_vue_.createTextVNode)(),
|
|
9524
|
+
(0,external_vue_.createVNode)(_component_v_card, {
|
|
9525
|
+
elevation: "0",
|
|
9526
|
+
style: { "border": "1px solid var(--grey-l-5)" },
|
|
9527
|
+
width: "190px"
|
|
9528
|
+
}, {
|
|
9529
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9530
|
+
(0,external_vue_.createElementVNode)("div", ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_2, [
|
|
9531
|
+
(_ctx.isHours)
|
|
9532
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_3, "Часы"))
|
|
9533
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
9534
|
+
(0,external_vue_.createTextVNode)(),
|
|
9535
|
+
(_ctx.isMinutes)
|
|
9536
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_4, "Минуты"))
|
|
9537
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
9538
|
+
(0,external_vue_.createTextVNode)(),
|
|
9539
|
+
(0,external_vue_.createElementVNode)("div", null, [
|
|
9540
|
+
(_ctx.isHours)
|
|
9541
|
+
? ((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, { key: 0 }, (0,external_vue_.renderList)(Array.apply(null, { length: 24 }), (_, i) => {
|
|
9542
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
9543
|
+
key: i,
|
|
9544
|
+
variant: i === _ctx.hours ? 'flat' : 'outlined',
|
|
9545
|
+
color: i === _ctx.hours ? 'primary' : 'grey',
|
|
9546
|
+
onClick: ($event) => (_ctx.setHours(i))
|
|
9547
|
+
}, {
|
|
9548
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9549
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
9550
|
+
class: (0,external_vue_.normalizeClass)({ 'text-color': i !== _ctx.hours })
|
|
9551
|
+
}, (0,external_vue_.toDisplayString)(('0' + i).slice(-2)), 3)
|
|
9552
|
+
]),
|
|
9553
|
+
_: 2
|
|
9554
|
+
}, 1032, ["variant", "color", "onClick"]));
|
|
9555
|
+
}), 128))
|
|
9556
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
9557
|
+
(0,external_vue_.createTextVNode)(),
|
|
9558
|
+
(_ctx.isMinutes)
|
|
9559
|
+
? ((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, { key: 1 }, (0,external_vue_.renderList)(Array.apply(null, { length: 12 }), (_, i) => {
|
|
9560
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
9561
|
+
key: i,
|
|
9562
|
+
variant: (5 * i) === _ctx.minutes ? 'flat' : 'outlined',
|
|
9563
|
+
color: (5 * i) === _ctx.minutes ? 'primary' : 'grey',
|
|
9564
|
+
onClick: ($event) => (_ctx.setMinutes(5 * i))
|
|
9565
|
+
}, {
|
|
9566
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9567
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
9568
|
+
class: (0,external_vue_.normalizeClass)({ 'text-color': (5 * i) !== _ctx.minutes })
|
|
9569
|
+
}, (0,external_vue_.toDisplayString)(('0' + 5 * i).slice(-2)), 3)
|
|
9570
|
+
]),
|
|
9571
|
+
_: 2
|
|
9572
|
+
}, 1032, ["variant", "color", "onClick"]));
|
|
9573
|
+
}), 128))
|
|
9574
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
9575
|
+
])
|
|
9576
|
+
])
|
|
9577
|
+
]),
|
|
9578
|
+
_: 1
|
|
9579
|
+
})
|
|
9580
|
+
]),
|
|
9581
|
+
_: 1
|
|
9582
|
+
}, 8, ["modelValue", "disabled"]),
|
|
9583
|
+
(0,external_vue_.createTextVNode)(),
|
|
9584
|
+
(!_ctx.hideDetails)
|
|
9585
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_hoisted_5, [
|
|
9586
|
+
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
9587
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
9588
|
+
(0,external_vue_.createElementVNode)("span", {
|
|
9589
|
+
style: { "font-size": "var(--font-size--1)" },
|
|
9590
|
+
class: (0,external_vue_.normalizeClass)({ 'error--text': Boolean(_ctx.validationMessage) })
|
|
9591
|
+
}, (0,external_vue_.toDisplayString)(_ctx.validationMessage || _ctx.inputHint), 3)
|
|
9592
|
+
]),
|
|
9593
|
+
_: 1
|
|
9594
|
+
})
|
|
9595
|
+
]))
|
|
9596
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
9597
|
+
]),
|
|
9598
|
+
_: 1
|
|
9599
|
+
}, 8, ["class"])
|
|
9600
|
+
]),
|
|
9601
|
+
_: 1
|
|
9602
|
+
})
|
|
9603
|
+
]));
|
|
9604
|
+
}
|
|
9605
|
+
|
|
9606
|
+
;// CONCATENATED MODULE: ./src/ld-timepicker/ld-timepicker.vue?vue&type=template&id=256abd0d&scoped=true&ts=true
|
|
9607
|
+
|
|
9608
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-timepicker/ld-timepicker.ts?vue&type=script&lang=ts&external
|
|
9609
|
+
var ld_timepickervue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9610
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9611
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9612
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9613
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9614
|
+
};
|
|
9615
|
+
var ld_timepickervue_type_script_lang_ts_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
9616
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9617
|
+
};
|
|
9618
|
+
|
|
9619
|
+
|
|
9620
|
+
|
|
9621
|
+
|
|
9622
|
+
|
|
9623
|
+
|
|
9624
|
+
|
|
9625
|
+
/**
|
|
9626
|
+
* @displayName ld-timepicker
|
|
9627
|
+
*/
|
|
9628
|
+
let TimepickerComponent = class TimepickerComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin) {
|
|
9629
|
+
constructor() {
|
|
9630
|
+
super(...arguments);
|
|
9631
|
+
this.timeMenu = false;
|
|
9632
|
+
this.isHours = true;
|
|
9633
|
+
this.isMinutes = false;
|
|
9634
|
+
this.hours = null;
|
|
9635
|
+
this.minutes = null;
|
|
9636
|
+
}
|
|
9637
|
+
emitInput(value) {
|
|
9638
|
+
return value;
|
|
9639
|
+
}
|
|
9640
|
+
emitBlur(value) {
|
|
9641
|
+
return value;
|
|
9642
|
+
}
|
|
9643
|
+
onModelValueChanged(value) {
|
|
9644
|
+
if (!this.checkValue(value)) {
|
|
9645
|
+
return;
|
|
9646
|
+
}
|
|
9647
|
+
this.setTime(value);
|
|
9648
|
+
}
|
|
9649
|
+
onTimeMenuChanged() {
|
|
9650
|
+
if (!this.timeMenu) {
|
|
9651
|
+
this.isHours = true;
|
|
9652
|
+
this.isMinutes = false;
|
|
9653
|
+
}
|
|
9654
|
+
}
|
|
9655
|
+
onTimeChanged() {
|
|
9656
|
+
this.emitInput(this.timeString || null);
|
|
9657
|
+
this.validate();
|
|
9658
|
+
}
|
|
9659
|
+
created() {
|
|
9660
|
+
if (this.form) {
|
|
9661
|
+
this.form.register(this, null);
|
|
9662
|
+
}
|
|
9663
|
+
}
|
|
9664
|
+
unmounted() {
|
|
9665
|
+
if (this.form) {
|
|
9666
|
+
this.form.unregister(this, null);
|
|
9667
|
+
}
|
|
9668
|
+
}
|
|
9669
|
+
setHours(i) {
|
|
9670
|
+
this.hours = i;
|
|
9671
|
+
this.isHours = false;
|
|
9672
|
+
this.isMinutes = true;
|
|
9673
|
+
}
|
|
9674
|
+
setMinutes(i) {
|
|
9675
|
+
this.minutes = i;
|
|
9676
|
+
this.timeMenu = false;
|
|
9677
|
+
}
|
|
9678
|
+
setTime(value) {
|
|
9679
|
+
const [h, m] = value.split(':');
|
|
9680
|
+
this.hours = Number(h);
|
|
9681
|
+
this.minutes = Number(m);
|
|
9682
|
+
}
|
|
9683
|
+
checkValue(value) {
|
|
9684
|
+
if (!(/\d\d\:\d\d/.test(value))) {
|
|
9685
|
+
return false;
|
|
9686
|
+
}
|
|
9687
|
+
const [h, m] = value.split(':');
|
|
9688
|
+
const hh = Number(h);
|
|
9689
|
+
if (isNaN(hh) || hh < 0 || hh > 23) {
|
|
9690
|
+
return false;
|
|
9691
|
+
}
|
|
9692
|
+
const mm = Number(m);
|
|
9693
|
+
if (isNaN(mm) || mm < 0 || mm > 59) {
|
|
9694
|
+
return false;
|
|
9695
|
+
}
|
|
9696
|
+
return true;
|
|
9697
|
+
}
|
|
9698
|
+
clear() {
|
|
9699
|
+
this.hours = null;
|
|
9700
|
+
this.minutes = null;
|
|
9701
|
+
this.isHours = true;
|
|
9702
|
+
this.isMinutes = false;
|
|
9703
|
+
this.timeMenu = false;
|
|
9704
|
+
this.emitInput(null);
|
|
9705
|
+
}
|
|
9706
|
+
validate() {
|
|
9707
|
+
let funcResult = null;
|
|
9708
|
+
this.validationMessage = '';
|
|
9709
|
+
this.validRules.forEach(func => {
|
|
9710
|
+
funcResult = func(this.timeString);
|
|
9711
|
+
if (funcResult !== true) {
|
|
9712
|
+
this.validationMessage = funcResult;
|
|
9713
|
+
}
|
|
9714
|
+
});
|
|
9715
|
+
return !this.validationMessage;
|
|
9716
|
+
}
|
|
9717
|
+
get hoursString() {
|
|
9718
|
+
if (!this.$utils.isDefined(this.hours)) {
|
|
9719
|
+
return '';
|
|
9720
|
+
}
|
|
9721
|
+
return ('0' + this.hours).slice(-2);
|
|
9722
|
+
}
|
|
9723
|
+
get minutesString() {
|
|
9724
|
+
if (!this.$utils.isDefined(this.minutes)) {
|
|
9725
|
+
return '';
|
|
9726
|
+
}
|
|
9727
|
+
return ('0' + this.minutes).slice(-2);
|
|
9728
|
+
}
|
|
9729
|
+
get timeString() {
|
|
9730
|
+
if (!this.hoursString && !this.minutesString) {
|
|
9731
|
+
return '';
|
|
9732
|
+
}
|
|
9733
|
+
return `${this.hoursString}:${this.minutesString}`;
|
|
9734
|
+
}
|
|
9735
|
+
};
|
|
9736
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9737
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
9738
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", String)
|
|
9739
|
+
], TimepickerComponent.prototype, "modelValue", void 0);
|
|
9740
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9741
|
+
(0,external_vue_property_decorator_.Prop)(),
|
|
9742
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", String)
|
|
9743
|
+
], TimepickerComponent.prototype, "inputHint", void 0);
|
|
9744
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9745
|
+
(0,external_vue_property_decorator_.Inject)({ from: 'form', default: null }),
|
|
9746
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
9747
|
+
], TimepickerComponent.prototype, "form", void 0);
|
|
9748
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9749
|
+
Emit('update:model-value'),
|
|
9750
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9751
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", [String]),
|
|
9752
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9753
|
+
], TimepickerComponent.prototype, "emitInput", null);
|
|
9754
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9755
|
+
Emit('blur'),
|
|
9756
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9757
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", [String]),
|
|
9758
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9759
|
+
], TimepickerComponent.prototype, "emitBlur", null);
|
|
9760
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9761
|
+
(0,external_vue_property_decorator_.Watch)('modelValue', { immediate: true }),
|
|
9762
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9763
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", [String]),
|
|
9764
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9765
|
+
], TimepickerComponent.prototype, "onModelValueChanged", null);
|
|
9766
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9767
|
+
(0,external_vue_property_decorator_.Watch)('timeMenu'),
|
|
9768
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9769
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
9770
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9771
|
+
], TimepickerComponent.prototype, "onTimeMenuChanged", null);
|
|
9772
|
+
ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9773
|
+
(0,external_vue_property_decorator_.Watch)('timeString'),
|
|
9774
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9775
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
9776
|
+
ld_timepickervue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9777
|
+
], TimepickerComponent.prototype, "onTimeChanged", null);
|
|
9778
|
+
TimepickerComponent = ld_timepickervue_type_script_lang_ts_external_decorate([
|
|
9779
|
+
(0,external_vue_class_component_.Options)({
|
|
9780
|
+
components: {
|
|
9781
|
+
'ld-label': ld_label
|
|
9782
|
+
}
|
|
9783
|
+
})
|
|
9784
|
+
], TimepickerComponent);
|
|
9785
|
+
/* harmony default export */ const ld_timepickervue_type_script_lang_ts_external = (TimepickerComponent);
|
|
9786
|
+
|
|
9787
|
+
;// CONCATENATED MODULE: ./src/ld-timepicker/ld-timepicker.ts?vue&type=script&lang=ts&external
|
|
9788
|
+
|
|
9789
|
+
;// CONCATENATED MODULE: ./src/ld-timepicker/ld-timepicker.vue
|
|
9790
|
+
|
|
9791
|
+
|
|
9792
|
+
|
|
9793
|
+
|
|
9794
|
+
;
|
|
9795
|
+
|
|
9796
|
+
|
|
9797
|
+
const ld_timepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_timepickervue_type_script_lang_ts_external, [['render',ld_timepickervue_type_template_id_256abd0d_scoped_true_ts_true_render],['__scopeId',"data-v-256abd0d"]])
|
|
9798
|
+
|
|
9799
|
+
/* harmony default export */ const ld_timepicker = (ld_timepicker_exports_);
|
|
9800
|
+
;// CONCATENATED MODULE: ./src/ld-timepicker/index.ts
|
|
9801
|
+
|
|
9802
|
+
function ld_timepicker_reg(vue, options) {
|
|
9803
|
+
vue.component(options.aliases['ld-timepicker'], ld_timepicker);
|
|
9804
|
+
}
|
|
9805
|
+
/* harmony default export */ const src_ld_timepicker = (ld_timepicker_reg);
|
|
9806
|
+
|
|
9453
9807
|
;// CONCATENATED MODULE: ./src/utils/delay.ts
|
|
9454
9808
|
async function delay(timeout) {
|
|
9455
9809
|
return new Promise(resolve => setTimeout(() => resolve(), timeout));
|
|
@@ -9866,6 +10220,7 @@ const ActiveDirectiveOptions = {
|
|
|
9866
10220
|
|
|
9867
10221
|
|
|
9868
10222
|
|
|
10223
|
+
|
|
9869
10224
|
|
|
9870
10225
|
|
|
9871
10226
|
const ldmuiPlugin = {
|
|
@@ -9893,6 +10248,7 @@ const ldmuiPlugin = {
|
|
|
9893
10248
|
'ld-textarea': options.aliases?.['ld-textarea'] ?? 'ld-textarea',
|
|
9894
10249
|
'ld-select': options.aliases?.['ld-select'] ?? 'ld-select',
|
|
9895
10250
|
'ld-combobox': options.aliases?.['ld-combobox'] ?? 'ld-combobox',
|
|
10251
|
+
'ld-timepicker': options.aliases?.['ld-timepicker'] ?? 'ld-timepicker',
|
|
9896
10252
|
};
|
|
9897
10253
|
vue.config.globalProperties.$utils = {
|
|
9898
10254
|
...utils_namespaceObject,
|
|
@@ -9926,6 +10282,7 @@ const ldmuiPlugin = {
|
|
|
9926
10282
|
src_ld_textarea(vue, options);
|
|
9927
10283
|
src_ld_select(vue, options);
|
|
9928
10284
|
src_ld_combobox(vue, options);
|
|
10285
|
+
src_ld_timepicker(vue, options);
|
|
9929
10286
|
},
|
|
9930
10287
|
};
|
|
9931
10288
|
/* harmony default export */ const src = (ldmuiPlugin);
|
package/dist/types/options.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldmjs/ui",
|
|
3
|
-
"version": "1.0.0-dev-
|
|
3
|
+
"version": "1.0.0-dev-21",
|
|
4
4
|
"description": "ldm ui",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@babel/preset-env": "7.23.6",
|
|
43
43
|
"@babel/preset-typescript": "7.23.3",
|
|
44
44
|
"@floating-ui/dom": "^1.6.3",
|
|
45
|
+
"@ldmjs/datatable": "^1.0.3",
|
|
45
46
|
"@popperjs/core": "^2.11.8",
|
|
46
47
|
"@types/babel__core": "^7",
|
|
47
48
|
"@types/babel__plugin-transform-runtime": "^7",
|