@dev-tcloud/tcloud-ui 0.0.37 → 0.0.39
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 +1 -0
- package/esm2020/lib/_modules/tcloud-ui-accordion/components/tcloud-ui-accordion-body/tcloud-ui-accordion-body.component.mjs +22 -0
- package/esm2020/lib/_modules/tcloud-ui-accordion/components/tcloud-ui-accordion-title/tcloud-ui-accordion-title.component.mjs +41 -0
- package/esm2020/lib/_modules/tcloud-ui-accordion/services/tcloud-ui-accordion.service.mjs +38 -0
- package/esm2020/lib/_modules/tcloud-ui-accordion/tcloud-ui-accordion.component.mjs +67 -0
- package/esm2020/lib/_modules/tcloud-ui-accordion/tcloud-ui-accordion.module.mjs +34 -0
- package/esm2020/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.component.mjs +33 -21
- package/esm2020/lib/tcloud-ui.module.mjs +8 -1
- package/esm2020/public-api.mjs +6 -1
- package/fesm2015/dev-tcloud-tcloud-ui.mjs +221 -21
- package/fesm2015/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/fesm2020/dev-tcloud-tcloud-ui.mjs +221 -21
- package/fesm2020/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_modules/tcloud-ui-accordion/components/tcloud-ui-accordion-body/tcloud-ui-accordion-body.component.d.ts +11 -0
- package/lib/_modules/tcloud-ui-accordion/components/tcloud-ui-accordion-title/tcloud-ui-accordion-title.component.d.ts +14 -0
- package/lib/_modules/tcloud-ui-accordion/services/tcloud-ui-accordion.service.d.ts +20 -0
- package/lib/_modules/tcloud-ui-accordion/tcloud-ui-accordion.component.d.ts +23 -0
- package/lib/_modules/tcloud-ui-accordion/tcloud-ui-accordion.module.d.ts +10 -0
- package/lib/_modules/tcloud-ui-filters/tcloud-ui-filters.component.d.ts +1 -1
- package/lib/tcloud-ui.module.d.ts +4 -3
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -2758,7 +2758,7 @@ class TCloudUiFiltersComponent {
|
|
|
2758
2758
|
this.result = new EventEmitter();
|
|
2759
2759
|
}
|
|
2760
2760
|
set data(data) {
|
|
2761
|
-
//this._data = data;
|
|
2761
|
+
// this._data = JSON.parse(JSON.stringify(data));
|
|
2762
2762
|
}
|
|
2763
2763
|
get data() { return this._data; }
|
|
2764
2764
|
set filters(filters) {
|
|
@@ -2768,22 +2768,32 @@ class TCloudUiFiltersComponent {
|
|
|
2768
2768
|
ngOnInit() {
|
|
2769
2769
|
}
|
|
2770
2770
|
ngOnChanges(changes) {
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
this.
|
|
2775
|
-
|
|
2771
|
+
if (changes && changes['data']) {
|
|
2772
|
+
const data = changes['data'].currentValue;
|
|
2773
|
+
console.log('ngOnChanges data', data);
|
|
2774
|
+
if (this._data !== data) {
|
|
2775
|
+
this._data = JSON.parse(JSON.stringify(data));
|
|
2776
|
+
this.search_data = JSON.parse(JSON.stringify(data));
|
|
2777
|
+
this.init();
|
|
2778
|
+
}
|
|
2776
2779
|
}
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
this._filters
|
|
2780
|
-
|
|
2780
|
+
if (changes && changes['filters']) {
|
|
2781
|
+
const filters = changes['filters'].currentValue;
|
|
2782
|
+
if (this._filters !== filters) {
|
|
2783
|
+
this._filters = JSON.parse(JSON.stringify(filters));
|
|
2784
|
+
this.init();
|
|
2785
|
+
}
|
|
2781
2786
|
}
|
|
2782
2787
|
}
|
|
2783
2788
|
init() {
|
|
2784
2789
|
if (this.data && this.filters) {
|
|
2785
2790
|
this.show_filters = true;
|
|
2786
|
-
this.
|
|
2791
|
+
if (this.filters && (this.filters).length > 0) {
|
|
2792
|
+
(this.filters).forEach((filter) => {
|
|
2793
|
+
this.searchIn(filter, undefined);
|
|
2794
|
+
});
|
|
2795
|
+
}
|
|
2796
|
+
// this.toResult();
|
|
2787
2797
|
}
|
|
2788
2798
|
}
|
|
2789
2799
|
normalize(text) {
|
|
@@ -2830,15 +2840,17 @@ class TCloudUiFiltersComponent {
|
|
|
2830
2840
|
return current;
|
|
2831
2841
|
}
|
|
2832
2842
|
searchIn(item, event) {
|
|
2833
|
-
if (
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
else {
|
|
2837
|
-
if (event === null) {
|
|
2838
|
-
item.searchText = '';
|
|
2843
|
+
if (event !== undefined) {
|
|
2844
|
+
if (typeof event === 'boolean') {
|
|
2845
|
+
item.searchText = event;
|
|
2839
2846
|
}
|
|
2840
2847
|
else {
|
|
2841
|
-
|
|
2848
|
+
if (event === null) {
|
|
2849
|
+
item.searchText = '';
|
|
2850
|
+
}
|
|
2851
|
+
else {
|
|
2852
|
+
item.searchText = (event.target.value).toUpperCase();
|
|
2853
|
+
}
|
|
2842
2854
|
}
|
|
2843
2855
|
}
|
|
2844
2856
|
for (let i = 0; i < (this.data).length; i++) {
|
|
@@ -2900,10 +2912,10 @@ class TCloudUiFiltersComponent {
|
|
|
2900
2912
|
}
|
|
2901
2913
|
}
|
|
2902
2914
|
TCloudUiFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2903
|
-
TCloudUiFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiFiltersComponent, selector: "tcloud-ui-filters", inputs: { data: "data", filters: "filters" }, outputs: { result: "result" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"show_filters\" class=\"area-filter\">\n <ng-container *ngFor=\"let item of filters; let i = index\">\n\n <ng-container *ngIf=\"!item.type || (item.type && item.type !== 'boolean')\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i> {{ item.description }}</div>\n <div>\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"text\" \n class=\"tc-form-control\" \n (keyup)=\"searchIn(item, $event)\">\n <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n \n </ng-container>\n\n <ng-container *ngIf=\"item.type && item.type === 'boolean'\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.checked === true\" class=\"fas fa-filter icon-filter\"></i> {{ item.description }}</div>\n <div class=\"area-input-checkbox\">\n <div class=\"tc-form-control\">\n <label>\n {{ item.placeholder }}\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"checkbox\" \n (change)=\"searchIn(item, _input.checked)\"> \n </label>\n </div> \n </div>\n </div>\n\n </ng-container>\n\n\n </ng-container>\n</div>\n\n<!-- <pre>{{ inputs | json }}</pre> -->\n <!-- <pre> {{ data | json }} </pre> -->\n\n<!-- <p>FILTERS</p>\n<pre> {{ filters | json }}</pre> -->", styles: [".box-filter-input{display:inline-block;padding:10px 5px;position:relative}.area-filter{border:1px solid #eeeeee;border-radius:5px;margin-bottom:5px}.btn-clear-filter-text{position:absolute;right:8px;top:38px;background-color:#fff;border:none;cursor:pointer;color:#aaa}.to-hide{display:none}.icon-filter{color:#ccc}.to-active{color:var(--verde)}.area-input-checkbox label{cursor:pointer;margin-bottom:0;color:#9f9f9f}.m-description{margin-bottom:3px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2915
|
+
TCloudUiFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiFiltersComponent, selector: "tcloud-ui-filters", inputs: { data: "data", filters: "filters" }, outputs: { result: "result" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"show_filters\" class=\"area-filter\">\n <ng-container *ngFor=\"let item of filters; let i = index\">\n\n <ng-container *ngIf=\"!item.type || (item.type && item.type !== 'boolean')\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i> {{ item.description }}</div>\n <div>\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"text\" \n class=\"form-control tc-form-control\" \n (keyup)=\"searchIn(item, $event)\">\n <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n \n </ng-container>\n\n <ng-container *ngIf=\"item.type && item.type === 'boolean'\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.checked === true\" class=\"fas fa-filter icon-filter\"></i> {{ item.description }}</div>\n <div class=\"area-input-checkbox\">\n <div class=\"form-control tc-form-control\">\n <label>\n {{ item.placeholder }}\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"checkbox\" \n (change)=\"searchIn(item, _input.checked)\"> \n </label>\n </div> \n </div>\n </div>\n\n </ng-container>\n\n\n </ng-container>\n</div>\n\n<!-- <pre>{{ inputs | json }}</pre> -->\n <!-- <pre> {{ data | json }} </pre> -->\n\n<!-- <p>FILTERS</p>\n<pre> {{ filters | json }}</pre> -->", styles: [".box-filter-input{display:inline-block;padding:10px 5px;position:relative}.area-filter{border:1px solid #eeeeee;border-radius:5px;margin-bottom:5px}.btn-clear-filter-text{position:absolute;right:8px;top:38px;background-color:#fff;border:none;cursor:pointer;color:#aaa}.to-hide{display:none}.icon-filter{color:#ccc}.to-active{color:var(--verde)}.area-input-checkbox label{cursor:pointer;margin-bottom:0;color:#9f9f9f}.m-description{margin-bottom:3px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2904
2916
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiFiltersComponent, decorators: [{
|
|
2905
2917
|
type: Component,
|
|
2906
|
-
args: [{ selector: 'tcloud-ui-filters', template: "<div *ngIf=\"show_filters\" class=\"area-filter\">\n <ng-container *ngFor=\"let item of filters; let i = index\">\n\n <ng-container *ngIf=\"!item.type || (item.type && item.type !== 'boolean')\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i> {{ item.description }}</div>\n <div>\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"text\" \n class=\"tc-form-control\" \n (keyup)=\"searchIn(item, $event)\">\n <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n \n </ng-container>\n\n <ng-container *ngIf=\"item.type && item.type === 'boolean'\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.checked === true\" class=\"fas fa-filter icon-filter\"></i> {{ item.description }}</div>\n <div class=\"area-input-checkbox\">\n <div class=\"tc-form-control\">\n <label>\n {{ item.placeholder }}\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"checkbox\" \n (change)=\"searchIn(item, _input.checked)\"> \n </label>\n </div> \n </div>\n </div>\n\n </ng-container>\n\n\n </ng-container>\n</div>\n\n<!-- <pre>{{ inputs | json }}</pre> -->\n <!-- <pre> {{ data | json }} </pre> -->\n\n<!-- <p>FILTERS</p>\n<pre> {{ filters | json }}</pre> -->", styles: [".box-filter-input{display:inline-block;padding:10px 5px;position:relative}.area-filter{border:1px solid #eeeeee;border-radius:5px;margin-bottom:5px}.btn-clear-filter-text{position:absolute;right:8px;top:38px;background-color:#fff;border:none;cursor:pointer;color:#aaa}.to-hide{display:none}.icon-filter{color:#ccc}.to-active{color:var(--verde)}.area-input-checkbox label{cursor:pointer;margin-bottom:0;color:#9f9f9f}.m-description{margin-bottom:3px}\n"] }]
|
|
2918
|
+
args: [{ selector: 'tcloud-ui-filters', template: "<div *ngIf=\"show_filters\" class=\"area-filter\">\n <ng-container *ngFor=\"let item of filters; let i = index\">\n\n <ng-container *ngIf=\"!item.type || (item.type && item.type !== 'boolean')\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.value !== ''\" class=\"fas fa-filter icon-filter\"></i> {{ item.description }}</div>\n <div>\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"text\" \n class=\"form-control tc-form-control\" \n (keyup)=\"searchIn(item, $event)\">\n <button class=\"btn-clear-filter-text\" [class.to-hide]=\"_input.value === ''\" (click)=\"searchIn(item, null); _input.value = ''\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n </div>\n \n </ng-container>\n\n <ng-container *ngIf=\"item.type && item.type === 'boolean'\">\n \n <div class=\"box-filter-input\" [style]=\"(item.width !== '') ? 'width:'+item.width : ''\">\n <div class=\"m-description\"><i [class.to-active]=\"_input.checked === true\" class=\"fas fa-filter icon-filter\"></i> {{ item.description }}</div>\n <div class=\"area-input-checkbox\">\n <div class=\"form-control tc-form-control\">\n <label>\n {{ item.placeholder }}\n <input \n #_input\n placeholder=\"{{ (item.placeholder !== '') ? item.placeholder : '' }}\"\n name=\"input_{{i+1}}\" \n type=\"checkbox\" \n (change)=\"searchIn(item, _input.checked)\"> \n </label>\n </div> \n </div>\n </div>\n\n </ng-container>\n\n\n </ng-container>\n</div>\n\n<!-- <pre>{{ inputs | json }}</pre> -->\n <!-- <pre> {{ data | json }} </pre> -->\n\n<!-- <p>FILTERS</p>\n<pre> {{ filters | json }}</pre> -->", styles: [".box-filter-input{display:inline-block;padding:10px 5px;position:relative}.area-filter{border:1px solid #eeeeee;border-radius:5px;margin-bottom:5px}.btn-clear-filter-text{position:absolute;right:8px;top:38px;background-color:#fff;border:none;cursor:pointer;color:#aaa}.to-hide{display:none}.icon-filter{color:#ccc}.to-active{color:var(--verde)}.area-input-checkbox label{cursor:pointer;margin-bottom:0;color:#9f9f9f}.m-description{margin-bottom:3px}\n"] }]
|
|
2907
2919
|
}], ctorParameters: function () { return []; }, propDecorators: { data: [{
|
|
2908
2920
|
type: Input
|
|
2909
2921
|
}], filters: [{
|
|
@@ -2935,6 +2947,188 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
2935
2947
|
}]
|
|
2936
2948
|
}] });
|
|
2937
2949
|
|
|
2950
|
+
class TCloudUiAccordionService {
|
|
2951
|
+
constructor() {
|
|
2952
|
+
this._stateToggle = new Subject();
|
|
2953
|
+
this.stateToggle$ = this._stateToggle.asObservable();
|
|
2954
|
+
this._stateLoading = new Subject();
|
|
2955
|
+
this.stateLoading$ = this._stateLoading.asObservable();
|
|
2956
|
+
this._stateDisabled = new Subject();
|
|
2957
|
+
this.stateDisabled$ = this._stateDisabled.asObservable();
|
|
2958
|
+
}
|
|
2959
|
+
toggle(action) {
|
|
2960
|
+
this._stateToggle.next(action);
|
|
2961
|
+
}
|
|
2962
|
+
getLoading() {
|
|
2963
|
+
return this.loading;
|
|
2964
|
+
}
|
|
2965
|
+
setLoading(loading) {
|
|
2966
|
+
this.loading = loading;
|
|
2967
|
+
this._stateLoading.next(loading);
|
|
2968
|
+
}
|
|
2969
|
+
getShow() {
|
|
2970
|
+
return this.show;
|
|
2971
|
+
}
|
|
2972
|
+
setDisabled(disabled) {
|
|
2973
|
+
this._stateDisabled.next(disabled);
|
|
2974
|
+
}
|
|
2975
|
+
getDisabled() {
|
|
2976
|
+
return this.disabled;
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
TCloudUiAccordionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2980
|
+
TCloudUiAccordionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionService });
|
|
2981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionService, decorators: [{
|
|
2982
|
+
type: Injectable
|
|
2983
|
+
}] });
|
|
2984
|
+
|
|
2985
|
+
class TCloudUiAccordionComponent {
|
|
2986
|
+
constructor(_tCloudUiAccordionService) {
|
|
2987
|
+
this._tCloudUiAccordionService = _tCloudUiAccordionService;
|
|
2988
|
+
this._disabled = false;
|
|
2989
|
+
this._show = false;
|
|
2990
|
+
this.onAction = new EventEmitter();
|
|
2991
|
+
this._loading = false;
|
|
2992
|
+
}
|
|
2993
|
+
set disabled(v) {
|
|
2994
|
+
this._disabled = v;
|
|
2995
|
+
if (this._disabled) {
|
|
2996
|
+
setTimeout(() => {
|
|
2997
|
+
this._tCloudUiAccordionService.setDisabled(this._disabled);
|
|
2998
|
+
this._tCloudUiAccordionService.toggle(false);
|
|
2999
|
+
});
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
get disabled() { return this._disabled; }
|
|
3003
|
+
set show(v) {
|
|
3004
|
+
if (this._show !== v) {
|
|
3005
|
+
this._show = v;
|
|
3006
|
+
if (!this.disabled) {
|
|
3007
|
+
setTimeout(() => { this._tCloudUiAccordionService.toggle(this._show); });
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
get show() { return this._show; }
|
|
3012
|
+
/**
|
|
3013
|
+
* loading - boolean - Coloca o modal em modo de carregamento - default false
|
|
3014
|
+
*/
|
|
3015
|
+
set loading(loading) {
|
|
3016
|
+
this._loading = loading;
|
|
3017
|
+
this._tCloudUiAccordionService.setLoading(loading);
|
|
3018
|
+
}
|
|
3019
|
+
get loading() { return this._loading; }
|
|
3020
|
+
ngOnInit() {
|
|
3021
|
+
this._tCloudUiAccordionService.stateLoading$.subscribe((loading) => {
|
|
3022
|
+
this.loading = loading;
|
|
3023
|
+
});
|
|
3024
|
+
this._tCloudUiAccordionService.stateToggle$.subscribe((show) => {
|
|
3025
|
+
this.onAction.emit((show === true) ? 'open' : 'close');
|
|
3026
|
+
});
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
TCloudUiAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionComponent, deps: [{ token: TCloudUiAccordionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3030
|
+
TCloudUiAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiAccordionComponent, selector: "tcloud-ui-accordion", inputs: { disabled: "disabled", show: "show", loading: "loading" }, outputs: { onAction: "onAction" }, providers: [
|
|
3031
|
+
TCloudUiAccordionService
|
|
3032
|
+
], ngImport: i0, template: "<div class=\"tc-accordion\" [class.tc-accordion-disabled]=\"disabled\">\n <ng-content></ng-content>\n</div>", styles: [".tc-accordion{border:1px solid #ccc;padding:8px 12px;border-radius:15px;margin-bottom:5px}.tc-accordion-disabled{background-color:#e3e3e3;opacity:.6}\n"] });
|
|
3033
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionComponent, decorators: [{
|
|
3034
|
+
type: Component,
|
|
3035
|
+
args: [{ selector: 'tcloud-ui-accordion', providers: [
|
|
3036
|
+
TCloudUiAccordionService
|
|
3037
|
+
], template: "<div class=\"tc-accordion\" [class.tc-accordion-disabled]=\"disabled\">\n <ng-content></ng-content>\n</div>", styles: [".tc-accordion{border:1px solid #ccc;padding:8px 12px;border-radius:15px;margin-bottom:5px}.tc-accordion-disabled{background-color:#e3e3e3;opacity:.6}\n"] }]
|
|
3038
|
+
}], ctorParameters: function () { return [{ type: TCloudUiAccordionService }]; }, propDecorators: { disabled: [{
|
|
3039
|
+
type: Input
|
|
3040
|
+
}], show: [{
|
|
3041
|
+
type: Input
|
|
3042
|
+
}], onAction: [{
|
|
3043
|
+
type: Output
|
|
3044
|
+
}], loading: [{
|
|
3045
|
+
type: Input
|
|
3046
|
+
}] } });
|
|
3047
|
+
|
|
3048
|
+
class TCloudUiAccordionTitleComponent {
|
|
3049
|
+
constructor(_tCloudUiAccordionService) {
|
|
3050
|
+
this._tCloudUiAccordionService = _tCloudUiAccordionService;
|
|
3051
|
+
this.show = false;
|
|
3052
|
+
this.loading = false;
|
|
3053
|
+
this.disabled = false;
|
|
3054
|
+
}
|
|
3055
|
+
ngOnInit() {
|
|
3056
|
+
this.loading = this._tCloudUiAccordionService.getLoading() || false;
|
|
3057
|
+
this._tCloudUiAccordionService.stateLoading$.subscribe((loading) => {
|
|
3058
|
+
this.loading = loading;
|
|
3059
|
+
});
|
|
3060
|
+
this.show = this._tCloudUiAccordionService.getShow() || false;
|
|
3061
|
+
this._tCloudUiAccordionService.stateToggle$.subscribe((show) => {
|
|
3062
|
+
this.show = show;
|
|
3063
|
+
});
|
|
3064
|
+
this.disabled = this._tCloudUiAccordionService.getDisabled() || false;
|
|
3065
|
+
this._tCloudUiAccordionService.stateDisabled$.subscribe((disabled) => {
|
|
3066
|
+
this.disabled = disabled;
|
|
3067
|
+
});
|
|
3068
|
+
}
|
|
3069
|
+
toggle() {
|
|
3070
|
+
console.log('this.disabled', this.disabled);
|
|
3071
|
+
if (this.disabled) {
|
|
3072
|
+
return;
|
|
3073
|
+
}
|
|
3074
|
+
this.show = !this.show;
|
|
3075
|
+
this._tCloudUiAccordionService.toggle(this.show);
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
3078
|
+
TCloudUiAccordionTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionTitleComponent, deps: [{ token: TCloudUiAccordionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3079
|
+
TCloudUiAccordionTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiAccordionTitleComponent, selector: "tcloud-ui-accordion-title", ngImport: i0, template: "<div class=\"tc-accordion-title\">\n <table class=\"tc-accordion-table\">\n <tr>\n <td style=\"width: 100;\">\n <ng-content></ng-content>\n </td>\n <td class=\"tc-accordion-actions\">\n <button type=\"button\" class=\"tc-btn-accordion-toggle\" [disabled]=\"disabled\" (click)=\"toggle()\" >\n\n <i class=\"fas fa-chevron-right icon-toggle\" *ngIf=\"!show\"></i>\n <i class=\"fas fa-chevron-down icon-toggle\" *ngIf=\"show\"></i>\n\n </button>\n </td>\n </tr>\n </table>\n</div>", styles: [".tc-accordion-table{width:100%}.tc-accordion-actions{width:15px}.tc-btn-accordion-toggle{font-size:20px;border:none;background-color:transparent;background:none;cursor:pointer;margin:auto}.tc-btn-accordion-toggle:disabled{cursor:not-allowed!important;opacity:.6}.icon-toggle{color:var(--verde)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionTitleComponent, decorators: [{
|
|
3081
|
+
type: Component,
|
|
3082
|
+
args: [{ selector: 'tcloud-ui-accordion-title', template: "<div class=\"tc-accordion-title\">\n <table class=\"tc-accordion-table\">\n <tr>\n <td style=\"width: 100;\">\n <ng-content></ng-content>\n </td>\n <td class=\"tc-accordion-actions\">\n <button type=\"button\" class=\"tc-btn-accordion-toggle\" [disabled]=\"disabled\" (click)=\"toggle()\" >\n\n <i class=\"fas fa-chevron-right icon-toggle\" *ngIf=\"!show\"></i>\n <i class=\"fas fa-chevron-down icon-toggle\" *ngIf=\"show\"></i>\n\n </button>\n </td>\n </tr>\n </table>\n</div>", styles: [".tc-accordion-table{width:100%}.tc-accordion-actions{width:15px}.tc-btn-accordion-toggle{font-size:20px;border:none;background-color:transparent;background:none;cursor:pointer;margin:auto}.tc-btn-accordion-toggle:disabled{cursor:not-allowed!important;opacity:.6}.icon-toggle{color:var(--verde)}\n"] }]
|
|
3083
|
+
}], ctorParameters: function () { return [{ type: TCloudUiAccordionService }]; } });
|
|
3084
|
+
|
|
3085
|
+
class TCloudUiAccordionBodyComponent {
|
|
3086
|
+
constructor(_tCloudUiAccordionService) {
|
|
3087
|
+
this._tCloudUiAccordionService = _tCloudUiAccordionService;
|
|
3088
|
+
this.show = false;
|
|
3089
|
+
}
|
|
3090
|
+
ngOnInit() {
|
|
3091
|
+
this.show = this._tCloudUiAccordionService.getShow() || false;
|
|
3092
|
+
this._tCloudUiAccordionService.stateToggle$.subscribe((show) => {
|
|
3093
|
+
this.show = show;
|
|
3094
|
+
});
|
|
3095
|
+
}
|
|
3096
|
+
}
|
|
3097
|
+
TCloudUiAccordionBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionBodyComponent, deps: [{ token: TCloudUiAccordionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3098
|
+
TCloudUiAccordionBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TCloudUiAccordionBodyComponent, selector: "tcloud-ui-accordion-body", ngImport: i0, template: "<div class=\"tc-accordion-content\" style=\"display: none;\" [class.show]=\"show\">\n <ng-content></ng-content>\n</div>", styles: [".show{display:block!important}.tc-accordion-content{padding-top:15px;padding-bottom:15px}\n"] });
|
|
3099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionBodyComponent, decorators: [{
|
|
3100
|
+
type: Component,
|
|
3101
|
+
args: [{ selector: 'tcloud-ui-accordion-body', template: "<div class=\"tc-accordion-content\" style=\"display: none;\" [class.show]=\"show\">\n <ng-content></ng-content>\n</div>", styles: [".show{display:block!important}.tc-accordion-content{padding-top:15px;padding-bottom:15px}\n"] }]
|
|
3102
|
+
}], ctorParameters: function () { return [{ type: TCloudUiAccordionService }]; } });
|
|
3103
|
+
|
|
3104
|
+
class TCloudUiAccordionModule {
|
|
3105
|
+
}
|
|
3106
|
+
TCloudUiAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3107
|
+
TCloudUiAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, declarations: [TCloudUiAccordionComponent,
|
|
3108
|
+
TCloudUiAccordionTitleComponent,
|
|
3109
|
+
TCloudUiAccordionBodyComponent], imports: [CommonModule], exports: [TCloudUiAccordionComponent,
|
|
3110
|
+
TCloudUiAccordionTitleComponent,
|
|
3111
|
+
TCloudUiAccordionBodyComponent] });
|
|
3112
|
+
TCloudUiAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, imports: [CommonModule] });
|
|
3113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiAccordionModule, decorators: [{
|
|
3114
|
+
type: NgModule,
|
|
3115
|
+
args: [{
|
|
3116
|
+
declarations: [
|
|
3117
|
+
TCloudUiAccordionComponent,
|
|
3118
|
+
TCloudUiAccordionTitleComponent,
|
|
3119
|
+
TCloudUiAccordionBodyComponent
|
|
3120
|
+
],
|
|
3121
|
+
exports: [
|
|
3122
|
+
TCloudUiAccordionComponent,
|
|
3123
|
+
TCloudUiAccordionTitleComponent,
|
|
3124
|
+
TCloudUiAccordionBodyComponent
|
|
3125
|
+
],
|
|
3126
|
+
imports: [
|
|
3127
|
+
CommonModule
|
|
3128
|
+
]
|
|
3129
|
+
}]
|
|
3130
|
+
}] });
|
|
3131
|
+
|
|
2938
3132
|
class TCloudUiModule {
|
|
2939
3133
|
}
|
|
2940
3134
|
TCloudUiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TCloudUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2952,6 +3146,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
2952
3146
|
TCloudUiNumberStepModule,
|
|
2953
3147
|
TCloudUiScrollBoxModule,
|
|
2954
3148
|
TCloudUiFiltersModule,
|
|
3149
|
+
TCloudUiAccordionModule,
|
|
2955
3150
|
// Directives
|
|
2956
3151
|
TCloudUiDirectiveModule,
|
|
2957
3152
|
// Pipes
|
|
@@ -2969,6 +3164,7 @@ TCloudUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
2969
3164
|
TCloudUiNumberStepModule,
|
|
2970
3165
|
TCloudUiScrollBoxModule,
|
|
2971
3166
|
TCloudUiFiltersModule,
|
|
3167
|
+
TCloudUiAccordionModule,
|
|
2972
3168
|
// Directives
|
|
2973
3169
|
TCloudUiDirectiveModule,
|
|
2974
3170
|
// Pipes
|
|
@@ -2990,6 +3186,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
2990
3186
|
TCloudUiNumberStepModule,
|
|
2991
3187
|
TCloudUiScrollBoxModule,
|
|
2992
3188
|
TCloudUiFiltersModule,
|
|
3189
|
+
TCloudUiAccordionModule,
|
|
2993
3190
|
// Directives
|
|
2994
3191
|
TCloudUiDirectiveModule,
|
|
2995
3192
|
// Pipes
|
|
@@ -3007,6 +3204,7 @@ TCloudUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
3007
3204
|
TCloudUiNumberStepModule,
|
|
3008
3205
|
TCloudUiScrollBoxModule,
|
|
3009
3206
|
TCloudUiFiltersModule,
|
|
3207
|
+
TCloudUiAccordionModule,
|
|
3010
3208
|
// Directives
|
|
3011
3209
|
TCloudUiDirectiveModule,
|
|
3012
3210
|
// Pipes
|
|
@@ -3029,6 +3227,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
3029
3227
|
TCloudUiNumberStepModule,
|
|
3030
3228
|
TCloudUiScrollBoxModule,
|
|
3031
3229
|
TCloudUiFiltersModule,
|
|
3230
|
+
TCloudUiAccordionModule,
|
|
3032
3231
|
// Directives
|
|
3033
3232
|
TCloudUiDirectiveModule,
|
|
3034
3233
|
// Pipes
|
|
@@ -3049,6 +3248,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
3049
3248
|
TCloudUiNumberStepModule,
|
|
3050
3249
|
TCloudUiScrollBoxModule,
|
|
3051
3250
|
TCloudUiFiltersModule,
|
|
3251
|
+
TCloudUiAccordionModule,
|
|
3052
3252
|
// Directives
|
|
3053
3253
|
TCloudUiDirectiveModule,
|
|
3054
3254
|
// Pipes
|
|
@@ -3069,5 +3269,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
3069
3269
|
* Generated bundle index. Do not edit.
|
|
3070
3270
|
*/
|
|
3071
3271
|
|
|
3072
|
-
export { BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCloudUiAlignDirective, TCloudUiChoiceIssuesComponent, TCloudUiChoiceIssuesModule, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiDirectiveModule, TCloudUiFiltersComponent, TCloudUiFiltersModule, TCloudUiInputSearchComponent, TCloudUiInputSearchModule, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiInputModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiNotFoundComponent, TCloudUiNotFoundModule, TCloudUiNumberStepComponent, TCloudUiNumberStepModule, TCloudUiPipesModule, TCloudUiScrollBoxComponent, TCloudUiScrollBoxModule, TCloudUiSearchInObjectService, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTableModule, TCloudUiTooltipDirective };
|
|
3272
|
+
export { BytesPipe, CNPJPipe, CPFPipe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, MonthNamePipe, RespectivePipe, StatusInfoPipe, TCloudUiAccordionBodyComponent, TCloudUiAccordionComponent, TCloudUiAccordionModule, TCloudUiAccordionTitleComponent, TCloudUiAlignDirective, TCloudUiChoiceIssuesComponent, TCloudUiChoiceIssuesModule, TCloudUiDataListComponent, TCloudUiDataListModule, TCloudUiDataListOptionComponent, TCloudUiDirectiveModule, TCloudUiFiltersComponent, TCloudUiFiltersModule, TCloudUiInputSearchComponent, TCloudUiInputSearchModule, TCloudUiLineStepCircleComponent, TCloudUiLineStepCircleModule, TCloudUiLinhaLogoComponent, TCloudUiLinhaLogoModule, TCloudUiLoadingTransitionsService, TCloudUiModalBodyComponent, TCloudUiModalComponent, TCloudUiModalFooterComponent, TCloudUiModalHeaderComponent, TCloudUiModalModule, TCloudUiModule, TCloudUiMultiInputComponent, TCloudUiMultiInputModule, TCloudUiMultiSelectComponent, TCloudUiMultiSelectModule, TCloudUiNotFoundComponent, TCloudUiNotFoundModule, TCloudUiNumberStepComponent, TCloudUiNumberStepModule, TCloudUiPipesModule, TCloudUiScrollBoxComponent, TCloudUiScrollBoxModule, TCloudUiSearchInObjectService, TCloudUiTabContentComponent, TCloudUiTabHeadComponent, TCloudUiTabMenuComponent, TCloudUiTabMenuModule, TCloudUiTabSubtitleComponent, TCloudUiTabTitleComponent, TCloudUiTableComponent, TCloudUiTableModule, TCloudUiTooltipDirective };
|
|
3073
3273
|
//# sourceMappingURL=dev-tcloud-tcloud-ui.mjs.map
|