@universityofmaryland/web-model-library 1.0.0 → 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 +5 -6
- package/dist/attributes/checks.d.ts.map +1 -1
- package/dist/attributes/checks.js +338 -340
- 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 +4 -4
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/attributes/names.d.ts +4 -6
- package/dist/attributes/names.d.ts.map +1 -1
- package/dist/attributes/names.js +7 -8
- package/dist/attributes/names.js.map +1 -1
- package/dist/attributes/values.d.ts +13 -11
- package/dist/attributes/values.d.ts.map +1 -1
- package/dist/attributes/values.js +7 -3
- package/dist/attributes/values.js.map +1 -1
- package/dist/attributes.js +21 -22
- 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 +23 -16
- package/dist/slots/index.d.ts.map +1 -1
- package/dist/slots/mapping.d.ts +4 -0
- package/dist/slots/mapping.d.ts.map +1 -1
- package/dist/slots/mapping.js +8 -4
- package/dist/slots/mapping.js.map +1 -1
- package/dist/slots.d.ts +0 -4
- package/dist/slots.js +41 -36
- 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 -740
- 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 -146
- package/dist/attributes/names.mjs.map +0 -1
- package/dist/attributes/values.mjs +0 -81
- package/dist/attributes/values.mjs.map +0 -1
- package/dist/attributes.mjs +0 -23
- 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 -97
- package/dist/slots/mapping.mjs.map +0 -1
- package/dist/slots.mjs +0 -74
- 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,653 +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
|
|
324
|
+
}) || isAttributeTrue({
|
|
325
|
+
...props,
|
|
326
|
+
attributeName: AttributeNames.display.default,
|
|
327
|
+
attributeValue: AttributeValues.display.tabular
|
|
328
|
+
}),
|
|
329
|
+
mega: (props) => checkDeprecatedAttribute({
|
|
330
|
+
...props,
|
|
331
|
+
attributeNameOld: AttributeNames.deprecated.type.DATA_TYPE,
|
|
332
|
+
attributeNameNew: AttributeNames.display.default,
|
|
333
|
+
attributeValue: AttributeValues.display.mega
|
|
334
|
+
}) || checkDeprecatedAttribute({
|
|
335
|
+
...props,
|
|
336
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
337
|
+
attributeNameNew: AttributeNames.display.default,
|
|
338
|
+
attributeValue: AttributeValues.display.mega
|
|
343
339
|
}) || isAttributeTrue({
|
|
344
340
|
...props,
|
|
345
|
-
attributeName:
|
|
346
|
-
attributeValue:
|
|
341
|
+
attributeName: AttributeNames.display.default,
|
|
342
|
+
attributeValue: AttributeValues.display.mega
|
|
343
|
+
}),
|
|
344
|
+
visual: (props) => checkDeprecatedAttribute({
|
|
345
|
+
...props,
|
|
346
|
+
attributeNameOld: AttributeNames.deprecated.type.DATA_TYPE,
|
|
347
|
+
attributeNameNew: AttributeNames.display.default,
|
|
348
|
+
attributeValue: AttributeValues.display.visual
|
|
349
|
+
}) || checkDeprecatedAttribute({
|
|
350
|
+
...props,
|
|
351
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
352
|
+
attributeNameNew: AttributeNames.display.default,
|
|
353
|
+
attributeValue: AttributeValues.display.visual
|
|
354
|
+
}) || isAttributeTrue({
|
|
355
|
+
...props,
|
|
356
|
+
attributeName: AttributeNames.display.default,
|
|
357
|
+
attributeValue: AttributeValues.display.visual
|
|
358
|
+
}),
|
|
359
|
+
simple: (props) => checkDeprecatedAttribute({
|
|
360
|
+
...props,
|
|
361
|
+
attributeNameOld: AttributeNames.deprecated.type.DATA_TYPE,
|
|
362
|
+
attributeNameNew: AttributeNames.display.default,
|
|
363
|
+
attributeValue: AttributeValues.display.simple
|
|
364
|
+
}) || checkDeprecatedAttribute({
|
|
365
|
+
...props,
|
|
366
|
+
attributeNameOld: AttributeNames.deprecated.type.TYPE,
|
|
367
|
+
attributeNameNew: AttributeNames.display.default,
|
|
368
|
+
attributeValue: AttributeValues.display.simple
|
|
369
|
+
}) || isAttributeTrue({
|
|
370
|
+
...props,
|
|
371
|
+
attributeName: AttributeNames.display.default,
|
|
372
|
+
attributeValue: AttributeValues.display.simple
|
|
347
373
|
})
|
|
348
374
|
};
|
|
349
375
|
const isInfo = {
|
|
350
376
|
admissions: createAttributeCheck(
|
|
351
|
-
|
|
352
|
-
|
|
377
|
+
AttributeNames.information.admissions,
|
|
378
|
+
AttributeValues.state.TRUE
|
|
353
379
|
),
|
|
354
380
|
events: createAttributeCheck(
|
|
355
|
-
|
|
356
|
-
|
|
381
|
+
AttributeNames.information.events,
|
|
382
|
+
AttributeValues.state.TRUE
|
|
357
383
|
),
|
|
358
384
|
news: createAttributeCheck(
|
|
359
|
-
|
|
360
|
-
|
|
385
|
+
AttributeNames.information.news,
|
|
386
|
+
AttributeValues.state.TRUE
|
|
361
387
|
),
|
|
362
388
|
schools: createAttributeCheck(
|
|
363
|
-
|
|
364
|
-
|
|
389
|
+
AttributeNames.information.schools,
|
|
390
|
+
AttributeValues.state.TRUE
|
|
365
391
|
),
|
|
366
392
|
searchDomain: createAttributeCheck(
|
|
367
|
-
|
|
368
|
-
|
|
393
|
+
AttributeNames.information.searchType,
|
|
394
|
+
AttributeValues.search.domain
|
|
369
395
|
)
|
|
370
396
|
};
|
|
371
397
|
const isLayout = {
|
|
372
398
|
alertOff: createAttributeCheck(
|
|
373
|
-
|
|
374
|
-
|
|
399
|
+
AttributeNames.layout.alertOff,
|
|
400
|
+
AttributeValues.state.TRUE
|
|
375
401
|
),
|
|
376
402
|
alignmentRight: (props) => checkDeprecatedAttribute({
|
|
377
403
|
...props,
|
|
378
|
-
attributeNameOld:
|
|
379
|
-
attributeNameNew:
|
|
380
|
-
attributeValue:
|
|
404
|
+
attributeNameOld: AttributeNames.deprecated.layout.LAYOUT_ALIGNMENT,
|
|
405
|
+
attributeNameNew: AttributeNames.layout.alignment,
|
|
406
|
+
attributeValue: AttributeValues.layout.right
|
|
381
407
|
}) || isAttributeTrue({
|
|
382
408
|
...props,
|
|
383
|
-
attributeName:
|
|
384
|
-
attributeValue:
|
|
409
|
+
attributeName: AttributeNames.layout.alignment,
|
|
410
|
+
attributeValue: AttributeValues.layout.right
|
|
385
411
|
}),
|
|
386
412
|
fixed: (props) => checkDeprecatedAttribute({
|
|
387
413
|
...props,
|
|
388
|
-
attributeNameOld:
|
|
389
|
-
attributeNameNew:
|
|
414
|
+
attributeNameOld: AttributeNames.deprecated.layout.LAYOUT_FIXED,
|
|
415
|
+
attributeNameNew: AttributeNames.layout.fixed,
|
|
390
416
|
attributeValue: ""
|
|
391
417
|
}) || isAttributeTrue({
|
|
392
418
|
...props,
|
|
393
|
-
attributeName:
|
|
394
|
-
attributeValue:
|
|
419
|
+
attributeName: AttributeNames.layout.fixed,
|
|
420
|
+
attributeValue: AttributeValues.state.TRUE
|
|
395
421
|
}),
|
|
396
422
|
fullImage: createAttributeCheck(
|
|
397
|
-
|
|
398
|
-
|
|
423
|
+
AttributeNames.deprecated.type.TYPE,
|
|
424
|
+
AttributeValues.layout.fullImage
|
|
399
425
|
),
|
|
400
426
|
heightSmall: (props) => isAttributeTrue({
|
|
401
427
|
...props,
|
|
402
|
-
attributeName:
|
|
403
|
-
attributeValue:
|
|
428
|
+
attributeName: AttributeNames.layout.height,
|
|
429
|
+
attributeValue: AttributeValues.layout.small
|
|
404
430
|
}),
|
|
405
431
|
hidden: createAttributeCheck(
|
|
406
|
-
|
|
407
|
-
|
|
432
|
+
AttributeNames.layout.hidden,
|
|
433
|
+
AttributeValues.state.TRUE
|
|
408
434
|
),
|
|
409
435
|
image: createAttributeCheck(
|
|
410
|
-
|
|
411
|
-
|
|
436
|
+
AttributeNames.deprecated.type.TYPE,
|
|
437
|
+
AttributeValues.display.image
|
|
412
438
|
),
|
|
413
439
|
imagePositionRight: (props) => checkDeprecatedAttribute({
|
|
414
440
|
...props,
|
|
415
|
-
attributeNameOld:
|
|
416
|
-
attributeNameNew:
|
|
417
|
-
attributeValue:
|
|
441
|
+
attributeNameOld: AttributeNames.deprecated.layout.LAYOUT_IMAGE_POSITION,
|
|
442
|
+
attributeNameNew: AttributeNames.layout.imagePosition,
|
|
443
|
+
attributeValue: AttributeValues.layout.right
|
|
418
444
|
}) || isAttributeTrue({
|
|
419
445
|
...props,
|
|
420
|
-
attributeName:
|
|
421
|
-
attributeValue:
|
|
446
|
+
attributeName: AttributeNames.layout.imagePosition,
|
|
447
|
+
attributeValue: AttributeValues.layout.right,
|
|
422
448
|
defaultValue: true
|
|
423
449
|
}),
|
|
424
450
|
imagePositionLeft: (props) => checkDeprecatedAttribute({
|
|
425
451
|
...props,
|
|
426
|
-
attributeNameOld:
|
|
427
|
-
attributeNameNew:
|
|
428
|
-
attributeValue:
|
|
452
|
+
attributeNameOld: AttributeNames.deprecated.layout.LAYOUT_IMAGE_POSITION,
|
|
453
|
+
attributeNameNew: AttributeNames.layout.imagePosition,
|
|
454
|
+
attributeValue: AttributeValues.layout.left
|
|
429
455
|
}) || isAttributeTrue({
|
|
430
456
|
...props,
|
|
431
|
-
attributeName:
|
|
432
|
-
attributeValue:
|
|
457
|
+
attributeName: AttributeNames.layout.imagePosition,
|
|
458
|
+
attributeValue: AttributeValues.layout.left,
|
|
433
459
|
defaultValue: false
|
|
434
460
|
}),
|
|
435
461
|
imageScaled: (props) => isAttributeTrue({
|
|
436
462
|
...props,
|
|
437
|
-
attributeName:
|
|
438
|
-
attributeValue:
|
|
463
|
+
attributeName: AttributeNames.layout.imageScaled,
|
|
464
|
+
attributeValue: AttributeValues.state.TRUE,
|
|
439
465
|
defaultValue: true
|
|
440
466
|
}),
|
|
441
467
|
interior: createAttributeCheck(
|
|
442
|
-
|
|
443
|
-
|
|
468
|
+
AttributeNames.layout.interior,
|
|
469
|
+
AttributeValues.state.TRUE
|
|
444
470
|
),
|
|
445
471
|
lock: createAttributeCheck(
|
|
446
|
-
|
|
447
|
-
|
|
472
|
+
AttributeNames.layout.lock,
|
|
473
|
+
AttributeValues.state.TRUE
|
|
448
474
|
),
|
|
449
475
|
lockFull: createAttributeCheck(
|
|
450
|
-
|
|
451
|
-
|
|
476
|
+
AttributeNames.layout.lock,
|
|
477
|
+
AttributeValues.layout.large
|
|
452
478
|
),
|
|
453
479
|
reverse: (props) => checkDeprecatedAttribute({
|
|
454
480
|
...props,
|
|
455
|
-
attributeNameOld:
|
|
456
|
-
attributeNameNew:
|
|
457
|
-
attributeValue:
|
|
481
|
+
attributeNameOld: AttributeNames.deprecated.layout.DEFAULT,
|
|
482
|
+
attributeNameNew: AttributeNames.layout.reverse,
|
|
483
|
+
attributeValue: AttributeValues.state.TRUE
|
|
458
484
|
}) || isAttributeTrue({
|
|
459
485
|
...props,
|
|
460
|
-
attributeName:
|
|
461
|
-
attributeValue:
|
|
486
|
+
attributeName: AttributeNames.layout.reverse,
|
|
487
|
+
attributeValue: AttributeValues.state.TRUE
|
|
462
488
|
}),
|
|
463
489
|
spaceHorizontalLarge: (props) => isAttributeTrue({
|
|
464
490
|
...props,
|
|
465
|
-
attributeName:
|
|
466
|
-
attributeValue:
|
|
491
|
+
attributeName: AttributeNames.layout.spaceHorizontal,
|
|
492
|
+
attributeValue: AttributeValues.layout.large
|
|
467
493
|
}),
|
|
468
494
|
textCentered: (props) => checkDeprecatedAttribute({
|
|
469
495
|
...props,
|
|
470
|
-
attributeNameOld:
|
|
471
|
-
attributeNameNew:
|
|
472
|
-
attributeValue:
|
|
496
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_TEXT_CENTER,
|
|
497
|
+
attributeNameNew: AttributeNames.layout.text,
|
|
498
|
+
attributeValue: AttributeValues.layout.center
|
|
473
499
|
}) || isAttributeTrue({
|
|
474
500
|
...props,
|
|
475
|
-
attributeName:
|
|
476
|
-
attributeValue:
|
|
501
|
+
attributeName: AttributeNames.layout.text,
|
|
502
|
+
attributeValue: AttributeValues.layout.center
|
|
477
503
|
})
|
|
478
504
|
};
|
|
479
505
|
const isSharing = {
|
|
480
506
|
email: createAttributeCheck(
|
|
481
|
-
|
|
482
|
-
|
|
507
|
+
AttributeNames.sharing.email,
|
|
508
|
+
AttributeValues.state.TRUE
|
|
483
509
|
),
|
|
484
510
|
print: createAttributeCheck(
|
|
485
|
-
|
|
486
|
-
|
|
511
|
+
AttributeNames.sharing.print,
|
|
512
|
+
AttributeValues.state.TRUE
|
|
487
513
|
)
|
|
488
514
|
};
|
|
489
515
|
const includesSharing = {
|
|
490
516
|
facebook: createAttributeCheck(
|
|
491
|
-
|
|
492
|
-
|
|
517
|
+
AttributeNames.social.facebook,
|
|
518
|
+
AttributeValues.state.TRUE,
|
|
493
519
|
true
|
|
494
520
|
),
|
|
495
521
|
twitter: createAttributeCheck(
|
|
496
|
-
|
|
497
|
-
|
|
522
|
+
AttributeNames.social.twitter,
|
|
523
|
+
AttributeValues.state.TRUE,
|
|
498
524
|
true
|
|
499
525
|
)
|
|
500
526
|
};
|
|
501
527
|
const isTheme = {
|
|
502
528
|
dark: (props) => checkDeprecatedAttribute({
|
|
503
529
|
...props,
|
|
504
|
-
attributeNameOld:
|
|
505
|
-
attributeNameNew:
|
|
506
|
-
attributeValue:
|
|
530
|
+
attributeNameOld: AttributeNames.deprecated.theme.THEME_DEPRECATD,
|
|
531
|
+
attributeNameNew: AttributeNames.theme.default,
|
|
532
|
+
attributeValue: AttributeValues.theme.DARK
|
|
507
533
|
}) || isAttributeTrue({
|
|
508
534
|
...props,
|
|
509
|
-
attributeName:
|
|
510
|
-
attributeValue:
|
|
535
|
+
attributeName: AttributeNames.theme.default,
|
|
536
|
+
attributeValue: AttributeValues.theme.DARK
|
|
511
537
|
}),
|
|
512
538
|
gold: (props) => checkDeprecatedAttribute({
|
|
513
539
|
...props,
|
|
514
|
-
attributeNameOld:
|
|
515
|
-
attributeNameNew:
|
|
516
|
-
attributeValue:
|
|
540
|
+
attributeNameOld: AttributeNames.deprecated.theme.THEME_DEPRECATD,
|
|
541
|
+
attributeNameNew: AttributeNames.theme.default,
|
|
542
|
+
attributeValue: AttributeValues.theme.GOLD
|
|
517
543
|
}) || isAttributeTrue({
|
|
518
544
|
...props,
|
|
519
|
-
attributeName:
|
|
520
|
-
attributeValue:
|
|
545
|
+
attributeName: AttributeNames.theme.default,
|
|
546
|
+
attributeValue: AttributeValues.theme.GOLD
|
|
521
547
|
}),
|
|
522
548
|
light: (props) => checkDeprecatedAttribute({
|
|
523
549
|
...props,
|
|
524
|
-
attributeNameOld:
|
|
525
|
-
attributeNameNew:
|
|
526
|
-
attributeValue:
|
|
550
|
+
attributeNameOld: AttributeNames.deprecated.theme.THEME_DEPRECATD,
|
|
551
|
+
attributeNameNew: AttributeNames.theme.default,
|
|
552
|
+
attributeValue: AttributeValues.theme.LIGHT
|
|
527
553
|
}) || isAttributeTrue({
|
|
528
554
|
...props,
|
|
529
|
-
attributeName:
|
|
530
|
-
attributeValue:
|
|
555
|
+
attributeName: AttributeNames.theme.default,
|
|
556
|
+
attributeValue: AttributeValues.theme.LIGHT
|
|
531
557
|
}),
|
|
532
558
|
maryland: (props) => checkDeprecatedAttribute({
|
|
533
559
|
...props,
|
|
534
|
-
attributeNameOld:
|
|
535
|
-
attributeNameNew:
|
|
536
|
-
attributeValue:
|
|
560
|
+
attributeNameOld: AttributeNames.deprecated.theme.THEME_DEPRECATD,
|
|
561
|
+
attributeNameNew: AttributeNames.theme.default,
|
|
562
|
+
attributeValue: AttributeValues.theme.MARYLAND
|
|
537
563
|
}) || isAttributeTrue({
|
|
538
564
|
...props,
|
|
539
|
-
attributeName:
|
|
540
|
-
attributeValue:
|
|
565
|
+
attributeName: AttributeNames.theme.default,
|
|
566
|
+
attributeValue: AttributeValues.theme.MARYLAND
|
|
541
567
|
})
|
|
542
568
|
};
|
|
543
569
|
const isVisual = {
|
|
544
570
|
aligned: (props) => checkDeprecatedAttribute({
|
|
545
571
|
...props,
|
|
546
|
-
attributeNameOld:
|
|
547
|
-
attributeNameNew:
|
|
548
|
-
attributeValue:
|
|
572
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_ALIGN,
|
|
573
|
+
attributeNameNew: AttributeNames.visual.imageAligned,
|
|
574
|
+
attributeValue: AttributeValues.state.TRUE
|
|
549
575
|
}) || isAttributeTrue({
|
|
550
576
|
...props,
|
|
551
|
-
attributeName:
|
|
552
|
-
attributeValue:
|
|
577
|
+
attributeName: AttributeNames.visual.imageAligned,
|
|
578
|
+
attributeValue: AttributeValues.state.TRUE
|
|
553
579
|
}),
|
|
554
580
|
bordered: (props) => checkDeprecatedAttribute({
|
|
555
581
|
...props,
|
|
556
|
-
attributeNameOld:
|
|
557
|
-
attributeNameNew:
|
|
558
|
-
attributeValue:
|
|
582
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_BORDER,
|
|
583
|
+
attributeNameNew: AttributeNames.visual.bordered,
|
|
584
|
+
attributeValue: AttributeValues.state.TRUE
|
|
559
585
|
}) || isAttributeTrue({
|
|
560
586
|
...props,
|
|
561
|
-
attributeName:
|
|
562
|
-
attributeValue:
|
|
587
|
+
attributeName: AttributeNames.visual.bordered,
|
|
588
|
+
attributeValue: AttributeValues.state.TRUE
|
|
563
589
|
}),
|
|
564
590
|
campaign: createAttributeCheck(
|
|
565
|
-
|
|
566
|
-
|
|
591
|
+
AttributeNames.visual.campaign,
|
|
592
|
+
AttributeValues.campaign.forward
|
|
567
593
|
),
|
|
568
594
|
icon_seal: (props) => checkDeprecatedAttribute({
|
|
569
595
|
...props,
|
|
570
|
-
attributeNameOld:
|
|
571
|
-
attributeNameNew:
|
|
572
|
-
attributeValue:
|
|
596
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_HAS_LOGO,
|
|
597
|
+
attributeNameNew: AttributeNames.visual.iconSeal,
|
|
598
|
+
attributeValue: AttributeValues.state.TRUE
|
|
573
599
|
}) || isAttributeTrue({
|
|
574
600
|
...props,
|
|
575
|
-
attributeName:
|
|
576
|
-
attributeValue:
|
|
601
|
+
attributeName: AttributeNames.visual.iconSeal,
|
|
602
|
+
attributeValue: AttributeValues.state.TRUE
|
|
577
603
|
}),
|
|
578
604
|
open: (props) => checkDeprecatedAttribute({
|
|
579
605
|
...props,
|
|
580
|
-
attributeNameOld:
|
|
581
|
-
attributeNameNew:
|
|
582
|
-
attributeValue:
|
|
606
|
+
attributeNameOld: AttributeNames.deprecated.state.STATE_DEPRECATD,
|
|
607
|
+
attributeNameNew: AttributeNames.visual.open,
|
|
608
|
+
attributeValue: AttributeValues.state.OPENED
|
|
583
609
|
}) || isAttributeTrue({
|
|
584
610
|
...props,
|
|
585
|
-
attributeName:
|
|
586
|
-
attributeValue:
|
|
611
|
+
attributeName: AttributeNames.visual.open,
|
|
612
|
+
attributeValue: AttributeValues.state.TRUE
|
|
587
613
|
}),
|
|
588
614
|
play: createAttributeCheck(
|
|
589
|
-
|
|
590
|
-
|
|
615
|
+
AttributeNames.visual.play,
|
|
616
|
+
AttributeValues.state.TRUE
|
|
591
617
|
),
|
|
592
618
|
quote: createAttributeCheck(
|
|
593
|
-
|
|
594
|
-
|
|
619
|
+
AttributeNames.deprecated.visual.VISUAL_QUOTE,
|
|
620
|
+
AttributeValues.state.TRUE
|
|
595
621
|
),
|
|
596
622
|
showIcon: (props) => checkDeprecatedAttribute({
|
|
597
623
|
...props,
|
|
598
|
-
attributeNameOld:
|
|
599
|
-
attributeNameNew:
|
|
600
|
-
attributeValue:
|
|
624
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_ICON,
|
|
625
|
+
attributeNameNew: AttributeNames.visual.icon,
|
|
626
|
+
attributeValue: AttributeValues.state.TRUE
|
|
601
627
|
}) || isAttributeTrue({
|
|
602
628
|
...props,
|
|
603
|
-
attributeName:
|
|
604
|
-
attributeValue:
|
|
629
|
+
attributeName: AttributeNames.visual.icon,
|
|
630
|
+
attributeValue: AttributeValues.state.TRUE
|
|
605
631
|
}),
|
|
606
632
|
sizeNormal: (props) => checkDeprecatedAttribute({
|
|
607
633
|
...props,
|
|
608
|
-
attributeNameOld:
|
|
609
|
-
attributeNameNew:
|
|
610
|
-
attributeValue:
|
|
634
|
+
attributeNameOld: AttributeNames.deprecated.display.DISPLAY_SIZE,
|
|
635
|
+
attributeNameNew: AttributeNames.visual.size,
|
|
636
|
+
attributeValue: AttributeValues.size.NORMAL
|
|
611
637
|
}) || isAttributeTrue({
|
|
612
638
|
...props,
|
|
613
|
-
attributeName:
|
|
614
|
-
attributeValue:
|
|
639
|
+
attributeName: AttributeNames.visual.size,
|
|
640
|
+
attributeValue: AttributeValues.size.NORMAL
|
|
615
641
|
}),
|
|
616
642
|
showTime: (props) => checkDeprecatedAttribute({
|
|
617
643
|
...props,
|
|
618
|
-
attributeNameOld:
|
|
619
|
-
attributeNameNew:
|
|
620
|
-
attributeValue:
|
|
644
|
+
attributeNameOld: AttributeNames.deprecated.feature.SHOW_TIME,
|
|
645
|
+
attributeNameNew: AttributeNames.visual.time,
|
|
646
|
+
attributeValue: AttributeValues.state.TRUE
|
|
621
647
|
}) || isAttributeTrue({
|
|
622
648
|
...props,
|
|
623
|
-
attributeName:
|
|
624
|
-
attributeValue:
|
|
649
|
+
attributeName: AttributeNames.visual.time,
|
|
650
|
+
attributeValue: AttributeValues.state.TRUE,
|
|
625
651
|
defaultValue: true
|
|
626
652
|
}),
|
|
627
653
|
sizeLarge: (props) => checkDeprecatedAttribute({
|
|
628
654
|
...props,
|
|
629
|
-
attributeNameOld:
|
|
630
|
-
attributeNameNew:
|
|
631
|
-
attributeValue:
|
|
655
|
+
attributeNameOld: AttributeNames.deprecated.display.DISPLAY_SIZE,
|
|
656
|
+
attributeNameNew: AttributeNames.visual.size,
|
|
657
|
+
attributeValue: AttributeValues.size.LARGE
|
|
632
658
|
}) || checkDeprecatedAttribute({
|
|
633
659
|
...props,
|
|
634
|
-
attributeNameOld:
|
|
635
|
-
attributeNameNew:
|
|
660
|
+
attributeNameOld: AttributeNames.deprecated.display.DISPLAY_SIZE,
|
|
661
|
+
attributeNameNew: AttributeNames.visual.size,
|
|
636
662
|
attributeValue: ""
|
|
637
663
|
}) || isAttributeTrue({
|
|
638
664
|
...props,
|
|
639
|
-
attributeName:
|
|
640
|
-
attributeValue:
|
|
665
|
+
attributeName: AttributeNames.visual.size,
|
|
666
|
+
attributeValue: AttributeValues.size.LARGE
|
|
641
667
|
}),
|
|
642
668
|
stickyFirst: createAttributeCheck(
|
|
643
|
-
|
|
644
|
-
|
|
669
|
+
AttributeNames.deprecated.option.OPTIONAL_STICKY_FIRST,
|
|
670
|
+
AttributeValues.state.TRUE,
|
|
645
671
|
true
|
|
646
672
|
),
|
|
647
673
|
transparent: (props) => checkDeprecatedAttribute({
|
|
648
674
|
...props,
|
|
649
|
-
attributeNameOld:
|
|
650
|
-
attributeNameNew:
|
|
651
|
-
attributeValue:
|
|
675
|
+
attributeNameOld: AttributeNames.deprecated.visual.VISUAL_TRANSPARENT,
|
|
676
|
+
attributeNameNew: AttributeNames.visual.transparent,
|
|
677
|
+
attributeValue: AttributeValues.state.TRUE
|
|
652
678
|
}) || isAttributeTrue({
|
|
653
679
|
...props,
|
|
654
|
-
attributeName:
|
|
655
|
-
attributeValue:
|
|
656
|
-
})
|
|
657
|
-
};
|
|
658
|
-
const isType = {
|
|
659
|
-
mega: (props) => checkDeprecatedAttribute({
|
|
660
|
-
...props,
|
|
661
|
-
attributeNameOld: names.deprecated.type.TYPE,
|
|
662
|
-
attributeNameNew: names.type.default,
|
|
663
|
-
attributeValue: values.type.MEGA
|
|
664
|
-
}) || isAttributeTrue({
|
|
665
|
-
...props,
|
|
666
|
-
attributeName: names.type.default,
|
|
667
|
-
attributeValue: values.type.MEGA
|
|
668
|
-
}),
|
|
669
|
-
visual: (props) => checkDeprecatedAttribute({
|
|
670
|
-
...props,
|
|
671
|
-
attributeNameOld: names.deprecated.type.TYPE,
|
|
672
|
-
attributeNameNew: names.type.default,
|
|
673
|
-
attributeValue: values.type.VISUAL
|
|
674
|
-
}) || isAttributeTrue({
|
|
675
|
-
...props,
|
|
676
|
-
attributeName: names.type.default,
|
|
677
|
-
attributeValue: values.type.VISUAL
|
|
678
|
-
}),
|
|
679
|
-
simple: (props) => checkDeprecatedAttribute({
|
|
680
|
-
...props,
|
|
681
|
-
attributeNameOld: names.deprecated.type.TYPE,
|
|
682
|
-
attributeNameNew: names.type.default,
|
|
683
|
-
attributeValue: values.type.SIMPLE
|
|
684
|
-
}) || isAttributeTrue({
|
|
685
|
-
...props,
|
|
686
|
-
attributeName: names.type.default,
|
|
687
|
-
attributeValue: values.type.SIMPLE
|
|
680
|
+
attributeName: AttributeNames.visual.transparent,
|
|
681
|
+
attributeValue: AttributeValues.state.TRUE
|
|
688
682
|
})
|
|
689
683
|
};
|
|
690
684
|
const getValue = {
|
|
691
685
|
alertUrl: createValueGetter({
|
|
692
|
-
currentName:
|
|
686
|
+
currentName: AttributeNames.information.alertUrl
|
|
693
687
|
}),
|
|
694
688
|
daysToHide: createValueGetter({
|
|
695
|
-
currentName:
|
|
696
|
-
deprecatedName:
|
|
689
|
+
currentName: AttributeNames.visual.hiddenDays,
|
|
690
|
+
deprecatedName: AttributeNames.deprecated.visual.VISUAL_DAYS_TO_HIDE
|
|
697
691
|
}),
|
|
698
692
|
feedEntryRemoveIds: createValueGetter({
|
|
699
|
-
currentName:
|
|
700
|
-
deprecatedName:
|
|
693
|
+
currentName: AttributeNames.information.removeIds,
|
|
694
|
+
deprecatedName: AttributeNames.deprecated.feed.FEED_NOT_ENTRIES
|
|
701
695
|
}),
|
|
702
696
|
feedFilterIds: createValueGetter({
|
|
703
|
-
currentName:
|
|
704
|
-
deprecatedName:
|
|
697
|
+
currentName: AttributeNames.information.filterIds,
|
|
698
|
+
deprecatedName: AttributeNames.deprecated.feed.FEED_CATEGORIES
|
|
705
699
|
}),
|
|
706
700
|
feedToken: createValueGetter({
|
|
707
|
-
currentName:
|
|
708
|
-
deprecatedName:
|
|
701
|
+
currentName: AttributeNames.information.token,
|
|
702
|
+
deprecatedName: AttributeNames.deprecated.feed.FEED_TOKEN
|
|
709
703
|
}),
|
|
710
704
|
giftUrl: createValueGetter({
|
|
711
|
-
currentName:
|
|
705
|
+
currentName: AttributeNames.information.gift
|
|
712
706
|
}),
|
|
713
707
|
layoutColumnCount: createValueGetter({
|
|
714
|
-
currentName:
|
|
715
|
-
deprecatedName:
|
|
708
|
+
currentName: AttributeNames.layout.columnCount,
|
|
709
|
+
deprecatedName: AttributeNames.deprecated.feed.FEED_COLUMN_COUNT
|
|
716
710
|
}),
|
|
717
711
|
layoutLock: createValueGetter({
|
|
718
|
-
currentName:
|
|
712
|
+
currentName: AttributeNames.layout.lock
|
|
719
713
|
}),
|
|
720
714
|
layoutRowCount: createValueGetter({
|
|
721
|
-
currentName:
|
|
722
|
-
deprecatedName:
|
|
715
|
+
currentName: AttributeNames.layout.rowCount,
|
|
716
|
+
deprecatedName: AttributeNames.deprecated.feed.FEED_ROW_COUNT
|
|
717
|
+
}),
|
|
718
|
+
mediaTrained: createValueGetter({
|
|
719
|
+
currentName: AttributeNames.information.mediaTrained
|
|
723
720
|
}),
|
|
724
721
|
title: createValueGetter({
|
|
725
|
-
currentName:
|
|
722
|
+
currentName: AttributeNames.information.title
|
|
726
723
|
}),
|
|
727
724
|
topPosition: createValueGetter({
|
|
728
|
-
currentName:
|
|
729
|
-
deprecatedName:
|
|
725
|
+
currentName: AttributeNames.layout.position,
|
|
726
|
+
deprecatedName: AttributeNames.deprecated.layout.LAYOUT_STICKY_TOP
|
|
730
727
|
}),
|
|
731
728
|
styleProps: (props) => {
|
|
732
729
|
const cssString = createValueGetter({
|
|
733
730
|
...props,
|
|
734
|
-
currentName:
|
|
731
|
+
currentName: AttributeNames.deprecated.visual.VISUAL_STYLE_PROPS
|
|
735
732
|
});
|
|
736
733
|
if (cssString && typeof cssString === "string") {
|
|
737
|
-
return
|
|
734
|
+
return Styles.utilities.create.jss.objectFromString(cssString);
|
|
738
735
|
}
|
|
739
736
|
},
|
|
740
737
|
url: createValueGetter({
|
|
741
|
-
currentName:
|
|
738
|
+
currentName: AttributeNames.information.url
|
|
742
739
|
})
|
|
743
740
|
};
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
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
|
+
};
|
|
757
755
|
//# sourceMappingURL=checks.js.map
|