playbook_ui 15.4.0.pre.rc.3 → 15.4.0.pre.rc.4

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.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "15.3.0"
5
- VERSION = "15.4.0.pre.rc.3"
5
+ VERSION = "15.4.0.pre.rc.4"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.4.0.pre.rc.3
4
+ version: 15.4.0.pre.rc.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-11-05 00:00:00.000000000 Z
12
+ date: 2025-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -3814,13 +3814,13 @@ files:
3814
3814
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3815
3815
  - app/pb_kits/playbook/utilities/text.ts
3816
3816
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3817
- - dist/chunks/_line_graph-BRirnhGy.js
3818
- - dist/chunks/_typeahead-CFOqvZNu.js
3819
- - dist/chunks/_weekday_stacked-B_wdjzzt.js
3817
+ - dist/chunks/_line_graph-C-AuMGN2.js
3818
+ - dist/chunks/_typeahead--38pnHwS.js
3819
+ - dist/chunks/_weekday_stacked-Fx-KHOwY.js
3820
3820
  - dist/chunks/componentRegistry-DzmmLR2x.js
3821
3821
  - dist/chunks/lazysizes-B7xYodB-.js
3822
3822
  - dist/chunks/lib-BXBHAZMY.js
3823
- - dist/chunks/pb_form_validation-BZppqQZM.js
3823
+ - dist/chunks/pb_form_validation-BNfSnIUF.js
3824
3824
  - dist/chunks/vendor.js
3825
3825
  - dist/menu.yml
3826
3826
  - dist/playbook-doc.js
@@ -1 +0,0 @@
1
- import{P as PbEnhancedElement,d as debounce}from"./lib-BXBHAZMY.js";const KIT_SELECTOR='[class^="pb_"][class*="_kit"]';const ERROR_MESSAGE_SELECTOR=".pb_body_kit_negative";const FORM_SELECTOR='form[data-pb-form-validation="true"]';const REQUIRED_FIELDS_SELECTOR="input[required],textarea[required],select[required]";const FIELD_EVENTS=["change","valid","invalid"];class PbFormValidation extends PbEnhancedElement{static get selector(){return FORM_SELECTOR}connect(){this.formValidationFields.forEach((field=>{FIELD_EVENTS.forEach((e=>{field.addEventListener(e,debounce((event=>{this.validateFormField(event)}),250),false)}))}))}validateFormField(event){event.preventDefault();const{target:target}=event;target.setCustomValidity("");const isValid=event.target.validity.valid;if(isValid){this.clearError(target)}else{this.showValidationMessage(target)}}showValidationMessage(target){const{parentElement:parentElement}=target;this.clearError(target);parentElement.closest(KIT_SELECTOR).classList.add("error");const errorMessageContainer=this.errorMessageContainer;if(target.dataset.message)target.setCustomValidity(target.dataset.message);errorMessageContainer.innerHTML=target.validationMessage;parentElement.appendChild(errorMessageContainer)}clearError(target){const{parentElement:parentElement}=target;parentElement.closest(KIT_SELECTOR).classList.remove("error");const errorMessageContainer=parentElement.querySelector(ERROR_MESSAGE_SELECTOR);if(errorMessageContainer)errorMessageContainer.remove()}get errorMessageContainer(){const errorContainer=document.createElement("div");const kitClassName=ERROR_MESSAGE_SELECTOR.replace(/\./,"");errorContainer.classList.add(kitClassName);return errorContainer}get formValidationFields(){return this._formValidationFields=this._formValidationFields||this.element.querySelectorAll(REQUIRED_FIELDS_SELECTOR)}}window.PbFormValidation=PbFormValidation;