@dev-tcloud/tcloud-ui 6.5.3 → 6.5.4
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component, EventEmitter, Input, Output, forwardRef, ViewChild, InjectionToken, Optional, Inject, input, effect, Directive, Pipe, ViewEncapsulation, signal, HostListener, NgModule, makeEnvironmentProviders, output, ContentChildren,
|
|
2
|
+
import { Injectable, Component, EventEmitter, Input, Output, forwardRef, ViewChild, InjectionToken, Optional, Inject, input, effect, Directive, Pipe, ViewEncapsulation, signal, inject, HostListener, NgModule, makeEnvironmentProviders, output, ContentChildren, computed, ApplicationRef, model, viewChild, ChangeDetectionStrategy } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DatePipe, DOCUMENT } from '@angular/common';
|
|
5
5
|
import { Subject, Subscription, debounceTime, distinctUntilChanged, map, BehaviorSubject } from 'rxjs';
|
|
@@ -5222,6 +5222,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5222
5222
|
type: Input
|
|
5223
5223
|
}] } });
|
|
5224
5224
|
|
|
5225
|
+
class ContainerService {
|
|
5226
|
+
constructor() {
|
|
5227
|
+
this._expanded_signal = signal(undefined);
|
|
5228
|
+
this.expanded_signal = this._expanded_signal.asReadonly();
|
|
5229
|
+
}
|
|
5230
|
+
set_expanded_signal(v) {
|
|
5231
|
+
this._expanded_signal.set(v);
|
|
5232
|
+
}
|
|
5233
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5234
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ContainerService }); }
|
|
5235
|
+
}
|
|
5236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ContainerService, decorators: [{
|
|
5237
|
+
type: Injectable
|
|
5238
|
+
}] });
|
|
5239
|
+
|
|
5240
|
+
class TCloudUiContainerComponent {
|
|
5241
|
+
constructor() {
|
|
5242
|
+
this._containerService = inject(ContainerService);
|
|
5243
|
+
this._expanded = false;
|
|
5244
|
+
}
|
|
5245
|
+
set expanded(v) {
|
|
5246
|
+
// coerce to boolean and only propagate when changed
|
|
5247
|
+
const newVal = !!v;
|
|
5248
|
+
if (this._expanded !== newVal) {
|
|
5249
|
+
this._expanded = newVal;
|
|
5250
|
+
this.to_expanded();
|
|
5251
|
+
}
|
|
5252
|
+
}
|
|
5253
|
+
get expanded() { return this._expanded; }
|
|
5254
|
+
// optional manual trigger kept for backward-compatibility
|
|
5255
|
+
to_expanded() {
|
|
5256
|
+
this._containerService.set_expanded_signal(this._expanded);
|
|
5257
|
+
}
|
|
5258
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5259
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerComponent, isStandalone: true, selector: "tcloud-ui-container", inputs: { expanded: "expanded" }, providers: [ContainerService], ngImport: i0, template: "<div class=\"tc-rev-container f-family c-neutral-900 mar-b-24\" [class.container-expanded]=\"expanded\">\n <ng-content></ng-content> \n</div>", styles: [":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }); }
|
|
5260
|
+
}
|
|
5261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerComponent, decorators: [{
|
|
5262
|
+
type: Component,
|
|
5263
|
+
args: [{ selector: 'tcloud-ui-container', imports: [], providers: [ContainerService], template: "<div class=\"tc-rev-container f-family c-neutral-900 mar-b-24\" [class.container-expanded]=\"expanded\">\n <ng-content></ng-content> \n</div>", styles: [":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }]
|
|
5264
|
+
}], propDecorators: { expanded: [{
|
|
5265
|
+
type: Input
|
|
5266
|
+
}] } });
|
|
5267
|
+
|
|
5268
|
+
class TCloudUiContainerColComponent {
|
|
5269
|
+
constructor() {
|
|
5270
|
+
this._containerService = inject(ContainerService);
|
|
5271
|
+
}
|
|
5272
|
+
get expanded() {
|
|
5273
|
+
return this._containerService.expanded_signal();
|
|
5274
|
+
}
|
|
5275
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerColComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5276
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerColComponent, isStandalone: true, selector: "tcloud-ui-container-col", ngImport: i0, template: "\n<div class=\"tc-rev-container-col\" [class.col-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [".tc-rev-container-col{height:calc(100vh - 10.875rem);display:flex;position:fixed}\n", ":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }); }
|
|
5277
|
+
}
|
|
5278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerColComponent, decorators: [{
|
|
5279
|
+
type: Component,
|
|
5280
|
+
args: [{ selector: 'tcloud-ui-container-col', imports: [], template: "\n<div class=\"tc-rev-container-col\" [class.col-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [".tc-rev-container-col{height:calc(100vh - 10.875rem);display:flex;position:fixed}\n", ":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }]
|
|
5281
|
+
}] });
|
|
5282
|
+
|
|
5283
|
+
class TCloudUiContainerContentComponent {
|
|
5284
|
+
constructor() {
|
|
5285
|
+
this._containerService = inject(ContainerService);
|
|
5286
|
+
}
|
|
5287
|
+
get expanded() {
|
|
5288
|
+
return this._containerService.expanded_signal();
|
|
5289
|
+
}
|
|
5290
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5291
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerContentComponent, isStandalone: true, selector: "tcloud-ui-container-content", ngImport: i0, template: "\n<div class=\"tc-rev-container-content\" [class.content-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [":host{display:flex;flex:1}.tc-rev-container-content{flex:1;padding-left:52px}.content-expanded{padding-left:232px}\n", ":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }); }
|
|
5292
|
+
}
|
|
5293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerContentComponent, decorators: [{
|
|
5294
|
+
type: Component,
|
|
5295
|
+
args: [{ selector: 'tcloud-ui-container-content', imports: [], template: "\n<div class=\"tc-rev-container-content\" [class.content-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [":host{display:flex;flex:1}.tc-rev-container-content{flex:1;padding-left:52px}.content-expanded{padding-left:232px}\n", ":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }]
|
|
5296
|
+
}] });
|
|
5297
|
+
|
|
5225
5298
|
class TCloudUiAlignDirective {
|
|
5226
5299
|
set TCalign(direction) {
|
|
5227
5300
|
if (direction) {
|
|
@@ -6250,7 +6323,10 @@ const COMPONENTS = [
|
|
|
6250
6323
|
TCloudUiMultiplesValuesComponent,
|
|
6251
6324
|
TCloudUiProgressBarComponent,
|
|
6252
6325
|
TCloudUiReorderItemsComponent,
|
|
6253
|
-
TCloudUiWelcomeComponent
|
|
6326
|
+
TCloudUiWelcomeComponent,
|
|
6327
|
+
TCloudUiContainerComponent,
|
|
6328
|
+
TCloudUiContainerColComponent,
|
|
6329
|
+
TCloudUiContainerContentComponent
|
|
6254
6330
|
];
|
|
6255
6331
|
const DIRECTIVES = [
|
|
6256
6332
|
TCloudUiAlignDirective,
|
|
@@ -6337,7 +6413,10 @@ class TCloudUiModule {
|
|
|
6337
6413
|
TCloudUiMultiplesValuesComponent,
|
|
6338
6414
|
TCloudUiProgressBarComponent,
|
|
6339
6415
|
TCloudUiReorderItemsComponent,
|
|
6340
|
-
TCloudUiWelcomeComponent,
|
|
6416
|
+
TCloudUiWelcomeComponent,
|
|
6417
|
+
TCloudUiContainerComponent,
|
|
6418
|
+
TCloudUiContainerColComponent,
|
|
6419
|
+
TCloudUiContainerContentComponent, TCloudUiAlignDirective,
|
|
6341
6420
|
TCloudUiCurrencyDirective,
|
|
6342
6421
|
TCloudUiElCopyDirective,
|
|
6343
6422
|
TCloudUiHoverParentDirective,
|
|
@@ -6392,7 +6471,10 @@ class TCloudUiModule {
|
|
|
6392
6471
|
TCloudUiMultiplesValuesComponent,
|
|
6393
6472
|
TCloudUiProgressBarComponent,
|
|
6394
6473
|
TCloudUiReorderItemsComponent,
|
|
6395
|
-
TCloudUiWelcomeComponent,
|
|
6474
|
+
TCloudUiWelcomeComponent,
|
|
6475
|
+
TCloudUiContainerComponent,
|
|
6476
|
+
TCloudUiContainerColComponent,
|
|
6477
|
+
TCloudUiContainerContentComponent, TCloudUiAlignDirective,
|
|
6396
6478
|
TCloudUiCurrencyDirective,
|
|
6397
6479
|
TCloudUiElCopyDirective,
|
|
6398
6480
|
TCloudUiHoverParentDirective,
|
|
@@ -6415,7 +6497,43 @@ class TCloudUiModule {
|
|
|
6415
6497
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiModule, providers: [
|
|
6416
6498
|
DatePipe,
|
|
6417
6499
|
StatusInfoPipe
|
|
6418
|
-
], imports: [
|
|
6500
|
+
], imports: [TCloudUiAccordionComponent,
|
|
6501
|
+
TCloudUiAccordionBodyComponent,
|
|
6502
|
+
TCloudUiAccordionTitleComponent,
|
|
6503
|
+
TCloudUiChoiceIssuesComponent,
|
|
6504
|
+
TCloudUiDataListComponent,
|
|
6505
|
+
TCloudUiDataListOptionComponent,
|
|
6506
|
+
TCloudUiDatepickerTimeComponent,
|
|
6507
|
+
TCloudUiDatepickerComponent,
|
|
6508
|
+
TCloudUiFiltersComponent,
|
|
6509
|
+
TCloudUiRangeDateComponent,
|
|
6510
|
+
TCloudUiInputSearchComponent,
|
|
6511
|
+
TCloudUiLineStepCircleComponent,
|
|
6512
|
+
TCloudUiLinhaLogoComponent,
|
|
6513
|
+
TCloudUiModalComponent,
|
|
6514
|
+
TCloudUiModalBodyComponent,
|
|
6515
|
+
TCloudUiModalHeaderComponent,
|
|
6516
|
+
TCloudUiModalFooterComponent,
|
|
6517
|
+
TCloudUiMultiInputComponent,
|
|
6518
|
+
TCloudUiMultiSelectComponent,
|
|
6519
|
+
TCloudUiNotFoundComponent,
|
|
6520
|
+
TCloudUiNumberStepComponent,
|
|
6521
|
+
TCloudUiScrollBoxComponent,
|
|
6522
|
+
TCloudUiTabMenuComponent,
|
|
6523
|
+
TCloudUiTabHeadComponent,
|
|
6524
|
+
TCloudUiTabContentComponent,
|
|
6525
|
+
TCloudUiTabTitleComponent,
|
|
6526
|
+
TCloudUiTabSubtitleComponent,
|
|
6527
|
+
TCloudUiTableComponent,
|
|
6528
|
+
TCloudUiInputPasswordComponent,
|
|
6529
|
+
TCloudUiLabelTokenComponent,
|
|
6530
|
+
TCloudUiLineStepTitleComponent,
|
|
6531
|
+
TCloudUiLoadingComponent,
|
|
6532
|
+
TCloudUiCubesComponent,
|
|
6533
|
+
TCloudUiMultiplesValuesComponent,
|
|
6534
|
+
TCloudUiProgressBarComponent,
|
|
6535
|
+
TCloudUiReorderItemsComponent,
|
|
6536
|
+
TCloudUiWelcomeComponent] }); }
|
|
6419
6537
|
}
|
|
6420
6538
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiModule, decorators: [{
|
|
6421
6539
|
type: NgModule,
|
|
@@ -6592,79 +6710,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6592
6710
|
args: [TCloudUiSubNavbarItemComponent]
|
|
6593
6711
|
}] } });
|
|
6594
6712
|
|
|
6595
|
-
class ContainerService {
|
|
6596
|
-
constructor() {
|
|
6597
|
-
this._expanded_signal = signal(undefined);
|
|
6598
|
-
this.expanded_signal = this._expanded_signal.asReadonly();
|
|
6599
|
-
}
|
|
6600
|
-
set_expanded_signal(v) {
|
|
6601
|
-
this._expanded_signal.set(v);
|
|
6602
|
-
}
|
|
6603
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6604
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ContainerService }); }
|
|
6605
|
-
}
|
|
6606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ContainerService, decorators: [{
|
|
6607
|
-
type: Injectable
|
|
6608
|
-
}] });
|
|
6609
|
-
|
|
6610
|
-
class TCloudUiContainerComponent {
|
|
6611
|
-
constructor() {
|
|
6612
|
-
this._containerService = inject(ContainerService);
|
|
6613
|
-
this._expanded = false;
|
|
6614
|
-
}
|
|
6615
|
-
set expanded(v) {
|
|
6616
|
-
// coerce to boolean and only propagate when changed
|
|
6617
|
-
const newVal = !!v;
|
|
6618
|
-
if (this._expanded !== newVal) {
|
|
6619
|
-
this._expanded = newVal;
|
|
6620
|
-
this.to_expanded();
|
|
6621
|
-
}
|
|
6622
|
-
}
|
|
6623
|
-
get expanded() { return this._expanded; }
|
|
6624
|
-
// optional manual trigger kept for backward-compatibility
|
|
6625
|
-
to_expanded() {
|
|
6626
|
-
this._containerService.set_expanded_signal(this._expanded);
|
|
6627
|
-
}
|
|
6628
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6629
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerComponent, isStandalone: true, selector: "tcloud-ui-container", inputs: { expanded: "expanded" }, providers: [ContainerService], ngImport: i0, template: "<div class=\"tc-rev-container f-family c-neutral-900 mar-b-24\" [class.container-expanded]=\"expanded\">\n <ng-content></ng-content> \n</div>", styles: [":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }); }
|
|
6630
|
-
}
|
|
6631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerComponent, decorators: [{
|
|
6632
|
-
type: Component,
|
|
6633
|
-
args: [{ selector: 'tcloud-ui-container', imports: [], providers: [ContainerService], template: "<div class=\"tc-rev-container f-family c-neutral-900 mar-b-24\" [class.container-expanded]=\"expanded\">\n <ng-content></ng-content> \n</div>", styles: [":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }]
|
|
6634
|
-
}], propDecorators: { expanded: [{
|
|
6635
|
-
type: Input
|
|
6636
|
-
}] } });
|
|
6637
|
-
|
|
6638
|
-
class TCloudUiContainerContentComponent {
|
|
6639
|
-
constructor() {
|
|
6640
|
-
this._containerService = inject(ContainerService);
|
|
6641
|
-
}
|
|
6642
|
-
get expanded() {
|
|
6643
|
-
return this._containerService.expanded_signal();
|
|
6644
|
-
}
|
|
6645
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6646
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerContentComponent, isStandalone: true, selector: "tcloud-ui-container-content", ngImport: i0, template: "\n<div class=\"tc-rev-container-content\" [class.content-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [":host{display:flex;flex:1}.tc-rev-container-content{flex:1;padding-left:52px}.content-expanded{padding-left:232px}\n", ":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }); }
|
|
6647
|
-
}
|
|
6648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerContentComponent, decorators: [{
|
|
6649
|
-
type: Component,
|
|
6650
|
-
args: [{ selector: 'tcloud-ui-container-content', imports: [], template: "\n<div class=\"tc-rev-container-content\" [class.content-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [":host{display:flex;flex:1}.tc-rev-container-content{flex:1;padding-left:52px}.content-expanded{padding-left:232px}\n", ":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }]
|
|
6651
|
-
}] });
|
|
6652
|
-
|
|
6653
|
-
class TCloudUiContainerColComponent {
|
|
6654
|
-
constructor() {
|
|
6655
|
-
this._containerService = inject(ContainerService);
|
|
6656
|
-
}
|
|
6657
|
-
get expanded() {
|
|
6658
|
-
return this._containerService.expanded_signal();
|
|
6659
|
-
}
|
|
6660
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerColComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6661
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TCloudUiContainerColComponent, isStandalone: true, selector: "tcloud-ui-container-col", ngImport: i0, template: "\n<div class=\"tc-rev-container-col\" [class.col-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [".tc-rev-container-col{height:calc(100vh - 10.875rem);display:flex;position:fixed}\n", ":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }); }
|
|
6662
|
-
}
|
|
6663
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TCloudUiContainerColComponent, decorators: [{
|
|
6664
|
-
type: Component,
|
|
6665
|
-
args: [{ selector: 'tcloud-ui-container-col', imports: [], template: "\n<div class=\"tc-rev-container-col\" [class.col-expanded]=\"expanded\">\n <ng-content></ng-content>\n</div>", styles: [".tc-rev-container-col{height:calc(100vh - 10.875rem);display:flex;position:fixed}\n", ":host{display:block}.tc-rev-container{display:flex;gap:24px}\n"] }]
|
|
6666
|
-
}] });
|
|
6667
|
-
|
|
6668
6713
|
class TcRevButtonDirective {
|
|
6669
6714
|
constructor(_el) {
|
|
6670
6715
|
this._el = _el;
|