wcs-core 2.6.0 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/CHANGELOG.md +115 -7
  2. package/README.md +18 -0
  3. package/dist/cjs/{helpers-d9aaa8c4.js → helpers-6abce594.js} +5 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/popper-5777994b.js +1732 -0
  6. package/dist/cjs/wcs-button.cjs.entry.js +1 -1
  7. package/dist/cjs/wcs-checkbox.cjs.entry.js +6 -2
  8. package/dist/cjs/wcs-dropdown-divider.cjs.entry.js +19 -0
  9. package/dist/cjs/wcs-dropdown-header.cjs.entry.js +19 -0
  10. package/dist/cjs/wcs-dropdown.cjs.entry.js +43 -10
  11. package/dist/cjs/wcs-error_2.cjs.entry.js +7 -10
  12. package/dist/cjs/wcs-galactic-menu.cjs.entry.js +3 -1730
  13. package/dist/cjs/wcs-grid-column.cjs.entry.js +6 -2
  14. package/dist/cjs/wcs-grid.cjs.entry.js +28 -5
  15. package/dist/cjs/wcs-input.cjs.entry.js +3 -3
  16. package/dist/cjs/wcs-mat-icon.cjs.entry.js +1 -1
  17. package/dist/cjs/wcs-modal.cjs.entry.js +8 -3
  18. package/dist/cjs/wcs-radio-group.cjs.entry.js +3 -3
  19. package/dist/cjs/wcs-radio.cjs.entry.js +2 -2
  20. package/dist/cjs/wcs-select_2.cjs.entry.js +1 -1
  21. package/dist/cjs/wcs-switch.cjs.entry.js +10 -2
  22. package/dist/cjs/wcs-textarea.cjs.entry.js +2 -2
  23. package/dist/cjs/wcs-tooltip.cjs.entry.js +1605 -99
  24. package/dist/cjs/wcs.cjs.js +2 -2
  25. package/dist/collection/collection-manifest.json +3 -1
  26. package/dist/collection/components/badge/badge-interface.js +1 -0
  27. package/dist/collection/components/badge/badge.js +14 -4
  28. package/dist/collection/components/card/card-interface.js +1 -0
  29. package/dist/collection/components/card/card.js +7 -2
  30. package/dist/collection/components/checkbox/checkbox.css +18 -7
  31. package/dist/collection/components/checkbox/checkbox.js +24 -2
  32. package/dist/collection/components/dropdown/dropdown-interface.js +1 -0
  33. package/dist/collection/components/dropdown/dropdown.css +46 -38
  34. package/dist/collection/components/dropdown/dropdown.js +90 -29
  35. package/dist/collection/components/dropdown-divider/dropdown-divider.css +7 -0
  36. package/dist/collection/components/dropdown-divider/dropdown-divider.js +14 -0
  37. package/dist/collection/components/dropdown-header/dropdown-header.css +8 -0
  38. package/dist/collection/components/dropdown-header/dropdown-header.js +15 -0
  39. package/dist/collection/components/editable-field/editable-field.js +7 -2
  40. package/dist/collection/components/form-field/form-field.css +1 -2
  41. package/dist/collection/components/form-field/form-field.js +6 -26
  42. package/dist/collection/components/grid/grid.js +28 -5
  43. package/dist/collection/components/grid-column/grid-column.js +9 -3
  44. package/dist/collection/components/horizontal-stepper/horizontal-stepper.js +7 -2
  45. package/dist/collection/components/input/input.css +48 -0
  46. package/dist/collection/components/input/input.js +38 -2
  47. package/dist/collection/components/mat-icon/mat-icon.css +1 -1
  48. package/dist/collection/components/mat-icon/mat-icon.js +7 -2
  49. package/dist/collection/components/modal/modal-interface.js +1 -0
  50. package/dist/collection/components/modal/modal.css +26 -7
  51. package/dist/collection/components/modal/modal.js +35 -7
  52. package/dist/collection/components/nav-item/nav-item.js +1 -1
  53. package/dist/collection/components/progress-bar/progress-bar.js +4 -4
  54. package/dist/collection/components/radio/radio.component.js +9 -4
  55. package/dist/collection/components/radio/radio.css +44 -19
  56. package/dist/collection/components/radio-group/radio-group.css +5 -1
  57. package/dist/collection/components/radio-group/radio-group.js +10 -5
  58. package/dist/collection/components/spinner/spinner-interface.js +1 -0
  59. package/dist/collection/components/spinner/spinner.js +8 -3
  60. package/dist/collection/components/switch/switch.css +53 -16
  61. package/dist/collection/components/switch/switch.js +55 -6
  62. package/dist/collection/components/tab/tab.js +1 -1
  63. package/dist/collection/components/tabs/tabs.js +1 -1
  64. package/dist/collection/components/textarea/textarea.css +4 -0
  65. package/dist/collection/components/tooltip/tooltip.css +3 -0
  66. package/dist/collection/components/tooltip/tooltip.js +308 -90
  67. package/dist/collection/utils/helpers.js +4 -0
  68. package/dist/esm/{helpers-50436c51.js → helpers-e2993152.js} +5 -1
  69. package/dist/esm/loader.js +2 -2
  70. package/dist/esm/popper-5f42e560.js +1729 -0
  71. package/dist/esm/wcs-button.entry.js +1 -1
  72. package/dist/esm/wcs-checkbox.entry.js +6 -2
  73. package/dist/esm/wcs-dropdown-divider.entry.js +15 -0
  74. package/dist/esm/wcs-dropdown-header.entry.js +15 -0
  75. package/dist/esm/wcs-dropdown.entry.js +43 -10
  76. package/dist/esm/wcs-error_2.entry.js +7 -10
  77. package/dist/esm/wcs-galactic-menu.entry.js +2 -1729
  78. package/dist/esm/wcs-grid-column.entry.js +6 -2
  79. package/dist/esm/wcs-grid.entry.js +28 -5
  80. package/dist/esm/wcs-input.entry.js +3 -3
  81. package/dist/esm/wcs-mat-icon.entry.js +1 -1
  82. package/dist/esm/wcs-modal.entry.js +8 -3
  83. package/dist/esm/wcs-radio-group.entry.js +3 -3
  84. package/dist/esm/wcs-radio.entry.js +2 -2
  85. package/dist/esm/wcs-select_2.entry.js +1 -1
  86. package/dist/esm/wcs-switch.entry.js +10 -2
  87. package/dist/esm/wcs-textarea.entry.js +2 -2
  88. package/dist/esm/wcs-tooltip.entry.js +1605 -99
  89. package/dist/esm/wcs.js +2 -2
  90. package/dist/types/components/badge/badge-interface.d.ts +2 -0
  91. package/dist/types/components/badge/badge.d.ts +3 -2
  92. package/dist/types/components/card/card-interface.d.ts +1 -0
  93. package/dist/types/components/card/card.d.ts +2 -1
  94. package/dist/types/components/checkbox/checkbox.d.ts +4 -0
  95. package/dist/types/components/dropdown/dropdown-interface.d.ts +1 -0
  96. package/dist/types/components/dropdown/dropdown.d.ts +13 -16
  97. package/dist/types/components/dropdown-divider/dropdown-divider.d.ts +3 -0
  98. package/dist/types/components/dropdown-header/dropdown-header.d.ts +3 -0
  99. package/dist/types/components/editable-field/editable-field-interface.d.ts +1 -0
  100. package/dist/types/components/editable-field/editable-field.d.ts +2 -2
  101. package/dist/types/components/form-field/form-field.d.ts +0 -4
  102. package/dist/types/components/grid/grid.d.ts +11 -0
  103. package/dist/types/components/grid-column/grid-column.d.ts +2 -1
  104. package/dist/types/components/horizontal-stepper/horizontal-stepper-interface.d.ts +1 -0
  105. package/dist/types/components/horizontal-stepper/horizontal-stepper.d.ts +2 -2
  106. package/dist/types/components/input/input.d.ts +8 -0
  107. package/dist/types/components/mat-icon/mat-icon-interface.d.ts +1 -0
  108. package/dist/types/components/mat-icon/mat-icon.d.ts +2 -2
  109. package/dist/types/components/modal/modal-interface.d.ts +1 -0
  110. package/dist/types/components/modal/modal.d.ts +7 -1
  111. package/dist/types/components/radio/radio.component.d.ts +2 -1
  112. package/dist/types/components/radio-group/radio-group-interface.d.ts +1 -0
  113. package/dist/types/components/radio-group/radio-group.d.ts +2 -2
  114. package/dist/types/components/spinner/spinner-interface.d.ts +1 -0
  115. package/dist/types/components/spinner/spinner.d.ts +2 -1
  116. package/dist/types/components/switch/switch-interface.d.ts +1 -0
  117. package/dist/types/components/switch/switch.d.ts +10 -2
  118. package/dist/types/components/tooltip/tooltip.d.ts +70 -6
  119. package/dist/types/components.d.ts +210 -41
  120. package/dist/types/interfaces.d.ts +22 -0
  121. package/dist/types/stencil-public-runtime.d.ts +6 -4
  122. package/dist/types/utils/helpers.d.ts +1 -0
  123. package/dist/wcs/{p-64523291.entry.js → p-22813c8e.entry.js} +1 -1
  124. package/dist/wcs/{p-356a8e3b.entry.js → p-384068f7.entry.js} +1 -1
  125. package/dist/wcs/p-41037455.entry.js +1 -0
  126. package/dist/wcs/p-4e9e226d.entry.js +1 -0
  127. package/dist/wcs/p-7206e492.entry.js +1 -0
  128. package/dist/wcs/p-7c26f650.entry.js +1 -0
  129. package/dist/wcs/p-8c8740e3.entry.js +1 -0
  130. package/dist/wcs/p-9619f77a.entry.js +1 -0
  131. package/dist/wcs/p-a92d369e.entry.js +1 -0
  132. package/dist/wcs/p-a978c1e3.entry.js +1 -0
  133. package/dist/wcs/p-b5ffbea8.entry.js +1 -0
  134. package/dist/wcs/p-bbf1ef42.entry.js +1 -0
  135. package/dist/wcs/p-bcf381a2.entry.js +1 -0
  136. package/dist/wcs/{p-3d10b02a.entry.js → p-c7d6d3e1.entry.js} +1 -1
  137. package/dist/wcs/p-cf4d7a83.js +1 -0
  138. package/dist/wcs/p-d3c9a644.js +1 -0
  139. package/dist/wcs/p-ecbe5165.entry.js +6 -0
  140. package/dist/wcs/p-f430a227.entry.js +1 -0
  141. package/dist/wcs/p-f96bb0bf.entry.js +1 -0
  142. package/dist/wcs/{p-4338f140.entry.js → p-ff6d0dfd.entry.js} +1 -1
  143. package/dist/wcs/wcs.css +1 -1
  144. package/dist/wcs/wcs.esm.js +1 -1
  145. package/package.json +5 -4
  146. package/dist/types/interface.d.ts +0 -3
  147. package/dist/wcs/p-0fbe574e.entry.js +0 -1
  148. package/dist/wcs/p-15008e35.entry.js +0 -1
  149. package/dist/wcs/p-17c6db7f.entry.js +0 -1
  150. package/dist/wcs/p-62f7ab6d.entry.js +0 -1
  151. package/dist/wcs/p-83f1ad32.js +0 -1
  152. package/dist/wcs/p-8f0f9868.entry.js +0 -1
  153. package/dist/wcs/p-a5a1b27c.entry.js +0 -1
  154. package/dist/wcs/p-af1a5e52.entry.js +0 -1
  155. package/dist/wcs/p-bef44630.entry.js +0 -1
  156. package/dist/wcs/p-d59b4495.entry.js +0 -1
  157. package/dist/wcs/p-dd300dea.entry.js +0 -1
  158. package/dist/wcs/p-e486647c.entry.js +0 -1
  159. package/dist/wcs/p-ed6e8541.entry.js +0 -1
