@haiilo/catalyst 13.5.1-beta → 14.0.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.
- package/dist/catalyst/catalyst.css +257 -192
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js +2 -2
- package/dist/catalyst/loader.esm.js.map +1 -1
- package/dist/catalyst/p--__C9zxv.js +3 -0
- package/dist/catalyst/p--__C9zxv.js.map +1 -0
- package/dist/catalyst/{p-8e3e3018.entry.js → p-4f7d069a.entry.js} +4 -4
- package/dist/catalyst/p-4f7d069a.entry.js.map +1 -0
- package/dist/catalyst/{p-D80xhZLG.js → p-Db1nOa1D.js} +2 -2
- package/dist/catalyst/{p-D80xhZLG.js.map → p-Db1nOa1D.js.map} +1 -1
- package/dist/catalyst/scss/index.scss +3 -3
- package/dist/cjs/cat-alert_30.cjs.entry.js +122 -124
- package/dist/cjs/catalyst.cjs.js +4 -7
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-B6viy7Jl.js → index-CgyHmlOr.js} +736 -736
- package/dist/cjs/{index-B6viy7Jl.js.map → index-CgyHmlOr.js.map} +1 -1
- package/dist/cjs/index-Cl5qCbJO.js +1755 -0
- package/dist/cjs/index-Cl5qCbJO.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -3
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/cat-alert/cat-alert.js +4 -4
- package/dist/collection/components/cat-avatar/cat-avatar.js +13 -13
- package/dist/collection/components/cat-badge/cat-badge.js +9 -9
- package/dist/collection/components/cat-button/cat-button.js +31 -33
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-button-group/cat-button-group.js +2 -2
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +22 -23
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-date/cat-date.js +39 -40
- package/dist/collection/components/cat-date/cat-date.js.map +1 -1
- package/dist/collection/components/cat-date-inline/cat-date-inline.js +19 -19
- package/dist/collection/components/cat-datepicker/cat-datepicker.js +41 -43
- package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +10 -11
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +11 -11
- package/dist/collection/components/cat-form-group/cat-form-group.js +4 -4
- package/dist/collection/components/cat-icon/cat-icon.js +7 -7
- package/dist/collection/components/cat-input/cat-input.js +51 -54
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.js +10 -10
- package/dist/collection/components/cat-radio/cat-radio.js +16 -17
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +8 -8
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +7 -7
- package/dist/collection/components/cat-select/cat-select.js +35 -36
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +5 -5
- package/dist/collection/components/cat-spinner/cat-spinner.js +4 -4
- package/dist/collection/components/cat-tab/cat-tab.js +15 -16
- package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.js +4 -4
- package/dist/collection/components/cat-tag/cat-tag.js +20 -23
- package/dist/collection/components/cat-tag/cat-tag.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +32 -33
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-time/cat-time.js +40 -41
- package/dist/collection/components/cat-time/cat-time.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +20 -21
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +8 -8
- package/dist/collection/scss/_variables.tokens.scss +2 -2
- package/dist/collection/scss/index.scss +3 -3
- package/dist/components/cat-alert.js +5 -3
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-avatar2.js +5 -3
- package/dist/components/cat-avatar2.js.map +1 -1
- package/dist/components/cat-badge.js +5 -3
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button-group.js +5 -3
- package/dist/components/cat-button-group.js.map +1 -1
- package/dist/components/cat-button2.js +7 -5
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-card.js +5 -3
- package/dist/components/cat-card.js.map +1 -1
- package/dist/components/cat-checkbox2.js +6 -4
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-date-inline2.js +5 -3
- package/dist/components/cat-date-inline2.js.map +1 -1
- package/dist/components/cat-date.js +6 -4
- package/dist/components/cat-date.js.map +1 -1
- package/dist/components/cat-datepicker-inline.js +6 -4
- package/dist/components/cat-datepicker-inline.js.map +1 -1
- package/dist/components/cat-datepicker.js +7 -5
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/components/cat-dropdown2.js +5 -3
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +5 -3
- package/dist/components/cat-form-group.js.map +1 -1
- package/dist/components/cat-form-hint.js.map +1 -1
- package/dist/components/cat-i18n-registry.js.map +1 -1
- package/dist/components/cat-icon-registry.js.map +1 -1
- package/dist/components/cat-icon2.js +5 -3
- package/dist/components/cat-icon2.js.map +1 -1
- package/dist/components/cat-input2.js +8 -6
- package/dist/components/cat-input2.js.map +1 -1
- package/dist/components/cat-pagination.js +5 -3
- package/dist/components/cat-pagination.js.map +1 -1
- package/dist/components/cat-radio-group.js +5 -3
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +6 -4
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-scrollable2.js +123 -121
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +5 -3
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +6 -4
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-skeleton2.js +5 -3
- package/dist/components/cat-skeleton2.js.map +1 -1
- package/dist/components/cat-spinner2.js +5 -3
- package/dist/components/cat-spinner2.js.map +1 -1
- package/dist/components/cat-tab.js +6 -4
- package/dist/components/cat-tab.js.map +1 -1
- package/dist/components/cat-tabs.js +5 -3
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-tag.js +7 -5
- package/dist/components/cat-tag.js.map +1 -1
- package/dist/components/cat-textarea.js +6 -4
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-time.js +6 -4
- package/dist/components/cat-time.js.map +1 -1
- package/dist/components/cat-toggle.js +6 -4
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +5 -3
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/index2.js +735 -735
- package/dist/components/index2.js.map +1 -1
- package/dist/components/media-matcher.js +3 -3
- package/dist/components/media-matcher.js.map +1 -1
- package/dist/esm/cat-alert_30.entry.js +122 -124
- package/dist/esm/catalyst.js +4 -7
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/index--__C9zxv.js +1727 -0
- package/dist/esm/index--__C9zxv.js.map +1 -0
- package/dist/esm/{index-D80xhZLG.js → index-Db1nOa1D.js} +737 -737
- package/dist/esm/{index-D80xhZLG.js.map → index-Db1nOa1D.js.map} +1 -1
- package/dist/esm/index.js +2 -4
- package/dist/esm/loader.js +3 -6
- package/dist/esm/loader.js.map +1 -1
- package/dist/types/components/cat-select/cat-select.d.ts +2 -2
- package/dist/types/components.d.ts +396 -8
- package/dist/types/stencil-public-runtime.d.ts +62 -8
- package/package.json +24 -24
- package/dist/catalyst/p-8e3e3018.entry.js.map +0 -1
- package/dist/catalyst/p-CzxFlAEB.js +0 -3
- package/dist/catalyst/p-CzxFlAEB.js.map +0 -1
- package/dist/catalyst/p-DQuL1Twl.js +0 -2
- package/dist/catalyst/p-DQuL1Twl.js.map +0 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/cat-alert_30.cjs.entry.js.map +0 -1
- package/dist/cjs/index-Bp_C-J2p.js +0 -1597
- package/dist/cjs/index-Bp_C-J2p.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/cat-alert_30.entry.js.map +0 -1
- package/dist/esm/index-CzxFlAEB.js +0 -1588
- package/dist/esm/index-CzxFlAEB.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cat-tab.js","sourceRoot":"","sources":["../../../src/components/cat-tab/cat-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG/F,IAAI,YAAY,GAAG,CAAC,CAAC;AAErB;;GAEG;AAMH,MAAM,OAAO,MAAM;IALnB;QAQE;;WAEG;QACsB,UAAK,GAAG,EAAE,CAAC;QAOpC;;WAEG;QACsB,aAAQ,GAAyB,KAAK,CAAC;QAEhE;;WAEG;QACsB,cAAS,GAAG,KAAK,CAAC;QAY3C;;WAEG;QACsB,gBAAW,GAAG,KAAK,CAAC;QAE7C;;;;;WAKG;QACsB,aAAQ,GAAG,KAAK,CAAC;QAE1C;;;;WAIG;QACsB,WAAM,GAAG,KAAK,CAAC;QAExC;;;;WAIG;QACsB,UAAK,GAAG,KAAK,CAAC;KAiCxC;IAdC,iBAAiB;QACf,IAAI,CAAC,IAAI,CAAC,WAAW,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Event, EventEmitter, Listen, Host, Element } from '@stencil/core';\nimport { Breakpoint } from '../../utils/breakpoints';\n\nlet nextUniqueId = 0;\n\n/**\n * A single tab inside a tabs component.\n */\n@Component({\n tag: 'cat-tab',\n styleUrl: 'cat-tab.scss',\n shadow: true\n})\nexport class CatTab {\n @Element() hostElement!: HTMLElement;\n\n /**\n * The label of the tab.\n */\n @Prop({ reflect: true }) label = '';\n\n /**\n * The name of an icon to be displayed in the tab.\n */\n @Prop({ reflect: true }) icon?: string;\n\n /**\n * Hide the actual button content and only display the tab.\n */\n @Prop({ reflect: true }) iconOnly: boolean | Breakpoint = false;\n\n /**\n * Display the icon on the right.\n */\n @Prop({ reflect: true }) iconRight = false;\n\n /**\n * A destination to link to, rendered in the href attribute of a link.\n */\n @Prop({ reflect: true }) url?: string;\n\n /**\n * Specifies where to open the linked document.\n */\n @Prop({ reflect: true }) urlTarget?: '_blank' | '_self';\n\n /**\n * Specifies that the tab should be deactivated.\n */\n @Prop({ reflect: true }) deactivated = false;\n\n /**\n * Specifies that the tab does not have an active state and thus cannot be\n * activated. This does not mean, that the tab is deactivated. The tab can\n * still be clicked and emit the `catClick` event. This is helpful if a tab\n * should only trigger a click action (such as opening a modal).\n */\n @Prop({ reflect: true }) noActive = false;\n\n /**\n * Specifies that the tab is always visible in adaptive mode.\n * Only the first sticky tab will be taken into account.\n * Sticky has advantage on activeTabAlwaysVisible if there is no space to show both.\n */\n @Prop({ reflect: true }) sticky = false;\n\n /**\n * Specifies that the tab content pane contains an error. This will color\n * the tab in an error state and also switch to an error icon if an icon\n * is specified.\n */\n @Prop({ reflect: true }) error = false;\n\n /**\n * Attributes that will be added to the native HTML button element\n */\n @Prop() nativeAttributes?: { [key: string]: string };\n\n /**\n * A unique identifier for the underlying native element that is used for\n * testing purposes. The attribute is added as `data-test` attribute and acts\n * as a shorthand for `nativeAttributes={ 'data-test': 'test-Id' }`.\n */\n @Prop() testId?: string;\n\n /**\n * Emitted when tab is clicked.\n */\n @Event() catClick!: EventEmitter<MouseEvent>;\n\n connectedCallback() {\n if (!this.hostElement.id) {\n this.hostElement.id = `cat-tab-${nextUniqueId++}`;\n }\n }\n\n @Listen('click')\n onClick(event: MouseEvent) {\n this.catClick.emit(event);\n }\n\n render() {\n return <Host></Host>;\n }\n}\n"]}
|
|
@@ -233,7 +233,6 @@ export class CatTabs {
|
|
|
233
233
|
return {
|
|
234
234
|
"activeTab": {
|
|
235
235
|
"type": "string",
|
|
236
|
-
"attribute": "active-tab",
|
|
237
236
|
"mutable": true,
|
|
238
237
|
"complexType": {
|
|
239
238
|
"original": "string",
|
|
@@ -249,11 +248,11 @@ export class CatTabs {
|
|
|
249
248
|
"getter": false,
|
|
250
249
|
"setter": false,
|
|
251
250
|
"reflect": true,
|
|
251
|
+
"attribute": "active-tab",
|
|
252
252
|
"defaultValue": "''"
|
|
253
253
|
},
|
|
254
254
|
"tabsAlign": {
|
|
255
255
|
"type": "string",
|
|
256
|
-
"attribute": "tabs-align",
|
|
257
256
|
"mutable": false,
|
|
258
257
|
"complexType": {
|
|
259
258
|
"original": "'left' | 'center' | 'right' | 'justify'",
|
|
@@ -269,11 +268,11 @@ export class CatTabs {
|
|
|
269
268
|
"getter": false,
|
|
270
269
|
"setter": false,
|
|
271
270
|
"reflect": false,
|
|
271
|
+
"attribute": "tabs-align",
|
|
272
272
|
"defaultValue": "'left'"
|
|
273
273
|
},
|
|
274
274
|
"adaptive": {
|
|
275
275
|
"type": "boolean",
|
|
276
|
-
"attribute": "adaptive",
|
|
277
276
|
"mutable": false,
|
|
278
277
|
"complexType": {
|
|
279
278
|
"original": "boolean",
|
|
@@ -289,11 +288,11 @@ export class CatTabs {
|
|
|
289
288
|
"getter": false,
|
|
290
289
|
"setter": false,
|
|
291
290
|
"reflect": false,
|
|
291
|
+
"attribute": "adaptive",
|
|
292
292
|
"defaultValue": "false"
|
|
293
293
|
},
|
|
294
294
|
"activeTabAlwaysVisible": {
|
|
295
295
|
"type": "boolean",
|
|
296
|
-
"attribute": "active-tab-always-visible",
|
|
297
296
|
"mutable": false,
|
|
298
297
|
"complexType": {
|
|
299
298
|
"original": "boolean",
|
|
@@ -309,6 +308,7 @@ export class CatTabs {
|
|
|
309
308
|
"getter": false,
|
|
310
309
|
"setter": false,
|
|
311
310
|
"reflect": false,
|
|
311
|
+
"attribute": "active-tab-always-visible",
|
|
312
312
|
"defaultValue": "false"
|
|
313
313
|
}
|
|
314
314
|
};
|
|
@@ -185,7 +185,6 @@ export class CatTag {
|
|
|
185
185
|
return {
|
|
186
186
|
"requiredMarker": {
|
|
187
187
|
"type": "string",
|
|
188
|
-
"attribute": "required-marker",
|
|
189
188
|
"mutable": false,
|
|
190
189
|
"complexType": {
|
|
191
190
|
"original": "'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!'",
|
|
@@ -201,11 +200,11 @@ export class CatTag {
|
|
|
201
200
|
"getter": false,
|
|
202
201
|
"setter": false,
|
|
203
202
|
"reflect": false,
|
|
203
|
+
"attribute": "required-marker",
|
|
204
204
|
"defaultValue": "'optional'"
|
|
205
205
|
},
|
|
206
206
|
"disabled": {
|
|
207
207
|
"type": "boolean",
|
|
208
|
-
"attribute": "disabled",
|
|
209
208
|
"mutable": false,
|
|
210
209
|
"complexType": {
|
|
211
210
|
"original": "boolean",
|
|
@@ -221,11 +220,11 @@ export class CatTag {
|
|
|
221
220
|
"getter": false,
|
|
222
221
|
"setter": false,
|
|
223
222
|
"reflect": false,
|
|
223
|
+
"attribute": "disabled",
|
|
224
224
|
"defaultValue": "false"
|
|
225
225
|
},
|
|
226
226
|
"placeholder": {
|
|
227
227
|
"type": "string",
|
|
228
|
-
"attribute": "placeholder",
|
|
229
228
|
"mutable": false,
|
|
230
229
|
"complexType": {
|
|
231
230
|
"original": "string",
|
|
@@ -240,11 +239,11 @@ export class CatTag {
|
|
|
240
239
|
},
|
|
241
240
|
"getter": false,
|
|
242
241
|
"setter": false,
|
|
243
|
-
"reflect": false
|
|
242
|
+
"reflect": false,
|
|
243
|
+
"attribute": "placeholder"
|
|
244
244
|
},
|
|
245
245
|
"hint": {
|
|
246
246
|
"type": "string",
|
|
247
|
-
"attribute": "hint",
|
|
248
247
|
"mutable": false,
|
|
249
248
|
"complexType": {
|
|
250
249
|
"original": "string | string[]",
|
|
@@ -259,11 +258,11 @@ export class CatTag {
|
|
|
259
258
|
},
|
|
260
259
|
"getter": false,
|
|
261
260
|
"setter": false,
|
|
262
|
-
"reflect": false
|
|
261
|
+
"reflect": false,
|
|
262
|
+
"attribute": "hint"
|
|
263
263
|
},
|
|
264
264
|
"identifier": {
|
|
265
265
|
"type": "string",
|
|
266
|
-
"attribute": "identifier",
|
|
267
266
|
"mutable": false,
|
|
268
267
|
"complexType": {
|
|
269
268
|
"original": "string",
|
|
@@ -278,11 +277,11 @@ export class CatTag {
|
|
|
278
277
|
},
|
|
279
278
|
"getter": false,
|
|
280
279
|
"setter": false,
|
|
281
|
-
"reflect": false
|
|
280
|
+
"reflect": false,
|
|
281
|
+
"attribute": "identifier"
|
|
282
282
|
},
|
|
283
283
|
"label": {
|
|
284
284
|
"type": "string",
|
|
285
|
-
"attribute": "label",
|
|
286
285
|
"mutable": false,
|
|
287
286
|
"complexType": {
|
|
288
287
|
"original": "string",
|
|
@@ -298,11 +297,11 @@ export class CatTag {
|
|
|
298
297
|
"getter": false,
|
|
299
298
|
"setter": false,
|
|
300
299
|
"reflect": false,
|
|
300
|
+
"attribute": "label",
|
|
301
301
|
"defaultValue": "''"
|
|
302
302
|
},
|
|
303
303
|
"name": {
|
|
304
304
|
"type": "string",
|
|
305
|
-
"attribute": "name",
|
|
306
305
|
"mutable": false,
|
|
307
306
|
"complexType": {
|
|
308
307
|
"original": "string",
|
|
@@ -317,11 +316,11 @@ export class CatTag {
|
|
|
317
316
|
},
|
|
318
317
|
"getter": false,
|
|
319
318
|
"setter": false,
|
|
320
|
-
"reflect": false
|
|
319
|
+
"reflect": false,
|
|
320
|
+
"attribute": "name"
|
|
321
321
|
},
|
|
322
322
|
"labelHidden": {
|
|
323
323
|
"type": "boolean",
|
|
324
|
-
"attribute": "label-hidden",
|
|
325
324
|
"mutable": false,
|
|
326
325
|
"complexType": {
|
|
327
326
|
"original": "boolean",
|
|
@@ -337,11 +336,11 @@ export class CatTag {
|
|
|
337
336
|
"getter": false,
|
|
338
337
|
"setter": false,
|
|
339
338
|
"reflect": false,
|
|
339
|
+
"attribute": "label-hidden",
|
|
340
340
|
"defaultValue": "false"
|
|
341
341
|
},
|
|
342
342
|
"required": {
|
|
343
343
|
"type": "boolean",
|
|
344
|
-
"attribute": "required",
|
|
345
344
|
"mutable": false,
|
|
346
345
|
"complexType": {
|
|
347
346
|
"original": "boolean",
|
|
@@ -357,11 +356,11 @@ export class CatTag {
|
|
|
357
356
|
"getter": false,
|
|
358
357
|
"setter": false,
|
|
359
358
|
"reflect": false,
|
|
359
|
+
"attribute": "required",
|
|
360
360
|
"defaultValue": "false"
|
|
361
361
|
},
|
|
362
362
|
"nativeAttributes": {
|
|
363
363
|
"type": "unknown",
|
|
364
|
-
"attribute": "native-attributes",
|
|
365
364
|
"mutable": false,
|
|
366
365
|
"complexType": {
|
|
367
366
|
"original": "{ [key: string]: string }",
|
|
@@ -379,7 +378,6 @@ export class CatTag {
|
|
|
379
378
|
},
|
|
380
379
|
"testId": {
|
|
381
380
|
"type": "string",
|
|
382
|
-
"attribute": "test-id",
|
|
383
381
|
"mutable": false,
|
|
384
382
|
"complexType": {
|
|
385
383
|
"original": "string",
|
|
@@ -394,11 +392,11 @@ export class CatTag {
|
|
|
394
392
|
},
|
|
395
393
|
"getter": false,
|
|
396
394
|
"setter": false,
|
|
397
|
-
"reflect": false
|
|
395
|
+
"reflect": false,
|
|
396
|
+
"attribute": "test-id"
|
|
398
397
|
},
|
|
399
398
|
"value": {
|
|
400
399
|
"type": "unknown",
|
|
401
|
-
"attribute": "value",
|
|
402
400
|
"mutable": true,
|
|
403
401
|
"complexType": {
|
|
404
402
|
"original": "string[]",
|
|
@@ -416,7 +414,6 @@ export class CatTag {
|
|
|
416
414
|
},
|
|
417
415
|
"clearable": {
|
|
418
416
|
"type": "boolean",
|
|
419
|
-
"attribute": "clearable",
|
|
420
417
|
"mutable": false,
|
|
421
418
|
"complexType": {
|
|
422
419
|
"original": "boolean",
|
|
@@ -432,11 +429,11 @@ export class CatTag {
|
|
|
432
429
|
"getter": false,
|
|
433
430
|
"setter": false,
|
|
434
431
|
"reflect": false,
|
|
432
|
+
"attribute": "clearable",
|
|
435
433
|
"defaultValue": "false"
|
|
436
434
|
},
|
|
437
435
|
"errors": {
|
|
438
436
|
"type": "boolean",
|
|
439
|
-
"attribute": "errors",
|
|
440
437
|
"mutable": false,
|
|
441
438
|
"complexType": {
|
|
442
439
|
"original": "boolean | string[] | ErrorMap",
|
|
@@ -457,11 +454,11 @@ export class CatTag {
|
|
|
457
454
|
},
|
|
458
455
|
"getter": false,
|
|
459
456
|
"setter": false,
|
|
460
|
-
"reflect": false
|
|
457
|
+
"reflect": false,
|
|
458
|
+
"attribute": "errors"
|
|
461
459
|
},
|
|
462
460
|
"errorUpdate": {
|
|
463
461
|
"type": "any",
|
|
464
|
-
"attribute": "error-update",
|
|
465
462
|
"mutable": false,
|
|
466
463
|
"complexType": {
|
|
467
464
|
"original": "boolean | number",
|
|
@@ -477,11 +474,11 @@ export class CatTag {
|
|
|
477
474
|
"getter": false,
|
|
478
475
|
"setter": false,
|
|
479
476
|
"reflect": false,
|
|
477
|
+
"attribute": "error-update",
|
|
480
478
|
"defaultValue": "0"
|
|
481
479
|
},
|
|
482
480
|
"tagCreationChars": {
|
|
483
481
|
"type": "unknown",
|
|
484
|
-
"attribute": "tag-creation-chars",
|
|
485
482
|
"mutable": false,
|
|
486
483
|
"complexType": {
|
|
487
484
|
"original": "string[]",
|
|
@@ -500,7 +497,6 @@ export class CatTag {
|
|
|
500
497
|
},
|
|
501
498
|
"addOnBlur": {
|
|
502
499
|
"type": "boolean",
|
|
503
|
-
"attribute": "add-on-blur",
|
|
504
500
|
"mutable": false,
|
|
505
501
|
"complexType": {
|
|
506
502
|
"original": "boolean",
|
|
@@ -516,6 +512,7 @@ export class CatTag {
|
|
|
516
512
|
"getter": false,
|
|
517
513
|
"setter": false,
|
|
518
514
|
"reflect": false,
|
|
515
|
+
"attribute": "add-on-blur",
|
|
519
516
|
"defaultValue": "false"
|
|
520
517
|
}
|
|
521
518
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cat-tag.js","sourceRoot":"","sources":["../../../src/components/cat-tag/cat-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAY,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,eAAe,IAAI,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAExE,IAAI,YAAY,GAAG,CAAC,CAAC;AAErB;;;;;GAKG;AAQH,MAAM,OAAO,MAAM;IAPnB;QAQmB,QAAG,GAAG,aAAa,YAAY,EAAE,EAAE,CAAC;QAU5C,oBAAe,GAAG,KAAK,CAAC;QAExB,mBAAc,GAAG,KAAK,CAAC;QAEvB,SAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, State, Watch } from '@stencil/core';\nimport { coerceBoolean, coerceNumber } from '../../utils/coerce';\nimport { CatFormHint, ErrorMap } from '../cat-form-hint/cat-form-hint';\nimport { catI18nRegistry as i18n } from '../cat-i18n/cat-i18n-registry';\n\nlet nextUniqueId = 0;\n\n/**\n * An input that allows multiple values to be entered as tags.\n *\n * @part input - The native input element.\n * @part label - The native label element.\n */\n@Component({\n tag: 'cat-tag',\n styleUrl: 'cat-tag.scss',\n shadow: {\n delegatesFocus: true\n }\n})\nexport class CatTag {\n private readonly _id = `cat-input-${nextUniqueId++}`;\n private get id() {\n return this.identifier || this._id;\n }\n\n private input!: HTMLInputElement;\n private errorMapSrc?: ErrorMap | true;\n\n @Element() hostElement!: HTMLElement;\n\n @State() hasSlottedLabel = false;\n\n @State() hasSlottedHint = false;\n\n @State() tags: string[] = [];\n\n @State() errorMap?: ErrorMap | true;\n\n /**\n * Whether the label need a marker to shown if the select is required or optional.\n */\n @Prop() requiredMarker?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!' = 'optional';\n\n /**\n * Whether the select is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * The placeholder text to display within the select.\n */\n @Prop() placeholder?: string;\n\n /**\n * Optional hint text(s) to be displayed with the select.\n */\n @Prop() hint?: string | string[];\n\n /**\n * A unique identifier for the input.\n */\n @Prop() identifier?: string;\n\n /**\n * The label for the select.\n */\n @Prop() label = '';\n\n /**\n * The name of the form control. Submitted with the form as part of a name/value pair.\n */\n @Prop() name?: string;\n\n /**\n * Visually hide the label, but still show it to assistive technologies like screen readers.\n */\n @Prop() labelHidden = false;\n\n /**\n * A value is required or must be checked for the form to be submittable.\n */\n @Prop() required = false;\n\n /**\n * Attributes that will be added to the native HTML input element.\n */\n @Prop() nativeAttributes?: { [key: string]: string };\n\n /**\n * A unique identifier for the underlying native element that is used for\n * testing purposes. The attribute is added as `data-test` attribute and acts\n * as a shorthand for `nativeAttributes={ 'data-test': 'test-Id' }`.\n */\n @Prop() testId?: string;\n\n /**\n * The value of the control.\n */\n @Prop({ mutable: true }) value?: string[];\n\n /**\n * Whether the input should show a clear button.\n */\n @Prop() clearable = false;\n\n /**\n * The validation errors for this input. Will render a hint under the input\n * with the translated error message(s) `error.${key}`. If an object is\n * passed, the keys will be used as error keys and the values translation\n * parameters.\n * If the value is `true`, the input will be marked as invalid without any\n * hints under the input.\n */\n @Prop() errors?: boolean | string[] | ErrorMap;\n\n /**\n * Fine-grained control over when the errors are shown. Can be `false` to\n * never show errors, `true` to show errors on blur, or a number to show\n * errors change with the given delay in milliseconds or immediately on blur.\n */\n @Prop() errorUpdate: boolean | number = 0;\n\n /**\n * List of characters that should create a new tag. This need to be comparable to `keydownEvent.key`.\n * Pasted values will also be split by those chars.\n * Defaults to `[' ']`.\n */\n @Prop() tagCreationChars: string[] = [' '];\n\n /**\n * Whether new tag is added when the input is blurred.\n */\n @Prop() addOnBlur = false;\n\n /**\n * Emitted when the value is changed.\n */\n @Event() catChange!: EventEmitter<string[]>;\n\n /**\n * Emitted when the input received focus.\n */\n @Event() catFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when the input loses focus.\n */\n @Event() catBlur!: EventEmitter<FocusEvent>;\n\n componentWillLoad(): void {\n this.onErrorsChanged(this.errors, undefined, false);\n }\n\n componentWillRender(): void {\n this.hasSlottedLabel = !!this.hostElement.querySelector('[slot=\"label\"]');\n this.hasSlottedHint = !!this.hostElement.querySelector('[slot=\"hint\"]');\n }\n\n @Listen('keydown')\n onKeyDown(event: KeyboardEvent): void {\n const isInputFocused = this.hostElement.shadowRoot?.activeElement === this.input;\n if (['Enter', ...this.tagCreationChars].includes(event.key) && isInputFocused) {\n event.preventDefault();\n this.addInputValue();\n } else if (\n ['Backspace'].includes(event.key) &&\n this.input?.selectionStart === 0 &&\n (this.value?.length ?? 0) > 0 &&\n isInputFocused\n ) {\n this.value = this.value?.slice(0, -1) ?? [];\n this.catChange.emit(this.value);\n }\n }\n\n @Watch('errors')\n onErrorsChanged(newValue?: boolean | string[] | ErrorMap, _oldValue?: unknown, update: boolean = true) {\n if (!coerceBoolean(this.errorUpdate)) {\n this.errorMap = undefined;\n } else {\n this.errorMapSrc = Array.isArray(newValue)\n ? (newValue as string[]).reduce((acc, err) => ({ ...acc, [err]: undefined }), {})\n : newValue || undefined;\n if (update) {\n this.showErrorsIfTimeout() || this.showErrorsIfNoFocus();\n }\n }\n }\n\n render() {\n this.hostElement.tabIndex = Number(this.hostElement.getAttribute('tabindex')) || 0;\n return (\n <Host>\n <div class={{ 'label-container': true, hidden: this.labelHidden }}>\n {(this.hasSlottedLabel || this.label) && (\n <label htmlFor={`tags-${this.id}-input`} part=\"label\">\n <span class=\"label-wrapper\">\n {(this.hasSlottedLabel && <slot name=\"label\"></slot>) || this.label}\n <div class=\"label-metadata\">\n {!this.required && (this.requiredMarker ?? 'optional').startsWith('optional') && (\n <span class=\"label-optional\" aria-hidden=\"true\">\n ({i18n.t('input.optional')})\n </span>\n )}\n {this.required && this.requiredMarker?.startsWith('required') && (\n <span class=\"label-optional\" aria-hidden=\"true\">\n ({i18n.t('input.required')})\n </span>\n )}\n </div>\n </span>\n </label>\n )}\n </div>\n <div class={{ 'input-wrapper': true, 'input-disabled': this.disabled, 'input-invalid': this.invalid }}>\n {this.value?.map(value => (\n <div class=\"tag-pill\">\n <span>{value}</span>\n {!this.disabled && (\n <cat-button\n size=\"xs\"\n variant=\"text\"\n icon=\"$cat:select-clear\"\n iconOnly\n a11yLabel={i18n.t('select.deselect')}\n onClick={() => this.deselect(value)}\n tabIndex={-1}\n ></cat-button>\n )}\n </div>\n ))}\n <div class=\"input-inner-wrapper\">\n <input\n data-test={this.testId}\n {...this.nativeAttributes}\n part=\"input\"\n id={`tags-${this.id}-input`}\n class=\"tags-input\"\n role=\"combobox\"\n ref={el => (this.input = el as HTMLInputElement)}\n aria-invalid={this.invalid ? 'true' : undefined}\n aria-describedby={this.hasHint ? this.id + '-hint' : undefined}\n onInput={this.onInput.bind(this)}\n onBlur={this.onBlur.bind(this)}\n placeholder={this.placeholder}\n disabled={this.disabled}\n ></input>\n {this.clearable && !this.disabled && (this.value?.length ?? 0) > 0 && (\n <cat-button\n class=\"clearable\"\n icon=\"$cat:input-close\"\n icon-only=\"true\"\n size=\"s\"\n variant=\"text\"\n a11y-label={i18n.t('input.clear')}\n onClick={this.clear.bind(this)}\n data-dropdown-no-close\n ></cat-button>\n )}\n {this.invalid && <cat-icon icon=\"$cat:input-error\" class=\"icon-suffix cat-text-danger\" size=\"l\"></cat-icon>}\n </div>\n </div>\n {this.hasHint && (\n <CatFormHint\n id={this.id}\n hint={this.hint}\n slottedHint={this.hasSlottedHint && <slot name=\"hint\"></slot>}\n errorMap={this.errorMap}\n />\n )}\n </Host>\n );\n }\n\n private get hasHint() {\n return !!this.hint || !!this.hasSlottedHint || this.invalid;\n }\n\n private get invalid() {\n return this.errorMap === true || !!Object.keys(this.errorMap || {}).length;\n }\n\n private onInput() {\n const currentValue = [\n ...new Set(this.input?.value?.split(this.createSplitRegex(this.tagCreationChars)) ?? [])\n ].filter(value => !!value && !this.value?.includes(value));\n if (currentValue.length > 1) {\n this.value = [...(this.value ?? []), ...currentValue];\n this.catChange.emit(this.value);\n if (this.input) {\n this.input.value = '';\n }\n }\n }\n\n private onBlur() {\n if (this.addOnBlur) {\n this.addInputValue();\n }\n }\n\n private addInputValue() {\n const inputValue = this.input?.value.trim();\n if (inputValue && !this.value?.includes(inputValue)) {\n this.value = [...(this.value ?? []), inputValue];\n this.catChange.emit(this.value);\n }\n if (this.input) {\n this.input.value = '';\n }\n }\n\n private clear() {\n this.value = [];\n this.catChange.emit(this.value);\n if (this.input) {\n this.input.value = '';\n }\n }\n\n private deselect(value: string) {\n this.value = this.value?.filter(element => element !== value);\n this.catChange.emit(this.value);\n }\n\n private showErrors() {\n this.errorMap = this.errorMapSrc;\n }\n\n private errorUpdateTimeoutId?: number;\n private showErrorsIfTimeout() {\n const errorUpdate = coerceNumber(this.errorUpdate, null);\n if (errorUpdate !== null) {\n typeof this.errorUpdateTimeoutId === 'number' && window.clearTimeout(this.errorUpdateTimeoutId);\n this.errorUpdateTimeoutId = window.setTimeout(() => this.showErrors(), errorUpdate);\n return true;\n }\n return false;\n }\n\n private showErrorsIfNoFocus() {\n const hasFocus = document.activeElement === this.hostElement || document.activeElement === this.input;\n if (!hasFocus) {\n this.showErrors();\n }\n }\n\n private createSplitRegex(delimiters: string[]): RegExp {\n // Escape special regex characters in the array\n const escapedDelimiters = delimiters.map(delimiter => delimiter.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'));\n\n // Add newline characters to the list of delimiters\n escapedDelimiters.push('\\\\n', '\\\\r');\n\n // Join the escaped delimiters to create a character class\n const regexPattern = `[${escapedDelimiters.join('')}]`;\n\n return new RegExp(regexPattern, 'g');\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"cat-tag.js","sourceRoot":"","sources":["../../../src/components/cat-tag/cat-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CA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AAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,CAAC;QAExG,mDAAmD;QACnD,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAErC,0DAA0D;QAC1D,MAAM,YAAY,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC;QAEvD,OAAO,IAAI,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;IACvC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, State, Watch } from '@stencil/core';\nimport { coerceBoolean, coerceNumber } from '../../utils/coerce';\nimport { CatFormHint, ErrorMap } from '../cat-form-hint/cat-form-hint';\nimport { catI18nRegistry as i18n } from '../cat-i18n/cat-i18n-registry';\n\nlet nextUniqueId = 0;\n\n/**\n * An input that allows multiple values to be entered as tags.\n *\n * @part input - The native input element.\n * @part label - The native label element.\n */\n@Component({\n tag: 'cat-tag',\n styleUrl: 'cat-tag.scss',\n shadow: {\n delegatesFocus: true\n }\n})\nexport class CatTag {\n private readonly _id = `cat-input-${nextUniqueId++}`;\n private get id() {\n return this.identifier || this._id;\n }\n\n private input!: HTMLInputElement;\n private errorMapSrc?: ErrorMap | true;\n\n @Element() hostElement!: HTMLElement;\n\n @State() hasSlottedLabel = false;\n\n @State() hasSlottedHint = false;\n\n @State() tags: string[] = [];\n\n @State() errorMap?: ErrorMap | true;\n\n /**\n * Whether the label need a marker to shown if the select is required or optional.\n */\n @Prop() requiredMarker?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!' = 'optional';\n\n /**\n * Whether the select is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * The placeholder text to display within the select.\n */\n @Prop() placeholder?: string;\n\n /**\n * Optional hint text(s) to be displayed with the select.\n */\n @Prop() hint?: string | string[];\n\n /**\n * A unique identifier for the input.\n */\n @Prop() identifier?: string;\n\n /**\n * The label for the select.\n */\n @Prop() label = '';\n\n /**\n * The name of the form control. Submitted with the form as part of a name/value pair.\n */\n @Prop() name?: string;\n\n /**\n * Visually hide the label, but still show it to assistive technologies like screen readers.\n */\n @Prop() labelHidden = false;\n\n /**\n * A value is required or must be checked for the form to be submittable.\n */\n @Prop() required = false;\n\n /**\n * Attributes that will be added to the native HTML input element.\n */\n @Prop() nativeAttributes?: { [key: string]: string };\n\n /**\n * A unique identifier for the underlying native element that is used for\n * testing purposes. The attribute is added as `data-test` attribute and acts\n * as a shorthand for `nativeAttributes={ 'data-test': 'test-Id' }`.\n */\n @Prop() testId?: string;\n\n /**\n * The value of the control.\n */\n @Prop({ mutable: true }) value?: string[];\n\n /**\n * Whether the input should show a clear button.\n */\n @Prop() clearable = false;\n\n /**\n * The validation errors for this input. Will render a hint under the input\n * with the translated error message(s) `error.${key}`. If an object is\n * passed, the keys will be used as error keys and the values translation\n * parameters.\n * If the value is `true`, the input will be marked as invalid without any\n * hints under the input.\n */\n @Prop() errors?: boolean | string[] | ErrorMap;\n\n /**\n * Fine-grained control over when the errors are shown. Can be `false` to\n * never show errors, `true` to show errors on blur, or a number to show\n * errors change with the given delay in milliseconds or immediately on blur.\n */\n @Prop() errorUpdate: boolean | number = 0;\n\n /**\n * List of characters that should create a new tag. This need to be comparable to `keydownEvent.key`.\n * Pasted values will also be split by those chars.\n * Defaults to `[' ']`.\n */\n @Prop() tagCreationChars: string[] = [' '];\n\n /**\n * Whether new tag is added when the input is blurred.\n */\n @Prop() addOnBlur = false;\n\n /**\n * Emitted when the value is changed.\n */\n @Event() catChange!: EventEmitter<string[]>;\n\n /**\n * Emitted when the input received focus.\n */\n @Event() catFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when the input loses focus.\n */\n @Event() catBlur!: EventEmitter<FocusEvent>;\n\n componentWillLoad(): void {\n this.onErrorsChanged(this.errors, undefined, false);\n }\n\n componentWillRender(): void {\n this.hasSlottedLabel = !!this.hostElement.querySelector('[slot=\"label\"]');\n this.hasSlottedHint = !!this.hostElement.querySelector('[slot=\"hint\"]');\n }\n\n @Listen('keydown')\n onKeyDown(event: KeyboardEvent): void {\n const isInputFocused = this.hostElement.shadowRoot?.activeElement === this.input;\n if (['Enter', ...this.tagCreationChars].includes(event.key) && isInputFocused) {\n event.preventDefault();\n this.addInputValue();\n } else if (\n ['Backspace'].includes(event.key) &&\n this.input?.selectionStart === 0 &&\n (this.value?.length ?? 0) > 0 &&\n isInputFocused\n ) {\n this.value = this.value?.slice(0, -1) ?? [];\n this.catChange.emit(this.value);\n }\n }\n\n @Watch('errors')\n onErrorsChanged(newValue?: boolean | string[] | ErrorMap, _oldValue?: unknown, update: boolean = true) {\n if (!coerceBoolean(this.errorUpdate)) {\n this.errorMap = undefined;\n } else {\n this.errorMapSrc = Array.isArray(newValue)\n ? (newValue as string[]).reduce((acc, err) => ({ ...acc, [err]: undefined }), {})\n : newValue || undefined;\n if (update) {\n this.showErrorsIfTimeout() || this.showErrorsIfNoFocus();\n }\n }\n }\n\n render() {\n this.hostElement.tabIndex = Number(this.hostElement.getAttribute('tabindex')) || 0;\n return (\n <Host>\n <div class={{ 'label-container': true, hidden: this.labelHidden }}>\n {(this.hasSlottedLabel || this.label) && (\n <label htmlFor={`tags-${this.id}-input`} part=\"label\">\n <span class=\"label-wrapper\">\n {(this.hasSlottedLabel && <slot name=\"label\"></slot>) || this.label}\n <div class=\"label-metadata\">\n {!this.required && (this.requiredMarker ?? 'optional').startsWith('optional') && (\n <span class=\"label-optional\" aria-hidden=\"true\">\n ({i18n.t('input.optional')})\n </span>\n )}\n {this.required && this.requiredMarker?.startsWith('required') && (\n <span class=\"label-optional\" aria-hidden=\"true\">\n ({i18n.t('input.required')})\n </span>\n )}\n </div>\n </span>\n </label>\n )}\n </div>\n <div class={{ 'input-wrapper': true, 'input-disabled': this.disabled, 'input-invalid': this.invalid }}>\n {this.value?.map(value => (\n <div class=\"tag-pill\">\n <span>{value}</span>\n {!this.disabled && (\n <cat-button\n size=\"xs\"\n variant=\"text\"\n icon=\"$cat:select-clear\"\n iconOnly\n a11yLabel={i18n.t('select.deselect')}\n onClick={() => this.deselect(value)}\n tabIndex={-1}\n ></cat-button>\n )}\n </div>\n ))}\n <div class=\"input-inner-wrapper\">\n <input\n data-test={this.testId}\n {...this.nativeAttributes}\n part=\"input\"\n id={`tags-${this.id}-input`}\n class=\"tags-input\"\n role=\"combobox\"\n ref={el => (this.input = el as HTMLInputElement)}\n aria-invalid={this.invalid ? 'true' : undefined}\n aria-describedby={this.hasHint ? this.id + '-hint' : undefined}\n onInput={this.onInput.bind(this)}\n onBlur={this.onBlur.bind(this)}\n placeholder={this.placeholder}\n disabled={this.disabled}\n ></input>\n {this.clearable && !this.disabled && (this.value?.length ?? 0) > 0 && (\n <cat-button\n class=\"clearable\"\n icon=\"$cat:input-close\"\n icon-only=\"true\"\n size=\"s\"\n variant=\"text\"\n a11y-label={i18n.t('input.clear')}\n onClick={this.clear.bind(this)}\n data-dropdown-no-close\n ></cat-button>\n )}\n {this.invalid && <cat-icon icon=\"$cat:input-error\" class=\"icon-suffix cat-text-danger\" size=\"l\"></cat-icon>}\n </div>\n </div>\n {this.hasHint && (\n <CatFormHint\n id={this.id}\n hint={this.hint}\n slottedHint={this.hasSlottedHint && <slot name=\"hint\"></slot>}\n errorMap={this.errorMap}\n />\n )}\n </Host>\n );\n }\n\n private get hasHint() {\n return !!this.hint || !!this.hasSlottedHint || this.invalid;\n }\n\n private get invalid() {\n return this.errorMap === true || !!Object.keys(this.errorMap || {}).length;\n }\n\n private onInput() {\n const currentValue = [\n ...new Set(this.input?.value?.split(this.createSplitRegex(this.tagCreationChars)) ?? [])\n ].filter(value => !!value && !this.value?.includes(value));\n if (currentValue.length > 1) {\n this.value = [...(this.value ?? []), ...currentValue];\n this.catChange.emit(this.value);\n if (this.input) {\n this.input.value = '';\n }\n }\n }\n\n private onBlur() {\n if (this.addOnBlur) {\n this.addInputValue();\n }\n }\n\n private addInputValue() {\n const inputValue = this.input?.value.trim();\n if (inputValue && !this.value?.includes(inputValue)) {\n this.value = [...(this.value ?? []), inputValue];\n this.catChange.emit(this.value);\n }\n if (this.input) {\n this.input.value = '';\n }\n }\n\n private clear() {\n this.value = [];\n this.catChange.emit(this.value);\n if (this.input) {\n this.input.value = '';\n }\n }\n\n private deselect(value: string) {\n this.value = this.value?.filter(element => element !== value);\n this.catChange.emit(this.value);\n }\n\n private showErrors() {\n this.errorMap = this.errorMapSrc;\n }\n\n private errorUpdateTimeoutId?: number;\n private showErrorsIfTimeout() {\n const errorUpdate = coerceNumber(this.errorUpdate, null);\n if (errorUpdate !== null) {\n typeof this.errorUpdateTimeoutId === 'number' && window.clearTimeout(this.errorUpdateTimeoutId);\n this.errorUpdateTimeoutId = window.setTimeout(() => this.showErrors(), errorUpdate);\n return true;\n }\n return false;\n }\n\n private showErrorsIfNoFocus() {\n const hasFocus = document.activeElement === this.hostElement || document.activeElement === this.input;\n if (!hasFocus) {\n this.showErrors();\n }\n }\n\n private createSplitRegex(delimiters: string[]): RegExp {\n // Escape special regex characters in the array\n const escapedDelimiters = delimiters.map(delimiter => delimiter.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'));\n\n // Add newline characters to the list of delimiters\n escapedDelimiters.push('\\\\n', '\\\\r');\n\n // Join the escaped delimiters to create a character class\n const regexPattern = `[${escapedDelimiters.join('')}]`;\n\n return new RegExp(regexPattern, 'g');\n }\n}\n"]}
|
|
@@ -177,7 +177,6 @@ export class CatTextarea {
|
|
|
177
177
|
return {
|
|
178
178
|
"requiredMarker": {
|
|
179
179
|
"type": "string",
|
|
180
|
-
"attribute": "required-marker",
|
|
181
180
|
"mutable": false,
|
|
182
181
|
"complexType": {
|
|
183
182
|
"original": "'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!'",
|
|
@@ -193,11 +192,11 @@ export class CatTextarea {
|
|
|
193
192
|
"getter": false,
|
|
194
193
|
"setter": false,
|
|
195
194
|
"reflect": false,
|
|
195
|
+
"attribute": "required-marker",
|
|
196
196
|
"defaultValue": "'optional'"
|
|
197
197
|
},
|
|
198
198
|
"horizontal": {
|
|
199
199
|
"type": "boolean",
|
|
200
|
-
"attribute": "horizontal",
|
|
201
200
|
"mutable": false,
|
|
202
201
|
"complexType": {
|
|
203
202
|
"original": "boolean",
|
|
@@ -212,11 +211,11 @@ export class CatTextarea {
|
|
|
212
211
|
},
|
|
213
212
|
"getter": false,
|
|
214
213
|
"setter": false,
|
|
215
|
-
"reflect": false
|
|
214
|
+
"reflect": false,
|
|
215
|
+
"attribute": "horizontal"
|
|
216
216
|
},
|
|
217
217
|
"fallbackHorizontal": {
|
|
218
218
|
"type": "boolean",
|
|
219
|
-
"attribute": "fallback-horizontal",
|
|
220
219
|
"mutable": false,
|
|
221
220
|
"complexType": {
|
|
222
221
|
"original": "boolean",
|
|
@@ -234,11 +233,11 @@ export class CatTextarea {
|
|
|
234
233
|
},
|
|
235
234
|
"getter": false,
|
|
236
235
|
"setter": false,
|
|
237
|
-
"reflect": false
|
|
236
|
+
"reflect": false,
|
|
237
|
+
"attribute": "fallback-horizontal"
|
|
238
238
|
},
|
|
239
239
|
"autoComplete": {
|
|
240
240
|
"type": "string",
|
|
241
|
-
"attribute": "auto-complete",
|
|
242
241
|
"mutable": false,
|
|
243
242
|
"complexType": {
|
|
244
243
|
"original": "string",
|
|
@@ -253,11 +252,11 @@ export class CatTextarea {
|
|
|
253
252
|
},
|
|
254
253
|
"getter": false,
|
|
255
254
|
"setter": false,
|
|
256
|
-
"reflect": false
|
|
255
|
+
"reflect": false,
|
|
256
|
+
"attribute": "auto-complete"
|
|
257
257
|
},
|
|
258
258
|
"disabled": {
|
|
259
259
|
"type": "boolean",
|
|
260
|
-
"attribute": "disabled",
|
|
261
260
|
"mutable": false,
|
|
262
261
|
"complexType": {
|
|
263
262
|
"original": "boolean",
|
|
@@ -273,11 +272,11 @@ export class CatTextarea {
|
|
|
273
272
|
"getter": false,
|
|
274
273
|
"setter": false,
|
|
275
274
|
"reflect": false,
|
|
275
|
+
"attribute": "disabled",
|
|
276
276
|
"defaultValue": "false"
|
|
277
277
|
},
|
|
278
278
|
"hint": {
|
|
279
279
|
"type": "string",
|
|
280
|
-
"attribute": "hint",
|
|
281
280
|
"mutable": false,
|
|
282
281
|
"complexType": {
|
|
283
282
|
"original": "string | string[]",
|
|
@@ -292,11 +291,11 @@ export class CatTextarea {
|
|
|
292
291
|
},
|
|
293
292
|
"getter": false,
|
|
294
293
|
"setter": false,
|
|
295
|
-
"reflect": false
|
|
294
|
+
"reflect": false,
|
|
295
|
+
"attribute": "hint"
|
|
296
296
|
},
|
|
297
297
|
"identifier": {
|
|
298
298
|
"type": "string",
|
|
299
|
-
"attribute": "identifier",
|
|
300
299
|
"mutable": false,
|
|
301
300
|
"complexType": {
|
|
302
301
|
"original": "string",
|
|
@@ -311,11 +310,11 @@ export class CatTextarea {
|
|
|
311
310
|
},
|
|
312
311
|
"getter": false,
|
|
313
312
|
"setter": false,
|
|
314
|
-
"reflect": false
|
|
313
|
+
"reflect": false,
|
|
314
|
+
"attribute": "identifier"
|
|
315
315
|
},
|
|
316
316
|
"label": {
|
|
317
317
|
"type": "string",
|
|
318
|
-
"attribute": "label",
|
|
319
318
|
"mutable": false,
|
|
320
319
|
"complexType": {
|
|
321
320
|
"original": "string",
|
|
@@ -331,11 +330,11 @@ export class CatTextarea {
|
|
|
331
330
|
"getter": false,
|
|
332
331
|
"setter": false,
|
|
333
332
|
"reflect": false,
|
|
333
|
+
"attribute": "label",
|
|
334
334
|
"defaultValue": "''"
|
|
335
335
|
},
|
|
336
336
|
"labelHidden": {
|
|
337
337
|
"type": "boolean",
|
|
338
|
-
"attribute": "label-hidden",
|
|
339
338
|
"mutable": false,
|
|
340
339
|
"complexType": {
|
|
341
340
|
"original": "boolean",
|
|
@@ -351,11 +350,11 @@ export class CatTextarea {
|
|
|
351
350
|
"getter": false,
|
|
352
351
|
"setter": false,
|
|
353
352
|
"reflect": false,
|
|
353
|
+
"attribute": "label-hidden",
|
|
354
354
|
"defaultValue": "false"
|
|
355
355
|
},
|
|
356
356
|
"maxLength": {
|
|
357
357
|
"type": "number",
|
|
358
|
-
"attribute": "max-length",
|
|
359
358
|
"mutable": false,
|
|
360
359
|
"complexType": {
|
|
361
360
|
"original": "number",
|
|
@@ -370,11 +369,11 @@ export class CatTextarea {
|
|
|
370
369
|
},
|
|
371
370
|
"getter": false,
|
|
372
371
|
"setter": false,
|
|
373
|
-
"reflect": false
|
|
372
|
+
"reflect": false,
|
|
373
|
+
"attribute": "max-length"
|
|
374
374
|
},
|
|
375
375
|
"minLength": {
|
|
376
376
|
"type": "number",
|
|
377
|
-
"attribute": "min-length",
|
|
378
377
|
"mutable": false,
|
|
379
378
|
"complexType": {
|
|
380
379
|
"original": "number",
|
|
@@ -389,11 +388,11 @@ export class CatTextarea {
|
|
|
389
388
|
},
|
|
390
389
|
"getter": false,
|
|
391
390
|
"setter": false,
|
|
392
|
-
"reflect": false
|
|
391
|
+
"reflect": false,
|
|
392
|
+
"attribute": "min-length"
|
|
393
393
|
},
|
|
394
394
|
"name": {
|
|
395
395
|
"type": "string",
|
|
396
|
-
"attribute": "name",
|
|
397
396
|
"mutable": false,
|
|
398
397
|
"complexType": {
|
|
399
398
|
"original": "string",
|
|
@@ -408,11 +407,11 @@ export class CatTextarea {
|
|
|
408
407
|
},
|
|
409
408
|
"getter": false,
|
|
410
409
|
"setter": false,
|
|
411
|
-
"reflect": false
|
|
410
|
+
"reflect": false,
|
|
411
|
+
"attribute": "name"
|
|
412
412
|
},
|
|
413
413
|
"placeholder": {
|
|
414
414
|
"type": "string",
|
|
415
|
-
"attribute": "placeholder",
|
|
416
415
|
"mutable": false,
|
|
417
416
|
"complexType": {
|
|
418
417
|
"original": "string",
|
|
@@ -427,11 +426,11 @@ export class CatTextarea {
|
|
|
427
426
|
},
|
|
428
427
|
"getter": false,
|
|
429
428
|
"setter": false,
|
|
430
|
-
"reflect": false
|
|
429
|
+
"reflect": false,
|
|
430
|
+
"attribute": "placeholder"
|
|
431
431
|
},
|
|
432
432
|
"readonly": {
|
|
433
433
|
"type": "boolean",
|
|
434
|
-
"attribute": "readonly",
|
|
435
434
|
"mutable": false,
|
|
436
435
|
"complexType": {
|
|
437
436
|
"original": "boolean",
|
|
@@ -447,11 +446,11 @@ export class CatTextarea {
|
|
|
447
446
|
"getter": false,
|
|
448
447
|
"setter": false,
|
|
449
448
|
"reflect": false,
|
|
449
|
+
"attribute": "readonly",
|
|
450
450
|
"defaultValue": "false"
|
|
451
451
|
},
|
|
452
452
|
"required": {
|
|
453
453
|
"type": "boolean",
|
|
454
|
-
"attribute": "required",
|
|
455
454
|
"mutable": false,
|
|
456
455
|
"complexType": {
|
|
457
456
|
"original": "boolean",
|
|
@@ -467,11 +466,11 @@ export class CatTextarea {
|
|
|
467
466
|
"getter": false,
|
|
468
467
|
"setter": false,
|
|
469
468
|
"reflect": false,
|
|
469
|
+
"attribute": "required",
|
|
470
470
|
"defaultValue": "false"
|
|
471
471
|
},
|
|
472
472
|
"rows": {
|
|
473
473
|
"type": "number",
|
|
474
|
-
"attribute": "rows",
|
|
475
474
|
"mutable": false,
|
|
476
475
|
"complexType": {
|
|
477
476
|
"original": "number",
|
|
@@ -487,11 +486,11 @@ export class CatTextarea {
|
|
|
487
486
|
"getter": false,
|
|
488
487
|
"setter": false,
|
|
489
488
|
"reflect": false,
|
|
489
|
+
"attribute": "rows",
|
|
490
490
|
"defaultValue": "3"
|
|
491
491
|
},
|
|
492
492
|
"value": {
|
|
493
493
|
"type": "string",
|
|
494
|
-
"attribute": "value",
|
|
495
494
|
"mutable": true,
|
|
496
495
|
"complexType": {
|
|
497
496
|
"original": "string",
|
|
@@ -506,11 +505,11 @@ export class CatTextarea {
|
|
|
506
505
|
},
|
|
507
506
|
"getter": false,
|
|
508
507
|
"setter": false,
|
|
509
|
-
"reflect": false
|
|
508
|
+
"reflect": false,
|
|
509
|
+
"attribute": "value"
|
|
510
510
|
},
|
|
511
511
|
"errors": {
|
|
512
512
|
"type": "boolean",
|
|
513
|
-
"attribute": "errors",
|
|
514
513
|
"mutable": false,
|
|
515
514
|
"complexType": {
|
|
516
515
|
"original": "boolean | string[] | ErrorMap",
|
|
@@ -531,11 +530,11 @@ export class CatTextarea {
|
|
|
531
530
|
},
|
|
532
531
|
"getter": false,
|
|
533
532
|
"setter": false,
|
|
534
|
-
"reflect": false
|
|
533
|
+
"reflect": false,
|
|
534
|
+
"attribute": "errors"
|
|
535
535
|
},
|
|
536
536
|
"errorUpdate": {
|
|
537
537
|
"type": "any",
|
|
538
|
-
"attribute": "error-update",
|
|
539
538
|
"mutable": false,
|
|
540
539
|
"complexType": {
|
|
541
540
|
"original": "boolean | number",
|
|
@@ -551,11 +550,11 @@ export class CatTextarea {
|
|
|
551
550
|
"getter": false,
|
|
552
551
|
"setter": false,
|
|
553
552
|
"reflect": false,
|
|
553
|
+
"attribute": "error-update",
|
|
554
554
|
"defaultValue": "0"
|
|
555
555
|
},
|
|
556
556
|
"nativeAttributes": {
|
|
557
557
|
"type": "unknown",
|
|
558
|
-
"attribute": "native-attributes",
|
|
559
558
|
"mutable": false,
|
|
560
559
|
"complexType": {
|
|
561
560
|
"original": "{ [key: string]: string }",
|
|
@@ -573,7 +572,6 @@ export class CatTextarea {
|
|
|
573
572
|
},
|
|
574
573
|
"testId": {
|
|
575
574
|
"type": "string",
|
|
576
|
-
"attribute": "test-id",
|
|
577
575
|
"mutable": false,
|
|
578
576
|
"complexType": {
|
|
579
577
|
"original": "string",
|
|
@@ -588,7 +586,8 @@ export class CatTextarea {
|
|
|
588
586
|
},
|
|
589
587
|
"getter": false,
|
|
590
588
|
"setter": false,
|
|
591
|
-
"reflect": false
|
|
589
|
+
"reflect": false,
|
|
590
|
+
"attribute": "test-id"
|
|
592
591
|
}
|
|
593
592
|
};
|
|
594
593
|
}
|