@paperless/core 2.0.1-beta.31 → 2.0.1-beta.33
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 +23 -0
- package/dist/build/{p-850c70f0.js → p-2c6f3984.js} +1 -1
- package/dist/build/p-4a10de20.entry.js +2 -0
- package/dist/build/p-4a10de20.entry.js.map +1 -0
- package/dist/build/p-5c2b9a8d.entry.js +2 -0
- package/dist/{paperless/p-c066c38b.entry.js.map → build/p-5c2b9a8d.entry.js.map} +1 -1
- package/dist/build/p-e77d5ca1.entry.js +2 -0
- package/dist/build/p-e77d5ca1.entry.js.map +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js +7 -17
- package/dist/cjs/p-checkbox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-field_2.cjs.entry.js +49 -10
- package/dist/cjs/p-field_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +8 -18
- package/dist/cjs/p-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.css +1 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +6 -16
- package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.css +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.js +7 -17
- package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -1
- package/dist/collection/components/molecules/field/field.component.css +1 -1
- package/dist/collection/components/molecules/field/field.component.js +75 -18
- package/dist/collection/components/molecules/field/field.component.js.map +1 -1
- package/dist/collection/components/molecules/field-container/field-container.component.js +22 -1
- package/dist/collection/components/molecules/field-container/field-container.component.js.map +1 -1
- package/dist/components/checkbox.component.js +7 -17
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/field-container.component.js +4 -1
- package/dist/components/field-container.component.js.map +1 -1
- package/dist/components/field.component.js +47 -9
- package/dist/components/field.component.js.map +1 -1
- package/dist/components/p-toggle.js +8 -18
- package/dist/components/p-toggle.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-checkbox_3.entry.js +7 -17
- package/dist/esm/p-checkbox_3.entry.js.map +1 -1
- package/dist/esm/p-field_2.entry.js +49 -10
- package/dist/esm/p-field_2.entry.js.map +1 -1
- package/dist/esm/p-toggle.entry.js +8 -18
- package/dist/esm/p-toggle.entry.js.map +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-4a10de20.entry.js +2 -0
- package/dist/paperless/p-4a10de20.entry.js.map +1 -0
- package/dist/paperless/p-5c2b9a8d.entry.js +2 -0
- package/dist/{build/p-c066c38b.entry.js.map → paperless/p-5c2b9a8d.entry.js.map} +1 -1
- package/dist/paperless/p-e77d5ca1.entry.js +2 -0
- package/dist/paperless/p-e77d5ca1.entry.js.map +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/field/field.component.d.ts +15 -11
- package/dist/types/components/molecules/field-container/field-container.component.d.ts +4 -0
- package/dist/types/components.d.ts +36 -20
- package/hydrate/index.js +66 -45
- package/hydrate/index.mjs +66 -45
- package/package.json +1 -1
- package/dist/build/p-3f0837c4.entry.js +0 -2
- package/dist/build/p-3f0837c4.entry.js.map +0 -1
- package/dist/build/p-52056fb3.entry.js +0 -2
- package/dist/build/p-52056fb3.entry.js.map +0 -1
- package/dist/build/p-c066c38b.entry.js +0 -2
- package/dist/paperless/p-3f0837c4.entry.js +0 -2
- package/dist/paperless/p-3f0837c4.entry.js.map +0 -1
- package/dist/paperless/p-52056fb3.entry.js +0 -2
- package/dist/paperless/p-52056fb3.entry.js.map +0 -1
- package/dist/paperless/p-c066c38b.entry.js +0 -2
|
@@ -6,27 +6,31 @@ import { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';
|
|
|
6
6
|
import { templateFunc } from '../field-container/field-container.component';
|
|
7
7
|
export declare class Field {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The variant of the field
|
|
10
|
+
*/
|
|
11
|
+
variant: 'read' | 'write';
|
|
12
|
+
/**
|
|
13
|
+
* The size of the field
|
|
10
14
|
*/
|
|
11
15
|
size: 'sm' | 'base';
|
|
12
16
|
/**
|
|
13
|
-
* The type of the
|
|
17
|
+
* The type of the field
|
|
14
18
|
*/
|
|
15
19
|
type: HTMLInputTypeAttribute | 'textarea' | 'slot';
|
|
16
20
|
/**
|
|
17
|
-
* The size of the
|
|
21
|
+
* The size of the field
|
|
18
22
|
*/
|
|
19
23
|
properties: any | string;
|
|
20
24
|
/**
|
|
21
|
-
* The prefix of the
|
|
25
|
+
* The prefix of the field
|
|
22
26
|
*/
|
|
23
27
|
prefix: string;
|
|
24
28
|
/**
|
|
25
|
-
* The suffix of the
|
|
29
|
+
* The suffix of the field
|
|
26
30
|
*/
|
|
27
31
|
suffix: string;
|
|
28
32
|
/**
|
|
29
|
-
* Icon of the
|
|
33
|
+
* Icon of the field
|
|
30
34
|
*/
|
|
31
35
|
icon: IconVariant;
|
|
32
36
|
/**
|
|
@@ -45,7 +49,7 @@ export declare class Field {
|
|
|
45
49
|
*/
|
|
46
50
|
value: string;
|
|
47
51
|
/**
|
|
48
|
-
* The label of the
|
|
52
|
+
* The label of the field
|
|
49
53
|
*/
|
|
50
54
|
label: string;
|
|
51
55
|
/**
|
|
@@ -53,7 +57,7 @@ export declare class Field {
|
|
|
53
57
|
*/
|
|
54
58
|
placeholder: string;
|
|
55
59
|
/**
|
|
56
|
-
* The helper of the
|
|
60
|
+
* The helper of the field
|
|
57
61
|
*/
|
|
58
62
|
helper: string;
|
|
59
63
|
/**
|
|
@@ -73,11 +77,11 @@ export declare class Field {
|
|
|
73
77
|
*/
|
|
74
78
|
errorPlacement: Placement;
|
|
75
79
|
/**
|
|
76
|
-
* Wether the
|
|
80
|
+
* Wether the field is disabled
|
|
77
81
|
*/
|
|
78
82
|
disabled: boolean;
|
|
79
83
|
/**
|
|
80
|
-
* Wether the
|
|
84
|
+
* Wether the field is focused
|
|
81
85
|
*/
|
|
82
86
|
focused: boolean;
|
|
83
87
|
/**
|
|
@@ -115,7 +119,7 @@ export declare class Field {
|
|
|
115
119
|
handleFocusIn(): void;
|
|
116
120
|
handleFocusOut(): void;
|
|
117
121
|
private _getSlotInfo;
|
|
118
|
-
private
|
|
122
|
+
private _getContent;
|
|
119
123
|
private _setInputRef;
|
|
120
124
|
private _focusInput;
|
|
121
125
|
private _selectAll;
|
|
@@ -615,7 +615,7 @@ export namespace Components {
|
|
|
615
615
|
*/
|
|
616
616
|
"autofocus": boolean;
|
|
617
617
|
/**
|
|
618
|
-
* Wether the
|
|
618
|
+
* Wether the field is disabled
|
|
619
619
|
*/
|
|
620
620
|
"disabled": boolean;
|
|
621
621
|
/**
|
|
@@ -631,7 +631,7 @@ export namespace Components {
|
|
|
631
631
|
*/
|
|
632
632
|
"focusMethod": 'focus' | 'click';
|
|
633
633
|
/**
|
|
634
|
-
* Wether the
|
|
634
|
+
* Wether the field is focused
|
|
635
635
|
*/
|
|
636
636
|
"focused": boolean;
|
|
637
637
|
/**
|
|
@@ -639,11 +639,11 @@ export namespace Components {
|
|
|
639
639
|
*/
|
|
640
640
|
"forceShowTooltip": boolean;
|
|
641
641
|
/**
|
|
642
|
-
* The helper of the
|
|
642
|
+
* The helper of the field
|
|
643
643
|
*/
|
|
644
644
|
"helper": string;
|
|
645
645
|
/**
|
|
646
|
-
* Icon of the
|
|
646
|
+
* Icon of the field
|
|
647
647
|
*/
|
|
648
648
|
"icon": IconVariant;
|
|
649
649
|
/**
|
|
@@ -659,7 +659,7 @@ export namespace Components {
|
|
|
659
659
|
*/
|
|
660
660
|
"iconRotate": RotateOptions;
|
|
661
661
|
/**
|
|
662
|
-
* The label of the
|
|
662
|
+
* The label of the field
|
|
663
663
|
*/
|
|
664
664
|
"label": string;
|
|
665
665
|
/**
|
|
@@ -671,11 +671,11 @@ export namespace Components {
|
|
|
671
671
|
*/
|
|
672
672
|
"placeholder": string;
|
|
673
673
|
/**
|
|
674
|
-
* The prefix of the
|
|
674
|
+
* The prefix of the field
|
|
675
675
|
*/
|
|
676
676
|
"prefix": string;
|
|
677
677
|
/**
|
|
678
|
-
* The size of the
|
|
678
|
+
* The size of the field
|
|
679
679
|
*/
|
|
680
680
|
"properties": any | string;
|
|
681
681
|
/**
|
|
@@ -687,21 +687,25 @@ export namespace Components {
|
|
|
687
687
|
*/
|
|
688
688
|
"selectAllOnFocus": boolean;
|
|
689
689
|
/**
|
|
690
|
-
* The size of the
|
|
690
|
+
* The size of the field
|
|
691
691
|
*/
|
|
692
692
|
"size": 'sm' | 'base';
|
|
693
693
|
/**
|
|
694
|
-
* The suffix of the
|
|
694
|
+
* The suffix of the field
|
|
695
695
|
*/
|
|
696
696
|
"suffix": string;
|
|
697
697
|
/**
|
|
698
|
-
* The type of the
|
|
698
|
+
* The type of the field
|
|
699
699
|
*/
|
|
700
700
|
"type": HTMLInputTypeAttribute | 'textarea' | 'slot';
|
|
701
701
|
/**
|
|
702
702
|
* The value of the input
|
|
703
703
|
*/
|
|
704
704
|
"value": string;
|
|
705
|
+
/**
|
|
706
|
+
* The variant of the field
|
|
707
|
+
*/
|
|
708
|
+
"variant": 'read' | 'write';
|
|
705
709
|
}
|
|
706
710
|
interface PFieldContainer {
|
|
707
711
|
/**
|
|
@@ -732,6 +736,10 @@ export namespace Components {
|
|
|
732
736
|
* Wether the field is required
|
|
733
737
|
*/
|
|
734
738
|
"required": boolean;
|
|
739
|
+
/**
|
|
740
|
+
* The variant of the field container
|
|
741
|
+
*/
|
|
742
|
+
"variant": 'read' | 'write';
|
|
735
743
|
}
|
|
736
744
|
interface PFloatingMenuContainer {
|
|
737
745
|
/**
|
|
@@ -3553,7 +3561,7 @@ declare namespace LocalJSX {
|
|
|
3553
3561
|
*/
|
|
3554
3562
|
"autofocus"?: boolean;
|
|
3555
3563
|
/**
|
|
3556
|
-
* Wether the
|
|
3564
|
+
* Wether the field is disabled
|
|
3557
3565
|
*/
|
|
3558
3566
|
"disabled"?: boolean;
|
|
3559
3567
|
/**
|
|
@@ -3569,7 +3577,7 @@ declare namespace LocalJSX {
|
|
|
3569
3577
|
*/
|
|
3570
3578
|
"focusMethod"?: 'focus' | 'click';
|
|
3571
3579
|
/**
|
|
3572
|
-
* Wether the
|
|
3580
|
+
* Wether the field is focused
|
|
3573
3581
|
*/
|
|
3574
3582
|
"focused"?: boolean;
|
|
3575
3583
|
/**
|
|
@@ -3577,11 +3585,11 @@ declare namespace LocalJSX {
|
|
|
3577
3585
|
*/
|
|
3578
3586
|
"forceShowTooltip"?: boolean;
|
|
3579
3587
|
/**
|
|
3580
|
-
* The helper of the
|
|
3588
|
+
* The helper of the field
|
|
3581
3589
|
*/
|
|
3582
3590
|
"helper"?: string;
|
|
3583
3591
|
/**
|
|
3584
|
-
* Icon of the
|
|
3592
|
+
* Icon of the field
|
|
3585
3593
|
*/
|
|
3586
3594
|
"icon"?: IconVariant;
|
|
3587
3595
|
/**
|
|
@@ -3597,7 +3605,7 @@ declare namespace LocalJSX {
|
|
|
3597
3605
|
*/
|
|
3598
3606
|
"iconRotate"?: RotateOptions;
|
|
3599
3607
|
/**
|
|
3600
|
-
* The label of the
|
|
3608
|
+
* The label of the field
|
|
3601
3609
|
*/
|
|
3602
3610
|
"label"?: string;
|
|
3603
3611
|
/**
|
|
@@ -3617,11 +3625,11 @@ declare namespace LocalJSX {
|
|
|
3617
3625
|
*/
|
|
3618
3626
|
"placeholder"?: string;
|
|
3619
3627
|
/**
|
|
3620
|
-
* The prefix of the
|
|
3628
|
+
* The prefix of the field
|
|
3621
3629
|
*/
|
|
3622
3630
|
"prefix"?: string;
|
|
3623
3631
|
/**
|
|
3624
|
-
* The size of the
|
|
3632
|
+
* The size of the field
|
|
3625
3633
|
*/
|
|
3626
3634
|
"properties"?: any | string;
|
|
3627
3635
|
/**
|
|
@@ -3633,21 +3641,25 @@ declare namespace LocalJSX {
|
|
|
3633
3641
|
*/
|
|
3634
3642
|
"selectAllOnFocus"?: boolean;
|
|
3635
3643
|
/**
|
|
3636
|
-
* The size of the
|
|
3644
|
+
* The size of the field
|
|
3637
3645
|
*/
|
|
3638
3646
|
"size"?: 'sm' | 'base';
|
|
3639
3647
|
/**
|
|
3640
|
-
* The suffix of the
|
|
3648
|
+
* The suffix of the field
|
|
3641
3649
|
*/
|
|
3642
3650
|
"suffix"?: string;
|
|
3643
3651
|
/**
|
|
3644
|
-
* The type of the
|
|
3652
|
+
* The type of the field
|
|
3645
3653
|
*/
|
|
3646
3654
|
"type"?: HTMLInputTypeAttribute | 'textarea' | 'slot';
|
|
3647
3655
|
/**
|
|
3648
3656
|
* The value of the input
|
|
3649
3657
|
*/
|
|
3650
3658
|
"value"?: string;
|
|
3659
|
+
/**
|
|
3660
|
+
* The variant of the field
|
|
3661
|
+
*/
|
|
3662
|
+
"variant"?: 'read' | 'write';
|
|
3651
3663
|
}
|
|
3652
3664
|
interface PFieldContainer {
|
|
3653
3665
|
/**
|
|
@@ -3679,6 +3691,10 @@ declare namespace LocalJSX {
|
|
|
3679
3691
|
* Wether the field is required
|
|
3680
3692
|
*/
|
|
3681
3693
|
"required"?: boolean;
|
|
3694
|
+
/**
|
|
3695
|
+
* The variant of the field container
|
|
3696
|
+
*/
|
|
3697
|
+
"variant"?: 'read' | 'write';
|
|
3682
3698
|
}
|
|
3683
3699
|
interface PFloatingMenuContainer {
|
|
3684
3700
|
/**
|
package/hydrate/index.js
CHANGED
|
@@ -12138,7 +12138,7 @@ const nonce = (length) => {
|
|
|
12138
12138
|
return result;
|
|
12139
12139
|
};
|
|
12140
12140
|
|
|
12141
|
-
const checkboxComponentCss = "*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-1\\/2{left:50%!important}.top-1\\/2{top:50%!important}.m-0{margin:0!important}.flex{display:flex!important}.hidden{display:none!important}.h-4{height:1rem!important}.h-6{height:1.5rem!important}.w-4{width:1rem!important}.w-6{width:1.5rem!important}.flex-shrink-0{flex-shrink:0!important}.-translate-x-1\\/2{--tw-translate-x:-50%!important}.-translate-x-1\\/2,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-y-1\\/2{--tw-translate-y:-50%!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.appearance-none{appearance:none!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.gap-2{gap:.5rem!important}.rounded{border-radius:.25rem!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-black-teal-50{--tw-border-opacity:1!important;border-color:rgb(230 234 233/var(--tw-border-opacity,1))!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.shadow-1{--tw-shadow:0 1px 1px rgba(0,2,2,.08)!important;--tw-shadow-colored:0 1px 1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.drop-shadow-black-teal-10\\%{--tw-drop-shadow:drop-shadow(0px 1px 0px rgba(3,42,36,.1))!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.checked\\:border-black-teal\\/20:checked{border-color:rgba(3,42,36,.2)!important}.checked\\:bg-supportive-lilac:checked{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.checked\\:ring-2:checked{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.checked\\:ring-supportive-lilac-100:checked{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.indeterminate\\:border-black-teal\\/20:indeterminate{border-color:rgba(3,42,36,.2)!important}.indeterminate\\:bg-supportive-lilac:indeterminate{--tw-bg-opacity:1!important;background-color:rgb(
|
|
12141
|
+
const checkboxComponentCss = "*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-1\\/2{left:50%!important}.top-1\\/2{top:50%!important}.m-0{margin:0!important}.flex{display:flex!important}.hidden{display:none!important}.h-4{height:1rem!important}.h-6{height:1.5rem!important}.w-4{width:1rem!important}.w-6{width:1.5rem!important}.flex-shrink-0{flex-shrink:0!important}.-translate-x-1\\/2{--tw-translate-x:-50%!important}.-translate-x-1\\/2,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-y-1\\/2{--tw-translate-y:-50%!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.appearance-none{appearance:none!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.gap-2{gap:.5rem!important}.rounded{border-radius:.25rem!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-black-teal-50{--tw-border-opacity:1!important;border-color:rgb(230 234 233/var(--tw-border-opacity,1))!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.shadow-1{--tw-shadow:0 1px 1px rgba(0,2,2,.08)!important;--tw-shadow-colored:0 1px 1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.drop-shadow-black-teal-10\\%{--tw-drop-shadow:drop-shadow(0px 1px 0px rgba(3,42,36,.1))!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.checked\\:border-black-teal\\/20:checked{border-color:rgba(3,42,36,.2)!important}.checked\\:bg-supportive-lilac:checked{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.checked\\:ring-2:checked{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.checked\\:ring-supportive-lilac-100:checked{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.indeterminate\\:border-black-teal\\/20:indeterminate{border-color:rgba(3,42,36,.2)!important}.indeterminate\\:bg-supportive-lilac-700:indeterminate{--tw-bg-opacity:1!important;background-color:rgb(200 159 255/var(--tw-bg-opacity,1))!important}.indeterminate\\:ring-2:indeterminate{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.indeterminate\\:ring-supportive-lilac-100:indeterminate{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.hover\\:border-black-teal-100:hover{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.hover\\:bg-supportive-lilac-100:hover{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/var(--tw-bg-opacity,1))!important}.checked\\:hover\\:border-black-teal\\/20:hover:checked{border-color:rgba(3,42,36,.2)!important}.checked\\:hover\\:bg-supportive-lilac-700:hover:checked{--tw-bg-opacity:1!important;background-color:rgb(200 159 255/var(--tw-bg-opacity,1))!important}.indeterminate\\:hover\\:border-black-teal\\/20:hover:indeterminate{border-color:rgba(3,42,36,.2)!important}.indeterminate\\:hover\\:bg-supportive-lilac:hover:indeterminate{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.peer:checked~.peer-checked\\:flex{display:flex!important}.peer:indeterminate~.peer-indeterminate\\:flex{display:flex!important}";
|
|
12142
12142
|
var PCheckboxStyle0 = checkboxComponentCss;
|
|
12143
12143
|
|
|
12144
12144
|
const checkbox$1 = cva([
|
|
@@ -12154,27 +12154,17 @@ const checkbox$1 = cva([
|
|
|
12154
12154
|
false: [
|
|
12155
12155
|
'cursor-pointer shadow-1',
|
|
12156
12156
|
'bg-white border-black-teal-100',
|
|
12157
|
-
'hover:bg-
|
|
12157
|
+
'hover:bg-supportive-lilac-100 hover:border-black-teal-100',
|
|
12158
12158
|
'checked:bg-supportive-lilac checked:border-black-teal/20',
|
|
12159
12159
|
'checked:ring-2 checked:ring-supportive-lilac-100',
|
|
12160
|
-
'checked:hover:bg-supportive-lilac checked:hover:border-black-teal/20',
|
|
12161
|
-
'indeterminate:bg-supportive-lilac indeterminate:border-black-teal/20',
|
|
12160
|
+
'checked:hover:bg-supportive-lilac-700 checked:hover:border-black-teal/20',
|
|
12161
|
+
'indeterminate:bg-supportive-lilac-700 indeterminate:border-black-teal/20',
|
|
12162
12162
|
'indeterminate:ring-2 indeterminate:ring-supportive-lilac-100',
|
|
12163
12163
|
'indeterminate:hover:bg-supportive-lilac indeterminate:hover:border-black-teal/20',
|
|
12164
12164
|
],
|
|
12165
12165
|
true: 'bg-white-600 border-black-teal-50 cursor-not-allowed ',
|
|
12166
12166
|
},
|
|
12167
12167
|
},
|
|
12168
|
-
compoundVariants: [
|
|
12169
|
-
{
|
|
12170
|
-
disabled: false,
|
|
12171
|
-
class: [
|
|
12172
|
-
'cursor-pointer shadow-1',
|
|
12173
|
-
'bg-white border-black-teal-100',
|
|
12174
|
-
'hover:bg-supportive-lilac-100 hover:border-black-teal-100',
|
|
12175
|
-
],
|
|
12176
|
-
},
|
|
12177
|
-
],
|
|
12178
12168
|
});
|
|
12179
12169
|
const icon$1 = cva([
|
|
12180
12170
|
'hidden peer-indeterminate:flex peer-checked:flex',
|
|
@@ -12210,12 +12200,12 @@ class Checkbox {
|
|
|
12210
12200
|
*/
|
|
12211
12201
|
indeterminateChange;
|
|
12212
12202
|
render() {
|
|
12213
|
-
return (hAsync(Host, { key: '
|
|
12203
|
+
return (hAsync(Host, { key: 'e2efce30f2d5a1f955c2a8ddefb2b229eca1cfd5', class: 'p-checkbox' }, hAsync("label", { key: 'd26d81c88cb2f2a941cd9539e8060fbf60aa634f', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, hAsync("div", { key: 'd59c67ca2cbccdd8c91f860f5aa7561f34f79120', class: 'relative flex flex-shrink-0 items-center' }, hAsync("input", { key: '6a8317350b7f60e3fdb7665d7d68d3f1a2ce9868', class: checkbox$1({
|
|
12214
12204
|
size: this.size,
|
|
12215
12205
|
disabled: this.disabled,
|
|
12216
|
-
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), hAsync("div", { key: '
|
|
12206
|
+
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), hAsync("div", { key: 'b9010adaa74914c00b8018566b0c31808cc63b33', class: icon$1({
|
|
12217
12207
|
disabled: this.disabled,
|
|
12218
|
-
}) }, hAsync("p-icon", { key: '
|
|
12208
|
+
}) }, hAsync("p-icon", { key: '3d760b5e7ee1b76b79dae46beff4094dc00fe8b0', size: this.size, class: 'drop-shadow-black-teal-10%', variant: !!this.indeterminate ? 'minus' : 'checkmark' }))), hAsync("slot", { key: '17f8e47facc7b631494534b68986eebe5aa96fa0' }))));
|
|
12219
12209
|
}
|
|
12220
12210
|
_onChange(ev) {
|
|
12221
12211
|
if (this.disabled) {
|
|
@@ -22763,14 +22753,18 @@ class DropdownMenuItem {
|
|
|
22763
22753
|
}; }
|
|
22764
22754
|
}
|
|
22765
22755
|
|
|
22766
|
-
const fieldComponentCss = "*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.w-inherit{width:inherit!important}.min-w-0{min-width:0!important}.flex-1{flex:1 1 0%!important}.flex-shrink-0{flex-shrink:0!important}.cursor-not-allowed{cursor:not-allowed!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-none{border-style:none!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-negative-red{--tw-border-opacity:1!important;border-color:rgb(230 30 30/var(--tw-border-opacity,1))!important}.border-supportive-lilac-800{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-negative-red{--tw-text-opacity:1!important;color:rgb(230 30 30/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-negative-red-50{--tw-ring-opacity:1!important;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))!important}.ring-supportive-lilac-100{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.selection\\:bg-negative-red-50 ::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\\:bg-supportive-lilac ::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.selection\\:bg-negative-red-50::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\\:bg-supportive-lilac::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.placeholder\\:text-sm::placeholder{font-size:.875rem!important;line-height:1.25rem!important}.placeholder\\:text-black-teal-200::placeholder{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.focus\\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}";
|
|
22756
|
+
const fieldComponentCss = "*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.h-4{height:1rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.w-inherit{width:inherit!important}.min-w-0{min-width:0!important}.flex-1{flex:1 1 0%!important}.flex-shrink-0{flex-shrink:0!important}.cursor-not-allowed{cursor:not-allowed!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-0{border-width:0!important}.border-solid{border-style:solid!important}.border-none{border-style:none!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-negative-red{--tw-border-opacity:1!important;border-color:rgb(230 30 30/var(--tw-border-opacity,1))!important}.border-supportive-lilac-800{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-negative-red{--tw-text-opacity:1!important;color:rgb(230 30 30/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-negative-red-50{--tw-ring-opacity:1!important;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))!important}.ring-supportive-lilac-100{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.selection\\:bg-negative-red-50 ::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\\:bg-supportive-lilac ::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.selection\\:bg-negative-red-50::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\\:bg-supportive-lilac::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.placeholder\\:text-sm::placeholder{font-size:.875rem!important;line-height:1.25rem!important}.placeholder\\:text-black-teal-200::placeholder{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.focus\\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}";
|
|
22767
22757
|
var PFieldStyle0 = fieldComponentCss;
|
|
22768
22758
|
|
|
22769
|
-
const field = cva(['flex gap-2', 'w-inherit
|
|
22759
|
+
const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
|
|
22770
22760
|
variants: {
|
|
22761
|
+
variant: {
|
|
22762
|
+
read: 'border-0 items-center',
|
|
22763
|
+
write: 'border px-2',
|
|
22764
|
+
},
|
|
22771
22765
|
size: {
|
|
22772
|
-
sm:
|
|
22773
|
-
base:
|
|
22766
|
+
sm: null,
|
|
22767
|
+
base: null,
|
|
22774
22768
|
},
|
|
22775
22769
|
disabled: {
|
|
22776
22770
|
false: 'bg-white',
|
|
@@ -22786,6 +22780,26 @@ const field = cva(['flex gap-2', 'w-inherit px-2', 'border border-solid rounded-
|
|
|
22786
22780
|
},
|
|
22787
22781
|
},
|
|
22788
22782
|
compoundVariants: [
|
|
22783
|
+
{
|
|
22784
|
+
size: 'sm',
|
|
22785
|
+
variant: 'write',
|
|
22786
|
+
class: 'h-6',
|
|
22787
|
+
},
|
|
22788
|
+
{
|
|
22789
|
+
size: 'base',
|
|
22790
|
+
variant: 'write',
|
|
22791
|
+
class: 'h-8',
|
|
22792
|
+
},
|
|
22793
|
+
{
|
|
22794
|
+
size: 'sm',
|
|
22795
|
+
variant: 'read',
|
|
22796
|
+
class: 'h-4',
|
|
22797
|
+
},
|
|
22798
|
+
{
|
|
22799
|
+
size: 'base',
|
|
22800
|
+
variant: 'read',
|
|
22801
|
+
class: 'h-6',
|
|
22802
|
+
},
|
|
22789
22803
|
{
|
|
22790
22804
|
focused: false,
|
|
22791
22805
|
error: false,
|
|
@@ -22832,6 +22846,10 @@ const prefixAndSuffix = cva(['flex flex-shrink-0 justify-center items-center tex
|
|
|
22832
22846
|
false: null,
|
|
22833
22847
|
true: null,
|
|
22834
22848
|
},
|
|
22849
|
+
isText: {
|
|
22850
|
+
false: null,
|
|
22851
|
+
true: 'text-sm',
|
|
22852
|
+
},
|
|
22835
22853
|
},
|
|
22836
22854
|
compoundVariants: [
|
|
22837
22855
|
{
|
|
@@ -22865,6 +22883,7 @@ class Field {
|
|
|
22865
22883
|
registerInstance(this, hostRef);
|
|
22866
22884
|
this.valueChange = createEvent(this, "valueChange", 7);
|
|
22867
22885
|
this.inputRefChange = createEvent(this, "inputRefChange", 7);
|
|
22886
|
+
this.variant = 'write';
|
|
22868
22887
|
this.size = 'base';
|
|
22869
22888
|
this.type = 'text';
|
|
22870
22889
|
this.properties = {};
|
|
@@ -22904,20 +22923,23 @@ class Field {
|
|
|
22904
22923
|
this._checkAutoFocus();
|
|
22905
22924
|
}
|
|
22906
22925
|
render() {
|
|
22907
|
-
const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, } = this._getSlotInfo();
|
|
22908
|
-
return (hAsync(Host, { key: '
|
|
22926
|
+
const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
22927
|
+
return (hAsync(Host, { key: '1a79a5c8f8247833586cf9e8e663b5c6fe6a2bd9', class: 'p-field' }, hAsync("p-field-container", { key: '10b84cef30d39755c90812095158541c5d653002', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required, variant: this.variant }, hasLabelSlot && (hAsync("slot", { key: 'bffa3ae2c58bb688956bfe65652fd578968227f4', name: 'label', slot: 'label' })), hasHeaderSlot && (hAsync("slot", { key: '1e4c706e8166014605a494c975bd16c502ff79cf', name: 'header', slot: 'header' })), hasHelperSlot && (hAsync("slot", { key: '298572eb4da550e87443aecc0d68842eef9e9f98', name: 'helper', slot: 'helper' })), hasErrorSlot && (hAsync("slot", { key: '4a9f6b0a99b88cffc4c0d84e31d880a3d07776b2', name: 'error', slot: 'error' })), hAsync("div", { key: 'cc5d1bff2b66717facdf1df95e11bc4c16e401c2', class: field({
|
|
22909
22928
|
error: !!this.error?.length,
|
|
22910
22929
|
disabled: this.disabled,
|
|
22911
22930
|
focused: this.focused || this._focused,
|
|
22912
22931
|
size: this.size,
|
|
22913
|
-
|
|
22932
|
+
variant: this.variant,
|
|
22933
|
+
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (hAsync("div", { key: '9a559c208e22f1c512121a81648777f5496375c9', class: prefixAndSuffix({
|
|
22914
22934
|
error: !!this.error?.length,
|
|
22915
22935
|
disabled: this.disabled,
|
|
22916
22936
|
focused: this.focused || this._focused,
|
|
22917
|
-
|
|
22937
|
+
isText: typeof suffix === 'string',
|
|
22938
|
+
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (hAsync("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot), (suffix || (this.icon && this.iconPosition === 'end')) && (hAsync("div", { key: '6ae960c4a1fe98dd99d83af0035992e3aedcf86f', class: prefixAndSuffix({
|
|
22918
22939
|
error: !!this.error?.length,
|
|
22919
22940
|
disabled: this.disabled,
|
|
22920
22941
|
focused: this.focused || this._focused,
|
|
22942
|
+
isText: typeof suffix === 'string',
|
|
22921
22943
|
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'end' ? (hAsync("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix)))))));
|
|
22922
22944
|
}
|
|
22923
22945
|
handleFocusIn() {
|
|
@@ -22940,6 +22962,7 @@ class Field {
|
|
|
22940
22962
|
const hasSuffixSlot = !!this._el.querySelector(':scope > [slot="suffix"]');
|
|
22941
22963
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
22942
22964
|
const hasErrorSlot = !!this._el.querySelector(':scope > [slot="error"]');
|
|
22965
|
+
const hasValueSlot = !!this._el.querySelector(':scope > [slot="value"]');
|
|
22943
22966
|
const prefix = hasPrefixSlot ? hAsync("slot", { name: 'prefix' }) : this.prefix;
|
|
22944
22967
|
const suffix = hasSuffixSlot ? hAsync("slot", { name: 'suffix' }) : this.suffix;
|
|
22945
22968
|
const errorAndErrorIsNotBoolean = this.error && typeof this.error === 'string' && this.error !== 'true';
|
|
@@ -22950,12 +22973,16 @@ class Field {
|
|
|
22950
22973
|
hasSuffixSlot,
|
|
22951
22974
|
hasHeaderSlot,
|
|
22952
22975
|
hasErrorSlot,
|
|
22976
|
+
hasValueSlot,
|
|
22953
22977
|
prefix,
|
|
22954
22978
|
suffix,
|
|
22955
22979
|
errorAndErrorIsNotBoolean,
|
|
22956
22980
|
};
|
|
22957
22981
|
}
|
|
22958
|
-
|
|
22982
|
+
_getContent(hasValueSlot = false) {
|
|
22983
|
+
if (this.variant === 'read') {
|
|
22984
|
+
return (hAsync("div", { class: 'text-sm' }, hasValueSlot ? (hAsync("slot", { name: 'value' })) : !!this.value && this.value.length > 0 ? (this.value) : ('—')));
|
|
22985
|
+
}
|
|
22959
22986
|
if (this.type === 'slot') {
|
|
22960
22987
|
return hAsync("slot", { name: 'input' });
|
|
22961
22988
|
}
|
|
@@ -23015,6 +23042,7 @@ class Field {
|
|
|
23015
23042
|
"$flags$": 9,
|
|
23016
23043
|
"$tagName$": "p-field",
|
|
23017
23044
|
"$members$": {
|
|
23045
|
+
"variant": [1],
|
|
23018
23046
|
"size": [1],
|
|
23019
23047
|
"type": [1],
|
|
23020
23048
|
"properties": [8],
|
|
@@ -23054,6 +23082,7 @@ class FieldContainer {
|
|
|
23054
23082
|
registerInstance(this, hostRef);
|
|
23055
23083
|
this.focus = createEvent(this, "focus", 7);
|
|
23056
23084
|
this.label = undefined;
|
|
23085
|
+
this.variant = undefined;
|
|
23057
23086
|
this.helper = undefined;
|
|
23058
23087
|
this.required = undefined;
|
|
23059
23088
|
this.error = undefined;
|
|
@@ -23070,7 +23099,8 @@ class FieldContainer {
|
|
|
23070
23099
|
}
|
|
23071
23100
|
render() {
|
|
23072
23101
|
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
23073
|
-
|
|
23102
|
+
const contentSlot = (hAsync("slot", { key: 'a7e3919d645cc21fa538340b0c9ea7a98e66ca90', name: 'content', slot: 'trigger' }));
|
|
23103
|
+
return (hAsync(Host, { key: '44a79d2058aafb4d9bf89f09cb3e7a1a708d99f9', class: 'p-field-container' }, hAsync("div", { key: '47af2893a5f27a1a905c846a016c183756d026f8', class: 'flex w-inherit flex-col gap-1' }, hAsync("div", { key: 'cd64bc812c19e11d35ea4eb1756f9885a1f2a148', class: 'flex items-end justify-between gap-1' }, label && (hAsync("div", { key: '962aecba76c4ba9326ed992d6ad39c1efbdab8ab', class: 'text-xs font-medium text-black-teal-300', onClick: () => this.focus.emit() }, label)), (!this.required || helper || hasHeaderSlot) && (hAsync("div", { key: 'd0cdd8810de8098eaca90d2aeddd1f01fbcd0faf', class: 'flex items-center gap-1' }, !this.required && this.variant === 'write' && (hAsync("span", { key: 'e83d37fcb0050bad328d0aa2d6890c1226fe17fb', class: 'text-xs font-medium text-black-teal-200' }, this.optionalTemplate())), (helper || hasHeaderSlot) && (hAsync(Fragment, { key: 'c156ee1c951fec9dbe602cf317ff7591a6bce9bf' }, hasHeaderSlot && hAsync("slot", { key: 'e568644b05673354c9059042b0ba40f137d1709c', name: 'header' }), helper && (hAsync("p-helper", { key: '7dcbdd61deb2eba74abf8f57b245b011fbf9066b', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))))), hAsync("p-tooltip", { key: '41588daf8a794d9d16d32bcd841f5f4cbe64349a', class: 'w-full', variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean && this.forceShowTooltip, enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (hAsync("slot", { key: 'a61dd91094db6ac2b016ee79320cffd887976e12', name: 'error', slot: 'content' })), contentSlot))));
|
|
23074
23104
|
}
|
|
23075
23105
|
async _setLocales() {
|
|
23076
23106
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -23100,6 +23130,7 @@ class FieldContainer {
|
|
|
23100
23130
|
"$tagName$": "p-field-container",
|
|
23101
23131
|
"$members$": {
|
|
23102
23132
|
"label": [1],
|
|
23133
|
+
"variant": [1],
|
|
23103
23134
|
"helper": [1],
|
|
23104
23135
|
"required": [516],
|
|
23105
23136
|
"error": [513],
|
|
@@ -27644,7 +27675,7 @@ class ToastContainer {
|
|
|
27644
27675
|
}; }
|
|
27645
27676
|
}
|
|
27646
27677
|
|
|
27647
|
-
const toggleComponentCss = "*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-\\[1px\\]{left:1px!important}.left-\\[2px\\]{left:2px!important}.top-1\\/2{top:50%!important}.m-0{margin:0!important}.flex{display:flex!important}.h-3{height:.75rem!important}.h-4{height:1rem!important}.h-6{height:1.5rem!important}.h-\\[14px\\]{height:14px!important}.h-\\[20px\\]{height:20px!important}.h-\\[22px\\]{height:22px!important}.w-10{width:2.5rem!important}.w-3{width:.75rem!important}.w-8{width:2rem!important}.w-\\[14px\\]{width:14px!important}.w-\\[20px\\]{width:20px!important}.w-\\[22px\\]{width:22px!important}.flex-shrink-0{flex-shrink:0!important}.-translate-y-1\\/2{--tw-translate-y:-50%!important}.-translate-y-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.appearance-none{appearance:none!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-full{border-radius:9999px!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-black-teal-50{--tw-border-opacity:1!important;border-color:rgb(230 234 233/var(--tw-border-opacity,1))!important}.bg-black-teal-100{--tw-bg-opacity:1!important;background-color:rgb(205 212 211/var(--tw-bg-opacity,1))!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.shadow-1{--tw-shadow:0 1px 1px rgba(0,2,2,.08)!important;--tw-shadow-colored:0 1px 1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-black-teal\\/10{--tw-ring-color:rgba(3,42,36,.1)!important}.transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.after\\:h-1:after{content:var(--tw-content)!important;height:.25rem!important}.after\\:h-2:after{content:var(--tw-content)!important;height:.5rem!important}.after\\:w-1:after{content:var(--tw-content)!important;width:.25rem!important}.after\\:w-2:after{content:var(--tw-content)!important;width:.5rem!important}.after\\:rounded-full:after{border-radius:9999px!important;content:var(--tw-content)!important}.after\\:bg-supportive-lilac-800:after{--tw-bg-opacity:1!important;background-color:rgb(189 140 255/var(--tw-bg-opacity,1))!important;content:var(--tw-content)!important}.after\\:transition-all:after{content:var(--tw-content)!important;transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.after\\:content-\\[\\
|
|
27678
|
+
const toggleComponentCss = "*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-\\[1px\\]{left:1px!important}.left-\\[2px\\]{left:2px!important}.top-1\\/2{top:50%!important}.m-0{margin:0!important}.flex{display:flex!important}.h-3{height:.75rem!important}.h-4{height:1rem!important}.h-6{height:1.5rem!important}.h-\\[14px\\]{height:14px!important}.h-\\[20px\\]{height:20px!important}.h-\\[22px\\]{height:22px!important}.w-10{width:2.5rem!important}.w-3{width:.75rem!important}.w-8{width:2rem!important}.w-\\[14px\\]{width:14px!important}.w-\\[20px\\]{width:20px!important}.w-\\[22px\\]{width:22px!important}.flex-shrink-0{flex-shrink:0!important}.-translate-y-1\\/2{--tw-translate-y:-50%!important}.-translate-y-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.appearance-none{appearance:none!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-full{border-radius:9999px!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-black-teal-50{--tw-border-opacity:1!important;border-color:rgb(230 234 233/var(--tw-border-opacity,1))!important}.bg-black-teal-100{--tw-bg-opacity:1!important;background-color:rgb(205 212 211/var(--tw-bg-opacity,1))!important}.bg-black-teal-50{--tw-bg-opacity:1!important;background-color:rgb(230 234 233/var(--tw-bg-opacity,1))!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.shadow-1{--tw-shadow:0 1px 1px rgba(0,2,2,.08)!important;--tw-shadow-colored:0 1px 1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-black-teal\\/10{--tw-ring-color:rgba(3,42,36,.1)!important}.transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.after\\:h-1:after{content:var(--tw-content)!important;height:.25rem!important}.after\\:h-2:after{content:var(--tw-content)!important;height:.5rem!important}.after\\:w-1:after{content:var(--tw-content)!important;width:.25rem!important}.after\\:w-2:after{content:var(--tw-content)!important;width:.5rem!important}.after\\:rounded-full:after{border-radius:9999px!important;content:var(--tw-content)!important}.after\\:bg-supportive-lilac-800:after{--tw-bg-opacity:1!important;background-color:rgb(189 140 255/var(--tw-bg-opacity,1))!important;content:var(--tw-content)!important}.after\\:transition-all:after{content:var(--tw-content)!important;transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.after\\:content-\\[\\]:after{--tw-content:!important;content:var(--tw-content)!important}.checked\\:border-black-teal\\/20:checked{border-color:rgba(3,42,36,.2)!important}.checked\\:bg-supportive-lilac:checked{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.checked\\:ring-2:checked{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.checked\\:ring-supportive-lilac-100:checked{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.hover\\:border-black-teal-100:hover{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.hover\\:bg-supportive-lilac-100:hover{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/var(--tw-bg-opacity,1))!important}.checked\\:hover\\:border-black-teal\\/20:hover:checked{border-color:rgba(3,42,36,.2)!important}.checked\\:hover\\:bg-supportive-lilac-700:hover:checked{--tw-bg-opacity:1!important;background-color:rgb(200 159 255/var(--tw-bg-opacity,1))!important}.group:hover .group-hover\\:w-\\[18px\\]{width:18px!important}.group:hover .group-hover\\:w-\\[26px\\]{width:26px!important}.group:hover .group-hover\\:after\\:w-2:after{content:var(--tw-content)!important;width:.5rem!important}.group:hover .group-hover\\:after\\:w-3:after{content:var(--tw-content)!important;width:.75rem!important}.peer:checked~.peer-checked\\:left-full{left:100%!important}.peer:checked~.peer-checked\\:-translate-x-\\[calc\\(100\\%\\+1px\\)\\]{--tw-translate-x:calc(-100% - 1px)!important}.peer:checked~.peer-checked\\:-translate-x-\\[calc\\(100\\%\\+1px\\)\\],.peer:checked~.peer-checked\\:-translate-x-\\[calc\\(100\\%\\+2px\\)\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.peer:checked~.peer-checked\\:-translate-x-\\[calc\\(100\\%\\+2px\\)\\]{--tw-translate-x:calc(-100% - 2px)!important}.peer:checked~.peer-checked\\:bg-black-teal-200{--tw-bg-opacity:1!important;background-color:rgb(154 170 167/var(--tw-bg-opacity,1))!important}.peer:checked~.peer-checked\\:after\\:content-\\[\\'\\'\\]:after{--tw-content:\"\"!important;content:var(--tw-content)!important}";
|
|
27648
27679
|
var PToggleStyle0 = toggleComponentCss;
|
|
27649
27680
|
|
|
27650
27681
|
const checkbox = cva([
|
|
@@ -27659,25 +27690,15 @@ const checkbox = cva([
|
|
|
27659
27690
|
disabled: {
|
|
27660
27691
|
false: [
|
|
27661
27692
|
'cursor-pointer shadow-1',
|
|
27662
|
-
'bg-
|
|
27663
|
-
'hover:bg-
|
|
27693
|
+
'bg-black-teal-50 border-black-teal-100',
|
|
27694
|
+
'hover:bg-supportive-lilac-100 hover:border-black-teal-100',
|
|
27664
27695
|
'checked:bg-supportive-lilac checked:border-black-teal/20',
|
|
27665
27696
|
'checked:ring-2 checked:ring-supportive-lilac-100',
|
|
27666
|
-
'checked:hover:bg-supportive-lilac checked:hover:border-black-teal/20',
|
|
27697
|
+
'checked:hover:bg-supportive-lilac-700 checked:hover:border-black-teal/20',
|
|
27667
27698
|
],
|
|
27668
27699
|
true: 'bg-white-600 border-black-teal-50 cursor-not-allowed ',
|
|
27669
27700
|
},
|
|
27670
27701
|
},
|
|
27671
|
-
compoundVariants: [
|
|
27672
|
-
{
|
|
27673
|
-
disabled: false,
|
|
27674
|
-
class: [
|
|
27675
|
-
'cursor-pointer shadow-1',
|
|
27676
|
-
'bg-white border-black-teal-100',
|
|
27677
|
-
'hover:bg-supportive-lilac-100 hover:border-black-teal-100',
|
|
27678
|
-
],
|
|
27679
|
-
},
|
|
27680
|
-
],
|
|
27681
27702
|
});
|
|
27682
27703
|
const circle = cva([
|
|
27683
27704
|
'flex items-center justify-center',
|
|
@@ -27693,7 +27714,7 @@ const circle = cva([
|
|
|
27693
27714
|
false: [
|
|
27694
27715
|
'bg-white ring-1 ring-black-teal/10',
|
|
27695
27716
|
'left-[1px] peer-checked:-translate-x-[calc(100%+1px)]',
|
|
27696
|
-
"after:content-['']
|
|
27717
|
+
"after:content-[] peer-checked:after:content-[''] after:bg-supportive-lilac-800 after:rounded-full after:transition-all",
|
|
27697
27718
|
],
|
|
27698
27719
|
true: [
|
|
27699
27720
|
'bg-black-teal-100 peer-checked:bg-black-teal-200',
|
|
@@ -27753,13 +27774,13 @@ class Toggle {
|
|
|
27753
27774
|
*/
|
|
27754
27775
|
indeterminateChange;
|
|
27755
27776
|
render() {
|
|
27756
|
-
return (hAsync(Host, { key: '
|
|
27777
|
+
return (hAsync(Host, { key: '7e7322642bd2ae209f3693d86f7d206ba48e32aa', class: 'p-checkbox' }, hAsync("label", { key: '6bcb61ef0326e9ae1df59c88c3fc8a1c09aa6c59', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, hAsync("div", { key: 'a4993dac0cf2193aab80749460615d1da97f91cc', class: 'group relative flex flex-shrink-0 items-center' }, hAsync("input", { key: '9225f841e623b436930c116ddd6767a55e335001', class: checkbox({
|
|
27757
27778
|
size: this.size,
|
|
27758
27779
|
disabled: this.disabled,
|
|
27759
|
-
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), hAsync("div", { key: '
|
|
27780
|
+
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), hAsync("div", { key: '4c6f3a78c1c9c483bb655ccb5555615fcdf338b3', class: circle({
|
|
27760
27781
|
size: this.size,
|
|
27761
27782
|
disabled: this.disabled,
|
|
27762
|
-
}) })), hAsync("slot", { key: '
|
|
27783
|
+
}) })), hAsync("slot", { key: '25d9c3ce61d0ae9442092fe02b17fdd31a5b912b' }))));
|
|
27763
27784
|
}
|
|
27764
27785
|
_onChange(ev) {
|
|
27765
27786
|
if (this.disabled) {
|