@gem-sdk/components 2.0.0-dev.628 → 2.0.0-dev.629

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.
@@ -16,7 +16,7 @@ var helpers = require('./common/helpers.js');
16
16
 
17
17
  const Button = (props)=>{
18
18
  const { advanced, className, nodePrice, customAttrs, styles: styles$1 = {}, setting = {}, builderProps, wrapClassName = '' } = props;
19
- const { iconSvg, loading, btnLink, htmlType, disabled, shouldClearSpace, enableBtnLink } = setting;
19
+ const { iconSvg, btnLink, htmlType, disabled, enableBtnLink, shouldClearSpace, disabledLoading = true } = setting;
20
20
  const { enableTextStyle = true } = styles$1;
21
21
  const { customCss, wrapStyle, restStyle, dataState, dataIdAttr, isShowIcon, isScrollToElement, getArialLabel, getLabelToDisplay, checkIsShowLabel, checkIsEditableLabel } = data.getData(props);
22
22
  const { HTMLTag: ButtonWrapper, urlData, shouldRenderLink } = helpers.getInsertLinkData({
@@ -103,7 +103,7 @@ const Button = (props)=>{
103
103
  style="${buttonStyles}"
104
104
  class="${buttonClasses}"
105
105
  >
106
- ${system.If(loading, ButtonLoadingIndicator_liquid.default(), '')}
106
+ ${system.If(!disabledLoading, ButtonLoadingIndicator_liquid.default(), '')}
107
107
  <div class="${buttonContentWrapperClasses}">
108
108
  ${system.If(isShowIcon, ButtonIcon_liquid.default({
109
109
  iconSvg: iconSvg ?? '',
@@ -22,15 +22,15 @@ const CountdownSettings = [
22
22
  default: 'evergreen',
23
23
  options: [
24
24
  {
25
- label: 'To specific date',
25
+ label: 'End at',
26
26
  value: 'standard'
27
27
  },
28
28
  {
29
- label: 'Run daily',
29
+ label: 'Auto-renew',
30
30
  value: 'daily'
31
31
  },
32
32
  {
33
- label: 'In duration',
33
+ label: 'Manual',
34
34
  value: 'evergreen'
35
35
  }
36
36
  ]
@@ -8,7 +8,7 @@ const SettingUIV2 = [
8
8
  controls: [
9
9
  {
10
10
  label: {
11
- en: 'Run type'
11
+ en: 'Type'
12
12
  },
13
13
  setting: {
14
14
  id: 'behaviour'
@@ -254,6 +254,7 @@ const SettingUIV2 = [
254
254
  iconName: 'polaris-text-title',
255
255
  getValueFromSettingID: 'numTypo.type',
256
256
  isHideClear: true,
257
+ isTypoValue: true,
257
258
  controls: [
258
259
  {
259
260
  setting: {
@@ -291,6 +292,7 @@ const SettingUIV2 = [
291
292
  iconName: 'polaris-text-title',
292
293
  isHideClear: true,
293
294
  getValueFromSettingID: 'labelTypo.type',
295
+ isTypoValue: true,
294
296
  controls: [
295
297
  {
296
298
  setting: {
@@ -964,6 +964,7 @@ const SettingUIV2 = [
964
964
  label: {
965
965
  en: 'Content'
966
966
  },
967
+ conditionDisplay: "errorType !== 'custom'",
967
968
  setting: {
968
969
  id: 'errorMessage'
969
970
  }
@@ -12,7 +12,7 @@ import { getInsertLinkData } from './common/helpers.js';
12
12
 
13
13
  const Button = (props)=>{
14
14
  const { advanced, className, nodePrice, customAttrs, styles = {}, setting = {}, builderProps, wrapClassName = '' } = props;
15
- const { iconSvg, loading, btnLink, htmlType, disabled, shouldClearSpace, enableBtnLink } = setting;
15
+ const { iconSvg, btnLink, htmlType, disabled, enableBtnLink, shouldClearSpace, disabledLoading = true } = setting;
16
16
  const { enableTextStyle = true } = styles;
17
17
  const { customCss, wrapStyle, restStyle, dataState, dataIdAttr, isShowIcon, isScrollToElement, getArialLabel, getLabelToDisplay, checkIsShowLabel, checkIsEditableLabel } = getData(props);
18
18
  const { HTMLTag: ButtonWrapper, urlData, shouldRenderLink } = getInsertLinkData({
@@ -99,7 +99,7 @@ const Button = (props)=>{
99
99
  style="${buttonStyles}"
100
100
  class="${buttonClasses}"
101
101
  >
102
- ${If(loading, ButtonLoadingIndicator(), '')}
102
+ ${If(!disabledLoading, ButtonLoadingIndicator(), '')}
103
103
  <div class="${buttonContentWrapperClasses}">
104
104
  ${If(isShowIcon, ButtonIcon({
105
105
  iconSvg: iconSvg ?? '',
@@ -20,15 +20,15 @@ const CountdownSettings = [
20
20
  default: 'evergreen',
21
21
  options: [
22
22
  {
23
- label: 'To specific date',
23
+ label: 'End at',
24
24
  value: 'standard'
25
25
  },
26
26
  {
27
- label: 'Run daily',
27
+ label: 'Auto-renew',
28
28
  value: 'daily'
29
29
  },
30
30
  {
31
- label: 'In duration',
31
+ label: 'Manual',
32
32
  value: 'evergreen'
33
33
  }
34
34
  ]
@@ -6,7 +6,7 @@ const SettingUIV2 = [
6
6
  controls: [
7
7
  {
8
8
  label: {
9
- en: 'Run type'
9
+ en: 'Type'
10
10
  },
11
11
  setting: {
12
12
  id: 'behaviour'
@@ -252,6 +252,7 @@ const SettingUIV2 = [
252
252
  iconName: 'polaris-text-title',
253
253
  getValueFromSettingID: 'numTypo.type',
254
254
  isHideClear: true,
255
+ isTypoValue: true,
255
256
  controls: [
256
257
  {
257
258
  setting: {
@@ -289,6 +290,7 @@ const SettingUIV2 = [
289
290
  iconName: 'polaris-text-title',
290
291
  isHideClear: true,
291
292
  getValueFromSettingID: 'labelTypo.type',
293
+ isTypoValue: true,
292
294
  controls: [
293
295
  {
294
296
  setting: {
@@ -962,6 +962,7 @@ const SettingUIV2 = [
962
962
  label: {
963
963
  en: 'Content'
964
964
  },
965
+ conditionDisplay: "errorType !== 'custom'",
965
966
  setting: {
966
967
  id: 'errorMessage'
967
968
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.628",
3
+ "version": "2.0.0-dev.629",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",