@wavemaker/foundation-css 11.15.1-rc.6451 → 11.15.2-rc.64737
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/cjs/foundation-css.cjs +1260 -12
- package/cjs/src_tokens_mobile_components_accordion-pane_accordion-pane_json.foundation-css.cjs +14 -0
- package/cjs/src_tokens_mobile_components_accordion_accordion_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_anchor_anchor_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_barcodescanner_barcodescanner_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_bottomsheet_bottomsheet_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_button_button_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_calendar_calendar_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_camera_camera_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_cards_cards_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_carousel_carousel_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_checkboxset_checkboxset_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_chips_chips_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_container_container_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_currency_currency_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_dropdown-menu_dropdown-menu_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_form-controls_form-controls_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_form-wrapper_form-wrapper_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_label_label_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_list_list_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_login_login_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_lottie_lottie_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_message_message_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_modal-dialog_modal-dialog_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_nav_nav_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_navbar_navbar_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_navitem_navitem_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_page-left-nav_page-left-nav_json.foundation-css.cjs +14 -0
- package/cjs/src_tokens_mobile_components_panel_panel_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_partial-container_partial-container_json.foundation-css.cjs +14 -0
- package/cjs/src_tokens_mobile_components_picture_picture_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_popover_popover_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_progress-bar_progress-bar_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_radioset_radioset_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_rating_rating_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_search_search_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_select_select_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_spinner_spinner_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_switch_switch_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_tabbar_tabbar_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_tabs_tabs_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_tile_tile_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_webview_webview_json.foundation-css.cjs +1 -1
- package/cjs/src_tokens_mobile_components_wizard_wizard_json.foundation-css.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/native_mobile.index.d.ts +17 -0
- package/native_mobile.index.js +17 -5
- package/native_mobile.index.js.map +1 -1
- package/npm-shrinkwrap.json +95 -117
- package/package-lock.json +95 -117
- package/package.json +13 -4
- package/src/node/index.d.ts +1 -0
- package/src/node/index.js +2 -0
- package/src/node/index.js.map +1 -0
- package/src/styles/mobile/components/advanced/carousel.less +6 -12
- package/src/styles/mobile/components/advanced/login.less +1 -4
- package/src/styles/mobile/components/advanced/webview.less +1 -4
- package/src/styles/mobile/components/basic/anchor.less +2 -2
- package/src/styles/mobile/components/basic/bottomsheet.less +5 -12
- package/src/styles/mobile/components/basic/button.less +3 -12
- package/src/styles/mobile/components/basic/buttongroup.less +3 -12
- package/src/styles/mobile/components/basic/label.less +7 -4
- package/src/styles/mobile/components/basic/lottie.less +7 -4
- package/src/styles/mobile/components/basic/message.less +6 -10
- package/src/styles/mobile/components/basic/picture.less +4 -16
- package/src/styles/mobile/components/basic/progress-bar.less +0 -1
- package/src/styles/mobile/components/basic/search.less +5 -20
- package/src/styles/mobile/components/basic/spinner.less +1 -1
- package/src/styles/mobile/components/container/accordion/accordionpane.less +6 -0
- package/src/styles/mobile/components/container/accordion.less +35 -3
- package/src/styles/mobile/components/container/panel.less +0 -5
- package/src/styles/mobile/components/container/tabs/tab-header.less +14 -3
- package/src/styles/mobile/components/container/tile.less +1 -4
- package/src/styles/mobile/components/container/wizard.less +3 -9
- package/src/styles/mobile/components/container.less +8 -32
- package/src/styles/mobile/components/data/card.less +1 -4
- package/src/styles/mobile/components/data/form.less +143 -37
- package/src/styles/mobile/components/data/list.less +1 -4
- package/src/styles/mobile/components/device/barcodescanner.less +2 -5
- package/src/styles/mobile/components/device/camera.less +1 -4
- package/src/styles/mobile/components/dialogs/dialog.less +17 -4
- package/src/styles/mobile/components/input/calendar.less +46 -38
- package/src/styles/mobile/components/input/checkboxset.less +1 -2
- package/src/styles/mobile/components/input/chips.less +8 -19
- package/src/styles/mobile/components/input/currency.less +14 -17
- package/src/styles/mobile/components/input/radioset.less +1 -2
- package/src/styles/mobile/components/input/rating.less +1 -1
- package/src/styles/mobile/components/input/select.less +26 -64
- package/src/styles/mobile/components/input/switch.less +1 -2
- package/src/styles/mobile/components/input/toggle.less +1 -1
- package/src/styles/mobile/components/navigation/appnavbar.less +11 -15
- package/src/styles/mobile/components/navigation/menu.less +3 -11
- package/src/styles/mobile/components/navigation/popover.less +22 -15
- package/src/styles/mobile/components/page/left-panel.less +0 -1
- package/src/styles/mobile/components/page/partial-container.less +1 -0
- package/src/styles/mobile/components/page/tabbar.less +9 -8
- package/src/styles/mobile/components/tokens.dark.css +25 -9
- package/src/styles/mobile/components/tokens.light.css +198 -241
- package/src/styles/mobile/components/variables/accordion.variant.less +4 -0
- package/src/styles/mobile/components/variables/button.variant.less +19 -79
- package/src/styles/mobile/components/variables/carousel.variant.less +2 -3
- package/src/styles/mobile/components/variables/container.variant.less +6 -24
- package/src/styles/mobile/components/variables/form-controls.variant.less +9 -8
- package/src/styles/mobile/components/variables/picture.variant.less +3 -12
- package/src/styles/mobile/components/variables/tabbar.variant.less +1 -0
- package/src/styles/mobile/components/variables/tabs.variant.less +7 -0
- package/src/styles/mobile/studio/advanced/carousel.less +4 -2
- package/src/styles/mobile/studio/advanced/login.less +1 -4
- package/src/styles/mobile/studio/advanced/webview.less +1 -4
- package/src/styles/mobile/studio/basic/label.less +0 -8
- package/src/styles/mobile/studio/basic/message.less +1 -2
- package/src/styles/mobile/studio/container/accordion.less +1 -4
- package/src/styles/mobile/studio/container/container.less +2 -8
- package/src/styles/mobile/studio/container/tabs.less +10 -2
- package/src/styles/mobile/studio/data/card.less +1 -1
- package/src/styles/mobile/studio/device/barcode.less +2 -8
- package/src/styles/mobile/studio/input/calendar.less +66 -6
- package/src/styles/mobile/studio/input/checkboxset.less +21 -6
- package/src/styles/mobile/studio/input/currency.less +9 -1
- package/src/styles/mobile/studio/input/form.less +10 -40
- package/src/styles/mobile/studio/input/rating.less +1 -1
- package/src/styles/mobile/studio/input/select.less +33 -0
- package/src/styles/mobile/studio/input/toggle.less +3 -2
- package/src/styles/mobile/studio/layouts/tabbar.less +4 -5
- package/src/styles/mobile/studio/navigation/nav.less +0 -17
- package/src/styles/mobile/studio/navigation/popover.less +2 -5
- package/src/token-validation/component-token-schema.d.ts +169 -0
- package/src/token-validation/component-token-schema.js +146 -0
- package/src/token-validation/component-token-schema.js.map +1 -0
- package/src/token-validation/constants.d.ts +41 -0
- package/src/token-validation/constants.js +54 -0
- package/src/token-validation/constants.js.map +1 -0
- package/src/token-validation/global-token-schema.d.ts +37 -0
- package/src/token-validation/global-token-schema.js +41 -0
- package/src/token-validation/global-token-schema.js.map +1 -0
- package/src/token-validation/validate-token.d.ts +72 -0
- package/src/token-validation/validate-token.js +939 -0
- package/src/token-validation/validate-token.js.map +1 -0
- package/src/token-validation/validate-value.d.ts +13 -0
- package/src/token-validation/validate-value.js +57 -0
- package/src/token-validation/validate-value.js.map +1 -0
- package/src/token-validation/validator-utils/common/constants.d.ts +172 -0
- package/src/token-validation/validator-utils/common/constants.js +258 -0
- package/src/token-validation/validator-utils/common/constants.js.map +1 -0
- package/src/token-validation/validator-utils/common/primitives.d.ts +14 -0
- package/src/token-validation/validator-utils/common/primitives.js +35 -0
- package/src/token-validation/validator-utils/common/primitives.js.map +1 -0
- package/src/token-validation/validator-utils/common/utils.d.ts +152 -0
- package/src/token-validation/validator-utils/common/utils.js +316 -0
- package/src/token-validation/validator-utils/common/utils.js.map +1 -0
- package/src/token-validation/validator-utils/native_mobile.d.ts +1 -0
- package/src/token-validation/validator-utils/native_mobile.js +120 -0
- package/src/token-validation/validator-utils/native_mobile.js.map +1 -0
- package/src/token-validation/validator-utils/web.d.ts +1 -0
- package/src/token-validation/validator-utils/web.js +72 -0
- package/src/token-validation/validator-utils/web.js.map +1 -0
- package/src/tokens/mobile/components/accordion/accordion.json +172 -4
- package/src/tokens/mobile/components/accordion-pane/accordion-pane.json +65 -0
- package/src/tokens/mobile/components/anchor/anchor.json +5 -15
- package/src/tokens/mobile/components/barcodescanner/barcodescanner.json +10 -38
- package/src/tokens/mobile/components/bottomsheet/bottomsheet.json +28 -92
- package/src/tokens/mobile/components/button/button.json +24 -121
- package/src/tokens/mobile/components/calendar/calendar.json +262 -158
- package/src/tokens/mobile/components/camera/camera.json +5 -31
- package/src/tokens/mobile/components/cards/cards.json +1 -27
- package/src/tokens/mobile/components/carousel/carousel.json +25 -69
- package/src/tokens/mobile/components/checkboxset/checkboxset.json +6 -16
- package/src/tokens/mobile/components/chips/chips.json +8 -80
- package/src/tokens/mobile/components/container/container.json +22 -158
- package/src/tokens/mobile/components/currency/currency.json +89 -5
- package/src/tokens/mobile/components/dropdown-menu/dropdown-menu.json +15 -87
- package/src/tokens/mobile/components/form-controls/form-controls.json +140 -142
- package/src/tokens/mobile/components/form-wrapper/form-wrapper.json +0 -8
- package/src/tokens/mobile/components/label/label.json +0 -34
- package/src/tokens/mobile/components/list/list.json +5 -31
- package/src/tokens/mobile/components/login/login.json +5 -31
- package/src/tokens/mobile/components/lottie/lottie.json +23 -29
- package/src/tokens/mobile/components/message/message.json +37 -61
- package/src/tokens/mobile/components/modal-dialog/modal-dialog.json +54 -8
- package/src/tokens/mobile/components/nav/nav.json +1 -48
- package/src/tokens/mobile/components/navbar/navbar.json +61 -95
- package/src/tokens/mobile/components/navitem/navitem.json +4 -4
- package/src/tokens/mobile/components/{left-nav/left-nav.json → page-left-nav/page-left-nav.json} +1 -9
- package/src/tokens/mobile/components/panel/panel.json +0 -10
- package/src/tokens/mobile/components/partial-container/partial-container.json +23 -0
- package/src/tokens/mobile/components/picture/picture.json +9 -63
- package/src/tokens/mobile/components/popover/popover.json +105 -97
- package/src/tokens/mobile/components/progress-bar/progress-bar.json +0 -8
- package/src/tokens/mobile/components/radioset/radioset.json +5 -15
- package/src/tokens/mobile/components/rating/rating.json +5 -7
- package/src/tokens/mobile/components/search/search.json +25 -155
- package/src/tokens/mobile/components/select/select.json +223 -165
- package/src/tokens/mobile/components/spinner/spinner.json +5 -7
- package/src/tokens/mobile/components/switch/switch.json +5 -15
- package/src/tokens/mobile/components/tabbar/tabbar.json +48 -54
- package/src/tokens/mobile/components/tabs/tabs.json +113 -5
- package/src/tokens/mobile/components/tile/tile.json +5 -31
- package/src/tokens/mobile/components/webview/webview.json +5 -31
- package/src/tokens/mobile/components/wizard/wizard.json +8 -56
- package/cjs/src_tokens_mobile_components_left-nav_left-nav_json.foundation-css.cjs +0 -14
- package/src/styles/mobile/components/input/epoch/date.less +0 -44
- package/src/styles/mobile/components/input/epoch/datetime.less +0 -38
- package/src/styles/mobile/components/input/epoch/time.less +0 -38
- package/src/styles/mobile/components/input/number.less +0 -40
- package/src/styles/mobile/components/input/text.less +0 -69
- package/src/styles/mobile/components/input/textarea.less +0 -63
- package/src/styles/mobile/components/variables/select.variant.less +0 -3
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
&::after {
|
|
29
29
|
content: "";
|
|
30
30
|
display: block;
|
|
31
|
-
width: calc(var(--wm-checkboxset-icon-size)
|
|
32
|
-
height: var(--wm-checkboxset-icon-size);
|
|
33
|
-
border-right:
|
|
34
|
-
border-bottom:
|
|
31
|
+
width: calc(var(--wm-checkboxset-icon-size)/3);
|
|
32
|
+
height: calc(var(--wm-checkboxset-icon-size)/1.5);
|
|
33
|
+
border-right: 3px solid var(--wm-checkboxset-icon-color);
|
|
34
|
+
border-bottom: 3px solid var(--wm-checkboxset-icon-color);
|
|
35
35
|
transform: rotate(45deg);
|
|
36
36
|
top: 3px;
|
|
37
37
|
left: 6px;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&.checkbox {
|
|
49
|
-
display: inline-block;
|
|
49
|
+
// display: inline-block;
|
|
50
50
|
|
|
51
51
|
>label {
|
|
52
52
|
padding: 0;
|
|
@@ -60,7 +60,22 @@
|
|
|
60
60
|
line-height: normal;
|
|
61
61
|
letter-spacing: normal;
|
|
62
62
|
cursor: pointer;
|
|
63
|
-
|
|
63
|
+
|
|
64
|
+
.caption {
|
|
65
|
+
display: inline-block;
|
|
66
|
+
padding-left: 20px;
|
|
67
|
+
padding-top: 0;
|
|
68
|
+
margin-left: var(--wm-checkboxset-label-margin-left);
|
|
69
|
+
|
|
70
|
+
&:before,
|
|
71
|
+
&:after {
|
|
72
|
+
content: "";
|
|
73
|
+
display: inline-block;
|
|
74
|
+
position: absolute;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
|
|
64
79
|
}
|
|
65
80
|
}
|
|
66
81
|
}
|
|
@@ -6,7 +6,15 @@
|
|
|
6
6
|
height: auto;
|
|
7
7
|
}
|
|
8
8
|
span {
|
|
9
|
-
|
|
9
|
+
background-color: var(--wm-currency-labelwrapper-background) !important;
|
|
10
|
+
min-height: var(--wm-currency-labelwrapper-min-height) !important;
|
|
11
|
+
border-radius: var(--wm-currency-labelwrapper-border-radius) !important;
|
|
12
|
+
padding: var(--wm-currency-labelwrapper-padding) !important;
|
|
13
|
+
width: var(--wm-currency-labelwrapper-width) !important;
|
|
14
|
+
font-weight: var(--wm-currency-label-font-weight) !important;
|
|
15
|
+
font-family: var(--wm-currency-label-font-family) !important;
|
|
16
|
+
font-size: var(--wm-currency-label-font-size) !important;
|
|
17
|
+
color: var(--wm-currency-label-color) !important;
|
|
10
18
|
}
|
|
11
19
|
.app-textbox {
|
|
12
20
|
border-top-right-radius: 4px;
|
|
@@ -49,15 +49,9 @@
|
|
|
49
49
|
|
|
50
50
|
.wm-studio .wm-right-panel-container .file-container-pane .wm-file-container .wm-workspace .workspace-content .canvas-panel .app-form .live-field > div .form-control{
|
|
51
51
|
min-height: var(--wm-form-controls-min-height);
|
|
52
|
-
padding
|
|
53
|
-
padding-bottom: var(--wm-form-controls-padding-bottom);
|
|
54
|
-
padding-left: var(--wm-form-controls-padding-left);
|
|
55
|
-
padding-right: var(--wm-form-controls-padding-right);
|
|
52
|
+
padding: var(--wm-form-controls-padding);
|
|
56
53
|
border-style: var(--wm-form-controls-border-style);
|
|
57
|
-
border-
|
|
58
|
-
border-left-width:var(--wm-form-controls-border-left-width);
|
|
59
|
-
border-right-width: var(--wm-form-controls-border-right-width);
|
|
60
|
-
border-bottom-width:var(--wm-form-controls-border-bottom-width);
|
|
54
|
+
border-width: var(--wm-form-controls-border-width);
|
|
61
55
|
border-color: var(--wm-form-controls-border-color);
|
|
62
56
|
border-radius: var(--wm-form-controls-border-radius);
|
|
63
57
|
background-color: var(--wm-form-controls-background);
|
|
@@ -101,15 +95,9 @@
|
|
|
101
95
|
border-bottom-left-radius: 0px !important;
|
|
102
96
|
border-left-width: 0px !important;
|
|
103
97
|
min-height: var(--wm-form-controls-min-height);
|
|
104
|
-
padding
|
|
105
|
-
padding-bottom: var(--wm-form-controls-padding-bottom);
|
|
106
|
-
padding-left: var(--wm-form-controls-padding-left);
|
|
107
|
-
padding-right: var(--wm-form-controls-padding-right);
|
|
98
|
+
padding: var(--wm-form-controls-padding);
|
|
108
99
|
border-style: var(--wm-form-controls-border-style);
|
|
109
|
-
border-
|
|
110
|
-
border-left-width:var(--wm-form-controls-border-left-width);
|
|
111
|
-
border-right-width: var(--wm-form-controls-border-right-width);
|
|
112
|
-
border-bottom-width:var(--wm-form-controls-border-bottom-width);
|
|
100
|
+
border-width: var(--wm-form-controls-border-width);
|
|
113
101
|
border-color: var(--wm-form-controls-border-color);
|
|
114
102
|
border-radius: var(--wm-form-controls-border-radius);
|
|
115
103
|
background-color: var(--wm-form-controls-background);
|
|
@@ -130,15 +118,9 @@
|
|
|
130
118
|
|
|
131
119
|
.wm-studio .wm-right-panel-container .file-container-pane .wm-file-container .wm-workspace .workspace-content .canvas-panel .app-textbox {
|
|
132
120
|
min-height: var(--wm-form-controls-min-height);
|
|
133
|
-
padding
|
|
134
|
-
padding-bottom: var(--wm-form-controls-padding-bottom);
|
|
135
|
-
padding-left: var(--wm-form-controls-padding-left);
|
|
136
|
-
padding-right: var(--wm-form-controls-padding-right);
|
|
121
|
+
padding: var(--wm-form-controls-padding);
|
|
137
122
|
border-style: var(--wm-form-controls-border-style);
|
|
138
|
-
border-
|
|
139
|
-
border-left-width:var(--wm-form-controls-border-left-width);
|
|
140
|
-
border-right-width: var(--wm-form-controls-border-right-width);
|
|
141
|
-
border-bottom-width:var(--wm-form-controls-border-bottom-width);
|
|
123
|
+
border-width: var(--wm-form-controls-border-width);
|
|
142
124
|
border-color: var(--wm-form-controls-border-color);
|
|
143
125
|
border-radius: var(--wm-form-controls-border-radius);
|
|
144
126
|
background-color: var(--wm-form-controls-background);
|
|
@@ -152,15 +134,9 @@
|
|
|
152
134
|
|
|
153
135
|
.wm-studio .wm-right-panel-container .file-container-pane .wm-file-container .wm-workspace .workspace-content .canvas-panel .app-textarea {
|
|
154
136
|
min-height: var(--wm-form-controls-min-height);
|
|
155
|
-
padding
|
|
156
|
-
padding-bottom: var(--wm-form-controls-padding-bottom);
|
|
157
|
-
padding-left: var(--wm-form-controls-padding-left);
|
|
158
|
-
padding-right: var(--wm-form-controls-padding-right);
|
|
137
|
+
padding: var(--wm-form-controls-padding);
|
|
159
138
|
border-style: var(--wm-form-controls-border-style);
|
|
160
|
-
border-
|
|
161
|
-
border-left-width:var(--wm-form-controls-border-left-width);
|
|
162
|
-
border-right-width: var(--wm-form-controls-border-right-width);
|
|
163
|
-
border-bottom-width:var(--wm-form-controls-border-bottom-width);
|
|
139
|
+
border-width: var(--wm-form-controls-border-width);
|
|
164
140
|
border-color: var(--wm-form-controls-border-color);
|
|
165
141
|
border-radius: var(--wm-form-controls-border-radius);
|
|
166
142
|
background-color: var(--wm-form-controls-background);
|
|
@@ -174,15 +150,9 @@
|
|
|
174
150
|
|
|
175
151
|
.wm-studio .wm-right-panel-container .file-container-pane .wm-file-container .wm-workspace .workspace-content .canvas-panel .app-select{
|
|
176
152
|
min-height: var(--wm-form-controls-min-height);
|
|
177
|
-
padding
|
|
178
|
-
padding-bottom: var(--wm-form-controls-padding-bottom);
|
|
179
|
-
padding-left: var(--wm-form-controls-padding-left);
|
|
180
|
-
padding-right: var(--wm-form-controls-padding-right);
|
|
153
|
+
padding: var(--wm-form-controls-padding);
|
|
181
154
|
border-style: var(--wm-form-controls-border-style);
|
|
182
|
-
border-
|
|
183
|
-
border-left-width:var(--wm-form-controls-border-left-width);
|
|
184
|
-
border-right-width: var(--wm-form-controls-border-right-width);
|
|
185
|
-
border-bottom-width:var(--wm-form-controls-border-bottom-width);
|
|
155
|
+
border-width: var(--wm-form-controls-border-width);
|
|
186
156
|
border-color: var(--wm-form-controls-border-color);
|
|
187
157
|
border-radius: var(--wm-form-controls-border-radius);
|
|
188
158
|
background-color: var(--wm-form-controls-background);
|
|
@@ -4,3 +4,36 @@
|
|
|
4
4
|
font-size: 16px;
|
|
5
5
|
height: auto;
|
|
6
6
|
}
|
|
7
|
+
|
|
8
|
+
.native-template-arrow-container {
|
|
9
|
+
background-color: var(--wm-select-arrow-button-background-color);
|
|
10
|
+
padding: var(--wm-select-arrow-button-padding);
|
|
11
|
+
border-width: var(--wm-select-arrow-button-border-width);
|
|
12
|
+
border-style: var(--wm-select-arrow-button-border-style);
|
|
13
|
+
border-color: var(--wm-select-arrow-button-border-color);
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.native-template-dropdown-modal {
|
|
18
|
+
background-color: var(--wm-select-modal-content-background-color);
|
|
19
|
+
border-color: var(--wm-select-modal-content-border-color);
|
|
20
|
+
border-radius: var(--wm-select-modal-content-border-radius);
|
|
21
|
+
border-style: var(--wm-select-modal-content-border-style);
|
|
22
|
+
border-width: var(--wm-select-modal-content-border-width);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.native-template-option-tick {
|
|
26
|
+
font-size: var(--wm-select-check-icon-font-size);
|
|
27
|
+
color: var(--wm-select-check-icon-color);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.native-template-option {
|
|
31
|
+
font-size: var(--wm-select-modal-text-font-size);
|
|
32
|
+
color: var(--wm-select-modal-text-color);
|
|
33
|
+
font-family: var(--wm-select-modal-text-font-family);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.native-template-arrow {
|
|
37
|
+
font-size: var(--wm-select-arrow-button-icon-font-size);
|
|
38
|
+
color: var(--wm-select-arrow-button-icon-color);
|
|
39
|
+
}
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
position: absolute;
|
|
56
56
|
display: block;
|
|
57
57
|
top: 6px;
|
|
58
|
-
left: 8px;
|
|
59
58
|
height: var(--wm-toggle-handle-height);
|
|
60
59
|
width: var(--wm-toggle-handle-width);
|
|
61
60
|
background-color: var(--wm-toggle-handle-color);
|
|
@@ -69,16 +68,18 @@
|
|
|
69
68
|
box-sizing: border-box;
|
|
70
69
|
transform: none !important;
|
|
71
70
|
box-shadow: none !important;
|
|
71
|
+
margin-left: var(--wm-toggle-handle-margin-left);
|
|
72
|
+
margin-right: var(--wm-toggle-handle-margin-right);
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
/* Checked State move handle */
|
|
75
76
|
input[type="checkbox"]:checked~.switch {
|
|
76
77
|
right: 0;
|
|
77
78
|
left: auto;
|
|
78
|
-
margin-right: 6px;
|
|
79
79
|
transition-delay: .08s, 0s;
|
|
80
80
|
background-color: var(--wm-toggle-handle-color);
|
|
81
81
|
transform: scale(1.6) !important;
|
|
82
|
+
margin-right: var(--wm-toggle-handle-margin-right);
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
input[type="checkbox"]:checked~label {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
height: var(--wm-tabbar-height);
|
|
4
4
|
padding: 4px;
|
|
5
|
-
border-
|
|
6
|
-
border-
|
|
7
|
-
border-
|
|
5
|
+
border-width: var(--wm-tabbar-border-width);
|
|
6
|
+
border-style: var(--wm-tabbar-border-style);
|
|
7
|
+
border-color: var(--wm-tabbar-border-color);
|
|
8
8
|
.navbar-default {
|
|
9
9
|
background-color: inherit;
|
|
10
10
|
.tab-items {
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
.app-icon {
|
|
26
26
|
color: var(--wm-tabbar-icon-color);
|
|
27
27
|
font-size: var(--wm-tabbar-icon-size);
|
|
28
|
-
padding
|
|
29
|
-
padding-bottom: var(--wm-tabbar-icon-padding-bottom);
|
|
28
|
+
padding: var(--wm-tabbar-icon-padding);
|
|
30
29
|
}
|
|
31
30
|
label {
|
|
32
31
|
color: var(--wm-tabbar-text-color);
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
.app-left-panel {
|
|
2
|
-
background-color: var(--wm-nav-left-panel-background);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.app-partial {
|
|
6
|
-
height: auto;
|
|
7
|
-
background-color: var(--wm-nav-partial-background);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.app-partial-container {
|
|
11
|
-
background-color: var(--wm-nav-partial-container-background);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.app-navbar {
|
|
15
|
-
background-color: var(--wm-nav-navbar-background);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
1
|
.app-nav-item .app-anchor.app-anchor >.badge{
|
|
19
2
|
position: absolute;
|
|
20
3
|
top:auto;
|
|
@@ -3,14 +3,11 @@
|
|
|
3
3
|
border-color: var(--wm-popover-link-border-color);
|
|
4
4
|
border-width: var(--wm-popover-link-border-width);
|
|
5
5
|
border-style: var(--wm-popover-link-border-style);
|
|
6
|
-
padding
|
|
7
|
-
padding-bottom: var(--wm-popover-link-padding-bottom);
|
|
8
|
-
padding-left: var(--wm-popover-link-padding-left);
|
|
9
|
-
padding-right: var(--wm-popover-link-padding-right);
|
|
6
|
+
padding: var(--wm-popover-link-padding);
|
|
10
7
|
width: var(--wm-popover-link-width);
|
|
11
8
|
height: var(--wm-popover-link-height);
|
|
12
9
|
min-height: var(--wm-popover-link-min-height);
|
|
13
|
-
border-radius: var(--wm-popover-link-
|
|
10
|
+
border-radius: var(--wm-popover-link-radius);
|
|
14
11
|
}
|
|
15
12
|
|
|
16
13
|
.app-popover-wrapper .anchor-caption{
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
export default function geComponentTokenSchema(enabledRules?: {}): {
|
|
2
|
+
$schema: string;
|
|
3
|
+
type: string;
|
|
4
|
+
minProperties: number;
|
|
5
|
+
maxProperties: number;
|
|
6
|
+
patternProperties: {
|
|
7
|
+
"^[a-zA-Z0-9_-]+$": {
|
|
8
|
+
additionalProperties: boolean;
|
|
9
|
+
properties: {
|
|
10
|
+
meta: {
|
|
11
|
+
type: string;
|
|
12
|
+
additionalProperties: boolean;
|
|
13
|
+
};
|
|
14
|
+
mapping: {
|
|
15
|
+
type: string;
|
|
16
|
+
properties: {
|
|
17
|
+
states: {
|
|
18
|
+
type: string;
|
|
19
|
+
patternProperties: {
|
|
20
|
+
"^[a-zA-Z0-9_-]+$": {
|
|
21
|
+
type: string;
|
|
22
|
+
additionalProperties: {
|
|
23
|
+
$ref: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
additionalProperties: boolean;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
additionalProperties: {
|
|
31
|
+
$ref: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
appearances: {
|
|
35
|
+
$ref: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
required?: string[] | undefined;
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
definitions: {
|
|
43
|
+
mappingToken: {
|
|
44
|
+
additionalProperties: {
|
|
45
|
+
$ref: string;
|
|
46
|
+
};
|
|
47
|
+
if?: {
|
|
48
|
+
required: string[];
|
|
49
|
+
} | undefined;
|
|
50
|
+
then?: {
|
|
51
|
+
required: string[];
|
|
52
|
+
} | undefined;
|
|
53
|
+
type: string;
|
|
54
|
+
leafMustHaveValue: boolean;
|
|
55
|
+
properties: {
|
|
56
|
+
value: {
|
|
57
|
+
type: string;
|
|
58
|
+
minLength: number;
|
|
59
|
+
refExists: boolean;
|
|
60
|
+
};
|
|
61
|
+
type: {
|
|
62
|
+
type: string;
|
|
63
|
+
enum: string[];
|
|
64
|
+
};
|
|
65
|
+
attributes: {
|
|
66
|
+
additionalProperties: boolean;
|
|
67
|
+
required?: string[] | undefined;
|
|
68
|
+
type: string;
|
|
69
|
+
properties: {
|
|
70
|
+
subtype: {
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
description: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
appearanceNode: {
|
|
81
|
+
type: string;
|
|
82
|
+
additionalProperties: {
|
|
83
|
+
type: string;
|
|
84
|
+
properties: {
|
|
85
|
+
mapping: {
|
|
86
|
+
type: string;
|
|
87
|
+
overrideContext: boolean;
|
|
88
|
+
additionalProperties: {
|
|
89
|
+
$ref: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
states: {
|
|
93
|
+
type: string;
|
|
94
|
+
patternProperties: {
|
|
95
|
+
"^[a-zA-Z0-9_-]+$": {
|
|
96
|
+
type: string;
|
|
97
|
+
overrideContext: boolean;
|
|
98
|
+
additionalProperties: {
|
|
99
|
+
$ref: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
additionalProperties: boolean;
|
|
104
|
+
};
|
|
105
|
+
variantGroups: {
|
|
106
|
+
type: string;
|
|
107
|
+
additionalProperties: {
|
|
108
|
+
type: string;
|
|
109
|
+
additionalProperties: {
|
|
110
|
+
type: string;
|
|
111
|
+
overrideContext: boolean;
|
|
112
|
+
properties: {
|
|
113
|
+
states: {
|
|
114
|
+
type: string;
|
|
115
|
+
patternProperties: {
|
|
116
|
+
"^[a-zA-Z0-9_-]+$": {
|
|
117
|
+
type: string;
|
|
118
|
+
overrideContext: boolean;
|
|
119
|
+
additionalProperties: {
|
|
120
|
+
$ref: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
additionalProperties: boolean;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
additionalProperties: {
|
|
128
|
+
$ref: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
additionalProperties: boolean;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
overrideToken: {
|
|
138
|
+
type: string;
|
|
139
|
+
leafMustHaveValue: boolean;
|
|
140
|
+
properties: {
|
|
141
|
+
value: {
|
|
142
|
+
type: string;
|
|
143
|
+
minLength: number;
|
|
144
|
+
refExists: boolean;
|
|
145
|
+
};
|
|
146
|
+
type: {
|
|
147
|
+
type: string;
|
|
148
|
+
enum: string[];
|
|
149
|
+
};
|
|
150
|
+
attributes: {
|
|
151
|
+
type: string;
|
|
152
|
+
properties: {
|
|
153
|
+
subtype: {
|
|
154
|
+
type: string;
|
|
155
|
+
};
|
|
156
|
+
description: {
|
|
157
|
+
type: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
additionalProperties: boolean;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
additionalProperties: {
|
|
164
|
+
$ref: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
additionalProperties: boolean;
|
|
169
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { TOKEN_VALUE_TYPES } from "./constants.js";
|
|
2
|
+
export default function geComponentTokenSchema(enabledRules = {}) {
|
|
3
|
+
const hasStructure = enabledRules.structure == true;
|
|
4
|
+
const hasMetadata = enabledRules.metadata == true;
|
|
5
|
+
return {
|
|
6
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"minProperties": 1,
|
|
9
|
+
"maxProperties": 1,
|
|
10
|
+
"patternProperties": {
|
|
11
|
+
"^[a-zA-Z0-9_-]+$": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
...(hasStructure ? { required: ["mapping"] } : {}),
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"properties": {
|
|
16
|
+
"meta": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": true
|
|
19
|
+
},
|
|
20
|
+
"mapping": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"states": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"patternProperties": {
|
|
26
|
+
"^[a-zA-Z0-9_-]+$": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": { "$ref": "#/definitions/overrideToken" }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"additionalProperties": { "$ref": "#/definitions/mappingToken" }
|
|
35
|
+
},
|
|
36
|
+
"appearances": { "$ref": "#/definitions/appearanceNode" }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"definitions": {
|
|
41
|
+
"mappingToken": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"leafMustHaveValue": true,
|
|
44
|
+
"properties": {
|
|
45
|
+
"value": { "type": "string", "minLength": 1, "refExists": true },
|
|
46
|
+
"type": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": TOKEN_VALUE_TYPES
|
|
49
|
+
},
|
|
50
|
+
"attributes": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"subtype": { "type": "string" },
|
|
54
|
+
"description": { "type": "string" }
|
|
55
|
+
},
|
|
56
|
+
...(hasMetadata ? { required: ["subtype", "description"] } : {}),
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
...(hasMetadata
|
|
61
|
+
? {
|
|
62
|
+
if: { required: ["value"] },
|
|
63
|
+
then: { required: ["type", "attributes"] }
|
|
64
|
+
}
|
|
65
|
+
: {}),
|
|
66
|
+
"additionalProperties": { "$ref": "#/definitions/mappingToken" }
|
|
67
|
+
},
|
|
68
|
+
"appearanceNode": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"additionalProperties": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"mapping": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"overrideContext": true,
|
|
76
|
+
"additionalProperties": { "$ref": "#/definitions/overrideToken" }
|
|
77
|
+
},
|
|
78
|
+
"states": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"patternProperties": {
|
|
81
|
+
"^[a-zA-Z0-9_-]+$": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"overrideContext": true,
|
|
84
|
+
"additionalProperties": { "$ref": "#/definitions/overrideToken" }
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"additionalProperties": false
|
|
88
|
+
},
|
|
89
|
+
"variantGroups": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"overrideContext": true,
|
|
96
|
+
"properties": {
|
|
97
|
+
"states": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"patternProperties": {
|
|
100
|
+
"^[a-zA-Z0-9_-]+$": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"overrideContext": true,
|
|
103
|
+
"additionalProperties": {
|
|
104
|
+
"$ref": "#/definitions/overrideToken"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"additionalProperties": false
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"additionalProperties": {
|
|
112
|
+
"$ref": "#/definitions/overrideToken"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"additionalProperties": false
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"overrideToken": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"leafMustHaveValue": true,
|
|
124
|
+
"properties": {
|
|
125
|
+
"value": { "type": "string", "minLength": 1, "refExists": true },
|
|
126
|
+
"type": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"enum": TOKEN_VALUE_TYPES
|
|
129
|
+
},
|
|
130
|
+
"attributes": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"subtype": { "type": "string" },
|
|
134
|
+
"description": { "type": "string" }
|
|
135
|
+
},
|
|
136
|
+
"additionalProperties": true
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"additionalProperties": { "$ref": "#/definitions/overrideToken" }
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"additionalProperties": false
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
;
|
|
146
|
+
//# sourceMappingURL=component-token-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-token-schema.js","sourceRoot":"./","sources":["src/token-validation/component-token-schema.js"],"names":[],"mappings":"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","sourcesContent":["import { TOKEN_VALUE_TYPES } from \"./constants.js\";\n\nexport default function geComponentTokenSchema(enabledRules = {}) {\n const hasStructure = enabledRules.structure == true;\n const hasMetadata = enabledRules.metadata == true;\n \n return {\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"type\": \"object\",\n \"minProperties\": 1,\n \"maxProperties\": 1,\n\n \"patternProperties\": {\n \"^[a-zA-Z0-9_-]+$\": {\n \"type\": \"object\",\n ...(hasStructure ? { required: [\"mapping\"] } : {}),\n \"additionalProperties\": false,\n\n \"properties\": {\n \"meta\": {\n \"type\": \"object\",\n \"additionalProperties\": true\n },\n\n \"mapping\": {\n \"type\": \"object\",\n \"properties\": {\n \"states\": {\n \"type\": \"object\",\n \"patternProperties\": {\n \"^[a-zA-Z0-9_-]+$\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#/definitions/overrideToken\" }\n }\n },\n \"additionalProperties\": false\n }\n },\n \"additionalProperties\": { \"$ref\": \"#/definitions/mappingToken\" }\n },\n\n \"appearances\": { \"$ref\": \"#/definitions/appearanceNode\" }\n }\n }\n },\n\n \"definitions\": {\n \"mappingToken\": {\n \"type\": \"object\",\n \"leafMustHaveValue\": true,\n \"properties\": {\n \"value\": { \"type\": \"string\", \"minLength\": 1, \"refExists\": true },\n \"type\": {\n \"type\": \"string\",\n \"enum\": TOKEN_VALUE_TYPES\n },\n \"attributes\": {\n \"type\": \"object\",\n \"properties\": {\n \"subtype\": { \"type\": \"string\" },\n \"description\": { \"type\": \"string\" }\n },\n ...(hasMetadata ? { required: [\"subtype\", \"description\"] } : {}),\n \"additionalProperties\": false\n }\n },\n ...(hasMetadata\n ? {\n if: { required: [\"value\"] },\n then: { required: [\"type\", \"attributes\"] }\n }\n : {}),\n \"additionalProperties\": { \"$ref\": \"#/definitions/mappingToken\" }\n },\n\n \"appearanceNode\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"object\",\n \"properties\": {\n \"mapping\": {\n \"type\": \"object\",\n \"overrideContext\": true,\n \"additionalProperties\": { \"$ref\": \"#/definitions/overrideToken\" }\n },\n \"states\": {\n \"type\": \"object\",\n \"patternProperties\": {\n \"^[a-zA-Z0-9_-]+$\": {\n \"type\": \"object\",\n \"overrideContext\": true,\n \"additionalProperties\": { \"$ref\": \"#/definitions/overrideToken\" }\n }\n },\n \"additionalProperties\": false\n },\n \"variantGroups\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"object\", \n \"additionalProperties\": {\n \"type\": \"object\",\n \"overrideContext\": true,\n\n \"properties\": {\n \"states\": {\n \"type\": \"object\",\n \"patternProperties\": {\n \"^[a-zA-Z0-9_-]+$\": {\n \"type\": \"object\",\n \"overrideContext\": true,\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/overrideToken\"\n }\n }\n },\n \"additionalProperties\": false\n }\n },\n\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/overrideToken\"\n }\n }\n }\n }\n },\n\n \"additionalProperties\": false\n }\n },\n\n \"overrideToken\": {\n \"type\": \"object\",\n \"leafMustHaveValue\": true,\n \"properties\": {\n \"value\": { \"type\": \"string\", \"minLength\": 1, \"refExists\": true },\n \"type\": {\n \"type\": \"string\",\n \"enum\": TOKEN_VALUE_TYPES\n },\n \"attributes\": {\n \"type\": \"object\",\n \"properties\": {\n \"subtype\": { \"type\": \"string\" },\n \"description\": { \"type\": \"string\" }\n },\n \"additionalProperties\": true\n }\n },\n \"additionalProperties\": { \"$ref\": \"#/definitions/overrideToken\" }\n }\n },\n\n \"additionalProperties\": false\n}\n\n};\n"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export namespace VALIDATION_RULES {
|
|
2
|
+
let STRUCTURE: string;
|
|
3
|
+
let METADATA: string;
|
|
4
|
+
let REFERENCES: string;
|
|
5
|
+
let OVERRIDES: string;
|
|
6
|
+
}
|
|
7
|
+
export const ERROR_TYPES: Readonly<{
|
|
8
|
+
INVALID_REFERENCE: "reference error";
|
|
9
|
+
INVALID_FIELD: "invalid field";
|
|
10
|
+
MISSING_FIELD: "missing field";
|
|
11
|
+
INVALID_VALUE: "invalid value";
|
|
12
|
+
INVALID_STRUCTURE: "invalid structure";
|
|
13
|
+
INVALID_JSON: "invalid json";
|
|
14
|
+
BUILD_ERROR: "build error";
|
|
15
|
+
}>;
|
|
16
|
+
export const TOKEN_TYPES: Readonly<{
|
|
17
|
+
GLOBAL: "global";
|
|
18
|
+
COMPONENT: "component";
|
|
19
|
+
}>;
|
|
20
|
+
export const VALIDATION_SCOPE: Readonly<{
|
|
21
|
+
FOUNDATION: "foundation";
|
|
22
|
+
PROJECT: "project";
|
|
23
|
+
}>;
|
|
24
|
+
export const FOLDER_TYPE: Readonly<{
|
|
25
|
+
WEB: "web";
|
|
26
|
+
MOBILE: "mobile";
|
|
27
|
+
}>;
|
|
28
|
+
export const TOKEN_VALUE_TYPES: string[];
|
|
29
|
+
export const ALLOWED_PROPERTIES_BY_CONTEXT: ({
|
|
30
|
+
match: (path: any) => any;
|
|
31
|
+
allowed: string[];
|
|
32
|
+
} | {
|
|
33
|
+
match: (path: any) => any;
|
|
34
|
+
allowed: null;
|
|
35
|
+
})[];
|
|
36
|
+
export const VALUE_RELATED_KEYWORDS: Set<string>;
|
|
37
|
+
export namespace PLATFORM {
|
|
38
|
+
let WEB: string;
|
|
39
|
+
let MOBILE: string;
|
|
40
|
+
let BOTH: string;
|
|
41
|
+
}
|