@genesislcap/foundation-utils 14.164.0 → 14.164.1

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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +113 -113
  2. package/package.json +10 -10
@@ -151,6 +151,59 @@
151
151
  }
152
152
  ]
153
153
  },
154
+ {
155
+ "kind": "javascript-module",
156
+ "path": "src/decorators/index.ts",
157
+ "declarations": [],
158
+ "exports": [
159
+ {
160
+ "kind": "js",
161
+ "name": "*",
162
+ "declaration": {
163
+ "name": "*",
164
+ "package": "./renderOnChange"
165
+ }
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "kind": "javascript-module",
171
+ "path": "src/decorators/renderOnChange.ts",
172
+ "declarations": [
173
+ {
174
+ "kind": "function",
175
+ "name": "renderOnChange",
176
+ "parameters": [
177
+ {
178
+ "name": "target",
179
+ "type": {
180
+ "text": "FASTElement & { render(): void }"
181
+ },
182
+ "description": "The target to define the property change handler on."
183
+ },
184
+ {
185
+ "name": "name",
186
+ "type": {
187
+ "text": "string"
188
+ },
189
+ "description": "The property name."
190
+ }
191
+ ],
192
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
193
+ "privacy": "public"
194
+ }
195
+ ],
196
+ "exports": [
197
+ {
198
+ "kind": "js",
199
+ "name": "renderOnChange",
200
+ "declaration": {
201
+ "name": "renderOnChange",
202
+ "module": "src/decorators/renderOnChange.ts"
203
+ }
204
+ }
205
+ ]
206
+ },
154
207
  {
155
208
  "kind": "javascript-module",
156
209
  "path": "src/data/inMemoryDatabase.ts",
@@ -349,59 +402,6 @@
349
402
  }
350
403
  ]
351
404
  },
352
- {
353
- "kind": "javascript-module",
354
- "path": "src/decorators/index.ts",
355
- "declarations": [],
356
- "exports": [
357
- {
358
- "kind": "js",
359
- "name": "*",
360
- "declaration": {
361
- "name": "*",
362
- "package": "./renderOnChange"
363
- }
364
- }
365
- ]
366
- },
367
- {
368
- "kind": "javascript-module",
369
- "path": "src/decorators/renderOnChange.ts",
370
- "declarations": [
371
- {
372
- "kind": "function",
373
- "name": "renderOnChange",
374
- "parameters": [
375
- {
376
- "name": "target",
377
- "type": {
378
- "text": "FASTElement & { render(): void }"
379
- },
380
- "description": "The target to define the property change handler on."
381
- },
382
- {
383
- "name": "name",
384
- "type": {
385
- "text": "string"
386
- },
387
- "description": "The property name."
388
- }
389
- ],
390
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
391
- "privacy": "public"
392
- }
393
- ],
394
- "exports": [
395
- {
396
- "kind": "js",
397
- "name": "renderOnChange",
398
- "declaration": {
399
- "name": "renderOnChange",
400
- "module": "src/decorators/renderOnChange.ts"
401
- }
402
- }
403
- ]
404
- },
405
405
  {
406
406
  "kind": "javascript-module",
407
407
  "path": "src/design-system/design-system.ts",
@@ -2056,7 +2056,7 @@
2056
2056
  },
2057
2057
  {
2058
2058
  "kind": "javascript-module",
2059
- "path": "src/directives/when-else/index.ts",
2059
+ "path": "src/directives/sync/index.ts",
2060
2060
  "declarations": [],
2061
2061
  "exports": [
2062
2062
  {
@@ -2064,18 +2064,28 @@
2064
2064
  "name": "*",
2065
2065
  "declaration": {
2066
2066
  "name": "*",
2067
- "package": "./when-else"
2067
+ "package": "./sync"
2068
2068
  }
2069
2069
  }
2070
2070
  ]
2071
2071
  },
