@haiilo/catalyst 2.4.8 → 2.5.0

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 (83) hide show
  1. package/dist/catalyst/catalyst.esm.js +1 -1
  2. package/dist/catalyst/catalyst.esm.js.map +1 -1
  3. package/dist/catalyst/index.cdn.js +1 -0
  4. package/dist/catalyst/index.esm.js +1 -1
  5. package/dist/catalyst/p-2fdb52c9.entry.js +2 -0
  6. package/dist/catalyst/p-2fdb52c9.entry.js.map +1 -0
  7. package/dist/catalyst/p-ccfebe33.js +2 -0
  8. package/dist/catalyst/p-ccfebe33.js.map +1 -0
  9. package/dist/catalyst/scss/_variables.scss +11 -11
  10. package/dist/cjs/{cat-alert_23.cjs.entry.js → cat-alert_24.cjs.entry.js} +65 -10
  11. package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -0
  12. package/dist/cjs/{cat-icon-registry-32ed379a.js → cat-icon-registry-671af264.js} +60 -32
  13. package/dist/cjs/cat-icon-registry-671af264.js.map +1 -0
  14. package/dist/cjs/catalyst.cjs.js +1 -1
  15. package/dist/cjs/index.cjs.js +1 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/collection/collection-manifest.json +1 -0
  18. package/dist/collection/components/cat-form-group/cat-form-group.css +3 -0
  19. package/dist/collection/components/cat-form-group/cat-form-group.js +66 -0
  20. package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -0
  21. package/dist/collection/components/cat-i18n/cat-i18n-registry.js +28 -7
  22. package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -1
  23. package/dist/collection/components/cat-icon/cat-icon-registry.js +31 -24
  24. package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -1
  25. package/dist/collection/components/cat-icon/cat-icon.js +2 -3
  26. package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
  27. package/dist/collection/components/cat-input/cat-input.js +27 -1
  28. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  29. package/dist/collection/components/cat-label/cat-label.js +27 -1
  30. package/dist/collection/components/cat-label/cat-label.js.map +1 -1
  31. package/dist/collection/components/cat-select/cat-select.js +47 -4
  32. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  33. package/dist/collection/components/cat-select-demo/cat-select-demo.js +1 -1
  34. package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
  35. package/dist/collection/components/cat-textarea/cat-textarea.js +31 -1
  36. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  37. package/dist/collection/index.cdn.js +1 -0
  38. package/dist/collection/scss/_variables.scss +11 -11
  39. package/dist/components/cat-form-group.d.ts +11 -0
  40. package/dist/components/cat-form-group.js +64 -0
  41. package/dist/components/cat-form-group.js.map +1 -0
  42. package/dist/components/cat-i18n-registry.js +28 -7
  43. package/dist/components/cat-i18n-registry.js.map +1 -1
  44. package/dist/components/cat-icon2.js +32 -26
  45. package/dist/components/cat-icon2.js.map +1 -1
  46. package/dist/components/cat-input.js +6 -1
  47. package/dist/components/cat-input.js.map +1 -1
  48. package/dist/components/cat-label.js +6 -1
  49. package/dist/components/cat-label.js.map +1 -1
  50. package/dist/components/cat-select-demo.js +1 -1
  51. package/dist/components/cat-select-demo.js.map +1 -1
  52. package/dist/components/cat-select2.js +8 -2
  53. package/dist/components/cat-select2.js.map +1 -1
  54. package/dist/components/cat-textarea.js +7 -1
  55. package/dist/components/cat-textarea.js.map +1 -1
  56. package/dist/components/index.d.ts +1 -0
  57. package/dist/components/index.js +1 -0
  58. package/dist/components/index.js.map +1 -1
  59. package/dist/esm/{cat-alert_23.entry.js → cat-alert_24.entry.js} +65 -11
  60. package/dist/esm/cat-alert_24.entry.js.map +1 -0
  61. package/dist/esm/{cat-icon-registry-7c4007ff.js → cat-icon-registry-d6b80490.js} +60 -32
  62. package/dist/esm/cat-icon-registry-d6b80490.js.map +1 -0
  63. package/dist/esm/catalyst.js +1 -1
  64. package/dist/esm/index.js +2 -2
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/types/components/cat-form-group/cat-form-group.d.ts +16 -0
  67. package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +3 -2
  68. package/dist/types/components/cat-icon/cat-icon-registry.d.ts +3 -5
  69. package/dist/types/components/cat-icon/cat-icon.d.ts +0 -1
  70. package/dist/types/components/cat-input/cat-input.d.ts +4 -0
  71. package/dist/types/components/cat-label/cat-label.d.ts +4 -0
  72. package/dist/types/components/cat-select/cat-select.d.ts +13 -5
  73. package/dist/types/components/cat-textarea/cat-textarea.d.ts +4 -0
  74. package/dist/types/components.d.ts +63 -2
  75. package/package.json +2 -2
  76. package/dist/catalyst/p-5362e648.js +0 -2
  77. package/dist/catalyst/p-5362e648.js.map +0 -1
  78. package/dist/catalyst/p-c2bf7e26.entry.js +0 -2
  79. package/dist/catalyst/p-c2bf7e26.entry.js.map +0 -1
  80. package/dist/cjs/cat-alert_23.cjs.entry.js.map +0 -1
  81. package/dist/cjs/cat-icon-registry-32ed379a.js.map +0 -1
  82. package/dist/esm/cat-alert_23.entry.js.map +0 -1
  83. package/dist/esm/cat-icon-registry-7c4007ff.js.map +0 -1