@@ -5,19 +5,24 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { BadgeColor, BadgeShape } from "./components/badge/badge-interface";
8
9
  import { WcsButtonMode, WcsButtonShape, WcsButtonType } from "./components/button/button-interface";
10
+ import { CardMode } from "./components/card/card-interface";
9
11
  import { CheckboxChangeEventDetail, CheckboxLabelAlignment } from "./components/checkbox/checkbox-interface";
10
12
  import { CategoryOpenedEventDetail, MenuOpenedEventDetail } from "./components/com-nav/com-nav-interface";
11
- import { EditableComponentUpdateEvent, FormatFn, ValidateFn } from "./components/editable-field/editable-field-interface";
13
+ import { WcsDropdownPlacement } from "./components/dropdown/dropdown-interface";
14
+ import { EditableComponentUpdateEvent, EditableFieldType, FormatFn, ValidateFn } from "./components/editable-field/editable-field-interface";
12
15
  import { WcsCellFormatter, WcsGridAllRowSelectedEventDetails, WcsGridColumnSortChangeEventDetails, WcsGridPaginationChangeEventDetails, WcsGridRowSelectedEventDetails, WcsGridSelectionConfig, WcsSortFn, WcsSortOrder } from "./components/grid/grid-interface";
13
- import { HorizontalStepClickEvent, HorizontalStepConfig } from "./components/horizontal-stepper/horizontal-stepper-interface";
16
+ import { HorizontalStepClickEvent, HorizontalStepConfig, HorizontalStepperMode } from "./components/horizontal-stepper/horizontal-stepper-interface";
14
17
  import { AutocompleteTypes, InputChangeEventDetail, TextFieldTypes } from "./components/input/input-interface";
15
- import { MaterialIconFamily } from "./components/mat-icon/mat-icon-interface";
18
+ import { MaterialIconFamily, MaterialIconSize } from "./components/mat-icon/mat-icon-interface";
19
+ import { ModalSize } from "./components/modal/modal-interface";
20
+ import { RadioGroupChangeEventDetail, RadioGroupMode } from "./components/radio-group/radio-group-interface";
16
21
  import { RadioChosedEvent } from "./components/radio/radio-interface";
17
- import { RadioGroupChangeEventDetail } from "./components/radio-group/radio-group-interface";
18
22
  import { SelectChangeEventDetail } from "./components/select/select-interface";
19
23
  import { SelectOptionChosedEvent } from "./components/select-option/select-option-interface";
20
- import { SwitchChangeEventDetail } from "./components/switch/switch-interface";
24
+ import { WcsSpinnerMode } from "./components/spinner/spinner-interface";
25
+ import { SwitchChangeEventDetail, SwitchLabelAlignment } from "./components/switch/switch-interface";
21
26
  import { WcsTabChangeEvent, WcsTabsAlignment } from "./components/tabs/tabs-interface";
22
27
  import { TextareaChangeEventDetail } from "./components/textarea/textarea-interface";
23
28
  import { WcsTooltipPosition } from "./components/tooltip/tooltip-interface";
@@ -34,11 +39,11 @@ export namespace Components {
34
39
  /**
35
40
  * Allows you to change the color of the badge to make it less bright (based on the color chosen by the CSS class).
36
41
  */
37
- "color": 'initial' | 'lighter';
42
+ "color": BadgeColor;
38
43
  /**
39
44
  * Define the shape of the badge
40
45
  */
41
- "shape": 'normal' | 'rounded';
46
+ "shape": BadgeShape;
42
47
  }
