@gandalan/weblibs 1.5.22 → 1.5.24
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/api/neherApp3Types.d.ts +85 -0
- package/api/neherApp3Types.js +107 -0
- package/index.d.ts +2857 -256
- package/index.js +13 -97
- package/package.json +1 -1
- package/scripts/generate-root-dto-typedefs.mjs +585 -53
package/index.js
CHANGED
|
@@ -266,103 +266,19 @@ export * from "./ui/index.js";
|
|
|
266
266
|
* @typedef {import("./api/fluentApi").FluentApi} FluentApi
|
|
267
267
|
* @typedef {import("./api/idasFluentApi").IDASFluentApi} IDASFluentApi
|
|
268
268
|
* @typedef {import("./api/fluentAuthManager").FluentAuthManager} FluentAuthManager
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
* @typedef {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
* @typedef {
|
|
277
|
-
* @
|
|
278
|
-
* @
|
|
279
|
-
* @
|
|
280
|
-
* @
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* @typedef {Object} Variante
|
|
285
|
-
* @property {string} [VarianteGuid]
|
|
286
|
-
* @property {string} [Name]
|
|
287
|
-
* @property {string} [Kuerzel]
|
|
288
|
-
*/
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* @typedef {Object} Werteliste
|
|
292
|
-
* @property {string} [WerteListeGuid]
|
|
293
|
-
* @property {string} [Name]
|
|
294
|
-
*/
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* @typedef {Object} NeherApp3ArtikelstammCache
|
|
298
|
-
* @property {() => Promise<ArtikelstammEintrag[]>} getArtikelStamm
|
|
299
|
-
* @property {() => Promise<Object[]>} getWarenGruppen
|
|
300
|
-
* @property {(guid: string) => Promise<ArtikelstammEintrag | undefined>} getArtikelByGuid
|
|
301
|
-
* @property {(nummer: string) => Promise<ArtikelstammEintrag | undefined>} getArtikelByKatalognummer
|
|
302
|
-
*/
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* @typedef {Object} NeherApp3ErfassungCache
|
|
306
|
-
* @property {() => Promise<Variante[]>} getVarianten
|
|
307
|
-
* @property {(variantenNameOderKuerzel: string) => Promise<Variante | undefined>} getVariante
|
|
308
|
-
* @property {() => Promise<Werteliste[]>} getWertelisten
|
|
309
|
-
* @property {(name: string) => Promise<Werteliste | undefined>} getWerteliste
|
|
310
|
-
* @property {() => Promise<Object[]>} getScripts
|
|
311
|
-
* @property {(v: Variante) => void} createUIMachine
|
|
312
|
-
*/
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* @typedef {Object} NeherApp3Props
|
|
316
|
-
* @property {FluentApi} api
|
|
317
|
-
* @property {FluentAuthManager} [authManager]
|
|
318
|
-
* @property {IDASFluentApi} idas
|
|
319
|
-
* @property {string} [mainCssPath]
|
|
320
|
-
*/
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* @typedef {Object} NeherApp3MenuItem
|
|
324
|
-
* @property {string} [id] - Unique identifier for the menu item (auto-generated if not provided)
|
|
325
|
-
* @property {boolean} [selected] - Indicates if the menu item is currently selected (managed by the menu system)
|
|
326
|
-
* @property {string} [icon] - URL to an icon
|
|
327
|
-
* @property {string|null} [url] - Relative URL to use for routes
|
|
328
|
-
* @property {string} text - Display text
|
|
329
|
-
* @property {string|null} [parent] - Parent menu item (optional). If not set, the item will be added to the top level menu.
|
|
330
|
-
* @property {boolean} [hidden] - If true, the menu item will not be displayed
|
|
331
|
-
*/
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* @typedef {NeherApp3Props & { neherapp3: NeherApp3 }} NeherApp3SetupContext
|
|
335
|
-
*/
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* @typedef {Object} NeherApp3Module
|
|
339
|
-
* @property {string} moduleName
|
|
340
|
-
* @property {(context: NeherApp3SetupContext) => (void | Promise<void>)} [setup]
|
|
341
|
-
* @property {(node: HTMLElement, props: NeherApp3SetupContext) => (void | function)} [mount] Must return an optional unmount function
|
|
342
|
-
* @property {string} [embedUrl]
|
|
343
|
-
* @property {string[]} [extraCSS]
|
|
344
|
-
* @property {boolean} [useShadowDom] - If true, the app will be embedded in a shadow DOM. This is required for CSS isolation.
|
|
345
|
-
*/
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* @typedef {Object} NeherApp3ApiCollection
|
|
349
|
-
* @property {IDASFluentApi} [idas]
|
|
350
|
-
* @property {FluentApi} [hostingEnvironment]
|
|
351
|
-
*/
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* @typedef {Object} NeherApp3CacheCollection
|
|
355
|
-
* @property {NeherApp3ArtikelstammCache} artikelstamm
|
|
356
|
-
* @property {NeherApp3ErfassungCache} erfassung
|
|
357
|
-
*/
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* @typedef {Object} NeherApp3
|
|
361
|
-
* @property {(menuItem: NeherApp3MenuItem) => void} addMenuItem
|
|
362
|
-
* @property {(appModule: NeherApp3Module | string) => Promise<void>} addApp
|
|
363
|
-
* @property {(message: string, type?: NeherApp3NotifyType, cb?: function) => void} notify - Shows a notification. Type defaults to 0 (info). Callback is optional.
|
|
364
|
-
* @property {NeherApp3ApiCollection} api
|
|
365
|
-
* @property {NeherApp3CacheCollection} cache
|
|
269
|
+
* @typedef {import("./api/neherApp3Types.js").NeherApp3NotifyType} NeherApp3NotifyType
|
|
270
|
+
* @typedef {import("./api/neherApp3Types.js").ArtikelstammEintrag} ArtikelstammEintrag
|
|
271
|
+
* @typedef {import("./api/neherApp3Types.js").Variante} Variante
|
|
272
|
+
* @typedef {import("./api/neherApp3Types.js").Werteliste} Werteliste
|
|
273
|
+
* @typedef {import("./api/neherApp3Types.js").NeherApp3ArtikelstammCache} NeherApp3ArtikelstammCache
|
|
274
|
+
* @typedef {import("./api/neherApp3Types.js").NeherApp3ErfassungCache} NeherApp3ErfassungCache
|
|
275
|
+
* @typedef {import("./api/neherApp3Types.js").NeherApp3Props} NeherApp3Props
|
|
276
|
+
* @typedef {import("./api/neherApp3Types.js").NeherApp3MenuItem} NeherApp3MenuItem
|
|
277
|
+
* @typedef {import("./api/neherApp3Types.js").NeherApp3SetupContext} NeherApp3SetupContext
|
|
278
|
+
* @typedef {import("./api/neherApp3Types.js").NeherApp3Module} NeherApp3Module
|
|
279
|
+
* @typedef {import("./api/neherApp3Types.js").NeherApp3ApiCollection} NeherApp3ApiCollection
|
|
280
|
+
* @typedef {import("./api/neherApp3Types.js").NeherApp3CacheCollection} NeherApp3CacheCollection
|
|
281
|
+
* @typedef {import("./api/neherApp3Types.js").NeherApp3} NeherApp3
|
|
366
282
|
*/
|
|
367
283
|
|
|
368
284
|
/**
|