@genexus/genexus-ide-ui 0.0.60 → 0.0.61
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/dist/cjs/ch-checkbox.cjs.entry.js +93 -0
- package/dist/cjs/{ch-checkbox_3.cjs.entry.js → ch-tree-x_3.cjs.entry.js} +475 -87
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-container.cjs.entry.js +13 -5
- package/dist/cjs/gx-ide-file-selector.cjs.entry.js +47 -0
- package/dist/cjs/gx-ide-kb-manager-export.cjs.entry.js +11 -9
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +343 -0
- package/dist/cjs/gx-ide-list-selector_2.cjs.entry.js +236 -0
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +8 -9
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-references.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-status-buttons_2.cjs.entry.js +148 -0
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-template.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js +1 -1
- package/dist/cjs/{helpers-9523495a.js → helpers-b62ea39c.js} +12 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/common/helpers.js +11 -0
- package/dist/collection/components/_template/template.js +1 -1
- package/dist/collection/components/container/container.css +24 -16
- package/dist/collection/components/container/container.js +66 -22
- package/dist/collection/components/file-selector/file-selector.css +366 -0
- package/dist/collection/components/file-selector/file-selector.js +185 -0
- package/dist/collection/components/kb-manager-export/gx-ide-assets/kb-manager-export/langs/kb-manager-export.lang.en.json +1 -0
- package/dist/collection/components/kb-manager-export/helpers.js +0 -1
- package/dist/collection/components/kb-manager-export/kb-manager-export.css +5 -2
- package/dist/collection/components/kb-manager-export/kb-manager-export.js +12 -9
- package/dist/collection/components/kb-manager-import/gx-ide-assets/kb-manager-import/langs/kb-manager-import.lang.en.json +31 -0
- package/dist/collection/components/kb-manager-import/gx-ide-assets/kb-manager-import/langs/kb-manager-import.lang.ja.json +3 -0
- package/dist/collection/components/kb-manager-import/gx-ide-assets/kb-manager-import/langs/kb-manager-import.lang.zh.json +3 -0
- package/dist/collection/components/kb-manager-import/helpers.js +128 -0
- package/dist/collection/components/kb-manager-import/kb-manager-import.css +233 -0
- package/dist/collection/components/kb-manager-import/kb-manager-import.js +415 -0
- package/dist/collection/components/list-selector/list-selector-item/list-selector-item.css +51 -14
- package/dist/collection/components/list-selector/list-selector-item/list-selector-item.js +160 -24
- package/dist/collection/components/list-selector/list-selector.css +6 -0
- package/dist/collection/components/list-selector/list-selector.js +234 -33
- package/dist/collection/components/new-kb/new-kb.css +13 -0
- package/dist/collection/components/new-kb/new-kb.js +7 -8
- package/dist/collection/components/references/references.js +2 -2
- package/dist/collection/components/status-buttons/gx-ide-status-buttons.css +93 -0
- package/dist/collection/components/status-buttons/gx-ide-status-buttons.js +325 -0
- package/dist/collection/components/team-dev-commit/team-dev-commit.js +1 -1
- package/dist/collection/components/team-dev-update/team-dev-update.js +1 -1
- package/dist/components/container.js +16 -6
- package/dist/components/form-text.js +1 -1
- package/dist/components/gx-ide-file-selector.d.ts +11 -0
- package/dist/components/gx-ide-file-selector.js +105 -0
- package/dist/components/gx-ide-kb-manager-export.js +13 -11
- package/dist/components/gx-ide-kb-manager-import.d.ts +11 -0
- package/dist/components/gx-ide-kb-manager-import.js +499 -0
- package/dist/components/gx-ide-list-selector-item.js +1 -102
- package/dist/components/gx-ide-list-selector.js +1 -73
- package/dist/components/gx-ide-new-kb.js +8 -9
- package/dist/components/gx-ide-references.js +2 -2
- package/dist/components/gx-ide-status-buttons.d.ts +11 -0
- package/dist/components/gx-ide-status-buttons.js +6 -0
- package/dist/components/gx-ide-status-buttons2.js +131 -0
- package/dist/components/gx-ide-team-dev-commit.js +1 -1
- package/dist/components/gx-ide-team-dev-update.js +1 -1
- package/dist/components/gx-ide-template.js +1 -1
- package/dist/components/gxg-ide-loader.js +1 -111
- package/dist/components/helpers2.js +12 -1
- package/dist/{esm/gxg-ide-loader.entry.js → components/ide-loader.js} +46 -7
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +3 -0
- package/dist/components/list-selector-item.js +158 -0
- package/dist/components/list-selector.js +146 -0
- package/dist/esm/ch-checkbox.entry.js +89 -0
- package/dist/esm/{ch-checkbox_3.entry.js → ch-tree-x_3.entry.js} +476 -88
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-container.entry.js +13 -5
- package/dist/esm/gx-ide-file-selector.entry.js +43 -0
- package/dist/esm/gx-ide-kb-manager-export.entry.js +11 -9
- package/dist/esm/gx-ide-kb-manager-import.entry.js +339 -0
- package/dist/esm/gx-ide-list-selector_2.entry.js +231 -0
- package/dist/esm/gx-ide-new-kb.entry.js +8 -9
- package/dist/esm/gx-ide-object-selector.entry.js +1 -1
- package/dist/esm/gx-ide-references.entry.js +2 -2
- package/dist/esm/gx-ide-status-buttons_2.entry.js +143 -0
- package/dist/esm/gx-ide-team-dev-commit.entry.js +2 -2
- package/dist/esm/gx-ide-team-dev-update.entry.js +2 -2
- package/dist/esm/gx-ide-template.entry.js +1 -1
- package/dist/esm/gx-ide-ww-images.entry.js +1 -1
- package/dist/esm/{helpers-b99024f5.js → helpers-c29a9591.js} +12 -1
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/kb-manager-export/langs/kb-manager-export.lang.en.json +1 -0
- package/dist/genexus-ide-ui/gx-ide-assets/kb-manager-import/langs/kb-manager-import.lang.en.json +31 -0
- package/dist/genexus-ide-ui/gx-ide-assets/kb-manager-import/langs/kb-manager-import.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/kb-manager-import/langs/kb-manager-import.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/p-163a93a4.entry.js +1 -0
- package/dist/genexus-ide-ui/p-1ff3cf87.entry.js +1 -0
- package/dist/genexus-ide-ui/p-2142874f.entry.js +1 -0
- package/dist/genexus-ide-ui/p-2b7d4cca.entry.js +1 -0
- package/dist/genexus-ide-ui/p-481312bc.entry.js +1 -0
- package/dist/genexus-ide-ui/p-8738b63b.entry.js +1 -0
- package/dist/genexus-ide-ui/p-9e530c7d.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-c63d5b08.js → p-9ee8b615.js} +1 -1
- package/dist/genexus-ide-ui/{p-cef1a182.entry.js → p-a3171fdf.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-ac3b8e90.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-750c726a.entry.js → p-b2ea372b.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-b685ffba.entry.js +1 -0
- package/dist/genexus-ide-ui/p-c7e11c6b.entry.js +1 -0
- package/dist/genexus-ide-ui/p-d04d634e.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-462a8f83.entry.js → p-d8096d40.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-f83093aa.entry.js +1 -0
- package/dist/types/common/helpers.d.ts +2 -0
- package/dist/types/common/types.d.ts +16 -0
- package/dist/types/components/container/container.d.ts +12 -4
- package/dist/types/components/file-selector/file-selector.d.ts +38 -0
- package/dist/types/components/kb-manager-export/kb-manager-export.d.ts +3 -2
- package/dist/types/components/kb-manager-import/helpers.d.ts +10 -0
- package/dist/types/components/kb-manager-import/kb-manager-import.d.ts +110 -0
- package/dist/types/components/list-selector/list-selector-item/list-selector-item.d.ts +38 -7
- package/dist/types/components/list-selector/list-selector.d.ts +47 -8
- package/dist/types/components/status-buttons/gx-ide-status-buttons.d.ts +63 -0
- package/dist/types/components.d.ts +410 -28
- package/package.json +3 -3
- package/dist/cjs/gx-ide-list-selector-item.cjs.entry.js +0 -89
- package/dist/cjs/gx-ide-list-selector.cjs.entry.js +0 -51
- package/dist/cjs/gxg-ide-loader.cjs.entry.js +0 -78
- package/dist/cjs/gxg-tree-view.cjs.entry.js +0 -481
- package/dist/esm/gx-ide-list-selector-item.entry.js +0 -85
- package/dist/esm/gx-ide-list-selector.entry.js +0 -47
- package/dist/esm/gxg-tree-view.entry.js +0 -477
- package/dist/genexus-ide-ui/p-00ee4c20.entry.js +0 -1
- package/dist/genexus-ide-ui/p-16d35368.entry.js +0 -1
- package/dist/genexus-ide-ui/p-3e16a46a.entry.js +0 -1
- package/dist/genexus-ide-ui/p-83f6db54.entry.js +0 -1
- package/dist/genexus-ide-ui/p-845f47ff.entry.js +0 -1
- package/dist/genexus-ide-ui/p-85164984.entry.js +0 -1
- package/dist/genexus-ide-ui/p-a4b359b1.entry.js +0 -1
- package/dist/genexus-ide-ui/p-a5833100.entry.js +0 -1
- package/dist/genexus-ide-ui/p-cddb793a.entry.js +0 -1
- package/dist/genexus-ide-ui/p-dd676f91.entry.js +0 -1
- package/dist/genexus-ide-ui/p-ffddd3ad.entry.js +0 -1
|
@@ -4,6 +4,7 @@ export class GxIdeContainer {
|
|
|
4
4
|
this.headingClasses = () => {
|
|
5
5
|
return {
|
|
6
6
|
"heading": true,
|
|
7
|
+
"heading--inactive": this.inactiveTitle,
|
|
7
8
|
"heading--no-border": this.noHeadingBorder || this.hasOnlyHeading,
|
|
8
9
|
[`heading--justify-${this.headingJustify}`]: true,
|
|
9
10
|
["heading--no-padding"]: this.noHeadingPadding
|
|
@@ -23,12 +24,17 @@ export class GxIdeContainer {
|
|
|
23
24
|
this.footer = () => {
|
|
24
25
|
return this.hasFooterSlot ? (h("footer", { class: {
|
|
25
26
|
"footer": true,
|
|
26
|
-
"footer--no-border": this.hasOnlyFooter ||
|
|
27
|
+
"footer--no-border": this.hasOnlyFooter ||
|
|
28
|
+
!this.hasSlottedContent ||
|
|
29
|
+
this.noBorderFooter,
|
|
27
30
|
[`footer--justify-${this.footerJustify}`]: true,
|
|
28
31
|
[`footer--justify-${this.footerJustify}`]: true,
|
|
29
|
-
["footer--no-padding"]: this.noFooterPadding
|
|
32
|
+
["footer--no-padding"]: this.noFooterPadding,
|
|
33
|
+
"footer--slimmer": this.slimmerFooter,
|
|
34
|
+
"footer--subtle-shadow": this.footerSubtleShadow
|
|
30
35
|
} }, h("div", { class: "footer__start" }, h("slot", { name: "footer-start" })), h("div", { class: "footer__end" }, h("slot", { name: "footer-end" })))) : null;
|
|
31
36
|
};
|
|
37
|
+
this.inactiveTitle = false;
|
|
32
38
|
this.containerTitle = undefined;
|
|
33
39
|
this.displayBorder = false;
|
|
34
40
|
this.displayBorderTop = false;
|
|
@@ -36,7 +42,6 @@ export class GxIdeContainer {
|
|
|
36
42
|
this.displayBorderBottom = false;
|
|
37
43
|
this.displayBorderStart = false;
|
|
38
44
|
this.sectionsPadding = "m";
|
|
39
|
-
this.fullHeight = false;
|
|
40
45
|
this.titleAlignment = "center";
|
|
41
46
|
this.noHeadingBorder = false;
|
|
42
47
|
this.noHeadingPadding = false;
|
|
@@ -47,9 +52,11 @@ export class GxIdeContainer {
|
|
|
47
52
|
this.noContentGap = false;
|
|
48
53
|
this.alignItems = undefined;
|
|
49
54
|
this.justifyContent = undefined;
|
|
55
|
+
this.slimmerFooter = false;
|
|
50
56
|
this.noFooterPadding = false;
|
|
51
57
|
this.footerJustify = "end";
|
|
52
58
|
this.noBorderFooter = false;
|
|
59
|
+
this.footerSubtleShadow = false;
|
|
53
60
|
this.hasHeaderSlot = false;
|
|
54
61
|
this.hasSlottedContent = false;
|
|
55
62
|
this.hasFooterSlot = false;
|
|
@@ -106,7 +113,8 @@ export class GxIdeContainer {
|
|
|
106
113
|
"container--display-border-top": this.displayBorderTop,
|
|
107
114
|
"container--display-border-end": this.displayBorderEnd,
|
|
108
115
|
"container--display-border-bottom": this.displayBorderBottom,
|
|
109
|
-
"container--display-border-start": this.displayBorderStart
|
|
116
|
+
"container--display-border-start": this.displayBorderStart,
|
|
117
|
+
"container--overflow-hidden-y": this.footerSubtleShadow
|
|
110
118
|
} }, result)));
|
|
111
119
|
}
|
|
112
120
|
static get is() { return "gx-ide-container"; }
|
|
@@ -123,6 +131,24 @@ export class GxIdeContainer {
|
|
|
123
131
|
}
|
|
124
132
|
static get properties() {
|
|
125
133
|
return {
|
|
134
|
+
"inactiveTitle": {
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"mutable": false,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "boolean",
|
|
139
|
+
"resolved": "boolean",
|
|
140
|
+
"references": {}
|
|
141
|
+
},
|
|
142
|
+
"required": false,
|
|
143
|
+
"optional": false,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": "By setting the title to inactive, the color will be gray instead of black."
|
|
147
|
+
},
|
|
148
|
+
"attribute": "inactive-title",
|
|
149
|
+
"reflect": false,
|
|
150
|
+
"defaultValue": "false"
|
|
151
|
+
},
|
|
126
152
|
"containerTitle": {
|
|
127
153
|
"type": "string",
|
|
128
154
|
"mutable": false,
|
|
@@ -252,24 +278,6 @@ export class GxIdeContainer {
|
|
|
252
278
|
"reflect": false,
|
|
253
279
|
"defaultValue": "\"m\""
|
|
254
280
|
},
|
|
255
|
-
"fullHeight": {
|
|
256
|
-
"type": "boolean",
|
|
257
|
-
"mutable": false,
|
|
258
|
-
"complexType": {
|
|
259
|
-
"original": "boolean",
|
|
260
|
-
"resolved": "boolean",
|
|
261
|
-
"references": {}
|
|
262
|
-
},
|
|
263
|
-
"required": false,
|
|
264
|
-
"optional": false,
|
|
265
|
-
"docs": {
|
|
266
|
-
"tags": [],
|
|
267
|
-
"text": "Makes the container full height (content will grow only)"
|
|
268
|
-
},
|
|
269
|
-
"attribute": "full-height",
|
|
270
|
-
"reflect": true,
|
|
271
|
-
"defaultValue": "false"
|
|
272
|
-
},
|
|
273
281
|
"titleAlignment": {
|
|
274
282
|
"type": "string",
|
|
275
283
|
"mutable": false,
|
|
@@ -467,6 +475,24 @@ export class GxIdeContainer {
|
|
|
467
475
|
"reflect": false,
|
|
468
476
|
"defaultValue": "undefined"
|
|
469
477
|
},
|
|
478
|
+
"slimmerFooter": {
|
|
479
|
+
"type": "boolean",
|
|
480
|
+
"mutable": false,
|
|
481
|
+
"complexType": {
|
|
482
|
+
"original": "boolean",
|
|
483
|
+
"resolved": "boolean",
|
|
484
|
+
"references": {}
|
|
485
|
+
},
|
|
486
|
+
"required": false,
|
|
487
|
+
"optional": false,
|
|
488
|
+
"docs": {
|
|
489
|
+
"tags": [],
|
|
490
|
+
"text": "Makes the footer vertical padding slimmer"
|
|
491
|
+
},
|
|
492
|
+
"attribute": "slimmer-footer",
|
|
493
|
+
"reflect": false,
|
|
494
|
+
"defaultValue": "false"
|
|
495
|
+
},
|
|
470
496
|
"noFooterPadding": {
|
|
471
497
|
"type": "boolean",
|
|
472
498
|
"mutable": false,
|
|
@@ -524,6 +550,24 @@ export class GxIdeContainer {
|
|
|
524
550
|
"attribute": "no-border-footer",
|
|
525
551
|
"reflect": false,
|
|
526
552
|
"defaultValue": "false"
|
|
553
|
+
},
|
|
554
|
+
"footerSubtleShadow": {
|
|
555
|
+
"type": "boolean",
|
|
556
|
+
"mutable": false,
|
|
557
|
+
"complexType": {
|
|
558
|
+
"original": "boolean",
|
|
559
|
+
"resolved": "boolean",
|
|
560
|
+
"references": {}
|
|
561
|
+
},
|
|
562
|
+
"required": false,
|
|
563
|
+
"optional": false,
|
|
564
|
+
"docs": {
|
|
565
|
+
"tags": [],
|
|
566
|
+
"text": "Adds a subtle shadow to the footer"
|
|
567
|
+
},
|
|
568
|
+
"attribute": "footer-subtle-shadow",
|
|
569
|
+
"reflect": false,
|
|
570
|
+
"defaultValue": "false"
|
|
527
571
|
}
|
|
528
572
|
};
|
|
529
573
|
}
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ui-animaton-speed: 0.2s;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/*ALIGNMENT*/
|
|
6
|
+
/*Ellipsis*/
|
|
7
|
+
/*****************************************************
|
|
8
|
+
TYPOGRAPHY
|
|
9
|
+
*****************************************************/
|
|
10
|
+
/*Title 01 (Positive)*/
|
|
11
|
+
.gxg-title-01 {
|
|
12
|
+
font-family: var(--font-family-primary);
|
|
13
|
+
font-weight: var(--font-weight-bold);
|
|
14
|
+
font-size: var(--font-size-md);
|
|
15
|
+
letter-spacing: var(--letter-spacing-md);
|
|
16
|
+
color: var(--color-on-background);
|
|
17
|
+
text-align: start;
|
|
18
|
+
line-height: 1.455em;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/*Title 01 (Negative)*/
|
|
22
|
+
.gxg-title-01--negative {
|
|
23
|
+
font-family: var(--font-family-primary);
|
|
24
|
+
font-weight: var(--font-weight-bold);
|
|
25
|
+
font-size: var(--font-size-md);
|
|
26
|
+
letter-spacing: var(--letter-spacing-md);
|
|
27
|
+
color: var(--color-on-background);
|
|
28
|
+
text-align: start;
|
|
29
|
+
line-height: 1.455em;
|
|
30
|
+
color: var(--color-on-primary);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/*Title 02 (Positive)*/
|
|
34
|
+
.gxg-title-02 {
|
|
35
|
+
font-family: var(--font-family-primary);
|
|
36
|
+
font-weight: var(--font-weight-bold);
|
|
37
|
+
font-size: var(--font-size-sm);
|
|
38
|
+
letter-spacing: var(--letter-spacing-sm);
|
|
39
|
+
color: var(--color-on-background);
|
|
40
|
+
text-align: start;
|
|
41
|
+
text-transform: uppercase;
|
|
42
|
+
line-height: 1.556em;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.gxg-title-02--negative {
|
|
46
|
+
font-family: var(--font-family-primary);
|
|
47
|
+
font-weight: var(--font-weight-bold);
|
|
48
|
+
font-size: var(--font-size-sm);
|
|
49
|
+
letter-spacing: var(--letter-spacing-sm);
|
|
50
|
+
color: var(--color-on-background);
|
|
51
|
+
text-align: start;
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
line-height: 1.556em;
|
|
54
|
+
color: var(--color-on-primary);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/*Title 03*/
|
|
58
|
+
.gxg-title-03 {
|
|
59
|
+
font-family: var(--font-family-primary);
|
|
60
|
+
font-weight: var(--font-weight-regular);
|
|
61
|
+
font-size: var(--font-size-xs);
|
|
62
|
+
letter-spacing: var(--letter-spacing-sm);
|
|
63
|
+
color: var(--color-on-background);
|
|
64
|
+
text-align: start;
|
|
65
|
+
text-transform: uppercase;
|
|
66
|
+
line-height: 1.556em;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.gxg-title-03--negative {
|
|
70
|
+
font-family: var(--font-family-primary);
|
|
71
|
+
font-weight: var(--font-weight-regular);
|
|
72
|
+
font-size: var(--font-size-xs);
|
|
73
|
+
letter-spacing: var(--letter-spacing-sm);
|
|
74
|
+
color: var(--color-on-background);
|
|
75
|
+
text-align: start;
|
|
76
|
+
text-transform: uppercase;
|
|
77
|
+
line-height: 1.556em;
|
|
78
|
+
color: var(--color-on-primary);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/*Title 04*/
|
|
82
|
+
.gxg-title-04 {
|
|
83
|
+
font-family: var(--font-family-primary);
|
|
84
|
+
font-weight: var(--font-weight-semibold);
|
|
85
|
+
font-size: var(--font-size-md);
|
|
86
|
+
letter-spacing: var(--letter-spacing-md);
|
|
87
|
+
color: var(--color-on-background);
|
|
88
|
+
text-align: start;
|
|
89
|
+
line-height: 1.455em;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.gxg-title-04--negative {
|
|
93
|
+
font-family: var(--font-family-primary);
|
|
94
|
+
font-weight: var(--font-weight-semibold);
|
|
95
|
+
font-size: var(--font-size-md);
|
|
96
|
+
letter-spacing: var(--letter-spacing-md);
|
|
97
|
+
color: var(--color-on-background);
|
|
98
|
+
text-align: start;
|
|
99
|
+
line-height: 1.455em;
|
|
100
|
+
color: var(--color-on-primary);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/*Title 05*/
|
|
104
|
+
.gxg-title-05 {
|
|
105
|
+
font-family: var(--font-family-primary);
|
|
106
|
+
font-weight: var(--font-weight-semibold);
|
|
107
|
+
font-size: var(--font-size-sm);
|
|
108
|
+
letter-spacing: var(--letter-spacing-sm);
|
|
109
|
+
color: var(--color-on-background);
|
|
110
|
+
text-align: start;
|
|
111
|
+
line-height: 1.556em;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.gxg-title-05--negative {
|
|
115
|
+
font-family: var(--font-family-primary);
|
|
116
|
+
font-weight: var(--font-weight-semibold);
|
|
117
|
+
font-size: var(--font-size-sm);
|
|
118
|
+
letter-spacing: var(--letter-spacing-sm);
|
|
119
|
+
color: var(--color-on-background);
|
|
120
|
+
text-align: start;
|
|
121
|
+
line-height: 1.556em;
|
|
122
|
+
color: var(--color-on-primary);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/*Text*/
|
|
126
|
+
.gxg-text {
|
|
127
|
+
font-family: var(--font-family-primary);
|
|
128
|
+
font-weight: var(--font-weight-regular);
|
|
129
|
+
font-size: var(--font-size-sm);
|
|
130
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
131
|
+
color: var(--color-on-background);
|
|
132
|
+
text-align: start;
|
|
133
|
+
line-height: 1.455em;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.gxg-text--negative {
|
|
137
|
+
font-family: var(--font-family-primary);
|
|
138
|
+
font-weight: var(--font-weight-regular);
|
|
139
|
+
font-size: var(--font-size-sm);
|
|
140
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
141
|
+
color: var(--color-on-background);
|
|
142
|
+
text-align: start;
|
|
143
|
+
line-height: 1.455em;
|
|
144
|
+
color: var(--color-on-primary);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.gxg-text--gray {
|
|
148
|
+
font-family: var(--font-family-primary);
|
|
149
|
+
font-weight: var(--font-weight-regular);
|
|
150
|
+
font-size: var(--font-size-sm);
|
|
151
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
152
|
+
color: var(--color-on-background);
|
|
153
|
+
text-align: start;
|
|
154
|
+
line-height: 1.455em;
|
|
155
|
+
color: var(--gray-05);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/*Quote*/
|
|
159
|
+
.gxg-quote {
|
|
160
|
+
font-family: var(--font-family-primary);
|
|
161
|
+
font-weight: var(--font-weight-regular);
|
|
162
|
+
font-size: var(--font-size-sm);
|
|
163
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
164
|
+
color: var(--color-on-background);
|
|
165
|
+
text-align: start;
|
|
166
|
+
line-height: 1.455em;
|
|
167
|
+
font-style: italic;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.gxg-quote--negative {
|
|
171
|
+
color: var(--color-on-primary);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/*Link*/
|
|
175
|
+
.gxg-link {
|
|
176
|
+
font-family: var(--font-family-primary);
|
|
177
|
+
font-weight: var(--font-weight-regular);
|
|
178
|
+
font-size: var(--font-size-sm);
|
|
179
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
180
|
+
color: var(--color-on-background);
|
|
181
|
+
text-align: start;
|
|
182
|
+
line-height: 1.455em;
|
|
183
|
+
color: var(--color-primary);
|
|
184
|
+
text-decoration: underline;
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
display: inline-block;
|
|
187
|
+
}
|
|
188
|
+
.gxg-link:hover {
|
|
189
|
+
color: var(--color-primary-hover);
|
|
190
|
+
}
|
|
191
|
+
.gxg-link:active {
|
|
192
|
+
color: var(--color-primary-active);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.gxg-link-gray {
|
|
196
|
+
font-family: var(--font-family-primary);
|
|
197
|
+
font-weight: var(--font-weight-regular);
|
|
198
|
+
font-size: var(--font-size-sm);
|
|
199
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
200
|
+
color: var(--color-on-background);
|
|
201
|
+
text-align: start;
|
|
202
|
+
line-height: 1.455em;
|
|
203
|
+
color: var(--color-primary);
|
|
204
|
+
text-decoration: underline;
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
display: inline-block;
|
|
207
|
+
color: var(--gray-04);
|
|
208
|
+
}
|
|
209
|
+
.gxg-link-gray:hover {
|
|
210
|
+
font-family: var(--font-family-primary);
|
|
211
|
+
font-weight: var(--font-weight-regular);
|
|
212
|
+
font-size: var(--font-size-sm);
|
|
213
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
214
|
+
color: var(--color-on-background);
|
|
215
|
+
text-align: start;
|
|
216
|
+
line-height: 1.455em;
|
|
217
|
+
color: var(--color-primary);
|
|
218
|
+
text-decoration: underline;
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
display: inline-block;
|
|
221
|
+
color: var(--gray-04);
|
|
222
|
+
color: var(--gray-06);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/*Alerts*/
|
|
226
|
+
.gxg-alert-error {
|
|
227
|
+
font-family: var(--font-family-primary);
|
|
228
|
+
font-weight: var(--font-weight-regular);
|
|
229
|
+
font-size: var(--font-size-sm);
|
|
230
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
231
|
+
color: var(--color-on-background);
|
|
232
|
+
text-align: start;
|
|
233
|
+
line-height: 1.455em;
|
|
234
|
+
color: var(--color-error-dark);
|
|
235
|
+
display: inline-block;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.gxg-alert-warning {
|
|
239
|
+
font-family: var(--font-family-primary);
|
|
240
|
+
font-weight: var(--font-weight-regular);
|
|
241
|
+
font-size: var(--font-size-sm);
|
|
242
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
243
|
+
color: var(--color-on-background);
|
|
244
|
+
text-align: start;
|
|
245
|
+
line-height: 1.455em;
|
|
246
|
+
color: var(--color-warning-dark);
|
|
247
|
+
display: inline-block;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.gxg-alert-success {
|
|
251
|
+
font-family: var(--font-family-primary);
|
|
252
|
+
font-weight: var(--font-weight-regular);
|
|
253
|
+
font-size: var(--font-size-sm);
|
|
254
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
255
|
+
color: var(--color-on-background);
|
|
256
|
+
text-align: start;
|
|
257
|
+
line-height: 1.455em;
|
|
258
|
+
color: var(--color-success-dark);
|
|
259
|
+
display: inline-block;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/*Tab*/
|
|
263
|
+
.gxg-tab--disabled {
|
|
264
|
+
color: var(--color-primary-disabled);
|
|
265
|
+
pointer-events: none;
|
|
266
|
+
}
|
|
267
|
+
.gxg-tab--disabled[disabled] {
|
|
268
|
+
color: var(--color-primary-disabled);
|
|
269
|
+
pointer-events: none;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/*Label*/
|
|
273
|
+
.gxg-label {
|
|
274
|
+
font-family: var(--font-family-primary) !important;
|
|
275
|
+
font-weight: var(--font-weight-semibold);
|
|
276
|
+
font-size: var(--font-size-sm) !important;
|
|
277
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
278
|
+
color: var(--color-primary-enabled);
|
|
279
|
+
text-align: center;
|
|
280
|
+
line-height: 1.455em;
|
|
281
|
+
}
|
|
282
|
+
.gxg-label:hover {
|
|
283
|
+
color: var(--color-primary-hover);
|
|
284
|
+
}
|
|
285
|
+
.gxg-label:focus {
|
|
286
|
+
color: var(--color-primary-active);
|
|
287
|
+
}
|
|
288
|
+
.gxg-label:active {
|
|
289
|
+
color: var(--color-primary-active);
|
|
290
|
+
}
|
|
291
|
+
.gxg-label[disabled] {
|
|
292
|
+
color: var(--color-primary-disabled);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.gxg-label--negative {
|
|
296
|
+
color: var(--color-on-primary);
|
|
297
|
+
}
|
|
298
|
+
.gxg-label--negative[disabled] {
|
|
299
|
+
color: var(--color-on-disabled);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/*****************************************************
|
|
303
|
+
GXG-BUTTON and GXG-BUTTON-GROUP COMMON STYLES
|
|
304
|
+
*****************************************************/
|
|
305
|
+
.gxg-button-styles {
|
|
306
|
+
font-family: var(--font-family-primary) !important;
|
|
307
|
+
font-weight: var(--font-weight-semibold);
|
|
308
|
+
font-size: var(--font-size-sm) !important;
|
|
309
|
+
letter-spacing: var(--letter-spacing-xs);
|
|
310
|
+
color: var(--color-primary-enabled);
|
|
311
|
+
text-align: center;
|
|
312
|
+
line-height: 1.455em;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/*****************************************************
|
|
316
|
+
FORM ELEMENTS
|
|
317
|
+
*****************************************************/
|
|
318
|
+
.gxg-scrollbar {
|
|
319
|
+
/* Track */
|
|
320
|
+
/* Handle */
|
|
321
|
+
/* Handle on hover */
|
|
322
|
+
}
|
|
323
|
+
.gxg-scrollbar::-webkit-scrollbar {
|
|
324
|
+
width: var(--gxg-scrollbar-width, 6px);
|
|
325
|
+
}
|
|
326
|
+
.gxg-scrollbar::-webkit-scrollbar-track {
|
|
327
|
+
background-color: var(--gxg-scrollbar-track-background, --gray-02);
|
|
328
|
+
border-radius: var(--gxg-scrollbar-track-border-radius, 10px);
|
|
329
|
+
}
|
|
330
|
+
.gxg-scrollbar::-webkit-scrollbar-thumb {
|
|
331
|
+
background: var(--gxg-scrollbar-track-thumb-background, --gray-05);
|
|
332
|
+
border-radius: var(--gxg-scrollbar-track-thumb-radius, 10px);
|
|
333
|
+
}
|
|
334
|
+
.gxg-scrollbar::-webkit-scrollbar-thumb:hover {
|
|
335
|
+
background: var(--gxg-scrollbar-track-thumb-hover-background, --gray-04);
|
|
336
|
+
cursor: pointer;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
:host {
|
|
340
|
+
display: flex;
|
|
341
|
+
flex-direction: column;
|
|
342
|
+
color: var(--color-primary-enabled);
|
|
343
|
+
/*label*/
|
|
344
|
+
/*wrapper*/
|
|
345
|
+
}
|
|
346
|
+
:host .container {
|
|
347
|
+
display: flex;
|
|
348
|
+
flex-direction: column;
|
|
349
|
+
gap: 30px;
|
|
350
|
+
}
|
|
351
|
+
:host label {
|
|
352
|
+
font-size: 14px;
|
|
353
|
+
}
|
|
354
|
+
:host .wrapper {
|
|
355
|
+
display: inline-flex;
|
|
356
|
+
align-items: center;
|
|
357
|
+
gap: var(--gx-ide-grid-column-gap);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/*label position*/
|
|
361
|
+
:host([label-position=start]) {
|
|
362
|
+
flex-direction: row;
|
|
363
|
+
}
|
|
364
|
+
:host([label-position=start]) .wrapper {
|
|
365
|
+
flex: 1;
|
|
366
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/* STENCIL IMPORTS */
|
|
2
|
+
import { Host, h } from "@stencil/core";
|
|
3
|
+
/* OTHER LIBRARIES IMPORTS */
|
|
4
|
+
/* CUSTOM IMPORTS */
|
|
5
|
+
export class GxIdeFileSelector {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.evaluateLabelPosition = () => {
|
|
8
|
+
if (this.label && this.labelPosition === "above") {
|
|
9
|
+
this.centerLabel = false;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
// 7.LISTENERS //
|
|
13
|
+
// 8.PUBLIC METHODS API //
|
|
14
|
+
// 9.LOCAL METHODS //
|
|
15
|
+
this.btnSelectClickHandler = () => { };
|
|
16
|
+
this.accessibilityLabels = {
|
|
17
|
+
buttonSelectLabel: "selects a file from the user file system"
|
|
18
|
+
};
|
|
19
|
+
this.label = undefined;
|
|
20
|
+
this.labelPosition = "start";
|
|
21
|
+
this.centerLabel = true;
|
|
22
|
+
this.labelWidth = undefined;
|
|
23
|
+
this.selectDirectoryCallback = undefined;
|
|
24
|
+
this.value = undefined;
|
|
25
|
+
}
|
|
26
|
+
// 2. REFERENCE TO ELEMENTS //
|
|
27
|
+
// 3.STATE() VARIABLES //
|
|
28
|
+
// 4.PUBLIC PROPERTY API | WATCH'S //
|
|
29
|
+
// 5.EVENTS (EMIT) //
|
|
30
|
+
// 6.METHODS //
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
this.evaluateLabelPosition();
|
|
33
|
+
}
|
|
34
|
+
// 10.RENDER() FUNCTION //
|
|
35
|
+
render() {
|
|
36
|
+
var _a;
|
|
37
|
+
return (h(Host, null, this.label ? (h("gxg-label", { labelPosition: this.labelPosition, center: this.centerLabel }, this.label)) : null, h("div", { class: "wrapper" }, h("gxg-form-text", { part: "input", value: this.value }), h("gxg-button", { part: "button-select", onClick: this.btnSelectClickHandler, "aria-label": (_a = this.accessibilityLabels) === null || _a === void 0 ? void 0 : _a.buttonSelectLabel, type: "secondary-icon-only", icon: "gemini-tools/folder", disabled: !this.selectDirectoryCallback }))));
|
|
38
|
+
}
|
|
39
|
+
static get is() { return "gx-ide-file-selector"; }
|
|
40
|
+
static get encapsulation() { return "shadow"; }
|
|
41
|
+
static get originalStyleUrls() {
|
|
42
|
+
return {
|
|
43
|
+
"$": ["file-selector.scss"]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static get styleUrls() {
|
|
47
|
+
return {
|
|
48
|
+
"$": ["file-selector.css"]
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static get properties() {
|
|
52
|
+
return {
|
|
53
|
+
"accessibilityLabels": {
|
|
54
|
+
"type": "unknown",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "FileSelectorLabels",
|
|
58
|
+
"resolved": "{ buttonSelectLabel: string; }",
|
|
59
|
+
"references": {
|
|
60
|
+
"FileSelectorLabels": {
|
|
61
|
+
"location": "local"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": false,
|
|
66
|
+
"optional": false,
|
|
67
|
+
"docs": {
|
|
68
|
+
"tags": [],
|
|
69
|
+
"text": "This property provides the user a way to define custom aria-label descriptions."
|
|
70
|
+
},
|
|
71
|
+
"defaultValue": "{\n buttonSelectLabel: \"selects a file from the user file system\"\n }"
|
|
72
|
+
},
|
|
73
|
+
"label": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "string",
|
|
78
|
+
"resolved": "string",
|
|
79
|
+
"references": {}
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"optional": true,
|
|
83
|
+
"docs": {
|
|
84
|
+
"tags": [],
|
|
85
|
+
"text": "The label associated with the input (optional)"
|
|
86
|
+
},
|
|
87
|
+
"attribute": "label",
|
|
88
|
+
"reflect": false
|
|
89
|
+
},
|
|
90
|
+
"labelPosition": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"mutable": false,
|
|
93
|
+
"complexType": {
|
|
94
|
+
"original": "LabelPosition",
|
|
95
|
+
"resolved": "\"above\" | \"start\"",
|
|
96
|
+
"references": {
|
|
97
|
+
"LabelPosition": {
|
|
98
|
+
"location": "local"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": true,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": "The label position"
|
|
107
|
+
},
|
|
108
|
+
"attribute": "label-position",
|
|
109
|
+
"reflect": true,
|
|
110
|
+
"defaultValue": "\"start\""
|
|
111
|
+
},
|
|
112
|
+
"centerLabel": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"mutable": true,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "boolean",
|
|
117
|
+
"resolved": "boolean",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": false,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": "Centers the label"
|
|
125
|
+
},
|
|
126
|
+
"attribute": "center-label",
|
|
127
|
+
"reflect": false,
|
|
128
|
+
"defaultValue": "true"
|
|
129
|
+
},
|
|
130
|
+
"labelWidth": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "string",
|
|
135
|
+
"resolved": "string",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": false,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": "The label width"
|
|
143
|
+
},
|
|
144
|
+
"attribute": "label-width",
|
|
145
|
+
"reflect": false
|
|
146
|
+
},
|
|
147
|
+
"selectDirectoryCallback": {
|
|
148
|
+
"type": "unknown",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "() => Promise<string>",
|
|
152
|
+
"resolved": "() => Promise<string>",
|
|
153
|
+
"references": {
|
|
154
|
+
"Promise": {
|
|
155
|
+
"location": "global"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"required": false,
|
|
160
|
+
"optional": false,
|
|
161
|
+
"docs": {
|
|
162
|
+
"tags": [],
|
|
163
|
+
"text": "Callback that will be called when the user presses the action button. Returns the new value (directory path) assigned to the component."
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"value": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"mutable": true,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "string",
|
|
171
|
+
"resolved": "string",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": "Value currently assigned."
|
|
179
|
+
},
|
|
180
|
+
"attribute": "value",
|
|
181
|
+
"reflect": false
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
}
|