@limetech/lime-elements 37.2.6 → 37.2.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/CHANGELOG.md +8 -0
- package/dist/cjs/{config-cb774b61.js → config-e7e1a299.js} +3 -3
- package/dist/cjs/config-e7e1a299.js.map +1 -0
- package/dist/cjs/limel-config.cjs.entry.js +3 -3
- package/dist/cjs/limel-config.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-icon.cjs.entry.js +1 -1
- package/dist/cjs/limel-input-field_3.cjs.entry.js +1 -1
- package/dist/collection/components/config/config.js +22 -5
- package/dist/collection/components/config/config.js.map +1 -1
- package/dist/collection/global/config.js +2 -2
- package/dist/collection/global/config.js.map +1 -1
- package/dist/esm/{config-19f3ce37.js → config-656a588f.js} +3 -3
- package/dist/esm/config-656a588f.js.map +1 -0
- package/dist/esm/limel-config.entry.js +3 -3
- package/dist/esm/limel-config.entry.js.map +1 -1
- package/dist/esm/limel-icon.entry.js +1 -1
- package/dist/esm/limel-input-field_3.entry.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-fa2fbaa8.entry.js → p-04996e4f.entry.js} +2 -2
- package/dist/lime-elements/p-04996e4f.entry.js.map +1 -0
- package/dist/lime-elements/{p-78193666.js → p-2c35fb9d.js} +1 -1
- package/dist/lime-elements/p-2c35fb9d.js.map +1 -0
- package/dist/lime-elements/{p-58b3bb60.entry.js → p-6a83064c.entry.js} +2 -2
- package/dist/lime-elements/{p-af1eb67f.entry.js → p-711c8538.entry.js} +2 -2
- package/dist/types/components/config/config.d.ts +16 -7
- package/dist/types/components.d.ts +42 -12
- package/dist/types/global/config.d.ts +22 -2
- package/package.json +5 -5
- package/dist/cjs/config-cb774b61.js.map +0 -1
- package/dist/esm/config-19f3ce37.js.map +0 -1
- package/dist/lime-elements/p-78193666.js.map +0 -1
- package/dist/lime-elements/p-fa2fbaa8.entry.js.map +0 -1
- /package/dist/lime-elements/{p-58b3bb60.entry.js.map → p-6a83064c.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-af1eb67f.entry.js.map → p-711c8538.entry.js.map} +0 -0
|
@@ -1,15 +1,24 @@
|
|
|
1
|
+
import { Config } from '../../global/config';
|
|
1
2
|
/**
|
|
3
|
+
* Component used to set global configuration for Lime Elements.
|
|
4
|
+
*
|
|
5
|
+
* :::warning
|
|
6
|
+
* **Building something for Lime CRM?** Then you should _NOT_ use this component.
|
|
7
|
+
* Lime CRM already uses this component to set the global configuration for
|
|
8
|
+
* Lime Elements. No matter what problem you are facing at the moment, using
|
|
9
|
+
* this component will not help, and might cause other problems.
|
|
10
|
+
* :::
|
|
11
|
+
*
|
|
12
|
+
* Building your own software, which is using Lime Elements?
|
|
13
|
+
* Then you _might_ need to use this component.
|
|
14
|
+
*
|
|
2
15
|
* @private
|
|
3
16
|
*/
|
|
4
|
-
export declare class
|
|
17
|
+
export declare class ConfigComponent {
|
|
5
18
|
/**
|
|
6
|
-
* Global configuration for Lime Elements
|
|
19
|
+
* Global configuration for Lime Elements.
|
|
7
20
|
*/
|
|
8
|
-
config:
|
|
9
|
-
iconPath?: string;
|
|
10
|
-
defaultLocale?: string;
|
|
11
|
-
featureSwitches: any;
|
|
12
|
-
};
|
|
21
|
+
config: Config;
|
|
13
22
|
componentDidLoad(): void;
|
|
14
23
|
componentDidUpdate(): void;
|
|
15
24
|
private setGlobalConfig;
|
|
@@ -17,6 +17,7 @@ import { Chip } from "./components/chip-set/chip.types";
|
|
|
17
17
|
import { CircularProgressSize } from "./components/circular-progress/circular-progress.types";
|
|
18
18
|
import { ColorScheme, Language } from "./components/code-editor/code-editor.types";
|
|
19
19
|
import { Action } from "./components/collapsible-section/action";
|
|
20
|
+
import { Config } from "./global/config";
|
|
20
21
|
import { ClosingActions, DialogHeading } from "./components/dialog/dialog.types";
|
|
21
22
|
import { DockItem } from "./components/dock/dock.types";
|
|
22
23
|
import { FileInfo } from "./components/file/file.types";
|
|
@@ -49,6 +50,7 @@ export { Chip } from "./components/chip-set/chip.types";
|
|
|
49
50
|
export { CircularProgressSize } from "./components/circular-progress/circular-progress.types";
|
|
50
51
|
export { ColorScheme, Language } from "./components/code-editor/code-editor.types";
|
|
51
52
|
export { Action } from "./components/collapsible-section/action";
|
|
53
|
+
export { Config } from "./global/config";
|
|
52
54
|
export { ClosingActions, DialogHeading } from "./components/dialog/dialog.types";
|
|
53
55
|
export { DockItem } from "./components/dock/dock.types";
|
|
54
56
|
export { FileInfo } from "./components/file/file.types";
|
|
@@ -711,17 +713,22 @@ export namespace Components {
|
|
|
711
713
|
"value": string;
|
|
712
714
|
}
|
|
713
715
|
/**
|
|
716
|
+
* Component used to set global configuration for Lime Elements.
|
|
717
|
+
* :::warning
|
|
718
|
+
* **Building something for Lime CRM?** Then you should _NOT_ use this component.
|
|
719
|
+
* Lime CRM already uses this component to set the global configuration for
|
|
720
|
+
* Lime Elements. No matter what problem you are facing at the moment, using
|
|
721
|
+
* this component will not help, and might cause other problems.
|
|
722
|
+
* :::
|
|
723
|
+
* Building your own software, which is using Lime Elements?
|
|
724
|
+
* Then you _might_ need to use this component.
|
|
714
725
|
* @private
|
|
715
726
|
*/
|
|
716
727
|
interface LimelConfig {
|
|
717
728
|
/**
|
|
718
|
-
* Global configuration for Lime Elements
|
|
729
|
+
* Global configuration for Lime Elements.
|
|
719
730
|
*/
|
|
720
|
-
"config":
|
|
721
|
-
iconPath?: string;
|
|
722
|
-
defaultLocale?: string;
|
|
723
|
-
featureSwitches: any;
|
|
724
|
-
};
|
|
731
|
+
"config": Config;
|
|
725
732
|
}
|
|
726
733
|
/**
|
|
727
734
|
* @exampleComponent limel-example-date-picker-datetime
|
|
@@ -2869,6 +2876,15 @@ declare global {
|
|
|
2869
2876
|
new (): HTMLLimelColorPickerPaletteElement;
|
|
2870
2877
|
};
|
|
2871
2878
|
/**
|
|
2879
|
+
* Component used to set global configuration for Lime Elements.
|
|
2880
|
+
* :::warning
|
|
2881
|
+
* **Building something for Lime CRM?** Then you should _NOT_ use this component.
|
|
2882
|
+
* Lime CRM already uses this component to set the global configuration for
|
|
2883
|
+
* Lime Elements. No matter what problem you are facing at the moment, using
|
|
2884
|
+
* this component will not help, and might cause other problems.
|
|
2885
|
+
* :::
|
|
2886
|
+
* Building your own software, which is using Lime Elements?
|
|
2887
|
+
* Then you _might_ need to use this component.
|
|
2872
2888
|
* @private
|
|
2873
2889
|
*/
|
|
2874
2890
|
interface HTMLLimelConfigElement extends Components.LimelConfig, HTMLStencilElement {
|
|
@@ -4482,17 +4498,22 @@ declare namespace LocalJSX {
|
|
|
4482
4498
|
"value"?: string;
|
|
4483
4499
|
}
|
|
4484
4500
|
/**
|
|
4501
|
+
* Component used to set global configuration for Lime Elements.
|
|
4502
|
+
* :::warning
|
|
4503
|
+
* **Building something for Lime CRM?** Then you should _NOT_ use this component.
|
|
4504
|
+
* Lime CRM already uses this component to set the global configuration for
|
|
4505
|
+
* Lime Elements. No matter what problem you are facing at the moment, using
|
|
4506
|
+
* this component will not help, and might cause other problems.
|
|
4507
|
+
* :::
|
|
4508
|
+
* Building your own software, which is using Lime Elements?
|
|
4509
|
+
* Then you _might_ need to use this component.
|
|
4485
4510
|
* @private
|
|
4486
4511
|
*/
|
|
4487
4512
|
interface LimelConfig {
|
|
4488
4513
|
/**
|
|
4489
|
-
* Global configuration for Lime Elements
|
|
4514
|
+
* Global configuration for Lime Elements.
|
|
4490
4515
|
*/
|
|
4491
|
-
"config"?:
|
|
4492
|
-
iconPath?: string;
|
|
4493
|
-
defaultLocale?: string;
|
|
4494
|
-
featureSwitches: any;
|
|
4495
|
-
};
|
|
4516
|
+
"config"?: Config;
|
|
4496
4517
|
}
|
|
4497
4518
|
/**
|
|
4498
4519
|
* @exampleComponent limel-example-date-picker-datetime
|
|
@@ -6644,6 +6665,15 @@ declare module "@stencil/core" {
|
|
|
6644
6665
|
*/
|
|
6645
6666
|
"limel-color-picker-palette": LocalJSX.LimelColorPickerPalette & JSXBase.HTMLAttributes<HTMLLimelColorPickerPaletteElement>;
|
|
6646
6667
|
/**
|
|
6668
|
+
* Component used to set global configuration for Lime Elements.
|
|
6669
|
+
* :::warning
|
|
6670
|
+
* **Building something for Lime CRM?** Then you should _NOT_ use this component.
|
|
6671
|
+
* Lime CRM already uses this component to set the global configuration for
|
|
6672
|
+
* Lime Elements. No matter what problem you are facing at the moment, using
|
|
6673
|
+
* this component will not help, and might cause other problems.
|
|
6674
|
+
* :::
|
|
6675
|
+
* Building your own software, which is using Lime Elements?
|
|
6676
|
+
* Then you _might_ need to use this component.
|
|
6647
6677
|
* @private
|
|
6648
6678
|
*/
|
|
6649
6679
|
"limel-config": LocalJSX.LimelConfig & JSXBase.HTMLAttributes<HTMLLimelConfigElement>;
|
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for limel-config.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type Config = {
|
|
7
|
+
/**
|
|
8
|
+
* The path to where the icon library used by limel-icon is located.
|
|
9
|
+
*/
|
|
10
|
+
iconPath?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The default locale to use for components that support localization.
|
|
13
|
+
*/
|
|
14
|
+
defaultLocale?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
featureSwitches?: Record<string, boolean>;
|
|
19
|
+
};
|
|
20
|
+
declare class ConfigClass implements Config {
|
|
2
21
|
iconPath: string;
|
|
3
22
|
defaultLocale: string;
|
|
4
23
|
featureSwitches: any;
|
|
5
24
|
}
|
|
6
|
-
export declare const globalConfig:
|
|
25
|
+
export declare const globalConfig: ConfigClass;
|
|
26
|
+
export {};
|
|
7
27
|
//# sourceMappingURL=config.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "37.2.
|
|
3
|
+
"version": "37.2.7",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"generate": "stencil generate"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@commitlint/config-conventional": "^18.6.
|
|
46
|
+
"@commitlint/config-conventional": "^18.6.1",
|
|
47
47
|
"@microsoft/api-extractor": "^7.40.1",
|
|
48
48
|
"@popperjs/core": "^2.11.8",
|
|
49
49
|
"@rjsf/core": "^2.4.2",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"@types/react": "^18.2.55",
|
|
58
58
|
"@types/react-dom": "^18.2.19",
|
|
59
59
|
"@types/tabulator-tables": "^4.9.4",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
61
|
-
"@typescript-eslint/parser": "^
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
61
|
+
"@typescript-eslint/parser": "^7.0.1",
|
|
62
62
|
"awesome-debounce-promise": "^2.1.0",
|
|
63
63
|
"codemirror": "^5.65.9",
|
|
64
64
|
"cross-env": "^7.0.3",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
70
70
|
"eslint-plugin-prettier": "^5.1.3",
|
|
71
71
|
"eslint-plugin-react": "^7.33.2",
|
|
72
|
-
"eslint-plugin-sonarjs": "^0.
|
|
72
|
+
"eslint-plugin-sonarjs": "^0.24.0",
|
|
73
73
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
74
74
|
"flatpickr": "^4.6.13",
|
|
75
75
|
"html-escaper": "^3.0.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"config-cb774b61.js","mappings":";;MAAa,MAAM;EAAnB;IACW,aAAQ,GAAG,EAAE,CAAC;IACd,kBAAa,GAAG,SAAS,CAAC,QAAQ,CAAC;IACnC,oBAAe,GAAQ,kBAAkB,CAAC,YAAY,CAAC,CAAC;GAClE;CAAA;AAED,SAAS,kBAAkB,CAAC,OAAgB;EACxC,MAAM,QAAQ,GAAG,EAAE,CAAC;EACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;IACrC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3B,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEnC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;MACpC,SAAS;KACZ;IAED,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,KAAK,MAAM,CAAC;GACpC;EAED,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;MACf,YAAY,GAAG,CAAC;EACzB,OAAO,MAAM,CAAC;AAClB,CAAC;;;;","names":[],"sources":["./src/global/config.ts"],"sourcesContent":["export class Config {\n public iconPath = '';\n public defaultLocale = navigator.language;\n public featureSwitches: any = getFeatureSwitches(localStorage);\n}\n\nfunction getFeatureSwitches(storage: Storage) {\n const features = {};\n for (let i = 0; i < storage.length; i++) {\n const key = storage.key(i);\n const value = storage.getItem(key);\n\n if (!['true', 'false'].includes(value)) {\n continue;\n }\n\n features[key] = value === 'true';\n }\n\n return features;\n}\n\nconst config = new Config();\nexport const globalConfig = (() => {\n return config;\n})();\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"config-19f3ce37.js","mappings":"MAAa,MAAM;EAAnB;IACW,aAAQ,GAAG,EAAE,CAAC;IACd,kBAAa,GAAG,SAAS,CAAC,QAAQ,CAAC;IACnC,oBAAe,GAAQ,kBAAkB,CAAC,YAAY,CAAC,CAAC;GAClE;CAAA;AAED,SAAS,kBAAkB,CAAC,OAAgB;EACxC,MAAM,QAAQ,GAAG,EAAE,CAAC;EACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;IACrC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3B,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEnC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;MACpC,SAAS;KACZ;IAED,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,KAAK,MAAM,CAAC;GACpC;EAED,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;MACf,YAAY,GAAG,CAAC;EACzB,OAAO,MAAM,CAAC;AAClB,CAAC;;;;","names":[],"sources":["./src/global/config.ts"],"sourcesContent":["export class Config {\n public iconPath = '';\n public defaultLocale = navigator.language;\n public featureSwitches: any = getFeatureSwitches(localStorage);\n}\n\nfunction getFeatureSwitches(storage: Storage) {\n const features = {};\n for (let i = 0; i < storage.length; i++) {\n const key = storage.key(i);\n const value = storage.getItem(key);\n\n if (!['true', 'false'].includes(value)) {\n continue;\n }\n\n features[key] = value === 'true';\n }\n\n return features;\n}\n\nconst config = new Config();\nexport const globalConfig = (() => {\n return config;\n})();\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Config","constructor","this","iconPath","defaultLocale","navigator","language","featureSwitches","getFeatureSwitches","localStorage","storage","features","i","length","key","value","getItem","includes","config","globalConfig"],"sources":["./src/global/config.ts"],"sourcesContent":["export class Config {\n public iconPath = '';\n public defaultLocale = navigator.language;\n public featureSwitches: any = getFeatureSwitches(localStorage);\n}\n\nfunction getFeatureSwitches(storage: Storage) {\n const features = {};\n for (let i = 0; i < storage.length; i++) {\n const key = storage.key(i);\n const value = storage.getItem(key);\n\n if (!['true', 'false'].includes(value)) {\n continue;\n }\n\n features[key] = value === 'true';\n }\n\n return features;\n}\n\nconst config = new Config();\nexport const globalConfig = (() => {\n return config;\n})();\n"],"mappings":"MAAaA,EAAbC,cACWC,KAAAC,SAAW,GACXD,KAAAE,cAAgBC,UAAUC,SAC1BJ,KAAAK,gBAAuBC,EAAmBC,a,EAGrD,SAASD,EAAmBE,GACxB,MAAMC,EAAW,GACjB,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAQG,OAAQD,IAAK,CACrC,MAAME,EAAMJ,EAAQI,IAAIF,GACxB,MAAMG,EAAQL,EAAQM,QAAQF,GAE9B,IAAK,CAAC,OAAQ,SAASG,SAASF,GAAQ,CACpC,Q,CAGJJ,EAASG,GAAOC,IAAU,M,CAG9B,OAAOJ,CACX,CAEA,MAAMO,EAAS,IAAIlB,E,MACNmB,EAAe,KACjBD,EADiB,U"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Config","componentDidLoad","this","setGlobalConfig","componentDidUpdate","config","Object","keys","forEach","key","globalConfig","render"],"sources":["./src/components/config/config.tsx"],"sourcesContent":["import { Component, Prop } from '@stencil/core';\nimport { globalConfig } from '../../global/config';\n\n/**\n * @private\n */\n@Component({\n tag: 'limel-config',\n shadow: true,\n})\nexport class Config {\n /**\n * Global configuration for Lime Elements\n */\n @Prop()\n public config: {\n iconPath?: string;\n defaultLocale?: string;\n featureSwitches: any;\n };\n\n public componentDidLoad() {\n this.setGlobalConfig();\n }\n\n public componentDidUpdate() {\n this.setGlobalConfig();\n }\n\n /*\n * Copy any config settings to the global config object\n */\n private setGlobalConfig() {\n if (!this.config) {\n return;\n }\n\n Object.keys(this.config).forEach((key) => {\n globalConfig[key] = this.config[key];\n });\n }\n\n public render() {\n return null;\n }\n}\n"],"mappings":"8EAUaA,EAAM,M,+CAWRC,mBACHC,KAAKC,iB,CAGFC,qBACHF,KAAKC,iB,CAMDA,kBACJ,IAAKD,KAAKG,OAAQ,CACd,M,CAGJC,OAAOC,KAAKL,KAAKG,QAAQG,SAASC,IAC9BC,EAAaD,GAAOP,KAAKG,OAAOI,EAAI,G,CAIrCE,SACH,OAAO,I"}
|
|
File without changes
|
|
File without changes
|