@yoobic/yobi 8.3.1-4 → 8.3.1-7

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 (88) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/{form-choice-helpers-310cd7b3.js → form-choice-helpers-3f5f2f44.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/yoo-action-sheet-controller.cjs.entry.js +1 -1
  5. package/dist/cjs/yoo-card-chat.cjs.entry.js +1 -1
  6. package/dist/cjs/yoo-form-choice-button.cjs.entry.js +1 -1
  7. package/dist/cjs/yoo-form-choice-card.cjs.entry.js +1 -1
  8. package/dist/cjs/yoo-form-choice-chat.cjs.entry.js +1 -1
  9. package/dist/cjs/yoo-form-choice-image.cjs.entry.js +1 -1
  10. package/dist/cjs/yoo-form-choice-radio.cjs.entry.js +1 -1
  11. package/dist/cjs/yoo-form-dynamic.cjs.entry.js +2 -1
  12. package/dist/cjs/yoo-form-feedback.cjs.entry.js +1 -1
  13. package/dist/cjs/yoo-form-input-container.cjs.entry.js +32 -43
  14. package/dist/cjs/yoo-form-input.cjs.entry.js +7 -7
  15. package/dist/cjs/yoo-form-text-area.cjs.entry.js +12 -3
  16. package/dist/cjs/yoo-ion-alert-controller.cjs.entry.js +1 -1
  17. package/dist/cjs/yoo-ion-modal-controller.cjs.entry.js +1 -1
  18. package/dist/cjs/yoo-ion-toast-controller.cjs.entry.js +1 -1
  19. package/dist/cjs/yoo-lesson-question-result.cjs.entry.js +1 -1
  20. package/dist/cjs/yoo-rating.cjs.entry.js +1 -1
  21. package/dist/cjs/yoo-reset-password.cjs.entry.js +8 -6
  22. package/dist/collection/components/2.molecules/action-sheet-controller/action-sheet-controller.js +4 -4
  23. package/dist/collection/components/2.molecules/alert-controller/alert-controller.js +4 -4
  24. package/dist/collection/components/2.molecules/modal-controller/modal-controller.js +4 -4
  25. package/dist/collection/components/2.molecules/rating/rating.js +1 -1
  26. package/dist/collection/components/2.molecules/toast-controller/toast-controller.js +4 -4
  27. package/dist/collection/components/form/form-choice/card/form-choice-card.css +0 -1
  28. package/dist/collection/components/form/form-dynamic/form-dynamic.js +2 -1
  29. package/dist/collection/components/form/form-feedback/form-feedback.css +5 -1
  30. package/dist/collection/components/form/form-input/form-input.css +9 -9
  31. package/dist/collection/components/form/form-input/form-input.js +30 -8
  32. package/dist/collection/components/form/form-input-container/form-input-container.js +60 -54
  33. package/dist/collection/components/form/form-text-area/form-text-area.js +12 -3
  34. package/dist/collection/feature-communicate/chat/card-chat/card-chat.css +3 -1
  35. package/dist/collection/feature-learn/learning/lesson-question-result/lesson-question-result.css +2 -3
  36. package/dist/collection/feature-platform/login/reset-password/reset-password.css +4 -1
  37. package/dist/collection/feature-platform/login/reset-password/reset-password.js +9 -7
  38. package/dist/design-system/design-system.esm.js +1 -1
  39. package/dist/design-system/{form-choice-helpers-1bf9332c.js → form-choice-helpers-30faba6f.js} +1 -1
  40. package/dist/design-system/yoo-action-sheet-controller.entry.js +1 -1
  41. package/dist/design-system/yoo-card-chat.entry.js +1 -1
  42. package/dist/design-system/yoo-form-choice-button.entry.js +1 -1
  43. package/dist/design-system/yoo-form-choice-card.entry.js +1 -1
  44. package/dist/design-system/yoo-form-choice-chat.entry.js +1 -1
  45. package/dist/design-system/yoo-form-choice-image.entry.js +1 -1
  46. package/dist/design-system/yoo-form-choice-radio.entry.js +1 -1
  47. package/dist/design-system/yoo-form-dynamic.entry.js +2 -1
  48. package/dist/design-system/yoo-form-feedback.entry.js +1 -1
  49. package/dist/design-system/yoo-form-input-container.entry.js +32 -43
  50. package/dist/design-system/yoo-form-input.entry.js +7 -7
  51. package/dist/design-system/yoo-form-text-area.entry.js +12 -3
  52. package/dist/design-system/yoo-ion-alert-controller.entry.js +1 -1
  53. package/dist/design-system/yoo-ion-modal-controller.entry.js +1 -1
  54. package/dist/design-system/yoo-ion-toast-controller.entry.js +1 -1
  55. package/dist/design-system/yoo-lesson-question-result.entry.js +1 -1
  56. package/dist/design-system/yoo-rating.entry.js +1 -1
  57. package/dist/design-system/yoo-reset-password.entry.js +8 -6
  58. package/dist/esm/design-system.js +1 -1
  59. package/dist/esm/{form-choice-helpers-1bf9332c.js → form-choice-helpers-30faba6f.js} +1 -1
  60. package/dist/esm/loader.js +1 -1
  61. package/dist/esm/yoo-action-sheet-controller.entry.js +1 -1
  62. package/dist/esm/yoo-card-chat.entry.js +1 -1
  63. package/dist/esm/yoo-form-choice-button.entry.js +1 -1
  64. package/dist/esm/yoo-form-choice-card.entry.js +1 -1
  65. package/dist/esm/yoo-form-choice-chat.entry.js +1 -1
  66. package/dist/esm/yoo-form-choice-image.entry.js +1 -1
  67. package/dist/esm/yoo-form-choice-radio.entry.js +1 -1
  68. package/dist/esm/yoo-form-dynamic.entry.js +2 -1
  69. package/dist/esm/yoo-form-feedback.entry.js +1 -1
  70. package/dist/esm/yoo-form-input-container.entry.js +32 -43
  71. package/dist/esm/yoo-form-input.entry.js +7 -7
  72. package/dist/esm/yoo-form-text-area.entry.js +12 -3
  73. package/dist/esm/yoo-ion-alert-controller.entry.js +1 -1
  74. package/dist/esm/yoo-ion-modal-controller.entry.js +1 -1
  75. package/dist/esm/yoo-ion-toast-controller.entry.js +1 -1
  76. package/dist/esm/yoo-lesson-question-result.entry.js +1 -1
  77. package/dist/esm/yoo-rating.entry.js +1 -1
  78. package/dist/esm/yoo-reset-password.entry.js +8 -6
  79. package/dist/types/components/2.molecules/action-sheet-controller/action-sheet-controller.d.ts +1 -1
  80. package/dist/types/components/2.molecules/alert-controller/alert-controller.d.ts +1 -1
  81. package/dist/types/components/2.molecules/modal-controller/modal-controller.d.ts +1 -1
  82. package/dist/types/components/2.molecules/toast-controller/toast-controller.d.ts +1 -1
  83. package/dist/types/components/form/form-input/form-input.d.ts +2 -1
  84. package/dist/types/components/form/form-input-container/form-input-container.d.ts +1 -0
  85. package/dist/types/components/form/form-text-area/form-text-area.d.ts +1 -0
  86. package/dist/types/components.d.ts +6 -2
  87. package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/form-field/form-field.interface.d.ts +1 -0
  88. package/package.json +1 -1
@@ -81,7 +81,7 @@ const YooRatingComponent = class {
81
81
  disabled: !this.isValidRating || !this.courseId,
82
82
  handler: () => this.onSubmitClick()
83
83
  }];
