@corto-ai/gds-angular 2.1.8-dev.6 → 2.1.8-dev.7
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.dev.cortoaws.com/style/gds/2.1.8-dev.
|
|
34
|
-
- Acctivity: <https://cdn.dev.cortoaws.com/style/gds/2.1.8-dev.
|
|
35
|
-
- CORTO: <https://cdn.dev.cortoaws.com/style/gds/2.1.8-dev.
|
|
36
|
-
- LawY: <https://cdn.dev.cortoaws.com/style/gds/2.1.8-dev.
|
|
37
|
-
- LEAP: <https://cdn.dev.cortoaws.com/style/gds/2.1.8-dev.
|
|
33
|
+
- All brands combined: <https://cdn.dev.cortoaws.com/style/gds/2.1.8-dev.7/css/all.css>
|
|
34
|
+
- Acctivity: <https://cdn.dev.cortoaws.com/style/gds/2.1.8-dev.7/css/acctivity.css>
|
|
35
|
+
- CORTO: <https://cdn.dev.cortoaws.com/style/gds/2.1.8-dev.7/css/corto.css>
|
|
36
|
+
- LawY: <https://cdn.dev.cortoaws.com/style/gds/2.1.8-dev.7/css/lawy.css>
|
|
37
|
+
- LEAP: <https://cdn.dev.cortoaws.com/style/gds/2.1.8-dev.7/css/leap.css>
|
|
38
38
|
|
|
39
39
|
## Library `@layer`s
|
|
40
40
|
|
|
@@ -4711,11 +4711,16 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4711
4711
|
}] }
|
|
4712
4712
|
});
|
|
4713
4713
|
var GdsBannerComponent = class GdsBannerComponent {
|
|
4714
|
-
label = input
|
|
4714
|
+
label = input(...ngDevMode ? [void 0, { debugName: "label" }] : /* istanbul ignore next */ []);
|
|
4715
4715
|
labelSecondary = input(...ngDevMode ? [void 0, { debugName: "labelSecondary" }] : /* istanbul ignore next */ []);
|
|
4716
4716
|
iconKey = input(...ngDevMode ? [void 0, { debugName: "iconKey" }] : /* istanbul ignore next */ []);
|
|
4717
4717
|
btnLabel = input(...ngDevMode ? [void 0, { debugName: "btnLabel" }] : /* istanbul ignore next */ []);
|
|
4718
4718
|
state = model("collapsed", ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
4719
|
+
suppressDismissBtn = input(false, {
|
|
4720
|
+
...ngDevMode ? { debugName: "suppressDismissBtn" } : /* istanbul ignore next */ {},
|
|
4721
|
+
transform: booleanAttribute
|
|
4722
|
+
});
|
|
4723
|
+
layoutTmpl = contentChild("layoutTmpl", ...ngDevMode ? [{ debugName: "layoutTmpl" }] : /* istanbul ignore next */ []);
|
|
4719
4724
|
actionBtnClick = output();
|
|
4720
4725
|
contentExpanded = computed(() => this.state() === "expanded", ...ngDevMode ? [{ debugName: "contentExpanded" }] : /* istanbul ignore next */ []);
|
|
4721
4726
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -4737,7 +4742,7 @@ var GdsBannerComponent = class GdsBannerComponent {
|
|
|
4737
4742
|
classPropertyName: "label",
|
|
4738
4743
|
publicName: "label",
|
|
4739
4744
|
isSignal: true,
|
|
4740
|
-
isRequired:
|
|
4745
|
+
isRequired: false,
|
|
4741
4746
|
transformFunction: null
|
|
4742
4747
|
},
|
|
4743
4748
|
labelSecondary: {
|
|
@@ -4767,19 +4772,36 @@ var GdsBannerComponent = class GdsBannerComponent {
|
|
|
4767
4772
|
isSignal: true,
|
|
4768
4773
|
isRequired: false,
|
|
4769
4774
|
transformFunction: null
|
|
4775
|
+
},
|
|
4776
|
+
suppressDismissBtn: {
|
|
4777
|
+
classPropertyName: "suppressDismissBtn",
|
|
4778
|
+
publicName: "suppressDismissBtn",
|
|
4779
|
+
isSignal: true,
|
|
4780
|
+
isRequired: false,
|
|
4781
|
+
transformFunction: null
|
|
4770
4782
|
}
|
|
4771
4783
|
},
|
|
4772
4784
|
outputs: {
|
|
4773
4785
|
state: "stateChange",
|
|
4774
4786
|
actionBtnClick: "actionBtnClick"
|
|
4775
4787
|
},
|
|
4776
|
-
host: {
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4788
|
+
host: {
|
|
4789
|
+
properties: {
|
|
4790
|
+
"attr.expanded": "state() === \"expanded\" ? \"\" : undefined",
|
|
4791
|
+
"class.gds-display-none": "state() === \"hidden\""
|
|
4792
|
+
},
|
|
4793
|
+
classAttribute: "gds-display-flex gds-flex-column gds-gap-xs gds-padding-2xs gds-width-100-parent"
|
|
4794
|
+
},
|
|
4795
|
+
queries: [{
|
|
4796
|
+
propertyName: "layoutTmpl",
|
|
4797
|
+
first: true,
|
|
4798
|
+
predicate: ["layoutTmpl"],
|
|
4799
|
+
descendants: true,
|
|
4800
|
+
isSignal: true
|
|
4801
|
+
}],
|
|
4780
4802
|
ngImport: i0,
|
|
4781
|
-
template: "<
|
|
4782
|
-
styles: ["@layer design-system{:host{--banner-radius: var(--gds-borderRadius-sm)}:host[expanded]{--banner-radius: var(--gds-borderRadius-md)}:host{
|
|
4803
|
+
template: "<ng-container *ngTemplateOutlet=\"layoutTmpl() ?? defaultLayoutTmpl\" />\n\n<ng-template #defaultLayoutTmpl>\n <div class=\"\n gds-align-items-center\n gds-display-flex\n gds-flex-nowrap\n gds-gap-2xs\n \">\n @if (iconKey(); as key) {\n <gds-icon\n [key]=\"key\"\n class=\"\n gds-icon-size-xs\n gds-text-primary-primary\n \"\n />\n } @else {\n <ng-content select=\"[leadingTmpl]\" />\n }\n <div\n class=\"\n gds-align-items-center\n gds-display-flex\n gds-flex-1\n gds-flex-basis-auto\n gds-flex-wrap\n gds-gap-2xs\n gds-min-width-0\n \"\n >\n <div\n class=\"\n gds-align-items-center\n gds-display-flex\n gds-flex-1\n gds-flex-basis-0\n gds-flex-wrap\n gds-gap-2xs\n gds-min-width-50-parent\n \"\n >\n @if (label()) {\n <span class=\"\n gds-text-body-strong\n gds-text-primary-primary\n \">\n {{ label() }}\n </span>\n } @else {\n <ng-content select=\"[primary-label]\" />\n }\n\n @if (labelSecondary()) {\n <span class=\"\n gds-text-body\n gds-text-primary-primary\n \">\n {{ labelSecondary() }}\n </span>\n } @else {\n <ng-content select=\"[secondary-label]\" />\n }\n </div>\n\n <div class=\"\n gds-display-none-empty\n gds-flex-shrink-0\n \">\n @if (btnLabel()) {\n <button\n gds-button\n variant=\"primary\"\n (clicked)=\"actionBtnClick.emit()\"\n >\n {{ btnLabel() }}\n </button>\n } @else {\n <ng-content select=\"[trailingTmpl]\" />\n }\n </div>\n </div>\n @if (!suppressDismissBtn()) {\n <button\n gds-icon-button\n size=\"small\"\n class=\"gds-background-none\"\n aria-label=\"Close\"\n (clicked)=\"state.set('hidden')\"\n >\n <gds-icon\n class=\"\n gds-icon-size-3xs\n icon\n \"\n key=\"line-dismiss\"\n />\n </button>\n }\n </div>\n @if (contentExpanded()) {\n <div\n class=\"gds-overflow-hidden\"\n animate.enter=\"gds-expand-vertical\"\n >\n <ng-content select=\"[expanded-content]\" />\n </div>\n }\n</ng-template>\n",
|
|
4804
|
+
styles: ["@layer design-system{:host{--banner-radius: var(--gds-borderRadius-sm)}:host[expanded]{--banner-radius: var(--gds-borderRadius-md)}:host{background:var(--gds-palette-background-chat);border-radius:var(--banner-radius)}}\n"],
|
|
4783
4805
|
dependencies: [
|
|
4784
4806
|
{
|
|
4785
4807
|
kind: "component",
|
|
@@ -4798,16 +4820,20 @@ var GdsBannerComponent = class GdsBannerComponent {
|
|
|
4798
4820
|
selector: "button[gds-icon-button]",
|
|
4799
4821
|
inputs: ["tooltipLabel"]
|
|
4800
4822
|
},
|
|
4801
|
-
{
|
|
4802
|
-
kind: "directive",
|
|
4803
|
-
type: NgClass,
|
|
4804
|
-
selector: "[ngClass]",
|
|
4805
|
-
inputs: ["class", "ngClass"]
|
|
4806
|
-
},
|
|
4807
4823
|
{
|
|
4808
4824
|
kind: "component",
|
|
4809
4825
|
type: GdsButtonComponent,
|
|
4810
4826
|
selector: "button[gds-button]"
|
|
4827
|
+
},
|
|
4828
|
+
{
|
|
4829
|
+
kind: "directive",
|
|
4830
|
+
type: NgTemplateOutlet,
|
|
4831
|
+
selector: "[ngTemplateOutlet]",
|
|
4832
|
+
inputs: [
|
|
4833
|
+
"ngTemplateOutletContext",
|
|
4834
|
+
"ngTemplateOutlet",
|
|
4835
|
+
"ngTemplateOutletInjector"
|
|
4836
|
+
]
|
|
4811
4837
|
}
|
|
4812
4838
|
],
|
|
4813
4839
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
@@ -4827,15 +4853,16 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4827
4853
|
imports: [
|
|
4828
4854
|
GdsIconComponent,
|
|
4829
4855
|
GdsIconButtonComponent,
|
|
4830
|
-
|
|
4831
|
-
|
|
4856
|
+
GdsButtonComponent,
|
|
4857
|
+
NgTemplateOutlet
|
|
4832
4858
|
],
|
|
4833
4859
|
host: {
|
|
4834
|
-
"[attr.
|
|
4835
|
-
|
|
4860
|
+
"[attr.expanded]": "state() === \"expanded\" ? \"\" : undefined",
|
|
4861
|
+
class: "gds-display-flex gds-flex-column gds-gap-xs gds-padding-2xs gds-width-100-parent",
|
|
4862
|
+
"[class.gds-display-none]": "state() === \"hidden\""
|
|
4836
4863
|
},
|
|
4837
|
-
template: "<
|
|
4838
|
-
styles: ["@layer design-system{:host{--banner-radius: var(--gds-borderRadius-sm)}:host[expanded]{--banner-radius: var(--gds-borderRadius-md)}:host{
|
|
4864
|
+
template: "<ng-container *ngTemplateOutlet=\"layoutTmpl() ?? defaultLayoutTmpl\" />\n\n<ng-template #defaultLayoutTmpl>\n <div class=\"\n gds-align-items-center\n gds-display-flex\n gds-flex-nowrap\n gds-gap-2xs\n \">\n @if (iconKey(); as key) {\n <gds-icon\n [key]=\"key\"\n class=\"\n gds-icon-size-xs\n gds-text-primary-primary\n \"\n />\n } @else {\n <ng-content select=\"[leadingTmpl]\" />\n }\n <div\n class=\"\n gds-align-items-center\n gds-display-flex\n gds-flex-1\n gds-flex-basis-auto\n gds-flex-wrap\n gds-gap-2xs\n gds-min-width-0\n \"\n >\n <div\n class=\"\n gds-align-items-center\n gds-display-flex\n gds-flex-1\n gds-flex-basis-0\n gds-flex-wrap\n gds-gap-2xs\n gds-min-width-50-parent\n \"\n >\n @if (label()) {\n <span class=\"\n gds-text-body-strong\n gds-text-primary-primary\n \">\n {{ label() }}\n </span>\n } @else {\n <ng-content select=\"[primary-label]\" />\n }\n\n @if (labelSecondary()) {\n <span class=\"\n gds-text-body\n gds-text-primary-primary\n \">\n {{ labelSecondary() }}\n </span>\n } @else {\n <ng-content select=\"[secondary-label]\" />\n }\n </div>\n\n <div class=\"\n gds-display-none-empty\n gds-flex-shrink-0\n \">\n @if (btnLabel()) {\n <button\n gds-button\n variant=\"primary\"\n (clicked)=\"actionBtnClick.emit()\"\n >\n {{ btnLabel() }}\n </button>\n } @else {\n <ng-content select=\"[trailingTmpl]\" />\n }\n </div>\n </div>\n @if (!suppressDismissBtn()) {\n <button\n gds-icon-button\n size=\"small\"\n class=\"gds-background-none\"\n aria-label=\"Close\"\n (clicked)=\"state.set('hidden')\"\n >\n <gds-icon\n class=\"\n gds-icon-size-3xs\n icon\n \"\n key=\"line-dismiss\"\n />\n </button>\n }\n </div>\n @if (contentExpanded()) {\n <div\n class=\"gds-overflow-hidden\"\n animate.enter=\"gds-expand-vertical\"\n >\n <ng-content select=\"[expanded-content]\" />\n </div>\n }\n</ng-template>\n",
|
|
4865
|
+
styles: ["@layer design-system{:host{--banner-radius: var(--gds-borderRadius-sm)}:host[expanded]{--banner-radius: var(--gds-borderRadius-md)}:host{background:var(--gds-palette-background-chat);border-radius:var(--banner-radius)}}\n"]
|
|
4839
4866
|
}]
|
|
4840
4867
|
}],
|
|
4841
4868
|
propDecorators: {
|
|
@@ -4844,7 +4871,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4844
4871
|
args: [{
|
|
4845
4872
|
isSignal: true,
|
|
4846
4873
|
alias: "label",
|
|
4847
|
-
required:
|
|
4874
|
+
required: false
|
|
4848
4875
|
}]
|
|
4849
4876
|
}],
|
|
4850
4877
|
labelSecondary: [{
|
|
@@ -4882,6 +4909,18 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4882
4909
|
type: i0.Output,
|
|
4883
4910
|
args: ["stateChange"]
|
|
4884
4911
|
}],
|
|
4912
|
+
suppressDismissBtn: [{
|
|
4913
|
+
type: i0.Input,
|
|
4914
|
+
args: [{
|
|
4915
|
+
isSignal: true,
|
|
4916
|
+
alias: "suppressDismissBtn",
|
|
4917
|
+
required: false
|
|
4918
|
+
}]
|
|
4919
|
+
}],
|
|
4920
|
+
layoutTmpl: [{
|
|
4921
|
+
type: i0.ContentChild,
|
|
4922
|
+
args: ["layoutTmpl", { isSignal: true }]
|
|
4923
|
+
}],
|
|
4885
4924
|
actionBtnClick: [{
|
|
4886
4925
|
type: i0.Output,
|
|
4887
4926
|
args: ["actionBtnClick"]
|