@ibiz-template/vue3-components 0.4.3 → 0.4.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/chart-ImL2qyp9.js +0 -1
- package/dist/ibiz-markdown-editor-BQsiQfa2.js +0 -1
- package/dist/index-UNZ1dtt_.js +0 -1
- package/dist/index-Ul84JXar.js +0 -1
- package/dist/index-zzHHP33g.js +13 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -2
- package/dist/map-chart-7nfIdU3w.js +0 -1
- package/dist/wang-editor-f4440Xvw.js +0 -1
- package/dist/{xlsx-util-Mxa6HuaG.js → xlsx-util-FO177Hj_.js} +1 -2
- package/es/common/col/col.mjs +0 -3
- package/es/common/data-import2/data-import2.css +1 -1
- package/es/common/data-import2/data-import2.d.ts +48 -11
- package/es/common/data-import2/data-import2.mjs +133 -166
- package/es/common/data-import2-select/data-import2-select.css +1 -0
- package/es/common/data-import2-select/data-import2-select.d.ts +59 -0
- package/es/common/data-import2-select/data-import2-select.mjs +170 -0
- package/es/common/data-import2-table/data-import2-table.css +1 -0
- package/es/common/data-import2-table/data-import2-table.d.ts +56 -0
- package/es/common/data-import2-table/data-import2-table.mjs +104 -0
- package/es/common/index.mjs +4 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +2 -2
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.provider.mjs +1 -1
- package/es/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/es/control/tree/index.d.ts +1 -0
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +1 -0
- package/es/control/tree/tree.mjs +104 -54
- package/es/editor/index.mjs +9 -2
- package/es/index.mjs +0 -1
- package/es/panel-component/index.d.ts +0 -1
- package/es/panel-component/index.mjs +2 -4
- package/es/panel-component/panel-button/panel-button.controller.mjs +4 -1
- package/es/view-engine/index-view.engine.d.ts +0 -7
- package/es/view-engine/index-view.engine.mjs +0 -37
- package/lib/common/col/col.cjs +0 -3
- package/lib/common/data-import2/data-import2.cjs +132 -164
- package/lib/common/data-import2/data-import2.css +1 -1
- package/lib/common/data-import2-select/data-import2-select.cjs +172 -0
- package/lib/common/data-import2-select/data-import2-select.css +1 -0
- package/lib/common/data-import2-table/data-import2-table.cjs +106 -0
- package/lib/common/data-import2-table/data-import2-table.css +1 -0
- package/lib/common/index.cjs +4 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.provider.cjs +1 -1
- package/lib/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/lib/control/tree/tree.cjs +102 -52
- package/lib/control/tree/tree.css +1 -1
- package/lib/editor/index.cjs +9 -2
- package/lib/index.cjs +15 -17
- package/lib/panel-component/index.cjs +29 -32
- package/lib/panel-component/panel-button/panel-button.controller.cjs +4 -1
- package/lib/view-engine/index-view.engine.cjs +0 -37
- package/package.json +10 -9
- package/dist/chart-ImL2qyp9.js.map +0 -1
- package/dist/ibiz-markdown-editor-BQsiQfa2.js.map +0 -1
- package/dist/index-1dtzc9-X.js +0 -14
- package/dist/index-1dtzc9-X.js.map +0 -1
- package/dist/index-UNZ1dtt_.js.map +0 -1
- package/dist/index-Ul84JXar.js.map +0 -1
- package/dist/index.system.min.js.map +0 -1
- package/dist/map-chart-7nfIdU3w.js.map +0 -1
- package/dist/wang-editor-f4440Xvw.js.map +0 -1
- package/dist/xlsx-util-Mxa6HuaG.js.map +0 -1
- package/es/_virtual/_commonjs-dynamic-modules.mjs +0 -5
- package/es/_virtual/pluralize.mjs +0 -3
- package/es/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/format-path/format-path.mjs +0 -11
- package/es/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/index.mjs +0 -4
- package/es/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/merge-model/merge-model.mjs +0 -22
- package/es/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/plural/plural.mjs +0 -30
- package/es/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/service-path-util/service-path-util.mjs +0 -187
- package/es/node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.mjs +0 -515
- package/es/panel-component/panel-container-group/index.d.ts +0 -28
- package/es/panel-component/panel-container-group/index.mjs +0 -20
- package/es/panel-component/panel-container-group/panel-container-group.controller.d.ts +0 -31
- package/es/panel-component/panel-container-group/panel-container-group.controller.mjs +0 -35
- package/es/panel-component/panel-container-group/panel-container-group.css +0 -1
- package/es/panel-component/panel-container-group/panel-container-group.d.ts +0 -28
- package/es/panel-component/panel-container-group/panel-container-group.mjs +0 -107
- package/es/panel-component/panel-container-group/panel-container-group.provider.d.ts +0 -15
- package/es/panel-component/panel-container-group/panel-container-group.provider.mjs +0 -21
- package/es/panel-component/panel-container-group/panel-container-group.state.d.ts +0 -12
- package/es/panel-component/panel-container-group/panel-container-group.state.mjs +0 -7
- package/es/panel-component/panel-tab-page/index.d.ts +0 -23
- package/es/panel-component/panel-tab-page/index.mjs +0 -12
- package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +0 -25
- package/es/panel-component/panel-tab-page/panel-tab-page.mjs +0 -62
- package/es/panel-component/panel-tab-page/panel-tab-page.provider.d.ts +0 -13
- package/es/panel-component/panel-tab-page/panel-tab-page.provider.mjs +0 -21
- package/lib/_virtual/_commonjs-dynamic-modules.cjs +0 -7
- package/lib/_virtual/pluralize.cjs +0 -5
- package/lib/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/format-path/format-path.cjs +0 -13
- package/lib/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/index.cjs +0 -14
- package/lib/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/merge-model/merge-model.cjs +0 -24
- package/lib/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/plural/plural.cjs +0 -33
- package/lib/node_modules/.pnpm/@ibiz-template_model-helper@0.4.3_@ibiz-template_runtime@0.4.3_ramda@0.29.1/node_modules/@ibiz-template/model-helper/out/utils/service-path-util/service-path-util.cjs +0 -189
- package/lib/node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.cjs +0 -519
- package/lib/panel-component/panel-container-group/index.cjs +0 -27
- package/lib/panel-component/panel-container-group/panel-container-group.cjs +0 -109
- package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +0 -37
- package/lib/panel-component/panel-container-group/panel-container-group.css +0 -1
- package/lib/panel-component/panel-container-group/panel-container-group.provider.cjs +0 -23
- package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +0 -9
- package/lib/panel-component/panel-tab-page/index.cjs +0 -17
- package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +0 -64
- package/lib/panel-component/panel-tab-page/panel-tab-page.provider.cjs +0 -23
|
@@ -1,519 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var _commonjsHelpers = require('../../../../../_virtual/_commonjsHelpers.cjs');
|
|
6
|
-
var _commonjsDynamicModules = require('../../../../../_virtual/_commonjs-dynamic-modules.cjs');
|
|
7
|
-
var pluralize$2 = require('../../../../../_virtual/pluralize.cjs');
|
|
8
|
-
|
|
9
|
-
/* global define */
|
|
10
|
-
var pluralize = pluralize$2.__module.exports;
|
|
11
|
-
|
|
12
|
-
(function (module, exports) {
|
|
13
|
-
(function (root, pluralize) {
|
|
14
|
-
/* istanbul ignore else */
|
|
15
|
-
if (typeof _commonjsDynamicModules.commonjsRequire === 'function' && 'object' === 'object' && 'object' === 'object') {
|
|
16
|
-
// Node.
|
|
17
|
-
module.exports = pluralize();
|
|
18
|
-
} else if (typeof undefined === 'function' && undefined.amd) {
|
|
19
|
-
// AMD, registers as an anonymous module.
|
|
20
|
-
undefined(function () {
|
|
21
|
-
return pluralize();
|
|
22
|
-
});
|
|
23
|
-
} else {
|
|
24
|
-
// Browser global.
|
|
25
|
-
root.pluralize = pluralize();
|
|
26
|
-
}
|
|
27
|
-
})(_commonjsHelpers.commonjsGlobal, function () {
|
|
28
|
-
// Rule storage - pluralize and singularize need to be run sequentially,
|
|
29
|
-
// while other rules can be optimized using an object for instant lookups.
|
|
30
|
-
var pluralRules = [];
|
|
31
|
-
var singularRules = [];
|
|
32
|
-
var uncountables = {};
|
|
33
|
-
var irregularPlurals = {};
|
|
34
|
-
var irregularSingles = {};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Sanitize a pluralization rule to a usable regular expression.
|
|
38
|
-
*
|
|
39
|
-
* @param {(RegExp|string)} rule
|
|
40
|
-
* @return {RegExp}
|
|
41
|
-
*/
|
|
42
|
-
function sanitizeRule (rule) {
|
|
43
|
-
if (typeof rule === 'string') {
|
|
44
|
-
return new RegExp('^' + rule + '$', 'i');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return rule;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Pass in a word token to produce a function that can replicate the case on
|
|
52
|
-
* another word.
|
|
53
|
-
*
|
|
54
|
-
* @param {string} word
|
|
55
|
-
* @param {string} token
|
|
56
|
-
* @return {Function}
|
|
57
|
-
*/
|
|
58
|
-
function restoreCase (word, token) {
|
|
59
|
-
// Tokens are an exact match.
|
|
60
|
-
if (word === token) return token;
|
|
61
|
-
|
|
62
|
-
// Lower cased words. E.g. "hello".
|
|
63
|
-
if (word === word.toLowerCase()) return token.toLowerCase();
|
|
64
|
-
|
|
65
|
-
// Upper cased words. E.g. "WHISKY".
|
|
66
|
-
if (word === word.toUpperCase()) return token.toUpperCase();
|
|
67
|
-
|
|
68
|
-
// Title cased words. E.g. "Title".
|
|
69
|
-
if (word[0] === word[0].toUpperCase()) {
|
|
70
|
-
return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Lower cased words. E.g. "test".
|
|
74
|
-
return token.toLowerCase();
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Interpolate a regexp string.
|
|
79
|
-
*
|
|
80
|
-
* @param {string} str
|
|
81
|
-
* @param {Array} args
|
|
82
|
-
* @return {string}
|
|
83
|
-
*/
|
|
84
|
-
function interpolate (str, args) {
|
|
85
|
-
return str.replace(/\$(\d{1,2})/g, function (match, index) {
|
|
86
|
-
return args[index] || '';
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Replace a word using a rule.
|
|
92
|
-
*
|
|
93
|
-
* @param {string} word
|
|
94
|
-
* @param {Array} rule
|
|
95
|
-
* @return {string}
|
|
96
|
-
*/
|
|
97
|
-
function replace (word, rule) {
|
|
98
|
-
return word.replace(rule[0], function (match, index) {
|
|
99
|
-
var result = interpolate(rule[1], arguments);
|
|
100
|
-
|
|
101
|
-
if (match === '') {
|
|
102
|
-
return restoreCase(word[index - 1], result);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return restoreCase(match, result);
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Sanitize a word by passing in the word and sanitization rules.
|
|
111
|
-
*
|
|
112
|
-
* @param {string} token
|
|
113
|
-
* @param {string} word
|
|
114
|
-
* @param {Array} rules
|
|
115
|
-
* @return {string}
|
|
116
|
-
*/
|
|
117
|
-
function sanitizeWord (token, word, rules) {
|
|
118
|
-
// Empty string or doesn't need fixing.
|
|
119
|
-
if (!token.length || uncountables.hasOwnProperty(token)) {
|
|
120
|
-
return word;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
var len = rules.length;
|
|
124
|
-
|
|
125
|
-
// Iterate over the sanitization rules and use the first one to match.
|
|
126
|
-
while (len--) {
|
|
127
|
-
var rule = rules[len];
|
|
128
|
-
|
|
129
|
-
if (rule[0].test(word)) return replace(word, rule);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return word;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Replace a word with the updated word.
|
|
137
|
-
*
|
|
138
|
-
* @param {Object} replaceMap
|
|
139
|
-
* @param {Object} keepMap
|
|
140
|
-
* @param {Array} rules
|
|
141
|
-
* @return {Function}
|
|
142
|
-
*/
|
|
143
|
-
function replaceWord (replaceMap, keepMap, rules) {
|
|
144
|
-
return function (word) {
|
|
145
|
-
// Get the correct token and case restoration functions.
|
|
146
|
-
var token = word.toLowerCase();
|
|
147
|
-
|
|
148
|
-
// Check against the keep object map.
|
|
149
|
-
if (keepMap.hasOwnProperty(token)) {
|
|
150
|
-
return restoreCase(word, token);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// Check against the replacement map for a direct word replacement.
|
|
154
|
-
if (replaceMap.hasOwnProperty(token)) {
|
|
155
|
-
return restoreCase(word, replaceMap[token]);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// Run all the rules against the word.
|
|
159
|
-
return sanitizeWord(token, word, rules);
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Check if a word is part of the map.
|
|
165
|
-
*/
|
|
166
|
-
function checkWord (replaceMap, keepMap, rules, bool) {
|
|
167
|
-
return function (word) {
|
|
168
|
-
var token = word.toLowerCase();
|
|
169
|
-
|
|
170
|
-
if (keepMap.hasOwnProperty(token)) return true;
|
|
171
|
-
if (replaceMap.hasOwnProperty(token)) return false;
|
|
172
|
-
|
|
173
|
-
return sanitizeWord(token, token, rules) === token;
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Pluralize or singularize a word based on the passed in count.
|
|
179
|
-
*
|
|
180
|
-
* @param {string} word The word to pluralize
|
|
181
|
-
* @param {number} count How many of the word exist
|
|
182
|
-
* @param {boolean} inclusive Whether to prefix with the number (e.g. 3 ducks)
|
|
183
|
-
* @return {string}
|
|
184
|
-
*/
|
|
185
|
-
function pluralize (word, count, inclusive) {
|
|
186
|
-
var pluralized = count === 1
|
|
187
|
-
? pluralize.singular(word) : pluralize.plural(word);
|
|
188
|
-
|
|
189
|
-
return (inclusive ? count + ' ' : '') + pluralized;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Pluralize a word.
|
|
194
|
-
*
|
|
195
|
-
* @type {Function}
|
|
196
|
-
*/
|
|
197
|
-
pluralize.plural = replaceWord(
|
|
198
|
-
irregularSingles, irregularPlurals, pluralRules
|
|
199
|
-
);
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Check if a word is plural.
|
|
203
|
-
*
|
|
204
|
-
* @type {Function}
|
|
205
|
-
*/
|
|
206
|
-
pluralize.isPlural = checkWord(
|
|
207
|
-
irregularSingles, irregularPlurals, pluralRules
|
|
208
|
-
);
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Singularize a word.
|
|
212
|
-
*
|
|
213
|
-
* @type {Function}
|
|
214
|
-
*/
|
|
215
|
-
pluralize.singular = replaceWord(
|
|
216
|
-
irregularPlurals, irregularSingles, singularRules
|
|
217
|
-
);
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Check if a word is singular.
|
|
221
|
-
*
|
|
222
|
-
* @type {Function}
|
|
223
|
-
*/
|
|
224
|
-
pluralize.isSingular = checkWord(
|
|
225
|
-
irregularPlurals, irregularSingles, singularRules
|
|
226
|
-
);
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Add a pluralization rule to the collection.
|
|
230
|
-
*
|
|
231
|
-
* @param {(string|RegExp)} rule
|
|
232
|
-
* @param {string} replacement
|
|
233
|
-
*/
|
|
234
|
-
pluralize.addPluralRule = function (rule, replacement) {
|
|
235
|
-
pluralRules.push([sanitizeRule(rule), replacement]);
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Add a singularization rule to the collection.
|
|
240
|
-
*
|
|
241
|
-
* @param {(string|RegExp)} rule
|
|
242
|
-
* @param {string} replacement
|
|
243
|
-
*/
|
|
244
|
-
pluralize.addSingularRule = function (rule, replacement) {
|
|
245
|
-
singularRules.push([sanitizeRule(rule), replacement]);
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Add an uncountable word rule.
|
|
250
|
-
*
|
|
251
|
-
* @param {(string|RegExp)} word
|
|
252
|
-
*/
|
|
253
|
-
pluralize.addUncountableRule = function (word) {
|
|
254
|
-
if (typeof word === 'string') {
|
|
255
|
-
uncountables[word.toLowerCase()] = true;
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
// Set singular and plural references for the word.
|
|
260
|
-
pluralize.addPluralRule(word, '$0');
|
|
261
|
-
pluralize.addSingularRule(word, '$0');
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Add an irregular word definition.
|
|
266
|
-
*
|
|
267
|
-
* @param {string} single
|
|
268
|
-
* @param {string} plural
|
|
269
|
-
*/
|
|
270
|
-
pluralize.addIrregularRule = function (single, plural) {
|
|
271
|
-
plural = plural.toLowerCase();
|
|
272
|
-
single = single.toLowerCase();
|
|
273
|
-
|
|
274
|
-
irregularSingles[single] = plural;
|
|
275
|
-
irregularPlurals[plural] = single;
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Irregular rules.
|
|
280
|
-
*/
|
|
281
|
-
[
|
|
282
|
-
// Pronouns.
|
|
283
|
-
['I', 'we'],
|
|
284
|
-
['me', 'us'],
|
|
285
|
-
['he', 'they'],
|
|
286
|
-
['she', 'they'],
|
|
287
|
-
['them', 'them'],
|
|
288
|
-
['myself', 'ourselves'],
|
|
289
|
-
['yourself', 'yourselves'],
|
|
290
|
-
['itself', 'themselves'],
|
|
291
|
-
['herself', 'themselves'],
|
|
292
|
-
['himself', 'themselves'],
|
|
293
|
-
['themself', 'themselves'],
|
|
294
|
-
['is', 'are'],
|
|
295
|
-
['was', 'were'],
|
|
296
|
-
['has', 'have'],
|
|
297
|
-
['this', 'these'],
|
|
298
|
-
['that', 'those'],
|
|
299
|
-
// Words ending in with a consonant and `o`.
|
|
300
|
-
['echo', 'echoes'],
|
|
301
|
-
['dingo', 'dingoes'],
|
|
302
|
-
['volcano', 'volcanoes'],
|
|
303
|
-
['tornado', 'tornadoes'],
|
|
304
|
-
['torpedo', 'torpedoes'],
|
|
305
|
-
// Ends with `us`.
|
|
306
|
-
['genus', 'genera'],
|
|
307
|
-
['viscus', 'viscera'],
|
|
308
|
-
// Ends with `ma`.
|
|
309
|
-
['stigma', 'stigmata'],
|
|
310
|
-
['stoma', 'stomata'],
|
|
311
|
-
['dogma', 'dogmata'],
|
|
312
|
-
['lemma', 'lemmata'],
|
|
313
|
-
['schema', 'schemata'],
|
|
314
|
-
['anathema', 'anathemata'],
|
|
315
|
-
// Other irregular rules.
|
|
316
|
-
['ox', 'oxen'],
|
|
317
|
-
['axe', 'axes'],
|
|
318
|
-
['die', 'dice'],
|
|
319
|
-
['yes', 'yeses'],
|
|
320
|
-
['foot', 'feet'],
|
|
321
|
-
['eave', 'eaves'],
|
|
322
|
-
['goose', 'geese'],
|
|
323
|
-
['tooth', 'teeth'],
|
|
324
|
-
['quiz', 'quizzes'],
|
|
325
|
-
['human', 'humans'],
|
|
326
|
-
['proof', 'proofs'],
|
|
327
|
-
['carve', 'carves'],
|
|
328
|
-
['valve', 'valves'],
|
|
329
|
-
['looey', 'looies'],
|
|
330
|
-
['thief', 'thieves'],
|
|
331
|
-
['groove', 'grooves'],
|
|
332
|
-
['pickaxe', 'pickaxes'],
|
|
333
|
-
['passerby', 'passersby']
|
|
334
|
-
].forEach(function (rule) {
|
|
335
|
-
return pluralize.addIrregularRule(rule[0], rule[1]);
|
|
336
|
-
});
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Pluralization rules.
|
|
340
|
-
*/
|
|
341
|
-
[
|
|
342
|
-
[/s?$/i, 's'],
|
|
343
|
-
[/[^\u0000-\u007F]$/i, '$0'],
|
|
344
|
-
[/([^aeiou]ese)$/i, '$1'],
|
|
345
|
-
[/(ax|test)is$/i, '$1es'],
|
|
346
|
-
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i, '$1es'],
|
|
347
|
-
[/(e[mn]u)s?$/i, '$1s'],
|
|
348
|
-
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, '$1'],
|
|
349
|
-
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, '$1i'],
|
|
350
|
-
[/(alumn|alg|vertebr)(?:a|ae)$/i, '$1ae'],
|
|
351
|
-
[/(seraph|cherub)(?:im)?$/i, '$1im'],
|
|
352
|
-
[/(her|at|gr)o$/i, '$1oes'],
|
|
353
|
-
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, '$1a'],
|
|
354
|
-
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, '$1a'],
|
|
355
|
-
[/sis$/i, 'ses'],
|
|
356
|
-
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, '$1$2ves'],
|
|
357
|
-
[/([^aeiouy]|qu)y$/i, '$1ies'],
|
|
358
|
-
[/([^ch][ieo][ln])ey$/i, '$1ies'],
|
|
359
|
-
[/(x|ch|ss|sh|zz)$/i, '$1es'],
|
|
360
|
-
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, '$1ices'],
|
|
361
|
-
[/\b((?:tit)?m|l)(?:ice|ouse)$/i, '$1ice'],
|
|
362
|
-
[/(pe)(?:rson|ople)$/i, '$1ople'],
|
|
363
|
-
[/(child)(?:ren)?$/i, '$1ren'],
|
|
364
|
-
[/eaux$/i, '$0'],
|
|
365
|
-
[/m[ae]n$/i, 'men'],
|
|
366
|
-
['thou', 'you']
|
|
367
|
-
].forEach(function (rule) {
|
|
368
|
-
return pluralize.addPluralRule(rule[0], rule[1]);
|
|
369
|
-
});
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Singularization rules.
|
|
373
|
-
*/
|
|
374
|
-
[
|
|
375
|
-
[/s$/i, ''],
|
|
376
|
-
[/(ss)$/i, '$1'],
|
|
377
|
-
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, '$1fe'],
|
|
378
|
-
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, '$1f'],
|
|
379
|
-
[/ies$/i, 'y'],
|
|
380
|
-
[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, '$1ie'],
|
|
381
|
-
[/\b(mon|smil)ies$/i, '$1ey'],
|
|
382
|
-
[/\b((?:tit)?m|l)ice$/i, '$1ouse'],
|
|
383
|
-
[/(seraph|cherub)im$/i, '$1'],
|
|
384
|
-
[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, '$1'],
|
|
385
|
-
[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, '$1sis'],
|
|
386
|
-
[/(movie|twelve|abuse|e[mn]u)s$/i, '$1'],
|
|
387
|
-
[/(test)(?:is|es)$/i, '$1is'],
|
|
388
|
-
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, '$1us'],
|
|
389
|
-
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, '$1um'],
|
|
390
|
-
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, '$1on'],
|
|
391
|
-
[/(alumn|alg|vertebr)ae$/i, '$1a'],
|
|
392
|
-
[/(cod|mur|sil|vert|ind)ices$/i, '$1ex'],
|
|
393
|
-
[/(matr|append)ices$/i, '$1ix'],
|
|
394
|
-
[/(pe)(rson|ople)$/i, '$1rson'],
|
|
395
|
-
[/(child)ren$/i, '$1'],
|
|
396
|
-
[/(eau)x?$/i, '$1'],
|
|
397
|
-
[/men$/i, 'man']
|
|
398
|
-
].forEach(function (rule) {
|
|
399
|
-
return pluralize.addSingularRule(rule[0], rule[1]);
|
|
400
|
-
});
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* Uncountable rules.
|
|
404
|
-
*/
|
|
405
|
-
[
|
|
406
|
-
// Singular words with no plurals.
|
|
407
|
-
'adulthood',
|
|
408
|
-
'advice',
|
|
409
|
-
'agenda',
|
|
410
|
-
'aid',
|
|
411
|
-
'aircraft',
|
|
412
|
-
'alcohol',
|
|
413
|
-
'ammo',
|
|
414
|
-
'analytics',
|
|
415
|
-
'anime',
|
|
416
|
-
'athletics',
|
|
417
|
-
'audio',
|
|
418
|
-
'bison',
|
|
419
|
-
'blood',
|
|
420
|
-
'bream',
|
|
421
|
-
'buffalo',
|
|
422
|
-
'butter',
|
|
423
|
-
'carp',
|
|
424
|
-
'cash',
|
|
425
|
-
'chassis',
|
|
426
|
-
'chess',
|
|
427
|
-
'clothing',
|
|
428
|
-
'cod',
|
|
429
|
-
'commerce',
|
|
430
|
-
'cooperation',
|
|
431
|
-
'corps',
|
|
432
|
-
'debris',
|
|
433
|
-
'diabetes',
|
|
434
|
-
'digestion',
|
|
435
|
-
'elk',
|
|
436
|
-
'energy',
|
|
437
|
-
'equipment',
|
|
438
|
-
'excretion',
|
|
439
|
-
'expertise',
|
|
440
|
-
'firmware',
|
|
441
|
-
'flounder',
|
|
442
|
-
'fun',
|
|
443
|
-
'gallows',
|
|
444
|
-
'garbage',
|
|
445
|
-
'graffiti',
|
|
446
|
-
'hardware',
|
|
447
|
-
'headquarters',
|
|
448
|
-
'health',
|
|
449
|
-
'herpes',
|
|
450
|
-
'highjinks',
|
|
451
|
-
'homework',
|
|
452
|
-
'housework',
|
|
453
|
-
'information',
|
|
454
|
-
'jeans',
|
|
455
|
-
'justice',
|
|
456
|
-
'kudos',
|
|
457
|
-
'labour',
|
|
458
|
-
'literature',
|
|
459
|
-
'machinery',
|
|
460
|
-
'mackerel',
|
|
461
|
-
'mail',
|
|
462
|
-
'media',
|
|
463
|
-
'mews',
|
|
464
|
-
'moose',
|
|
465
|
-
'music',
|
|
466
|
-
'mud',
|
|
467
|
-
'manga',
|
|
468
|
-
'news',
|
|
469
|
-
'only',
|
|
470
|
-
'personnel',
|
|
471
|
-
'pike',
|
|
472
|
-
'plankton',
|
|
473
|
-
'pliers',
|
|
474
|
-
'police',
|
|
475
|
-
'pollution',
|
|
476
|
-
'premises',
|
|
477
|
-
'rain',
|
|
478
|
-
'research',
|
|
479
|
-
'rice',
|
|
480
|
-
'salmon',
|
|
481
|
-
'scissors',
|
|
482
|
-
'series',
|
|
483
|
-
'sewage',
|
|
484
|
-
'shambles',
|
|
485
|
-
'shrimp',
|
|
486
|
-
'software',
|
|
487
|
-
'species',
|
|
488
|
-
'staff',
|
|
489
|
-
'swine',
|
|
490
|
-
'tennis',
|
|
491
|
-
'traffic',
|
|
492
|
-
'transportation',
|
|
493
|
-
'trout',
|
|
494
|
-
'tuna',
|
|
495
|
-
'wealth',
|
|
496
|
-
'welfare',
|
|
497
|
-
'whiting',
|
|
498
|
-
'wildebeest',
|
|
499
|
-
'wildlife',
|
|
500
|
-
'you',
|
|
501
|
-
/pok[eé]mon$/i,
|
|
502
|
-
// Regexes.
|
|
503
|
-
/[^aeiou]ese$/i, // "chinese", "japanese"
|
|
504
|
-
/deer$/i, // "deer", "reindeer"
|
|
505
|
-
/fish$/i, // "fish", "blowfish", "angelfish"
|
|
506
|
-
/measles$/i,
|
|
507
|
-
/o[iu]s$/i, // "carnivorous"
|
|
508
|
-
/pox$/i, // "chickpox", "smallpox"
|
|
509
|
-
/sheep$/i
|
|
510
|
-
].forEach(pluralize.addUncountableRule);
|
|
511
|
-
|
|
512
|
-
return pluralize;
|
|
513
|
-
});
|
|
514
|
-
} (pluralize$2.__module, pluralize$2.__module.exports));
|
|
515
|
-
|
|
516
|
-
var pluralizeExports = pluralize$2.__module.exports;
|
|
517
|
-
var pluralize$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(pluralizeExports);
|
|
518
|
-
|
|
519
|
-
exports.default = pluralize$1;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var runtime = require('@ibiz-template/runtime');
|
|
6
|
-
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
-
var panelContainerGroup_state = require('./panel-container-group.state.cjs');
|
|
8
|
-
var panelContainerGroup_provider = require('./panel-container-group.provider.cjs');
|
|
9
|
-
var panelContainerGroup_controller = require('./panel-container-group.controller.cjs');
|
|
10
|
-
var panelContainerGroup = require('./panel-container-group.cjs');
|
|
11
|
-
|
|
12
|
-
"use strict";
|
|
13
|
-
const IBizPanelContainerGroup = vue3Util.withInstall(
|
|
14
|
-
panelContainerGroup.PanelContainerGroup,
|
|
15
|
-
function(v) {
|
|
16
|
-
v.component(panelContainerGroup.PanelContainerGroup.name, panelContainerGroup.PanelContainerGroup);
|
|
17
|
-
runtime.registerPanelItemProvider(
|
|
18
|
-
"CONTAINER_CONTAINER_GROUP",
|
|
19
|
-
() => new panelContainerGroup_provider.PanelContainerGroupProvider()
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
exports.PanelContainerGroupState = panelContainerGroup_state.PanelContainerGroupState;
|
|
25
|
-
exports.PanelContainerGroupController = panelContainerGroup_controller.PanelContainerGroupController;
|
|
26
|
-
exports.IBizPanelContainerGroup = IBizPanelContainerGroup;
|
|
27
|
-
exports.default = IBizPanelContainerGroup;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var vue = require('vue');
|
|
4
|
-
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
-
var panelContainerGroup_controller = require('./panel-container-group.controller.cjs');
|
|
6
|
-
require('./panel-container-group.css');
|
|
7
|
-
|
|
8
|
-
"use strict";
|
|
9
|
-
function _isSlot(s) {
|
|
10
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
11
|
-
}
|
|
12
|
-
const PanelContainerGroup = /* @__PURE__ */ vue.defineComponent({
|
|
13
|
-
name: "IBizPanelContainerGroup",
|
|
14
|
-
props: {
|
|
15
|
-
modelData: {
|
|
16
|
-
type: Object,
|
|
17
|
-
required: true
|
|
18
|
-
},
|
|
19
|
-
controller: {
|
|
20
|
-
type: panelContainerGroup_controller.PanelContainerGroupController,
|
|
21
|
-
required: true
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
setup(props) {
|
|
25
|
-
const ns = vue3Util.useNamespace("panel-container-group");
|
|
26
|
-
const isCollapse = vue.ref(!props.controller.defaultExpansion);
|
|
27
|
-
const changeCollapse = () => {
|
|
28
|
-
if (!props.controller.disableClose) {
|
|
29
|
-
isCollapse.value = !isCollapse.value;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const captionText = vue.computed(() => {
|
|
33
|
-
const {
|
|
34
|
-
captionItemName,
|
|
35
|
-
caption,
|
|
36
|
-
capLanguageRes
|
|
37
|
-
} = props.modelData;
|
|
38
|
-
if (captionItemName) {
|
|
39
|
-
return props.controller.data[captionItemName];
|
|
40
|
-
}
|
|
41
|
-
let text = caption;
|
|
42
|
-
if (capLanguageRes) {
|
|
43
|
-
text = ibiz.i18n.t(capLanguageRes.lanResTag, caption);
|
|
44
|
-
}
|
|
45
|
-
return text;
|
|
46
|
-
});
|
|
47
|
-
return {
|
|
48
|
-
ns,
|
|
49
|
-
captionText,
|
|
50
|
-
changeCollapse,
|
|
51
|
-
isCollapse
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
render() {
|
|
55
|
-
var _a, _b;
|
|
56
|
-
let _slot;
|
|
57
|
-
const classArr = [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass, this.ns.is("hidden", !this.controller.state.visible)];
|
|
58
|
-
if (this.modelData.showCaption === true) {
|
|
59
|
-
classArr.push(this.ns.m("show-header"));
|
|
60
|
-
classArr.push(this.ns.b("collapse"));
|
|
61
|
-
classArr.push(this.ns.is("collapse", this.isCollapse));
|
|
62
|
-
if (this.controller.disableClose) {
|
|
63
|
-
classArr.push(this.ns.bm("collapse", "disable-close"));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
67
|
-
const content = vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
68
|
-
"slot": "content",
|
|
69
|
-
"layout": this.modelData.layout
|
|
70
|
-
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
71
|
-
const props = slot.props;
|
|
72
|
-
if (!props || !props.controller) {
|
|
73
|
-
return slot;
|
|
74
|
-
}
|
|
75
|
-
return vue.createVNode(vue.resolveComponent("iBizCol"), {
|
|
76
|
-
"layoutPos": props.modelData.layoutPos,
|
|
77
|
-
"state": props.controller.state
|
|
78
|
-
}, _isSlot(slot) ? slot : {
|
|
79
|
-
default: () => [slot]
|
|
80
|
-
});
|
|
81
|
-
})) ? _slot : {
|
|
82
|
-
default: () => [_slot]
|
|
83
|
-
});
|
|
84
|
-
let header = null;
|
|
85
|
-
if (this.modelData.showCaption) {
|
|
86
|
-
header = vue.createVNode("div", {
|
|
87
|
-
"class": [this.ns.b("header")],
|
|
88
|
-
"onClick": this.changeCollapse
|
|
89
|
-
}, [vue.createVNode("div", {
|
|
90
|
-
"class": [this.ns.be("header", "left")]
|
|
91
|
-
}, [vue.createVNode("div", {
|
|
92
|
-
"class": [this.ns.e("caption"), ...this.controller.labelClass]
|
|
93
|
-
}, [this.captionText])]), vue.createVNode("div", {
|
|
94
|
-
"class": [this.ns.be("header", "right")]
|
|
95
|
-
}, [this.modelData.titleBarCloseMode !== void 0 && this.modelData.titleBarCloseMode !== 0 && (this.isCollapse ? vue.createVNode("ion-icon", {
|
|
96
|
-
"name": "caret-forward-sharp"
|
|
97
|
-
}, null) : vue.createVNode("ion-icon", {
|
|
98
|
-
"name": "caret-down-sharp"
|
|
99
|
-
}, null))])]);
|
|
100
|
-
}
|
|
101
|
-
return vue.createVNode("div", {
|
|
102
|
-
"class": classArr
|
|
103
|
-
}, [header, vue.createVNode("div", {
|
|
104
|
-
"class": [this.ns.b("content")]
|
|
105
|
-
}, [content])]);
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
exports.PanelContainerGroup = PanelContainerGroup;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var runtime = require('@ibiz-template/runtime');
|
|
4
|
-
var panelContainerGroup_state = require('./panel-container-group.state.cjs');
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
class PanelContainerGroupController extends runtime.PanelItemController {
|
|
8
|
-
createState() {
|
|
9
|
-
var _a;
|
|
10
|
-
return new panelContainerGroup_state.PanelContainerGroupState((_a = this.parent) == null ? void 0 : _a.state);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* 禁用关闭
|
|
14
|
-
*
|
|
15
|
-
* @author chitanda
|
|
16
|
-
* @date 2022-09-14 14:09:51
|
|
17
|
-
* @readonly
|
|
18
|
-
* @type {boolean}
|
|
19
|
-
*/
|
|
20
|
-
get disableClose() {
|
|
21
|
-
const { titleBarCloseMode: mode } = this.model;
|
|
22
|
-
return mode === 0 || mode === void 0;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* 是否默认展开分组
|
|
26
|
-
*
|
|
27
|
-
* @author chitanda
|
|
28
|
-
* @date 2022-09-14 14:09:09
|
|
29
|
-
* @readonly
|
|
30
|
-
*/
|
|
31
|
-
get defaultExpansion() {
|
|
32
|
-
const { titleBarCloseMode: mode } = this.model;
|
|
33
|
-
return this.disableClose || mode === 1;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
exports.PanelContainerGroupController = PanelContainerGroupController;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-panel-container-group{--ibiz-panel-container-group-bg-color:transparent;--ibiz-panel-container-group-header-bg-color:transparent;--ibiz-panel-container-group-header-padding:var(--ibiz-spacing-base-tight);--ibiz-panel-container-group-header-border-color:var(--ibiz-color-border);--ibiz-panel-container-group-header-height:49px;--ibiz-panel-container-group-caption-text-color:var(--ibiz-color-text-0);--ibiz-panel-container-group-caption-font-size:var(--ibiz-font-size-header-5);--ibiz-panel-container-group-caption-font-weight:var(--ibiz-font-weight-bold);--ibiz-panel-container-group-content-bg-color:transparent;--ibiz-panel-container-group-content-padding:var(--ibiz-spacing-tight)}.ibiz-panel-container-group{height:100%;background-color:var(--ibiz-panel-container-group-bg-color);border-radius:var(--ibiz-border-radius-base)}.ibiz-panel-container-group__caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ibiz-panel-container-group-caption-font-size);font-weight:var(--ibiz-panel-container-group-caption-font-weight);color:var(--ibiz-panel-container-group-caption-text-color)}.ibiz-panel-container-group-collapse>.ibiz-panel-container-group-content{display:block}.ibiz-panel-container-group-collapse.is-collapse>.ibiz-panel-container-group-content{display:none}.ibiz-panel-container-group-header{display:flex;height:var(--ibiz-panel-container-group-header-height);padding:var(--ibiz-panel-container-group-header-padding);margin:var(--ibiz-panel-container-group-header-margin);border-bottom:1px solid var(--ibiz-panel-container-group-header-border-color)}.ibiz-panel-container-group-header__left,.ibiz-panel-container-group-header__right{display:inline-block;width:50%}.ibiz-panel-container-group-header__right{text-align:right;display:flex;align-items:center;justify-content:flex-end}.ibiz-panel-container-group-content{width:100%;height:100%}.ibiz-panel-container-group-content__row{width:100%;height:100%}.ibiz-panel-container-group--show-header>.ibiz-panel-container-group-content{height:calc(100% - var(--ibiz-panel-container-group-header-height));padding:var(--ibiz-panel-container-group-content-padding);background-color:var(--ibiz-panel-container-group-content-bg-color)}
|