@nokecy/qc-ui 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/dist/cjs/ag-grid-plus/_utils/boolSelect.d.ts +0 -4
- package/dist/cjs/ag-grid-plus/_utils/boolSelect.js +0 -44
- package/dist/cjs/ag-grid-plus/ag-grid-theme-builder.css +0 -350
- package/dist/cjs/ag-grid-plus/ag-gridPlus.d.ts +0 -6
- package/dist/cjs/ag-grid-plus/ag-gridPlus.js +0 -472
- package/dist/cjs/ag-grid-plus/context/gridContext.d.ts +0 -12
- package/dist/cjs/ag-grid-plus/context/gridContext.js +0 -13
- package/dist/cjs/ag-grid-plus/gridManager/index.d.ts +0 -7
- package/dist/cjs/ag-grid-plus/gridManager/index.js +0 -40
- package/dist/cjs/ag-grid-plus/index.d.ts +0 -11
- package/dist/cjs/ag-grid-plus/index.js +0 -76
- package/dist/cjs/ag-grid-plus/index.less +0 -7
- package/dist/cjs/ag-grid-plus/interface.d.ts +0 -39
- package/dist/cjs/ag-grid-plus/interface.js +0 -14
- package/dist/cjs/ag-grid-plus/queryForm/index.d.ts +0 -11
- package/dist/cjs/ag-grid-plus/queryForm/index.js +0 -183
- package/dist/cjs/ag-grid-plus/queryForm/index.less +0 -48
- package/dist/cjs/ag-grid-plus/queryForm/queryForm.d.ts +0 -3
- package/dist/cjs/ag-grid-plus/queryForm/queryForm.js +0 -94
- package/dist/cjs/ag-grid-plus/setting/index.d.ts +0 -8
- package/dist/cjs/ag-grid-plus/setting/index.js +0 -190
- package/dist/cjs/ag-grid-plus/settingItem/index.d.ts +0 -3
- package/dist/cjs/ag-grid-plus/settingItem/index.js +0 -22
- package/dist/cjs/ag-grid-plus/toolBar/index.d.ts +0 -20
- package/dist/cjs/ag-grid-plus/toolBar/index.js +0 -174
- package/dist/cjs/ag-grid-plus/toolBar/style.d.ts +0 -9
- package/dist/cjs/ag-grid-plus/toolBar/style.js +0 -140
- package/dist/cjs/ag-grid-plus/utils.d.ts +0 -9
- package/dist/cjs/ag-grid-plus/utils.js +0 -143
- package/dist/cjs/array-table/arrayAddBtn.d.ts +0 -3
- package/dist/cjs/array-table/arrayAddBtn.js +0 -63
- package/dist/cjs/array-table/arrayBase.d.ts +0 -62
- package/dist/cjs/array-table/arrayBase.js +0 -226
- package/dist/cjs/array-table/index.d.ts +0 -6
- package/dist/cjs/array-table/index.js +0 -151
- package/dist/cjs/array-table/interface.d.ts +0 -16
- package/dist/cjs/array-table/interface.js +0 -5
- package/dist/cjs/array-table/preview.d.ts +0 -3
- package/dist/cjs/array-table/preview.js +0 -57
- package/dist/cjs/array-table/utils.d.ts +0 -10
- package/dist/cjs/array-table/utils.js +0 -132
- package/dist/cjs/array-table-index/index.d.ts +0 -3
- package/dist/cjs/array-table-index/index.js +0 -19
- package/dist/cjs/dashboard/dashboard/components/index.d.ts +0 -2
- package/dist/cjs/dashboard/dashboard/components/index.js +0 -13
- package/dist/cjs/dashboard/dashboard/components/modal/index.d.ts +0 -3
- package/dist/cjs/dashboard/dashboard/components/modal/index.js +0 -21
- package/dist/cjs/dashboard/dashboard/components/toolbar/index.d.ts +0 -11
- package/dist/cjs/dashboard/dashboard/components/toolbar/index.js +0 -29
- package/dist/cjs/dashboard/dashboard/components/toolbar/style/index.d.ts +0 -1
- package/dist/cjs/dashboard/dashboard/components/toolbar/style/index.js +0 -3
- package/dist/cjs/dashboard/dashboard/components/toolbar/style/index.less +0 -49
- package/dist/cjs/dashboard/dashboard/index.d.ts +0 -62
- package/dist/cjs/dashboard/dashboard/index.js +0 -534
- package/dist/cjs/dashboard/dashboard/index.less +0 -173
- package/dist/cjs/dashboard/dashboard/service.d.ts +0 -8
- package/dist/cjs/dashboard/dashboard/service.js +0 -90
- package/dist/cjs/dashboard/dashboard/utils.d.ts +0 -9
- package/dist/cjs/dashboard/dashboard/utils.js +0 -98
- package/dist/cjs/dashboard/index.d.ts +0 -3
- package/dist/cjs/dashboard/index.js +0 -23
- package/dist/cjs/dashboard/utils.d.ts +0 -24
- package/dist/cjs/dashboard/utils.js +0 -135
- package/dist/cjs/dashboard/widget/index.d.ts +0 -13
- package/dist/cjs/dashboard/widget/index.js +0 -56
- package/dist/cjs/dashboard/widget/index.less +0 -7
- package/dist/cjs/dashboard/widget/selector/index.d.ts +0 -4
- package/dist/cjs/dashboard/widget/selector/index.js +0 -244
- package/dist/cjs/dashboard/widget/selector/index.less +0 -172
- package/dist/cjs/dashboard/widget/utils.d.ts +0 -4
- package/dist/cjs/dashboard/widget/utils.js +0 -98
- package/dist/cjs/dialogSelect/index.d.ts +0 -4
- package/dist/cjs/dialogSelect/index.js +0 -77
- package/dist/cjs/dialogSelect/interface.d.ts +0 -11
- package/dist/cjs/dialogSelect/interface.js +0 -1
- package/dist/cjs/dialogSelect/selectModal.d.ts +0 -6
- package/dist/cjs/dialogSelect/selectModal.js +0 -146
- package/dist/cjs/editable/index.d.ts +0 -8
- package/dist/cjs/editable/index.js +0 -250
- package/dist/cjs/editable/style.d.ts +0 -2
- package/dist/cjs/editable/style.js +0 -52
- package/dist/cjs/extensible-grid/index.d.ts +0 -4
- package/dist/cjs/extensible-grid/index.js +0 -29
- package/dist/cjs/extensible-grid/interface.d.ts +0 -14
- package/dist/cjs/extensible-grid/interface.js +0 -5
- package/dist/cjs/formDesigner/FormDesigner.d.ts +0 -4
- package/dist/cjs/formDesigner/FormDesigner.js +0 -230
- package/dist/cjs/formDesigner/ProCard/index.d.ts +0 -3
- package/dist/cjs/formDesigner/ProCard/index.js +0 -28
- package/dist/cjs/formDesigner/arrayTable/arrayTableSchema.d.ts +0 -5
- package/dist/cjs/formDesigner/arrayTable/arrayTableSchema.js +0 -112
- package/dist/cjs/formDesigner/arrayTable/index.d.ts +0 -1
- package/dist/cjs/formDesigner/arrayTable/index.js +0 -16
- package/dist/cjs/formDesigner/arrayTable/preview.d.ts +0 -3
- package/dist/cjs/formDesigner/arrayTable/preview.js +0 -397
- package/dist/cjs/formDesigner/arrayTable/styles.less +0 -3
- package/dist/cjs/formDesigner/index.d.ts +0 -2
- package/dist/cjs/formDesigner/index.js +0 -13
- package/dist/cjs/formDesigner/index.less +0 -3
- package/dist/cjs/formDesigner/preWidgets/arrayTableIndex/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/arrayTableIndex/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/arrayTableIndex/preview.d.ts +0 -4
- package/dist/cjs/formDesigner/preWidgets/arrayTableIndex/preview.js +0 -47
- package/dist/cjs/formDesigner/preWidgets/card/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/card/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/card/preview.d.ts +0 -4
- package/dist/cjs/formDesigner/preWidgets/card/preview.js +0 -45
- package/dist/cjs/formDesigner/preWidgets/index.d.ts +0 -12
- package/dist/cjs/formDesigner/preWidgets/index.js +0 -137
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/preview.d.ts +0 -5
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/preview.js +0 -51
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/preview.d.ts +0 -5
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/preview.js +0 -50
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/preview.d.ts +0 -5
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/preview.js +0 -50
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/preview.d.ts +0 -5
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/preview.js +0 -50
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/preview.d.ts +0 -5
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/preview.js +0 -50
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/preview.d.ts +0 -5
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/preview.js +0 -50
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/preview.d.ts +0 -5
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/preview.js +0 -50
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/preview.d.ts +0 -5
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/preview.js +0 -50
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/preview.d.ts +0 -5
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/preview.js +0 -50
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/index.d.ts +0 -1
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/index.js +0 -16
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/preview.d.ts +0 -5
- package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/preview.js +0 -50
- package/dist/cjs/formDesigner/preWidgets/utils.d.ts +0 -294
- package/dist/cjs/formDesigner/preWidgets/utils.js +0 -225
- package/dist/cjs/formDesigner/widgets/ActionsWidget.d.ts +0 -2
- package/dist/cjs/formDesigner/widgets/ActionsWidget.js +0 -38
- package/dist/cjs/formDesigner/widgets/LogoWidget.d.ts +0 -2
- package/dist/cjs/formDesigner/widgets/LogoWidget.js +0 -31
- package/dist/cjs/formDesigner/widgets/PreviewWidget.d.ts +0 -7
- package/dist/cjs/formDesigner/widgets/PreviewWidget.js +0 -41
- package/dist/cjs/formDesigner/widgets/SchemaEditorWidget.d.ts +0 -7
- package/dist/cjs/formDesigner/widgets/SchemaEditorWidget.js +0 -24
- package/dist/cjs/formDesigner/widgets/index.d.ts +0 -4
- package/dist/cjs/formDesigner/widgets/index.js +0 -49
- package/dist/cjs/formPro/context/formProContext.d.ts +0 -13
- package/dist/cjs/formPro/context/formProContext.js +0 -12
- package/dist/cjs/formPro/formLayoutPro.d.ts +0 -9
- package/dist/cjs/formPro/formLayoutPro.js +0 -48
- package/dist/cjs/formPro/index.d.ts +0 -2
- package/dist/cjs/formPro/index.js +0 -13
- package/dist/cjs/index.d.ts +0 -12
- package/dist/cjs/index.js +0 -94
- package/dist/cjs/type.d.ts +0 -1
- package/dist/esm/ag-grid-plus/_utils/boolSelect.d.ts +0 -4
- package/dist/esm/ag-grid-plus/_utils/boolSelect.js +0 -49
- package/dist/esm/ag-grid-plus/ag-grid-theme-builder.css +0 -350
- package/dist/esm/ag-grid-plus/ag-gridPlus.d.ts +0 -6
- package/dist/esm/ag-grid-plus/ag-gridPlus.js +0 -463
- package/dist/esm/ag-grid-plus/context/gridContext.d.ts +0 -12
- package/dist/esm/ag-grid-plus/context/gridContext.js +0 -6
- package/dist/esm/ag-grid-plus/gridManager/index.d.ts +0 -7
- package/dist/esm/ag-grid-plus/gridManager/index.js +0 -35
- package/dist/esm/ag-grid-plus/index.d.ts +0 -11
- package/dist/esm/ag-grid-plus/index.js +0 -10
- package/dist/esm/ag-grid-plus/index.less +0 -7
- package/dist/esm/ag-grid-plus/interface.d.ts +0 -39
- package/dist/esm/ag-grid-plus/interface.js +0 -9
- package/dist/esm/ag-grid-plus/queryForm/index.d.ts +0 -11
- package/dist/esm/ag-grid-plus/queryForm/index.js +0 -175
- package/dist/esm/ag-grid-plus/queryForm/index.less +0 -48
- package/dist/esm/ag-grid-plus/queryForm/queryForm.d.ts +0 -3
- package/dist/esm/ag-grid-plus/queryForm/queryForm.js +0 -88
- package/dist/esm/ag-grid-plus/setting/index.d.ts +0 -8
- package/dist/esm/ag-grid-plus/setting/index.js +0 -198
- package/dist/esm/ag-grid-plus/settingItem/index.d.ts +0 -3
- package/dist/esm/ag-grid-plus/settingItem/index.js +0 -15
- package/dist/esm/ag-grid-plus/toolBar/index.d.ts +0 -20
- package/dist/esm/ag-grid-plus/toolBar/index.js +0 -165
- package/dist/esm/ag-grid-plus/toolBar/style.d.ts +0 -9
- package/dist/esm/ag-grid-plus/toolBar/style.js +0 -134
- package/dist/esm/ag-grid-plus/utils.d.ts +0 -9
- package/dist/esm/ag-grid-plus/utils.js +0 -137
- package/dist/esm/array-table/arrayAddBtn.d.ts +0 -3
- package/dist/esm/array-table/arrayAddBtn.js +0 -56
- package/dist/esm/array-table/arrayBase.d.ts +0 -62
- package/dist/esm/array-table/arrayBase.js +0 -217
- package/dist/esm/array-table/index.d.ts +0 -6
- package/dist/esm/array-table/index.js +0 -145
- package/dist/esm/array-table/interface.d.ts +0 -16
- package/dist/esm/array-table/interface.js +0 -1
- package/dist/esm/array-table/preview.d.ts +0 -3
- package/dist/esm/array-table/preview.js +0 -49
- package/dist/esm/array-table/utils.d.ts +0 -10
- package/dist/esm/array-table/utils.js +0 -124
- package/dist/esm/array-table-index/index.d.ts +0 -3
- package/dist/esm/array-table-index/index.js +0 -10
- package/dist/esm/dashboard/dashboard/components/index.d.ts +0 -2
- package/dist/esm/dashboard/dashboard/components/index.js +0 -2
- package/dist/esm/dashboard/dashboard/components/modal/index.d.ts +0 -3
- package/dist/esm/dashboard/dashboard/components/modal/index.js +0 -15
- package/dist/esm/dashboard/dashboard/components/toolbar/index.d.ts +0 -11
- package/dist/esm/dashboard/dashboard/components/toolbar/index.js +0 -22
- package/dist/esm/dashboard/dashboard/components/toolbar/style/index.d.ts +0 -1
- package/dist/esm/dashboard/dashboard/components/toolbar/style/index.js +0 -1
- package/dist/esm/dashboard/dashboard/components/toolbar/style/index.less +0 -49
- package/dist/esm/dashboard/dashboard/index.d.ts +0 -62
- package/dist/esm/dashboard/dashboard/index.js +0 -525
- package/dist/esm/dashboard/dashboard/index.less +0 -173
- package/dist/esm/dashboard/dashboard/service.d.ts +0 -8
- package/dist/esm/dashboard/dashboard/service.js +0 -86
- package/dist/esm/dashboard/dashboard/utils.d.ts +0 -9
- package/dist/esm/dashboard/dashboard/utils.js +0 -89
- package/dist/esm/dashboard/index.d.ts +0 -3
- package/dist/esm/dashboard/index.js +0 -3
- package/dist/esm/dashboard/utils.d.ts +0 -24
- package/dist/esm/dashboard/utils.js +0 -125
- package/dist/esm/dashboard/widget/index.d.ts +0 -13
- package/dist/esm/dashboard/widget/index.js +0 -47
- package/dist/esm/dashboard/widget/index.less +0 -7
- package/dist/esm/dashboard/widget/selector/index.d.ts +0 -4
- package/dist/esm/dashboard/widget/selector/index.js +0 -234
- package/dist/esm/dashboard/widget/selector/index.less +0 -172
- package/dist/esm/dashboard/widget/utils.d.ts +0 -4
- package/dist/esm/dashboard/widget/utils.js +0 -89
- package/dist/esm/dialogSelect/index.d.ts +0 -4
- package/dist/esm/dialogSelect/index.js +0 -70
- package/dist/esm/dialogSelect/interface.d.ts +0 -11
- package/dist/esm/dialogSelect/interface.js +0 -0
- package/dist/esm/dialogSelect/selectModal.d.ts +0 -6
- package/dist/esm/dialogSelect/selectModal.js +0 -138
- package/dist/esm/editable/index.d.ts +0 -8
- package/dist/esm/editable/index.js +0 -241
- package/dist/esm/editable/style.d.ts +0 -2
- package/dist/esm/editable/style.js +0 -46
- package/dist/esm/extensible-grid/index.d.ts +0 -4
- package/dist/esm/extensible-grid/index.js +0 -22
- package/dist/esm/extensible-grid/interface.d.ts +0 -14
- package/dist/esm/extensible-grid/interface.js +0 -1
- package/dist/esm/formDesigner/FormDesigner.d.ts +0 -4
- package/dist/esm/formDesigner/FormDesigner.js +0 -222
- package/dist/esm/formDesigner/ProCard/index.d.ts +0 -3
- package/dist/esm/formDesigner/ProCard/index.js +0 -21
- package/dist/esm/formDesigner/arrayTable/arrayTableSchema.d.ts +0 -5
- package/dist/esm/formDesigner/arrayTable/arrayTableSchema.js +0 -106
- package/dist/esm/formDesigner/arrayTable/index.d.ts +0 -1
- package/dist/esm/formDesigner/arrayTable/index.js +0 -1
- package/dist/esm/formDesigner/arrayTable/preview.d.ts +0 -3
- package/dist/esm/formDesigner/arrayTable/preview.js +0 -390
- package/dist/esm/formDesigner/arrayTable/styles.less +0 -3
- package/dist/esm/formDesigner/index.d.ts +0 -2
- package/dist/esm/formDesigner/index.js +0 -2
- package/dist/esm/formDesigner/index.less +0 -3
- package/dist/esm/formDesigner/preWidgets/arrayTableIndex/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/arrayTableIndex/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/arrayTableIndex/preview.d.ts +0 -4
- package/dist/esm/formDesigner/preWidgets/arrayTableIndex/preview.js +0 -40
- package/dist/esm/formDesigner/preWidgets/card/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/card/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/card/preview.d.ts +0 -4
- package/dist/esm/formDesigner/preWidgets/card/preview.js +0 -38
- package/dist/esm/formDesigner/preWidgets/index.d.ts +0 -12
- package/dist/esm/formDesigner/preWidgets/index.js +0 -12
- package/dist/esm/formDesigner/preWidgets/preDefineProperty1/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty1/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty1/preview.d.ts +0 -5
- package/dist/esm/formDesigner/preWidgets/preDefineProperty1/preview.js +0 -44
- package/dist/esm/formDesigner/preWidgets/preDefineProperty10/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty10/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty10/preview.d.ts +0 -5
- package/dist/esm/formDesigner/preWidgets/preDefineProperty10/preview.js +0 -43
- package/dist/esm/formDesigner/preWidgets/preDefineProperty2/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty2/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty2/preview.d.ts +0 -5
- package/dist/esm/formDesigner/preWidgets/preDefineProperty2/preview.js +0 -43
- package/dist/esm/formDesigner/preWidgets/preDefineProperty3/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty3/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty3/preview.d.ts +0 -5
- package/dist/esm/formDesigner/preWidgets/preDefineProperty3/preview.js +0 -43
- package/dist/esm/formDesigner/preWidgets/preDefineProperty4/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty4/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty4/preview.d.ts +0 -5
- package/dist/esm/formDesigner/preWidgets/preDefineProperty4/preview.js +0 -43
- package/dist/esm/formDesigner/preWidgets/preDefineProperty5/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty5/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty5/preview.d.ts +0 -5
- package/dist/esm/formDesigner/preWidgets/preDefineProperty5/preview.js +0 -43
- package/dist/esm/formDesigner/preWidgets/preDefineProperty6/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty6/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty6/preview.d.ts +0 -5
- package/dist/esm/formDesigner/preWidgets/preDefineProperty6/preview.js +0 -43
- package/dist/esm/formDesigner/preWidgets/preDefineProperty7/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty7/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty7/preview.d.ts +0 -5
- package/dist/esm/formDesigner/preWidgets/preDefineProperty7/preview.js +0 -43
- package/dist/esm/formDesigner/preWidgets/preDefineProperty8/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty8/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty8/preview.d.ts +0 -5
- package/dist/esm/formDesigner/preWidgets/preDefineProperty8/preview.js +0 -43
- package/dist/esm/formDesigner/preWidgets/preDefineProperty9/index.d.ts +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty9/index.js +0 -1
- package/dist/esm/formDesigner/preWidgets/preDefineProperty9/preview.d.ts +0 -5
- package/dist/esm/formDesigner/preWidgets/preDefineProperty9/preview.js +0 -43
- package/dist/esm/formDesigner/preWidgets/utils.d.ts +0 -294
- package/dist/esm/formDesigner/preWidgets/utils.js +0 -219
- package/dist/esm/formDesigner/widgets/ActionsWidget.d.ts +0 -2
- package/dist/esm/formDesigner/widgets/ActionsWidget.js +0 -29
- package/dist/esm/formDesigner/widgets/LogoWidget.d.ts +0 -2
- package/dist/esm/formDesigner/widgets/LogoWidget.js +0 -24
- package/dist/esm/formDesigner/widgets/PreviewWidget.d.ts +0 -7
- package/dist/esm/formDesigner/widgets/PreviewWidget.js +0 -33
- package/dist/esm/formDesigner/widgets/SchemaEditorWidget.d.ts +0 -7
- package/dist/esm/formDesigner/widgets/SchemaEditorWidget.js +0 -17
- package/dist/esm/formDesigner/widgets/index.d.ts +0 -4
- package/dist/esm/formDesigner/widgets/index.js +0 -4
- package/dist/esm/formPro/context/formProContext.d.ts +0 -13
- package/dist/esm/formPro/context/formProContext.js +0 -5
- package/dist/esm/formPro/formLayoutPro.d.ts +0 -9
- package/dist/esm/formPro/formLayoutPro.js +0 -41
- package/dist/esm/formPro/index.d.ts +0 -2
- package/dist/esm/formPro/index.js +0 -2
- package/dist/esm/index.d.ts +0 -12
- package/dist/esm/index.js +0 -12
- package/dist/esm/type.d.ts +0 -1
- package/dist/umd/qc-ui.min.css +0 -1
- package/dist/umd/qc-ui.min.js +0 -1
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
@import '~react-grid-layout/css/styles.css';
|
|
2
|
-
|
|
3
|
-
.react-resizable {
|
|
4
|
-
|
|
5
|
-
position: relative;
|
|
6
|
-
}
|
|
7
|
-
.react-resizable-handle {
|
|
8
|
-
position: absolute;
|
|
9
|
-
width: 20px;
|
|
10
|
-
height: 20px;
|
|
11
|
-
background-repeat: no-repeat;
|
|
12
|
-
background-origin: content-box;
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');
|
|
15
|
-
background-position: bottom right;
|
|
16
|
-
padding: 0 3px 3px 0;
|
|
17
|
-
display:none;
|
|
18
|
-
}
|
|
19
|
-
.react-resizable-handle-sw {
|
|
20
|
-
bottom: 0;
|
|
21
|
-
left: 0;
|
|
22
|
-
cursor: sw-resize;
|
|
23
|
-
transform: rotate(90deg);
|
|
24
|
-
}
|
|
25
|
-
.react-resizable-handle-se {
|
|
26
|
-
bottom: 0;
|
|
27
|
-
right: 0;
|
|
28
|
-
cursor: se-resize;
|
|
29
|
-
}
|
|
30
|
-
.react-resizable-handle-nw {
|
|
31
|
-
top: 0;
|
|
32
|
-
left: 0;
|
|
33
|
-
cursor: nw-resize;
|
|
34
|
-
transform: rotate(180deg);
|
|
35
|
-
}
|
|
36
|
-
.react-resizable-handle-ne {
|
|
37
|
-
top: 0;
|
|
38
|
-
right: 0;
|
|
39
|
-
cursor: ne-resize;
|
|
40
|
-
transform: rotate(270deg);
|
|
41
|
-
}
|
|
42
|
-
.react-resizable-handle-w,
|
|
43
|
-
.react-resizable-handle-e {
|
|
44
|
-
top: 50%;
|
|
45
|
-
margin-top: -10px;
|
|
46
|
-
cursor: ew-resize;
|
|
47
|
-
}
|
|
48
|
-
.react-resizable-handle-w {
|
|
49
|
-
left: 0;
|
|
50
|
-
transform: rotate(135deg);
|
|
51
|
-
}
|
|
52
|
-
.react-resizable-handle-e {
|
|
53
|
-
right: 0;
|
|
54
|
-
transform: rotate(315deg);
|
|
55
|
-
}
|
|
56
|
-
.react-resizable-handle-n,
|
|
57
|
-
.react-resizable-handle-s {
|
|
58
|
-
left: 50%;
|
|
59
|
-
margin-left: -10px;
|
|
60
|
-
cursor: ns-resize;
|
|
61
|
-
}
|
|
62
|
-
.react-resizable-handle-n {
|
|
63
|
-
top: 0;
|
|
64
|
-
transform: rotate(225deg);
|
|
65
|
-
}
|
|
66
|
-
.react-resizable-handle-s {
|
|
67
|
-
bottom: 0;
|
|
68
|
-
transform: rotate(45deg);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
:root{
|
|
72
|
-
--primary-color:blue;
|
|
73
|
-
--component-background:#fff;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
.react-grid-item > .react-resizable-handle {
|
|
78
|
-
z-index: 1;
|
|
79
|
-
}
|
|
80
|
-
.react-dashboard-item-edit{
|
|
81
|
-
.react-resizable-handle {
|
|
82
|
-
display:block;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.react-dashboard-full {
|
|
87
|
-
width: 100%;
|
|
88
|
-
height: 100%;
|
|
89
|
-
}
|
|
90
|
-
.react-dashboard-aligncenter {
|
|
91
|
-
display: flex;
|
|
92
|
-
justify-content: center;
|
|
93
|
-
align-items: center;
|
|
94
|
-
}
|
|
95
|
-
//空页面样式
|
|
96
|
-
.react-dashboard-emptyContent {
|
|
97
|
-
// min-height: calc(100vh - 50px - 41px - 50px - 10px - 22px);
|
|
98
|
-
display: flex;
|
|
99
|
-
justify-content: center;
|
|
100
|
-
align-items: center;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
.react-dashboard-item {
|
|
105
|
-
position: relative;
|
|
106
|
-
// overflow: hidden;
|
|
107
|
-
// border:1px solid rgba(128,128,128,0.3);
|
|
108
|
-
.react-dashboard-mask {
|
|
109
|
-
position: absolute;
|
|
110
|
-
top: 0;
|
|
111
|
-
left: 0;
|
|
112
|
-
z-index: 1;
|
|
113
|
-
width: 100%;
|
|
114
|
-
height: 100%;
|
|
115
|
-
background: rgba(0, 0, 0, 0);
|
|
116
|
-
cursor: move;
|
|
117
|
-
transition: all 0.3s;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.react-dashboard-configicon {
|
|
121
|
-
position: absolute;
|
|
122
|
-
top: 0;
|
|
123
|
-
right: 30px;
|
|
124
|
-
z-index: 1;
|
|
125
|
-
display: none;
|
|
126
|
-
width: 30px;
|
|
127
|
-
height: 30px;
|
|
128
|
-
color: #fff;
|
|
129
|
-
font-weight: bold;
|
|
130
|
-
font-size: 16px;
|
|
131
|
-
line-height: 30px;
|
|
132
|
-
text-align: center;
|
|
133
|
-
background: var(--primary-color);
|
|
134
|
-
border-radius: var(--card-border-radius) 0 0 var(--card-border-radius);
|
|
135
|
-
cursor: pointer;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.react-dashboard-deleteicon {
|
|
139
|
-
position: absolute;
|
|
140
|
-
top: 0;
|
|
141
|
-
right: 0;
|
|
142
|
-
z-index: 1;
|
|
143
|
-
display: none;
|
|
144
|
-
width: 30px;
|
|
145
|
-
height: 30px;
|
|
146
|
-
color: #fff;
|
|
147
|
-
font-size: 16px;
|
|
148
|
-
line-height: 30px;
|
|
149
|
-
text-align: center;
|
|
150
|
-
background: #f5222d;
|
|
151
|
-
border-radius: var(--card-border-radius);
|
|
152
|
-
cursor: pointer;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.react-dashboard-configicon + .react-dashboard-deleteicon {
|
|
156
|
-
border-radius: 0 var(--card-border-radius) var(--card-border-radius) 0;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
&:hover {
|
|
160
|
-
.react-dashboard-mask {
|
|
161
|
-
background: rgba(0, 0, 0, 0.05);
|
|
162
|
-
transition: all 0.3s;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.react-dashboard-configicon {
|
|
166
|
-
display: block;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.react-dashboard-deleteicon {
|
|
170
|
-
display: block;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface payloadProps {
|
|
2
|
-
id: string;
|
|
3
|
-
data?: object;
|
|
4
|
-
}
|
|
5
|
-
export declare function fetch(payload: payloadProps): Promise<string | null | undefined>;
|
|
6
|
-
export declare function update(payload: payloadProps): Promise<string | null | undefined>;
|
|
7
|
-
export declare function removeWidgetApi(params: any): Promise<string | null>;
|
|
8
|
-
export {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.fetch = fetch;
|
|
7
|
-
exports.removeWidgetApi = removeWidgetApi;
|
|
8
|
-
exports.update = update;
|
|
9
|
-
var _utils = require("./utils");
|
|
10
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
12
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
13
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
14
|
-
// 获取仪表板信息
|
|
15
|
-
function fetch(_x) {
|
|
16
|
-
return _fetch.apply(this, arguments);
|
|
17
|
-
} // 修改仪表板信息
|
|
18
|
-
function _fetch() {
|
|
19
|
-
_fetch = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(payload) {
|
|
20
|
-
var id, url;
|
|
21
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22
|
-
while (1) switch (_context.prev = _context.next) {
|
|
23
|
-
case 0:
|
|
24
|
-
id = payload.id;
|
|
25
|
-
url = '/accountUserSelf/getUserData';
|
|
26
|
-
if (id) {
|
|
27
|
-
_context.next = 4;
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
return _context.abrupt("return");
|
|
31
|
-
case 4:
|
|
32
|
-
return _context.abrupt("return", (0, _utils.request)(url, {
|
|
33
|
-
method: 'GET',
|
|
34
|
-
data: {
|
|
35
|
-
dataId: id,
|
|
36
|
-
dataType: 'dashboard'
|
|
37
|
-
}
|
|
38
|
-
}));
|
|
39
|
-
case 5:
|
|
40
|
-
case "end":
|
|
41
|
-
return _context.stop();
|
|
42
|
-
}
|
|
43
|
-
}, _callee);
|
|
44
|
-
}));
|
|
45
|
-
return _fetch.apply(this, arguments);
|
|
46
|
-
}
|
|
47
|
-
function update(_x2) {
|
|
48
|
-
return _update.apply(this, arguments);
|
|
49
|
-
} //删除小程序信息
|
|
50
|
-
function _update() {
|
|
51
|
-
_update = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(payload) {
|
|
52
|
-
var id, data, url;
|
|
53
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
54
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
55
|
-
case 0:
|
|
56
|
-
id = payload.id, data = payload.data;
|
|
57
|
-
url = '/accountUserSelf/setUserData';
|
|
58
|
-
if (id) {
|
|
59
|
-
_context2.next = 4;
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
return _context2.abrupt("return");
|
|
63
|
-
case 4:
|
|
64
|
-
return _context2.abrupt("return", (0, _utils.request)(url, {
|
|
65
|
-
method: 'POST',
|
|
66
|
-
data: {
|
|
67
|
-
dataId: id,
|
|
68
|
-
dataType: 'dashboard',
|
|
69
|
-
bigData: JSON.stringify(data)
|
|
70
|
-
}
|
|
71
|
-
}));
|
|
72
|
-
case 5:
|
|
73
|
-
case "end":
|
|
74
|
-
return _context2.stop();
|
|
75
|
-
}
|
|
76
|
-
}, _callee2);
|
|
77
|
-
}));
|
|
78
|
-
return _update.apply(this, arguments);
|
|
79
|
-
}
|
|
80
|
-
function removeWidgetApi(params) {
|
|
81
|
-
var widgetKey = params.widgetKey;
|
|
82
|
-
var url = '/accountUserSelf/delUserData';
|
|
83
|
-
return (0, _utils.request)(url, {
|
|
84
|
-
method: 'DELETE',
|
|
85
|
-
data: {
|
|
86
|
-
dataId: widgetKey,
|
|
87
|
-
dataType: 'widget'
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const request: (url: string, options: any) => Promise<string | null>;
|
|
2
|
-
/**
|
|
3
|
-
*复制字符串到系统剪切板
|
|
4
|
-
*
|
|
5
|
-
* @param {*} str
|
|
6
|
-
*/
|
|
7
|
-
export declare const copy: (str: string) => void;
|
|
8
|
-
export declare const formatLayout: (layout: any) => any;
|
|
9
|
-
export declare const calcMinAndMax: (data: any, widgets: any) => any;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.request = exports.formatLayout = exports.copy = exports.calcMinAndMax = void 0;
|
|
8
|
-
var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
11
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
12
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
13
|
-
// import { updateApi as modifySmartChartConfig } from '@/pages/common/widgets/smartchart/service'
|
|
14
|
-
|
|
15
|
-
var request = exports.request = /*#__PURE__*/function () {
|
|
16
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url, options) {
|
|
17
|
-
var method, _options$data, dataId, dataType, bigData, res;
|
|
18
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19
|
-
while (1) switch (_context.prev = _context.next) {
|
|
20
|
-
case 0:
|
|
21
|
-
method = options.method, _options$data = options.data, dataId = _options$data.dataId, dataType = _options$data.dataType, bigData = _options$data.bigData;
|
|
22
|
-
_context.t0 = method;
|
|
23
|
-
_context.next = _context.t0 === 'POST' ? 4 : _context.t0 === 'GET' ? 6 : _context.t0 === 'DELETE' ? 8 : 9;
|
|
24
|
-
break;
|
|
25
|
-
case 4:
|
|
26
|
-
localStorage.setItem("".concat(dataId, "-").concat(dataType), bigData);
|
|
27
|
-
return _context.abrupt("break", 9);
|
|
28
|
-
case 6:
|
|
29
|
-
res = localStorage.getItem("".concat(dataId, "-").concat(dataType));
|
|
30
|
-
return _context.abrupt("break", 9);
|
|
31
|
-
case 8:
|
|
32
|
-
localStorage.removeItem("".concat(dataId, "-").concat(dataType));
|
|
33
|
-
case 9:
|
|
34
|
-
res = localStorage.getItem("".concat(dataId, "-").concat(dataType));
|
|
35
|
-
return _context.abrupt("return", res);
|
|
36
|
-
case 11:
|
|
37
|
-
case "end":
|
|
38
|
-
return _context.stop();
|
|
39
|
-
}
|
|
40
|
-
}, _callee);
|
|
41
|
-
}));
|
|
42
|
-
return function request(_x, _x2) {
|
|
43
|
-
return _ref.apply(this, arguments);
|
|
44
|
-
};
|
|
45
|
-
}();
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
*复制字符串到系统剪切板
|
|
49
|
-
*
|
|
50
|
-
* @param {*} str
|
|
51
|
-
*/
|
|
52
|
-
var copy = exports.copy = function copy(str) {
|
|
53
|
-
var save = function save(e) {
|
|
54
|
-
e.clipboardData.setData('text/plain', str);
|
|
55
|
-
e.preventDefault(); //阻止默认行为
|
|
56
|
-
};
|
|
57
|
-
document.addEventListener('copy', save);
|
|
58
|
-
document.execCommand('copy');
|
|
59
|
-
setTimeout(function () {
|
|
60
|
-
document.removeEventListener('copy', save);
|
|
61
|
-
}, 1000);
|
|
62
|
-
};
|
|
63
|
-
var formatLayout = exports.formatLayout = function formatLayout(layout) {
|
|
64
|
-
var data = (0, _cloneDeep2.default)(layout);
|
|
65
|
-
data.forEach(function (item) {
|
|
66
|
-
delete item.minW;
|
|
67
|
-
delete item.maxW;
|
|
68
|
-
delete item.minH;
|
|
69
|
-
delete item.maxH;
|
|
70
|
-
delete item.moved;
|
|
71
|
-
delete item.static;
|
|
72
|
-
});
|
|
73
|
-
return data;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
//添加最大最小值
|
|
77
|
-
var calcMinAndMax = exports.calcMinAndMax = function calcMinAndMax(data, widgets) {
|
|
78
|
-
data.map(function (item, index) {
|
|
79
|
-
var key = item.i.split('-')[0];
|
|
80
|
-
if (!key) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
var _widgets$key = widgets[key],
|
|
84
|
-
_widgets$key$minW = _widgets$key.minW,
|
|
85
|
-
minW = _widgets$key$minW === void 0 ? 1 : _widgets$key$minW,
|
|
86
|
-
_widgets$key$maxW = _widgets$key.maxW,
|
|
87
|
-
maxW = _widgets$key$maxW === void 0 ? 12 : _widgets$key$maxW,
|
|
88
|
-
_widgets$key$minH = _widgets$key.minH,
|
|
89
|
-
minH = _widgets$key$minH === void 0 ? 1 : _widgets$key$minH,
|
|
90
|
-
_widgets$key$maxH = _widgets$key.maxH,
|
|
91
|
-
maxH = _widgets$key$maxH === void 0 ? 100 : _widgets$key$maxH;
|
|
92
|
-
item.minW = minW;
|
|
93
|
-
item.maxW = maxW;
|
|
94
|
-
item.minH = minH;
|
|
95
|
-
item.maxH = maxH;
|
|
96
|
-
});
|
|
97
|
-
return data;
|
|
98
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
var _exportNames = {};
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _dashboard = _interopRequireWildcard(require("./dashboard"));
|
|
10
|
-
Object.keys(_dashboard).forEach(function (key) {
|
|
11
|
-
if (key === "default" || key === "__esModule") return;
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
13
|
-
if (key in exports && exports[key] === _dashboard[key]) return;
|
|
14
|
-
Object.defineProperty(exports, key, {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _dashboard[key];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
-
var _default = exports.default = _dashboard.default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare function randomNum(minNum: number, maxNum: number): number;
|
|
3
|
-
export declare const getPosition: (random: any, fontSize: number) => {
|
|
4
|
-
fontSize: number;
|
|
5
|
-
top?: undefined;
|
|
6
|
-
left?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
fontSize: number;
|
|
9
|
-
top: string;
|
|
10
|
-
left: string;
|
|
11
|
-
};
|
|
12
|
-
export declare function generateUuid(len?: number, radix?: number): string;
|
|
13
|
-
interface confirmUtilAsyncProps {
|
|
14
|
-
content: string | ReactNode;
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* 异步确认弹窗,抛出确认或取消布尔值
|
|
19
|
-
*
|
|
20
|
-
* @param {confirmUtilAsyncProps} props
|
|
21
|
-
*/
|
|
22
|
-
export declare const confirmUtilAsync: (props: confirmUtilAsyncProps) => Promise<boolean>;
|
|
23
|
-
export declare function reducer(state: any, action: any): any;
|
|
24
|
-
export {};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.confirmUtilAsync = void 0;
|
|
8
|
-
exports.generateUuid = generateUuid;
|
|
9
|
-
exports.getPosition = void 0;
|
|
10
|
-
exports.randomNum = randomNum;
|
|
11
|
-
exports.reducer = reducer;
|
|
12
|
-
var _antd = require("antd");
|
|
13
|
-
var _excluded = ["content", "okType"];
|
|
14
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
18
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
20
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
22
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
23
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
24
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
25
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
26
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
|
-
function randomNum(minNum, maxNum) {
|
|
28
|
-
switch (arguments.length) {
|
|
29
|
-
case 1:
|
|
30
|
-
return Math.floor(Math.random() * minNum + 1);
|
|
31
|
-
break;
|
|
32
|
-
case 2:
|
|
33
|
-
return Math.floor(Math.random() * (maxNum - minNum + 1) + minNum);
|
|
34
|
-
break;
|
|
35
|
-
default:
|
|
36
|
-
return 0;
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
var getPosition = exports.getPosition = function getPosition(random, fontSize) {
|
|
41
|
-
if (!random) {
|
|
42
|
-
return {
|
|
43
|
-
fontSize: fontSize
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
var fontSizeRange = random.fontSizeRange;
|
|
47
|
-
var _fontSizeRange = _slicedToArray(fontSizeRange, 2),
|
|
48
|
-
minNum = _fontSizeRange[0],
|
|
49
|
-
maxNum = _fontSizeRange[1];
|
|
50
|
-
var fontSizeFin = randomNum(minNum, maxNum);
|
|
51
|
-
var top = randomNum(0, 100) + '%';
|
|
52
|
-
var left = randomNum(0, 100) + '%';
|
|
53
|
-
return {
|
|
54
|
-
fontSize: fontSizeFin,
|
|
55
|
-
top: top,
|
|
56
|
-
left: left
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
/*
|
|
61
|
-
生成uuid
|
|
62
|
-
len:number 长度
|
|
63
|
-
radix:number 进制
|
|
64
|
-
*/
|
|
65
|
-
function generateUuid() {
|
|
66
|
-
var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
|
|
67
|
-
var radix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;
|
|
68
|
-
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
|
|
69
|
-
var uuid = [];
|
|
70
|
-
var i;
|
|
71
|
-
radix = radix || chars.length;
|
|
72
|
-
if (len) {
|
|
73
|
-
// Compact form
|
|
74
|
-
for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix];
|
|
75
|
-
} else {
|
|
76
|
-
// rfc4122, version 4 form
|
|
77
|
-
var r;
|
|
78
|
-
|
|
79
|
-
// rfc4122 requires these characters
|
|
80
|
-
uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
|
|
81
|
-
uuid[14] = '4';
|
|
82
|
-
|
|
83
|
-
// Fill in random data. At i==19 set the high bits of clock sequence as
|
|
84
|
-
// per rfc4122, sec. 4.1.5
|
|
85
|
-
for (i = 0; i < 36; i++) {
|
|
86
|
-
if (!uuid[i]) {
|
|
87
|
-
r = 0 | Math.random() * 16;
|
|
88
|
-
uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r];
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return uuid.join('');
|
|
93
|
-
}
|
|
94
|
-
var confirm = _antd.Modal.confirm;
|
|
95
|
-
/**
|
|
96
|
-
* 异步确认弹窗,抛出确认或取消布尔值
|
|
97
|
-
*
|
|
98
|
-
* @param {confirmUtilAsyncProps} props
|
|
99
|
-
*/
|
|
100
|
-
var confirmUtilAsync = exports.confirmUtilAsync = function confirmUtilAsync(props) {
|
|
101
|
-
return new Promise(function (resolve, reject) {
|
|
102
|
-
var content = props.content,
|
|
103
|
-
_props$okType = props.okType,
|
|
104
|
-
okType = _props$okType === void 0 ? 'primary' : _props$okType,
|
|
105
|
-
restProps = _objectWithoutProperties(props, _excluded);
|
|
106
|
-
confirm(_objectSpread({
|
|
107
|
-
title: '提示',
|
|
108
|
-
content: content,
|
|
109
|
-
cancelText: '取消',
|
|
110
|
-
okText: '确定',
|
|
111
|
-
okType: okType,
|
|
112
|
-
okButtonProps: {
|
|
113
|
-
size: 'small'
|
|
114
|
-
},
|
|
115
|
-
zIndex: 9999,
|
|
116
|
-
cancelButtonProps: {
|
|
117
|
-
size: 'small'
|
|
118
|
-
},
|
|
119
|
-
onOk: function onOk() {
|
|
120
|
-
resolve(true);
|
|
121
|
-
},
|
|
122
|
-
onCancel: function onCancel() {
|
|
123
|
-
resolve(false);
|
|
124
|
-
}
|
|
125
|
-
}, restProps));
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
// 基础reducer
|
|
130
|
-
function reducer(state, action) {
|
|
131
|
-
switch (action.type) {
|
|
132
|
-
case 'save':
|
|
133
|
-
return _objectSpread(_objectSpread({}, state), action.payload);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface WidgetProps {
|
|
4
|
-
widgets: any;
|
|
5
|
-
widgetKey: string;
|
|
6
|
-
widgetType: string;
|
|
7
|
-
height: number;
|
|
8
|
-
editMode: boolean;
|
|
9
|
-
onDeleteWidget?: Function;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}
|
|
12
|
-
declare const Widget: (props: WidgetProps) => React.JSX.Element;
|
|
13
|
-
export default Widget;
|