@blueking/bkui-form 1.0.1-beta.3 → 1.0.1-beta.5
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/dist/adapter/common/FieldGroupWrap.d.ts +209 -0
- package/dist/adapter/field/ArrayField.d.ts +147 -0
- package/dist/adapter/field/BooleanField.d.ts +145 -0
- package/dist/adapter/field/CompositionField.d.ts +151 -0
- package/dist/adapter/field/FieldProps.d.ts +70 -0
- package/dist/adapter/field/NumberField.d.ts +145 -0
- package/dist/adapter/field/ObjectField.d.ts +147 -0
- package/dist/adapter/field/SchemaField.d.ts +145 -0
- package/dist/adapter/field/StringField.d.ts +4 -0
- package/dist/adapter/widget/ArrayWidget.d.ts +154 -0
- package/dist/adapter/widget/ButtonWidget.d.ts +16 -0
- package/dist/adapter/widget/CheckboxWidget.d.ts +34 -0
- package/dist/adapter/widget/CollapseGroupWidget.d.ts +196 -0
- package/dist/adapter/widget/ColorPickerWidget.d.ts +8 -0
- package/dist/adapter/widget/InputWidget.d.ts +30 -0
- package/dist/adapter/widget/KeyValueArrayWidget.d.ts +157 -0
- package/dist/adapter/widget/RadioWidget.d.ts +37 -0
- package/dist/adapter/widget/SelectWidget.d.ts +37 -0
- package/dist/adapter/widget/SwitchWidget.d.ts +10 -0
- package/dist/adapter/widget/TabGroupWidget.d.ts +187 -0
- package/dist/adapter/widget/TableWidget.d.ts +154 -0
- package/dist/adapter/widget/Widget.d.ts +182 -0
- package/dist/controller/form.d.ts +141 -0
- package/dist/controller/props.d.ts +62 -0
- package/dist/core/events.d.ts +10 -0
- package/dist/core/expression.d.ts +13 -0
- package/dist/core/form.d.ts +5 -0
- package/dist/core/lang.d.ts +1 -0
- package/dist/core/layout.d.ts +20 -0
- package/dist/core/lifecycle.d.ts +0 -0
- package/dist/core/path.d.ts +9 -0
- package/dist/core/proxy.d.ts +3 -0
- package/dist/core/reaction.d.ts +5 -0
- package/dist/core/register.d.ts +19 -0
- package/dist/core/schema.d.ts +26 -0
- package/dist/core/validator.d.ts +35 -0
- package/dist/core/widgetTree.d.ts +40 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +7443 -0
- package/dist/index.umd.js +12 -0
- package/dist/style.css +1 -0
- package/dist/util/fetch.d.ts +10 -0
- package/dist/util/index.d.ts +23 -0
- package/package.json +24 -12
- package/esm/adapter/common/FieldGroupWrap.tsx.js +0 -199
- package/esm/adapter/field/ArrayField.tsx.js +0 -55
- package/esm/adapter/field/BooleanField.tsx.js +0 -41
- package/esm/adapter/field/CompositionField.tsx.js +0 -113
- package/esm/adapter/field/FieldProps.ts.js +0 -85
- package/esm/adapter/field/NumberField.tsx.js +0 -19
- package/esm/adapter/field/ObjectField.tsx.js +0 -58
- package/esm/adapter/field/SchemaField.tsx.js +0 -28
- package/esm/adapter/field/StringField.tsx.js +0 -4
- package/esm/adapter/widget/ArrayWidget.ts.js +0 -196
- package/esm/adapter/widget/ButtonWidget.ts.js +0 -76
- package/esm/adapter/widget/CheckboxWidget.ts.js +0 -101
- package/esm/adapter/widget/CollapseGroupWidget.ts.js +0 -140
- package/esm/adapter/widget/ColorPickerWidget.ts.js +0 -71
- package/esm/adapter/widget/InputWidget.ts.js +0 -79
- package/esm/adapter/widget/KeyValueArrayWidget.tsx.js +0 -156
- package/esm/adapter/widget/RadioWidget.ts.js +0 -98
- package/esm/adapter/widget/SelectWidget.ts.js +0 -98
- package/esm/adapter/widget/SwitchWidget.ts.js +0 -73
- package/esm/adapter/widget/TabGroupWidget.ts.js +0 -145
- package/esm/adapter/widget/TableWidget.ts.js +0 -205
- package/esm/adapter/widget/Widget.ts.js +0 -497
- package/esm/assets/fonts/iconcool.eot +0 -0
- package/esm/assets/fonts/iconcool.svg +0 -53
- package/esm/assets/fonts/iconcool.ttf +0 -0
- package/esm/assets/fonts/iconcool.woff +0 -0
- package/esm/assets/style.css +0 -43
- package/esm/controller/form.css +0 -164
- package/esm/controller/form.tsx.js +0 -159
- package/esm/controller/props.ts.js +0 -75
- package/esm/core/events.ts.js +0 -74
- package/esm/core/expression.ts.js +0 -67
- package/esm/core/lang.ts.js +0 -25
- package/esm/core/layout.ts.js +0 -149
- package/esm/core/path.ts.js +0 -60
- package/esm/core/proxy.ts.js +0 -10
- package/esm/core/reaction.ts.js +0 -116
- package/esm/core/register.ts.js +0 -74
- package/esm/core/schema.ts.js +0 -302
- package/esm/core/validator.ts.js +0 -248
- package/esm/core/widgetTree.ts.js +0 -163
- package/esm/index.ts.js +0 -6
- package/esm/node_modules/@blueking/cli-service/dist/lib/path.js +0 -35
- package/esm/node_modules/@blueking/cli-service/dist/lib/util.js +0 -233
- package/esm/node_modules/@blueking/cli-service/dist/tools/rust/helper/path.js +0 -172
- package/esm/node_modules/ajv/dist/ajv.js +0 -50
- package/esm/node_modules/ajv/dist/compile/codegen/code.js +0 -156
- package/esm/node_modules/ajv/dist/compile/codegen/index.js +0 -697
- package/esm/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
- package/esm/node_modules/ajv/dist/compile/errors.js +0 -123
- package/esm/node_modules/ajv/dist/compile/index.js +0 -242
- package/esm/node_modules/ajv/dist/compile/names.js +0 -28
- package/esm/node_modules/ajv/dist/compile/ref_error.js +0 -12
- package/esm/node_modules/ajv/dist/compile/resolve.js +0 -155
- package/esm/node_modules/ajv/dist/compile/rules.js +0 -26
- package/esm/node_modules/ajv/dist/compile/util.js +0 -178
- package/esm/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
- package/esm/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
- package/esm/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
- package/esm/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
- package/esm/node_modules/ajv/dist/compile/validate/index.js +0 -520
- package/esm/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
- package/esm/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
- package/esm/node_modules/ajv/dist/core.js +0 -618
- package/esm/node_modules/ajv/dist/refs/data.json +0 -13
- package/esm/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
- package/esm/node_modules/ajv/dist/runtime/equal.js +0 -7
- package/esm/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
- package/esm/node_modules/ajv/dist/runtime/uri.js +0 -6
- package/esm/node_modules/ajv/dist/runtime/validation_error.js +0 -11
- package/esm/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
- package/esm/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
- package/esm/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
- package/esm/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
- package/esm/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
- package/esm/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
- package/esm/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
- package/esm/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
- package/esm/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
- package/esm/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
- package/esm/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
- package/esm/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
- package/esm/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
- package/esm/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
- package/esm/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
- package/esm/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
- package/esm/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
- package/esm/node_modules/ajv/dist/vocabularies/code.js +0 -131
- package/esm/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
- package/esm/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
- package/esm/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
- package/esm/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
- package/esm/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
- package/esm/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
- package/esm/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
- package/esm/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
- package/esm/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
- package/esm/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
- package/esm/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
- package/esm/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
- package/esm/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
- package/esm/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
- package/esm/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
- package/esm/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
- package/esm/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
- package/esm/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -24
- package/esm/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
- package/esm/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
- package/esm/node_modules/ajv-formats/dist/formats.js +0 -173
- package/esm/node_modules/ajv-formats/dist/index.js +0 -37
- package/esm/node_modules/ajv-formats/dist/limit.js +0 -69
- package/esm/node_modules/ajv-i18n/localize/zh/index.js +0 -154
- package/esm/node_modules/fast-deep-equal/index.js +0 -46
- package/esm/node_modules/fast-uri/index.js +0 -303
- package/esm/node_modules/fast-uri/lib/schemes.js +0 -188
- package/esm/node_modules/fast-uri/lib/scopedChars.js +0 -30
- package/esm/node_modules/fast-uri/lib/utils.js +0 -244
- package/esm/node_modules/json-schema-traverse/index.js +0 -89
- package/esm/node_modules/semver/classes/comparator.js +0 -143
- package/esm/node_modules/semver/classes/range.js +0 -557
- package/esm/node_modules/semver/classes/semver.js +0 -333
- package/esm/node_modules/semver/functions/clean.js +0 -8
- package/esm/node_modules/semver/functions/cmp.js +0 -54
- package/esm/node_modules/semver/functions/coerce.js +0 -62
- package/esm/node_modules/semver/functions/compare-build.js +0 -9
- package/esm/node_modules/semver/functions/compare-loose.js +0 -5
- package/esm/node_modules/semver/functions/compare.js +0 -7
- package/esm/node_modules/semver/functions/diff.js +0 -60
- package/esm/node_modules/semver/functions/eq.js +0 -5
- package/esm/node_modules/semver/functions/gt.js +0 -5
- package/esm/node_modules/semver/functions/gte.js +0 -5
- package/esm/node_modules/semver/functions/inc.js +0 -21
- package/esm/node_modules/semver/functions/lt.js +0 -5
- package/esm/node_modules/semver/functions/lte.js +0 -5
- package/esm/node_modules/semver/functions/major.js +0 -5
- package/esm/node_modules/semver/functions/minor.js +0 -5
- package/esm/node_modules/semver/functions/neq.js +0 -5
- package/esm/node_modules/semver/functions/parse.js +0 -18
- package/esm/node_modules/semver/functions/patch.js +0 -5
- package/esm/node_modules/semver/functions/prerelease.js +0 -8
- package/esm/node_modules/semver/functions/rcompare.js +0 -5
- package/esm/node_modules/semver/functions/rsort.js +0 -5
- package/esm/node_modules/semver/functions/satisfies.js +0 -12
- package/esm/node_modules/semver/functions/sort.js +0 -5
- package/esm/node_modules/semver/functions/valid.js +0 -8
- package/esm/node_modules/semver/index.js +0 -91
- package/esm/node_modules/semver/internal/constants.js +0 -37
- package/esm/node_modules/semver/internal/debug.js +0 -11
- package/esm/node_modules/semver/internal/identifiers.js +0 -29
- package/esm/node_modules/semver/internal/lrucache.js +0 -42
- package/esm/node_modules/semver/internal/parse-options.js +0 -17
- package/esm/node_modules/semver/internal/re.js +0 -223
- package/esm/node_modules/semver/ranges/gtr.js +0 -6
- package/esm/node_modules/semver/ranges/intersects.js +0 -9
- package/esm/node_modules/semver/ranges/ltr.js +0 -6
- package/esm/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/esm/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/esm/node_modules/semver/ranges/min-version.js +0 -63
- package/esm/node_modules/semver/ranges/outside.js +0 -82
- package/esm/node_modules/semver/ranges/simplify.js +0 -49
- package/esm/node_modules/semver/ranges/subset.js +0 -249
- package/esm/node_modules/semver/ranges/to-comparators.js +0 -10
- package/esm/node_modules/semver/ranges/valid.js +0 -13
- package/esm/util/fetch.ts.js +0 -190
- package/esm/util/index.ts.js +0 -276
|
@@ -1,497 +0,0 @@
|
|
|
1
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2
|
-
try {
|
|
3
|
-
var info = gen[key](arg);
|
|
4
|
-
var value = info.value;
|
|
5
|
-
} catch (error) {
|
|
6
|
-
reject(error);
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
if (info.done) {
|
|
10
|
-
resolve(value);
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function _async_to_generator(fn) {
|
|
16
|
-
return function() {
|
|
17
|
-
var self = this, args = arguments;
|
|
18
|
-
return new Promise(function(resolve, reject) {
|
|
19
|
-
var gen = fn.apply(self, args);
|
|
20
|
-
function _next(value) {
|
|
21
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
22
|
-
}
|
|
23
|
-
function _throw(err) {
|
|
24
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
25
|
-
}
|
|
26
|
-
_next(undefined);
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function _define_property(obj, key, value) {
|
|
31
|
-
if (key in obj) {
|
|
32
|
-
Object.defineProperty(obj, key, {
|
|
33
|
-
value: value,
|
|
34
|
-
enumerable: true,
|
|
35
|
-
configurable: true,
|
|
36
|
-
writable: true
|
|
37
|
-
});
|
|
38
|
-
} else {
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
41
|
-
return obj;
|
|
42
|
-
}
|
|
43
|
-
function _object_spread(target) {
|
|
44
|
-
for(var i = 1; i < arguments.length; i++){
|
|
45
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
46
|
-
var ownKeys = Object.keys(source);
|
|
47
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
48
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
49
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
ownKeys.forEach(function(key) {
|
|
53
|
-
_define_property(target, key, source[key]);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return target;
|
|
57
|
-
}
|
|
58
|
-
function ownKeys(object, enumerableOnly) {
|
|
59
|
-
var keys = Object.keys(object);
|
|
60
|
-
if (Object.getOwnPropertySymbols) {
|
|
61
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
62
|
-
if (enumerableOnly) {
|
|
63
|
-
symbols = symbols.filter(function(sym) {
|
|
64
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
keys.push.apply(keys, symbols);
|
|
68
|
-
}
|
|
69
|
-
return keys;
|
|
70
|
-
}
|
|
71
|
-
function _object_spread_props(target, source) {
|
|
72
|
-
source = source != null ? source : {};
|
|
73
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
74
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
75
|
-
} else {
|
|
76
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
77
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
return target;
|
|
81
|
-
}
|
|
82
|
-
function _object_without_properties(source, excluded) {
|
|
83
|
-
if (source == null) return {};
|
|
84
|
-
var target = _object_without_properties_loose(source, excluded);
|
|
85
|
-
var key, i;
|
|
86
|
-
if (Object.getOwnPropertySymbols) {
|
|
87
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
88
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
89
|
-
key = sourceSymbolKeys[i];
|
|
90
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
91
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
92
|
-
target[key] = source[key];
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return target;
|
|
96
|
-
}
|
|
97
|
-
function _object_without_properties_loose(source, excluded) {
|
|
98
|
-
if (source == null) return {};
|
|
99
|
-
var target = {};
|
|
100
|
-
var sourceKeys = Object.keys(source);
|
|
101
|
-
var key, i;
|
|
102
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
103
|
-
key = sourceKeys[i];
|
|
104
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
105
|
-
target[key] = source[key];
|
|
106
|
-
}
|
|
107
|
-
return target;
|
|
108
|
-
}
|
|
109
|
-
import Schema from '../../core/schema.ts.js';
|
|
110
|
-
import register from '../../core/register.ts.js';
|
|
111
|
-
import { defineComponent, h, withDirectives } from 'vue';
|
|
112
|
-
import { deepEquals, isObj, mergeDeep } from '../../util/index.ts.js';
|
|
113
|
-
import props from '../field/FieldProps.ts.js';
|
|
114
|
-
import Path from '../../core/path.ts.js';
|
|
115
|
-
import { reactionRegister, reactionDispatch, reactionUnRegister } from '../../core/reaction.ts.js';
|
|
116
|
-
import { executeExpression } from '../../core/expression.ts.js';
|
|
117
|
-
import { dispatchValidate } from '../../core/validator.ts.js';
|
|
118
|
-
import events from '../../core/events.ts.js';
|
|
119
|
-
import request from '../../util/fetch.ts.js';
|
|
120
|
-
import widgetTree from '../../core/widgetTree.ts.js';
|
|
121
|
-
import { capitalizeFirstLetter } from '../../util/index.ts.js';
|
|
122
|
-
import { bkTooltips } from 'bkui-vue';
|
|
123
|
-
export default defineComponent({
|
|
124
|
-
name: 'Widget',
|
|
125
|
-
inheritAttrs: false,
|
|
126
|
-
props,
|
|
127
|
-
data () {
|
|
128
|
-
return {
|
|
129
|
-
loading: false,
|
|
130
|
-
datasource: Schema.resolveDefaultDatasource(this.schema),
|
|
131
|
-
formItemProps: {
|
|
132
|
-
tips: '',
|
|
133
|
-
label: ''
|
|
134
|
-
},
|
|
135
|
-
state: {
|
|
136
|
-
visible: this.visible,
|
|
137
|
-
disabled: this.disabled,
|
|
138
|
-
readonly: this.readonly,
|
|
139
|
-
error: this.error
|
|
140
|
-
},
|
|
141
|
-
errorTips: '',
|
|
142
|
-
privateSchema: {},
|
|
143
|
-
key: ''
|
|
144
|
-
};
|
|
145
|
-
},
|
|
146
|
-
computed: {
|
|
147
|
-
widgetMap () {
|
|
148
|
-
return widgetTree.widgetMap;
|
|
149
|
-
},
|
|
150
|
-
widgetNode () {
|
|
151
|
-
return widgetTree.widgetMap[this.path];
|
|
152
|
-
},
|
|
153
|
-
parent () {
|
|
154
|
-
var _this_widgetNode;
|
|
155
|
-
return (_this_widgetNode = this.widgetNode) === null || _this_widgetNode === void 0 ? void 0 : _this_widgetNode.parent;
|
|
156
|
-
},
|
|
157
|
-
// 当前widget schema数据
|
|
158
|
-
widgetSchema () {
|
|
159
|
-
return mergeDeep({}, this.schema, this.privateSchema);
|
|
160
|
-
},
|
|
161
|
-
// 兼容以前数据结构
|
|
162
|
-
value () {
|
|
163
|
-
return this.modelValue;
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
watch: {
|
|
167
|
-
modelValue: {
|
|
168
|
-
handler (newValue, oldValue) {
|
|
169
|
-
if (!deepEquals(newValue, oldValue)) {
|
|
170
|
-
setTimeout(()=>{
|
|
171
|
-
reactionDispatch(this.path, 'valChange');
|
|
172
|
-
dispatchValidate(this.path);
|
|
173
|
-
}, 0);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
widgetSchema: {
|
|
178
|
-
deep: true,
|
|
179
|
-
handler (newValue, oldValue) {
|
|
180
|
-
if (deepEquals(newValue, oldValue)) return;
|
|
181
|
-
this.resetDatasource();
|
|
182
|
-
this.key = new Date().getTime().toString();
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
created () {
|
|
187
|
-
// 表单项配置
|
|
188
|
-
const uiOptions = Schema.getUiOptions(this.widgetSchema);
|
|
189
|
-
this.formItemProps = _object_spread_props(_object_spread({}, uiOptions), {
|
|
190
|
-
// schema配置不存在title时默认用属性名作为title
|
|
191
|
-
label: uiOptions.showTitle ? uiOptions.label || Path.getPathLastProp(this.path) : '',
|
|
192
|
-
required: this.required
|
|
193
|
-
});
|
|
194
|
-
// 设置widget初始化状态 ui:component优先级 > ui:props优先级
|
|
195
|
-
const vNodeData = Schema.getUiComponent(this.widgetSchema);
|
|
196
|
-
const defaultProps = Object.assign({}, this.formItemProps, vNodeData || {});
|
|
197
|
-
Object.keys(defaultProps).forEach((key)=>{
|
|
198
|
-
if (Reflect.has(this.state, key)) {
|
|
199
|
-
this.setState(key, defaultProps[key]);
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
// 注册widget TreeNode
|
|
203
|
-
widgetTree.addWidgetNode(this.path, this, 'node');
|
|
204
|
-
},
|
|
205
|
-
mounted () {
|
|
206
|
-
// 注册联动
|
|
207
|
-
reactionRegister(this.path, this.widgetSchema['ui:reactions']);
|
|
208
|
-
// 首次联动
|
|
209
|
-
reactionDispatch(this.path, 'valChange');
|
|
210
|
-
reactionDispatch(this.path, 'lifetime/init');
|
|
211
|
-
},
|
|
212
|
-
beforeUnmount () {
|
|
213
|
-
widgetTree.removeWidgetNode(this.path, this);
|
|
214
|
-
reactionUnRegister(this.path);
|
|
215
|
-
},
|
|
216
|
-
methods: {
|
|
217
|
-
setState (key, value) {
|
|
218
|
-
if (Reflect.has(this.state, key)) {
|
|
219
|
-
this.state[key] = value;
|
|
220
|
-
} else if (key === 'value') {
|
|
221
|
-
// 特殊处理value设置
|
|
222
|
-
this.$emit('update:modelValue', {
|
|
223
|
-
path: this.path,
|
|
224
|
-
value
|
|
225
|
-
});
|
|
226
|
-
} else {
|
|
227
|
-
console.warn(`Widget unsupported ${key} state, please check`);
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
loadDataSource () {
|
|
231
|
-
return _async_to_generator(function*() {
|
|
232
|
-
var _this_widgetSchema_uicomponent, _this_widgetSchema;
|
|
233
|
-
const xhrConfig = (_this_widgetSchema = this.widgetSchema) === null || _this_widgetSchema === void 0 ? void 0 : (_this_widgetSchema_uicomponent = _this_widgetSchema['ui:component']) === null || _this_widgetSchema_uicomponent === void 0 ? void 0 : _this_widgetSchema_uicomponent.remoteConfig;
|
|
234
|
-
if (xhrConfig) {
|
|
235
|
-
const { url, params } = xhrConfig, reset = _object_without_properties(xhrConfig, [
|
|
236
|
-
"url",
|
|
237
|
-
"params"
|
|
238
|
-
]);
|
|
239
|
-
const { request: http = request, responseParse } = this.httpAdapter;
|
|
240
|
-
try {
|
|
241
|
-
this.loading = true;
|
|
242
|
-
const remoteURL = executeExpression(url, this);
|
|
243
|
-
const requestParams = isObj(params) ? executeExpression(params, this) : params;
|
|
244
|
-
this.datasource = yield http(remoteURL, _object_spread_props(_object_spread({}, reset), {
|
|
245
|
-
params: requestParams,
|
|
246
|
-
responseParse
|
|
247
|
-
}));
|
|
248
|
-
this.loading = false;
|
|
249
|
-
} catch (e) {
|
|
250
|
-
this.loading = false;
|
|
251
|
-
console.error(e);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}).apply(this);
|
|
255
|
-
},
|
|
256
|
-
setErrorTips (tips) {
|
|
257
|
-
this.errorTips = tips;
|
|
258
|
-
},
|
|
259
|
-
getValue (path) {
|
|
260
|
-
return Path.getPathVal(this.rootData, path);
|
|
261
|
-
},
|
|
262
|
-
getReadonlyValue () {
|
|
263
|
-
var _this_widgetSchema_uicomponent;
|
|
264
|
-
let val = this.modelValue;
|
|
265
|
-
if (((_this_widgetSchema_uicomponent = this.widgetSchema['ui:component']) === null || _this_widgetSchema_uicomponent === void 0 ? void 0 : _this_widgetSchema_uicomponent.type) === 'password') {
|
|
266
|
-
val = '******';
|
|
267
|
-
} else if (this.datasource) {
|
|
268
|
-
var _this_datasource;
|
|
269
|
-
const item = (_this_datasource = this.datasource) === null || _this_datasource === void 0 ? void 0 : _this_datasource.find((item)=>item.value === this.modelValue);
|
|
270
|
-
if (item) {
|
|
271
|
-
val = item.label;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
let value = val === '' ? '--' : val;
|
|
275
|
-
if (Object.prototype.toString.call(value) === '[Object Object]') {
|
|
276
|
-
value = JSON.stringify(value);
|
|
277
|
-
} else if (Array.isArray(value)) {
|
|
278
|
-
const isTrue = value.some((item)=>item && typeof item === 'object');
|
|
279
|
-
if (isTrue) {
|
|
280
|
-
value = JSON.stringify(value);
|
|
281
|
-
} else {
|
|
282
|
-
value = value.join(',');
|
|
283
|
-
}
|
|
284
|
-
} else {
|
|
285
|
-
value = String(value);
|
|
286
|
-
}
|
|
287
|
-
return value;
|
|
288
|
-
},
|
|
289
|
-
getSchema () {
|
|
290
|
-
return this.widgetSchema;
|
|
291
|
-
},
|
|
292
|
-
setSchema (data) {
|
|
293
|
-
try {
|
|
294
|
-
this.privateSchema = JSON.parse(JSON.stringify(data));
|
|
295
|
-
} catch (err) {
|
|
296
|
-
console.warn(err);
|
|
297
|
-
}
|
|
298
|
-
return this.widgetSchema;
|
|
299
|
-
},
|
|
300
|
-
resetDatasource () {
|
|
301
|
-
var _this_widgetSchema_uicomponent, _this_widgetSchema;
|
|
302
|
-
const xhrConfig = (_this_widgetSchema = this.widgetSchema) === null || _this_widgetSchema === void 0 ? void 0 : (_this_widgetSchema_uicomponent = _this_widgetSchema['ui:component']) === null || _this_widgetSchema_uicomponent === void 0 ? void 0 : _this_widgetSchema_uicomponent.remoteConfig;
|
|
303
|
-
if (xhrConfig) {
|
|
304
|
-
this.loadDataSource();
|
|
305
|
-
} else {
|
|
306
|
-
this.datasource = Schema.resolveDefaultDatasource(this.widgetSchema);
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
// 获取 schema 中定义的默认值
|
|
310
|
-
getDefaultValue () {
|
|
311
|
-
return Schema.getSchemaDefaultValue(this.widgetSchema);
|
|
312
|
-
},
|
|
313
|
-
// 恢复默认值
|
|
314
|
-
resetToDefault () {
|
|
315
|
-
const defaultValue = this.getDefaultValue();
|
|
316
|
-
this.$emit('update:modelValue', {
|
|
317
|
-
path: this.path,
|
|
318
|
-
value: defaultValue
|
|
319
|
-
});
|
|
320
|
-
},
|
|
321
|
-
// 判断当前值是否与默认值相同
|
|
322
|
-
isDefaultValue () {
|
|
323
|
-
const defaultValue = this.getDefaultValue();
|
|
324
|
-
return deepEquals(this.modelValue, defaultValue);
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
render () {
|
|
328
|
-
var _events_callbacks, _this_$slots_default, _this_$slots;
|
|
329
|
-
const _Schema_getUiComponent = Schema.getUiComponent(this.widgetSchema), { name } = _Schema_getUiComponent, uiVnodeData = _object_without_properties(_Schema_getUiComponent, [
|
|
330
|
-
"name"
|
|
331
|
-
]);
|
|
332
|
-
// 注意顺序!!!
|
|
333
|
-
const widgetProps = _object_spread_props(_object_spread({}, this.$props), {
|
|
334
|
-
loading: this.loading,
|
|
335
|
-
modelValue: this.modelValue
|
|
336
|
-
});
|
|
337
|
-
const self = this;
|
|
338
|
-
const widgetName = register.getComponent(name) || name || Schema.getDefaultWidget(this.widgetSchema);
|
|
339
|
-
const widgetEvents = ((_events_callbacks = events.callbacks) === null || _events_callbacks === void 0 ? void 0 : _events_callbacks[this.path]) || {};
|
|
340
|
-
// 渲染表单项
|
|
341
|
-
const renderFormItem = ()=>{
|
|
342
|
-
var _this_widgetSchema_uicomponent;
|
|
343
|
-
return this.state.readonly && this.readonlyMode === 'value' && ((_this_widgetSchema_uicomponent = this.widgetSchema['ui:component']) === null || _this_widgetSchema_uicomponent === void 0 ? void 0 : _this_widgetSchema_uicomponent.name) !== 'table' ? renderReadonlyWidget : renderWidget;
|
|
344
|
-
};
|
|
345
|
-
var _this_$slots_default1;
|
|
346
|
-
// 渲染表单控件(当前state属性优先级最高)
|
|
347
|
-
const renderWidget = (_this_$slots_default1 = (_this_$slots_default = (_this_$slots = this.$slots).default) === null || _this_$slots_default === void 0 ? void 0 : _this_$slots_default.call(_this_$slots, {
|
|
348
|
-
path: this.path
|
|
349
|
-
})) !== null && _this_$slots_default1 !== void 0 ? _this_$slots_default1 : h(widgetName, mergeDeep(_object_spread_props(_object_spread({}, widgetProps, uiVnodeData || {}, Object.keys(widgetEvents).reduce((pre, key)=>{
|
|
350
|
-
pre[`on${capitalizeFirstLetter(key)}`] = widgetEvents[key];
|
|
351
|
-
return pre;
|
|
352
|
-
}, {})), {
|
|
353
|
-
schema: this.widgetSchema,
|
|
354
|
-
onClick () {
|
|
355
|
-
var _widgetEvents_click;
|
|
356
|
-
reactionDispatch(self.path, 'effect/click');
|
|
357
|
-
(_widgetEvents_click = widgetEvents.click) === null || _widgetEvents_click === void 0 ? void 0 : _widgetEvents_click.forEach((event)=>event());
|
|
358
|
-
},
|
|
359
|
-
'onUpdate:modelValue': (value)=>{
|
|
360
|
-
var _widgetEvents_updatemodelValue;
|
|
361
|
-
// 所有组件widget必须实现input事件,用于v-model时更新表单数据
|
|
362
|
-
self.$emit('update:modelValue', {
|
|
363
|
-
path: self.path,
|
|
364
|
-
value
|
|
365
|
-
});
|
|
366
|
-
(_widgetEvents_updatemodelValue = widgetEvents['update:modelValue']) === null || _widgetEvents_updatemodelValue === void 0 ? void 0 : _widgetEvents_updatemodelValue.forEach((event)=>event());
|
|
367
|
-
}
|
|
368
|
-
}), uiVnodeData, _object_spread_props(_object_spread({}, this.state), {
|
|
369
|
-
datasource: this.datasource,
|
|
370
|
-
readonly: this.readonly,
|
|
371
|
-
readonlyMode: this.readonlyMode
|
|
372
|
-
})));
|
|
373
|
-
const renderSuffix = ()=>{
|
|
374
|
-
var _this_$slots_suffix, _this_$slots;
|
|
375
|
-
return (_this_$slots_suffix = (_this_$slots = this.$slots).suffix) === null || _this_$slots_suffix === void 0 ? void 0 : _this_$slots_suffix.call(_this_$slots, {
|
|
376
|
-
path: this.path,
|
|
377
|
-
schema: this.widgetSchema
|
|
378
|
-
});
|
|
379
|
-
};
|
|
380
|
-
// 渲染默认readonly模式
|
|
381
|
-
const renderReadonlyWidget = h('div', {}, {
|
|
382
|
-
default: ()=>this.getReadonlyValue()
|
|
383
|
-
});
|
|
384
|
-
// 渲染删除按钮(用于数组类型widget删除)
|
|
385
|
-
const renderDelete = ()=>{
|
|
386
|
-
if (!this.removeable) return null;
|
|
387
|
-
return h('span', {
|
|
388
|
-
class: [
|
|
389
|
-
'bk-schema-form-group-delete'
|
|
390
|
-
],
|
|
391
|
-
onClick: ()=>{
|
|
392
|
-
self.$emit('remove', self.path);
|
|
393
|
-
}
|
|
394
|
-
}, [
|
|
395
|
-
h('i', {
|
|
396
|
-
class: [
|
|
397
|
-
'bk-form-icon icon-close3-shape'
|
|
398
|
-
]
|
|
399
|
-
})
|
|
400
|
-
]);
|
|
401
|
-
};
|
|
402
|
-
// 渲染恢复默认值按钮
|
|
403
|
-
const renderResetDefault = ()=>{
|
|
404
|
-
var _this_widgetSchema_uiprops;
|
|
405
|
-
// 优先使用 schema 中的配置,否则使用全局配置
|
|
406
|
-
const schemaShowResetDefault = (_this_widgetSchema_uiprops = this.widgetSchema['ui:props']) === null || _this_widgetSchema_uiprops === void 0 ? void 0 : _this_widgetSchema_uiprops.showResetDefault;
|
|
407
|
-
const showResetDefault = schemaShowResetDefault !== undefined ? schemaShowResetDefault : this.showResetDefault;
|
|
408
|
-
// 不显示恢复默认值按钮,或者当前值已经是默认值
|
|
409
|
-
if (!showResetDefault || this.isDefaultValue() || this.state.readonly || this.state.disabled) {
|
|
410
|
-
return null;
|
|
411
|
-
}
|
|
412
|
-
return withDirectives(h('span', {
|
|
413
|
-
class: [
|
|
414
|
-
'bk-schema-form-reset-default',
|
|
415
|
-
'bk-form-icon icon-reset'
|
|
416
|
-
],
|
|
417
|
-
onClick: ()=>{
|
|
418
|
-
self.resetToDefault();
|
|
419
|
-
}
|
|
420
|
-
}), [
|
|
421
|
-
[
|
|
422
|
-
bkTooltips,
|
|
423
|
-
{
|
|
424
|
-
content: '恢复默认值'
|
|
425
|
-
}
|
|
426
|
-
]
|
|
427
|
-
]);
|
|
428
|
-
};
|
|
429
|
-
// 渲染错误提示
|
|
430
|
-
const renderError = ()=>this.state.error ? h('p', {
|
|
431
|
-
class: 'bk-schema-form-item__error-tips'
|
|
432
|
-
}, {
|
|
433
|
-
default: ()=>this.errorTips
|
|
434
|
-
}) : null;
|
|
435
|
-
// 渲染表单提示
|
|
436
|
-
const renderFormTips = ()=>this.formItemProps.tips ? h('p', {
|
|
437
|
-
class: [
|
|
438
|
-
'mt5',
|
|
439
|
-
'mb0',
|
|
440
|
-
'f12'
|
|
441
|
-
],
|
|
442
|
-
style: {
|
|
443
|
-
color: '#5e6d82',
|
|
444
|
-
lineHeight: '1.5em'
|
|
445
|
-
}
|
|
446
|
-
}, {
|
|
447
|
-
default: ()=>this.formItemProps.tips
|
|
448
|
-
}) : null;
|
|
449
|
-
// 渲染 label 插槽内容(包含 label 文本和重置按钮)
|
|
450
|
-
const renderLabel = ()=>{
|
|
451
|
-
const labelText = this.formItemProps.label;
|
|
452
|
-
const { description } = this.widgetSchema;
|
|
453
|
-
if (description) {
|
|
454
|
-
return [
|
|
455
|
-
withDirectives(h('span', {
|
|
456
|
-
class: {
|
|
457
|
-
'bk-schema-form-label-description': description
|
|
458
|
-
}
|
|
459
|
-
}, labelText), [
|
|
460
|
-
[
|
|
461
|
-
bkTooltips,
|
|
462
|
-
{
|
|
463
|
-
content: description,
|
|
464
|
-
disabled: !description
|
|
465
|
-
}
|
|
466
|
-
]
|
|
467
|
-
]),
|
|
468
|
-
renderResetDefault()
|
|
469
|
-
];
|
|
470
|
-
}
|
|
471
|
-
return [
|
|
472
|
-
labelText,
|
|
473
|
-
renderResetDefault()
|
|
474
|
-
];
|
|
475
|
-
};
|
|
476
|
-
return h(register.getBaseWidget('form-item'), _object_spread_props(_object_spread({
|
|
477
|
-
key: this.key
|
|
478
|
-
}, this.formItemProps), {
|
|
479
|
-
style: _object_spread_props(_object_spread({}, this.layout.item || {}, this.layout.container || {}), {
|
|
480
|
-
// 表单项显示和隐藏状态
|
|
481
|
-
display: this.state.visible ? '' : 'none'
|
|
482
|
-
}),
|
|
483
|
-
class: {
|
|
484
|
-
'bk-schema-form-item--error': this.state.error
|
|
485
|
-
}
|
|
486
|
-
}), {
|
|
487
|
-
label: renderLabel,
|
|
488
|
-
default: ()=>[
|
|
489
|
-
renderFormItem(),
|
|
490
|
-
renderSuffix(),
|
|
491
|
-
renderDelete(),
|
|
492
|
-
renderError(),
|
|
493
|
-
renderFormTips()
|
|
494
|
-
]
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
});
|
|
Binary file
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" standalone="no"?>
|
|
2
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
|
3
|
-
<svg>
|
|
4
|
-
<metadata>
|
|
5
|
-
Created by font-carrier
|
|
6
|
-
</metadata>
|
|
7
|
-
<defs>
|
|
8
|
-
<font id="iconfont" horiz-adv-x="1024" vert-adv-y="1024" >
|
|
9
|
-
<font-face
|
|
10
|
-
|
|
11
|
-
font-family="iconfont"
|
|
12
|
-
|
|
13
|
-
font-weight="400"
|
|
14
|
-
|
|
15
|
-
font-stretch="normal"
|
|
16
|
-
|
|
17
|
-
units-per-em="1024"
|
|
18
|
-
|
|
19
|
-
ascent="812"
|
|
20
|
-
|
|
21
|
-
descent="-212"
|
|
22
|
-
|
|
23
|
-
/>
|
|
24
|
-
<missing-glyph />
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<glyph glyph-name="x" unicode="x" horiz-adv-x="100"
|
|
28
|
-
d="M20 20 L50 20 L50 -20 Z" />
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<glyph glyph-name="uniE102" unicode="" d="M128 364H896V236H128V364Z" horiz-adv-x="1024" vert-adv-y="1024" />
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<glyph glyph-name="uniE104" unicode="" d="M896 364L576 364 576 684 448 684 448 364 128 364 128 236 448 236 448-84 576-84 576 236 896 236Z" horiz-adv-x="1024" vert-adv-y="1024" />
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<glyph glyph-name="uniE105" unicode="" d="M512 748C264 748 64 548 64 300S264-148 512-148 960 52 960 300 760 748 512 748ZM736 268H544V76H480V268H288V332H480V524H544V332H736V268Z" horiz-adv-x="1024" vert-adv-y="1024" />
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<glyph glyph-name="uniE106" unicode="" d="M672 588V652C672 687.2 643.2 716 608 716H416C380.8 716 352 687.2 352 652V588H96V524H208V-52C208-87.2 236.8-116 272-116H752C787.2-116 816-87.2 816-52V524H928V588H672ZM416 636C416 645.6 422.4 652 432 652H592C601.6 652 608 645.6 608 636V588H416V636ZM448 60H384V412H448V60ZM640 60H576V412H640V60Z" horiz-adv-x="1024" vert-adv-y="1024" />
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
<glyph glyph-name="uniE107" unicode="" d="M512 44C505.6 44 498.56 46.56 493.44 52.32L136.96 436.32C128.64 445.28 126.08 459.36 129.92 471.52S144 492 155.52 492H868.48C880 492 889.6 483.68 894.08 471.52S895.36 445.28 887.04 436.32L530.56 52.32C525.44 46.56 518.4 44 512 44Z" horiz-adv-x="1024" vert-adv-y="1024" />
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<glyph glyph-name="uniE108" unicode="" d="M999.6664 615.2059C980.5775 622.5955 959.5207 611.8279 952.8297 591.3483L924.4915 506.0519C891.2335 586.4923 838.6898 657.2207 771.7802 710.2143 559.0471 879.118 255.9861 833.0917 96.5838 607.183 19.441 497.8179-13.2266 363.1171 4.8783 227.9942 22.9833 92.2378 90.0896-27.895 193.4059-110.0244 279.9948-178.6415 381.3431-212 481.9043-212 628.9086-212 773.945-141.2716 868.6024-7.2042 910.5192 52.1232 939.0542 118.4179 953.8137 190.202 958.1431 211.5261 945.5484 232.4279 925.8691 237.0727 906.1898 241.7176 886.5105 228.4164 882.1811 207.0923 869.7831 146.4981 845.5776 90.3376 810.1549 40.2999 674.9581-151.1947 417.7498-190.2536 237.0939-46.6855 149.5211 22.7762 92.8447 124.3295 77.4949 239.184 62.1451 353.4052 89.6961 467.2041 155.0313 559.6788 290.0312 751.1734 547.0428 790.4435 727.8954 646.8754 793.4275 594.9375 842.4289 522.9423 868.9959 441.6574L742.8517 494.4398C723.9596 502.2516 702.7059 492.3285 695.2278 472.06 687.7497 451.7916 697.1957 428.9896 716.0879 420.9667L901.8604 343.0598C906.1898 341.1597 910.716 340.3151 915.2423 340.3151 915.8327 340.3151 916.423 340.5263 917.0134 340.5263 918.391 340.3151 919.7685 339.6818 921.1461 339.6818 936.2991 339.6818 950.4682 349.816 955.7816 365.8618L1021.904 564.3237C1028.595 585.2255 1018.7553 607.8164 999.6664 615.2059Z" horiz-adv-x="1024" vert-adv-y="1024" />
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</font>
|
|
52
|
-
</defs>
|
|
53
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
package/esm/assets/style.css
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: "bk-form";
|
|
3
|
-
src: url("fonts/iconcool.svg#iconcool") format("svg"),
|
|
4
|
-
url("fonts/iconcool.ttf") format("truetype"),
|
|
5
|
-
url("fonts/iconcool.woff") format("woff"),
|
|
6
|
-
url("fonts/iconcool.eot?#iefix") format("embedded-opentype");
|
|
7
|
-
font-weight: normal;
|
|
8
|
-
font-style: normal;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.bk-form-icon {
|
|
12
|
-
/* use !important to prevent issues with browser extensions that change fonts */
|
|
13
|
-
font-family: 'bk-form' !important;
|
|
14
|
-
speak: none;
|
|
15
|
-
font-style: normal;
|
|
16
|
-
font-weight: normal;
|
|
17
|
-
font-variant: normal;
|
|
18
|
-
text-transform: none;
|
|
19
|
-
line-height: 1;
|
|
20
|
-
text-align: center;
|
|
21
|
-
/* Better Font Rendering =========== */
|
|
22
|
-
-webkit-font-smoothing: antialiased;
|
|
23
|
-
-moz-osx-font-smoothing: grayscale;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.icon-minus-line:before {
|
|
27
|
-
content: "\e102";
|
|
28
|
-
}
|
|
29
|
-
.icon-plus-line:before {
|
|
30
|
-
content: "\e104";
|
|
31
|
-
}
|
|
32
|
-
.icon-plus-circle-shape:before {
|
|
33
|
-
content: "\e105";
|
|
34
|
-
}
|
|
35
|
-
.icon-close3-shape:before {
|
|
36
|
-
content: "\e106";
|
|
37
|
-
}
|
|
38
|
-
.icon-down-shape:before {
|
|
39
|
-
content: "\e107";
|
|
40
|
-
}
|
|
41
|
-
.icon-reset:before {
|
|
42
|
-
content: "\e108";
|
|
43
|
-
}
|