84
- return (h("yoo-form-footer", { class: "rating", buttons: button }));
84
+ return (h("yoo-form-footer", { class: "rating relative", buttons: button }));
85
85
  }
86
86
  renderEditable() {
87
87
  return [
@@ -5,7 +5,7 @@ import './index-cca9747a.js';
5
5
  import './lodash-f6e59a8e.js';
6
6
  import './_commonjsHelpers-f4d11124.js';
7
7
 
8
- const resetPasswordCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host>*{width:100%}:host p{margin:0;font-size:var(--font-size-16, 1rem);text-align:center}:host yoo-button{max-width:18.75rem;margin:auto;margin-top:var(--spacing-16, 1rem)}:host yoo-form-dynamic.margin-top{margin-top:var(--spacing-48, 3rem)}:host yoo-empty-state{height:15rem;margin-top:var(--spacing-08, 0.5rem)}:host yoo-form-input{display:block;max-width:18.75rem;margin:auto}";
8
+ const resetPasswordCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host>*{width:100%}:host p{margin:0;font-size:var(--font-size-16, 1rem);text-align:center}:host yoo-button{max-width:18.75rem;margin:auto;margin-top:var(--spacing-16, 1rem)}:host yoo-form-dynamic.margin-top{margin-top:var(--spacing-48, 3rem)}:host yoo-empty-state{height:15rem;margin-top:var(--spacing-08, 0.5rem)}:host yoo-form-input-container{display:block;max-width:18.75rem;margin:auto}:host yoo-form-input-container.web{font-size:var(--font-size-12, 0.75rem)}";
9
9
 
10
10
  const YooResetPasswordComponent = class {
11
11
  constructor(hostRef) {
@@ -60,12 +60,12 @@ const YooResetPasswordComponent = class {
60
60
  }
61
61
  renderRequest() {
62
62
  return [
63
- !!this.instruction && h("p", null, this.instruction),
63
+ !!this.instruction && h("p", { style: { maxWidth: '350px', margin: '0 auto' } }, this.instruction),
64
64
  h("yoo-empty-state", { ref: (el) => (this.emptyState = el), type: this.isMagicLink ? 'magic-link' : 'password' }),
65
- h("yoo-form-input-container", { field: { title: translate('YOOBICUSERNAME') }, hideOptional: true, hideLabel: true }, h("yoo-form-input", { ref: (el) => (this.emailInput = el), validators: [{ name: 'required' }], type: "email", uiValidation: { valid: false, invalid: false }, onInputChanged: (event) => this.onInputChanged(event), placeholder: translate('YOOBICUSERNAMEENTER'),
66
- //! Do not set up onInputBlur without confirming on mobile device (We don't want to have to press submit more than once)
65
+ h("yoo-form-input-container", { field: { title: 'YOOBICUSERNAME' }, hideOptional: true, useUppercaseLabel: true }, h("yoo-form-input", { ref: (el) => (this.emailInput = el), iconPrefixColor: 'app-color', validators: [{ name: 'required' }], type: "email", uiValidation: { valid: false, invalid: false }, onInputChanged: (event) => this.onInputChanged(event), placeholder: translate('YOOBICUSERNAMEENTER'),
66
+ //! Do not set up onInputBlur without confirming on mobile device. We don't want to have to press submit more than once
67
67
  size: isWeb(this.host) ? 'medium' : 'large' })),
68
- h("yoo-button", { ref: (el) => (this.submitButton = el), size: isWeb(this.host) ? 'medium' : 'large', color: "app-color", disabled: !this.validity, class: "expanded", onClick: () => this.onSubmit() }, translate('SUBMIT'))
68
+ h("yoo-button", { ref: (el) => (this.submitButton = el), size: isWeb(this.host) ? 'medium' : 'large', color: "app-color", disabled: !this.validity, class: "expanded", onClick: () => this.onSubmit() }, this.isMagicLink ? translate('YOOBICMAGICLINK') : translate('YOOBICRESETPASSWORD'))
69
69
  ];
70
70
  }
71
71
  renderResetForm() {
@@ -87,6 +87,7 @@ const YooResetPasswordComponent = class {
87
87
  },
88
88
  {
89
89
  type: FormFieldType.password,
90
+ iconPrefixColor: 'app-color',
90
91
  name: 'newpassword',
91
92
  placeholder: 'NEWPASSWORD',
92
93
  required: true,
@@ -95,6 +96,7 @@ const YooResetPasswordComponent = class {
95
96
  },
96
97
  {
97
98
  type: FormFieldType.password,
99
+ iconPrefixColor: 'app-color',
98
100
  name: 'verify',
99
101
  placeholder: 'CONFIRMPASSWORD',
100
102
  required: true,
@@ -104,7 +106,7 @@ const YooResetPasswordComponent = class {
104
106
  ]
105
107
  }
106
108
  ];
107
- return h("yoo-form-dynamic", { class: "margin-top", animated: false, slides: slides, showRecap: false, showSave: true, skipValidation: true, onDataChanged: (ev) => this.onDataChanged(ev), onFormValidityChanged: (ev) => this.onValidityChanged(ev), onSave: () => this.onSubmit() }, h("div", { slot: "footer" }, h("yoo-button", { size: isWeb(this.host) ? 'medium' : 'large', color: "app-color", disabled: !this.validity, onClick: () => this.onSubmit() }, translate('SUBMIT'))));
109
+ return (h("yoo-form-dynamic", { class: "margin-top", animated: false, slides: slides, showRecap: false, showSave: true, skipValidation: true, onDataChanged: (ev) => this.onDataChanged(ev), onFormValidityChanged: (ev) => this.onValidityChanged(ev), onSave: () => this.onSubmit() }, h("div", { slot: "footer" }, h("yoo-button", { size: isWeb(this.host) ? 'medium' : 'large', color: "app-color", disabled: !this.validity, onClick: () => this.onSubmit() }, translate('SUBMIT')))));
108
110
  }
109
111
  render() {
110
112
  return h("div", null, this.token ? this.renderResetForm() : this.renderRequest());
@@ -6,7 +6,7 @@ export declare class YooIonActionSheetControllerComponent implements IOverlayCon
6
6
  private device;
7
7
  protected onDeviceCreated(ev: CustomEvent<HTMLYooDeviceElement>): void;
8
8
  protected onDeviceDestroyed(ev: CustomEvent<HTMLYooDeviceElement>): void;
9
- protected onClick(ev: MouseEvent): void;
9
+ protected onPointerDown(ev: MouseEvent): void;
10
10
  protected actionSheetWillPresent(ev: any): void;
11
11
  protected actionSheetWillDismiss(ev: any): void;
12
12
  protected escapeKeyUp(event: any): void;
@@ -6,7 +6,7 @@ export declare class YooIonAlertControllerComponent implements IOverlayControlle
6
6
  private device;
7
7
  protected onDeviceCreated(ev: CustomEvent<HTMLYooDeviceElement>): void;
8
8
  protected onDeviceDestroyed(ev: CustomEvent<HTMLYooDeviceElement>): void;
9
- protected onClick(ev: MouseEvent): void;
9
+ protected onPointerDown(ev: MouseEvent): void;
10
10
  protected alertWillPresent(ev: any): void;
11
11
  protected alertWillDismiss(ev: any): void;
12
12
  protected escapeKeyUp(event: any): void;
@@ -6,7 +6,7 @@ export declare class YooIonModalControllerComponent implements IOverlayControlle
6
6
  private devices;
7
7
  protected onDeviceCreated(ev: CustomEvent<HTMLYooDeviceElement>): void;
8
8
  protected onDeviceDestroyed(ev: CustomEvent<HTMLYooDeviceElement>): void;
9
- protected onClick(ev: MouseEvent): void;
9
+ protected onPointerDown(ev: MouseEvent): void;
10
10
  protected modalWillPresent(ev: any): void;
11
11
  protected modalWillDismiss(ev: any): void;
12
12
  protected escapeKeyUp(event: any): void;
@@ -6,7 +6,7 @@ export declare class YooIonToastControllerComponent implements IOverlayControlle
6
6
  private device;
7
7
  protected onDeviceCreated(ev: CustomEvent<HTMLYooDeviceElement>): void;
8
8
  protected onDeviceDestroyed(ev: CustomEvent<HTMLYooDeviceElement>): void;
9
- protected onClick(ev: MouseEvent): void;
9
+ protected onPointerDown(ev: MouseEvent): void;
10
10
  protected toastWillPresent(ev: any): void;
11
11
  protected toastWillDismiss(ev: any): void;
12
12
  protected escapeKeyUp(event: any): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AsyncValidator, IButton, ICheckboxParams, IColumnDefinition, IExternalValidator, ITranslation, IValidatorEntry, TBaseSize, TIconName, TIconSize, Validator } from '@shared/interfaces';
2
+ import { AsyncValidator, IButton, ICheckboxParams, IColumnDefinition, IExternalValidator, ITranslation, IValidatorEntry, TBaseSize, TColor, TIconName, TIconSize, Validator } from '@shared/interfaces';
3
3
  import { EventEmitter } from '../../../stencil-public-runtime';
4
4
  import type { IFormInputBase, IFormUIValidation } from '../../../interfaces';
5
5
  export declare class YooFormInputComponent implements IFormInputBase<string | number> {
@@ -17,6 +17,7 @@ export declare class YooFormInputComponent implements IFormInputBase<string | nu
17
17
  disabled: boolean;
18
18
  step: number;
19
19
  iconPrefix: TIconName;
20
+ iconPrefixColor?: TColor;
20
21
  iconSuffix?: TIconName;
21
22
  textSuffix?: string;
22
23
  iconText?: TIconName;
@@ -25,6 +25,7 @@ export declare class YooFormInputContainerComponent implements IFormInputContain
25
25
  commentsUser?: IUser;
26
26
  validationCommentsUser?: IUser;
27
27
  hideComplianceTags?: boolean;
28
+ useUppercaseLabel?: boolean;
28
29
  /**
29
30
  * If fullscreen is true, will not display any label/descriptions on top (meant to be included in the field)
30
31
  */
@@ -67,6 +67,7 @@ export declare class YooFormTextAreaComponent implements IFormInputBase<string>
67
67
  private scrollIntoViewOnFocus;
68
68
  private translationKey;
69
69
  protected emitValueAndSetValidity: (value: any, inputElement: any, forceNullValidation: boolean, validateInput: boolean, skipValueAssignment: boolean, preventInputChangedEvent?: boolean) => void;
70
+ private get isRichText();
70
71
  onValueChanged(value: string): void;
71
72
  allowMentionChanged(): void;
72
73
  onKeyboardShown(): void;
@@ -3513,6 +3513,7 @@ export namespace Components {
3513
3513
  "hasIconPrefix": boolean;
3514
3514
  "hideOptional": boolean;
3515
3515
  "iconPrefix": TIconName;
3516
+ "iconPrefixColor"?: TColor;
3516
3517
  "iconSuffix"?: TIconName;
3517
3518
  "iconText"?: TIconName;
3518
3519
  "initialCheckboxParams": ICheckboxParams;
@@ -3581,8 +3582,9 @@ export namespace Components {
3581
3582
  /**
3582
3583
  * Use for pdf multiple image where the title needs to be rendered on top of the first image wrapper
3583
3584
  */
3584
- "slotInputConfig"?: { inputFn: (slots: HTMLElement[]) => any, slideTitle: any };
3585
+ "slotInputConfig"?: { inputFn: (slots: HTMLElement[]) => any; slideTitle: any };
3585
3586
  "time": string;
3587
+ "useUppercaseLabel"?: boolean;
3586
3588
  "validationComments": string;
3587
3589
  "validationCommentsUser"?: IUser;
3588
3590
  }
@@ -15077,6 +15079,7 @@ declare namespace LocalJSX {
15077
15079
  "hasIconPrefix"?: boolean;
15078
15080
  "hideOptional"?: boolean;
15079
15081
  "iconPrefix"?: TIconName;
15082
+ "iconPrefixColor"?: TColor;
15080
15083
  "iconSuffix"?: TIconName;
15081
15084
  "iconText"?: TIconName;
15082
15085
  "initialCheckboxParams"?: ICheckboxParams;
@@ -15159,8 +15162,9 @@ declare namespace LocalJSX {
15159
15162
  /**
15160
15163
  * Use for pdf multiple image where the title needs to be rendered on top of the first image wrapper
15161
15164
  */
15162
- "slotInputConfig"?: { inputFn: (slots: HTMLElement[]) => any, slideTitle: any };
15165
+ "slotInputConfig"?: { inputFn: (slots: HTMLElement[]) => any; slideTitle: any };
15163
15166
  "time"?: string;
15167
+ "useUppercaseLabel"?: boolean;
15164
15168
  "validationComments"?: string;
15165
15169
  "validationCommentsUser"?: IUser;
15166
15170
  }
@@ -54,6 +54,7 @@ export interface IFormField {
54
54
  headerDynamic?: IDynamicProperty;
55
55
  icon?: TIconName;
56
56
  iconPrefix?: TIconName;
57
+ iconPrefixColor?: TColor;
57
58
  iconSuffix?: TIconName;
58
59
  textSuffix?: string;
59
60
  hasIconPrefix?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.3.1-4",
3
+ "version": "8.3.1-7",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",