cloudcc-cli 2.3.3 → 2.3.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.
Files changed (85) hide show
  1. package/.claude/settings.json +28 -1
  2. package/.cursor/skills/cloudcc-cli-dev/SKILL.md +175 -0
  3. package/.cursor/skills/cloudcc-dev-skill/SKILL.md +71 -0
  4. package/README.md +65 -7
  5. package/bin/cc.js +106 -28
  6. package/bin/index.js +54 -53
  7. package/mcp/cliRunner.js +11 -4
  8. package/mcp/index.js +12 -2
  9. package/mcp/tools/CloudCC Development Overview/handler.js +1 -1
  10. package/mcp/tools/JSP Migrator/handler.js +46 -0
  11. package/package.json +4 -5
  12. package/src/button/create.js +169 -0
  13. package/src/button/delete.js +35 -0
  14. package/src/button/doc.js +36 -0
  15. package/src/button/docs/devguide.md +133 -0
  16. package/src/button/docs/introduction.md +60 -0
  17. package/src/button/get.js +60 -0
  18. package/src/button/index.js +20 -0
  19. package/src/classes/docs/introduction.md +0 -20
  20. package/src/fields/create.js +12 -0
  21. package/src/identityProvider/create.js +78 -0
  22. package/src/identityProvider/delete.js +61 -0
  23. package/src/identityProvider/doc.js +46 -0
  24. package/src/identityProvider/docs/devguide.md +107 -0
  25. package/src/identityProvider/docs/introduction.md +31 -0
  26. package/src/identityProvider/download.js +105 -0
  27. package/src/identityProvider/get.js +70 -0
  28. package/src/identityProvider/index.js +12 -0
  29. package/src/menu/create-object.js +1 -0
  30. package/src/menu/create-page.js +1 -0
  31. package/src/menu/create-script.js +1 -0
  32. package/src/menu/create-site.js +1 -0
  33. package/src/object/create.js +2 -1
  34. package/src/object/docs/devguide.md +1 -5
  35. package/src/permission/add.js +164 -0
  36. package/src/permission/assign.js +84 -0
  37. package/src/permission/docs/devguide.md +238 -0
  38. package/src/permission/docs/introduction.md +200 -0
  39. package/src/permission/get.js +107 -0
  40. package/src/permission/index.js +10 -0
  41. package/src/permission/remove.js +145 -0
  42. package/src/project/docs/devguide.md +7 -6
  43. package/src/role/create.js +2 -1
  44. package/src/role/delete.js +1 -0
  45. package/src/singleSignOn/delete.js +61 -0
  46. package/src/singleSignOn/doc.js +46 -0
  47. package/src/singleSignOn/docs/devguide.md +61 -0
  48. package/src/singleSignOn/docs/introduction.md +3 -0
  49. package/src/singleSignOn/get.js +70 -0
  50. package/src/singleSignOn/index.js +10 -0
  51. package/src/staticResource/docs/introduction.md +44 -1
  52. package/src/user/create.js +502 -19
  53. package/src/validationRule/create.js +153 -0
  54. package/src/validationRule/delete.js +60 -0
  55. package/src/validationRule/doc.js +46 -0
  56. package/src/validationRule/docs/devguide.md +76 -0
  57. package/src/validationRule/docs/introduction.md +122 -0
  58. package/src/validationRule/get.js +47 -0
  59. package/src/validationRule/index.js +10 -0
  60. package/src/version/actionHelp.js +25 -0
  61. package/src/version/docs.js +26 -0
  62. package/src/version/doctor.js +25 -0
  63. package/src/version/get.js +7 -1
  64. package/src/version/help.js +47 -0
  65. package/src/version/index.js +9 -2
  66. package/src/version/initHelp.js +13 -0
  67. package/src/version/listModuleCommands.js +241 -0
  68. package/src/version/stats.js +44 -0
  69. package/src/version/uninstall.js +30 -0
  70. package/src/version/update.js +13 -0
  71. package/utils/checkVersion.js +31 -2
  72. package/utils/commandStats.js +94 -0
  73. package/utils/formatReleaseNotes.js +312 -0
  74. package/utils/readmeReleases.js +69 -0
  75. package/.cloudcc-cache.json +0 -38
  76. package/.cursor/skills/cloudcc-cli-dev.zip +0 -0
  77. package/.cursor/skills/cloudcc-cli-usage/SKILL.md +0 -68
  78. package/build/component-CCPlugin1774500425584.common.js +0 -831
  79. package/build/component-CCPlugin1774500425584.common.js.map +0 -1
  80. package/build/component-CCPlugin1774500425584.css +0 -1
  81. package/build/component-CCPlugin1774500425584.umd.js +0 -874
  82. package/build/component-CCPlugin1774500425584.umd.js.map +0 -1
  83. package/build/component-CCPlugin1774500425584.umd.min.js +0 -8
  84. package/build/component-CCPlugin1774500425584.umd.min.js.map +0 -1
  85. package/build/demo.html +0 -1
