@descope/flow-components 2.0.439 → 2.0.440

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.cjs.js +491 -374
  2. package/package.json +2 -2
package/dist/index.cjs.js CHANGED
@@ -74530,6 +74530,22 @@ function requireIndex_cjs () {
74530
74530
  Object.defineProperties(target, config);
74531
74531
  };
74532
74532
 
74533
+ const injectStyle = (cssString, ref, {prepend = false} = {}) => {
74534
+ const style = new CSSStyleSheet();
74535
+ const _ref = ref?.shadowRoot || ref;
74536
+ if (cssString) {
74537
+ style.replaceSync(cssString);
74538
+ }
74539
+ if (_ref) {
74540
+ const adoptedStyleSheets = [...(_ref.adoptedStyleSheets || [])];
74541
+ adoptedStyleSheets[prepend ? 'unshift' : 'push'](style);
74542
+
74543
+ _ref.adoptedStyleSheets = adoptedStyleSheets;
74544
+ }
74545
+
74546
+ return style;
74547
+ };
74548
+
74533
74549
  class ComponentsThemeManager {
74534
74550
  static mountOnPropName = 'DescopeThemeManager';
74535
74551
 
@@ -75387,13 +75403,11 @@ function requireIndex_cjs () {
75387
75403
  }
75388
75404
 
75389
75405
  #onComponentThemeChange() {
75390
- this.#themeStyleEle.innerHTML = this.#componentTheme[this.#themeSection];
75406
+ this.#themeStyleEle.replaceSync(this.#componentTheme[this.#themeSection]);
75391
75407
  }
75392
75408
 
75393
75409
  #createComponentTheme() {
75394
- this.#themeStyleEle = document.createElement('style');
75395
- this.#themeStyleEle.id = `style-mixin-theme__${componentName}`;
75396
- this.#rootElement.prepend(this.#themeStyleEle);
75410
+ this.#themeStyleEle = injectStyle('', this.#rootElement, { prepend: true });
75397
75411
  this.#disconnectThemeManager = componentsThemeManager.onCurrentThemeChange(
75398
75412
  this.#onComponentThemeChange.bind(this)
75399
75413
  );
@@ -75402,21 +75416,18 @@ function requireIndex_cjs () {
75402
75416
 
75403
75417
  #createOverridesStyle() {
75404
75418
  if (this.#styleAttributes.length) {
75405
- this.#overrideStyleEle = document.createElement('style');
75406
- this.#overrideStyleEle.id = `style-mixin-overrides__${componentName}`;
75407
-
75408
75419
  const classSpecifier = createClassSelectorSpecifier$1(
75409
75420
  componentName,
75410
75421
  CSS_SELECTOR_SPECIFIER_MULTIPLY$1
75411
75422
  );
75412
75423
 
75413
- this.#overrideStyleEle.innerText = `:host(${classSpecifier}) {}`;
75414
- this.#rootElement.append(this.#overrideStyleEle);
75424
+ this.#overrideStyleEle = injectStyle(`:host(${classSpecifier}) {}`, this.#rootElement);
75415
75425
  }
75416
75426
  }
75417
75427
 
75418
75428
  #setAttrOverride(attrName, value) {
75419
- const style = this.#overrideStyleEle?.sheet?.cssRules[0].style;
75429
+ const style = this.#overrideStyleEle?.cssRules[0].style;
75430
+
75420
75431
  if (!style) return;
75421
75432
 
75422
75433
  const varName = getCssVarName$1(
@@ -75432,31 +75443,22 @@ function requireIndex_cjs () {
75432
75443
  }
75433
75444
 
75434
75445
  #updateOverridesStyle(attrs = []) {
75435
- let shouldUpdate = false;
75436
-
75437
75446
  attrs.forEach((attr) => {
75438
75447
  if (this.#styleAttributes.includes(attr)) {
75439
75448
  this.#setAttrOverride(attr, this.getAttribute(attr));
75440
- shouldUpdate = true;
75441
75449
  }
75442
75450
  });
75443
-
75444
- if (shouldUpdate) {
75445
- // we are rewriting the style back to the style tag
75446
- this.#overrideStyleEle.innerHTML = this.#overrideStyleEle?.sheet?.cssRules[0].cssText;
75447
- }
75448
75451
  }
75449
75452
 
75450
75453
  #createMappingStyle() {
