@omnia/tooling-vue 8.0.21-vnext → 8.0.23-vnext
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/internal-do-not-import-from-here/bb000000-0000-bbbb-0000-0000000000bb.wctypings.d.ts +61 -3
- package/internal-do-not-import-from-here/shared.d.ts +1 -18
- package/internal-do-not-import-from-here/shared.js +3 -40
- package/internal-do-not-import-from-here/swc/extract-doc-plugin/package.json +14 -0
- package/internal-do-not-import-from-here/tasks/ComponentDocRegistrations.d.ts +1 -0
- package/internal-do-not-import-from-here/tasks/ComponentDocRegistrations.js +9 -0
- package/internal-do-not-import-from-here/tasks/bundle.d.ts +1 -1
- package/internal-do-not-import-from-here/tasks/bundle.js +270 -78
- package/internal-do-not-import-from-here/tasks/vendor.js +2 -2
- package/internal-do-not-import-from-here/vite/index.js +4 -0
- package/internal-do-not-import-from-here/vite/middlewares/HmrMiddleware.js +3 -1
- package/internal-do-not-import-from-here/vite/middlewares/StaticFileMiddleware.js +22 -2
- package/internal-do-not-import-from-here/webpack-loaders/ts-loader.d.ts +1 -1
- package/internal-do-not-import-from-here/webpack-loaders/ts-loader.js +1 -8
- package/internal-do-not-import-from-here/webpack-loaders/tsx-loader.d.ts +1 -1
- package/internal-do-not-import-from-here/webpack-loaders/tsx-loader.js +23 -28
- package/package.json +7 -6
- package/internal-do-not-import-from-here/1cacb55c-202b-4cd7-819d-11bad92fa9cb.wcdefinitions.json +0 -1
- package/internal-do-not-import-from-here/1cacb55c-202b-4cd7-819d-11bad92fa9cb.wctypings.d.ts +0 -11
- package/internal-do-not-import-from-here/1cacb55c-202b-4cd7-819d-11bad92fa9cb.wctypings.js +0 -2
- package/internal-do-not-import-from-here/bb000000-0000-bbbb-0000-0000000000bb.wcdefinitions.json +0 -1
- package/internal-do-not-import-from-here/cc000000-0000-cccc-0000-0000000000cc.wcdefinitions.json +0 -1
- package/internal-do-not-import-from-here/webpack-loaders/jsx-loader.d.ts +0 -8
- package/internal-do-not-import-from-here/webpack-loaders/jsx-loader.js +0 -61
- package/internal-do-not-import-from-here/webpack-loaders/vue-tsx-hot-loader.d.ts +0 -1
- package/internal-do-not-import-from-here/webpack-loaders/vue-tsx-hot-loader.js +0 -44
package/internal-do-not-import-from-here/bb000000-0000-bbbb-0000-0000000000bb.wctypings.d.ts
CHANGED
|
@@ -59,15 +59,38 @@ import wc01c6a5e974334f06a390c9af5a7689d0 from '../../../client/fx/ux/identities
|
|
|
59
59
|
import wcc2a811dfd3774d15862abb2f6a435a5c from '../../../client/fx/ux/identities/components/shared/IdentitySyncRuleSetup';
|
|
60
60
|
import wcba60557e3daf48208c919a1806502df5 from '../../../client/fx/ux/identitypicker/IdentityPicker';
|
|
61
61
|
import wc2f4b3c8e5d6a4f7bbc9d1e0a2b3c4d5e from '../../../client/fx/ux/image/scalingsettings/ScalingSettings';
|
|
62
|
+
import wc4834285963564938a31a1ac1dfb1b5d8 from '../../../client/fx/ux/layoutcanvas/editor/blockplaceholder/BlockPlaceholder';
|
|
63
|
+
import wc4512676606d342adbd011def4b615151 from '../../../client/fx/ux/layoutcanvas/editor/canvastoolbar/CanvasToolbar';
|
|
62
64
|
import wc41f1eb15438a488b8b227b1ff31ca66f from '../../../client/fx/ux/layoutcanvas/editor/developertools/DeveloperTools';
|
|
65
|
+
import wcd89913a1055942b38285fcab85751865 from '../../../client/fx/ux/layoutcanvas/editor/devicepreviewer/DevicePreviewer';
|
|
63
66
|
import wc8e03e2f7fb024945bc51138b77d06088 from '../../../client/fx/ux/layoutcanvas/editor/LayoutEditorCanvas';
|
|
67
|
+
import wcf5cf0b4975644d688124880ae533869e from '../../../client/fx/ux/layoutcanvas/editor/settings/backgroundsettings/BackgroundSettings';
|
|
68
|
+
import wc2e52c0d860ec498fa3abf6b76eacc45d from '../../../client/fx/ux/layoutcanvas/editor/settings/block/Header';
|
|
69
|
+
import wc9666ee9da0af46ac8354f0577050cb60 from '../../../client/fx/ux/layoutcanvas/editor/settings/block/Spacing';
|
|
70
|
+
import wc103ae93f7a7c4754872e2573a9a689d7 from '../../../client/fx/ux/layoutcanvas/editor/settings/block/Style';
|
|
71
|
+
import wc06eff92039dd49339e522ac2d7a648af from '../../../client/fx/ux/layoutcanvas/editor/settings/block/Css';
|
|
72
|
+
import wc53cbd5702e9e41ffa95093586c0e001d from '../../../client/fx/ux/layoutcanvas/editor/settings/block/Targeting';
|
|
73
|
+
import wc1b1dd31ac8644b498ddf378a431dfb19 from '../../../client/fx/ux/layoutcanvas/editor/settings/blocktitle/BlockTitle';
|
|
64
74
|
import wcbeda6edf4c614323955fc06c6326f7e9 from '../../../client/fx/ux/layoutcanvas/editor/settings/blocktitle/BlockTitleSettings';
|
|
75
|
+
import wc0f7be5adc6ff4d81b920e5cf086128ae from '../../../client/fx/ux/layoutcanvas/editor/settings/imagebackgroundsettings/ImageBackgroundSettings';
|
|
76
|
+
import wc673c5382ae8e4663ac07110302d7e386 from '../../../client/fx/ux/layoutcanvas/editor/settings/layout/GlobalHeaderStyling';
|
|
77
|
+
import wc221ed456340d4c1fa7522b7bee6d7a64 from '../../../client/fx/ux/layoutcanvas/editor/settings/layout/BlockHeader';
|
|
78
|
+
import wc9e404f90ca6640f19c3fece23b073993 from '../../../client/fx/ux/layoutcanvas/editor/settings/layout/Style';
|
|
65
79
|
import wc4a31764ba9f6414a96192d0d02456086 from '../../../client/fx/ux/layoutcanvas/editor/settings/layoutclipboard/LayoutClipboard';
|
|
80
|
+
import wc160a5d56895f4a66a9dae49cffdae312 from '../../../client/fx/ux/layoutcanvas/editor/settings/lock/Lock';
|
|
66
81
|
import wc51c48c7bbe4245888bbf2f98884d6028 from '../../../client/fx/ux/layoutcanvas/editor/settings/section/General';
|
|
82
|
+
import wc68724008d5d046b8a2f969ee90eece2c from '../../../client/fx/ux/layoutcanvas/editor/settings/section/Spacing';
|
|
83
|
+
import wc08384c0236f840719ee3d8e018718e68 from '../../../client/fx/ux/layoutcanvas/editor/settings/section/Style';
|
|
84
|
+
import wc245a49e2d21a4b4ca849825b903103fe from '../../../client/fx/ux/layoutcanvas/editor/settings/section/Css';
|
|
85
|
+
import wc68628381bcdb41f6b0beb64d7ce94052 from '../../../client/fx/ux/layoutcanvas/editor/settings/section/Targeting';
|
|
86
|
+
import wc48ff129f9a254eec9276b47f0c0f8b3e from '../../../client/fx/ux/layoutcanvas/editor/settings/section/Header';
|
|
87
|
+
import wc2a460a78bf504a2b9d00b1f86a347d46 from '../../../client/fx/ux/layoutcanvas/editor/settings/settingstabs/TabLayoutSettings';
|
|
88
|
+
import wc5b6b6242356046c29e05c24fb2135bf0 from '../../../client/fx/ux/layoutcanvas/editor/settings/settingstabs/TabBlockSettings';
|
|
67
89
|
import wc0b2ee63495854227a082987161a9e641 from '../../../client/fx/ux/layoutcanvas/renderer/LayoutBlockRendererHelper';
|
|
68
90
|
import wcf346db89a53b404690b1795429fb0162 from '../../../client/fx/ux/layoutcanvas/renderer/LayoutRendererCanvas';
|
|
69
91
|
import wc6c2ac8bf4da44a2b8e544eaf5b42099f from '../../../client/fx/ux/limited-label/LimitedLabel';
|
|
70
92
|
import wcf365f5cb3a694c20be7b96423bbc3eca from '../../../client/fx/ux/magiclink/MagicLink';
|
|
93
|
+
import wc2e8004b49c8d44dd8edb56ce884c2b57 from '../../../client/fx/ux/monaco/MonacoEditor';
|
|
71
94
|
import wc7f06e68f94904b48b827b23acd148bec from '../../../client/fx/ux/optionpicker/OptionPicker';
|
|
72
95
|
import wc7fbf605e1ae24b21b0a9e35141aca17b from '../../../client/fx/ux/oxide/appbar/Appbar';
|
|
73
96
|
import wc678a52a5101d41498d47754aeae5f9f6 from '../../../client/fx/ux/oxide/btn/Button';
|
|
@@ -101,6 +124,7 @@ import wc3ae18994ae5546dc945347d58432108d from '../../../client/fx/ux/oxide/tab/
|
|
|
101
124
|
import wc07776976fab941de8e169e6e903fb4fe from '../../../client/fx/ux/oxide/tab/Tab';
|
|
102
125
|
import wc08f1880bd39f43f6aa2734a85ebdf721 from '../../../client/fx/ux/oxide/table/Table';
|
|
103
126
|
import wc7b543325ab85489eb1401d7bfdf6f5fc from '../../../client/fx/ux/oxide/text/Text';
|
|
127
|
+
import wcab9101708fac46968e7d1ce1ea71c3cf from '../../../client/fx/ux/oxide/textarea/TextArea';
|
|
104
128
|
import wc9a7ad06b091e4633a0fc3d380210f9cb from '../../../client/fx/ux/oxide/textfield/TextField';
|
|
105
129
|
import wc53c3a240c5bf4d39ac29ac7f1f7415ae from '../../../client/fx/ux/oxide/toolbar/Toolbar';
|
|
106
130
|
import wce1b9681a96a94f65a08577ef52b83752 from '../../../client/fx/ux/oxide/treeview/Treeview';
|
|
@@ -146,6 +170,9 @@ import wcb174dcf2716344b0bb02c981ae68dd73 from '../../../client/fx/ux/properties
|
|
|
146
170
|
import wc646cfdda09044ebc9339f2ac31318512 from '../../../client/fx/ux/properties/legacy-enterprise-property/LegacyEnterprisePropertyDisplay';
|
|
147
171
|
import wc332ae4244d4e4b0296befadb2ad2ac6b from '../../../client/fx/ux/properties/legacy-enterprise-property/LegacyEnterprisePropertyEditor';
|
|
148
172
|
import wc58330f37503947799af05363e58bda3c from '../../../client/fx/ux/richtexteditor/Emoticon/EmoticonComponent';
|
|
173
|
+
import wc7474e75042e347b4821bbafdb1cb4ee0 from '../../../client/fx/ux/richtexteditor/RichTextEditor';
|
|
174
|
+
import wc8c7794090eb647eb8510b39cbefa17a7 from '../../../client/fx/ux/rollupempty/RollupEmpty';
|
|
175
|
+
import wcc0de4753b9fe4004b0f4e6b6b91730ab from '../../../client/fx/ux/settings/SettingsPane';
|
|
149
176
|
import wc539d199f69934c10a963f142e4f3056d from '../../../client/fx/ux/sidepanel/SidePanelRenderer';
|
|
150
177
|
import wcb5315b31203e4bd1beb3c33f2122cbfe from '../../../client/fx/ux/signin/SignInPage';
|
|
151
178
|
import wce4b25c06803a417a9c4aa4b7280a599b from '../../../client/fx/ux/signin/SignInBlock';
|
|
@@ -153,9 +180,12 @@ import wcbc3b9409639d45829a6e58a4295bc470 from '../../../client/fx/ux/signin/omn
|
|
|
153
180
|
import wcf297290b5ea4409a9738ca880f1ea612 from '../../../client/fx/ux/signout/SignOut';
|
|
154
181
|
import wc564bced7081c496483e8df717f600ff3 from '../../../client/fx/ux/spacingpicker/SpacingPicker2';
|
|
155
182
|
import wccb83d46eaaed44d4920d4d5da21bc488 from '../../../client/fx/ux/statusmessageoverlay/StatusMessageOverlay';
|
|
156
|
-
import
|
|
183
|
+
import wc44e2dd896269442f800da69000d4c2f1 from '../../../client/fx/ux/theming-v2/blueprintpicker/BlueprintPicker';
|
|
184
|
+
import wc829fbdec1d3b44059578b89b6d04c52b from '../../../client/fx/ux/theming-v2/colorschemadefinitionpicker/ColorSchemaDefinitionPicker';
|
|
185
|
+
import wc1266389c28034034921b897f788f302d from '../../../client/fx/ux/theming-v2/colorschemapicker/ColorSchemaPicker';
|
|
157
186
|
import wc252ece0016594978b3ddfafdd59adda4 from '../../../client/fx/ux/theming-v2/themedefinitionpicker/ThemeDefinitionPicker';
|
|
158
187
|
import wc5abbb7170e454f0d8cb537bcad180cd7 from '../../../client/fx/ux/theming-v2/themeeditor/ThemeEditor';
|
|
188
|
+
import wc4ff736bf8c544324883ed49f2a38f846 from '../../../client/fx/ux/theming/components/ThemeDefinitionEditor';
|
|
159
189
|
import wc0beecee9c6ce42c88bd468bde23f9f32 from '../../../client/fx/ux/user/components/PropertyConfigurationRenderer';
|
|
160
190
|
import wc8f4747f0b0884fd2a3b60baef21b67fc from '../../../client/fx/ux/user/components/UserPropertyProviderDisplay';
|
|
161
191
|
import wc909b95011fbe44c28440ad9cd6aaff85 from '../../../client/fx/ux/user/components/UserPropertyProviderEditor';
|
|
@@ -169,7 +199,6 @@ import wc80bd5b0978ea40439001d3d409236382 from '../../../client/fx/ux/velcron/bl
|
|
|
169
199
|
import wce8526e8ed3f74e848e0dd747fd4d376d from '../../../client/fx/ux/velcron/blocks/VelcronBlockSettings';
|
|
170
200
|
import wc327aebb7d6ce4565bf119cf67e121d1a from '../../../client/fx/ux/velcron/editor/components/pickers/colorpicker/ColorPicker';
|
|
171
201
|
import wc511447a5fd2646af910064ed9970d82e from '../../../client/fx/ux/velcron/editor/components/pickers/colorschemamapper/ColorSchemaMapper';
|
|
172
|
-
import wc1266389c28034034921b897f788f302d from '../../../client/fx/ux/velcron/editor/components/pickers/ColorSchemaPicker/ColorSchemaPicker';
|
|
173
202
|
import wc3cd2da446d21461e8149e6c8334a36f4 from '../../../client/fx/ux/velcron/editor/components/pickers/ratiopicker/RatioPicker';
|
|
174
203
|
import wc8420a0b507e14a288c2d895471739f1d from '../../../client/fx/ux/velcron/editor/components/pickers/typographypicker/TypographyPicker';
|
|
175
204
|
import wcc75ffd4cf2f14b6685c5c2d894fdf00f from '../../../client/fx/ux/velcron/editor/VelcronEditor';
|
|
@@ -243,15 +272,38 @@ declare global {
|
|
|
243
272
|
"omfx-identity-sync-rule-setup": typeof wcc2a811dfd3774d15862abb2f6a435a5c.propsDefinition & VueComponentBaseProps;
|
|
244
273
|
"omfx-identity-picker": typeof wcba60557e3daf48208c919a1806502df5.propsDefinition & VueComponentBaseProps;
|
|
245
274
|
"omfx-media-scaling-settings": typeof wc2f4b3c8e5d6a4f7bbc9d1e0a2b3c4d5e.propsDefinition & VueComponentBaseProps;
|
|
275
|
+
"omfx-layout-block-placeholder": typeof wc4834285963564938a31a1ac1dfb1b5d8.propsDefinition & VueComponentBaseProps;
|
|
276
|
+
"omfx-canvas-toolbar": typeof wc4512676606d342adbd011def4b615151.propsDefinition & VueComponentBaseProps;
|
|
246
277
|
"omnia-layout-developertools": typeof wc41f1eb15438a488b8b227b1ff31ca66f.propsDefinition & VueComponentBaseProps;
|
|
278
|
+
"omfx-device-previewer": typeof wcd89913a1055942b38285fcab85751865.propsDefinition & VueComponentBaseProps;
|
|
247
279
|
"omfx-layout-editor-canvas": typeof wc8e03e2f7fb024945bc51138b77d06088.propsDefinition & VueComponentBaseProps;
|
|
280
|
+
"omfx-layout-background-settings": typeof wcf5cf0b4975644d688124880ae533869e.propsDefinition & VueComponentBaseProps;
|
|
281
|
+
"omfx-layout-block-settings-header": typeof wc2e52c0d860ec498fa3abf6b76eacc45d.propsDefinition & VueComponentBaseProps;
|
|
282
|
+
"omfx-layout-block-settings-spacing": typeof wc9666ee9da0af46ac8354f0577050cb60.propsDefinition & VueComponentBaseProps;
|
|
283
|
+
"omfx-layout-block-settings-style": typeof wc103ae93f7a7c4754872e2573a9a689d7.propsDefinition & VueComponentBaseProps;
|
|
284
|
+
"omfx-layout-block-settings-css": typeof wc06eff92039dd49339e522ac2d7a648af.propsDefinition & VueComponentBaseProps;
|
|
285
|
+
"omfx-layout-block-settings-targeting": typeof wc53cbd5702e9e41ffa95093586c0e001d.propsDefinition & VueComponentBaseProps;
|
|
286
|
+
"omfx-layout-block-title": typeof wc1b1dd31ac8644b498ddf378a431dfb19.propsDefinition & VueComponentBaseProps;
|
|
248
287
|
"omfx-layout-block-title-settings": typeof wcbeda6edf4c614323955fc06c6326f7e9.propsDefinition & VueComponentBaseProps;
|
|
288
|
+
"omfx-layout-image-background-settings": typeof wc0f7be5adc6ff4d81b920e5cf086128ae.propsDefinition & VueComponentBaseProps;
|
|
289
|
+
"omfx-layout-layout-settings-globalheader": typeof wc673c5382ae8e4663ac07110302d7e386.propsDefinition & VueComponentBaseProps;
|
|
290
|
+
"omfx-layout-layout-settings-blockheader": typeof wc221ed456340d4c1fa7522b7bee6d7a64.propsDefinition & VueComponentBaseProps;
|
|
291
|
+
"omfx-layout-layout-settings-style": typeof wc9e404f90ca6640f19c3fece23b073993.propsDefinition & VueComponentBaseProps;
|
|
249
292
|
"omfx-layout-clipboard": typeof wc4a31764ba9f6414a96192d0d02456086.propsDefinition & VueComponentBaseProps;
|
|
293
|
+
"omfx-layout-lock-settings": typeof wc160a5d56895f4a66a9dae49cffdae312.propsDefinition & VueComponentBaseProps;
|
|
250
294
|
"omfx-layout-section-settings-general": typeof wc51c48c7bbe4245888bbf2f98884d6028.propsDefinition & VueComponentBaseProps;
|
|
295
|
+
"omfx-layout-section-settings-spacing": typeof wc68724008d5d046b8a2f969ee90eece2c.propsDefinition & VueComponentBaseProps;
|
|
296
|
+
"omfx-layout-section-settings-style": typeof wc08384c0236f840719ee3d8e018718e68.propsDefinition & VueComponentBaseProps;
|
|
297
|
+
"omfx-layout-section-settings-css": typeof wc245a49e2d21a4b4ca849825b903103fe.propsDefinition & VueComponentBaseProps;
|
|
298
|
+
"omfx-layout-section-settings-targeting": typeof wc68628381bcdb41f6b0beb64d7ce94052.propsDefinition & VueComponentBaseProps;
|
|
299
|
+
"omfx-layout-section-settings-header": typeof wc48ff129f9a254eec9276b47f0c0f8b3e.propsDefinition & VueComponentBaseProps;
|
|
300
|
+
"omfx-layout-tab-layout-settings": typeof wc2a460a78bf504a2b9d00b1f86a347d46.propsDefinition & VueComponentBaseProps;
|
|
301
|
+
"omfx-layout-tab-block-settings": typeof wc5b6b6242356046c29e05c24fb2135bf0.propsDefinition & VueComponentBaseProps;
|
|
251
302
|
"omfx-layout-block-renderer-helper": typeof wc0b2ee63495854227a082987161a9e641.propsDefinition & VueComponentBaseProps;
|
|
252
303
|
"omfx-layout-renderer-canvas": typeof wcf346db89a53b404690b1795429fb0162.propsDefinition & VueComponentBaseProps;
|
|
253
304
|
"omfx-limited-label": typeof wc6c2ac8bf4da44a2b8e544eaf5b42099f.propsDefinition & VueComponentBaseProps;
|
|
254
305
|
"omfx-magiclink": typeof wcf365f5cb3a694c20be7b96423bbc3eca.propsDefinition & VueComponentBaseProps;
|
|
306
|
+
"monaco-editor": typeof wc2e8004b49c8d44dd8edb56ce884c2b57.propsDefinition & VueComponentBaseProps;
|
|
255
307
|
"omfx-option-picker": typeof wc7f06e68f94904b48b827b23acd148bec.propsDefinition & VueComponentBaseProps;
|
|
256
308
|
"o-app-bar": typeof wc7fbf605e1ae24b21b0a9e35141aca17b.propsDefinition & VueComponentBaseProps;
|
|
257
309
|
"o-btn": typeof wc678a52a5101d41498d47754aeae5f9f6.propsDefinition & VueComponentBaseProps;
|
|
@@ -285,6 +337,7 @@ declare global {
|
|
|
285
337
|
"o-tab": typeof wc07776976fab941de8e169e6e903fb4fe.propsDefinition & VueComponentBaseProps;
|
|
286
338
|
"o-table": typeof wc08f1880bd39f43f6aa2734a85ebdf721.propsDefinition & VueComponentBaseProps;
|
|
287
339
|
"o-text": typeof wc7b543325ab85489eb1401d7bfdf6f5fc.propsDefinition & VueComponentBaseProps;
|
|
340
|
+
"o-textarea": typeof wcab9101708fac46968e7d1ce1ea71c3cf.propsDefinition & VueComponentBaseProps;
|
|
288
341
|
"o-text-field": typeof wc9a7ad06b091e4633a0fc3d380210f9cb.propsDefinition & VueComponentBaseProps;
|
|
289
342
|
"o-toolbar": typeof wc53c3a240c5bf4d39ac29ac7f1f7415ae.propsDefinition & VueComponentBaseProps;
|
|
290
343
|
"o-treeview": typeof wce1b9681a96a94f65a08577ef52b83752.propsDefinition & VueComponentBaseProps;
|
|
@@ -330,6 +383,9 @@ declare global {
|
|
|
330
383
|
"omfx-app-legacy-enterprise-properties-display": typeof wc646cfdda09044ebc9339f2ac31318512.propsDefinition & VueComponentBaseProps;
|
|
331
384
|
"omfx-legacy-enterprise-properties-editor": typeof wc332ae4244d4e4b0296befadb2ad2ac6b.propsDefinition & VueComponentBaseProps;
|
|
332
385
|
"omfx-emoticon": typeof wc58330f37503947799af05363e58bda3c.propsDefinition & VueComponentBaseProps;
|
|
386
|
+
"omfx-rich-text-editor": typeof wc7474e75042e347b4821bbafdb1cb4ee0.propsDefinition & VueComponentBaseProps;
|
|
387
|
+
"omfx-rollup-empty": typeof wc8c7794090eb647eb8510b39cbefa17a7.propsDefinition & VueComponentBaseProps;
|
|
388
|
+
"omfx-settings-pane": typeof wcc0de4753b9fe4004b0f4e6b6b91730ab.propsDefinition & VueComponentBaseProps;
|
|
333
389
|
"omfx-side-panel": typeof wc539d199f69934c10a963f142e4f3056d.propsDefinition & VueComponentBaseProps;
|
|
334
390
|
"omfx-signin-page": typeof wcb5315b31203e4bd1beb3c33f2122cbfe.propsDefinition & VueComponentBaseProps;
|
|
335
391
|
"omfx-signin-block": typeof wce4b25c06803a417a9c4aa4b7280a599b.propsDefinition & VueComponentBaseProps;
|
|
@@ -337,9 +393,12 @@ declare global {
|
|
|
337
393
|
"omfx-signout": typeof wcf297290b5ea4409a9738ca880f1ea612.propsDefinition & VueComponentBaseProps;
|
|
338
394
|
"omfx-spacing-picker": typeof wc564bced7081c496483e8df717f600ff3.propsDefinition & VueComponentBaseProps;
|
|
339
395
|
"omfx-status-message-overlay": typeof wccb83d46eaaed44d4920d4d5da21bc488.propsDefinition & VueComponentBaseProps;
|
|
396
|
+
"omfx-blueprint-picker": typeof wc44e2dd896269442f800da69000d4c2f1.propsDefinition & VueComponentBaseProps;
|
|
340
397
|
"omfx-color-schema-definition-picker": typeof wc829fbdec1d3b44059578b89b6d04c52b.propsDefinition & VueComponentBaseProps;
|
|
398
|
+
"omfx-color-schema-picker": typeof wc1266389c28034034921b897f788f302d.propsDefinition & VueComponentBaseProps;
|
|
341
399
|
"omfx-theme-definition-picker": typeof wc252ece0016594978b3ddfafdd59adda4.propsDefinition & VueComponentBaseProps;
|
|
342
400
|
"omfx-theme-editor-v2": typeof wc5abbb7170e454f0d8cb537bcad180cd7.propsDefinition & VueComponentBaseProps;
|
|
401
|
+
"omfx-themedefinition-editor": typeof wc4ff736bf8c544324883ed49f2a38f846.propsDefinition & VueComponentBaseProps;
|
|
343
402
|
"omfx-properties-user-configuration-renderer": typeof wc0beecee9c6ce42c88bd468bde23f9f32.propsDefinition & VueComponentBaseProps;
|
|
344
403
|
"omfx-properties-user-provider-display": typeof wc8f4747f0b0884fd2a3b60baef21b67fc.propsDefinition & VueComponentBaseProps;
|
|
345
404
|
"omfx-properties-user-provider-editor": typeof wc909b95011fbe44c28440ad9cd6aaff85.propsDefinition & VueComponentBaseProps;
|
|
@@ -353,7 +412,6 @@ declare global {
|
|
|
353
412
|
"omfx-velcron-block-settings": typeof wce8526e8ed3f74e848e0dd747fd4d376d.propsDefinition & VueComponentBaseProps;
|
|
354
413
|
"omfx-color-picker-schema": typeof wc327aebb7d6ce4565bf119cf67e121d1a.propsDefinition & VueComponentBaseProps;
|
|
355
414
|
"omfx-color-schema-mapper": typeof wc511447a5fd2646af910064ed9970d82e.propsDefinition & VueComponentBaseProps;
|
|
356
|
-
"omfx-color-schema-picker": typeof wc1266389c28034034921b897f788f302d.propsDefinition & VueComponentBaseProps;
|
|
357
415
|
"omfx-ratio-picker": typeof wc3cd2da446d21461e8149e6c8334a36f4.propsDefinition & VueComponentBaseProps;
|
|
358
416
|
"omfx-typography-picker-schema": typeof wc8420a0b507e14a288c2d895471739f1d.propsDefinition & VueComponentBaseProps;
|
|
359
417
|
"omfx-velcron-editor": typeof wcc75ffd4cf2f14b6685c5c2d894fdf00f.propsDefinition & VueComponentBaseProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function getBaseWebpackConfigForManifestMetadata(entry: any, bundleOutputDir: any
|
|
1
|
+
export declare function getBaseWebpackConfigForManifestMetadata(entry: any, bundleOutputDir: any): {
|
|
2
2
|
devtool: boolean;
|
|
3
3
|
mode: string;
|
|
4
4
|
context: any;
|
|
@@ -65,26 +65,12 @@ export declare function getBaseWebpackConfigForManifestMetadata(entry: any, bund
|
|
|
65
65
|
resolve: {
|
|
66
66
|
fullySpecified: boolean;
|
|
67
67
|
};
|
|
68
|
-
exclude?: undefined;
|
|
69
68
|
use?: undefined;
|
|
70
69
|
loader?: undefined;
|
|
71
|
-
} | {
|
|
72
|
-
test: RegExp;
|
|
73
|
-
exclude: RegExp;
|
|
74
|
-
use: {
|
|
75
|
-
loader: string;
|
|
76
|
-
options: {
|
|
77
|
-
cacheDirectory: boolean;
|
|
78
|
-
plugins: string[];
|
|
79
|
-
};
|
|
80
|
-
}[];
|
|
81
|
-
resolve?: undefined;
|
|
82
|
-
loader?: undefined;
|
|
83
70
|
} | {
|
|
84
71
|
test: RegExp;
|
|
85
72
|
use: string[];
|
|
86
73
|
resolve?: undefined;
|
|
87
|
-
exclude?: undefined;
|
|
88
74
|
loader?: undefined;
|
|
89
75
|
} | {
|
|
90
76
|
test: RegExp;
|
|
@@ -98,13 +84,11 @@ export declare function getBaseWebpackConfigForManifestMetadata(entry: any, bund
|
|
|
98
84
|
};
|
|
99
85
|
}[];
|
|
100
86
|
resolve?: undefined;
|
|
101
|
-
exclude?: undefined;
|
|
102
87
|
loader?: undefined;
|
|
103
88
|
} | {
|
|
104
89
|
test: RegExp;
|
|
105
90
|
loader: string;
|
|
106
91
|
resolve?: undefined;
|
|
107
|
-
exclude?: undefined;
|
|
108
92
|
use?: undefined;
|
|
109
93
|
} | {
|
|
110
94
|
test: RegExp;
|
|
@@ -117,7 +101,6 @@ export declare function getBaseWebpackConfigForManifestMetadata(entry: any, bund
|
|
|
117
101
|
};
|
|
118
102
|
}[];
|
|
119
103
|
resolve?: undefined;
|
|
120
|
-
exclude?: undefined;
|
|
121
104
|
loader?: undefined;
|
|
122
105
|
})[];
|
|
123
106
|
};
|
|
@@ -6,7 +6,7 @@ const globby = tslib_1.__importStar(require("globby"));
|
|
|
6
6
|
const $ = tslib_1.__importStar(require("./variables"));
|
|
7
7
|
const ts_loader_1 = tslib_1.__importDefault(require("./webpack-loaders/ts-loader"));
|
|
8
8
|
const tsx_loader_1 = tslib_1.__importDefault(require("./webpack-loaders/tsx-loader"));
|
|
9
|
-
function getBaseWebpackConfigForManifestMetadata(entry, bundleOutputDir
|
|
9
|
+
function getBaseWebpackConfigForManifestMetadata(entry, bundleOutputDir) {
|
|
10
10
|
return {
|
|
11
11
|
devtool: false,
|
|
12
12
|
mode: 'development',
|
|
@@ -92,45 +92,8 @@ function getBaseWebpackConfigForManifestMetadata(entry, bundleOutputDir, wcDomPr
|
|
|
92
92
|
fullySpecified: false, // disable the behaviour
|
|
93
93
|
},
|
|
94
94
|
},
|
|
95
|
-
...(0, ts_loader_1.default)(
|
|
96
|
-
...(0, tsx_loader_1.default)(
|
|
97
|
-
{
|
|
98
|
-
test: /\.jsx$/,
|
|
99
|
-
exclude: /(node_modules|bower_components)/,
|
|
100
|
-
use: [
|
|
101
|
-
//{
|
|
102
|
-
// loader: 'cache-loader'
|
|
103
|
-
//},
|
|
104
|
-
{
|
|
105
|
-
loader: 'babel-loader',
|
|
106
|
-
options: {
|
|
107
|
-
cacheDirectory: true,
|
|
108
|
-
//presets: ["@babel/preset-env"],
|
|
109
|
-
//presets: [["@babel/preset-env", {
|
|
110
|
-
// "targets": {
|
|
111
|
-
// "chrome": "59"
|
|
112
|
-
// }
|
|
113
|
-
//}]],
|
|
114
|
-
plugins: ["syntax-jsx", "jsx-v-model", "transform-vue-jsx"]
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
|
-
//{
|
|
120
|
-
// test: /\.vue$/,
|
|
121
|
-
// use: [
|
|
122
|
-
// {
|
|
123
|
-
// loader: 'vue-loader',
|
|
124
|
-
// options: {
|
|
125
|
-
// hotReload: false,
|
|
126
|
-
// loaders: {
|
|
127
|
-
// ts: 'ts-loader',
|
|
128
|
-
// sass: 'vue-style-loader!css-loader!sass-loader!less-loader', // <style lang="scss">
|
|
129
|
-
// }
|
|
130
|
-
// }
|
|
131
|
-
// }
|
|
132
|
-
// ]
|
|
133
|
-
//},
|
|
95
|
+
...(0, ts_loader_1.default)(),
|
|
96
|
+
...(0, tsx_loader_1.default)(),
|
|
134
97
|
{
|
|
135
98
|
test: /\.styl$/,
|
|
136
99
|
use: [
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "extract-doc-plugin",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"author": "",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"keywords": ["swc-plugin"],
|
|
8
|
+
"main": "target/wasm32-wasi/release/extract_doc_plugin.wasm",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"prepublishOnly": "cargo build-wasi --release"
|
|
11
|
+
},
|
|
12
|
+
"files": [],
|
|
13
|
+
"preferUnplugged": true
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const fx_1 = require("@omnia/fx");
|
|
4
|
+
(0, fx_1.extendApi)(api => api.fx.docs.registrations, api => {
|
|
5
|
+
const registrations = { "o-btn": { "emits": {}, "models": {}, "props": { "icon": { "type": "ButtonIconOptions", "description": "Sets the icon to display on the button. If no text is provided the button will be displayed as an icon button" }, "text": { "type": "string", "description": "Specifies the text to display on the button" }, "variant": { "type": "ButtonVariant", "description": "Applies a distinct style to the component. Prominent should be used for call to action. Toolbar will create a transparent button to be used in toolbars." }, "overrides": { "type": "object", "description": "Sets the icon to display on the button. If no text is provided the button will be displayed as an icon button" }, "preset": { "type": "ButtonPreset", "description": "Sets the default values of the button to the specified preset. Preffered way of using the o-btn" }, "tooltip": { "type": "ButtonTooltipOptions", "description": "Sets tooltip to display when hovering the button" }, "size": { "type": "SizeType", "description": "Sets the size of the button" }, "grouped": { "type": "boolean", "description": "Adds spacing to the left of the button to group it with other buttons. Should be used when more than one button is displayed." }, "toned": { "type": "boolean", "description": "Applies a toned background to the button. Should be used when the button is displayed on a colored background." }, "active": { "type": "boolean", "description": "Controls the active state of the item. This is typically used to highlight the component." }, "disabled": { "type": "boolean", "description": "Removes the ability to click or target the component." } }, "slots": {} }, "o-menu": { "emits": {}, "models": {}, "props": {}, "slots": { "activator": { "type": "() => VNodeChild", "description": "activator" } } }, "o-select": { "emits": { "click:button": { "type": "(value:any) => true", "description": "Emit a click event." } }, "models": {}, "props": {}, "slots": { "item": { "type": "(item:RenderingItem, index:Number) => VNodeChild", "description": "Define a custom item appearance" }, "selection": { "type": "(item:RenderingItem, index:Number) => VNodeChild", "description": "Define a custom selection appearance" } } }, "o-treeview": { "emits": {}, "models": {}, "props": { "items": { "type": "Array", "description": "An array of items to display in the treeview. Is hierarchical and can contain children. Can also control expanded or not." }, "expandOnSelection": { "type": "boolean", "description": "Defines if the treeview should expand when the title row is selected. Default is false and the arrow has to be clicked to expand the children." }, "multiple": { "type": "boolean", "description": "Changes select to multiple. Default is false." } }, "slots": { "itemAction": { "type": "(item:TreeViewItem, index:Number) => VNodeChild", "description": "Define a custom item action appearance" } } } };
|
|
6
|
+
Object.keys(registrations).forEach(elementName => {
|
|
7
|
+
api.register(elementName, registrations[elementName]);
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Configuration } from 'webpack';
|
|
2
|
-
import { BuildOptions } from '
|
|
2
|
+
import { BuildOptions } from '@omnia/tooling-composers';
|
|
3
3
|
import { GuidValue } from "@omnia/fx-models";
|
|
4
4
|
declare function bundleManifest(entries: any): Promise<void>;
|
|
5
5
|
declare function createVueWebpackConfig(currentEntry: any, entries: any, bundleOutputDir: any, hotModuleReload?: any, viteHmrOption?: 'prebundle' | 'dynamic'): Configuration;
|
|
@@ -9,16 +9,18 @@ const globby = tslib_1.__importStar(require("globby"));
|
|
|
9
9
|
const terser_1 = require("terser");
|
|
10
10
|
const ts_loader_1 = tslib_1.__importDefault(require("../webpack-loaders/ts-loader"));
|
|
11
11
|
const tsx_loader_1 = tslib_1.__importDefault(require("../webpack-loaders/tsx-loader"));
|
|
12
|
+
const tooling_composers_1 = require("@omnia/tooling-composers");
|
|
12
13
|
const fx_models_1 = require("@omnia/fx-models");
|
|
13
14
|
const $ = tslib_1.__importStar(require("../variables"));
|
|
14
15
|
const shared_1 = require("../shared");
|
|
15
16
|
const tooling_1 = require("@omnia/tooling");
|
|
17
|
+
const core_1 = require("@swc/core");
|
|
16
18
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
17
19
|
const ConcatSource = require('webpack-core/lib/ConcatSource');
|
|
18
20
|
const CircularDependencyPlugin = require('circular-dependency-plugin');
|
|
19
21
|
const isEqual = require('lodash/isEqual');
|
|
20
22
|
const vendorProdId = "aaf89b2d-5ea8-4b79-946a-8c1e89f713a3";
|
|
21
|
-
let outDirManifestMetadata = "client/tooling/vue/output_manifests", _manifestsEntry = {}, _registeredReferenceManifests = [], serviceId = null, _modulesStats = {}, _manifestsStats = {}, keepTrackbuildOptions = {}, _transformResourcepaths = [],
|
|
23
|
+
let outDirManifestMetadata = "client/tooling/vue/output_manifests", _manifestsEntry = {}, _registeredReferenceManifests = [], serviceId = null, _modulesStats = {}, _manifestsStats = {}, keepTrackbuildOptions = {}, _transformResourcepaths = [], _wcDefinitions = {};
|
|
22
24
|
if ($.isExtensionEnv) {
|
|
23
25
|
outDirManifestMetadata = "node_modules/@omnia/tooling-vue/internal-do-not-import-from-here/output_manifests";
|
|
24
26
|
}
|
|
@@ -36,7 +38,7 @@ $.tooling.core.registerBuildTask({
|
|
|
36
38
|
order: 2,
|
|
37
39
|
task: function () {
|
|
38
40
|
return new Promise(function (resolve, reject) {
|
|
39
|
-
|
|
41
|
+
buildEntries()
|
|
40
42
|
.then((result) => {
|
|
41
43
|
let startTime = new Date().getTime();
|
|
42
44
|
tooling_1.utils.log("Typescript checking...");
|
|
@@ -65,7 +67,7 @@ $.tooling.core.registerServeTask({
|
|
|
65
67
|
fsExtra.removeSync("node_modules/tiptap-commands/node_modules");
|
|
66
68
|
fsExtra.removeSync("node_modules/tiptap-utils/node_modules");
|
|
67
69
|
}
|
|
68
|
-
|
|
70
|
+
buildEntries(true)
|
|
69
71
|
.then(resolve, reject);
|
|
70
72
|
});
|
|
71
73
|
}
|
|
@@ -193,18 +195,21 @@ function clean() {
|
|
|
193
195
|
resolve();
|
|
194
196
|
});
|
|
195
197
|
}
|
|
196
|
-
function
|
|
197
|
-
return new Promise(function (resolve, reject) {
|
|
198
|
+
function buildEntries(serve = false) {
|
|
199
|
+
return new Promise(async function (resolve, reject) {
|
|
198
200
|
try {
|
|
199
201
|
var startTime = new Date().getTime();
|
|
200
202
|
var componentRegistry = $.composers.ComponentRegistry;
|
|
201
203
|
let componentRegistrations = componentRegistry.getRegistrations();
|
|
204
|
+
const serviceInfo = $.composers.ServiceManifestRegistry.getServiceInfo();
|
|
205
|
+
if (serviceInfo.serviceType === tooling_composers_1.ServiceTypes.WebApp) {
|
|
206
|
+
await generateComponentTypingsAndDoc(componentRegistrations);
|
|
207
|
+
}
|
|
202
208
|
$.tooling.logTime("Found [" + componentRegistrations.length + "] component registrations", startTime);
|
|
203
209
|
var resourceRegistry = $.composers.ResourceRegistry;
|
|
204
210
|
let resourceBundlesWithBuildOptions = resourceRegistry.getRegisteredResourceBundles(shared_1.convertManifestPathToEntryPath);
|
|
205
211
|
$.tooling.logTime("Found [" + (resourceBundlesWithBuildOptions ? Object.keys(resourceBundlesWithBuildOptions).length : 0) + "] resource bundles", startTime);
|
|
206
212
|
let resourceEntries = {};
|
|
207
|
-
let wcDefinitionsPath, wcTypingsPath;
|
|
208
213
|
for (let key in resourceBundlesWithBuildOptions) {
|
|
209
214
|
let resource = resourceBundlesWithBuildOptions[key];
|
|
210
215
|
let manifest = $.composers.LoadableManifestRegistry.getRegisteredManifest(key);
|
|
@@ -216,47 +221,6 @@ function buildWebpackEntries(serve = false) {
|
|
|
216
221
|
console.log("debug " + key + " has build options for paths " + resource.paths + " buildoptions: " + JSON.stringify(resource.buildOptions));
|
|
217
222
|
}
|
|
218
223
|
}
|
|
219
|
-
//We only support typings for registered web components
|
|
220
|
-
wcDomProps = extractTypingsForComponents(componentRegistrations);
|
|
221
|
-
if (Object.keys(wcDomProps).length > 0) {
|
|
222
|
-
let wcDomPropsDesc = `Extracted web component typings for ${Object.keys(wcDomProps).length} component(s)`;
|
|
223
|
-
$.tooling.logTime(wcDomPropsDesc, startTime);
|
|
224
|
-
}
|
|
225
|
-
if ($.isExtensionEnv) {
|
|
226
|
-
wcDefinitionsPath = $.path.resolve(__dirname, "../wcdefinitions.json");
|
|
227
|
-
wcTypingsPath = $.path.resolve(__dirname, "../wctypings.ts");
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
wcDefinitionsPath = $.path.resolve(__dirname, `../${getServiceId().toLowerCase()}.wcdefinitions.json`);
|
|
231
|
-
wcTypingsPath = $.path.resolve(__dirname, `../${getServiceId().toLowerCase()}.wctypings.ts`);
|
|
232
|
-
}
|
|
233
|
-
fsExtra.writeJsonSync(wcDefinitionsPath, wcDomProps);
|
|
234
|
-
let wcTypings = `
|
|
235
|
-
//{{importWC}}
|
|
236
|
-
declare global {
|
|
237
|
-
namespace JSX {
|
|
238
|
-
interface Element { }
|
|
239
|
-
interface ElementClass { }
|
|
240
|
-
|
|
241
|
-
interface IntrinsicElements {
|
|
242
|
-
//{{elementName}}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
`;
|
|
247
|
-
if ($.isExtensionEnv) {
|
|
248
|
-
wcTypings = `import { VueComponentBaseProps } from "@omnia/fx/ux";
|
|
249
|
-
${wcTypings}`;
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
wcTypings = `import { VueComponentBaseProps } from "../../../client/fx/ux/index";
|
|
253
|
-
${wcTypings}`;
|
|
254
|
-
}
|
|
255
|
-
componentRegistrations.forEach(wc => {
|
|
256
|
-
wcTypings = generateWebComponentTypings(wc, wcTypings);
|
|
257
|
-
});
|
|
258
|
-
fsExtra.outputFileSync(wcTypingsPath, wcTypings);
|
|
259
|
-
wcDomProps = $.merge(wcDomProps, getRegisteredWebComponentDefinitions());
|
|
260
224
|
let componentEntries = createVueEntryFormRegistrations(componentRegistrations);
|
|
261
225
|
var entries = $.merge(componentEntries, resourceEntries);
|
|
262
226
|
if (checkDuplicateWebpackEntryPoints(entries)) {
|
|
@@ -292,6 +256,231 @@ declare global {
|
|
|
292
256
|
}
|
|
293
257
|
});
|
|
294
258
|
}
|
|
259
|
+
async function generateComponentTypingsAndDoc(componentRegistrations) {
|
|
260
|
+
tooling_1.utils.log("Generate components typings and documentation running...");
|
|
261
|
+
var startTime = new Date().getTime();
|
|
262
|
+
let DefineVueType;
|
|
263
|
+
(function (DefineVueType) {
|
|
264
|
+
DefineVueType[DefineVueType["Prop"] = 0] = "Prop";
|
|
265
|
+
DefineVueType[DefineVueType["Model"] = 1] = "Model";
|
|
266
|
+
DefineVueType[DefineVueType["Slot"] = 2] = "Slot";
|
|
267
|
+
DefineVueType[DefineVueType["Emit"] = 4] = "Emit";
|
|
268
|
+
})(DefineVueType || (DefineVueType = {}));
|
|
269
|
+
const docResult = {};
|
|
270
|
+
function getPropertyFunctionTypeAsString(type) {
|
|
271
|
+
let params = "";
|
|
272
|
+
if (type.params?.length > 0) {
|
|
273
|
+
type.params.forEach(p => {
|
|
274
|
+
params += `${p.value}:${getPropertyType(p.typeAnnotation)}, `;
|
|
275
|
+
});
|
|
276
|
+
params = params.replace(/,\s*$/, "");
|
|
277
|
+
}
|
|
278
|
+
return `(${params}) => ${getPropertyType(type.typeAnnotation)}`;
|
|
279
|
+
}
|
|
280
|
+
function getPropertyType(tsType) {
|
|
281
|
+
let result = "";
|
|
282
|
+
if (tsType.type === "TsTypeAnnotation") {
|
|
283
|
+
return getPropertyType(tsType.typeAnnotation);
|
|
284
|
+
}
|
|
285
|
+
switch (tsType.type) {
|
|
286
|
+
case "TsLiteralType":
|
|
287
|
+
result = tsType.literal.value;
|
|
288
|
+
break;
|
|
289
|
+
case "TsKeywordType":
|
|
290
|
+
result = tsType.kind;
|
|
291
|
+
break;
|
|
292
|
+
case "TsTypeReference":
|
|
293
|
+
result = tsType.typeName.value;
|
|
294
|
+
break;
|
|
295
|
+
case "TsFunctionType":
|
|
296
|
+
result = getPropertyFunctionTypeAsString(tsType);
|
|
297
|
+
break;
|
|
298
|
+
default:
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
return result;
|
|
302
|
+
}
|
|
303
|
+
function getNameProperty(ce, result) {
|
|
304
|
+
const identifier = ce.callee?.property?.value;
|
|
305
|
+
if (identifier) {
|
|
306
|
+
switch (identifier) {
|
|
307
|
+
case "name":
|
|
308
|
+
result.name = ce.arguments[0].expression.value;
|
|
309
|
+
getNameProperty(ce.callee.object, result);
|
|
310
|
+
break;
|
|
311
|
+
case "vModel":
|
|
312
|
+
result.type = DefineVueType.Model;
|
|
313
|
+
result.propertyTypeAsString = getPropertyType(ce.typeArguments.params[0]);
|
|
314
|
+
result.name = result.name ? `v-model:${result.name}` : result.name;
|
|
315
|
+
break;
|
|
316
|
+
case "slots":
|
|
317
|
+
result.type = DefineVueType.Slot;
|
|
318
|
+
result.propertyTypeAsObject = {};
|
|
319
|
+
ce.typeArguments.params[0].members
|
|
320
|
+
.forEach(m => {
|
|
321
|
+
result.propertyTypeAsObject[m.key.value] = getPropertyType(m.typeAnnotation);
|
|
322
|
+
});
|
|
323
|
+
break;
|
|
324
|
+
case "prop":
|
|
325
|
+
// console.log(
|
|
326
|
+
// ce.typeArguments.params[0],
|
|
327
|
+
// ce.typeArguments.params[0].typeAnnotation?.typeAnnotation,
|
|
328
|
+
// )
|
|
329
|
+
result.type = DefineVueType.Prop;
|
|
330
|
+
result.propertyTypeAsString = getPropertyType(ce.typeArguments.params[0]);
|
|
331
|
+
break;
|
|
332
|
+
case "emit":
|
|
333
|
+
result.type = DefineVueType.Emit;
|
|
334
|
+
result.propertyTypeAsString = getPropertyType(ce.typeArguments.params[0]);
|
|
335
|
+
break;
|
|
336
|
+
default:
|
|
337
|
+
getNameProperty(ce.callee.object, result);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
async function buildDoc(wc) {
|
|
342
|
+
try {
|
|
343
|
+
const wcPath = (0, shared_1.convertManifestPathToEntryPath)(wc.manifestPath, [wc.componentOptions.entryPoint])[0];
|
|
344
|
+
const wcParseResult = await (0, core_1.parseFile)(wcPath, {
|
|
345
|
+
syntax: 'typescript',
|
|
346
|
+
target: 'es2020',
|
|
347
|
+
tsx: true,
|
|
348
|
+
decorators: true,
|
|
349
|
+
dynamicImport: true
|
|
350
|
+
});
|
|
351
|
+
wcParseResult.body.forEach(b => {
|
|
352
|
+
if (b.type === 'ExportDefaultExpression'
|
|
353
|
+
&& b.expression.callee?.value === "defineVueWebComponent") {
|
|
354
|
+
b.expression.arguments[0].expression
|
|
355
|
+
.properties?.filter(p => p.key.value === "props"
|
|
356
|
+
|| p.key.value === "emits")
|
|
357
|
+
?.forEach(propsIdentifier => {
|
|
358
|
+
if (propsIdentifier) {
|
|
359
|
+
propsIdentifier.value
|
|
360
|
+
.properties?.forEach(p => {
|
|
361
|
+
const em = p.arguments;
|
|
362
|
+
if (em?.callee?.property?.value === "doc$") {
|
|
363
|
+
const PropertyResult = {
|
|
364
|
+
type: null,
|
|
365
|
+
propertyTypeAsString: "",
|
|
366
|
+
name: ""
|
|
367
|
+
};
|
|
368
|
+
getNameProperty(em, PropertyResult);
|
|
369
|
+
if (!docResult[wc.componentOptions.elementName]) {
|
|
370
|
+
docResult[wc.componentOptions.elementName] = {
|
|
371
|
+
emits: {},
|
|
372
|
+
models: {},
|
|
373
|
+
props: {},
|
|
374
|
+
slots: {}
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
switch (PropertyResult.type) {
|
|
378
|
+
case DefineVueType.Prop:
|
|
379
|
+
docResult[wc.componentOptions.elementName].props[PropertyResult.name] = {
|
|
380
|
+
type: PropertyResult.propertyTypeAsString,
|
|
381
|
+
description: em.arguments[0].expression.value
|
|
382
|
+
};
|
|
383
|
+
break;
|
|
384
|
+
case DefineVueType.Model:
|
|
385
|
+
docResult[wc.componentOptions.elementName].models[PropertyResult.name] = {
|
|
386
|
+
type: PropertyResult.propertyTypeAsString,
|
|
387
|
+
description: em.arguments[0].expression.value
|
|
388
|
+
};
|
|
389
|
+
break;
|
|
390
|
+
case DefineVueType.Emit:
|
|
391
|
+
docResult[wc.componentOptions.elementName].emits[PropertyResult.name] = {
|
|
392
|
+
type: PropertyResult.propertyTypeAsString,
|
|
393
|
+
description: em.arguments[0].expression.value
|
|
394
|
+
};
|
|
395
|
+
break;
|
|
396
|
+
case DefineVueType.Slot:
|
|
397
|
+
em.arguments[0].expression
|
|
398
|
+
.properties
|
|
399
|
+
.forEach(p => {
|
|
400
|
+
const slotName = p.key.value;
|
|
401
|
+
docResult[wc.componentOptions.elementName].slots[slotName] = {
|
|
402
|
+
type: PropertyResult.propertyTypeAsObject[slotName],
|
|
403
|
+
description: p.value.value
|
|
404
|
+
};
|
|
405
|
+
});
|
|
406
|
+
break;
|
|
407
|
+
default:
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
catch (ex) {
|
|
418
|
+
tooling_1.utils.log(`Have a exception when extract doc$ for web component manifest -> ${wc.manifestPath}`, tooling_1.utils.LogTypes.Error);
|
|
419
|
+
console.error(ex);
|
|
420
|
+
throw new Error("Exit, have an exception.");
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
let wcTypingsPath = "", docPath = $.path.resolve(__dirname, "ComponentDocRegistrations.ts");
|
|
424
|
+
;
|
|
425
|
+
if ($.isExtensionEnv) {
|
|
426
|
+
wcTypingsPath = $.path.resolve(__dirname, "../wctypings.ts");
|
|
427
|
+
}
|
|
428
|
+
else {
|
|
429
|
+
wcTypingsPath = $.path.resolve(__dirname, `../${getServiceId().toLowerCase()}.wctypings.ts`);
|
|
430
|
+
}
|
|
431
|
+
let wcTypings = `
|
|
432
|
+
//{{importWC}}
|
|
433
|
+
declare global {
|
|
434
|
+
namespace JSX {
|
|
435
|
+
interface Element { }
|
|
436
|
+
interface ElementClass { }
|
|
437
|
+
|
|
438
|
+
interface IntrinsicElements {
|
|
439
|
+
//{{elementName}}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
`;
|
|
444
|
+
if ($.isExtensionEnv) {
|
|
445
|
+
wcTypings = `import { VueComponentBaseProps } from "@omnia/fx/ux";
|
|
446
|
+
${wcTypings}`;
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
wcTypings = `import { VueComponentBaseProps } from "../../../client/fx/ux/index";
|
|
450
|
+
${wcTypings}`;
|
|
451
|
+
}
|
|
452
|
+
await tooling_1.utils.asyncForEach(componentRegistrations, async (wc) => {
|
|
453
|
+
wcTypings = generateWebComponentTypings(wc, wcTypings);
|
|
454
|
+
await buildDoc(wc);
|
|
455
|
+
});
|
|
456
|
+
if (Object.keys(docResult).length > 0) {
|
|
457
|
+
fsExtra.outputFileSync(docPath, `
|
|
458
|
+
import { extendApi } from "@omnia/fx";
|
|
459
|
+
import { ComponentDoc } from "@omnia/fx-models";
|
|
460
|
+
|
|
461
|
+
extendApi(api => api.fx.docs.registrations, api => {
|
|
462
|
+
|
|
463
|
+
const registrations: { [elementName: string]: ComponentDoc } = ${JSON.stringify(docResult)}
|
|
464
|
+
|
|
465
|
+
Object.keys(registrations).forEach(elementName => {
|
|
466
|
+
api.register(elementName, registrations[elementName]);
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
`);
|
|
470
|
+
// create dynamic doc manifest
|
|
471
|
+
$.composers.ManifestRegistry.setCurrentManifestPath(`${path_1.default.relative(tooling_1.utils.root(""), path_1.default.resolve(__dirname))}/`);
|
|
472
|
+
$.composers
|
|
473
|
+
.Composer
|
|
474
|
+
.registerManifest(getBuildOption().dynamicDocManifestId || new fx_models_1.Guid(`${tooling_1.utils.generateGuid()}`), "omnia.fx.docs.components.registraions")
|
|
475
|
+
.registerResources({
|
|
476
|
+
resourcePaths: ["./ComponentDocRegistrations.ts"]
|
|
477
|
+
})
|
|
478
|
+
.extendApi(api => api.fx.docs.registrations);
|
|
479
|
+
$.composers.ManifestRegistry.setCurrentManifestPath();
|
|
480
|
+
}
|
|
481
|
+
fsExtra.outputFileSync(wcTypingsPath, wcTypings);
|
|
482
|
+
tooling_1.utils.logTime('Done - Generate components typings and documentation', startTime);
|
|
483
|
+
}
|
|
295
484
|
function buildManifestMetadatas(entries) {
|
|
296
485
|
return new Promise(function (resolve, reject) {
|
|
297
486
|
try {
|
|
@@ -559,23 +748,31 @@ function minifyBundles() {
|
|
|
559
748
|
let promises = [];
|
|
560
749
|
jsPaths.forEach(filePath => {
|
|
561
750
|
promises.push(new Promise(async (resolve, reject) => {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
751
|
+
try {
|
|
752
|
+
$.tooling.log(`Minify Js -> ${filePath}`);
|
|
753
|
+
// only minify for omnia.vendor.prod
|
|
754
|
+
if (filePath.indexOf(fx_models_1.OmniaResourceManifests.Vendor.toString()) === -1) {
|
|
755
|
+
let content = await fsExtra.readFile(filePath, 'utf8');
|
|
756
|
+
let outFileName = `${filePath.substring(0, filePath.length - 3)}.min.js`;
|
|
757
|
+
if (filePath.indexOf(vendorProdId) > -1) {
|
|
758
|
+
content = content.replace(new RegExp(vendorProdId, "g"), fx_models_1.OmniaResourceManifests.Vendor.toString());
|
|
759
|
+
outFileName = `${$.tooling.utils.root($.tooling.composer.OmniaOutput.OutputBundlePath)}/omnia.vendor_6270b632-1f44-4146-bace-137131c0471b.min.js`;
|
|
760
|
+
}
|
|
761
|
+
let minified = await (0, terser_1.minify)(content, {
|
|
762
|
+
sourceMap: false,
|
|
763
|
+
ecma: 2020 // will remove es5 when not support IE 11
|
|
764
|
+
});
|
|
765
|
+
await fsExtra.writeFile(outFileName, minified.code, 'utf8');
|
|
766
|
+
$.tooling.log(`Minify Js Done -> ${filePath}`);
|
|
570
767
|
}
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
});
|
|
575
|
-
|
|
576
|
-
|
|
768
|
+
resolve();
|
|
769
|
+
}
|
|
770
|
+
catch (ex) {
|
|
771
|
+
tooling_1.utils.log(`Have a exception when minify the file -> ${filePath}`, tooling_1.utils.LogTypes.Error);
|
|
772
|
+
console.error(ex);
|
|
773
|
+
resolve();
|
|
774
|
+
throw new Error("Exit, have an exception.");
|
|
577
775
|
}
|
|
578
|
-
resolve();
|
|
579
776
|
}));
|
|
580
777
|
});
|
|
581
778
|
Promise.all(promises).then(() => {
|
|
@@ -629,7 +826,12 @@ function createVueWebpackConfig(currentEntry, entries, bundleOutputDir, hotModul
|
|
|
629
826
|
}
|
|
630
827
|
}));
|
|
631
828
|
}
|
|
632
|
-
let modifyContent = [
|
|
829
|
+
let modifyContent = [
|
|
830
|
+
{
|
|
831
|
+
pattern: /\.doc\$(.*\))/g,
|
|
832
|
+
replacement: ''
|
|
833
|
+
}
|
|
834
|
+
];
|
|
633
835
|
if (buildOption.bundleOptions && buildOption.bundleOptions.removeSourceMap) {
|
|
634
836
|
modifyContent.push({
|
|
635
837
|
pattern: /# sourceMappingURL=(.*\.map)/g,
|
|
@@ -722,9 +924,8 @@ function createVueWebpackConfig(currentEntry, entries, bundleOutputDir, hotModul
|
|
|
722
924
|
fullySpecified: false, // disable the behaviour
|
|
723
925
|
},
|
|
724
926
|
},
|
|
725
|
-
...(0, ts_loader_1.default)(
|
|
726
|
-
...(0, tsx_loader_1.default)(
|
|
727
|
-
// ...jsxLoader(getBuildOption().enableTreeShaking, wcDomProps, hotModuleReload),
|
|
927
|
+
...(0, ts_loader_1.default)(),
|
|
928
|
+
...(0, tsx_loader_1.default)(),
|
|
728
929
|
{
|
|
729
930
|
// remove vuetify locale
|
|
730
931
|
test: (path) => {
|
|
@@ -851,7 +1052,7 @@ function createVueWebpackConfig(currentEntry, entries, bundleOutputDir, hotModul
|
|
|
851
1052
|
exports.createVueWebpackConfig = createVueWebpackConfig;
|
|
852
1053
|
function createWebpackConfigForManifestMetadata(entry, metadataOutputDir) {
|
|
853
1054
|
var entensionId = getServiceId();
|
|
854
|
-
return Object.assign({}, (0, shared_1.getBaseWebpackConfigForManifestMetadata)(entry, metadataOutputDir
|
|
1055
|
+
return Object.assign({}, (0, shared_1.getBaseWebpackConfigForManifestMetadata)(entry, metadataOutputDir), {
|
|
855
1056
|
plugins: [
|
|
856
1057
|
...buildReferenceManifestFromConfig(),
|
|
857
1058
|
new $.omniaWebpackPlugins.NamedModulesPlugin(buildModuleName()),
|
|
@@ -1169,7 +1370,8 @@ function buildModuleName() {
|
|
|
1169
1370
|
replace: function (modulePath) {
|
|
1170
1371
|
var buildOptions = getBuildOption();
|
|
1171
1372
|
if (buildOptions && buildOptions.moduleOptions && buildOptions.moduleOptions.enableTransformResourcePath) {
|
|
1172
|
-
if (modulePath.indexOf('./node_modules/') === -1 // ignore from npm package
|
|
1373
|
+
if (modulePath.indexOf('./node_modules/') === -1 // ignore from npm package and in wwwwroot .js file
|
|
1374
|
+
&& (modulePath.indexOf('./wwwroot/') === -1 || path_1.default.extname(modulePath) === ".js")
|
|
1173
1375
|
&& modulePath.indexOf('./omnia/fx/models/ConfigurationComposers') === -1 // ignore comment interface for special case here
|
|
1174
1376
|
&& $.fs.existsSync(modulePath)) {
|
|
1175
1377
|
let stream = $.fs.readFileSync(modulePath, 'utf8');
|
|
@@ -1576,13 +1778,6 @@ function checkDuplicateWebpackEntryPoints(entries) {
|
|
|
1576
1778
|
});
|
|
1577
1779
|
return foundDuplicated;
|
|
1578
1780
|
}
|
|
1579
|
-
function isEnableMeasureBuild() {
|
|
1580
|
-
let enableMeasure = $.composers.DevelopmentBuildConfiguration.isEnableMeasureBuild;
|
|
1581
|
-
if (enableMeasure !== true && process.argv.length > 0) {
|
|
1582
|
-
enableMeasure = process.argv.find(argv => argv === "--measure") !== undefined;
|
|
1583
|
-
}
|
|
1584
|
-
return enableMeasure;
|
|
1585
|
-
}
|
|
1586
1781
|
function prefixCssSelector() {
|
|
1587
1782
|
//var applyToSelectors = ['input', '::before', '::after'];
|
|
1588
1783
|
//var applyToSelectors = ['select', 'textarea', 'button', 'input', '.btn', '.content', '.input-group', '.title', '.icon', '*'];
|
|
@@ -1645,9 +1840,6 @@ function registerWebComponentDefinitions(definitions) {
|
|
|
1645
1840
|
}
|
|
1646
1841
|
}
|
|
1647
1842
|
exports.registerWebComponentDefinitions = registerWebComponentDefinitions;
|
|
1648
|
-
function getRegisteredWebComponentDefinitions() {
|
|
1649
|
-
return _wcDefinitions;
|
|
1650
|
-
}
|
|
1651
1843
|
function sortString(a, b) {
|
|
1652
1844
|
if (a >= b) {
|
|
1653
1845
|
return 1;
|
|
@@ -146,7 +146,7 @@ $.webpack({
|
|
|
146
146
|
},
|
|
147
147
|
module: {
|
|
148
148
|
rules: [
|
|
149
|
-
...(0, ts_loader_1.default)(
|
|
149
|
+
...(0, ts_loader_1.default)(),
|
|
150
150
|
{
|
|
151
151
|
test: /\.css(\?|$)/,
|
|
152
152
|
use: [
|
|
@@ -296,7 +296,7 @@ $.webpack({
|
|
|
296
296
|
},
|
|
297
297
|
module: {
|
|
298
298
|
rules: [
|
|
299
|
-
...(0, ts_loader_1.default)(
|
|
299
|
+
...(0, ts_loader_1.default)(),
|
|
300
300
|
{
|
|
301
301
|
test: /\.css(\?|$)/,
|
|
302
302
|
use: [
|
|
@@ -10,6 +10,7 @@ const del_1 = tslib_1.__importDefault(require("del"));
|
|
|
10
10
|
const tooling_composers_1 = require("@omnia/tooling-composers");
|
|
11
11
|
const tooling_1 = require("@omnia/tooling");
|
|
12
12
|
const plugins_1 = require("./plugins");
|
|
13
|
+
const vite_plugin_inspect_1 = tslib_1.__importDefault(require("vite-plugin-inspect"));
|
|
13
14
|
async function createViteServer() {
|
|
14
15
|
const hosting = (0, tooling_composers_1.getHosting)();
|
|
15
16
|
let plugins = [
|
|
@@ -17,6 +18,9 @@ async function createViteServer() {
|
|
|
17
18
|
hosting: hosting
|
|
18
19
|
})
|
|
19
20
|
];
|
|
21
|
+
if (hosting.enableProfiling) {
|
|
22
|
+
plugins.push((0, vite_plugin_inspect_1.default)());
|
|
23
|
+
}
|
|
20
24
|
let https = hosting.https || await getCert();
|
|
21
25
|
let serverConfig = {
|
|
22
26
|
configFile: false,
|
|
@@ -119,7 +119,9 @@ function registerHmrMiddleware(server) {
|
|
|
119
119
|
//res.end(content);
|
|
120
120
|
}
|
|
121
121
|
else if (ext === "css") {
|
|
122
|
-
content = `import { updateStyle as __vite__updateStyle} from "/@vite/client";
|
|
122
|
+
content = `import { updateStyle as __vite__updateStyle} from "/@vite/client";
|
|
123
|
+
const __vite__css = ${JSON.stringify(content)}
|
|
124
|
+
__vite__updateStyle("${bundleFileName}", __vite__css)`;
|
|
123
125
|
// req.url = `/omnia/dist/hmr/bundles/${bundleFileName}`;
|
|
124
126
|
// console.log("Hmr middleware", req.url)
|
|
125
127
|
// next();
|
|
@@ -6,9 +6,29 @@ const tooling_1 = require("@omnia/tooling");
|
|
|
6
6
|
const $ = tslib_1.__importStar(require("../../variables"));
|
|
7
7
|
const fx_models_1 = require("@omnia/fx-models");
|
|
8
8
|
const shared_1 = require("./shared");
|
|
9
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
9
10
|
function registerStaticFileMiddleware(server) {
|
|
10
|
-
server.middlewares.use(function (req, res, next) {
|
|
11
|
-
if (req.url.indexOf('/
|
|
11
|
+
server.middlewares.use(async function (req, res, next) {
|
|
12
|
+
if (req.url.indexOf('/api/uxdocs') === 0) {
|
|
13
|
+
if (req.method === "OPTIONS") {
|
|
14
|
+
res.end("OK");
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const rawReqToString = async (req) => {
|
|
18
|
+
const buffers = [];
|
|
19
|
+
for await (const chunk of req) {
|
|
20
|
+
buffers.push(chunk);
|
|
21
|
+
}
|
|
22
|
+
return Buffer.concat(buffers).toString();
|
|
23
|
+
};
|
|
24
|
+
const jsonString = await rawReqToString(req);
|
|
25
|
+
const jsonObject = JSON.parse(jsonString);
|
|
26
|
+
const fileUrl = `wwwroot/docs/${jsonObject.relativePath}`;
|
|
27
|
+
console.log(fileUrl);
|
|
28
|
+
const content = fs_1.default.readFileSync(fileUrl, 'utf8');
|
|
29
|
+
res.end(content);
|
|
30
|
+
}
|
|
31
|
+
else if (req.url.indexOf('/omnia/fonts/') === 0 || req.url.indexOf('/omnia/images/') === 0) {
|
|
12
32
|
res.setHeader('Cache-Control', 'public, max-age=31536000');
|
|
13
33
|
req.url = req.url.replace("/omnia/", "/omnia/dist/");
|
|
14
34
|
next();
|
|
@@ -3,14 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const $ = tslib_1.__importStar(require("../variables"));
|
|
5
5
|
var path = require('path');
|
|
6
|
-
function default_1(
|
|
7
|
-
var tsLoaderOptions = {
|
|
8
|
-
happyPackMode: true,
|
|
9
|
-
transpileOnly: true
|
|
10
|
-
};
|
|
11
|
-
if (treeshaking) {
|
|
12
|
-
tsLoaderOptions.configFile = path.resolve(__dirname, "../config/tsconfig.es2015.json");
|
|
13
|
-
}
|
|
6
|
+
function default_1() {
|
|
14
7
|
return [{
|
|
15
8
|
test: /\.ts$/,
|
|
16
9
|
use: [
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
var path = require('path');
|
|
5
5
|
const $ = tslib_1.__importStar(require("../variables"));
|
|
6
|
-
function default_1(
|
|
6
|
+
function default_1() {
|
|
7
7
|
const babelLoaderOptions = {
|
|
8
8
|
cacheDirectory: true,
|
|
9
9
|
plugins: [
|
|
@@ -21,28 +21,32 @@ function default_1(treeshaking, wcDomProps, hotModuleReload) {
|
|
|
21
21
|
],
|
|
22
22
|
]
|
|
23
23
|
};
|
|
24
|
-
var tsLoaderOptions = {
|
|
25
|
-
happyPackMode: true,
|
|
26
|
-
transpileOnly: true
|
|
27
|
-
};
|
|
28
|
-
if (treeshaking) {
|
|
29
|
-
tsLoaderOptions.configFile = path.resolve(__dirname, "../config/tsconfig.es2015.json");
|
|
30
|
-
}
|
|
31
24
|
let loaders = [
|
|
32
|
-
//{
|
|
33
|
-
// loader: 'thread-loader',
|
|
34
|
-
// options: {
|
|
35
|
-
// workers: require('os').cpus().length,
|
|
36
|
-
// },
|
|
37
|
-
//},
|
|
38
25
|
{
|
|
39
26
|
loader: 'babel-loader',
|
|
40
27
|
options: babelLoaderOptions
|
|
41
28
|
},
|
|
42
|
-
//{
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
//
|
|
29
|
+
// {
|
|
30
|
+
// loader: "swc-loader",
|
|
31
|
+
// options: {
|
|
32
|
+
// jsc: {
|
|
33
|
+
// // parser: {
|
|
34
|
+
// // syntax: "typescript"
|
|
35
|
+
// // }
|
|
36
|
+
// // This makes swc-loader invoke swc synchronously.
|
|
37
|
+
// //sync: true,
|
|
38
|
+
// parser: {
|
|
39
|
+
// // "syntax": "ecmascript",
|
|
40
|
+
// // "jsx": true
|
|
41
|
+
// "syntax": "typescript",
|
|
42
|
+
// "tsx": true,
|
|
43
|
+
// },
|
|
44
|
+
// experimental: {
|
|
45
|
+
// plugins: [["swc-plugin-vue-jsx", {}]]
|
|
46
|
+
// }
|
|
47
|
+
// }
|
|
48
|
+
// }
|
|
49
|
+
// },
|
|
46
50
|
{
|
|
47
51
|
loader: 'esbuild-loader',
|
|
48
52
|
options: {
|
|
@@ -50,17 +54,8 @@ function default_1(treeshaking, wcDomProps, hotModuleReload) {
|
|
|
50
54
|
target: 'es2022',
|
|
51
55
|
jsx: 'preserve'
|
|
52
56
|
},
|
|
53
|
-
}
|
|
54
|
-
// {
|
|
55
|
-
// loader: path.resolve(__dirname, $.isExtensionEnv ? './vue-domprops-loader.js' : './vue-domprops-loader.ts'),
|
|
56
|
-
// options: wcDomProps
|
|
57
|
-
// }
|
|
57
|
+
}
|
|
58
58
|
];
|
|
59
|
-
if (hotModuleReload) {
|
|
60
|
-
loaders.push({
|
|
61
|
-
loader: path.resolve(__dirname, __dirname, $.isExtensionEnv ? './vue-tsx-hot-loader.js' : './vue-tsx-hot-loader.ts'),
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
59
|
return [
|
|
65
60
|
{
|
|
66
61
|
test: /\.tsx$/,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/tooling-vue",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.23-vnext",
|
|
5
5
|
"description": "Used to bundle and serve manifests web component that build on Vue framework.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"author": "Precio Fishbone",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@omnia/fx-models": "8.0.
|
|
23
|
-
"@omnia/tooling-composers": "8.0.
|
|
22
|
+
"@omnia/fx-models": "8.0.23-vnext",
|
|
23
|
+
"@omnia/tooling-composers": "8.0.23-vnext",
|
|
24
24
|
"@types/mousetrap": "1.5.34",
|
|
25
25
|
"@types/quill": "1.3.6",
|
|
26
26
|
"@types/zepto": "1.0.29",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"css-loader": "5.0.1",
|
|
34
34
|
"file-loader": "6.2.0",
|
|
35
35
|
"null-loader": "4.0.1",
|
|
36
|
-
"terser": "5.
|
|
36
|
+
"terser": "5.17.1",
|
|
37
37
|
"less-loader": "10.2.0",
|
|
38
38
|
"mini-css-extract-plugin": "1.3.3",
|
|
39
|
-
"postcss-loader": "
|
|
39
|
+
"postcss-loader": "7.2.4",
|
|
40
40
|
"postcss-prefix-selector": "1.14.0",
|
|
41
41
|
"sass": "1.43.4",
|
|
42
42
|
"sass-loader": "12.3.0",
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"es6-promise": "4.2.4",
|
|
56
56
|
"hash-sum": "1.0.2",
|
|
57
57
|
"lodash": "4.17.21",
|
|
58
|
-
"vite": "4.
|
|
58
|
+
"vite": "4.3.1",
|
|
59
|
+
"vite-plugin-inspect": "0.7.23",
|
|
59
60
|
"appdata-path": "1.0.0",
|
|
60
61
|
"json-parse-better-errors": "1.0.2"
|
|
61
62
|
},
|
package/internal-do-not-import-from-here/1cacb55c-202b-4cd7-819d-11bad92fa9cb.wcdefinitions.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
package/internal-do-not-import-from-here/bb000000-0000-bbbb-0000-0000000000bb.wcdefinitions.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"omfx-enterpriseproperties-taxonomyfield-value-definition":["availableParents"],"omfx-sp-language-picker":["valueBind","onValueChanged","scopedSlots","styles"],"omfx-targeting-filter":["filter","onFilterChanged","fullWidth"],"omfx-term-picker":["startWithIds","termSetId","preSelectedTermIds","lcid","onTermsSelected","filterOptions","validator","description"],"omfx-termset-picker":["termSetId","onChanged"],"omnia-fx-spfx-wp-settings":["onClosed","onChange"],"omfx-queryable-enterpriseproperties":["serviceId","additionalBuiltInProperties"],"omfx-app-instance-delete-blade":["appInstance","handleClose","handleDeleteCompleted"],"omfx-appinstance-editing-journey":["appInstance","content","onCanceled","onSave","onCompleted"],"omfx-app-instance-permission-blade":["appInstance","handleClose","onAppPermissionsUpdated"],"omfx-app-instance-information-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-instance-users-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-instance-enterprise-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-provisioning-wizard":["initialAppTemplate","initialAppDefinition","initialAppInstance","onInstancePropertiesChanged","onProvisioningStarted","onProvisioningCompleted","styles","templatesToShow"],"omfx-button":["preset","icon","tooltip","size","mode","styles","onClick"],"omfx-color-picker":["display","valueBind","onValueChanged","errorMessages","validator","attachedToParent"],"omfx-confirm-dialog":["dialogOptions","onClose","styles","icon"],"omfx-connected-tenant":["onValueChanged","scopedSlots"],"omfx-context-language-picker":["onValueChanged","scopedSlots"],"omfx-datatable":["items","header","onSort","renderItem","onPaging","scrollElementSelector"],"omfx-date-time-picker":["valueBind","onValueChanged","formatter","description"],"omfx-enterpriseproperties-datetimefield-display":["settings"],"omfx-enterpriseproperty-picker":["preSelectedPropertyInternalName","propertyItems","externalPropertyItems","onChange","requiredWithValidator"],"omfx-enterprisepropertyset-picker":["preSelectedPropertySetId","propertySetItems","onChange","requiredWithValidator"],"omfx-features-journey":["onInstanceClosed"],"omfx-file-uploader":["onFileChanged","limitedFileTypes"],"omfx-numeric-indicator":["clickCallback","valueBind","label","style"],"omfx-barchart-indicator":["clickCallback","loadData","hasData","chartValues"],"omfx-heading":["styles","onChange"],"omfx-icon":["valueBind","styles","iconAttrs"],"omfx-icon-picker":["valueBind","onValueChanged","errorMessages","validator"],"omfx-iframe":["js","html","css","iframeHeight","iframeCustomStyle"],"omfx-media-imagegrid":["images","onImageSelected"],"omfx-input-language-picker":["multilingualContext"],"omfx-journey":["onInstanceCreated","onInstanceClosed","blades"],"omfx-language-picker":["valueBind","onValueChanged","scopedSlots","styles","loadLanguage"],"omfx-media-picker-image":["image","imageStyle"],"omfx-media-picker-video":["video"],"omfx-multilingual-input":["valueBind","richTextSettings","requiredWithValidator","onValueChanged"],"omfx-organizationtree":["valueBind","onNewUserSelected"],"omfx-reportees":["users","manager","onUserClick"],"omfx-permission-input":["settings","contextParams"],"omfx-persona":["largeImage","linkToProfilecard","highlight","user","onUserClick"],"omfx-post-component":["richTextSettings","cardStyle","showMoreSize","styles","allowLikes","enableMention","customSlots"],"omfx-aboutuser":["user"],"omfx-profilecard":["user","scopedSlots","appendToBody"],"omfx-profilecard-dialog":["user"],"omfx-rich-text-editor":["onContentChange","onContentDataChange","onInstanceCreated"],"omfx-rich-text-editor-renderer":["editorContent"],"omfx-rollup-empty":["text","renderingMode"],"omfx-rollup-filter":["valueBind","onFilterChange","useRollupFilterRouter"],"omfx-security-trimer":["content","alternativeContent","roles"],"omfx-settings-pane":["valueBind","onCancel","onSave"],"omfx-comment-component":["topicId","comments","template","dynamicInput","richTextSettings","enableBestReply","canMarkBestReply","sortOrder","allowLikes","cardStyle","showMoreSize","additionalRoles"],"omfx-people-tagging-component":["content","disabled","richTextSettings","enableMention","contentChanged","mentionChanged","resetContetnRte"],"omfx-like-component":["topicId","commendId","commentLikeService","likes","likeListingTemplate","extendComponents"],"omfx-like-listing-template":["likes","socialReactionStylings","currentSocialReaction","close"],"omfx-template-picker":["valueBind","templates","onValueChanged"],"omfx-text-translator":["onTranslateCompleted"],"omfx-themedefinition-editor":["hideBodySettings","hideChromeSettings","hideBorderSettings","valueBind","onValueChanged","attachedToParent"],"omfx-timezone-picker":["valueBind","onValueChanged","scopedSlots","styles"],"omfx-url-input":["valueBind","requiredWithValidator","onValueChanged","onBlur"],"omfx-field-validation":["useValidator","checkValue","rules","getCheckValue"],"omfx-wizard":["styles","onInstanceCreated","steps"]}
|
package/internal-do-not-import-from-here/cc000000-0000-cccc-0000-0000000000cc.wcdefinitions.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
var path = require('path');
|
|
5
|
-
const $ = tslib_1.__importStar(require("../variables"));
|
|
6
|
-
function default_1(treeshaking, wcDomProps, hotModuleReload) {
|
|
7
|
-
const babelLoaderOptions = {
|
|
8
|
-
cacheDirectory: true,
|
|
9
|
-
plugins: [
|
|
10
|
-
// "@babel/plugin-transform-modules-commonjs",
|
|
11
|
-
// "syntax-jsx",
|
|
12
|
-
// "jsx-v-model",
|
|
13
|
-
// "transform-vue-jsx"
|
|
14
|
-
],
|
|
15
|
-
presets: [
|
|
16
|
-
[
|
|
17
|
-
'@vue/babel-preset-jsx',
|
|
18
|
-
{
|
|
19
|
-
vModel: true,
|
|
20
|
-
compositionAPI: true,
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
]
|
|
24
|
-
};
|
|
25
|
-
var tsLoaderOptions = {
|
|
26
|
-
happyPackMode: true,
|
|
27
|
-
transpileOnly: true
|
|
28
|
-
};
|
|
29
|
-
if (treeshaking) {
|
|
30
|
-
tsLoaderOptions.configFile = path.resolve(__dirname, "../config/tsconfig.es2015.json");
|
|
31
|
-
}
|
|
32
|
-
let loaders = [
|
|
33
|
-
//{
|
|
34
|
-
// loader: 'cache-loader'
|
|
35
|
-
//},
|
|
36
|
-
{
|
|
37
|
-
loader: 'babel-loader',
|
|
38
|
-
options: babelLoaderOptions
|
|
39
|
-
},
|
|
40
|
-
//{
|
|
41
|
-
// loader: path.resolve(__dirname, './wcmanifest-loader.js')
|
|
42
|
-
//},
|
|
43
|
-
{
|
|
44
|
-
loader: path.resolve(__dirname, $.isExtensionEnv ? './vue-domprops-loader.js' : './vue-domprops-loader.ts'),
|
|
45
|
-
options: wcDomProps
|
|
46
|
-
}
|
|
47
|
-
];
|
|
48
|
-
if (hotModuleReload) {
|
|
49
|
-
loaders.push({
|
|
50
|
-
loader: path.resolve(__dirname, $.isExtensionEnv ? './vue-tsx-hot-loader.js' : './vue-tsx-hot-loader.ts')
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
return [
|
|
54
|
-
{
|
|
55
|
-
test: /\.jsx$/,
|
|
56
|
-
exclude: /(node_modules|bower_components)/,
|
|
57
|
-
use: loaders
|
|
58
|
-
}
|
|
59
|
-
];
|
|
60
|
-
}
|
|
61
|
-
exports.default = default_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (contents: any): string;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// borrowed from vue-loader
|
|
4
|
-
var path = require('path');
|
|
5
|
-
var hash = require('hash-sum');
|
|
6
|
-
var cache = Object.create(null);
|
|
7
|
-
var sepRE = new RegExp(path.sep.replace('\\', '\\\\'), 'g');
|
|
8
|
-
function genId(file, context) {
|
|
9
|
-
const contextPath = context.split(path.sep);
|
|
10
|
-
const rootId = contextPath[contextPath.length - 1];
|
|
11
|
-
file = rootId + '/' + path.relative(context, file).replace(sepRE, '/');
|
|
12
|
-
return cache[file] || (cache[file] = hash(file));
|
|
13
|
-
}
|
|
14
|
-
function default_1(contents) {
|
|
15
|
-
const id = genId(this.resourcePath, process.cwd());
|
|
16
|
-
return contents + ";\n" +
|
|
17
|
-
`if (module.hot) {
|
|
18
|
-
const api = require('vue-hot-reload-api')
|
|
19
|
-
const Vue = require('vue')
|
|
20
|
-
|
|
21
|
-
api.install(Vue)
|
|
22
|
-
|
|
23
|
-
if (!api.compatible) {
|
|
24
|
-
throw new Error('vue-hot-reload-api is not compatible with the version of Vue you are using.')
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
module.hot.accept();
|
|
28
|
-
|
|
29
|
-
let componentOptionsKey = Object.keys(exports).filter(key => exports[key].prototype &&
|
|
30
|
-
exports[key].prototype instanceof Vue.default)[0];
|
|
31
|
-
let componentOptions = exports.default || exports[componentOptionsKey];
|
|
32
|
-
|
|
33
|
-
if (!componentOptions) {
|
|
34
|
-
throw new Error('Cannot find Vue component')
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if (!module.hot.data) {
|
|
38
|
-
api.createRecord('${id}', componentOptions);
|
|
39
|
-
} else {
|
|
40
|
-
api.rerender('${id}', componentOptions);
|
|
41
|
-
}
|
|
42
|
-
}`;
|
|
43
|
-
}
|
|
44
|
-
exports.default = default_1;
|