@universityofmaryland/web-model-library 1.0.1 → 1.0.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_virtual/___vite-browser-external.js +6 -7
- package/dist/_virtual/___vite-browser-external.js.map +1 -1
- package/dist/_virtual/__vite-browser-external.js +3 -2
- package/dist/_virtual/__vite-browser-external.js.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +4 -4
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/index.js +7 -6
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/picocolors.browser.js +3 -3
- package/dist/_virtual/picocolors.browser.js.map +1 -1
- package/dist/_virtual/postcss.js +7 -6
- package/dist/_virtual/postcss.js.map +1 -1
- package/dist/_virtual/symbols.js +3 -3
- package/dist/_virtual/symbols.js.map +1 -1
- package/dist/attributes/checks.d.ts +1 -0
- package/dist/attributes/checks.d.ts.map +1 -1
- package/dist/attributes/checks.js +317 -331
- package/dist/attributes/checks.js.map +1 -1
- package/dist/attributes/handler.d.ts +1 -2
- package/dist/attributes/handler.d.ts.map +1 -1
- package/dist/attributes/handler.js +20 -19
- package/dist/attributes/handler.js.map +1 -1
- package/dist/attributes/index.d.ts +3 -3
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/attributes/names.d.ts +3 -3
- package/dist/attributes/names.d.ts.map +1 -1
- package/dist/attributes/names.js +5 -3
- package/dist/attributes/names.js.map +1 -1
- package/dist/attributes/values.d.ts +10 -11
- package/dist/attributes/values.d.ts.map +1 -1
- package/dist/attributes/values.js +3 -2
- package/dist/attributes/values.js.map +1 -1
- package/dist/attributes.js +21 -21
- package/dist/attributes.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/model.js +7 -7
- package/dist/model.js.map +1 -1
- package/dist/node_modules/nanoid/non-secure/index.js +3 -3
- package/dist/node_modules/nanoid/non-secure/index.js.map +1 -1
- package/dist/node_modules/picocolors/picocolors.browser.js +8 -8
- package/dist/node_modules/picocolors/picocolors.browser.js.map +1 -1
- package/dist/node_modules/postcss/lib/at-rule.js +5 -5
- package/dist/node_modules/postcss/lib/at-rule.js.map +1 -1
- package/dist/node_modules/postcss/lib/comment.js +5 -5
- package/dist/node_modules/postcss/lib/comment.js.map +1 -1
- package/dist/node_modules/postcss/lib/container.js +69 -62
- package/dist/node_modules/postcss/lib/container.js.map +1 -1
- package/dist/node_modules/postcss/lib/css-syntax-error.js +30 -19
- package/dist/node_modules/postcss/lib/css-syntax-error.js.map +1 -1
- package/dist/node_modules/postcss/lib/declaration.js +8 -8
- package/dist/node_modules/postcss/lib/declaration.js.map +1 -1
- package/dist/node_modules/postcss/lib/document.js +5 -5
- package/dist/node_modules/postcss/lib/document.js.map +1 -1
- package/dist/node_modules/postcss/lib/fromJSON.js +19 -19
- package/dist/node_modules/postcss/lib/fromJSON.js.map +1 -1
- package/dist/node_modules/postcss/lib/input.js +51 -37
- package/dist/node_modules/postcss/lib/input.js.map +1 -1
- package/dist/node_modules/postcss/lib/lazy-result.js +67 -67
- package/dist/node_modules/postcss/lib/lazy-result.js.map +1 -1
- package/dist/node_modules/postcss/lib/list.js +3 -3
- package/dist/node_modules/postcss/lib/list.js.map +1 -1
- package/dist/node_modules/postcss/lib/map-generator.js +27 -18
- package/dist/node_modules/postcss/lib/map-generator.js.map +1 -1
- package/dist/node_modules/postcss/lib/no-work-result.js +54 -51
- package/dist/node_modules/postcss/lib/no-work-result.js.map +1 -1
- package/dist/node_modules/postcss/lib/node.js +91 -38
- package/dist/node_modules/postcss/lib/node.js.map +1 -1
- package/dist/node_modules/postcss/lib/parse.js +13 -13
- package/dist/node_modules/postcss/lib/parse.js.map +1 -1
- package/dist/node_modules/postcss/lib/parser.js +21 -20
- package/dist/node_modules/postcss/lib/parser.js.map +1 -1
- package/dist/node_modules/postcss/lib/postcss.js +4 -3
- package/dist/node_modules/postcss/lib/postcss.js.map +1 -1
- package/dist/node_modules/postcss/lib/postcss2.js +43 -43
- package/dist/node_modules/postcss/lib/postcss2.js.map +1 -1
- package/dist/node_modules/postcss/lib/previous-map.js +14 -12
- package/dist/node_modules/postcss/lib/previous-map.js.map +1 -1
- package/dist/node_modules/postcss/lib/processor.js +13 -13
- package/dist/node_modules/postcss/lib/processor.js.map +1 -1
- package/dist/node_modules/postcss/lib/result.js +12 -12
- package/dist/node_modules/postcss/lib/result.js.map +1 -1
- package/dist/node_modules/postcss/lib/root.js +5 -5
- package/dist/node_modules/postcss/lib/root.js.map +1 -1
- package/dist/node_modules/postcss/lib/rule.js +13 -13
- package/dist/node_modules/postcss/lib/rule.js.map +1 -1
- package/dist/node_modules/postcss/lib/stringifier.js +3 -3
- package/dist/node_modules/postcss/lib/stringifier.js.map +1 -1
- package/dist/node_modules/postcss/lib/stringify.js +5 -5
- package/dist/node_modules/postcss/lib/stringify.js.map +1 -1
- package/dist/node_modules/postcss/lib/symbols.js +8 -8
- package/dist/node_modules/postcss/lib/symbols.js.map +1 -1
- package/dist/node_modules/postcss/lib/tokenize.js +5 -5
- package/dist/node_modules/postcss/lib/tokenize.js.map +1 -1
- package/dist/node_modules/postcss/lib/warning.js +3 -3
- package/dist/node_modules/postcss/lib/warning.js.map +1 -1
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.js +3 -3
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.js.map +1 -1
- package/dist/slots/create.js +3 -3
- package/dist/slots/create.js.map +1 -1
- package/dist/slots/element.js +3 -3
- package/dist/slots/element.js.map +1 -1
- package/dist/slots/index.d.ts +15 -16
- package/dist/slots/index.d.ts.map +1 -1
- package/dist/slots/mapping.js +3 -3
- package/dist/slots/mapping.js.map +1 -1
- package/dist/slots.d.ts +0 -4
- package/dist/slots.js +41 -40
- package/dist/slots.js.map +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/lifecycle.js +4 -4
- package/dist/utilities/lifecycle.js.map +1 -1
- package/dist/utilities/register.js +6 -6
- package/dist/utilities/register.js.map +1 -1
- package/dist/utilities/styles.d.ts +1 -2
- package/dist/utilities/styles.d.ts.map +1 -1
- package/dist/utilities/styles.js +15 -10
- package/dist/utilities/styles.js.map +1 -1
- package/dist/utilities.js +10 -10
- package/dist/utilities.js.map +1 -1
- package/package.json +13 -12
- package/dist/_virtual/___vite-browser-external.mjs +0 -7
- package/dist/_virtual/___vite-browser-external.mjs.map +0 -1
- package/dist/_virtual/__vite-browser-external.mjs +0 -5
- package/dist/_virtual/__vite-browser-external.mjs.map +0 -1
- package/dist/_virtual/_commonjsHelpers.mjs +0 -37
- package/dist/_virtual/_commonjsHelpers.mjs.map +0 -1
- package/dist/_virtual/index.mjs +0 -8
- package/dist/_virtual/index.mjs.map +0 -1
- package/dist/_virtual/picocolors.browser.mjs +0 -5
- package/dist/_virtual/picocolors.browser.mjs.map +0 -1
- package/dist/_virtual/postcss.mjs +0 -8
- package/dist/_virtual/postcss.mjs.map +0 -1
- package/dist/_virtual/symbols.mjs +0 -5
- package/dist/_virtual/symbols.mjs.map +0 -1
- package/dist/attributes/checks.mjs +0 -752
- package/dist/attributes/checks.mjs.map +0 -1
- package/dist/attributes/handler.mjs +0 -206
- package/dist/attributes/handler.mjs.map +0 -1
- package/dist/attributes/names.mjs +0 -143
- package/dist/attributes/names.mjs.map +0 -1
- package/dist/attributes/values.mjs +0 -84
- package/dist/attributes/values.mjs.map +0 -1
- package/dist/attributes.mjs +0 -22
- package/dist/attributes.mjs.map +0 -1
- package/dist/index.mjs +0 -13
- package/dist/index.mjs.map +0 -1
- package/dist/model.mjs +0 -259
- package/dist/model.mjs.map +0 -1
- package/dist/node_modules/nanoid/non-secure/index.mjs +0 -31
- package/dist/node_modules/nanoid/non-secure/index.mjs.map +0 -1
- package/dist/node_modules/picocolors/picocolors.browser.mjs +0 -17
- package/dist/node_modules/picocolors/picocolors.browser.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/at-rule.mjs +0 -30
- package/dist/node_modules/postcss/lib/at-rule.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/comment.mjs +0 -21
- package/dist/node_modules/postcss/lib/comment.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/container.mjs +0 -383
- package/dist/node_modules/postcss/lib/container.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/css-syntax-error.mjs +0 -92
- package/dist/node_modules/postcss/lib/css-syntax-error.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/declaration.mjs +0 -27
- package/dist/node_modules/postcss/lib/declaration.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/document.mjs +0 -34
- package/dist/node_modules/postcss/lib/document.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/fromJSON.mjs +0 -67
- package/dist/node_modules/postcss/lib/fromJSON.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/input.mjs +0 -216
- package/dist/node_modules/postcss/lib/input.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/lazy-result.mjs +0 -467
- package/dist/node_modules/postcss/lib/lazy-result.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/list.mjs +0 -60
- package/dist/node_modules/postcss/lib/list.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/map-generator.mjs +0 -314
- package/dist/node_modules/postcss/lib/map-generator.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/no-work-result.mjs +0 -113
- package/dist/node_modules/postcss/lib/no-work-result.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/node.mjs +0 -335
- package/dist/node_modules/postcss/lib/node.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/parse.mjs +0 -30
- package/dist/node_modules/postcss/lib/parse.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/parser.mjs +0 -543
- package/dist/node_modules/postcss/lib/parser.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/postcss.mjs +0 -29
- package/dist/node_modules/postcss/lib/postcss.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/postcss2.mjs +0 -110
- package/dist/node_modules/postcss/lib/postcss2.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/previous-map.mjs +0 -123
- package/dist/node_modules/postcss/lib/previous-map.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/processor.mjs +0 -61
- package/dist/node_modules/postcss/lib/processor.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/result.mjs +0 -44
- package/dist/node_modules/postcss/lib/result.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/root.mjs +0 -58
- package/dist/node_modules/postcss/lib/root.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/rule.mjs +0 -33
- package/dist/node_modules/postcss/lib/rule.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/stringifier.mjs +0 -308
- package/dist/node_modules/postcss/lib/stringifier.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/stringify.mjs +0 -19
- package/dist/node_modules/postcss/lib/stringify.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/symbols.mjs +0 -13
- package/dist/node_modules/postcss/lib/symbols.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/tokenize.mjs +0 -219
- package/dist/node_modules/postcss/lib/tokenize.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/warning.mjs +0 -40
- package/dist/node_modules/postcss/lib/warning.mjs.map +0 -1
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.mjs +0 -130
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.mjs.map +0 -1
- package/dist/slots/create.mjs +0 -50
- package/dist/slots/create.mjs.map +0 -1
- package/dist/slots/element.mjs +0 -42
- package/dist/slots/element.mjs.map +0 -1
- package/dist/slots/mapping.mjs +0 -101
- package/dist/slots/mapping.mjs.map +0 -1
- package/dist/slots.mjs +0 -78
- package/dist/slots.mjs.map +0 -1
- package/dist/utilities/lifecycle.mjs +0 -21
- package/dist/utilities/lifecycle.mjs.map +0 -1
- package/dist/utilities/register.mjs +0 -32
- package/dist/utilities/register.mjs.map +0 -1
- package/dist/utilities/styles.mjs +0 -80
- package/dist/utilities/styles.mjs.map +0 -1
- package/dist/utilities.mjs +0 -11
- package/dist/utilities.mjs.map +0 -1
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const names = require("./names.js");
|
|
5
|
-
const values = require("./values.js");
|
|
6
|
-
function _interopNamespaceDefault(e) {
|
|
7
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
|
-
if (e) {
|
|
9
|
-
for (const k in e) {
|
|
10
|
-
if (k !== "default") {
|
|
11
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: () => e[k]
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
n.default = e;
|
|
20
|
-
return Object.freeze(n);
|
|
21
|
-
}
|
|
22
|
-
const Styles__namespace = /* @__PURE__ */ _interopNamespaceDefault(Styles);
|
|
1
|
+
import * as Styles from "@universityofmaryland/web-styles-library";
|
|
2
|
+
import { AttributeNames } from "./names.js";
|
|
3
|
+
import { AttributeValues } from "./values.js";
|
|
23
4
|
const isAttributeTrue = ({
|
|
24
5
|
element,
|
|
25
6
|
attributeName,
|
|
@@ -105,665 +86,670 @@ const createValueGetter = ({
|
|
|
105
86
|
const hasInfo = {
|
|
106
87
|
gifts: (props) => isAttributeNotNull({
|
|
107
88
|
...props,
|
|
108
|
-
attributeName:
|
|
89
|
+
attributeName: AttributeNames.information.gift
|
|
109
90
|
}),
|
|
110
91
|
search: (props) => isAttributeNotNull({
|
|
111
92
|
...props,
|
|
112
|
-
attributeName:
|
|
93
|
+
attributeName: AttributeNames.information.search
|
|
113
94
|
})
|
|
114
95
|
};
|
|
115
96
|
const hasDecoration = {
|
|
116
97
|
line: (props) => checkDeprecatedAttribute({
|
|
117
98
|
...props,
|
|
118
|
-
attributeNameOld:
|
|
119
|
-
attributeNameNew:
|
|
99
|
+
attributeNameOld: AttributeNames.deprecated.option.OPTIONAL_HAS_LINE,
|
|
100
|
+
attributeNameNew: AttributeNames.decoration.line,
|
|
120
101
|
attributeValue: ""
|
|
121
102
|
}) || isAttributeNotNull({
|
|
122
103
|
...props,
|
|
123
|
-
attributeName:
|
|
104
|
+
attributeName: AttributeNames.decoration.line
|
|
124
105
|
})
|
|
125
106
|
};
|
|
126
107
|
const includesFeature = {
|
|
127
108
|
animation: createAttributeCheck(
|
|
128
|
-
|
|
129
|
-
|
|
109
|
+
AttributeNames.feature.animation,
|
|
110
|
+
AttributeValues.state.TRUE,
|
|
130
111
|
true
|
|
131
112
|
),
|
|
132
113
|
imageExpand: createAttributeCheck(
|
|
133
|
-
|
|
134
|
-
|
|
114
|
+
AttributeNames.feature.imageExpand,
|
|
115
|
+
AttributeValues.state.TRUE,
|
|
135
116
|
true
|
|
136
117
|
),
|
|
137
118
|
fullScreenOption: createAttributeCheck(
|
|
138
|
-
|
|
139
|
-
|
|
119
|
+
AttributeNames.deprecated.feature.FULLSCREEN,
|
|
120
|
+
AttributeValues.state.TRUE,
|
|
140
121
|
true
|
|
141
122
|
),
|
|
142
123
|
visualTime: createAttributeCheck(
|
|
143
|
-
|
|
144
|
-
|
|
124
|
+
AttributeNames.deprecated.feature.SHOW_TIME,
|
|
125
|
+
AttributeValues.state.TRUE,
|
|
145
126
|
true
|
|
146
127
|
),
|
|
147
128
|
lazyLoad: (props) => checkDeprecatedAttribute({
|
|
148
129
|
...props,
|
|
149
|
-
attributeNameOld:
|
|
150
|
-
attributeNameNew:
|
|
151
|
-
attributeValue:
|
|
130
|
+
attributeNameOld: AttributeNames.deprecated.feed.FEED_LAZY_LOAD,
|
|
131
|
+
attributeNameNew: AttributeNames.feature.lazyLoad,
|
|
132
|
+
attributeValue: AttributeValues.state.TRUE
|
|
152
133
|
}) || isAttributeTrue({
|
|
153
134
|
...props,
|
|
154
|
-
attributeName:
|
|
155
|
-
attributeValue:
|
|
135
|
+
attributeName: AttributeNames.feature.lazyLoad,
|
|
136
|
+
attributeValue: AttributeValues.state.TRUE
|
|
156
137
|
})
|
|
157
138
|
};
|
|
158
139
|
const isData = {
|
|
159
140
|
type: {
|
|
160
141
|
academic: (props) => checkDeprecatedAttribute({
|
|
161
142
|
...props,
|
|
162
|
-
attributeNameOld:
|
|
163
|
-
attributeNameNew:
|
|
164
|
-
attributeValue:
|
|
143
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
144
|
+
attributeNameNew: AttributeNames.feed.type,
|
|
145
|
+
attributeValue: AttributeValues.data.type.academic
|
|
165
146
|
}) || isAttributeTrue({
|
|
166
147
|
...props,
|
|
167
|
-
attributeName:
|
|
168
|
-
attributeValue:
|
|
148
|
+
attributeName: AttributeNames.feed.type,
|
|
149
|
+
attributeValue: AttributeValues.data.type.academic
|
|
169
150
|
})
|
|
170
151
|
},
|
|
171
152
|
union: createAttributeCheck(
|
|
172
|
-
|
|
173
|
-
|
|
153
|
+
AttributeNames.deprecated.feed.FEED_UNION,
|
|
154
|
+
AttributeValues.state.FALSE,
|
|
174
155
|
true
|
|
175
156
|
)
|
|
176
157
|
};
|
|
177
158
|
const isDisplay = {
|
|
178
159
|
block: (props) => checkDeprecatedAttribute({
|
|
179
160
|
...props,
|
|
180
|
-
attributeNameOld:
|
|
181
|
-
attributeNameNew:
|
|
182
|
-
attributeValue:
|
|
161
|
+
attributeNameOld: AttributeNames.deprecated.display.DISPLAY_TYPE,
|
|
162
|
+
attributeNameNew: AttributeNames.display.default,
|
|
163
|
+
attributeValue: AttributeValues.display.block
|
|
183
164
|
}) || isAttributeTrue({
|
|
184
165
|
...props,
|
|
185
|
-
attributeName:
|
|
186
|
-
attributeValue:
|
|
166
|
+
attributeName: AttributeNames.display.default,
|
|
167
|
+
attributeValue: AttributeValues.display.block
|
|
187
168
|
}),
|
|
188
169
|
feature: createAttributeCheck(
|
|
189
|
-
|
|
190
|
-
|
|
170
|
+
AttributeNames.deprecated.display.DISPLAY,
|
|
171
|
+
AttributeValues.display.feature
|
|
191
172
|
),
|
|
192
173
|
featured: (props) => checkDeprecatedAttribute({
|
|
193
174
|
...props,
|
|
194
|
-
attributeNameOld:
|
|
195
|
-
attributeNameNew:
|
|
196
|
-
attributeValue:
|
|
175
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
176
|
+
attributeNameNew: AttributeNames.display.default,
|
|
177
|
+
attributeValue: AttributeValues.display.featured
|
|
197
178
|
}) || isAttributeTrue({
|
|
198
179
|
...props,
|
|
199
|
-
attributeName:
|
|
200
|
-
attributeValue:
|
|
180
|
+
attributeName: AttributeNames.display.default,
|
|
181
|
+
attributeValue: AttributeValues.display.featured
|
|
201
182
|
}),
|
|
202
183
|
hero: (props) => checkDeprecatedAttribute({
|
|
203
184
|
...props,
|
|
204
|
-
attributeNameOld:
|
|
205
|
-
attributeNameNew:
|
|
206
|
-
attributeValue:
|
|
185
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
186
|
+
attributeNameNew: AttributeNames.display.default,
|
|
187
|
+
attributeValue: AttributeValues.display.hero
|
|
207
188
|
}) || isAttributeTrue({
|
|
208
189
|
...props,
|
|
209
|
-
attributeName:
|
|
210
|
-
attributeValue:
|
|
190
|
+
attributeName: AttributeNames.display.default,
|
|
191
|
+
attributeValue: AttributeValues.display.hero
|
|
211
192
|
}),
|
|
212
193
|
list: (props) => checkDeprecatedAttribute({
|
|
213
194
|
...props,
|
|
214
|
-
attributeNameOld:
|
|
215
|
-
attributeNameNew:
|
|
216
|
-
attributeValue:
|
|
195
|
+
attributeNameOld: AttributeNames.deprecated.display.DISPLAY,
|
|
196
|
+
attributeNameNew: AttributeNames.display.default,
|
|
197
|
+
attributeValue: AttributeValues.display.list
|
|
217
198
|
}) || isAttributeTrue({
|
|
218
199
|
...props,
|
|
219
|
-
attributeName:
|
|
220
|
-
attributeValue:
|
|
200
|
+
attributeName: AttributeNames.display.default,
|
|
201
|
+
attributeValue: AttributeValues.display.list
|
|
221
202
|
}),
|
|
222
203
|
outline: (props) => checkDeprecatedAttribute({
|
|
223
204
|
...props,
|
|
224
|
-
attributeNameOld:
|
|
225
|
-
attributeNameNew:
|
|
226
|
-
attributeValue:
|
|
205
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
206
|
+
attributeNameNew: AttributeNames.display.default,
|
|
207
|
+
attributeValue: AttributeValues.type.OUTLINE
|
|
227
208
|
}) || isAttributeTrue({
|
|
228
209
|
...props,
|
|
229
|
-
attributeName:
|
|
230
|
-
attributeValue:
|
|
210
|
+
attributeName: AttributeNames.display.default,
|
|
211
|
+
attributeValue: AttributeValues.type.OUTLINE
|
|
231
212
|
}),
|
|
232
213
|
overlay: (props) => checkDeprecatedAttribute({
|
|
233
214
|
...props,
|
|
234
|
-
attributeNameOld:
|
|
235
|
-
attributeNameNew:
|
|
236
|
-
attributeValue:
|
|
215
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
216
|
+
attributeNameNew: AttributeNames.display.default,
|
|
217
|
+
attributeValue: AttributeValues.display.overlay
|
|
237
218
|
}) || isAttributeTrue({
|
|
238
219
|
...props,
|
|
239
|
-
attributeName:
|
|
240
|
-
attributeValue:
|
|
220
|
+
attributeName: AttributeNames.display.default,
|
|
221
|
+
attributeValue: AttributeValues.display.overlay
|
|
241
222
|
}),
|
|
242
223
|
promo: createAttributeCheck(
|
|
243
|
-
|
|
244
|
-
|
|
224
|
+
AttributeNames.deprecated.display.DISPLAY,
|
|
225
|
+
AttributeValues.display.promo
|
|
245
226
|
),
|
|
246
227
|
primary: (props) => checkDeprecatedAttribute({
|
|
247
228
|
...props,
|
|
248
|
-
attributeNameOld:
|
|
249
|
-
attributeNameNew:
|
|
250
|
-
attributeValue:
|
|
229
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
230
|
+
attributeNameNew: AttributeNames.display.default,
|
|
231
|
+
attributeValue: AttributeValues.type.PRIMARY
|
|
251
232
|
}) || isAttributeTrue({
|
|
252
233
|
...props,
|
|
253
|
-
attributeName:
|
|
254
|
-
attributeValue:
|
|
234
|
+
attributeName: AttributeNames.display.default,
|
|
235
|
+
attributeValue: AttributeValues.type.PRIMARY
|
|
255
236
|
}),
|
|
256
237
|
secondary: (props) => checkDeprecatedAttribute({
|
|
257
238
|
...props,
|
|
258
|
-
attributeNameOld:
|
|
259
|
-
attributeNameNew:
|
|
260
|
-
attributeValue:
|
|
239
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
240
|
+
attributeNameNew: AttributeNames.display.default,
|
|
241
|
+
attributeValue: AttributeValues.type.SECONDARY
|
|
261
242
|
}) || isAttributeTrue({
|
|
262
243
|
...props,
|
|
263
|
-
attributeName:
|
|
264
|
-
attributeValue:
|
|
244
|
+
attributeName: AttributeNames.display.default,
|
|
245
|
+
attributeValue: AttributeValues.type.SECONDARY
|
|
265
246
|
}),
|
|
266
247
|
short: createAttributeCheck(
|
|
267
|
-
|
|
268
|
-
|
|
248
|
+
AttributeNames.display.default,
|
|
249
|
+
AttributeValues.display.short
|
|
269
250
|
),
|
|
270
251
|
standardCentered: (props) => checkDeprecatedAttribute({
|
|
271
252
|
...props,
|
|
272
|
-
attributeNameOld:
|
|
273
|
-
attributeNameNew:
|
|
274
|
-
attributeValue:
|
|
253
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
254
|
+
attributeNameNew: AttributeNames.display.default,
|
|
255
|
+
attributeValue: AttributeValues.layout.defaultCentered
|
|
275
256
|
}) || isAttributeTrue({
|
|
276
257
|
...props,
|
|
277
|
-
attributeName:
|
|
278
|
-
attributeValue:
|
|
258
|
+
attributeName: AttributeNames.deprecated.type.TYPE,
|
|
259
|
+
attributeValue: AttributeValues.layout.defaultCentered
|
|
279
260
|
}),
|
|
280
261
|
standardInterior: (props) => checkDeprecatedAttribute({
|
|
281
262
|
...props,
|
|
282
|
-
attributeNameOld:
|
|
283
|
-
attributeNameNew:
|
|
284
|
-
attributeValue:
|
|
263
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
264
|
+
attributeNameNew: AttributeNames.display.default,
|
|
265
|
+
attributeValue: AttributeValues.layout.defaultInterior
|
|
285
266
|
}) || isAttributeTrue({
|
|
286
267
|
...props,
|
|
287
|
-
attributeName:
|
|
288
|
-
attributeValue:
|
|
268
|
+
attributeName: AttributeNames.deprecated.type.TYPE,
|
|
269
|
+
attributeValue: AttributeValues.layout.defaultInterior
|
|
289
270
|
}),
|
|
290
271
|
standardInteriorCentered: (props) => checkDeprecatedAttribute({
|
|
291
272
|
...props,
|
|
292
|
-
attributeNameOld:
|
|
293
|
-
attributeNameNew:
|
|
294
|
-
attributeValue:
|
|
273
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
274
|
+
attributeNameNew: AttributeNames.display.default,
|
|
275
|
+
attributeValue: AttributeValues.layout.defaultInteriorCentered
|
|
295
276
|
}) || isAttributeTrue({
|
|
296
277
|
...props,
|
|
297
|
-
attributeName:
|
|
298
|
-
attributeValue:
|
|
278
|
+
attributeName: AttributeNames.deprecated.type.TYPE,
|
|
279
|
+
attributeValue: AttributeValues.layout.defaultInteriorCentered
|
|
299
280
|
}),
|
|
300
281
|
statement: createAttributeCheck(
|
|
301
|
-
|
|
302
|
-
|
|
282
|
+
AttributeNames.deprecated.display.DISPLAY,
|
|
283
|
+
AttributeValues.display.statement
|
|
303
284
|
),
|
|
304
285
|
sticky: (props) => checkDeprecatedAttribute({
|
|
305
286
|
...props,
|
|
306
|
-
attributeNameOld:
|
|
307
|
-
attributeNameNew:
|
|
308
|
-
attributeValue:
|
|
287
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
288
|
+
attributeNameNew: AttributeNames.display.default,
|
|
289
|
+
attributeValue: AttributeValues.display.sticky
|
|
309
290
|
}) || isAttributeTrue({
|
|
310
291
|
...props,
|
|
311
|
-
attributeName:
|
|
312
|
-
attributeValue:
|
|
292
|
+
attributeName: AttributeNames.display.default,
|
|
293
|
+
attributeValue: AttributeValues.display.sticky
|
|
313
294
|
}),
|
|
314
295
|
stacked: (props) => checkDeprecatedAttribute({
|
|
315
296
|
...props,
|
|
316
|
-
attributeNameOld:
|
|
317
|
-
attributeNameNew:
|
|
318
|
-
attributeValue:
|
|
297
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
298
|
+
attributeNameNew: AttributeNames.display.default,
|
|
299
|
+
attributeValue: AttributeValues.display.stacked
|
|
319
300
|
}) || isAttributeTrue({
|
|
320
301
|
...props,
|
|
321
|
-
attributeName:
|
|
322
|
-
attributeValue:
|
|
302
|
+
attributeName: AttributeNames.display.default,
|
|
303
|
+
attributeValue: AttributeValues.display.stacked
|
|
323
304
|
}),
|
|
324
305
|
stackedInteriorDeprecated: createAttributeCheck(
|
|
325
|
-
|
|
326
|
-
|
|
306
|
+
AttributeNames.deprecated.type.TYPE,
|
|
307
|
+
AttributeValues.layout.stackedInterior
|
|
327
308
|
),
|
|
328
309
|
stackedInterior: (props) => checkDeprecatedAttribute({
|
|
329
310
|
...props,
|
|
330
|
-
attributeNameOld:
|
|
331
|
-
attributeNameNew:
|
|
332
|
-
attributeValue:
|
|
311
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
312
|
+
attributeNameNew: AttributeNames.display.default,
|
|
313
|
+
attributeValue: AttributeValues.layout.stackedInterior
|
|
333
314
|
}) || isAttributeTrue({
|
|
334
315
|
...props,
|
|
335
|
-
attributeName:
|
|
336
|
-
attributeValue:
|
|
316
|
+
attributeName: AttributeNames.display.default,
|
|
317
|
+
attributeValue: AttributeValues.layout.stackedInterior
|
|
337
318
|
}),
|
|
338
319
|
tabular: (props) => checkDeprecatedAttribute({
|
|
339
320
|
...props,
|
|
340
|
-
attributeNameOld:
|
|
341
|
-
attributeNameNew:
|
|
342
|
-
attributeValue:
|
|
321
|
+
attributeNameOld: AttributeNames.deprecated.display.DISPLAY,
|
|
322
|
+
attributeNameNew: AttributeNames.display.default,
|
|
323
|
+
attributeValue: AttributeValues.display.tabular
|
|
343
324
|
}) || isAttributeTrue({
|
|
344
325
|
...props,
|
|
345
|
-
attributeName:
|
|
346
|
-
attributeValue:
|
|
326
|
+
attributeName: AttributeNames.display.default,
|
|
327
|
+
attributeValue: AttributeValues.display.tabular
|
|
347
328
|
}),
|
|
348
329
|
mega: (props) => checkDeprecatedAttribute({
|
|
349
330
|
...props,
|
|
350
|
-
attributeNameOld:
|
|
351
|
-
attributeNameNew:
|
|
352
|
-
attributeValue:
|
|
331
|
+
attributeNameOld: AttributeNames.deprecated.type.DATA_TYPE,
|
|
332
|
+
attributeNameNew: AttributeNames.display.default,
|
|
333
|
+
attributeValue: AttributeValues.display.mega
|
|
353
334
|
}) || checkDeprecatedAttribute({
|
|
354
335
|
...props,
|
|
355
|
-
attributeNameOld:
|
|
356
|
-
attributeNameNew:
|
|
357
|
-
attributeValue:
|
|
336
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
337
|
+
attributeNameNew: AttributeNames.display.default,
|
|
338
|
+
attributeValue: AttributeValues.display.mega
|
|
358
339
|
}) || isAttributeTrue({
|
|
359
340
|
...props,
|
|
360
|
-
attributeName:
|
|
361
|
-
attributeValue:
|
|
341
|
+
attributeName: AttributeNames.display.default,
|
|
342
|
+
attributeValue: AttributeValues.display.mega
|
|
362
343
|
}),
|
|
363
344
|
visual: (props) => checkDeprecatedAttribute({
|
|
364
345
|
...props,
|
|
365
|
-
attributeNameOld:
|
|
366
|
-
attributeNameNew:
|
|
367
|
-
attributeValue:
|
|
346
|
+
attributeNameOld: AttributeNames.deprecated.type.DATA_TYPE,
|
|
347
|
+
attributeNameNew: AttributeNames.display.default,
|
|
348
|
+
attributeValue: AttributeValues.display.visual
|
|
368
349
|
}) || checkDeprecatedAttribute({
|
|
369
350
|
...props,
|
|
370
|
-
attributeNameOld:
|
|
371
|
-
attributeNameNew:
|
|
372
|
-
attributeValue:
|
|
351
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
352
|
+
attributeNameNew: AttributeNames.display.default,
|
|
353
|
+
attributeValue: AttributeValues.display.visual
|
|
373
354
|
}) || isAttributeTrue({
|
|
374
355
|
...props,
|
|
375
|
-
attributeName:
|
|
376
|
-
attributeValue:
|
|
356
|
+
attributeName: AttributeNames.display.default,
|
|
357
|
+
attributeValue: AttributeValues.display.visual
|
|
377
358
|
}),
|
|
378
359
|
simple: (props) => checkDeprecatedAttribute({
|
|
379
360
|
...props,
|
|
380
|
-
attributeNameOld:
|
|
381
|
-
attributeNameNew:
|
|
382
|
-
attributeValue:
|
|
361
|
+
attributeNameOld: AttributeNames.deprecated.type.DATA_TYPE,
|
|
362
|
+
attributeNameNew: AttributeNames.display.default,
|
|
363
|
+
attributeValue: AttributeValues.display.simple
|
|
383
364
|
}) || checkDeprecatedAttribute({
|
|
384
365
|
...props,
|
|
385
|
-
attributeNameOld:
|
|
386
|
-
attributeNameNew:
|
|
387
|
-
attributeValue:
|
|
366
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
367
|
+
attributeNameNew: AttributeNames.display.default,
|
|
368
|
+
attributeValue: AttributeValues.display.simple
|
|
388
369
|
}) || isAttributeTrue({
|
|
389
370
|
...props,
|
|
390
|
-
attributeName:
|
|
391
|
-
attributeValue:
|
|
371
|
+
attributeName: AttributeNames.display.default,
|
|
372
|
+
attributeValue: AttributeValues.display.simple
|
|
392
373
|
})
|
|
393
374
|
};
|
|
394
375
|
const isInfo = {
|
|
395
376
|
admissions: createAttributeCheck(
|
|
396
|
-
|
|
397
|
-
|
|
377
|
+
AttributeNames.information.admissions,
|
|
378
|
+
AttributeValues.state.TRUE
|
|
398
379
|
),
|
|
399
380
|
events: createAttributeCheck(
|
|
400
|
-
|
|
401
|
-
|
|
381
|
+
AttributeNames.information.events,
|
|
382
|
+
AttributeValues.state.TRUE
|
|
402
383
|
),
|
|
403
384
|
news: createAttributeCheck(
|
|
404
|
-
|
|
405
|
-
|
|
385
|
+
AttributeNames.information.news,
|
|
386
|
+
AttributeValues.state.TRUE
|
|
406
387
|
),
|
|
407
388
|
schools: createAttributeCheck(
|
|
408
|
-
|
|
409
|
-
|
|
389
|
+
AttributeNames.information.schools,
|
|
390
|
+
AttributeValues.state.TRUE
|
|
410
391
|
),
|
|
411
392
|
searchDomain: createAttributeCheck(
|
|
412
|
-
|
|
413
|
-
|
|
393
|
+
AttributeNames.information.searchType,
|
|
394
|
+
AttributeValues.search.domain
|
|
414
395
|
)
|
|
415
396
|
};
|
|
416
397
|
const isLayout = {
|
|
417
398
|
alertOff: createAttributeCheck(
|
|
418
|
-
|
|
419
|
-
|
|
399
|
+
AttributeNames.layout.alertOff,
|
|
400
|
+
AttributeValues.state.TRUE
|
|
420
401
|
),
|
|
421
402
|
alignmentRight: (props) => checkDeprecatedAttribute({
|
|
422
403
|
...props,
|
|
423
|
-
attributeNameOld:
|
|
424
|
-
attributeNameNew:
|
|
425
|
-
attributeValue:
|
|
404
|
+
attributeNameOld: AttributeNames.deprecated.layout.LAYOUT_ALIGNMENT,
|
|
405
|
+
attributeNameNew: AttributeNames.layout.alignment,
|
|
406
|
+
attributeValue: AttributeValues.layout.right
|
|
426
407
|
}) || isAttributeTrue({
|
|
427
408
|
...props,
|
|
428
|
-
attributeName:
|
|
429
|
-
attributeValue:
|
|
409
|
+
attributeName: AttributeNames.layout.alignment,
|
|
410
|
+
attributeValue: AttributeValues.layout.right
|
|
430
411
|
}),
|
|
431
412
|
fixed: (props) => checkDeprecatedAttribute({
|
|
432
413
|
...props,
|
|
433
|
-
attributeNameOld:
|
|
434
|
-
attributeNameNew:
|
|
414
|
+
attributeNameOld: AttributeNames.deprecated.layout.LAYOUT_FIXED,
|
|
415
|
+
attributeNameNew: AttributeNames.layout.fixed,
|
|
435
416
|
attributeValue: ""
|
|
436
417
|
}) || isAttributeTrue({
|
|
437
418
|
...props,
|
|
438
|
-
attributeName:
|
|
439
|
-
attributeValue:
|
|
419
|
+
attributeName: AttributeNames.layout.fixed,
|
|
420
|
+
attributeValue: AttributeValues.state.TRUE
|
|
440
421
|
}),
|
|
441
422
|
fullImage: createAttributeCheck(
|
|
442
|
-
|
|
443
|
-
|
|
423
|
+
AttributeNames.deprecated.type.TYPE,
|
|
424
|
+
AttributeValues.layout.fullImage
|
|
444
425
|
),
|
|
445
426
|
heightSmall: (props) => isAttributeTrue({
|
|
446
427
|
...props,
|
|
447
|
-
attributeName:
|
|
448
|
-
attributeValue:
|
|
428
|
+
attributeName: AttributeNames.layout.height,
|
|
429
|
+
attributeValue: AttributeValues.layout.small
|
|
449
430
|
}),
|
|
450
431
|
hidden: createAttributeCheck(
|
|
451
|
-
|
|
452
|
-
|
|
432
|
+
AttributeNames.layout.hidden,
|
|
433
|
+
AttributeValues.state.TRUE
|
|
453
434
|
),
|
|
454
435
|
image: createAttributeCheck(
|
|
455
|
-
|
|
456
|
-
|
|
436
|
+
AttributeNames.deprecated.type.TYPE,
|
|
437
|
+
AttributeValues.display.image
|
|
457
438
|
),
|
|
458
439
|
imagePositionRight: (props) => checkDeprecatedAttribute({
|
|
459
440
|
...props,
|
|
460
|
-
attributeNameOld:
|
|
461
|
-
attributeNameNew:
|
|
462
|
-
attributeValue:
|
|
441
|
+
attributeNameOld: AttributeNames.deprecated.layout.LAYOUT_IMAGE_POSITION,
|
|
442
|
+
attributeNameNew: AttributeNames.layout.imagePosition,
|
|
443
|
+
attributeValue: AttributeValues.layout.right
|
|
463
444
|
}) || isAttributeTrue({
|
|
464
445
|
...props,
|
|
465
|
-
attributeName:
|
|
466
|
-
attributeValue:
|
|
446
|
+
attributeName: AttributeNames.layout.imagePosition,
|
|
447
|
+
attributeValue: AttributeValues.layout.right,
|
|
467
448
|
defaultValue: true
|
|
468
449
|
}),
|
|
469
450
|
imagePositionLeft: (props) => checkDeprecatedAttribute({
|
|
470
451
|
...props,
|
|
471
|
-
attributeNameOld:
|
|
472
|
-
attributeNameNew:
|
|
473
|
-
attributeValue:
|
|
452
|
+
attributeNameOld: AttributeNames.deprecated.layout.LAYOUT_IMAGE_POSITION,
|
|
453
|
+
attributeNameNew: AttributeNames.layout.imagePosition,
|
|
454
|
+
attributeValue: AttributeValues.layout.left
|
|
474
455
|
}) || isAttributeTrue({
|
|
475
456
|
...props,
|
|
476
|
-
attributeName:
|
|
477
|
-
attributeValue:
|
|
457
|
+
attributeName: AttributeNames.layout.imagePosition,
|
|
458
|
+
attributeValue: AttributeValues.layout.left,
|
|
478
459
|
defaultValue: false
|
|
479
460
|
}),
|
|
480
461
|
imageScaled: (props) => isAttributeTrue({
|
|
481
462
|
...props,
|
|
482
|
-
attributeName:
|
|
483
|
-
attributeValue:
|
|
463
|
+
attributeName: AttributeNames.layout.imageScaled,
|
|
464
|
+
attributeValue: AttributeValues.state.TRUE,
|
|
484
465
|
defaultValue: true
|
|
485
466
|
}),
|
|
486
467
|
interior: createAttributeCheck(
|
|
487
|
-
|
|
488
|
-
|
|
468
|
+
AttributeNames.layout.interior,
|
|
469
|
+
AttributeValues.state.TRUE
|
|
489
470
|
),
|
|
490
471
|
lock: createAttributeCheck(
|
|
491
|
-
|
|
492
|
-
|
|
472
|
+
AttributeNames.layout.lock,
|
|
473
|
+
AttributeValues.state.TRUE
|
|
493
474
|
),
|
|
494
475
|
lockFull: createAttributeCheck(
|
|
495
|
-
|
|
496
|
-
|
|
476
|
+
AttributeNames.layout.lock,
|
|
477
|
+
AttributeValues.layout.large
|
|
497
478
|
),
|
|
498
479
|
reverse: (props) => checkDeprecatedAttribute({
|
|
499
480
|
...props,
|
|
500
|
-
attributeNameOld:
|
|
501
|
-
attributeNameNew:
|
|
502
|
-
attributeValue:
|
|
481
|
+
attributeNameOld: AttributeNames.deprecated.layout.DEFAULT,
|
|
482
|
+
attributeNameNew: AttributeNames.layout.reverse,
|
|
483
|
+
attributeValue: AttributeValues.state.TRUE
|
|
503
484
|
}) || isAttributeTrue({
|
|
504
485
|
...props,
|
|
505
|
-
attributeName:
|
|
506
|
-
attributeValue:
|
|
486
|
+
attributeName: AttributeNames.layout.reverse,
|
|
487
|
+
attributeValue: AttributeValues.state.TRUE
|
|
507
488
|
}),
|
|
508
489
|
spaceHorizontalLarge: (props) => isAttributeTrue({
|
|
509
490
|
...props,
|
|
510
|
-
attributeName:
|
|
511
|
-
attributeValue:
|
|
491
|
+
attributeName: AttributeNames.layout.spaceHorizontal,
|
|
492
|
+
attributeValue: AttributeValues.layout.large
|
|
512
493
|
}),
|
|
513
494
|
textCentered: (props) => checkDeprecatedAttribute({
|
|
514
495
|
...props,
|
|
515
|
-
attributeNameOld:
|
|
516
|
-
attributeNameNew:
|
|
517
|
-
attributeValue:
|
|
496
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_TEXT_CENTER,
|
|
497
|
+
attributeNameNew: AttributeNames.layout.text,
|
|
498
|
+
attributeValue: AttributeValues.layout.center
|
|
518
499
|
}) || isAttributeTrue({
|
|
519
500
|
...props,
|
|
520
|
-
attributeName:
|
|
521
|
-
attributeValue:
|
|
501
|
+
attributeName: AttributeNames.layout.text,
|
|
502
|
+
attributeValue: AttributeValues.layout.center
|
|
522
503
|
})
|
|
523
504
|
};
|
|
524
505
|
const isSharing = {
|
|
525
506
|
email: createAttributeCheck(
|
|
526
|
-
|
|
527
|
-
|
|
507
|
+
AttributeNames.sharing.email,
|
|
508
|
+
AttributeValues.state.TRUE
|
|
528
509
|
),
|
|
529
510
|
print: createAttributeCheck(
|
|
530
|
-
|
|
531
|
-
|
|
511
|
+
AttributeNames.sharing.print,
|
|
512
|
+
AttributeValues.state.TRUE
|
|
532
513
|
)
|
|
533
514
|
};
|
|
534
515
|
const includesSharing = {
|
|
535
516
|
facebook: createAttributeCheck(
|
|
536
|
-
|
|
537
|
-
|
|
517
|
+
AttributeNames.social.facebook,
|
|
518
|
+
AttributeValues.state.TRUE,
|
|
538
519
|
true
|
|
539
520
|
),
|
|
540
521
|
twitter: createAttributeCheck(
|
|
541
|
-
|
|
542
|
-
|
|
522
|
+
AttributeNames.social.twitter,
|
|
523
|
+
AttributeValues.state.TRUE,
|
|
543
524
|
true
|
|
544
525
|
)
|
|
545
526
|
};
|
|
546
527
|
const isTheme = {
|
|
547
528
|
dark: (props) => checkDeprecatedAttribute({
|
|
548
529
|
...props,
|
|
549
|
-
attributeNameOld:
|
|
550
|
-
attributeNameNew:
|
|
551
|
-
attributeValue:
|
|
530
|
+
attributeNameOld: AttributeNames.deprecated.theme.THEME_DEPRECATD,
|
|
531
|
+
attributeNameNew: AttributeNames.theme.default,
|
|
532
|
+
attributeValue: AttributeValues.theme.DARK
|
|
552
533
|
}) || isAttributeTrue({
|
|
553
534
|
...props,
|
|
554
|
-
attributeName:
|
|
555
|
-
attributeValue:
|
|
535
|
+
attributeName: AttributeNames.theme.default,
|
|
536
|
+
attributeValue: AttributeValues.theme.DARK
|
|
556
537
|
}),
|
|
557
538
|
gold: (props) => checkDeprecatedAttribute({
|
|
558
539
|
...props,
|
|
559
|
-
attributeNameOld:
|
|
560
|
-
attributeNameNew:
|
|
561
|
-
attributeValue:
|
|
540
|
+
attributeNameOld: AttributeNames.deprecated.theme.THEME_DEPRECATD,
|
|
541
|
+
attributeNameNew: AttributeNames.theme.default,
|
|
542
|
+
attributeValue: AttributeValues.theme.GOLD
|
|
562
543
|
}) || isAttributeTrue({
|
|
563
544
|
...props,
|
|
564
|
-
attributeName:
|
|
565
|
-
attributeValue:
|
|
545
|
+
attributeName: AttributeNames.theme.default,
|
|
546
|
+
attributeValue: AttributeValues.theme.GOLD
|
|
566
547
|
}),
|
|
567
548
|
light: (props) => checkDeprecatedAttribute({
|
|
568
549
|
...props,
|
|
569
|
-
attributeNameOld:
|
|
570
|
-
attributeNameNew:
|
|
571
|
-
attributeValue:
|
|
550
|
+
attributeNameOld: AttributeNames.deprecated.theme.THEME_DEPRECATD,
|
|
551
|
+
attributeNameNew: AttributeNames.theme.default,
|
|
552
|
+
attributeValue: AttributeValues.theme.LIGHT
|
|
572
553
|
}) || isAttributeTrue({
|
|
573
554
|
...props,
|
|
574
|
-
attributeName:
|
|
575
|
-
attributeValue:
|
|
555
|
+
attributeName: AttributeNames.theme.default,
|
|
556
|
+
attributeValue: AttributeValues.theme.LIGHT
|
|
576
557
|
}),
|
|
577
558
|
maryland: (props) => checkDeprecatedAttribute({
|
|
578
559
|
...props,
|
|
579
|
-
attributeNameOld:
|
|
580
|
-
attributeNameNew:
|
|
581
|
-
attributeValue:
|
|
560
|
+
attributeNameOld: AttributeNames.deprecated.theme.THEME_DEPRECATD,
|
|
561
|
+
attributeNameNew: AttributeNames.theme.default,
|
|
562
|
+
attributeValue: AttributeValues.theme.MARYLAND
|
|
582
563
|
}) || isAttributeTrue({
|
|
583
564
|
...props,
|
|
584
|
-
attributeName:
|
|
585
|
-
attributeValue:
|
|
565
|
+
attributeName: AttributeNames.theme.default,
|
|
566
|
+
attributeValue: AttributeValues.theme.MARYLAND
|
|
586
567
|
})
|
|
587
568
|
};
|
|
588
569
|
const isVisual = {
|
|
589
570
|
aligned: (props) => checkDeprecatedAttribute({
|
|
590
571
|
...props,
|
|
591
|
-
attributeNameOld:
|
|
592
|
-
attributeNameNew:
|
|
593
|
-
attributeValue:
|
|
572
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_ALIGN,
|
|
573
|
+
attributeNameNew: AttributeNames.visual.imageAligned,
|
|
574
|
+
attributeValue: AttributeValues.state.TRUE
|
|
594
575
|
}) || isAttributeTrue({
|
|
595
576
|
...props,
|
|
596
|
-
attributeName:
|
|
597
|
-
attributeValue:
|
|
577
|
+
attributeName: AttributeNames.visual.imageAligned,
|
|
578
|
+
attributeValue: AttributeValues.state.TRUE
|
|
598
579
|
}),
|
|
599
580
|
bordered: (props) => checkDeprecatedAttribute({
|
|
600
581
|
...props,
|
|
601
|
-
attributeNameOld:
|
|
602
|
-
attributeNameNew:
|
|
603
|
-
attributeValue:
|
|
582
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_BORDER,
|
|
583
|
+
attributeNameNew: AttributeNames.visual.bordered,
|
|
584
|
+
attributeValue: AttributeValues.state.TRUE
|
|
604
585
|
}) || isAttributeTrue({
|
|
605
586
|
...props,
|
|
606
|
-
attributeName:
|
|
607
|
-
attributeValue:
|
|
587
|
+
attributeName: AttributeNames.visual.bordered,
|
|
588
|
+
attributeValue: AttributeValues.state.TRUE
|
|
608
589
|
}),
|
|
609
590
|
campaign: createAttributeCheck(
|
|
610
|
-
|
|
611
|
-
|
|
591
|
+
AttributeNames.visual.campaign,
|
|
592
|
+
AttributeValues.campaign.forward
|
|
612
593
|
),
|
|
613
594
|
icon_seal: (props) => checkDeprecatedAttribute({
|
|
614
595
|
...props,
|
|
615
|
-
attributeNameOld:
|
|
616
|
-
attributeNameNew:
|
|
617
|
-
attributeValue:
|
|
596
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_HAS_LOGO,
|
|
597
|
+
attributeNameNew: AttributeNames.visual.iconSeal,
|
|
598
|
+
attributeValue: AttributeValues.state.TRUE
|
|
618
599
|
}) || isAttributeTrue({
|
|
619
600
|
...props,
|
|
620
|
-
attributeName:
|
|
621
|
-
attributeValue:
|
|
601
|
+
attributeName: AttributeNames.visual.iconSeal,
|
|
602
|
+
attributeValue: AttributeValues.state.TRUE
|
|
622
603
|
}),
|
|
623
604
|
open: (props) => checkDeprecatedAttribute({
|
|
624
605
|
...props,
|
|
625
|
-
attributeNameOld:
|
|
626
|
-
attributeNameNew:
|
|
627
|
-
attributeValue:
|
|
606
|
+
attributeNameOld: AttributeNames.deprecated.state.STATE_DEPRECATD,
|
|
607
|
+
attributeNameNew: AttributeNames.visual.open,
|
|
608
|
+
attributeValue: AttributeValues.state.OPENED
|
|
628
609
|
}) || isAttributeTrue({
|
|
629
610
|
...props,
|
|
630
|
-
attributeName:
|
|
631
|
-
attributeValue:
|
|
611
|
+
attributeName: AttributeNames.visual.open,
|
|
612
|
+
attributeValue: AttributeValues.state.TRUE
|
|
632
613
|
}),
|
|
633
614
|
play: createAttributeCheck(
|
|
634
|
-
|
|
635
|
-
|
|
615
|
+
AttributeNames.visual.play,
|
|
616
|
+
AttributeValues.state.TRUE
|
|
636
617
|
),
|
|
637
618
|
quote: createAttributeCheck(
|
|
638
|
-
|
|
639
|
-
|
|
619
|
+
AttributeNames.deprecated.visual.VISUAL_QUOTE,
|
|
620
|
+
AttributeValues.state.TRUE
|
|
640
621
|
),
|
|
641
622
|
showIcon: (props) => checkDeprecatedAttribute({
|
|
642
623
|
...props,
|
|
643
|
-
attributeNameOld:
|
|
644
|
-
attributeNameNew:
|
|
645
|
-
attributeValue:
|
|
624
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_ICON,
|
|
625
|
+
attributeNameNew: AttributeNames.visual.icon,
|
|
626
|
+
attributeValue: AttributeValues.state.TRUE
|
|
646
627
|
}) || isAttributeTrue({
|
|
647
628
|
...props,
|
|
648
|
-
attributeName:
|
|
649
|
-
attributeValue:
|
|
629
|
+
attributeName: AttributeNames.visual.icon,
|
|
630
|
+
attributeValue: AttributeValues.state.TRUE
|
|
650
631
|
}),
|
|
651
632
|
sizeNormal: (props) => checkDeprecatedAttribute({
|
|
652
633
|
...props,
|
|
653
|
-
attributeNameOld:
|
|
654
|
-
attributeNameNew:
|
|
655
|
-
attributeValue:
|
|
634
|
+
attributeNameOld: AttributeNames.deprecated.display.DISPLAY_SIZE,
|
|
635
|
+
attributeNameNew: AttributeNames.visual.size,
|
|
636
|
+
attributeValue: AttributeValues.size.NORMAL
|
|
656
637
|
}) || isAttributeTrue({
|
|
657
638
|
...props,
|
|
658
|
-
attributeName:
|
|
659
|
-
attributeValue:
|
|
639
|
+
attributeName: AttributeNames.visual.size,
|
|
640
|
+
attributeValue: AttributeValues.size.NORMAL
|
|
660
641
|
}),
|
|
661
642
|
showTime: (props) => checkDeprecatedAttribute({
|
|
662
643
|
...props,
|
|
663
|
-
attributeNameOld:
|
|
664
|
-
attributeNameNew:
|
|
665
|
-
attributeValue:
|
|
644
|
+
attributeNameOld: AttributeNames.deprecated.feature.SHOW_TIME,
|
|
645
|
+
attributeNameNew: AttributeNames.visual.time,
|
|
646
|
+
attributeValue: AttributeValues.state.TRUE
|
|
666
647
|
}) || isAttributeTrue({
|
|
667
648
|
...props,
|
|
668
|
-
attributeName:
|
|
669
|
-
attributeValue:
|
|
649
|
+
attributeName: AttributeNames.visual.time,
|
|
650
|
+
attributeValue: AttributeValues.state.TRUE,
|
|
670
651
|
defaultValue: true
|
|
671
652
|
}),
|
|
672
653
|
sizeLarge: (props) => checkDeprecatedAttribute({
|
|
673
654
|
...props,
|
|
674
|
-
attributeNameOld:
|
|
675
|
-
attributeNameNew:
|
|
676
|
-
attributeValue:
|
|
655
|
+
attributeNameOld: AttributeNames.deprecated.display.DISPLAY_SIZE,
|
|
656
|
+
attributeNameNew: AttributeNames.visual.size,
|
|
657
|
+
attributeValue: AttributeValues.size.LARGE
|
|
677
658
|
}) || checkDeprecatedAttribute({
|
|
678
659
|
...props,
|
|
679
|
-
attributeNameOld:
|
|
680
|
-
attributeNameNew:
|
|
660
|
+
attributeNameOld: AttributeNames.deprecated.display.DISPLAY_SIZE,
|
|
661
|
+
attributeNameNew: AttributeNames.visual.size,
|
|
681
662
|
attributeValue: ""
|
|
682
663
|
}) || isAttributeTrue({
|
|
683
664
|
...props,
|
|
684
|
-
attributeName:
|
|
685
|
-
attributeValue:
|
|
665
|
+
attributeName: AttributeNames.visual.size,
|
|
666
|
+
attributeValue: AttributeValues.size.LARGE
|
|
686
667
|
}),
|
|
687
668
|
stickyFirst: createAttributeCheck(
|
|
688
|
-
|
|
689
|
-
|
|
669
|
+
AttributeNames.deprecated.option.OPTIONAL_STICKY_FIRST,
|
|
670
|
+
AttributeValues.state.TRUE,
|
|
690
671
|
true
|
|
691
672
|
),
|
|
692
673
|
transparent: (props) => checkDeprecatedAttribute({
|
|
693
674
|
...props,
|
|
694
|
-
attributeNameOld:
|
|
695
|
-
attributeNameNew:
|
|
696
|
-
attributeValue:
|
|
675
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_TRANSPARENT,
|
|
676
|
+
attributeNameNew: AttributeNames.visual.transparent,
|
|
677
|
+
attributeValue: AttributeValues.state.TRUE
|
|
697
678
|
}) || isAttributeTrue({
|
|
698
679
|
...props,
|
|
699
|
-
attributeName:
|
|
700
|
-
attributeValue:
|
|
680
|
+
attributeName: AttributeNames.visual.transparent,
|
|
681
|
+
attributeValue: AttributeValues.state.TRUE
|
|
701
682
|
})
|
|
702
683
|
};
|
|
703
684
|
const getValue = {
|
|
704
685
|
alertUrl: createValueGetter({
|
|
705
|
-
currentName:
|
|
686
|
+
currentName: AttributeNames.information.alertUrl
|
|
706
687
|
}),
|
|
707
688
|
daysToHide: createValueGetter({
|
|
708
|
-
currentName:
|
|
709
|
-
deprecatedName:
|
|
689
|
+
currentName: AttributeNames.visual.hiddenDays,
|
|
690
|
+
deprecatedName: AttributeNames.deprecated.visual.VISUAL_DAYS_TO_HIDE
|
|
710
691
|
}),
|
|
711
692
|
feedEntryRemoveIds: createValueGetter({
|
|
712
|
-
currentName:
|
|
713
|
-
deprecatedName:
|
|
693
|
+
currentName: AttributeNames.information.removeIds,
|
|
694
|
+
deprecatedName: AttributeNames.deprecated.feed.FEED_NOT_ENTRIES
|
|
714
695
|
}),
|
|
715
696
|
feedFilterIds: createValueGetter({
|
|
716
|
-
currentName:
|
|
717
|
-
deprecatedName:
|
|
697
|
+
currentName: AttributeNames.information.filterIds,
|
|
698
|
+
deprecatedName: AttributeNames.deprecated.feed.FEED_CATEGORIES
|
|
718
699
|
}),
|
|
719
700
|
feedToken: createValueGetter({
|
|
720
|
-
currentName:
|
|
721
|
-
deprecatedName:
|
|
701
|
+
currentName: AttributeNames.information.token,
|
|
702
|
+
deprecatedName: AttributeNames.deprecated.feed.FEED_TOKEN
|
|
722
703
|
}),
|
|
723
704
|
giftUrl: createValueGetter({
|
|
724
|
-
currentName:
|
|
705
|
+
currentName: AttributeNames.information.gift
|
|
725
706
|
}),
|
|
726
707
|
layoutColumnCount: createValueGetter({
|
|
727
|
-
currentName:
|
|
728
|
-
deprecatedName:
|
|
708
|
+
currentName: AttributeNames.layout.columnCount,
|
|
709
|
+
deprecatedName: AttributeNames.deprecated.feed.FEED_COLUMN_COUNT
|
|
729
710
|
}),
|
|
730
711
|
layoutLock: createValueGetter({
|
|
731
|
-
currentName:
|
|
712
|
+
currentName: AttributeNames.layout.lock
|
|
732
713
|
}),
|
|
733
714
|
layoutRowCount: createValueGetter({
|
|
734
|
-
currentName:
|
|
735
|
-
deprecatedName:
|
|
715
|
+
currentName: AttributeNames.layout.rowCount,
|
|
716
|
+
deprecatedName: AttributeNames.deprecated.feed.FEED_ROW_COUNT
|
|
717
|
+
}),
|
|
718
|
+
mediaTrained: createValueGetter({
|
|
719
|
+
currentName: AttributeNames.information.mediaTrained
|
|
736
720
|
}),
|
|
737
721
|
title: createValueGetter({
|
|
738
|
-
currentName:
|
|
722
|
+
currentName: AttributeNames.information.title
|
|
739
723
|
}),
|
|
740
724
|
topPosition: createValueGetter({
|
|
741
|
-
currentName:
|
|
742
|
-
deprecatedName:
|
|
725
|
+
currentName: AttributeNames.layout.position,
|
|
726
|
+
deprecatedName: AttributeNames.deprecated.layout.LAYOUT_STICKY_TOP
|
|
743
727
|
}),
|
|
744
728
|
styleProps: (props) => {
|
|
745
729
|
const cssString = createValueGetter({
|
|
746
730
|
...props,
|
|
747
|
-
currentName:
|
|
731
|
+
currentName: AttributeNames.deprecated.visual.VISUAL_STYLE_PROPS
|
|
748
732
|
});
|
|
749
733
|
if (cssString && typeof cssString === "string") {
|
|
750
|
-
return
|
|
734
|
+
return Styles.utilities.create.jss.objectFromString(cssString);
|
|
751
735
|
}
|
|
752
736
|
},
|
|
753
737
|
url: createValueGetter({
|
|
754
|
-
currentName:
|
|
738
|
+
currentName: AttributeNames.information.url
|
|
755
739
|
})
|
|
756
740
|
};
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
741
|
+
export {
|
|
742
|
+
getValue,
|
|
743
|
+
hasDecoration,
|
|
744
|
+
hasInfo,
|
|
745
|
+
includesFeature,
|
|
746
|
+
includesSharing,
|
|
747
|
+
isData,
|
|
748
|
+
isDisplay,
|
|
749
|
+
isInfo,
|
|
750
|
+
isLayout,
|
|
751
|
+
isSharing,
|
|
752
|
+
isTheme,
|
|
753
|
+
isVisual
|
|
754
|
+
};
|
|
769
755
|
//# sourceMappingURL=checks.js.map
|