@corto-ai/gds-angular 2.1.3-test.5 → 2.1.4-dev.1
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
CHANGED
|
@@ -30,11 +30,11 @@ If you plan to only use the stylesheet/fonts for this library, we recommend impl
|
|
|
30
30
|
|
|
31
31
|
## CDN Assets
|
|
32
32
|
|
|
33
|
-
- All brands combined: <https://cdn.
|
|
34
|
-
- Acctivity: <https://cdn.
|
|
35
|
-
- CORTO: <https://cdn.
|
|
36
|
-
- LawY: <https://cdn.
|
|
37
|
-
- LEAP: <https://cdn.
|
|
33
|
+
- All brands combined: <https://cdn.dev.cortoaws.com/style/gds/2.1.4-dev.1/css/all.css>
|
|
34
|
+
- Acctivity: <https://cdn.dev.cortoaws.com/style/gds/2.1.4-dev.1/css/acctivity.css>
|
|
35
|
+
- CORTO: <https://cdn.dev.cortoaws.com/style/gds/2.1.4-dev.1/css/corto.css>
|
|
36
|
+
- LawY: <https://cdn.dev.cortoaws.com/style/gds/2.1.4-dev.1/css/lawy.css>
|
|
37
|
+
- LEAP: <https://cdn.dev.cortoaws.com/style/gds/2.1.4-dev.1/css/leap.css>
|
|
38
38
|
|
|
39
39
|
## Library `@layer`s
|
|
40
40
|
|
|
@@ -24,7 +24,6 @@ import { FormsModule } from '@angular/forms';
|
|
|
24
24
|
import * as i2 from '@ng-select/ng-select';
|
|
25
25
|
import { NgSelectComponent, NgLabelTemplateDirective, NgMultiLabelTemplateDirective, NgFooterTemplateDirective, NgClearButtonTemplateDirective, NgOptionTemplateDirective, NgPlaceholderTemplateDirective, NgSelectModule } from '@ng-select/ng-select';
|
|
26
26
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
27
|
-
import { TranslatePipe } from '@ngx-translate/core';
|
|
28
27
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
29
28
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
30
29
|
import { provideTippyLoader, provideTippyConfig } from '@ngneat/helipopper/config';
|
|
@@ -7046,51 +7045,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
7046
7045
|
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"\n gds-display-flex\n gds-flex-column\n timeline\n\">\n <div class=\"\n end\n gds-display-flex\n gds-height-2xs\n gds-justify-content-center\n \">\n @if (!end()) {\n <span class=\"gds-timeline_edge\"></span>\n }\n </div>\n <ng-content select=\"[tag]\" />\n <div class=\"\n gds-display-flex\n gds-flex-grow-1\n gds-justify-content-center\n start\n \">\n @if (!start() || connectorType() === 'content') {\n <span class=\"\n gds-timeline_edge\n start\n \"></span>\n }\n </div>\n</div>\n<div class=\"\n content\n gds-flex-grow-1\n gds-padding-block-2xs\n\">\n <ng-content />\n</div>\n", styles: ["@layer design-system{:host[connectorType=content] .gds-timeline_edge{margin-block:var(--gds-spacing-2xs)}:host:hover{background-color:var(--gds-palette-background-hover)}:host .gds-timeline_edge{width:1px;background-color:var(--gds-palette-border-default)}:host .content{overflow:hidden}:host .timeline{width:40px}}\n"] }]
|
|
7047
7046
|
}], propDecorators: { end: [{ type: i0.Input, args: [{ isSignal: true, alias: "end", required: false }] }], start: [{ type: i0.Input, args: [{ isSignal: true, alias: "start", required: false }] }], connectorType: [{ type: i0.Input, args: [{ isSignal: true, alias: "connectorType", required: false }] }] } });
|
|
7048
7047
|
|
|
7049
|
-
class GdsToastContainerComponent {
|
|
7050
|
-
toaster = inject(ToastrService);
|
|
7051
|
-
hostClass = computed(() => `toast-container ${this.toaster.positionClass}`, ...(ngDevMode ? [{ debugName: "hostClass" }] : /* istanbul ignore next */ []));
|
|
7052
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GdsToastContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7053
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: GdsToastContainerComponent, isStandalone: true, selector: "gds-toast-container", host: { properties: { "class": "hostClass()" } }, ngImport: i0, template: `
|
|
7054
|
-
@for (toast of toaster.toasts(); track toast.toastId) {
|
|
7055
|
-
<gds-toast [toast]="toast" />
|
|
7056
|
-
}
|
|
7057
|
-
`, isInline: true, dependencies: [{ kind: "component", type: GdsToastComponent, selector: "gds-toast", inputs: ["toast"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7058
|
-
}
|
|
7059
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GdsToastContainerComponent, decorators: [{
|
|
7060
|
-
type: Component,
|
|
7061
|
-
args: [{
|
|
7062
|
-
selector: 'gds-toast-container',
|
|
7063
|
-
template: `
|
|
7064
|
-
@for (toast of toaster.toasts(); track toast.toastId) {
|
|
7065
|
-
<gds-toast [toast]="toast" />
|
|
7066
|
-
}
|
|
7067
|
-
`,
|
|
7068
|
-
host: {
|
|
7069
|
-
'[class]': 'hostClass()'
|
|
7070
|
-
},
|
|
7071
|
-
imports: [GdsToastComponent],
|
|
7072
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
7073
|
-
}]
|
|
7074
|
-
}] });
|
|
7075
|
-
|
|
7076
7048
|
const GDS_TOASTER_CONFIG = new InjectionToken('GDS_TOASTER_CONFIG');
|
|
7077
7049
|
const GDS_TOAST_CONTAINER = new InjectionToken('GDS_TOAST_CONTAINER');
|
|
7078
|
-
const DEFAULT_CONFIG = {
|
|
7079
|
-
timeOut: 5000,
|
|
7080
|
-
extendedTimeOut: 1000,
|
|
7081
|
-
positionClass: 'toast-top-left',
|
|
7082
|
-
preventDuplicates: true,
|
|
7083
|
-
tapToDismiss: false,
|
|
7084
|
-
disableTimeOut: false,
|
|
7085
|
-
payload: {}
|
|
7086
|
-
};
|
|
7087
|
-
const provideToaster = (customOptions = {}) => makeEnvironmentProviders([
|
|
7088
|
-
{
|
|
7089
|
-
provide: GDS_TOASTER_CONFIG,
|
|
7090
|
-
useValue: { ...DEFAULT_CONFIG, ...customOptions }
|
|
7091
|
-
},
|
|
7092
|
-
{ provide: GDS_TOAST_CONTAINER, useValue: GdsToastContainerComponent }
|
|
7093
|
-
]);
|
|
7094
7050
|
|
|
7095
7051
|
class ToastrService {
|
|
7096
7052
|
#overlay = inject(Overlay);
|
|
@@ -7302,7 +7258,7 @@ class GdsToastComponent {
|
|
|
7302
7258
|
}
|
|
7303
7259
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GdsToastComponent, decorators: [{
|
|
7304
7260
|
type: Component,
|
|
7305
|
-
args: [{ selector: 'gds-toast', imports: [GdsIconComponent, GdsIconButtonComponent, GdsButtonComponent
|
|
7261
|
+
args: [{ selector: 'gds-toast', imports: [GdsIconComponent, GdsIconButtonComponent, GdsButtonComponent], host: {
|
|
7306
7262
|
'[attr.type]': 'status()',
|
|
7307
7263
|
class: 'gds-responsive-sm-width-100-parent',
|
|
7308
7264
|
'animate.enter': 'gds-scale-in gds-fade-in',
|
|
@@ -7313,6 +7269,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
7313
7269
|
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"\n gds-border\n gds-display-flex\n gds-gap-sm\n gds-padding-block-2xs\n gds-padding-inline-sm\n gds-radius-sm\n gds-responsive-sm-padding-3xs\n gds-toaster--container\n \"\n>\n <div class=\"\n gds-align-items-center\n gds-display-flex\n gds-height-md\n gds-justify-content-center\n \">\n <gds-icon\n key=\"filled-info\"\n class=\"\n gds-icon-size-xs\n gds-toaster--icon\n \"\n />\n </div>\n <div class=\"\n gds-align-items-center\n gds-column-gap-sm\n gds-display-flex\n gds-flex-1\n gds-flex-wrap\n gds-row-gap-2xs\n \">\n @if (title()) {\n <div class=\"\n gds-height-fit-content\n gds-text-body-strong\n gds-text-primary\n gds-width-fit-content\n \">\n {{ title() }}\n </div>\n }\n @if (message()) {\n <div\n class=\"\n gds-height-fit-content\n gds-text-body\n gds-text-primary\n gds-width-fit-content\n \"\n [innerHtml]=\"message()\"\n ></div>\n }\n @if (actionLabel()) {\n <button\n gds-button\n class=\"\n gds-border-none\n gds-toaster--action-btn\n \"\n [attr.aria-label]=\"actionAriaLabel()\"\n (clicked)=\"action($event)\"\n >\n {{ actionLabel() }}\n </button>\n }\n </div>\n <div class=\"\n gds-align-items-center\n gds-display-flex\n gds-height-md\n gds-justify-content-center\n \">\n <button\n gds-icon-button\n class=\"gds-background-none\"\n variant=\"primary\"\n [attr.aria-label]=\"dismissAriaLabel()\"\n (clicked)=\"remove()\"\n >\n <gds-icon\n key=\"line-dismiss\"\n class=\"gds-icon-size-3xs\"\n />\n </button>\n </div>\n</div>\n", styles: ["@layer design-system{:host{pointer-events:auto;--background-color: var(--gds-pattern-toast-default-backgroundColor-rest);--icon-color: var(--gds-pattern-toast-default-iconColor-rest);--action-btn-backgroundColor: var(--gds-pattern-toast-default-btnColor-rest);--action-btn-backgroundColor-hover: var(--gds-pattern-toast-default-btnColor-hover);--action-btn-color: var(--gds-palette-text-default-contrast)}:host[type=success]{--background-color: var(--gds-palette-helper-success-default);--icon-color: var(--gds-palette-helper-success-inverse);--action-btn-backgroundColor: var(--gds-pattern-toast-success-btnColor-rest);--action-btn-backgroundColor-hover: var(--gds-pattern-toast-success-btnColor-hover)}:host[type=warning]{--background-color: var(--gds-palette-helper-warning-default);--icon-color: var(--gds-palette-helper-warning-inverse);--action-btn-backgroundColor: var(--gds-pattern-toast-warning-btnColor-rest);--action-btn-backgroundColor-hover: var(--gds-pattern-toast-warning-btnColor-hover)}:host[type=danger]{--background-color: var(--gds-palette-helper-error-default);--icon-color: var(--gds-palette-helper-error-inverse);--action-btn-backgroundColor: var(--gds-pattern-toast-error-btnColor-rest);--action-btn-backgroundColor-hover: var(--gds-pattern-toast-error-btnColor-hover)}:host .gds-toaster--container{background-color:var(--background-color)}:host .gds-toaster--icon{color:var(--icon-color)}:host .gds-toaster--action-btn{--gds-button-backgroundColor: var(--action-btn-backgroundColor);--gds-button-backgroundColor-hover: var(--action-btn-backgroundColor-hover);--gds-button-color: var(--action-btn-color)}}\n"] }]
|
|
7314
7270
|
}], propDecorators: { toast: [{ type: i0.Input, args: [{ isSignal: true, alias: "toast", required: true }] }] } });
|
|
7315
7271
|
|
|
7272
|
+
class GdsToastContainerComponent {
|
|
7273
|
+
toaster = inject(ToastrService);
|
|
7274
|
+
hostClass = computed(() => `toast-container ${this.toaster.positionClass}`, ...(ngDevMode ? [{ debugName: "hostClass" }] : /* istanbul ignore next */ []));
|
|
7275
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GdsToastContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7276
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: GdsToastContainerComponent, isStandalone: true, selector: "gds-toast-container", host: { properties: { "class": "hostClass()" } }, ngImport: i0, template: `
|
|
7277
|
+
@for (toast of toaster.toasts(); track toast.toastId) {
|
|
7278
|
+
<gds-toast [toast]="toast" />
|
|
7279
|
+
}
|
|
7280
|
+
`, isInline: true, dependencies: [{ kind: "component", type: GdsToastComponent, selector: "gds-toast", inputs: ["toast"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7281
|
+
}
|
|
7282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GdsToastContainerComponent, decorators: [{
|
|
7283
|
+
type: Component,
|
|
7284
|
+
args: [{
|
|
7285
|
+
selector: 'gds-toast-container',
|
|
7286
|
+
template: `
|
|
7287
|
+
@for (toast of toaster.toasts(); track toast.toastId) {
|
|
7288
|
+
<gds-toast [toast]="toast" />
|
|
7289
|
+
}
|
|
7290
|
+
`,
|
|
7291
|
+
host: {
|
|
7292
|
+
'[class]': 'hostClass()'
|
|
7293
|
+
},
|
|
7294
|
+
imports: [GdsToastComponent],
|
|
7295
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
7296
|
+
}]
|
|
7297
|
+
}] });
|
|
7298
|
+
|
|
7299
|
+
const DEFAULT_CONFIG = {
|
|
7300
|
+
timeOut: 5000,
|
|
7301
|
+
extendedTimeOut: 1000,
|
|
7302
|
+
positionClass: 'toast-top-left',
|
|
7303
|
+
preventDuplicates: true,
|
|
7304
|
+
tapToDismiss: false,
|
|
7305
|
+
disableTimeOut: false,
|
|
7306
|
+
payload: {}
|
|
7307
|
+
};
|
|
7308
|
+
const provideToaster = (customOptions = {}) => makeEnvironmentProviders([
|
|
7309
|
+
{
|
|
7310
|
+
provide: GDS_TOASTER_CONFIG,
|
|
7311
|
+
useValue: { ...DEFAULT_CONFIG, ...customOptions }
|
|
7312
|
+
},
|
|
7313
|
+
{ provide: GDS_TOAST_CONTAINER, useValue: GdsToastContainerComponent }
|
|
7314
|
+
]);
|
|
7315
|
+
|
|
7316
7316
|
class GdsListboxBaseDirective {
|
|
7317
7317
|
tabindex = signal(0, ...(ngDevMode ? [{ debugName: "tabindex" }] : /* istanbul ignore next */ []));
|
|
7318
7318
|
items = signal([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|