@conterra/ct-mapapps-typings 4.13.1 → 4.13.2-next.20220422041131

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.
@@ -14,6 +14,8 @@ export interface ConfigProperties {
14
14
  "ct-dgrid-touchscroll": boolean;
15
15
  /** True if content security policy settings prevent eval() etc. */
16
16
  "csp-restrictions": boolean;
17
+ /** True if WebAssembly is enabled. */
18
+ "webassembly": boolean;
17
19
  "touch": boolean;
18
20
  "mobile": boolean;
19
21
  "ie": number;
@@ -31,7 +33,7 @@ export declare type ConfigValue = undefined | null | boolean | number | string |
31
33
  declare type ValueProvider<T> = T | (() => T);
32
34
  /**
33
35
  * Returns the configuration value associated with the given key.
34
- * Throws an exception if the key is not known.
36
+ * Returns undefined if the key is not known.
35
37
  */
36
38
  export declare function config<K extends ConfigPropertyKey>(key: K): DeepReadonly<ConfigProperties[K]> | undefined;
37
39
  export default config;
@@ -1,3 +1,4 @@
1
+ export function isSupported(): boolean;
1
2
  export default class ProjectionEngineTransformerStrategy {
2
3
  init(opts: any): Promise<void>;
3
4
  transform: ((geometry: any, sourceSRS: any, targetSRS: any) => Promise<__esri.Geometry | __esri.Geometry[]>) | ((geometry: any, sourceSRS: any, targetSRS: any) => __esri.Geometry | __esri.Geometry[]) | undefined;
@@ -5,4 +6,3 @@ export default class ProjectionEngineTransformerStrategy {
5
6
  _transformAsync(geometry: any, sourceSRS: any, targetSRS: any): Promise<__esri.Geometry | __esri.Geometry[]>;
6
7
  #private;
7
8
  }
8
- export function isSupported(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conterra/ct-mapapps-typings",
3
- "version": "4.13.1",
3
+ "version": "4.13.2-next.20220422041131",
4
4
  "description": "TypeDefinitions for ct-mapapps",
5
5
  "author": "conterra",
6
6
  "license": "Apache-2.0"
@@ -1,2 +1,84 @@
1
- declare var _default: any;
2
- export default _default;
1
+ /**
2
+ * A service interface for processing configuration dictionary before the
3
+ * update.
4
+ *
5
+ * <p>
6
+ * A bundle registers a <code>ConfigurationPlugin</code> object in order to
7
+ * process configuration updates before they reach the Managed Service or
8
+ * Managed Service Factory. The Configuration Admin service will detect
9
+ * registrations of Configuration Plugin services and must call these services
10
+ * every time before it calls the <code>ManagedService</code> or
11
+ * <code>ManagedServiceFactory</code>
12
+ * <code>updated</code> method. The
13
+ * Configuration Plugin service thus has the opportunity to view and modify the
14
+ * properties before they are passed to the Managed Service or Managed Service
15
+ * Factory.
16
+ *
17
+ * <p>
18
+ * Configuration Plugin (plugin) services have full read/write access to all
19
+ * configuration information. Therefore, bundles using this facility should be
20
+ * trusted. Access to this facility should be limited with
21
+ * <code>ServicePermission[ConfigurationPlugin,REGISTER]</code>.
22
+ * Implementations of a Configuration Plugin service should assure that they
23
+ * only act on appropriate configurations.
24
+ *
25
+ * <p>
26
+ * The <code>Integer</code> <code>service.cmRanking</code> registration
27
+ * property may be specified. Not specifying this registration property, or
28
+ * setting it to something other than an <code>Integer</code>, is the same as
29
+ * setting it to the <code>Integer</code> zero. The
30
+ * <code>service.cmRanking</code> property determines the order in which
31
+ * plugins are invoked. Lower ranked plugins are called before higher ranked
32
+ * ones. In the event of more than one plugin having the same value of
33
+ * <code>service.cmRanking</code>, then the Configuration Admin service
34
+ * arbitrarily chooses the order in which they are called.
35
+ *
36
+ * <p>
37
+ * By convention, plugins with <code>service.cmRanking&lt; 0</code> or
38
+ * <code>service.cmRanking &gt; 1000</code> should not make modifications to
39
+ * the properties.
40
+ *
41
+ * <p>
42
+ * The Configuration Admin service has the right to hide properties from
43
+ * plugins, or to ignore some or all the changes that they make. This might be
44
+ * done for security reasons. Any such behavior is entirely implementation
45
+ * defined.
46
+ *
47
+ * <p>
48
+ * A plugin may optionally specify a <code>cm.target</code> registration
49
+ * property whose value is the PID of the Managed Service or Managed Service
50
+ * Factory whose configuration updates the plugin is intended to intercept. The
51
+ * plugin will then only be called with configuration updates that are targeted
52
+ * at the Managed Service or Managed Service Factory with the specified PID.
53
+ * Omitting the <code>cm.target</code> registration property means that the
54
+ * plugin is called for all configuration updates.
55
+ */
56
+ export default class ConfigurationPlugin {
57
+ /**
58
+ * View and possibly modify the a set of configuration properties before
59
+ * they are sent to the Managed Service or the Managed Service Factory. The
60
+ * Configuration Plugin services are called in increasing order of their
61
+ * <code>service.cmRanking</code> property. If this property is undefined
62
+ * or is a non- <code>Integer</code> type, 0 is used.
63
+ *
64
+ * <p>
65
+ * This method should not modify the properties unless the
66
+ * <code>service.cmRanking</code> of this plugin is in the range
67
+ * <code>0 &lt;= service.cmRanking &lt;= 1000</code>.
68
+ * <p>
69
+ * If this method throws any <code>Exception</code>, the Configuration
70
+ * Admin service must catch it and should log it.
71
+ *
72
+ * @param targetInfo : {
73
+ managedService : ..,
74
+ managedServiceProperties: ..,
75
+ pid: ..,
76
+ factoryPid : ..
77
+ }
78
+ * @param properties The configuration properties. This argument must not
79
+ * contain the "service.bundleLocation" property. The value of this
80
+ * property may be obtained from the
81
+ * <code>Configuration.getBundleLocation</code> method.
82
+ */
83
+ modifyConfiguration(targetInfo: any, properties: any): void;
84
+ }
@@ -1,2 +1,23 @@
1
- declare var _default: any;
2
- export default _default;
1
+ declare const ConfigurationStore_base: any;
2
+ /**
3
+ * Service for read/write configuration data.
4
+ * The store must currently be synchronous.
5
+ */
6
+ export default class ConfigurationStore extends ConfigurationStore_base {
7
+ [x: string]: any;
8
+ _configs: any;
9
+ _factoryLookup: {};
10
+ searchConfigs(filter: any): any;
11
+ getFactoryConfigs(factoryPid: any): any[];
12
+ getConfig(pid: any): any;
13
+ /**
14
+ * Updates a configuration instance.
15
+ */
16
+ setConfig(pid: any, config: any): void;
17
+ /**
18
+ * Removes/deletes a configuration instance.
19
+ */
20
+ removeConfig(pid: any): void;
21
+ onConfigChanged(): void;
22
+ }
23
+ export {};
@@ -1,2 +1,36 @@
1
- declare var _default: any;
2
- export default _default;
1
+ /**
2
+ * Provides a view from the config store to more human readable JSON structure.
3
+ *
4
+ * Service for read/write configuration data.
5
+ * The store must be synchronous.
6
+ */
7
+ export default class JsonConfigurationAdapter {
8
+ activate(cpCtx: any): void;
9
+ _bundleContext: any;
10
+ jsonConfig: any;
11
+ appLocation: any;
12
+ deactivate(): void;
13
+ createInstance(): JsonConfigurationStore;
14
+ store: JsonConfigurationStore | null | undefined;
15
+ destroyInstance(): void;
16
+ _convertRootConfigToConfigStoreItems(jsonConfig: any, store: any): void;
17
+ _convertBundleConfigToStoreItems(bundleName: any, bundleConfigObj: any, store: any): void;
18
+ _convertComponentConfigToStoreItems(bundleName: any, componentName: any, componentProps: any, store: any): void;
19
+ _createStoreItem(isFactory: any, bundleName: any, componentName: any, props: any, facItemCounter: any): {
20
+ pid: any;
21
+ bundleIdentifier: any;
22
+ properties: any;
23
+ } | undefined;
24
+ }
25
+ declare class JsonConfigurationStore extends ConfigurationStore {
26
+ constructor(opts: any);
27
+ appLocation: any;
28
+ jsonConfig: any;
29
+ _bundleContext: any;
30
+ getAppConfig(): any;
31
+ save(): any;
32
+ _buildBundlesSectionFromStoreEntries(): {};
33
+ _persistEnabledState(jsonConfig: any): void;
34
+ }
35
+ import ConfigurationStore from "./ConfigurationStore";
36
+ export {};
@@ -1,2 +1,113 @@
1
- declare var _default: any;
2
- export default _default;
1
+ /**
2
+ * A service that can receive configuration data from a Configuration Admin
3
+ * service.
4
+ *
5
+ * <p>
6
+ * A Managed Service is a service that needs configuration data. Such an object
7
+ * should be registered with the Framework registry with the
8
+ * <code>service.pid</code> property set to some unique identifier called a
9
+ * PID.
10
+ *
11
+ * <p>
12
+ * If the Configuration Admin service has a <code>Configuration</code> object
13
+ * corresponding to this PID, it will callback the <code>updated()</code>
14
+ * method of the <code>ManagedService</code> object, passing the properties of
15
+ * that <code>Configuration</code> object.
16
+ *
17
+ * <p>
18
+ * If it has no such <code>Configuration</code> object, then it calls back
19
+ * with a <code>null</code> properties argument. Registering a Managed Service
20
+ * will always result in a callback to the <code>updated()</code> method
21
+ * provided the Configuration Admin service is, or becomes active. This callback
22
+ * must always be done asynchronously.
23
+ *
24
+ * <p>
25
+ * Else, every time that either of the <code>updated()</code> methods is
26
+ * called on that <code>Configuration</code> object, the
27
+ * <code>ManagedService.updated()</code> method with the new properties is
28
+ * called. If the <code>delete()</code> method is called on that
29
+ * <code>Configuration</code> object, <code>ManagedService.updated()</code>
30
+ * is called with a <code>null</code> for the properties parameter. All these
31
+ * callbacks must be done asynchronously.
32
+ *
33
+ * <p>
34
+ * The following example shows the code of a serial port that will create a port
35
+ * depending on configuration information.
36
+ *
37
+ * <pre>
38
+ *
39
+ * class SerialPort implements ManagedService {
40
+ *
41
+ * ServiceRegistration registration;
42
+ * Hashtable configuration;
43
+ * CommPortIdentifier id;
44
+ *
45
+ * synchronized void open(CommPortIdentifier id,
46
+ * BundleContext context) {
47
+ * this.id = id;
48
+ * registration = context.registerService(
49
+ * ManagedService.class.getName(),
50
+ * this,
51
+ * getDefaults()
52
+ * );
53
+ * }
54
+ *
55
+ * Hashtable getDefaults() {
56
+ * Hashtable defaults = new Hashtable();
57
+ * defaults.put( &quot;port&quot;, id.getName() );
58
+ * defaults.put( &quot;product&quot;, &quot;unknown&quot; );
59
+ * defaults.put( &quot;baud&quot;, &quot;9600&quot; );
60
+ * defaults.put( Constants.SERVICE_PID,
61
+ * &quot;com.acme.serialport.&quot; + id.getName() );
62
+ * return defaults;
63
+ * }
64
+ *
65
+ * public synchronized void updated(
66
+ * Dictionary configuration ) {
67
+ * if ( configuration == null)
68
+ * registration.setProperties( getDefaults() );
69
+ * else {
70
+ * setSpeed( configuration.get(&quot;baud&quot;) );
71
+ * registration.setProperties( configuration );
72
+ * }
73
+ * }
74
+ * ...
75
+ * }
76
+ *
77
+ * </pre>
78
+ *
79
+ * <p>
80
+ * As a convention, it is recommended that when a Managed Service is updated, it
81
+ * should copy all the properties it does not recognize into the service
82
+ * registration properties. This will allow the Configuration Admin service to
83
+ * set properties on services which can then be used by other applications.
84
+ */
85
+ export default class ManagedService {
86
+ /**
87
+ * Update the configuration for a Managed Service.
88
+ *
89
+ * <p>
90
+ * When the implementation of <code>updated(Dictionary)</code> detects any
91
+ * kind of error in the configuration properties, it should create a new
92
+ * <code>ConfigurationException</code> which describes the problem. This
93
+ * can allow a management system to provide useful information to a human
94
+ * administrator.
95
+ *
96
+ * <p>
97
+ * If this method throws any other <code>Exception</code>, the
98
+ * Configuration Admin service must catch it and should log it.
99
+ * <p>
100
+ * The Configuration Admin service must call this method asynchronously
101
+ * which initiated the callback. This implies that implementors of Managed
102
+ * Service can be assured that the callback will not take place during
103
+ * registration when they execute the registration in a synchronized method.
104
+ *
105
+ * @param properties A copy of the Configuration properties, or
106
+ * <code>null</code>. This argument must not contain the
107
+ * "service.bundleLocation" property. The value of this property may
108
+ * be obtained from the <code>Configuration.getBundleLocation</code>
109
+ * method.
110
+ * @throws ConfigurationException when the update fails
111
+ */
112
+ updated(properties: any): void;
113
+ }
@@ -1,2 +1,10 @@
1
- declare var _default: any;
2
- export default _default;
1
+ declare const AppRootSizeController_base: any;
2
+ export default class AppRootSizeController extends AppRootSizeController_base {
3
+ [x: string]: any;
4
+ activate(): void;
5
+ resize(): void;
6
+ root: any;
7
+ _orientSize: {} | undefined;
8
+ deactivate(): void;
9
+ }
10
+ export {};
@@ -1,2 +1,14 @@
1
- declare var _default: any;
2
- export default _default;
1
+ /**
2
+ * LayoutTemplateToolRuleProcessor is a rule to match against the currently enabled sub-layout or layout template.
3
+ */
4
+ export default class LayoutTemplateToolRuleProcessor {
5
+ ruleProperties: string[];
6
+ ruleContextState: null;
7
+ activate(): void;
8
+ /**
9
+ * Method is called by the ToolRule Manager.
10
+ */
11
+ isRuleFulfilled(tool: any, context: any, toolRuleDef: any): any[];
12
+ _matches(ruleNames: any, ruleValue: any, results: any): void;
13
+ _layoutStateChange(): void;
14
+ }