ps-toolkit-ui 1.9.19 → 1.9.26
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/README.md +2 -2
- package/bundles/ps-toolkit-ui.umd.js +23 -7
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/chart.class.js +1 -1
- package/esm2015/lib/classes/currentDataClass.js +1 -1
- package/esm2015/lib/classes/enum.class.js +1 -1
- package/esm2015/lib/classes/form.class.js +2 -1
- package/esm2015/lib/classes/helper.class.js +1 -1
- package/esm2015/lib/classes/lang.class.js +1 -1
- package/esm2015/lib/classes/login.class.js +1 -1
- package/esm2015/lib/classes/modal.class.js +1 -1
- package/esm2015/lib/classes/permission.class.js +1 -1
- package/esm2015/lib/classes/request.class.js +1 -1
- package/esm2015/lib/classes/safehtml.class.js +1 -1
- package/esm2015/lib/classes/safestyle.class.js +1 -1
- package/esm2015/lib/classes/sidebar.class.js +1 -1
- package/esm2015/lib/classes/steps.class.js +1 -1
- package/esm2015/lib/classes/string.class.js +2 -2
- package/esm2015/lib/classes/table.class.js +1 -1
- package/esm2015/lib/components/accordion/accordion.component.js +1 -1
- package/esm2015/lib/components/alert/alert.component.js +1 -1
- package/esm2015/lib/components/base.component.js +1 -1
- package/esm2015/lib/components/calendar/calendar.component.js +1 -1
- package/esm2015/lib/components/chart/chart.component.js +1 -1
- package/esm2015/lib/components/clock/clock.component.js +1 -1
- package/esm2015/lib/components/confirm/confirm.component.js +1 -1
- package/esm2015/lib/components/error/error.component.js +1 -1
- package/esm2015/lib/components/footer/footer.component.js +1 -1
- package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +1 -1
- package/esm2015/lib/components/form/button/form.button.component.js +1 -1
- package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +1 -1
- package/esm2015/lib/components/form/ckeditor/form.ckeditor.component.js +1 -1
- package/esm2015/lib/components/form/date/form.date.component.js +1 -1
- package/esm2015/lib/components/form/datetime/form.datetime.component.js +1 -1
- package/esm2015/lib/components/form/file/form.file.component.js +1 -1
- package/esm2015/lib/components/form/finger/form.finger.component.js +1 -1
- package/esm2015/lib/components/form/hidden/form.hidden.component.js +1 -1
- package/esm2015/lib/components/form/icon/form.icon.component.js +1 -1
- package/esm2015/lib/components/form/index/form.component.js +1 -1
- package/esm2015/lib/components/form/label/form.label.component.js +1 -1
- package/esm2015/lib/components/form/plaque/form.plaque.component.js +1 -1
- package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +1 -1
- package/esm2015/lib/components/form/radio/form.radio.component.js +1 -1
- package/esm2015/lib/components/form/select/form.select.component.js +10 -3
- package/esm2015/lib/components/form/select/item/form.select.item.component.js +1 -1
- package/esm2015/lib/components/form/star/form.star.component.js +1 -1
- package/esm2015/lib/components/form/table/form.table.component.js +1 -1
- package/esm2015/lib/components/form/tag/form.tag.component.js +1 -1
- package/esm2015/lib/components/form/textarea/form.textarea.component.js +1 -1
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +1 -1
- package/esm2015/lib/components/form/time/form.time.component.js +1 -1
- package/esm2015/lib/components/form/toggle/form.toggle.component.js +1 -1
- package/esm2015/lib/components/form/tree/form.tree.component.js +1 -1
- package/esm2015/lib/components/form/tree/item/form.tree.item.component.js +1 -1
- package/esm2015/lib/components/form/vehicle/form.vehicle.component.js +1 -1
- package/esm2015/lib/components/form/vehicle/search/form.vehicle.search.component.js +1 -1
- package/esm2015/lib/components/header/header.component.js +1 -1
- package/esm2015/lib/components/header/sub/sub.header.component.js +1 -1
- package/esm2015/lib/components/layout/layout.component.js +1 -1
- package/esm2015/lib/components/loading/loading.component.js +1 -1
- package/esm2015/lib/components/login/login.component.js +1 -1
- package/esm2015/lib/components/modal/modal.component.js +1 -1
- package/esm2015/lib/components/notfound/notfound.component.js +1 -1
- package/esm2015/lib/components/notification/notification.component.js +1 -1
- package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +1 -1
- package/esm2015/lib/components/sidebar/sidebar.component.js +1 -1
- package/esm2015/lib/components/steps/steps.component.js +1 -1
- package/esm2015/lib/components/table/loading/table.loading.component.js +1 -1
- package/esm2015/lib/components/table/pagination/table.pagination.component.js +1 -1
- package/esm2015/lib/components/table/row/table.row.component.js +1 -1
- package/esm2015/lib/components/table/table.component.js +1 -1
- package/esm2015/lib/components/tooltip/tooltip.component.js +2 -2
- package/esm2015/lib/ps-toolkit-ui.module.js +1 -1
- package/esm2015/lib/services/config.service.js +1 -1
- package/esm2015/ps-toolkit-ui.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/ps-toolkit-ui.js +11 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/form.class.d.ts +1 -0
- package/lib/components/form/select/form.select.component.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# PsToolkitUi
|
|
2
|
-
This is a simple project for personal testing
|
|
1
|
+
# PsToolkitUi
|
|
2
|
+
This is a simple project for personal testing
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
Email: 'پست الکترونیک',
|
|
199
199
|
Mobile: 'شماره همراه',
|
|
200
200
|
Mobile2: 'شماره همراه 2',
|
|
201
|
-
Phone: 'شماره تلفن
|
|
201
|
+
Phone: 'شماره تلفن',
|
|
202
202
|
Address: 'آدرس',
|
|
203
203
|
Add: 'افزودن',
|
|
204
204
|
Edit: 'ویرایش',
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
{ type: PsToolkitUiConfigService }
|
|
380
380
|
]; };
|
|
381
381
|
|
|
382
|
-
|
|
382
|
+
/******************************************************************************
|
|
383
383
|
Copyright (c) Microsoft Corporation.
|
|
384
384
|
|
|
385
385
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -541,7 +541,11 @@
|
|
|
541
541
|
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
542
542
|
if (k2 === undefined)
|
|
543
543
|
k2 = k;
|
|
544
|
-
Object.
|
|
544
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
545
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
546
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
547
|
+
}
|
|
548
|
+
Object.defineProperty(o, k2, desc);
|
|
545
549
|
}) : (function (o, m, k, k2) {
|
|
546
550
|
if (k2 === undefined)
|
|
547
551
|
k2 = k;
|
|
@@ -614,7 +618,7 @@
|
|
|
614
618
|
ar[i] = from[i];
|
|
615
619
|
}
|
|
616
620
|
}
|
|
617
|
-
return to.concat(ar || from);
|
|
621
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
618
622
|
}
|
|
619
623
|
function __await(v) {
|
|
620
624
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -695,6 +699,11 @@
|
|
|
695
699
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
696
700
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
697
701
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
702
|
+
}
|
|
703
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
704
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
705
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
706
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
698
707
|
}
|
|
699
708
|
|
|
700
709
|
// @dynamic
|
|
@@ -1924,6 +1933,7 @@
|
|
|
1924
1933
|
this.minLength = -1;
|
|
1925
1934
|
this.maxLength = -1;
|
|
1926
1935
|
this.error = null;
|
|
1936
|
+
this.addModal = null;
|
|
1927
1937
|
this.loading = false;
|
|
1928
1938
|
this.button = null;
|
|
1929
1939
|
this.hasBarcodeReader = false;
|
|
@@ -3398,7 +3408,7 @@
|
|
|
3398
3408
|
{ type: core.Component, args: [{
|
|
3399
3409
|
selector: 'lib-tooltip',
|
|
3400
3410
|
template: "<div></div>\r\n",
|
|
3401
|
-
styles: ["[data-tooltip]{height:100%;position:relative;width:100%;z-index:10}[data-tooltip]:after,[data-tooltip]:before{bottom:calc(100% + 5px);left:50%;opacity:0;pointer-events:none;position:absolute;transition:.2s;visibility:hidden;will-change:transform}[data-tooltip]:before{background-color:var(--black);border-radius:var(--border-radius-base);color:#fff;content:attr(data-tooltip);font-size:13px;line-height:30px;max-width:300px;min-width:50px;padding:0 10px;text-align:center;transform:translate(-50%,-5px) scale(.5);white-space:pre-wrap;width
|
|
3411
|
+
styles: ["[data-tooltip]{height:100%;position:relative;width:100%;z-index:10}[data-tooltip]:after,[data-tooltip]:before{bottom:calc(100% + 5px);left:50%;opacity:0;pointer-events:none;position:absolute;transition:.2s;visibility:hidden;will-change:transform}[data-tooltip]:before{background-color:var(--black);border-radius:var(--border-radius-base);color:#fff;content:attr(data-tooltip);font-size:13px;line-height:30px;max-width:300px;min-width:50px;padding:0 10px;text-align:center;transform:translate(-50%,-5px) scale(.5);white-space:pre-wrap;width:max-content;width:-moz-max-content;z-index:6}[data-tooltip]:after{border:solid var(--black);border-width:5px 5px 0;content:\"\";transform:translateX(-50%) scaleY(0);transform-origin:top;transition-duration:0s}[data-tooltip]:hover:after,[data-tooltip]:hover:before{opacity:1;visibility:visible}[data-tooltip]:hover:before{transform:translate(-50%,-5px) scale(1);transition-delay:.3s}[data-tooltip]:hover:after{transform:translateX(-50%) scaleY(1);transition-delay:.5s;transition-duration:.2s}[data-tooltip-location=left]:after,[data-tooltip-location=left]:before{bottom:50%;left:auto;right:calc(100% + 5px)}[data-tooltip-location=left]:before{transform:translate(-5px,50%) scale(.5)}[data-tooltip-location=left]:hover:before{transform:translate(-5px,50%) scale(1)}[data-tooltip-location=left]:after{border-color:transparent transparent transparent rgba(55,64,70,.9);border-width:5px 0 5px 5px;transform:translateY(50%) scaleX(0);transform-origin:left}[data-tooltip-location=left]:hover:after{transform:translateY(50%) scaleX(1)}[data-tooltip-location=right]:after,[data-tooltip-location=right]:before{bottom:50%;left:calc(100% + 5px)}[data-tooltip-location=right]:before{transform:translate(5px,50%) scale(.5)}[data-tooltip-location=right]:hover:before{transform:translate(5px,50%) scale(1)}[data-tooltip-location=right]:after{border-color:transparent rgba(55,64,70,.9) transparent transparent;border-width:5px 5px 5px 0;transform:translateY(50%) scaleX(0);transform-origin:right}[data-tooltip-location=right]:hover:after{transform:translateY(50%) scaleX(1)}[data-tooltip-location=bottom]:after,[data-tooltip-location=bottom]:before{bottom:auto;top:calc(100% + 5px)}[data-tooltip-location=bottom]:before{transform:translate(-50%,5px) scale(.5)}[data-tooltip-location=bottom]:hover:before{transform:translate(-50%,5px) scale(1)}[data-tooltip-location=bottom]:after{border-color:transparent transparent rgba(55,64,70,.9);border-width:0 5px 5px;transform-origin:bottom}"]
|
|
3402
3412
|
},] }
|
|
3403
3413
|
];
|
|
3404
3414
|
TooltipComponent.ctorParameters = function () { return []; };
|
|
@@ -5348,6 +5358,12 @@
|
|
|
5348
5358
|
if (this.inp.hasBarcodeReader) {
|
|
5349
5359
|
HelperClass.setBarcodeReader(this.inp);
|
|
5350
5360
|
}
|
|
5361
|
+
if (this.inp.addModal) {
|
|
5362
|
+
this.addIcon = new InputClass(this.inp.environment, this.inp.l, 'Add' + this.inp.name, 'fa-duotone fa-plus', exports.InputType.Icon, 'blue m-t-25');
|
|
5363
|
+
this.addIcon.onClick = function () {
|
|
5364
|
+
_this.inp.addModal.show();
|
|
5365
|
+
};
|
|
5366
|
+
}
|
|
5351
5367
|
};
|
|
5352
5368
|
FormSelectComponent.prototype.setValue = function (ids, rows) {
|
|
5353
5369
|
var e_1, _a;
|
|
@@ -5726,8 +5742,8 @@
|
|
|
5726
5742
|
FormSelectComponent.decorators = [
|
|
5727
5743
|
{ type: core.Component, args: [{
|
|
5728
5744
|
selector: 'lib-form-select',
|
|
5729
|
-
template: "<div #inputDiv [id]=\"inp.id + 'SelectInput'\" [style]=\"inp.style\" [className]=\"'form-input-con select w-100' + (inp.error == null ? '' : ' error') + (inp.disabled ? ' disabled' : '') + (inp.icon != null ? '' : ' without-icon') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"toggleOption($event)\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"><i *ngIf=\"inp.required\" class=\"f-r fas fa-star-of-life required-icon\"></i><span class=\"f-r\" [innerHTML]=\"inp.getLabel()\"></span></div>\r\n <div class=\"w-100 p-r\">\r\n <div *ngIf=\"inp.type === type.Select\" class=\"without-search\"></div>\r\n <span *ngIf=\"inp.icon != null || inp.loading\" (click)=\"inp.button && onClickButton()\" #inputIcon [className]=\"(inp.button ? inp.button + ' button ' : '') + 'icon'\">\r\n <i [className]=\"inp.loading ? 'fa-duotone fa-spin fa-spinner ' : inp.icon + ' '\"></i>\r\n </span>\r\n <i *ngIf=\"inp.withClear && inp.value\" (click)=\"inp.clear()\" class=\"fa-duotone fa-eraser clear-icon\"></i>\r\n <input (keydown)=\"onKeyDown($event)\" (focusout)=\"onFocusOut()\" (keyup)=\"onKeyUp($event)\" [disabled]=\"inp.disabled\" [(ngModel)]=\"inp.search\" [placeholder]=\"inp.placeholder ? inp.l(inp.placeholder) : ''\" #inputBase type=\"text\" [name]=\"inp.name\" class=\"control\" autocomplete=\"off\" [readOnly]=\"inp.type === type.Select\" [maxLength]=\"inp.maxLength > 0 ? inp.maxLength : 524288\">\r\n <div class=\"options\">\r\n <div #inputOptionsDiv class=\"items\">\r\n <lib-form-select-item (selectOption)=\"selectOption($event)\" [level]=\"1\" [select]=\"inp\" [item]=\"opt\" *ngFor=\"let opt of inp.options\"></lib-form-select-item>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
5730
|
-
styles: [".form-input-con.select{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;font-size:12px;padding:0 15px;position:relative}.form-input-con.select.plaque{width:185px!important}.form-input-con.select>.form-input{float:right;position:relative;width:100%}.form-input-con.select>.form-input>.label{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;direction:rtl;float:right;font-size:12px;height:20px;line-height:20px;margin-bottom:3px;padding:0 10px;text-align:right;width:100%}.form-input-con.select.error>.form-input>.label{color:var(--red);font-size:10px}.form-input-con.select>.form-input>.label .required-icon{color:var(--red);font-size:9px;height:20px;line-height:20px;text-align:center;width:20px}.form-input-con.select>.form-input .without-search{cursor:pointer;height:100%;position:absolute;right:0;top:0;width:100%;z-index:3}.form-input-con.select>.form-input .control{background-color:#fff;background-image:none;border:var(--border-input);border-radius:var(--border-radius-base);color:var(--black);display:block;font-size:11px;height:35px;padding:5px 35px;text-align:center;width:100%}.form-input-con.select>.form-input .control:focus,.form-input-con.select>.form-input:hover .control{border:1px solid var(--black-light);outline:none}.form-input-con.select>.form-input .control:focus{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;outline:none}.form-input-con.select.error>.form-input .control{border:var(--border-input-red)}.form-input-con.select.error>.form-input .control,.form-input-con.select.error>.form-input span.icon{color:var(--red)}.form-input-con.select.error>.form-input .control:focus,.form-input-con.select.error>.form-input:hover .control{border:var(--border-input-red-dark)}.form-input-con.select.top>.form-input .control:focus{border-radius:0 0 var(--border-radius-base) var(--border-radius-base);outline:none}.form-input-con.select>.form-input span.icon{bottom:0;color:var(--primary);height:35px;left:0;line-height:37px;position:absolute;text-align:center;width:35px;z-index:1}.form-input-con.select>.form-input span.icon.button{background-color:var(--base);border-radius:5px 0 0 5px;color:#fff;cursor:pointer}.form-input-con.select>.form-input span.icon.button:hover{background-color:var(--base-dark)}.form-input-con.select>.form-input span.icon.button.blue{background-color:var(--blue)}.form-input-con.select>.form-input span.icon.button.blue:hover{background-color:var(--blue-dark)}.form-input-con.select>.form-input span.icon.button.green{background-color:var(--green)}.form-input-con.select>.form-input span.icon.button.green:hover{background-color:var(--green-dark)}.form-input-con.select>.form-input span.icon.button.red{background-color:var(--red)}.form-input-con.select>.form-input span.icon.button.red:hover{background-color:var(--red-dark)}.form-input-con.select>.form-input span.icon.button.yellow{background-color:var(--yellow)}.form-input-con.select>.form-input span.icon.button.yellow:hover{background-color:var(--yellow-dark)}.form-input-con.select>.form-input i.clear-icon{bottom:0;color:var(--red);cursor:pointer;font-size:15px;height:35px;line-height:35px;position:absolute;right:0;text-align:center;width:35px;z-index:1}.form-input-con.select>.form-input .options{background-color:#fff;border:var(--border-input);border-radius:0 0 var(--border-radius-base) var(--border-radius-base);cursor:pointer;overflow:hidden;position:absolute;right:0;top:-200000px;width:100%;z-index:103}.form-input-con.select>.form-input .control:focus+.options{top:35px!important}.form-input-con.select.top>.form-input .control:focus+.options{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;bottom:35px;top:unset!important}.form-input-con.select>.form-input .options .items{float:right;max-height:200px;overflow-y:auto;scroll-behavior:smooth;width:100%}.form-input-con.select>.form-input .options .option{border-radius:0;float:right;font-size:11px;height:35px;line-height:35px;text-align:center;width:100%}.form-input-con.select .tags{float:right;width:100%}.form-input-con.select .tags .tag-con{float:right;padding:5px;width:auto}.form-input-con.select .tags .tag-con .tag{background-color:var(--base);border-radius:var(--border-radius-base);color:#fff;float:right;font-size:12px;height:25px;line-height:25px;overflow:hidden;position:relative;width:auto}.form-input-con.select .tags .tag-con .tag>.label{float:right;padding:0 5px 0 10px;width:auto}.form-input-con.select .tags .tag-con .tag>.delete{cursor:pointer;float:right;line-height:25px;text-align:center;width:25px}.form-input-con.select .tags .tag-con .tag>.delete:hover{background-color:var(--base-dark)}.form-input-con.select.h-50>.form-input .control{height:50px;line-height:50px}.form-input-con.select.h-50>.form-input .control:focus+.options{top:50px!important}.form-input-con.select.h-50.top>.form-input .options{bottom:50px;top:unset!important}.form-input-con.select.h-25,.form-input-con.select.h-25>.form-input .control{height:25px;line-height:25px}.form-input-con.select.h-25>.form-input span.icon{height:25px;line-height:25px;width:25px}.form-input-con.select.h-25>.form-input .control:focus+.options{top:25px!important}.form-input-con.select.h-25.top>.form-input .control:focus+.options{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;bottom:25px;top:unset!important}.form-input-con.select.h-25>.form-input .control::-moz-placeholder,.form-input-con.select.h-25>.form-input .control::-webkit-input-placeholder{font-size:10px;font-weight:200}.form-input-con.select.h-30>.form-input .control{height:30px;padding:5px 30px}.form-input-con.select.h-30>.form-input .control:focus+.options{top:30px!important}.form-input-con.select>.form-input span.icon{font-size:15px;height:30px;line-height:32px;width:30px}.form-input-con.select.h-30>.form-input i.clear-icon{height:30px;line-height:30px;width:30px}.form-input-con.select.h-30.top>.form-input .control:focus+.options{bottom:30px}.form-input-con.select.h-45,.form-input-con.select.h-45>.form-input .control{height:45px;line-height:45px}.form-input-con.select.h-45>.form-input .control::-moz-placeholder,.form-input-con.select.h-45>.form-input .control::-webkit-input-placeholder{font-size:12px}.form-input-con.select.h-45>.form-input span.icon{height:45px;line-height:45px;width:45px}.form-input-con.select.h-45>.form-input .control:focus+.options{top:45px!important}.form-input-con.select.h-45.top>.form-input .control:focus+.options{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;bottom:45px;top:unset!important}.form-input-con.select.without-icon.h-25>.form-input .control,.form-input-con.select.without-icon.h-30>.form-input .control{padding:0}.form-input-con.select.h-30>.form-input span.icon{font-size:11px}::ng-deep .form-input-con.select.without-sub-options>.form-input .options .option{width:100%}.form-input-con.select.disabled>.form-input .control,.form-input-con.select.disabled>.form-input .label,.form-input-con.select.disabled>.form-input span.icon{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;box-shadow:unset;cursor:default;filter:blur(.5px);opacity:.7}"]
|
|
5745
|
+
template: "<div #inputDiv [id]=\"inp.id + 'SelectInput'\" [style]=\"inp.style\" [className]=\"'form-input-con select w-100' + (inp.error == null ? '' : ' error') + (inp.disabled ? ' disabled' : '') + (inp.icon != null ? '' : ' without-icon') + (inp.addModal != null ? '' : ' add-modal') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"toggleOption($event)\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"><i *ngIf=\"inp.required\" class=\"f-r fas fa-star-of-life required-icon\"></i><span class=\"f-r\" [innerHTML]=\"inp.getLabel()\"></span></div>\r\n <div class=\"w-100 p-r\">\r\n <div *ngIf=\"inp.type === type.Select\" class=\"without-search\"></div>\r\n <span *ngIf=\"inp.icon != null || inp.loading\" (click)=\"inp.button && onClickButton()\" #inputIcon [className]=\"(inp.button ? inp.button + ' button ' : '') + 'icon'\">\r\n <i [className]=\"inp.loading ? 'fa-duotone fa-spin fa-spinner ' : inp.icon + ' '\"></i>\r\n </span>\r\n <i *ngIf=\"inp.withClear && inp.value\" (click)=\"inp.clear()\" class=\"fa-duotone fa-eraser clear-icon\"></i>\r\n <input (keydown)=\"onKeyDown($event)\" (focusout)=\"onFocusOut()\" (keyup)=\"onKeyUp($event)\" [disabled]=\"inp.disabled\" [(ngModel)]=\"inp.search\" [placeholder]=\"inp.placeholder ? inp.l(inp.placeholder) : ''\" #inputBase type=\"text\" [name]=\"inp.name\" class=\"control\" autocomplete=\"off\" [readOnly]=\"inp.type === type.Select\" [maxLength]=\"inp.maxLength > 0 ? inp.maxLength : 524288\">\r\n <div class=\"options\">\r\n <div #inputOptionsDiv class=\"items\">\r\n <lib-form-select-item (selectOption)=\"selectOption($event)\" [level]=\"1\" [select]=\"inp\" [item]=\"opt\" *ngFor=\"let opt of inp.options\"></lib-form-select-item>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <lib-form-icon *ngIf=\"addIcon != null\" [inp]=\"addIcon\"></lib-form-icon>\r\n</div>\r\n",
|
|
5746
|
+
styles: [".form-input-con.select{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;font-size:12px;padding:0 15px;position:relative}.form-input-con.select.plaque{width:185px!important}.form-input-con.select>.form-input{float:right;position:relative;width:100%}.form-input-con.select.add-modal>.form-input{margin-left:15px;width:calc(100% - 45px)}.form-input-con.select>.form-input>.label{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;direction:rtl;float:right;font-size:12px;height:20px;line-height:20px;margin-bottom:3px;padding:0 10px;text-align:right;width:100%}.form-input-con.select.error>.form-input>.label{color:var(--red);font-size:10px}.form-input-con.select>.form-input>.label .required-icon{color:var(--red);font-size:9px;height:20px;line-height:20px;text-align:center;width:20px}.form-input-con.select>.form-input .without-search{cursor:pointer;height:100%;position:absolute;right:0;top:0;width:100%;z-index:3}.form-input-con.select>.form-input .control{background-color:#fff;background-image:none;border:var(--border-input);border-radius:var(--border-radius-base);color:var(--black);display:block;font-size:11px;height:35px;padding:5px 35px;text-align:center;width:100%}.form-input-con.select>.form-input .control:focus,.form-input-con.select>.form-input:hover .control{border:1px solid var(--black-light);outline:none}.form-input-con.select>.form-input .control:focus{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;outline:none}.form-input-con.select.error>.form-input .control{border:var(--border-input-red)}.form-input-con.select.error>.form-input .control,.form-input-con.select.error>.form-input span.icon{color:var(--red)}.form-input-con.select.error>.form-input .control:focus,.form-input-con.select.error>.form-input:hover .control{border:var(--border-input-red-dark)}.form-input-con.select.top>.form-input .control:focus{border-radius:0 0 var(--border-radius-base) var(--border-radius-base);outline:none}.form-input-con.select>.form-input span.icon{bottom:0;color:var(--primary);height:35px;left:0;line-height:37px;position:absolute;text-align:center;width:35px;z-index:1}.form-input-con.select>.form-input span.icon.button{background-color:var(--base);border-radius:5px 0 0 5px;color:#fff;cursor:pointer}.form-input-con.select>.form-input span.icon.button:hover{background-color:var(--base-dark)}.form-input-con.select>.form-input span.icon.button.blue{background-color:var(--blue)}.form-input-con.select>.form-input span.icon.button.blue:hover{background-color:var(--blue-dark)}.form-input-con.select>.form-input span.icon.button.green{background-color:var(--green)}.form-input-con.select>.form-input span.icon.button.green:hover{background-color:var(--green-dark)}.form-input-con.select>.form-input span.icon.button.red{background-color:var(--red)}.form-input-con.select>.form-input span.icon.button.red:hover{background-color:var(--red-dark)}.form-input-con.select>.form-input span.icon.button.yellow{background-color:var(--yellow)}.form-input-con.select>.form-input span.icon.button.yellow:hover{background-color:var(--yellow-dark)}.form-input-con.select>.form-input i.clear-icon{bottom:0;color:var(--red);cursor:pointer;font-size:15px;height:35px;line-height:35px;position:absolute;right:0;text-align:center;width:35px;z-index:1}.form-input-con.select>.form-input .options{background-color:#fff;border:var(--border-input);border-radius:0 0 var(--border-radius-base) var(--border-radius-base);cursor:pointer;overflow:hidden;position:absolute;right:0;top:-200000px;width:100%;z-index:103}.form-input-con.select>.form-input .control:focus+.options{top:35px!important}.form-input-con.select.top>.form-input .control:focus+.options{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;bottom:35px;top:unset!important}.form-input-con.select>.form-input .options .items{float:right;max-height:200px;overflow-y:auto;scroll-behavior:smooth;width:100%}.form-input-con.select>.form-input .options .option{border-radius:0;float:right;font-size:11px;height:35px;line-height:35px;text-align:center;width:100%}.form-input-con.select .tags{float:right;width:100%}.form-input-con.select .tags .tag-con{float:right;padding:5px;width:auto}.form-input-con.select .tags .tag-con .tag{background-color:var(--base);border-radius:var(--border-radius-base);color:#fff;float:right;font-size:12px;height:25px;line-height:25px;overflow:hidden;position:relative;width:auto}.form-input-con.select .tags .tag-con .tag>.label{float:right;padding:0 5px 0 10px;width:auto}.form-input-con.select .tags .tag-con .tag>.delete{cursor:pointer;float:right;line-height:25px;text-align:center;width:25px}.form-input-con.select .tags .tag-con .tag>.delete:hover{background-color:var(--base-dark)}.form-input-con.select.h-50>.form-input .control{height:50px;line-height:50px}.form-input-con.select.h-50>.form-input .control:focus+.options{top:50px!important}.form-input-con.select.h-50.top>.form-input .options{bottom:50px;top:unset!important}.form-input-con.select.h-25,.form-input-con.select.h-25>.form-input .control{height:25px;line-height:25px}.form-input-con.select.h-25>.form-input span.icon{height:25px;line-height:25px;width:25px}.form-input-con.select.h-25>.form-input .control:focus+.options{top:25px!important}.form-input-con.select.h-25.top>.form-input .control:focus+.options{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;bottom:25px;top:unset!important}.form-input-con.select.h-25>.form-input .control::-moz-placeholder,.form-input-con.select.h-25>.form-input .control::-webkit-input-placeholder{font-size:10px;font-weight:200}.form-input-con.select.h-30>.form-input .control{height:30px;padding:5px 30px}.form-input-con.select.h-30>.form-input .control:focus+.options{top:30px!important}.form-input-con.select>.form-input span.icon{font-size:15px;height:30px;line-height:32px;width:30px}.form-input-con.select.h-30>.form-input i.clear-icon{height:30px;line-height:30px;width:30px}.form-input-con.select.h-30.top>.form-input .control:focus+.options{bottom:30px}.form-input-con.select.h-45,.form-input-con.select.h-45>.form-input .control{height:45px;line-height:45px}.form-input-con.select.h-45>.form-input .control::-moz-placeholder,.form-input-con.select.h-45>.form-input .control::-webkit-input-placeholder{font-size:12px}.form-input-con.select.h-45>.form-input span.icon{height:45px;line-height:45px;width:45px}.form-input-con.select.h-45>.form-input .control:focus+.options{top:45px!important}.form-input-con.select.h-45.top>.form-input .control:focus+.options{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;bottom:45px;top:unset!important}.form-input-con.select.without-icon.h-25>.form-input .control,.form-input-con.select.without-icon.h-30>.form-input .control{padding:0}.form-input-con.select.h-30>.form-input span.icon{font-size:11px}::ng-deep .form-input-con.select.without-sub-options>.form-input .options .option{width:100%}.form-input-con.select.disabled>.form-input .control,.form-input-con.select.disabled>.form-input .label,.form-input-con.select.disabled>.form-input span.icon{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;box-shadow:unset;cursor:default;filter:blur(.5px);opacity:.7}"]
|
|
5731
5747
|
},] }
|
|
5732
5748
|
];
|
|
5733
5749
|
FormSelectComponent.propDecorators = {
|