@@ -1,831 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ // The require scope
4
- /******/ var __webpack_require__ = {};
5
- /******/
6
- /************************************************************************/
7
- /******/ /* webpack/runtime/compat get default export */
8
- /******/ (() => {
9
- /******/ // getDefaultExport function for compatibility with non-harmony modules
10
- /******/ __webpack_require__.n = (module) => {
11
- /******/ var getter = module && module.__esModule ?
12
- /******/ () => (module['default']) :
13
- /******/ () => (module);
14
- /******/ __webpack_require__.d(getter, { a: getter });
15
- /******/ return getter;
16
- /******/ };
17
- /******/ })();
18
- /******/
19
- /******/ /* webpack/runtime/define property getters */
20
- /******/ (() => {
21
- /******/ // define getter functions for harmony exports
22
- /******/ __webpack_require__.d = (exports, definition) => {
23
- /******/ for(var key in definition) {
24
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
- /******/ }
27
- /******/ }
28
- /******/ };
29
- /******/ })();
30
- /******/
31
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
32
- /******/ (() => {
33
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
34
- /******/ })();
35
- /******/
36
- /******/ /* webpack/runtime/publicPath */
37
- /******/ (() => {
38
- /******/ __webpack_require__.p = "";
39
- /******/ })();
40
- /******/
41
- /************************************************************************/
42
- var __webpack_exports__ = {};
43
-
44
- ;// ../../.npm/_npx/14f5bcddd9f17f34/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
45
- /* eslint-disable no-var */
46
- // This file is imported into lib/wc client bundles.
47
-
48
- if (typeof window !== 'undefined') {
49
- var currentScript = window.document.currentScript
50
- if (false) // removed by dead control flow
51
- { var getCurrentScript; }
52
-
53
- var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
54
- if (src) {
55
- __webpack_require__.p = src[1] // eslint-disable-line
56
- }
57
- }
58
-
59
- // Indicate to webpack that this file can be concatenated
60
- /* harmony default export */ const setPublicPath = (null);
61
-
62
- ;// external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
63
- const external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
64
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
65
- ;// ./node_modules/vue-custom-element/dist/vue-custom-element.esm.js
66
- /**
67
- * vue-custom-element v3.3.0
68
- * (c) 2021 Karol Fabjańczuk
69
- * @license MIT
70
- */
71
- /**
72
- * ES6 Object.getPrototypeOf Polyfill
73
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf
74
- */
75
-
76
- Object.setPrototypeOf = Object.setPrototypeOf || setPrototypeOf;
77
-
78
- function setPrototypeOf(obj, proto) {
79
- obj.__proto__ = proto;
80
- return obj;
81
- }
82
-
83
- var setPrototypeOf_1 = setPrototypeOf.bind(Object);
84
-
85
- function isES2015() {
86
- if (typeof Symbol === 'undefined' || typeof Reflect === 'undefined' || typeof Proxy === 'undefined' || Object.isSealed(Proxy)) return false;
87
-
88
- return true;
89
- }
90
-
91
- var isES2015$1 = isES2015();
92
-
93
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
94
-
95
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
96
-
97
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
98
-
99
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
100
-
101
- function _CustomElement() {
102
- return Reflect.construct(HTMLElement, [], this.__proto__.constructor);
103
- }
104
-
105
-
106
- Object.setPrototypeOf(_CustomElement.prototype, HTMLElement.prototype);
107
- Object.setPrototypeOf(_CustomElement, HTMLElement);
108
- function registerCustomElement(tag) {
109
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
110
-
111
- if (typeof customElements === 'undefined') {
112
- return;
113
- }
114
-
115
- function constructorCallback() {
116
- if (options.shadow === true && HTMLElement.prototype.attachShadow) {
117
- this.attachShadow({ mode: 'open' });
118
- }
119
- typeof options.constructorCallback === 'function' && options.constructorCallback.call(this);
120
- }
121
- function connectedCallback() {
122
- typeof options.connectedCallback === 'function' && options.connectedCallback.call(this);
123
- }
124
-
125
- function disconnectedCallback() {
126
- typeof options.disconnectedCallback === 'function' && options.disconnectedCallback.call(this);
127
- }
128
-
129
- function attributeChangedCallback(name, oldValue, value) {
130
- typeof options.attributeChangedCallback === 'function' && options.attributeChangedCallback.call(this, name, oldValue, value);
131
- }
132
-
133
- function define(tagName, CustomElement) {
134
- var existingCustomElement = customElements.get(tagName);
135
- return typeof existingCustomElement !== 'undefined' ? existingCustomElement : customElements.define(tagName, CustomElement);
136
- }
137
-
138
- if (isES2015$1) {
139
- var CustomElement = function (_CustomElement2) {
140
- _inherits(CustomElement, _CustomElement2);
141
-
142
- function CustomElement(self) {
143
- var _ret;
144
-
145
- _classCallCheck(this, CustomElement);
146
-
147
- var _this = _possibleConstructorReturn(this, (CustomElement.__proto__ || Object.getPrototypeOf(CustomElement)).call(this));
148
-
149
- var me = self ? HTMLElement.call(self) : _this;
150
-
151
- constructorCallback.call(me);
152
- return _ret = me, _possibleConstructorReturn(_this, _ret);
153
- }
154
-
155
- _createClass(CustomElement, null, [{
156
- key: 'observedAttributes',
157
- get: function get() {
158
- return options.observedAttributes || [];
159
- }
160
- }]);
161
-
162
- return CustomElement;
163
- }(_CustomElement);
164
-
165
- CustomElement.prototype.connectedCallback = connectedCallback;
166
- CustomElement.prototype.disconnectedCallback = disconnectedCallback;
167
- CustomElement.prototype.attributeChangedCallback = attributeChangedCallback;
168
-
169
- define(tag, CustomElement);
170
- return CustomElement;
171
- } else {
172
- var _CustomElement3 = function _CustomElement3(self) {
173
- var me = self ? HTMLElement.call(self) : this;
174
-
175
- constructorCallback.call(me);
176
- return me;
177
- };
178
-
179
- _CustomElement3.observedAttributes = options.observedAttributes || [];
180
-
181
- _CustomElement3.prototype = Object.create(HTMLElement.prototype, {
182
- constructor: {
183
- configurable: true,
184
- writable: true,
185
- value: _CustomElement3
186
- }
187
- });
188
-
189
- _CustomElement3.prototype.connectedCallback = connectedCallback;
190
- _CustomElement3.prototype.disconnectedCallback = disconnectedCallback;
191
- _CustomElement3.prototype.attributeChangedCallback = attributeChangedCallback;
192
-
193
- define(tag, _CustomElement3);
194
- return _CustomElement3;
195
- }
196
- }
197
-
198
- var camelizeRE = /-(\w)/g;
199
- var camelize = function camelize(str) {
200
- return str.replace(camelizeRE, function (_, c) {
201
- return c ? c.toUpperCase() : '';
202
- });
203
- };
204
- var hyphenateRE = /([^-])([A-Z])/g;
205
- var hyphenate = function hyphenate(str) {
206
- return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
207
- };
208
-
209
- function toArray(list) {
210
- var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
211
-
212
- var i = list.length - start;
213
- var ret = new Array(i);
214
- while (i--) {
215
- ret[i] = list[i + start];
216
- }
217
- return ret;
218
- }
219
-
220
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
221
-
222
- function convertAttributeValue(value, overrideType) {
223
- if (value === null || value === undefined) {
224
- return overrideType === Boolean ? false : undefined;
225
- }
226
- var propsValue = value;
227
- var isBoolean = ['true', 'false'].indexOf(value) > -1;
228
- var valueParsed = parseFloat(propsValue, 10);
229
- var isNumber = !isNaN(valueParsed) && isFinite(propsValue) && typeof propsValue === 'string' && !propsValue.match(/^0+[^.]\d*$/g);
230
-
231
- if (overrideType && overrideType !== Boolean && (typeof propsValue === 'undefined' ? 'undefined' : _typeof(propsValue)) !== overrideType) {
232
- propsValue = overrideType(value);
233
- } else if (isBoolean || overrideType === Boolean) {
234
- propsValue = propsValue === '' ? true : propsValue === 'true' || propsValue === true;
235
- } else if (isNumber) {
236
- propsValue = valueParsed;
237
- }
238
-
239
- return propsValue;
240
- }
241
-
242
- function extractProps(collection, props) {
243
- if (collection && collection.length) {
244
- collection.forEach(function (prop) {
245
- var camelCaseProp = camelize(prop);
246
- props.camelCase.indexOf(camelCaseProp) === -1 && props.camelCase.push(camelCaseProp);
247
- });
248
- } else if (collection && (typeof collection === 'undefined' ? 'undefined' : _typeof(collection)) === 'object') {
249
- for (var prop in collection) {
250
- var camelCaseProp = camelize(prop);
251
- props.camelCase.indexOf(camelCaseProp) === -1 && props.camelCase.push(camelCaseProp);
252
-
253
- if (collection[camelCaseProp] && collection[camelCaseProp].type) {
254
- props.types[prop] = [].concat(collection[camelCaseProp].type)[0];
255
- }
256
- }
257
- }
258
- }
259
-
260
- function getProps() {
261
- var componentDefinition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
262
-
263
- var props = {
264
- camelCase: [],
265
- hyphenate: [],
266
- types: {}
267
- };
268
-
269
- if (componentDefinition.mixins) {
270
- componentDefinition.mixins.forEach(function (mixin) {
271
- extractProps(mixin.props, props);
272
- });
273
- }
274
-
275
- if (componentDefinition.extends && componentDefinition.extends.props) {
276
- var parentProps = componentDefinition.extends.props;
277
-
278
-
279
- extractProps(parentProps, props);
280
- }
281
-
282
- extractProps(componentDefinition.props, props);
283
-
284
- props.camelCase.forEach(function (prop) {
285
- props.hyphenate.push(hyphenate(prop));
286
- });
287
-
288
- return props;
289
- }
290
-
291
- function reactiveProps(element, props) {
292
- props.camelCase.forEach(function (name, index) {
293
- Object.defineProperty(element, name, {
294
- get: function get() {
295
- return this.__vue_custom_element__[name];
296
- },
297
- set: function set(value) {
298
- if (((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' || typeof value === 'function') && this.__vue_custom_element__) {
299
- var propName = props.camelCase[index];
300
- this.__vue_custom_element__[propName] = value;
301
- } else {
302
- var type = props.types[props.camelCase[index]];
303
- this.setAttribute(props.hyphenate[index], convertAttributeValue(value, type));
304
- }
305
- }
306
- });
307
- });
308
- }
309
-
310
- function getPropsData(element, componentDefinition, props) {
311
- var propsData = componentDefinition.propsData || {};
312
-
313
- props.hyphenate.forEach(function (name, index) {
314
- var propCamelCase = props.camelCase[index];
315
- var propValue = element.attributes[name] || element[propCamelCase];
316
-
317
- var type = null;
318
- if (props.types[propCamelCase]) {
319
- type = props.types[propCamelCase];
320
- }
321
-
322
- if (propValue instanceof Attr) {
323
- propsData[propCamelCase] = convertAttributeValue(propValue.value, type);
324
- } else if (typeof propValue !== 'undefined') {
325
- propsData[propCamelCase] = propValue;
326
- }
327
- });
328
-
329
- return propsData;
330
- }
331
-
332
- function getAttributes(children) {
333
- var attributes = {};
334
-
335
- toArray(children.attributes).forEach(function (attribute) {
336
- attributes[attribute.nodeName === 'vue-slot' ? 'slot' : attribute.nodeName] = attribute.nodeValue;
337
- });
338
-
339
- return attributes;
340
- }
341
-
342
- function getChildNodes(element) {
343
- if (element.childNodes.length) return element.childNodes;
344
- if (element.content && element.content.childNodes && element.content.childNodes.length) {
345
- return element.content.childNodes;
346
- }
347
-
348
- var placeholder = document.createElement('div');
349
-
350
- placeholder.innerHTML = element.innerHTML;
351
-
352
- return placeholder.childNodes;
353
- }
354
-
355
- function templateElement(createElement, element, elementOptions) {
356
- var templateChildren = getChildNodes(element);
357
-
358
- var vueTemplateChildren = toArray(templateChildren).map(function (child) {
359
- if (child.nodeName === '#text') return child.nodeValue;
360
-
361
- return createElement(child.tagName, {
362
- attrs: getAttributes(child),
363
- domProps: {
364
- innerHTML: child.innerHTML
365
- }
366
- });
367
- });
368
-
369
- elementOptions.slot = element.id;
370
-
371
- return createElement('template', elementOptions, vueTemplateChildren);
372
- }
373
-
374
- function getSlots() {
375
- var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
376
- var createElement = arguments[1];
377
-
378
- var slots = [];
379
- toArray(children).forEach(function (child) {
380
- if (child.nodeName === '#text') {
381
- if (child.nodeValue.trim()) {
382
- slots.push(createElement('span', child.nodeValue));
383
- }
384
- } else if (child.nodeName !== '#comment') {
385
- var attributes = getAttributes(child);
386
- var elementOptions = {
387
- attrs: attributes,
388
- domProps: {
389
- innerHTML: child.innerHTML === '' ? child.innerText : child.innerHTML
390
- }
391
- };
392
-
393
- if (attributes.slot) {
394
- elementOptions.slot = attributes.slot;
395
- attributes.slot = undefined;
396
- }
397
-
398
- var slotVueElement = child.tagName === 'TEMPLATE' ? templateElement(createElement, child, elementOptions) : createElement(child.tagName, elementOptions);
399
-
400
- slots.push(slotVueElement);
401
- }
402
- });
403
-
404
- return slots;
405
- }
406
-
407
- function customEvent(eventName, detail) {
408
- var params = { bubbles: false, cancelable: false, detail: detail };
409
- var event = void 0;
410
- if (typeof window.CustomEvent === 'function') {
411
- event = new CustomEvent(eventName, params);
412
- } else {
413
- event = document.createEvent('CustomEvent');
414
- event.initCustomEvent(eventName, params.bubbles, params.cancelable, params.detail);
415
- }
416
- return event;
417
- }
418
-
419
- function customEmit(element, eventName) {
420
- for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
421
- args[_key - 2] = arguments[_key];
422
- }
423
-
424
- var event = customEvent(eventName, [].concat(args));
425
- element.dispatchEvent(event);
426
- }
427
-
428
- function createVueInstance(element, Vue, componentDefinition, props, options) {
429
- if (element.__vue_custom_element__) {
430
- return Promise.resolve(element);
431
- }
432
- var ComponentDefinition = Vue.util.extend({}, componentDefinition);
433
- var propsData = getPropsData(element, ComponentDefinition, props);
434
- var vueVersion = Vue.version && parseInt(Vue.version.split('.')[0], 10) || 0;
435
-
436
- function beforeCreate() {
437
- this.$emit = function emit() {
438
- var _proto__$$emit;
439
-
440
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
441
- args[_key] = arguments[_key];
442
- }
443
-
444
- customEmit.apply(undefined, [element].concat(args));
445
- this.__proto__ && (_proto__$$emit = this.__proto__.$emit).call.apply(_proto__$$emit, [this].concat(args));
446
- };
447
- }
448
- ComponentDefinition.beforeCreate = [].concat(ComponentDefinition.beforeCreate || [], beforeCreate);
449
-
450
- if (ComponentDefinition._compiled) {
451
- var constructorOptions = {};
452
- var _constructor = ComponentDefinition._Ctor;
453
- if (_constructor) {
454
- constructorOptions = Object.keys(_constructor).map(function (key) {
455
- return _constructor[key];
456
- })[0].options;
457
- }
458
- constructorOptions.beforeCreate = ComponentDefinition.beforeCreate;
459
- }
460
-
461
- var rootElement = void 0;
462
-
463
- if (vueVersion >= 2) {
464
- var elementOriginalChildren = element.cloneNode(true).childNodes;
465
- rootElement = {
466
- propsData: propsData,
467
- props: props.camelCase,
468
- computed: {
469
- reactiveProps: function reactiveProps$$1() {
470
- var _this = this;
471
-
472
- var reactivePropsList = {};
473
- props.camelCase.forEach(function (prop) {
474
- typeof _this[prop] !== 'undefined' && (reactivePropsList[prop] = _this[prop]);
475
- });
476
-
477
- return reactivePropsList;
478
- }
479
- },
480
- render: function render(createElement) {
481
- var data = {
482
- props: this.reactiveProps
483
- };
484
-
485
- return createElement(ComponentDefinition, data, getSlots(elementOriginalChildren, createElement));
486
- }
487
- };
488
- } else if (vueVersion === 1) {
489
- rootElement = ComponentDefinition;
490
- rootElement.propsData = propsData;
491
- } else {
492
- rootElement = ComponentDefinition;
493
- var propsWithDefault = {};
494
- Object.keys(propsData).forEach(function (prop) {
495
- propsWithDefault[prop] = { default: propsData[prop] };
496
- });
497
- rootElement.props = propsWithDefault;
498
- }
499
-
500
- var elementInnerHtml = vueVersion >= 2 ? '<div></div>' : ('<div>' + element.innerHTML + '</div>').replace(/vue-slot=/g, 'slot=');
501
- if (options.shadow && element.shadowRoot) {
502
- element.shadowRoot.innerHTML = elementInnerHtml;
503
- rootElement.el = element.shadowRoot.children[0];
504
- } else {
505
- element.innerHTML = elementInnerHtml;
506
- rootElement.el = element.children[0];
507
- }
508
-
509
- if (options.shadow && options.shadowCss && element.shadowRoot) {
510
- var style = document.createElement('style');
511
- style.type = 'text/css';
512
- style.appendChild(document.createTextNode(options.shadowCss));
513
-
514
- element.shadowRoot.appendChild(style);
515
- }
516
-
517
- reactiveProps(element, props);
518
-
519
- if (typeof options.beforeCreateVueInstance === 'function') {
520
- rootElement = options.beforeCreateVueInstance(rootElement) || rootElement;
521
- }
522
-
523
- return Promise.resolve(rootElement).then(function (vueOpts) {
524
- element.__vue_custom_element__ = new Vue(vueOpts);
525
- element.__vue_custom_element_props__ = props;
526
- element.getVueInstance = function () {
527
- var vueInstance = element.__vue_custom_element__;
528
- return vueInstance.$children.length ? vueInstance.$children[0] : vueInstance;
529
- };
530
-
531
- element.removeAttribute('vce-cloak');
532
- element.setAttribute('vce-ready', '');
533
- customEmit(element, 'vce-ready');
534
- return element;
535
- });
536
- }
537
-
538
- function install(Vue) {
539
- Vue.customElement = function vueCustomElement(tag, componentDefinition) {
540
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
541
-
542
- var isAsyncComponent = typeof componentDefinition === 'function';
543
- var optionsProps = isAsyncComponent && { props: options.props || [] };
544
- var props = getProps(isAsyncComponent ? optionsProps : componentDefinition);
545
-
546
- var CustomElement = registerCustomElement(tag, {
547
- constructorCallback: function constructorCallback() {
548
- typeof options.constructorCallback === 'function' && options.constructorCallback.call(this);
549
- },
550
- connectedCallback: function connectedCallback() {
551
- var _this = this;
552
-
553
- var asyncComponentPromise = isAsyncComponent && componentDefinition();
554
- var isAsyncComponentPromise = asyncComponentPromise && asyncComponentPromise.then && typeof asyncComponentPromise.then === 'function';
555
-
556
- typeof options.connectedCallback === 'function' && options.connectedCallback.call(this);
557
-
558
- if (isAsyncComponent && !isAsyncComponentPromise) {
559
- throw new Error('Async component ' + tag + ' do not returns Promise');
560
- }
561
- if (!this.__detached__) {
562
- if (isAsyncComponentPromise) {
563
- asyncComponentPromise.then(function (lazyComponent) {
564
- var lazyProps = getProps(lazyComponent);
565
- createVueInstance(_this, Vue, lazyComponent, lazyProps, options).then(function () {
566
- typeof options.vueInstanceCreatedCallback === 'function' && options.vueInstanceCreatedCallback.call(_this);
567
- });
568
- });
569
- } else {
570
- createVueInstance(this, Vue, componentDefinition, props, options).then(function () {
571
- typeof options.vueInstanceCreatedCallback === 'function' && options.vueInstanceCreatedCallback.call(_this);
572
- });
573
- }
574
- }
575
-
576
- this.__detached__ = false;
577
- },
578
- disconnectedCallback: function disconnectedCallback() {
579
- var _this2 = this;
580
-
581
- this.__detached__ = true;
582
- typeof options.disconnectedCallback === 'function' && options.disconnectedCallback.call(this);
583
-
584
- options.destroyTimeout !== null && setTimeout(function () {
585
- if (_this2.__detached__ && _this2.__vue_custom_element__) {
586
- _this2.__detached__ = false;
587
- _this2.__vue_custom_element__.$destroy(true);
588
- delete _this2.__vue_custom_element__;
589
- delete _this2.__vue_custom_element_props__;
590
- }
591
- }, options.destroyTimeout || 3000);
592
- },
593
- attributeChangedCallback: function attributeChangedCallback(name, oldValue, value) {
594
- if (this.__vue_custom_element__ && typeof value !== 'undefined') {
595
- var nameCamelCase = camelize(name);
596
- typeof options.attributeChangedCallback === 'function' && options.attributeChangedCallback.call(this, name, oldValue, value);
597
- var type = this.__vue_custom_element_props__.types[nameCamelCase];
598
- this.__vue_custom_element__[nameCamelCase] = convertAttributeValue(value, type);
599
- }
600
- },
601
-
602
-
603
- observedAttributes: props.hyphenate,
604
-
605
- shadow: !!options.shadow && !!HTMLElement.prototype.attachShadow
606
- });
607
-
608
- return CustomElement;
609
- };
610
- }
611
-
612
- if (typeof window !== 'undefined' && window.Vue) {
613
- window.Vue.use(install);
614
- if (install.installed) {
615
- install.installed = false;
616
- }
617
- }
618
-
619
- /* harmony default export */ const vue_custom_element_esm = (install);
620
-
621
- ;// ../../.npm/_npx/14f5bcddd9f17f34/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!../../.npm/_npx/14f5bcddd9f17f34/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./plugins/CCPlugin1774500425584/CCPlugin1774500425584.vue?vue&type=template&id=45cf9904&scoped=true
622
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"cc-container"},[_c('HelloWorld')],1)}
623
- var staticRenderFns = []
624
-
625
-
626
- ;// ../../.npm/_npx/14f5bcddd9f17f34/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!../../.npm/_npx/14f5bcddd9f17f34/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./plugins/CCPlugin1774500425584/components/HelloWorld.vue?vue&type=template&id=0ad47a6b&scoped=true
627
- var HelloWorldvue_type_template_id_0ad47a6b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v("Hello world")])}
628
- var HelloWorldvue_type_template_id_0ad47a6b_scoped_true_staticRenderFns = []
629
-
630
-
631
- ;// ../../.npm/_npx/14f5bcddd9f17f34/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./plugins/CCPlugin1774500425584/components/HelloWorld.vue?vue&type=script&lang=js
632
- //
633
- //
634
- //
635
- //
636
- //
637
-
638
- /* harmony default export */ const HelloWorldvue_type_script_lang_js = ({});
639
-
640
- ;// ./plugins/CCPlugin1774500425584/components/HelloWorld.vue?vue&type=script&lang=js
641
- /* harmony default export */ const components_HelloWorldvue_type_script_lang_js = (HelloWorldvue_type_script_lang_js);
642
- ;// ../../.npm/_npx/14f5bcddd9f17f34/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
643
- /* globals __VUE_SSR_CONTEXT__ */
644
-
645
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
646
- // This module is a runtime utility for cleaner component module output and will
647
- // be included in the final webpack user bundle.
648
-
649
- function normalizeComponent(
650
- scriptExports,
651
- render,
652
- staticRenderFns,
653
- functionalTemplate,
654
- injectStyles,
655
- scopeId,
656
- moduleIdentifier /* server only */,
657
- shadowMode /* vue-cli only */
658
- ) {
659
- // Vue.extend constructor export interop
660
- var options =
661
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
662
-
663
- // render functions
664
- if (render) {
665
- options.render = render
666
- options.staticRenderFns = staticRenderFns
667
- options._compiled = true
668
- }
669
-
670
- // functional template
671
- if (functionalTemplate) {
672
- options.functional = true
673
- }
674
-
675
- // scopedId
676
- if (scopeId) {
677
- options._scopeId = 'data-v-' + scopeId
678
- }
679
-
680
- var hook
681
- if (moduleIdentifier) {
682
- // server build
683
- hook = function (context) {
684
- // 2.3 injection
685
- context =
686
- context || // cached call
687
- (this.$vnode && this.$vnode.ssrContext) || // stateful
688
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
689
- // 2.2 with runInNewContext: true
690
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
691
- context = __VUE_SSR_CONTEXT__
692
- }
693
- // inject component styles
694
- if (injectStyles) {
695
- injectStyles.call(this, context)
696
- }
697
- // register component module identifier for async chunk inferrence
698
- if (context && context._registeredComponents) {
699
- context._registeredComponents.add(moduleIdentifier)
700
- }
701
- }
702
- // used by ssr in case component is cached and beforeCreate
703
- // never gets called
704
- options._ssrRegister = hook
705
- } else if (injectStyles) {
706
- hook = shadowMode
707
- ? function () {
708
- injectStyles.call(
709
- this,
710
- (options.functional ? this.parent : this).$root.$options.shadowRoot
711
- )
712
- }
713
- : injectStyles
714
- }
715
-
716
- if (hook) {
717
- if (options.functional) {
718
- // for template-only hot-reload because in that case the render fn doesn't
719
- // go through the normalizer
720
- options._injectStyles = hook
721
- // register for functional component in vue file
722
- var originalRender = options.render
723
- options.render = function renderWithStyleInjection(h, context) {
724
- hook.call(context)
725
- return originalRender(h, context)
726
- }
727
- } else {
728
- // inject component registration as beforeCreate hook
729
- var existing = options.beforeCreate
730
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
731
- }
732
- }
733
-
734
- return {
735
- exports: scriptExports,
736
- options: options
737
- }
738
- }
739
-
740
- ;// ./plugins/CCPlugin1774500425584/components/HelloWorld.vue
741
-
742
-
743
-
744
-
745
-
746
- /* normalize component */
747
- ;
748
- var component = normalizeComponent(
749
- components_HelloWorldvue_type_script_lang_js,
750
- HelloWorldvue_type_template_id_0ad47a6b_scoped_true_render,
751
- HelloWorldvue_type_template_id_0ad47a6b_scoped_true_staticRenderFns,
752
- false,
753
- null,
754
- "0ad47a6b",
755
- null
756
-
757
- )
758
-
759
- /* harmony default export */ const HelloWorld = (component.exports);
760
- ;// ../../.npm/_npx/14f5bcddd9f17f34/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./plugins/CCPlugin1774500425584/CCPlugin1774500425584.vue?vue&type=script&lang=js
761
- //
762
- //
763
- //
764
- //
765
- //
766
- //
767
-
768
-
769
- /* harmony default export */ const CCPlugin1774500425584vue_type_script_lang_js = ({
770
- components: {
771
- HelloWorld: HelloWorld,
772
- },
773
- data() {
774
- return {
775
- componentInfo: {
776
-
777
- component: "component-CCPlugin1774500425584",
778
-
779
- compName: "compName-CCPlugin1774500425584",
780
-
781
- compDesc: "Component description information",
782
- }
783
- };
784
- },
785
- });
786
-
787
- ;// ./plugins/CCPlugin1774500425584/CCPlugin1774500425584.vue?vue&type=script&lang=js
788
- /* harmony default export */ const CCPlugin1774500425584_CCPlugin1774500425584vue_type_script_lang_js = (CCPlugin1774500425584vue_type_script_lang_js);
789
- ;// ../../.npm/_npx/14f5bcddd9f17f34/node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!../../.npm/_npx/14f5bcddd9f17f34/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!../../.npm/_npx/14f5bcddd9f17f34/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../.npm/_npx/14f5bcddd9f17f34/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!../../.npm/_npx/14f5bcddd9f17f34/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./plugins/CCPlugin1774500425584/CCPlugin1774500425584.vue?vue&type=style&index=0&id=45cf9904&prod&lang=scss&scoped=true
790
- // extracted by mini-css-extract-plugin
791
-
792
- ;// ./plugins/CCPlugin1774500425584/CCPlugin1774500425584.vue?vue&type=style&index=0&id=45cf9904&prod&lang=scss&scoped=true
793
-
794
- ;// ./plugins/CCPlugin1774500425584/CCPlugin1774500425584.vue
795
-
796
-
797
-
798
- ;
799
-
800
-
801
- /* normalize component */
802
-
803
- var CCPlugin1774500425584_component = normalizeComponent(
804
- CCPlugin1774500425584_CCPlugin1774500425584vue_type_script_lang_js,
805
- render,
806
- staticRenderFns,
807
- false,
808
- null,
809
- "45cf9904",
810
- null
811
-
812
- )
813
-
814
- /* harmony default export */ const CCPlugin1774500425584 = (CCPlugin1774500425584_component.exports);
815
- ;// ./plugins/plginTemp.js
816
-
817
-
818
-
819
- external_commonjs_vue_commonjs2_vue_root_Vue_default().use(vue_custom_element_esm);
820
-
821
-
822
- external_commonjs_vue_commonjs2_vue_root_Vue_default().customElement('component-CCPlugin1774500425584', CCPlugin1774500425584,{ destroyTimeout: 1200000 });
823
-
824
- ;// ../../.npm/_npx/14f5bcddd9f17f34/node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
825
-
826
-
827
-
828
- module.exports = __webpack_exports__;
829
- /******/ })()
830
- ;
831
- //# sourceMappingURL=component-CCPlugin1774500425584.common.js.map