@datarailsshared/datarailsshared 1.3.31 → 1.3.34
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/datarailsshared-datarailsshared.umd.js +351 -10
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.3.34.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/dr-accordion/accordion-item-body.component.js +57 -0
- package/esm2015/lib/dr-accordion/accordion-item-header.component.js +79 -0
- package/esm2015/lib/dr-accordion/accordion-item.component.js +123 -0
- package/esm2015/lib/dr-accordion/accordion.component.js +43 -0
- package/esm2015/lib/dr-accordion/accordion.module.js +23 -0
- package/esm2015/lib/dr-dropdown/dr-dropdown.component.js +5 -6
- package/esm2015/lib/dr-inputs/button/button.component.js +4 -3
- package/esm2015/lib/dr-inputs/dr-toggle/dr-toggle.component.js +3 -3
- package/esm2015/lib/dr-inputs/radio-button/radio-group.component.js +2 -2
- package/esm2015/public-api.js +6 -1
- package/fesm2015/datarailsshared-datarailsshared.js +316 -13
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-accordion/accordion-item-body.component.d.ts +11 -0
- package/lib/dr-accordion/accordion-item-header.component.d.ts +16 -0
- package/lib/dr-accordion/accordion-item.component.d.ts +53 -0
- package/lib/dr-accordion/accordion.component.d.ts +19 -0
- package/lib/dr-accordion/accordion.module.d.ts +2 -0
- package/lib/dr-inputs/button/button.component.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
- package/datarailsshared-datarailsshared-1.3.31.tgz +0 -0
|
@@ -1271,7 +1271,7 @@
|
|
|
1271
1271
|
});
|
|
1272
1272
|
RadioGroupComponent.prototype.ngAfterContentInit = function () {
|
|
1273
1273
|
var _this = this;
|
|
1274
|
-
// In case option 'name' isn't set on
|
|
1274
|
+
// In case option 'name' isn't set on dr-radio component,
|
|
1275
1275
|
// we need to set it's name right away, so it won't overlap with options
|
|
1276
1276
|
// without names from other radio groups. Otherwise they all would have
|
|
1277
1277
|
// same name and will be considered as options from one group so only the
|
|
@@ -2112,12 +2112,12 @@
|
|
|
2112
2112
|
DrToggleComponent.decorators = [
|
|
2113
2113
|
{ type: i0.Component, args: [{
|
|
2114
2114
|
selector: 'dr-toggle',
|
|
2115
|
-
template: "<span class=\"mr-3\" *ngIf=\"toggleTitle && !toggleTitleRight\">{{toggleTitle}}</span>\r\n<label class=\"toggle-container\" [class.success]=\"successType\" [class.disabled]=\"_disabled\">\r\n <input type=\"checkbox\"\r\n [checked]=\"checkedStatus\"\r\n [disabled]=\"_disabled\"\r\n (click)=\"setValue()\">\r\n <span class=\"toggle-body\">\r\n <i></i>\r\n
|
|
2115
|
+
template: "<span class=\"mr-3\" *ngIf=\"toggleTitle && !toggleTitleRight\">{{toggleTitle}}</span>\r\n<label class=\"toggle-container\" [class.success]=\"successType\" [class.disabled]=\"_disabled\">\r\n <input type=\"checkbox\"\r\n [checked]=\"checkedStatus\"\r\n [disabled]=\"_disabled\"\r\n (click)=\"setValue()\">\r\n <span class=\"toggle-body\">\r\n <i></i>\r\n </span>\r\n <ng-content></ng-content>\r\n</label>\r\n<span class=\"ml-3\" *ngIf=\"toggleTitle && toggleTitleRight\">{{toggleTitle}}</span>\r\n",
|
|
2116
2116
|
providers: [
|
|
2117
2117
|
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }
|
|
2118
2118
|
],
|
|
2119
2119
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2120
|
-
styles: [":host{display:flex;justify-content:space-between;align-items:center}:host.toggle-label-alignment{justify-content:start}:host .toggle-container.disabled{pointer-events:none}:host .toggle-container.disabled .toggle-body{background-color:#8f9bb329!important}:host .toggle-container.disabled .toggle-body i{background:rgba(143,155,179,.24)!important}:host .toggle-container.success input:checked+span.toggle-body{background-color:#03a678}:host .toggle-container input{display:none}:host .toggle-container input:checked+span.toggle-body>i,:host .toggle-container input:checked+span.toggle-body:active>i{margin-left:16px}:host .toggle-container input:checked+span.toggle-body{background-color:#4646ce}:host .toggle-container .toggle-body{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#8f929e;line-height:1}:host .toggle-container .toggle-body:active{background-color:#a6b9cb}:host .toggle-container .toggle-body-wrapper{display:flex;flex-direction:column}:host .toggle-container .toggle-body i{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:2px;margin-left:1.5px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;pointer-events:none}\n"]
|
|
2120
|
+
styles: [":host{display:flex;justify-content:space-between;align-items:center}:host.toggle-label-alignment{justify-content:start}:host .toggle-container{display:flex;align-items:center}:host .toggle-container.disabled{pointer-events:none}:host .toggle-container.disabled .toggle-body{background-color:#8f9bb329!important}:host .toggle-container.disabled .toggle-body i{background:rgba(143,155,179,.24)!important}:host .toggle-container.success input:checked+span.toggle-body{background-color:#03a678}:host .toggle-container input{display:none}:host .toggle-container input:checked+span.toggle-body>i,:host .toggle-container input:checked+span.toggle-body:active>i{margin-left:16px}:host .toggle-container input:checked+span.toggle-body{background-color:#4646ce}:host .toggle-container .toggle-body{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#8f929e;line-height:1}:host .toggle-container .toggle-body:active{background-color:#a6b9cb}:host .toggle-container .toggle-body-wrapper{display:flex;flex-direction:column}:host .toggle-container .toggle-body i{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:2px;margin-left:1.5px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;pointer-events:none}\n"]
|
|
2121
2121
|
},] }
|
|
2122
2122
|
];
|
|
2123
2123
|
DrToggleComponent.ctorParameters = function () { return [
|
|
@@ -2332,8 +2332,8 @@
|
|
|
2332
2332
|
DrButtonComponent.decorators = [
|
|
2333
2333
|
{ type: i0.Component, args: [{
|
|
2334
2334
|
selector: 'dr-button',
|
|
2335
|
-
template: "<button (click)=\"onClick($event)\" [disabled]=\"_disabled\" [attr.is-loading]=\"_isLoading\" [attr.bold]=\"isBold\"\r\n [attr.icon]=\"!!icon\" [attr.theme]=\"theme\">\r\n <ng-container *ngIf=\"!_isLoading\">\r\n <i *ngIf=\"icon\" class=\"dr\" [class]=\"icon\" [style.color]=\"iconColor || 'inherit'\"></i>\r\n <ng-content></ng-content>\r\n <i *ngIf=\"theme === 'dropdown'\" class=\"dr-icon-arrow-down\"></i>\r\n </ng-container>\r\n <i *ngIf=\"_isLoading\" class=\"dr dr-spinner dr-icon-load\"></i>\r\n</button>\r\n",
|
|
2336
|
-
styles: [":host{display:inline-block}:host.disabled,:host.loading{pointer-events:none}:host button[theme]{cursor:pointer;border-radius:16px;padding:5px 16px;font-family:\"Poppins\";font-style:normal;font-weight:400;font-size:14px;line-height:22px;color:#4e566c;border:1px solid #7F7FDD;display:flex;justify-content:space-between;align-items:center;height:32px}:host button[theme] .dr{padding:0;margin-left:5.35px;margin-right:8.64px}:host button[theme] .dr-spinner{animation-name:rotate;animation-iteration-count:infinite;animation-duration:1s}@keyframes rotate{0%{transform:rotate()}to{transform:rotate(360deg)}}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=secondary]{padding:5px 16px;background:#FFFFFF;border-radius:16px;min-width:90px}:host button[theme][theme~=split-secondary-first]:hover:not([disabled]),:host button[theme][theme~=split-secondary-last]:hover:not([disabled]),:host button[theme][theme~=secondary]:hover:not([disabled]){color:#4e566c;transition:.2ms ease-in all;background:#F2F2FB;box-shadow:0 4px 14px #0000001a;border:1px solid #4646CE}:host button[theme][theme~=split-secondary-first]:active,:host button[theme][theme~=split-secondary-last]:active,:host button[theme][theme~=secondary]:active{box-shadow:none;background:#F2F2FB}:host button[theme][theme~=split-secondary-first][disabled],:host button[theme][theme~=split-secondary-last][disabled],:host button[theme][theme~=secondary][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=split-secondary-first][is-loading=true],:host button[theme][theme~=split-secondary-last][is-loading=true],:host button[theme][theme~=secondary][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-last],:host button[theme][theme~=primary]{background:#4646CE;color:#fff;border:none;min-width:90px}:host button[theme][theme~=split-primary-first]:hover:not([disabled]),:host button[theme][theme~=split-primary-last]:hover:not([disabled]),:host button[theme][theme~=primary]:hover:not([disabled]){transition:.2ms ease-in all;background:linear-gradient(96.89deg,#25258C 0%,#4646CE 100%);box-shadow:0 4px 14px #0000001a;border:none}:host button[theme][theme~=split-primary-first]:active,:host button[theme][theme~=split-primary-last]:active,:host button[theme][theme~=primary]:active{background:#25258C}:host button[theme][theme~=split-primary-first][disabled],:host button[theme][theme~=split-primary-last][disabled],:host button[theme][theme~=primary][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=split-primary-first][is-loading=true],:host button[theme][theme~=split-primary-last][is-loading=true],:host button[theme][theme~=primary][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=split-primary-first] .dr,:host button[theme][theme~=split-primary-last] .dr,:host button[theme][theme~=primary] .dr{margin:0}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-first]:hover,:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-first]:hover{min-width:unset;border-bottom-right-radius:0;border-top-right-radius:0;padding-left:10px;padding-right:8px}:host button[theme][theme~=split-secondary-first][icon=true],:host button[theme][theme~=split-secondary-first]:hover[icon=true],:host button[theme][theme~=split-primary-first][icon=true],:host button[theme][theme~=split-primary-first]:hover[icon=true]{padding-left:6px;padding-right:2px}:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-first]:hover{border-right:1px solid #fff!important}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-first]:hover{border-right:none!important}:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=split-secondary-last]:hover,:host button[theme][theme~=split-primary-last],:host button[theme][theme~=split-primary-last]:hover{min-width:unset;border-bottom-left-radius:0;border-top-left-radius:0;padding-left:8px;padding-right:10px}:host button[theme][theme~=split-secondary-last][icon=true],:host button[theme][theme~=split-secondary-last]:hover[icon=true],:host button[theme][theme~=split-primary-last][icon=true],:host button[theme][theme~=split-primary-last]:hover[icon=true]{padding-left:2px;padding-right:6px}:host button[theme][theme~=split-secondary-last] .dr,:host button[theme][theme~=split-secondary-last]:hover .dr,:host button[theme][theme~=split-primary-last] .dr,:host button[theme][theme~=split-primary-last]:hover .dr{margin:0}:host button[theme][theme~=split-primary-last],:host button[theme][theme~=split-primary-last]:hover{border-left:none}:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=split-secondary-last]:hover{margin-left:-1px}:host button[theme][theme~=danger]{background:#BF1D30;color:#fff;border:none;min-width:90px}:host button[theme][theme~=danger]:hover:not([disabled]){transition:.2ms ease-in all;background:linear-gradient(96.89deg,#740e1a 0%,#BF1D30 100%);box-shadow:0 4px 14px #0000001a;border-radius:16px;border:none}:host button[theme][theme~=danger]:active{background:#740e1a}:host button[theme][theme~=danger][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=danger][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=ghost]{background:none;border:none;color:#151b3f;padding:4px 8px}:host button[theme][theme~=ghost] .dr{margin-left:4.5px;margin-right:12.5px}:host button[theme][theme~=ghost]:hover:not([disabled]){color:#4646ce;background:#F2F2FB;border-radius:4px}:host button[theme][theme~=ghost][disabled]{color:#727583;cursor:default;pointer-events:none}:host button[theme][theme~=text-link]{background:none;border:none;color:#0b5af9}:host button[theme][theme~=text-link][disabled]{color:#727583;pointer-events:none}:host button[theme][theme~=primary-icon]{padding:8px;width:28px;height:28px;justify-content:center;color:#fff;background:#4646CE;border:none}:host button[theme][theme~=primary-icon]:hover,:host button[theme][theme~=primary-icon]:active{background:linear-gradient(96.89deg,#131318 0%,#4646CE 100%)}:host button[theme][theme~=primary-icon][disabled]{color:#bcbcbc;background:#E5E6EA;cursor:default;pointer-events:none}:host button[theme][theme~=primary-icon] .dr{margin:0}:host button[theme][theme~=secondary-icon]{background:white;padding:8px;width:28px;height:28px;justify-content:center;color:#4e566c;border:1px solid #7F7FDD}:host button[theme][theme~=secondary-icon]:hover,:host button[theme][theme~=secondary-icon]:active{color:#4646ce;background:#F2F2FB}:host button[theme][theme~=secondary-icon][disabled]{color:#bcbcbc;background:#E5E6EA;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=secondary-icon] .dr{margin:0}:host button[theme][theme~=simple-text]{color:#0c142b;border:none;background:none}:host button[theme][theme~=simple-text] .dr{margin:0 8px 0 0}:host button[theme][theme~=icon]{background:none;padding:8px;width:28px;height:28px;justify-content:center;color:#4e566c;border:none}:host button[theme][theme~=icon]:hover,:host button[theme][theme~=icon]:active{background:#F0F3FC;color:#4646ce}:host button[theme][theme~=icon][disabled]{color:#bcbcbc;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=icon][disabled]:hover,:host button[theme][theme~=icon][disabled]:active{background:none}:host button[theme][theme~=icon] .dr{margin:0}:host button[theme][theme~=dropdown]{padding:0 8px;background:#FFFFFF;border-radius:6px;border:1px solid #C3C4CE;min-width:unset;box-shadow:none}:host button[theme][theme~=dropdown]:hover{border-color:#85889c}:host button[theme][theme~=dropdown]:active{border-color:#4646ce}:host button[theme][theme~=dropdown] i:first-child{margin-right:3px}:host button[theme][theme~=dropdown] i:last-child{margin-left:3px}:host button[theme][bold=true]{font-weight:600}:host button[theme][icon=true]{padding-left:8px}:host button[theme][icon=false]{justify-content:center}\n"]
|
|
2335
|
+
template: "<button (click)=\"onClick($event)\" [disabled]=\"_disabled\" [attr.is-loading]=\"_isLoading\" [attr.bold]=\"isBold\"\r\n [attr.icon]=\"!!icon\" [attr.iconAfterLabel]=\"!!iconAfterLabel\" [attr.theme]=\"theme\">\r\n <ng-container *ngIf=\"!_isLoading\">\r\n <i *ngIf=\"icon\" class=\"dr\" [class]=\"icon\" [style.color]=\"iconColor || 'inherit'\"></i>\r\n <ng-content></ng-content>\r\n <i *ngIf=\"theme === 'dropdown'\" class=\"dr-icon-arrow-down\"></i>\r\n <i *ngIf=\"iconAfterLabel\" class=\"dr dr-last\" [class]=\"iconAfterLabel\" [style.color]=\"iconColor || 'inherit'\"></i>\r\n </ng-container>\r\n <i *ngIf=\"_isLoading\" class=\"dr dr-spinner dr-icon-load\"></i>\r\n</button>\r\n",
|
|
2336
|
+
styles: [":host{display:inline-block}:host.disabled,:host.loading{pointer-events:none}:host button[theme]{cursor:pointer;border-radius:16px;padding:5px 16px;font-family:\"Poppins\";font-style:normal;font-weight:400;font-size:14px;line-height:22px;color:#4e566c;border:1px solid #7F7FDD;display:flex;justify-content:space-between;align-items:center;height:32px}:host button[theme] .dr{padding:0;margin-left:5.35px;margin-right:8.64px}:host button[theme] .dr-spinner{animation-name:rotate;animation-iteration-count:infinite;animation-duration:1s}@keyframes rotate{0%{transform:rotate()}to{transform:rotate(360deg)}}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=secondary]{padding:5px 16px;background:#FFFFFF;border-radius:16px;min-width:90px}:host button[theme][theme~=split-secondary-first]:hover:not([disabled]),:host button[theme][theme~=split-secondary-last]:hover:not([disabled]),:host button[theme][theme~=secondary]:hover:not([disabled]){color:#4e566c;transition:.2ms ease-in all;background:#F2F2FB;box-shadow:0 4px 14px #0000001a;border:1px solid #4646CE}:host button[theme][theme~=split-secondary-first]:active,:host button[theme][theme~=split-secondary-last]:active,:host button[theme][theme~=secondary]:active{box-shadow:none;background:#F2F2FB}:host button[theme][theme~=split-secondary-first][disabled],:host button[theme][theme~=split-secondary-last][disabled],:host button[theme][theme~=secondary][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=split-secondary-first][is-loading=true],:host button[theme][theme~=split-secondary-last][is-loading=true],:host button[theme][theme~=secondary][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-last],:host button[theme][theme~=primary]{background:#4646CE;color:#fff;border:none;min-width:90px}:host button[theme][theme~=split-primary-first]:hover:not([disabled]),:host button[theme][theme~=split-primary-last]:hover:not([disabled]),:host button[theme][theme~=primary]:hover:not([disabled]){transition:.2ms ease-in all;background:linear-gradient(96.89deg,#25258C 0%,#4646CE 100%);box-shadow:0 4px 14px #0000001a;border:none}:host button[theme][theme~=split-primary-first]:active,:host button[theme][theme~=split-primary-last]:active,:host button[theme][theme~=primary]:active{background:#25258C}:host button[theme][theme~=split-primary-first][disabled],:host button[theme][theme~=split-primary-last][disabled],:host button[theme][theme~=primary][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=split-primary-first][is-loading=true],:host button[theme][theme~=split-primary-last][is-loading=true],:host button[theme][theme~=primary][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=split-primary-first] .dr,:host button[theme][theme~=split-primary-last] .dr,:host button[theme][theme~=primary] .dr{margin:0}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-first]:hover,:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-first]:hover{min-width:unset;border-bottom-right-radius:0;border-top-right-radius:0;padding-left:10px;padding-right:8px}:host button[theme][theme~=split-secondary-first][icon=true],:host button[theme][theme~=split-secondary-first]:hover[icon=true],:host button[theme][theme~=split-primary-first][icon=true],:host button[theme][theme~=split-primary-first]:hover[icon=true]{padding-left:6px;padding-right:2px}:host button[theme][theme~=split-primary-first],:host button[theme][theme~=split-primary-first]:hover{border-right:1px solid #fff!important}:host button[theme][theme~=split-secondary-first],:host button[theme][theme~=split-secondary-first]:hover{border-right:none!important}:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=split-secondary-last]:hover,:host button[theme][theme~=split-primary-last],:host button[theme][theme~=split-primary-last]:hover{min-width:unset;border-bottom-left-radius:0;border-top-left-radius:0;padding-left:8px;padding-right:10px}:host button[theme][theme~=split-secondary-last][icon=true],:host button[theme][theme~=split-secondary-last]:hover[icon=true],:host button[theme][theme~=split-primary-last][icon=true],:host button[theme][theme~=split-primary-last]:hover[icon=true]{padding-left:2px;padding-right:6px}:host button[theme][theme~=split-secondary-last] .dr,:host button[theme][theme~=split-secondary-last]:hover .dr,:host button[theme][theme~=split-primary-last] .dr,:host button[theme][theme~=split-primary-last]:hover .dr{margin:0}:host button[theme][theme~=split-primary-last],:host button[theme][theme~=split-primary-last]:hover{border-left:none}:host button[theme][theme~=split-secondary-last],:host button[theme][theme~=split-secondary-last]:hover{margin-left:-1px}:host button[theme][theme~=danger]{background:#BF1D30;color:#fff;border:none;min-width:90px}:host button[theme][theme~=danger]:hover:not([disabled]){transition:.2ms ease-in all;background:linear-gradient(96.89deg,#740e1a 0%,#BF1D30 100%);box-shadow:0 4px 14px #0000001a;border-radius:16px;border:none}:host button[theme][theme~=danger]:active{background:#740e1a}:host button[theme][theme~=danger][disabled]{background:#F0F1F4;color:#727583;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=danger][is-loading=true]{justify-content:center;padding:5px 16px;pointer-events:none}:host button[theme][theme~=ghost]{background:none;border:none;color:#151b3f;padding:4px 8px}:host button[theme][theme~=ghost] .dr{margin-left:4.5px;margin-right:12.5px}:host button[theme][theme~=ghost]:hover:not([disabled]){color:#4646ce;background:#F2F2FB;border-radius:4px}:host button[theme][theme~=ghost][disabled]{color:#727583;cursor:default;pointer-events:none}:host button[theme][theme~=text-link]{background:none;border:none;color:#0b5af9}:host button[theme][theme~=text-link][disabled]{color:#727583;pointer-events:none}:host button[theme][theme~=primary-icon]{padding:8px;width:28px;height:28px;justify-content:center;color:#fff;background:#4646CE;border:none}:host button[theme][theme~=primary-icon]:hover,:host button[theme][theme~=primary-icon]:active{background:linear-gradient(96.89deg,#131318 0%,#4646CE 100%)}:host button[theme][theme~=primary-icon][disabled]{color:#bcbcbc;background:#E5E6EA;cursor:default;pointer-events:none}:host button[theme][theme~=primary-icon] .dr{margin:0}:host button[theme][theme~=secondary-icon]{background:white;padding:8px;width:28px;height:28px;justify-content:center;color:#4e566c;border:1px solid #7F7FDD}:host button[theme][theme~=secondary-icon]:hover,:host button[theme][theme~=secondary-icon]:active{color:#4646ce;background:#F2F2FB}:host button[theme][theme~=secondary-icon][disabled]{color:#bcbcbc;background:#E5E6EA;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=secondary-icon] .dr{margin:0}:host button[theme][theme~=simple-text]{color:#0c142b;border:none;background:none}:host button[theme][theme~=simple-text] .dr{margin:0 8px 0 0}:host button[theme][theme~=icon]{background:none;padding:8px;width:28px;height:28px;justify-content:center;color:#4e566c;border:none}:host button[theme][theme~=icon]:hover,:host button[theme][theme~=icon]:active{background:#F0F3FC;color:#4646ce}:host button[theme][theme~=icon][disabled]{color:#bcbcbc;border:none;cursor:default;pointer-events:none}:host button[theme][theme~=icon][disabled]:hover,:host button[theme][theme~=icon][disabled]:active{background:none}:host button[theme][theme~=icon] .dr{margin:0}:host button[theme][theme~=dropdown]{padding:0 8px;background:#FFFFFF;border-radius:6px;border:1px solid #C3C4CE;min-width:unset;box-shadow:none}:host button[theme][theme~=dropdown]:hover{border-color:#85889c}:host button[theme][theme~=dropdown]:active{border-color:#4646ce}:host button[theme][theme~=dropdown] i:first-child{margin-right:3px}:host button[theme][theme~=dropdown] i:last-child{margin-left:3px}:host button[theme][theme~=link-btn]{padding:5px 8px;border:none;background:none;border-radius:5px;color:#0c142b}:host button[theme][theme~=link-btn] .dr{margin:0 4px 0 0}:host button[theme][theme~=link-btn] .dr-last{margin-right:0;margin-left:4px}:host button[theme][theme~=link-btn]:hover{background:#F2F2FB;color:#4646ce}:host button[theme][theme~=link-btn]:active{background:#F2F2FB;color:#25258c}:host button[theme][theme~=link-btn]:disabled{background:none;color:#727583}:host button[theme][theme~=link-btn]:disabled .dr{color:#bcbcbc}:host button[theme][bold=true]{font-weight:600}:host button[theme][icon=true]{padding-left:8px}:host button[theme][icon=false]{justify-content:center}\n"]
|
|
2337
2337
|
},] }
|
|
2338
2338
|
];
|
|
2339
2339
|
DrButtonComponent.ctorParameters = function () { return []; };
|
|
@@ -2341,6 +2341,7 @@
|
|
|
2341
2341
|
title: [{ type: i0.Input }],
|
|
2342
2342
|
theme: [{ type: i0.Input }],
|
|
2343
2343
|
icon: [{ type: i0.Input }],
|
|
2344
|
+
iconAfterLabel: [{ type: i0.Input }],
|
|
2344
2345
|
isBold: [{ type: i0.Input }],
|
|
2345
2346
|
iconColor: [{ type: i0.Input }],
|
|
2346
2347
|
disabled: [{ type: i0.Input }],
|
|
@@ -2976,10 +2977,9 @@
|
|
|
2976
2977
|
}
|
|
2977
2978
|
};
|
|
2978
2979
|
DrDropdownComponent.prototype.tooltipToShow = function (act) {
|
|
2979
|
-
if (act.toolTipIfDisabled
|
|
2980
|
+
if (act.toolTipIfDisabled && !this.disabled(act) && !act.toolTip)
|
|
2980
2981
|
return '';
|
|
2981
|
-
|
|
2982
|
-
return act.toolTip ? act.toolTip : act.title;
|
|
2982
|
+
return act.toolTip || act.title;
|
|
2983
2983
|
};
|
|
2984
2984
|
DrDropdownComponent.prototype.action = function (act) {
|
|
2985
2985
|
if (!this.disabled(act)) {
|
|
@@ -3004,9 +3004,9 @@
|
|
|
3004
3004
|
DrDropdownComponent.decorators = [
|
|
3005
3005
|
{ type: i0.Component, args: [{
|
|
3006
3006
|
selector: 'dr-dropdown',
|
|
3007
|
-
template: "<div #menuContainer\r\n (clickOutside)=\"onClickedOutside()\"\r\n [drDropdownPosition]=\"option\"\r\n [position]=\"position\"\r\n [class]=\"containerClass\"\r\n class=\"dr-dropdown\">\r\n <div class=\"dr-dropdown__container\">\r\n <div *ngFor=\"let act of list | drDropdownItemShowPipe\"\r\n (click)=\"action(act)\"\r\n [drTooltip]=\"tooltipToShow(act)\"\r\n [drTooltipPosition]=\"'top'\"\r\n [drTooltipOptions]=\"{ withoutArrow: true }\"\r\n class=\"dr-dropdown__container__item\"\r\n [class.item-disabled]=\"disabled(act)\"\r\n [class.item-selected]=\"selected(act)\">\r\n <i *ngIf=\"act.icon\" [class]=\"act.icon\"></i>\r\n <span class=\"dr-dropdown__container__item__text\">{{act.title}}</span>\r\n <i *ngFor=\"let actionIcon of act.actionIcons\"\r\n [class]=\"actionIcon.icon\"\r\n [class.showOnHover]=\"actionIcon.showOnHover\"\r\n (click)=\"onActionIconClick($event, actionIcon, act.data)\"></i>\r\n <i *ngIf=\"act.children?.length\" class=\"dr-icon-arrow-right\"></i>\r\n <dr-dropdown *ngIf=\"act.children?.length\" [options]=\"act.childOptions\"></dr-dropdown>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
3007
|
+
template: "<div #menuContainer\r\n (clickOutside)=\"onClickedOutside()\"\r\n [drDropdownPosition]=\"option\"\r\n [position]=\"position\"\r\n [class]=\"containerClass\"\r\n class=\"dr-dropdown\">\r\n <div class=\"dr-dropdown__container\">\r\n <div *ngFor=\"let act of list | drDropdownItemShowPipe\"\r\n (click)=\"action(act)\"\r\n [drTooltip]=\"tooltipToShow(act)\"\r\n [drTooltipPosition]=\"'top'\"\r\n [drTooltipOptions]=\"{ withoutArrow: true }\"\r\n [drTooltipClass]=\"'dr-dropdown__tooltip'\"\r\n class=\"dr-dropdown__container__item\"\r\n [class.item-disabled]=\"disabled(act)\"\r\n [class.item-selected]=\"selected(act)\">\r\n <i *ngIf=\"act.icon\" [class]=\"act.icon\"></i>\r\n <span class=\"dr-dropdown__container__item__text\">{{act.title}}</span>\r\n <i *ngFor=\"let actionIcon of act.actionIcons\"\r\n [class]=\"actionIcon.icon\"\r\n [class.showOnHover]=\"actionIcon.showOnHover\"\r\n (click)=\"onActionIconClick($event, actionIcon, act.data)\"></i>\r\n <i *ngIf=\"act.children?.length\" class=\"dr-icon-arrow-right\"></i>\r\n <dr-dropdown *ngIf=\"act.children?.length\" [options]=\"act.childOptions\"></dr-dropdown>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
3008
3008
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3009
|
-
styles: ["::ng-deep .dr-dropdown__container__item .dr-dropdown{visibility:hidden}::ng-deep .dr-dropdown__container__item:hover .dr-dropdown{visibility:visible}.dr-dropdown{position:absolute;z-index:-1;top:0;left:0;width:auto}.dr-dropdown__container{display:flex;flex-direction:column;background:#fff;border-radius:4px;box-shadow:0 4px 8px 1px #00000040;padding:8px 0;overflow-y:auto;max-height:60vh}.dr-dropdown__container__item{display:flex;align-items:center;justify-content:flex-start;cursor:pointer;min-width:15rem;font-style:normal;font-weight:400;font-size:14px;line-height:24px;clear:both;width:100%;white-space:nowrap;padding:0 12px;height:36px;flex-shrink:0}.dr-dropdown__container__item:hover{background-color:#f6f7f8}.dr-dropdown__container__item:hover .showOnHover{visibility:visible}.dr-dropdown__container__item.item-selected{background:#F3F7FF}.dr-dropdown__container__item.item-disabled,.dr-dropdown__container__item.item-disabled i,.dr-dropdown__container__item.item-disabled .dr-dropdown__container__item__text{color:#bcbcbc
|
|
3009
|
+
styles: ["::ng-deep .dr-dropdown__container__item .dr-dropdown{visibility:hidden}::ng-deep .dr-dropdown__container__item:hover .dr-dropdown{visibility:visible}::ng-deep .cdk-overlay-container{z-index:10400}::ng-deep .dr-dropdown__tooltip>.default-content{max-width:300px;white-space:normal!important}.dr-dropdown{position:absolute;z-index:-1;top:0;left:0;width:auto}.dr-dropdown__container{display:flex;flex-direction:column;background:#fff;border-radius:4px;box-shadow:0 4px 8px 1px #00000040;padding:8px 0;overflow-y:auto;max-height:60vh}.dr-dropdown__container__item{display:flex;align-items:center;justify-content:flex-start;cursor:pointer;min-width:15rem;font-style:normal;font-weight:400;font-size:14px;line-height:24px;clear:both;width:100%;white-space:nowrap;padding:0 12px;height:36px;flex-shrink:0}.dr-dropdown__container__item:hover{background-color:#f6f7f8}.dr-dropdown__container__item:hover .showOnHover{visibility:visible}.dr-dropdown__container__item.item-selected{background:#F3F7FF}.dr-dropdown__container__item.item-disabled,.dr-dropdown__container__item.item-disabled i,.dr-dropdown__container__item.item-disabled .dr-dropdown__container__item__text{color:#bcbcbc}.dr-dropdown__container__item i:first-child{margin-right:8px}.dr-dropdown__container__item__text{margin-right:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dr-dropdown__container__item i,.dr-dropdown__container__item__text{color:#151b3f}.dr-dropdown__container__item .showOnHover{visibility:hidden}.dr-dropdown.content-top{transform:translate(-50%,-100%)}.dr-dropdown.content-top-left{transform:translate(-100%,-100%)}.dr-dropdown.content-bottom{transform:translate(-50%,50%)}.dr-dropdown.content-bottom-left{transform:translate(-90%,35%)}.dr-dropdown.content-bottom-right{transform:translateY(45%)}.dr-dropdown.content-left{transform:translate(-100%)}.dr-dropdown.content-left-center{transform:translate(-100%,-50%)}.dr-dropdown.content-right{transform:translate(5%)}\n"]
|
|
3010
3010
|
},] }
|
|
3011
3011
|
];
|
|
3012
3012
|
DrDropdownComponent.ctorParameters = function () { return [
|
|
@@ -3241,6 +3241,322 @@
|
|
|
3241
3241
|
tabsContentList: [{ type: i0.ContentChildren, args: [DrTabComponent,] }]
|
|
3242
3242
|
};
|
|
3243
3243
|
|
|
3244
|
+
var DrAccordionComponent = /** @class */ (function () {
|
|
3245
|
+
function DrAccordionComponent() {
|
|
3246
|
+
this.openCloseItems = new rxjs.Subject();
|
|
3247
|
+
this.multiValue = false;
|
|
3248
|
+
}
|
|
3249
|
+
Object.defineProperty(DrAccordionComponent.prototype, "multi", {
|
|
3250
|
+
/**
|
|
3251
|
+
* Allow multiple items to be expanded at the same time.
|
|
3252
|
+
*/
|
|
3253
|
+
get: function () {
|
|
3254
|
+
return this.multiValue;
|
|
3255
|
+
},
|
|
3256
|
+
set: function (val) {
|
|
3257
|
+
this.multiValue = !!val;
|
|
3258
|
+
},
|
|
3259
|
+
enumerable: false,
|
|
3260
|
+
configurable: true
|
|
3261
|
+
});
|
|
3262
|
+
/**
|
|
3263
|
+
* Opens all enabled accordion items.
|
|
3264
|
+
*/
|
|
3265
|
+
DrAccordionComponent.prototype.openAll = function () {
|
|
3266
|
+
if (this.multi) {
|
|
3267
|
+
this.openCloseItems.next(false);
|
|
3268
|
+
}
|
|
3269
|
+
};
|
|
3270
|
+
/**
|
|
3271
|
+
* Closes all enabled accordion items.
|
|
3272
|
+
*/
|
|
3273
|
+
DrAccordionComponent.prototype.closeAll = function () {
|
|
3274
|
+
this.openCloseItems.next(true);
|
|
3275
|
+
};
|
|
3276
|
+
return DrAccordionComponent;
|
|
3277
|
+
}());
|
|
3278
|
+
DrAccordionComponent.decorators = [
|
|
3279
|
+
{ type: i0.Component, args: [{
|
|
3280
|
+
selector: 'dr-accordion',
|
|
3281
|
+
template: '<ng-content select="dr-accordion-item"></ng-content>',
|
|
3282
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3283
|
+
styles: [":host{display:block;box-shadow:#2c33491a 0 5px 10px}\n"]
|
|
3284
|
+
},] }
|
|
3285
|
+
];
|
|
3286
|
+
DrAccordionComponent.propDecorators = {
|
|
3287
|
+
multi: [{ type: i0.Input, args: ['multi',] }]
|
|
3288
|
+
};
|
|
3289
|
+
|
|
3290
|
+
var DrAccordionItemComponent = /** @class */ (function () {
|
|
3291
|
+
function DrAccordionItemComponent(accordion, cd) {
|
|
3292
|
+
this.accordion = accordion;
|
|
3293
|
+
this.cd = cd;
|
|
3294
|
+
/**
|
|
3295
|
+
* Emits whenever the expanded state of the accordion changes.
|
|
3296
|
+
* Primarily used to facilitate two-way binding.
|
|
3297
|
+
*/
|
|
3298
|
+
this.collapsedChange = new i0.EventEmitter();
|
|
3299
|
+
this.accordionItemInvalidate = new rxjs.Subject();
|
|
3300
|
+
this.collapsedValue = true;
|
|
3301
|
+
this.disabledValue = false;
|
|
3302
|
+
this.destroy$ = new rxjs.Subject();
|
|
3303
|
+
}
|
|
3304
|
+
Object.defineProperty(DrAccordionItemComponent.prototype, "collapsed", {
|
|
3305
|
+
/**
|
|
3306
|
+
* Item is collapse (`true` by default)
|
|
3307
|
+
* @type {boolean}
|
|
3308
|
+
*/
|
|
3309
|
+
get: function () {
|
|
3310
|
+
return this.collapsedValue;
|
|
3311
|
+
},
|
|
3312
|
+
set: function (val) {
|
|
3313
|
+
this.collapsedValue = !!val;
|
|
3314
|
+
this.collapsedChange.emit(this.collapsedValue);
|
|
3315
|
+
this.invalidate();
|
|
3316
|
+
},
|
|
3317
|
+
enumerable: false,
|
|
3318
|
+
configurable: true
|
|
3319
|
+
});
|
|
3320
|
+
Object.defineProperty(DrAccordionItemComponent.prototype, "expanded", {
|
|
3321
|
+
/**
|
|
3322
|
+
* Item is expanded (`false` by default)
|
|
3323
|
+
*/
|
|
3324
|
+
get: function () {
|
|
3325
|
+
return !this.collapsed;
|
|
3326
|
+
},
|
|
3327
|
+
set: function (val) {
|
|
3328
|
+
this.collapsedValue = !val;
|
|
3329
|
+
},
|
|
3330
|
+
enumerable: false,
|
|
3331
|
+
configurable: true
|
|
3332
|
+
});
|
|
3333
|
+
Object.defineProperty(DrAccordionItemComponent.prototype, "disabled", {
|
|
3334
|
+
/**
|
|
3335
|
+
* Item is disabled and cannot be opened.
|
|
3336
|
+
* @type {boolean}
|
|
3337
|
+
*/
|
|
3338
|
+
get: function () {
|
|
3339
|
+
return this.disabledValue;
|
|
3340
|
+
},
|
|
3341
|
+
set: function (val) {
|
|
3342
|
+
this.disabledValue = !!val;
|
|
3343
|
+
this.invalidate();
|
|
3344
|
+
},
|
|
3345
|
+
enumerable: false,
|
|
3346
|
+
configurable: true
|
|
3347
|
+
});
|
|
3348
|
+
/**
|
|
3349
|
+
* Open/close the item
|
|
3350
|
+
*/
|
|
3351
|
+
DrAccordionItemComponent.prototype.toggle = function () {
|
|
3352
|
+
if (!this.disabled) {
|
|
3353
|
+
// we need this temporary variable as `openCloseItems.next` will change current value we need to save
|
|
3354
|
+
var willSet = !this.collapsed;
|
|
3355
|
+
if (!this.accordion.multi) {
|
|
3356
|
+
this.accordion.openCloseItems.next(true);
|
|
3357
|
+
}
|
|
3358
|
+
this.collapsed = willSet;
|
|
3359
|
+
}
|
|
3360
|
+
};
|
|
3361
|
+
/**
|
|
3362
|
+
* Open the item.
|
|
3363
|
+
*/
|
|
3364
|
+
DrAccordionItemComponent.prototype.open = function () {
|
|
3365
|
+
if (!this.disabled) {
|
|
3366
|
+
this.collapsed = false;
|
|
3367
|
+
}
|
|
3368
|
+
};
|
|
3369
|
+
/**
|
|
3370
|
+
* Collapse the item.
|
|
3371
|
+
*/
|
|
3372
|
+
DrAccordionItemComponent.prototype.close = function () {
|
|
3373
|
+
if (!this.disabled) {
|
|
3374
|
+
this.collapsed = true;
|
|
3375
|
+
}
|
|
3376
|
+
};
|
|
3377
|
+
DrAccordionItemComponent.prototype.ngOnInit = function () {
|
|
3378
|
+
var _this = this;
|
|
3379
|
+
this.accordion.openCloseItems
|
|
3380
|
+
.pipe(operators.takeUntil(this.destroy$))
|
|
3381
|
+
.subscribe(function (collapsed) {
|
|
3382
|
+
if (!_this.disabled) {
|
|
3383
|
+
_this.collapsed = collapsed;
|
|
3384
|
+
}
|
|
3385
|
+
});
|
|
3386
|
+
};
|
|
3387
|
+
DrAccordionItemComponent.prototype.ngOnChanges = function (changes) {
|
|
3388
|
+
this.accordionItemInvalidate.next(true);
|
|
3389
|
+
};
|
|
3390
|
+
DrAccordionItemComponent.prototype.ngOnDestroy = function () {
|
|
3391
|
+
this.destroy$.next();
|
|
3392
|
+
this.destroy$.complete();
|
|
3393
|
+
this.accordionItemInvalidate.complete();
|
|
3394
|
+
};
|
|
3395
|
+
DrAccordionItemComponent.prototype.invalidate = function () {
|
|
3396
|
+
this.accordionItemInvalidate.next(true);
|
|
3397
|
+
this.cd.markForCheck();
|
|
3398
|
+
};
|
|
3399
|
+
return DrAccordionItemComponent;
|
|
3400
|
+
}());
|
|
3401
|
+
DrAccordionItemComponent.decorators = [
|
|
3402
|
+
{ type: i0.Component, args: [{
|
|
3403
|
+
selector: 'dr-accordion-item',
|
|
3404
|
+
template: "\n <ng-content select=\"dr-accordion-item-header\"></ng-content>\n <ng-content select=\"dr-accordion-item-body\"></ng-content>\n ",
|
|
3405
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3406
|
+
styles: [":host{background-color:#fff;color:#222b45;font-family:\"Poppins\",sans-serif;font-size:16px;font-weight:400;line-height:1.25rem;display:flex;flex-direction:column}\n"]
|
|
3407
|
+
},] }
|
|
3408
|
+
];
|
|
3409
|
+
DrAccordionItemComponent.ctorParameters = function () { return [
|
|
3410
|
+
{ type: DrAccordionComponent, decorators: [{ type: i0.Host }] },
|
|
3411
|
+
{ type: i0.ChangeDetectorRef }
|
|
3412
|
+
]; };
|
|
3413
|
+
DrAccordionItemComponent.propDecorators = {
|
|
3414
|
+
collapsed: [{ type: i0.Input, args: ['collapsed',] }, { type: i0.HostBinding, args: ['class.collapsed',] }],
|
|
3415
|
+
expanded: [{ type: i0.Input, args: ['expanded',] }, { type: i0.HostBinding, args: ['class.expanded',] }],
|
|
3416
|
+
disabled: [{ type: i0.Input, args: ['disabled',] }, { type: i0.HostBinding, args: ['class.disabled',] }],
|
|
3417
|
+
collapsedChange: [{ type: i0.Output }]
|
|
3418
|
+
};
|
|
3419
|
+
|
|
3420
|
+
var DrAccordionItemHeaderComponent = /** @class */ (function () {
|
|
3421
|
+
function DrAccordionItemHeaderComponent(accordionItem, cd) {
|
|
3422
|
+
this.accordionItem = accordionItem;
|
|
3423
|
+
this.cd = cd;
|
|
3424
|
+
this.destroy$ = new rxjs.Subject();
|
|
3425
|
+
}
|
|
3426
|
+
Object.defineProperty(DrAccordionItemHeaderComponent.prototype, "isCollapsed", {
|
|
3427
|
+
get: function () {
|
|
3428
|
+
return this.accordionItem.collapsed;
|
|
3429
|
+
},
|
|
3430
|
+
enumerable: false,
|
|
3431
|
+
configurable: true
|
|
3432
|
+
});
|
|
3433
|
+
Object.defineProperty(DrAccordionItemHeaderComponent.prototype, "expanded", {
|
|
3434
|
+
get: function () {
|
|
3435
|
+
return !this.accordionItem.collapsed;
|
|
3436
|
+
},
|
|
3437
|
+
enumerable: false,
|
|
3438
|
+
configurable: true
|
|
3439
|
+
});
|
|
3440
|
+
Object.defineProperty(DrAccordionItemHeaderComponent.prototype, "tabbable", {
|
|
3441
|
+
get: function () {
|
|
3442
|
+
return this.accordionItem.disabled ? '-1' : '0';
|
|
3443
|
+
},
|
|
3444
|
+
enumerable: false,
|
|
3445
|
+
configurable: true
|
|
3446
|
+
});
|
|
3447
|
+
Object.defineProperty(DrAccordionItemHeaderComponent.prototype, "disabled", {
|
|
3448
|
+
get: function () {
|
|
3449
|
+
return this.accordionItem.disabled;
|
|
3450
|
+
},
|
|
3451
|
+
enumerable: false,
|
|
3452
|
+
configurable: true
|
|
3453
|
+
});
|
|
3454
|
+
DrAccordionItemHeaderComponent.prototype.toggle = function () {
|
|
3455
|
+
this.accordionItem.toggle();
|
|
3456
|
+
};
|
|
3457
|
+
Object.defineProperty(DrAccordionItemHeaderComponent.prototype, "state", {
|
|
3458
|
+
get: function () {
|
|
3459
|
+
if (this.isCollapsed) {
|
|
3460
|
+
return 'collapsed';
|
|
3461
|
+
}
|
|
3462
|
+
return 'expanded';
|
|
3463
|
+
},
|
|
3464
|
+
enumerable: false,
|
|
3465
|
+
configurable: true
|
|
3466
|
+
});
|
|
3467
|
+
DrAccordionItemHeaderComponent.prototype.ngOnInit = function () {
|
|
3468
|
+
var _this = this;
|
|
3469
|
+
this.accordionItem.accordionItemInvalidate
|
|
3470
|
+
.pipe(operators.takeUntil(this.destroy$))
|
|
3471
|
+
.subscribe(function () { return _this.cd.markForCheck(); });
|
|
3472
|
+
};
|
|
3473
|
+
DrAccordionItemHeaderComponent.prototype.ngOnDestroy = function () {
|
|
3474
|
+
this.destroy$.next();
|
|
3475
|
+
this.destroy$.complete();
|
|
3476
|
+
};
|
|
3477
|
+
return DrAccordionItemHeaderComponent;
|
|
3478
|
+
}());
|
|
3479
|
+
DrAccordionItemHeaderComponent.decorators = [
|
|
3480
|
+
{ type: i0.Component, args: [{
|
|
3481
|
+
selector: 'dr-accordion-item-header',
|
|
3482
|
+
template: "\n <ng-content select=\"dr-accordion-item-title\"></ng-content>\n <ng-content select=\"dr-accordion-item-description\"></ng-content>\n <ng-content></ng-content>\n <i class=\"dr-icon-arrow-down expansion-indicator\"\n [@expansionIndicator]=\"state\"\n *ngIf=\"!disabled\">\n </i>\n ",
|
|
3483
|
+
animations: [
|
|
3484
|
+
animations.trigger('expansionIndicator', [
|
|
3485
|
+
animations.state('expanded', animations.style({
|
|
3486
|
+
transform: 'rotate(180deg)',
|
|
3487
|
+
})),
|
|
3488
|
+
animations.transition('collapsed => expanded', animations.animate('100ms ease-in')),
|
|
3489
|
+
animations.transition('expanded => collapsed', animations.animate('100ms ease-out')),
|
|
3490
|
+
]),
|
|
3491
|
+
],
|
|
3492
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3493
|
+
styles: [":host{display:flex;align-items:center;cursor:pointer;position:relative;border-bottom:1px solid #edf1f7;color:#222b45;font-family:\"Poppins\",sans-serif;font-size:13px;font-weight:600;line-height:1.5rem;padding:1.25rem;text-transform:capitalize}:host:focus{outline:0}:host .expansion-indicator{font-size:24px;position:absolute;right:10px;font-weight:700}\n"]
|
|
3494
|
+
},] }
|
|
3495
|
+
];
|
|
3496
|
+
DrAccordionItemHeaderComponent.ctorParameters = function () { return [
|
|
3497
|
+
{ type: DrAccordionItemComponent, decorators: [{ type: i0.Host }] },
|
|
3498
|
+
{ type: i0.ChangeDetectorRef }
|
|
3499
|
+
]; };
|
|
3500
|
+
DrAccordionItemHeaderComponent.propDecorators = {
|
|
3501
|
+
isCollapsed: [{ type: i0.HostBinding, args: ['class.accordion-item-header-collapsed',] }],
|
|
3502
|
+
expanded: [{ type: i0.HostBinding, args: ['class.accordion-item-header-expanded',] }, { type: i0.HostBinding, args: ['attr.aria-expanded',] }],
|
|
3503
|
+
tabbable: [{ type: i0.HostBinding, args: ['attr.tabindex',] }],
|
|
3504
|
+
disabled: [{ type: i0.HostBinding, args: ['attr.aria-disabled',] }],
|
|
3505
|
+
toggle: [{ type: i0.HostListener, args: ['click',] }, { type: i0.HostListener, args: ['keydown.space',] }, { type: i0.HostListener, args: ['keydown.enter',] }]
|
|
3506
|
+
};
|
|
3507
|
+
|
|
3508
|
+
var accordionItemBodyTrigger = animations.trigger('accordionItemBody', [
|
|
3509
|
+
animations.state('collapsed', animations.style({
|
|
3510
|
+
overflow: 'hidden',
|
|
3511
|
+
visibility: 'hidden',
|
|
3512
|
+
height: 0,
|
|
3513
|
+
})),
|
|
3514
|
+
animations.state('expanded', animations.style({
|
|
3515
|
+
overflow: 'hidden',
|
|
3516
|
+
visibility: 'visible',
|
|
3517
|
+
})),
|
|
3518
|
+
animations.transition('collapsed => expanded', animations.animate('100ms ease-in')),
|
|
3519
|
+
animations.transition('expanded => collapsed', animations.animate('100ms ease-out')),
|
|
3520
|
+
]);
|
|
3521
|
+
var DrAccordionItemBodyComponent = /** @class */ (function () {
|
|
3522
|
+
function DrAccordionItemBodyComponent(accordionItem, cd) {
|
|
3523
|
+
this.accordionItem = accordionItem;
|
|
3524
|
+
this.cd = cd;
|
|
3525
|
+
this.destroy$ = new rxjs.Subject();
|
|
3526
|
+
}
|
|
3527
|
+
Object.defineProperty(DrAccordionItemBodyComponent.prototype, "state", {
|
|
3528
|
+
get: function () {
|
|
3529
|
+
return this.accordionItem.collapsed ? 'collapsed' : 'expanded';
|
|
3530
|
+
},
|
|
3531
|
+
enumerable: false,
|
|
3532
|
+
configurable: true
|
|
3533
|
+
});
|
|
3534
|
+
DrAccordionItemBodyComponent.prototype.ngOnInit = function () {
|
|
3535
|
+
var _this = this;
|
|
3536
|
+
this.accordionItem.accordionItemInvalidate
|
|
3537
|
+
.pipe(operators.takeUntil(this.destroy$))
|
|
3538
|
+
.subscribe(function () { return _this.cd.markForCheck(); });
|
|
3539
|
+
};
|
|
3540
|
+
DrAccordionItemBodyComponent.prototype.ngOnDestroy = function () {
|
|
3541
|
+
this.destroy$.next();
|
|
3542
|
+
this.destroy$.complete();
|
|
3543
|
+
};
|
|
3544
|
+
return DrAccordionItemBodyComponent;
|
|
3545
|
+
}());
|
|
3546
|
+
DrAccordionItemBodyComponent.decorators = [
|
|
3547
|
+
{ type: i0.Component, args: [{
|
|
3548
|
+
selector: 'dr-accordion-item-body',
|
|
3549
|
+
template: "\n <div [@accordionItemBody]=\"{ value: state }\">\n <div class=\"item-body\">\n <ng-content></ng-content>\n </div>\n </div>\n ",
|
|
3550
|
+
animations: [accordionItemBodyTrigger],
|
|
3551
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3552
|
+
styles: [".item-body{flex:1;-ms-flex:1 1 auto;overflow:auto;position:relative}\n"]
|
|
3553
|
+
},] }
|
|
3554
|
+
];
|
|
3555
|
+
DrAccordionItemBodyComponent.ctorParameters = function () { return [
|
|
3556
|
+
{ type: DrAccordionItemComponent, decorators: [{ type: i0.Host }] },
|
|
3557
|
+
{ type: i0.ChangeDetectorRef }
|
|
3558
|
+
]; };
|
|
3559
|
+
|
|
3244
3560
|
var components$2 = [DateTagComponent,
|
|
3245
3561
|
DayTagComponent,
|
|
3246
3562
|
WeekTagComponent,
|
|
@@ -3491,6 +3807,26 @@
|
|
|
3491
3807
|
},] }
|
|
3492
3808
|
];
|
|
3493
3809
|
|
|
3810
|
+
var DR_ACCORDION_COMPONENTS = [
|
|
3811
|
+
DrAccordionComponent,
|
|
3812
|
+
DrAccordionItemComponent,
|
|
3813
|
+
DrAccordionItemHeaderComponent,
|
|
3814
|
+
DrAccordionItemBodyComponent,
|
|
3815
|
+
];
|
|
3816
|
+
var DrAccordionModule = /** @class */ (function () {
|
|
3817
|
+
function DrAccordionModule() {
|
|
3818
|
+
}
|
|
3819
|
+
return DrAccordionModule;
|
|
3820
|
+
}());
|
|
3821
|
+
DrAccordionModule.decorators = [
|
|
3822
|
+
{ type: i0.NgModule, args: [{
|
|
3823
|
+
imports: [common.CommonModule],
|
|
3824
|
+
exports: __spreadArray([], __read(DR_ACCORDION_COMPONENTS)),
|
|
3825
|
+
declarations: __spreadArray([], __read(DR_ACCORDION_COMPONENTS)),
|
|
3826
|
+
providers: [],
|
|
3827
|
+
},] }
|
|
3828
|
+
];
|
|
3829
|
+
|
|
3494
3830
|
/* components */
|
|
3495
3831
|
|
|
3496
3832
|
/**
|
|
@@ -3502,6 +3838,11 @@
|
|
|
3502
3838
|
exports.DateTagComponent = DateTagComponent;
|
|
3503
3839
|
exports.DateTagModule = DateTagModule;
|
|
3504
3840
|
exports.DayTagComponent = DayTagComponent;
|
|
3841
|
+
exports.DrAccordionComponent = DrAccordionComponent;
|
|
3842
|
+
exports.DrAccordionItemBodyComponent = DrAccordionItemBodyComponent;
|
|
3843
|
+
exports.DrAccordionItemComponent = DrAccordionItemComponent;
|
|
3844
|
+
exports.DrAccordionItemHeaderComponent = DrAccordionItemHeaderComponent;
|
|
3845
|
+
exports.DrAccordionModule = DrAccordionModule;
|
|
3505
3846
|
exports.DrAvatarComponent = DrAvatarComponent;
|
|
3506
3847
|
exports.DrAvatarModule = DrAvatarModule;
|
|
3507
3848
|
exports.DrAvatarPipe = DrAvatarPipe;
|