@genexus/genexus-ide-ui 0.0.40 → 0.0.42
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-icon.cjs.entry.js +116 -0
- package/dist/cjs/{form-validation-f8e709d0.js → common-facb7f18.js} +0 -19
- package/dist/cjs/constants-e63c0ad9.js +10 -0
- package/dist/cjs/form-validation-b7fb4ca8.js +21 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +137 -0
- package/dist/cjs/{gxg-date-picker.cjs.entry.js → gx-ide-entity-selector_2.cjs.entry.js} +81 -0
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +3 -2
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +7 -6
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +30 -24
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js +229 -0
- package/dist/cjs/{gxg-button.cjs.entry.js → gxg-button_2.cjs.entry.js} +61 -0
- package/dist/cjs/gxg-combo-box_2.cjs.entry.js +705 -0
- package/dist/cjs/gxg-form-checkbox-group.cjs.entry.js +91 -0
- package/dist/cjs/{gxg-form-checkbox-group_2.cjs.entry.js → gxg-form-radio.cjs.entry.js} +0 -85
- package/dist/cjs/gxg-list-box_2.cjs.entry.js +1 -6
- package/dist/cjs/{gxg-combo-box_6.cjs.entry.js → gxg-tab_4.cjs.entry.js} +1 -699
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/common/constants.js +6 -0
- package/dist/collection/components/create-kb-from-server/create-kb-from-server.css +162 -0
- package/dist/collection/components/create-kb-from-server/create-kb-from-server.js +302 -0
- package/dist/collection/components/create-kb-from-server/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.en.json +17 -0
- package/dist/collection/components/create-kb-from-server/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.ja.json +3 -0
- package/dist/collection/components/create-kb-from-server/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.zh.json +3 -0
- package/dist/collection/components/new-kb/new-kb.js +1 -1
- package/dist/collection/components/object-selector/gx-ide-assets/object-selector/langs/object-selector.lang.en.json +1 -1
- package/dist/collection/components/object-selector/object-selector.js +33 -26
- package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.en.json +47 -0
- package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.ja.json +3 -0
- package/dist/collection/components/ww-images/gx-ide-assets/ww-images/langs/ww-images.lang.zh.json +3 -0
- package/dist/collection/components/ww-images/ww-images.css +229 -0
- package/dist/collection/components/ww-images/ww-images.js +674 -0
- package/dist/collection/pages/assets/common.js +20 -0
- package/dist/components/combo-box.js +0 -1
- package/dist/components/common.js +46 -0
- package/dist/components/constants.js +8 -0
- package/dist/components/form-validation.js +1 -46
- package/dist/components/gx-ide-create-kb-from-server.d.ts +11 -0
- package/dist/components/gx-ide-create-kb-from-server.js +246 -0
- package/dist/components/gx-ide-new-environment.js +2 -1
- package/dist/components/gx-ide-new-kb.js +3 -2
- package/dist/components/gx-ide-object-selector.js +30 -24
- package/dist/components/gx-ide-ww-images.d.ts +11 -0
- package/dist/components/gx-ide-ww-images.js +421 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/list-box-item.js +0 -1
- package/dist/components/list-box.js +1 -5
- package/dist/esm/ch-icon.entry.js +112 -0
- package/dist/esm/{form-validation-cdb16431.js → common-a3df0966.js} +1 -19
- package/dist/esm/constants-7882d1a8.js +8 -0
- package/dist/esm/form-validation-09bd4504.js +19 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-create-kb-from-server.entry.js +133 -0
- package/dist/esm/{gxg-date-picker.entry.js → gx-ide-entity-selector_2.entry.js} +81 -1
- package/dist/esm/gx-ide-new-environment.entry.js +2 -1
- package/dist/esm/gx-ide-new-kb.entry.js +3 -2
- package/dist/esm/gx-ide-object-selector.entry.js +30 -24
- package/dist/esm/gx-ide-ww-images.entry.js +225 -0
- package/dist/esm/{gxg-button.entry.js → gxg-button_2.entry.js} +62 -2
- package/dist/esm/gxg-combo-box_2.entry.js +700 -0
- package/dist/esm/gxg-form-checkbox-group.entry.js +87 -0
- package/dist/esm/{gxg-form-checkbox-group_2.entry.js → gxg-form-radio.entry.js} +1 -85
- package/dist/esm/gxg-list-box_2.entry.js +1 -6
- package/dist/esm/{gxg-combo-box_6.entry.js → gxg-tab_4.entry.js} +3 -699
- 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/create-kb-from-server/langs/create-kb-from-server.lang.en.json +17 -0
- package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/object-selector/langs/object-selector.lang.en.json +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.en.json +47 -0
- package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/ww-images/langs/ww-images.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/p-07e89cdd.entry.js +1 -0
- package/dist/genexus-ide-ui/p-35fc1102.entry.js +1 -0
- package/dist/genexus-ide-ui/p-44964acf.js +1 -0
- package/dist/genexus-ide-ui/p-4b7f7425.entry.js +1 -0
- package/dist/genexus-ide-ui/p-4d39c34a.entry.js +1 -0
- package/dist/genexus-ide-ui/p-5ad757f4.entry.js +1 -0
- package/dist/genexus-ide-ui/p-6010dc9d.js +1 -0
- package/dist/genexus-ide-ui/p-764ab316.entry.js +1 -0
- package/dist/genexus-ide-ui/p-7a83018d.entry.js +1 -0
- package/dist/genexus-ide-ui/p-7a90def4.entry.js +1 -0
- package/dist/genexus-ide-ui/p-8bf7f0e1.entry.js +1 -0
- package/dist/genexus-ide-ui/p-c6ad49cc.entry.js +1 -0
- package/dist/genexus-ide-ui/p-daf4eb69.js +1 -0
- package/dist/genexus-ide-ui/p-f305e4d3.entry.js +1 -0
- package/dist/genexus-ide-ui/p-f3a1dc7c.entry.js +1 -0
- package/dist/genexus-ide-ui/p-fcdcb919.entry.js +1 -0
- package/dist/types/common/constants.d.ts +6 -0
- package/dist/types/components/create-kb-from-server/create-kb-from-server.d.ts +90 -0
- package/dist/types/components/object-selector/object-selector.d.ts +5 -7
- package/dist/types/components/ww-images/ww-images.d.ts +191 -0
- package/dist/types/components.d.ts +271 -3
- package/package.json +3 -3
- package/dist/cjs/ch-icon_2.cjs.entry.js +0 -177
- package/dist/cjs/gx-ide-entity-selector.cjs.entry.js +0 -87
- package/dist/esm/ch-icon_2.entry.js +0 -172
- package/dist/esm/gx-ide-entity-selector.entry.js +0 -83
- package/dist/genexus-ide-ui/p-2ebd392f.entry.js +0 -1
- package/dist/genexus-ide-ui/p-34721f1c.entry.js +0 -1
- package/dist/genexus-ide-ui/p-5884a014.entry.js +0 -1
- package/dist/genexus-ide-ui/p-5c560dd0.entry.js +0 -1
- package/dist/genexus-ide-ui/p-7285d245.entry.js +0 -1
- package/dist/genexus-ide-ui/p-a708db45.entry.js +0 -1
- package/dist/genexus-ide-ui/p-ad03b1e0.entry.js +0 -1
- package/dist/genexus-ide-ui/p-c304345f.entry.js +0 -1
- package/dist/genexus-ide-ui/p-c38c6957.entry.js +0 -1
- package/dist/genexus-ide-ui/p-db945a17.js +0 -1
- package/dist/genexus-ide-ui/p-e1fea866.entry.js +0 -1
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { AlignItems, FooterJustify, HeadingJustify, JustifyContent, SectionsPadding } from "./components/container/container";
|
|
9
9
|
import { TitleAlignment } from "@genexus/gemini/dist/types/common/types";
|
|
10
|
+
import { ConnectionResultData, CreateKBData, GXServerConnectionData } from "./components/create-kb-from-server/create-kb-from-server";
|
|
11
|
+
import { EntityData, FormSubmitResult, GxOption, ObjectType as ObjectType1 } from "./common/types";
|
|
10
12
|
import { DirectorySelectorLabels, LabelPosition } from "./components/directory-selector/directory-selector";
|
|
11
13
|
import { EntitySelectorLabels } from "./components/entity-selector/entity-selector";
|
|
12
|
-
import { EntityData, GxOption, ObjectType as ObjectType1 } from "./common/types";
|
|
13
14
|
import { LabelPosition as LabelPosition1 } from "./components/directory-selector/directory-selector";
|
|
14
15
|
import { ItemData } from "./components/list-selector/list-selector-item/list-selector-item";
|
|
15
16
|
import { CancelCallback, ChangedCallback, CreateCallback } from "./components/new-environment/new-environment";
|
|
@@ -23,6 +24,7 @@ import { ConfirmCallback, GridContextMenuCallback, LoadCallback as LoadCallback2
|
|
|
23
24
|
import { AddCallback, CancelCallback as CancelCallback4, ConfirmCallback as ConfirmCallback1, ObjectData as ObjectData1 } from "./components/team-dev-update-partial-selection/team-dev-update-partial-selection";
|
|
24
25
|
import { cancelCallbackFn, confirmCallbackFn } from "./components/team-dev-update-to-revision/team-dev-update-to-revision";
|
|
25
26
|
import { GxgTreeItemData } from "@genexus/gemini/dist/types/components/tree-item/gxg-tree-item";
|
|
27
|
+
import { ContextMenuCallback, DeleteSelectionCallback, LoadCallback as LoadCallback3, LoadImageItemsCallback, NewObjectCallback as NewObjectCallback1, OpenSelectionCallback as OpenSelectionCallback1, SelectionChangeCallback, SelectModuleCallback as SelectModuleCallback2 } from "./components/ww-images/ww-images";
|
|
26
28
|
export namespace Components {
|
|
27
29
|
interface GxIdeContainer {
|
|
28
30
|
/**
|
|
@@ -106,6 +108,40 @@ export namespace Components {
|
|
|
106
108
|
*/
|
|
107
109
|
"titleAlignment": TitleAlignment;
|
|
108
110
|
}
|
|
111
|
+
interface GxIdeCreateKbFromServer {
|
|
112
|
+
/**
|
|
113
|
+
* Callback that will be invoked when the user connect to the kb server (‘Connect’ button)
|
|
114
|
+
*/
|
|
115
|
+
"connectCallback": (
|
|
116
|
+
data: GXServerConnectionData
|
|
117
|
+
) => Promise<ConnectionResultData>;
|
|
118
|
+
/**
|
|
119
|
+
* Callback that will be invoked when the user confirms KB creation (‘Create’ button)
|
|
120
|
+
*/
|
|
121
|
+
"createKBCallback": (
|
|
122
|
+
data: CreateKBData
|
|
123
|
+
) => Promise<FormSubmitResult>;
|
|
124
|
+
/**
|
|
125
|
+
* If is true then the user can specify a server url that don't be in the combo box of server urls.
|
|
126
|
+
*/
|
|
127
|
+
"enableCustomServer": boolean;
|
|
128
|
+
/**
|
|
129
|
+
* The knowledge base default suggested name
|
|
130
|
+
*/
|
|
131
|
+
"kbName": string;
|
|
132
|
+
/**
|
|
133
|
+
* Password for the database connection.
|
|
134
|
+
*/
|
|
135
|
+
"password": string;
|
|
136
|
+
/**
|
|
137
|
+
* Array of URLs of cataloged servers to be displayed in the combo
|
|
138
|
+
*/
|
|
139
|
+
"serverUrls": string[];
|
|
140
|
+
/**
|
|
141
|
+
* Username for the database connection.
|
|
142
|
+
*/
|
|
143
|
+
"userName": string;
|
|
144
|
+
}
|
|
109
145
|
interface GxIdeDirectorySelector {
|
|
110
146
|
/**
|
|
111
147
|
* This property provides the user a way to define custom aria-label descriptions.
|
|
@@ -408,7 +444,7 @@ export namespace Components {
|
|
|
408
444
|
/**
|
|
409
445
|
* True' if multiple object selection is allowed. Default is 'True'
|
|
410
446
|
*/
|
|
411
|
-
"multiSelection":
|
|
447
|
+
"multiSelection": boolean;
|
|
412
448
|
/**
|
|
413
449
|
* Callback invoked when the user presses the 'New' button.
|
|
414
450
|
*/
|
|
@@ -656,6 +692,96 @@ export namespace Components {
|
|
|
656
692
|
*/
|
|
657
693
|
"topBarTitle": string;
|
|
658
694
|
}
|
|
695
|
+
interface GxIdeWwImages {
|
|
696
|
+
/**
|
|
697
|
+
* The categories render in the filter category selector
|
|
698
|
+
*/
|
|
699
|
+
"categories": GxOption[];
|
|
700
|
+
/**
|
|
701
|
+
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
702
|
+
*/
|
|
703
|
+
"contextMenuCallback": ContextMenuCallback;
|
|
704
|
+
/**
|
|
705
|
+
* The default value for the 'categories' filter
|
|
706
|
+
*/
|
|
707
|
+
"defaultCategory": string;
|
|
708
|
+
/**
|
|
709
|
+
* The default value for the module/folder filter
|
|
710
|
+
*/
|
|
711
|
+
"defaultModule": EntityData;
|
|
712
|
+
/**
|
|
713
|
+
* The default value for the type filter
|
|
714
|
+
*/
|
|
715
|
+
"defaultType": string;
|
|
716
|
+
/**
|
|
717
|
+
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
718
|
+
*/
|
|
719
|
+
"deleteSelectionCallback": DeleteSelectionCallback;
|
|
720
|
+
/**
|
|
721
|
+
* The densities render in the filter density selector
|
|
722
|
+
*/
|
|
723
|
+
"densities": GxOption[];
|
|
724
|
+
/**
|
|
725
|
+
* The modules/folders render in the module/folder selector
|
|
726
|
+
*/
|
|
727
|
+
"filterModules": GxOption[];
|
|
728
|
+
/**
|
|
729
|
+
* The languages render in the filter language selector
|
|
730
|
+
*/
|
|
731
|
+
"languages": GxOption[];
|
|
732
|
+
/**
|
|
733
|
+
* The layers render in the filter layer selector
|
|
734
|
+
*/
|
|
735
|
+
"layers": GxOption[];
|
|
736
|
+
/**
|
|
737
|
+
* This is a function provided by the developer that return a list of images to populate the table of images.
|
|
738
|
+
*/
|
|
739
|
+
"loadCallback": LoadCallback;
|
|
740
|
+
/**
|
|
741
|
+
* This is a function provided by the developer that return a list of items of the image selected.
|
|
742
|
+
*/
|
|
743
|
+
"loadImageItemsCallback": LoadImageItemsCallback;
|
|
744
|
+
/**
|
|
745
|
+
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
746
|
+
*/
|
|
747
|
+
"newObjectCallback": NewObjectCallback;
|
|
748
|
+
/**
|
|
749
|
+
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
750
|
+
*/
|
|
751
|
+
"openSelectionCallback": OpenSelectionCallback;
|
|
752
|
+
/**
|
|
753
|
+
* This method reload the view, refreshing the filters and the table of images.
|
|
754
|
+
*/
|
|
755
|
+
"reload": () => Promise<void>;
|
|
756
|
+
/**
|
|
757
|
+
* Callback invoked when the action is executed on the Module/Folder filter (button '...'). It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
758
|
+
*/
|
|
759
|
+
"selectModuleCallback": SelectModuleCallback;
|
|
760
|
+
/**
|
|
761
|
+
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
762
|
+
*/
|
|
763
|
+
"selectionObjectChangeCallback": SelectionChangeCallback;
|
|
764
|
+
/**
|
|
765
|
+
* Applies a shadow all around
|
|
766
|
+
*/
|
|
767
|
+
"shadow": false;
|
|
768
|
+
/**
|
|
769
|
+
* The styles render in the filter style selector
|
|
770
|
+
*/
|
|
771
|
+
"styles": GxOption[];
|
|
772
|
+
/**
|
|
773
|
+
* The types render in the filter type selector
|
|
774
|
+
*/
|
|
775
|
+
"types": GxOption[];
|
|
776
|
+
/**
|
|
777
|
+
* Validate necessary data input
|
|
778
|
+
*/
|
|
779
|
+
"validate": () => Promise<boolean>;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
export interface GxIdeCreateKbFromServerCustomEvent<T> extends CustomEvent<T> {
|
|
783
|
+
detail: T;
|
|
784
|
+
target: HTMLGxIdeCreateKbFromServerElement;
|
|
659
785
|
}
|
|
660
786
|
export interface GxIdeEntitySelectorCustomEvent<T> extends CustomEvent<T> {
|
|
661
787
|
detail: T;
|
|
@@ -709,6 +835,10 @@ export interface GxIdeTemplateCustomEvent<T> extends CustomEvent<T> {
|
|
|
709
835
|
detail: T;
|
|
710
836
|
target: HTMLGxIdeTemplateElement;
|
|
711
837
|
}
|
|
838
|
+
export interface GxIdeWwImagesCustomEvent<T> extends CustomEvent<T> {
|
|
839
|
+
detail: T;
|
|
840
|
+
target: HTMLGxIdeWwImagesElement;
|
|
841
|
+
}
|
|
712
842
|
declare global {
|
|
713
843
|
interface HTMLGxIdeContainerElement extends Components.GxIdeContainer, HTMLStencilElement {
|
|
714
844
|
}
|
|
@@ -716,6 +846,12 @@ declare global {
|
|
|
716
846
|
prototype: HTMLGxIdeContainerElement;
|
|
717
847
|
new (): HTMLGxIdeContainerElement;
|
|
718
848
|
};
|
|
849
|
+
interface HTMLGxIdeCreateKbFromServerElement extends Components.GxIdeCreateKbFromServer, HTMLStencilElement {
|
|
850
|
+
}
|
|
851
|
+
var HTMLGxIdeCreateKbFromServerElement: {
|
|
852
|
+
prototype: HTMLGxIdeCreateKbFromServerElement;
|
|
853
|
+
new (): HTMLGxIdeCreateKbFromServerElement;
|
|
854
|
+
};
|
|
719
855
|
interface HTMLGxIdeDirectorySelectorElement extends Components.GxIdeDirectorySelector, HTMLStencilElement {
|
|
720
856
|
}
|
|
721
857
|
var HTMLGxIdeDirectorySelectorElement: {
|
|
@@ -818,8 +954,15 @@ declare global {
|
|
|
818
954
|
prototype: HTMLGxIdeTopBarElement;
|
|
819
955
|
new (): HTMLGxIdeTopBarElement;
|
|
820
956
|
};
|
|
957
|
+
interface HTMLGxIdeWwImagesElement extends Components.GxIdeWwImages, HTMLStencilElement {
|
|
958
|
+
}
|
|
959
|
+
var HTMLGxIdeWwImagesElement: {
|
|
960
|
+
prototype: HTMLGxIdeWwImagesElement;
|
|
961
|
+
new (): HTMLGxIdeWwImagesElement;
|
|
962
|
+
};
|
|
821
963
|
interface HTMLElementTagNameMap {
|
|
822
964
|
"gx-ide-container": HTMLGxIdeContainerElement;
|
|
965
|
+
"gx-ide-create-kb-from-server": HTMLGxIdeCreateKbFromServerElement;
|
|
823
966
|
"gx-ide-directory-selector": HTMLGxIdeDirectorySelectorElement;
|
|
824
967
|
"gx-ide-entity-selector": HTMLGxIdeEntitySelectorElement;
|
|
825
968
|
"gx-ide-list-selector": HTMLGxIdeListSelectorElement;
|
|
@@ -837,6 +980,7 @@ declare global {
|
|
|
837
980
|
"gx-ide-template": HTMLGxIdeTemplateElement;
|
|
838
981
|
"gx-ide-test": HTMLGxIdeTestElement;
|
|
839
982
|
"gx-ide-top-bar": HTMLGxIdeTopBarElement;
|
|
983
|
+
"gx-ide-ww-images": HTMLGxIdeWwImagesElement;
|
|
840
984
|
}
|
|
841
985
|
}
|
|
842
986
|
declare namespace LocalJSX {
|
|
@@ -922,6 +1066,44 @@ declare namespace LocalJSX {
|
|
|
922
1066
|
*/
|
|
923
1067
|
"titleAlignment"?: TitleAlignment;
|
|
924
1068
|
}
|
|
1069
|
+
interface GxIdeCreateKbFromServer {
|
|
1070
|
+
/**
|
|
1071
|
+
* Callback that will be invoked when the user connect to the kb server (‘Connect’ button)
|
|
1072
|
+
*/
|
|
1073
|
+
"connectCallback"?: (
|
|
1074
|
+
data: GXServerConnectionData
|
|
1075
|
+
) => Promise<ConnectionResultData>;
|
|
1076
|
+
/**
|
|
1077
|
+
* Callback that will be invoked when the user confirms KB creation (‘Create’ button)
|
|
1078
|
+
*/
|
|
1079
|
+
"createKBCallback"?: (
|
|
1080
|
+
data: CreateKBData
|
|
1081
|
+
) => Promise<FormSubmitResult>;
|
|
1082
|
+
/**
|
|
1083
|
+
* If is true then the user can specify a server url that don't be in the combo box of server urls.
|
|
1084
|
+
*/
|
|
1085
|
+
"enableCustomServer"?: boolean;
|
|
1086
|
+
/**
|
|
1087
|
+
* The knowledge base default suggested name
|
|
1088
|
+
*/
|
|
1089
|
+
"kbName"?: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* This event is emitted once just after the component is fully loaded and the first render() occurs
|
|
1092
|
+
*/
|
|
1093
|
+
"onComponentDidLoadEvent"?: (event: GxIdeCreateKbFromServerCustomEvent<boolean>) => void;
|
|
1094
|
+
/**
|
|
1095
|
+
* Password for the database connection.
|
|
1096
|
+
*/
|
|
1097
|
+
"password"?: string;
|
|
1098
|
+
/**
|
|
1099
|
+
* Array of URLs of cataloged servers to be displayed in the combo
|
|
1100
|
+
*/
|
|
1101
|
+
"serverUrls": string[];
|
|
1102
|
+
/**
|
|
1103
|
+
* Username for the database connection.
|
|
1104
|
+
*/
|
|
1105
|
+
"userName"?: string;
|
|
1106
|
+
}
|
|
925
1107
|
interface GxIdeDirectorySelector {
|
|
926
1108
|
/**
|
|
927
1109
|
* This property provides the user a way to define custom aria-label descriptions.
|
|
@@ -1256,7 +1438,7 @@ declare namespace LocalJSX {
|
|
|
1256
1438
|
/**
|
|
1257
1439
|
* True' if multiple object selection is allowed. Default is 'True'
|
|
1258
1440
|
*/
|
|
1259
|
-
"multiSelection"?:
|
|
1441
|
+
"multiSelection"?: boolean;
|
|
1260
1442
|
/**
|
|
1261
1443
|
* Callback invoked when the user presses the 'New' button.
|
|
1262
1444
|
*/
|
|
@@ -1516,8 +1698,91 @@ declare namespace LocalJSX {
|
|
|
1516
1698
|
*/
|
|
1517
1699
|
"topBarTitle"?: string;
|
|
1518
1700
|
}
|
|
1701
|
+
interface GxIdeWwImages {
|
|
1702
|
+
/**
|
|
1703
|
+
* The categories render in the filter category selector
|
|
1704
|
+
*/
|
|
1705
|
+
"categories": GxOption[];
|
|
1706
|
+
/**
|
|
1707
|
+
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
1708
|
+
*/
|
|
1709
|
+
"contextMenuCallback": ContextMenuCallback;
|
|
1710
|
+
/**
|
|
1711
|
+
* The default value for the 'categories' filter
|
|
1712
|
+
*/
|
|
1713
|
+
"defaultCategory"?: string;
|
|
1714
|
+
/**
|
|
1715
|
+
* The default value for the module/folder filter
|
|
1716
|
+
*/
|
|
1717
|
+
"defaultModule"?: EntityData;
|
|
1718
|
+
/**
|
|
1719
|
+
* The default value for the type filter
|
|
1720
|
+
*/
|
|
1721
|
+
"defaultType"?: string;
|
|
1722
|
+
/**
|
|
1723
|
+
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
1724
|
+
*/
|
|
1725
|
+
"deleteSelectionCallback": DeleteSelectionCallback;
|
|
1726
|
+
/**
|
|
1727
|
+
* The densities render in the filter density selector
|
|
1728
|
+
*/
|
|
1729
|
+
"densities": GxOption[];
|
|
1730
|
+
/**
|
|
1731
|
+
* The modules/folders render in the module/folder selector
|
|
1732
|
+
*/
|
|
1733
|
+
"filterModules": GxOption[];
|
|
1734
|
+
/**
|
|
1735
|
+
* The languages render in the filter language selector
|
|
1736
|
+
*/
|
|
1737
|
+
"languages": GxOption[];
|
|
1738
|
+
/**
|
|
1739
|
+
* The layers render in the filter layer selector
|
|
1740
|
+
*/
|
|
1741
|
+
"layers": GxOption[];
|
|
1742
|
+
/**
|
|
1743
|
+
* This is a function provided by the developer that return a list of images to populate the table of images.
|
|
1744
|
+
*/
|
|
1745
|
+
"loadCallback": LoadCallback;
|
|
1746
|
+
/**
|
|
1747
|
+
* This is a function provided by the developer that return a list of items of the image selected.
|
|
1748
|
+
*/
|
|
1749
|
+
"loadImageItemsCallback": LoadImageItemsCallback;
|
|
1750
|
+
/**
|
|
1751
|
+
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
1752
|
+
*/
|
|
1753
|
+
"newObjectCallback": NewObjectCallback;
|
|
1754
|
+
/**
|
|
1755
|
+
* This event is emitted once just after the component is fully loaded and the first render() occurs.
|
|
1756
|
+
*/
|
|
1757
|
+
"onComponentDidLoadEvent"?: (event: GxIdeWwImagesCustomEvent<boolean>) => void;
|
|
1758
|
+
/**
|
|
1759
|
+
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
1760
|
+
*/
|
|
1761
|
+
"openSelectionCallback": OpenSelectionCallback;
|
|
1762
|
+
/**
|
|
1763
|
+
* Callback invoked when the action is executed on the Module/Folder filter (button '...'). It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
1764
|
+
*/
|
|
1765
|
+
"selectModuleCallback": SelectModuleCallback;
|
|
1766
|
+
/**
|
|
1767
|
+
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
1768
|
+
*/
|
|
1769
|
+
"selectionObjectChangeCallback": SelectionChangeCallback;
|
|
1770
|
+
/**
|
|
1771
|
+
* Applies a shadow all around
|
|
1772
|
+
*/
|
|
1773
|
+
"shadow"?: false;
|
|
1774
|
+
/**
|
|
1775
|
+
* The styles render in the filter style selector
|
|
1776
|
+
*/
|
|
1777
|
+
"styles": GxOption[];
|
|
1778
|
+
/**
|
|
1779
|
+
* The types render in the filter type selector
|
|
1780
|
+
*/
|
|
1781
|
+
"types": GxOption[];
|
|
1782
|
+
}
|
|
1519
1783
|
interface IntrinsicElements {
|
|
1520
1784
|
"gx-ide-container": GxIdeContainer;
|
|
1785
|
+
"gx-ide-create-kb-from-server": GxIdeCreateKbFromServer;
|
|
1521
1786
|
"gx-ide-directory-selector": GxIdeDirectorySelector;
|
|
1522
1787
|
"gx-ide-entity-selector": GxIdeEntitySelector;
|
|
1523
1788
|
"gx-ide-list-selector": GxIdeListSelector;
|
|
@@ -1535,6 +1800,7 @@ declare namespace LocalJSX {
|
|
|
1535
1800
|
"gx-ide-template": GxIdeTemplate;
|
|
1536
1801
|
"gx-ide-test": GxIdeTest;
|
|
1537
1802
|
"gx-ide-top-bar": GxIdeTopBar;
|
|
1803
|
+
"gx-ide-ww-images": GxIdeWwImages;
|
|
1538
1804
|
}
|
|
1539
1805
|
}
|
|
1540
1806
|
export { LocalJSX as JSX };
|
|
@@ -1542,6 +1808,7 @@ declare module "@stencil/core" {
|
|
|
1542
1808
|
export namespace JSX {
|
|
1543
1809
|
interface IntrinsicElements {
|
|
1544
1810
|
"gx-ide-container": LocalJSX.GxIdeContainer & JSXBase.HTMLAttributes<HTMLGxIdeContainerElement>;
|
|
1811
|
+
"gx-ide-create-kb-from-server": LocalJSX.GxIdeCreateKbFromServer & JSXBase.HTMLAttributes<HTMLGxIdeCreateKbFromServerElement>;
|
|
1545
1812
|
"gx-ide-directory-selector": LocalJSX.GxIdeDirectorySelector & JSXBase.HTMLAttributes<HTMLGxIdeDirectorySelectorElement>;
|
|
1546
1813
|
"gx-ide-entity-selector": LocalJSX.GxIdeEntitySelector & JSXBase.HTMLAttributes<HTMLGxIdeEntitySelectorElement>;
|
|
1547
1814
|
"gx-ide-list-selector": LocalJSX.GxIdeListSelector & JSXBase.HTMLAttributes<HTMLGxIdeListSelectorElement>;
|
|
@@ -1559,6 +1826,7 @@ declare module "@stencil/core" {
|
|
|
1559
1826
|
"gx-ide-template": LocalJSX.GxIdeTemplate & JSXBase.HTMLAttributes<HTMLGxIdeTemplateElement>;
|
|
1560
1827
|
"gx-ide-test": LocalJSX.GxIdeTest & JSXBase.HTMLAttributes<HTMLGxIdeTestElement>;
|
|
1561
1828
|
"gx-ide-top-bar": LocalJSX.GxIdeTopBar & JSXBase.HTMLAttributes<HTMLGxIdeTopBarElement>;
|
|
1829
|
+
"gx-ide-ww-images": LocalJSX.GxIdeWwImages & JSXBase.HTMLAttributes<HTMLGxIdeWwImagesElement>;
|
|
1562
1830
|
}
|
|
1563
1831
|
}
|
|
1564
1832
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genexus/genexus-ide-ui",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.42",
|
|
5
5
|
"description": "GeneXus IDE UI components",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@types/react": "^18.2.8"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@genexus/gemini": "*0.1.
|
|
39
|
+
"@genexus/gemini": "*0.1.461"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@genexus/gemini": "*0.1.
|
|
42
|
+
"@genexus/gemini": "*0.1.461",
|
|
43
43
|
"@stencil-community/eslint-plugin": "^0.5.0",
|
|
44
44
|
"@stencil/core": "^2.17.0",
|
|
45
45
|
"@stencil/sass": "^2.0.1",
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-5a32426a.js');
|
|
6
|
-
|
|
7
|
-
const iconContent = new Map();
|
|
8
|
-
const requests = new Map();
|
|
9
|
-
function getSvgContent(url) {
|
|
10
|
-
// see if we already have a request for this url
|
|
11
|
-
let request = requests.get(url);
|
|
12
|
-
if (!request) {
|
|
13
|
-
// we don't already have a request
|
|
14
|
-
request = fetch(url).then(response => {
|
|
15
|
-
if (response.ok) {
|
|
16
|
-
return response.text().then(svgContent => {
|
|
17
|
-
iconContent.set(url, svgContent);
|
|
18
|
-
return svgContent;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
iconContent.set(url, "");
|
|
22
|
-
});
|
|
23
|
-
// cache for the same requests
|
|
24
|
-
requests.set(url, request);
|
|
25
|
-
}
|
|
26
|
-
return request;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const iconCss$1 = ":host(:not([auto-color])){}:host(:not([auto-color])) svg *{fill:var(--icon-color) !important}:host(:not([auto-color])) path.icons01{fill:var(--icons01-enabled)}:host(:not([auto-color])) path.icons02{fill:var(--icons02-enabled)}:host(:not([auto-color])) path.icons03{fill:var(--icons03-enabled)}:host(:not([auto-color])) path.icons04{fill:var(--icons04-enabled)}:host(:not([auto-color])) path.icons05{fill:var(--icons05-enabled)}:host(:not([auto-color])) path.icons06{fill:var(--icons06-enabled)}:host(:not([auto-color])) path.icons07{fill:var(--icons07-enabled)}:host(:not([auto-color])) path.icons08{fill:var(--icons08-enabled)}:host(:not([auto-color])) path.icons09{fill:var(--icons09-enabled)}:host{display:inline-flex;line-height:0}:host svg{width:var(--icon-size);height:var(--icon-size)}";
|
|
30
|
-
|
|
31
|
-
const ChIcon = class {
|
|
32
|
-
constructor(hostRef) {
|
|
33
|
-
index.registerInstance(this, hostRef);
|
|
34
|
-
/**
|
|
35
|
-
* If enabled, the icon will be loaded lazily when it's visible in the viewport.
|
|
36
|
-
*/
|
|
37
|
-
this.lazy = false;
|
|
38
|
-
/**
|
|
39
|
-
* If enabled, the icon will display its inherent/natural color
|
|
40
|
-
*/
|
|
41
|
-
this.autoColor = false;
|
|
42
|
-
/**
|
|
43
|
-
* The URL of the icon.
|
|
44
|
-
*/
|
|
45
|
-
this.src = "";
|
|
46
|
-
/**
|
|
47
|
-
* The size of the icon. Possible values: regular, small.
|
|
48
|
-
*/
|
|
49
|
-
this.size = "regular";
|
|
50
|
-
this.isVisible = false;
|
|
51
|
-
}
|
|
52
|
-
/** *******************************
|
|
53
|
-
METHODS
|
|
54
|
-
*********************************/
|
|
55
|
-
connectedCallback() {
|
|
56
|
-
// purposely do not return the promise here because loading
|
|
57
|
-
// the svg file should not hold up loading the app
|
|
58
|
-
// only load the svg if it's visible
|
|
59
|
-
this.waitUntilVisible(this.element, "50px", () => {
|
|
60
|
-
this.isVisible = true;
|
|
61
|
-
this.getIcon();
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
disconnectedCallback() {
|
|
65
|
-
if (this.io !== undefined) {
|
|
66
|
-
this.io.disconnect();
|
|
67
|
-
this.io = undefined;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
waitUntilVisible(el, rootMargin, callback) {
|
|
71
|
-
if (this.lazy &&
|
|
72
|
-
typeof window !== "undefined" &&
|
|
73
|
-
window.IntersectionObserver) {
|
|
74
|
-
const io = (this.io = new window.IntersectionObserver((data) => {
|
|
75
|
-
if (data[0].isIntersecting) {
|
|
76
|
-
io.disconnect();
|
|
77
|
-
this.io = undefined;
|
|
78
|
-
callback();
|
|
79
|
-
}
|
|
80
|
-
}, { rootMargin }));
|
|
81
|
-
io.observe(el);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
// browser doesn't support IntersectionObserver
|
|
85
|
-
// so just fallback to always show it
|
|
86
|
-
callback();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
async getIcon() {
|
|
90
|
-
if (this.isVisible) {
|
|
91
|
-
if (this.src) {
|
|
92
|
-
if (iconContent.has(this.src)) {
|
|
93
|
-
this.svgContent = iconContent.get(this.src);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
this.svgContent = await getSvgContent(this.src);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
this.svgContent = "";
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
render() {
|
|
106
|
-
return index.h("div", { innerHTML: this.svgContent });
|
|
107
|
-
}
|
|
108
|
-
static get assetsDirs() { return ["ch-icon-assets"]; }
|
|
109
|
-
get element() { return index.getElement(this); }
|
|
110
|
-
static get watchers() { return {
|
|
111
|
-
"src": ["getIcon"]
|
|
112
|
-
}; }
|
|
113
|
-
};
|
|
114
|
-
ChIcon.style = iconCss$1;
|
|
115
|
-
|
|
116
|
-
const iconCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--ui-animaton-speed:0.2s}.gxg-title-01{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-title-01--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-title-02{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}.gxg-title-02--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em;color:var(--color-on-primary)}.gxg-title-03{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-xs);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}.gxg-title-03--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-xs);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em;color:var(--color-on-primary)}.gxg-title-04{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-title-04--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-title-05{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;line-height:1.556em}.gxg-title-05--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;line-height:1.556em;color:var(--color-on-primary)}.gxg-text{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-text--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-text--gray{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--gray-05)}.gxg-quote{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;font-style:italic}.gxg-quote--negative{color:var(--color-on-primary)}.gxg-link{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block}.gxg-link:hover{color:var(--color-primary-hover)}.gxg-link:active{color:var(--color-primary-active)}.gxg-link-gray{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--gray-04)}.gxg-link-gray:hover{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--gray-04);color:var(--gray-06)}.gxg-alert-error{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-error-dark);display:inline-block}.gxg-alert-warning{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-warning-dark);display:inline-block}.gxg-alert-success{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-success-dark);display:inline-block}.gxg-tab--disabled{color:var(--color-primary-disabled);pointer-events:none}.gxg-tab--disabled[disabled]{color:var(--color-primary-disabled);pointer-events:none}.gxg-label{font-family:var(--font-family-primary) !important;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm) !important;letter-spacing:var(--letter-spacing-xs);color:var(--color-primary-enabled);text-align:center;line-height:1.455em}.gxg-label:hover{color:var(--color-primary-hover)}.gxg-label:focus{color:var(--color-primary-active)}.gxg-label:active{color:var(--color-primary-active)}.gxg-label[disabled]{color:var(--color-primary-disabled)}.gxg-label--negative{color:var(--color-on-primary)}.gxg-label--negative[disabled]{color:var(--color-on-disabled)}.gxg-button-styles{font-family:var(--font-family-primary) !important;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm) !important;letter-spacing:var(--letter-spacing-xs);color:var(--color-primary-enabled);text-align:center;line-height:1.455em}.gxg-scrollbar{}.gxg-scrollbar::-webkit-scrollbar{width:6px;height:6px}.gxg-scrollbar::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gxg-scrollbar::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gxg-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}:host{display:inline-block;line-height:0;height:20px;width:20px;display:inline-flex;align-items:center;justify-content:center}";
|
|
117
|
-
|
|
118
|
-
/*********************************
|
|
119
|
-
CONSTANTS
|
|
120
|
-
*********************************/
|
|
121
|
-
const COLOR_MAPPINGS = {
|
|
122
|
-
alwaysblack: "color-always-black",
|
|
123
|
-
disabled: "color-primary-disabled",
|
|
124
|
-
ondisabled: "color-on-disabled",
|
|
125
|
-
error: "color-error-dark",
|
|
126
|
-
negative: "color-on-primary",
|
|
127
|
-
onbackground: "color-on-background",
|
|
128
|
-
"primary-enabled": "color-primary-enabled",
|
|
129
|
-
"primary-active": "color-primary-active",
|
|
130
|
-
"primary-hover": "color-primary-hover",
|
|
131
|
-
success: "color-success-dark",
|
|
132
|
-
warning: "color-warning-dark",
|
|
133
|
-
};
|
|
134
|
-
const GxgIcon = class {
|
|
135
|
-
constructor(hostRef) {
|
|
136
|
-
index.registerInstance(this, hostRef);
|
|
137
|
-
/**
|
|
138
|
-
* The size of the icon. Possible values: regular, small.
|
|
139
|
-
*/
|
|
140
|
-
this.size = "regular";
|
|
141
|
-
}
|
|
142
|
-
/*********************************
|
|
143
|
-
METHODS
|
|
144
|
-
*********************************/
|
|
145
|
-
getSrcPath() {
|
|
146
|
-
return index.getAssetPath(`./icon-assets/${this.type}.svg`);
|
|
147
|
-
}
|
|
148
|
-
iconSize() {
|
|
149
|
-
if (this.size === "regular") {
|
|
150
|
-
return "16px";
|
|
151
|
-
}
|
|
152
|
-
else if (this.size === "small") {
|
|
153
|
-
return "12px";
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
render() {
|
|
157
|
-
return (index.h(index.Host, null, index.h("ch-icon", { style: {
|
|
158
|
-
"--icon-color": this.mapColorToCssVar(COLOR_MAPPINGS[this.color]),
|
|
159
|
-
"--icon-size": this.iconSize(),
|
|
160
|
-
}, "auto-color": this.color === "auto", src: this.getSrcPath(), part: "ch-icon" })));
|
|
161
|
-
}
|
|
162
|
-
mapColorToCssVar(color) {
|
|
163
|
-
if (color) {
|
|
164
|
-
return `var(--${color})`;
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
//default color
|
|
168
|
-
return `var(--color-on-background)`;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
static get assetsDirs() { return ["icon-assets"]; }
|
|
172
|
-
get element() { return index.getElement(this); }
|
|
173
|
-
};
|
|
174
|
-
GxgIcon.style = iconCss;
|
|
175
|
-
|
|
176
|
-
exports.ch_icon = ChIcon;
|
|
177
|
-
exports.gxg_icon = GxgIcon;
|