43
48
  interface WcsButton {
44
49
  /**
@@ -67,7 +72,7 @@ export namespace Components {
67
72
  "type": WcsButtonType;
68
73
  }
69
74
  interface WcsCard {
70
- "mode": 'flat' | 'raised';
75
+ "mode": CardMode;
71
76
  }
72
77
  interface WcsCardBody {
73
78
  }
@@ -76,6 +81,10 @@ export namespace Components {
76
81
  * If `true`, the checkbox is selected.
77
82
  */
78
83
  "checked": boolean;
84
+ /**
85
+ * Specify wether the checkbox is disabled or not.
86
+ */
87
+ "disabled": boolean;
79
88
  /**
80
89
  * If `true` the checkbox is in indeterminate state.
81
90
  */
@@ -116,10 +125,31 @@ export namespace Components {
116
125
  interface WcsDivider {
117
126
  }
118
127
  interface WcsDropdown {
128
+ /**
129
+ * Specifies whether the dropdown button is clickable or not
130
+ */
119
131
  "disabled": boolean;
132
+ /**
133
+ * Dropdown's button mode
134
+ */
120
135
  "mode": WcsButtonMode;
136
+ /**
137
+ * Hides the arrow in the button
138
+ */
139
+ "noArrow": boolean;
140
+ /**
141
+ * placement of the dropdown's popover
142
+ */
143
+ "placement": WcsDropdownPlacement;
144
+ /**
145
+ * Dropdown's button shape
146
+ */
121
147
  "shape": WcsButtonShape;
122
148
  }
149
+ interface WcsDropdownDivider {
150
+ }
151
+ interface WcsDropdownHeader {
152
+ }
123
153
  interface WcsDropdownItem {
124
154
  }
125
155
  interface WcsEditableField {
@@ -142,7 +172,7 @@ export namespace Components {
142
172
  /**
143
173
  * Specifies which component is used for editing
144
174
  */
145
- "type": 'input' | 'textarea' | 'select';
175
+ "type": EditableFieldType;
146
176
  /**
147
177
  * Function to customize the validation of the data during the update
148
178
  */
@@ -163,10 +193,6 @@ export namespace Components {
163
193
  interface WcsFooter {
164
194
  }
165
195
  interface WcsFormField {
166
- /**
167
- * Name of the material icon to add to the field
168
- */
169
- "icon": any;
170
196
  /**
171
197
  * Specifies whether the form field is in an error state. Displays the field border in red and the message contained in the wcs-error component
172
198
  */
@@ -256,7 +282,7 @@ export namespace Components {
256
282
  /**
257
283
  * Specifies if the stepper is in linear mode (the user can only click on the next step) or non-linear (the user can click on any step)
258
284
  */
259
- "mode": 'linear' | 'nonLinear';
285
+ "mode": HorizontalStepperMode;
260
286
  "next": () => Promise<void>;
261
287
  "previous": () => Promise<void>;
262
288
  /**
@@ -357,6 +383,10 @@ export namespace Components {
357
383
  * Instructional text that shows before the input has a value.
358
384
  */
359
385
  "placeholder"?: string | null;
386
+ /**
387
+ * Prefix displayed before the text field contents. This is not included in the value.
388
+ */
389
+ "prefixLabel": string;
360
390
  /**
361
391
  * If `true`, the user cannot modify the value.
362
392
  */
@@ -389,6 +419,10 @@ export namespace Components {
389
419
  * Works with the min and max attributes to limit the increments at which a value can be set. Possible values are: `"any"` or a positive floating point number.
390
420
  */
391
421
  "step"?: string;
422
+ /**
423
+ * Suffix displayed after the text field contents. This is not included in the value.
424
+ */
425
+ "suffixLabel": string;
392
426
  /**
393
427
  * The type of control to display. The default type is text.
394
428
  */
@@ -423,13 +457,9 @@ export namespace Components {
423
457
  /**
424
458
  * Size of the icon
425
459
  */
426
- "size": 's' | 'm' | 'l' | 'xl';
460
+ "size": MaterialIconSize;
427
461
  }
428
462
  interface WcsModal {
429
- /**
430
- * Specifies whether the component should display a backdrop on the entire page
431
- */
432
- "backdrop": boolean;
433
463
  /**
434
464
  * Displays the modal
435
465
  */
@@ -438,6 +468,14 @@ export namespace Components {
438
468
  * Specifies whether the component should display a close button. if false, it won't close the modal when the escape key is pressed.
439
469
  */
440
470
  "showCloseButton": boolean;
471
+ /**
472
+ * There are multiple sizes for modals. The default size is medium (m), however other sizes are available. Select the size best suited for the content and screen size displaying the modal. Remember to test responsiveness.
473
+ */
474
+ "size": ModalSize;
475
+ /**
476
+ * Specifies whether the component should display a backdrop on the entire page
477
+ */
478
+ "withoutBackdrop": boolean;
441
479
  }
442
480
  interface WcsNav {
443
481
  }
@@ -480,11 +518,11 @@ export namespace Components {
480
518
  */
481
519
  "disabled": boolean;
482
520
  "label": string;
483
- "mode": 'radio' | 'option';
521
+ "mode": RadioGroupMode;
484
522
  "value": any | any[] | undefined | null;
485
523
  }
486
524
  interface WcsRadioGroup {
487
- "mode": 'radio' | 'option';
525
+ "mode": RadioGroupMode;
488
526
  "name": any;
489
527
  "value": any | any[] | undefined | null;
490
528
  }
@@ -557,13 +595,21 @@ export namespace Components {
557
595
  /**
558
596
  * Indicates the spinner display mode. Accepted values: `border` or `growing`
559
597
  */
560
- "mode": 'border' | 'growing';
598
+ "mode": WcsSpinnerMode;
561
599
  }
562
600
  interface WcsSwitch {
563
601
  /**
564
602
  * If `true`, the switch is selected.
565
603
  */
566
604
  "checked": boolean;
605
+ /**
606
+ * Specify wether the switch is disabled or not.
607
+ */
608
+ "disabled": boolean;
609
+ /**
610
+ * Specifie the alignment of the switch with the label content
611
+ */
612
+ "labelAlignment": SwitchLabelAlignment;
567
613
  "name": string;
568
614
  }
569
615
  interface WcsTab {
@@ -700,14 +746,54 @@ export namespace Components {
700
746
  }
701
747
  interface WcsTooltip {
702
748
  /**
703
- * The **id** of the element the tooltip's going to describe.
749
+ * Delay in ms once a trigger event is fired before the tooltip shows or hides. You can provide an array with two values to define a different duration for show and hide. `[showDelay, hideDelay]` Use null to use default value.
750
+ */
751
+ "delay": number | [number, number];
752
+ /**
753
+ * Temporarily prevent the tooltip from showing or hiding
754
+ */
755
+ "disable": () => Promise<void>;
756
+ /**
757
+ * Duration in ms of the transition animation.
758
+ */
759
+ "duration": number | [number, number];
760
+ /**
761
+ * Re-enable a disabled tooltip
762
+ */
763
+ "enable": () => Promise<void>;
764
+ /**
765
+ * The **id** of the element the tooltip's going to describe. This property cannot be modified after initialization.
704
766
  * @example ```html <span id="tooltiped">Some content</span> <wcs-tooltip for="tooltiped">A tooltip!</wcs-tooltip> ```
705
767
  */
706
768
  "for": string;
769
+ /**
770
+ * Programmatically hide the tooltip
771
+ */
772
+ "hide": () => Promise<void>;
773
+ /**
774
+ * Determines if the tooltip has interactive content inside of it, so that it can be hovered over and clicked inside without hiding.
775
+ */
776
+ "interactive": boolean;
777
+ /**
778
+ * Specifies the maximum width of the tooltip. Useful to prevent it from being too horizontally wide to read. If the viewport's width is smaller than maxWidth, core CSS ensures the tippy remains smaller than the screen.
779
+ */
780
+ "maxWidth": string | number;
707
781
  /**
708
782
  * Where the tooltip is going to show relative to the element it's describing.
709
783
  */
710
784
  "position": WcsTooltipPosition;
785
+ /**
786
+ * Programmatically show the tooltip
787
+ */
788
+ "show": () => Promise<void>;
789
+ /**
790
+ * Allows you to change the theme used by tippy. The WCS theme is used by default and uses the WCS CSS variables. You can create a theme by following this documentation and choosing a custom name : https://atomiks.github.io/tippyjs/v6/themes/
791
+ */
792
+ "theme": string;
793
+ /**
794
+ * Determines the events that cause the tooltip to show. Multiple event names are separated by spaces. See: https://atomiks.github.io/tippyjs/v6/all-props/#trigger
795
+ */
796
+ "trigger": string;
711
797
  }
712
798
  }
713
799
  declare global {
@@ -783,6 +869,18 @@ declare global {
783
869
  prototype: HTMLWcsDropdownElement;
784
870
  new (): HTMLWcsDropdownElement;
785
871
  };
872
+ interface HTMLWcsDropdownDividerElement extends Components.WcsDropdownDivider, HTMLStencilElement {
873
+ }
874
+ var HTMLWcsDropdownDividerElement: {
875
+ prototype: HTMLWcsDropdownDividerElement;
876
+ new (): HTMLWcsDropdownDividerElement;
877
+ };
878
+ interface HTMLWcsDropdownHeaderElement extends Components.WcsDropdownHeader, HTMLStencilElement {
879
+ }
880
+ var HTMLWcsDropdownHeaderElement: {
881
+ prototype: HTMLWcsDropdownHeaderElement;
882
+ new (): HTMLWcsDropdownHeaderElement;
883
+ };
786
884
  interface HTMLWcsDropdownItemElement extends Components.WcsDropdownItem, HTMLStencilElement {
787
885
  }
788
886
  var HTMLWcsDropdownItemElement: {
@@ -1030,6 +1128,8 @@ declare global {
1030
1128
  "wcs-com-nav-submenu": HTMLWcsComNavSubmenuElement;
1031
1129
  "wcs-divider": HTMLWcsDividerElement;
1032
1130
  "wcs-dropdown": HTMLWcsDropdownElement;
1131
+ "wcs-dropdown-divider": HTMLWcsDropdownDividerElement;
1132
+ "wcs-dropdown-header": HTMLWcsDropdownHeaderElement;
1033
1133
  "wcs-dropdown-item": HTMLWcsDropdownItemElement;
1034
1134
  "wcs-editable-field": HTMLWcsEditableFieldElement;
1035
1135
  "wcs-error": HTMLWcsErrorElement;
@@ -1084,11 +1184,11 @@ declare namespace LocalJSX {
1084
1184
  /**
1085
1185
  * Allows you to change the color of the badge to make it less bright (based on the color chosen by the CSS class).
1086
1186
  */
1087
- "color"?: 'initial' | 'lighter';
1187
+ "color"?: BadgeColor;
1088
1188
  /**
1089
1189
  * Define the shape of the badge
1090
1190
  */
1091
- "shape"?: 'normal' | 'rounded';
1191
+ "shape"?: BadgeShape;
1092
1192
  }
1093
1193
  interface WcsButton {
1094
1194
  /**
@@ -1117,7 +1217,7 @@ declare namespace LocalJSX {
1117
1217
  "type"?: WcsButtonType;
1118
1218
  }
1119
1219
  interface WcsCard {
1120
- "mode"?: 'flat' | 'raised';
1220
+ "mode"?: CardMode;
1121
1221
  }
1122
1222
  interface WcsCardBody {
1123
1223
  }
@@ -1126,6 +1226,10 @@ declare namespace LocalJSX {
1126
1226
  * If `true`, the checkbox is selected.
1127
1227
  */
1128
1228
  "checked"?: boolean;
1229
+ /**
1230
+ * Specify wether the checkbox is disabled or not.
1231
+ */
1232
+ "disabled"?: boolean;
1129
1233
  /**
1130
1234
  * If `true` the checkbox is in indeterminate state.
1131
1235
  */
@@ -1157,10 +1261,31 @@ declare namespace LocalJSX {
1157
1261
  interface WcsDivider {
1158
1262
  }
1159
1263
  interface WcsDropdown {
1264
+ /**
1265
+ * Specifies whether the dropdown button is clickable or not
1266
+ */
1160
1267
  "disabled"?: boolean;
1268
+ /**
1269
+ * Dropdown's button mode
1270
+ */
1161
1271
  "mode"?: WcsButtonMode;
1272
+ /**
1273
+ * Hides the arrow in the button
1274
+ */
1275
+ "noArrow"?: boolean;
1276
+ /**
1277
+ * placement of the dropdown's popover
1278
+ */
1279
+ "placement"?: WcsDropdownPlacement;
1280
+ /**
1281
+ * Dropdown's button shape
1282
+ */
1162
1283
  "shape"?: WcsButtonShape;
1163
1284
  }
1285
+ interface WcsDropdownDivider {
1286
+ }
1287
+ interface WcsDropdownHeader {
1288
+ }
1164
1289
  interface WcsDropdownItem {
1165
1290
  "onWcsDropdownItemClick"?: (event: CustomEvent<void>) => void;
1166
1291
  }
@@ -1188,7 +1313,7 @@ declare namespace LocalJSX {
1188
1313
  /**
1189
1314
  * Specifies which component is used for editing
1190
1315
  */
1191
- "type"?: 'input' | 'textarea' | 'select';
1316
+ "type"?: EditableFieldType;
1192
1317
  /**
1193
1318
  * Function to customize the validation of the data during the update
1194
1319
  */
@@ -1209,10 +1334,6 @@ declare namespace LocalJSX {
1209
1334
  interface WcsFooter {
1210
1335
  }
1211
1336
  interface WcsFormField {
1212
- /**
1213
- * Name of the material icon to add to the field
1214
- */
1215
- "icon"?: any;
1216
1337
  /**
1217
1338
  * Specifies whether the form field is in an error state. Displays the field border in red and the message contained in the wcs-error component
1218
1339
  */
@@ -1313,7 +1434,7 @@ declare namespace LocalJSX {
1313
1434
  /**
1314
1435
  * Specifies if the stepper is in linear mode (the user can only click on the next step) or non-linear (the user can click on any step)
1315
1436
  */
1316
- "mode"?: 'linear' | 'nonLinear';
1437
+ "mode"?: HorizontalStepperMode;
1317
1438
  /**
1318
1439
  * Emits when the user selects a new step.
1319
1440
  */
@@ -1424,6 +1545,10 @@ declare namespace LocalJSX {
1424
1545
  * Instructional text that shows before the input has a value.
1425
1546
  */
1426
1547
  "placeholder"?: string | null;
1548
+ /**
1549
+ * Prefix displayed before the text field contents. This is not included in the value.
1550
+ */
1551
+ "prefixLabel"?: string;
1427
1552
  /**
1428
1553
  * If `true`, the user cannot modify the value.
1429
1554
  */
@@ -1448,6 +1573,10 @@ declare namespace LocalJSX {
1448
1573
  * Works with the min and max attributes to limit the increments at which a value can be set. Possible values are: `"any"` or a positive floating point number.
1449
1574
  */
1450
1575
  "step"?: string;
1576
+ /**
1577
+ * Suffix displayed after the text field contents. This is not included in the value.
1578
+ */
1579
+ "suffixLabel"?: string;
1451
1580
  /**
1452
1581
  * The type of control to display. The default type is text.
1453
1582
  */
@@ -1482,13 +1611,9 @@ declare namespace LocalJSX {
1482
1611
  /**
1483
1612
  * Size of the icon
1484
1613
  */
1485
- "size"?: 's' | 'm' | 'l' | 'xl';
1614
+ "size"?: MaterialIconSize;
1486
1615
  }
1487
1616
  interface WcsModal {
1488
- /**
1489
- * Specifies whether the component should display a backdrop on the entire page
1490
- */
1491
- "backdrop"?: boolean;
1492
1617
  /**
1493
1618
  * Triggered when the user leaves the dialog with the closing button.
1494
1619
  */
@@ -1501,6 +1626,14 @@ declare namespace LocalJSX {
1501
1626
  * Specifies whether the component should display a close button. if false, it won't close the modal when the escape key is pressed.
1502
1627
  */
1503
1628
  "showCloseButton"?: boolean;
1629
+ /**
1630
+ * There are multiple sizes for modals. The default size is medium (m), however other sizes are available. Select the size best suited for the content and screen size displaying the modal. Remember to test responsiveness.
1631
+ */
1632
+ "size"?: ModalSize;
1633
+ /**
1634
+ * Specifies whether the component should display a backdrop on the entire page
1635
+ */
1636
+ "withoutBackdrop"?: boolean;
1504
1637
  }
1505
1638
  interface WcsNav {
1506
1639
  }
@@ -1543,12 +1676,12 @@ declare namespace LocalJSX {
1543
1676
  */
1544
1677
  "disabled"?: boolean;
1545
1678
  "label"?: string;
1546
- "mode"?: 'radio' | 'option';
1679
+ "mode"?: RadioGroupMode;
1547
1680
  "onWcsRadioClick"?: (event: CustomEvent<RadioChosedEvent>) => void;
1548
1681
  "value"?: any | any[] | undefined | null;
1549
1682
  }
1550
1683
  interface WcsRadioGroup {
1551
- "mode"?: 'radio' | 'option';
1684
+ "mode"?: RadioGroupMode;
1552
1685
  "name"?: any;
1553
1686
  /**
1554
1687
  * Emitted when the value has changed.
@@ -1625,13 +1758,21 @@ declare namespace LocalJSX {
1625
1758
  /**
1626
1759
  * Indicates the spinner display mode. Accepted values: `border` or `growing`
1627
1760
  */
1628
- "mode"?: 'border' | 'growing';
1761
+ "mode"?: WcsSpinnerMode;
1629
1762
  }
1630
1763
  interface WcsSwitch {
1631
1764
  /**
1632
1765
  * If `true`, the switch is selected.
1633
1766
  */
1634
1767
  "checked"?: boolean;
1768
+ /**
1769
+ * Specify wether the switch is disabled or not.
1770
+ */
1771
+ "disabled"?: boolean;
1772
+ /**
1773
+ * Specifie the alignment of the switch with the label content
1774
+ */
1775
+ "labelAlignment"?: SwitchLabelAlignment;
1635
1776
  "name"?: string;
1636
1777
  /**
1637
1778
  * Emitted when the checked property has changed.
@@ -1778,14 +1919,38 @@ declare namespace LocalJSX {
1778
1919
  }
1779
1920
  interface WcsTooltip {
1780
1921
  /**
1781
- * The **id** of the element the tooltip's going to describe.
1922
+ * Delay in ms once a trigger event is fired before the tooltip shows or hides. You can provide an array with two values to define a different duration for show and hide. `[showDelay, hideDelay]` Use null to use default value.
1923
+ */
1924
+ "delay"?: number | [number, number];
1925
+ /**
1926
+ * Duration in ms of the transition animation.
1927
+ */
1928
+ "duration"?: number | [number, number];
1929
+ /**
1930
+ * The **id** of the element the tooltip's going to describe. This property cannot be modified after initialization.
1782
1931
  * @example ```html <span id="tooltiped">Some content</span> <wcs-tooltip for="tooltiped">A tooltip!</wcs-tooltip> ```
1783
1932
  */
1784
1933
  "for"?: string;
1934
+ /**
1935
+ * Determines if the tooltip has interactive content inside of it, so that it can be hovered over and clicked inside without hiding.
1936
+ */
1937
+ "interactive"?: boolean;
1938
+ /**
1939
+ * Specifies the maximum width of the tooltip. Useful to prevent it from being too horizontally wide to read. If the viewport's width is smaller than maxWidth, core CSS ensures the tippy remains smaller than the screen.
1940
+ */
1941
+ "maxWidth"?: string | number;
1785
1942
  /**
1786
1943
  * Where the tooltip is going to show relative to the element it's describing.
1787
1944
  */
1788
1945
  "position"?: WcsTooltipPosition;
1946
+ /**
1947
+ * Allows you to change the theme used by tippy. The WCS theme is used by default and uses the WCS CSS variables. You can create a theme by following this documentation and choosing a custom name : https://atomiks.github.io/tippyjs/v6/themes/
1948
+ */
1949
+ "theme"?: string;
1950
+ /**
1951
+ * Determines the events that cause the tooltip to show. Multiple event names are separated by spaces. See: https://atomiks.github.io/tippyjs/v6/all-props/#trigger
1952
+ */
1953
+ "trigger"?: string;
1789
1954
  }
1790
1955
  interface IntrinsicElements {
1791
1956
  "wcs-action-bar": WcsActionBar;
@@ -1800,6 +1965,8 @@ declare namespace LocalJSX {
1800
1965
  "wcs-com-nav-submenu": WcsComNavSubmenu;
1801
1966
  "wcs-divider": WcsDivider;
1802
1967
  "wcs-dropdown": WcsDropdown;
1968
+ "wcs-dropdown-divider": WcsDropdownDivider;
1969
+ "wcs-dropdown-header": WcsDropdownHeader;
1803
1970
  "wcs-dropdown-item": WcsDropdownItem;
1804
1971
  "wcs-editable-field": WcsEditableField;
1805
1972
  "wcs-error": WcsError;
@@ -1857,6 +2024,8 @@ declare module "@stencil/core" {
1857
2024
  "wcs-com-nav-submenu": LocalJSX.WcsComNavSubmenu & JSXBase.HTMLAttributes<HTMLWcsComNavSubmenuElement>;
1858
2025
  "wcs-divider": LocalJSX.WcsDivider & JSXBase.HTMLAttributes<HTMLWcsDividerElement>;
1859
2026
  "wcs-dropdown": LocalJSX.WcsDropdown & JSXBase.HTMLAttributes<HTMLWcsDropdownElement>;
2027
+ "wcs-dropdown-divider": LocalJSX.WcsDropdownDivider & JSXBase.HTMLAttributes<HTMLWcsDropdownDividerElement>;
2028
+ "wcs-dropdown-header": LocalJSX.WcsDropdownHeader & JSXBase.HTMLAttributes<HTMLWcsDropdownHeaderElement>;
1860
2029
  "wcs-dropdown-item": LocalJSX.WcsDropdownItem & JSXBase.HTMLAttributes<HTMLWcsDropdownItemElement>;
1861
2030
  "wcs-editable-field": LocalJSX.WcsEditableField & JSXBase.HTMLAttributes<HTMLWcsEditableFieldElement>;
1862
2031
  "wcs-error": LocalJSX.WcsError & JSXBase.HTMLAttributes<HTMLWcsErrorElement>;
@@ -0,0 +1,22 @@
1
+ export * from './components';
2
+ export * from './components/badge/badge-interface';
3
+ export * from './components/button/button-interface';
4
+ export * from './components/card/card-interface';
5
+ export * from './components/checkbox/checkbox-interface';
6
+ export * from './components/com-nav/com-nav-interface';
7
+ export * from './components/dropdown/dropdown-interface';
8
+ export * from './components/editable-field/editable-field-interface';
9
+ export * from './components/grid/grid-interface';
10
+ export * from './components/horizontal-stepper/horizontal-stepper-interface';
11
+ export * from './components/input/input-interface';
12
+ export * from './components/mat-icon/mat-icon-interface';
13
+ export * from './components/modal/modal-interface';
14
+ export * from './components/radio/radio-interface';
15
+ export * from './components/radio-group/radio-group-interface';
16
+ export * from './components/select/select-interface';
17
+ export * from './components/select-option/select-option-interface';
18
+ export * from './components/spinner/spinner-interface';
19
+ export * from './components/switch/switch-interface';
20
+ export * from './components/tabs/tabs-interface';
21
+ export * from './components/textarea/textarea-interface';
22
+ export * from './components/tooltip/tooltip-interface';
@@ -666,7 +666,7 @@ export declare namespace JSXBase {
666
666
  use: JSXBase.SVGAttributes;
667
667
  view: JSXBase.SVGAttributes;
668
668
  }
669
- interface SlotAttributes {
669
+ interface SlotAttributes extends JSXAttributes {
670
670
  name?: string;
671
671
  slot?: string;
672
672
  onSlotchange?: (event: Event) => void;
@@ -1427,9 +1427,7 @@ export declare namespace JSXBase {
1427
1427
  z?: number | string;
1428
1428
  zoomAndPan?: string;
1429
1429
  }
1430
- interface DOMAttributes<T = Element> {
1431
- key?: string | number;
1432
- ref?: (elm?: T) => void;
1430
+ interface DOMAttributes<T> extends JSXAttributes<T> {
1433
1431
  slot?: string;
1434
1432
  part?: string;
1435
1433
  exportparts?: string;
@@ -1550,6 +1548,10 @@ export declare namespace JSXBase {
1550
1548
  onTransitionEndCapture?: (event: TransitionEvent) => void;
1551
1549
  }
1552
1550
  }
1551
+ export interface JSXAttributes<T = Element> {
1552
+ key?: string | number;
1553
+ ref?: (elm?: T) => void;
1554
+ }
1553
1555
  export interface CustomElementsDefineOptions {
1554
1556
  exclude?: string[];
1555
1557
  resourcesUrl?: string;
@@ -26,3 +26,4 @@ export declare const raf: (h: any) => any;
26
26
  * Return true if the mouseEvent click is inside the given HTML element
27
27
  */
28
28
  export declare const clickInsideElement: (event: MouseEvent, element: HTMLElement) => boolean;
29
+ export declare const clickTargetIsElementOrChildren: (mouseEvent: MouseEvent, element: HTMLElement) => boolean;
@@ -1 +1 @@
1
- import{r as t,h as s,H as e}from"./p-f46e6c3c.js";let i=class{constructor(s){t(this,s),this.size="m",this.family="filled"}componentWillLoad(){this.onFamilyChange()}componentDidLoad(){this.appendMaterialStylesheet()}appendMaterialStylesheet(){let t=document.querySelector(`link[href="${this.familyFile}"]`);t||(t=document.createElement("link"),t.setAttribute("rel","stylesheet"),t.setAttribute("href",this.familyFile),document.head.appendChild(t))}onFamilyChange(){switch(this.familyFile="https://fonts.googleapis.com/icon?family=",this.family){case"filled":this.familyFile+="Material+Icons",this.familyClass="material-icons";break;case"outlined":this.familyFile+="Material+Icons+Outlined",this.familyClass="material-icons-outlined";break;case"twotone":this.familyFile+="Material+Icons+Two+Tone",this.familyClass="material-icons-two-tone";break;case"rounded":this.familyFile+="Material+Icons+Round",this.familyClass="material-icons-round";break;case"sharp":this.familyFile+="Material+Icons+Sharp",this.familyClass="material-icons-sharp"}this.appendMaterialStylesheet()}render(){return s(e,null,s("link",{rel:"stylesheet",type:"text/css",href:this.familyFile}),s("i",{class:this.familyClass+" size-"+this.size},this.icon))}static get watchers(){return{family:["onFamilyChange"]}}};i.style=":host{display:flex}:host .size-s{font-size:18px}:host .size-m{font-size:24px}:host .size-l{font-size:36px}:host .size-xl{font-size:48px}";export{i as wcs_mat_icon}
1
+ import{r as t,h as s,H as e}from"./p-f46e6c3c.js";let i=class{constructor(s){t(this,s),this.size="m",this.family="filled"}componentWillLoad(){this.onFamilyChange()}componentDidLoad(){this.appendMaterialStylesheet()}appendMaterialStylesheet(){let t=document.querySelector(`link[href="${this.familyFile}"]`);t||(t=document.createElement("link"),t.setAttribute("rel","stylesheet"),t.setAttribute("href",this.familyFile),document.head.appendChild(t))}onFamilyChange(){switch(this.familyFile="https://fonts.googleapis.com/icon?family=",this.family){case"filled":this.familyFile+="Material+Icons",this.familyClass="material-icons";break;case"outlined":this.familyFile+="Material+Icons+Outlined",this.familyClass="material-icons-outlined";break;case"twotone":this.familyFile+="Material+Icons+Two+Tone",this.familyClass="material-icons-two-tone";break;case"rounded":this.familyFile+="Material+Icons+Round",this.familyClass="material-icons-round";break;case"sharp":this.familyFile+="Material+Icons+Sharp",this.familyClass="material-icons-sharp"}this.appendMaterialStylesheet()}render(){return s(e,null,s("link",{rel:"stylesheet",type:"text/css",href:this.familyFile}),s("i",{class:this.familyClass+" size-"+this.size},this.icon))}static get watchers(){return{family:["onFamilyChange"]}}};i.style=":host{display:inline-block}:host .size-s{font-size:18px}:host .size-m{font-size:24px}:host .size-l{font-size:36px}:host .size-xl{font-size:48px}";export{i as wcs_mat_icon}
@@ -1 +1 @@
1
- import{r as t,c as s,a as i,h as e,H as r,g as a}from"./p-f46e6c3c.js";import{d as h,i as o,r as n,f as c}from"./p-83f1ad32.js";let l=class{constructor(i){t(this,i),this.wcsChange=s(this,"wcsChange",7),this.wcsInput=s(this,"wcsInput",7),this.wcsBlur=s(this,"wcsBlur",7),this.wcsFocus=s(this,"wcsFocus",7),this.inputId="wcs-textarea-"+d++,this.didBlurAfterEdit=!1,this.inheritedAttributes={},this.fireFocusEvents=!0,this.hasFocus=!1,this.autocapitalize="none",this.autofocus=!1,this.clearOnEdit=!1,this.debounce=0,this.disabled=!1,this.name=this.inputId,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.state="initial",this.autoGrow=!1,this.value="",this.onInput=t=>{this.nativeInput&&(this.value=this.nativeInput.value),this.wcsInput.emit(t)},this.onFocus=t=>{this.hasFocus=!0,this.focusChange(),this.fireFocusEvents&&this.wcsFocus.emit(t)},this.onBlur=t=>{this.hasFocus=!1,this.focusChange(),this.fireFocusEvents&&this.wcsBlur.emit(t)},this.onKeyDown=()=>{this.checkClearOnEdit()}}debounceChanged(){this.wcsChange=h(this.wcsChange,this.debounce)}valueChanged(){const t=this.nativeInput,s=this.getValue();t&&t.value!==s&&(t.value=s),this.runAutoGrow(),this.wcsChange.emit({value:s})}connectedCallback(){this.debounceChanged(),document.dispatchEvent(new CustomEvent("wcsInputDidLoad",{detail:this.el}))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("wcsInputDidUnload",{detail:this.el}))}componentWillLoad(){this.inheritedAttributes=o(this.el,["title"])}componentDidLoad(){n((()=>this.runAutoGrow()))}runAutoGrow(){const t=this.nativeInput;t&&this.autoGrow&&i((()=>{t.style.height="auto",t.style.height=t.scrollHeight+"px"}))}async fitContent(){n((()=>this.runAutoGrow()))}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async setBlur(){this.nativeInput&&this.nativeInput.blur()}getInputElement(){return Promise.resolve(this.nativeInput)}checkClearOnEdit(){this.clearOnEdit&&(this.didBlurAfterEdit&&this.hasValue()&&(this.value=""),this.didBlurAfterEdit=!1)}focusChange(){this.clearOnEdit&&!this.hasFocus&&this.hasValue()&&(this.didBlurAfterEdit=!0)}hasValue(){return""!==this.getValue()}getValue(){return this.value||""}render(){const t=this.getValue(),s=this.inputId+"-lbl",i=c(this.el);return i&&(i.id=s),e(r,{"aria-disabled":this.disabled?"true":null},this.icon?e("wcs-mat-icon",{icon:this.icon,size:"m"}):null,e("textarea",Object.assign({class:"native-textarea","aria-labelledby":i?s:null,ref:t=>this.nativeInput=t,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),t))}get el(){return a(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"]}}},d=0;l.style=":host{--wcs-textarea-icon-color:var(--wcs-text-medium);--wcs-internal-textarea-border-radius-left:var(--wcs-textarea-border-radius-left, var(--wcs-border-radius));--wcs-internal-textarea-border-radius-right:var(--wcs-textarea-border-radius-right, var(--wcs-border-radius));display:flex;flex-direction:row;width:100%;border-radius:var(--wcs-internal-textarea-border-radius-left) var(--wcs-internal-textarea-border-radius-right) var(--wcs-internal-textarea-border-radius-right) var(--wcs-internal-textarea-border-radius-left);background-color:var(--wcs-light);border:1px solid var(--wcs-light);background-clip:padding-box}:host ::placeholder{font-weight:400;font-style:italic}:host textarea{overflow:auto;flex:1;width:100%;box-sizing:border-box;min-height:24px;background-color:transparent;font-family:var(--wcs-font-sans-serif);color:var(--wcs-primary);font-weight:var(--wcs-font-weight-form-value) !important;border:none;padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);font-size:1rem;line-height:1.5}:host textarea:focus{box-shadow:none;outline:0}:host wcs-mat-icon{position:relative;margin-top:7px;margin-left:8px;margin-right:-8px}:host([state=error]){border-color:var(--wcs-red) !important}:host(:focus-within){border:solid 1px var(--wcs-primary)}:host(:focus-within) wcs-mat-icon{color:var(--wcs-primary)}";export{l as wcs_textarea}
1
+ import{r as t,c as s,a as i,h as e,H as r,g as a}from"./p-f46e6c3c.js";import{d as h,i as o,r as n,f as c}from"./p-cf4d7a83.js";let d=class{constructor(i){t(this,i),this.wcsChange=s(this,"wcsChange",7),this.wcsInput=s(this,"wcsInput",7),this.wcsBlur=s(this,"wcsBlur",7),this.wcsFocus=s(this,"wcsFocus",7),this.inputId="wcs-textarea-"+l++,this.didBlurAfterEdit=!1,this.inheritedAttributes={},this.fireFocusEvents=!0,this.hasFocus=!1,this.autocapitalize="none",this.autofocus=!1,this.clearOnEdit=!1,this.debounce=0,this.disabled=!1,this.name=this.inputId,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.state="initial",this.autoGrow=!1,this.value="",this.onInput=t=>{this.nativeInput&&(this.value=this.nativeInput.value),this.wcsInput.emit(t)},this.onFocus=t=>{this.hasFocus=!0,this.focusChange(),this.fireFocusEvents&&this.wcsFocus.emit(t)},this.onBlur=t=>{this.hasFocus=!1,this.focusChange(),this.fireFocusEvents&&this.wcsBlur.emit(t)},this.onKeyDown=()=>{this.checkClearOnEdit()}}debounceChanged(){this.wcsChange=h(this.wcsChange,this.debounce)}valueChanged(){const t=this.nativeInput,s=this.getValue();t&&t.value!==s&&(t.value=s),this.runAutoGrow(),this.wcsChange.emit({value:s})}connectedCallback(){this.debounceChanged(),document.dispatchEvent(new CustomEvent("wcsInputDidLoad",{detail:this.el}))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("wcsInputDidUnload",{detail:this.el}))}componentWillLoad(){this.inheritedAttributes=o(this.el,["title"])}componentDidLoad(){n((()=>this.runAutoGrow()))}runAutoGrow(){const t=this.nativeInput;t&&this.autoGrow&&i((()=>{t.style.height="auto",t.style.height=t.scrollHeight+"px"}))}async fitContent(){n((()=>this.runAutoGrow()))}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async setBlur(){this.nativeInput&&this.nativeInput.blur()}getInputElement(){return Promise.resolve(this.nativeInput)}checkClearOnEdit(){this.clearOnEdit&&(this.didBlurAfterEdit&&this.hasValue()&&(this.value=""),this.didBlurAfterEdit=!1)}focusChange(){this.clearOnEdit&&!this.hasFocus&&this.hasValue()&&(this.didBlurAfterEdit=!0)}hasValue(){return""!==this.getValue()}getValue(){return this.value||""}render(){const t=this.getValue(),s=this.inputId+"-lbl",i=c(this.el);return i&&(i.id=s),e(r,{"aria-disabled":this.disabled?"true":null},this.icon?e("wcs-mat-icon",{icon:this.icon,size:"m"}):null,e("textarea",Object.assign({class:"native-textarea","aria-labelledby":i?s:null,ref:t=>this.nativeInput=t,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),t))}get el(){return a(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"]}}},l=0;d.style=":host{--wcs-textarea-icon-color:var(--wcs-text-medium);--wcs-internal-textarea-border-radius-left:var(--wcs-textarea-border-radius-left, var(--wcs-border-radius));--wcs-internal-textarea-border-radius-right:var(--wcs-textarea-border-radius-right, var(--wcs-border-radius));display:flex;flex-direction:row;width:100%;border-radius:var(--wcs-internal-textarea-border-radius-left) var(--wcs-internal-textarea-border-radius-right) var(--wcs-internal-textarea-border-radius-right) var(--wcs-internal-textarea-border-radius-left);background-color:var(--wcs-light);border:1px solid var(--wcs-light);background-clip:padding-box}:host ::placeholder{font-weight:400;font-style:italic}:host textarea{overflow:auto;flex:1;width:100%;box-sizing:border-box;min-height:24px;background-color:transparent;font-family:var(--wcs-font-sans-serif);color:var(--wcs-primary);font-weight:var(--wcs-font-weight-form-value) !important;border:none;padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);font-size:1rem;line-height:1.5}:host textarea:focus{box-shadow:none;outline:0}:host wcs-mat-icon{position:relative;margin-top:7px;margin-left:8px;margin-right:-8px}:host([disabled]) textarea{color:var(--wcs-text-disabled)}:host([state=error]){border-color:var(--wcs-red) !important}:host(:focus-within){border:solid 1px var(--wcs-primary)}:host(:focus-within) wcs-mat-icon{color:var(--wcs-primary)}";export{d as wcs_textarea}
@@ -0,0 +1 @@
1
+ import{r,h as s,H as e}from"./p-f46e6c3c.js";let t=class{constructor(s){r(this,s)}render(){return s(e,{slot:"item"},s("slot",null))}};t.style=":host{display:block;padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);font-size:0.75rem;text-transform:uppercase;color:var(--wcs-text-medium);white-space:nowrap}";export{t as wcs_dropdown_header}
@@ -0,0 +1 @@
1
+ import{r as t,h as o,H as e,g as i}from"./p-f46e6c3c.js";import{a as r}from"./p-cf4d7a83.js";import{c as a}from"./p-d3c9a644.js";let n=class{constructor(o){t(this,o),this.showPopoverMenu=!1}componentDidLoad(){this.menu=this.el.shadowRoot.getElementById("toggle-menu-icon"),this.tooltip=this.el.shadowRoot.getElementById("menu"),this.popper=a(this.menu,this.tooltip,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,8]}}]})}onWindowClickEvent(t){r(t,this.tooltip)||r(t,this.menu)||this.showPopoverMenu&&this.toogleMenu()}toogleMenu(){this.showPopoverMenu=!this.showPopoverMenu}componentDidRender(){this.popper&&this.popper.update()}render(){return o(e,null,o("span",null,this.text),o("wcs-mat-icon",{id:"toggle-menu-icon",icon:"more_horiz",size:"m",onClick:()=>{this.toogleMenu()}}),o("span",{id:"menu","data-show":this.showPopoverMenu},o("div",{id:"arrow","data-popper-arrow":!0}),o("slot",null)))}get el(){return i(this)}};n.style='#menu{background-color:var(--wcs-gray);color:white;display:none;padding:var(--wcs-padding)}#menu[data-show]{display:block;z-index:9999}#menu[data-popper-placement^=top]>#arrow{bottom:-4px}#menu[data-popper-placement^=bottom]>#arrow{top:-4px}#menu[data-popper-placement^=left]>#arrow{right:-4px}#menu[data-popper-placement^=right]>#arrow{left:-4px}:host{display:flex;align-items:center;height:32px;padding-left:var(--wcs-padding);background-color:var(--wcs-gray-light)}#toggle-menu-icon{cursor:pointer;padding:0 var(--wcs-padding);user-select:none}#arrow,#arrow::before{position:absolute;width:8px;height:8px;background:inherit}#arrow{visibility:hidden}#arrow::before{visibility:visible;content:"";transform:rotate(45deg)}';export{n as wcs_galactic_menu}
@@ -0,0 +1 @@
1
+ import{r as c,c as t,h as e,H as s,g as i}from"./p-f46e6c3c.js";let o=class{constructor(e){c(this,e),this.wcsChange=t(this,"wcsChange",7),this.switchId="wcs-switch-"+r++,this.name=this.switchId,this.checked=!1,this.labelAlignment="center",this.disabled=!1}toggleChange(c){this.checked=!this.checked,this.wcsChange.emit({checked:this.checked})}render(){return e(s,null,e("label",{htmlFor:this.name,class:"wcs-container","aria-disabled":this.disabled},e("input",{onChange:c=>this.toggleChange(c),checked:this.checked,class:"wcs-switch",type:"checkbox",name:this.name,disabled:this.disabled,id:this.name}),e("span",{class:"wcs-checkmark"}),e("span",{class:"text"},e("slot",null))))}get el(){return i(this)}},r=0;o.style=':host{--wcs-switch-background-color-initial:var(--wcs-text-light);--wcs-switch-background-color-final:var(--wcs-primary);--wcs-switch-bullet-color-initial:var(--wcs-switch-background-color-final);--wcs-switch-bullet-color-final:var(--wcs-switch-background-color-initial);--wcs-switch-text-color:var(--wcs-text-medium);display:flex}:host([disabled]){--wcs-switch-text-color:var(--wcs-text-disabled)}.wcs-container{position:relative;display:flex;margin-bottom:0}:host([label-alignment=top]) .wcs-container{align-items:start}:host([label-alignment=center]) .wcs-container{align-items:center}:host([label-alignment=bottom]) .wcs-container{align-items:flex-end}.wcs-container input{position:absolute;opacity:0;height:0;width:0}.text{color:var(--wcs-switch-text-color);margin-left:6px;font-weight:500;line-height:1.375}.wcs-container:not([aria-disabled]) input:checked~.text{--wcs-switch-text-color:var(--wcs-primary)}.wcs-checkmark::before{position:absolute;transition:all 0.15s ease-out}.wcs-checkmark::before{bottom:0.3125rem;left:0.3125rem;width:0.875rem;height:0.875rem;content:"";border-radius:50%;background-color:var(--wcs-switch-bullet-color-initial)}:host([disabled]:not([checked])) .wcs-checkmark::before{background-color:var(--wcs-text-disabled)}:host([disabled]:not([checked])) .wcs-checkmark{background-color:var(--wcs-light)}:host([disabled][checked]) .wcs-checkmark::before{background-color:var(--wcs-white)}:host([disabled][checked]) .wcs-checkmark{background-color:var(--wcs-text-disabled)}.wcs-checkmark{top:0;right:0;bottom:0;left:0;width:3rem;height:1.5rem;border-radius:0.75rem;background-color:var(--wcs-switch-background-color-initial)}.wcs-container:not([aria-disabled]){cursor:pointer}.wcs-container:hover:not([aria-disabled]){--wcs-switch-text-color:var(--wcs-primary)}input:not([disabled]):checked+.wcs-checkmark::before,.wcs-container:hover input:not([disabled])+.wcs-checkmark::before,.wcs-container:focus input:not([disabled])+.wcs-checkmark::before{background-color:var(--wcs-switch-bullet-color-final)}input:checked+.wcs-checkmark::before{transform:translateX(24px)}input:not([disabled]):checked+.wcs-checkmark,.wcs-container:hover input:not([disabled])+.wcs-checkmark,.wcs-container:focus input:not([disabled])+.wcs-checkmark{background-color:var(--wcs-switch-background-color-final)}';export{o as wcs_switch}
@@ -0,0 +1 @@
1
+ import{r as o,c as s,h as a,H as t}from"./p-f46e6c3c.js";let i=class{constructor(a){o(this,a),this.wcsDialogClosed=s(this,"wcsDialogClosed",7),this.withoutBackdrop=!1,this.show=!1,this.showCloseButton=!1,this.size="m"}render(){return a(t,null,a("div",{class:"wcs-modal-backdrop"}),a("div",{class:"wcs-modal-container","data-size":this.size},a("div",{class:"wcs-modal-header"},a("h5",null,a("slot",{name:"header"})),this.showCloseButton&&a("wcs-button",{shape:"round",mode:"clear",class:"wcs-dark",onClick:o=>this.onCloseButtonClick(o)},a("i",{class:"material-icons"},"close"))),a("div",{class:"wcs-modal-content"},a("slot",null)),a("div",{class:"wcs-modal-actions"},a("slot",{name:"actions"}))))}onKeyDown(o){this.showCloseButton&&"Escape"===o.key&&this.close()}onCloseButtonClick(o){this.close()}close(){this.show=!1,this.wcsDialogClosed.emit()}};i.style="wcs-modal{--saas-fix-modal:rgba(var(--wcs-black), 0.5);z-index:999;position:fixed;top:0;bottom:0;left:0;right:0;display:none}wcs-modal[show]{display:block;width:100%;height:100%;opacity:1;display:block}wcs-modal[without-backdrop] .wcs-modal-backdrop{display:none}wcs-modal[without-backdrop] .wcs-modal-container{border:solid 1px var(--wcs-text-light)}.wcs-modal-backdrop{display:block;position:fixed;top:0;left:0;bottom:0;right:0;opacity:0.4;background-color:var(--wcs-black)}.wcs-modal-container{position:fixed;top:50%;left:50%;box-sizing:border-box;max-width:100%;transform:translate(-50%, -50%);pointer-events:auto;background-color:#fff;background-clip:padding-box;border:0 solid rgba(0, 0, 0, 0.2);border-radius:0.4375rem;outline:0;z-index:20000;display:block;padding:1.375rem 1.875rem 1.875rem 1.875rem}.wcs-modal-container[data-size=s]{width:288px}.wcs-modal-container[data-size=m]{width:480px}.wcs-modal-container[data-size=l]{width:864px}.wcs-modal-container[data-size=xl]{width:1200px}.wcs-modal-header{margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}.wcs-modal-header h5{font-size:24px;font-weight:400;margin:0}.wcs-modal-content{font-weight:400;font-size:16px}.wcs-modal-actions{margin-top:20px;float:right}";export{i as wcs_modal}