2072
2072
  {
2073
2073
  "kind": "javascript-module",
2074
- "path": "src/directives/when-else/when-else.ts",
2074
+ "path": "src/directives/sync/sync.ts",
2075
2075
  "declarations": [
2076
+ {
2077
+ "kind": "variable",
2078
+ "name": "defaultEventMap",
2079
+ "type": {
2080
+ "text": "Map<string, EventName>"
2081
+ },
2082
+ "default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
2083
+ "description": "A map that associates specific HTML element tags with their corresponding default event names.",
2084
+ "privacy": "public"
2085
+ },
2076
2086
  {
2077
2087
  "kind": "function",
2078
- "name": "whenElse",
2088
+ "name": "sync",
2079
2089
  "return": {
2080
2090
  "type": {
2081
2091
  "text": "CaptureType<TSource>"
@@ -2086,42 +2096,56 @@
2086
2096
  "name": "binding",
2087
2097
  "type": {
2088
2098
  "text": "Binding<TSource, TReturn>"
2089
- },
2090
- "description": "The condition to test for rendering."
2099
+ }
2091
2100
  },
2092
2101
  {
2093
- "name": "trueTemplateOrTemplateBinding",
2102
+ "name": "conversionType",
2103
+ "default": "'string'",
2094
2104
  "type": {
2095
- "text": "WhenTemplate<TSource>"
2096
- },
2097
- "description": "The template or a binding that gets the template to render when the condition is true."
2105
+ "text": "ConversionType"
2106
+ }
2098
2107
  },
2099
2108
  {
2100
- "name": "falseTemplateOrTemplateBinding",
2109
+ "name": "eventName",
2110
+ "default": "'default'",
2101
2111
  "type": {
2102
- "text": "WhenTemplate<TSource>"
2103
- },
2104
- "description": "The template or a binding that gets the template to render when the condition is false."
2112
+ "text": "EventName"
2113
+ }
2114
+ },
2115
+ {
2116
+ "name": "keyAttr",
2117
+ "optional": true,
2118
+ "type": {
2119
+ "text": "string"
2120
+ }
2105
2121
  }
2106
2122
  ],
2107
- "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
2123
+ "description": "Creates a synchronization directive that binds a data source to an HTML element,",
2108
2124
  "privacy": "public"
2109
2125
  }
2110
2126
  ],
2111
2127
  "exports": [
2112
2128
  {
2113
2129
  "kind": "js",
2114
- "name": "whenElse",
2130
+ "name": "defaultEventMap",
2115
2131
  "declaration": {
2116
- "name": "whenElse",
2117
- "module": "src/directives/when-else/when-else.ts"
2132
+ "name": "defaultEventMap",
2133
+ "module": "src/directives/sync/sync.ts"
2134
+ }
2135
+ },
2136
+ {
2137
+ "kind": "js",
2138
+ "name": "sync",
2139
+ "declaration": {
2140
+ "name": "sync",
2141
+ "module": "src/directives/sync/sync.ts"
2118
2142
  }
2119
2143
  }
2120
2144
  ]
2121
2145
  },
2122
2146
  {
2123
2147
  "kind": "javascript-module",
2124
- "path": "src/directives/sync/index.ts",
2148
+ "path": "src/directives/when-else/index.ts",
2125
2149
  "declarations": [],
2126
2150
  "exports": [
2127
2151
  {
@@ -2129,28 +2153,18 @@
2129
2153
  "name": "*",
2130
2154
  "declaration": {
2131
2155
  "name": "*",
2132
- "package": "./sync"
2156
+ "package": "./when-else"
2133
2157
  }
2134
2158
  }
2135
2159
  ]
2136
2160
  },
