ngx-ode-ui 3.12.0-dev.3 → 3.12.0-dev.8
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/bundles/ngx-ode-ui.umd.js +253 -8
- package/bundles/ngx-ode-ui.umd.js.map +1 -1
- package/bundles/ngx-ode-ui.umd.min.js +1 -1
- package/bundles/ngx-ode-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/dropdown/dropdown.component.js +76 -0
- package/esm2015/lib/components/list/list.component.js +10 -3
- package/esm2015/lib/components/list-checkable/list-checkable.component.js +137 -0
- package/esm2015/lib/components/multi-combo/multi-combo.component.js +2 -2
- package/esm2015/lib/components/search-input/search-input.component.js +15 -3
- package/esm2015/lib/ngx-ode-ui.module.js +8 -2
- package/esm2015/ngx-ode-ui.js +3 -2
- package/esm2015/public-api.js +2 -1
- package/esm5/lib/components/dropdown/dropdown.component.js +81 -0
- package/esm5/lib/components/list/list.component.js +10 -3
- package/esm5/lib/components/list-checkable/list-checkable.component.js +148 -0
- package/esm5/lib/components/multi-combo/multi-combo.component.js +2 -2
- package/esm5/lib/components/search-input/search-input.component.js +16 -5
- package/esm5/lib/ngx-ode-ui.module.js +8 -2
- package/esm5/ngx-ode-ui.js +3 -2
- package/esm5/public-api.js +2 -1
- package/fesm2015/ngx-ode-ui.js +239 -7
- package/fesm2015/ngx-ode-ui.js.map +1 -1
- package/fesm5/ngx-ode-ui.js +252 -9
- package/fesm5/ngx-ode-ui.js.map +1 -1
- package/lib/components/dropdown/dropdown.component.d.ts +36 -0
- package/lib/components/list/list.component.d.ts +2 -0
- package/lib/components/list-checkable/list-checkable.component.d.ts +55 -0
- package/lib/components/search-input/search-input.component.d.ts +3 -0
- package/ngx-ode-ui.d.ts +1 -0
- package/ngx-ode-ui.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1577,7 +1577,8 @@
|
|
|
1577
1577
|
_this.model = [];
|
|
1578
1578
|
_this.searchPlaceholder = 'search';
|
|
1579
1579
|
_this.noResultsLabel = 'list.results.no.items';
|
|
1580
|
-
_this.
|
|
1580
|
+
_this.isSearchActive = true;
|
|
1581
|
+
_this.searchInput = false;
|
|
1581
1582
|
_this.inputChange = new core.EventEmitter();
|
|
1582
1583
|
_this.onSelect = new core.EventEmitter();
|
|
1583
1584
|
_this.listChange = new core.EventEmitter();
|
|
@@ -1620,7 +1621,7 @@
|
|
|
1620
1621
|
ListComponent.decorators = [
|
|
1621
1622
|
{ type: core.Component, args: [{
|
|
1622
1623
|
selector: 'ode-list',
|
|
1623
|
-
template: "<ode-search-input
|
|
1624
|
+
template: "<ode-search-input\n *ngIf=\"isSearchActive\"\n [searchInput]=\"searchInput\"\n [searchSubmit]=\"searchSubmit\"\n [attr.placeholder]=\"searchPlaceholder | translate\"\n (onChange)=\"inputChange.emit($event)\"></ode-search-input>\n<div class=\"toolbar\">\n <ng-content select=\"[toolbar]\"></ng-content>\n</div>\n<div class=\"list-wrapper\"\n infiniteScroll\n [scrollWindow]=\"false\"\n (scrolled)=\"scrolledDown.emit()\"\n [infiniteScrollThrottle]=\"50\">\n <ul>\n <li *ngFor=\"let item of model | filter: filters | filter: inputFilter | store:self:'storedElements' | orderBy: sort | slice: 0:limit\"\n (click)=\"onSelect.emit(item)\"\n [class.selected]=\"isSelected(item)\"\n [class.disabled]=\"isDisabled(item)\"\n [ngClass]=\"ngClass(item)\"\n class=\"lct-list-item\">\n <ng-template [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{$implicit: item}\">\n </ng-template>\n </li>\n </ul>\n <ul *ngIf=\"storedElements && storedElements.length === 0\">\n <li class=\"no-results\">{{ noResultsLabel | translate }}</li>\n </ul>\n</div>\n",
|
|
1624
1625
|
styles: ["ul{margin:0;padding:0;font-size:.9em}ul li{cursor:pointer;border-top:1px solid #ddd;padding:10px}ul li.disabled{pointer-events:none}"]
|
|
1625
1626
|
}] }
|
|
1626
1627
|
];
|
|
@@ -1636,7 +1637,9 @@
|
|
|
1636
1637
|
limit: [{ type: core.Input }],
|
|
1637
1638
|
searchPlaceholder: [{ type: core.Input }],
|
|
1638
1639
|
noResultsLabel: [{ type: core.Input }],
|
|
1640
|
+
isSearchActive: [{ type: core.Input }],
|
|
1639
1641
|
searchInput: [{ type: core.Input }],
|
|
1642
|
+
searchSubmit: [{ type: core.Input }],
|
|
1640
1643
|
inputChange: [{ type: core.Output }],
|
|
1641
1644
|
onSelect: [{ type: core.Output }],
|
|
1642
1645
|
listChange: [{ type: core.Output }],
|
|
@@ -1668,8 +1671,12 @@
|
|
|
1668
1671
|
/** @type {?} */
|
|
1669
1672
|
ListComponent.prototype.noResultsLabel;
|
|
1670
1673
|
/** @type {?} */
|
|
1674
|
+
ListComponent.prototype.isSearchActive;
|
|
1675
|
+
/** @type {?} */
|
|
1671
1676
|
ListComponent.prototype.searchInput;
|
|
1672
1677
|
/** @type {?} */
|
|
1678
|
+
ListComponent.prototype.searchSubmit;
|
|
1679
|
+
/** @type {?} */
|
|
1673
1680
|
ListComponent.prototype.inputChange;
|
|
1674
1681
|
/** @type {?} */
|
|
1675
1682
|
ListComponent.prototype.onSelect;
|
|
@@ -1687,6 +1694,150 @@
|
|
|
1687
1694
|
ListComponent.prototype.ngClass;
|
|
1688
1695
|
}
|
|
1689
1696
|
|
|
1697
|
+
/**
|
|
1698
|
+
* @fileoverview added by tsickle
|
|
1699
|
+
* Generated from: lib/components/list-checkable/list-checkable.component.ts
|
|
1700
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1701
|
+
*/
|
|
1702
|
+
var ListCheckableComponent = /** @class */ (function (_super) {
|
|
1703
|
+
__extends(ListCheckableComponent, _super);
|
|
1704
|
+
function ListCheckableComponent(injector) {
|
|
1705
|
+
var _this = _super.call(this, injector) || this;
|
|
1706
|
+
_this.model = [];
|
|
1707
|
+
_this.noResultsLabel = 'list.results.no.items';
|
|
1708
|
+
_this.readOnly = false;
|
|
1709
|
+
_this.onCheck = new core.EventEmitter();
|
|
1710
|
+
_this.listChange = new core.EventEmitter();
|
|
1711
|
+
_this.scrolledDown = new core.EventEmitter();
|
|
1712
|
+
_this.areAllChecked = (/**
|
|
1713
|
+
* @return {?}
|
|
1714
|
+
*/
|
|
1715
|
+
function () { return false; });
|
|
1716
|
+
_this.isChecked = (/**
|
|
1717
|
+
* @param {?=} arg
|
|
1718
|
+
* @return {?}
|
|
1719
|
+
*/
|
|
1720
|
+
function (arg) { return false; });
|
|
1721
|
+
_this.isDisabled = (/**
|
|
1722
|
+
* @param {?=} arg
|
|
1723
|
+
* @return {?}
|
|
1724
|
+
*/
|
|
1725
|
+
function (arg) { return false; });
|
|
1726
|
+
_this.ngClass = (/**
|
|
1727
|
+
* @param {?=} arg
|
|
1728
|
+
* @return {?}
|
|
1729
|
+
*/
|
|
1730
|
+
function (arg) { return ({}); });
|
|
1731
|
+
/* Store pipe */
|
|
1732
|
+
_this.self = _this;
|
|
1733
|
+
_this._storedElements = [];
|
|
1734
|
+
return _this;
|
|
1735
|
+
}
|
|
1736
|
+
Object.defineProperty(ListCheckableComponent.prototype, "storedElements", {
|
|
1737
|
+
get: /**
|
|
1738
|
+
* @return {?}
|
|
1739
|
+
*/
|
|
1740
|
+
function () {
|
|
1741
|
+
return this._storedElements;
|
|
1742
|
+
},
|
|
1743
|
+
set: /**
|
|
1744
|
+
* @param {?} list
|
|
1745
|
+
* @return {?}
|
|
1746
|
+
*/
|
|
1747
|
+
function (list) {
|
|
1748
|
+
this._storedElements = list;
|
|
1749
|
+
this.listChange.emit(list);
|
|
1750
|
+
},
|
|
1751
|
+
enumerable: true,
|
|
1752
|
+
configurable: true
|
|
1753
|
+
});
|
|
1754
|
+
/**
|
|
1755
|
+
* @param {?} checkAll
|
|
1756
|
+
* @return {?}
|
|
1757
|
+
*/
|
|
1758
|
+
ListCheckableComponent.prototype.toggleAll = /**
|
|
1759
|
+
* @param {?} checkAll
|
|
1760
|
+
* @return {?}
|
|
1761
|
+
*/
|
|
1762
|
+
function (checkAll) {
|
|
1763
|
+
var _this = this;
|
|
1764
|
+
this.model.forEach((/**
|
|
1765
|
+
* @param {?} item
|
|
1766
|
+
* @return {?}
|
|
1767
|
+
*/
|
|
1768
|
+
function (item) {
|
|
1769
|
+
/** @type {?} */
|
|
1770
|
+
var isChecked = _this.isChecked(item);
|
|
1771
|
+
if (!_this.isDisabled(item)
|
|
1772
|
+
&& ((isChecked && !checkAll) || (!isChecked && checkAll))) {
|
|
1773
|
+
_this.onCheck.emit({ item: item, checked: checkAll });
|
|
1774
|
+
}
|
|
1775
|
+
}));
|
|
1776
|
+
};
|
|
1777
|
+
ListCheckableComponent.decorators = [
|
|
1778
|
+
{ type: core.Component, args: [{
|
|
1779
|
+
selector: 'ode-list-checkable',
|
|
1780
|
+
template: "<div class=\"list-checkable-wrapper\"\n infiniteScroll\n [scrollWindow]=\"false\"\n (scrolled)=\"scrolledDown.emit()\"\n [infiniteScrollThrottle]=\"50\">\n\n <ul *ngIf=\"storedElements && storedElements.length === 0\">\n <li class=\"no-results\"><span>{{ noResultsLabel | translate }}</span></li>\n </ul>\n \n <ul>\n <li class=\"select-all\" \n [class.checked]=\"areAllChecked()\"\n *ngIf=\"!readOnly\">\n <label>\n <span>{{(areAllChecked() ? 'ux.multiselect.deselect-all' : 'ux.multiselect.select-all') | translate}}</span>\n <input type=\"checkbox\" [checked]=\"areAllChecked()\" (change)=\"toggleAll($event.target.checked)\" />\n </label>\n </li>\n\n <li class=\"lct-list-checkable-item\" \n [class.checked]=\"isChecked(item)\"\n [class.disabled]=\"isDisabled(item)\"\n [ngClass]=\"ngClass(item)\"\n *ngFor=\"let item of model | filter: filters | store:self:'storedElements' | orderBy: sort | slice: 0:limit\">\n <label>\n <span>\n <ng-template [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{$implicit: item}\"></ng-template> \n </span>\n <input *ngIf=\"!readOnly\" type=\"checkbox\" \n [disabled]=\"isDisabled(item)\"\n [checked]=\"isChecked(item)\"\n (change)=\"onCheck.emit({item:item, checked:$event.target.checked})\"/>\n </label>\n </li>\n </ul>\n\n</div>\n",
|
|
1781
|
+
styles: ["ul{margin:0;padding:0;font-size:.9em}ul li{border-top:1px solid #ddd;width:-webkit-fill-available;width:-moz-available;display:flex}ul li:not(.checked){color:#939393}ul li.disabled{pointer-events:none}ul li.select-all{background-color:#ff83520a;color:#5b6472}ul li.select-all span{text-align:right}ul li label{cursor:pointer;width:100%;display:flex}ul li label:hover{background-color:#eaedf2}ul li label span{padding:7px 15px;width:100%}ul li label input[type=checkbox]{margin-right:15px;-ms-grid-row-align:center;align-self:center}"]
|
|
1782
|
+
}] }
|
|
1783
|
+
];
|
|
1784
|
+
/** @nocollapse */
|
|
1785
|
+
ListCheckableComponent.ctorParameters = function () { return [
|
|
1786
|
+
{ type: core.Injector }
|
|
1787
|
+
]; };
|
|
1788
|
+
ListCheckableComponent.propDecorators = {
|
|
1789
|
+
model: [{ type: core.Input }],
|
|
1790
|
+
filters: [{ type: core.Input }],
|
|
1791
|
+
sort: [{ type: core.Input }],
|
|
1792
|
+
limit: [{ type: core.Input }],
|
|
1793
|
+
noResultsLabel: [{ type: core.Input }],
|
|
1794
|
+
readOnly: [{ type: core.Input }],
|
|
1795
|
+
onCheck: [{ type: core.Output }],
|
|
1796
|
+
listChange: [{ type: core.Output }],
|
|
1797
|
+
scrolledDown: [{ type: core.Output }],
|
|
1798
|
+
templateRef: [{ type: core.ContentChild, args: [core.TemplateRef, { static: false },] }],
|
|
1799
|
+
areAllChecked: [{ type: core.Input }],
|
|
1800
|
+
isChecked: [{ type: core.Input }],
|
|
1801
|
+
isDisabled: [{ type: core.Input }],
|
|
1802
|
+
ngClass: [{ type: core.Input }]
|
|
1803
|
+
};
|
|
1804
|
+
return ListCheckableComponent;
|
|
1805
|
+
}(ngxOdeCore.OdeComponent));
|
|
1806
|
+
if (false) {
|
|
1807
|
+
/** @type {?} */
|
|
1808
|
+
ListCheckableComponent.prototype.model;
|
|
1809
|
+
/** @type {?} */
|
|
1810
|
+
ListCheckableComponent.prototype.filters;
|
|
1811
|
+
/** @type {?} */
|
|
1812
|
+
ListCheckableComponent.prototype.sort;
|
|
1813
|
+
/** @type {?} */
|
|
1814
|
+
ListCheckableComponent.prototype.limit;
|
|
1815
|
+
/** @type {?} */
|
|
1816
|
+
ListCheckableComponent.prototype.noResultsLabel;
|
|
1817
|
+
/** @type {?} */
|
|
1818
|
+
ListCheckableComponent.prototype.readOnly;
|
|
1819
|
+
/** @type {?} */
|
|
1820
|
+
ListCheckableComponent.prototype.onCheck;
|
|
1821
|
+
/** @type {?} */
|
|
1822
|
+
ListCheckableComponent.prototype.listChange;
|
|
1823
|
+
/** @type {?} */
|
|
1824
|
+
ListCheckableComponent.prototype.scrolledDown;
|
|
1825
|
+
/** @type {?} */
|
|
1826
|
+
ListCheckableComponent.prototype.templateRef;
|
|
1827
|
+
/** @type {?} */
|
|
1828
|
+
ListCheckableComponent.prototype.areAllChecked;
|
|
1829
|
+
/** @type {?} */
|
|
1830
|
+
ListCheckableComponent.prototype.isChecked;
|
|
1831
|
+
/** @type {?} */
|
|
1832
|
+
ListCheckableComponent.prototype.isDisabled;
|
|
1833
|
+
/** @type {?} */
|
|
1834
|
+
ListCheckableComponent.prototype.ngClass;
|
|
1835
|
+
/** @type {?} */
|
|
1836
|
+
ListCheckableComponent.prototype.self;
|
|
1837
|
+
/** @type {?} */
|
|
1838
|
+
ListCheckableComponent.prototype._storedElements;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1690
1841
|
/**
|
|
1691
1842
|
* @fileoverview added by tsickle
|
|
1692
1843
|
* Generated from: lib/components/message-box/message-box.component.ts
|
|
@@ -2498,7 +2649,7 @@
|
|
|
2498
2649
|
MultiComboComponent.decorators = [
|
|
2499
2650
|
{ type: core.Component, args: [{
|
|
2500
2651
|
selector: 'ode-multi-combo',
|
|
2501
|
-
template: "<button (click)=\"toggleVisibility()\"\n [ngClass]=\"{ opened: show }\"\n [disabled]=\"disabled\">\n {{ title }}\n</button>\n<div [ngClass]=\"{ hidden: !show }\">\n <div class=\"options\">\n <button class=\"select-all\" (click)=\"selectAll()\" *ngIf=\"!maxSelected\"\n [title]=\"labels('select.all')\">{{ labels('select.all') }}</button>\n <button class=\"deselect-all\" (click)=\"deselectAll()\"\n [title]=\"labels('deselect.all')\">{{ labels('deselect.all') }}</button>\n </div>\n <div *ngIf=\"filter\" class=\"filter\">\n <ode-search-input (onChange)=\"search.input = $event\" [attr.placeholder]=\"labels('search')\"></ode-search-input>\n </div>\n <ul>\n <li *ngFor=\"let item of _comboModel | filter: getFilter() | orderBy: orderBy | store: self:'filteredComboModel'\"\n (click)=\"toggleItem(item)\"\n [ngClass]=\"{ selected: isSelected(item) }\"\n [attr.disabled]=\"isDisabled()\">\n {{ displayItem(item) | translate }}\n </li>\n </ul>\n</div>\n",
|
|
2652
|
+
template: "<button (click)=\"toggleVisibility()\"\n [ngClass]=\"{ opened: show }\"\n [disabled]=\"disabled\"\n type=\"button\">\n {{ title }}\n</button>\n<div [ngClass]=\"{ hidden: !show }\">\n <div class=\"options\">\n <button class=\"select-all\" (click)=\"selectAll()\" *ngIf=\"!maxSelected\"\n [title]=\"labels('select.all')\" type=\"button\">{{ labels('select.all') }}</button>\n <button class=\"deselect-all\" (click)=\"deselectAll()\"\n [title]=\"labels('deselect.all')\" type=\"button\">{{ labels('deselect.all') }}</button>\n </div>\n <div *ngIf=\"filter\" class=\"filter\">\n <ode-search-input (onChange)=\"search.input = $event\" [attr.placeholder]=\"labels('search')\"></ode-search-input>\n </div>\n <ul>\n <li *ngFor=\"let item of _comboModel | filter: getFilter() | orderBy: orderBy | store: self:'filteredComboModel'\"\n (click)=\"toggleItem(item)\"\n [ngClass]=\"{ selected: isSelected(item) }\"\n [attr.disabled]=\"isDisabled()\">\n {{ displayItem(item) | translate }}\n </li>\n </ul>\n</div>\n",
|
|
2502
2653
|
host: {
|
|
2503
2654
|
'(document:click)': 'onClick($event)',
|
|
2504
2655
|
},
|
|
@@ -2989,6 +3140,9 @@
|
|
|
2989
3140
|
var _this = _super.call(this, injector) || this;
|
|
2990
3141
|
_this._elRef = _elRef;
|
|
2991
3142
|
_this._renderer = _renderer;
|
|
3143
|
+
/* Inputs / Outputs / View */
|
|
3144
|
+
_this.isSearchActive = false;
|
|
3145
|
+
_this.searchInput = false;
|
|
2992
3146
|
_this._delay = 200;
|
|
2993
3147
|
_this.onChange = new core.EventEmitter();
|
|
2994
3148
|
/* Internal logic */
|
|
@@ -3002,9 +3156,7 @@
|
|
|
3002
3156
|
function () {
|
|
3003
3157
|
return this._delay;
|
|
3004
3158
|
},
|
|
3005
|
-
|
|
3006
|
-
set: /* Inputs / Outputs / View */
|
|
3007
|
-
/**
|
|
3159
|
+
set: /**
|
|
3008
3160
|
* @param {?} d
|
|
3009
3161
|
* @return {?}
|
|
3010
3162
|
*/
|
|
@@ -3094,7 +3246,8 @@
|
|
|
3094
3246
|
SearchInputComponent.decorators = [
|
|
3095
3247
|
{ type: core.Component, args: [{
|
|
3096
3248
|
selector: 'ode-search-input',
|
|
3097
|
-
template: "<input type=\"search\" #searchBox (input)=\"search(searchBox.value)\"
|
|
3249
|
+
template: "<form\n *ngIf=\"searchInput\"\n class=\"search-container\"\n (ngSubmit)=\"searchSubmit()\">\n <input\n #searchBox\n class=\"search-input\"\n name=\"searchTerm\"\n type=\"search\"\n (input)=\"search(searchBox.value)\" />\n <button class=\"search-button\">\n <i class=\"fa fa-search is-size-4 search-icon\"></i>\n </button>\n</form>\n\n<input *ngIf=\"!searchInput\" type=\"search\" #searchBox (input)=\"search(searchBox.value)\"/>",
|
|
3250
|
+
styles: [":host .search-container{margin:0;display:flex}:host .search-input{border:1px solid rgba(0,0,0,.1)}:host .search-icon{padding-left:0}:host .search-button{margin:0;background:#ff8352;color:#fff}"]
|
|
3098
3251
|
}] }
|
|
3099
3252
|
];
|
|
3100
3253
|
/** @nocollapse */
|
|
@@ -3104,6 +3257,9 @@
|
|
|
3104
3257
|
{ type: core.Renderer2 }
|
|
3105
3258
|
]; };
|
|
3106
3259
|
SearchInputComponent.propDecorators = {
|
|
3260
|
+
isSearchActive: [{ type: core.Input }],
|
|
3261
|
+
searchInput: [{ type: core.Input }],
|
|
3262
|
+
searchSubmit: [{ type: core.Input }],
|
|
3107
3263
|
delay: [{ type: core.Input }],
|
|
3108
3264
|
onChange: [{ type: core.Output }],
|
|
3109
3265
|
searchBox: [{ type: core.ViewChild, args: ['searchBox', { static: false },] }]
|
|
@@ -3111,6 +3267,12 @@
|
|
|
3111
3267
|
return SearchInputComponent;
|
|
3112
3268
|
}(ngxOdeCore.OdeComponent));
|
|
3113
3269
|
if (false) {
|
|
3270
|
+
/** @type {?} */
|
|
3271
|
+
SearchInputComponent.prototype.isSearchActive;
|
|
3272
|
+
/** @type {?} */
|
|
3273
|
+
SearchInputComponent.prototype.searchInput;
|
|
3274
|
+
/** @type {?} */
|
|
3275
|
+
SearchInputComponent.prototype.searchSubmit;
|
|
3114
3276
|
/**
|
|
3115
3277
|
* @type {?}
|
|
3116
3278
|
* @private
|
|
@@ -5195,6 +5357,83 @@
|
|
|
5195
5357
|
return el.triggerEventHandler('click', null);
|
|
5196
5358
|
}
|
|
5197
5359
|
|
|
5360
|
+
/**
|
|
5361
|
+
* @fileoverview added by tsickle
|
|
5362
|
+
* Generated from: lib/components/dropdown/dropdown.component.ts
|
|
5363
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5364
|
+
*/
|
|
5365
|
+
/**
|
|
5366
|
+
* DropdownComponent is an alternative to the MonoSelectComponent.
|
|
5367
|
+
* Accept everything inside <ng-content> but should work with <ode-list> component
|
|
5368
|
+
*
|
|
5369
|
+
* Simple Dropdown Component without search:
|
|
5370
|
+
* [isSearchActive] can be set to false to disable search input in <ode-list>
|
|
5371
|
+
* ```
|
|
5372
|
+
* <ode-dropdown
|
|
5373
|
+
* [name]="option_name"
|
|
5374
|
+
* [isDropdownOpened]="a_boolean"
|
|
5375
|
+
* (onDropdown)="toggle_func"
|
|
5376
|
+
* >
|
|
5377
|
+
* <ode-list
|
|
5378
|
+
* [model]="model"
|
|
5379
|
+
* [filters]="filters"
|
|
5380
|
+
* (onSelect)="func_to_select_elem($event)"
|
|
5381
|
+
* (inputChange)="a_string_for_input_value = $event"
|
|
5382
|
+
* noResultsLabel="text_to_display"
|
|
5383
|
+
* searchPlaceholder="default_placeholder_text"
|
|
5384
|
+
* >
|
|
5385
|
+
* <ng-template let-item>
|
|
5386
|
+
* <div>{{ item.name }}</div>
|
|
5387
|
+
* </ng-template>
|
|
5388
|
+
* </ode-list>
|
|
5389
|
+
* </ode-dropdown>
|
|
5390
|
+
* `̀``
|
|
5391
|
+
*/
|
|
5392
|
+
var DropdownComponent = /** @class */ (function (_super) {
|
|
5393
|
+
__extends(DropdownComponent, _super);
|
|
5394
|
+
function DropdownComponent(injector) {
|
|
5395
|
+
var _this = _super.call(this, injector) || this;
|
|
5396
|
+
_this.name = '';
|
|
5397
|
+
_this.isDropdownOpened = false;
|
|
5398
|
+
_this.onDropdown = new core.EventEmitter();
|
|
5399
|
+
return _this;
|
|
5400
|
+
}
|
|
5401
|
+
/**
|
|
5402
|
+
* @return {?}
|
|
5403
|
+
*/
|
|
5404
|
+
DropdownComponent.prototype.ngOnInit = /**
|
|
5405
|
+
* @return {?}
|
|
5406
|
+
*/
|
|
5407
|
+
function () {
|
|
5408
|
+
_super.prototype.ngOnInit.call(this);
|
|
5409
|
+
};
|
|
5410
|
+
DropdownComponent.decorators = [
|
|
5411
|
+
{ type: core.Component, args: [{
|
|
5412
|
+
selector: 'ode-dropdown',
|
|
5413
|
+
template: "<div class=\"dropdown\" [ngClass]=\"isDropdownOpened ? 'open' : ''\">\n <button (click)=\"onDropdown.emit()\" class=\"dropdown-trigger\">\n <span class=\"cell-ellipsis\">{{ name }}</span> <i class=\"fonticon arrow-select\"></i>\n </button>\n <div class=\"dropdown-list\">\n <ng-content></ng-content>\n </div>\n</div>\n",
|
|
5414
|
+
styles: [".dropdown{position:relative;width:230px;box-sizing:border-box}.dropdown *{box-sizing:border-box}.dropdown-trigger{cursor:pointer;display:inline-flex;align-items:center;justify-content:space-between;padding:12px 16px;font-size:14px;color:#4a4a4a;text-transform:uppercase;text-align:left;width:100%;border-radius:8px;border:1px solid #7a7a7a;background-color:#fff}.dropdown-trigger>span{display:inline-block;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dropdown-trigger i.arrow-select{display:inline-block;float:none!important;padding-left:0;transform:rotate(180deg);transform-origin:center center}.dropdown-list{display:none;position:absolute;overflow:hidden;z-index:2;top:100%;left:0;right:0;width:316px;box-shadow:0 4px 12px 0 rgba(0,0,0,.15);border-radius:8px;background-color:#fff}.dropdown::ng-deep ode-list li{justify-content:flex-start}.dropdown::ng-deep ode-list input[type=search]{padding:12px 16px}.dropdown.open .dropdown-list{display:block}.dropdown.open i.arrow-select{transform:rotate(0)}"]
|
|
5415
|
+
}] }
|
|
5416
|
+
];
|
|
5417
|
+
/** @nocollapse */
|
|
5418
|
+
DropdownComponent.ctorParameters = function () { return [
|
|
5419
|
+
{ type: core.Injector }
|
|
5420
|
+
]; };
|
|
5421
|
+
DropdownComponent.propDecorators = {
|
|
5422
|
+
name: [{ type: core.Input }],
|
|
5423
|
+
isDropdownOpened: [{ type: core.Input }],
|
|
5424
|
+
onDropdown: [{ type: core.Output }]
|
|
5425
|
+
};
|
|
5426
|
+
return DropdownComponent;
|
|
5427
|
+
}(ngxOdeCore.OdeComponent));
|
|
5428
|
+
if (false) {
|
|
5429
|
+
/** @type {?} */
|
|
5430
|
+
DropdownComponent.prototype.name;
|
|
5431
|
+
/** @type {?} */
|
|
5432
|
+
DropdownComponent.prototype.isDropdownOpened;
|
|
5433
|
+
/** @type {?} */
|
|
5434
|
+
DropdownComponent.prototype.onDropdown;
|
|
5435
|
+
}
|
|
5436
|
+
|
|
5198
5437
|
/**
|
|
5199
5438
|
* @fileoverview added by tsickle
|
|
5200
5439
|
* Generated from: lib/ngx-ode-ui.module.ts
|
|
@@ -5243,6 +5482,7 @@
|
|
|
5243
5482
|
LightBoxComponent,
|
|
5244
5483
|
LightboxConfirmComponent,
|
|
5245
5484
|
ListComponent,
|
|
5485
|
+
ListCheckableComponent,
|
|
5246
5486
|
MonoSelectComponent,
|
|
5247
5487
|
MultiSelectComponent,
|
|
5248
5488
|
MultiComboComponent,
|
|
@@ -5277,7 +5517,8 @@
|
|
|
5277
5517
|
LocalizedDatePipe,
|
|
5278
5518
|
BytesPipe,
|
|
5279
5519
|
KeysPipe,
|
|
5280
|
-
LengthPipe
|
|
5520
|
+
LengthPipe,
|
|
5521
|
+
DropdownComponent
|
|
5281
5522
|
],
|
|
5282
5523
|
imports: [
|
|
5283
5524
|
common.CommonModule,
|
|
@@ -5294,6 +5535,7 @@
|
|
|
5294
5535
|
LightBoxComponent,
|
|
5295
5536
|
LightboxConfirmComponent,
|
|
5296
5537
|
ListComponent,
|
|
5538
|
+
ListCheckableComponent,
|
|
5297
5539
|
MonoSelectComponent,
|
|
5298
5540
|
MultiSelectComponent,
|
|
5299
5541
|
MultiComboComponent,
|
|
@@ -5313,6 +5555,7 @@
|
|
|
5313
5555
|
SpinnerCubeComponent,
|
|
5314
5556
|
PagerComponent,
|
|
5315
5557
|
EllipsisComponent,
|
|
5558
|
+
DropdownComponent,
|
|
5316
5559
|
// directives
|
|
5317
5560
|
AnchorDirective,
|
|
5318
5561
|
DynamicTemplateDirective,
|
|
@@ -5359,6 +5602,7 @@
|
|
|
5359
5602
|
exports.LightBoxComponent = LightBoxComponent;
|
|
5360
5603
|
exports.LightboxConfirmComponent = LightboxConfirmComponent;
|
|
5361
5604
|
exports.LimitPipe = LimitPipe;
|
|
5605
|
+
exports.ListCheckableComponent = ListCheckableComponent;
|
|
5362
5606
|
exports.ListComponent = ListComponent;
|
|
5363
5607
|
exports.LocalizedDatePipe = LocalizedDatePipe;
|
|
5364
5608
|
exports.MessageBoxComponent = MessageBoxComponent;
|
|
@@ -5393,6 +5637,7 @@
|
|
|
5393
5637
|
exports.standardise = standardise;
|
|
5394
5638
|
exports.toDecimal = toDecimal;
|
|
5395
5639
|
exports.trim = trim;
|
|
5640
|
+
exports.ɵa = DropdownComponent;
|
|
5396
5641
|
|
|
5397
5642
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5398
5643
|
|