@descope/web-components-ui 1.32.0 → 1.33.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/cjs/index.cjs.js +481 -364
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +524 -438
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1408.js +382 -0
- package/dist/umd/1408.js.LICENSE.txt +17 -0
- package/dist/umd/1408.js.map +1 -0
- package/dist/umd/{9243.js → 1519.js} +7 -6
- package/dist/umd/1519.js.map +1 -0
- package/dist/umd/189.js +109 -276
- package/dist/umd/189.js.LICENSE.txt +12 -0
- package/dist/umd/189.js.map +1 -0
- package/dist/umd/{7979.js → 1899.js} +11 -10
- package/dist/umd/1899.js.map +1 -0
- package/dist/umd/{1172.js → 1995.js} +10 -9
- package/dist/umd/1995.js.map +1 -0
- package/dist/umd/2540.js +2 -1
- package/dist/umd/2540.js.map +1 -0
- package/dist/umd/2672.js +2 -0
- package/dist/umd/2672.js.map +1 -0
- package/dist/umd/2739.js +2 -0
- package/dist/umd/2739.js.map +1 -0
- package/dist/umd/{2570.js → 2894.js} +6 -5
- package/dist/umd/2894.js.map +1 -0
- package/dist/umd/{404.js → 3620.js} +9 -8
- package/dist/umd/3620.js.map +1 -0
- package/dist/umd/{4455.js → 384.js} +8 -7
- package/dist/umd/384.js.map +1 -0
- package/dist/umd/4467.js +3 -0
- package/dist/umd/4467.js.map +1 -0
- package/dist/umd/{4127.js → 4518.js} +11 -10
- package/dist/umd/4518.js.map +1 -0
- package/dist/umd/{1902.js → 4550.js} +7 -6
- package/dist/umd/4550.js.map +1 -0
- package/dist/umd/{4554.js → 4623.js} +7 -6
- package/dist/umd/4623.js.map +1 -0
- package/dist/umd/{742.js → 4914.js} +3 -2
- package/dist/umd/4914.js.map +1 -0
- package/dist/umd/{9478.js → 513.js} +6 -5
- package/dist/umd/513.js.map +1 -0
- package/dist/umd/{201.js → 5260.js} +6 -5
- package/dist/umd/5260.js.map +1 -0
- package/dist/umd/5414.js +2 -1
- package/dist/umd/5414.js.map +1 -0
- package/dist/umd/5648.js +110 -0
- package/dist/umd/5648.js.map +1 -0
- package/dist/umd/5780.js +2 -0
- package/dist/umd/5780.js.map +1 -0
- package/dist/umd/{5563.js → 6227.js} +6 -5
- package/dist/umd/6227.js.map +1 -0
- package/dist/umd/6424.js +149 -0
- package/dist/umd/6424.js.map +1 -0
- package/dist/umd/{7097.js → 6649.js} +6 -5
- package/dist/umd/6649.js.map +1 -0
- package/dist/umd/676.js +3 -0
- package/dist/umd/676.js.map +1 -0
- package/dist/umd/{1738.js → 7092.js} +2 -1
- package/dist/umd/7092.js.map +1 -0
- package/dist/umd/{3638.js → 7182.js} +3 -2
- package/dist/umd/7182.js.map +1 -0
- package/dist/umd/{507.js → 7291.js} +6 -5
- package/dist/umd/7291.js.map +1 -0
- package/dist/umd/{4187.js → 7565.js} +3 -2
- package/dist/umd/7565.js.map +1 -0
- package/dist/umd/{3191.js → 7620.js} +11 -7
- package/dist/umd/7620.js.map +1 -0
- package/dist/umd/{6050.js → 7774.js} +10 -9
- package/dist/umd/7774.js.map +1 -0
- package/dist/umd/{2666.js → 7939.js} +5 -4
- package/dist/umd/7939.js.map +1 -0
- package/dist/umd/{4114.js → 8618.js} +5 -4
- package/dist/umd/8618.js.map +1 -0
- package/dist/umd/8961.js +2 -0
- package/dist/umd/8961.js.map +1 -0
- package/dist/umd/{4574.js → 8983.js} +6 -5
- package/dist/umd/8983.js.map +1 -0
- package/dist/umd/9030.js +265 -307
- package/dist/umd/9030.js.LICENSE.txt +0 -6
- package/dist/umd/9030.js.map +1 -0
- package/dist/umd/9365.js +2 -0
- package/dist/umd/9365.js.map +1 -0
- package/dist/umd/{4218.js → 9380.js} +5 -4
- package/dist/umd/9380.js.map +1 -0
- package/dist/umd/9871.js +276 -0
- package/dist/umd/9871.js.map +1 -0
- package/dist/umd/9970.js +833 -0
- package/dist/umd/9970.js.map +1 -0
- package/dist/umd/DescopeDev.js +2 -1
- package/dist/umd/DescopeDev.js.map +1 -0
- package/dist/umd/boolean-fields-descope-boolean-field-internal-index-js.js +2 -1
- package/dist/umd/boolean-fields-descope-boolean-field-internal-index-js.js.map +1 -0
- package/dist/umd/boolean-fields-descope-checkbox-index-js.js +2 -1
- package/dist/umd/boolean-fields-descope-checkbox-index-js.js.map +1 -0
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +2 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js.map +1 -0
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +2 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js.map +1 -0
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-internal-index-js.js +2 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-internal-index-js.js.map +1 -0
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +2 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js.map +1 -0
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-internal-index-js.js +2 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-internal-index-js.js.map +1 -0
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +2 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.map +1 -0
- package/dist/umd/descope-address-field.js +2 -1
- package/dist/umd/descope-address-field.js.map +1 -0
- package/dist/umd/descope-alert-index-js.js +2 -1
- package/dist/umd/descope-alert-index-js.js.map +1 -0
- package/dist/umd/descope-apps-list-index-js.js +2 -1
- package/dist/umd/descope-apps-list-index-js.js.map +1 -0
- package/dist/umd/descope-autocomplete-field.js +2 -1
- package/dist/umd/descope-autocomplete-field.js.map +1 -0
- package/dist/umd/descope-avatar.js +2 -1
- package/dist/umd/descope-avatar.js.map +1 -0
- package/dist/umd/descope-badge-index-js.js +2 -1
- package/dist/umd/descope-badge-index-js.js.map +1 -0
- package/dist/umd/descope-button-index-js.js +5 -4
- package/dist/umd/descope-button-index-js.js.map +1 -0
- package/dist/umd/descope-code-snippet-index-js.js +2 -1
- package/dist/umd/descope-code-snippet-index-js.js.map +1 -0
- package/dist/umd/descope-combo-box.js +7 -6
- package/dist/umd/descope-combo-box.js.map +1 -0
- package/dist/umd/descope-container-index-js.js +2 -1
- package/dist/umd/descope-container-index-js.js.map +1 -0
- package/dist/umd/descope-date-field-descope-calendar-index-js.js +2 -1
- package/dist/umd/descope-date-field-descope-calendar-index-js.js.map +1 -0
- package/dist/umd/descope-date-field-index-js.js +2 -1
- package/dist/umd/descope-date-field-index-js.js.map +1 -0
- package/dist/umd/descope-divider-index-js.js +2 -1
- package/dist/umd/descope-divider-index-js.js.map +1 -0
- package/dist/umd/descope-email-field-index-js.js +5 -4
- package/dist/umd/descope-email-field-index-js.js.map +1 -0
- package/dist/umd/descope-enriched-text-index-js.js +2 -1
- package/dist/umd/descope-enriched-text-index-js.js.map +1 -0
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +5 -4
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js.map +1 -0
- package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js +6 -5
- package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js.map +1 -0
- package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +2 -1
- package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js.map +1 -0
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +5 -4
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.map +1 -0
- package/dist/umd/descope-grid-index-js.js +2 -1
- package/dist/umd/descope-grid-index-js.js.map +1 -0
- package/dist/umd/descope-hybrid-field-index-js.js +4 -3
- package/dist/umd/descope-hybrid-field-index-js.js.map +1 -0
- package/dist/umd/descope-icon-index-js.js +2 -1
- package/dist/umd/descope-icon-index-js.js.map +1 -0
- package/dist/umd/descope-image-index-js.js +2 -1
- package/dist/umd/descope-image-index-js.js.map +1 -0
- package/dist/umd/descope-link-index-js.js +2 -1
- package/dist/umd/descope-link-index-js.js.map +1 -0
- package/dist/umd/descope-list-index-js.js +2 -1
- package/dist/umd/descope-list-index-js.js.map +1 -0
- package/dist/umd/descope-loader-linear-index-js.js +2 -1
- package/dist/umd/descope-loader-linear-index-js.js.map +1 -0
- package/dist/umd/descope-loader-radial-index-js.js +2 -1
- package/dist/umd/descope-loader-radial-index-js.js.map +1 -0
- package/dist/umd/descope-logo-index-js.js +2 -1
- package/dist/umd/descope-logo-index-js.js.map +1 -0
- package/dist/umd/descope-modal-index-js.js +2 -1
- package/dist/umd/descope-modal-index-js.js.map +1 -0
- package/dist/umd/descope-multi-select-combo-box-index-js.js +2 -1
- package/dist/umd/descope-multi-select-combo-box-index-js.js.map +1 -0
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +2 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js.map +1 -0
- package/dist/umd/descope-new-password-index-js.js +2 -1
- package/dist/umd/descope-new-password-index-js.js.map +1 -0
- package/dist/umd/descope-notification-descope-notification-card-index-js.js +2 -1
- package/dist/umd/descope-notification-descope-notification-card-index-js.js.map +1 -0
- package/dist/umd/descope-notification-index-js.js +2 -1
- package/dist/umd/descope-notification-index-js.js.map +1 -0
- package/dist/umd/descope-notp-image-index-js.js +2 -1
- package/dist/umd/descope-notp-image-index-js.js.map +1 -0
- package/dist/umd/descope-number-field-index-js.js +2 -1
- package/dist/umd/descope-number-field-index-js.js.map +1 -0
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +2 -1
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js.map +1 -0
- package/dist/umd/descope-passcode-index-js.js +3 -2
- package/dist/umd/descope-passcode-index-js.js.map +1 -0
- package/dist/umd/descope-password-index-js.js +2 -1
- package/dist/umd/descope-password-index-js.js.map +1 -0
- package/dist/umd/descope-policy-validation-index-js.js +2 -1
- package/dist/umd/descope-policy-validation-index-js.js.map +1 -0
- package/dist/umd/descope-radio-group-index-js.js +2 -1
- package/dist/umd/descope-radio-group-index-js.js.map +1 -0
- package/dist/umd/descope-recaptcha-index-js.js +2 -1
- package/dist/umd/descope-recaptcha-index-js.js.map +1 -0
- package/dist/umd/descope-scopes-list-index-js.js +2 -1
- package/dist/umd/descope-scopes-list-index-js.js.map +1 -0
- package/dist/umd/descope-security-questions-setup-index-js.js +2 -1
- package/dist/umd/descope-security-questions-setup-index-js.js.map +1 -0
- package/dist/umd/descope-security-questions-verify-index-js.js +3 -2
- package/dist/umd/descope-security-questions-verify-index-js.js.map +1 -0
- package/dist/umd/descope-text-area-index-js.js +2 -1
- package/dist/umd/descope-text-area-index-js.js.map +1 -0
- package/dist/umd/descope-text-field-index-js.js +3 -2
- package/dist/umd/descope-text-field-index-js.js.map +1 -0
- package/dist/umd/descope-text.js +2 -1
- package/dist/umd/descope-text.js.map +1 -0
- package/dist/umd/descope-third-party-app-logo-index-js.js +2 -1
- package/dist/umd/descope-third-party-app-logo-index-js.js.map +1 -0
- package/dist/umd/descope-totp-image-index-js.js +2 -1
- package/dist/umd/descope-totp-image-index-js.js.map +1 -0
- package/dist/umd/descope-upload-file-index-js.js +2 -1
- package/dist/umd/descope-upload-file-index-js.js.map +1 -0
- package/dist/umd/descope-user-attribute-index-js.js +2 -1
- package/dist/umd/descope-user-attribute-index-js.js.map +1 -0
- package/dist/umd/descope-user-auth-method-index-js.js +2 -1
- package/dist/umd/descope-user-auth-method-index-js.js.map +1 -0
- package/dist/umd/fonts/font-1364590020.woff +0 -0
- package/dist/umd/fonts/font-1949233557.woff +0 -0
- package/dist/umd/index.js +2 -1
- package/dist/umd/index.js.map +1 -0
- package/dist/umd/mapping-fields-descope-mappings-field-descope-mapping-item-index-js.js +2 -1
- package/dist/umd/mapping-fields-descope-mappings-field-descope-mapping-item-index-js.js.map +1 -0
- package/dist/umd/mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js.js +2 -1
- package/dist/umd/mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js.js.map +1 -0
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +2 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js.map +1 -0
- package/dist/umd/mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js.js +2 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js.js.map +1 -0
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +2 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js.map +1 -0
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +2 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js.map +1 -0
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +2 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js.map +1 -0
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +3 -2
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js.map +1 -0
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +8 -7
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js.map +1 -0
- package/package.json +10 -8
- package/src/baseClasses/createCssVarImageClass.js +10 -5
- package/src/components/button-selection-group-fields/baseButtonSelectionGroup.js +7 -0
- package/src/components/button-selection-group-fields/createBaseButtonSelectionGroupInternalClass.js +1 -8
- package/src/components/button-selection-group-fields/descope-button-selection-group-item/ButtonSelectionGroupItemClass.js +11 -6
- package/src/components/descope-alert/AlertClass.js +16 -12
- package/src/components/descope-badge/BadgeClass.js +11 -6
- package/src/components/descope-code-snippet/CodeSnippetClass.js +9 -4
- package/src/components/descope-container/ContainerClass.js +9 -4
- package/src/components/descope-date-field/DateFieldClass.js +22 -17
- package/src/components/descope-date-field/descope-calendar/CalendarClass.js +28 -18
- package/src/components/descope-date-field/descope-calendar/helpers.js +1 -2
- package/src/components/descope-divider/DividerClass.js +14 -9
- package/src/components/descope-enriched-text/EnrichedTextClass.js +9 -4
- package/src/components/descope-grid/GridClass.js +1 -1
- package/src/components/descope-hybrid-field/HybridFieldClass.js +15 -10
- package/src/components/descope-icon/IconClass.js +9 -4
- package/src/components/descope-image/ImageClass.js +10 -5
- package/src/components/descope-link/LinkClass.js +14 -9
- package/src/components/descope-list/ListClass.js +15 -13
- package/src/components/descope-list/ListItemClass.js +16 -14
- package/src/components/descope-loader-linear/LoaderLinearClass.js +10 -5
- package/src/components/descope-loader-radial/LoaderRadialClass.js +10 -5
- package/src/components/descope-modal/ModalClass.js +16 -4
- package/src/components/descope-new-password/NewPasswordClass.js +1 -1
- package/src/components/descope-new-password/descope-new-password-internal/NewPasswordInternal.js +8 -6
- package/src/components/descope-passcode/PasscodeClass.js +28 -1
- package/src/components/descope-passcode/descope-passcode-internal/PasscodeInternal.js +26 -23
- package/src/components/descope-passcode/descope-passcode-internal/helpers.js +3 -22
- package/src/components/descope-policy-validation/PolicyValidationClass.js +8 -3
- package/src/components/descope-recaptcha/RecaptchaClass.js +13 -8
- package/src/components/descope-scopes-list/ScopesListClass.js +9 -5
- package/src/components/descope-security-questions-setup/SecurityQuestionsSetupClass.js +9 -5
- package/src/components/descope-security-questions-verify/SecurityQuestionsVerifyClass.js +9 -5
- package/src/components/descope-text-field/TextFieldClass.js +1 -1
- package/src/components/descope-third-party-app-logo/ThirdPartyAppLogoClass.js +20 -16
- package/src/components/descope-upload-file/UploadFileClass.js +20 -15
- package/src/components/descope-user-attribute/UserAttributeClass.js +25 -22
- package/src/components/descope-user-auth-method/UserAuthMethodClass.js +25 -22
- package/src/components/mapping-fields/descope-mappings-field/descope-mapping-item/MappingItem.js +15 -9
- package/src/components/phone-fields/descope-phone-field/PhoneFieldClass.js +1 -0
- package/src/components/phone-fields/descope-phone-field/helpers.js +0 -1
- package/src/mixins/createProxy.js +3 -1
- package/src/mixins/createStyleMixin/index.js +9 -22
- package/src/mixins/draggableMixin.js +3 -2
- package/dist/umd/1402.js +0 -1
- package/dist/umd/1484.js +0 -148
- package/dist/umd/3110.js +0 -275
- package/dist/umd/3437.js +0 -2
- package/dist/umd/4619.js +0 -1
- package/dist/umd/4902.js +0 -170
- package/dist/umd/4902.js.LICENSE.txt +0 -23
- package/dist/umd/5096.js +0 -109
- package/dist/umd/5318.js +0 -1
- package/dist/umd/5459.js +0 -1
- package/dist/umd/7150.js +0 -2
- package/dist/umd/731.js +0 -832
- package/dist/umd/8823.js +0 -1
- /package/dist/umd/{9243.js.LICENSE.txt → 1519.js.LICENSE.txt} +0 -0
- /package/dist/umd/{1902.js.LICENSE.txt → 1899.js.LICENSE.txt} +0 -0
- /package/dist/umd/{1172.js.LICENSE.txt → 1995.js.LICENSE.txt} +0 -0
- /package/dist/umd/{2570.js.LICENSE.txt → 2894.js.LICENSE.txt} +0 -0
- /package/dist/umd/{1484.js.LICENSE.txt → 3620.js.LICENSE.txt} +0 -0
- /package/dist/umd/{2666.js.LICENSE.txt → 384.js.LICENSE.txt} +0 -0
- /package/dist/umd/{3437.js.LICENSE.txt → 4467.js.LICENSE.txt} +0 -0
- /package/dist/umd/{404.js.LICENSE.txt → 4518.js.LICENSE.txt} +0 -0
- /package/dist/umd/{4455.js.LICENSE.txt → 4550.js.LICENSE.txt} +0 -0
- /package/dist/umd/{4554.js.LICENSE.txt → 4623.js.LICENSE.txt} +0 -0
- /package/dist/umd/{742.js.LICENSE.txt → 4914.js.LICENSE.txt} +0 -0
- /package/dist/umd/{507.js.LICENSE.txt → 513.js.LICENSE.txt} +0 -0
- /package/dist/umd/{201.js.LICENSE.txt → 5260.js.LICENSE.txt} +0 -0
- /package/dist/umd/{5096.js.LICENSE.txt → 5648.js.LICENSE.txt} +0 -0
- /package/dist/umd/{5563.js.LICENSE.txt → 6227.js.LICENSE.txt} +0 -0
- /package/dist/umd/{4127.js.LICENSE.txt → 6424.js.LICENSE.txt} +0 -0
- /package/dist/umd/{7097.js.LICENSE.txt → 6649.js.LICENSE.txt} +0 -0
- /package/dist/umd/{7150.js.LICENSE.txt → 676.js.LICENSE.txt} +0 -0
- /package/dist/umd/{3638.js.LICENSE.txt → 7182.js.LICENSE.txt} +0 -0
- /package/dist/umd/{7979.js.LICENSE.txt → 7291.js.LICENSE.txt} +0 -0
- /package/dist/umd/{4187.js.LICENSE.txt → 7565.js.LICENSE.txt} +0 -0
- /package/dist/umd/{3191.js.LICENSE.txt → 7620.js.LICENSE.txt} +0 -0
- /package/dist/umd/{6050.js.LICENSE.txt → 7774.js.LICENSE.txt} +0 -0
- /package/dist/umd/{9478.js.LICENSE.txt → 7939.js.LICENSE.txt} +0 -0
- /package/dist/umd/{4114.js.LICENSE.txt → 8618.js.LICENSE.txt} +0 -0
- /package/dist/umd/{4574.js.LICENSE.txt → 8983.js.LICENSE.txt} +0 -0
- /package/dist/umd/{4218.js.LICENSE.txt → 9380.js.LICENSE.txt} +0 -0
- /package/dist/umd/{3110.js.LICENSE.txt → 9871.js.LICENSE.txt} +0 -0
- /package/dist/umd/{731.js.LICENSE.txt → 9970.js.LICENSE.txt} +0 -0
- /package/dist/umd/{bcdfe87ae253c2cf789c9a737f8d8c22.woff → fonts/font-38673212.woff} +0 -0
package/dist/cjs/index.cjs.js
CHANGED
@@ -296,6 +296,22 @@ const forwardProps$2 = (src, target, props = []) => {
|
|
296
296
|
Object.defineProperties(target, config);
|
297
297
|
};
|
298
298
|
|
299
|
+
const injectStyle = (cssString, ref, {prepend = false} = {}) => {
|
300
|
+
const style = new CSSStyleSheet();
|
301
|
+
const _ref = ref?.shadowRoot || ref;
|
302
|
+
if (cssString) {
|
303
|
+
style.replaceSync(cssString);
|
304
|
+
}
|
305
|
+
if (_ref) {
|
306
|
+
const adoptedStyleSheets = [...(_ref.adoptedStyleSheets || [])];
|
307
|
+
adoptedStyleSheets[prepend ? 'unshift' : 'push'](style);
|
308
|
+
|
309
|
+
_ref.adoptedStyleSheets = adoptedStyleSheets;
|
310
|
+
}
|
311
|
+
|
312
|
+
return style;
|
313
|
+
};
|
314
|
+
|
299
315
|
class ComponentsThemeManager {
|
300
316
|
static mountOnPropName = 'DescopeThemeManager';
|
301
317
|
|
@@ -1153,13 +1169,11 @@ const createStyleMixin$1 =
|
|
1153
1169
|
}
|
1154
1170
|
|
1155
1171
|
#onComponentThemeChange() {
|
1156
|
-
this.#themeStyleEle.
|
1172
|
+
this.#themeStyleEle.replaceSync(this.#componentTheme[this.#themeSection]);
|
1157
1173
|
}
|
1158
1174
|
|
1159
1175
|
#createComponentTheme() {
|
1160
|
-
this.#themeStyleEle =
|
1161
|
-
this.#themeStyleEle.id = `style-mixin-theme__${componentName}`;
|
1162
|
-
this.#rootElement.prepend(this.#themeStyleEle);
|
1176
|
+
this.#themeStyleEle = injectStyle('', this.#rootElement, { prepend: true });
|
1163
1177
|
this.#disconnectThemeManager = componentsThemeManager.onCurrentThemeChange(
|
1164
1178
|
this.#onComponentThemeChange.bind(this)
|
1165
1179
|
);
|
@@ -1168,21 +1182,18 @@ const createStyleMixin$1 =
|
|
1168
1182
|
|
1169
1183
|
#createOverridesStyle() {
|
1170
1184
|
if (this.#styleAttributes.length) {
|
1171
|
-
this.#overrideStyleEle = document.createElement('style');
|
1172
|
-
this.#overrideStyleEle.id = `style-mixin-overrides__${componentName}`;
|
1173
|
-
|
1174
1185
|
const classSpecifier = createClassSelectorSpecifier$1(
|
1175
1186
|
componentName,
|
1176
1187
|
CSS_SELECTOR_SPECIFIER_MULTIPLY$1
|
1177
1188
|
);
|
1178
1189
|
|
1179
|
-
this.#overrideStyleEle
|
1180
|
-
this.#rootElement.append(this.#overrideStyleEle);
|
1190
|
+
this.#overrideStyleEle = injectStyle(`:host(${classSpecifier}) {}`, this.#rootElement);
|
1181
1191
|
}
|
1182
1192
|
}
|
1183
1193
|
|
1184
1194
|
#setAttrOverride(attrName, value) {
|
1185
|
-
const style = this.#overrideStyleEle?.
|
1195
|
+
const style = this.#overrideStyleEle?.cssRules[0].style;
|
1196
|
+
|
1186
1197
|
if (!style) return;
|
1187
1198
|
|
1188
1199
|
const varName = getCssVarName$1(
|
@@ -1198,31 +1209,22 @@ const createStyleMixin$1 =
|
|
1198
1209
|
}
|
1199
1210
|
|
1200
1211
|
#updateOverridesStyle(attrs = []) {
|
1201
|
-
let shouldUpdate = false;
|
1202
|
-
|
1203
1212
|
attrs.forEach((attr) => {
|
1204
1213
|
if (this.#styleAttributes.includes(attr)) {
|
1205
1214
|
this.#setAttrOverride(attr, this.getAttribute(attr));
|
1206
|
-
shouldUpdate = true;
|
1207
1215
|
}
|
1208
1216
|
});
|
1209
|
-
|
1210
|
-
if (shouldUpdate) {
|
1211
|
-
// we are rewriting the style back to the style tag
|
1212
|
-
this.#overrideStyleEle.innerHTML = this.#overrideStyleEle?.sheet?.cssRules[0].cssText;
|
1213
|
-
}
|
1214
1217
|
}
|
1215
1218
|
|
1216
1219
|
#createMappingStyle() {
|
1217
1220
|
if (Object.keys(mappings).length) {
|
1218
|
-
const
|
1219
|
-
themeStyle.id = `style-mixin-mappings__${componentName}`;
|
1220
|
-
themeStyle.innerHTML = createStyle$1(
|
1221
|
+
const style = createStyle$1(
|
1221
1222
|
kebabCaseJoin$1(componentName, this.#componentNameSuffix),
|
1222
1223
|
this.#baseSelector,
|
1223
1224
|
mappings
|
1224
1225
|
);
|
1225
|
-
|
1226
|
+
|
1227
|
+
injectStyle(style, this.#rootElement, { prepend: true });
|
1226
1228
|
}
|
1227
1229
|
}
|
1228
1230
|
|
@@ -1266,8 +1268,7 @@ const draggableMixin$1 = (superclass) =>
|
|
1266
1268
|
constructor() {
|
1267
1269
|
super();
|
1268
1270
|
|
1269
|
-
|
1270
|
-
this.#styleEle.innerText = `* { cursor: inherit!important }`;
|
1271
|
+
injectStyle(`* { cursor: inherit!important }`, this);
|
1271
1272
|
}
|
1272
1273
|
|
1273
1274
|
#handleDraggableStyle(isDraggable) {
|
@@ -1516,7 +1517,6 @@ const createProxy$1 = ({
|
|
1516
1517
|
|
1517
1518
|
constructor() {
|
1518
1519
|
super().attachShadow({ mode: 'open', delegatesFocus }).innerHTML = `
|
1519
|
-
<style id="create-proxy">${(isFunction$1(style) ? style() : style) || ''}</style>
|
1520
1520
|
<${wrappedEleName}>
|
1521
1521
|
${slots
|
1522
1522
|
.map(
|
@@ -1527,6 +1527,8 @@ const createProxy$1 = ({
|
|
1527
1527
|
.join('')}
|
1528
1528
|
</${wrappedEleName}>
|
1529
1529
|
`;
|
1530
|
+
|
1531
|
+
injectStyle((isFunction$1(style) ? style() : style) || '', this);
|
1530
1532
|
}
|
1531
1533
|
|
1532
1534
|
init() {
|
@@ -2005,8 +2007,6 @@ const composedProxyInputMixin$1 = (proxyInputMixinConfig) =>
|
|
2005
2007
|
// because of that, we are adding this separator that is also used as a differentiator
|
2006
2008
|
const DISPLAY_NAME_SEPARATOR$1 = '_';
|
2007
2009
|
|
2008
|
-
const sanitizeSelector$1 = (selector) => selector.replace(/[^\w\s]/gi, '');
|
2009
|
-
|
2010
2010
|
const withWaitForShadowRoot$1 = (getRootElementFn) => async (that) => {
|
2011
2011
|
const ele = await getRootElementFn(that);
|
2012
2012
|
|
@@ -2037,7 +2037,7 @@ const withWaitForShadowRoot$1 = (getRootElementFn) => async (that) => {
|
|
2037
2037
|
const portalMixin$1 =
|
2038
2038
|
({ name, selector, mappings = {}, forward: { attributes = [], include = true } = {} }) =>
|
2039
2039
|
(superclass) => {
|
2040
|
-
const eleDisplayName = name
|
2040
|
+
const eleDisplayName = name;
|
2041
2041
|
|
2042
2042
|
const BaseClass = createStyleMixin$1({
|
2043
2043
|
mappings,
|
@@ -2523,7 +2523,11 @@ class RawIcon extends createBaseClass$1({ componentName: componentName$16, baseS
|
|
2523
2523
|
super();
|
2524
2524
|
|
2525
2525
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
2526
|
-
<
|
2526
|
+
<slot></slot>
|
2527
|
+
`;
|
2528
|
+
|
2529
|
+
injectStyle(
|
2530
|
+
`
|
2527
2531
|
:host > slot {
|
2528
2532
|
box-sizing: border-box;
|
2529
2533
|
width: 100%;
|
@@ -2534,9 +2538,9 @@ class RawIcon extends createBaseClass$1({ componentName: componentName$16, baseS
|
|
2534
2538
|
:host {
|
2535
2539
|
display: inline-block;
|
2536
2540
|
}
|
2537
|
-
|
2538
|
-
|
2539
|
-
|
2541
|
+
`,
|
2542
|
+
this
|
2543
|
+
);
|
2540
2544
|
}
|
2541
2545
|
|
2542
2546
|
init() {
|
@@ -3313,7 +3317,7 @@ const TextFieldClass = compose$1(
|
|
3313
3317
|
align-self: center;
|
3314
3318
|
}
|
3315
3319
|
`,
|
3316
|
-
excludeAttrsSync: ['tabindex'],
|
3320
|
+
excludeAttrsSync: ['tabindex', 'style'],
|
3317
3321
|
componentName: componentName$14,
|
3318
3322
|
})
|
3319
3323
|
);
|
@@ -4718,7 +4722,11 @@ class RawContainer extends createBaseClass$1({ componentName: componentName$X, b
|
|
4718
4722
|
super();
|
4719
4723
|
|
4720
4724
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
4721
|
-
<
|
4725
|
+
<slot></slot>
|
4726
|
+
`;
|
4727
|
+
|
4728
|
+
injectStyle(
|
4729
|
+
`
|
4722
4730
|
:host > slot {
|
4723
4731
|
box-sizing: border-box;
|
4724
4732
|
width: 100%;
|
@@ -4729,9 +4737,9 @@ class RawContainer extends createBaseClass$1({ componentName: componentName$X, b
|
|
4729
4737
|
:host {
|
4730
4738
|
display: inline-block;
|
4731
4739
|
}
|
4732
|
-
|
4733
|
-
|
4734
|
-
|
4740
|
+
`,
|
4741
|
+
this
|
4742
|
+
);
|
4735
4743
|
}
|
4736
4744
|
}
|
4737
4745
|
|
@@ -4911,13 +4919,17 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
|
|
4911
4919
|
constructor() {
|
4912
4920
|
super();
|
4913
4921
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
4914
|
-
<
|
4922
|
+
<div></div>
|
4923
|
+
`;
|
4924
|
+
|
4925
|
+
injectStyle(
|
4926
|
+
`
|
4915
4927
|
:host {
|
4916
4928
|
display: inline-flex;
|
4917
4929
|
}
|
4918
4930
|
:host([draggable="true"]) > div {
|
4919
4931
|
pointer-events: none
|
4920
|
-
}
|
4932
|
+
}
|
4921
4933
|
:host > div {
|
4922
4934
|
display: inline-block;
|
4923
4935
|
max-width: 100%;
|
@@ -4926,9 +4938,9 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
|
|
4926
4938
|
margin: auto;
|
4927
4939
|
${getContent()}
|
4928
4940
|
}
|
4929
|
-
|
4930
|
-
|
4931
|
-
|
4941
|
+
`,
|
4942
|
+
this
|
4943
|
+
);
|
4932
4944
|
}
|
4933
4945
|
}
|
4934
4946
|
|
@@ -5352,13 +5364,11 @@ const createStyleMixin =
|
|
5352
5364
|
}
|
5353
5365
|
|
5354
5366
|
#onComponentThemeChange() {
|
5355
|
-
this.#themeStyleEle.
|
5367
|
+
this.#themeStyleEle.replaceSync(this.#componentTheme[this.#themeSection]);
|
5356
5368
|
}
|
5357
5369
|
|
5358
5370
|
#createComponentTheme() {
|
5359
|
-
this.#themeStyleEle =
|
5360
|
-
this.#themeStyleEle.id = `style-mixin-theme__${componentName}`;
|
5361
|
-
this.#rootElement.prepend(this.#themeStyleEle);
|
5371
|
+
this.#themeStyleEle = injectStyle('', this.#rootElement, { prepend: true });
|
5362
5372
|
this.#disconnectThemeManager = componentsThemeManager.onCurrentThemeChange(
|
5363
5373
|
this.#onComponentThemeChange.bind(this)
|
5364
5374
|
);
|
@@ -5367,21 +5377,18 @@ const createStyleMixin =
|
|
5367
5377
|
|
5368
5378
|
#createOverridesStyle() {
|
5369
5379
|
if (this.#styleAttributes.length) {
|
5370
|
-
this.#overrideStyleEle = document.createElement('style');
|
5371
|
-
this.#overrideStyleEle.id = `style-mixin-overrides__${componentName}`;
|
5372
|
-
|
5373
5380
|
const classSpecifier = createClassSelectorSpecifier(
|
5374
5381
|
componentName,
|
5375
5382
|
CSS_SELECTOR_SPECIFIER_MULTIPLY
|
5376
5383
|
);
|
5377
5384
|
|
5378
|
-
this.#overrideStyleEle
|
5379
|
-
this.#rootElement.append(this.#overrideStyleEle);
|
5385
|
+
this.#overrideStyleEle = injectStyle(`:host(${classSpecifier}) {}`, this.#rootElement);
|
5380
5386
|
}
|
5381
5387
|
}
|
5382
5388
|
|
5383
5389
|
#setAttrOverride(attrName, value) {
|
5384
|
-
const style = this.#overrideStyleEle?.
|
5390
|
+
const style = this.#overrideStyleEle?.cssRules[0].style;
|
5391
|
+
|
5385
5392
|
if (!style) return;
|
5386
5393
|
|
5387
5394
|
const varName = getCssVarName(
|
@@ -5397,31 +5404,22 @@ const createStyleMixin =
|
|
5397
5404
|
}
|
5398
5405
|
|
5399
5406
|
#updateOverridesStyle(attrs = []) {
|
5400
|
-
let shouldUpdate = false;
|
5401
|
-
|
5402
5407
|
attrs.forEach((attr) => {
|
5403
5408
|
if (this.#styleAttributes.includes(attr)) {
|
5404
5409
|
this.#setAttrOverride(attr, this.getAttribute(attr));
|
5405
|
-
shouldUpdate = true;
|
5406
5410
|
}
|
5407
5411
|
});
|
5408
|
-
|
5409
|
-
if (shouldUpdate) {
|
5410
|
-
// we are rewriting the style back to the style tag
|
5411
|
-
this.#overrideStyleEle.innerHTML = this.#overrideStyleEle?.sheet?.cssRules[0].cssText;
|
5412
|
-
}
|
5413
5412
|
}
|
5414
5413
|
|
5415
5414
|
#createMappingStyle() {
|
5416
5415
|
if (Object.keys(mappings).length) {
|
5417
|
-
const
|
5418
|
-
themeStyle.id = `style-mixin-mappings__${componentName}`;
|
5419
|
-
themeStyle.innerHTML = createStyle(
|
5416
|
+
const style = createStyle(
|
5420
5417
|
kebabCaseJoin(componentName, this.#componentNameSuffix),
|
5421
5418
|
this.#baseSelector,
|
5422
5419
|
mappings
|
5423
5420
|
);
|
5424
|
-
|
5421
|
+
|
5422
|
+
injectStyle(style, this.#rootElement, { prepend: true });
|
5425
5423
|
}
|
5426
5424
|
}
|
5427
5425
|
|
@@ -6090,7 +6088,6 @@ const createProxy = ({
|
|
6090
6088
|
|
6091
6089
|
constructor() {
|
6092
6090
|
super().attachShadow({ mode: 'open', delegatesFocus }).innerHTML = `
|
6093
|
-
<style id="create-proxy">${(isFunction(style) ? style() : style) || ''}</style>
|
6094
6091
|
<${wrappedEleName}>
|
6095
6092
|
${slots
|
6096
6093
|
.map(
|
@@ -6101,6 +6098,8 @@ const createProxy = ({
|
|
6101
6098
|
.join('')}
|
6102
6099
|
</${wrappedEleName}>
|
6103
6100
|
`;
|
6101
|
+
|
6102
|
+
injectStyle((isFunction(style) ? style() : style) || '', this);
|
6104
6103
|
}
|
6105
6104
|
|
6106
6105
|
init() {
|
@@ -6371,9 +6370,6 @@ const composedProxyInputMixin = (proxyInputMixinConfig) =>
|
|
6371
6370
|
const DISPLAY_NAME_SEPARATOR = '_';
|
6372
6371
|
const PORTAL_THEME_PREFIX = '@';
|
6373
6372
|
|
6374
|
-
|
6375
|
-
const sanitizeSelector = (selector) => selector.replace(/[^\w\s]/gi, '');
|
6376
|
-
|
6377
6373
|
const withWaitForShadowRoot = (getRootElementFn) => async (that) => {
|
6378
6374
|
const ele = await getRootElementFn(that);
|
6379
6375
|
|
@@ -6404,7 +6400,7 @@ const withWaitForShadowRoot = (getRootElementFn) => async (that) => {
|
|
6404
6400
|
const portalMixin =
|
6405
6401
|
({ name, selector, mappings = {}, forward: { attributes = [], include = true } = {} }) =>
|
6406
6402
|
(superclass) => {
|
6407
|
-
const eleDisplayName = name
|
6403
|
+
const eleDisplayName = name;
|
6408
6404
|
|
6409
6405
|
const BaseClass = createStyleMixin({
|
6410
6406
|
mappings,
|
@@ -6427,14 +6423,9 @@ const portalMixin =
|
|
6427
6423
|
// we cannot use "this" before calling "super"
|
6428
6424
|
const getRootElement = async (that) => {
|
6429
6425
|
const baseEle = (that.shadowRoot || that).querySelector(that.baseSelector);
|
6430
|
-
|
6426
|
+
{
|
6431
6427
|
return baseEle;
|
6432
6428
|
}
|
6433
|
-
|
6434
|
-
// in case we have a selector, we should first wait for the base element shadow root
|
6435
|
-
// and then look for the internal element
|
6436
|
-
const baseEleShadowRoot = await withWaitForShadowRoot(() => baseEle)(that);
|
6437
|
-
return baseEleShadowRoot.querySelector(selector);
|
6438
6429
|
};
|
6439
6430
|
|
6440
6431
|
const getPortalElement = withWaitForShadowRoot(getRootElement);
|
@@ -6550,7 +6541,10 @@ class RawText extends createBaseClass({
|
|
6550
6541
|
super();
|
6551
6542
|
|
6552
6543
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
6553
|
-
<
|
6544
|
+
<slot part="text-wrapper"></slot>
|
6545
|
+
`;
|
6546
|
+
|
6547
|
+
injectStyle(`
|
6554
6548
|
:host {
|
6555
6549
|
display: inline-block;
|
6556
6550
|
line-height: 1em;
|
@@ -6559,9 +6553,7 @@ class RawText extends createBaseClass({
|
|
6559
6553
|
width: 100%;
|
6560
6554
|
display: inline-block;
|
6561
6555
|
}
|
6562
|
-
|
6563
|
-
<slot part="text-wrapper"></slot>
|
6564
|
-
`;
|
6556
|
+
`, this);
|
6565
6557
|
}
|
6566
6558
|
|
6567
6559
|
get hideWhenEmpty() {
|
@@ -6728,7 +6720,11 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$S, b
|
|
6728
6720
|
super();
|
6729
6721
|
|
6730
6722
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
6731
|
-
<
|
6723
|
+
<div class="content"></div>
|
6724
|
+
`;
|
6725
|
+
|
6726
|
+
injectStyle(
|
6727
|
+
`
|
6732
6728
|
:host {
|
6733
6729
|
line-height: 1em;
|
6734
6730
|
word-break: break-word;
|
@@ -6761,9 +6757,9 @@ class EnrichedText extends createBaseClass$1({ componentName: componentName$S, b
|
|
6761
6757
|
s {
|
6762
6758
|
color: currentColor;
|
6763
6759
|
}
|
6764
|
-
|
6765
|
-
|
6766
|
-
|
6760
|
+
`,
|
6761
|
+
this
|
6762
|
+
);
|
6767
6763
|
|
6768
6764
|
this.#initProcessor();
|
6769
6765
|
|
@@ -6919,15 +6915,6 @@ class RawLink extends createBaseClass$1({ componentName: componentName$R, baseSe
|
|
6919
6915
|
super();
|
6920
6916
|
|
6921
6917
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
6922
|
-
<style>
|
6923
|
-
:host {
|
6924
|
-
display: inline-block;
|
6925
|
-
line-height: 1em;
|
6926
|
-
}
|
6927
|
-
:host a {
|
6928
|
-
display: inline;
|
6929
|
-
}
|
6930
|
-
</style>
|
6931
6918
|
<div>
|
6932
6919
|
<descope-text>
|
6933
6920
|
<a>
|
@@ -6937,6 +6924,19 @@ class RawLink extends createBaseClass$1({ componentName: componentName$R, baseSe
|
|
6937
6924
|
</div>
|
6938
6925
|
`;
|
6939
6926
|
|
6927
|
+
injectStyle(
|
6928
|
+
`
|
6929
|
+
:host {
|
6930
|
+
display: inline-block;
|
6931
|
+
line-height: 1em;
|
6932
|
+
}
|
6933
|
+
:host a {
|
6934
|
+
display: inline;
|
6935
|
+
}
|
6936
|
+
`,
|
6937
|
+
this
|
6938
|
+
);
|
6939
|
+
|
6940
6940
|
forwardAttrs$1(this, this.shadowRoot.querySelector('a'), {
|
6941
6941
|
includeAttrs: ['href', 'target', 'tooltip'],
|
6942
6942
|
mapAttrs: {
|
@@ -7058,8 +7058,16 @@ class RawDivider extends createBaseClass$1({ componentName: componentName$Q, bas
|
|
7058
7058
|
super();
|
7059
7059
|
|
7060
7060
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
7061
|
-
<
|
7062
|
-
|
7061
|
+
<div>
|
7062
|
+
<descope-text>
|
7063
|
+
<slot></slot>
|
7064
|
+
</descope-text>
|
7065
|
+
</div>
|
7066
|
+
`;
|
7067
|
+
|
7068
|
+
injectStyle(
|
7069
|
+
`
|
7070
|
+
:host {
|
7063
7071
|
display: inline-block;
|
7064
7072
|
}
|
7065
7073
|
:host > div {
|
@@ -7082,13 +7090,9 @@ class RawDivider extends createBaseClass$1({ componentName: componentName$Q, bas
|
|
7082
7090
|
:host([vertical="true"]) div {
|
7083
7091
|
width: fit-content;
|
7084
7092
|
}
|
7085
|
-
|
7086
|
-
|
7087
|
-
|
7088
|
-
<slot></slot>
|
7089
|
-
</descope-text>
|
7090
|
-
</div>
|
7091
|
-
`;
|
7093
|
+
`,
|
7094
|
+
this
|
7095
|
+
);
|
7092
7096
|
|
7093
7097
|
this.textComponent = this.shadowRoot.querySelector('descope-text');
|
7094
7098
|
|
@@ -7215,8 +7219,12 @@ class RawLoaderRadial extends createBaseClass$1({ componentName: componentName$O
|
|
7215
7219
|
super();
|
7216
7220
|
|
7217
7221
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
7218
|
-
<
|
7219
|
-
|
7222
|
+
<div></div>
|
7223
|
+
`;
|
7224
|
+
|
7225
|
+
injectStyle(
|
7226
|
+
`
|
7227
|
+
@keyframes spin {
|
7220
7228
|
0% { transform: rotate(0deg); }
|
7221
7229
|
100% { transform: rotate(360deg); }
|
7222
7230
|
}
|
@@ -7227,9 +7235,9 @@ class RawLoaderRadial extends createBaseClass$1({ componentName: componentName$O
|
|
7227
7235
|
:host > div {
|
7228
7236
|
animation-name: spin;
|
7229
7237
|
}
|
7230
|
-
|
7231
|
-
|
7232
|
-
|
7238
|
+
`,
|
7239
|
+
this
|
7240
|
+
);
|
7233
7241
|
}
|
7234
7242
|
}
|
7235
7243
|
|
@@ -7270,6 +7278,32 @@ const customMixin$b = (superclass) =>
|
|
7270
7278
|
|
7271
7279
|
init() {
|
7272
7280
|
super.init?.();
|
7281
|
+
|
7282
|
+
injectStyle(
|
7283
|
+
`
|
7284
|
+
.wrapper {
|
7285
|
+
display: flex;
|
7286
|
+
width: 100%;
|
7287
|
+
justify-content: space-between;
|
7288
|
+
direction: ltr;
|
7289
|
+
position: relative;
|
7290
|
+
}
|
7291
|
+
|
7292
|
+
descope-text-field {
|
7293
|
+
direction: ltr;
|
7294
|
+
}
|
7295
|
+
|
7296
|
+
.loader-container {
|
7297
|
+
display: none;
|
7298
|
+
position: absolute;
|
7299
|
+
top: 50%;
|
7300
|
+
left: 50%;
|
7301
|
+
transform: translate(-50%, -50%);
|
7302
|
+
}
|
7303
|
+
`,
|
7304
|
+
this
|
7305
|
+
);
|
7306
|
+
|
7273
7307
|
const template = document.createElement('template');
|
7274
7308
|
|
7275
7309
|
template.innerHTML = `
|
@@ -7293,7 +7327,7 @@ const customMixin$b = (superclass) =>
|
|
7293
7327
|
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
7294
7328
|
|
7295
7329
|
if (attrName === 'digits') {
|
7296
|
-
this.style
|
7330
|
+
this.style['--passcode-digits-count'] = newValue;
|
7297
7331
|
}
|
7298
7332
|
}
|
7299
7333
|
};
|
@@ -7504,8 +7538,12 @@ class RawLoaderLinear extends createBaseClass$1({ componentName: componentName$M
|
|
7504
7538
|
super();
|
7505
7539
|
|
7506
7540
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
7507
|
-
<
|
7508
|
-
|
7541
|
+
<div></div>
|
7542
|
+
`;
|
7543
|
+
|
7544
|
+
injectStyle(
|
7545
|
+
`
|
7546
|
+
@keyframes tilt {
|
7509
7547
|
0% { transform: translateX(0); }
|
7510
7548
|
50% { transform: translateX(400%); }
|
7511
7549
|
}
|
@@ -7522,9 +7560,9 @@ class RawLoaderLinear extends createBaseClass$1({ componentName: componentName$M
|
|
7522
7560
|
:host > div {
|
7523
7561
|
width: 100%;
|
7524
7562
|
}
|
7525
|
-
|
7526
|
-
|
7527
|
-
|
7563
|
+
`,
|
7564
|
+
this
|
7565
|
+
);
|
7528
7566
|
}
|
7529
7567
|
}
|
7530
7568
|
|
@@ -8552,17 +8590,21 @@ class RawImage extends BaseClass$2 {
|
|
8552
8590
|
super();
|
8553
8591
|
|
8554
8592
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
8555
|
-
<
|
8556
|
-
|
8593
|
+
<img/>
|
8594
|
+
`;
|
8595
|
+
|
8596
|
+
injectStyle(
|
8597
|
+
`
|
8598
|
+
:host > img {
|
8557
8599
|
width: 100%;
|
8558
8600
|
height: 100%
|
8559
8601
|
}
|
8560
8602
|
:host {
|
8561
8603
|
display: inline-flex;
|
8562
8604
|
}
|
8563
|
-
|
8564
|
-
|
8565
|
-
|
8605
|
+
`,
|
8606
|
+
this
|
8607
|
+
);
|
8566
8608
|
}
|
8567
8609
|
|
8568
8610
|
connectedCallback() {
|
@@ -10073,6 +10115,7 @@ const PhoneFieldClass = compose$1(
|
|
10073
10115
|
flex: 0;
|
10074
10116
|
border: none;
|
10075
10117
|
}
|
10118
|
+
|
10076
10119
|
descope-combo-box {
|
10077
10120
|
flex-shrink: 0;
|
10078
10121
|
min-width: 5.75em;
|
@@ -10219,7 +10262,6 @@ const {
|
|
10219
10262
|
} = {
|
10220
10263
|
host: { selector: () => ':host' },
|
10221
10264
|
label: { selector: '::part(label)' },
|
10222
|
-
placeholder: { selector: '> input:placeholder-shown' },
|
10223
10265
|
inputElement: { selector: 'input' },
|
10224
10266
|
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
10225
10267
|
inputField: { selector: () => 'vaadin-text-field::part(input-field)' },
|
@@ -10461,7 +10503,10 @@ class RawPolicyValidation extends createBaseClass$1({ componentName: componentNa
|
|
10461
10503
|
<div class="label"></div>
|
10462
10504
|
<ul></ul>
|
10463
10505
|
</div>
|
10464
|
-
|
10506
|
+
`;
|
10507
|
+
|
10508
|
+
injectStyle(
|
10509
|
+
`
|
10465
10510
|
:host > div {
|
10466
10511
|
width: 100%;
|
10467
10512
|
display: flex;
|
@@ -10492,8 +10537,9 @@ class RawPolicyValidation extends createBaseClass$1({ componentName: componentNa
|
|
10492
10537
|
width: 1em;
|
10493
10538
|
text-align: center;
|
10494
10539
|
}
|
10495
|
-
|
10496
|
-
|
10540
|
+
`,
|
10541
|
+
this
|
10542
|
+
);
|
10497
10543
|
|
10498
10544
|
this.panel = this.shadowRoot.querySelector(':host > div');
|
10499
10545
|
this.label = this.shadowRoot.querySelector('.label');
|
@@ -10852,7 +10898,7 @@ const NewPasswordClass = compose$1(
|
|
10852
10898
|
margin-top: 8px;
|
10853
10899
|
display: flex;
|
10854
10900
|
}
|
10855
|
-
|
10901
|
+
.hidden {
|
10856
10902
|
display: none;
|
10857
10903
|
}
|
10858
10904
|
`,
|
@@ -10938,8 +10984,22 @@ class RawUploadFile extends BaseInputClass$3 {
|
|
10938
10984
|
super();
|
10939
10985
|
|
10940
10986
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
10941
|
-
<
|
10942
|
-
|
10987
|
+
<div>
|
10988
|
+
<slot name="icon"></slot>
|
10989
|
+
<div class="title">
|
10990
|
+
<span class="title-text"></span>
|
10991
|
+
</div>
|
10992
|
+
<div class="description"></div>
|
10993
|
+
<div class="button-wrapper">
|
10994
|
+
<input type="file" tabindex="-1" aria-labelledby="button"/>
|
10995
|
+
<descope-button id="button"></descope-button>
|
10996
|
+
</div>
|
10997
|
+
</div>
|
10998
|
+
`;
|
10999
|
+
|
11000
|
+
injectStyle(
|
11001
|
+
`
|
11002
|
+
:host {
|
10943
11003
|
display: flex;
|
10944
11004
|
}
|
10945
11005
|
:host > div {
|
@@ -10960,19 +11020,9 @@ class RawUploadFile extends BaseInputClass$3 {
|
|
10960
11020
|
height: 100%;
|
10961
11021
|
opacity: 0;
|
10962
11022
|
}
|
10963
|
-
|
10964
|
-
|
10965
|
-
|
10966
|
-
<div class="title">
|
10967
|
-
<span class="title-text"></span>
|
10968
|
-
</div>
|
10969
|
-
<div class="description"></div>
|
10970
|
-
<div class="button-wrapper">
|
10971
|
-
<input type="file" tabindex="-1" aria-labelledby="button"/>
|
10972
|
-
<descope-button id="button"></descope-button>
|
10973
|
-
</div>
|
10974
|
-
</div>
|
10975
|
-
`;
|
11023
|
+
`,
|
11024
|
+
this
|
11025
|
+
);
|
10976
11026
|
|
10977
11027
|
this.wrapperEle = this.shadowRoot.querySelector('.wrapper');
|
10978
11028
|
this.inputElement = this.shadowRoot.querySelector('input');
|
@@ -11235,7 +11285,13 @@ class RawSelectItem extends createBaseClass$1({
|
|
11235
11285
|
super();
|
11236
11286
|
|
11237
11287
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
11238
|
-
|
11288
|
+
<descope-button variant="${this.variant}" size="${this.size}" mode="primary">
|
11289
|
+
<slot></slot>
|
11290
|
+
</descope-button>
|
11291
|
+
`;
|
11292
|
+
|
11293
|
+
injectStyle(
|
11294
|
+
`
|
11239
11295
|
descope-button {
|
11240
11296
|
max-width: 100%;
|
11241
11297
|
}
|
@@ -11249,11 +11305,9 @@ class RawSelectItem extends createBaseClass$1({
|
|
11249
11305
|
display: inline-block;
|
11250
11306
|
max-width: 100%
|
11251
11307
|
}
|
11252
|
-
|
11253
|
-
|
11254
|
-
|
11255
|
-
</descope-button>
|
11256
|
-
`;
|
11308
|
+
`,
|
11309
|
+
this
|
11310
|
+
);
|
11257
11311
|
|
11258
11312
|
forwardAttrs$1(this, this.baseElement, { includeAttrs: ['size', 'variant'] });
|
11259
11313
|
forwardAttrs$1(this.baseElement, this, { includeAttrs: ['focused', 'active'] });
|
@@ -11363,14 +11417,6 @@ const createBaseButtonSelectionGroupInternalClass = (componentName) => {
|
|
11363
11417
|
super();
|
11364
11418
|
|
11365
11419
|
this.innerHTML = `
|
11366
|
-
<style>
|
11367
|
-
slot {
|
11368
|
-
box-sizing: border-box;
|
11369
|
-
width: 100%;
|
11370
|
-
display: flex;
|
11371
|
-
flex-wrap: wrap;
|
11372
|
-
}
|
11373
|
-
</style>
|
11374
11420
|
<slot part="wrapper"></slot>
|
11375
11421
|
`;
|
11376
11422
|
}
|
@@ -11657,6 +11703,13 @@ const buttonSelectionGroupStyles = `
|
|
11657
11703
|
min-height: initial;
|
11658
11704
|
}
|
11659
11705
|
|
11706
|
+
[part="internal-component"] slot {
|
11707
|
+
box-sizing: border-box;
|
11708
|
+
width: 100%;
|
11709
|
+
display: flex;
|
11710
|
+
flex-wrap: wrap;
|
11711
|
+
}
|
11712
|
+
|
11660
11713
|
vaadin-text-field::part(input-field) {
|
11661
11714
|
background-color: transparent;
|
11662
11715
|
padding: 0;
|
@@ -11990,7 +12043,14 @@ const customMixin$7 = (superclass) =>
|
|
11990
12043
|
|
11991
12044
|
overlay._attachOverlay = () => {
|
11992
12045
|
overlay.bringToFront();
|
11993
|
-
|
12046
|
+
injectStyle(
|
12047
|
+
`
|
12048
|
+
:host {
|
12049
|
+
display: flex!important;
|
12050
|
+
}
|
12051
|
+
`,
|
12052
|
+
this.baseElement
|
12053
|
+
);
|
11994
12054
|
};
|
11995
12055
|
overlay._detachOverlay = () => {
|
11996
12056
|
this.baseElement.style.display = 'none';
|
@@ -12027,7 +12087,7 @@ const ModalClass = compose$1(
|
|
12027
12087
|
},
|
12028
12088
|
forward: {
|
12029
12089
|
include: false,
|
12030
|
-
attributes: ['opened'],
|
12090
|
+
attributes: ['opened', 'style'],
|
12031
12091
|
},
|
12032
12092
|
}),
|
12033
12093
|
draggableMixin$1,
|
@@ -12037,8 +12097,12 @@ const ModalClass = compose$1(
|
|
12037
12097
|
createProxy$1({
|
12038
12098
|
slots: [''],
|
12039
12099
|
wrappedEleName: 'vaadin-dialog',
|
12040
|
-
style: () =>
|
12041
|
-
|
12100
|
+
style: () => `
|
12101
|
+
vaaadin-dialog {
|
12102
|
+
display: flex!important;
|
12103
|
+
}
|
12104
|
+
`,
|
12105
|
+
excludeAttrsSync: ['tabindex', 'opened', 'style'],
|
12042
12106
|
componentName: componentName$v,
|
12043
12107
|
})
|
12044
12108
|
);
|
@@ -12489,7 +12553,7 @@ const GridClass = compose$1(
|
|
12489
12553
|
}
|
12490
12554
|
/*!css*/
|
12491
12555
|
`,
|
12492
|
-
excludeAttrsSync: ['columns', 'tabindex'],
|
12556
|
+
excludeAttrsSync: ['columns', 'tabindex', 'style'],
|
12493
12557
|
componentName: componentName$u,
|
12494
12558
|
})
|
12495
12559
|
);
|
@@ -13457,7 +13521,13 @@ class RawBadge extends createBaseClass$1({ componentName: componentName$r, baseS
|
|
13457
13521
|
super();
|
13458
13522
|
|
13459
13523
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
13460
|
-
<
|
13524
|
+
<div>
|
13525
|
+
<slot></slot>
|
13526
|
+
</div>
|
13527
|
+
`;
|
13528
|
+
|
13529
|
+
injectStyle(
|
13530
|
+
`
|
13461
13531
|
:host {
|
13462
13532
|
display: inline-flex;
|
13463
13533
|
}
|
@@ -13467,11 +13537,9 @@ class RawBadge extends createBaseClass$1({ componentName: componentName$r, baseS
|
|
13467
13537
|
overflow: hidden;
|
13468
13538
|
white-space: nowrap;
|
13469
13539
|
}
|
13470
|
-
|
13471
|
-
|
13472
|
-
|
13473
|
-
</div>
|
13474
|
-
`;
|
13540
|
+
`,
|
13541
|
+
this
|
13542
|
+
);
|
13475
13543
|
}
|
13476
13544
|
}
|
13477
13545
|
|
@@ -13583,8 +13651,16 @@ class RawAvatar extends createBaseClass({
|
|
13583
13651
|
super();
|
13584
13652
|
|
13585
13653
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
13586
|
-
|
13587
|
-
|
13654
|
+
<div class="wrapper">
|
13655
|
+
<vaadin-avatar></vaadin-avatar>
|
13656
|
+
<div class="editableBadge">
|
13657
|
+
<vaadin-icon icon="vaadin:pencil"></vaadin-icon>
|
13658
|
+
</div>
|
13659
|
+
</div>
|
13660
|
+
`;
|
13661
|
+
|
13662
|
+
injectStyle(`
|
13663
|
+
:host {
|
13588
13664
|
display: inline-flex;
|
13589
13665
|
}
|
13590
13666
|
|
@@ -13621,16 +13697,7 @@ class RawAvatar extends createBaseClass({
|
|
13621
13697
|
width: 100%;
|
13622
13698
|
height: 100%;
|
13623
13699
|
}
|
13624
|
-
|
13625
|
-
|
13626
|
-
|
13627
|
-
<div class="wrapper">
|
13628
|
-
<vaadin-avatar></vaadin-avatar>
|
13629
|
-
<div class="editableBadge">
|
13630
|
-
<vaadin-icon icon="vaadin:pencil"></vaadin-icon>
|
13631
|
-
</div>
|
13632
|
-
</div>
|
13633
|
-
`;
|
13700
|
+
`, this);
|
13634
13701
|
|
13635
13702
|
this.avatarComponent = this.shadowRoot.querySelector('vaadin-avatar');
|
13636
13703
|
|
@@ -13952,8 +14019,27 @@ class RawUserAttribute extends createBaseClass$1({
|
|
13952
14019
|
super();
|
13953
14020
|
|
13954
14021
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
13955
|
-
|
13956
|
-
|
14022
|
+
<div class="root">
|
14023
|
+
<div class="text-wrapper">
|
14024
|
+
<descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>
|
14025
|
+
<descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>
|
14026
|
+
</div>
|
14027
|
+
|
14028
|
+
<div class="btn-wrapper">
|
14029
|
+
<descope-badge mode="default" bordered="true" size="xs"></descope-badge>
|
14030
|
+
<descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
|
14031
|
+
<vaadin-icon src=${editIcon}></vaadin-icon>
|
14032
|
+
</descope-button>
|
14033
|
+
<descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
|
14034
|
+
<vaadin-icon src=${deleteIcon}></vaadin-icon>
|
14035
|
+
</descope-button>
|
14036
|
+
</div
|
14037
|
+
</div>
|
14038
|
+
`;
|
14039
|
+
|
14040
|
+
injectStyle(
|
14041
|
+
`
|
14042
|
+
:host {
|
13957
14043
|
display: inline-flex;
|
13958
14044
|
}
|
13959
14045
|
|
@@ -14016,26 +14102,9 @@ class RawUserAttribute extends createBaseClass$1({
|
|
14016
14102
|
:host([readonly="true"]) descope-button {
|
14017
14103
|
visibility: hidden;
|
14018
14104
|
}
|
14019
|
-
|
14020
|
-
|
14021
|
-
|
14022
|
-
<div class="root">
|
14023
|
-
<div class="text-wrapper">
|
14024
|
-
<descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>
|
14025
|
-
<descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>
|
14026
|
-
</div>
|
14027
|
-
|
14028
|
-
<div class="btn-wrapper">
|
14029
|
-
<descope-badge mode="default" bordered="true" size="xs"></descope-badge>
|
14030
|
-
<descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
|
14031
|
-
<vaadin-icon src=${editIcon}></vaadin-icon>
|
14032
|
-
</descope-button>
|
14033
|
-
<descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
|
14034
|
-
<vaadin-icon src=${deleteIcon}></vaadin-icon>
|
14035
|
-
</descope-button>
|
14036
|
-
</div
|
14037
|
-
</div>
|
14038
|
-
`;
|
14105
|
+
`,
|
14106
|
+
this
|
14107
|
+
);
|
14039
14108
|
|
14040
14109
|
this.deleteButton = this.shadowRoot.querySelector('descope-button[data-id="delete-btn"]');
|
14041
14110
|
this.editButton = this.shadowRoot.querySelector('descope-button[data-id="edit-btn"]');
|
@@ -14219,8 +14288,27 @@ class RawUserAuthMethod extends createBaseClass$1({
|
|
14219
14288
|
super();
|
14220
14289
|
|
14221
14290
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
14222
|
-
|
14223
|
-
|
14291
|
+
<div class="root">
|
14292
|
+
<div class="text-wrapper">
|
14293
|
+
<slot name="method-icon"></slot>
|
14294
|
+
<descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>
|
14295
|
+
</div>
|
14296
|
+
|
14297
|
+
<div class="btn-wrapper">
|
14298
|
+
<descope-button size="sm" variant="link" mode="primary">
|
14299
|
+
<slot name="button-icon"></slot>
|
14300
|
+
</descope-button>
|
14301
|
+
<div class="fulfilled-indicator">
|
14302
|
+
<vaadin-icon src=${greenVIcon}></vaadin-icon>
|
14303
|
+
</div>
|
14304
|
+
<descope-button class="hidden-btn" size="sm" variant="link" mode="primary"></descope-button>
|
14305
|
+
</div>
|
14306
|
+
</div>
|
14307
|
+
`;
|
14308
|
+
|
14309
|
+
injectStyle(
|
14310
|
+
`
|
14311
|
+
:host {
|
14224
14312
|
display: inline-flex;
|
14225
14313
|
}
|
14226
14314
|
|
@@ -14280,26 +14368,9 @@ class RawUserAuthMethod extends createBaseClass$1({
|
|
14280
14368
|
display: inline-flex;
|
14281
14369
|
align-items: center;
|
14282
14370
|
}
|
14283
|
-
|
14284
|
-
|
14285
|
-
|
14286
|
-
<div class="root">
|
14287
|
-
<div class="text-wrapper">
|
14288
|
-
<slot name="method-icon"></slot>
|
14289
|
-
<descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>
|
14290
|
-
</div>
|
14291
|
-
|
14292
|
-
<div class="btn-wrapper">
|
14293
|
-
<descope-button size="sm" variant="link" mode="primary">
|
14294
|
-
<slot name="button-icon"></slot>
|
14295
|
-
</descope-button>
|
14296
|
-
<div class="fulfilled-indicator">
|
14297
|
-
<vaadin-icon src=${greenVIcon}></vaadin-icon>
|
14298
|
-
</div>
|
14299
|
-
<descope-button class="hidden-btn" size="sm" variant="link" mode="primary"></descope-button>
|
14300
|
-
</div>
|
14301
|
-
</div>
|
14302
|
-
`;
|
14371
|
+
`,
|
14372
|
+
this
|
14373
|
+
);
|
14303
14374
|
|
14304
14375
|
this.button = this.shadowRoot.querySelector('descope-button');
|
14305
14376
|
this.fulfilledIndicator = this.shadowRoot.querySelector('.fulfilled-indicator');
|
@@ -14615,7 +14686,11 @@ let CodeSnippet$1 = class CodeSnippet extends createBaseClass$1({ componentName:
|
|
14615
14686
|
super();
|
14616
14687
|
|
14617
14688
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
14618
|
-
<
|
14689
|
+
<code class="hljs"></code>
|
14690
|
+
`;
|
14691
|
+
|
14692
|
+
injectStyle(
|
14693
|
+
`
|
14619
14694
|
:host {
|
14620
14695
|
display: inline-block;
|
14621
14696
|
width: 100%;
|
@@ -14630,9 +14705,9 @@ let CodeSnippet$1 = class CodeSnippet extends createBaseClass$1({ componentName:
|
|
14630
14705
|
pre {
|
14631
14706
|
margin: 0;
|
14632
14707
|
}
|
14633
|
-
|
14634
|
-
|
14635
|
-
|
14708
|
+
`,
|
14709
|
+
this
|
14710
|
+
);
|
14636
14711
|
}
|
14637
14712
|
|
14638
14713
|
init() {
|
@@ -14841,7 +14916,6 @@ const globalRefs$a = getThemeRefs(globals$1);
|
|
14841
14916
|
const vars$g = CodeSnippetClass.cssVarList;
|
14842
14917
|
|
14843
14918
|
const light = {
|
14844
|
-
color1: '#fa0',
|
14845
14919
|
color2: '#d73a49',
|
14846
14920
|
color3: '#6f42c1',
|
14847
14921
|
color4: '#005cc5',
|
@@ -14851,13 +14925,10 @@ const light = {
|
|
14851
14925
|
color8: '#24292e',
|
14852
14926
|
color9: '#735c0f',
|
14853
14927
|
color10: '#f0fff4',
|
14854
|
-
color11: '#b31d28',
|
14855
|
-
color12: '#ffeef0',
|
14856
14928
|
color13: '#032f62',
|
14857
14929
|
};
|
14858
14930
|
|
14859
14931
|
const dark = {
|
14860
|
-
color1: '#c9d1d9',
|
14861
14932
|
color2: '#ff7b72',
|
14862
14933
|
color3: '#d2a8ff',
|
14863
14934
|
color4: '#79c0ff',
|
@@ -14867,8 +14938,6 @@ const dark = {
|
|
14867
14938
|
color8: '#c9d1d9',
|
14868
14939
|
color9: '#735c0f',
|
14869
14940
|
color10: '#f0fff4',
|
14870
|
-
color11: '#67060c',
|
14871
|
-
color12: '#ffeef0',
|
14872
14941
|
color13: '#a5d6ff',
|
14873
14942
|
};
|
14874
14943
|
|
@@ -15472,8 +15541,7 @@ const getMaxDaysInMonth = (year, month) => {
|
|
15472
15541
|
};
|
15473
15542
|
|
15474
15543
|
const comboBoxItemTpl = ({ label, dataId, dataName }) => `
|
15475
|
-
<div
|
15476
|
-
style="display:flex; flex-direction: column;"
|
15544
|
+
<div class="combo-box-item"
|
15477
15545
|
data-id="${dataId}"
|
15478
15546
|
data-name="${dataName}"
|
15479
15547
|
>
|
@@ -15661,13 +15729,30 @@ class RawCalendar extends BaseInputClass$2 {
|
|
15661
15729
|
super();
|
15662
15730
|
|
15663
15731
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
15664
|
-
<
|
15732
|
+
<div>
|
15733
|
+
<nav class="nav top-nav">
|
15734
|
+
<div class="nav-prev">
|
15735
|
+
</div>
|
15736
|
+
<div class="selectors"></div>
|
15737
|
+
<div class="nav-next">
|
15738
|
+
</div>
|
15739
|
+
</nav>
|
15740
|
+
<div class="calendar"></div>
|
15741
|
+
<nav class="nav bottom-nav">
|
15742
|
+
<descope-button class="cancel-button" variant="link" mode="primary">Cancel</descope-button>
|
15743
|
+
<descope-button class="submit-button" variant="link" mode="primary" disabled="true">Done</descope-button>
|
15744
|
+
</nav>
|
15745
|
+
</div>
|
15746
|
+
`;
|
15747
|
+
|
15748
|
+
injectStyle(
|
15749
|
+
`
|
15665
15750
|
:host {
|
15666
15751
|
display: inline-block;
|
15667
15752
|
box-sizing: border-box;
|
15668
15753
|
max-width: 100%;
|
15669
15754
|
user-select: none;
|
15670
|
-
|
15755
|
+
-webkit-user-select: none;
|
15671
15756
|
}
|
15672
15757
|
|
15673
15758
|
:host ::slotted {
|
@@ -15710,23 +15795,15 @@ class RawCalendar extends BaseInputClass$2 {
|
|
15710
15795
|
${ButtonClass.cssVarList.outlineWidth}: 0;
|
15711
15796
|
}
|
15712
15797
|
|
15798
|
+
.combo-box-item {
|
15799
|
+
display:flex;
|
15800
|
+
flex-direction: column;
|
15801
|
+
}
|
15802
|
+
|
15713
15803
|
${inputFloatingLabelStyle()}
|
15714
|
-
|
15715
|
-
|
15716
|
-
|
15717
|
-
<div class="nav-prev">
|
15718
|
-
</div>
|
15719
|
-
<div class="selectors"></div>
|
15720
|
-
<div class="nav-next">
|
15721
|
-
</div>
|
15722
|
-
</nav>
|
15723
|
-
<div class="calendar"></div>
|
15724
|
-
<nav class="nav bottom-nav">
|
15725
|
-
<descope-button class="cancel-button" variant="link" mode="primary">Cancel</descope-button>
|
15726
|
-
<descope-button class="submit-button" variant="link" mode="primary" disabled="true">Done</descope-button>
|
15727
|
-
</nav>
|
15728
|
-
</div>
|
15729
|
-
`;
|
15804
|
+
`,
|
15805
|
+
this
|
15806
|
+
);
|
15730
15807
|
}
|
15731
15808
|
|
15732
15809
|
set value(val) {
|
@@ -16509,7 +16586,18 @@ class RawDateFieldClass extends BaseInputClass$1 {
|
|
16509
16586
|
super();
|
16510
16587
|
|
16511
16588
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
16512
|
-
<
|
16589
|
+
<div>
|
16590
|
+
<descope-text-field>
|
16591
|
+
<span slot="suffix" class="toggle-calendar">
|
16592
|
+
${calendarIcon}
|
16593
|
+
</span>
|
16594
|
+
</descope-text-field>
|
16595
|
+
<vaadin-popover></vaadin-popover>
|
16596
|
+
</div>
|
16597
|
+
`;
|
16598
|
+
|
16599
|
+
injectStyle(
|
16600
|
+
`
|
16513
16601
|
:host {
|
16514
16602
|
display: inline-block;
|
16515
16603
|
box-sizing: border-box;
|
@@ -16527,22 +16615,15 @@ class RawDateFieldClass extends BaseInputClass$1 {
|
|
16527
16615
|
align-self: center;
|
16528
16616
|
z-index: 1;
|
16529
16617
|
height: 100%;
|
16530
|
-
align-items: center;
|
16618
|
+
align-items: center;
|
16531
16619
|
}
|
16532
16620
|
|
16533
16621
|
:host([readonly="true"]) .toggle-calendar {
|
16534
16622
|
pointer-events: none;
|
16535
16623
|
}
|
16536
|
-
|
16537
|
-
|
16538
|
-
|
16539
|
-
<span slot="suffix" class="toggle-calendar">
|
16540
|
-
${calendarIcon}
|
16541
|
-
</span>
|
16542
|
-
</descope-text-field>
|
16543
|
-
<vaadin-popover></vaadin-popover>
|
16544
|
-
</div>
|
16545
|
-
`;
|
16624
|
+
`,
|
16625
|
+
this
|
16626
|
+
);
|
16546
16627
|
|
16547
16628
|
this.inputElement = this.shadowRoot.querySelector('descope-text-field');
|
16548
16629
|
this.popoverToggleButton = this.inputElement.querySelector('.toggle-calendar');
|
@@ -16746,14 +16827,14 @@ class RawDateFieldClass extends BaseInputClass$1 {
|
|
16746
16827
|
newOffset = Math.min(Math.abs(offset), availableLeft) * -1;
|
16747
16828
|
}
|
16748
16829
|
|
16749
|
-
|
16750
|
-
|
16830
|
+
injectStyle(
|
16831
|
+
`
|
16751
16832
|
vaadin-popover-overlay::part(overlay) {
|
16752
16833
|
transform: translateX(${newOffset}px);
|
16753
16834
|
}
|
16754
|
-
|
16755
|
-
|
16756
|
-
|
16835
|
+
`,
|
16836
|
+
popover
|
16837
|
+
);
|
16757
16838
|
}
|
16758
16839
|
|
16759
16840
|
#getPopoverContent() {
|
@@ -17207,22 +17288,23 @@ const customMixin$3 = (superclass) =>
|
|
17207
17288
|
super();
|
17208
17289
|
|
17209
17290
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
17210
|
-
<style>
|
17211
|
-
/*css*/
|
17212
|
-
slot {
|
17213
|
-
width: 100%;
|
17214
|
-
display: flex;
|
17215
|
-
overflow: hidden;
|
17216
|
-
box-sizing: border-box;
|
17217
|
-
}
|
17218
|
-
:host {
|
17219
|
-
display: block;
|
17220
|
-
}
|
17221
|
-
|
17222
|
-
/*!css*/
|
17223
|
-
</style>
|
17224
17291
|
<slot></slot>
|
17225
17292
|
`;
|
17293
|
+
|
17294
|
+
injectStyle(
|
17295
|
+
`
|
17296
|
+
slot {
|
17297
|
+
width: 100%;
|
17298
|
+
display: flex;
|
17299
|
+
overflow: hidden;
|
17300
|
+
box-sizing: border-box;
|
17301
|
+
}
|
17302
|
+
:host {
|
17303
|
+
display: block;
|
17304
|
+
}
|
17305
|
+
`,
|
17306
|
+
this
|
17307
|
+
);
|
17226
17308
|
}
|
17227
17309
|
};
|
17228
17310
|
|
@@ -17261,9 +17343,17 @@ class RawList extends createBaseClass$1({ componentName: componentName$d, baseSe
|
|
17261
17343
|
super();
|
17262
17344
|
|
17263
17345
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
17264
|
-
|
17265
|
-
|
17266
|
-
|
17346
|
+
<div class="wrapper">
|
17347
|
+
<slot></slot>
|
17348
|
+
<slot name="empty-state">
|
17349
|
+
No item...
|
17350
|
+
</slot>
|
17351
|
+
</div>
|
17352
|
+
`;
|
17353
|
+
|
17354
|
+
injectStyle(
|
17355
|
+
`
|
17356
|
+
.wrapper {
|
17267
17357
|
overflow: auto;
|
17268
17358
|
display: grid;
|
17269
17359
|
max-height: 100%;
|
@@ -17290,16 +17380,9 @@ class RawList extends createBaseClass$1({ componentName: componentName$d, baseSe
|
|
17290
17380
|
::slotted(:not([slot])) {
|
17291
17381
|
width: 100%;
|
17292
17382
|
}
|
17293
|
-
|
17294
|
-
|
17295
|
-
|
17296
|
-
<div class="wrapper">
|
17297
|
-
<slot></slot>
|
17298
|
-
<slot name="empty-state">
|
17299
|
-
No item...
|
17300
|
-
</slot>
|
17301
|
-
</div>
|
17302
|
-
`;
|
17383
|
+
`,
|
17384
|
+
this
|
17385
|
+
);
|
17303
17386
|
}
|
17304
17387
|
|
17305
17388
|
get items() {
|
@@ -17745,7 +17828,11 @@ class RawScopesList extends createBaseClass$1({ componentName: componentName$b,
|
|
17745
17828
|
super();
|
17746
17829
|
|
17747
17830
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
17748
|
-
|
17831
|
+
<div></div>
|
17832
|
+
`;
|
17833
|
+
|
17834
|
+
injectStyle(
|
17835
|
+
`
|
17749
17836
|
:host {
|
17750
17837
|
display: inline-flex;
|
17751
17838
|
}
|
@@ -17754,10 +17841,9 @@ class RawScopesList extends createBaseClass$1({ componentName: componentName$b,
|
|
17754
17841
|
display: flex;
|
17755
17842
|
flex-direction: column;
|
17756
17843
|
}
|
17757
|
-
|
17758
|
-
|
17759
|
-
|
17760
|
-
`;
|
17844
|
+
`,
|
17845
|
+
this
|
17846
|
+
);
|
17761
17847
|
}
|
17762
17848
|
|
17763
17849
|
get isReadOnly() {
|
@@ -17872,8 +17958,22 @@ class RawThirdPartyAppLogoClass extends createBaseClass$1({
|
|
17872
17958
|
constructor() {
|
17873
17959
|
super();
|
17874
17960
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
17875
|
-
<
|
17876
|
-
|
17961
|
+
<div class="wrapper">
|
17962
|
+
<div class="third-party-app-logo-wrapper">
|
17963
|
+
<div class="third-party-app-logo"></div>
|
17964
|
+
</div>
|
17965
|
+
<div class="arrows">
|
17966
|
+
<descope-icon src="${arrowsImg}"></descope-icon>
|
17967
|
+
</div>
|
17968
|
+
<div class="company-logo-wrapper">
|
17969
|
+
<descope-logo></descope-logo>
|
17970
|
+
</div>
|
17971
|
+
</div>
|
17972
|
+
`;
|
17973
|
+
|
17974
|
+
injectStyle(
|
17975
|
+
`
|
17976
|
+
:host {
|
17877
17977
|
display: inline-flex;
|
17878
17978
|
}
|
17879
17979
|
:host([draggable="true"]) > div {
|
@@ -17912,20 +18012,9 @@ class RawThirdPartyAppLogoClass extends createBaseClass$1({
|
|
17912
18012
|
flex-shrink: 0;
|
17913
18013
|
display: flex;
|
17914
18014
|
}
|
17915
|
-
|
17916
|
-
|
17917
|
-
|
17918
|
-
<div class="third-party-app-logo-wrapper">
|
17919
|
-
<div class="third-party-app-logo"></div>
|
17920
|
-
</div>
|
17921
|
-
<div class="arrows">
|
17922
|
-
<descope-icon src="${arrowsImg}"></descope-icon>
|
17923
|
-
</div>
|
17924
|
-
<div class="company-logo-wrapper">
|
17925
|
-
<descope-logo></descope-logo>
|
17926
|
-
</div>
|
17927
|
-
</div>
|
17928
|
-
`;
|
18015
|
+
`,
|
18016
|
+
this
|
18017
|
+
);
|
17929
18018
|
}
|
17930
18019
|
}
|
17931
18020
|
|
@@ -18020,7 +18109,11 @@ class RawSecurityQuestionsSetup extends createBaseClass$1({ componentName: compo
|
|
18020
18109
|
super();
|
18021
18110
|
|
18022
18111
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
18023
|
-
|
18112
|
+
<div></div>
|
18113
|
+
`;
|
18114
|
+
|
18115
|
+
injectStyle(
|
18116
|
+
`
|
18024
18117
|
:host {
|
18025
18118
|
display: inline-flex;
|
18026
18119
|
}
|
@@ -18029,10 +18122,9 @@ class RawSecurityQuestionsSetup extends createBaseClass$1({ componentName: compo
|
|
18029
18122
|
display: flex;
|
18030
18123
|
flex-direction: column;
|
18031
18124
|
}
|
18032
|
-
|
18033
|
-
|
18034
|
-
|
18035
|
-
`;
|
18125
|
+
`,
|
18126
|
+
this
|
18127
|
+
);
|
18036
18128
|
}
|
18037
18129
|
|
18038
18130
|
get count() {
|
@@ -18274,7 +18366,11 @@ class RawSecurityQuestionsVerify extends createBaseClass$1({ componentName: comp
|
|
18274
18366
|
super();
|
18275
18367
|
|
18276
18368
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
18277
|
-
|
18369
|
+
<div></div>
|
18370
|
+
`;
|
18371
|
+
|
18372
|
+
injectStyle(
|
18373
|
+
`
|
18278
18374
|
:host {
|
18279
18375
|
display: inline-flex;
|
18280
18376
|
}
|
@@ -18283,10 +18379,9 @@ class RawSecurityQuestionsVerify extends createBaseClass$1({ componentName: comp
|
|
18283
18379
|
display: flex;
|
18284
18380
|
flex-direction: column;
|
18285
18381
|
}
|
18286
|
-
|
18287
|
-
|
18288
|
-
|
18289
|
-
`;
|
18382
|
+
`,
|
18383
|
+
this
|
18384
|
+
);
|
18290
18385
|
}
|
18291
18386
|
|
18292
18387
|
#renderQuestions() {
|
@@ -18568,8 +18663,16 @@ class RawHybridField extends BaseClass$1 {
|
|
18568
18663
|
super();
|
18569
18664
|
|
18570
18665
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
18571
|
-
|
18572
|
-
|
18666
|
+
<div class="wrapper">
|
18667
|
+
<descope-email-field external-input="${this.isExternalInput}"></descope-email-field>
|
18668
|
+
<descope-phone-field allow-alphanumeric-input="true"></descope-phone-field>
|
18669
|
+
<descope-phone-input-box-field allow-alphanumeric-input="true"></descope-phone-input-box-field>
|
18670
|
+
</div>
|
18671
|
+
`;
|
18672
|
+
|
18673
|
+
injectStyle(
|
18674
|
+
`
|
18675
|
+
:host {
|
18573
18676
|
display: inline-flex;
|
18574
18677
|
box-sizing: border-box;
|
18575
18678
|
padding: 0;
|
@@ -18588,14 +18691,10 @@ class RawHybridField extends BaseClass$1 {
|
|
18588
18691
|
}
|
18589
18692
|
.hidden {
|
18590
18693
|
visibility: hidden;
|
18591
|
-
}
|
18592
|
-
|
18593
|
-
|
18594
|
-
|
18595
|
-
<descope-phone-field allow-alphanumeric-input="true"></descope-phone-field>
|
18596
|
-
<descope-phone-input-box-field allow-alphanumeric-input="true"></descope-phone-input-box-field>
|
18597
|
-
</div>
|
18598
|
-
`;
|
18694
|
+
}
|
18695
|
+
`,
|
18696
|
+
this
|
18697
|
+
);
|
18599
18698
|
}
|
18600
18699
|
|
18601
18700
|
get isExternalInput() {
|
@@ -18881,7 +18980,18 @@ class RawAlert extends createBaseClass$1({ componentName: componentName$6, baseS
|
|
18881
18980
|
super();
|
18882
18981
|
|
18883
18982
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
18884
|
-
<
|
18983
|
+
<div>
|
18984
|
+
<div class="icon"></div>
|
18985
|
+
<div class="content">
|
18986
|
+
<descope-enriched-text>
|
18987
|
+
<slot></slot>
|
18988
|
+
</descope-enriched-text>
|
18989
|
+
</div>
|
18990
|
+
</div>
|
18991
|
+
`;
|
18992
|
+
|
18993
|
+
injectStyle(
|
18994
|
+
`
|
18885
18995
|
:host {
|
18886
18996
|
display: inline-flex;
|
18887
18997
|
}
|
@@ -18901,16 +19011,9 @@ class RawAlert extends createBaseClass$1({ componentName: componentName$6, baseS
|
|
18901
19011
|
white-space: normal;
|
18902
19012
|
overflow-wrap: break-word;
|
18903
19013
|
}
|
18904
|
-
|
18905
|
-
|
18906
|
-
|
18907
|
-
<div class="content">
|
18908
|
-
<descope-enriched-text>
|
18909
|
-
<slot></slot>
|
18910
|
-
</descope-enriched-text>
|
18911
|
-
</div>
|
18912
|
-
</div>
|
18913
|
-
`;
|
19014
|
+
`,
|
19015
|
+
this
|
19016
|
+
);
|
18914
19017
|
}
|
18915
19018
|
|
18916
19019
|
init() {
|
@@ -19215,6 +19318,17 @@ const AutocompleteFieldClass = compose(
|
|
19215
19318
|
line-height: unset;
|
19216
19319
|
width: 100%;
|
19217
19320
|
}
|
19321
|
+
|
19322
|
+
descope-autocomplete-field-internal {
|
19323
|
+
display: inline-block;
|
19324
|
+
box-sizing: border-box;
|
19325
|
+
user-select: none;
|
19326
|
+
max-width: 100%;
|
19327
|
+
}
|
19328
|
+
|
19329
|
+
descope-autocomplete-field-internal ::slotted {
|
19330
|
+
padding: 0;
|
19331
|
+
}
|
19218
19332
|
`,
|
19219
19333
|
excludeAttrsSync: ['tabindex', 'error-message', 'label'],
|
19220
19334
|
componentName: componentName$4,
|
@@ -19504,18 +19618,6 @@ class RawAddressFieldInternal extends BaseInputClass {
|
|
19504
19618
|
super();
|
19505
19619
|
|
19506
19620
|
this.innerHTML = `
|
19507
|
-
<style>
|
19508
|
-
:host {
|
19509
|
-
display: inline-block;
|
19510
|
-
box-sizing: border-box;
|
19511
|
-
user-select: none;
|
19512
|
-
max-width: 100%;
|
19513
|
-
}
|
19514
|
-
|
19515
|
-
:host ::slotted {
|
19516
|
-
padding: 0;
|
19517
|
-
}
|
19518
|
-
</style>
|
19519
19621
|
<div>
|
19520
19622
|
<descope-autocomplete-field></descope-autocomplete-field>
|
19521
19623
|
</div>
|
@@ -19715,6 +19817,17 @@ const AddressFieldClass = compose(
|
|
19715
19817
|
line-height: unset;
|
19716
19818
|
width: 100%;
|
19717
19819
|
}
|
19820
|
+
|
19821
|
+
${componentName$3} {
|
19822
|
+
display: inline-block;
|
19823
|
+
box-sizing: border-box;
|
19824
|
+
user-select: none;
|
19825
|
+
max-width: 100%;
|
19826
|
+
}
|
19827
|
+
|
19828
|
+
${componentName$3} ::slotted {
|
19829
|
+
padding: 0;
|
19830
|
+
}
|
19718
19831
|
`,
|
19719
19832
|
excludeAttrsSync: ['tabindex', 'error-message', 'label'],
|
19720
19833
|
componentName: componentName$2,
|
@@ -19902,7 +20015,15 @@ class RawRecaptcha extends BaseClass {
|
|
19902
20015
|
super();
|
19903
20016
|
|
19904
20017
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
19905
|
-
|
20018
|
+
<div class="badge">
|
20019
|
+
<span id="recaptcha"></span>
|
20020
|
+
<img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>
|
20021
|
+
</div>
|
20022
|
+
<slot></slot>
|
20023
|
+
`;
|
20024
|
+
|
20025
|
+
injectStyle(
|
20026
|
+
`
|
19906
20027
|
:host {
|
19907
20028
|
display: inline-flex;
|
19908
20029
|
}
|
@@ -19928,13 +20049,9 @@ class RawRecaptcha extends BaseClass {
|
|
19928
20049
|
.hidden {
|
19929
20050
|
display: none;
|
19930
20051
|
}
|
19931
|
-
|
19932
|
-
|
19933
|
-
|
19934
|
-
<img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>
|
19935
|
-
</div>
|
19936
|
-
<slot></slot>
|
19937
|
-
`;
|
20052
|
+
`,
|
20053
|
+
this
|
20054
|
+
);
|
19938
20055
|
|
19939
20056
|
this.recaptchaEle = this.baseElement.querySelector('#recaptcha');
|
19940
20057
|
this.mockRecaptchaEle = this.baseElement.querySelector('img');
|