2137
2161
  {
2138
2162
  "kind": "javascript-module",
2139
- "path": "src/directives/sync/sync.ts",
2163
+ "path": "src/directives/when-else/when-else.ts",
2140
2164
  "declarations": [
2141
- {
2142
- "kind": "variable",
2143
- "name": "defaultEventMap",
2144
- "type": {
2145
- "text": "Map<string, EventName>"
2146
- },
2147
- "default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
2148
- "description": "A map that associates specific HTML element tags with their corresponding default event names.",
2149
- "privacy": "public"
2150
- },
2151
2165
  {
2152
2166
  "kind": "function",
2153
- "name": "sync",
2167
+ "name": "whenElse",
2154
2168
  "return": {
2155
2169
  "type": {
2156
2170
  "text": "CaptureType<TSource>"
@@ -2161,49 +2175,35 @@
2161
2175
  "name": "binding",
2162
2176
  "type": {
2163
2177
  "text": "Binding<TSource, TReturn>"
2164
- }
2165
- },
2166
- {
2167
- "name": "conversionType",
2168
- "default": "'string'",
2169
- "type": {
2170
- "text": "ConversionType"
2171
- }
2178
+ },
2179
+ "description": "The condition to test for rendering."
2172
2180
  },
2173
2181
  {
2174
- "name": "eventName",
2175
- "default": "'default'",
2182
+ "name": "trueTemplateOrTemplateBinding",
2176
2183
  "type": {
2177
- "text": "EventName"
2178
- }
2184
+ "text": "WhenTemplate<TSource>"
2185
+ },
2186
+ "description": "The template or a binding that gets the template to render when the condition is true."
2179
2187
  },
2180
2188
  {
2181
- "name": "keyAttr",
2182
- "optional": true,
2189
+ "name": "falseTemplateOrTemplateBinding",
2183
2190
  "type": {
2184
- "text": "string"
2185
- }
2191
+ "text": "WhenTemplate<TSource>"
2192
+ },
2193
+ "description": "The template or a binding that gets the template to render when the condition is false."
2186
2194
  }
2187
2195
  ],
2188
- "description": "Creates a synchronization directive that binds a data source to an HTML element,",
2196
+ "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
2189
2197
  "privacy": "public"
2190
2198
  }
2191
2199
  ],
2192
2200
  "exports": [
2193
2201
  {
2194
2202
  "kind": "js",
2195
- "name": "defaultEventMap",
2196
- "declaration": {
2197
- "name": "defaultEventMap",
2198
- "module": "src/directives/sync/sync.ts"
2199
- }
2200
- },
2201
- {
2202
- "kind": "js",
2203
- "name": "sync",
2203
+ "name": "whenElse",
2204
2204
  "declaration": {
2205
- "name": "sync",
2206
- "module": "src/directives/sync/sync.ts"
2205
+ "name": "whenElse",
2206
+ "module": "src/directives/when-else/when-else.ts"
2207
2207
  }
2208
2208
  }
2209
2209
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.164.0",
4
+ "version": "14.164.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,17 +19,17 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.164.0",
23
- "@genesislcap/genx": "14.164.0",
24
- "@genesislcap/rollup-builder": "14.164.0",
25
- "@genesislcap/ts-builder": "14.164.0",
26
- "@genesislcap/uvu-playwright-builder": "14.164.0",
27
- "@genesislcap/vite-builder": "14.164.0",
28
- "@genesislcap/webpack-builder": "14.164.0",
22
+ "@genesislcap/foundation-testing": "14.164.1",
23
+ "@genesislcap/genx": "14.164.1",
24
+ "@genesislcap/rollup-builder": "14.164.1",
25
+ "@genesislcap/ts-builder": "14.164.1",
26
+ "@genesislcap/uvu-playwright-builder": "14.164.1",
27
+ "@genesislcap/vite-builder": "14.164.1",
28
+ "@genesislcap/webpack-builder": "14.164.1",
29
29
  "rimraf": "^3.0.2"
30
30
  },
31
31
  "dependencies": {
32
- "@genesislcap/foundation-logger": "14.164.0",
32
+ "@genesislcap/foundation-logger": "14.164.1",
33
33
  "@microsoft/fast-components": "^2.30.6",
34
34
  "@microsoft/fast-element": "^1.12.0",
35
35
  "@microsoft/fast-foundation": "^2.49.4",
@@ -47,5 +47,5 @@
47
47
  "access": "public"
48
48
  },
49
49
  "customElements": "dist/custom-elements.json",
50
- "gitHead": "01048301d213303cb5ac16796191bb9903c890d5"
50
+ "gitHead": "d175a3b7a55dd99fd709201d0212253a1c93c9f4"
51
51
  }