@ds-autonomie/web-components 1.3.0 → 1.4.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/CHANGELOG.md +13 -0
- package/dist/chunks/{chunk.J2XNYTTZ.js → chunk.3GJ3KGGY.js} +2 -18
- package/dist/chunks/{chunk.YHOA7MQN.js → chunk.4TRQBTMY.js} +67 -56
- package/dist/chunks/{chunk.SQMWMSBA.js → chunk.7OLEA3GQ.js} +33 -3
- package/dist/chunks/{chunk.UPYCV66H.js → chunk.A3UKO7AU.js} +1 -1
- package/dist/chunks/{chunk.QDZXNGR6.js → chunk.BL4IZFBA.js} +1 -1
- package/dist/chunks/{chunk.EM4JONLW.js → chunk.C7CCBBLF.js} +1 -1
- package/dist/chunks/{chunk.JJLAOWR2.js → chunk.GY5KJYSY.js} +1 -1
- package/dist/chunks/chunk.H2JSXKGD.js +83 -0
- package/dist/chunks/{chunk.ZKYSHEVZ.js → chunk.IER4ZBFV.js} +3 -1
- package/dist/chunks/{chunk.YEVEBKAC.js → chunk.IV2XMACC.js} +60 -58
- package/dist/chunks/{chunk.J6XP4AFN.js → chunk.N7ZCXHGU.js} +1 -1
- package/dist/chunks/{chunk.WFJLQFI3.js → chunk.O4XPNLT4.js} +2 -0
- package/dist/chunks/chunk.RCSAV4XJ.js +99 -0
- package/dist/chunks/{chunk.FN42VBEO.js → chunk.TSK67ZZE.js} +5 -5
- package/dist/chunks/{chunk.DRGGQ4WL.js → chunk.UCJGKOXX.js} +1 -0
- package/dist/components/accordion/accordion.js +3 -3
- package/dist/components/alert/alert.js +5 -5
- package/dist/components/anchor-tag/anchor-tag.d.ts +42 -0
- package/dist/components/anchor-tag/anchor-tag.js +11 -0
- package/dist/components/anchor-tag/anchor-tag.styles.d.ts +2 -0
- package/dist/components/anchor-tag/anchor-tag.styles.js +8 -0
- package/dist/components/animation/animation.js +2 -2
- package/dist/components/avatar/avatar.js +5 -5
- package/dist/components/breadcrumb/breadcrumb.js +3 -3
- package/dist/components/button/button.js +6 -6
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/checkbox/checkbox.js +7 -7
- package/dist/components/checkbox-button/checkbox-button.js +6 -6
- package/dist/components/checkbox-button/checkbox-button.styles.js +2 -2
- package/dist/components/checkbox-group/checkbox-group.js +2 -2
- package/dist/components/combobox/combobox.js +8 -8
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/dialog/dialog.js +6 -6
- package/dist/components/drawer/drawer.js +6 -6
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/input/input.js +7 -7
- package/dist/components/input-mask/input-mask.configs.d.ts +1 -0
- package/dist/components/input-mask/input-mask.configs.js +1 -1
- package/dist/components/input-mask/input-mask.d.ts +30 -6
- package/dist/components/input-mask/input-mask.js +4 -4
- package/dist/components/input-mask/input-mask.utils.d.ts +7 -1
- package/dist/components/input-mask/input-mask.utils.js +7 -3
- package/dist/components/input-phone/input-phone.configs.d.ts +1 -0
- package/dist/components/input-phone/input-phone.configs.js +1 -1
- package/dist/components/input-phone/input-phone.d.ts +3 -3
- package/dist/components/input-phone/input-phone.js +13 -13
- package/dist/components/menu-item/menu-item.js +3 -3
- package/dist/components/option/option.js +3 -3
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/radio/radio.js +3 -3
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-button/radio-button.styles.js +2 -2
- package/dist/components/radio-group/radio-group.js +1 -1
- package/dist/components/select/select.js +7 -7
- package/dist/components/step/step.js +3 -3
- package/dist/components/tag/tag.js +5 -5
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tree/tree.js +7 -7
- package/dist/components/tree-item/tree-item.js +7 -7
- package/dist/custom-elements.json +343 -71
- package/dist/design-system.d.ts +1 -0
- package/dist/design-system.js +87 -82
- package/dist/themes/dsa-wc-theme.css +2 -0
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +2 -0
- package/dist/vscode.html-custom-data.json +68 -11
- package/dist/web-types.json +200 -39
- package/package.json +1 -1
- package/dist/chunks/{chunk.3Y4CKW7H.js → chunk.3Y56GJS7.js} +6 -6
- package/dist/chunks/{chunk.XYHFMIYJ.js → chunk.5ND4OP7Q.js} +3 -3
- package/dist/chunks/{chunk.ZW4JE66G.js → chunk.AO3M5GSN.js} +3 -3
- package/dist/chunks/{chunk.Y3VP37FX.js → chunk.D2QVNPSR.js} +6 -6
- package/dist/chunks/{chunk.JKHFW3KV.js → chunk.DXP3BNWO.js} +3 -3
- package/dist/chunks/{chunk.GP5Z27QB.js → chunk.F6FCZQ67.js} +5 -5
- package/dist/chunks/{chunk.EDRQ2QWB.js → chunk.N3ADQCT7.js} +3 -3
- package/dist/chunks/{chunk.KAQ2HMPU.js → chunk.PCT24AYO.js} +3 -3
- package/dist/chunks/{chunk.2R6P5TGQ.js → chunk.PEAFJZ6C.js} +3 -3
- package/dist/chunks/{chunk.WC7TOR3H.js → chunk.WF42CVOM.js} +6 -6
- package/dist/chunks/{chunk.76JEX27F.js → chunk.XCG5TV7T.js} +3 -3
|
@@ -394,6 +394,246 @@
|
|
|
394
394
|
}
|
|
395
395
|
]
|
|
396
396
|
},
|
|
397
|
+
{
|
|
398
|
+
"kind": "javascript-module",
|
|
399
|
+
"path": "components/anchor-tag/anchor-tag.js",
|
|
400
|
+
"declarations": [
|
|
401
|
+
{
|
|
402
|
+
"kind": "class",
|
|
403
|
+
"description": "",
|
|
404
|
+
"name": "DSAAnchorTag",
|
|
405
|
+
"slots": [
|
|
406
|
+
{
|
|
407
|
+
"description": "Used to prepend a presentational icon or similar element to the input.",
|
|
408
|
+
"name": "prefix"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"description": "Used to append a presentational icon or similar element to the input.",
|
|
412
|
+
"name": "suffix"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"members": [
|
|
416
|
+
{
|
|
417
|
+
"kind": "field",
|
|
418
|
+
"name": "label",
|
|
419
|
+
"type": {
|
|
420
|
+
"text": "string"
|
|
421
|
+
},
|
|
422
|
+
"default": "''",
|
|
423
|
+
"attribute": "label"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"kind": "field",
|
|
427
|
+
"name": "href",
|
|
428
|
+
"type": {
|
|
429
|
+
"text": "string"
|
|
430
|
+
},
|
|
431
|
+
"default": "''",
|
|
432
|
+
"description": "Makes the tag clickable and acts as a link. Specifies the URL of the page the link goes to.",
|
|
433
|
+
"attribute": "href"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"kind": "field",
|
|
437
|
+
"name": "rel",
|
|
438
|
+
"type": {
|
|
439
|
+
"text": "string"
|
|
440
|
+
},
|
|
441
|
+
"default": "''",
|
|
442
|
+
"description": "Determines the relationship between the current document and the linked document",
|
|
443
|
+
"attribute": "rel"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"kind": "field",
|
|
447
|
+
"name": "referrerpolicy",
|
|
448
|
+
"type": {
|
|
449
|
+
"text": "string"
|
|
450
|
+
},
|
|
451
|
+
"default": "''",
|
|
452
|
+
"description": "Specifies which referrer information to send with the link",
|
|
453
|
+
"attribute": "referrerpolicy"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"kind": "field",
|
|
457
|
+
"name": "hreflang",
|
|
458
|
+
"type": {
|
|
459
|
+
"text": "string"
|
|
460
|
+
},
|
|
461
|
+
"default": "''",
|
|
462
|
+
"description": "Specifies the language of the linked document",
|
|
463
|
+
"attribute": "hreflang"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"kind": "field",
|
|
467
|
+
"name": "ping",
|
|
468
|
+
"type": {
|
|
469
|
+
"text": "string"
|
|
470
|
+
},
|
|
471
|
+
"default": "''",
|
|
472
|
+
"description": "Allows a space-separated list of URLs to which, when the link is followed, post requests with the body ping will be sent by the browser (in the background). Typically used for tracking.",
|
|
473
|
+
"attribute": "ping"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"kind": "field",
|
|
477
|
+
"name": "download",
|
|
478
|
+
"type": {
|
|
479
|
+
"text": "string"
|
|
480
|
+
},
|
|
481
|
+
"default": "''",
|
|
482
|
+
"description": "Specifies that the target will be downloaded when a user clicks on the hyperlink",
|
|
483
|
+
"attribute": "download"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"kind": "field",
|
|
487
|
+
"name": "type",
|
|
488
|
+
"type": {
|
|
489
|
+
"text": "string"
|
|
490
|
+
},
|
|
491
|
+
"default": "''",
|
|
492
|
+
"description": "Defines the media type of the linked document",
|
|
493
|
+
"attribute": "type"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"kind": "field",
|
|
497
|
+
"name": "target",
|
|
498
|
+
"type": {
|
|
499
|
+
"text": "'_blank' | '_parent' | '_self' | '_top'"
|
|
500
|
+
},
|
|
501
|
+
"default": "'_self'",
|
|
502
|
+
"description": "Specifies where to open the linked document. Works when tag is clickable.",
|
|
503
|
+
"attribute": "target"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"kind": "field",
|
|
507
|
+
"name": "size",
|
|
508
|
+
"type": {
|
|
509
|
+
"text": "'small' | 'medium' | 'large'"
|
|
510
|
+
},
|
|
511
|
+
"default": "'medium'",
|
|
512
|
+
"description": "The tag's size.",
|
|
513
|
+
"attribute": "size",
|
|
514
|
+
"reflects": true
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"attributes": [
|
|
518
|
+
{
|
|
519
|
+
"name": "label",
|
|
520
|
+
"type": {
|
|
521
|
+
"text": "string"
|
|
522
|
+
},
|
|
523
|
+
"default": "''",
|
|
524
|
+
"fieldName": "label"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "href",
|
|
528
|
+
"type": {
|
|
529
|
+
"text": "string"
|
|
530
|
+
},
|
|
531
|
+
"default": "''",
|
|
532
|
+
"description": "Makes the tag clickable and acts as a link. Specifies the URL of the page the link goes to.",
|
|
533
|
+
"fieldName": "href"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"name": "rel",
|
|
537
|
+
"type": {
|
|
538
|
+
"text": "string"
|
|
539
|
+
},
|
|
540
|
+
"default": "''",
|
|
541
|
+
"description": "Determines the relationship between the current document and the linked document",
|
|
542
|
+
"fieldName": "rel"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"name": "referrerpolicy",
|
|
546
|
+
"type": {
|
|
547
|
+
"text": "string"
|
|
548
|
+
},
|
|
549
|
+
"default": "''",
|
|
550
|
+
"description": "Specifies which referrer information to send with the link",
|
|
551
|
+
"fieldName": "referrerpolicy"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "hreflang",
|
|
555
|
+
"type": {
|
|
556
|
+
"text": "string"
|
|
557
|
+
},
|
|
558
|
+
"default": "''",
|
|
559
|
+
"description": "Specifies the language of the linked document",
|
|
560
|
+
"fieldName": "hreflang"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"name": "ping",
|
|
564
|
+
"type": {
|
|
565
|
+
"text": "string"
|
|
566
|
+
},
|
|
567
|
+
"default": "''",
|
|
568
|
+
"description": "Allows a space-separated list of URLs to which, when the link is followed, post requests with the body ping will be sent by the browser (in the background). Typically used for tracking.",
|
|
569
|
+
"fieldName": "ping"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "download",
|
|
573
|
+
"type": {
|
|
574
|
+
"text": "string"
|
|
575
|
+
},
|
|
576
|
+
"default": "''",
|
|
577
|
+
"description": "Specifies that the target will be downloaded when a user clicks on the hyperlink",
|
|
578
|
+
"fieldName": "download"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"name": "type",
|
|
582
|
+
"type": {
|
|
583
|
+
"text": "string"
|
|
584
|
+
},
|
|
585
|
+
"default": "''",
|
|
586
|
+
"description": "Defines the media type of the linked document",
|
|
587
|
+
"fieldName": "type"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"name": "target",
|
|
591
|
+
"type": {
|
|
592
|
+
"text": "'_blank' | '_parent' | '_self' | '_top'"
|
|
593
|
+
},
|
|
594
|
+
"default": "'_self'",
|
|
595
|
+
"description": "Specifies where to open the linked document. Works when tag is clickable.",
|
|
596
|
+
"fieldName": "target"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"name": "size",
|
|
600
|
+
"type": {
|
|
601
|
+
"text": "'small' | 'medium' | 'large'"
|
|
602
|
+
},
|
|
603
|
+
"default": "'medium'",
|
|
604
|
+
"description": "The tag's size.",
|
|
605
|
+
"fieldName": "size"
|
|
606
|
+
}
|
|
607
|
+
],
|
|
608
|
+
"superclass": {
|
|
609
|
+
"name": "ShoelaceElement",
|
|
610
|
+
"module": "/src/internal/shoelace-element"
|
|
611
|
+
},
|
|
612
|
+
"summary": "Anchor tags are used as a hyperlink, which is used to link from one page to another. It mirrors the visual style of a tag, and the functionnality of a standard HTML anchor tag.",
|
|
613
|
+
"documentation": "undefined",
|
|
614
|
+
"tagName": "dsa-anchor-tag",
|
|
615
|
+
"customElement": true
|
|
616
|
+
}
|
|
617
|
+
],
|
|
618
|
+
"exports": [
|
|
619
|
+
{
|
|
620
|
+
"kind": "js",
|
|
621
|
+
"name": "default",
|
|
622
|
+
"declaration": {
|
|
623
|
+
"name": "DSAAnchorTag",
|
|
624
|
+
"module": "components/anchor-tag/anchor-tag.js"
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"kind": "custom-element-definition",
|
|
629
|
+
"name": "dsa-anchor-tag",
|
|
630
|
+
"declaration": {
|
|
631
|
+
"name": "DSAAnchorTag",
|
|
632
|
+
"module": "components/anchor-tag/anchor-tag.js"
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
]
|
|
636
|
+
},
|
|
397
637
|
{
|
|
398
638
|
"kind": "javascript-module",
|
|
399
639
|
"path": "components/animation/animation.js",
|
|
@@ -7517,7 +7757,7 @@
|
|
|
7517
7757
|
"type": {
|
|
7518
7758
|
"text": "DSAMaskConfig"
|
|
7519
7759
|
},
|
|
7520
|
-
"default": "{\n placeholder: '____ ____ ____ ____ ____ ____ ____ ___',\n pattern:\n '^(?:((?:IT|SM)\\\\d{2}[A-Z]{1}\\\\d{22})|(NL\\\\d{2}[A-Z]{4}\\\\d{10})|(LV\\\\d{2}[A-Z]{4}\\\\d{13})|((?:BG|GB|IE)\\\\d{2}[A-Z]{4}\\\\d{14})|(GI\\\\d{2}[A-Z]{4}\\\\d{15})|(RO\\\\d{2}[A-Z]{4}\\\\d{16})|(MT\\\\d{2}[A-Z]{4}\\\\d{23})|(NO\\\\d{13})|((?:DK|FI)\\\\d{16})|((?:SI)\\\\d{17})|((?:AT|EE|LU|LT)\\\\d{18})|((?:HR|LI|CH)\\\\d{19})|((?:DE|VA)\\\\d{20})|((?:AD|CZ|ES|MD|SK|SE)\\\\d{22})|(PT\\\\d{23})|((?:IS)\\\\d{24})|((?:BE)\\\\d{14})|((?:FR|MC|GR)\\\\d{25})|((?:PL|HU|CY)\\\\d{26}))$',\n 'help-text': `
|
|
7760
|
+
"default": "{\n placeholder: '____ ____ ____ ____ ____ ____ ____ ___',\n mask: 'LL__ ____ ____ ____ ____ ____ ____ ___',\n pattern:\n '^(?:((?:IT|SM)\\\\d{2}[A-Z]{1}\\\\d{22})|(NL\\\\d{2}[A-Z]{4}\\\\d{10})|(LV\\\\d{2}[A-Z]{4}\\\\d{13})|((?:BG|GB|IE)\\\\d{2}[A-Z]{4}\\\\d{14})|(GI\\\\d{2}[A-Z]{4}\\\\d{15})|(RO\\\\d{2}[A-Z]{4}\\\\d{16})|(MT\\\\d{2}[A-Z]{4}\\\\d{23})|(NO\\\\d{13})|((?:DK|FI)\\\\d{16})|((?:SI)\\\\d{17})|((?:AT|EE|LU|LT)\\\\d{18})|((?:HR|LI|CH)\\\\d{19})|((?:DE|VA)\\\\d{20})|((?:AD|CZ|ES|MD|SK|SE)\\\\d{22})|(PT\\\\d{23})|((?:IS)\\\\d{24})|((?:BE)\\\\d{14})|((?:FR|MC|GR)\\\\d{25})|((?:PL|HU|CY)\\\\d{26}))$',\n 'help-text': `Indicatif pays en 2 lettres majuscules suivi de 10 à 31 charactères numériques`,\n}",
|
|
7521
7761
|
"description": "Input Mask configuration for IBAN from countries within the SEPA area."
|
|
7522
7762
|
},
|
|
7523
7763
|
{
|
|
@@ -7535,7 +7775,7 @@
|
|
|
7535
7775
|
"type": {
|
|
7536
7776
|
"text": "DSAMaskConfig"
|
|
7537
7777
|
},
|
|
7538
|
-
"default": "{\n placeholder: '_ __ __ __ ___ ___ __',\n pattern: `[12][0-9]{2}(0[1-9]|1[0-2])(2[AB]|[0-9]{2})[0-9]{3}[0-9]{3}([0-9]{2})`,\n 'help-text': '15 charactères',\n}",
|
|
7778
|
+
"default": "{\n placeholder: '_ __ __ __ ___ ___ __',\n mask: '# ## ## ## ### ### ##',\n pattern: `[12][0-9]{2}(0[1-9]|1[0-2])(2[AB]|[0-9]{2})[0-9]{3}[0-9]{3}([0-9]{2})`,\n 'help-text': '15 charactères',\n}",
|
|
7539
7779
|
"description": "Input Mask configuration for NIR"
|
|
7540
7780
|
}
|
|
7541
7781
|
],
|
|
@@ -7630,6 +7870,15 @@
|
|
|
7630
7870
|
"privacy": "private",
|
|
7631
7871
|
"default": "false"
|
|
7632
7872
|
},
|
|
7873
|
+
{
|
|
7874
|
+
"kind": "field",
|
|
7875
|
+
"name": "maskedValue",
|
|
7876
|
+
"type": {
|
|
7877
|
+
"text": "string"
|
|
7878
|
+
},
|
|
7879
|
+
"privacy": "private",
|
|
7880
|
+
"default": "''"
|
|
7881
|
+
},
|
|
7633
7882
|
{
|
|
7634
7883
|
"kind": "field",
|
|
7635
7884
|
"name": "title",
|
|
@@ -7739,7 +7988,7 @@
|
|
|
7739
7988
|
"text": "string"
|
|
7740
7989
|
},
|
|
7741
7990
|
"default": "''",
|
|
7742
|
-
"description": "Placeholder text to show as a hint
|
|
7991
|
+
"description": "Placeholder text to show as a hint. You can use it as a template to mask the value.\nIf it is only use as a guidance on what information is expected, use `mask` attribute to define a specific format to mask the value.",
|
|
7743
7992
|
"attribute": "placeholder"
|
|
7744
7993
|
},
|
|
7745
7994
|
{
|
|
@@ -7753,17 +8002,6 @@
|
|
|
7753
8002
|
"attribute": "readonly",
|
|
7754
8003
|
"reflects": true
|
|
7755
8004
|
},
|
|
7756
|
-
{
|
|
7757
|
-
"kind": "field",
|
|
7758
|
-
"name": "validate",
|
|
7759
|
-
"type": {
|
|
7760
|
-
"text": "boolean"
|
|
7761
|
-
},
|
|
7762
|
-
"default": "false",
|
|
7763
|
-
"description": "Will check the enterred value against the passed pattern",
|
|
7764
|
-
"attribute": "validate",
|
|
7765
|
-
"reflects": true
|
|
7766
|
-
},
|
|
7767
8005
|
{
|
|
7768
8006
|
"kind": "field",
|
|
7769
8007
|
"name": "error",
|
|
@@ -7772,8 +8010,7 @@
|
|
|
7772
8010
|
},
|
|
7773
8011
|
"default": "false",
|
|
7774
8012
|
"description": "Indicates whether the input should be in error state",
|
|
7775
|
-
"attribute": "error"
|
|
7776
|
-
"reflects": true
|
|
8013
|
+
"attribute": "error"
|
|
7777
8014
|
},
|
|
7778
8015
|
{
|
|
7779
8016
|
"kind": "field",
|
|
@@ -7822,6 +8059,7 @@
|
|
|
7822
8059
|
"type": {
|
|
7823
8060
|
"text": "string"
|
|
7824
8061
|
},
|
|
8062
|
+
"default": "''",
|
|
7825
8063
|
"description": "A regular expression pattern to validate input against.",
|
|
7826
8064
|
"attribute": "pattern"
|
|
7827
8065
|
},
|
|
@@ -7870,6 +8108,17 @@
|
|
|
7870
8108
|
"description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
|
|
7871
8109
|
"attribute": "enterkeyhint"
|
|
7872
8110
|
},
|
|
8111
|
+
{
|
|
8112
|
+
"kind": "field",
|
|
8113
|
+
"name": "mask",
|
|
8114
|
+
"type": {
|
|
8115
|
+
"text": "string"
|
|
8116
|
+
},
|
|
8117
|
+
"default": "''",
|
|
8118
|
+
"description": "Used to define the allowed or expected characters within a string or data input. It specifies the permissible characters that can be present at specific positions within a sequence.\nIt should follow the format defined by the placeholder, but with its own permissible characters.\n\n- all characters: includes any character, whether it's a letter, number.\n```ts\n'_'\n```\n- numeric characters: specifies numeric values that can be included.\n```ts\n'#dDmMyYaA09'\n```\n- letter characters: denotes alphabetic characters allowed in the sequence.\n```ts\n'?LaA'\n```\n\n- example including only numeric values\n```html\n<dsa-input-mask placeholder=\"dd/mm/yy\" mask=\"##/##/##\" />\n```",
|
|
8119
|
+
"attribute": "mask",
|
|
8120
|
+
"reflects": true
|
|
8121
|
+
},
|
|
7873
8122
|
{
|
|
7874
8123
|
"kind": "field",
|
|
7875
8124
|
"name": "validity",
|
|
@@ -7884,17 +8133,17 @@
|
|
|
7884
8133
|
},
|
|
7885
8134
|
{
|
|
7886
8135
|
"kind": "method",
|
|
7887
|
-
"name": "
|
|
8136
|
+
"name": "handleDocumentKeyUp",
|
|
7888
8137
|
"privacy": "private"
|
|
7889
8138
|
},
|
|
7890
8139
|
{
|
|
7891
8140
|
"kind": "method",
|
|
7892
|
-
"name": "
|
|
8141
|
+
"name": "handleBlur",
|
|
7893
8142
|
"privacy": "private"
|
|
7894
8143
|
},
|
|
7895
8144
|
{
|
|
7896
8145
|
"kind": "method",
|
|
7897
|
-
"name": "
|
|
8146
|
+
"name": "rawValueToMaskedValue",
|
|
7898
8147
|
"privacy": "private",
|
|
7899
8148
|
"parameters": [
|
|
7900
8149
|
{
|
|
@@ -7925,7 +8174,7 @@
|
|
|
7925
8174
|
},
|
|
7926
8175
|
{
|
|
7927
8176
|
"kind": "method",
|
|
7928
|
-
"name": "
|
|
8177
|
+
"name": "handleChange",
|
|
7929
8178
|
"privacy": "private"
|
|
7930
8179
|
},
|
|
7931
8180
|
{
|
|
@@ -8198,7 +8447,7 @@
|
|
|
8198
8447
|
"text": "string"
|
|
8199
8448
|
},
|
|
8200
8449
|
"default": "''",
|
|
8201
|
-
"description": "Placeholder text to show as a hint
|
|
8450
|
+
"description": "Placeholder text to show as a hint. You can use it as a template to mask the value.\nIf it is only use as a guidance on what information is expected, use `mask` attribute to define a specific format to mask the value.",
|
|
8202
8451
|
"fieldName": "placeholder"
|
|
8203
8452
|
},
|
|
8204
8453
|
{
|
|
@@ -8210,15 +8459,6 @@
|
|
|
8210
8459
|
"description": "Makes the input readonly.",
|
|
8211
8460
|
"fieldName": "readonly"
|
|
8212
8461
|
},
|
|
8213
|
-
{
|
|
8214
|
-
"name": "validate",
|
|
8215
|
-
"type": {
|
|
8216
|
-
"text": "boolean"
|
|
8217
|
-
},
|
|
8218
|
-
"default": "false",
|
|
8219
|
-
"description": "Will check the enterred value against the passed pattern",
|
|
8220
|
-
"fieldName": "validate"
|
|
8221
|
-
},
|
|
8222
8462
|
{
|
|
8223
8463
|
"name": "error",
|
|
8224
8464
|
"type": {
|
|
@@ -8268,6 +8508,7 @@
|
|
|
8268
8508
|
"type": {
|
|
8269
8509
|
"text": "string"
|
|
8270
8510
|
},
|
|
8511
|
+
"default": "''",
|
|
8271
8512
|
"description": "A regular expression pattern to validate input against.",
|
|
8272
8513
|
"fieldName": "pattern"
|
|
8273
8514
|
},
|
|
@@ -8310,6 +8551,15 @@
|
|
|
8310
8551
|
},
|
|
8311
8552
|
"description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
|
|
8312
8553
|
"fieldName": "enterkeyhint"
|
|
8554
|
+
},
|
|
8555
|
+
{
|
|
8556
|
+
"name": "mask",
|
|
8557
|
+
"type": {
|
|
8558
|
+
"text": "string"
|
|
8559
|
+
},
|
|
8560
|
+
"default": "''",
|
|
8561
|
+
"description": "Used to define the allowed or expected characters within a string or data input. It specifies the permissible characters that can be present at specific positions within a sequence.\nIt should follow the format defined by the placeholder, but with its own permissible characters.\n\n- all characters: includes any character, whether it's a letter, number.\n```ts\n'_'\n```\n- numeric characters: specifies numeric values that can be included.\n```ts\n'#dDmMyYaA09'\n```\n- letter characters: denotes alphabetic characters allowed in the sequence.\n```ts\n'?LaA'\n```\n\n- example including only numeric values\n```html\n<dsa-input-mask placeholder=\"dd/mm/yy\" mask=\"##/##/##\" />\n```",
|
|
8562
|
+
"fieldName": "mask"
|
|
8313
8563
|
}
|
|
8314
8564
|
],
|
|
8315
8565
|
"superclass": {
|
|
@@ -8351,13 +8601,21 @@
|
|
|
8351
8601
|
{
|
|
8352
8602
|
"kind": "variable",
|
|
8353
8603
|
"name": "specialCharPattern",
|
|
8354
|
-
"default": "/[
|
|
8604
|
+
"default": "/[^a-zA-Z0-9#?_]+/g"
|
|
8355
8605
|
},
|
|
8356
8606
|
{
|
|
8357
8607
|
"kind": "variable",
|
|
8358
8608
|
"name": "normalCharPattern",
|
|
8359
8609
|
"default": "/^[_A-z0-9]*((-)*[_A-z0-9])*$/"
|
|
8360
8610
|
},
|
|
8611
|
+
{
|
|
8612
|
+
"kind": "variable",
|
|
8613
|
+
"name": "maskOptions",
|
|
8614
|
+
"type": {
|
|
8615
|
+
"text": "{\n allChar: '_',\n numericChar: '#dDmMyYaA09',\n alphaChar: '?LaA',\n}"
|
|
8616
|
+
},
|
|
8617
|
+
"default": "{\n allChar: '_',\n numericChar: '#dDmMyYaA09',\n alphaChar: '?LaA',\n}"
|
|
8618
|
+
},
|
|
8361
8619
|
{
|
|
8362
8620
|
"kind": "function",
|
|
8363
8621
|
"name": "stripSpecialChars",
|
|
@@ -8372,7 +8630,7 @@
|
|
|
8372
8630
|
},
|
|
8373
8631
|
{
|
|
8374
8632
|
"kind": "function",
|
|
8375
|
-
"name": "
|
|
8633
|
+
"name": "rawValueToMaskedValue",
|
|
8376
8634
|
"parameters": [
|
|
8377
8635
|
{
|
|
8378
8636
|
"name": "rawValue",
|
|
@@ -8388,6 +8646,24 @@
|
|
|
8388
8646
|
}
|
|
8389
8647
|
]
|
|
8390
8648
|
},
|
|
8649
|
+
{
|
|
8650
|
+
"kind": "function",
|
|
8651
|
+
"name": "maskedValueToRawValue",
|
|
8652
|
+
"parameters": [
|
|
8653
|
+
{
|
|
8654
|
+
"name": "value",
|
|
8655
|
+
"type": {
|
|
8656
|
+
"text": "string"
|
|
8657
|
+
}
|
|
8658
|
+
},
|
|
8659
|
+
{
|
|
8660
|
+
"name": "mask",
|
|
8661
|
+
"type": {
|
|
8662
|
+
"text": "string"
|
|
8663
|
+
}
|
|
8664
|
+
}
|
|
8665
|
+
]
|
|
8666
|
+
},
|
|
8391
8667
|
{
|
|
8392
8668
|
"kind": "variable",
|
|
8393
8669
|
"name": "IBANTestValues",
|
|
@@ -8430,6 +8706,14 @@
|
|
|
8430
8706
|
"module": "components/input-mask/input-mask.utils.js"
|
|
8431
8707
|
}
|
|
8432
8708
|
},
|
|
8709
|
+
{
|
|
8710
|
+
"kind": "js",
|
|
8711
|
+
"name": "maskOptions",
|
|
8712
|
+
"declaration": {
|
|
8713
|
+
"name": "maskOptions",
|
|
8714
|
+
"module": "components/input-mask/input-mask.utils.js"
|
|
8715
|
+
}
|
|
8716
|
+
},
|
|
8433
8717
|
{
|
|
8434
8718
|
"kind": "js",
|
|
8435
8719
|
"name": "stripSpecialChars",
|
|
@@ -8440,9 +8724,17 @@
|
|
|
8440
8724
|
},
|
|
8441
8725
|
{
|
|
8442
8726
|
"kind": "js",
|
|
8443
|
-
"name": "
|
|
8727
|
+
"name": "rawValueToMaskedValue",
|
|
8728
|
+
"declaration": {
|
|
8729
|
+
"name": "rawValueToMaskedValue",
|
|
8730
|
+
"module": "components/input-mask/input-mask.utils.js"
|
|
8731
|
+
}
|
|
8732
|
+
},
|
|
8733
|
+
{
|
|
8734
|
+
"kind": "js",
|
|
8735
|
+
"name": "maskedValueToRawValue",
|
|
8444
8736
|
"declaration": {
|
|
8445
|
-
"name": "
|
|
8737
|
+
"name": "maskedValueToRawValue",
|
|
8446
8738
|
"module": "components/input-mask/input-mask.utils.js"
|
|
8447
8739
|
}
|
|
8448
8740
|
},
|
|
@@ -8482,7 +8774,7 @@
|
|
|
8482
8774
|
"type": {
|
|
8483
8775
|
"text": "DSAMaskConfig"
|
|
8484
8776
|
},
|
|
8485
|
-
"default": "{\n placeholder: '_ __ __ __ __',\n pattern: '^((\\\\+)33|(\\\\+)590|(\\\\+)594|(\\\\+)596|(\\\\+)262)[1-9](\\\\d{2}){4}$',\n}",
|
|
8777
|
+
"default": "{\n placeholder: '_ __ __ __ __',\n mask: '# ## ## ## ##',\n pattern: '^((\\\\+)33|(\\\\+)590|(\\\\+)594|(\\\\+)596|(\\\\+)262)[1-9](\\\\d{2}){4}$',\n}",
|
|
8486
8778
|
"description": "Input Phone configuration for French phone numbers including Dom-Toms"
|
|
8487
8779
|
}
|
|
8488
8780
|
],
|
|
@@ -8564,6 +8856,15 @@
|
|
|
8564
8856
|
"privacy": "private",
|
|
8565
8857
|
"default": "false"
|
|
8566
8858
|
},
|
|
8859
|
+
{
|
|
8860
|
+
"kind": "field",
|
|
8861
|
+
"name": "maskedNumber",
|
|
8862
|
+
"type": {
|
|
8863
|
+
"text": "string"
|
|
8864
|
+
},
|
|
8865
|
+
"privacy": "private",
|
|
8866
|
+
"default": "''"
|
|
8867
|
+
},
|
|
8567
8868
|
{
|
|
8568
8869
|
"kind": "field",
|
|
8569
8870
|
"name": "title",
|
|
@@ -8700,17 +9001,6 @@
|
|
|
8700
9001
|
"attribute": "readonly",
|
|
8701
9002
|
"reflects": true
|
|
8702
9003
|
},
|
|
8703
|
-
{
|
|
8704
|
-
"kind": "field",
|
|
8705
|
-
"name": "validate",
|
|
8706
|
-
"type": {
|
|
8707
|
-
"text": "boolean"
|
|
8708
|
-
},
|
|
8709
|
-
"default": "false",
|
|
8710
|
-
"description": "Will check the enterred value against the passed pattern",
|
|
8711
|
-
"attribute": "validate",
|
|
8712
|
-
"reflects": true
|
|
8713
|
-
},
|
|
8714
9004
|
{
|
|
8715
9005
|
"kind": "field",
|
|
8716
9006
|
"name": "error",
|
|
@@ -8719,8 +9009,7 @@
|
|
|
8719
9009
|
},
|
|
8720
9010
|
"default": "false",
|
|
8721
9011
|
"description": "Indicates whether the input should be in error state",
|
|
8722
|
-
"attribute": "error"
|
|
8723
|
-
"reflects": true
|
|
9012
|
+
"attribute": "error"
|
|
8724
9013
|
},
|
|
8725
9014
|
{
|
|
8726
9015
|
"kind": "field",
|
|
@@ -8821,6 +9110,11 @@
|
|
|
8821
9110
|
"description": "Gets the validation message",
|
|
8822
9111
|
"readonly": true
|
|
8823
9112
|
},
|
|
9113
|
+
{
|
|
9114
|
+
"kind": "method",
|
|
9115
|
+
"name": "handleDocumentKeyUp",
|
|
9116
|
+
"privacy": "private"
|
|
9117
|
+
},
|
|
8824
9118
|
{
|
|
8825
9119
|
"kind": "method",
|
|
8826
9120
|
"name": "setPhoneFromValue",
|
|
@@ -8873,19 +9167,6 @@
|
|
|
8873
9167
|
}
|
|
8874
9168
|
]
|
|
8875
9169
|
},
|
|
8876
|
-
{
|
|
8877
|
-
"kind": "method",
|
|
8878
|
-
"name": "handleInput",
|
|
8879
|
-
"privacy": "private",
|
|
8880
|
-
"parameters": [
|
|
8881
|
-
{
|
|
8882
|
-
"name": "event",
|
|
8883
|
-
"type": {
|
|
8884
|
-
"text": "Event"
|
|
8885
|
-
}
|
|
8886
|
-
}
|
|
8887
|
-
]
|
|
8888
|
-
},
|
|
8889
9170
|
{
|
|
8890
9171
|
"kind": "method",
|
|
8891
9172
|
"name": "handleKeyDown",
|
|
@@ -9182,15 +9463,6 @@
|
|
|
9182
9463
|
"description": "Makes the input readonly.",
|
|
9183
9464
|
"fieldName": "readonly"
|
|
9184
9465
|
},
|
|
9185
|
-
{
|
|
9186
|
-
"name": "validate",
|
|
9187
|
-
"type": {
|
|
9188
|
-
"text": "boolean"
|
|
9189
|
-
},
|
|
9190
|
-
"default": "false",
|
|
9191
|
-
"description": "Will check the enterred value against the passed pattern",
|
|
9192
|
-
"fieldName": "validate"
|
|
9193
|
-
},
|
|
9194
9466
|
{
|
|
9195
9467
|
"name": "error",
|
|
9196
9468
|
"type": {
|
|
@@ -15969,7 +16241,7 @@
|
|
|
15969
16241
|
],
|
|
15970
16242
|
"package": {
|
|
15971
16243
|
"name": "@ds-autonomie/web-components",
|
|
15972
|
-
"version": "1.
|
|
16244
|
+
"version": "1.4.0",
|
|
15973
16245
|
"author": "CNSA",
|
|
15974
16246
|
"license": "MIT"
|
|
15975
16247
|
}
|
package/dist/design-system.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as DSAAccordion } from './components/accordion/accordion';
|
|
2
2
|
export { default as DSAAlert } from './components/alert/alert';
|
|
3
|
+
export { default as DSAAnchorTag } from './components/anchor-tag/anchor-tag';
|
|
3
4
|
export { default as DSAAvatar } from './components/avatar/avatar';
|
|
4
5
|
export { default as DSAAvatarGroup } from './components/avatar-group/avatar-group';
|
|
5
6
|
export { default as DSABadge } from './components/badge/badge';
|