@@ -312,8 +312,28 @@ var loglevel = createCommonjsModule(function (module) {
312
312
 
313
313
  class CatI18nRegistry {
314
314
  constructor() {
315
- this.i18n = new Map();
316
315
  // hide constructor
316
+ this.id = (Math.random() + 1).toString(36).substring(2);
317
+ this.i18n = new Map();
318
+ // In rare cases, the registry can be initialized twice. This can happen in
319
+ // a micro frontend architecture where the registry is initialized in the
320
+ // host application and in the micro frontend. To prevent the registry in
321
+ // one application from overwriting the registry in the other, we listen for
322
+ // events that are dispatched when messages are added or removed in other
323
+ // applications and add or remove messages if the event was not dispatched
324
+ // by this registry.
325
+ window.addEventListener('cat-i18n-set', event => {
326
+ const { detail } = event || {};
327
+ if (detail && detail.id !== this.id) {
328
+ this.set(detail.i18n, true);
329
+ }
330
+ });
331
+ window.addEventListener('cat-i18n-clear', event => {
332
+ const { detail } = event || {};
333
+ if (detail && detail.id !== this.id) {
334
+ this.clear(true);
335
+ }
336
+ });
317
337
  }
318
338
  static getInstance() {
319
339
  if (!CatI18nRegistry.instance) {
@@ -321,15 +341,16 @@ class CatI18nRegistry {
321
341
  }
322
342
  return CatI18nRegistry.instance;
323
343
  }
324
- set(i18n) {
325
- Object.entries(i18n).forEach(([key, message]) => this.i18n.set(key, message));
326
- loglevel.info(`[CatI18nRegistry] Registered messages`, i18n);
327
- window.dispatchEvent(this.buildEvent('cat-i18n-set', { messages: i18n }));
344
+ set(i18n, silent = false) {
345
+ const i18nEntries = Object.entries(i18n);
346
+ i18nEntries.forEach(([key, message]) => this.i18n.set(key, message));
347
+ loglevel.info(`[CatI18nRegistry] Registered ${i18nEntries.length !== 1 ? 'messages' : 'message'}`);
348
+ !silent && window.dispatchEvent(this.buildEvent('cat-i18n-set', { i18n, id: this.id }));
328
349
  }
329
- clear() {
350
+ clear(silent = false) {
330
351
  this.i18n.clear();
331
352
  loglevel.info(`[CatI18nRegistry] Cleared messages`);
332
- window.dispatchEvent(this.buildEvent('cat-i18n-clear'));
353
+ !silent && window.dispatchEvent(this.buildEvent('cat-i18n-clear'));
333
354
  }
334
355
  t(key, params) {
335
356
  const message = this.i18n.get(key);
@@ -351,16 +372,33 @@ const catI18nRegistry = CatI18nRegistry.getInstance();
351
372
 
352
373
  class CatIconRegistry {
353
374
  constructor() {
354
- this.icons = new Map();
355
- this.id = (Math.random() + 1).toString(36).substring(2);
356
- console.log('CatIconRegistry created', this.id);
357
375
  // hide constructor
376
+ this.id = (Math.random() + 1).toString(36).substring(2);
377
+ this.icons = new Map();
378
+ // In rare cases, the registry can be initialized twice. This can happen in
379
+ // a micro frontend architecture where the registry is initialized in the
380
+ // host application and in the micro frontend. To prevent the registry in
381
+ // one application from overwriting the registry in the other, we listen for
382
+ // events that are dispatched when icons are added or removed in other
383
+ // applications and add or remove icons if the event was not dispatched by
384
+ // this registry.
385
+ window.addEventListener('cat-icons-added', event => {
386
+ const { detail } = event || {};
387
+ if (detail && detail.id !== this.id) {
388
+ this.addIcons(detail.icons, detail.setName, true);
389
+ }
390
+ });
391
+ window.addEventListener('cat-icons-removed', event => {
392
+ const { detail } = event || {};
393
+ if (detail && detail.id !== this.id) {
394
+ this.removeIcons(detail.names, detail.setName, true);
395
+ }
396
+ });
358
397
  }
359
398
  static getInstance() {
360
399
  if (!CatIconRegistry.instance) {
361
400
  CatIconRegistry.instance = new CatIconRegistry();
362
401
  }
363
- console.log('getInstance', CatIconRegistry.instance);
364
402
  return CatIconRegistry.instance;
365
403
  }
366
404
  getIcon(name, setName) {
@@ -370,29 +408,19 @@ class CatIconRegistry {
370
408
  }
371
409
  return icon;
372
410
  }
373
- addIcon(name, data, setName) {
374
- this.icons.set(this.buildName(name, setName), data);
375
- loglevel.info(`[CatIconRegistry] Added icon${setName ? ` to set ${setName}` : ''}: ${name}`);
376
- window.dispatchEvent(this.buildEvent('cat-icon-added', { name, setName }));
377
- return this;
378
- }
379
- addIcons(icons, setName) {
380
- console.log('addIcons', setName, icons);
381
- Object.entries(icons).forEach(([name, data]) => this.icons.set(this.buildName(name, setName), data));
382
- loglevel.info(`[CatIconRegistry] Added icons${setName ? ` to set ${setName}` : ''}: ${Object.keys(icons).concat(', ')}`);
383
- window.dispatchEvent(this.buildEvent('cat-icons-added', { names: Object.keys(icons), setName }));
384
- return this;
385
- }
386
- removeIcon(name, setName) {
387
- this.icons.delete(this.buildName(name, setName));
388
- loglevel.info(`[CatIconRegistry] Removed icon${setName ? ` from set ${setName}` : ''}: ${name}`);
389
- window.dispatchEvent(this.buildEvent('cat-icon-removed', { name, setName }));
411
+ addIcons(icons, setName, silent = false) {
412
+ const iconEntries = Object.entries(icons);
413
+ const iconSize = iconEntries.length;
414
+ iconEntries.forEach(([name, data]) => this.icons.set(this.buildName(name, setName), data));
415
+ loglevel.info(`[CatIconRegistry] Added ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` to set ${setName}` : ''}`);
416
+ !silent && window.dispatchEvent(this.buildEvent('cat-icons-added', { id: this.id, icons, setName }));
390
417
  return this;
391
418
  }
392
- removeIcons(names, setName) {
419
+ removeIcons(names, setName, silent = false) {
420
+ const iconSize = names.length;
393
421
  names.forEach(name => this.icons.delete(this.buildName(name, setName)));
394
- loglevel.info(`[CatIconRegistry] Removed icons${setName ? ` from set ${setName}` : ''}: ${names.concat(', ')}`);
395
- window.dispatchEvent(this.buildEvent('cat-icons-removed', { names, setName }));
422
+ loglevel.info(`[CatIconRegistry] Removed ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` from set ${setName}` : ''}`);
423
+ !silent && window.dispatchEvent(this.buildEvent('cat-icons-removed', { id: this.id, names, setName }));
396
424
  return this;
397
425
  }
398
426
  buildName(name, setName) {
@@ -410,4 +438,4 @@ const catIconRegistry = CatIconRegistry.getInstance();
410
438
 
411
439
  export { CatI18nRegistry as C, commonjsGlobal as a, catI18nRegistry as b, createCommonjsModule as c, catIconRegistry as d, CatIconRegistry as e, loglevel as l };
412
440
 
413
- //# sourceMappingURL=cat-icon-registry-7c4007ff.js.map
441
+ //# sourceMappingURL=cat-icon-registry-d6b80490.js.map
@@ -0,0 +1 @@
1
+ {"file":"cat-icon-registry-d6b80490.js","mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,UAAU,IAAI,EAAE,UAAU,EAAE;AAE7B,IAEW,IAAkC,MAAM,CAAC,OAAO,EAAE;AAC7D,QAAQ,cAAc,GAAG,UAAU,EAAE,CAAC;AACtC,KAAK,MAAM;AACX,QAAQ,IAAI,CAAC,GAAG,GAAG,UAAU,EAAE,CAAC;AAChC,KAAK;AACL,CAAC,CAACA,cAAI,EAAE,YAAY;AAEpB;AACA;AACA,IAAI,IAAI,IAAI,GAAG,WAAW,EAAE,CAAC;AAC7B,IAAI,IAAI,aAAa,GAAG,WAAW,CAAC;AACpC,IAAI,IAAI,IAAI,GAAG,CAAC,OAAO,MAAM,KAAK,aAAa,MAAM,OA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,MAAM,GAAG,KAAK;IAC3D,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC;IAC9B,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACxEA,QAAG,CAAC,IAAI,CAAC,6BAA6B,QAAQ,KAAK,CAAC,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,aAAa,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IACnH,CAAC,MAAM,IAAI,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,mBAAmB,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IACvG,OAAO,IAAI,CAAC;GACb;EAEO,SAAS,CAAC,IAAY,EAAE,OAAgB;IAC9C,OAAO,OAAO,GAAG,GAAG,OAAO,OAAO,GAAG,IAAI,CAAC;GAC3C;EAEO,UAAU,CAAI,IAAY,EAAE,MAAU;IAC5C,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE;MAC3B,OAAO,EAAE,IAAI;MACb,QAAQ,EAAE,IAAI;MACd,MAAM;KACP,CAAC,CAAC;GACJ;CACF;MAEY,eAAe,GAAG,eAAe,CAAC,WAAW;;;;","names":["this","log"],"sources":["../node_modules/loglevel/lib/loglevel.js","./src/components/cat-i18n/cat-i18n-registry.ts","./src/components/cat-icon/cat-icon-registry.ts"],"sourcesContent":["/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n /Trident\\/|MSIE /.test(window.navigator.userAgent)\n );\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Trace() doesn't print the message in IE, so for that case we need to wrap it\n function traceForIE() {\n if (console.log) {\n if (console.log.apply) {\n console.log.apply(console, arguments);\n } else {\n // In old IE, native console methods themselves don't have apply().\n Function.prototype.apply.apply(console.log, [console, arguments]);\n }\n }\n if (console.trace) console.trace();\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (methodName === 'trace' && isIE) {\n return traceForIE;\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n defaultLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n\n var storageKey = \"loglevel\";\n if (typeof name === \"string\") {\n storageKey += \":\" + name;\n } else if (typeof name === \"symbol\") {\n storageKey = undefined;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType || !storageKey) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n function clearPersistedLevel() {\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage.removeItem(storageKey);\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=; expires=Thu, 01 Jan 1970 00:00:00 UTC\";\n } catch (ignore) {}\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return \"No console available for logging\";\n }\n } else {\n throw \"log.setLevel() called with invalid level: \" + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n defaultLevel = level;\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.resetLevel = function () {\n self.setLevel(defaultLevel, false);\n clearPersistedLevel();\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if ((typeof name !== \"symbol\" && typeof name !== \"string\") || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n // ES6 default export, for compatibility\n defaultLogger['default'] = defaultLogger;\n\n return defaultLogger;\n}));\n","import log from 'loglevel';\n\nexport class CatI18nRegistry {\n private static instance: CatI18nRegistry;\n\n private readonly id = (Math.random() + 1).toString(36).substring(2);\n private readonly i18n: Map<string, string> = new Map();\n\n private constructor() {\n // hide constructor\n\n // In rare cases, the registry can be initialized twice. This can happen in\n // a micro frontend architecture where the registry is initialized in the\n // host application and in the micro frontend. To prevent the registry in\n // one application from overwriting the registry in the other, we listen for\n // events that are dispatched when messages are added or removed in other\n // applications and add or remove messages if the event was not dispatched\n // by this registry.\n window.addEventListener('cat-i18n-set', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.set(detail.i18n, true);\n }\n });\n window.addEventListener('cat-i18n-clear', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.clear(true);\n }\n });\n }\n\n static getInstance(): CatI18nRegistry {\n if (!CatI18nRegistry.instance) {\n CatI18nRegistry.instance = new CatI18nRegistry();\n }\n return CatI18nRegistry.instance;\n }\n\n set(i18n: { [key: string]: string }, silent = false): void {\n const i18nEntries = Object.entries(i18n);\n i18nEntries.forEach(([key, message]) => this.i18n.set(key, message));\n log.info(`[CatI18nRegistry] Registered ${i18nEntries.length !== 1 ? 'messages' : 'message'}`);\n !silent && window.dispatchEvent(this.buildEvent('cat-i18n-set', { i18n, id: this.id }));\n }\n\n clear(silent = false): void {\n this.i18n.clear();\n log.info(`[CatI18nRegistry] Cleared messages`);\n !silent && window.dispatchEvent(this.buildEvent('cat-i18n-clear'));\n }\n\n t(key: string, params?: { [key: string]: string | number }): string {\n const message = this.i18n.get(key);\n if (message === undefined) {\n log.error(`[CatI18nRegistry] Unknown message key: ${key}`);\n return key;\n }\n return message.replace(/{{\\s*([-a-zA-Z._]+)\\s*}}/g, (_match, key) => `${params?.[key] ?? ''}`);\n }\n\n private buildEvent<T>(name: string, detail?: T) {\n return new CustomEvent(name, {\n bubbles: true,\n composed: true,\n detail\n });\n }\n}\n\nexport const catI18nRegistry = CatI18nRegistry.getInstance();\n","import log from 'loglevel';\n\nexport class CatIconRegistry {\n private static instance: CatIconRegistry;\n\n private readonly id = (Math.random() + 1).toString(36).substring(2);\n private readonly icons: Map<string, string> = new Map();\n\n private constructor() {\n // hide constructor\n\n // In rare cases, the registry can be initialized twice. This can happen in\n // a micro frontend architecture where the registry is initialized in the\n // host application and in the micro frontend. To prevent the registry in\n // one application from overwriting the registry in the other, we listen for\n // events that are dispatched when icons are added or removed in other\n // applications and add or remove icons if the event was not dispatched by\n // this registry.\n window.addEventListener('cat-icons-added', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.addIcons(detail.icons, detail.setName, true);\n }\n });\n window.addEventListener('cat-icons-removed', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.removeIcons(detail.names, detail.setName, true);\n }\n });\n }\n\n static getInstance(): CatIconRegistry {\n if (!CatIconRegistry.instance) {\n CatIconRegistry.instance = new CatIconRegistry();\n }\n return CatIconRegistry.instance;\n }\n\n getIcon(name: string, setName?: string): string | undefined {\n const icon = this.icons.get(this.buildName(name, setName));\n if (!icon) {\n log.error(`[CatIconRegistry] Unknown icon${setName ? ` in set ${setName}` : ''}: ${name}`);\n }\n return icon;\n }\n\n addIcons(icons: { [name: string]: string }, setName?: string, silent = false): CatIconRegistry {\n const iconEntries = Object.entries(icons);\n const iconSize = iconEntries.length;\n iconEntries.forEach(([name, data]) => this.icons.set(this.buildName(name, setName), data));\n log.info(`[CatIconRegistry] Added ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` to set ${setName}` : ''}`);\n !silent && window.dispatchEvent(this.buildEvent('cat-icons-added', { id: this.id, icons, setName }));\n return this;\n }\n\n removeIcons(names: string[], setName?: string, silent = false): CatIconRegistry {\n const iconSize = names.length;\n names.forEach(name => this.icons.delete(this.buildName(name, setName)));\n log.info(`[CatIconRegistry] Removed ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` from set ${setName}` : ''}`);\n !silent && window.dispatchEvent(this.buildEvent('cat-icons-removed', { id: this.id, names, setName }));\n return this;\n }\n\n private buildName(name: string, setName?: string) {\n return setName ? `${setName}:name` : name;\n }\n\n private buildEvent<T>(name: string, detail?: T) {\n return new CustomEvent(name, {\n bubbles: true,\n composed: true,\n detail\n });\n }\n}\n\nexport const catIconRegistry = CatIconRegistry.getInstance();\n"],"version":3}
@@ -13,7 +13,7 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["cat-alert_23",[[1,"cat-select-demo"],[1,"cat-input",{"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-card"],[1,"cat-label",{"for":[1],"required":[4]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"identifier":[1],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-modal",[[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}]]]], options);
16
+ return bootstrapLazy([["cat-alert_24",[[1,"cat-select-demo"],[1,"cat-input",{"requiredMarker":[1,"required-marker"],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-card"],[1,"cat-form-group",{"requiredMarker":[1,"required-marker"]}],[1,"cat-label",{"requiredMarker":[1,"required-marker"],"for":[1],"required":[4]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"requiredMarker":[1,"required-marker"],"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"requiredMarker":[1,"required-marker"],"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"noItems":[1,"no-items"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"identifier":[1],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-modal",[[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}]]]], options);
17
17
  });
18
18
 
19
19
  //# sourceMappingURL=catalyst.js.map
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { c as createCommonjsModule, a as commonjsGlobal, b as catI18nRegistry } from './cat-icon-registry-7c4007ff.js';
2
- export { C as CatI18nRegistry, e as CatIconRegistry, b as catI18nRegistry, d as catIconRegistry } from './cat-icon-registry-7c4007ff.js';
1
+ import { c as createCommonjsModule, a as commonjsGlobal, b as catI18nRegistry } from './cat-icon-registry-d6b80490.js';
2
+ export { C as CatI18nRegistry, e as CatIconRegistry, b as catI18nRegistry, d as catIconRegistry } from './cat-icon-registry-d6b80490.js';
3
3
 
4
4
  var toastify = createCommonjsModule(function (module) {
5
5
  /*!
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["cat-alert_23",[[1,"cat-select-demo"],[1,"cat-input",{"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-card"],[1,"cat-label",{"for":[1],"required":[4]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"identifier":[1],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-modal",[[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}]]]], options);
13
+ return bootstrapLazy([["cat-alert_24",[[1,"cat-select-demo"],[1,"cat-input",{"requiredMarker":[1,"required-marker"],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-card"],[1,"cat-form-group",{"requiredMarker":[1,"required-marker"]}],[1,"cat-label",{"requiredMarker":[1,"required-marker"],"for":[1],"required":[4]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"requiredMarker":[1,"required-marker"],"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"requiredMarker":[1,"required-marker"],"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"noItems":[1,"no-items"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"identifier":[1],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-modal",[[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}]]]], options);
14
14
  });
15
15
  };
16
16
 
@@ -0,0 +1,16 @@
1
+ export declare class CatFormGroup {
2
+ private formElements;
3
+ hostElement: HTMLElement;
4
+ /**
5
+ * Whether the labels need a marker to shown if the forms fields are required or optional.<br /><br />
6
+ * By default, it is set to auto, it will display the mark depending on the number of required and optional fields: <br />
7
+ * - If there are more required, the optional will be marked.<br />
8
+ * - If there are less required, it will mark the required.<br /><br />
9
+ * If a form field had "!", the requiredMarked of the field would not change.
10
+ */
11
+ requiredMarker: 'none' | 'required' | 'optional' | 'auto';
12
+ onRequiredMarker(newRequiredMarker: 'none' | 'required' | 'optional' | 'auto'): void;
13
+ render(): any;
14
+ private onSlotChange;
15
+ private calculate;
16
+ }
@@ -1,12 +1,13 @@
1
1
  export declare class CatI18nRegistry {
2
2
  private static instance;
3
+ private readonly id;
3
4
  private readonly i18n;
4
5
  private constructor();
5
6
  static getInstance(): CatI18nRegistry;
6
7
  set(i18n: {
7
8
  [key: string]: string;
8
- }): void;
9
- clear(): void;
9
+ }, silent?: boolean): void;
10
+ clear(silent?: boolean): void;
10
11
  t(key: string, params?: {
11
12
  [key: string]: string | number;
12
13
  }): string;
@@ -1,16 +1,14 @@
1
1
  export declare class CatIconRegistry {
2
2
  private static instance;
3
+ private readonly id;
3
4
  private readonly icons;
4
- readonly id: string;
5
5
  private constructor();
6
6
  static getInstance(): CatIconRegistry;
7
7
  getIcon(name: string, setName?: string): string | undefined;
8
- addIcon(name: string, data: string, setName?: string): CatIconRegistry;
9
8
  addIcons(icons: {
10
9
  [name: string]: string;
11
- }, setName?: string): CatIconRegistry;
12
- removeIcon(name: string, setName?: string): CatIconRegistry;
13
- removeIcons(names: string[], setName?: string): CatIconRegistry;
10
+ }, setName?: string, silent?: boolean): CatIconRegistry;
11
+ removeIcons(names: string[], setName?: string, silent?: boolean): CatIconRegistry;
14
12
  private buildName;
15
13
  private buildEvent;
16
14
  }
@@ -5,7 +5,6 @@
5
5
  * @part icon - The span element wrapping the SVG icon.
6
6
  */
7
7
  export declare class CatIcon {
8
- private readonly iconRegistry;
9
8
  /**
10
9
  * The name of the icon.
11
10
  */
@@ -17,6 +17,10 @@ export declare class CatInput {
17
17
  private input;
18
18
  hostElement: HTMLElement;
19
19
  hasSlottedLabel: boolean;
20
+ /**
21
+ * Whether the label need a marker to shown if the input is required or optional.
22
+ */
23
+ requiredMarker: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
20
24
  /**
21
25
  * Hint for form autofill feature.
22
26
  */
@@ -3,6 +3,10 @@
3
3
  */
4
4
  export declare class CatLabel {
5
5
  private static readonly SHADOW_TARGETS;
6
+ /**
7
+ * Whether the label need a marker to shown if the input is required or optional.
8
+ */
9
+ requiredMarker: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
6
10
  /**
7
11
  * The unique identifier for a referenced input.
8
12
  */
@@ -79,6 +79,10 @@ export declare class CatSelect {
79
79
  connector?: CatSelectConnector;
80
80
  state: CatSelectState;
81
81
  hasSlottedLabel: boolean;
82
+ /**
83
+ * Whether the label need a marker to shown if the select is required or optional.
84
+ */
85
+ requiredMarker: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
82
86
  /**
83
87
  * Enable multiple selection.
84
88
  */
@@ -92,11 +96,11 @@ export declare class CatSelect {
92
96
  */
93
97
  placement: Placement;
94
98
  /**
95
- * The value of the select.
96
- *
97
- * The value of the select depends on whether it is allowed to choose a single item or several items.
98
- * When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items.
99
- *
99
+ * The value of the select. <br />
100
+ * <br />
101
+ * The value of the select depends on whether it is allowed to choose a single item or several items. <br />
102
+ * When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. <br />
103
+ * <br />
100
104
  * In case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item,
101
105
  * in the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created
102
106
  */
@@ -145,6 +149,10 @@ export declare class CatSelect {
145
149
  * Optional hint text to be displayed on the new item to be added.
146
150
  */
147
151
  tagHint?: string;
152
+ /**
153
+ * The text to display in the dropdown if no results are found.
154
+ */
155
+ noItems?: string;
148
156
  onConnectorChange(connector: CatSelectConnector): void;
149
157
  onValueChange(): void;
150
158
  onStateChange(newState: CatSelectState, oldState: CatSelectState): void;
@@ -14,6 +14,10 @@ export declare class CatTextarea {
14
14
  private textarea;
15
15
  hostElement: HTMLElement;
16
16
  hasSlottedLabel: boolean;
17
+ /**
18
+ * Whether the label need a marker to shown if the textarea is required or optional.
19
+ */
20
+ requiredMarker: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
17
21
  /**
18
22
  * Whether the textarea is disabled.
19
23
  */
@@ -251,6 +251,12 @@ export namespace Components {
251
251
  */
252
252
  "placement": Placement;
253
253
  }
254
+ interface CatFormGroup {
255
+ /**
256
+ * Whether the labels need a marker to shown if the forms fields are required or optional.<br /><br /> By default, it is set to auto, it will display the mark depending on the number of required and optional fields: <br /> - If there are more required, the optional will be marked.<br /> - If there are less required, it will mark the required.<br /><br /> If a form field had "!", the requiredMarked of the field would not change.
257
+ */
258
+ "requiredMarker": 'none' | 'required' | 'optional' | 'auto';
259
+ }
254
260
  interface CatIcon {
255
261
  /**
256
262
  * Adds accessible label for the icon that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
@@ -351,6 +357,10 @@ export namespace Components {
351
357
  * A value is required or must be check for the form to be submittable.
352
358
  */
353
359
  "required": boolean;
360
+ /**
361
+ * Whether the label need a marker to shown if the input is required or optional.
362
+ */
363
+ "requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
354
364
  /**
355
365
  * Use round input edges.
356
366
  */
@@ -381,6 +391,10 @@ export namespace Components {
381
391
  * A value is required or must be check for the form to be submittable.
382
392
  */
383
393
  "required": boolean;
394
+ /**
395
+ * Whether the label need a marker to shown if the input is required or optional.
396
+ */
397
+ "requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
384
398
  }
385
399
  interface CatModal {
386
400
  /**
@@ -583,6 +597,10 @@ export namespace Components {
583
597
  * The name of the form control. Submitted with the form as part of a name/value pair.
584
598
  */
585
599
  "name"?: string;
600
+ /**
601
+ * The text to display in the dropdown if no results are found.
602
+ */
603
+ "noItems"?: string;
586
604
  /**
587
605
  * The placeholder text to display within the select.
588
606
  */
@@ -595,6 +613,10 @@ export namespace Components {
595
613
  * A value is required or must be checked for the form to be submittable.
596
614
  */
597
615
  "required": boolean;
616
+ /**
617
+ * Whether the label need a marker to shown if the select is required or optional.
618
+ */
619
+ "requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
598
620
  /**
599
621
  * Optional hint text to be displayed on the new item to be added.
600
622
  */
@@ -604,7 +626,7 @@ export namespace Components {
604
626
  */
605
627
  "tags": boolean;
606
628
  /**
607
- * The value of the select. The value of the select depends on whether it is allowed to choose a single item or several items. When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. In case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item, in the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created
629
+ * The value of the select. <br /> <br /> The value of the select depends on whether it is allowed to choose a single item or several items. <br /> When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. <br /> <br /> In case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item, in the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created
608
630
  */
609
631
  "value"?: string | string[] | CatSelectTaggingValue | CatSelectMultipleTaggingValue;
610
632
  }
@@ -736,6 +758,10 @@ export namespace Components {
736
758
  * A value is required or must be check for the form to be submittable.
737
759
  */
738
760
  "required": boolean;
761
+ /**
762
+ * Whether the label need a marker to shown if the textarea is required or optional.
763
+ */
764
+ "requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
739
765
  /**
740
766
  * Specifies the initial number of lines in the textarea.
741
767
  */
@@ -922,6 +948,12 @@ declare global {
922
948
  prototype: HTMLCatDropdownElement;
923
949
  new (): HTMLCatDropdownElement;
924
950
  };
951
+ interface HTMLCatFormGroupElement extends Components.CatFormGroup, HTMLStencilElement {
952
+ }
953
+ var HTMLCatFormGroupElement: {
954
+ prototype: HTMLCatFormGroupElement;
955
+ new (): HTMLCatFormGroupElement;
956
+ };
925
957
  interface HTMLCatIconElement extends Components.CatIcon, HTMLStencilElement {
926
958
  }
927
959
  var HTMLCatIconElement: {
@@ -1032,6 +1064,7 @@ declare global {
1032
1064
  "cat-card": HTMLCatCardElement;
1033
1065
  "cat-checkbox": HTMLCatCheckboxElement;
1034
1066
  "cat-dropdown": HTMLCatDropdownElement;
1067
+ "cat-form-group": HTMLCatFormGroupElement;
1035
1068
  "cat-icon": HTMLCatIconElement;
1036
1069
  "cat-input": HTMLCatInputElement;
1037
1070
  "cat-label": HTMLCatLabelElement;
@@ -1294,6 +1327,12 @@ declare namespace LocalJSX {
1294
1327
  */
1295
1328
  "placement"?: Placement;
1296
1329
  }
1330
+ interface CatFormGroup {
1331
+ /**
1332
+ * Whether the labels need a marker to shown if the forms fields are required or optional.<br /><br /> By default, it is set to auto, it will display the mark depending on the number of required and optional fields: <br /> - If there are more required, the optional will be marked.<br /> - If there are less required, it will mark the required.<br /><br /> If a form field had "!", the requiredMarked of the field would not change.
1333
+ */
1334
+ "requiredMarker"?: 'none' | 'required' | 'optional' | 'auto';
1335
+ }
1297
1336
  interface CatIcon {
1298
1337
  /**
1299
1338
  * Adds accessible label for the icon that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
@@ -1389,6 +1428,10 @@ declare namespace LocalJSX {
1389
1428
  * A value is required or must be check for the form to be submittable.
1390
1429
  */
1391
1430
  "required"?: boolean;
1431
+ /**
1432
+ * Whether the label need a marker to shown if the input is required or optional.
1433
+ */
1434
+ "requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
1392
1435
  /**
1393
1436
  * Use round input edges.
1394
1437
  */
@@ -1419,6 +1462,10 @@ declare namespace LocalJSX {
1419
1462
  * A value is required or must be check for the form to be submittable.
1420
1463
  */
1421
1464
  "required"?: boolean;
1465
+ /**
1466
+ * Whether the label need a marker to shown if the input is required or optional.
1467
+ */
1468
+ "requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
1422
1469
  }
1423
1470
  interface CatModal {
1424
1471
  /**
@@ -1635,6 +1682,10 @@ declare namespace LocalJSX {
1635
1682
  * The name of the form control. Submitted with the form as part of a name/value pair.
1636
1683
  */
1637
1684
  "name"?: string;
1685
+ /**
1686
+ * The text to display in the dropdown if no results are found.
1687
+ */
1688
+ "noItems"?: string;
1638
1689
  /**
1639
1690
  * Emitted when the select loses the focus.
1640
1691
  */
@@ -1663,6 +1714,10 @@ declare namespace LocalJSX {
1663
1714
  * A value is required or must be checked for the form to be submittable.
1664
1715
  */
1665
1716
  "required"?: boolean;
1717
+ /**
1718
+ * Whether the label need a marker to shown if the select is required or optional.
1719
+ */
1720
+ "requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
1666
1721
  /**
1667
1722
  * Optional hint text to be displayed on the new item to be added.
1668
1723
  */
@@ -1672,7 +1727,7 @@ declare namespace LocalJSX {
1672
1727
  */
1673
1728
  "tags"?: boolean;
1674
1729
  /**
1675
- * The value of the select. The value of the select depends on whether it is allowed to choose a single item or several items. When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. In case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item, in the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created
1730
+ * The value of the select. <br /> <br /> The value of the select depends on whether it is allowed to choose a single item or several items. <br /> When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. <br /> <br /> In case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item, in the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created
1676
1731
  */
1677
1732
  "value"?: string | string[] | CatSelectTaggingValue | CatSelectMultipleTaggingValue;
1678
1733
  }
@@ -1807,6 +1862,10 @@ declare namespace LocalJSX {
1807
1862
  * A value is required or must be check for the form to be submittable.
1808
1863
  */
1809
1864
  "required"?: boolean;
1865
+ /**
1866
+ * Whether the label need a marker to shown if the textarea is required or optional.
1867
+ */
1868
+ "requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
1810
1869
  /**
1811
1870
  * Specifies the initial number of lines in the textarea.
1812
1871
  */
@@ -1912,6 +1971,7 @@ declare namespace LocalJSX {
1912
1971
  "cat-card": CatCard;
1913
1972
  "cat-checkbox": CatCheckbox;
1914
1973
  "cat-dropdown": CatDropdown;
1974
+ "cat-form-group": CatFormGroup;
1915
1975
  "cat-icon": CatIcon;
1916
1976
  "cat-input": CatInput;
1917
1977
  "cat-label": CatLabel;
@@ -1942,6 +2002,7 @@ declare module "@stencil/core" {
1942
2002
  "cat-card": LocalJSX.CatCard & JSXBase.HTMLAttributes<HTMLCatCardElement>;
1943
2003
  "cat-checkbox": LocalJSX.CatCheckbox & JSXBase.HTMLAttributes<HTMLCatCheckboxElement>;
1944
2004
  "cat-dropdown": LocalJSX.CatDropdown & JSXBase.HTMLAttributes<HTMLCatDropdownElement>;
2005
+ "cat-form-group": LocalJSX.CatFormGroup & JSXBase.HTMLAttributes<HTMLCatFormGroupElement>;
1945
2006
  "cat-icon": LocalJSX.CatIcon & JSXBase.HTMLAttributes<HTMLCatIconElement>;
1946
2007
  "cat-input": LocalJSX.CatInput & JSXBase.HTMLAttributes<HTMLCatInputElement>;
1947
2008
  "cat-label": LocalJSX.CatLabel & JSXBase.HTMLAttributes<HTMLCatLabelElement>;