@umbraco-ui/uui 1.12.1 → 1.13.0-rc.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.
@@ -342,6 +342,398 @@
342
342
  }
343
343
  ]
344
344
  },
345
+ {
346
+ "name": "uui-button-copy-text",
347
+ "path": "./../uui-button-copy-text/lib/uui-button-copy-text.element.ts",
348
+ "attributes": [
349
+ {
350
+ "name": "text",
351
+ "description": "Set a string you wish to copy to the clipboard",
352
+ "type": "string",
353
+ "default": "\"''\""
354
+ },
355
+ {
356
+ "name": "copy-from",
357
+ "description": "Copies the text content from another element by specifying the ID of the element\nThe ID of the element does not need to start with # like a CSS selector\nIf this property is set, the value property is ignored",
358
+ "type": "string",
359
+ "default": "\"''\""
360
+ },
361
+ {
362
+ "name": "animation-state-delay",
363
+ "description": "The delay in milliseconds before the button returns to its default state after a successful copy",
364
+ "type": "number",
365
+ "default": "\"250\""
366
+ },
367
+ {
368
+ "name": "type",
369
+ "description": "Specifies the type of button",
370
+ "type": "\"submit\" | \"button\" | \"reset\"",
371
+ "default": "\"\\\"button\\\"\""
372
+ },
373
+ {
374
+ "name": "disabled",
375
+ "description": "Disables the button, changes the looks of it and prevents if from emitting the click event",
376
+ "type": "boolean",
377
+ "default": "\"false\""
378
+ },
379
+ {
380
+ "name": "look",
381
+ "description": "Changes the look of the button to one of the predefined, symbolic looks. For example - set this to positive if you want nice, green \"confirm\" button.",
382
+ "type": "\"default\" | \"primary\" | \"secondary\" | \"outline\" | \"placeholder\"",
383
+ "default": "\"\\\"default\\\"\""
384
+ },
385
+ {
386
+ "name": "color",
387
+ "description": "Changes the look of the button to one of the predefined, symbolic looks. For example - set this to positive if you want nice, green \"confirm\" button.",
388
+ "type": "\"default\" | \"positive\" | \"warning\" | \"danger\"",
389
+ "default": "\"\\\"default\\\"\""
390
+ },
391
+ {
392
+ "name": "compact",
393
+ "description": "Makes the left and right padding of the button narrower.",
394
+ "type": "boolean",
395
+ "default": "\"false\""
396
+ },
397
+ {
398
+ "name": "state",
399
+ "description": "Sets the state of the button. With waiting state a loader will show, the success and fail states display icons. State is automatically reset to the default after 3 seconds.",
400
+ "type": "undefined |'waiting' | 'success' | 'failed'",
401
+ "default": "\"undefined\""
402
+ },
403
+ {
404
+ "name": "href",
405
+ "description": "Set an href, this will turns the button into a anchor tag.",
406
+ "type": "string",
407
+ "default": "\"undefined\""
408
+ },
409
+ {
410
+ "name": "target",
411
+ "description": "Set an anchor tag target, only used when using href.",
412
+ "type": "string",
413
+ "default": "\"undefined\""
414
+ },
415
+ {
416
+ "name": "rel",
417
+ "description": "Set the rel attribute for an anchor tag, only used when using href.",
418
+ "type": "string",
419
+ "default": "\"undefined\""
420
+ },
421
+ {
422
+ "name": "name",
423
+ "description": "This is a name property of the component.",
424
+ "type": "string",
425
+ "default": "\"''\""
426
+ },
427
+ {
428
+ "name": "value",
429
+ "description": "Value of this form control.\nIf you dont want the setFormValue to be called on the ElementInternals, then prevent calling this method, by not calling super.value = newValue in your implementation of the value setter method.",
430
+ "type": "string",
431
+ "default": "\"''\""
432
+ },
433
+ {
434
+ "name": "required",
435
+ "description": "Apply validation rule for requiring a value of this form control.",
436
+ "type": "boolean",
437
+ "default": "\"false\""
438
+ },
439
+ {
440
+ "name": "required-message",
441
+ "description": "Required validation message.",
442
+ "type": "string",
443
+ "default": "\"This field is required\""
444
+ },
445
+ {
446
+ "name": "error",
447
+ "description": "Apply custom error on this input.",
448
+ "type": "boolean",
449
+ "default": "false"
450
+ },
451
+ {
452
+ "name": "error-message",
453
+ "description": "Custom error message.",
454
+ "type": "string",
455
+ "default": "\"This field is invalid\""
456
+ },
457
+ {
458
+ "name": "pristine",
459
+ "description": "Determines wether the form control has been touched or interacted with, this determines wether the validation-status of this form control should be made visible.",
460
+ "type": "boolean",
461
+ "default": "\"true\""
462
+ },
463
+ {
464
+ "name": "label",
465
+ "description": "label to be used for aria-label and potentially as visual label for some components",
466
+ "type": "string"
467
+ },
468
+ {
469
+ "name": "popovertarget",
470
+ "description": "Set a popovertarget.",
471
+ "type": "string",
472
+ "default": "\"undefined\""
473
+ }
474
+ ],
475
+ "properties": [
476
+ {
477
+ "name": "text",
478
+ "attribute": "text",
479
+ "description": "Set a string you wish to copy to the clipboard",
480
+ "type": "string",
481
+ "default": "\"''\""
482
+ },
483
+ {
484
+ "name": "copyFrom",
485
+ "attribute": "copy-from",
486
+ "description": "Copies the text content from another element by specifying the ID of the element\nThe ID of the element does not need to start with # like a CSS selector\nIf this property is set, the value property is ignored",
487
+ "type": "string",
488
+ "default": "\"''\""
489
+ },
490
+ {
491
+ "name": "animationStateDelay",
492
+ "attribute": "animation-state-delay",
493
+ "description": "The delay in milliseconds before the button returns to its default state after a successful copy",
494
+ "type": "number",
495
+ "default": "\"250\""
496
+ },
497
+ {
498
+ "name": "type",
499
+ "attribute": "type",
500
+ "description": "Specifies the type of button",
501
+ "type": "\"submit\" | \"button\" | \"reset\"",
502
+ "default": "\"\\\"button\\\"\""
503
+ },
504
+ {
505
+ "name": "disabled",
506
+ "attribute": "disabled",
507
+ "description": "Disables the button, changes the looks of it and prevents if from emitting the click event",
508
+ "type": "boolean",
509
+ "default": "\"false\""
510
+ },
511
+ {
512
+ "name": "look",
513
+ "attribute": "look",
514
+ "description": "Changes the look of the button to one of the predefined, symbolic looks. For example - set this to positive if you want nice, green \"confirm\" button.",
515
+ "type": "\"default\" | \"primary\" | \"secondary\" | \"outline\" | \"placeholder\"",
516
+ "default": "\"\\\"default\\\"\""
517
+ },
518
+ {
519
+ "name": "color",
520
+ "attribute": "color",
521
+ "description": "Changes the look of the button to one of the predefined, symbolic looks. For example - set this to positive if you want nice, green \"confirm\" button.",
522
+ "type": "\"default\" | \"positive\" | \"warning\" | \"danger\"",
523
+ "default": "\"\\\"default\\\"\""
524
+ },
525
+ {
526
+ "name": "compact",
527
+ "attribute": "compact",
528
+ "description": "Makes the left and right padding of the button narrower.",
529
+ "type": "boolean",
530
+ "default": "\"false\""
531
+ },
532
+ {
533
+ "name": "state",
534
+ "attribute": "state",
535
+ "description": "Sets the state of the button. With waiting state a loader will show, the success and fail states display icons. State is automatically reset to the default after 3 seconds.",
536
+ "type": "undefined |'waiting' | 'success' | 'failed'",
537
+ "default": "\"undefined\""
538
+ },
539
+ {
540
+ "name": "href",
541
+ "attribute": "href",
542
+ "description": "Set an href, this will turns the button into a anchor tag.",
543
+ "type": "string",
544
+ "default": "\"undefined\""
545
+ },
546
+ {
547
+ "name": "target",
548
+ "attribute": "target",
549
+ "description": "Set an anchor tag target, only used when using href.",
550
+ "type": "string",
551
+ "default": "\"undefined\""
552
+ },
553
+ {
554
+ "name": "rel",
555
+ "attribute": "rel",
556
+ "description": "Set the rel attribute for an anchor tag, only used when using href.",
557
+ "type": "string",
558
+ "default": "\"undefined\""
559
+ },
560
+ {
561
+ "name": "styles",
562
+ "type": "CSSResult[]",
563
+ "default": "\"styles\""
564
+ },
565
+ {
566
+ "name": "formAssociated",
567
+ "description": "This is a static class field indicating that the element is can be used inside a native form and participate in its events.\nIt may require a polyfill, check support here https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals.\nRead more about form controls here https://web.dev/more-capable-form-controls/",
568
+ "type": "boolean",
569
+ "default": "true"
570
+ },
571
+ {
572
+ "name": "name",
573
+ "attribute": "name",
574
+ "description": "This is a name property of the component.",
575
+ "type": "string",
576
+ "default": "\"''\""
577
+ },
578
+ {
579
+ "name": "value",
580
+ "attribute": "value",
581
+ "description": "Value of this form control.\nIf you dont want the setFormValue to be called on the ElementInternals, then prevent calling this method, by not calling super.value = newValue in your implementation of the value setter method.",
582
+ "type": "string",
583
+ "default": "\"''\""
584
+ },
585
+ {
586
+ "name": "required",
587
+ "attribute": "required",
588
+ "description": "Apply validation rule for requiring a value of this form control.",
589
+ "type": "boolean",
590
+ "default": "\"false\""
591
+ },
592
+ {
593
+ "name": "requiredMessage",
594
+ "attribute": "required-message",
595
+ "description": "Required validation message.",
596
+ "type": "string",
597
+ "default": "\"This field is required\""
598
+ },
599
+ {
600
+ "name": "error",
601
+ "attribute": "error",
602
+ "description": "Apply custom error on this input.",
603
+ "type": "boolean",
604
+ "default": "false"
605
+ },
606
+ {
607
+ "name": "errorMessage",
608
+ "attribute": "error-message",
609
+ "description": "Custom error message.",
610
+ "type": "string",
611
+ "default": "\"This field is invalid\""
612
+ },
613
+ {
614
+ "name": "validity",
615
+ "type": "ValidityState"
616
+ },
617
+ {
618
+ "name": "validationMessage",
619
+ "type": "string"
620
+ },
621
+ {
622
+ "name": "pristine",
623
+ "attribute": "pristine",
624
+ "description": "Determines wether the form control has been touched or interacted with, this determines wether the validation-status of this form control should be made visible.",
625
+ "type": "boolean",
626
+ "default": "\"true\""
627
+ },
628
+ {
629
+ "name": "label",
630
+ "attribute": "label",
631
+ "description": "label to be used for aria-label and potentially as visual label for some components",
632
+ "type": "string"
633
+ },
634
+ {
635
+ "name": "popoverContainerElement",
636
+ "attribute": "popovertarget",
637
+ "description": "Set a popovertarget.",
638
+ "type": "string",
639
+ "default": "\"undefined\""
640
+ }
641
+ ],
642
+ "events": [
643
+ {
644
+ "name": "copying",
645
+ "description": "Fires before the content is about to copied to the clipboard and can be used to transform or modify the data before its added to the clipboard"
646
+ },
647
+ {
648
+ "name": "copied",
649
+ "description": "Fires when the content is copied to the clipboard"
650
+ },
651
+ {
652
+ "name": "click",
653
+ "description": "fires when the element is clicked"
654
+ }
655
+ ],
656
+ "slots": [
657
+ {
658
+ "name": "",
659
+ "description": "Use to replace the default content of the copy icon"
660
+ },
661
+ {
662
+ "name": "label",
663
+ "description": "for label content"
664
+ },
665
+ {
666
+ "name": "extra",
667
+ "description": "for extra"
668
+ }
669
+ ],
670
+ "cssProperties": [
671
+ {
672
+ "name": "--uui-button-height",
673
+ "description": "overwrite the button height"
674
+ },
675
+ {
676
+ "name": "--uui-button-border-width",
677
+ "description": "overwrite the border width"
678
+ },
679
+ {
680
+ "name": "--uui-button-border-radius",
681
+ "description": "overwrite the border radius"
682
+ },
683
+ {
684
+ "name": "--uui-button-font-weight",
685
+ "description": "overwrite the font weight"
686
+ },
687
+ {
688
+ "name": "--uui-button-font-size",
689
+ "description": "overwrite the font size"
690
+ },
691
+ {
692
+ "name": "--uui-button-background-color",
693
+ "description": "overwrite the background color"
694
+ },
695
+ {
696
+ "name": "--uui-button-background-color-hover",
697
+ "description": "overwrite the background color for hover state"
698
+ },
699
+ {
700
+ "name": "--uui-button-background-color-disabled",
701
+ "description": "overwrite the background color for disabled state"
702
+ },
703
+ {
704
+ "name": "--uui-button-border-color",
705
+ "description": "overwrite the border color"
706
+ },
707
+ {
708
+ "name": "--uui-button-border-color-hover",
709
+ "description": "overwrite the border color for hover state"
710
+ },
711
+ {
712
+ "name": "--uui-button-border-color-disabled",
713
+ "description": "overwrite the border color for disabled state"
714
+ },
715
+ {
716
+ "name": "--uui-button-contrast",
717
+ "description": "overwrite the text color"
718
+ },
719
+ {
720
+ "name": "--uui-button-contrast-hover",
721
+ "description": "overwrite the text color for hover state"
722
+ },
723
+ {
724
+ "name": "--uui-button-contrast-disabled",
725
+ "description": "overwrite the text color for disabled state"
726
+ },
727
+ {
728
+ "name": "--uui-button-content-align",
729
+ "description": "Overwrite justify-content alignment. Possible values: 'left', 'right', 'center'."
730
+ },
731
+ {
732
+ "name": "--uui-button-transition",
733
+ "description": "Add transition to the button. Default is none."
734
+ }
735
+ ]
736
+ },
345
737
  {
346
738
  "name": "uui-button-group",
347
739
  "path": "./../uui-button-group/lib/uui-button-group.element.ts",
@@ -1559,7 +1951,7 @@
1559
1951
  {
1560
1952
  "name": "styles",
1561
1953
  "type": "CSSResult[]",
1562
- "default": "[null]"
1954
+ "default": "[\"UUITextStyles\",null]"
1563
1955
  },
1564
1956
  {
1565
1957
  "name": "selectOnly",
@@ -4698,6 +5090,12 @@
4698
5090
  "name": "",
4699
5091
  "description": "for the label text."
4700
5092
  }
5093
+ ],
5094
+ "cssProperties": [
5095
+ {
5096
+ "name": "--uui-validation-color",
5097
+ "description": "Color property for the required asterisk."
5098
+ }
4701
5099
  ]
4702
5100
  },
4703
5101
  {
@@ -9313,7 +9711,7 @@
9313
9711
  {
9314
9712
  "name": "color",
9315
9713
  "description": "Changes the color of the notification to one of the predefined, symbolic colors. Example: set this to danger to indicate errors.",
9316
- "type": "'' | 'default' | 'positive' | 'warning' | 'danger'",
9714
+ "type": "UUIInterfaceColor",
9317
9715
  "default": "\"\\\"\\\"\""
9318
9716
  },
9319
9717
  {
@@ -9334,7 +9732,7 @@
9334
9732
  "name": "color",
9335
9733
  "attribute": "color",
9336
9734
  "description": "Changes the color of the notification to one of the predefined, symbolic colors. Example: set this to danger to indicate errors.",
9337
- "type": "'' | 'default' | 'positive' | 'warning' | 'danger'",
9735
+ "type": "UUIInterfaceColor",
9338
9736
  "default": "\"\\\"\\\"\""
9339
9737
  },
9340
9738
  {