75451
75454
  if (Object.keys(mappings).length) {
75452
- const themeStyle = document.createElement('style');
75453
- themeStyle.id = `style-mixin-mappings__${componentName}`;
75454
- themeStyle.innerHTML = createStyle$1(
75455
+ const style = createStyle$1(
75455
75456
  kebabCaseJoin$1(componentName, this.#componentNameSuffix),
75456
75457
  this.#baseSelector,
75457
75458
  mappings
75458
75459
  );
75459
- this.#rootElement.prepend(themeStyle);
75460
+
75461
+ injectStyle(style, this.#rootElement, { prepend: true });
75460
75462
  }
75461
75463
  }
75462
75464
 
@@ -75500,8 +75502,7 @@ function requireIndex_cjs () {
75500
75502
  constructor() {
75501
75503
  super();
75502
75504
 
75503
- this.#styleEle = document.createElement('style');
75504
- this.#styleEle.innerText = `* { cursor: inherit!important }`;
75505
+ injectStyle(`* { cursor: inherit!important }`, this);
75505
75506
  }
75506
75507
 
75507
75508
  #handleDraggableStyle(isDraggable) {
@@ -75750,7 +75751,6 @@ function requireIndex_cjs () {
75750
75751
 
75751
75752
  constructor() {
75752
75753
  super().attachShadow({ mode: 'open', delegatesFocus }).innerHTML = `
75753
- <style id="create-proxy">${(isFunction$1(style) ? style() : style) || ''}</style>
75754
75754
  <${wrappedEleName}>
75755
75755
  ${slots
75756
75756
  .map(
@@ -75761,6 +75761,8 @@ function requireIndex_cjs () {
75761
75761
  .join('')}
75762
75762
  </${wrappedEleName}>
75763
75763
  `;
75764
+
75765
+ injectStyle((isFunction$1(style) ? style() : style) || '', this);
75764
75766
  }
75765
75767
 
75766
75768
  init() {
@@ -76239,8 +76241,6 @@ function requireIndex_cjs () {
76239
76241
  // because of that, we are adding this separator that is also used as a differentiator
76240
76242
  const DISPLAY_NAME_SEPARATOR$1 = '_';
76241
76243
 
76242
- const sanitizeSelector$1 = (selector) => selector.replace(/[^\w\s]/gi, '');
76243
-
76244
76244
  const withWaitForShadowRoot$1 = (getRootElementFn) => async (that) => {
76245
76245
  const ele = await getRootElementFn(that);
76246
76246
 
@@ -76271,7 +76271,7 @@ function requireIndex_cjs () {
76271
76271
  const portalMixin$1 =
76272
76272
  ({ name, selector, mappings = {}, forward: { attributes = [], include = true } = {} }) =>
76273
76273
  (superclass) => {
76274
- const eleDisplayName = name || sanitizeSelector$1(selector);
76274
+ const eleDisplayName = name;
76275
76275
 
76276
76276
  const BaseClass = createStyleMixin$1({
76277
76277
  mappings,
@@ -76757,7 +76757,11 @@ function requireIndex_cjs () {
76757
76757
  super();
76758
76758
 
76759
76759
  this.attachShadow({ mode: 'open' }).innerHTML = `
76760
- <style>
76760
+ <slot></slot>
76761
+ `;
76762
+
76763
+ injectStyle(
76764
+ `
76761
76765
  :host > slot {
76762
76766
  box-sizing: border-box;
76763
76767
  width: 100%;
@@ -76768,9 +76772,9 @@ function requireIndex_cjs () {
76768
76772
  :host {
76769
76773
  display: inline-block;
76770
76774
  }
76771
- </style>
76772
- <slot></slot>
76773
- `;
76775
+ `,
76776
+ this
76777
+ );
76774
76778
  }
76775
76779
 
76776
76780
  init() {
@@ -77547,7 +77551,7 @@ function requireIndex_cjs () {
77547
77551
  align-self: center;
77548
77552
  }
77549
77553
  `,
77550
- excludeAttrsSync: ['tabindex'],
77554
+ excludeAttrsSync: ['tabindex', 'style'],
77551
77555
  componentName: componentName$14,
77552
77556
  })
77553
77557
  );
@@ -78952,7 +78956,11 @@ descope-boolean-field-internal {
78952
78956
  super();
78953
78957
 
78954
78958
  this.attachShadow({ mode: 'open' }).innerHTML = `
78955
- <style>
78959
+ <slot></slot>
78960
+ `;
78961
+
78962
+ injectStyle(
78963
+ `
78956
78964
  :host > slot {
78957
78965
  box-sizing: border-box;
78958
78966
  width: 100%;
@@ -78963,9 +78971,9 @@ descope-boolean-field-internal {
78963
78971
  :host {
78964
78972
  display: inline-block;
78965
78973
  }
78966
- </style>
78967
- <slot></slot>
78968
- `;
78974
+ `,
78975
+ this
78976
+ );
78969
78977
  }
78970
78978
  }
78971
78979
 
@@ -79145,13 +79153,17 @@ descope-boolean-field-internal {
79145
79153
  constructor() {
79146
79154
  super();
79147
79155
  this.attachShadow({ mode: 'open' }).innerHTML = `
79148
- <style>
79156
+ <div></div>
79157
+ `;
79158
+
79159
+ injectStyle(
79160
+ `
79149
79161
  :host {
79150
79162
  display: inline-flex;
79151
79163
  }
79152
79164
  :host([draggable="true"]) > div {
79153
79165
  pointer-events: none
79154
- }
79166
+ }
79155
79167
  :host > div {
79156
79168
  display: inline-block;
79157
79169
  max-width: 100%;
@@ -79160,9 +79172,9 @@ descope-boolean-field-internal {
79160
79172
  margin: auto;
79161
79173
  ${getContent()}
79162
79174
  }
79163
- </style>
79164
- <div></div>
79165
- `;
79175
+ `,
79176
+ this
79177
+ );
79166
79178
  }
79167
79179
  }
79168
79180
 
@@ -79586,13 +79598,11 @@ descope-boolean-field-internal {
79586
79598
  }
79587
79599
 
79588
79600
  #onComponentThemeChange() {
79589
- this.#themeStyleEle.innerHTML = this.#componentTheme[this.#themeSection];
79601
+ this.#themeStyleEle.replaceSync(this.#componentTheme[this.#themeSection]);
79590
79602
  }
79591
79603
 
79592
79604
  #createComponentTheme() {
79593
- this.#themeStyleEle = document.createElement('style');
79594
- this.#themeStyleEle.id = `style-mixin-theme__${componentName}`;
79595
- this.#rootElement.prepend(this.#themeStyleEle);
79605
+ this.#themeStyleEle = injectStyle('', this.#rootElement, { prepend: true });
79596
79606
  this.#disconnectThemeManager = componentsThemeManager.onCurrentThemeChange(
79597
79607
  this.#onComponentThemeChange.bind(this)
79598
79608
  );
@@ -79601,21 +79611,18 @@ descope-boolean-field-internal {
79601
79611
 
79602
79612
  #createOverridesStyle() {
79603
79613
  if (this.#styleAttributes.length) {
79604
- this.#overrideStyleEle = document.createElement('style');
79605
- this.#overrideStyleEle.id = `style-mixin-overrides__${componentName}`;
79606
-
79607
79614
  const classSpecifier = createClassSelectorSpecifier(
79608
79615
  componentName,
79609
79616
  CSS_SELECTOR_SPECIFIER_MULTIPLY
79610
79617
  );
79611
79618
 
79612
- this.#overrideStyleEle.innerText = `:host(${classSpecifier}) {}`;
79613
- this.#rootElement.append(this.#overrideStyleEle);
79619
+ this.#overrideStyleEle = injectStyle(`:host(${classSpecifier}) {}`, this.#rootElement);
79614
79620
  }
79615
79621
  }
79616
79622
 
79617
79623
  #setAttrOverride(attrName, value) {
79618
- const style = this.#overrideStyleEle?.sheet?.cssRules[0].style;
79624
+ const style = this.#overrideStyleEle?.cssRules[0].style;
79625
+
79619
79626
  if (!style) return;
79620
79627
 
79621
79628
  const varName = getCssVarName(
@@ -79631,31 +79638,22 @@ descope-boolean-field-internal {
79631
79638
  }
79632
79639
 
79633
79640
  #updateOverridesStyle(attrs = []) {
79634
- let shouldUpdate = false;
79635
-
79636
79641
  attrs.forEach((attr) => {
79637
79642
  if (this.#styleAttributes.includes(attr)) {
79638
79643
  this.#setAttrOverride(attr, this.getAttribute(attr));
79639
- shouldUpdate = true;
79640
79644
  }
79641
79645
  });
79642
-
79643
- if (shouldUpdate) {
79644
- // we are rewriting the style back to the style tag
79645
- this.#overrideStyleEle.innerHTML = this.#overrideStyleEle?.sheet?.cssRules[0].cssText;
79646
- }
79647
79646
  }
79648
79647
 
79649
79648
  #createMappingStyle() {
79650
79649
  if (Object.keys(mappings).length) {
79651
- const themeStyle = document.createElement('style');
79652
- themeStyle.id = `style-mixin-mappings__${componentName}`;
79653
- themeStyle.innerHTML = createStyle(
79650
+ const style = createStyle(
79654
79651
  kebabCaseJoin(componentName, this.#componentNameSuffix),
79655
79652
  this.#baseSelector,
79656
79653
  mappings
79657
79654
  );
79658
- this.#rootElement.prepend(themeStyle);
79655
+
79656
+ injectStyle(style, this.#rootElement, { prepend: true });
79659
79657
  }
79660
79658
  }
79661
79659
 
@@ -80324,7 +80322,6 @@ descope-boolean-field-internal {
80324
80322
 
80325
80323
  constructor() {
80326
80324
  super().attachShadow({ mode: 'open', delegatesFocus }).innerHTML = `
80327
- <style id="create-proxy">${(isFunction(style) ? style() : style) || ''}</style>
80328
80325
  <${wrappedEleName}>
80329
80326
  ${slots
80330
80327
  .map(
@@ -80335,6 +80332,8 @@ descope-boolean-field-internal {
80335
80332
  .join('')}
80336
80333
  </${wrappedEleName}>
80337
80334
  `;
80335
+
80336
+ injectStyle((isFunction(style) ? style() : style) || '', this);
80338
80337
  }
80339
80338
 
80340
80339
  init() {
@@ -80605,9 +80604,6 @@ descope-boolean-field-internal {
80605
80604
  const DISPLAY_NAME_SEPARATOR = '_';
80606
80605
  const PORTAL_THEME_PREFIX = '@';
80607
80606
 
80608
-
80609
- const sanitizeSelector = (selector) => selector.replace(/[^\w\s]/gi, '');
80610
-
80611
80607
  const withWaitForShadowRoot = (getRootElementFn) => async (that) => {
80612
80608
  const ele = await getRootElementFn(that);
80613
80609
 
@@ -80638,7 +80634,7 @@ descope-boolean-field-internal {
80638
80634
  const portalMixin =
80639
80635
  ({ name, selector, mappings = {}, forward: { attributes = [], include = true } = {} }) =>
80640
80636
  (superclass) => {
80641
- const eleDisplayName = name || sanitizeSelector(selector);
80637
+ const eleDisplayName = name;
80642
80638
 
80643
80639
  const BaseClass = createStyleMixin({
80644
80640
  mappings,
@@ -80661,14 +80657,9 @@ descope-boolean-field-internal {
80661
80657
  // we cannot use "this" before calling "super"
80662
80658
  const getRootElement = async (that) => {
80663
80659
  const baseEle = (that.shadowRoot || that).querySelector(that.baseSelector);
80664
- if (!selector) {
80660
+ {
80665
80661
  return baseEle;
80666
80662
  }
80667
-
80668
- // in case we have a selector, we should first wait for the base element shadow root
80669
- // and then look for the internal element
80670
- const baseEleShadowRoot = await withWaitForShadowRoot(() => baseEle)(that);
80671
- return baseEleShadowRoot.querySelector(selector);
80672
80663
  };
80673
80664
 
80674
80665
  const getPortalElement = withWaitForShadowRoot(getRootElement);
@@ -80784,7 +80775,10 @@ descope-boolean-field-internal {
80784
80775
  super();
80785
80776
 
80786
80777
  this.attachShadow({ mode: 'open' }).innerHTML = `
80787
- <style>
80778
+ <slot part="text-wrapper"></slot>
80779
+ `;
80780
+
80781
+ injectStyle(`
80788
80782
  :host {
80789
80783
  display: inline-block;
80790
80784
  line-height: 1em;
@@ -80793,9 +80787,7 @@ descope-boolean-field-internal {
80793
80787
  width: 100%;
80794
80788
  display: inline-block;
80795
80789
  }
80796
- </style>
80797
- <slot part="text-wrapper"></slot>
80798
- `;
80790
+ `, this);
80799
80791
  }
80800
80792
 
80801
80793
  get hideWhenEmpty() {
@@ -80962,7 +80954,11 @@ descope-boolean-field-internal {
80962
80954
  super();
80963
80955
 
80964
80956
  this.attachShadow({ mode: 'open' }).innerHTML = `
80965
- <style>
80957
+ <div class="content"></div>
80958
+ `;
80959
+
80960
+ injectStyle(
80961
+ `
80966
80962
  :host {
80967
80963
  line-height: 1em;
80968
80964
  word-break: break-word;
@@ -80995,9 +80991,9 @@ descope-boolean-field-internal {
80995
80991
  s {
80996
80992
  color: currentColor;
80997
80993
  }
80998
- </style>
80999
- <div class="content"></div>
81000
- `;
80994
+ `,
80995
+ this
80996
+ );
81001
80997
 
81002
80998
  this.#initProcessor();
81003
80999
 
@@ -81153,15 +81149,6 @@ descope-boolean-field-internal {
81153
81149
  super();
81154
81150
 
81155
81151
  this.attachShadow({ mode: 'open' }).innerHTML = `
81156
- <style>
81157
- :host {
81158
- display: inline-block;
81159
- line-height: 1em;
81160
- }
81161
- :host a {
81162
- display: inline;
81163
- }
81164
- </style>
81165
81152
  <div>
81166
81153
  <descope-text>
81167
81154
  <a>
@@ -81171,6 +81158,19 @@ descope-boolean-field-internal {
81171
81158
  </div>
81172
81159
  `;
81173
81160
 
81161
+ injectStyle(
81162
+ `
81163
+ :host {
81164
+ display: inline-block;
81165
+ line-height: 1em;
81166
+ }
81167
+ :host a {
81168
+ display: inline;
81169
+ }
81170
+ `,
81171
+ this
81172
+ );
81173
+
81174
81174
  forwardAttrs$1(this, this.shadowRoot.querySelector('a'), {
81175
81175
  includeAttrs: ['href', 'target', 'tooltip'],
81176
81176
  mapAttrs: {
@@ -81292,8 +81292,16 @@ descope-boolean-field-internal {
81292
81292
  super();
81293
81293
 
81294
81294
  this.attachShadow({ mode: 'open' }).innerHTML = `
81295
- <style>
81296
- :host {
81295
+ <div>
81296
+ <descope-text>
81297
+ <slot></slot>
81298
+ </descope-text>
81299
+ </div>
81300
+ `;
81301
+
81302
+ injectStyle(
81303
+ `
81304
+ :host {
81297
81305
  display: inline-block;
81298
81306
  }
81299
81307
  :host > div {
@@ -81316,13 +81324,9 @@ descope-boolean-field-internal {
81316
81324
  :host([vertical="true"]) div {
81317
81325
  width: fit-content;
81318
81326
  }
81319
- </style>
81320
- <div>
81321
- <descope-text>
81322
- <slot></slot>
81323
- </descope-text>
81324
- </div>
81325
- `;
81327
+ `,
81328
+ this
81329
+ );
81326
81330
 
81327
81331
  this.textComponent = this.shadowRoot.querySelector('descope-text');
81328
81332
 
@@ -81449,8 +81453,12 @@ descope-boolean-field-internal {
81449
81453
  super();
81450
81454
 
81451
81455
  this.attachShadow({ mode: 'open' }).innerHTML = `
81452
- <style>
81453
- @keyframes spin {
81456
+ <div></div>
81457
+ `;
81458
+
81459
+ injectStyle(
81460
+ `
81461
+ @keyframes spin {
81454
81462
  0% { transform: rotate(0deg); }
81455
81463
  100% { transform: rotate(360deg); }
81456
81464
  }
@@ -81461,9 +81469,9 @@ descope-boolean-field-internal {
81461
81469
  :host > div {
81462
81470
  animation-name: spin;
81463
81471
  }
81464
- </style>
81465
- <div></div>
81466
- `;
81472
+ `,
81473
+ this
81474
+ );
81467
81475
  }
81468
81476
  }
81469
81477
 
@@ -81504,6 +81512,32 @@ descope-boolean-field-internal {
81504
81512
 
81505
81513
  init() {
81506
81514
  super.init?.();
81515
+
81516
+ injectStyle(
81517
+ `
81518
+ .wrapper {
81519
+ display: flex;
81520
+ width: 100%;
81521
+ justify-content: space-between;
81522
+ direction: ltr;
81523
+ position: relative;
81524
+ }
81525
+
81526
+ descope-text-field {
81527
+ direction: ltr;
81528
+ }
81529
+
81530
+ .loader-container {
81531
+ display: none;
81532
+ position: absolute;
81533
+ top: 50%;
81534
+ left: 50%;
81535
+ transform: translate(-50%, -50%);
81536
+ }
81537
+ `,
81538
+ this
81539
+ );
81540
+
81507
81541
  const template = document.createElement('template');
81508
81542
 
81509
81543
  template.innerHTML = `
@@ -81527,7 +81561,7 @@ descope-boolean-field-internal {
81527
81561
  super.attributeChangedCallback?.(attrName, oldValue, newValue);
81528
81562
 
81529
81563
  if (attrName === 'digits') {
81530
- this.style.setProperty('--passcode-digits-count', newValue);
81564
+ this.style['--passcode-digits-count'] = newValue;
81531
81565
  }
81532
81566
  }
81533
81567
  };
@@ -81738,8 +81772,12 @@ descope-boolean-field-internal {
81738
81772
  super();
81739
81773
 
81740
81774
  this.attachShadow({ mode: 'open' }).innerHTML = `
81741
- <style>
81742
- @keyframes tilt {
81775
+ <div></div>
81776
+ `;
81777
+
81778
+ injectStyle(
81779
+ `
81780
+ @keyframes tilt {
81743
81781
  0% { transform: translateX(0); }
81744
81782
  50% { transform: translateX(400%); }
81745
81783
  }
@@ -81756,9 +81794,9 @@ descope-boolean-field-internal {
81756
81794
  :host > div {
81757
81795
  width: 100%;
81758
81796
  }
81759
- </style>
81760
- <div></div>
81761
- `;
81797
+ `,
81798
+ this
81799
+ );
81762
81800
  }
81763
81801
  }
81764
81802
 
@@ -82786,17 +82824,21 @@ descope-boolean-field-internal {
82786
82824
  super();
82787
82825
 
82788
82826
  this.attachShadow({ mode: 'open' }).innerHTML = `
82789
- <style>
82790
- :host > img {
82827
+ <img/>
82828
+ `;
82829
+
82830
+ injectStyle(
82831
+ `
82832
+ :host > img {
82791
82833
  width: 100%;
82792
82834
  height: 100%
82793
82835
  }
82794
82836
  :host {
82795
82837
  display: inline-flex;
82796
82838
  }
82797
- </style>
82798
- <img/>
82799
- `;
82839
+ `,
82840
+ this
82841
+ );
82800
82842
  }
82801
82843
 
82802
82844
  connectedCallback() {
@@ -84307,6 +84349,7 @@ descope-boolean-field-internal {
84307
84349
  flex: 0;
84308
84350
  border: none;
84309
84351
  }
84352
+
84310
84353
  descope-combo-box {
84311
84354
  flex-shrink: 0;
84312
84355
  min-width: 5.75em;
@@ -84453,7 +84496,6 @@ descope-boolean-field-internal {
84453
84496
  } = {
84454
84497
  host: { selector: () => ':host' },
84455
84498
  label: { selector: '::part(label)' },
84456
- placeholder: { selector: '> input:placeholder-shown' },
84457
84499
  inputElement: { selector: 'input' },
84458
84500
  requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
84459
84501
  inputField: { selector: () => 'vaadin-text-field::part(input-field)' },
@@ -84695,7 +84737,10 @@ descope-boolean-field-internal {
84695
84737
  <div class="label"></div>
84696
84738
  <ul></ul>
84697
84739
  </div>
84698
- <style>
84740
+ `;
84741
+
84742
+ injectStyle(
84743
+ `
84699
84744
  :host > div {
84700
84745
  width: 100%;
84701
84746
  display: flex;
@@ -84726,8 +84771,9 @@ descope-boolean-field-internal {
84726
84771
  width: 1em;
84727
84772
  text-align: center;
84728
84773
  }
84729
- </style>
84730
- `;
84774
+ `,
84775
+ this
84776
+ );
84731
84777
 
84732
84778
  this.panel = this.shadowRoot.querySelector(':host > div');
84733
84779
  this.label = this.shadowRoot.querySelector('.label');
@@ -85086,7 +85132,7 @@ descope-boolean-field-internal {
85086
85132
  margin-top: 8px;
85087
85133
  display: flex;
85088
85134
  }
85089
- descope-policy-validation.hidden {
85135
+ .hidden {
85090
85136
  display: none;
85091
85137
  }
85092
85138
  `,
@@ -85172,8 +85218,22 @@ descope-boolean-field-internal {
85172
85218
  super();
85173
85219
 
85174
85220
  this.attachShadow({ mode: 'open' }).innerHTML = `
85175
- <style>
85176
- :host {
85221
+ <div>
85222
+ <slot name="icon"></slot>
85223
+ <div class="title">
85224
+ <span class="title-text"></span>
85225
+ </div>
85226
+ <div class="description"></div>
85227
+ <div class="button-wrapper">
85228
+ <input type="file" tabindex="-1" aria-labelledby="button"/>
85229
+ <descope-button id="button"></descope-button>
85230
+ </div>
85231
+ </div>
85232
+ `;
85233
+
85234
+ injectStyle(
85235
+ `
85236
+ :host {
85177
85237
  display: flex;
85178
85238
  }
85179
85239
  :host > div {
@@ -85194,19 +85254,9 @@ descope-boolean-field-internal {
85194
85254
  height: 100%;
85195
85255
  opacity: 0;
85196
85256
  }
85197
- </style>
85198
- <div>
85199
- <slot name="icon"></slot>
85200
- <div class="title">
85201
- <span class="title-text"></span>
85202
- </div>
85203
- <div class="description"></div>
85204
- <div class="button-wrapper">
85205
- <input type="file" tabindex="-1" aria-labelledby="button"/>
85206
- <descope-button id="button"></descope-button>
85207
- </div>
85208
- </div>
85209
- `;
85257
+ `,
85258
+ this
85259
+ );
85210
85260
 
85211
85261
  this.wrapperEle = this.shadowRoot.querySelector('.wrapper');
85212
85262
  this.inputElement = this.shadowRoot.querySelector('input');
@@ -85469,7 +85519,13 @@ descope-boolean-field-internal {
85469
85519
  super();
85470
85520
 
85471
85521
  this.attachShadow({ mode: 'open' }).innerHTML = `
85472
- <style>
85522
+ <descope-button variant="${this.variant}" size="${this.size}" mode="primary">
85523
+ <slot></slot>
85524
+ </descope-button>
85525
+ `;
85526
+
85527
+ injectStyle(
85528
+ `
85473
85529
  descope-button {
85474
85530
  max-width: 100%;
85475
85531
  }
@@ -85483,11 +85539,9 @@ descope-boolean-field-internal {
85483
85539
  display: inline-block;
85484
85540
  max-width: 100%
85485
85541
  }
85486
- </style>
85487
- <descope-button variant="${this.variant}" size="${this.size}" mode="primary">
85488
- <slot></slot>
85489
- </descope-button>
85490
- `;
85542
+ `,
85543
+ this
85544
+ );
85491
85545
 
85492
85546
  forwardAttrs$1(this, this.baseElement, { includeAttrs: ['size', 'variant'] });
85493
85547
  forwardAttrs$1(this.baseElement, this, { includeAttrs: ['focused', 'active'] });
@@ -85597,14 +85651,6 @@ descope-boolean-field-internal {
85597
85651
  super();
85598
85652
 
85599
85653
  this.innerHTML = `
85600
- <style>
85601
- slot {
85602
- box-sizing: border-box;
85603
- width: 100%;
85604
- display: flex;
85605
- flex-wrap: wrap;
85606
- }
85607
- </style>
85608
85654
  <slot part="wrapper"></slot>
85609
85655
  `;
85610
85656
  }
@@ -85891,6 +85937,13 @@ descope-boolean-field-internal {
85891
85937
  min-height: initial;
85892
85938
  }
85893
85939
 
85940
+ [part="internal-component"] slot {
85941
+ box-sizing: border-box;
85942
+ width: 100%;
85943
+ display: flex;
85944
+ flex-wrap: wrap;
85945
+ }
85946
+
85894
85947
  vaadin-text-field::part(input-field) {
85895
85948
  background-color: transparent;
85896
85949
  padding: 0;
@@ -86224,7 +86277,14 @@ descope-boolean-field-internal {
86224
86277
 
86225
86278
  overlay._attachOverlay = () => {
86226
86279
  overlay.bringToFront();
86227
- this.baseElement.setAttribute('style', 'display:flex!important;');
86280
+ injectStyle(
86281
+ `
86282
+ :host {
86283
+ display: flex!important;
86284
+ }
86285
+ `,
86286
+ this.baseElement
86287
+ );
86228
86288
  };
86229
86289
  overlay._detachOverlay = () => {
86230
86290
  this.baseElement.style.display = 'none';
@@ -86261,7 +86321,7 @@ descope-boolean-field-internal {
86261
86321
  },
86262
86322
  forward: {
86263
86323
  include: false,
86264
- attributes: ['opened'],
86324
+ attributes: ['opened', 'style'],
86265
86325
  },
86266
86326
  }),
86267
86327
  draggableMixin$1,
@@ -86271,8 +86331,12 @@ descope-boolean-field-internal {
86271
86331
  createProxy$1({
86272
86332
  slots: [''],
86273
86333
  wrappedEleName: 'vaadin-dialog',
86274
- style: () => ``,
86275
- excludeAttrsSync: ['tabindex', 'opened'],
86334
+ style: () => `
86335
+ vaaadin-dialog {
86336
+ display: flex!important;
86337
+ }
86338
+ `,
86339
+ excludeAttrsSync: ['tabindex', 'opened', 'style'],
86276
86340
  componentName: componentName$v,
86277
86341
  })
86278
86342
  );
@@ -86723,7 +86787,7 @@ descope-boolean-field-internal {
86723
86787
  }
86724
86788
  /*!css*/
86725
86789
  `,
86726
- excludeAttrsSync: ['columns', 'tabindex'],
86790
+ excludeAttrsSync: ['columns', 'tabindex', 'style'],
86727
86791
  componentName: componentName$u,
86728
86792
  })
86729
86793
  );
@@ -87691,7 +87755,13 @@ descope-boolean-field-internal {
87691
87755
  super();
87692
87756
 
87693
87757
  this.attachShadow({ mode: 'open' }).innerHTML = `
87694
- <style>
87758
+ <div>
87759
+ <slot></slot>
87760
+ </div>
87761
+ `;
87762
+
87763
+ injectStyle(
87764
+ `
87695
87765
  :host {
87696
87766
  display: inline-flex;
87697
87767
  }
@@ -87701,11 +87771,9 @@ descope-boolean-field-internal {
87701
87771
  overflow: hidden;
87702
87772
  white-space: nowrap;
87703
87773
  }
87704
- </style>
87705
- <div>
87706
- <slot></slot>
87707
- </div>
87708
- `;
87774
+ `,
87775
+ this
87776
+ );
87709
87777
  }
87710
87778
  }
87711
87779
 
@@ -87817,8 +87885,16 @@ descope-boolean-field-internal {
87817
87885
  super();
87818
87886
 
87819
87887
  this.attachShadow({ mode: 'open' }).innerHTML = `
87820
- <style>
87821
- :host {
87888
+ <div class="wrapper">
87889
+ <vaadin-avatar></vaadin-avatar>
87890
+ <div class="editableBadge">
87891
+ <vaadin-icon icon="vaadin:pencil"></vaadin-icon>
87892
+ </div>
87893
+ </div>
87894
+ `;
87895
+
87896
+ injectStyle(`
87897
+ :host {
87822
87898
  display: inline-flex;
87823
87899
  }
87824
87900
 
@@ -87855,16 +87931,7 @@ descope-boolean-field-internal {
87855
87931
  width: 100%;
87856
87932
  height: 100%;
87857
87933
  }
87858
- </style>
87859
-
87860
-
87861
- <div class="wrapper">
87862
- <vaadin-avatar></vaadin-avatar>
87863
- <div class="editableBadge">
87864
- <vaadin-icon icon="vaadin:pencil"></vaadin-icon>
87865
- </div>
87866
- </div>
87867
- `;
87934
+ `, this);
87868
87935
 
87869
87936
  this.avatarComponent = this.shadowRoot.querySelector('vaadin-avatar');
87870
87937
 
@@ -88186,8 +88253,27 @@ descope-boolean-field-internal {
88186
88253
  super();
88187
88254
 
88188
88255
  this.attachShadow({ mode: 'open' }).innerHTML = `
88189
- <style>
88190
- :host {
88256
+ <div class="root">
88257
+ <div class="text-wrapper">
88258
+ <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>
88259
+ <descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>
88260
+ </div>
88261
+
88262
+ <div class="btn-wrapper">
88263
+ <descope-badge mode="default" bordered="true" size="xs"></descope-badge>
88264
+ <descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
88265
+ <vaadin-icon src=${editIcon}></vaadin-icon>
88266
+ </descope-button>
88267
+ <descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
88268
+ <vaadin-icon src=${deleteIcon}></vaadin-icon>
88269
+ </descope-button>
88270
+ </div
88271
+ </div>
88272
+ `;
88273
+
88274
+ injectStyle(
88275
+ `
88276
+ :host {
88191
88277
  display: inline-flex;
88192
88278
  }
88193
88279
 
@@ -88250,38 +88336,21 @@ descope-boolean-field-internal {
88250
88336
  :host([readonly="true"]) descope-button {
88251
88337
  visibility: hidden;
88252
88338
  }
88253
- </style>
88339
+ `,
88340
+ this
88341
+ );
88254
88342
 
88343
+ this.deleteButton = this.shadowRoot.querySelector('descope-button[data-id="delete-btn"]');
88344
+ this.editButton = this.shadowRoot.querySelector('descope-button[data-id="edit-btn"]');
88345
+ this.badge = this.shadowRoot.querySelector('descope-badge');
88346
+ this.labelText = this.shadowRoot.querySelector('descope-text[data-id="label-text"]');
88347
+ this.valueText = this.shadowRoot.querySelector('descope-text[data-id="value-text"]');
88348
+ }
88255
88349
 
88256
- <div class="root">
88257
- <div class="text-wrapper">
88258
- <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>
88259
- <descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>
88260
- </div>
88261
-
88262
- <div class="btn-wrapper">
88263
- <descope-badge mode="default" bordered="true" size="xs"></descope-badge>
88264
- <descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
88265
- <vaadin-icon src=${editIcon}></vaadin-icon>
88266
- </descope-button>
88267
- <descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
88268
- <vaadin-icon src=${deleteIcon}></vaadin-icon>
88269
- </descope-button>
88270
- </div
88271
- </div>
88272
- `;
88273
-
88274
- this.deleteButton = this.shadowRoot.querySelector('descope-button[data-id="delete-btn"]');
88275
- this.editButton = this.shadowRoot.querySelector('descope-button[data-id="edit-btn"]');
88276
- this.badge = this.shadowRoot.querySelector('descope-badge');
88277
- this.labelText = this.shadowRoot.querySelector('descope-text[data-id="label-text"]');
88278
- this.valueText = this.shadowRoot.querySelector('descope-text[data-id="value-text"]');
88279
- }
88280
-
88281
- onLabelChange() {
88282
- this.labelText.innerText = this.label;
88283
- this.labelText.setAttribute('title', this.label);
88284
- }
88350
+ onLabelChange() {
88351
+ this.labelText.innerText = this.label;
88352
+ this.labelText.setAttribute('title', this.label);
88353
+ }
88285
88354
 
88286
88355
  onValueOrPlaceholderChange() {
88287
88356
  const text = this.value || this.placeholder;
@@ -88453,8 +88522,27 @@ descope-boolean-field-internal {
88453
88522
  super();
88454
88523
 
88455
88524
  this.attachShadow({ mode: 'open' }).innerHTML = `
88456
- <style>
88457
- :host {
88525
+ <div class="root">
88526
+ <div class="text-wrapper">
88527
+ <slot name="method-icon"></slot>
88528
+ <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>
88529
+ </div>
88530
+
88531
+ <div class="btn-wrapper">
88532
+ <descope-button size="sm" variant="link" mode="primary">
88533
+ <slot name="button-icon"></slot>
88534
+ </descope-button>
88535
+ <div class="fulfilled-indicator">
88536
+ <vaadin-icon src=${greenVIcon}></vaadin-icon>
88537
+ </div>
88538
+ <descope-button class="hidden-btn" size="sm" variant="link" mode="primary"></descope-button>
88539
+ </div>
88540
+ </div>
88541
+ `;
88542
+
88543
+ injectStyle(
88544
+ `
88545
+ :host {
88458
88546
  display: inline-flex;
88459
88547
  }
88460
88548
 
@@ -88514,26 +88602,9 @@ descope-boolean-field-internal {
88514
88602
  display: inline-flex;
88515
88603
  align-items: center;
88516
88604
  }
88517
- </style>
88518
-
88519
-
88520
- <div class="root">
88521
- <div class="text-wrapper">
88522
- <slot name="method-icon"></slot>
88523
- <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>
88524
- </div>
88525
-
88526
- <div class="btn-wrapper">
88527
- <descope-button size="sm" variant="link" mode="primary">
88528
- <slot name="button-icon"></slot>
88529
- </descope-button>
88530
- <div class="fulfilled-indicator">
88531
- <vaadin-icon src=${greenVIcon}></vaadin-icon>
88532
- </div>
88533
- <descope-button class="hidden-btn" size="sm" variant="link" mode="primary"></descope-button>
88534
- </div>
88535
- </div>
88536
- `;
88605
+ `,
88606
+ this
88607
+ );
88537
88608
 
88538
88609
  this.button = this.shadowRoot.querySelector('descope-button');
88539
88610
  this.fulfilledIndicator = this.shadowRoot.querySelector('.fulfilled-indicator');
@@ -88849,7 +88920,11 @@ descope-boolean-field-internal {
88849
88920
  super();
88850
88921
 
88851
88922
  this.attachShadow({ mode: 'open' }).innerHTML = `
88852
- <style>
88923
+ <code class="hljs"></code>
88924
+ `;
88925
+
88926
+ injectStyle(
88927
+ `
88853
88928
  :host {
88854
88929
  display: inline-block;
88855
88930
  width: 100%;
@@ -88864,9 +88939,9 @@ descope-boolean-field-internal {
88864
88939
  pre {
88865
88940
  margin: 0;
88866
88941
  }
88867
- </style>
88868
- <code class="hljs"></code>
88869
- `;
88942
+ `,
88943
+ this
88944
+ );
88870
88945
  }
88871
88946
 
88872
88947
  init() {
@@ -89075,7 +89150,6 @@ descope-boolean-field-internal {
89075
89150
  const vars$g = CodeSnippetClass.cssVarList;
89076
89151
 
89077
89152
  const light = {
89078
- color1: '#fa0',
89079
89153
  color2: '#d73a49',
89080
89154
  color3: '#6f42c1',
89081
89155
  color4: '#005cc5',
@@ -89085,13 +89159,10 @@ descope-boolean-field-internal {
89085
89159
  color8: '#24292e',
89086
89160
  color9: '#735c0f',
89087
89161
  color10: '#f0fff4',
89088
- color11: '#b31d28',
89089
- color12: '#ffeef0',
89090
89162
  color13: '#032f62',
89091
89163
  };
89092
89164
 
89093
89165
  const dark = {
89094
- color1: '#c9d1d9',
89095
89166
  color2: '#ff7b72',
89096
89167
  color3: '#d2a8ff',
89097
89168
  color4: '#79c0ff',
@@ -89101,8 +89172,6 @@ descope-boolean-field-internal {
89101
89172
  color8: '#c9d1d9',
89102
89173
  color9: '#735c0f',
89103
89174
  color10: '#f0fff4',
89104
- color11: '#67060c',
89105
- color12: '#ffeef0',
89106
89175
  color13: '#a5d6ff',
89107
89176
  };
89108
89177
 
@@ -89706,8 +89775,7 @@ descope-boolean-field-internal {
89706
89775
  };
89707
89776
 
89708
89777
  const comboBoxItemTpl = ({ label, dataId, dataName }) => `
89709
- <div
89710
- style="display:flex; flex-direction: column;"
89778
+ <div class="combo-box-item"
89711
89779
  data-id="${dataId}"
89712
89780
  data-name="${dataName}"
89713
89781
  >
@@ -89895,13 +89963,30 @@ descope-boolean-field-internal {
89895
89963
  super();
89896
89964
 
89897
89965
  this.attachShadow({ mode: 'open' }).innerHTML = `
89898
- <style>
89966
+ <div>
89967
+ <nav class="nav top-nav">
89968
+ <div class="nav-prev">
89969
+ </div>
89970
+ <div class="selectors"></div>
89971
+ <div class="nav-next">
89972
+ </div>
89973
+ </nav>
89974
+ <div class="calendar"></div>
89975
+ <nav class="nav bottom-nav">
89976
+ <descope-button class="cancel-button" variant="link" mode="primary">Cancel</descope-button>
89977
+ <descope-button class="submit-button" variant="link" mode="primary" disabled="true">Done</descope-button>
89978
+ </nav>
89979
+ </div>
89980
+ `;
89981
+
89982
+ injectStyle(
89983
+ `
89899
89984
  :host {
89900
89985
  display: inline-block;
89901
89986
  box-sizing: border-box;
89902
89987
  max-width: 100%;
89903
89988
  user-select: none;
89904
- -webkit-user-select: none;
89989
+ -webkit-user-select: none;
89905
89990
  }
89906
89991
 
89907
89992
  :host ::slotted {
@@ -89944,23 +90029,15 @@ descope-boolean-field-internal {
89944
90029
  ${ButtonClass.cssVarList.outlineWidth}: 0;
89945
90030
  }
89946
90031
 
90032
+ .combo-box-item {
90033
+ display:flex;
90034
+ flex-direction: column;
90035
+ }
90036
+
89947
90037
  ${inputFloatingLabelStyle()}
89948
- </style>
89949
- <div>
89950
- <nav class="nav top-nav">
89951
- <div class="nav-prev">
89952
- </div>
89953
- <div class="selectors"></div>
89954
- <div class="nav-next">
89955
- </div>
89956
- </nav>
89957
- <div class="calendar"></div>
89958
- <nav class="nav bottom-nav">
89959
- <descope-button class="cancel-button" variant="link" mode="primary">Cancel</descope-button>
89960
- <descope-button class="submit-button" variant="link" mode="primary" disabled="true">Done</descope-button>
89961
- </nav>
89962
- </div>
89963
- `;
90038
+ `,
90039
+ this
90040
+ );
89964
90041
  }
89965
90042
 
89966
90043
  set value(val) {
@@ -90743,7 +90820,18 @@ descope-boolean-field-internal {
90743
90820
  super();
90744
90821
 
90745
90822
  this.attachShadow({ mode: 'open' }).innerHTML = `
90746
- <style>
90823
+ <div>
90824
+ <descope-text-field>
90825
+ <span slot="suffix" class="toggle-calendar">
90826
+ ${calendarIcon}
90827
+ </span>
90828
+ </descope-text-field>
90829
+ <vaadin-popover></vaadin-popover>
90830
+ </div>
90831
+ `;
90832
+
90833
+ injectStyle(
90834
+ `
90747
90835
  :host {
90748
90836
  display: inline-block;
90749
90837
  box-sizing: border-box;
@@ -90761,22 +90849,15 @@ descope-boolean-field-internal {
90761
90849
  align-self: center;
90762
90850
  z-index: 1;
90763
90851
  height: 100%;
90764
- align-items: center;
90852
+ align-items: center;
90765
90853
  }
90766
90854
 
90767
90855
  :host([readonly="true"]) .toggle-calendar {
90768
90856
  pointer-events: none;
90769
90857
  }
90770
- </style>
90771
- <div>
90772
- <descope-text-field>
90773
- <span slot="suffix" class="toggle-calendar">
90774
- ${calendarIcon}
90775
- </span>
90776
- </descope-text-field>
90777
- <vaadin-popover></vaadin-popover>
90778
- </div>
90779
- `;
90858
+ `,
90859
+ this
90860
+ );
90780
90861
 
90781
90862
  this.inputElement = this.shadowRoot.querySelector('descope-text-field');
90782
90863
  this.popoverToggleButton = this.inputElement.querySelector('.toggle-calendar');
@@ -90980,14 +91061,14 @@ descope-boolean-field-internal {
90980
91061
  newOffset = Math.min(Math.abs(offset), availableLeft) * -1;
90981
91062
  }
90982
91063
 
90983
- this.#popoverPosStylesheet = document.createElement('style');
90984
- this.#popoverPosStylesheet.innerHTML = `
91064
+ injectStyle(
91065
+ `
90985
91066
  vaadin-popover-overlay::part(overlay) {
90986
91067
  transform: translateX(${newOffset}px);
90987
91068
  }
90988
- `;
90989
-
90990
- popover.appendChild(this.#popoverPosStylesheet);
91069
+ `,
91070
+ popover
91071
+ );
90991
91072
  }
90992
91073
 
90993
91074
  #getPopoverContent() {
@@ -91441,22 +91522,23 @@ descope-boolean-field-internal {
91441
91522
  super();
91442
91523
 
91443
91524
  this.attachShadow({ mode: 'open' }).innerHTML = `
91444
- <style>
91445
- /*css*/
91446
- slot {
91447
- width: 100%;
91448
- display: flex;
91449
- overflow: hidden;
91450
- box-sizing: border-box;
91451
- }
91452
- :host {
91453
- display: block;
91454
- }
91455
-
91456
- /*!css*/
91457
- </style>
91458
91525
  <slot></slot>
91459
91526
  `;
91527
+
91528
+ injectStyle(
91529
+ `
91530
+ slot {
91531
+ width: 100%;
91532
+ display: flex;
91533
+ overflow: hidden;
91534
+ box-sizing: border-box;
91535
+ }
91536
+ :host {
91537
+ display: block;
91538
+ }
91539
+ `,
91540
+ this
91541
+ );
91460
91542
  }
91461
91543
  };
91462
91544
 
@@ -91495,9 +91577,17 @@ descope-boolean-field-internal {
91495
91577
  super();
91496
91578
 
91497
91579
  this.attachShadow({ mode: 'open' }).innerHTML = `
91498
- <style>
91499
- /*css*/
91500
- .wrapper {
91580
+ <div class="wrapper">
91581
+ <slot></slot>
91582
+ <slot name="empty-state">
91583
+ No item...
91584
+ </slot>
91585
+ </div>
91586
+ `;
91587
+
91588
+ injectStyle(
91589
+ `
91590
+ .wrapper {
91501
91591
  overflow: auto;
91502
91592
  display: grid;
91503
91593
  max-height: 100%;
@@ -91524,16 +91614,9 @@ descope-boolean-field-internal {
91524
91614
  ::slotted(:not([slot])) {
91525
91615
  width: 100%;
91526
91616
  }
91527
- /*!css*/
91528
- </style>
91529
-
91530
- <div class="wrapper">
91531
- <slot></slot>
91532
- <slot name="empty-state">
91533
- No item...
91534
- </slot>
91535
- </div>
91536
- `;
91617
+ `,
91618
+ this
91619
+ );
91537
91620
  }
91538
91621
 
91539
91622
  get items() {
@@ -91979,7 +92062,11 @@ descope-boolean-field-internal {
91979
92062
  super();
91980
92063
 
91981
92064
  this.attachShadow({ mode: 'open' }).innerHTML = `
91982
- <style>
92065
+ <div></div>
92066
+ `;
92067
+
92068
+ injectStyle(
92069
+ `
91983
92070
  :host {
91984
92071
  display: inline-flex;
91985
92072
  }
@@ -91988,10 +92075,9 @@ descope-boolean-field-internal {
91988
92075
  display: flex;
91989
92076
  flex-direction: column;
91990
92077
  }
91991
-
91992
- </style>
91993
- <div></div>
91994
- `;
92078
+ `,
92079
+ this
92080
+ );
91995
92081
  }
91996
92082
 
91997
92083
  get isReadOnly() {
@@ -92106,8 +92192,22 @@ descope-boolean-field-internal {
92106
92192
  constructor() {
92107
92193
  super();
92108
92194
  this.attachShadow({ mode: 'open' }).innerHTML = `
92109
- <style>
92110
- :host {
92195
+ <div class="wrapper">
92196
+ <div class="third-party-app-logo-wrapper">
92197
+ <div class="third-party-app-logo"></div>
92198
+ </div>
92199
+ <div class="arrows">
92200
+ <descope-icon src="${arrowsImg}"></descope-icon>
92201
+ </div>
92202
+ <div class="company-logo-wrapper">
92203
+ <descope-logo></descope-logo>
92204
+ </div>
92205
+ </div>
92206
+ `;
92207
+
92208
+ injectStyle(
92209
+ `
92210
+ :host {
92111
92211
  display: inline-flex;
92112
92212
  }
92113
92213
  :host([draggable="true"]) > div {
@@ -92146,20 +92246,9 @@ descope-boolean-field-internal {
92146
92246
  flex-shrink: 0;
92147
92247
  display: flex;
92148
92248
  }
92149
-
92150
- </style>
92151
- <div class="wrapper">
92152
- <div class="third-party-app-logo-wrapper">
92153
- <div class="third-party-app-logo"></div>
92154
- </div>
92155
- <div class="arrows">
92156
- <descope-icon src="${arrowsImg}"></descope-icon>
92157
- </div>
92158
- <div class="company-logo-wrapper">
92159
- <descope-logo></descope-logo>
92160
- </div>
92161
- </div>
92162
- `;
92249
+ `,
92250
+ this
92251
+ );
92163
92252
  }
92164
92253
  }
92165
92254
 
@@ -92254,7 +92343,11 @@ descope-boolean-field-internal {
92254
92343
  super();
92255
92344
 
92256
92345
  this.attachShadow({ mode: 'open' }).innerHTML = `
92257
- <style>
92346
+ <div></div>
92347
+ `;
92348
+
92349
+ injectStyle(
92350
+ `
92258
92351
  :host {
92259
92352
  display: inline-flex;
92260
92353
  }
@@ -92263,10 +92356,9 @@ descope-boolean-field-internal {
92263
92356
  display: flex;
92264
92357
  flex-direction: column;
92265
92358
  }
92266
-
92267
- </style>
92268
- <div></div>
92269
- `;
92359
+ `,
92360
+ this
92361
+ );
92270
92362
  }
92271
92363
 
92272
92364
  get count() {
@@ -92508,7 +92600,11 @@ descope-boolean-field-internal {
92508
92600
  super();
92509
92601
 
92510
92602
  this.attachShadow({ mode: 'open' }).innerHTML = `
92511
- <style>
92603
+ <div></div>
92604
+ `;
92605
+
92606
+ injectStyle(
92607
+ `
92512
92608
  :host {
92513
92609
  display: inline-flex;
92514
92610
  }
@@ -92517,10 +92613,9 @@ descope-boolean-field-internal {
92517
92613
  display: flex;
92518
92614
  flex-direction: column;
92519
92615
  }
92520
-
92521
- </style>
92522
- <div></div>
92523
- `;
92616
+ `,
92617
+ this
92618
+ );
92524
92619
  }
92525
92620
 
92526
92621
  #renderQuestions() {
@@ -92802,8 +92897,16 @@ descope-boolean-field-internal {
92802
92897
  super();
92803
92898
 
92804
92899
  this.attachShadow({ mode: 'open' }).innerHTML = `
92805
- <style>
92806
- :host {
92900
+ <div class="wrapper">
92901
+ <descope-email-field external-input="${this.isExternalInput}"></descope-email-field>
92902
+ <descope-phone-field allow-alphanumeric-input="true"></descope-phone-field>
92903
+ <descope-phone-input-box-field allow-alphanumeric-input="true"></descope-phone-input-box-field>
92904
+ </div>
92905
+ `;
92906
+
92907
+ injectStyle(
92908
+ `
92909
+ :host {
92807
92910
  display: inline-flex;
92808
92911
  box-sizing: border-box;
92809
92912
  padding: 0;
@@ -92822,14 +92925,10 @@ descope-boolean-field-internal {
92822
92925
  }
92823
92926
  .hidden {
92824
92927
  visibility: hidden;
92825
- }
92826
- </style>
92827
- <div class="wrapper">
92828
- <descope-email-field external-input="${this.isExternalInput}"></descope-email-field>
92829
- <descope-phone-field allow-alphanumeric-input="true"></descope-phone-field>
92830
- <descope-phone-input-box-field allow-alphanumeric-input="true"></descope-phone-input-box-field>
92831
- </div>
92832
- `;
92928
+ }
92929
+ `,
92930
+ this
92931
+ );
92833
92932
  }
92834
92933
 
92835
92934
  get isExternalInput() {
@@ -93115,7 +93214,18 @@ descope-boolean-field-internal {
93115
93214
  super();
93116
93215
 
93117
93216
  this.attachShadow({ mode: 'open' }).innerHTML = `
93118
- <style>
93217
+ <div>
93218
+ <div class="icon"></div>
93219
+ <div class="content">
93220
+ <descope-enriched-text>
93221
+ <slot></slot>
93222
+ </descope-enriched-text>
93223
+ </div>
93224
+ </div>
93225
+ `;
93226
+
93227
+ injectStyle(
93228
+ `
93119
93229
  :host {
93120
93230
  display: inline-flex;
93121
93231
  }
@@ -93135,16 +93245,9 @@ descope-boolean-field-internal {
93135
93245
  white-space: normal;
93136
93246
  overflow-wrap: break-word;
93137
93247
  }
93138
- </style>
93139
- <div>
93140
- <div class="icon"></div>
93141
- <div class="content">
93142
- <descope-enriched-text>
93143
- <slot></slot>
93144
- </descope-enriched-text>
93145
- </div>
93146
- </div>
93147
- `;
93248
+ `,
93249
+ this
93250
+ );
93148
93251
  }
93149
93252
 
93150
93253
  init() {
@@ -93449,6 +93552,17 @@ descope-boolean-field-internal {
93449
93552
  line-height: unset;
93450
93553
  width: 100%;
93451
93554
  }
93555
+
93556
+ descope-autocomplete-field-internal {
93557
+ display: inline-block;
93558
+ box-sizing: border-box;
93559
+ user-select: none;
93560
+ max-width: 100%;
93561
+ }
93562
+
93563
+ descope-autocomplete-field-internal ::slotted {
93564
+ padding: 0;
93565
+ }
93452
93566
  `,
93453
93567
  excludeAttrsSync: ['tabindex', 'error-message', 'label'],
93454
93568
  componentName: componentName$4,
@@ -93738,18 +93852,6 @@ descope-boolean-field-internal {
93738
93852
  super();
93739
93853
 
93740
93854
  this.innerHTML = `
93741
- <style>
93742
- :host {
93743
- display: inline-block;
93744
- box-sizing: border-box;
93745
- user-select: none;
93746
- max-width: 100%;
93747
- }
93748
-
93749
- :host ::slotted {
93750
- padding: 0;
93751
- }
93752
- </style>
93753
93855
  <div>
93754
93856
  <descope-autocomplete-field></descope-autocomplete-field>
93755
93857
  </div>
@@ -93949,6 +94051,17 @@ descope-boolean-field-internal {
93949
94051
  line-height: unset;
93950
94052
  width: 100%;
93951
94053
  }
94054
+
94055
+ ${componentName$3} {
94056
+ display: inline-block;
94057
+ box-sizing: border-box;
94058
+ user-select: none;
94059
+ max-width: 100%;
94060
+ }
94061
+
94062
+ ${componentName$3} ::slotted {
94063
+ padding: 0;
94064
+ }
93952
94065
  `,
93953
94066
  excludeAttrsSync: ['tabindex', 'error-message', 'label'],
93954
94067
  componentName: componentName$2,
@@ -94136,7 +94249,15 @@ descope-boolean-field-internal {
94136
94249
  super();
94137
94250
 
94138
94251
  this.attachShadow({ mode: 'open' }).innerHTML = `
94139
- <style>
94252
+ <div class="badge">
94253
+ <span id="recaptcha"></span>
94254
+ <img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>
94255
+ </div>
94256
+ <slot></slot>
94257
+ `;
94258
+
94259
+ injectStyle(
94260
+ `
94140
94261
  :host {
94141
94262
  display: inline-flex;
94142
94263
  }
@@ -94162,13 +94283,9 @@ descope-boolean-field-internal {
94162
94283
  .hidden {
94163
94284
  display: none;
94164
94285
  }
94165
- </style>
94166
- <div class="badge">
94167
- <span id="recaptcha"></span>
94168
- <img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>
94169
- </div>
94170
- <slot></slot>
94171
- `;
94286
+ `,
94287
+ this
94288
+ );
94172
94289
 
94173
94290
  this.recaptchaEle = this.baseElement.querySelector('#recaptcha');
94174
94291
  this.mockRecaptchaEle = this.baseElement.querySelector('img');