@department-of-veterans-affairs/component-library 49.1.2-rc1 → 49.3.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.
- package/dist/1214.app.bundle.js +1 -1
- package/dist/1365.app.bundle.js +1 -1
- package/dist/1450.app.bundle.js +1 -1
- package/dist/196.app.bundle.js +1 -1
- package/dist/2222.app.bundle.js +1 -1
- package/dist/2387.app.bundle.js +1 -1
- package/dist/2654.app.bundle.js +1 -1
- package/dist/2664.app.bundle.js +1 -1
- package/dist/2801.app.bundle.js +1 -1
- package/dist/286.app.bundle.js +1 -1
- package/dist/3071.app.bundle.js +1 -1
- package/dist/3156.app.bundle.js +1 -1
- package/dist/4064.app.bundle.js +1 -1
- package/dist/4117.app.bundle.js +1 -1
- package/dist/4140.app.bundle.js +1 -1
- package/dist/4493.app.bundle.js +1 -1
- package/dist/4715.app.bundle.js +1 -1
- package/dist/5155.app.bundle.js +1 -1
- package/dist/5306.app.bundle.js +1 -1
- package/dist/5610.app.bundle.js +1 -1
- package/dist/5628.app.bundle.js +1 -1
- package/dist/5699.app.bundle.js +1 -1
- package/dist/5830.app.bundle.js +1 -1
- package/dist/6034.app.bundle.js +1 -1
- package/dist/6246.app.bundle.js +1 -1
- package/dist/6247.app.bundle.js +1 -1
- package/dist/641.app.bundle.js +1 -0
- package/dist/6527.app.bundle.js +1 -1
- package/dist/712.app.bundle.js +1 -1
- package/dist/7367.app.bundle.js +1 -1
- package/dist/7531.app.bundle.js +1 -1
- package/dist/7663.app.bundle.js +1 -1
- package/dist/7821.app.bundle.js +1 -1
- package/dist/82.app.bundle.js +1 -1
- package/dist/8762.app.bundle.js +1 -1
- package/dist/890.app.bundle.js +1 -1
- package/dist/9288.app.bundle.js +1 -1
- package/dist/9670.app.bundle.js +1 -1
- package/dist/9724.app.bundle.js +1 -1
- package/dist/9800.app.bundle.js +1 -1
- package/dist/app.bundle.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/types/components.d.ts +135 -4
- package/dist/components/va-accordion.js +1 -1
- package/dist/components/va-additional-info.js +1 -1
- package/dist/components/va-alert-expandable.js +1 -1
- package/dist/components/va-alert-sign-in.js +1 -1
- package/dist/components/va-back-to-top.js +1 -1
- package/dist/components/va-banner.js +1 -1
- package/dist/components/va-button-icon2.js +1 -1
- package/dist/components/va-button2.js +1 -1
- package/dist/components/va-card2.js +1 -1
- package/dist/components/va-checkbox-group.js +1 -1
- package/dist/components/va-checkbox2.js +1 -1
- package/dist/components/va-combo-box.js +2 -2
- package/dist/components/va-crisis-line-modal2.js +1 -1
- package/dist/components/va-file-input-multiple.js +1 -1
- package/dist/components/va-file-input2.js +1 -1
- package/dist/components/va-header-minimal.js +1 -1
- package/dist/components/va-icon2.js +1 -1
- package/dist/components/va-language-toggle.js +1 -1
- package/dist/components/va-link-action.js +1 -1
- package/dist/components/va-loading-indicator.js +1 -1
- package/dist/components/va-memorable-date.js +1 -1
- package/dist/components/va-minimal-footer.js +1 -1
- package/dist/components/va-need-help.js +1 -1
- package/dist/components/va-official-gov-banner2.js +1 -1
- package/dist/components/va-omb-info.js +1 -1
- package/dist/components/va-privacy-agreement.js +1 -1
- package/dist/components/va-process-list-item.js +1 -1
- package/dist/components/va-process-list.js +1 -1
- package/dist/components/va-progress-bar.js +1 -1
- package/dist/components/va-radio-option.js +1 -1
- package/dist/components/va-radio.js +1 -1
- package/dist/components/va-search-input.js +1 -1
- package/dist/components/va-select2.js +1 -1
- package/dist/components/{va-number-input.d.ts → va-service-list-item.d.ts} +4 -4
- package/dist/components/va-service-list-item.js +1 -0
- package/dist/components/va-statement-of-truth.js +1 -1
- package/dist/components/va-summary-box.js +1 -1
- package/dist/components/va-table-inner2.js +1 -1
- package/dist/components/va-table-row.js +1 -1
- package/dist/components/va-table.js +1 -1
- package/dist/components/va-telephone2.js +1 -1
- package/dist/components/va-text-input2.js +1 -1
- package/dist/components/va-textarea.js +1 -1
- package/dist/main.css +1 -1
- package/dist/react-bindings/index.d.ts +1 -0
- package/dist/react-bindings/index.js +1 -1
- package/dist/react-bindings/index.js.map +1 -1
- package/dist/react-bindings/index.ts +1 -0
- package/package.json +4 -4
- package/dist/1042.app.bundle.js +0 -1
- package/dist/1059.app.bundle.js +0 -1
- package/dist/1185.app.bundle.js +0 -2
- package/dist/1185.app.bundle.js.LICENSE.txt +0 -5
- package/dist/1237.app.bundle.js +0 -2
- package/dist/1237.app.bundle.js.LICENSE.txt +0 -5
- package/dist/1274.app.bundle.js +0 -1
- package/dist/1279.app.bundle.js +0 -1
- package/dist/1321.app.bundle.js +0 -2
- package/dist/1321.app.bundle.js.LICENSE.txt +0 -5
- package/dist/1343.app.bundle.js +0 -1
- package/dist/139.app.bundle.js +0 -1
- package/dist/1558.app.bundle.js +0 -1
- package/dist/1563.app.bundle.js +0 -2
- package/dist/1563.app.bundle.js.LICENSE.txt +0 -5
- package/dist/1652.app.bundle.js +0 -1
- package/dist/1674.app.bundle.js +0 -2
- package/dist/1674.app.bundle.js.LICENSE.txt +0 -5
- package/dist/1680.app.bundle.js +0 -1
- package/dist/2010.app.bundle.js +0 -1
- package/dist/2025.app.bundle.js +0 -2
- package/dist/2025.app.bundle.js.LICENSE.txt +0 -5
- package/dist/2104.app.bundle.js +0 -1
- package/dist/2108.app.bundle.js +0 -2
- package/dist/2108.app.bundle.js.LICENSE.txt +0 -5
- package/dist/2159.app.bundle.js +0 -2
- package/dist/2159.app.bundle.js.LICENSE.txt +0 -5
- package/dist/2272.app.bundle.js +0 -1
- package/dist/2305.app.bundle.js +0 -2
- package/dist/2305.app.bundle.js.LICENSE.txt +0 -5
- package/dist/2342.app.bundle.js +0 -1
- package/dist/2465.app.bundle.js +0 -1
- package/dist/265.app.bundle.js +0 -1
- package/dist/2715.app.bundle.js +0 -1
- package/dist/2783.app.bundle.js +0 -2
- package/dist/2783.app.bundle.js.LICENSE.txt +0 -5
- package/dist/2843.app.bundle.js +0 -1
- package/dist/2963.app.bundle.js +0 -1
- package/dist/3002.app.bundle.js +0 -1
- package/dist/3270.app.bundle.js +0 -2
- package/dist/3270.app.bundle.js.LICENSE.txt +0 -11
- package/dist/3389.app.bundle.js +0 -2
- package/dist/3389.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3476.app.bundle.js +0 -2
- package/dist/3476.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3499.app.bundle.js +0 -1
- package/dist/3510.app.bundle.js +0 -1
- package/dist/360.app.bundle.js +0 -2
- package/dist/360.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3661.app.bundle.js +0 -1
- package/dist/3718.app.bundle.js +0 -2
- package/dist/3718.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3719.app.bundle.js +0 -1
- package/dist/383.app.bundle.js +0 -2
- package/dist/383.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3848.app.bundle.js +0 -1
- package/dist/3853.app.bundle.js +0 -2
- package/dist/3853.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3882.app.bundle.js +0 -2
- package/dist/3882.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3977.app.bundle.js +0 -1
- package/dist/4104.app.bundle.js +0 -1
- package/dist/4114.app.bundle.js +0 -1
- package/dist/4181.app.bundle.js +0 -2
- package/dist/4181.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4267.app.bundle.js +0 -2
- package/dist/4267.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4317.app.bundle.js +0 -2
- package/dist/4317.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4348.app.bundle.js +0 -1
- package/dist/4397.app.bundle.js +0 -2
- package/dist/4397.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4437.app.bundle.js +0 -1
- package/dist/4726.app.bundle.js +0 -2
- package/dist/4726.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4818.app.bundle.js +0 -2
- package/dist/4818.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4846.app.bundle.js +0 -1
- package/dist/4859.app.bundle.js +0 -1
- package/dist/4863.app.bundle.js +0 -2
- package/dist/4863.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4934.app.bundle.js +0 -1
- package/dist/5112.app.bundle.js +0 -2
- package/dist/5112.app.bundle.js.LICENSE.txt +0 -17
- package/dist/5154.app.bundle.js +0 -1
- package/dist/5194.app.bundle.js +0 -2
- package/dist/5194.app.bundle.js.LICENSE.txt +0 -5
- package/dist/5232.app.bundle.js +0 -1
- package/dist/5254.app.bundle.js +0 -1
- package/dist/5285.app.bundle.js +0 -2
- package/dist/5285.app.bundle.js.LICENSE.txt +0 -5
- package/dist/529.app.bundle.js +0 -2
- package/dist/529.app.bundle.js.LICENSE.txt +0 -5
- package/dist/5431.app.bundle.js +0 -1
- package/dist/5434.app.bundle.js +0 -1
- package/dist/5585.app.bundle.js +0 -1
- package/dist/5669.app.bundle.js +0 -2
- package/dist/5669.app.bundle.js.LICENSE.txt +0 -5
- package/dist/569.app.bundle.js +0 -2
- package/dist/569.app.bundle.js.LICENSE.txt +0 -5
- package/dist/5847.app.bundle.js +0 -1
- package/dist/5889.app.bundle.js +0 -2
- package/dist/5889.app.bundle.js.LICENSE.txt +0 -5
- package/dist/5941.app.bundle.js +0 -1
- package/dist/6166.app.bundle.js +0 -1
- package/dist/6171.app.bundle.js +0 -2
- package/dist/6171.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6191.app.bundle.js +0 -2
- package/dist/6191.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6205.app.bundle.js +0 -2
- package/dist/6205.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6221.app.bundle.js +0 -1
- package/dist/6230.app.bundle.js +0 -1
- package/dist/6391.app.bundle.js +0 -2
- package/dist/6391.app.bundle.js.LICENSE.txt +0 -5
- package/dist/646.app.bundle.js +0 -2
- package/dist/646.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6569.app.bundle.js +0 -2
- package/dist/6569.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6596.app.bundle.js +0 -2
- package/dist/6596.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6734.app.bundle.js +0 -1
- package/dist/6874.app.bundle.js +0 -1
- package/dist/6879.app.bundle.js +0 -1
- package/dist/6995.app.bundle.js +0 -2
- package/dist/6995.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6998.app.bundle.js +0 -2
- package/dist/6998.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7003.app.bundle.js +0 -1
- package/dist/7019.app.bundle.js +0 -1
- package/dist/7061.app.bundle.js +0 -1
- package/dist/7183.app.bundle.js +0 -2
- package/dist/7183.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7339.app.bundle.js +0 -2
- package/dist/7339.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7375.app.bundle.js +0 -1
- package/dist/7384.app.bundle.js +0 -2
- package/dist/7384.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7422.app.bundle.js +0 -1
- package/dist/7454.app.bundle.js +0 -2
- package/dist/7454.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7485.app.bundle.js +0 -2
- package/dist/7485.app.bundle.js.LICENSE.txt +0 -5
- package/dist/753.app.bundle.js +0 -2
- package/dist/753.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7568.app.bundle.js +0 -2
- package/dist/7568.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7576.app.bundle.js +0 -1
- package/dist/7609.app.bundle.js +0 -2
- package/dist/7609.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7705.app.bundle.js +0 -2
- package/dist/7705.app.bundle.js.LICENSE.txt +0 -11
- package/dist/7760.app.bundle.js +0 -1
- package/dist/7785.app.bundle.js +0 -2
- package/dist/7785.app.bundle.js.LICENSE.txt +0 -5
- package/dist/783.app.bundle.js +0 -1
- package/dist/7906.app.bundle.js +0 -2
- package/dist/7906.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8074.app.bundle.js +0 -2
- package/dist/8074.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8151.app.bundle.js +0 -2
- package/dist/8151.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8214.app.bundle.js +0 -1
- package/dist/8223.app.bundle.js +0 -1
- package/dist/8361.app.bundle.js +0 -2
- package/dist/8361.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8429.app.bundle.js +0 -2
- package/dist/8429.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8509.app.bundle.js +0 -2
- package/dist/8509.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8716.app.bundle.js +0 -2
- package/dist/8716.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8750.app.bundle.js +0 -2
- package/dist/8750.app.bundle.js.LICENSE.txt +0 -5
- package/dist/876.app.bundle.js +0 -1
- package/dist/8912.app.bundle.js +0 -1
- package/dist/8991.app.bundle.js +0 -2
- package/dist/8991.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9101.app.bundle.js +0 -1
- package/dist/916.app.bundle.js +0 -1
- package/dist/9200.app.bundle.js +0 -2
- package/dist/9200.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9262.app.bundle.js +0 -2
- package/dist/9262.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9275.app.bundle.js +0 -2
- package/dist/9275.app.bundle.js.LICENSE.txt +0 -5
- package/dist/934.app.bundle.js +0 -2
- package/dist/934.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9356.app.bundle.js +0 -1
- package/dist/9370.app.bundle.js +0 -2
- package/dist/9370.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9398.app.bundle.js +0 -1
- package/dist/9407.app.bundle.js +0 -2
- package/dist/9407.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9425.app.bundle.js +0 -1
- package/dist/9452.app.bundle.js +0 -1
- package/dist/9727.app.bundle.js +0 -2
- package/dist/9727.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9893.app.bundle.js +0 -1
- package/dist/9903.app.bundle.js +0 -1
- package/dist/9970.app.bundle.js +0 -2
- package/dist/9970.app.bundle.js.LICENSE.txt +0 -17
- package/dist/assets/minus.svg +0 -2
- package/dist/assets/plus.svg +0 -2
- package/dist/components/_commonjsHelpers.js +0 -1
- package/dist/components/img/sprite.svg +0 -5
- package/dist/components/index3.js +0 -2
- package/dist/components/index3.js.LICENSE.txt +0 -5
- package/dist/components/p-0bd33282.js +0 -1
- package/dist/components/p-2bacc556.js +0 -2
- package/dist/components/p-2bacc556.js.LICENSE.txt +0 -5
- package/dist/components/p-3092f0da.js +0 -1
- package/dist/components/p-51fd3760.js +0 -1
- package/dist/components/p-57ec7157.js +0 -1
- package/dist/components/p-5adc0c0f.js +0 -1
- package/dist/components/p-703b9866.js +0 -1
- package/dist/components/p-71f3e557.js +0 -1
- package/dist/components/p-7bd5360a.js +0 -1
- package/dist/components/p-7f18a9c3.js +0 -1
- package/dist/components/p-8377f9f7.js +0 -1
- package/dist/components/p-85dad1ee.js +0 -1
- package/dist/components/p-ad634c1d.js +0 -1
- package/dist/components/p-aead3f6c.js +0 -1
- package/dist/components/p-b5e86daf.js +0 -1
- package/dist/components/p-bbd1634b.js +0 -1
- package/dist/components/p-c8624782.js +0 -1
- package/dist/components/p-c968eed9.js +0 -1
- package/dist/components/p-d1bb9044.js +0 -1
- package/dist/components/p-d2716799.js +0 -1
- package/dist/components/p-d2a83ae3.js +0 -1
- package/dist/components/p-deb595cf.js +0 -1
- package/dist/components/p-ecc368bc.js +0 -1
- package/dist/components/va-number-input.js +0 -1
- package/dist/react-bindings/components.d.ts +0 -259
- package/dist/react-bindings/components.js +0 -1
- package/dist/react-bindings/components.js.map +0 -1
- package/dist/react-bindings/components.ts +0 -685
- package/dist/react-bindings/react-component-lib/attachProps.d.ts +0 -16
- package/dist/react-bindings/react-component-lib/attachProps.js +0 -2
- package/dist/react-bindings/react-component-lib/attachProps.js.LICENSE.txt +0 -4
- package/dist/react-bindings/react-component-lib/attachProps.js.map +0 -1
- package/dist/react-bindings/react-component-lib/attachProps.ts +0 -125
- package/dist/react-bindings/react-component-lib/case.d.ts +0 -2
- package/dist/react-bindings/react-component-lib/case.js +0 -1
- package/dist/react-bindings/react-component-lib/case.js.map +0 -1
- package/dist/react-bindings/react-component-lib/case.ts +0 -7
- package/dist/react-bindings/react-component-lib/dev.d.ts +0 -2
- package/dist/react-bindings/react-component-lib/dev.js +0 -1
- package/dist/react-bindings/react-component-lib/dev.js.map +0 -1
- package/dist/react-bindings/react-component-lib/dev.ts +0 -14
- package/dist/react-bindings/react-component-lib/index.tsx +0 -50
- package/en.js +0 -1
- package/es.js +0 -1
- package/i18n-setup.js +0 -1
- package/language-detector.js +0 -1
- package/tl.js +0 -1
package/dist/7821.app.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[7821],{7821:function(e,t,i){i.r(t),i.d(t,{va_file_input_multiple:function(){return n}});var r=i(3798),o=(i(2465),i(9425)),n=function(){function e(e){var t=this;(0,r.r)(this,e),this.vaMultipleChange=(0,r.c)(this,"vaMultipleChange",7),this.fileKeyCounter=0,this.additionalSlot=null,this.additionalFileUploadMessage=(0,r.h)("span",null,"Drag an additional file here or"," ",(0,r.h)("span",{class:"file-input-choose-text"},"choose from folder")),this.renderLabelOrHeader=function(e,t,i){var n=t?(0,r.h)("span",{class:"required"}," ",o.i.t("required")):null;if(i&&i>=1&&i<=6){var a="h".concat(i);return(0,r.h)("div",{class:"label-header"},(0,r.h)(a,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,r.h)("div",{class:"label-header"},(0,r.h)("span",{part:"label",class:"usa-label"},e),n)},this.addValueFiles=function(){return function(e,t,i,r){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){e.done?i(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(t,void 0,void 0,(function(){var e=this;return function(e,t){var i,r,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,s[0]&&(a=0)),a;)try{if(i=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{i=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,(function(t){return this.files.shift(),this.value.forEach((function(t){e.files.push({file:t,key:e.fileKeyCounter,content:e.getAdditionalContent()||null}),e.fileKeyCounter++})),this.readOnly||this.files.push({file:null,key:this.fileKeyCounter,content:null}),this.valueAdded=!0,[2,Promise.resolve()]}))}))},this.hasErrors=function(){return t.errors.some((function(e){return!!e}))},this.label=void 0,this.name=void 0,this.required=!1,this.accept=void 0,this.errors=[],this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.value=void 0,this.readOnly=!1,this.slotFieldIndexes=null,this.files=[{key:0,file:null,content:null}],this.valueAdded=!1}return e.prototype.findFileByKey=function(e){return this.files.find((function(t){return t.key===e}))},e.prototype.findIndexByKey=function(e){return this.files.indexOf(this.files.find((function(t){return t.key===e})))},e.prototype.isEmpty=function(){return null===this.files[0].file},e.prototype.setSlotContent=function(){var e=this.el.shadowRoot.querySelector("slot");this.additionalSlot||(this.additionalSlot=e?e.assignedElements({flatten:!0}):[]),null==e||e.remove()},e.prototype.getAdditionalContent=function(){return this.additionalSlot&&this.additionalSlot.map((function(e){return e.cloneNode(!0)}))},e.prototype.handleChange=function(e,t,i){var r,o,n,a=e.detail.files[0];if(a){var s=this.findFileByKey(t);s.file?(o="FILE_UPDATED",n=a,s.file=a):(o="FILE_ADDED",n=a,s.file=a,s.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files.push({file:null,key:this.fileKeyCounter,content:null})),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!1,this.findIndexByKey(t))}else{o="FILE_REMOVED",n=this.files[i].file,this.files.splice(i,1);var l=this.el.shadowRoot.querySelector("#statusMessage");l.textContent="",setTimeout((function(){l.textContent="File removed."}),1e3),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!0)}var h={action:o,file:n,state:r};this.vaMultipleChange.emit(h),this.files=Array.of.apply(Array,this.files)},e.prototype.buildFilesArray=function(e,t,i){var r=e.filter((function(e){return!!e})).map((function(e){return{file:e,changed:!1}}));return!t&&r[i]&&(r[i].changed=!0),r},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");return this.setSlotContent(),t.forEach((function(t,i){!e.files[i].content||e.slotFieldIndexes&&!e.slotFieldIndexes.includes(i)||e.files[i].content.forEach((function(e){return t.append(e)}))})),this.value&&this.value.length&&!this.valueAdded?this.addValueFiles():Promise.resolve()},e.prototype.render=function(){var e=this,t=this,i=t.label,o=t.required,n=t.headerSize,a=t.hint,s=t.files,l=t.name,h=t.accept,d=t.errors,f=t.enableAnalytics,u=t.readOnly,c=this.isEmpty()?"":"outer-wrap",p=this.hasErrors()?"has-error":"";return(0,r.h)(r.H,{key:"077494a14d9c32921c0da569f8a738ffdb1b630d",class:p},i&&!u&&this.renderLabelOrHeader(i,o,n),a&&!u&&(0,r.h)("div",{key:"f61a1355e17734e98c73fa02d8a826b358bb304d",class:"usa-hint",id:"input-hint-message"},a),(0,r.h)("div",{key:"8276798a5d2e05250bd2af9eed0a6af990dc47b1",class:c},(0,r.h)("div",{key:"82fc33990a0e85a40c39546f06c8deb7e51c1842",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,r.h)("div",{key:"9eef6703e7b852c37895f94ad948333c5091d8e4",class:"selected-files-label"},u?"Files you uploaded":"Selected files"),s.map((function(t,n){return(0,r.h)("va-file-input",Object.assign({key:t.key,headless:!0,label:i,hint:a,name:"".concat(l,"-").concat(t.key),accept:h,required:o},n>0?{uploadMessage:e.additionalFileUploadMessage}:{},{error:d[n],onVaChange:function(i){return e.handleChange(i,t.key,n)},"enable-analytics":f,value:t.file,readOnly:u,class:t.file?"has-file":"no-file"}))}))),(0,r.h)("slot",{key:"451a62070b04fba7a8c8542ae4acf46d9452e45b"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}@import \'~@department-of-veterans-affairs/css-library/dist/stylesheets/base/headings.css\';:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host.has-error{border-left:0.25rem solid #b50909;padding-left:1rem}:host .outer-wrap{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light);display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host va-file-input.no-file{margin:0 8px}:host va-file-input:not(:last-child){border-bottom:1px solid var(--vads-color-white)}:host va-file-input.has-error{border-left:none;padding-left:0}@media screen and (min-width: 1008px){:host va-file-input.has-error{margin-left:0}}'}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[7821],{7821:function(e,t,i){i.r(t),i.d(t,{va_file_input_multiple:function(){return n}});var r=i(3798),o=(i(2465),i(9425)),n=function(){function e(e){var t=this;(0,r.r)(this,e),this.vaMultipleChange=(0,r.c)(this,"vaMultipleChange",7),this.fileKeyCounter=0,this.additionalSlot=null,this.additionalFileUploadMessage=(0,r.h)("span",null,"Drag an additional file here or"," ",(0,r.h)("span",{class:"file-input-choose-text"},"choose from folder")),this.renderLabelOrHeader=function(e,t,i){var n=t?(0,r.h)("span",{class:"required"}," ",o.i.t("required")):null;if(i&&i>=1&&i<=6){var a="h".concat(i);return(0,r.h)("div",{class:"label-header"},(0,r.h)(a,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,r.h)("div",{class:"label-header"},(0,r.h)("span",{part:"label",class:"usa-label"},e),n)},this.addValueFiles=function(){return function(e,t,i,r){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){e.done?i(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(t,void 0,void 0,(function(){var e=this;return function(e,t){var i,r,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,s[0]&&(a=0)),a;)try{if(i=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{i=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,(function(t){return this.files.shift(),this.value.forEach((function(t){e.files.push({file:t,key:e.fileKeyCounter,content:e.getAdditionalContent()||null}),e.fileKeyCounter++})),this.readOnly||this.files.push({file:null,key:this.fileKeyCounter,content:null}),this.valueAdded=!0,[2,Promise.resolve()]}))}))},this.hasErrors=function(){return t.errors.some((function(e){return!!e}))},this.label=void 0,this.name=void 0,this.required=!1,this.accept=void 0,this.errors=[],this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.value=void 0,this.readOnly=!1,this.slotFieldIndexes=null,this.files=[{key:0,file:null,content:null}],this.valueAdded=!1}return e.prototype.findFileByKey=function(e){return this.files.find((function(t){return t.key===e}))},e.prototype.findIndexByKey=function(e){return this.files.indexOf(this.files.find((function(t){return t.key===e})))},e.prototype.isEmpty=function(){return null===this.files[0].file},e.prototype.setSlotContent=function(){var e=this.el.shadowRoot.querySelector("slot");this.additionalSlot||(this.additionalSlot=e?e.assignedElements({flatten:!0}):[]),null==e||e.remove()},e.prototype.getAdditionalContent=function(){return this.additionalSlot&&this.additionalSlot.map((function(e){return e.cloneNode(!0)}))},e.prototype.handleChange=function(e,t,i){var r,o,n,a=e.detail.files[0];if(a){var s=this.findFileByKey(t);s.file?(o="FILE_UPDATED",n=a,s.file=a):(o="FILE_ADDED",n=a,s.file=a,s.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files.push({file:null,key:this.fileKeyCounter,content:null})),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!1,this.findIndexByKey(t))}else{o="FILE_REMOVED",n=this.files[i].file,this.files.splice(i,1);var l=this.el.shadowRoot.querySelector("#statusMessage");l.textContent="",setTimeout((function(){l.textContent="File removed."}),1e3),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!0)}var h={action:o,file:n,state:r};this.vaMultipleChange.emit(h),this.files=Array.of.apply(Array,this.files)},e.prototype.buildFilesArray=function(e,t,i){var r=e.filter((function(e){return!!e})).map((function(e){return{file:e,changed:!1}}));return!t&&r[i]&&(r[i].changed=!0),r},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");return this.setSlotContent(),t.forEach((function(t,i){!e.files[i].content||e.slotFieldIndexes&&!e.slotFieldIndexes.includes(i)||e.files[i].content.forEach((function(e){return t.append(e)}))})),this.value&&this.value.length&&!this.valueAdded?this.addValueFiles():Promise.resolve()},e.prototype.render=function(){var e=this,t=this,i=t.label,o=t.required,n=t.headerSize,a=t.hint,s=t.files,l=t.name,h=t.accept,d=t.errors,f=t.enableAnalytics,u=t.readOnly,c=this.isEmpty()?"":"outer-wrap",p=this.hasErrors()?"has-error":"";return(0,r.h)(r.H,{key:"b939087ccf38d31adcc170f71210ff4160e3b4cb",class:p},i&&!u&&this.renderLabelOrHeader(i,o,n),a&&!u&&(0,r.h)("div",{key:"f693c44fe78047dfe779abce9a61d8bb43c99138",class:"usa-hint",id:"input-hint-message"},a),(0,r.h)("div",{key:"cd890e01a21ccecb8c0dd35cddc6340233414c04",class:c},(0,r.h)("div",{key:"3ac80358f6711d5e81594c27c035056e14097196",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,r.h)("div",{key:"82cea84536792d9bef64dec996ffaecd13e60e53",class:"selected-files-label"},u?"Files you uploaded":"Selected files"),s.map((function(t,n){return(0,r.h)("va-file-input",Object.assign({key:t.key,headless:!0,label:i,hint:a,name:"".concat(l,"-").concat(t.key),accept:h,required:o},n>0?{uploadMessage:e.additionalFileUploadMessage}:{},{error:d[n],onVaChange:function(i){return e.handleChange(i,t.key,n)},"enable-analytics":f,value:t.file,readOnly:u,class:t.file?"has-file":"no-file"}))}))),(0,r.h)("slot",{key:"103f283b0332f31d594b65551eb2e04911d18965"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}@import \'~@department-of-veterans-affairs/css-library/dist/stylesheets/base/headings.css\';:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host.has-error{border-left:0.25rem solid #b50909;padding-left:1rem}:host .outer-wrap{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light);display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host va-file-input.no-file{margin:0 8px}:host va-file-input:not(:last-child){border-bottom:1px solid var(--vads-color-white)}:host va-file-input.has-error{border-left:none;padding-left:0}@media screen and (min-width: 1008px){:host va-file-input.has-error{margin-left:0}}'}}]);
|
package/dist/82.app.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 82.app.bundle.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[20,82],{20:function(e,t,
|
|
2
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[20,82],{20:function(e,t,r){r.r(t),r.d(t,{c:function(){return i}});var o,a={exports:{}};o=a,function(){var e={}.hasOwnProperty;function t(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if("string"===i||"number"===i)r.push(a);else if(Array.isArray(a)){if(a.length){var n=t.apply(null,a);n&&r.push(n)}}else if("object"===i)if(a.toString===Object.prototype.toString)for(var s in a)e.call(a,s)&&a[s]&&r.push(s);else r.push(a.toString())}}return r.join(" ")}o.exports?(t.default=t,o.exports=t):window.classNames=t}();var i=a.exports},82:function(e,t,r){r.r(t),r.d(t,{va_alert_expandable:function(){return i}});var o=r(3798),a=r(20),i=function(){function e(e){(0,o.r)(this,e),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.open=void 0,this.status=void 0,this.trigger=void 0,this.disableAnalytics=!1,this.iconless=!1}return e.prototype.handleResize=function(){this.updateAlertBodyMaxHeight()},e.prototype.toggleOpen=function(){this.disableAnalytics||this.componentLibraryAnalytics.emit({componentName:"va-alert-expandable",action:this.open?"collapse":"expand",details:{triggerText:this.trigger}}),this.open=!this.open},e.prototype.handleKeydown=function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.toggleOpen())},e.prototype.updateAlertBodyMaxHeight=function(){var e=this.el.shadowRoot.getElementById("alert-body"),t=e.scrollHeight+"px";e.style.setProperty("--calc-max-height","calc("+t+" + 2rem)")},e.prototype.componentDidLoad=function(){this.updateAlertBodyMaxHeight()},e.prototype.render=function(){var e=this,t=e.status,r=e.open,i=e.iconless,n=(0,a.c)("alert-expandable",t,{"hide-icon":i}),s=(0,a.c)("alert-expandable-body",{open:r,closed:!r}),l="error"===t?"alert":null,c="error"===t?"assertive":null;return(0,o.h)(o.H,{key:"cbabd3bf2e2f301149b5dac98a4e17faaff31111"},(0,o.h)("div",{key:"fc663d792bdc03d9cc1804e51627622cd0edc14f",role:l,"aria-live":c,class:n},(0,o.h)("a",{key:"65377dccb5f7feb7d495c9370edefe66d9220fcd",role:"button","aria-controls":"alert-body","aria-expanded":this.open?"true":"false",tabIndex:0,onClick:this.toggleOpen.bind(this),onKeyDown:this.handleKeydown.bind(this),class:"alert-expandable-trigger"},!i&&(0,o.h)("va-icon",{key:"191d4163332fce60f04e38eae2b4beb397abe6ca",class:"alert-expandable__status-icon",icon:{continue:"lock",error:"info",warning:"warning",info:"info",success:"check_circle"}[t]||"info",size:3}),(0,o.h)("div",{key:"432699576a6987f3cf55ef51043483cedb6cfdc5"},(0,o.h)("span",{key:"231649146a8755894676d31e729edec6f8b06656",class:"alert-expandable-title"},(0,o.h)("span",{key:"4e98db8a4086cfd0240e95f8c343b9f110c4b953",class:"sr-only"},"Alert: "),this.trigger),(0,o.h)("va-icon",{key:"5c57909f636c7066cfe62d8a4369d94f2c211abc",class:"alert-expandable-icon",icon:"chevron_right",size:3}))),(0,o.h)("div",{key:"ac3694025c5e80019eaecc3eafa991c72ba09e26",id:"alert-body",class:s},(0,o.h)("div",{key:"952872de4fba9b1f227e73c657db96411e8b3194",id:"slot-wrap"},(0,o.h)("slot",{key:"35e92c2cd7265d353195267b4998acc779de849a"})))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),e}();i.style="p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, \"Source Sans Pro\", \"Helvetica Neue\", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}a{text-decoration:none;color:var(--vads-color-link);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}a:hover{background-color:rgba(0, 0, 0, 0.05);color:inherit}a:visited{color:var(--vads-color-link-visited)}:host{display:block}:host([status='warning']){background-color:var(--vads-color-gold-lightest)}:host([status='info']){background-color:var(--vads-color-primary-alt-lightest)}:host([status='error']){background-color:var(--vads-color-secondary-lightest)}:host([status='success']){background-color:var(--vads-color-success-lighter)}:host([status='continue']){background-color:var(--vads-color-base-lightest)}.alert-expandable-trigger{-ms-flex-align:start;align-items:flex-start;cursor:pointer;display:-ms-flexbox;display:flex;padding:0.75rem}div.warning .alert-expandable-trigger:hover{background-color:var(--vads-color-gold-lighter)}div.info .alert-expandable-trigger:hover{background-color:var(--vads-color-primary-alt-light)}div.error .alert-expandable-trigger:hover{background-color:var(--vads-color-secondary-light)}div.success .alert-expandable-trigger:hover{background-color:var(--vads-color-green-lighter)}div.continue .alert-expandable-trigger:hover{background-color:var(--vads-color-base-lighter)}.alert-expandable-title{border-bottom-right-radius:1px;border-bottom:2px dotted var(--vads-color-primary-alt-dark);color:var(--vads-color-base-darker);cursor:pointer;font-weight:600}.alert-expandable-body{overflow:hidden}.alert-expandable-body.closed{opacity:0;max-height:0;visibility:hidden;overflow:hidden}.alert-expandable-body.open{height:auto;opacity:1;-webkit-transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;max-height:var(--calc-max-height)}#slot-wrap{margin:0.75rem}.alert-expandable-icon{display:inline-block;color:var(--vads-color-primary-alt-darkest);font-size:16px;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear;line-height:1;vertical-align:bottom}a[aria-expanded='true'] .alert-expandable-icon{-webkit-transform:rotate(270deg);transform:rotate(270deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear}.alert-expandable__status-icon{color:var(--vads-color-base-darker);margin-right:8px}::slotted(*){margin-bottom:0 !important;margin-top:0 !important}"}}]);
|