cnhis-design-vue 3.1.14 → 3.1.15-beta.10
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/es/packages/annotation-edit/src/AnnotationEdit.js +2 -1
- package/es/packages/big-table/index.d.ts +8 -11
- package/es/packages/big-table/src/BigTable.vue.d.ts +24 -19
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +17 -11
- package/es/packages/big-table/src/bigTableProps.d.ts +4 -3
- package/es/packages/big-table/src/bigTableProps.js +1 -1
- package/es/packages/big-table/src/components/edit-form/edit-date.js +13 -4
- package/es/packages/big-table/src/components/edit-form/edit-select.js +2 -1
- package/es/packages/big-table/src/components/edit-form/edit-separate.js +18 -9
- package/es/packages/big-table/src/components/edit-form/edit-separate.vue.d.ts +3 -1
- package/es/packages/big-table/src/hooks/useAnnotation.d.ts +4 -0
- package/es/packages/big-table/src/hooks/useAnnotation.js +21 -0
- package/es/packages/big-table/src/hooks/useColumnConfigAdaptor.js +51 -36
- package/es/packages/big-table/src/hooks/useEdit.d.ts +3 -1
- package/es/packages/big-table/src/hooks/useFormat.js +8 -1
- package/es/packages/big-table/style/index.css +38 -1
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +8 -8
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.js +1 -1
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +4 -3
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/index.js +1 -1
- package/es/packages/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +3 -3
- package/es/packages/button-print/src/utils/print.d.ts +1 -1
- package/es/packages/button-print/src/utils/print.js +1 -1
- package/es/packages/fabric-chart/index.d.ts +1 -0
- package/es/packages/fabric-chart/src/FabricChart.js +17 -17
- package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +12 -10
- package/es/packages/fabric-chart/src/hooks/useCenter.js +35 -73
- package/es/packages/fabric-chart/src/hooks/useCumputedPoint.js +4 -2
- package/es/packages/fabric-chart/src/hooks/useDraw.js +1 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.js +5 -4
- package/es/packages/field-set/index.d.ts +4365 -0
- package/es/packages/field-set/src/FieldSet.js +53 -54
- package/es/packages/field-set/src/FieldSet.vue.d.ts +4365 -0
- package/es/packages/field-set/style/index.css +0 -9
- package/es/packages/form-config/index.d.ts +12111 -0
- package/es/packages/form-config/index.js +10 -0
- package/es/packages/form-config/src/FormConfig.js +113 -0
- package/es/packages/form-config/src/FormConfig.vue.d.ts +12113 -0
- package/es/packages/form-config/src/components/FormConfigCreator.js +97 -0
- package/es/packages/form-config/src/components/FormConfigCreator.vue.d.ts +5094 -0
- package/es/packages/form-config/src/components/FormConfigEdit.js +81 -0
- package/es/packages/form-config/src/components/FormConfigEdit.vue.d.ts +3591 -0
- package/es/packages/form-config/src/constants/index.d.ts +28 -0
- package/es/packages/form-config/src/constants/index.js +28 -0
- package/es/packages/form-config/src/hooks/index.d.ts +2 -0
- package/es/packages/form-config/src/hooks/index.js +2 -0
- package/es/packages/form-config/src/hooks/useConfigurationField.d.ts +6 -0
- package/es/packages/form-config/src/hooks/useConfigurationField.js +103 -0
- package/es/packages/form-config/src/hooks/usePresetRenderer.d.ts +5 -0
- package/es/packages/form-config/src/hooks/usePresetRenderer.js +117 -0
- package/es/packages/form-config/src/hooks/useSortable.d.ts +11 -0
- package/es/packages/form-config/src/hooks/useSortable.js +31 -0
- package/es/packages/form-config/src/types/index.d.ts +18 -0
- package/es/packages/form-config/src/types/index.js +1 -0
- package/es/packages/form-config/style/index.css +108 -0
- package/es/packages/form-render/index.d.ts +24 -3
- package/es/packages/form-render/src/FormRender.js +25 -6
- package/es/packages/form-render/src/FormRender.vue.d.ts +24 -3
- package/es/packages/form-render/src/components/renderer/cascader.js +7 -7
- package/es/packages/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +5 -0
- package/es/packages/form-render/src/components/renderer/combination/hooks/useDeepValidate.js +32 -0
- package/es/packages/form-render/src/components/renderer/{combination.d.ts → combination/index.d.ts} +7 -1
- package/es/packages/form-render/src/components/renderer/combination/index.js +157 -0
- package/es/packages/form-render/src/components/renderer/complex.d.ts +2 -0
- package/es/packages/form-render/src/components/renderer/complex.js +2 -5
- package/es/packages/form-render/src/components/renderer/date.d.ts +29 -0
- package/es/packages/form-render/src/components/renderer/date.js +63 -56
- package/es/packages/form-render/src/components/renderer/formItem.js +3 -3
- package/es/packages/form-render/src/components/renderer/index.js +1 -1
- package/es/packages/form-render/src/components/renderer/radio.js +4 -1
- package/es/packages/form-render/src/components/renderer/select.d.ts +9 -0
- package/es/packages/form-render/src/components/renderer/select.js +28 -17
- package/es/packages/form-render/src/constants/index.d.ts +2 -1
- package/es/packages/form-render/src/hooks/useAnchor.d.ts +7 -6
- package/es/packages/form-render/src/hooks/useAnchor.js +1 -2
- package/es/packages/form-render/src/hooks/useAsyncQueue.d.ts +6 -1
- package/es/packages/form-render/src/hooks/useAsyncQueue.js +12 -7
- package/es/packages/form-render/src/hooks/useCommonInjection.d.ts +6 -0
- package/es/packages/form-render/src/hooks/useCommonInjection.js +19 -0
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +9 -7
- package/es/packages/form-render/src/hooks/useFormContext.d.ts +3 -3
- package/es/packages/form-render/src/hooks/useFormContext.js +21 -3
- package/es/packages/form-render/src/hooks/useFormRenderLifeCycle.d.ts +13 -0
- package/es/packages/form-render/src/hooks/useFormRenderLifeCycle.js +10 -0
- package/es/packages/form-render/src/types/fieldItem.d.ts +33 -4
- package/es/packages/form-render/src/types/index.d.ts +30 -2
- package/es/packages/form-render/src/utils/index.d.ts +8 -5
- package/es/packages/form-render/src/utils/index.js +64 -13
- package/es/packages/form-render/style/index.css +11 -10
- package/es/packages/form-table/src/hooks/useNuiThemeOverrides.js +1 -1
- package/es/packages/index.css +158 -21
- package/es/packages/index.d.ts +3 -1
- package/es/packages/index.js +4 -1
- package/es/packages/info-header/index.d.ts +1 -3
- package/es/packages/info-header/src/HiddenContent.js +1 -1
- package/es/packages/info-header/src/HiddenContent.vue.d.ts +1 -3
- package/es/packages/info-header/src/InfoHeader.vue.d.ts +1 -3
- package/es/packages/info-header/style/index.css +1 -1
- package/es/packages/shortcut-provider/index.d.ts +2 -11
- package/es/packages/shortcut-provider/src/ShortcutProvider.js +1 -5
- package/es/packages/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -11
- package/es/packages/shortcut-provider/src/hooks/useShortcuts.d.ts +11 -8
- package/es/packages/shortcut-provider/src/hooks/useShortcuts.js +44 -28
- package/es/packages/shortcut-provider/src/types/index.d.ts +32 -4
- package/es/packages/shortcut-provider/src/utils/index.d.ts +3 -0
- package/es/packages/shortcut-provider/src/utils/index.js +15 -5
- package/es/packages/shortcut-setter/index.d.ts +32 -9
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +32 -9
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +8 -6
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +8 -6
- package/es/src/utils/state.d.ts +29 -0
- package/es/src/utils/state.js +44 -0
- package/package.json +10 -1
- package/es/_virtual/_commonjsHelpers.js +0 -7
- package/es/_virtual/css.escape.js +0 -3
- package/es/_virtual/inherits.js +0 -3
- package/es/_virtual/inherits_browser.js +0 -3
- package/es/node_modules/@formily/path/esm/contexts.js +0 -22
- package/es/node_modules/@formily/path/esm/destructor.js +0 -124
- package/es/node_modules/@formily/path/esm/index.js +0 -579
- package/es/node_modules/@formily/path/esm/matcher.js +0 -199
- package/es/node_modules/@formily/path/esm/parser.js +0 -402
- package/es/node_modules/@formily/path/esm/shared.js +0 -73
- package/es/node_modules/@formily/path/esm/tokenizer.js +0 -287
- package/es/node_modules/@formily/path/esm/tokens.js +0 -240
- package/es/node_modules/@formily/path/esm/types.js +0 -17
- package/es/node_modules/css.escape/css.escape.js +0 -110
- package/es/node_modules/date-fns/esm/_lib/defaultOptions/index.js +0 -6
- package/es/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -18
- package/es/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js +0 -17
- package/es/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js +0 -27
- package/es/node_modules/date-fns/esm/_lib/getUTCWeek/index.js +0 -17
- package/es/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js +0 -38
- package/es/node_modules/date-fns/esm/_lib/requiredArgs/index.js +0 -7
- package/es/node_modules/date-fns/esm/_lib/setUTCDay/index.js +0 -27
- package/es/node_modules/date-fns/esm/_lib/setUTCISODay/index.js +0 -23
- package/es/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/setUTCWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +0 -25
- package/es/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js +0 -21
- package/es/node_modules/date-fns/esm/_lib/toInteger/index.js +0 -15
- package/es/node_modules/date-fns/esm/compareAsc/index.js +0 -52
- package/es/node_modules/date-fns/esm/constants/index.js +0 -40
- package/es/node_modules/date-fns/esm/differenceInCalendarDays/index.js +0 -49
- package/es/node_modules/date-fns/esm/differenceInCalendarMonths/index.js +0 -35
- package/es/node_modules/date-fns/esm/differenceInCalendarYears/index.js +0 -33
- package/es/node_modules/date-fns/esm/differenceInDays/index.js +0 -86
- package/es/node_modules/date-fns/esm/differenceInMonths/index.js +0 -59
- package/es/node_modules/date-fns/esm/differenceInYears/index.js +0 -43
- package/es/node_modules/date-fns/esm/endOfDay/index.js +0 -30
- package/es/node_modules/date-fns/esm/endOfMonth/index.js +0 -32
- package/es/node_modules/date-fns/esm/isLastDayOfMonth/index.js +0 -30
- package/es/node_modules/date-fns/esm/parse/_lib/Parser.js +0 -32
- package/es/node_modules/date-fns/esm/parse/_lib/Setter.js +0 -37
- package/es/node_modules/date-fns/esm/parse/_lib/constants.js +0 -48
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js +0 -52
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js +0 -56
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js +0 -53
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js +0 -30
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js +0 -29
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js +0 -48
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js +0 -42
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js +0 -50
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js +0 -99
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js +0 -46
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -46
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js +0 -43
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js +0 -33
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js +0 -96
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js +0 -43
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js +0 -61
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js +0 -73
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -96
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js +0 -73
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -26
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js +0 -26
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js +0 -66
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/index.js +0 -109
- package/es/node_modules/date-fns/esm/parse/_lib/utils.js +0 -133
- package/es/node_modules/date-fns/esm/startOfDay/index.js +0 -30
- package/es/node_modules/date-fns/esm/toDate/index.js +0 -55
- package/es/node_modules/diagram-js/lib/command/CommandInterceptor.js +0 -139
- package/es/node_modules/diagram-js/lib/draw/BaseRenderer.js +0 -88
- package/es/node_modules/diagram-js/lib/features/popup-menu/PopupMenu.js +0 -591
- package/es/node_modules/diagram-js/lib/features/rules/RuleProvider.js +0 -88
- package/es/node_modules/diagram-js/lib/navigation/movecanvas/MoveCanvas.js +0 -120
- package/es/node_modules/diagram-js/lib/navigation/movecanvas/index.js +0 -8
- package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomScroll.js +0 -227
- package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomUtil.js +0 -24
- package/es/node_modules/diagram-js/lib/util/ClickTrap.js +0 -23
- package/es/node_modules/diagram-js/lib/util/Cursor.js +0 -20
- package/es/node_modules/diagram-js/lib/util/Event.js +0 -22
- package/es/node_modules/diagram-js/lib/util/Math.js +0 -9
- package/es/node_modules/diagram-js/lib/util/Mouse.js +0 -30
- package/es/node_modules/diagram-js/lib/util/Platform.js +0 -5
- package/es/node_modules/diagram-js/lib/util/PositionUtil.js +0 -8
- package/es/node_modules/diagram-js/lib/util/RenderUtil.js +0 -25
- package/es/node_modules/diagram-js/lib/util/SvgTransformUtil.js +0 -48
- package/es/node_modules/ids/dist/index.esm.js +0 -164
- package/es/node_modules/inherits/inherits.js +0 -19
- package/es/node_modules/inherits/inherits_browser.js +0 -38
- package/es/node_modules/inherits-browser/dist/index.es.js +0 -3
- package/es/node_modules/min-dash/dist/index.esm.js +0 -169
- package/es/node_modules/min-dom/dist/index.esm.js +0 -588
- package/es/node_modules/tiny-svg/dist/index.esm.js +0 -525
- package/es/packages/form-render/src/components/renderer/combination.js +0 -148
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
function createCommonjsModule(fn, module) {
|
|
2
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
var hat_1 = createCommonjsModule(function (module) {
|
|
6
|
-
var hat = module.exports = function (bits, base) {
|
|
7
|
-
if (!base) base = 16;
|
|
8
|
-
if (bits === undefined) bits = 128;
|
|
9
|
-
if (bits <= 0) return '0';
|
|
10
|
-
|
|
11
|
-
var digits = Math.log(Math.pow(2, bits)) / Math.log(base);
|
|
12
|
-
for (var i = 2; digits === Infinity; i *= 2) {
|
|
13
|
-
digits = Math.log(Math.pow(2, bits / i)) / Math.log(base) * i;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
var rem = digits - Math.floor(digits);
|
|
17
|
-
|
|
18
|
-
var res = '';
|
|
19
|
-
|
|
20
|
-
for (var i = 0; i < Math.floor(digits); i++) {
|
|
21
|
-
var x = Math.floor(Math.random() * base).toString(base);
|
|
22
|
-
res = x + res;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
if (rem) {
|
|
26
|
-
var b = Math.pow(base, rem);
|
|
27
|
-
var x = Math.floor(Math.random() * b).toString(base);
|
|
28
|
-
res = x + res;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
var parsed = parseInt(res, base);
|
|
32
|
-
if (parsed !== Infinity && parsed >= Math.pow(2, bits)) {
|
|
33
|
-
return hat(bits, base)
|
|
34
|
-
}
|
|
35
|
-
else return res;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
hat.rack = function (bits, base, expandBy) {
|
|
39
|
-
var fn = function (data) {
|
|
40
|
-
var iters = 0;
|
|
41
|
-
do {
|
|
42
|
-
if (iters ++ > 10) {
|
|
43
|
-
if (expandBy) bits += expandBy;
|
|
44
|
-
else throw new Error('too many ID collisions, use more bits')
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
var id = hat(bits, base);
|
|
48
|
-
} while (Object.hasOwnProperty.call(hats, id));
|
|
49
|
-
|
|
50
|
-
hats[id] = data;
|
|
51
|
-
return id;
|
|
52
|
-
};
|
|
53
|
-
var hats = fn.hats = {};
|
|
54
|
-
|
|
55
|
-
fn.get = function (id) {
|
|
56
|
-
return fn.hats[id];
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
fn.set = function (id, value) {
|
|
60
|
-
fn.hats[id] = value;
|
|
61
|
-
return fn;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
fn.bits = bits || 128;
|
|
65
|
-
fn.base = base || 16;
|
|
66
|
-
return fn;
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Create a new id generator / cache instance.
|
|
72
|
-
*
|
|
73
|
-
* You may optionally provide a seed that is used internally.
|
|
74
|
-
*
|
|
75
|
-
* @param {Seed} seed
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
function Ids(seed) {
|
|
79
|
-
if (!(this instanceof Ids)) {
|
|
80
|
-
return new Ids(seed);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
seed = seed || [128, 36, 1];
|
|
84
|
-
this._seed = seed.length ? hat_1.rack(seed[0], seed[1], seed[2]) : seed;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Generate a next id.
|
|
88
|
-
*
|
|
89
|
-
* @param {Object} [element] element to bind the id to
|
|
90
|
-
*
|
|
91
|
-
* @return {String} id
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
Ids.prototype.next = function (element) {
|
|
95
|
-
return this._seed(element || true);
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Generate a next id with a given prefix.
|
|
99
|
-
*
|
|
100
|
-
* @param {Object} [element] element to bind the id to
|
|
101
|
-
*
|
|
102
|
-
* @return {String} id
|
|
103
|
-
*/
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
Ids.prototype.nextPrefixed = function (prefix, element) {
|
|
107
|
-
var id;
|
|
108
|
-
|
|
109
|
-
do {
|
|
110
|
-
id = prefix + this.next(true);
|
|
111
|
-
} while (this.assigned(id)); // claim {prefix}{random}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
this.claim(id, element); // return
|
|
115
|
-
|
|
116
|
-
return id;
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* Manually claim an existing id.
|
|
120
|
-
*
|
|
121
|
-
* @param {String} id
|
|
122
|
-
* @param {String} [element] element the id is claimed by
|
|
123
|
-
*/
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
Ids.prototype.claim = function (id, element) {
|
|
127
|
-
this._seed.set(id, element || true);
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* Returns true if the given id has already been assigned.
|
|
131
|
-
*
|
|
132
|
-
* @param {String} id
|
|
133
|
-
* @return {Boolean}
|
|
134
|
-
*/
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
Ids.prototype.assigned = function (id) {
|
|
138
|
-
return this._seed.get(id) || false;
|
|
139
|
-
};
|
|
140
|
-
/**
|
|
141
|
-
* Unclaim an id.
|
|
142
|
-
*
|
|
143
|
-
* @param {String} id the id to unclaim
|
|
144
|
-
*/
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
Ids.prototype.unclaim = function (id) {
|
|
148
|
-
delete this._seed.hats[id];
|
|
149
|
-
};
|
|
150
|
-
/**
|
|
151
|
-
* Clear all claimed ids.
|
|
152
|
-
*/
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
Ids.prototype.clear = function () {
|
|
156
|
-
var hats = this._seed.hats,
|
|
157
|
-
id;
|
|
158
|
-
|
|
159
|
-
for (id in hats) {
|
|
160
|
-
this.unclaim(id);
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
export { Ids as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from '../../_virtual/_commonjsHelpers.js';
|
|
2
|
-
import { i as inherits$1 } from '../../_virtual/inherits.js';
|
|
3
|
-
import { __require as requireInherits_browser } from './inherits_browser.js';
|
|
4
|
-
|
|
5
|
-
(function (module) {
|
|
6
|
-
try {
|
|
7
|
-
var util = require('util');
|
|
8
|
-
/* istanbul ignore next */
|
|
9
|
-
if (typeof util.inherits !== 'function') throw '';
|
|
10
|
-
module.exports = util.inherits;
|
|
11
|
-
} catch (e) {
|
|
12
|
-
/* istanbul ignore next */
|
|
13
|
-
module.exports = requireInherits_browser();
|
|
14
|
-
}
|
|
15
|
-
} (inherits$1));
|
|
16
|
-
|
|
17
|
-
var inherits = /*@__PURE__*/getDefaultExportFromCjs(inherits$1.exports);
|
|
18
|
-
|
|
19
|
-
export { inherits as default };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { i as inherits_browser } from '../../_virtual/inherits_browser.js';
|
|
2
|
-
|
|
3
|
-
var hasRequiredInherits_browser;
|
|
4
|
-
|
|
5
|
-
function requireInherits_browser () {
|
|
6
|
-
if (hasRequiredInherits_browser) return inherits_browser.exports;
|
|
7
|
-
hasRequiredInherits_browser = 1;
|
|
8
|
-
if (typeof Object.create === 'function') {
|
|
9
|
-
// implementation from standard node.js 'util' module
|
|
10
|
-
inherits_browser.exports = function inherits(ctor, superCtor) {
|
|
11
|
-
if (superCtor) {
|
|
12
|
-
ctor.super_ = superCtor;
|
|
13
|
-
ctor.prototype = Object.create(superCtor.prototype, {
|
|
14
|
-
constructor: {
|
|
15
|
-
value: ctor,
|
|
16
|
-
enumerable: false,
|
|
17
|
-
writable: true,
|
|
18
|
-
configurable: true
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
} else {
|
|
24
|
-
// old school shim for old browsers
|
|
25
|
-
inherits_browser.exports = function inherits(ctor, superCtor) {
|
|
26
|
-
if (superCtor) {
|
|
27
|
-
ctor.super_ = superCtor;
|
|
28
|
-
var TempCtor = function () {};
|
|
29
|
-
TempCtor.prototype = superCtor.prototype;
|
|
30
|
-
ctor.prototype = new TempCtor();
|
|
31
|
-
ctor.prototype.constructor = ctor;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
return inherits_browser.exports;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export { requireInherits_browser as __require };
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flatten array, one level deep.
|
|
3
|
-
*
|
|
4
|
-
* @param {Array<?>} arr
|
|
5
|
-
*
|
|
6
|
-
* @return {Array<?>}
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
var nativeToString = Object.prototype.toString;
|
|
10
|
-
var nativeHasOwnProperty = Object.prototype.hasOwnProperty;
|
|
11
|
-
function isUndefined(obj) {
|
|
12
|
-
return obj === undefined;
|
|
13
|
-
}
|
|
14
|
-
function isDefined(obj) {
|
|
15
|
-
return obj !== undefined;
|
|
16
|
-
}
|
|
17
|
-
function isArray(obj) {
|
|
18
|
-
return nativeToString.call(obj) === '[object Array]';
|
|
19
|
-
}
|
|
20
|
-
function isObject(obj) {
|
|
21
|
-
return nativeToString.call(obj) === '[object Object]';
|
|
22
|
-
}
|
|
23
|
-
function isNumber(obj) {
|
|
24
|
-
return nativeToString.call(obj) === '[object Number]';
|
|
25
|
-
}
|
|
26
|
-
function isFunction(obj) {
|
|
27
|
-
var tag = nativeToString.call(obj);
|
|
28
|
-
return tag === '[object Function]' || tag === '[object AsyncFunction]' || tag === '[object GeneratorFunction]' || tag === '[object AsyncGeneratorFunction]' || tag === '[object Proxy]';
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Return true, if target owns a property with the given key.
|
|
32
|
-
*
|
|
33
|
-
* @param {Object} target
|
|
34
|
-
* @param {String} key
|
|
35
|
-
*
|
|
36
|
-
* @return {Boolean}
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
function has(target, key) {
|
|
40
|
-
return nativeHasOwnProperty.call(target, key);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Iterate over collection; returning something
|
|
44
|
-
* (non-undefined) will stop iteration.
|
|
45
|
-
*
|
|
46
|
-
* @param {Array|Object} collection
|
|
47
|
-
* @param {Function} iterator
|
|
48
|
-
*
|
|
49
|
-
* @return {Object} return result that stopped the iteration
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
function forEach(collection, iterator) {
|
|
53
|
-
var val, result;
|
|
54
|
-
|
|
55
|
-
if (isUndefined(collection)) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
var convertKey = isArray(collection) ? toNum : identity;
|
|
60
|
-
|
|
61
|
-
for (var key in collection) {
|
|
62
|
-
if (has(collection, key)) {
|
|
63
|
-
val = collection[key];
|
|
64
|
-
result = iterator(val, convertKey(key));
|
|
65
|
-
|
|
66
|
-
if (result === false) {
|
|
67
|
-
return val;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Get the collections keys.
|
|
74
|
-
*
|
|
75
|
-
* @param {Object|Array} collection
|
|
76
|
-
*
|
|
77
|
-
* @return {Array}
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
function keys(collection) {
|
|
81
|
-
return collection && Object.keys(collection) || [];
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Shorthand for `keys(o).length`.
|
|
85
|
-
*
|
|
86
|
-
* @param {Object|Array} collection
|
|
87
|
-
*
|
|
88
|
-
* @return {Number}
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
function size(collection) {
|
|
92
|
-
return keys(collection).length;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function identity(arg) {
|
|
96
|
-
return arg;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function toNum(arg) {
|
|
100
|
-
return Number(arg);
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Bind function against target <this>.
|
|
104
|
-
*
|
|
105
|
-
* @param {Function} fn
|
|
106
|
-
* @param {Object} target
|
|
107
|
-
*
|
|
108
|
-
* @return {Function} bound function
|
|
109
|
-
*/
|
|
110
|
-
|
|
111
|
-
function bind(fn, target) {
|
|
112
|
-
return fn.bind(target);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function _extends() {
|
|
116
|
-
_extends = Object.assign || function (target) {
|
|
117
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
118
|
-
var source = arguments[i];
|
|
119
|
-
|
|
120
|
-
for (var key in source) {
|
|
121
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
122
|
-
target[key] = source[key];
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return target;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
return _extends.apply(this, arguments);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Convenience wrapper for `Object.assign`.
|
|
135
|
-
*
|
|
136
|
-
* @param {Object} target
|
|
137
|
-
* @param {...Object} others
|
|
138
|
-
*
|
|
139
|
-
* @return {Object} the target
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
function assign(target) {
|
|
143
|
-
for (var _len = arguments.length, others = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
144
|
-
others[_key - 1] = arguments[_key];
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return _extends.apply(void 0, [target].concat(others));
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Pick all target properties, excluding the given ones.
|
|
151
|
-
*
|
|
152
|
-
* @param {Object} target
|
|
153
|
-
* @param {Array} properties
|
|
154
|
-
*
|
|
155
|
-
* @return {Object} target
|
|
156
|
-
*/
|
|
157
|
-
|
|
158
|
-
function omit(target, properties) {
|
|
159
|
-
var result = {};
|
|
160
|
-
var obj = Object(target);
|
|
161
|
-
forEach(obj, function (prop, key) {
|
|
162
|
-
if (properties.indexOf(key) === -1) {
|
|
163
|
-
result[key] = prop;
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
return result;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export { assign, bind, forEach, has, isArray, isDefined, isFunction, isNumber, isObject, isUndefined, keys, omit, size };
|